/net/batman-adv/ |
H A D | originator.h | 102 int index; local 107 index = batadv_choose_orig(data, hash->size); 108 head = &hash->table[index];
|
H A D | hash.h | 29 /* 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 D | distributed-arp-table.c | 203 * 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 D | tfrc_equation.c | 594 /* 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 D | em_ipset.c | 26 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 D | act_ipt.c | 95 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 D | act_police.c | 47 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 D | ematch.c | 167 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 D | sch_dsmark.c | 44 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 D | act_api.c | 77 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 D | proc.c | 140 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 D | xt_set.c | 31 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 D | xt_recent.c | 71 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 D | xfrm_hash.h | 134 static inline unsigned int __idx_hash(u32 index, unsigned int hmask) argument 136 return (index ^ (index >> 8)) & hmask;
|
/net/bridge/ |
H A D | br_if.c | 293 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 D | xfrm6_tunnel.c | 119 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 D | qos.c | 163 * 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 D | rc80211_minstrel_ht.h | 30 u8 index; member in struct:minstrel_mcs_group_data
|
/net/rds/ |
H A D | af_rds.c | 43 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 D | trans_virtio.c | 189 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 D | dsa.c | 77 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 D | irnet_irda.c | 59 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 D | irnet.h | 500 int index; /* Current index in log */ member in struct:irnet_ctrl_channel
|
/net/wireless/ |
H A D | wext-core.c | 654 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 D | name_table.c | 85 * @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
|