Searched defs:idx (Results 1 - 25 of 64) sorted by relevance

123

/net/ipv6/netfilter/
H A Dip6t_NPT.c46 unsigned int i, idx; local
57 idx = i / 32;
58 addr->s6_addr32[idx] &= mask;
59 addr->s6_addr32[idx] |= ~mask & npt->dst_pfx.in6.s6_addr32[idx];
63 idx = 3;
65 for (idx = 4; idx < ARRAY_SIZE(addr->s6_addr16); idx++) {
66 if ((__force __sum16)addr->s6_addr16[idx] !
[all...]
/net/mac80211/
H A Drc80211_minstrel_ht_debugfs.c39 int idx = i * MCS_GROUP_RATES + j; local
49 *(p++) = (idx == mi->max_tp_rate) ? 'T' : ' ';
50 *(p++) = (idx == mi->max_tp_rate2) ? 't' : ' ';
51 *(p++) = (idx == mi->max_prob_rate) ? 'P' : ' ';
H A Dkey.c198 int idx, bool uni, bool multi)
204 if (idx >= 0 && idx < NUM_DEFAULT_KEYS)
205 key = key_mtx_dereference(sdata->local, sdata->keys[idx]);
209 drv_set_default_unicast_key(sdata->local, sdata, idx);
218 void ieee80211_set_default_key(struct ieee80211_sub_if_data *sdata, int idx, argument
222 __ieee80211_set_default_key(sdata, idx, uni, multi);
227 __ieee80211_set_default_mgmt_key(struct ieee80211_sub_if_data *sdata, int idx) argument
233 if (idx >= NUM_DEFAULT_KEYS &&
234 idx < NUM_DEFAULT_KEY
197 __ieee80211_set_default_key(struct ieee80211_sub_if_data *sdata, int idx, bool uni, bool multi) argument
242 ieee80211_set_default_mgmt_key(struct ieee80211_sub_if_data *sdata, int idx) argument
257 int idx; local
312 ieee80211_key_alloc(u32 cipher, int idx, size_t key_len, const u8 *key_data, size_t seq_len, const u8 *seq) argument
459 int idx, ret; local
[all...]
H A Drate.c213 static void rc_send_low_broadcast(s8 *idx, u32 basic_rates, argument
220 if (*idx < 0)
222 if (basic_rates & (1 << *idx))
225 for (i = *idx + 1; i <= sband->n_bitrates; i++) {
227 *idx = i;
262 info->control.rates[0].idx = rate_lowest_index(sband, sta);
264 info->control.rates[0].idx =
289 info->control.rates[0].idx = mcast_rate - 1;
293 rc_send_low_broadcast(&info->control.rates[0].idx,
309 for (j = rate->idx;
[all...]
H A Drc80211_minstrel.c88 int offset, int idx)
90 struct minstrel_rate *r = &mi->r[idx];
92 ratetbl->rate[offset].idx = r->rix;
122 ratetbl->rate[i].idx = mi->lowest_rix;
227 if (ar[i].idx < 0)
230 ndx = rix_to_ndx(mi, ar[i].idx);
236 if ((i != IEEE80211_TX_MAX_RATES - 1) && (ar[i + 1].idx < 0))
377 rate->idx = mi->r[ndx].rix;
87 minstrel_set_rate(struct minstrel_sta_info *mi, struct ieee80211_sta_rates *ratetbl, int offset, int idx) argument
/net/core/
H A Dgen_estimator.c113 int idx = (int)arg; local
117 list_for_each_entry_rcu(e, &elist[idx].list, list) {
130 brate = (nbytes - e->last_bytes)<<(7 - idx);
135 rate = (npackets - e->last_packets)<<(12 - idx);
144 if (!list_empty(&elist[idx].list))
145 mod_timer(&elist[idx].timer, jiffies + ((HZ/4) << idx));
212 int idx; local
224 idx = parm->interval + 2;
235 if (!elist[idx]
[all...]
H A Dfib_rules.c189 static int nla_put_uid(struct sk_buff *skb, int idx, kuid_t uid) argument
191 return nla_put_u32(skb, idx, from_kuid_munged(current_user_ns(), uid));
646 int idx = 0; local
651 if (idx < cb->args[1])
659 idx++;
662 cb->args[1] = idx;
672 int idx = 0, family; local
686 if (idx < cb->args[0] || !try_module_get(ops->owner))
694 idx++;
697 cb->args[0] = idx;
[all...]
/net/ieee802154/
H A Dnl-phy.c127 int idx, s_idx; member in struct:dump_phy_data
137 if (data->idx++ < data->s_idx)
147 data->idx--;
161 .idx = 0,
168 cb->args[0] = data.idx;
H A Dwpan-class.c139 static int wpan_phy_idx_valid(int idx) argument
141 return idx >= 0;
152 phy->idx = wpan_phy_idx++;
153 if (unlikely(!wpan_phy_idx_valid(phy->idx))) {
164 dev_set_name(&phy->dev, "wpan-phy%d", phy->idx);
H A Dnl-mac.c573 int idx; local
578 idx = 0;
580 if (idx < s_idx || (dev->type != ARPHRD_IEEE802154))
587 idx++;
589 cb->args[0] = idx;
/net/ipv4/
H A Dip_input.c349 u32 idx = skb_dst(skb)->tclassid; local
350 st[idx&0xFF].o_packets++;
351 st[idx&0xFF].o_bytes += skb->len;
352 st[(idx>>16)&0xFF].i_packets++;
353 st[(idx>>16)&0xFF].i_bytes += skb->len;
H A Dtcp_memcontrol.c242 void tcp_prot_mem(struct mem_cgroup *memcg, long val, int idx) argument
253 tcp->tcp_prot_mem[idx] = val;
/net/netfilter/ipvs/
H A Dip_vs_pe_sip.c14 int *idx)
17 size_t len = min3(max_len, callid_len, buf_len - *idx - 1);
18 memcpy(buf + *idx, callid, len);
19 buf[*idx+len] = '\0';
20 *idx += len + 1;
21 return buf + *idx - len;
12 ip_vs_dbg_callid(char *buf, size_t buf_len, const char *callid, size_t callid_len, int *idx) argument
/net/batman-adv/
H A Ddebugfs.c45 size_t idx)
47 return &debug_log->log_buff[idx & BATADV_LOG_BUFF_MASK];
44 batadv_log_char_addr(struct batadv_priv_debug_log *debug_log, size_t idx) argument
H A Dmain.c268 uint8_t idx; local
311 idx = batadv_ogm_packet->header.packet_type;
312 ret = (*batadv_rx_handler[idx])(skb, hard_iface);
/net/bridge/
H A Dbr_mdb.c49 int idx = 0, s_idx = cb->args[1]; local
68 if (idx < s_idx)
102 idx++;
107 cb->args[1] = idx;
117 int idx = 0, s_idx; local
130 if (idx < s_idx)
150 idx++;
158 cb->args[0] = idx;
/net/caif/
H A Dcfmuxl.c108 int idx = phyid % DN_CACHE_SIZE; local
111 RCU_INIT_POINTER(muxl->dn_cache[idx], NULL);
126 int idx = id % UP_CACHE_SIZE; local
127 up = rcu_dereference(muxl->up_cache[idx]);
131 rcu_assign_pointer(muxl->up_cache[idx], up);
140 int idx = dev_info->id % DN_CACHE_SIZE; local
141 dn = rcu_dereference(muxl->dn_cache[idx]);
145 rcu_assign_pointer(muxl->dn_cache[idx], dn);
155 int idx = id % UP_CACHE_SIZE; local
167 RCU_INIT_POINTER(muxl->up_cache[idx], NUL
[all...]
/net/ipv4/netfilter/
H A Dnf_nat_h323.c423 TransportAddress *taddr, int idx,
460 if (set_h225_addr(skb, protoff, data, 0, &taddr[idx],
468 if (idx > 0 &&
420 nat_q931(struct sk_buff *skb, struct nf_conn *ct, enum ip_conntrack_info ctinfo, unsigned int protoff, unsigned char **data, TransportAddress *taddr, int idx, __be16 port, struct nf_conntrack_expect *exp) argument
/net/nfc/hci/
H A Dcommand.c173 int nfc_hci_set_param(struct nfc_hci_dev *hdev, u8 gate, u8 idx, argument
179 /* TODO ELa: reg idx must be inserted before param, but we don't want
182 * optimal though, and the plan is to modify APIs to pass idx down to
187 pr_debug("idx=%d to gate %d\n", idx, gate);
193 *tmp = idx;
205 int nfc_hci_get_param(struct nfc_hci_dev *hdev, u8 gate, u8 idx, argument
208 pr_debug("gate=%d regidx=%d\n", gate, idx);
211 &idx, 1, skb);
/net/sched/
H A Dematch.c175 struct tcf_ematch *em, struct nlattr *nla, int idx)
201 if (ref <= idx)
304 int idx, list_len, matches_len, err; local
345 for (idx = 0; nla_ok(rt_match, list_len); idx++) {
348 if (rt_match->nla_type != (idx + 1))
351 if (idx >= tree_hdr->nmatches)
357 em = tcf_em_get_match(tree, idx);
359 err = tcf_em_validate(tp, tree_hdr, em, rt_match, idx);
371 if (idx !
173 tcf_em_validate(struct tcf_proto *tp, struct tcf_ematch_tree_hdr *tree_hdr, struct tcf_ematch *em, struct nlattr *nla, int idx) argument
[all...]
/net/xfrm/
H A Dxfrm_algo.c732 struct xfrm_algo_desc *xfrm_aalg_get_byidx(unsigned int idx) argument
734 if (idx >= aalg_entries())
737 return &aalg_list[idx];
741 struct xfrm_algo_desc *xfrm_ealg_get_byidx(unsigned int idx) argument
743 if (idx >= ealg_entries())
746 return &ealg_list[idx];
/net/can/
H A Dproc.c340 static inline void can_rcvlist_proc_show_one(struct seq_file *m, int idx, argument
344 if (!hlist_empty(&d->rx[idx])) {
346 can_print_rcvlist(m, &d->rx[idx], dev);
355 int idx = (int)(long)m->private; local
359 seq_printf(m, "\nreceive list '%s':\n", rx_list_name[idx]);
365 can_rcvlist_proc_show_one(m, idx, NULL, d);
370 can_rcvlist_proc_show_one(m, idx, dev, dev->ml_priv);
/net/ipv6/
H A Daddrlabel.c503 int idx = 0, s_idx = cb->args[0]; local
508 if (idx >= s_idx &&
518 idx++;
521 cb->args[0] = idx;
/net/nfc/
H A Dcore.c231 if (dev->targets[i].idx == target_idx)
405 if (dev->active_target->idx != target_idx) {
449 if (dev->active_target->idx != target_idx) {
615 targets[i].idx = dev->target_next_idx++;
675 if (tg->idx == target_idx)
734 u32 active_target_idx = dev->active_target->idx;
765 const unsigned int *idx = data; local
767 return dev->idx == *idx;
770 struct nfc_dev *nfc_get_device(unsigned int idx) argument
[all...]
/net/wireless/
H A Dsme.c806 int idx; local
809 idx = connkeys->def;
810 cipher = connkeys->params[idx].cipher;
814 connect->key_idx = idx;
815 connect->key = connkeys->params[idx].key;
816 connect->key_len = connkeys->params[idx].key_len;

Completed in 439 milliseconds

123