Home
last modified time | relevance | path

Searched refs:table (Results 1 – 25 of 3351) sorted by relevance

12345678910>>...135

/OK3568_Linux_fs/external/security/librkcrypto/third_party/libdrm/src/
H A Dxf86drmHash.c107 HashTablePtr table; in drmHashCreate() local
109 table = drmMalloc(sizeof(*table)); in drmHashCreate()
110 if (!table) return NULL; in drmHashCreate()
111 table->magic = HASH_MAGIC; in drmHashCreate()
113 return table; in drmHashCreate()
118 HashTablePtr table = (HashTablePtr)t; in drmHashDestroy() local
123 if (table->magic != HASH_MAGIC) return -1; /* Bad magic */ in drmHashDestroy()
126 for (bucket = table->buckets[i]; bucket;) { in drmHashDestroy()
132 drmFree(table); in drmHashDestroy()
139 static HashBucketPtr HashFind(HashTablePtr table, in HashFind() argument
[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/arch/s390/mm/
H A Dpgalloc.c64 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()
192 unsigned long *table; in page_table_alloc() local
198 table = NULL; in page_table_alloc()
206 table = (unsigned long *) page_to_phys(page); in page_table_alloc()
209 table += PTRS_PER_PTE; in page_table_alloc()
[all …]
/OK3568_Linux_fs/kernel/tools/power/acpi/tools/acpidump/
H A Dapdump.c15 ap_dump_table_buffer(struct acpi_table_header *table,
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()
40 *(u32 *)table->signature); in ap_is_valid_header()
46 if (table->length < sizeof(struct acpi_table_header)) { in ap_is_valid_header()
48 table->length); in ap_is_valid_header()
68 u8 ap_is_valid_checksum(struct acpi_table_header *table) in ap_is_valid_checksum() argument
73 if (ACPI_VALIDATE_RSDP_SIG(table->signature)) { in ap_is_valid_checksum()
78 rsdp = ACPI_CAST_PTR(struct acpi_table_rsdp, table); in ap_is_valid_checksum()
[all …]
/OK3568_Linux_fs/kernel/drivers/infiniband/hw/hns/
H A Dhns_roce_hem.c196 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()
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
346 unsigned long i = (obj & (table->num_obj - 1)) / in hns_roce_set_hem()
347 (table->table_chunk_size / table->obj_size); in hns_roce_set_hem()
[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
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()
254 if (entry == table->data_vec[entry->attr.index]) in free_gid_entry_locked()
255 table->data_vec[entry->attr.index] = NULL; in free_gid_entry_locked()
257 write_unlock_irq(&table->rwlock); in free_gid_entry_locked()
286 struct ib_gid_table *table = rdma_gid_table(device, port_num); in free_gid_work() local
288 mutex_lock(&table->lock); in free_gid_work()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/gt/
H A Dintel_mocs.c41 const struct drm_i915_mocs_entry *table; member
323 struct drm_i915_mocs_table *table) in get_mocs_settings() argument
328 table->size = ARRAY_SIZE(tgl_mocs_table); in get_mocs_settings()
329 table->table = tgl_mocs_table; in get_mocs_settings()
330 table->n_entries = GEN9_NUM_MOCS_ENTRIES; in get_mocs_settings()
332 table->size = ARRAY_SIZE(icl_mocs_table); in get_mocs_settings()
333 table->table = icl_mocs_table; in get_mocs_settings()
334 table->n_entries = GEN9_NUM_MOCS_ENTRIES; in get_mocs_settings()
336 table->size = ARRAY_SIZE(skl_mocs_table); in get_mocs_settings()
337 table->n_entries = GEN9_NUM_MOCS_ENTRIES; in get_mocs_settings()
[all …]
/OK3568_Linux_fs/kernel/drivers/media/i2c/
H A Dks0127.c208 u8 *table = reg_defaults; in init_reg_defaults() local
214 table[KS_CMDA] = 0x2c; /* VSE=0, CCIR 601, autodetect standard */ in init_reg_defaults()
215 table[KS_CMDB] = 0x12; /* VALIGN=0, AGC control and input */ in init_reg_defaults()
216 table[KS_CMDC] = 0x00; /* Test options */ in init_reg_defaults()
218 table[KS_CMDD] = 0x01; in init_reg_defaults()
219 table[KS_HAVB] = 0x00; /* HAV Start Control */ in init_reg_defaults()
220 table[KS_HAVE] = 0x00; /* HAV End Control */ in init_reg_defaults()
221 table[KS_HS1B] = 0x10; /* HS1 Start Control */ in init_reg_defaults()
222 table[KS_HS1E] = 0x00; /* HS1 End Control */ in init_reg_defaults()
223 table[KS_HS2B] = 0x00; /* HS2 Start Control */ in init_reg_defaults()
[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/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/arch/powerpc/boot/
H A Dplanetcore.c26 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()
46 table += strlen(table) + 1; in planetcore_get_key()
[all …]
/OK3568_Linux_fs/kernel/arch/x86/lib/
H A 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 …]
/OK3568_Linux_fs/kernel/tools/arch/x86/lib/
H A 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 …]
/OK3568_Linux_fs/yocto/meta-openembedded/meta-networking/recipes-filter/ebtables/ebtables-2.0.11/
H A Debtables.common30 for table in filter nat broute; do
31 /usr/sbin/ebtables-legacy -t $table -L &> /dev/null
33 EBTABLES_SUPPORTED_TABLES="${EBTABLES_SUPPORTED_TABLES} $table"
42 for table in $EBTABLES_SUPPORTED_TABLES; do
43 echo -n "$table "
44 if [ -s ${EBTABLES_DUMPFILE_STEM}.$table ]; then
45 … /usr/sbin/ebtables-legacy -t $table --atomic-file ${EBTABLES_DUMPFILE_STEM}.$table --atomic-commit
71 for table in $EBTABLES_SUPPORTED_TABLES; do
72 echo -n "$table "
73 /usr/sbin/ebtables-legacy -t $table --init-table
[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.c841 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()
851 &(table->VddcLevel[count])); in ci_populate_smc_vddc_table()
856 table->VddcLevel[count].Smio = (uint8_t) count; in ci_populate_smc_vddc_table()
857 table->Smio[count] |= data->vddc_voltage_table.entries[count].smio_low; in ci_populate_smc_vddc_table()
858 table->SmioMaskVddcVid |= data->vddc_voltage_table.entries[count].smio_low; in ci_populate_smc_vddc_table()
860 table->VddcLevel[count].Smio = 0; in ci_populate_smc_vddc_table()
864 CONVERT_FROM_HOST_TO_SMC_UL(table->VddcLevelCount); in ci_populate_smc_vddc_table()
870 SMU7_Discrete_DpmTable *table) in ci_populate_smc_vdd_ci_table() argument
[all …]
H A Dtonga_smumgr.c303 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()
331 CONVERT_FROM_HOST_TO_SMC_UL(table->VddGfxLevelCount); in tonga_populate_smc_vdd_gfx_table()
337 SMU72_Discrete_DpmTable *table) in tonga_populate_smc_vdd_ci_table() argument
[all …]
H A Diceland_smumgr.c618 SMU71_Discrete_DpmTable *table) in iceland_populate_smc_vddc_table() argument
624 table->VddcLevelCount = data->vddc_voltage_table.count; in iceland_populate_smc_vddc_table()
625 for (count = 0; count < table->VddcLevelCount; count++) { in iceland_populate_smc_vddc_table()
628 &(table->VddcLevel[count])); in iceland_populate_smc_vddc_table()
633 table->VddcLevel[count].Smio |= data->vddc_voltage_table.entries[count].smio_low; in iceland_populate_smc_vddc_table()
635 table->VddcLevel[count].Smio = 0; in iceland_populate_smc_vddc_table()
638 CONVERT_FROM_HOST_TO_SMC_UL(table->VddcLevelCount); in iceland_populate_smc_vddc_table()
644 SMU71_Discrete_DpmTable *table) in iceland_populate_smc_vdd_ci_table() argument
650 table->VddciLevelCount = data->vddci_voltage_table.count; in iceland_populate_smc_vdd_ci_table()
652 for (count = 0; count < table->VddciLevelCount; count++) { in iceland_populate_smc_vdd_ci_table()
[all …]
H A Dpolaris10_smumgr.c430 SMU74_Discrete_DpmTable *table = &(smu_data->smc_state_table); in polaris10_populate_bapm_parameters_in_dpm_table() local
440 table->DefaultTdp = PP_HOST_TO_SMC_US((uint16_t)(cac_dtp_table->usTDP * 128)); in polaris10_populate_bapm_parameters_in_dpm_table()
441 table->TargetTdp = PP_HOST_TO_SMC_US((uint16_t)(cac_dtp_table->usTDP * 128)); in polaris10_populate_bapm_parameters_in_dpm_table()
447 table->TemperatureLimitEdge = PP_HOST_TO_SMC_US( in polaris10_populate_bapm_parameters_in_dpm_table()
449 table->TemperatureLimitHotspot = PP_HOST_TO_SMC_US( in polaris10_populate_bapm_parameters_in_dpm_table()
451 table->FanGainEdge = PP_HOST_TO_SMC_US( in polaris10_populate_bapm_parameters_in_dpm_table()
453 table->FanGainHotspot = PP_HOST_TO_SMC_US( in polaris10_populate_bapm_parameters_in_dpm_table()
462 table->BAPMTI_R[i][j][k] = PP_HOST_TO_SMC_US(*pdef1); in polaris10_populate_bapm_parameters_in_dpm_table()
463 table->BAPMTI_RC[i][j][k] = PP_HOST_TO_SMC_US(*pdef2); in polaris10_populate_bapm_parameters_in_dpm_table()
648 SMU74_Discrete_DpmTable *table) in polaris10_populate_smc_mvdd_table() argument
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/
H A Drl.c113 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()
160 struct mlx5_rl_table *table = &dev->priv.rl_table; in mlx5_rl_is_in_range() local
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/arm/mali400/ump/common/
H A Dump_kernel_descriptor_mapping.c30 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()
58 descriptor_table_free(map->table); in ump_descriptor_mapping_destroy()
67 descriptor = _mali_osk_find_first_zero_bit(map->table->usage, map->current_nr_mappings); in ump_descriptor_mapping_allocate_mapping()
72 ump_descriptor_table *old_table = map->table; in ump_descriptor_mapping_allocate_mapping()
88 map->table = new_table; in ump_descriptor_mapping_allocate_mapping()
94 _mali_osk_set_nonatomic_bit(descriptor, map->table->usage); in ump_descriptor_mapping_allocate_mapping()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/sfc/
H A Dmcdi_filters.c27 efx_mcdi_filter_entry_spec(const struct efx_mcdi_filter_table *table, in efx_mcdi_filter_entry_spec() argument
30 return (struct efx_filter_spec *)(table->entry[filter_idx].spec & in efx_mcdi_filter_entry_spec()
35 efx_mcdi_filter_entry_flags(const struct efx_mcdi_filter_table *table, in efx_mcdi_filter_entry_flags() argument
38 return table->entry[filter_idx].spec & EFX_EF10_FILTER_FLAGS; in efx_mcdi_filter_entry_flags()
84 efx_mcdi_filter_set_entry(struct efx_mcdi_filter_table *table, in efx_mcdi_filter_set_entry() argument
89 table->entry[filter_idx].spec = (unsigned long)spec | flags; in efx_mcdi_filter_set_entry()
325 static int efx_mcdi_filter_pri(struct efx_mcdi_filter_table *table, in efx_mcdi_filter_pri() argument
332 match_pri < table->rx_match_count; in efx_mcdi_filter_pri()
334 if (table->rx_match_mcdi_flags[match_pri] == mcdi_flags) in efx_mcdi_filter_pri()
345 struct efx_mcdi_filter_table *table; in efx_mcdi_filter_insert_locked() local
[all …]
/OK3568_Linux_fs/kernel/drivers/infiniband/hw/mthca/
H A Dmthca_memfree.c222 int mthca_table_get(struct mthca_dev *dev, struct mthca_icm_table *table, int obj) in mthca_table_get() argument
224 int i = (obj & (table->num_obj - 1)) * table->obj_size / MTHCA_TABLE_CHUNK_SIZE; in mthca_table_get()
227 mutex_lock(&table->mutex); in mthca_table_get()
229 if (table->icm[i]) { in mthca_table_get()
230 ++table->icm[i]->refcount; in mthca_table_get()
234 table->icm[i] = mthca_alloc_icm(dev, MTHCA_TABLE_CHUNK_SIZE >> PAGE_SHIFT, in mthca_table_get()
235 (table->lowmem ? GFP_KERNEL : GFP_HIGHUSER) | in mthca_table_get()
236 __GFP_NOWARN, table->coherent); in mthca_table_get()
237 if (!table->icm[i]) { in mthca_table_get()
242 if (mthca_MAP_ICM(dev, table->icm[i], in mthca_table_get()
[all …]
/OK3568_Linux_fs/kernel/tools/bpf/bpftool/
H A Dpids.c16 int build_obj_refs_table(struct obj_refs_table *table, enum bpf_obj_type type) in build_obj_refs_table() argument
20 void delete_obj_refs_table(struct obj_refs_table *table) {} in delete_obj_refs_table() argument
21 void emit_obj_refs_plain(struct obj_refs_table *table, __u32 id, const char *prefix) {} in emit_obj_refs_plain() argument
22 void emit_obj_refs_json(struct obj_refs_table *table, __u32 id, json_writer_t *json_writer) {} in emit_obj_refs_json() argument
28 static void add_ref(struct obj_refs_table *table, struct pid_iter_entry *e) in add_ref() argument
35 hash_for_each_possible(table->table, refs, node, e->id) { in add_ref()
79 hash_add(table->table, &refs->node, e->id); in add_ref()
90 int build_obj_refs_table(struct obj_refs_table *table, enum bpf_obj_type type) in build_obj_refs_table() argument
98 hash_init(table->table); in build_obj_refs_table()
154 add_ref(table, e); in build_obj_refs_table()
[all …]

12345678910>>...135