Home
last modified time | relevance | path

Searched refs:tbl (Results 1 – 25 of 253) sorted by relevance

1234567891011

/linux/fs/nfs/
H A Dnfs4session.c27 static void nfs4_init_slot_table(struct nfs4_slot_table *tbl, const char *queue) in nfs4_init_slot_table() argument
29 tbl->highest_used_slotid = NFS4_NO_SLOT; in nfs4_init_slot_table()
30 spin_lock_init(&tbl->slot_tbl_lock); in nfs4_init_slot_table()
31 rpc_init_priority_wait_queue(&tbl->slot_tbl_waitq, queue); in nfs4_init_slot_table()
32 init_waitqueue_head(&tbl->slot_waitq); in nfs4_init_slot_table()
33 init_completion(&tbl->complete); in nfs4_init_slot_table()
39 static void nfs4_shrink_slot_table(struct nfs4_slot_table *tbl, u32 newsize) in nfs4_shrink_slot_table() argument
42 if (newsize >= tbl->max_slots) in nfs4_shrink_slot_table()
45 p = &tbl->slots; in nfs4_shrink_slot_table()
53 tbl->max_slots--; in nfs4_shrink_slot_table()
[all …]
H A Dnfs4session.h83 extern int nfs4_setup_slot_table(struct nfs4_slot_table *tbl,
85 extern void nfs4_shutdown_slot_table(struct nfs4_slot_table *tbl);
86 extern struct nfs4_slot *nfs4_alloc_slot(struct nfs4_slot_table *tbl);
87 extern struct nfs4_slot *nfs4_lookup_slot(struct nfs4_slot_table *tbl, u32 slotid);
88 extern int nfs4_slot_wait_on_seqid(struct nfs4_slot_table *tbl,
91 extern bool nfs4_try_to_lock_slot(struct nfs4_slot_table *tbl, struct nfs4_slot *slot);
92 extern void nfs4_free_slot(struct nfs4_slot_table *tbl, struct nfs4_slot *slot);
93 extern void nfs4_slot_tbl_drain_complete(struct nfs4_slot_table *tbl);
94 bool nfs41_wake_and_assign_slot(struct nfs4_slot_table *tbl,
96 void nfs41_wake_slot_table(struct nfs4_slot_table *tbl);
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
H A Ddr_table.c28 action->dest_tbl->tbl->rx.s_anchor->chunk : in dr_table_set_miss_action_nic()
29 action->dest_tbl->tbl->tx.s_anchor->chunk; in dr_table_set_miss_action_nic()
46 int mlx5dr_table_set_miss_action(struct mlx5dr_table *tbl, in mlx5dr_table_set_miss_action() argument
54 mlx5dr_domain_lock(tbl->dmn); in mlx5dr_table_set_miss_action()
56 if (tbl->dmn->type == MLX5DR_DOMAIN_TYPE_NIC_RX || in mlx5dr_table_set_miss_action()
57 tbl->dmn->type == MLX5DR_DOMAIN_TYPE_FDB) { in mlx5dr_table_set_miss_action()
58 ret = dr_table_set_miss_action_nic(tbl->dmn, &tbl->rx, action); in mlx5dr_table_set_miss_action()
63 if (tbl->dmn->type == MLX5DR_DOMAIN_TYPE_NIC_TX || in mlx5dr_table_set_miss_action()
64 tbl->dmn->type == MLX5DR_DOMAIN_TYPE_FDB) { in mlx5dr_table_set_miss_action()
65 ret = dr_table_set_miss_action_nic(tbl->dmn, &tbl->tx, action); in mlx5dr_table_set_miss_action()
[all …]
/linux/arch/powerpc/kernel/
H A Diommu.c48 struct iommu_table *tbl = data; in iommu_debugfs_weight_get() local
49 *val = bitmap_weight(tbl->it_map, tbl->it_size); in iommu_debugfs_weight_get()
54 static void iommu_debugfs_add(struct iommu_table *tbl) in iommu_debugfs_add() argument
59 sprintf(name, "%08lx", tbl->it_index); in iommu_debugfs_add()
62 debugfs_create_file_unsafe("weight", 0400, liobn_entry, tbl, &iommu_debugfs_fops_weight); in iommu_debugfs_add()
63 debugfs_create_ulong("it_size", 0400, liobn_entry, &tbl->it_size); in iommu_debugfs_add()
64 debugfs_create_ulong("it_page_shift", 0400, liobn_entry, &tbl->it_page_shift); in iommu_debugfs_add()
65 debugfs_create_ulong("it_reserved_start", 0400, liobn_entry, &tbl->it_reserved_start); in iommu_debugfs_add()
66 debugfs_create_ulong("it_reserved_end", 0400, liobn_entry, &tbl->it_reserved_end); in iommu_debugfs_add()
67 debugfs_create_ulong("it_indirect_levels", 0400, liobn_entry, &tbl->it_indirect_levels); in iommu_debugfs_add()
[all …]
/linux/drivers/infiniband/hw/vmw_pvrdma/
H A Dpvrdma_doorbell.c56 struct pvrdma_id_table *tbl = &dev->uar_table.tbl; in pvrdma_uar_table_init() local
61 tbl->last = 0; in pvrdma_uar_table_init()
62 tbl->top = 0; in pvrdma_uar_table_init()
63 tbl->max = num; in pvrdma_uar_table_init()
64 tbl->mask = mask; in pvrdma_uar_table_init()
65 spin_lock_init(&tbl->lock); in pvrdma_uar_table_init()
66 tbl->table = bitmap_zalloc(num, GFP_KERNEL); in pvrdma_uar_table_init()
67 if (!tbl->table) in pvrdma_uar_table_init()
71 __set_bit(0, tbl->table); in pvrdma_uar_table_init()
78 struct pvrdma_id_table *tbl = &dev->uar_table.tbl; in pvrdma_uar_table_cleanup() local
[all …]
/linux/lib/
H A Drhashtable.c40 const struct bucket_table *tbl, in head_hashfn() argument
43 return rht_head_hashfn(ht, tbl, he, ht->p); in head_hashfn()
55 int lockdep_rht_bucket_is_held(const struct bucket_table *tbl, u32 hash) in lockdep_rht_bucket_is_held() argument
59 if (unlikely(tbl->nest)) in lockdep_rht_bucket_is_held()
61 return bit_spin_is_locked(0, (unsigned long *)&tbl->buckets[hash]); in lockdep_rht_bucket_is_held()
69 const struct bucket_table *tbl) in nested_table_top() argument
74 return (void *)rcu_dereference_protected(tbl->buckets[0], 1); in nested_table_top()
96 static void nested_bucket_table_free(const struct bucket_table *tbl) in nested_bucket_table_free() argument
98 unsigned int size = tbl->size >> tbl->nest; in nested_bucket_table_free()
99 unsigned int len = 1 << tbl->nest; in nested_bucket_table_free()
[all …]
/linux/arch/powerpc/platforms/powernv/
H A Dpci-ioda-tce.c48 void pnv_pci_setup_iommu_table(struct iommu_table *tbl, in pnv_pci_setup_iommu_table() argument
52 tbl->it_blocksize = 16; in pnv_pci_setup_iommu_table()
53 tbl->it_base = (unsigned long)tce_mem; in pnv_pci_setup_iommu_table()
54 tbl->it_page_shift = page_shift; in pnv_pci_setup_iommu_table()
55 tbl->it_offset = dma_offset >> tbl->it_page_shift; in pnv_pci_setup_iommu_table()
56 tbl->it_index = 0; in pnv_pci_setup_iommu_table()
57 tbl->it_size = tce_size >> 3; in pnv_pci_setup_iommu_table()
58 tbl->it_busno = 0; in pnv_pci_setup_iommu_table()
59 tbl->it_type = TCE_PCI; in pnv_pci_setup_iommu_table()
83 static __be64 *pnv_tce(struct iommu_table *tbl, bool user, long idx, bool alloc) in pnv_tce() argument
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/dvm/
H A Drs.c414 static s32 get_expected_tpt(struct iwl_scale_tbl_info *tbl, int rs_index) in get_expected_tpt() argument
416 if (tbl->expected_tpt) in get_expected_tpt()
417 return tbl->expected_tpt[rs_index]; in get_expected_tpt()
428 static int rs_collect_tx_data(struct iwl_scale_tbl_info *tbl, in rs_collect_tx_data() argument
439 window = &(tbl->win[scale_index]); in rs_collect_tx_data()
442 tpt = get_expected_tpt(tbl, scale_index); in rs_collect_tx_data()
507 struct iwl_scale_tbl_info *tbl, in rate_n_flags_from_tbl() argument
512 if (is_legacy(tbl->lq_type)) { in rate_n_flags_from_tbl()
517 } else if (is_Ht(tbl->lq_type)) { in rate_n_flags_from_tbl()
524 if (is_siso(tbl->lq_type)) in rate_n_flags_from_tbl()
[all …]
H A Drs.h256 #define is_legacy(tbl) (((tbl) == LQ_G) || ((tbl) == LQ_A)) argument
257 #define is_siso(tbl) ((tbl) == LQ_SISO) argument
258 #define is_mimo2(tbl) ((tbl) == LQ_MIMO2) argument
259 #define is_mimo3(tbl) ((tbl) == LQ_MIMO3) argument
260 #define is_mimo(tbl) (is_mimo2(tbl) || is_mimo3(tbl)) argument
261 #define is_Ht(tbl) (is_siso(tbl) || is_mimo(tbl)) argument
262 #define is_a_band(tbl) ((tbl) == LQ_A) argument
263 #define is_g_and(tbl) ((tbl) == LQ_G) argument
/linux/arch/powerpc/include/asm/
H A Diommu.h45 int (*set)(struct iommu_table *tbl,
56 int (*xchg_no_kill)(struct iommu_table *tbl,
61 void (*tce_kill)(struct iommu_table *tbl,
65 __be64 *(*useraddrptr)(struct iommu_table *tbl, long index, bool alloc);
67 void (*clear)(struct iommu_table *tbl,
70 unsigned long (*get)(struct iommu_table *tbl, long index);
71 void (*flush)(struct iommu_table *tbl);
72 void (*free)(struct iommu_table *tbl);
122 #define IOMMU_TABLE_USERSPACE_ENTRY_RO(tbl, entry) \ argument
123 ((tbl)->it_ops->useraddrptr((tbl), (entry), false))
[all …]
/linux/net/netfilter/ipvs/
H A Dip_vs_lblc.c9 * *lock(tbl->lock) ==> *lock(&tbl->lock)
10 * Wensong Zhang : fixed the uninitialized tbl->lock bug
166 ip_vs_lblc_hash(struct ip_vs_lblc_table *tbl, struct ip_vs_lblc_entry *en) in ip_vs_lblc_hash() argument
170 hlist_add_head_rcu(&en->list, &tbl->bucket[hash]); in ip_vs_lblc_hash()
171 atomic_inc(&tbl->entries); in ip_vs_lblc_hash()
177 ip_vs_lblc_get(int af, struct ip_vs_lblc_table *tbl, in ip_vs_lblc_get() argument
183 hlist_for_each_entry_rcu(en, &tbl->bucket[hash], list) in ip_vs_lblc_get()
196 ip_vs_lblc_new(struct ip_vs_lblc_table *tbl, const union nf_inet_addr *daddr, in ip_vs_lblc_new() argument
201 en = ip_vs_lblc_get(af, tbl, dadd in ip_vs_lblc_new()
229 struct ip_vs_lblc_table *tbl = svc->sched_data; ip_vs_lblc_flush() local
256 struct ip_vs_lblc_table *tbl = svc->sched_data; ip_vs_lblc_full_check() local
294 struct ip_vs_lblc_table *tbl = timer_container_of(tbl, t, ip_vs_lblc_check_expire() local
345 struct ip_vs_lblc_table *tbl; ip_vs_lblc_init_svc() local
383 struct ip_vs_lblc_table *tbl = svc->sched_data; ip_vs_lblc_done_svc() local
483 struct ip_vs_lblc_table *tbl = svc->sched_data; ip_vs_lblc_schedule() local
[all...]
H A Dip_vs_lblcr.c329 ip_vs_lblcr_hash(struct ip_vs_lblcr_table *tbl, struct ip_vs_lblcr_entry *en) in ip_vs_lblcr_hash() argument
333 hlist_add_head_rcu(&en->list, &tbl->bucket[hash]); in ip_vs_lblcr_hash()
334 atomic_inc(&tbl->entries); in ip_vs_lblcr_hash()
340 ip_vs_lblcr_get(int af, struct ip_vs_lblcr_table *tbl, in ip_vs_lblcr_get() argument
346 hlist_for_each_entry_rcu(en, &tbl->bucket[hash], list) in ip_vs_lblcr_get()
359 ip_vs_lblcr_new(struct ip_vs_lblcr_table *tbl, const union nf_inet_addr *daddr, in ip_vs_lblcr_new() argument
364 en = ip_vs_lblcr_get(af, tbl, daddr); in ip_vs_lblcr_new()
366 if (atomic_read(&tbl->entries) >= tbl->max_size * 3 / 2) in ip_vs_lblcr_new()
383 ip_vs_lblcr_hash(tbl, e in ip_vs_lblcr_new()
395 struct ip_vs_lblcr_table *tbl = svc->sched_data; ip_vs_lblcr_flush() local
421 struct ip_vs_lblcr_table *tbl = svc->sched_data; ip_vs_lblcr_full_check() local
458 struct ip_vs_lblcr_table *tbl = timer_container_of(tbl, t, ip_vs_lblcr_check_expire() local
508 struct ip_vs_lblcr_table *tbl; ip_vs_lblcr_init_svc() local
546 struct ip_vs_lblcr_table *tbl = svc->sched_data; ip_vs_lblcr_done_svc() local
647 struct ip_vs_lblcr_table *tbl = svc->sched_data; ip_vs_lblcr_schedule() local
[all...]
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
H A Dmatcher.c23 mlx5hws_table_destroy_default_ft(matcher->tbl, matcher->end_ft_id); in hws_matcher_destroy_end_ft()
26 int mlx5hws_matcher_update_end_ft_isolated(struct mlx5hws_table *tbl, in mlx5hws_matcher_update_end_ft_isolated() argument
31 if (list_empty(&tbl->matchers_list)) in mlx5hws_matcher_update_end_ft_isolated()
37 list_for_each_entry(tmp_matcher, &tbl->matchers_list, list_node) in mlx5hws_matcher_update_end_ft_isolated()
40 tmp_matcher = list_last_entry(&tbl->matchers_list, in mlx5hws_matcher_update_end_ft_isolated()
44 return mlx5hws_table_ft_set_next_ft(tbl->ctx, in mlx5hws_matcher_update_end_ft_isolated()
46 tbl->fw_ft_type, in mlx5hws_matcher_update_end_ft_isolated()
52 struct mlx5hws_table *tbl = matcher->tbl; in hws_matcher_connect_end_ft_isolated() local
57 ret = mlx5hws_table_ft_set_next_rtc(tbl->ctx, in hws_matcher_connect_end_ft_isolated()
59 matcher->tbl->fw_ft_type, in hws_matcher_connect_end_ft_isolated()
[all …]
/linux/drivers/net/wireless/nxp/nxpwifi/
H A D11n_rxreorder.c76 struct nxpwifi_rx_reorder_tbl *tbl, in nxpwifi_11n_dispatch_pkt_until_start_win() argument
83 tid = tbl->tid; in nxpwifi_11n_dispatch_pkt_until_start_win()
87 pkt_to_send = (start_win > tbl->start_win) ? in nxpwifi_11n_dispatch_pkt_until_start_win()
88 min((start_win - tbl->start_win), tbl->win_size) : in nxpwifi_11n_dispatch_pkt_until_start_win()
89 tbl->win_size; in nxpwifi_11n_dispatch_pkt_until_start_win()
92 if (tbl->rx_reorder_ptr[i]) { in nxpwifi_11n_dispatch_pkt_until_start_win()
93 skb = tbl->rx_reorder_ptr[i]; in nxpwifi_11n_dispatch_pkt_until_start_win()
95 tbl->rx_reorder_ptr[i] = NULL; in nxpwifi_11n_dispatch_pkt_until_start_win()
100 for (i = 0; i < tbl in nxpwifi_11n_dispatch_pkt_until_start_win()
115 nxpwifi_11n_scan_and_dispatch(struct nxpwifi_private * priv,struct nxpwifi_rx_reorder_tbl * tbl) nxpwifi_11n_scan_and_dispatch() argument
152 nxpwifi_del_rx_reorder_entry(struct nxpwifi_private * priv,struct nxpwifi_rx_reorder_tbl * tbl) nxpwifi_del_rx_reorder_entry() argument
183 struct nxpwifi_rx_reorder_tbl *tbl, *found = NULL; nxpwifi_11n_get_rx_reorder_tbl() local
200 struct nxpwifi_rx_reorder_tbl *tbl, *tmp; nxpwifi_11n_del_rx_reorder_tbl_by_ta() local
264 struct nxpwifi_rx_reorder_tbl *tbl, *new_node; nxpwifi_11n_create_rx_reorder_tbl() local
329 nxpwifi_11n_rxreorder_timer_restart(struct nxpwifi_rx_reorder_tbl * tbl) nxpwifi_11n_rxreorder_timer_restart() argument
417 struct nxpwifi_rx_reorder_tbl *tbl; nxpwifi_11n_rx_reorder_pkt() local
517 struct nxpwifi_rx_reorder_tbl *tbl; nxpwifi_del_ba_tbl() local
567 struct nxpwifi_rx_reorder_tbl *tbl; nxpwifi_ret_11n_addba_resp() local
650 struct nxpwifi_rx_reorder_tbl *tbl; nxpwifi_update_rxreor_flags() local
[all...]
/linux/drivers/net/wireless/marvell/mwifiex/
H A D11n_rxreorder.c98 struct mwifiex_rx_reorder_tbl *tbl, in mwifiex_11n_dispatch_pkt_until_start_win() argument
108 pkt_to_send = (start_win > tbl->start_win) ? in mwifiex_11n_dispatch_pkt_until_start_win()
109 min((start_win - tbl->start_win), tbl->win_size) : in mwifiex_11n_dispatch_pkt_until_start_win()
110 tbl->win_size; in mwifiex_11n_dispatch_pkt_until_start_win()
113 if (tbl->rx_reorder_ptr[i]) { in mwifiex_11n_dispatch_pkt_until_start_win()
114 skb = tbl->rx_reorder_ptr[i]; in mwifiex_11n_dispatch_pkt_until_start_win()
116 tbl->rx_reorder_ptr[i] = NULL; in mwifiex_11n_dispatch_pkt_until_start_win()
124 for (i = 0; i < tbl->win_size - pkt_to_send; ++i) { in mwifiex_11n_dispatch_pkt_until_start_win()
125 tbl->rx_reorder_ptr[i] = tbl->rx_reorder_ptr[pkt_to_send + i]; in mwifiex_11n_dispatch_pkt_until_start_win()
126 tbl->rx_reorder_ptr[pkt_to_send + i] = NULL; in mwifiex_11n_dispatch_pkt_until_start_win()
[all …]
/linux/drivers/net/wireless/intel/iwlegacy/
H A D4965-rs.c383 il4965_get_expected_tpt(struct il_scale_tbl_info *tbl, int rs_idx) in il4965_get_expected_tpt() argument
385 if (tbl->expected_tpt) in il4965_get_expected_tpt()
386 return tbl->expected_tpt[rs_idx]; in il4965_get_expected_tpt()
398 il4965_rs_collect_tx_data(struct il_scale_tbl_info *tbl, int scale_idx, in il4965_rs_collect_tx_data() argument
409 win = &(tbl->win[scale_idx]); in il4965_rs_collect_tx_data()
412 tpt = il4965_get_expected_tpt(tbl, scale_idx); in il4965_rs_collect_tx_data()
476 il4965_rate_n_flags_from_tbl(struct il_priv *il, struct il_scale_tbl_info *tbl, in il4965_rate_n_flags_from_tbl() argument
481 if (is_legacy(tbl->lq_type)) { in il4965_rate_n_flags_from_tbl()
486 } else if (is_Ht(tbl->lq_type)) { in il4965_rate_n_flags_from_tbl()
493 if (is_siso(tbl->lq_type)) in il4965_rate_n_flags_from_tbl()
[all …]
/linux/net/core/
H A Dneighbour.c56 static void pneigh_ifdown(struct neigh_table *tbl, struct net_device *dev,
141 atomic_dec(&n->tbl->gc_entries); in neigh_mark_dead()
151 spin_lock_bh(&n->tbl->lock); in neigh_update_gc_list()
166 atomic_dec(&n->tbl->gc_entries); in neigh_update_gc_list()
169 list_add_tail(&n->gc_list, &n->tbl->gc_list); in neigh_update_gc_list()
170 atomic_inc(&n->tbl->gc_entries); in neigh_update_gc_list()
174 spin_unlock_bh(&n->tbl->lock); in neigh_update_gc_list()
181 spin_lock_bh(&n->tbl->lock); in neigh_update_managed_list()
192 list_add_tail(&n->managed_list, &n->tbl->managed_list); in neigh_update_managed_list()
195 spin_unlock_bh(&n->tbl->lock); in neigh_update_managed_list()
[all …]
/linux/tools/perf/
H A Dcheck-headers.sh198 check_2 tools/perf/arch/x86/entry/syscalls/syscall_32.tbl arch/x86/entry/syscalls/syscall_32.tbl
199 check_2 tools/perf/arch/x86/entry/syscalls/syscall_64.tbl arch/x86/entry/syscalls/syscall_64.tbl
200 check_2 tools/perf/arch/powerpc/entry/syscalls/syscall.tbl arch/powerpc/kernel/syscalls/syscall.tbl
201 check_2 tools/perf/arch/s390/entry/syscalls/syscall.tbl arch/s390/kernel/syscalls/syscall.tbl
202 …eck_2 tools/perf/arch/mips/entry/syscalls/syscall_n64.tbl arch/mips/kernel/syscalls/syscall_n64.tbl
203 check_2 tools/perf/arch/arm/entry/syscalls/syscall.tbl arch/arm/tools/syscall.tbl
204 check_2 tools/perf/arch/sh/entry/syscalls/syscall.tbl arch/sh/kernel/syscalls/syscall.tbl
205 check_2 tools/perf/arch/sparc/entry/syscalls/syscall.tbl arch/sparc/kernel/syscalls/syscall.tbl
206 check_2 tools/perf/arch/xtensa/entry/syscalls/syscall.tbl arch/xtensa/kernel/syscalls/syscall.tbl
207 check_2 tools/perf/arch/alpha/entry/syscalls/syscall.tbl arch/alpha/entry/syscalls/syscall.tbl
[all …]
/linux/drivers/vfio/
H A Dvfio_iommu_spapr_tce.c209 struct iommu_table *tbl = container->tables[i]; in tce_iommu_find_table() local
211 if (tbl) { in tce_iommu_find_table()
212 unsigned long entry = ioba >> tbl->it_page_shift; in tce_iommu_find_table()
213 unsigned long start = tbl->it_offset; in tce_iommu_find_table()
214 unsigned long end = start + tbl->it_size; in tce_iommu_find_table()
217 *ptbl = tbl; in tce_iommu_find_table()
339 struct iommu_table *tbl,
342 struct iommu_table *tbl);
362 struct iommu_table *tbl = container->tables[i]; in tce_iommu_release() local
364 if (!tbl) in tce_iommu_release()
[all …]
/linux/net/netfilter/
H A Dxt_repldata.h24 } *tbl; \
26 size_t term_offset = (offsetof(typeof(*tbl), entries[nhooks]) + \
28 tbl = kzalloc(term_offset + sizeof(*term), GFP_KERNEL); \
29 if (tbl == NULL) \
31 term = (struct type##_error *)&(((char *)tbl)[term_offset]); \
32 strscpy(tbl->repl.name, info->name); \
34 tbl->repl.valid_hooks = hook_mask; \
35 tbl->repl.num_entries = nhooks + 1; \
36 tbl->repl.size = nhooks * sizeof(struct type##_standard) + \
41 tbl->repl.hook_entry[hooknum] = bytes; \
[all …]
/linux/net/mac80211/
H A Dmesh_pathtbl.c20 static void mesh_path_free_rcu(struct mesh_table *tbl, struct mesh_path *mpath);
82 struct mesh_table *tbl = tblptr; in mesh_path_rht_free() local
84 mesh_path_free_rcu(tbl, mpath); in mesh_path_rht_free()
87 static void mesh_table_init(struct mesh_table *tbl) in mesh_table_init() argument
89 INIT_HLIST_HEAD(&tbl->known_gates); in mesh_table_init()
90 INIT_HLIST_HEAD(&tbl->walk_head); in mesh_table_init()
91 atomic_set(&tbl->entries, 0); in mesh_table_init()
92 spin_lock_init(&tbl->gates_lock); in mesh_table_init()
93 spin_lock_init(&tbl->walk_lock); in mesh_table_init()
98 WARN_ON(rhashtable_init(&tbl in mesh_table_init()
101 mesh_table_free(struct mesh_table * tbl) mesh_table_free() argument
243 mpath_lookup(struct mesh_table * tbl,const u8 * dst,struct ieee80211_sub_if_data * sdata) mpath_lookup() argument
280 __mesh_path_lookup_by_idx(struct mesh_table * tbl,int idx) __mesh_path_lookup_by_idx() argument
339 struct mesh_table *tbl; mesh_path_add_gate() local
374 mesh_gate_del(struct mesh_table * tbl,struct mesh_path * mpath) mesh_gate_del() argument
683 struct mesh_table *tbl; mesh_path_add() local
725 struct mesh_table *tbl; mpp_path_add() local
773 struct mesh_table *tbl = &sdata->u.mesh.mesh_paths; mesh_plink_broken() local
795 mesh_path_free_rcu(struct mesh_table * tbl,struct mesh_path * mpath) mesh_path_free_rcu() argument
811 __mesh_path_del(struct mesh_table * tbl,struct mesh_path * mpath) __mesh_path_del() argument
836 struct mesh_table *tbl = &sdata->u.mesh.mesh_paths; mesh_path_flush_by_nexthop() local
851 struct mesh_table *tbl = &sdata->u.mesh.mpp_paths; mpp_flush_by_proxy() local
863 table_flush_by_iface(struct mesh_table * tbl) table_flush_by_iface() argument
897 table_path_del(struct mesh_table * tbl,struct ieee80211_sub_if_data * sdata,const u8 * addr) table_path_del() argument
966 struct mesh_table *tbl; mesh_path_send_to_gates() local
1074 mesh_path_tbl_expire(struct ieee80211_sub_if_data * sdata,struct mesh_table * tbl) mesh_path_tbl_expire() argument
[all...]
/linux/arch/powerpc/kvm/
H A Dbook3s_64_vio.c66 iommu_tce_table_put(stit->tbl); in kvm_spapr_tce_iommu_table_free()
98 if (table_group->tables[i] != stit->tbl) in kvm_spapr_tce_release_iommu_group()
114 struct iommu_table *tbl = NULL; in kvm_spapr_tce_attach_iommu_group() local
154 tbl = iommu_tce_table_get(tbltmp); in kvm_spapr_tce_attach_iommu_group()
158 if (!tbl) in kvm_spapr_tce_attach_iommu_group()
163 if (tbl != stit->tbl) in kvm_spapr_tce_attach_iommu_group()
168 iommu_tce_table_put(tbl); in kvm_spapr_tce_attach_iommu_group()
183 iommu_tce_table_put(tbl); in kvm_spapr_tce_attach_iommu_group()
187 stit->tbl = tbl; in kvm_spapr_tce_attach_iommu_group()
390 long shift = stit->tbl->it_page_shift; in kvmppc_tce_validate()
[all …]
/linux/net/sctp/
H A Dsysctl.c392 struct ctl_table tbl; in proc_sctp_do_hmac_alg() local
396 memset(&tbl, 0, sizeof(struct ctl_table)); in proc_sctp_do_hmac_alg()
399 tbl.data = tmp; in proc_sctp_do_hmac_alg()
400 tbl.maxlen = sizeof(tmp) - 1; in proc_sctp_do_hmac_alg()
401 ret = proc_dostring(&tbl, 1, buffer, lenp, ppos); in proc_sctp_do_hmac_alg()
415 tbl.data = (char *)"sha256"; in proc_sctp_do_hmac_alg()
417 tbl.data = (char *)"none"; in proc_sctp_do_hmac_alg()
418 tbl.maxlen = strlen(tbl.data); in proc_sctp_do_hmac_alg()
419 return proc_dostring(&tbl, 0, buffer, lenp, ppos); in proc_sctp_do_hmac_alg()
428 struct ctl_table tbl; in proc_sctp_do_rto_min() local
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dmod_hdr.c42 void mlx5e_mod_hdr_tbl_init(struct mod_hdr_tbl *tbl) in mlx5e_mod_hdr_tbl_init() argument
44 mutex_init(&tbl->lock); in mlx5e_mod_hdr_tbl_init()
45 hash_init(tbl->hlist); in mlx5e_mod_hdr_tbl_init()
48 void mlx5e_mod_hdr_tbl_destroy(struct mod_hdr_tbl *tbl) in mlx5e_mod_hdr_tbl_destroy() argument
50 WARN_ON(!hash_empty(tbl->hlist)); in mlx5e_mod_hdr_tbl_destroy()
51 mutex_destroy(&tbl->lock); in mlx5e_mod_hdr_tbl_destroy()
54 static struct mlx5e_mod_hdr_handle *mod_hdr_get(struct mod_hdr_tbl *tbl, in mod_hdr_get() argument
60 hash_for_each_possible(tbl->hlist, mh, mod_hdr_hlist, hash_key) { in mod_hdr_get()
73 struct mod_hdr_tbl *tbl, in mlx5e_mod_hdr_attach() argument
90 mutex_lock(&tbl->lock); in mlx5e_mod_hdr_attach()
[all …]
/linux/include/net/
H A Dneighbour.h78 struct neigh_table *tbl; member
138 #define NEIGH_CACHE_STAT_INC(tbl, field) this_cpu_inc((tbl)->stats->field) argument
143 struct neigh_table *tbl; member
251 return p->tbl->family; in neigh_parms_family()
259 return (char *)n + n->tbl->entry_size; in neighbour_priv()
304 struct neigh_table *tbl, in ___neigh_lookup_noref() argument
312 struct neigh_hash_table *nht = rcu_dereference(tbl->nht); in ___neigh_lookup_noref()
324 static inline struct neighbour *__neigh_lookup_noref(struct neigh_table *tbl, in __neigh_lookup_noref() argument
328 return ___neigh_lookup_noref(tbl, tbl->key_eq, tbl->hash, pkey, dev); in __neigh_lookup_noref()
342 void neigh_table_init(int index, struct neigh_table *tbl);
[all …]

1234567891011