/net/mac80211/ |
D | rc80211_minstrel_ht_debugfs.c | 48 minstrel_ht_stats_dump(struct minstrel_ht_sta *mi, int i, char *p) in minstrel_ht_stats_dump() argument 57 return p; in minstrel_ht_stats_dump() 78 p += sprintf(p, "HT%c0 ", htmode); in minstrel_ht_stats_dump() 79 p += sprintf(p, "%cGI ", gimode); in minstrel_ht_stats_dump() 80 p += sprintf(p, "%d ", mg->streams); in minstrel_ht_stats_dump() 82 p += sprintf(p, "VHT%c0 ", htmode); in minstrel_ht_stats_dump() 83 p += sprintf(p, "%cGI ", gimode); in minstrel_ht_stats_dump() 84 p += sprintf(p, "%d ", mg->streams); in minstrel_ht_stats_dump() 86 p += sprintf(p, "OFDM "); in minstrel_ht_stats_dump() 87 p += sprintf(p, "1 "); in minstrel_ht_stats_dump() [all …]
|
D | debugfs_sta.c | 111 char buf[17*IEEE80211_NUM_ACS], *p = buf; in sta_num_ps_buf_frames_read() local 115 p += scnprintf(p, sizeof(buf)+buf-p, "AC%d: %d\n", ac, in sta_num_ps_buf_frames_read() 118 return simple_read_from_buffer(userbuf, count, ppos, buf, p - buf); in sta_num_ps_buf_frames_read() 125 char buf[15*IEEE80211_NUM_TIDS], *p = buf; in sta_last_seq_ctrl_read() local 129 p += scnprintf(p, sizeof(buf)+buf-p, "%x ", in sta_last_seq_ctrl_read() 131 p += scnprintf(p, sizeof(buf)+buf-p, "\n"); in sta_last_seq_ctrl_read() 132 return simple_read_from_buffer(userbuf, count, ppos, buf, p - buf); in sta_last_seq_ctrl_read() 144 char *buf = kzalloc(bufsz, GFP_KERNEL), *p = buf; in sta_aqm_read() local 155 p += scnprintf(p, in sta_aqm_read() 156 bufsz+buf-p, in sta_aqm_read() [all …]
|
/net/bridge/ |
D | br_stp.c | 29 void br_set_state(struct net_bridge_port *p, unsigned int state) in br_set_state() argument 32 .orig_dev = p->dev, in br_set_state() 42 if (p->flags & BR_MRP_AWARE) in br_set_state() 45 p->state = state; in br_set_state() 46 err = switchdev_port_attr_set(p->dev, &attr, NULL); in br_set_state() 48 br_warn(p->br, "error setting offload STP state on port %u(%s)\n", in br_set_state() 49 (unsigned int) p->port_no, p->dev->name); in br_set_state() 51 br_info(p->br, "port %u(%s) entered %s state\n", in br_set_state() 52 (unsigned int) p->port_no, p->dev->name, in br_set_state() 53 br_port_state_names[p->state]); in br_set_state() [all …]
|
D | br_if.c | 64 void br_port_carrier_check(struct net_bridge_port *p, bool *notified) in br_port_carrier_check() argument 66 struct net_device *dev = p->dev; in br_port_carrier_check() 67 struct net_bridge *br = p->br; in br_port_carrier_check() 69 if (!(p->flags & BR_ADMIN_COST) && in br_port_carrier_check() 71 p->path_cost = port_cost(dev); in br_port_carrier_check() 79 if (p->state == BR_STATE_DISABLED) { in br_port_carrier_check() 80 br_stp_enable_port(p); in br_port_carrier_check() 84 if (p->state != BR_STATE_DISABLED) { in br_port_carrier_check() 85 br_stp_disable_port(p); in br_port_carrier_check() 92 static void br_port_set_promisc(struct net_bridge_port *p) in br_port_set_promisc() argument [all …]
|
D | br_sysfs_if.c | 48 static ssize_t show_##_name(struct net_bridge_port *p, char *buf) \ 50 return sprintf(buf, "%d\n", !!(p->flags & _mask)); \ 52 static int store_##_name(struct net_bridge_port *p, unsigned long v) \ 54 return store_flag(p, v, _mask); \ 59 static int store_flag(struct net_bridge_port *p, unsigned long v, in store_flag() argument 63 unsigned long flags = p->flags; in store_flag() 71 if (flags != p->flags) { in store_flag() 72 err = br_switchdev_set_port_flag(p, flags, mask, &extack); in store_flag() 74 netdev_err(p->dev, "%s\n", extack._msg); in store_flag() 78 p->flags = flags; in store_flag() [all …]
|
D | br_stp_if.c | 33 void br_init_port(struct net_bridge_port *p) in br_init_port() argument 37 p->port_id = br_make_port_id(p->priority, p->port_no); in br_init_port() 38 br_become_designated_port(p); in br_init_port() 39 br_set_state(p, BR_STATE_BLOCKING); in br_init_port() 40 p->topology_change_ack = 0; in br_init_port() 41 p->config_pending = 0; in br_init_port() 43 err = __set_ageing_time(p->dev, p->br->ageing_time); in br_init_port() 45 netdev_err(p->dev, "failed to offload ageing time\n"); in br_init_port() 51 struct net_bridge_port *p; in br_stp_enable_bridge() local 60 list_for_each_entry(p, &br->port_list, list) { in br_stp_enable_bridge() [all …]
|
D | br_switchdev.c | 13 static bool nbp_switchdev_can_offload_tx_fwd(const struct net_bridge_port *p, in nbp_switchdev_can_offload_tx_fwd() argument 19 return (p->flags & BR_TX_FWD_OFFLOAD) && in nbp_switchdev_can_offload_tx_fwd() 20 (p->hwdom != BR_INPUT_SKB_CB(skb)->src_hwdom); in nbp_switchdev_can_offload_tx_fwd() 37 void nbp_switchdev_frame_mark_tx_fwd_offload(const struct net_bridge_port *p, in nbp_switchdev_frame_mark_tx_fwd_offload() argument 40 if (nbp_switchdev_can_offload_tx_fwd(p, skb)) in nbp_switchdev_frame_mark_tx_fwd_offload() 49 void nbp_switchdev_frame_mark_tx_fwd_to_hwdom(const struct net_bridge_port *p, in nbp_switchdev_frame_mark_tx_fwd_to_hwdom() argument 52 if (nbp_switchdev_can_offload_tx_fwd(p, skb)) in nbp_switchdev_frame_mark_tx_fwd_to_hwdom() 53 set_bit(p->hwdom, &BR_INPUT_SKB_CB(skb)->fwd_hwdoms); in nbp_switchdev_frame_mark_tx_fwd_to_hwdom() 56 void nbp_switchdev_frame_mark(const struct net_bridge_port *p, in nbp_switchdev_frame_mark() argument 59 if (p->hwdom) in nbp_switchdev_frame_mark() [all …]
|
D | br_mrp.c | 9 static int br_mrp_process(struct net_bridge_port *p, struct sk_buff *skb); 90 struct net_bridge_port *p; in br_mrp_unique_ifindex() local 92 p = rtnl_dereference(mrp->p_port); in br_mrp_unique_ifindex() 93 if (p && p->dev->ifindex == ifindex) in br_mrp_unique_ifindex() 96 p = rtnl_dereference(mrp->s_port); in br_mrp_unique_ifindex() 97 if (p && p->dev->ifindex == ifindex) in br_mrp_unique_ifindex() 100 p = rtnl_dereference(mrp->i_port); in br_mrp_unique_ifindex() 101 if (p && p->dev->ifindex == ifindex) in br_mrp_unique_ifindex() 109 struct net_bridge_port *p) in br_mrp_find_port() argument 116 if (rcu_access_pointer(mrp->p_port) == p || in br_mrp_find_port() [all …]
|
D | br_stp_timer.c | 19 struct net_bridge_port *p; in br_is_designated_for_some_port() local 21 list_for_each_entry(p, &br->port_list, list) { in br_is_designated_for_some_port() 22 if (p->state != BR_STATE_DISABLED && in br_is_designated_for_some_port() 23 !memcmp(&p->designated_bridge, &br->bridge_id, 8)) in br_is_designated_for_some_port() 48 struct net_bridge_port *p = from_timer(p, t, message_age_timer); in br_message_age_timer_expired() local 49 struct net_bridge *br = p->br; in br_message_age_timer_expired() 50 const bridge_id *id = &p->designated_bridge; in br_message_age_timer_expired() 53 if (p->state == BR_STATE_DISABLED) in br_message_age_timer_expired() 57 (unsigned int) p->port_no, p->dev->name, in br_message_age_timer_expired() 66 if (p->state == BR_STATE_DISABLED) in br_message_age_timer_expired() [all …]
|
/net/x25/ |
D | x25_facilities.c | 44 unsigned char *p; in x25_parse_facilities() local 68 p = skb->data + 1; in x25_parse_facilities() 71 switch (*p & X25_FAC_CLASS_MASK) { in x25_parse_facilities() 75 switch (*p) { in x25_parse_facilities() 77 if((p[1] & 0x81) == 0x81) { in x25_parse_facilities() 78 facilities->reverse = p[1] & 0x81; in x25_parse_facilities() 83 if((p[1] & 0x01) == 0x01) { in x25_parse_facilities() 84 facilities->reverse = p[1] & 0x01; in x25_parse_facilities() 89 if((p[1] & 0x80) == 0x80) { in x25_parse_facilities() 90 facilities->reverse = p[1] & 0x80; in x25_parse_facilities() [all …]
|
/net/rose/ |
D | rose_subr.c | 239 static int rose_parse_national(unsigned char *p, struct rose_facilities_struct *facilities, int len) in rose_parse_national() argument 246 switch (*p & 0xC0) { in rose_parse_national() 250 p += 2; in rose_parse_national() 258 if (*p == FAC_NATIONAL_RAND) in rose_parse_national() 259 facilities->rand = ((p[1] << 8) & 0xFF00) + ((p[2] << 0) & 0x00FF); in rose_parse_national() 260 p += 3; in rose_parse_national() 268 p += 4; in rose_parse_national() 276 l = p[1]; in rose_parse_national() 279 if (*p == FAC_NATIONAL_DEST_DIGI) { in rose_parse_national() 283 memcpy(&facilities->source_digis[0], p + 2, AX25_ADDR_LEN); in rose_parse_national() [all …]
|
/net/sched/ |
D | sch_dsmark.c | 57 static inline int dsmark_valid_index(struct dsmark_qdisc_data *p, u16 index) in dsmark_valid_index() argument 59 return index <= p->indices && index > 0; in dsmark_valid_index() 68 struct dsmark_qdisc_data *p = qdisc_priv(sch); in dsmark_graft() local 71 __func__, sch, p, new, old); in dsmark_graft() 80 *old = qdisc_replace(sch, new, &p->q); in dsmark_graft() 86 struct dsmark_qdisc_data *p = qdisc_priv(sch); in dsmark_leaf() local 87 return p->q; in dsmark_leaf() 120 struct dsmark_qdisc_data *p = qdisc_priv(sch); in dsmark_change() local 126 __func__, sch, p, classid, parent, *arg); in dsmark_change() 128 if (!dsmark_valid_index(p, *arg)) { in dsmark_change() [all …]
|
D | sch_atm.c | 75 struct atm_qdisc_data *p = qdisc_priv(sch); in lookup_flow() local 78 list_for_each_entry(flow, &p->flows, list) { in lookup_flow() 89 struct atm_qdisc_data *p = qdisc_priv(sch); in atm_tc_graft() local 93 sch, p, flow, new, old); in atm_tc_graft() 115 struct atm_qdisc_data *p __maybe_unused = qdisc_priv(sch); in atm_tc_find() 118 pr_debug("%s(sch %p,[qdisc %p],classid %x)\n", __func__, sch, p, classid); in atm_tc_find() 127 struct atm_qdisc_data *p __maybe_unused = qdisc_priv(sch); in atm_tc_bind_filter() 130 pr_debug("%s(sch %p,[qdisc %p],classid %x)\n", __func__, sch, p, classid); in atm_tc_bind_filter() 145 struct atm_qdisc_data *p = qdisc_priv(sch); in atm_tc_put() local 148 pr_debug("atm_tc_put(sch %p,[qdisc %p],flow %p)\n", sch, p, flow); in atm_tc_put() [all …]
|
D | act_vlan.c | 26 struct tcf_vlan_params *p; in tcf_vlan_act() local 42 p = rcu_dereference_bh(v->vlan_p); in tcf_vlan_act() 44 switch (p->tcfv_action) { in tcf_vlan_act() 51 err = skb_vlan_push(skb, p->tcfv_push_proto, p->tcfv_push_vid | in tcf_vlan_act() 52 (p->tcfv_push_prio << VLAN_PRIO_SHIFT)); in tcf_vlan_act() 71 tci = (tci & ~VLAN_VID_MASK) | p->tcfv_push_vid; in tcf_vlan_act() 73 if (p->tcfv_push_prio_exists) { in tcf_vlan_act() 75 tci |= p->tcfv_push_prio << VLAN_PRIO_SHIFT; in tcf_vlan_act() 78 __vlan_hwaccel_put_tag(skb, p->tcfv_push_proto, tci); in tcf_vlan_act() 86 err = skb_eth_push(skb, p->tcfv_push_dst, p->tcfv_push_src); in tcf_vlan_act() [all …]
|
/net/sunrpc/auth_gss/ |
D | gss_rpc_xdr.c | 13 __be32 *p; in gssx_enc_bool() local 15 p = xdr_reserve_space(xdr, 4); in gssx_enc_bool() 16 if (unlikely(p == NULL)) in gssx_enc_bool() 18 *p = v ? xdr_one : xdr_zero; in gssx_enc_bool() 24 __be32 *p; in gssx_dec_bool() local 26 p = xdr_inline_decode(xdr, 4); in gssx_dec_bool() 27 if (unlikely(p == NULL)) in gssx_dec_bool() 29 *v = be32_to_cpu(*p); in gssx_dec_bool() 36 __be32 *p; in gssx_enc_buffer() local 38 p = xdr_reserve_space(xdr, sizeof(u32) + buf->len); in gssx_enc_buffer() [all …]
|
D | gss_krb5_mech.c | 149 get_key(const void *p, const void *end, in get_key() argument 155 p = simple_get_bytes(p, end, &alg, sizeof(alg)); in get_key() 156 if (IS_ERR(p)) in get_key() 171 p = ERR_PTR(-EINVAL); in get_key() 174 p = simple_get_netobj(p, end, &key); in get_key() 175 if (IS_ERR(p)) in get_key() 192 return p; in get_key() 198 p = ERR_PTR(-EINVAL); in get_key() 200 return p; in get_key() 204 gss_import_v1_context(const void *p, const void *end, struct krb5_ctx *ctx) in gss_import_v1_context() argument [all …]
|
/net/ceph/ |
D | osdmap.c | 55 static int crush_decode_uniform_bucket(void **p, void *end, in crush_decode_uniform_bucket() argument 58 dout("crush_decode_uniform_bucket %p to %p\n", *p, end); in crush_decode_uniform_bucket() 59 ceph_decode_need(p, end, (1+b->h.size) * sizeof(u32), bad); in crush_decode_uniform_bucket() 60 b->item_weight = ceph_decode_32(p); in crush_decode_uniform_bucket() 66 static int crush_decode_list_bucket(void **p, void *end, in crush_decode_list_bucket() argument 70 dout("crush_decode_list_bucket %p to %p\n", *p, end); in crush_decode_list_bucket() 77 ceph_decode_need(p, end, 2 * b->h.size * sizeof(u32), bad); in crush_decode_list_bucket() 79 b->item_weights[j] = ceph_decode_32(p); in crush_decode_list_bucket() 80 b->sum_weights[j] = ceph_decode_32(p); in crush_decode_list_bucket() 87 static int crush_decode_tree_bucket(void **p, void *end, in crush_decode_tree_bucket() argument [all …]
|
D | cls_lock_client.c | 36 void *p, *end; in ceph_cls_lock() local 56 p = page_address(lock_op_page); in ceph_cls_lock() 57 end = p + lock_op_buf_size; in ceph_cls_lock() 60 ceph_start_encoding(&p, 1, 1, in ceph_cls_lock() 62 ceph_encode_string(&p, end, lock_name, name_len); in ceph_cls_lock() 63 ceph_encode_8(&p, type); in ceph_cls_lock() 64 ceph_encode_string(&p, end, cookie, cookie_len); in ceph_cls_lock() 65 ceph_encode_string(&p, end, tag, tag_len); in ceph_cls_lock() 66 ceph_encode_string(&p, end, desc, desc_len); in ceph_cls_lock() 69 ceph_encode_timespec64(p, &mtime); in ceph_cls_lock() [all …]
|
D | auth.c | 105 int ceph_auth_entity_name_encode(const char *name, void **p, void *end) in ceph_auth_entity_name_encode() argument 109 if (*p + 2*sizeof(u32) + len > end) in ceph_auth_entity_name_encode() 111 ceph_encode_32(p, CEPH_ENTITY_TYPE_CLIENT); in ceph_auth_entity_name_encode() 112 ceph_encode_32(p, len); in ceph_auth_entity_name_encode() 113 ceph_encode_copy(p, name, len); in ceph_auth_entity_name_encode() 124 void *p = monhdr + 1, *end = buf + len, *lenp; in ceph_auth_build_hello() local 134 ceph_encode_32(&p, CEPH_AUTH_UNKNOWN); /* no protocol, yet */ in ceph_auth_build_hello() 136 lenp = p; in ceph_auth_build_hello() 137 p += sizeof(u32); in ceph_auth_build_hello() 139 ceph_decode_need(&p, end, 1 + sizeof(u32), bad); in ceph_auth_build_hello() [all …]
|
D | decode.c | 10 ceph_decode_entity_addr_versioned(void **p, void *end, in ceph_decode_entity_addr_versioned() argument 18 ret = ceph_start_decoding(p, end, 1, "entity_addr_t", &struct_v, in ceph_decode_entity_addr_versioned() 24 struct_end = *p + struct_len; in ceph_decode_entity_addr_versioned() 26 ceph_decode_copy_safe(p, end, &addr->type, sizeof(addr->type), bad); in ceph_decode_entity_addr_versioned() 28 ceph_decode_copy_safe(p, end, &addr->nonce, sizeof(addr->nonce), bad); in ceph_decode_entity_addr_versioned() 30 ceph_decode_32_safe(p, end, addr_len, bad); in ceph_decode_entity_addr_versioned() 36 ceph_decode_copy_safe(p, end, &addr->in_addr, addr_len, bad); in ceph_decode_entity_addr_versioned() 43 *p = struct_end; in ceph_decode_entity_addr_versioned() 50 ceph_decode_entity_addr_legacy(void **p, void *end, in ceph_decode_entity_addr_legacy() argument 56 ceph_decode_skip_n(p, end, 3, bad); in ceph_decode_entity_addr_legacy() [all …]
|
/net/ipv4/ |
D | inetpeer.c | 100 struct inet_peer *p; in lookup() local 111 p = rb_entry(parent, struct inet_peer, rb_node); in lookup() 112 cmp = inetpeer_addr_cmp(daddr, &p->daddr); in lookup() 114 if (!refcount_inc_not_zero(&p->refcnt)) in lookup() 116 return p; in lookup() 120 gc_stack[(*gc_cnt)++] = p; in lookup() 145 struct inet_peer *p; in inet_peer_gc() local 159 p = gc_stack[i]; in inet_peer_gc() 164 delta = (__u32)jiffies - READ_ONCE(p->dtime); in inet_peer_gc() 166 if (delta < ttl || !refcount_dec_if_one(&p->refcnt)) in inet_peer_gc() [all …]
|
/net/tipc/ |
D | name_table.c | 182 struct rb_node *p, *r; in service_range_match_next() local 197 while ((p = rb_parent(n)) && n == p->rb_right) in service_range_match_next() 198 n = p; in service_range_match_next() 199 if (!p) in service_range_match_next() 203 sr = service_range_entry(p); in service_range_match_next() 209 n = p; in service_range_match_next() 233 struct publication *p = kzalloc(sizeof(*p), GFP_ATOMIC); in tipc_publ_create() local 235 if (!p) in tipc_publ_create() 238 p->sr = ua->sr; in tipc_publ_create() 239 p->sk = *sk; in tipc_publ_create() [all …]
|
/net/sunrpc/ |
D | auth_unix.c | 107 __be32 *p, *cred_len, *gidarr_len; in unx_marshal() local 115 p = xdr_reserve_space(xdr, 3 * sizeof(*p)); in unx_marshal() 116 if (!p) in unx_marshal() 118 *p++ = rpc_auth_unix; in unx_marshal() 119 cred_len = p++; in unx_marshal() 120 *p++ = xdr_zero; /* stamp */ in unx_marshal() 124 p = xdr_reserve_space(xdr, 3 * sizeof(*p)); in unx_marshal() 125 if (!p) in unx_marshal() 127 *p++ = cpu_to_be32(from_kuid_munged(userns, cred->cr_cred->fsuid)); in unx_marshal() 128 *p++ = cpu_to_be32(from_kgid_munged(userns, cred->cr_cred->fsgid)); in unx_marshal() [all …]
|
/net/netfilter/ipvs/ |
D | ip_vs_conn.c | 122 static unsigned int ip_vs_conn_hashkey_param(const struct ip_vs_conn_param *p, in ip_vs_conn_hashkey_param() argument 128 if (p->pe_data && p->pe->hashkey_raw) in ip_vs_conn_hashkey_param() 129 return p->pe->hashkey_raw(p, ip_vs_conn_rnd, inverse) & in ip_vs_conn_hashkey_param() 133 addr = p->caddr; in ip_vs_conn_hashkey_param() 134 port = p->cport; in ip_vs_conn_hashkey_param() 136 addr = p->vaddr; in ip_vs_conn_hashkey_param() 137 port = p->vport; in ip_vs_conn_hashkey_param() 140 return ip_vs_conn_hashkey(p->ipvs, p->af, p->protocol, addr, port); in ip_vs_conn_hashkey_param() 145 struct ip_vs_conn_param p; in ip_vs_conn_hashkey_conn() local 148 &cp->caddr, cp->cport, NULL, 0, &p); in ip_vs_conn_hashkey_conn() [all …]
|
/net/ipv6/ila/ |
D | ila_common.c | 16 void ila_init_saved_csum(struct ila_params *p) in ila_init_saved_csum() argument 18 if (!p->locator_match.v64) in ila_init_saved_csum() 21 p->csum_diff = compute_csum_diff8( in ila_init_saved_csum() 22 (__be32 *)&p->locator, in ila_init_saved_csum() 23 (__be32 *)&p->locator_match); in ila_init_saved_csum() 26 static __wsum get_csum_diff_iaddr(struct ila_addr *iaddr, struct ila_params *p) in get_csum_diff_iaddr() argument 28 if (p->locator_match.v64) in get_csum_diff_iaddr() 29 return p->csum_diff; in get_csum_diff_iaddr() 31 return compute_csum_diff8((__be32 *)&p->locator, in get_csum_diff_iaddr() 35 static __wsum get_csum_diff(struct ipv6hdr *ip6h, struct ila_params *p) in get_csum_diff() argument [all …]
|