Searched refs:index (Results 1 - 25 of 73) sorted by relevance

123

/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/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...]
/net/batman-adv/
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 Doriginator.h102 int index; local
107 index = batadv_choose_orig(data, hash->size);
108 head = &hash->table[index];
/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 Dsch_qfq.c62 QFQ_MAX_INDEX is the maximum index allowed for a group. We need
63 one bit per index.
70 ^.__grp->index = 0
75 The max group index corresponds to Lmax/w_min, where
102 * group with the smallest index that can support the L_i / r_i configured
105 * grp->index is the index of the group; and grp->slot_shift
151 /* group we belong to. In principle we would need the index,
175 unsigned int index; /* Group index member in struct:qfq_group
243 int index = 0; local
758 int index = __ffs(bitmap); local
802 qfq_unblock_groups(struct qfq_sched *q, int index, u64 old_F) argument
[all...]
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_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 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...]
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_gact.c87 if (!tcf_hash_check(parm->index, a, bind)) {
88 ret = tcf_hash_create(parm->index, est, a, sizeof(*gact), bind);
147 .index = gact->tcf_index,
H A Dact_mirred.c93 if (!tcf_hash_check(parm->index, a, bind)) {
96 ret = tcf_hash_create(parm->index, est, a, sizeof(*m), bind);
190 .index = m->tcf_index,
H A Dact_pedit.c57 if (!tcf_hash_check(parm->index, a, bind)) {
60 ret = tcf_hash_create(parm->index, est, a, sizeof(*p), bind);
166 WARN(1, "pedit BUG: index %d\n", p->tcf_index);
194 opt->index = p->tcf_index;
/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/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/mac80211/
H A Drc80211_minstrel_ht.c133 * Look up an MCS group index based on mac80211 rate information
167 minstrel_get_ratestats(struct minstrel_ht_sta *mi, int index) argument
169 return &mi->groups[index / MCS_GROUP_RATES].rates[index % MCS_GROUP_RATES];
243 minstrel_ht_sort_best_tp_rates(struct minstrel_ht_sta *mi, u8 index, argument
250 cur_group = index / MCS_GROUP_RATES;
251 cur_idx = index % MCS_GROUP_RATES;
271 tp_list[j] = index;
278 minstrel_ht_set_best_prob_rate(struct minstrel_ht_sta *mi, u8 index) argument
284 mg = &mi->groups[index / MCS_GROUP_RATE
387 u8 tmp_cck_tp_rate[MAX_THR_RATES], index; local
649 minstrel_calc_retransmit(struct minstrel_priv *mp, struct minstrel_ht_sta *mi, int index) argument
708 minstrel_ht_set_rate(struct minstrel_priv *mp, struct minstrel_ht_sta *mi, struct ieee80211_sta_rates *ratetbl, int offset, int index) argument
776 minstrel_get_duration(int index) argument
[all...]
H A Drc80211_minstrel_ht.h30 u8 index; member in struct:minstrel_mcs_group_data
/net/netfilter/ipset/
H A Dip_set_core.c440 * Sets are identified by their index in ip_set_list and the index
443 * The set behind an index may change by swapping only, from userspace.
466 * The set behind the index must exist and must be referenced
471 ip_set_rcu_get(struct net *net, ip_set_id_t index) argument
478 set = rcu_dereference(inst->ip_set_list)[index];
485 ip_set_test(ip_set_id_t index, const struct sk_buff *skb, argument
489 dev_net(par->in ? par->in : par->out), index);
493 pr_debug("set %s, index %u\n", set->name, index);
524 ip_set_add(ip_set_id_t index, const struct sk_buff *skb, const struct xt_action_param *par, struct ip_set_adt_opt *opt) argument
547 ip_set_del(ip_set_id_t index, const struct sk_buff *skb, const struct xt_action_param *par, struct ip_set_adt_opt *opt) argument
577 ip_set_id_t i, index = IPSET_INVALID_ID; local
605 __ip_set_put_byindex(struct ip_set_net *inst, ip_set_id_t index) argument
617 ip_set_put_byindex(struct net *net, ip_set_id_t index) argument
633 ip_set_name_byindex(struct net *net, ip_set_id_t index) argument
657 ip_set_nfnl_get_byindex(struct net *net, ip_set_id_t index) argument
685 ip_set_nfnl_put(struct net *net, ip_set_id_t index) argument
778 find_free_id(struct ip_set_net *inst, const char *name, ip_set_id_t *index, struct ip_set **set) argument
818 ip_set_id_t index = IPSET_INVALID_ID; local
949 ip_set_destroy_set(struct ip_set_net *inst, ip_set_id_t index) argument
1210 ip_set_id_t index; local
1248 ip_set_id_t index = IPSET_INVALID_ID, max; local
[all...]
/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/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/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/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...]
H A Dtag_dsa.c39 dsa_header[0] = 0x60 | p->parent->index;
60 dsa_header[0] = 0x40 | p->parent->index;
H A Dtag_edsa.c48 edsa_header[4] = 0x60 | p->parent->index;
73 edsa_header[4] = 0x40 | p->parent->index;
/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...]

Completed in 495 milliseconds

123