/net/ieee802154/ |
D | header_ops.c | 18 int pos = 0; in ieee802154_hdr_push_addr() local 24 memcpy(buf + pos, &addr->pan_id, 2); in ieee802154_hdr_push_addr() 25 pos += 2; in ieee802154_hdr_push_addr() 30 memcpy(buf + pos, &addr->short_addr, 2); in ieee802154_hdr_push_addr() 31 pos += 2; in ieee802154_hdr_push_addr() 35 memcpy(buf + pos, &addr->extended_addr, IEEE802154_ADDR_LEN); in ieee802154_hdr_push_addr() 36 pos += IEEE802154_ADDR_LEN; in ieee802154_hdr_push_addr() 43 return pos; in ieee802154_hdr_push_addr() 49 int pos = 5; in ieee802154_hdr_push_sechdr() local 56 return pos; in ieee802154_hdr_push_sechdr() [all …]
|
/net/sctp/ |
D | ulpqueue.c | 276 struct sk_buff *pos; in sctp_ulpq_store_reasm() local 283 pos = skb_peek_tail(&ulpq->reasm); in sctp_ulpq_store_reasm() 284 if (!pos) { in sctp_ulpq_store_reasm() 290 cevent = sctp_skb2event(pos); in sctp_ulpq_store_reasm() 298 skb_queue_walk(&ulpq->reasm, pos) { in sctp_ulpq_store_reasm() 299 cevent = sctp_skb2event(pos); in sctp_ulpq_store_reasm() 307 __skb_queue_before(&ulpq->reasm, pos, sctp_event2skb(event)); in sctp_ulpq_store_reasm() 323 struct sk_buff *pos; in sctp_make_reassembled_event() local 331 pos = NULL; in sctp_make_reassembled_event() 333 pos = f_frag->next; in sctp_make_reassembled_event() [all …]
|
D | stream_interleave.c | 128 struct sk_buff *pos, *loc; in sctp_intl_store_reasm() local 130 pos = skb_peek_tail(&ulpq->reasm); in sctp_intl_store_reasm() 131 if (!pos) { in sctp_intl_store_reasm() 136 cevent = sctp_skb2event(pos); in sctp_intl_store_reasm() 155 skb_queue_walk(&ulpq->reasm, pos) { in sctp_intl_store_reasm() 156 cevent = sctp_skb2event(pos); in sctp_intl_store_reasm() 161 loc = pos; in sctp_intl_store_reasm() 169 loc = pos; in sctp_intl_store_reasm() 188 struct sk_buff *pos; in sctp_intl_retrieve_partial() local 194 skb_queue_walk(&ulpq->reasm, pos) { in sctp_intl_retrieve_partial() [all …]
|
D | objcnt.c | 74 static void *sctp_objcnt_seq_start(struct seq_file *seq, loff_t *pos) in sctp_objcnt_seq_start() argument 76 return (*pos >= ARRAY_SIZE(sctp_dbg_objcnt)) ? NULL : (void *)pos; in sctp_objcnt_seq_start() 83 static void *sctp_objcnt_seq_next(struct seq_file *seq, void *v, loff_t *pos) in sctp_objcnt_seq_next() argument 85 ++*pos; in sctp_objcnt_seq_next() 86 return (*pos >= ARRAY_SIZE(sctp_dbg_objcnt)) ? NULL : (void *)pos; in sctp_objcnt_seq_next()
|
D | proc.c | 132 static void *sctp_eps_seq_start(struct seq_file *seq, loff_t *pos) in sctp_eps_seq_start() argument 134 if (*pos >= sctp_ep_hashsize) in sctp_eps_seq_start() 137 if (*pos < 0) in sctp_eps_seq_start() 138 *pos = 0; in sctp_eps_seq_start() 140 if (*pos == 0) in sctp_eps_seq_start() 143 return (void *)pos; in sctp_eps_seq_start() 151 static void *sctp_eps_seq_next(struct seq_file *seq, void *v, loff_t *pos) in sctp_eps_seq_next() argument 153 if (++*pos >= sctp_ep_hashsize) in sctp_eps_seq_next() 156 return pos; in sctp_eps_seq_next() 205 static void *sctp_transport_seq_start(struct seq_file *seq, loff_t *pos) in sctp_transport_seq_start() argument [all …]
|
/net/core/ |
D | net-procfs.c | 16 static inline struct net_device *dev_from_same_bucket(struct seq_file *seq, loff_t *pos) in dev_from_same_bucket() argument 21 unsigned int count = 0, offset = get_offset(*pos); in dev_from_same_bucket() 23 h = &net->dev_name_head[get_bucket(*pos)]; in dev_from_same_bucket() 32 static inline struct net_device *dev_from_bucket(struct seq_file *seq, loff_t *pos) in dev_from_bucket() argument 38 dev = dev_from_same_bucket(seq, pos); in dev_from_bucket() 42 bucket = get_bucket(*pos) + 1; in dev_from_bucket() 43 *pos = set_bucket_offset(bucket, 1); in dev_from_bucket() 53 static void *dev_seq_start(struct seq_file *seq, loff_t *pos) in dev_seq_start() argument 57 if (!*pos) in dev_seq_start() 60 if (get_bucket(*pos) >= NETDEV_HASHENTRIES) in dev_seq_start() [all …]
|
/net/wireless/ |
D | lib80211_crypt_wep.c | 68 u8 *pos; in lib80211_wep_build_iv() local 73 pos = skb_push(skb, 4); in lib80211_wep_build_iv() 74 memmove(pos, pos + 4, hdr_len); in lib80211_wep_build_iv() 75 pos += hdr_len; in lib80211_wep_build_iv() 91 *pos++ = (wep->iv >> 16) & 0xff; in lib80211_wep_build_iv() 92 *pos++ = (wep->iv >> 8) & 0xff; in lib80211_wep_build_iv() 93 *pos++ = wep->iv & 0xff; in lib80211_wep_build_iv() 94 *pos++ = wep->key_idx << 6; in lib80211_wep_build_iv() 109 u8 *pos, *icv; in lib80211_wep_encrypt() local 127 pos = skb->data + hdr_len + 4; in lib80211_wep_encrypt() [all …]
|
D | lib80211_crypt_ccmp.c | 97 u8 *pos, qc = 0; in ccmp_init_iv_and_aad() local 108 pos = (u8 *) & hdr->addr4; in ccmp_init_iv_and_aad() 110 pos += 6; in ccmp_init_iv_and_aad() 111 qc = *pos & 0x0f; in ccmp_init_iv_and_aad() 136 pos = (u8 *) hdr; in ccmp_init_iv_and_aad() 137 aad[0] = pos[0] & 0x8f; in ccmp_init_iv_and_aad() 138 aad[1] = pos[1] & 0xc7; in ccmp_init_iv_and_aad() 140 pos = (u8 *) & hdr->seq_ctrl; in ccmp_init_iv_and_aad() 141 aad[20] = pos[0] & 0x0f; in ccmp_init_iv_and_aad() 158 u8 *pos; in lib80211_ccmp_hdr() local [all …]
|
D | lib80211_crypt_tkip.c | 287 u8 *pos; in lib80211_tkip_hdr() local 305 pos = skb_push(skb, TKIP_HDR_LEN); in lib80211_tkip_hdr() 306 memmove(pos, pos + TKIP_HDR_LEN, hdr_len); in lib80211_tkip_hdr() 307 pos += hdr_len; in lib80211_tkip_hdr() 309 *pos++ = *rc4key; in lib80211_tkip_hdr() 310 *pos++ = *(rc4key + 1); in lib80211_tkip_hdr() 311 *pos++ = *(rc4key + 2); in lib80211_tkip_hdr() 312 *pos++ = (tkey->key_idx << 6) | (1 << 5) /* Ext IV included */ ; in lib80211_tkip_hdr() 313 *pos++ = tkey->tx_iv32 & 0xff; in lib80211_tkip_hdr() 314 *pos++ = (tkey->tx_iv32 >> 8) & 0xff; in lib80211_tkip_hdr() [all …]
|
/net/mac80211/ |
D | util.c | 911 const u8 *pos = elem->data; in _ieee802_11_parse_elems_crc() local 965 crc = crc32_be(crc, pos - 2, elen + 2); in _ieee802_11_parse_elems_crc() 975 elems->lnk_id = (void *)(pos - 2); in _ieee802_11_parse_elems_crc() 982 elems->ch_sw_timing = (void *)pos; in _ieee802_11_parse_elems_crc() 985 elems->ext_capab = pos; in _ieee802_11_parse_elems_crc() 989 elems->ssid = pos; in _ieee802_11_parse_elems_crc() 993 elems->supp_rates = pos; in _ieee802_11_parse_elems_crc() 998 elems->ds_params = pos; in _ieee802_11_parse_elems_crc() 1004 elems->tim = (void *)pos; in _ieee802_11_parse_elems_crc() 1010 elems->challenge = pos; in _ieee802_11_parse_elems_crc() [all …]
|
D | mesh.c | 252 u8 *pos, neighbors; in mesh_add_meshconf_ie() local 261 pos = skb_put(skb, 2 + meshconf_len); in mesh_add_meshconf_ie() 262 *pos++ = WLAN_EID_MESH_CONFIG; in mesh_add_meshconf_ie() 263 *pos++ = meshconf_len; in mesh_add_meshconf_ie() 266 ifmsh->meshconf_offset = pos - skb->data; in mesh_add_meshconf_ie() 269 *pos++ = ifmsh->mesh_pp_id; in mesh_add_meshconf_ie() 271 *pos++ = ifmsh->mesh_pm_id; in mesh_add_meshconf_ie() 273 *pos++ = ifmsh->mesh_cc_id; in mesh_add_meshconf_ie() 275 *pos++ = ifmsh->mesh_sp_id; in mesh_add_meshconf_ie() 277 *pos++ = ifmsh->mesh_auth_id; in mesh_add_meshconf_ie() [all …]
|
D | status.c | 310 unsigned char *pos; in ieee80211_add_tx_radiotap_header() local 321 pos = (unsigned char *)(rthdr + 1); in ieee80211_add_tx_radiotap_header() 346 *pos = DIV_ROUND_UP(legacy_rate, 5 * (1 << shift)); in ieee80211_add_tx_radiotap_header() 348 pos += 2; in ieee80211_add_tx_radiotap_header() 362 put_unaligned_le16(txflags, pos); in ieee80211_add_tx_radiotap_header() 363 pos += 2; in ieee80211_add_tx_radiotap_header() 367 *pos = retry_count; in ieee80211_add_tx_radiotap_header() 368 pos++; in ieee80211_add_tx_radiotap_header() 373 pos[0] = IEEE80211_RADIOTAP_MCS_HAVE_MCS | in ieee80211_add_tx_radiotap_header() 377 pos[1] |= IEEE80211_RADIOTAP_MCS_SGI; in ieee80211_add_tx_radiotap_header() [all …]
|
D | tkip.c | 67 static u8 *write_tkip_iv(u8 *pos, u16 iv16) in write_tkip_iv() argument 69 *pos++ = iv16 >> 8; in write_tkip_iv() 70 *pos++ = ((iv16 >> 8) | 0x20) & 0x7f; in write_tkip_iv() 71 *pos++ = iv16 & 0xFF; in write_tkip_iv() 72 return pos; in write_tkip_iv() 143 u8 *ieee80211_tkip_add_iv(u8 *pos, struct ieee80211_key_conf *keyconf, u64 pn) in ieee80211_tkip_add_iv() argument 145 pos = write_tkip_iv(pos, TKIP_PN_TO_IV16(pn)); in ieee80211_tkip_add_iv() 146 *pos++ = (keyconf->keyidx << 6) | (1 << 5) /* Ext IV */; in ieee80211_tkip_add_iv() 147 put_unaligned_le32(TKIP_PN_TO_IV32(pn), pos); in ieee80211_tkip_add_iv() 148 return pos + 4; in ieee80211_tkip_add_iv() [all …]
|
D | mesh_hwmp.c | 111 u8 *pos, ie_len; in mesh_path_sel_frame_tx() local 137 pos = skb_put(skb, 2 + ie_len); in mesh_path_sel_frame_tx() 138 *pos++ = WLAN_EID_PREQ; in mesh_path_sel_frame_tx() 143 pos = skb_put(skb, 2 + ie_len); in mesh_path_sel_frame_tx() 144 *pos++ = WLAN_EID_PREP; in mesh_path_sel_frame_tx() 149 pos = skb_put(skb, 2 + ie_len); in mesh_path_sel_frame_tx() 150 *pos++ = WLAN_EID_RANN; in mesh_path_sel_frame_tx() 156 *pos++ = ie_len; in mesh_path_sel_frame_tx() 157 *pos++ = flags; in mesh_path_sel_frame_tx() 158 *pos++ = hop_count; in mesh_path_sel_frame_tx() [all …]
|
D | tdls.c | 55 u8 *pos = skb_put(skb, 10); in ieee80211_tdls_add_ext_capab() local 57 *pos++ = WLAN_EID_EXT_CAPABILITY; in ieee80211_tdls_add_ext_capab() 58 *pos++ = 8; /* len */ in ieee80211_tdls_add_ext_capab() 59 *pos++ = 0x0; in ieee80211_tdls_add_ext_capab() 60 *pos++ = 0x0; in ieee80211_tdls_add_ext_capab() 61 *pos++ = 0x0; in ieee80211_tdls_add_ext_capab() 62 *pos++ = (chan_switch ? WLAN_EXT_CAPA4_TDLS_CHAN_SWITCH : 0) | in ieee80211_tdls_add_ext_capab() 64 *pos++ = WLAN_EXT_CAPA5_TDLS_ENABLED; in ieee80211_tdls_add_ext_capab() 65 *pos++ = 0; in ieee80211_tdls_add_ext_capab() 66 *pos++ = 0; in ieee80211_tdls_add_ext_capab() [all …]
|
D | ibss.c | 49 u8 *pos; in ieee80211_ibss_build_presp() local 86 pos = (u8 *)mgmt + offsetof(struct ieee80211_mgmt, u.beacon.variable); in ieee80211_ibss_build_presp() 88 *pos++ = WLAN_EID_SSID; in ieee80211_ibss_build_presp() 89 *pos++ = ifibss->ssid_len; in ieee80211_ibss_build_presp() 90 memcpy(pos, ifibss->ssid, ifibss->ssid_len); in ieee80211_ibss_build_presp() 91 pos += ifibss->ssid_len; in ieee80211_ibss_build_presp() 111 *pos++ = WLAN_EID_SUPP_RATES; in ieee80211_ibss_build_presp() 112 *pos++ = min_t(int, 8, rates_n); in ieee80211_ibss_build_presp() 122 *pos++ = basic | (u8) rate; in ieee80211_ibss_build_presp() 130 *pos++ = WLAN_EID_DS_PARAMS; in ieee80211_ibss_build_presp() [all …]
|
/net/appletalk/ |
D | atalk_proc.c | 17 static __inline__ struct atalk_iface *atalk_get_interface_idx(loff_t pos) in atalk_get_interface_idx() argument 21 for (i = atalk_interfaces; pos && i; i = i->next) in atalk_get_interface_idx() 22 --pos; in atalk_get_interface_idx() 27 static void *atalk_seq_interface_start(struct seq_file *seq, loff_t *pos) in atalk_seq_interface_start() argument 30 loff_t l = *pos; in atalk_seq_interface_start() 36 static void *atalk_seq_interface_next(struct seq_file *seq, void *v, loff_t *pos) in atalk_seq_interface_next() argument 40 ++*pos; in atalk_seq_interface_next() 78 static __inline__ struct atalk_route *atalk_get_route_idx(loff_t pos) in atalk_get_route_idx() argument 82 for (r = atalk_routes; pos && r; r = r->next) in atalk_get_route_idx() 83 --pos; in atalk_get_route_idx() [all …]
|
/net/sunrpc/ |
D | xprtmultipath.c | 207 struct rpc_xprt *pos; in xprt_switch_find_first_entry() local 209 list_for_each_entry_rcu(pos, head, xprt_switch) { in xprt_switch_find_first_entry() 210 if (xprt_is_active(pos)) in xprt_switch_find_first_entry() 211 return pos; in xprt_switch_find_first_entry() 230 struct rpc_xprt *pos; in xprt_switch_find_current_entry() local 233 list_for_each_entry_rcu(pos, head, xprt_switch) { in xprt_switch_find_current_entry() 234 if (cur == pos) in xprt_switch_find_current_entry() 236 if (found && xprt_is_active(pos)) in xprt_switch_find_current_entry() 237 return pos; in xprt_switch_find_current_entry() 260 struct rpc_xprt *pos; in rpc_xprt_switch_has_addr() local [all …]
|
/net/xfrm/ |
D | xfrm_ipcomp.c | 245 struct ipcomp_tfms *pos; in ipcomp_free_tfms() local 248 list_for_each_entry(pos, &ipcomp_tfms_list, list) { in ipcomp_free_tfms() 249 if (pos->tfms == tfms) in ipcomp_free_tfms() 253 WARN_ON(!pos); in ipcomp_free_tfms() 255 if (--pos->users) in ipcomp_free_tfms() 258 list_del(&pos->list); in ipcomp_free_tfms() 259 kfree(pos); in ipcomp_free_tfms() 273 struct ipcomp_tfms *pos; in ipcomp_alloc_tfms() local 278 list_for_each_entry(pos, &ipcomp_tfms_list, list) { in ipcomp_alloc_tfms() 282 tfm = this_cpu_read(*pos->tfms); in ipcomp_alloc_tfms() [all …]
|
D | xfrm_replay.c | 190 u32 pos; in xfrm_replay_check_bmp() local 208 pos = (replay_esn->seq - 1) % replay_esn->replay_window; in xfrm_replay_check_bmp() 210 if (pos >= diff) in xfrm_replay_check_bmp() 211 bitnr = (pos - diff) % replay_esn->replay_window; in xfrm_replay_check_bmp() 213 bitnr = replay_esn->replay_window - (diff - pos); in xfrm_replay_check_bmp() 235 u32 pos; in xfrm_replay_advance_bmp() local 240 pos = (replay_esn->seq - 1) % replay_esn->replay_window; in xfrm_replay_advance_bmp() 247 bitnr = (pos + i) % replay_esn->replay_window; in xfrm_replay_advance_bmp() 258 bitnr = (pos + diff) % replay_esn->replay_window; in xfrm_replay_advance_bmp() 263 if (pos >= diff) in xfrm_replay_advance_bmp() [all …]
|
/net/sunrpc/auth_gss/ |
D | gss_mech_switch.c | 127 struct gss_api_mech *pos, *gm = NULL; in _gss_mech_get_by_name() local 130 list_for_each_entry_rcu(pos, ®istered_mechs, gm_list) { in _gss_mech_get_by_name() 131 if (0 == strcmp(name, pos->gm_name)) { in _gss_mech_get_by_name() 132 if (try_module_get(pos->gm_owner)) in _gss_mech_get_by_name() 133 gm = pos; in _gss_mech_get_by_name() 156 struct gss_api_mech *pos, *gm = NULL; in gss_mech_get_by_OID() local 165 list_for_each_entry_rcu(pos, ®istered_mechs, gm_list) { in gss_mech_get_by_OID() 166 if (obj->len == pos->gm_oid.len) { in gss_mech_get_by_OID() 167 if (0 == memcmp(obj->data, pos->gm_oid.data, obj->len)) { in gss_mech_get_by_OID() 168 if (try_module_get(pos->gm_owner)) in gss_mech_get_by_OID() [all …]
|
/net/x25/ |
D | x25_proc.c | 25 static void *x25_seq_route_start(struct seq_file *seq, loff_t *pos) in x25_seq_route_start() argument 29 return seq_list_start_head(&x25_route_list, *pos); in x25_seq_route_start() 32 static void *x25_seq_route_next(struct seq_file *seq, void *v, loff_t *pos) in x25_seq_route_next() argument 34 return seq_list_next(v, &x25_route_list, pos); in x25_seq_route_next() 60 static void *x25_seq_socket_start(struct seq_file *seq, loff_t *pos) in x25_seq_socket_start() argument 64 return seq_hlist_start_head(&x25_list, *pos); in x25_seq_socket_start() 67 static void *x25_seq_socket_next(struct seq_file *seq, void *v, loff_t *pos) in x25_seq_socket_next() argument 69 return seq_hlist_next(v, &x25_list, pos); in x25_seq_socket_next() 113 static void *x25_seq_forward_start(struct seq_file *seq, loff_t *pos) in x25_seq_forward_start() argument 117 return seq_list_start_head(&x25_forward_list, *pos); in x25_seq_forward_start() [all …]
|
/net/mac802154/ |
D | llsec.c | 217 struct ieee802154_llsec_key_entry *pos, *new; in mac802154_llsec_key_add() local 223 list_for_each_entry(pos, &sec->table.keys, list) { in mac802154_llsec_key_add() 224 if (llsec_key_id_equal(&pos->id, id)) in mac802154_llsec_key_add() 227 if (memcmp(pos->key->key, key->key, in mac802154_llsec_key_add() 231 mkey = container_of(pos->key, struct mac802154_llsec_key, key); in mac802154_llsec_key_add() 237 if (pos->key->frame_types != key->frame_types || in mac802154_llsec_key_add() 238 pos->key->cmd_frame_ids != key->cmd_frame_ids) in mac802154_llsec_key_add() 271 struct ieee802154_llsec_key_entry *pos; in mac802154_llsec_key_del() local 273 list_for_each_entry(pos, &sec->table.keys, list) { in mac802154_llsec_key_del() 276 mkey = container_of(pos->key, struct mac802154_llsec_key, key); in mac802154_llsec_key_del() [all …]
|
/net/netfilter/ |
D | xt_u32.c | 26 u_int32_t pos; in u32_match_it() local 37 pos = ct->location[0].number; in u32_match_it() 39 if (skb->len < 4 || pos > skb->len - 4) in u32_match_it() 42 if (skb_copy_bits(skb, pos, &n, sizeof(n)) < 0) in u32_match_it() 64 pos = number; in u32_match_it() 66 pos > skb->len - at - 4) in u32_match_it() 69 if (skb_copy_bits(skb, at + pos, &n, in u32_match_it()
|
D | xt_policy.c | 58 int i, pos; in match_policy_in() local 66 pos = strict ? i - sp->len + 1 : 0; in match_policy_in() 67 if (pos >= info->len) in match_policy_in() 69 e = &info->pol[pos]; in match_policy_in() 88 int i, pos; in match_policy_out() local 95 pos = strict ? i : 0; in match_policy_out() 96 if (pos >= info->len) in match_policy_out() 98 e = &info->pol[pos]; in match_policy_out()
|