Home
last modified time | relevance | path

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

12345678910>>...202

/Linux-v5.4/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()
80 unsigned long *table, *pgd; in crst_table_upgrade() local
88 table = crst_table_alloc(mm); in crst_table_upgrade()
89 if (!table) { in crst_table_upgrade()
96 crst_table_init(table, _REGION2_ENTRY_EMPTY); in crst_table_upgrade()
97 p4d_populate(mm, (p4d_t *) table, (pud_t *) pgd); in crst_table_upgrade()
98 mm->pgd = (pgd_t *) table; in crst_table_upgrade()
104 crst_table_init(table, _REGION1_ENTRY_EMPTY); in crst_table_upgrade()
[all …]
Dgmap.c39 unsigned long *table; in gmap_alloc() local
76 table = (unsigned long *) page_to_phys(page); in gmap_alloc()
77 crst_table_init(table, etype); in gmap_alloc()
78 gmap->table = table; in gmap_alloc()
80 _ASCE_USER_BITS | __pa(table); in gmap_alloc()
305 static int gmap_alloc_table(struct gmap *gmap, unsigned long *table, in gmap_alloc_table() argument
311 /* since we dont free the gmap table until gmap_free we can unlock */ in gmap_alloc_table()
318 if (*table & _REGION_ENTRY_INVALID) { in gmap_alloc_table()
320 *table = (unsigned long) new | _REGION_ENTRY_LENGTH | in gmap_alloc_table()
321 (*table & _REGION_ENTRY_TYPE_MASK); in gmap_alloc_table()
[all …]
/Linux-v5.4/drivers/infiniband/hw/hns/
Dhns_roce_hem.c219 dev_err(dev, "Table %d not support multi-hop addressing!\n", in get_hem_table_config()
228 struct hns_roce_hem_table *table, unsigned long *obj, in hns_roce_calc_hem_mhop() argument
237 if (get_hem_table_config(hr_dev, mhop, table->type)) in hns_roce_calc_hem_mhop()
247 bt_num = hns_roce_get_bt_num(table->type, mhop->hop_num); in hns_roce_calc_hem_mhop()
249 chunk_size = table->type < HEM_TYPE_MTT ? mhop->buf_chunk_size : in hns_roce_calc_hem_mhop()
251 table_idx = (*obj & (table->num_obj - 1)) / in hns_roce_calc_hem_mhop()
252 (chunk_size / table->obj_size); in hns_roce_calc_hem_mhop()
267 dev_err(dev, "Table %d not support hop_num = %d!\n", in hns_roce_calc_hem_mhop()
268 table->type, mhop->hop_num); in hns_roce_calc_hem_mhop()
363 struct hns_roce_hem_table *table, unsigned long obj) in hns_roce_set_hem() argument
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/drivers/gpu/drm/i915/gt/
Dintel_mocs.c40 const struct drm_i915_mocs_entry *table; member
118 * entries will remain constant and the table will only be updated by
283 struct drm_i915_mocs_table *table) in get_mocs_settings() argument
289 table->size = ARRAY_SIZE(tigerlake_mocs_table); in get_mocs_settings()
290 table->table = tigerlake_mocs_table; in get_mocs_settings()
291 table->n_entries = GEN11_NUM_MOCS_ENTRIES; in get_mocs_settings()
294 table->size = ARRAY_SIZE(icelake_mocs_table); in get_mocs_settings()
295 table->table = icelake_mocs_table; in get_mocs_settings()
296 table->n_entries = GEN11_NUM_MOCS_ENTRIES; in get_mocs_settings()
299 table->size = ARRAY_SIZE(skylake_mocs_table); in get_mocs_settings()
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/drivers/infiniband/core/
Dcache.c49 u16 table[0]; member
76 * GID entry is detached from the table.
102 /* In RoCE, adding a GID to the table requires:
162 * @table: GID table pointer
163 * @index: Index to check in GID table
167 static bool is_gid_index_default(const struct ib_gid_table *table, in is_gid_index_default() argument
170 return index < 32 && (BIT(index) & table->default_gid_indices); in is_gid_index_default()
238 struct ib_gid_table *table = rdma_gid_table(device, port_num); in free_gid_entry_locked() local
243 write_lock_irq(&table->rwlock); in free_gid_entry_locked()
246 * The only way to avoid overwriting NULL in table is in free_gid_entry_locked()
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/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 …]
/Linux-v5.4/fs/proc/
Dproc_sysctl.c188 struct ctl_node *node, struct ctl_table *table) in init_header() argument
190 head->ctl_table = table; in init_header()
191 head->ctl_table_arg = table; in init_header()
203 for (entry = table; entry->procname; entry++, node++) in init_header()
450 static int sysctl_perm(struct ctl_table_header *head, struct ctl_table *table, int op) in sysctl_perm() argument
456 mode = root->permissions(head, table); in sysctl_perm()
458 mode = table->mode; in sysctl_perm()
464 struct ctl_table_header *head, struct ctl_table *table) in proc_sys_make_inode() argument
485 ei->sysctl_entry = table; in proc_sys_make_inode()
491 inode->i_mode = table->mode; in proc_sys_make_inode()
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/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 …]
/Linux-v5.4/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 …]
Dtbinstal.c4 * Module Name: tbinstal - ACPI table installation and removal
21 * PARAMETERS: new_table_desc - New table descriptor to install
23 * table_index - Where the table index is returned
27 * DESCRIPTION: Install an ACPI table into the global data structure. The
28 * table override mechanism is called to allow the host
29 * OS to replace any table before it is installed in the root
30 * table array.
46 * ACPI Table Override: in acpi_tb_install_table_with_override()
48 * Before we install the table, let the host OS override it with a new in acpi_tb_install_table_with_override()
49 * one if desired. Any table within the RSDT/XSDT can be replaced, in acpi_tb_install_table_with_override()
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/drivers/gpu/drm/amd/powerplay/smumgr/
Dvegam_smumgr.c448 SMU75_Discrete_DpmTable *table) in vegam_populate_smc_mvdd_table() argument
458 table->SmioTable2.Pattern[level].Voltage = PP_HOST_TO_SMC_US( in vegam_populate_smc_mvdd_table()
461 table->SmioTable2.Pattern[level].Smio = in vegam_populate_smc_mvdd_table()
463 table->Smio[level] |= in vegam_populate_smc_mvdd_table()
466 table->SmioMask2 = data->mvdd_voltage_table.mask_low; in vegam_populate_smc_mvdd_table()
468 table->MvddLevelCount = (uint32_t) PP_HOST_TO_SMC_UL(count); in vegam_populate_smc_mvdd_table()
475 struct SMU75_Discrete_DpmTable *table) in vegam_populate_smc_vddci_table() argument
486 table->SmioTable1.Pattern[level].Voltage = PP_HOST_TO_SMC_US( in vegam_populate_smc_vddci_table()
488 table->SmioTable1.Pattern[level].Smio = (uint8_t) level; in vegam_populate_smc_vddci_table()
490 table->Smio[level] |= data->vddci_voltage_table.entries[level].smio_low; in vegam_populate_smc_vddci_table()
[all …]
Dci_smumgr.c420 pr_err("vdd_dep_on_sclk table is NULL\n"); in ci_populate_single_graphic_level()
584 "The CAC Leakage table does not exist!", return -EINVAL); in ci_populate_bapm_vddc_vid_sidd()
772 "The SCLK/VDDC Dependency Table does not exist.\n", in ci_get_std_voltage_value_sidd()
776 pr_warn("CAC Leakage Table does not exist, using vddc.\n"); in ci_get_std_voltage_value_sidd()
787 …warn("Index from SCLK/VDDC Dependency Table exceeds the CAC Leakage Table index, using maximum ind… in ci_get_std_voltage_value_sidd()
803 …ex from SCLK/VDDC Dependency Table exceeds the CAC Leakage Table index in second look up, using ma… in ci_get_std_voltage_value_sidd()
812 pr_warn("Unable to get std_vddc from SCLK/VDDC Dependency Table, using vddc.\n"); in ci_get_std_voltage_value_sidd()
840 SMU7_Discrete_DpmTable *table) in ci_populate_smc_vddc_table() argument
846 table->VddcLevelCount = data->vddc_voltage_table.count; in ci_populate_smc_vddc_table()
847 for (count = 0; count < table->VddcLevelCount; count++) { in ci_populate_smc_vddc_table()
[all …]
Dtonga_smumgr.c255 /* clock - voltage dependency table is empty table */ in tonga_get_dependency_volt_by_clk()
286 /* sclk is bigger than max sclk in the dependence table */ in tonga_get_dependency_volt_by_clk()
303 SMU72_Discrete_DpmTable *table) in tonga_populate_smc_vddc_table() argument
309 table->VddcLevelCount = data->vddc_voltage_table.count; in tonga_populate_smc_vddc_table()
310 for (count = 0; count < table->VddcLevelCount; count++) { in tonga_populate_smc_vddc_table()
311 table->VddcTable[count] = in tonga_populate_smc_vddc_table()
314 CONVERT_FROM_HOST_TO_SMC_UL(table->VddcLevelCount); in tonga_populate_smc_vddc_table()
320 SMU72_Discrete_DpmTable *table) in tonga_populate_smc_vdd_gfx_table() argument
326 table->VddGfxLevelCount = data->vddgfx_voltage_table.count; in tonga_populate_smc_vdd_gfx_table()
328 table->VddGfxTable[count] = in tonga_populate_smc_vdd_gfx_table()
[all …]
Diceland_smumgr.c397 "The CAC Leakage table does not exist!", return -EINVAL); in iceland_populate_bapm_vddc_vid_sidd()
512 /* clock - voltage dependency table is empty table */ in iceland_get_dependency_volt_by_clk()
524 /* sclk is bigger than max sclk in the dependence table */ in iceland_get_dependency_volt_by_clk()
539 /* SCLK/VDDC Dependency Table has to exist. */ in iceland_get_std_voltage_value_sidd()
541 "The SCLK/VDDC Dependency Table does not exist.", in iceland_get_std_voltage_value_sidd()
545 pr_warn("CAC Leakage Table does not exist, using vddc.\n"); in iceland_get_std_voltage_value_sidd()
550 * Since voltage in the sclk/vddc dependency table is not in iceland_get_std_voltage_value_sidd()
561 …warn("Index from SCLK/VDDC Dependency Table exceeds the CAC Leakage Table index, using maximum ind… in iceland_get_std_voltage_value_sidd()
581 …ex from SCLK/VDDC Dependency Table exceeds the CAC Leakage Table index in second look up, using ma… in iceland_get_std_voltage_value_sidd()
590 pr_warn("Unable to get std_vddc from SCLK/VDDC Dependency Table, using vddc.\n"); in iceland_get_std_voltage_value_sidd()
[all …]
/Linux-v5.4/arch/powerpc/boot/
Dplanetcore.c17 * a table of key=value strings, separated by newlines.
26 void planetcore_prepare_table(char *table) in planetcore_prepare_table() argument
29 if (*table == '\n') in planetcore_prepare_table()
30 *table = 0; in planetcore_prepare_table()
32 table++; in planetcore_prepare_table()
33 } while (*(table - 1) || *table != '\n'); in planetcore_prepare_table()
35 *table = 0; in planetcore_prepare_table()
38 const char *planetcore_get_key(const char *table, const char *key) in planetcore_get_key() argument
43 if (!strncmp(table, key, keylen) && table[keylen] == '=') in planetcore_get_key()
44 return table + keylen + 1; in planetcore_get_key()
[all …]
/Linux-v5.4/lib/zlib_inflate/
Dinftrees.c13 The code lengths are lens[0..codes-1]. The result starts at *table,
17 -1 is an invalid code, and +1 means that ENOUGH isn't enough. table
19 requested root table index bits, and on return it is the actual root
20 table index bits. It will differ if the request is greater than the
24 code **table, unsigned *bits, unsigned short *work) in zlib_inflate_table() argument
29 unsigned root; /* number of index bits for root table */ in zlib_inflate_table()
30 unsigned curr; /* number of index bits for current table */ in zlib_inflate_table()
31 unsigned drop; /* code bits to drop for sub-table */ in zlib_inflate_table()
33 unsigned used; /* code entries in table used */ in zlib_inflate_table()
39 code this; /* table entry for duplication */ in zlib_inflate_table()
[all …]
/Linux-v5.4/tools/power/acpi/os_specific/service_layers/
Doslinuxtbl.c38 char *signature, struct acpi_table_header **table);
42 char *signature, struct acpi_table_header **table);
44 static void osl_unmap_table(struct acpi_table_header *table);
59 struct acpi_table_header **table,
67 struct acpi_table_header **table,
93 /* Table addresses */
144 * PARAMETERS: address - Physical address of the ACPI table
145 * table - Where a pointer to the table is returned
147 * RETURN: Status; Table buffer is returned if AE_OK.
148 * AE_NOT_FOUND: A valid table was not found at the address
[all …]
/Linux-v5.4/Documentation/arm64/
Dacpi_object_usage.rst10 the table signature (the first four bytes of the table) is the only portion
11 of the table recognized by the specification, and the actual table is defined
28 Table Usage for ARMv8 Linux
32 **Boot Error Record Table**
35 is recommended this table be supplied.
39 **simple BOOT flag table**
41 Microsoft only table, will not be supported.
45 **Boot Graphics Resource Table**
52 **Corrected Platform Error Polling table**
60 **Core System Resources Table**
[all …]
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
Drl.c107 * If the table is full, return NULL
109 static struct mlx5_rl_entry *find_rl_entry(struct mlx5_rl_table *table, in find_rl_entry() argument
116 for (i = 0; i < table->max_size; i++) { in find_rl_entry()
117 if (mlx5_rl_are_equal(&table->rl_entry[i].rl, rl)) in find_rl_entry()
118 return &table->rl_entry[i]; in find_rl_entry()
119 if (!empty_found && !table->rl_entry[i].rl.rate) { in find_rl_entry()
121 ret_entry = &table->rl_entry[i]; in find_rl_entry()
146 struct mlx5_rl_table *table = &dev->priv.rl_table; in mlx5_rl_is_in_range() local
148 return (rate <= table->max_rate && rate >= table->min_rate); in mlx5_rl_is_in_range()
164 struct mlx5_rl_table *table = &dev->priv.rl_table; in mlx5_rl_add_rate() local
[all …]
/Linux-v5.4/tools/power/acpi/man/
Dacpidump.835 Print table summaries only
43 .B Table Options
46 Get table via a physical address
49 Turning on/off customized table dumping
52 Get table via a binary file
55 Get table via a name/signature
74 Acpi table [DSDT] - 15974 bytes written to DSDT.dat
75 Acpi table [FACS] - 64 bytes written to FACS.dat
76 Acpi table [FACP] - 116 bytes written to FACP.dat
77 Acpi table [APIC] - 120 bytes written to APIC.dat
[all …]

12345678910>>...202