Home
last modified time | relevance | path

Searched full:table (Results 1 – 25 of 6739) sorted by relevance

12345678910>>...270

/kernel/linux/linux-4.19/drivers/infiniband/hw/hns/
Dhns_roce_hem.c93 struct hns_roce_hem_table *table, unsigned long *obj, in hns_roce_calc_hem_mhop() argument
102 switch (table->type) { in hns_roce_calc_hem_mhop()
152 dev_err(dev, "Table %d not support multi-hop addressing!\n", in hns_roce_calc_hem_mhop()
153 table->type); in hns_roce_calc_hem_mhop()
164 bt_num = hns_roce_get_bt_num(table->type, mhop->hop_num); in hns_roce_calc_hem_mhop()
166 chunk_size = table->type < HEM_TYPE_MTT ? mhop->buf_chunk_size : in hns_roce_calc_hem_mhop()
168 table_idx = (*obj & (table->num_obj - 1)) / in hns_roce_calc_hem_mhop()
169 (chunk_size / table->obj_size); in hns_roce_calc_hem_mhop()
184 dev_err(dev, "Table %d not support hop_num = %d!\n", in hns_roce_calc_hem_mhop()
185 table->type, mhop->hop_num); in hns_roce_calc_hem_mhop()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/macsec/
Dmacsec_api.h48 /*! Read the raw table data from the specified row of the Egress CTL
49 * Filter table, and unpack it into the fields of rec.
50 * rec - [OUT] The raw table row data will be unpacked into the fields of rec.
51 * table_index - The table row to read (max 23).
58 * specified row of the Egress CTL Filter table.
59 * rec - [IN] The bitfield values to write to the table row.
60 * table_index - The table row to write(max 23).
66 /*! Read the raw table data from the specified row of the Egress
67 * Packet Classifier table, and unpack it into the fields of rec.
68 * rec - [OUT] The raw table row data will be unpacked into the fields of rec.
[all …]
/kernel/linux/linux-4.19/drivers/gpu/drm/amd/lib/
Dchash.c34 * chash_table_alloc - Allocate closed hash table
35 * @table: Pointer to the table structure
36 * @bits: Table size will be 2^bits entries
40 int chash_table_alloc(struct chash_table *table, u8 bits, u8 key_size, in chash_table_alloc() argument
49 table->data = kcalloc(__CHASH_DATA_SIZE(bits, key_size, value_size), in chash_table_alloc()
51 if (!table->data) in chash_table_alloc()
54 __CHASH_TABLE_INIT(table->table, table->data, in chash_table_alloc()
62 * chash_table_free - Free closed hash table
63 * @table: Pointer to the table structure
65 void chash_table_free(struct chash_table *table) in chash_table_free() argument
[all …]
/kernel/linux/linux-4.19/drivers/gpu/drm/amd/include/linux/
Dchash.h71 struct __chash_table table; \
77 * struct chash_table - Dynamically allocated closed hash table
84 struct __chash_table table; member
89 * DECLARE_CHASH_TABLE - macro to declare a closed hash table
90 * @table: name of the declared hash table
91 * @bts: Table size will be 2^bits entries
95 * This declares the hash table variable with a static size.
97 * The closed hash table stores key-value pairs with low memory and
100 * list_heads. The hash table performs best with small @val_sz and as
101 * long as some space (about 50%) is left free in the table. But the
[all …]
/kernel/linux/linux-4.19/arch/s390/mm/
Dpgalloc.c3 * Page table allocation functions
66 void crst_table_free(struct mm_struct *mm, unsigned long *table) in crst_table_free() argument
68 free_pages((unsigned long) table, 2); in crst_table_free()
94 unsigned long *table, *pgd; in crst_table_upgrade() local
102 table = crst_table_alloc(mm); in crst_table_upgrade()
103 if (!table) { in crst_table_upgrade()
110 crst_table_init(table, _REGION2_ENTRY_EMPTY); in crst_table_upgrade()
111 p4d_populate(mm, (p4d_t *) table, (pud_t *) pgd); in crst_table_upgrade()
112 mm->pgd = (pgd_t *) table; in crst_table_upgrade()
118 crst_table_init(table, _REGION1_ENTRY_EMPTY); in crst_table_upgrade()
[all …]
/kernel/linux/linux-5.10/arch/s390/mm/
Dpgalloc.c3 * Page table allocation functions
64 void crst_table_free(struct mm_struct *mm, unsigned long *table) in crst_table_free() argument
66 free_pages((unsigned long) table, 2); in crst_table_free()
169 u64 *table; in page_table_alloc_pgste() local
173 table = (u64 *)page_to_phys(page); in page_table_alloc_pgste()
174 memset64(table, _PAGE_INVALID, PTRS_PER_PTE); in page_table_alloc_pgste()
175 memset64(table + PTRS_PER_PTE, 0, PTRS_PER_PTE); in page_table_alloc_pgste()
188 * page table entry allocation/free routines.
192 unsigned long *table; in page_table_alloc() local
196 /* Try to get a fragment of a 4K page as a 2K page table */ in page_table_alloc()
[all …]
/kernel/linux/linux-5.10/tools/power/acpi/tools/acpidump/
Dapdump.c15 ap_dump_table_buffer(struct acpi_table_header *table,
22 * PARAMETERS: table - Pointer to table to be validated
26 * DESCRIPTION: Check for a valid ACPI table header
30 u8 ap_is_valid_header(struct acpi_table_header *table) in ap_is_valid_header() argument
33 if (!ACPI_VALIDATE_RSDP_SIG(table->signature)) { in ap_is_valid_header()
37 if (!acpi_ut_valid_nameseg(table->signature)) { in ap_is_valid_header()
39 "Table signature (0x%8.8X) is invalid\n", in ap_is_valid_header()
40 *(u32 *)table->signature); in ap_is_valid_header()
44 /* Check for minimum table length */ in ap_is_valid_header()
46 if (table->length < sizeof(struct acpi_table_header)) { in ap_is_valid_header()
[all …]
/kernel/linux/linux-4.19/tools/power/acpi/tools/acpidump/
Dapdump.c15 ap_dump_table_buffer(struct acpi_table_header *table,
22 * PARAMETERS: table - Pointer to table to be validated
26 * DESCRIPTION: Check for a valid ACPI table header
30 u8 ap_is_valid_header(struct acpi_table_header *table) in ap_is_valid_header() argument
33 if (!ACPI_VALIDATE_RSDP_SIG(table->signature)) { in ap_is_valid_header()
37 if (!acpi_ut_valid_nameseg(table->signature)) { in ap_is_valid_header()
39 "Table signature (0x%8.8X) is invalid\n", in ap_is_valid_header()
40 *(u32 *)table->signature); in ap_is_valid_header()
44 /* Check for minimum table length */ in ap_is_valid_header()
46 if (table->length < sizeof(struct acpi_table_header)) { in ap_is_valid_header()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/
Dfib.sh103 ip -n $ns route add table local 192.0.2.1/32 dev dummy1
104 fib4_trap_check $ns "table local 192.0.2.1/32 dev dummy1" false
105 check_err $? "Local table route not in hardware when should"
107 ip -n $ns route add table main 192.0.2.1/32 dev dummy1
108 fib4_trap_check $ns "table main 192.0.2.1/32 dev dummy1" true
109 check_err $? "Main table route in hardware when should not"
111 fib4_trap_check $ns "table local 192.0.2.1/32 dev dummy1" false
112 check_err $? "Local table route was replaced when should not"
114 # Test that local routes can replace routes in main table.
115 ip -n $ns route add table main 192.0.2.2/32 dev dummy1
[all …]
/kernel/linux/linux-5.10/drivers/net/wireguard/
Dpeerlookup.c10 static struct hlist_head *pubkey_bucket(struct pubkey_hashtable *table, in pubkey_bucket() argument
17 const u64 hash = siphash(pubkey, NOISE_PUBLIC_KEY_LEN, &table->key); in pubkey_bucket()
19 return &table->hashtable[hash & (HASH_SIZE(table->hashtable) - 1)]; in pubkey_bucket()
24 struct pubkey_hashtable *table = kvmalloc(sizeof(*table), GFP_KERNEL); in wg_pubkey_hashtable_alloc() local
26 if (!table) in wg_pubkey_hashtable_alloc()
29 get_random_bytes(&table->key, sizeof(table->key)); in wg_pubkey_hashtable_alloc()
30 hash_init(table->hashtable); in wg_pubkey_hashtable_alloc()
31 mutex_init(&table->lock); in wg_pubkey_hashtable_alloc()
32 return table; in wg_pubkey_hashtable_alloc()
35 void wg_pubkey_hashtable_add(struct pubkey_hashtable *table, in wg_pubkey_hashtable_add() argument
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/
Dhns_roce_hem.c187 dev_err(dev, "table %u not support multi-hop addressing!\n", in get_hem_table_config()
196 struct hns_roce_hem_table *table, unsigned long *obj, in hns_roce_calc_hem_mhop() argument
205 if (get_hem_table_config(hr_dev, mhop, table->type)) in hns_roce_calc_hem_mhop()
215 bt_num = hns_roce_get_bt_num(table->type, mhop->hop_num); in hns_roce_calc_hem_mhop()
217 chunk_size = table->type < HEM_TYPE_MTT ? mhop->buf_chunk_size : in hns_roce_calc_hem_mhop()
219 table_idx = (*obj & (table->num_obj - 1)) / in hns_roce_calc_hem_mhop()
220 (chunk_size / table->obj_size); in hns_roce_calc_hem_mhop()
235 dev_err(dev, "table %u not support hop_num = %u!\n", in hns_roce_calc_hem_mhop()
236 table->type, mhop->hop_num); in hns_roce_calc_hem_mhop()
331 struct hns_roce_hem_table *table, unsigned long obj) in hns_roce_set_hem() argument
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
Dicm.c258 int mlx4_table_get(struct mlx4_dev *dev, struct mlx4_icm_table *table, u32 obj) in mlx4_table_get() argument
260 u32 i = (obj & (table->num_obj - 1)) / in mlx4_table_get()
261 (MLX4_TABLE_CHUNK_SIZE / table->obj_size); in mlx4_table_get()
264 mutex_lock(&table->mutex); in mlx4_table_get()
266 if (table->icm[i]) { in mlx4_table_get()
267 ++table->icm[i]->refcount; in mlx4_table_get()
271 table->icm[i] = mlx4_alloc_icm(dev, MLX4_TABLE_CHUNK_SIZE >> PAGE_SHIFT, in mlx4_table_get()
272 (table->lowmem ? GFP_KERNEL : GFP_HIGHUSER) | in mlx4_table_get()
273 __GFP_NOWARN, table->coherent); in mlx4_table_get()
274 if (!table->icm[i]) { in mlx4_table_get()
[all …]
/kernel/linux/linux-4.19/drivers/net/ethernet/mellanox/mlx4/
Dicm.c259 int mlx4_table_get(struct mlx4_dev *dev, struct mlx4_icm_table *table, u32 obj) in mlx4_table_get() argument
261 u32 i = (obj & (table->num_obj - 1)) / in mlx4_table_get()
262 (MLX4_TABLE_CHUNK_SIZE / table->obj_size); in mlx4_table_get()
265 mutex_lock(&table->mutex); in mlx4_table_get()
267 if (table->icm[i]) { in mlx4_table_get()
268 ++table->icm[i]->refcount; in mlx4_table_get()
272 table->icm[i] = mlx4_alloc_icm(dev, MLX4_TABLE_CHUNK_SIZE >> PAGE_SHIFT, in mlx4_table_get()
273 (table->lowmem ? GFP_KERNEL : GFP_HIGHUSER) | in mlx4_table_get()
274 __GFP_NOWARN, table->coherent); in mlx4_table_get()
275 if (!table->icm[i]) { in mlx4_table_get()
[all …]
/kernel/linux/linux-4.19/drivers/infiniband/core/
Dcache.c49 u16 table[0]; member
76 * GID entry is detached from the table.
91 /* In RoCE, adding a GID to the table requires:
151 * @table: GID table pointer
152 * @index: Index to check in GID table
156 static bool is_gid_index_default(const struct ib_gid_table *table, in is_gid_index_default() argument
159 return index < 32 && (BIT(index) & table->default_gid_indices); in is_gid_index_default()
213 struct ib_gid_table *table = rdma_gid_table(device, port_num); in free_gid_entry_locked() local
223 write_lock_irq(&table->rwlock); in free_gid_entry_locked()
226 * The only way to avoid overwriting NULL in table is in free_gid_entry_locked()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/core/
Dcache.c49 u16 table[]; member
75 * GID entry is detached from the table.
101 /* In RoCE, adding a GID to the table requires:
165 * @table: GID table pointer
166 * @index: Index to check in GID table
170 static bool is_gid_index_default(const struct ib_gid_table *table, in is_gid_index_default() argument
173 return index < 32 && (BIT(index) & table->default_gid_indices); in is_gid_index_default()
241 struct ib_gid_table *table = rdma_gid_table(device, port_num); in free_gid_entry_locked() local
246 write_lock_irq(&table->rwlock); in free_gid_entry_locked()
249 * The only way to avoid overwriting NULL in table is in free_gid_entry_locked()
[all …]
/kernel/linux/linux-5.10/arch/x86/lib/
Dinat.c29 const insn_attr_t *table; in inat_get_escape_attribute() local
34 table = inat_escape_tables[n][0]; in inat_get_escape_attribute()
35 if (!table) in inat_get_escape_attribute()
37 if (inat_has_variant(table[opcode]) && lpfx_id) { in inat_get_escape_attribute()
38 table = inat_escape_tables[n][lpfx_id]; in inat_get_escape_attribute()
39 if (!table) in inat_get_escape_attribute()
42 return table[opcode]; in inat_get_escape_attribute()
48 const insn_attr_t *table; in inat_get_group_attribute() local
53 table = inat_group_tables[n][0]; in inat_get_group_attribute()
54 if (!table) in inat_get_group_attribute()
[all …]
/kernel/linux/linux-5.10/tools/arch/x86/lib/
Dinat.c29 const insn_attr_t *table; in inat_get_escape_attribute() local
34 table = inat_escape_tables[n][0]; in inat_get_escape_attribute()
35 if (!table) in inat_get_escape_attribute()
37 if (inat_has_variant(table[opcode]) && lpfx_id) { in inat_get_escape_attribute()
38 table = inat_escape_tables[n][lpfx_id]; in inat_get_escape_attribute()
39 if (!table) in inat_get_escape_attribute()
42 return table[opcode]; in inat_get_escape_attribute()
48 const insn_attr_t *table; in inat_get_group_attribute() local
53 table = inat_group_tables[n][0]; in inat_get_group_attribute()
54 if (!table) in inat_get_group_attribute()
[all …]
/kernel/linux/linux-4.19/drivers/gpu/drm/i915/
Dintel_mocs.c35 const struct drm_i915_mocs_entry *table; member
167 * @table: Output table that will be made to point at appropriate
170 * This function will return the values of the MOCS table that needs to
177 struct drm_i915_mocs_table *table) in get_mocs_settings() argument
183 table->size = ARRAY_SIZE(skylake_mocs_table); in get_mocs_settings()
184 table->table = skylake_mocs_table; in get_mocs_settings()
187 table->size = ARRAY_SIZE(broxton_mocs_table); in get_mocs_settings()
188 table->table = broxton_mocs_table; in get_mocs_settings()
192 "Platform that should have a MOCS table does not.\n"); in get_mocs_settings()
199 for (i = 0; i < table->size; i++) in get_mocs_settings()
[all …]
/kernel/linux/linux-5.10/drivers/clk/
Dclk-divider.c44 static unsigned int _get_table_maxdiv(const struct clk_div_table *table, in _get_table_maxdiv() argument
50 for (clkt = table; clkt->div; clkt++) in _get_table_maxdiv()
56 static unsigned int _get_table_mindiv(const struct clk_div_table *table) in _get_table_mindiv() argument
61 for (clkt = table; clkt->div; clkt++) in _get_table_mindiv()
67 static unsigned int _get_maxdiv(const struct clk_div_table *table, u8 width, in _get_maxdiv() argument
74 if (table) in _get_maxdiv()
75 return _get_table_maxdiv(table, width); in _get_maxdiv()
79 static unsigned int _get_table_div(const struct clk_div_table *table, in _get_table_div() argument
84 for (clkt = table; clkt->div; clkt++) in _get_table_div()
90 static unsigned int _get_div(const struct clk_div_table *table, in _get_div() argument
[all …]
/kernel/linux/linux-4.19/fs/proc/
Dproc_sysctl.c183 struct ctl_node *node, struct ctl_table *table) in init_header() argument
185 head->ctl_table = table; in init_header()
186 head->ctl_table_arg = table; in init_header()
198 for (entry = table; entry->procname; entry++, node++) in init_header()
445 static int sysctl_perm(struct ctl_table_header *head, struct ctl_table *table, int op) in sysctl_perm() argument
451 mode = root->permissions(head, table); in sysctl_perm()
453 mode = table->mode; in sysctl_perm()
459 struct ctl_table_header *head, struct ctl_table *table) in proc_sys_make_inode() argument
480 ei->sysctl_entry = table; in proc_sys_make_inode()
486 inode->i_mode = table->mode; in proc_sys_make_inode()
[all …]
/kernel/linux/linux-5.10/Documentation/vm/
Dsplit_page_table_lock.rst4 Split page table lock
10 scalability, split page table lock was introduced.
12 With split page table lock we have separate per-table lock to serialize
13 access to the table. At the moment we use split lock for PTE and PMD
16 There are helpers to lock/unlock a table and other accessor functions:
19 maps pte and takes PTE table lock, returns pointer to the taken
22 unlocks and unmaps PTE table;
24 allocates PTE table if needed and take the lock, returns pointer
27 returns pointer to PTE table lock;
29 takes PMD table lock, returns pointer to taken lock;
[all …]
/kernel/linux/linux-4.19/Documentation/vm/
Dsplit_page_table_lock.rst4 Split page table lock
10 scalability, split page table lock was introduced.
12 With split page table lock we have separate per-table lock to serialize
13 access to the table. At the moment we use split lock for PTE and PMD
16 There are helpers to lock/unlock a table and other accessor functions:
19 maps pte and takes PTE table lock, returns pointer to the taken
22 unlocks and unmaps PTE table;
24 allocates PTE table if needed and take the lock, returns pointer
27 returns pointer to PTE table lock;
29 takes PMD table lock, returns pointer to taken lock;
[all …]
/kernel/linux/linux-5.10/arch/arm64/include/asm/
Dkvm_pgtable.h17 * struct kvm_pgtable - KVM page-table.
19 * @start_level: Level at which the page-table walk starts.
20 * @pgd: Pointer to the first top-level entry of the page-table.
33 * enum kvm_pgtable_prot - Page-table permissions and attributes.
53 * enum kvm_pgtable_walk_flags - Flags to control a depth-first page-table walk.
56 * @KVM_PGTABLE_WALK_TABLE_PRE: Visit table entries before their
58 * @KVM_PGTABLE_WALK_TABLE_POST: Visit table entries after their
73 * struct kvm_pgtable_walker - Hook into a page-table walk.
86 * kvm_pgtable_hyp_init() - Initialise a hypervisor stage-1 page-table.
87 * @pgt: Uninitialised page-table structure to initialise.
[all …]
/kernel/linux/linux-5.10/net/sched/
Dsch_gred.c61 static inline int gred_wred_mode(struct gred_sched *table) in gred_wred_mode() argument
63 return test_bit(GRED_WRED_MODE, &table->flags); in gred_wred_mode()
66 static inline void gred_enable_wred_mode(struct gred_sched *table) in gred_enable_wred_mode() argument
68 __set_bit(GRED_WRED_MODE, &table->flags); in gred_enable_wred_mode()
71 static inline void gred_disable_wred_mode(struct gred_sched *table) in gred_disable_wred_mode() argument
73 __clear_bit(GRED_WRED_MODE, &table->flags); in gred_disable_wred_mode()
76 static inline int gred_rio_mode(struct gred_sched *table) in gred_rio_mode() argument
78 return test_bit(GRED_RIO_MODE, &table->flags); in gred_rio_mode()
81 static inline void gred_enable_rio_mode(struct gred_sched *table) in gred_enable_rio_mode() argument
83 __set_bit(GRED_RIO_MODE, &table->flags); in gred_enable_rio_mode()
[all …]
/kernel/linux/linux-4.19/drivers/acpi/acpica/
Dtbdata.c4 * Module Name: tbdata - Table manager data structure functions
30 * PARAMETERS: table_desc - Table 1 descriptor to be compared
31 * table_index - Index of table 2 to be compared
35 * DESCRIPTION: This function compares a table with another table that has
36 * already been installed in the root table list.
45 struct acpi_table_header *table; in acpi_tb_compare_tables() local
51 &table, &table_length, &table_flags); in acpi_tb_compare_tables()
57 * Check for a table match on the entire table length, in acpi_tb_compare_tables()
61 memcmp(table_desc->pointer, table, table_length)) ? in acpi_tb_compare_tables()
64 /* Release the acquired table */ in acpi_tb_compare_tables()
[all …]

12345678910>>...270