/linux-6.6.21/fs/nfs/ ! |
D | nfs4session.c | 27 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 …]
|
D | nfs4session.h | 83 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-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/steering/ ! |
D | dr_table.c | 28 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-6.6.21/arch/powerpc/kernel/ ! |
D | iommu.c | 45 struct iommu_table *tbl = data; in iommu_debugfs_weight_get() local 46 *val = bitmap_weight(tbl->it_map, tbl->it_size); in iommu_debugfs_weight_get() 51 static void iommu_debugfs_add(struct iommu_table *tbl) in iommu_debugfs_add() argument 56 sprintf(name, "%08lx", tbl->it_index); in iommu_debugfs_add() 59 debugfs_create_file_unsafe("weight", 0400, liobn_entry, tbl, &iommu_debugfs_fops_weight); in iommu_debugfs_add() 60 debugfs_create_ulong("it_size", 0400, liobn_entry, &tbl->it_size); in iommu_debugfs_add() 61 debugfs_create_ulong("it_page_shift", 0400, liobn_entry, &tbl->it_page_shift); in iommu_debugfs_add() 62 debugfs_create_ulong("it_reserved_start", 0400, liobn_entry, &tbl->it_reserved_start); in iommu_debugfs_add() 63 debugfs_create_ulong("it_reserved_end", 0400, liobn_entry, &tbl->it_reserved_end); in iommu_debugfs_add() 64 debugfs_create_ulong("it_indirect_levels", 0400, liobn_entry, &tbl->it_indirect_levels); in iommu_debugfs_add() [all …]
|
/linux-6.6.21/drivers/infiniband/hw/vmw_pvrdma/ ! |
D | pvrdma_doorbell.c | 56 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-6.6.21/include/linux/ ! |
D | rhashtable.h | 119 static inline unsigned int rht_bucket_index(const struct bucket_table *tbl, in rht_bucket_index() argument 122 return hash & (tbl->size - 1); in rht_bucket_index() 156 struct rhashtable *ht, const struct bucket_table *tbl, in rht_key_hashfn() argument 159 unsigned int hash = rht_key_get_hash(ht, key, params, tbl->hash_rnd); in rht_key_hashfn() 161 return rht_bucket_index(tbl, hash); in rht_key_hashfn() 165 struct rhashtable *ht, const struct bucket_table *tbl, in rht_head_hashfn() argument 171 rht_bucket_index(tbl, params.obj_hashfn(ptr, params.key_len ?: in rht_head_hashfn() 173 tbl->hash_rnd)) : in rht_head_hashfn() 174 rht_key_hashfn(ht, tbl, ptr + params.key_offset, params); in rht_head_hashfn() 183 const struct bucket_table *tbl) in rht_grow_above_75() argument [all …]
|
/linux-6.6.21/tools/perf/util/ ! |
D | syscalltbl.c | 67 static int syscalltbl__init_native(struct syscalltbl *tbl) in syscalltbl__init_native() argument 76 entries = tbl->syscalls.entries = malloc(sizeof(struct syscall) * nr_entries); in syscalltbl__init_native() 77 if (tbl->syscalls.entries == NULL) in syscalltbl__init_native() 88 qsort(tbl->syscalls.entries, nr_entries, sizeof(struct syscall), syscallcmp); in syscalltbl__init_native() 89 tbl->syscalls.nr_entries = nr_entries; in syscalltbl__init_native() 90 tbl->syscalls.max_id = syscalltbl_native_max_id; in syscalltbl__init_native() 96 struct syscalltbl *tbl = malloc(sizeof(*tbl)); in syscalltbl__new() local 97 if (tbl) { in syscalltbl__new() 98 if (syscalltbl__init_native(tbl)) { in syscalltbl__new() 99 free(tbl); in syscalltbl__new() [all …]
|
/linux-6.6.21/arch/powerpc/platforms/powernv/ ! |
D | pci-ioda-tce.c | 48 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-6.6.21/lib/ ! |
D | rhashtable.c | 38 const struct bucket_table *tbl, in head_hashfn() argument 41 return rht_head_hashfn(ht, tbl, he, ht->p); in head_hashfn() 53 int lockdep_rht_bucket_is_held(const struct bucket_table *tbl, u32 hash) in lockdep_rht_bucket_is_held() argument 57 if (unlikely(tbl->nest)) in lockdep_rht_bucket_is_held() 59 return bit_spin_is_locked(0, (unsigned long *)&tbl->buckets[hash]); in lockdep_rht_bucket_is_held() 67 const struct bucket_table *tbl) in nested_table_top() argument 72 return (void *)rcu_dereference_protected(tbl->buckets[0], 1); in nested_table_top() 94 static void nested_bucket_table_free(const struct bucket_table *tbl) in nested_bucket_table_free() argument 96 unsigned int size = tbl->size >> tbl->nest; in nested_bucket_table_free() 97 unsigned int len = 1 << tbl->nest; in nested_bucket_table_free() [all …]
|
/linux-6.6.21/drivers/net/wireless/intel/iwlwifi/dvm/ ! |
D | rs.c | 414 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 …]
|
D | rs.h | 256 #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-6.6.21/net/netfilter/ipvs/ ! |
D | ip_vs_lblc.c | 168 ip_vs_lblc_hash(struct ip_vs_lblc_table *tbl, struct ip_vs_lblc_entry *en) in ip_vs_lblc_hash() argument 172 hlist_add_head_rcu(&en->list, &tbl->bucket[hash]); in ip_vs_lblc_hash() 173 atomic_inc(&tbl->entries); in ip_vs_lblc_hash() 179 ip_vs_lblc_get(int af, struct ip_vs_lblc_table *tbl, in ip_vs_lblc_get() argument 185 hlist_for_each_entry_rcu(en, &tbl->bucket[hash], list) in ip_vs_lblc_get() 198 ip_vs_lblc_new(struct ip_vs_lblc_table *tbl, const union nf_inet_addr *daddr, in ip_vs_lblc_new() argument 203 en = ip_vs_lblc_get(af, tbl, daddr); in ip_vs_lblc_new() 220 ip_vs_lblc_hash(tbl, en); in ip_vs_lblc_new() 231 struct ip_vs_lblc_table *tbl = svc->sched_data; in ip_vs_lblc_flush() local 237 tbl->dead = true; in ip_vs_lblc_flush() [all …]
|
D | ip_vs_lblcr.c | 331 ip_vs_lblcr_hash(struct ip_vs_lblcr_table *tbl, struct ip_vs_lblcr_entry *en) in ip_vs_lblcr_hash() argument 335 hlist_add_head_rcu(&en->list, &tbl->bucket[hash]); in ip_vs_lblcr_hash() 336 atomic_inc(&tbl->entries); in ip_vs_lblcr_hash() 342 ip_vs_lblcr_get(int af, struct ip_vs_lblcr_table *tbl, in ip_vs_lblcr_get() argument 348 hlist_for_each_entry_rcu(en, &tbl->bucket[hash], list) in ip_vs_lblcr_get() 361 ip_vs_lblcr_new(struct ip_vs_lblcr_table *tbl, const union nf_inet_addr *daddr, in ip_vs_lblcr_new() argument 366 en = ip_vs_lblcr_get(af, tbl, daddr); in ip_vs_lblcr_new() 382 ip_vs_lblcr_hash(tbl, en); in ip_vs_lblcr_new() 397 struct ip_vs_lblcr_table *tbl = svc->sched_data; in ip_vs_lblcr_flush() local 403 tbl->dead = true; in ip_vs_lblcr_flush() [all …]
|
/linux-6.6.21/arch/powerpc/include/asm/ ! |
D | iommu.h | 43 int (*set)(struct iommu_table *tbl, 54 int (*xchg_no_kill)(struct iommu_table *tbl, 59 void (*tce_kill)(struct iommu_table *tbl, 63 __be64 *(*useraddrptr)(struct iommu_table *tbl, long index, bool alloc); 65 void (*clear)(struct iommu_table *tbl, 68 unsigned long (*get)(struct iommu_table *tbl, long index); 69 void (*flush)(struct iommu_table *tbl); 70 void (*free)(struct iommu_table *tbl); 120 #define IOMMU_TABLE_USERSPACE_ENTRY_RO(tbl, entry) \ argument 121 ((tbl)->it_ops->useraddrptr((tbl), (entry), false)) [all …]
|
/linux-6.6.21/drivers/net/wireless/marvell/mwifiex/ ! |
D | 11n_rxreorder.c | 98 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-6.6.21/drivers/net/wireless/intel/iwlegacy/ ! |
D | 4965-rs.c | 389 il4965_get_expected_tpt(struct il_scale_tbl_info *tbl, int rs_idx) in il4965_get_expected_tpt() argument 391 if (tbl->expected_tpt) in il4965_get_expected_tpt() 392 return tbl->expected_tpt[rs_idx]; in il4965_get_expected_tpt() 404 il4965_rs_collect_tx_data(struct il_scale_tbl_info *tbl, int scale_idx, in il4965_rs_collect_tx_data() argument 415 win = &(tbl->win[scale_idx]); in il4965_rs_collect_tx_data() 418 tpt = il4965_get_expected_tpt(tbl, scale_idx); in il4965_rs_collect_tx_data() 482 il4965_rate_n_flags_from_tbl(struct il_priv *il, struct il_scale_tbl_info *tbl, in il4965_rate_n_flags_from_tbl() argument 487 if (is_legacy(tbl->lq_type)) { in il4965_rate_n_flags_from_tbl() 492 } else if (is_Ht(tbl->lq_type)) { in il4965_rate_n_flags_from_tbl() 499 if (is_siso(tbl->lq_type)) in il4965_rate_n_flags_from_tbl() [all …]
|
/linux-6.6.21/net/core/ ! |
D | neighbour.c | 57 static int pneigh_ifdown_and_unlock(struct neigh_table *tbl, 123 atomic_dec(&n->tbl->gc_entries); in neigh_mark_dead() 133 write_lock_bh(&n->tbl->lock); in neigh_update_gc_list() 147 atomic_dec(&n->tbl->gc_entries); in neigh_update_gc_list() 150 list_add_tail(&n->gc_list, &n->tbl->gc_list); in neigh_update_gc_list() 151 atomic_inc(&n->tbl->gc_entries); in neigh_update_gc_list() 155 write_unlock_bh(&n->tbl->lock); in neigh_update_gc_list() 162 write_lock_bh(&n->tbl->lock); in neigh_update_managed_list() 173 list_add_tail(&n->managed_list, &n->tbl->managed_list); in neigh_update_managed_list() 176 write_unlock_bh(&n->tbl->lock); in neigh_update_managed_list() [all …]
|
/linux-6.6.21/drivers/firmware/efi/ ! |
D | memattr.c | 24 efi_memory_attributes_table_t *tbl; in efi_memattr_init() local 29 tbl = early_memremap(efi_mem_attr_table, sizeof(*tbl)); in efi_memattr_init() 30 if (!tbl) { in efi_memattr_init() 36 if (tbl->version > 2) { in efi_memattr_init() 38 tbl->version); in efi_memattr_init() 42 tbl_size = sizeof(*tbl) + tbl->num_entries * tbl->desc_size; in efi_memattr_init() 47 early_memunmap(tbl, sizeof(*tbl)); in efi_memattr_init() 131 efi_memory_attributes_table_t *tbl; in efi_memattr_apply_permissions() local 135 if (tbl_size <= sizeof(*tbl)) in efi_memattr_apply_permissions() 147 tbl = memremap(efi_mem_attr_table, tbl_size, MEMREMAP_WB); in efi_memattr_apply_permissions() [all …]
|
/linux-6.6.21/ipc/ ! |
D | mq_sysctl.c | 85 struct ctl_table *tbl; in setup_mq_sysctls() local 89 tbl = kmemdup(mq_sysctls, sizeof(mq_sysctls), GFP_KERNEL); in setup_mq_sysctls() 90 if (tbl) { in setup_mq_sysctls() 94 if (tbl[i].data == &init_ipc_ns.mq_queues_max) in setup_mq_sysctls() 95 tbl[i].data = &ns->mq_queues_max; in setup_mq_sysctls() 97 else if (tbl[i].data == &init_ipc_ns.mq_msg_max) in setup_mq_sysctls() 98 tbl[i].data = &ns->mq_msg_max; in setup_mq_sysctls() 100 else if (tbl[i].data == &init_ipc_ns.mq_msgsize_max) in setup_mq_sysctls() 101 tbl[i].data = &ns->mq_msgsize_max; in setup_mq_sysctls() 103 else if (tbl[i].data == &init_ipc_ns.mq_msg_default) in setup_mq_sysctls() [all …]
|
D | ipc_sysctl.c | 216 struct ctl_table *tbl; in setup_ipc_sysctls() local 220 tbl = kmemdup(ipc_sysctls, sizeof(ipc_sysctls), GFP_KERNEL); in setup_ipc_sysctls() 221 if (tbl) { in setup_ipc_sysctls() 225 if (tbl[i].data == &init_ipc_ns.shm_ctlmax) in setup_ipc_sysctls() 226 tbl[i].data = &ns->shm_ctlmax; in setup_ipc_sysctls() 228 else if (tbl[i].data == &init_ipc_ns.shm_ctlall) in setup_ipc_sysctls() 229 tbl[i].data = &ns->shm_ctlall; in setup_ipc_sysctls() 231 else if (tbl[i].data == &init_ipc_ns.shm_ctlmni) in setup_ipc_sysctls() 232 tbl[i].data = &ns->shm_ctlmni; in setup_ipc_sysctls() 234 else if (tbl[i].data == &init_ipc_ns.shm_rmid_forced) in setup_ipc_sysctls() [all …]
|
/linux-6.6.21/net/netfilter/ ! |
D | xt_repldata.h | 24 } *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_pad(tbl->repl.name, info->name, sizeof(tbl->repl.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-6.6.21/drivers/vfio/ ! |
D | vfio_iommu_spapr_tce.c | 209 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-6.6.21/net/mac80211/ ! |
D | mesh_pathtbl.c | 19 static void mesh_path_free_rcu(struct mesh_table *tbl, struct mesh_path *mpath); 81 struct mesh_table *tbl = tblptr; in mesh_path_rht_free() local 83 mesh_path_free_rcu(tbl, mpath); in mesh_path_rht_free() 86 static void mesh_table_init(struct mesh_table *tbl) in mesh_table_init() argument 88 INIT_HLIST_HEAD(&tbl->known_gates); in mesh_table_init() 89 INIT_HLIST_HEAD(&tbl->walk_head); in mesh_table_init() 90 atomic_set(&tbl->entries, 0); in mesh_table_init() 91 spin_lock_init(&tbl->gates_lock); in mesh_table_init() 92 spin_lock_init(&tbl->walk_lock); in mesh_table_init() 97 WARN_ON(rhashtable_init(&tbl->rhead, &mesh_rht_params)); in mesh_table_init() [all …]
|
/linux-6.6.21/arch/powerpc/kvm/ ! |
D | book3s_64_vio.c | 65 iommu_tce_table_put(stit->tbl); in kvm_spapr_tce_iommu_table_free() 97 if (table_group->tables[i] != stit->tbl) in kvm_spapr_tce_release_iommu_group() 113 struct iommu_table *tbl = NULL; in kvm_spapr_tce_attach_iommu_group() local 156 tbl = iommu_tce_table_get(tbltmp); in kvm_spapr_tce_attach_iommu_group() 160 if (!tbl) in kvm_spapr_tce_attach_iommu_group() 165 if (tbl != stit->tbl) in kvm_spapr_tce_attach_iommu_group() 170 iommu_tce_table_put(tbl); in kvm_spapr_tce_attach_iommu_group() 185 iommu_tce_table_put(tbl); in kvm_spapr_tce_attach_iommu_group() 189 stit->tbl = tbl; in kvm_spapr_tce_attach_iommu_group() 392 long shift = stit->tbl->it_page_shift; in kvmppc_tce_validate() [all …]
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en/ ! |
D | mod_hdr.c | 42 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 …]
|