Searched defs:index (Results 1 - 25 of 48) sorted by relevance

12

/net/batman-adv/
H A Doriginator.h102 int index; local
107 index = batadv_choose_orig(data, hash->size);
108 head = &hash->table[index];
H A Dhash.h29 /* the hashfunction, should return an index
108 * @choose: callback calculating the hash index
121 uint32_t index; local
130 index = choose(data, hash->size);
131 head = &hash->table[index];
132 list_lock = &hash->list_locks[index];
165 uint32_t index; local
170 index = choose(data, hash->size);
171 head = &hash->table[index];
173 spin_lock_bh(&hash->list_locks[index]);
[all...]
H A Ddistributed-arp-table.c203 * Returns the selected index in the hash table for the given data.
236 uint32_t index; local
244 index = batadv_hash_dat(&to_find, hash->size);
245 head = &hash->table[index];
/net/dccp/ccids/lib/
H A Dtfrc_equation.c594 /* return largest index i such that fval <= lookup[i][small] */
619 u16 index; local
635 index = 0;
637 index = p/TFRC_SMALLEST_P - 1;
639 f = tfrc_calc_x_lookup[index][1];
642 index = p/(1000000/TFRC_CALC_X_ARRSIZE) - 1;
644 f = tfrc_calc_x_lookup[index][0];
668 int index; local
684 index = tfrc_binsearch(fvalue, 1);
685 return (index
[all...]
/net/sched/
H A Dem_ipset.c26 ip_set_id_t index; local
31 index = ip_set_nfnl_get_byindex(net, set->index);
32 if (index == IPSET_INVALID_ID)
40 ip_set_nfnl_put(net, index);
48 ip_set_nfnl_put(em->net, set->index);
101 ret = ip_set_test(set->index, skb, &acpar, &opt);
H A Dact_ipt.c95 u32 index = 0; local
114 index = nla_get_u32(tb[TCA_IPT_INDEX]);
116 if (!tcf_hash_check(index, a, bind) ) {
117 ret = tcf_hash_create(index, est, a, sizeof(*ipt), bind);
H A Dact_police.c47 u32 index; member in struct:tc_police_compat
64 int err = 0, index = -1, i = 0, s_i = 0, n_i = 0; local
75 index++;
76 if (index < s_i)
79 a->order = index;
88 index--;
141 if (parm->index) {
142 if (tcf_hash_search(a, parm->index)) {
235 police->tcf_index = parm->index ? parm->index
[all...]
H A Dematch.c167 int index)
169 return &tree->matches[index];
187 /* Special ematch called "container", carries an index
166 tcf_em_get_match(struct tcf_ematch_tree *tree, int index) argument
H A Dsch_dsmark.c44 u32 default_index; /* index range is 0...0xffff */
48 static inline int dsmark_valid_index(struct dsmark_qdisc_data *p, u16 index) argument
50 return index <= p->indices && index > 0;
278 u32 index; local
289 index = skb->tc_index & (p->indices - 1);
290 pr_debug("index %d->%d\n", skb->tc_index, index);
294 ipv4_change_dsfield(ip_hdr(skb), p->mask[index],
295 p->value[index]);
[all...]
H A Dact_api.c77 int err = 0, index = -1, i = 0, s_i = 0, n_i = 0; local
88 index++;
89 if (index < s_i)
99 index--;
170 static struct tcf_common *tcf_hash_lookup(u32 index, struct tcf_hashinfo *hinfo) argument
176 head = &hinfo->htab[tcf_hash(index, hinfo->hmask)];
178 if (p->tcfc_index == index)
187 u32 val = hinfo->index;
194 hinfo->index = val;
199 int tcf_hash_search(struct tc_action *a, u32 index) argument
212 tcf_hash_check(u32 index, struct tc_action *a, int bind) argument
237 tcf_hash_create(u32 index, struct nlattr *est, struct tc_action *a, int size, int bind) argument
710 int index; local
[all...]
/net/ipv4/
H A Dproc.c140 int index; member in struct:__anon51
354 atomic_long_read(ptr + icmpmibmap[i].index));
360 atomic_long_read(ptr + (icmpmibmap[i].index | 0x100)));
/net/netfilter/
H A Dxt_set.c31 match_set(ip_set_id_t index, const struct sk_buff *skb, argument
35 if (ip_set_test(index, skb, par, opt))
58 return match_set(info->match_set.index, skb, par, &opt,
82 ip_set_id_t index; local
84 index = ip_set_nfnl_get_byindex(par->net, info->match_set.index);
86 if (index == IPSET_INVALID_ID) {
88 info->match_set.index);
93 ip_set_nfnl_put(par->net, info->match_set.index);
108 ip_set_nfnl_put(par->net, info->match_set.index);
131 ip_set_id_t index; local
226 ip_set_id_t index; local
298 ip_set_id_t index; local
418 ip_set_id_t index; local
[all...]
H A Dxt_recent.c71 u_int8_t index; member in struct:recent_entry
165 if (time_after(time, e->stamps[e->index-1]))
187 e->index = 1;
200 e->index %= ip_pkt_list_tot;
201 e->stamps[e->index++] = jiffies;
202 if (e->index > e->nstamps)
203 e->nstamps = e->index;
502 i = (e->index - 1) % ip_pkt_list_tot;
505 &e->addr.ip, e->ttl, e->stamps[i], e->index);
508 &e->addr.in6, e->ttl, e->stamps[i], e->index);
[all...]
/net/xfrm/
H A Dxfrm_hash.h134 static inline unsigned int __idx_hash(u32 index, unsigned int hmask) argument
136 return (index ^ (index >> 8)) & hmask;
/net/bridge/
H A Dbr_if.c293 int index; local
306 index = find_first_zero_bit(inuse, BR_MAX_PORTS);
309 return (index >= BR_MAX_PORTS) ? -EXFULL : index;
316 int index; local
319 index = find_portno(br);
320 if (index < 0)
321 return ERR_PTR(index);
332 p->port_no = index;
/net/ipv6/
H A Dxfrm6_tunnel.c119 int index = xfrm6_tunnel_spi_hash_byspi(spi); local
122 &xfrm6_tn->spi_byspi[index],
127 return index;
135 int index; local
144 index = __xfrm6_tunnel_spi_check(net, spi);
145 if (index >= 0)
149 index = __xfrm6_tunnel_spi_check(net, spi);
150 if (index >= 0)
165 hlist_add_head_rcu(&x6spi->list_byspi, &xfrm6_tn->spi_byspi[index]);
167 index
[all...]
/net/irda/
H A Dqos.c163 * Returns the index to the value in the specified array
176 * Function index_value (index, array)
178 * Returns value to index in array, easy!
181 static inline __u32 index_value(int index, __u32 *array) argument
183 return array[index];
189 * Returns index to most significant bit (MSB) in word
195 int index = 15; /* Current MSB */ local
213 index--;
215 return index;
237 /* Send back a valid index */
343 int index; local
749 int index; local
[all...]
/net/mac80211/
H A Drc80211_minstrel_ht.h30 u8 index; member in struct:minstrel_mcs_group_data
/net/rds/
H A Daf_rds.c43 char *rds_str_array(char **array, size_t elements, size_t index) argument
45 if ((index < elements) && array[index])
46 return array[index];
/net/9p/
H A Dtrans_virtio.c189 int index = start; local
195 BUG_ON(index > limit);
197 sg_unmark_end(&sg[index]);
198 sg_set_buf(&sg[index++], data, s);
202 if (index-start)
203 sg_mark_end(&sg[index - 1]);
204 return index-start;
229 int index = start; local
242 sg_unmark_end(&sg[index]);
243 sg_set_page(&sg[index
338 int s, index = 0; local
[all...]
/net/dsa/
H A Ddsa.c77 dsa_switch_setup(struct dsa_switch_tree *dst, int index, argument
80 struct dsa_chip_data *pd = dst->pd->chip + index;
94 dst->master_netdev->name, index);
98 dst->master_netdev->name, index, name);
109 ds->index = index;
110 ds->pd = dst->pd->chip + index;
130 dst->cpu_switch = index;
155 if (dst->cpu_switch == index) {
224 index,
[all...]
/net/irda/irnet/
H A Dirnet_irda.c59 int index; /* In the log */ local
71 index = irnet_events.index;
72 irnet_events.log[index].event = event;
73 irnet_events.log[index].daddr = daddr;
74 irnet_events.log[index].saddr = saddr;
77 strcpy(irnet_events.log[index].name, name);
79 irnet_events.log[index].name[0] = '\0';
81 irnet_events.log[index].hints.word = hints;
84 irnet_events.log[index]
[all...]
H A Dirnet.h500 int index; /* Current index in log */ member in struct:irnet_ctrl_channel
/net/wireless/
H A Dwext-core.c654 unsigned int index; /* *MUST* be unsigned */ local
670 index = IW_IOCTL_IDX(cmd);
671 if (index < handlers->num_standard)
672 return handlers->standard[index];
676 index = cmd - SIOCIWFIRSTPRIV;
677 if (index < handlers->num_private)
678 return handlers->private[index];
/net/tipc/
H A Dname_table.c85 * @first_free: array index of first unused sub-sequence entry
220 * Returns index in sub-sequence array of the entry that contains the specified
762 u32 index)
801 u32 type, u32 lowbound, u32 upbound, u32 index)
823 depth, index);
761 subseq_list(struct sub_seq *sseq, char *buf, int len, u32 depth, u32 index) argument
800 nameseq_list(struct name_seq *seq, char *buf, int len, u32 depth, u32 type, u32 lowbound, u32 upbound, u32 index) argument

Completed in 680 milliseconds

12