Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 25 of 180) sorted by relevance

12345678

/net/ieee802154/
A Dheader_ops.c18 int pos = 0; in ieee802154_hdr_push_addr() local
25 pos += 2; in ieee802154_hdr_push_addr()
31 pos += 2; in ieee802154_hdr_push_addr()
43 return pos; in ieee802154_hdr_push_addr()
63 pos += 4; in ieee802154_hdr_push_sechdr()
74 return pos; in ieee802154_hdr_push_sechdr()
92 pos += rc; in ieee802154_hdr_push()
103 pos += rc; in ieee802154_hdr_push()
117 memcpy(skb_push(skb, pos), buf, pos); in ieee802154_hdr_push()
338 pos += ieee802154_hdr_get_addrs(buf + pos, hdr); in ieee802154_hdr_peek_addrs()
[all …]
/net/sctp/
A Dulpqueue.c278 if (!pos) { in sctp_ulpq_store_reasm()
325 pos = NULL; in sctp_make_reassembled_event()
337 last->next = pos; in sctp_make_reassembled_event()
365 while (pos) { in sctp_make_reassembled_event()
367 pnext = pos->next; in sctp_make_reassembled_event()
377 if (pos == l_frag) in sctp_make_reassembled_event()
379 pos->next = pnext; in sctp_make_reassembled_event()
380 pos = pnext; in sctp_make_reassembled_event()
445 first_frag = pos; in sctp_ulpq_retrieve_reassembled()
547 last_frag = pos; in sctp_ulpq_retrieve_partial()
[all …]
A Dstream_interleave.c131 if (!pos) { in sctp_intl_store_reasm()
161 loc = pos; in sctp_intl_store_reasm()
169 loc = pos; in sctp_intl_store_reasm()
290 pd_first = pos; in sctp_intl_retrieve_reassembled()
291 pd_last = pos; in sctp_intl_retrieve_reassembled()
305 pd_last = pos; in sctp_intl_retrieve_reassembled()
379 if (!pos) { in sctp_intl_store_ordered()
401 loc = pos; in sctp_intl_store_ordered()
406 loc = pos; in sctp_intl_store_ordered()
516 if (!pos) { in sctp_intl_store_reasm_uo()
[all …]
A Dstream_sched_fc.c86 struct sctp_stream_out_ext *pos; in sctp_sched_fc_sched() local
93 (__u64)soute->fc_length * pos->fc_weight) in sctp_sched_fc_sched()
95 list_add_tail(&soute->fc_list, &pos->fc_list); in sctp_sched_fc_sched()
136 struct sctp_stream_out_ext *soute, *pos; in sctp_sched_fc_dequeue_done() local
144 pos = SCTP_SO(stream, i)->ext; in sctp_sched_fc_dequeue_done()
145 if (!pos) in sctp_sched_fc_dequeue_done()
147 if (pos->fc_length <= (U32_MAX >> 2)) { in sctp_sched_fc_dequeue_done()
148 pos->fc_length = 0; in sctp_sched_fc_dequeue_done()
151 pos->fc_length -= (U32_MAX >> 2); in sctp_sched_fc_dequeue_done()
161 pos = soute; in sctp_sched_fc_dequeue_done()
[all …]
A Dobjcnt.c74 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()
A Dproc.c132 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()
153 if (++*pos >= sctp_ep_hashsize) in sctp_eps_seq_next()
156 return pos; in sctp_eps_seq_next()
203 static void *sctp_transport_seq_start(struct seq_file *seq, loff_t *pos) in sctp_transport_seq_start() argument
209 return sctp_transport_get_idx(seq_file_net(seq), &iter->hti, *pos); in sctp_transport_seq_start()
[all …]
/net/mac80211/
A Dparse.c381 elems->ssid = pos; in _ieee802_11_parse_elems_full()
407 if (elen >= 4 && pos[0] == 0x00 && pos[1] == 0x50 && in _ieee802_11_parse_elems_full()
427 elems->rsn = pos; in _ieee802_11_parse_elems_full()
512 elems->preq = pos; in _ieee802_11_parse_elems_full()
516 elems->prep = pos; in _ieee802_11_parse_elems_full()
520 elems->perr = pos; in _ieee802_11_parse_elems_full()
609 pos, elen); in _ieee802_11_parse_elems_full()
623 pos, elen); in _ieee802_11_parse_elems_full()
653 if (pos[0] != 0x00 || pos[1] != 0x40 || in _ieee802_11_parse_elems_full()
654 pos[2] != 0x96 || pos[3] != 0x00) in _ieee802_11_parse_elems_full()
[all …]
A Dstatus.c332 pos++; in ieee80211_add_tx_radiotap_header()
356 pos = (u8 *)rthdr + ALIGN(pos - (u8 *)rthdr, 2); in ieee80211_add_tx_radiotap_header()
365 pos++; in ieee80211_add_tx_radiotap_header()
382 pos++; in ieee80211_add_tx_radiotap_header()
390 pos++; in ieee80211_add_tx_radiotap_header()
392 pos++; in ieee80211_add_tx_radiotap_header()
403 pos = (u8 *)rthdr + ALIGN(pos - (u8 *)rthdr, 2); in ieee80211_add_tx_radiotap_header()
505 pos++; in ieee80211_add_tx_radiotap_header()
516 pos++; in ieee80211_add_tx_radiotap_header()
524 pos++; in ieee80211_add_tx_radiotap_header()
[all …]
A Dmesh.c314 u8 *pos; in mesh_add_meshid_ie() local
332 u8 *pos; in mesh_add_awake_window_ie() local
403 u8 *pos; in mesh_add_ds_params_ie() local
429 u8 *pos; in mesh_add_ht_cap_ie() local
462 u8 *pos; in mesh_add_ht_oper_ie() local
501 u8 *pos; in mesh_add_vht_cap_ie() local
534 u8 *pos; in mesh_add_vht_oper_ie() local
591 u8 *pos; in mesh_add_he_oper_ie() local
659 u8 *pos; in mesh_add_eht_oper_ie() local
957 u8 *pos; in ieee80211_mesh_build_beacon() local
[all …]
A Dtkip.c69 *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()
145 pos = write_tkip_iv(pos, TKIP_PN_TO_IV16(pn)); in ieee80211_tkip_add_iv()
148 return pos + 4; in ieee80211_tkip_add_iv()
247 u8 rc4key[16], keyid, *pos = payload; in ieee80211_tkip_decrypt_data() local
255 iv16 = (pos[0] << 8) | pos[2]; in ieee80211_tkip_decrypt_data()
256 keyid = pos[3]; in ieee80211_tkip_decrypt_data()
257 iv32 = get_unaligned_le32(pos + 4); in ieee80211_tkip_decrypt_data()
[all …]
A Dmesh_hwmp.c164 pos += 4; in mesh_path_sel_frame_tx()
168 pos += 4; in mesh_path_sel_frame_tx()
173 pos += 4; in mesh_path_sel_frame_tx()
176 pos += 4; in mesh_path_sel_frame_tx()
178 pos += 4; in mesh_path_sel_frame_tx()
185 pos += 4; in mesh_path_sel_frame_tx()
190 pos += 4; in mesh_path_sel_frame_tx()
277 *pos++ = 1; in mesh_path_error_tx()
281 *pos = 0; in mesh_path_error_tx()
282 pos++; in mesh_path_error_tx()
[all …]
A Dutil.c1278 u8 *pos; in ieee80211_put_preq_ies_band() local
1323 u8 *pos; in ieee80211_put_preq_ies_band() local
2358 pos += 2 + ies[pos + 1]; in ieee80211_ie_split_vendor()
2360 return pos; in ieee80211_ie_split_vendor()
2395 return pos; in ieee80211_ie_build_ht_cap()
2416 return pos; in ieee80211_ie_build_vht_cap()
2862 return pos; in ieee80211_ie_build_he_oper()
3691 u8 *pos; in ieee80211_send_action_csa() local
3753 pos += 2; in ieee80211_send_action_csa()
3755 pos += 2; in ieee80211_send_action_csa()
[all …]
A Dtdls.c60 *pos++ = 0x0; in ieee80211_tdls_add_ext_capab()
61 *pos++ = 0x0; in ieee80211_tdls_add_ext_capab()
62 *pos++ = 0x0; in ieee80211_tdls_add_ext_capab()
66 *pos++ = 0; in ieee80211_tdls_add_ext_capab()
67 *pos++ = 0; in ieee80211_tdls_add_ext_capab()
109 *pos++ = ch_cnt; in ieee80211_tdls_add_subband()
120 *pos++ = ch_cnt; in ieee80211_tdls_add_subband()
159 u8 *pos; in ieee80211_tdls_add_oper_classes() local
170 *pos++ = op_class; in ieee80211_tdls_add_oper_classes()
379 u8 *pos; in ieee80211_tdls_add_setup_start_ies() local
[all …]
A Dibss.c49 u8 *pos; in ieee80211_ibss_build_presp() local
125 *pos++ = 1; in ieee80211_ibss_build_presp()
131 *pos++ = 2; in ieee80211_ibss_build_presp()
133 *pos++ = 0; in ieee80211_ibss_build_presp()
134 *pos++ = 0; in ieee80211_ibss_build_presp()
138 *pos++ = 3; in ieee80211_ibss_build_presp()
178 pos = ieee80211_ie_build_ht_cap(pos, &ht_cap, ht_cap.cap); in ieee80211_ibss_build_presp()
184 pos = ieee80211_ie_build_ht_oper(pos, &sband->ht_cap, in ieee80211_ibss_build_presp()
191 pos = ieee80211_ie_build_vht_cap(pos, &sband->vht_cap, in ieee80211_ibss_build_presp()
193 pos = ieee80211_ie_build_vht_oper(pos, &sband->vht_cap, in ieee80211_ibss_build_presp()
[all …]
A Ddebugfs.c155 char buf[128] = {}, *pos, *end; in airtime_flags_read() local
157 pos = buf; in airtime_flags_read()
158 end = pos + sizeof(buf) - 1; in airtime_flags_read()
161 pos += scnprintf(pos, end - pos, "AIRTIME_TX\t(%lx)\n", in airtime_flags_read()
164 pos += scnprintf(pos, end - pos, "AIRTIME_RX\t(%lx)\n", in airtime_flags_read()
504 char *pos = buf, *end = buf + bufsz - 1; in hwflags_read() local
518 pos += scnprintf(pos, end - pos, "%s\n", in hwflags_read()
574 char *pos, *end; in misc_read() local
583 pos = buf; in misc_read()
586 pos += scnprintf(pos, end - pos, "pending:\n"); in misc_read()
[all …]
/net/core/
A Dnet-procfs.c16 *pos = dev->ifindex; in dev_seq_from_index()
26 if (!*pos) in dev_seq_start()
34 ++*pos; in dev_seq_next()
104 ++*pos; in softnet_get_online()
115 ++*pos; in softnet_seq_next()
183 if (i == pos) in ptype_get_idx()
190 if (i == pos) in ptype_get_idx()
196 if (i == pos) in ptype_get_idx()
203 if (i == pos) in ptype_get_idx()
215 return *pos ? ptype_get_idx(seq, *pos - 1) : SEQ_START_TOKEN; in ptype_seq_start()
[all …]
/net/mptcp/
A Dtoken.c58 struct hlist_nulls_node *pos; in __token_lookup_req() local
70 struct hlist_nulls_node *pos; in __token_lookup_msk() local
194 struct mptcp_subflow_request_sock *pos; in mptcp_token_accept() local
204 if (!WARN_ON_ONCE(pos != req)) in mptcp_token_accept()
212 struct hlist_nulls_node *pos; in mptcp_token_exists() local
248 struct hlist_nulls_node *pos; in mptcp_token_get_sock() local
301 struct hlist_nulls_node *pos; in mptcp_token_iter_next() local
353 struct mptcp_subflow_request_sock *pos; in mptcp_token_destroy_request() local
362 if (!WARN_ON_ONCE(pos != subflow_req)) { in mptcp_token_destroy_request()
379 struct mptcp_sock *pos; in mptcp_token_destroy() local
[all …]
/net/appletalk/
A Datalk_proc.c17 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()
30 loff_t l = *pos; in atalk_seq_interface_start()
40 ++*pos; in atalk_seq_interface_next()
82 for (r = atalk_routes; pos && r; r = r->next) in atalk_get_route_idx()
83 --pos; in atalk_get_route_idx()
91 loff_t l = *pos; in atalk_seq_route_start()
101 ++*pos; in atalk_seq_route_next()
149 return seq_hlist_start_head(&atalk_sockets, *pos); in atalk_seq_socket_start()
[all …]
/net/sunrpc/
A Dxprtmultipath.c265 struct rpc_xprt *pos; in xprt_switch_find_first_entry() local
269 return pos; in xprt_switch_find_first_entry()
277 struct rpc_xprt *pos; in xprt_switch_find_first_entry_offline() local
281 return pos; in xprt_switch_find_first_entry_offline()
301 struct rpc_xprt *pos; in _xprt_switch_find_current_entry() local
305 if (cur == pos) in _xprt_switch_find_current_entry()
309 return pos; in _xprt_switch_find_current_entry()
365 struct rpc_xprt *pos; in __rpc_xprt_switch_has_addr() local
409 return pos; in xprt_switch_find_next_entry()
410 prev = pos; in xprt_switch_find_next_entry()
[all …]
/net/x25/
A Dx25_proc.c25 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()
112 static void *x25_seq_forward_start(struct seq_file *seq, loff_t *pos) in x25_seq_forward_start() argument
116 return seq_list_start_head(&x25_forward_list, *pos); in x25_seq_forward_start()
[all …]
/net/mac802154/
A Dllsec.c277 kfree_sensitive(pos); in mac802154_llsec_key_del_rcu()
287 list_del_rcu(&pos->list); in mac802154_llsec_key_del()
351 list_del(&pos->list); in llsec_dev_free()
398 struct mac802154_llsec_device *pos; in mac802154_llsec_dev_del() local
401 if (!pos) in mac802154_llsec_dev_del()
404 hash_del_rcu(&pos->bucket_s); in mac802154_llsec_dev_del()
405 hash_del_rcu(&pos->bucket_hw); in mac802154_llsec_dev_del()
406 list_del_rcu(&pos->dev.list); in mac802154_llsec_dev_del()
520 if (!pos) in mac802154_llsec_seclevel_del()
523 list_del_rcu(&pos->level.list); in mac802154_llsec_seclevel_del()
[all …]
/net/sunrpc/auth_gss/
A Dgss_mech_switch.c133 struct gss_api_mech *pos, *gm = NULL; in _gss_mech_get_by_name() local
137 if (0 == strcmp(name, pos->gm_name)) { in _gss_mech_get_by_name()
138 if (try_module_get(pos->gm_owner)) in _gss_mech_get_by_name()
139 gm = pos; in _gss_mech_get_by_name()
162 struct gss_api_mech *pos, *gm = NULL; in gss_mech_get_by_OID() local
171 if (obj->len == pos->gm_oid.len) { in gss_mech_get_by_OID()
173 if (try_module_get(pos->gm_owner)) in gss_mech_get_by_OID()
174 gm = pos; in gss_mech_get_by_OID()
199 struct gss_api_mech *gm = NULL, *pos; in _gss_mech_get_by_pseudoflavor() local
205 if (try_module_get(pos->gm_owner)) in _gss_mech_get_by_pseudoflavor()
[all …]
/net/netfilter/
A Dnf_flow_table_procfs.c6 static void *nf_flow_table_cpu_seq_start(struct seq_file *seq, loff_t *pos) in nf_flow_table_cpu_seq_start() argument
11 if (*pos == 0) in nf_flow_table_cpu_seq_start()
14 for (cpu = *pos - 1; cpu < nr_cpu_ids; ++cpu) { in nf_flow_table_cpu_seq_start()
17 *pos = cpu + 1; in nf_flow_table_cpu_seq_start()
24 static void *nf_flow_table_cpu_seq_next(struct seq_file *seq, void *v, loff_t *pos) in nf_flow_table_cpu_seq_next() argument
29 for (cpu = *pos; cpu < nr_cpu_ids; ++cpu) { in nf_flow_table_cpu_seq_next()
32 *pos = cpu + 1; in nf_flow_table_cpu_seq_next()
35 (*pos)++; in nf_flow_table_cpu_seq_next()
/net/8021q/
A Dvlanproc.c37 static void *vlan_seq_start(struct seq_file *seq, loff_t *pos);
38 static void *vlan_seq_next(struct seq_file *seq, void *v, loff_t *pos);
166 static void *vlan_seq_from_index(struct seq_file *seq, loff_t *pos) in vlan_seq_from_index() argument
168 unsigned long ifindex = *pos; in vlan_seq_from_index()
174 *pos = dev->ifindex; in vlan_seq_from_index()
180 static void *vlan_seq_start(struct seq_file *seq, loff_t *pos) in vlan_seq_start() argument
184 if (*pos == 0) in vlan_seq_start()
187 return vlan_seq_from_index(seq, pos); in vlan_seq_start()
190 static void *vlan_seq_next(struct seq_file *seq, void *v, loff_t *pos) in vlan_seq_next() argument
192 ++*pos; in vlan_seq_next()
[all …]
/net/xfrm/
A Dxfrm_replay.c218 u32 pos; in xfrm_replay_check_bmp() local
238 if (pos >= diff) in xfrm_replay_check_bmp()
239 bitnr = (pos - diff) % replay_esn->replay_window; in xfrm_replay_check_bmp()
241 bitnr = replay_esn->replay_window - (diff - pos); in xfrm_replay_check_bmp()
263 u32 pos; in xfrm_replay_advance_bmp() local
275 bitnr = (pos + i) % replay_esn->replay_window; in xfrm_replay_advance_bmp()
291 if (pos >= diff) in xfrm_replay_advance_bmp()
457 u32 pos; in xfrm_replay_check_esn() local
491 if (pos >= diff) in xfrm_replay_check_esn()
557 u32 diff, pos, seq, seq_hi; in xfrm_replay_advance_esn() local
[all …]

Completed in 874 milliseconds

12345678