Searched refs:pos (Results 1 - 25 of 161) sorted by relevance

1234567

/net/ieee802154/
H A Dheader_ops.c25 int pos = 0; local
31 memcpy(buf + pos, &addr->pan_id, 2);
32 pos += 2;
37 memcpy(buf + pos, &addr->short_addr, 2);
38 pos += 2;
42 memcpy(buf + pos, &addr->extended_addr, IEEE802154_ADDR_LEN);
43 pos += IEEE802154_ADDR_LEN;
50 return pos;
56 int pos = 5; local
63 return pos;
88 int pos = 2; local
124 memcpy(skb_push(skb, pos), buf, pos); local
134 int pos = 0; local
170 int pos = 5; local
227 int pos = 0; local
243 int pos = 3, rc; local
274 int pos = 3, rc; local
294 int pos; local
[all...]
/net/wireless/
H A Dlib80211_crypt_wep.c96 u8 *pos; local
101 pos = skb_push(skb, 4);
102 memmove(pos, pos + 4, hdr_len);
103 pos += hdr_len;
119 *pos++ = (wep->iv >> 16) & 0xff;
120 *pos++ = (wep->iv >> 8) & 0xff;
121 *pos++ = wep->iv & 0xff;
122 *pos++ = wep->key_idx << 6;
138 u8 *pos, *ic local
186 u8 keyidx, *pos, icv[4]; local
[all...]
H A Dlib80211_crypt_ccmp.c115 u8 *pos, qc = 0; local
127 pos = (u8 *) & hdr->addr4;
129 pos += 6;
130 qc = *pos & 0x0f;
153 pos = (u8 *) hdr;
156 aad[2] = pos[0] & 0x8f;
157 aad[3] = pos[1] & 0xc7;
159 pos = (u8 *) & hdr->seq_ctrl;
160 aad[22] = pos[0] & 0x0f;
186 u8 *pos; local
222 u8 *pos, *mic; local
288 u8 keyidx, *pos; local
[all...]
H A Dwext-proc.c90 static void *wireless_dev_seq_start(struct seq_file *seq, loff_t *pos) argument
97 if (!*pos)
102 if (off++ == *pos)
107 static void *wireless_dev_seq_next(struct seq_file *seq, void *v, loff_t *pos) argument
111 ++*pos;
/net/sctp/
H A Dobjcnt.c91 static void *sctp_objcnt_seq_start(struct seq_file *seq, loff_t *pos) argument
93 return (*pos >= ARRAY_SIZE(sctp_dbg_objcnt)) ? NULL : (void *)pos;
100 static void *sctp_objcnt_seq_next(struct seq_file *seq, void *v, loff_t *pos) argument
102 ++*pos;
103 return (*pos >= ARRAY_SIZE(sctp_dbg_objcnt)) ? NULL : (void *)pos;
H A Dulpqueue.c284 struct sk_buff *pos; local
291 pos = skb_peek_tail(&ulpq->reasm);
292 if (!pos) {
298 cevent = sctp_skb2event(pos);
306 skb_queue_walk(&ulpq->reasm, pos) {
307 cevent = sctp_skb2event(pos);
314 /* Insert before pos. */
315 __skb_queue_before(&ulpq->reasm, pos, sctp_event2skb(event));
330 struct sk_buff *pos; local
338 pos
408 struct sk_buff *pos; local
517 struct sk_buff *pos, *last_frag, *first_frag; local
617 struct sk_buff *pos, *last_frag, *first_frag; local
695 struct sk_buff *pos, *tmp; local
757 struct sk_buff *pos, *tmp; local
798 struct sk_buff *pos; local
884 struct sk_buff *pos, *tmp; local
[all...]
H A Dproc.c180 static void *sctp_eps_seq_start(struct seq_file *seq, loff_t *pos) argument
182 if (*pos >= sctp_ep_hashsize)
185 if (*pos < 0)
186 *pos = 0;
188 if (*pos == 0)
191 return (void *)pos;
199 static void *sctp_eps_seq_next(struct seq_file *seq, void *v, loff_t *pos) argument
201 if (++*pos >= sctp_ep_hashsize)
204 return pos;
285 static void *sctp_assocs_seq_start(struct seq_file *seq, loff_t *pos) argument
308 sctp_assocs_seq_next(struct seq_file *seq, void *v, loff_t *pos) argument
410 sctp_remaddr_seq_start(struct seq_file *seq, loff_t *pos) argument
425 sctp_remaddr_seq_next(struct seq_file *seq, void *v, loff_t *pos) argument
[all...]
/net/appletalk/
H A Datalk_proc.c20 static __inline__ struct atalk_iface *atalk_get_interface_idx(loff_t pos) argument
24 for (i = atalk_interfaces; pos && i; i = i->next)
25 --pos;
30 static void *atalk_seq_interface_start(struct seq_file *seq, loff_t *pos)
33 loff_t l = *pos;
39 static void *atalk_seq_interface_next(struct seq_file *seq, void *v, loff_t *pos) argument
43 ++*pos;
81 static __inline__ struct atalk_route *atalk_get_route_idx(loff_t pos) argument
85 for (r = atalk_routes; pos && r; r = r->next)
86 --pos;
100 atalk_seq_route_next(struct seq_file *seq, void *v, loff_t *pos) argument
155 atalk_seq_socket_next(struct seq_file *seq, void *v, loff_t *pos) argument
[all...]
/net/atm/
H A Dresources.h23 void *atm_dev_seq_start(struct seq_file *seq, loff_t *pos);
25 void *atm_dev_seq_next(struct seq_file *seq, void *v, loff_t *pos);
/net/core/
H A Dnet-procfs.c15 static inline struct net_device *dev_from_same_bucket(struct seq_file *seq, loff_t *pos) argument
20 unsigned int count = 0, offset = get_offset(*pos);
22 h = &net->dev_name_head[get_bucket(*pos)];
31 static inline struct net_device *dev_from_bucket(struct seq_file *seq, loff_t *pos) argument
37 dev = dev_from_same_bucket(seq, pos);
41 bucket = get_bucket(*pos) + 1;
42 *pos = set_bucket_offset(bucket, 1);
52 static void *dev_seq_start(struct seq_file *seq, loff_t *pos)
56 if (!*pos)
59 if (get_bucket(*pos) >
65 dev_seq_next(struct seq_file *seq, void *v, loff_t *pos) argument
118 softnet_get_online(loff_t *pos) argument
131 softnet_seq_start(struct seq_file *seq, loff_t *pos) argument
136 softnet_seq_next(struct seq_file *seq, void *v, loff_t *pos) argument
210 ptype_get_idx(loff_t pos) argument
239 ptype_seq_next(struct seq_file *seq, void *v, loff_t *pos) argument
[all...]
/net/mac80211/
H A Daes_cmac.c43 const u8 *pos, *end; local
54 pos = addr[0];
55 end = pos + len[0];
59 cbc[i] ^= *pos++;
60 if (pos >= end) {
62 pos = addr[e];
63 end = pos + len[e];
77 cbc[i] ^= *pos++;
78 if (pos >= end) {
80 pos
[all...]
H A Dutil.c752 const u8 *pos = start; local
766 id = *pos++;
767 elen = *pos++;
813 pos += elen;
820 crc = crc32_be(crc, pos - 2, elen + 2);
826 elems->ssid = pos;
830 elems->supp_rates = pos;
835 elems->ds_params = pos;
841 elems->tim = (void *)pos;
847 elems->challenge = pos;
1258 u8 *pos = buffer, *end = buffer + buffer_len; local
1414 size_t pos = 0, old_pos = 0, custom_ie_offset = 0; local
2083 size_t pos = offset; local
2093 size_t pos = offset; local
2141 ieee80211_ie_build_ht_cap(u8 *pos, struct ieee80211_sta_ht_cap *ht_cap, u16 cap) argument
2176 ieee80211_ie_build_vht_cap(u8 *pos, struct ieee80211_sta_vht_cap *vht_cap, u32 cap) argument
2197 ieee80211_ie_build_ht_oper(u8 *pos, struct ieee80211_sta_ht_cap *ht_cap, const struct cfg80211_chan_def *chandef, u16 prot_mode) argument
2304 u8 i, rates, *pos; local
2349 u8 i, exrates, *pos; local
2643 u8 *pos; local
[all...]
H A Dmesh.c252 u8 *pos, neighbors; local
258 pos = skb_put(skb, 2 + meshconf_len);
259 *pos++ = WLAN_EID_MESH_CONFIG;
260 *pos++ = meshconf_len;
263 ifmsh->meshconf_offset = pos - skb->data;
266 *pos++ = ifmsh->mesh_pp_id;
268 *pos++ = ifmsh->mesh_pm_id;
270 *pos++ = ifmsh->mesh_cc_id;
272 *pos++ = ifmsh->mesh_sp_id;
274 *pos
298 u8 *pos; local
316 u8 *pos; local
387 u8 *pos; local
415 u8 *pos; local
443 u8 *pos; local
614 u8 *pos; local
953 u8 *pos; local
1115 u8 *pos = mgmt->u.action.u.chan_switch.variable; local
1149 u8 *pos; local
[all...]
H A Ddebugfs_sta.c402 char *buf, int pos, int bufsz)
408 pos += scnprintf(buf + pos, bufsz - pos,
411 pos += scnprintf(buf + pos, bufsz - pos,
414 pos += scnprintf(buf + pos, bufsz - pos, "\
401 sta_tx_latency_stat_header(struct ieee80211_tx_latency_bin_ranges *tx_latency, char *buf, int pos, int bufsz) argument
426 sta_tx_latency_stat_table(struct ieee80211_tx_latency_bin_ranges *tx_lat_range, struct ieee80211_tx_latency_stat *tx_lat, char *buf, int pos, int bufsz, int tid) argument
463 int pos = 0; local
[all...]
H A Dtkip.c69 static u8 *write_tkip_iv(u8 *pos, u16 iv16) argument
71 *pos++ = iv16 >> 8;
72 *pos++ = ((iv16 >> 8) | 0x20) & 0x7f;
73 *pos++ = iv16 & 0xFF;
74 return pos;
142 /* Add TKIP IV and Ext. IV at @pos. @iv0, @iv1, and @iv2 are the first octets
145 u8 *ieee80211_tkip_add_iv(u8 *pos, struct ieee80211_key *key) argument
149 pos = write_tkip_iv(pos, key->u.tkip.tx.iv16);
150 *pos
250 u8 rc4key[16], keyid, *pos = payload; local
[all...]
H A Dmesh_hwmp.c115 u8 *pos, ie_len; local
142 pos = skb_put(skb, 2 + ie_len);
143 *pos++ = WLAN_EID_PREQ;
148 pos = skb_put(skb, 2 + ie_len);
149 *pos++ = WLAN_EID_PREP;
154 pos = skb_put(skb, 2 + ie_len);
155 *pos++ = WLAN_EID_RANN;
161 *pos++ = ie_len;
162 *pos++ = flags;
163 *pos
247 u8 *pos, ie_len; local
[all...]
H A Dtkip.h16 u8 *ieee80211_tkip_add_iv(u8 *pos, struct ieee80211_key *key);
/net/netfilter/
H A Dxt_u32.c25 u_int32_t pos; local
36 pos = ct->location[0].number;
38 if (skb->len < 4 || pos > skb->len - 4)
41 if (skb_copy_bits(skb, pos, &n, sizeof(n)) < 0)
63 pos = number;
65 pos > skb->len - at - 4)
68 if (skb_copy_bits(skb, at + pos, &n,
/net/sunrpc/auth_gss/
H A Dgss_mech_switch.c152 struct gss_api_mech *pos, *gm = NULL; local
155 list_for_each_entry(pos, &registered_mechs, gm_list) {
156 if (0 == strcmp(name, pos->gm_name)) {
157 if (try_module_get(pos->gm_owner))
158 gm = pos;
181 struct gss_api_mech *pos, *gm = NULL; local
190 list_for_each_entry(pos, &registered_mechs, gm_list) {
191 if (obj->len == pos->gm_oid.len) {
192 if (0 == memcmp(obj->data, pos->gm_oid.data, obj->len)) {
193 if (try_module_get(pos
217 struct gss_api_mech *gm = NULL, *pos; local
257 struct gss_api_mech *pos = NULL; local
[all...]
/net/xfrm/
H A Dxfrm_ipcomp.c249 struct ipcomp_tfms *pos; local
252 list_for_each_entry(pos, &ipcomp_tfms_list, list) {
253 if (pos->tfms == tfms)
257 WARN_ON(!pos);
259 if (--pos->users)
262 list_del(&pos->list);
263 kfree(pos);
277 struct ipcomp_tfms *pos; local
282 list_for_each_entry(pos, &ipcomp_tfms_list, list) {
286 tfm = __this_cpu_read(*pos
[all...]
H A Dxfrm_replay.c199 u32 pos; local
217 pos = (replay_esn->seq - 1) % replay_esn->replay_window;
219 if (pos >= diff)
220 bitnr = (pos - diff) % replay_esn->replay_window;
222 bitnr = replay_esn->replay_window - (diff - pos);
244 u32 pos; local
249 pos = (replay_esn->seq - 1) % replay_esn->replay_window;
256 bitnr = (pos + i) % replay_esn->replay_window;
267 bitnr = (pos + diff) % replay_esn->replay_window;
272 if (pos >
438 u32 pos; local
507 u32 diff, pos, seq, seq_hi; local
[all...]
/net/ipv4/netfilter/
H A Dnf_conntrack_l3proto_ipv4_compat.c67 static struct hlist_nulls_node *ct_get_idx(struct seq_file *seq, loff_t pos) argument
72 while (pos && (head = ct_get_next(seq, head)))
73 pos--;
74 return pos ? NULL : head;
77 static void *ct_seq_start(struct seq_file *seq, loff_t *pos)
81 return ct_get_idx(seq, *pos);
84 static void *ct_seq_next(struct seq_file *s, void *v, loff_t *pos) argument
86 (*pos)++;
249 static struct hlist_node *ct_expect_get_idx(struct seq_file *seq, loff_t pos) argument
254 while (pos
266 exp_seq_next(struct seq_file *seq, void *v, loff_t *pos) argument
324 ct_cpu_seq_start(struct seq_file *seq, loff_t *pos) argument
342 ct_cpu_seq_next(struct seq_file *seq, void *v, loff_t *pos) argument
[all...]
/net/ipx/
H A Dipx_proc.c17 static void *ipx_seq_interface_start(struct seq_file *seq, loff_t *pos) argument
20 return seq_list_start_head(&ipx_interfaces, *pos);
23 static void *ipx_seq_interface_next(struct seq_file *seq, void *v, loff_t *pos) argument
25 return seq_list_next(v, &ipx_interfaces, pos);
63 static void *ipx_seq_route_start(struct seq_file *seq, loff_t *pos) argument
66 return seq_list_start_head(&ipx_routes, *pos);
69 static void *ipx_seq_route_next(struct seq_file *seq, void *v, loff_t *pos) argument
71 return seq_list_next(v, &ipx_routes, pos);
103 static __inline__ struct sock *ipx_get_socket_idx(loff_t pos) argument
111 if (!pos)
127 ipx_seq_socket_start(struct seq_file *seq, loff_t *pos) argument
135 ipx_seq_socket_next(struct seq_file *seq, void *v, loff_t *pos) argument
[all...]
/net/x25/
H A Dx25_proc.c30 static void *x25_seq_route_start(struct seq_file *seq, loff_t *pos)
34 return seq_list_start_head(&x25_route_list, *pos);
37 static void *x25_seq_route_next(struct seq_file *seq, void *v, loff_t *pos) argument
39 return seq_list_next(v, &x25_route_list, pos);
65 static void *x25_seq_socket_start(struct seq_file *seq, loff_t *pos)
69 return seq_hlist_start_head(&x25_list, *pos);
72 static void *x25_seq_socket_next(struct seq_file *seq, void *v, loff_t *pos) argument
74 return seq_hlist_next(v, &x25_list, pos);
118 static void *x25_seq_forward_start(struct seq_file *seq, loff_t *pos)
122 return seq_list_start_head(&x25_forward_list, *pos);
125 x25_seq_forward_next(struct seq_file *seq, void *v, loff_t *pos) argument
[all...]
/net/mac802154/
H A Dllsec.c226 struct ieee802154_llsec_key_entry *pos, *new; local
232 list_for_each_entry(pos, &sec->table.keys, list) {
233 if (llsec_key_id_equal(&pos->id, id))
236 if (memcmp(pos->key->key, key->key,
240 mkey = container_of(pos->key, struct mac802154_llsec_key, key);
246 if (pos->key->frame_types != key->frame_types ||
247 pos->key->cmd_frame_ids != key->cmd_frame_ids)
280 struct ieee802154_llsec_key_entry *pos; local
282 list_for_each_entry(pos, &sec->table.keys, list) {
285 mkey = container_of(pos
347 struct ieee802154_llsec_device_key *pos, *pn; local
401 struct mac802154_llsec_device *pos; local
484 struct ieee802154_llsec_seclevel *pos; local
523 struct mac802154_llsec_seclevel *pos; local
[all...]

Completed in 302 milliseconds

1234567