Home
last modified time | relevance | path

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

12345678910>>...316

/OK3568_Linux_fs/kernel/drivers/net/ethernet/aquantia/atlantic/macsec/
H A 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 …]
/OK3568_Linux_fs/kernel/arch/s390/mm/
H A 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 …]
/OK3568_Linux_fs/external/security/librkcrypto/third_party/libdrm/src/
H A Dxf86drmHash.c1 /* xf86drmHash.c -- Small hash table support for integer -> integer mapping
31 * hash table using self-organizing linked lists [Knuth73, pp. 398-399] for
35 * 1) The table is power-of-two sized. Prime sized tables are more
37 * sized table, especially when double hashing is not used for collision
40 * 2) The hash computation uses a table of random integers [Hanson97,
45 * With a table size of 512, the current implementation is sufficient for a
49 * naive) approach to dynamic hash table implementation simply creates a
50 * new hash table when necessary, rehashes all the data into the new table,
51 * and destroys the old table. The approach in [Larson88] is superior in
52 * two ways: 1) only a portion of the table is expanded when needed,
[all …]
/OK3568_Linux_fs/kernel/drivers/infiniband/hw/hns/
H A 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 …]
/OK3568_Linux_fs/kernel/tools/power/acpi/tools/acpidump/
H A 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 …]
/OK3568_Linux_fs/u-boot/arch/x86/include/asm/
H A Dmpspec.h23 u32 mpf_physptr; /* Configuration table address */
38 u16 mpc_length; /* Size of table */
43 u32 mpc_oemptr; /* OEM table address */
44 u16 mpc_oemsize; /* OEM table size */
45 u16 mpc_entry_count; /* Number of entries in the table */
47 u16 mpe_length; /* Extended table size */
48 u8 mpe_checksum; /* Extended table checksum */
52 /* Base MP configuration table entry types */
148 /* Extended MP configuration table entry types */
218 * mp_next_mpc_entry() - Compute MP configuration table end to be used as
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireguard/
H A 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 …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/drivers/net/mlxsw/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx4/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/infiniband/core/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/acpi/acpica/
H A 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 …]
/OK3568_Linux_fs/kernel/net/sched/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/gpu/arm/mali400/ump/common/
H A Dump_kernel_descriptor_mapping.c20 * Allocate a descriptor table capable of holding 'count' mappings
21 * @param count Number of mappings in the table
22 * @return Pointer to a new table, NULL on error
27 * Free a descriptor table
28 * @param table The table to free
30 static void descriptor_table_free(ump_descriptor_table *table);
40 map->table = descriptor_table_alloc(init_entries); in ump_descriptor_mapping_create()
41 if (NULL != map->table) { in ump_descriptor_mapping_create()
44 …_mali_osk_set_nonatomic_bit(0, map->table->usage); /* reserve bit 0 to prevent NULL/zero logic to … in ump_descriptor_mapping_create()
49 descriptor_table_free(map->table); in ump_descriptor_mapping_create()
[all …]
/OK3568_Linux_fs/kernel/drivers/clk/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/pm/powerplay/smumgr/
H A Dvegam_smumgr.c450 SMU75_Discrete_DpmTable *table) in vegam_populate_smc_mvdd_table() argument
460 table->SmioTable2.Pattern[level].Voltage = PP_HOST_TO_SMC_US( in vegam_populate_smc_mvdd_table()
463 table->SmioTable2.Pattern[level].Smio = in vegam_populate_smc_mvdd_table()
465 table->Smio[level] |= in vegam_populate_smc_mvdd_table()
468 table->SmioMask2 = data->mvdd_voltage_table.mask_low; in vegam_populate_smc_mvdd_table()
470 table->MvddLevelCount = (uint32_t) PP_HOST_TO_SMC_UL(count); in vegam_populate_smc_mvdd_table()
477 struct SMU75_Discrete_DpmTable *table) in vegam_populate_smc_vddci_table() argument
488 table->SmioTable1.Pattern[level].Voltage = PP_HOST_TO_SMC_US( in vegam_populate_smc_vddci_table()
490 table->SmioTable1.Pattern[level].Smio = (uint8_t) level; in vegam_populate_smc_vddci_table()
492 table->Smio[level] |= data->vddci_voltage_table.entries[level].smio_low; in vegam_populate_smc_vddci_table()
[all …]
H A Dci_smumgr.c421 pr_err("vdd_dep_on_sclk table is NULL\n"); in ci_populate_single_graphic_level()
585 "The CAC Leakage table does not exist!", return -EINVAL); in ci_populate_bapm_vddc_vid_sidd()
773 "The SCLK/VDDC Dependency Table does not exist.\n", in ci_get_std_voltage_value_sidd()
777 pr_warn("CAC Leakage Table does not exist, using vddc.\n"); in ci_get_std_voltage_value_sidd()
788 …warn("Index from SCLK/VDDC Dependency Table exceeds the CAC Leakage Table index, using maximum ind… in ci_get_std_voltage_value_sidd()
804 …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()
813 pr_warn("Unable to get std_vddc from SCLK/VDDC Dependency Table, using vddc.\n"); in ci_get_std_voltage_value_sidd()
841 SMU7_Discrete_DpmTable *table) in ci_populate_smc_vddc_table() argument
847 table->VddcLevelCount = data->vddc_voltage_table.count; in ci_populate_smc_vddc_table()
848 for (count = 0; count < table->VddcLevelCount; count++) { in ci_populate_smc_vddc_table()
[all …]
H A 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 …]
/OK3568_Linux_fs/kernel/fs/proc/
H A Dproc_sysctl.c190 struct ctl_node *node, struct ctl_table *table) in init_header() argument
192 head->ctl_table = table; in init_header()
193 head->ctl_table_arg = table; in init_header()
205 for (entry = table; entry->procname; entry++, node++) in init_header()
419 static int sysctl_perm(struct ctl_table_header *head, struct ctl_table *table, int op) in sysctl_perm() argument
425 mode = root->permissions(head, table); in sysctl_perm()
427 mode = table->mode; in sysctl_perm()
433 struct ctl_table_header *head, struct ctl_table *table) in proc_sys_make_inode() argument
454 ei->sysctl_entry = table; in proc_sys_make_inode()
460 inode->i_mode = table->mode; in proc_sys_make_inode()
[all …]
/OK3568_Linux_fs/kernel/drivers/firmware/efi/
H A Dmokvar-table.c3 * mokvar-table.c
9 * Owner Key (MOK) variable configuration table, which is identified by
12 * This EFI configuration table provides a more robust alternative to
15 * kernel during boot. If both the EFI MOK config table and corresponding
16 * EFI MOK variables are present, the table should be considered as
19 * This module includes code that validates and maps the EFI MOK table,
23 * entries in the MOK config table or to search for a specific named
26 * The contents of the individual named MOK config table entries are
46 * The LINUX_EFI_MOK_VARIABLE_TABLE_GUID config table is a packed
52 * MOK config table by efi_mokvar_table_init(). This will be
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/
H A Drl.c111 * If the table is full, return NULL
113 static struct mlx5_rl_entry *find_rl_entry(struct mlx5_rl_table *table, in find_rl_entry() argument
120 for (i = 0; i < table->max_size; i++) { in find_rl_entry()
122 if (!table->rl_entry[i].refcount) in find_rl_entry()
123 return &table->rl_entry[i]; in find_rl_entry()
127 if (table->rl_entry[i].refcount) { in find_rl_entry()
128 if (table->rl_entry[i].dedicated) in find_rl_entry()
130 if (mlx5_rl_are_equal_raw(&table->rl_entry[i], rl_in, in find_rl_entry()
132 return &table->rl_entry[i]; in find_rl_entry()
135 ret_entry = &table->rl_entry[i]; in find_rl_entry()
[all …]
/OK3568_Linux_fs/kernel/lib/zlib_inflate/
H A 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 …]
/OK3568_Linux_fs/u-boot/lib/zlib/
H A Dinftrees.c22 The code lengths are lens[0..codes-1]. The result starts at *table,
26 -1 is an invalid code, and +1 means that ENOUGH isn't enough. table
28 requested root table index bits, and on return it is the actual root
29 table index bits. It will differ if the request is greater than the
33 code FAR * FAR *table, unsigned FAR *bits, in inflate_table() argument
39 unsigned root; /* number of index bits for root table */ in inflate_table()
40 unsigned curr; /* number of index bits for current table */ in inflate_table()
41 unsigned drop; /* code bits to drop for sub-table */ in inflate_table()
43 unsigned used; /* code entries in table used */ in inflate_table()
49 code this; /* table entry for duplication */ in inflate_table()
[all …]
/OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/binutils/binutils/
H A D0020-CVE-2023-22608-2.patch11 (concat_filename): Use new field to help select the correct table
40 @@ -1791,16 +1792,30 @@ concat_filename (struct line_info_table *table, unsigned int file)
44 - if (table == NULL || file - 1 >= table->num_files)
47 + directory 1 is stored in slot 0 of the directory table, directory 2
51 + mapping between DWARF slots and internal table entries. */
52 + if (! table->use_dir_and_file_0)
64 + if (table == NULL || file >= table->num_files)
71 - filename = table->files[file - 1].name;
72 + filename = table->files[file].name;
77 @@ -1811,12 +1826,17 @@ concat_filename (struct line_info_table *table, unsigned int file)
[all …]
/OK3568_Linux_fs/kernel/tools/power/acpi/os_specific/service_layers/
H A Doslinuxtbl.c38 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 …]
/OK3568_Linux_fs/kernel/Documentation/arm64/
H A 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 …]

12345678910>>...316