Home
last modified time | relevance | path

Searched refs:index (Results 1 – 25 of 163) sorted by relevance

1234567

/net/netfilter/
A Dxt_set.c86 ip_set_id_t index; in set_match_v0_checkentry() local
88 index = ip_set_nfnl_get_byindex(par->net, info->match_set.index); in set_match_v0_checkentry()
137 ip_set_id_t index; in set_match_v1_checkentry() local
139 index = ip_set_nfnl_get_byindex(par->net, info->match_set.index); in set_match_v1_checkentry()
235 ip_set_id_t index; in set_target_v0_checkentry() local
238 index = ip_set_nfnl_get_byindex(par->net, info->add_set.index); in set_target_v0_checkentry()
247 index = ip_set_nfnl_get_byindex(par->net, info->del_set.index); in set_target_v0_checkentry()
310 ip_set_id_t index; in set_target_v1_checkentry() local
313 index = ip_set_nfnl_get_byindex(par->net, info->add_set.index); in set_target_v1_checkentry()
322 index = ip_set_nfnl_get_byindex(par->net, info->del_set.index); in set_target_v1_checkentry()
[all …]
/net/batman-adv/
A Dhash.h81 u32 index; in batadv_hash_add() local
90 index = choose(data, hash->size); in batadv_hash_add()
91 head = &hash->table[index]; in batadv_hash_add()
92 list_lock = &hash->list_locks[index]; in batadv_hash_add()
134 u32 index; in batadv_hash_remove() local
139 index = choose(data, hash->size); in batadv_hash_remove()
140 head = &hash->table[index]; in batadv_hash_remove()
142 spin_lock_bh(&hash->list_locks[index]); in batadv_hash_remove()
152 spin_unlock_bh(&hash->list_locks[index]); in batadv_hash_remove()
/net/mac80211/
A Drc80211_minstrel_ht.c617 *dest = index; in minstrel_ht_set_best_prob_rate()
626 *dest = index; in minstrel_ht_set_best_prob_rate()
887 if (index < 0) in minstrel_ht_next_inc_rate()
890 index = MI_RATE(group, index & 0xf); in minstrel_ht_next_inc_rate()
894 index = 0; in minstrel_ht_next_inc_rate()
899 return index; in minstrel_ht_next_inc_rate()
969 if (index < 0) in minstrel_ht_next_jump_rate()
999 index = 0; in minstrel_ht_next_jump_rate()
1004 return index; in minstrel_ht_next_jump_rate()
1066 u16 index; in minstrel_ht_update_stats() local
[all …]
/net/mpls/
A Daf_mpls.c576 unsigned index; in find_free_label() local
581 index++) { in find_free_label()
583 return index; in find_free_label()
971 unsigned index; in mpls_route_add() local
1489 for (index = 0; index < net->mpls.platform_labels; index++) { in mpls_ifdown()
1566 for (index = 0; index < net->mpls.platform_labels; index++) { in mpls_ifup()
1796 int index; in rtm_to_route_config() local
1858 for (index = 0; index <= RTA_MAX; index++) { in rtm_to_route_config()
2199 for (; index < platform_labels; index++) { in mpls_dump_routes()
2555 for (index = limit; index < old_limit; index++) in resize_platform_label_table()
[all …]
/net/devlink/
A Dcore.c19 static struct devlink *devlinks_xa_get(unsigned long index) in devlinks_xa_get() argument
24 devlink = xa_find(&devlinks, &index, index, DEVLINK_REGISTERED); in devlinks_xa_get()
41 u32 index; member
55 xa_erase(&devlink_rels, rel->index); in devlink_rel_free()
118 err = xa_alloc_cyclic(&devlink_rels, &rel->index, rel, in devlink_rel_alloc()
160 rel->devlink_index = devlink->index; in devlink_rel_nested_in_add()
165 *rel_index = rel->index; in devlink_rel_nested_in_add()
166 xa_set_mark(&devlink_rels, rel->index, DEVLINK_REL_IN_USE); in devlink_rel_nested_in_add()
489 xa_erase(&devlinks, devlink->index); in devlink_free()
499 unsigned long index; in devlink_pernet_pre_exit() local
[all …]
A Ddevl_internal.h34 u32 index; member
81 WARN_ON_ONCE(!xa_get_mark(&devlinks, (d)->index, DEVLINK_REGISTERED))
83 WARN_ON_ONCE(xa_get_mark(&devlinks, (d)->index, DEVLINK_REGISTERED))
89 #define devlinks_xa_for_each_registered_get(net, index, devlink) \ argument
90 for (index = 0; (devlink = devlinks_xa_find_get(net, &index)); index++)
96 return xa_get_mark(&devlinks, devlink->index, DEVLINK_REGISTERED); in __devl_is_registered()
219 desc->port_index = devlink_port->index; in devlink_nl_obj_desc_port_set()
A Dsb.c11 unsigned int index; member
30 if (devlink_sb->index == sb_index) in devlink_sb_get_by_index()
180 if (nla_put_u32(msg, DEVLINK_ATTR_SB_INDEX, devlink_sb->index)) in devlink_nl_sb_fill()
273 err = devlink->ops->sb_pool_get(devlink, devlink_sb->index, in devlink_nl_sb_pool_fill()
284 if (nla_put_u32(msg, DEVLINK_ATTR_SB_INDEX, devlink_sb->index)) in devlink_nl_sb_pool_fill()
442 return devlink_sb_pool_set(devlink, devlink_sb->index, in devlink_nl_sb_pool_set_doit()
460 err = ops->sb_port_pool_get(devlink_port, devlink_sb->index, in devlink_nl_sb_port_pool_fill()
695 devlink_sb->index, in devlink_nl_sb_tc_pool_bind_fill()
914 return ops->sb_occ_snapshot(devlink, devlink_sb->index); in devlink_nl_sb_occ_snapshot_doit()
930 return ops->sb_occ_max_clear(devlink, devlink_sb->index); in devlink_nl_sb_occ_max_clear_doit()
[all …]
/net/dsa/
A Dswitch.c122 info->dp->index, in dsa_switch_bridge_leave()
138 return dp->index == dsa_towards_port(dp->ds, cpu_dp->ds->index, in dsa_port_host_address_match()
164 int port = dp->index; in dsa_port_do_mdb_add()
216 int port = dp->index; in dsa_port_do_mdb_del()
263 int port = dp->index; in dsa_port_do_fdb_add()
313 int port = dp->index; in dsa_port_do_fdb_del()
493 int port = dsa_towards_port(ds, info->dp->ds->index, info->dp->index); in dsa_switch_fdb_add()
505 int port = dsa_towards_port(ds, info->dp->ds->index, info->dp->index); in dsa_switch_fdb_del()
594 int port = dsa_towards_port(ds, info->dp->ds->index, info->dp->index); in dsa_switch_mdb_add()
606 int port = dsa_towards_port(ds, info->dp->ds->index, info->dp->index); in dsa_switch_mdb_del()
[all …]
A Ddsa.c205 if (dst->index == index) in dsa_tree_find()
219 dst->index = index; in dsa_tree_alloc()
490 dp->index); in dsa_port_setup()
508 dp->index); in dsa_port_setup()
882 dst->index); in dsa_tree_setup()
1097 if (dp->index == index) in dsa_port_touch()
1105 dp->index = index; in dsa_port_touch()
1329 ds->index = m[1]; in dsa_switch_parse_member_of()
1335 if (dsa_switch_find(ds->dst->index, ds->index)) { in dsa_switch_parse_member_of()
1338 ds->index, ds->dst->index); in dsa_switch_parse_member_of()
[all …]
A Dport.c62 ds->ops->port_fast_age(ds, dp->index); in dsa_port_fast_age()
134 int port = dp->index; in dsa_port_set_state()
173 dp->index, state, ERR_PTR(err)); in dsa_port_set_state_now()
216 int port = dp->index; in dsa_port_enable_rt()
248 int port = dp->index; in dsa_port_disable_rt()
576 dp->index, ERR_PTR(err)); in dsa_port_bridge_leave()
721 dp->index, ERR_PTR(err)); in dsa_port_lag_leave()
1157 int port = dp->index; in dsa_port_fdb_dump()
1403 int port = dp->index, err; in dsa_port_assign_conduit()
1539 dp->index, ERR_PTR(tmp)); in dsa_port_change_conduit()
[all …]
A Duser.c100 dp->index, addr, vid, err); in dsa_user_standalone_event_work()
110 dp->index, addr, vid, err); in dsa_user_standalone_event_work()
122 dp->index, addr, vid, err); in dsa_user_standalone_event_work()
346 ds->dst->index, ds->index); in dsa_user_mii_bus_init()
1598 int port = dp->index; in dsa_user_add_cls_flower()
1612 int port = dp->index; in dsa_user_del_cls_flower()
1626 int port = dp->index; in dsa_user_stats_cls_flower()
2194 int port = dp->index; in dsa_user_dcbnl_set_apptrust()
2207 int port = dp->index; in dsa_user_dcbnl_get_apptrust()
2447 int port = dp->index; in dsa_user_dcbnl_init()
[all …]
/net/bluetooth/
A Dmgmt_util.c33 static struct sk_buff *create_monitor_ctrl_event(__le16 index, u32 cookie, in create_monitor_ctrl_event() argument
53 hdr->index = index; in create_monitor_ctrl_event()
100 hdr->index = cpu_to_le16(hdev->id); in mgmt_send_event_skb()
102 hdr->index = cpu_to_le16(MGMT_INDEX_NONE); in mgmt_send_event_skb()
126 int mgmt_cmd_status(struct sock *sk, u16 index, u16 cmd, u8 status) in mgmt_cmd_status() argument
142 hdr->index = cpu_to_le16(index); in mgmt_cmd_status()
149 mskb = create_monitor_ctrl_event(hdr->index, hci_sock_get_cookie(sk), in mgmt_cmd_status()
169 int mgmt_cmd_complete(struct sock *sk, u16 index, u16 cmd, u8 status, in mgmt_cmd_complete() argument
186 hdr->index = cpu_to_le16(index); in mgmt_cmd_complete()
196 mskb = create_monitor_ctrl_event(hdr->index, hci_sock_get_cookie(sk), in mgmt_cmd_complete()
[all …]
A Dhci_sock.c431 __le16 index; in hci_send_monitor_ctrl_event() local
434 index = cpu_to_le16(hdev->id); in hci_send_monitor_ctrl_event()
469 hdr->index = index; in hci_send_monitor_ctrl_event()
682 hdr->index = cpu_to_le16(index); in create_monitor_ctrl_command()
1622 u16 opcode, index, len; in hci_mgmt_cmd() local
1635 index = __le16_to_cpu(hdr->index); in hci_mgmt_cmd()
1673 if (index != MGMT_INDEX_NONE) { in hci_mgmt_cmd()
1674 hdev = hci_dev_get(index); in hci_mgmt_cmd()
1737 u16 index; in hci_logging_frame() local
1777 index = __le16_to_cpu(hdr->index); in hci_logging_frame()
[all …]
/net/9p/
A Dtrans_virtio.c174 int index = start; in pack_sg_list() local
180 BUG_ON(index >= limit); in pack_sg_list()
182 sg_unmark_end(&sg[index]); in pack_sg_list()
187 if (index-start) in pack_sg_list()
189 return index-start; in pack_sg_list()
222 int index = start; in pack_sg_list_p() local
233 BUG_ON(index >= limit); in pack_sg_list_p()
242 if (index-start) in pack_sg_list_p()
244 return index - start; in pack_sg_list_p()
342 int index; in p9_get_mapped_pages() local
[all …]
/net/sched/
A Dsch_qfq.c170 unsigned int index; /* Group index. */ member
240 int index = 0; in qfq_calc_index() local
247 index -= !(slot_size - (1ULL << (index + min_slot_shift - 1))); in qfq_calc_index()
249 if (index < 0) in qfq_calc_index()
250 index = 0; in qfq_calc_index()
255 return index; in qfq_calc_index()
748 int index = __ffs(bitmap); in qfq_ffs() local
749 return &q->groups[index]; in qfq_ffs()
803 mask = (1UL << index) - 1; in qfq_unblock_groups()
942 grp->index, grp->full_slots); in qfq_slot_scan()
[all …]
A Dem_ipset.c23 ip_set_id_t index; in em_ipset_change() local
28 index = ip_set_nfnl_get_byindex(net, set->index); in em_ipset_change()
29 if (index == IPSET_INVALID_ID) in em_ipset_change()
37 ip_set_nfnl_put(net, index); in em_ipset_change()
45 ip_set_nfnl_put(em->net, set->index); in em_ipset_destroy()
100 ret = ip_set_test(set->index, skb, &acpar, &opt); in em_ipset_match()
A Dact_mirred.c139 u32 index; in tcf_mirred_init() local
154 index = parm->index; in tcf_mirred_init()
168 tcf_idr_cleanup(tn, index); in tcf_mirred_init()
183 tcf_idr_cleanup(tn, index); in tcf_mirred_init()
190 tcf_idr_cleanup(tn, index); in tcf_mirred_init()
198 tcf_idr_cleanup(tn, index); in tcf_mirred_init()
359 unsigned long index; in tcf_blockcast_redir() local
366 if (index == exception_ifindex) in tcf_blockcast_redir()
392 unsigned long index; in tcf_blockcast_mirror() local
395 if (index == exception_ifindex) in tcf_blockcast_mirror()
[all …]
A Dact_vlan.c136 u32 index; in tcf_vlan_init() local
149 index = parm->index; in tcf_vlan_init()
150 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_vlan_init()
166 tcf_idr_cleanup(tn, index); in tcf_vlan_init()
174 tcf_idr_cleanup(tn, index); in tcf_vlan_init()
188 tcf_idr_cleanup(tn, index); in tcf_vlan_init()
206 tcf_idr_cleanup(tn, index); in tcf_vlan_init()
214 tcf_idr_cleanup(tn, index); in tcf_vlan_init()
220 ret = tcf_idr_create_from_flags(tn, index, est, a, in tcf_vlan_init()
223 tcf_idr_cleanup(tn, index); in tcf_vlan_init()
[all …]
A Dact_simple.c101 u32 index; in tcf_simp_init() local
115 index = parm->index; in tcf_simp_init()
116 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_simp_init()
127 tcf_idr_cleanup(tn, index); in tcf_simp_init()
132 ret = tcf_idr_create(tn, index, est, a, in tcf_simp_init()
135 tcf_idr_cleanup(tn, index); in tcf_simp_init()
177 .index = d->tcf_index, in tcf_simp_dump()
/net/ipv6/
A Dxfrm6_tunnel.c106 int index = xfrm6_tunnel_spi_hash_byspi(spi); in __xfrm6_tunnel_spi_check() local
109 &xfrm6_tn->spi_byspi[index], in __xfrm6_tunnel_spi_check()
114 return index; in __xfrm6_tunnel_spi_check()
122 int index; in __xfrm6_tunnel_alloc_spi() local
131 index = __xfrm6_tunnel_spi_check(net, spi); in __xfrm6_tunnel_alloc_spi()
132 if (index >= 0) in __xfrm6_tunnel_alloc_spi()
139 index = __xfrm6_tunnel_spi_check(net, spi); in __xfrm6_tunnel_alloc_spi()
140 if (index >= 0) in __xfrm6_tunnel_alloc_spi()
155 hlist_add_head_rcu(&x6spi->list_byspi, &xfrm6_tn->spi_byspi[index]); in __xfrm6_tunnel_alloc_spi()
157 index = xfrm6_tunnel_spi_hash_byaddr(saddr); in __xfrm6_tunnel_alloc_spi()
[all …]
/net/shaper/
A Dshaper.c301 int ret, index; in net_shaper_pre_insert() local
307 cur = xa_load(&hierarchy->shapers, index); in net_shaper_pre_insert()
355 xa_erase(&hierarchy->shapers, index); in net_shaper_pre_insert()
367 int index; in net_shaper_commit() local
393 unsigned long index; in net_shaper_rollback() local
401 __xa_erase(&hierarchy->shapers, index); in net_shaper_rollback()
1016 unsigned long index; in net_shaper_pre_del_node() local
1358 unsigned long index; in net_shaper_flush() local
1366 __xa_erase(&hierarchy->shapers, index); in net_shaper_flush()
1407 u32 index; in net_shaper_set_real_num_tx_queues() local
[all …]
/net/ethtool/
A Dtsconfig.c59 data->hwprov_desc.index = -1; in tsconfig_prepare_data()
62 data->hwprov_desc.index = hwprov->desc.index; in tsconfig_prepare_data()
75 data->hwprov_desc.index = ts_info.phc_index; in tsconfig_prepare_data()
122 if (data->hwprov_desc.index >= 0) in tsconfig_reply_size()
165 if (data->hwprov_desc.index >= 0) { in tsconfig_fill_reply()
173 data->hwprov_desc.index) || in tsconfig_fill_reply()
287 hwprov->desc.index = hwprov_desc->index; in tsconfig_set_hwprov_from_desc()
313 struct hwtstamp_provider_desc __hwprov_desc = {.index = -1}; in ethnl_set_tsconfig()
318 __hwprov_desc.index = __hwprov->desc.index; in ethnl_set_tsconfig()
/net/netfilter/ipset/
A Dip_set_core.c835 index = i; in ip_set_get_byname()
842 return index; in ip_set_get_byname()
910 set = ip_set(inst, index); in ip_set_nfnl_get_byindex()
914 index = IPSET_INVALID_ID; in ip_set_nfnl_get_byindex()
917 return index; in ip_set_nfnl_get_byindex()
1025 *index = IPSET_INVALID_ID; in find_free_id()
1030 *index = i; in find_free_id()
1533 ip_set_id_t index; in ip_set_dump_start() local
1537 &index); in ip_set_dump_start()
2307 req_get->set.index = id; in ip_set_sockfn_get()
[all …]
/net/ncsi/
A Dncsi-manage.c211 int index; in ncsi_add_channel() local
225 for (index = 0; index < NCSI_CAP_MAX; index++) in ncsi_add_channel()
226 nc->caps[index].index = index; in ncsi_add_channel()
227 for (index = 0; index < NCSI_MODE_MAX; index++) in ncsi_add_channel()
228 nc->modes[index].index = index; in ncsi_add_channel()
606 int index; in clear_one_vid() local
641 int i, index; in set_one_vid() local
673 if (index < 0 || index >= ncf->n_vids) { in set_one_vid()
1119 for (index = 0; index < 6; index++) in ncsi_configure_channel()
1120 nca.bytes[index] = dev->dev_addr[index]; in ncsi_configure_channel()
[all …]
/net/xdp/
A Dxskmap.c107 u32 index = key ? *(u32 *)key : U32_MAX; in xsk_map_get_next_key() local
110 if (index >= m->map.max_entries) { in xsk_map_get_next_key()
115 if (index == m->map.max_entries - 1) in xsk_map_get_next_key()
117 *next = index + 1; in xsk_map_get_next_key()
123 const int ret = BPF_REG_0, mp = BPF_REG_1, index = BPF_REG_2; in xsk_map_gen_lookup() local
126 *insn++ = BPF_LDX_MEM(BPF_W, ret, index, 0); in xsk_map_gen_lookup()
242 static long xsk_map_redirect(struct bpf_map *map, u64 index, u64 flags) in xsk_map_redirect() argument
244 return __bpf_xdp_redirect_map(map, index, flags, 0, in xsk_map_redirect()

Completed in 87 milliseconds

1234567