Searched refs:idx (Results 26 - 50 of 84) sorted by relevance

1234

/net/ipv4/
H A Dip_input.c347 u32 idx = skb_dst(skb)->tclassid; local
348 st[idx&0xFF].o_packets++;
349 st[idx&0xFF].o_bytes += skb->len;
350 st[(idx>>16)&0xFF].i_packets++;
351 st[(idx>>16)&0xFF].i_bytes += skb->len;
H A Ddevinet.c1542 int idx, s_idx; local
1550 s_idx = idx = cb->args[1];
1554 idx = 0;
1560 if (idx < s_idx)
1562 if (h > s_h || idx > s_idx)
1582 idx++;
1589 cb->args[1] = idx;
1863 int idx, s_idx; local
1869 s_idx = idx = cb->args[1];
1872 idx
[all...]
H A Dtcp_metrics.c56 enum tcp_metric_index idx)
58 return tm->tcpm_lock & (1 << idx);
62 enum tcp_metric_index idx)
64 return tm->tcpm_vals[idx];
68 enum tcp_metric_index idx,
71 tm->tcpm_vals[idx] = val;
55 tcp_metric_locked(struct tcp_metrics_block *tm, enum tcp_metric_index idx) argument
61 tcp_metric_get(struct tcp_metrics_block *tm, enum tcp_metric_index idx) argument
67 tcp_metric_set(struct tcp_metrics_block *tm, enum tcp_metric_index idx, u32 val) argument
/net/sched/
H A Dsch_fq.c507 unsigned int idx; local
515 for (idx = 0; idx < (1U << q->fq_trees_log); idx++) {
516 root = &q->fq_root[idx];
543 u32 idx; local
545 for (idx = 0; idx < (1U << old_log); idx++) {
546 oroot = &old_array[idx];
600 u32 idx; local
[all...]
H A Dsch_choke.c118 static void choke_drop_by_idx(struct Qdisc *sch, unsigned int idx) argument
121 struct sk_buff *skb = q->tab[idx];
123 q->tab[idx] = NULL;
125 if (idx == q->head)
127 if (idx == q->tail)
292 unsigned int idx; local
295 if (choke_match_random(q, skb, &idx)) {
297 choke_drop_by_idx(sch, idx);
H A Dsch_hhf.c391 enum wdrr_bucket_idx idx; local
394 idx = hhf_classify(skb, sch);
396 bucket = &q->buckets[idx];
407 if (idx == WDRR_BUCKET_FOR_HH) {
424 if (hhf_drop(sch) == idx)
/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];
H A Dxfrm_policy.c663 u32 idx; local
667 idx = (idx_generator | dir);
670 idx = index;
674 if (idx == 0)
675 idx = 8;
676 list = net->xfrm.policy_byidx + idx_hash(net, idx);
679 if (p->index == idx) {
685 return idx;
2346 xfrm_secpath_reject(int idx, struct sk_buff *skb, const struct flowi *fl) argument
2350 if (!skb->sp || idx <
2391 int idx = start; local
[all...]
/net/bridge/
H A Dbr_mdb.c50 int idx = 0, s_idx = cb->args[1]; local
70 if (idx < s_idx)
104 idx++;
109 cb->args[1] = idx;
119 int idx = 0, s_idx; local
132 if (idx < s_idx)
152 idx++;
160 cb->args[0] = idx;
/net/openvswitch/
H A Dflow_table.h73 u32 *bucket, u32 *idx);
/net/core/
H A Dfib_rules.c192 static int nla_put_uid(struct sk_buff *skb, int idx, kuid_t uid) argument
194 return nla_put_u32(skb, idx, from_kuid_munged(current_user_ns(), uid));
671 int idx = 0; local
676 if (idx < cb->args[1])
684 idx++;
687 cb->args[1] = idx;
697 int idx = 0, family; local
711 if (idx < cb->args[0] || !try_module_get(ops->owner))
719 idx++;
722 cb->args[0] = idx;
[all...]
H A Drtnetlink.c1247 int idx = 0, s_idx; local
1278 idx = 0;
1281 if (idx < s_idx)
1298 idx++;
1303 cb->args[1] = idx;
2199 int idx; local
2204 for (idx = 1; idx <= RTNL_FAMILY_MAX; idx++) {
2206 if (idx < s_id
2502 nlmsg_populate_fdb(struct sk_buff *skb, struct netlink_callback *cb, struct net_device *dev, int *idx, struct netdev_hw_addr_list *list) argument
2539 ndo_dflt_fdb_dump(struct sk_buff *skb, struct netlink_callback *cb, struct net_device *dev, struct net_device *filter_dev, int idx) argument
2570 int idx = 0; local
2686 int idx = 0; local
[all...]
/net/ieee802154/
H A Dnl-mac.c612 int idx; local
617 idx = 0;
619 if (idx < s_idx || (dev->type != ARPHRD_IEEE802154))
627 idx++;
629 cb->args[0] = idx;
960 int idx = 0; local
965 if (idx < first_dev || dev->type != ARPHRD_IEEE802154)
988 idx++;
990 cb->args[0] = idx;
1138 int rc = 0, idx local
1270 int rc = 0, idx = 0; local
1375 int rc = 0, idx = 0, idx2; local
1509 int rc = 0, idx = 0; local
[all...]
/net/mac80211/
H A Dstatus.c249 if (info->status.rates[0].idx >= 0 &&
262 if (info->status.rates[0].idx >= 0) {
300 if (info->status.rates[0].idx >= 0 &&
306 rate = sband->bitrates[info->status.rates[0].idx].bitrate;
331 if (info->status.rates[0].idx < 0)
347 pos[2] = info->status.rates[0].idx;
597 info->status.rates[i].idx = -1;
600 } else if (info->status.rates[i].idx < 0) {
604 info->status.rates[i].idx = -1;
H A Dtx.c67 if (WARN_ON_ONCE(tx->rate.idx < 0))
71 txrate = &sband->bitrates[tx->rate.idx];
676 txrc.reported_rate.idx = -1;
737 if (unlikely(info->control.rates[0].idx < 0)) {
740 .idx = ratetbl->rate[0].idx,
745 if (ratetbl->rate[0].idx < 0)
756 if (txrc.reported_rate.idx < 0) {
960 info->control.rates[1].idx = -1;
961 info->control.rates[2].idx
[all...]
/net/can/
H A Dgw.c203 static inline int calc_idx(int idx, int rx_dlc) argument
205 if (idx < 0)
206 return rx_dlc + idx;
208 return idx;
589 int idx = 0; local
594 if (idx < s_idx)
601 idx++;
605 cb->args[0] = idx;
/net/rfkill/
H A Dcore.c57 u32 idx; member in struct:rfkill
197 ev->idx = rfkill->idx;
626 return sprintf(buf, "%d\n", rfkill->idx);
946 rfkill->idx = rfkill_no;
1176 if (rfkill->idx != ev.idx && ev.op != RFKILL_OP_CHANGE_ALL)
/net/wireless/
H A Drdev-ops.h213 struct net_device *dev, int idx, u8 *mac,
217 trace_rdev_dump_station(&rdev->wiphy, dev, idx, mac);
218 ret = rdev->ops->dump_station(&rdev->wiphy, dev, idx, mac, sinfo);
267 struct net_device *dev, int idx, u8 *dst,
272 trace_rdev_dump_mpath(&rdev->wiphy, dev, idx, dst, next_hop);
273 ret = rdev->ops->dump_mpath(&rdev->wiphy, dev, idx, dst, next_hop,
555 struct net_device *netdev, int idx,
559 trace_rdev_dump_survey(&rdev->wiphy, netdev, idx);
560 ret = rdev->ops->dump_survey(&rdev->wiphy, netdev, idx, info);
212 rdev_dump_station(struct cfg80211_registered_device *rdev, struct net_device *dev, int idx, u8 *mac, struct station_info *sinfo) argument
266 rdev_dump_mpath(struct cfg80211_registered_device *rdev, struct net_device *dev, int idx, u8 *dst, u8 *next_hop, struct mpath_info *pinfo) argument
554 rdev_dump_survey(struct cfg80211_registered_device *rdev, struct net_device *netdev, int idx, struct survey_info *info) argument
H A Dsme.c929 int idx; local
932 idx = connkeys->def;
933 cipher = connkeys->params[idx].cipher;
937 connect->key_idx = idx;
938 connect->key = connkeys->params[idx].key;
939 connect->key_len = connkeys->params[idx].key_len;
/net/ipv6/
H A Daddrlabel.c500 int idx = 0, s_idx = cb->args[0]; local
505 if (idx >= s_idx &&
516 idx++;
519 cb->args[0] = idx;
/net/nfc/
H A Dnfc.h104 struct nfc_dev *nfc_get_device(unsigned int idx);
/net/nfc/nci/
H A Dcore.c525 pr_debug("target_idx %d, protocol 0x%x\n", target->idx, protocol);
539 if (ndev->targets[i].idx == target->idx) {
608 pr_debug("target_idx %d, comm_mode %d\n", target->idx, comm_mode);
617 rc = nfc_dep_link_is_up(nfc_dev, target->idx, NFC_COMM_PASSIVE,
640 pr_debug("target_idx %d, len %d\n", target->idx, skb->len);
/net/netfilter/
H A Dnf_tables_api.c474 unsigned int idx = 0, s_idx = cb->args[0]; local
486 if (idx < s_idx)
488 if (idx > s_idx)
501 idx++;
506 cb->args[0] = idx;
1016 unsigned int idx = 0, s_idx = cb->args[0]; local
1029 if (idx < s_idx)
1031 if (idx > s_idx)
1044 idx++;
1050 cb->args[0] = idx;
1755 unsigned int idx = 0, s_idx = cb->args[0]; local
2401 unsigned int idx, s_idx = cb->args[0]; local
[all...]
/net/decnet/
H A Ddn_dev.c738 int idx, dn_idx = 0, skip_ndevs, skip_naddr; local
749 idx = 0;
752 if (idx < skip_ndevs)
754 else if (idx > skip_ndevs) {
756 * in this iteration (idx == skip_ndevs) */
774 idx++;
778 cb->args[0] = idx;
/net/batman-adv/
H A Ddebugfs.c42 size_t idx)
44 return &debug_log->log_buff[idx & BATADV_LOG_BUFF_MASK];
41 batadv_log_char_addr(struct batadv_priv_debug_log *debug_log, size_t idx) argument

Completed in 859 milliseconds

1234