/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/sf/ |
D | devlink.c | 35 mlx5_sf_lookup_by_index(struct mlx5_sf_table *table, unsigned int port_index) in mlx5_sf_lookup_by_index() argument 37 return xa_load(&table->port_indices, port_index); in mlx5_sf_lookup_by_index() 41 mlx5_sf_lookup_by_function_id(struct mlx5_sf_table *table, unsigned int fn_id) in mlx5_sf_lookup_by_function_id() argument 46 xa_for_each(&table->port_indices, index, sf) { in mlx5_sf_lookup_by_function_id() 53 static int mlx5_sf_id_insert(struct mlx5_sf_table *table, struct mlx5_sf *sf) in mlx5_sf_id_insert() argument 55 return xa_insert(&table->port_indices, sf->port_index, sf, GFP_KERNEL); in mlx5_sf_id_insert() 58 static void mlx5_sf_id_erase(struct mlx5_sf_table *table, struct mlx5_sf *sf) in mlx5_sf_id_erase() argument 60 xa_erase(&table->port_indices, sf->port_index); in mlx5_sf_id_erase() 64 mlx5_sf_alloc(struct mlx5_sf_table *table, struct mlx5_eswitch *esw, in mlx5_sf_alloc() argument 78 id_err = mlx5_sf_hw_table_sf_alloc(table->dev, controller, sfnum); in mlx5_sf_alloc() [all …]
|
D | hw_table.c | 60 mlx5_sf_table_fn_to_hwc(struct mlx5_sf_hw_table *table, u16 fn_id) in mlx5_sf_table_fn_to_hwc() argument 64 for (i = 0; i < ARRAY_SIZE(table->hwc); i++) { in mlx5_sf_table_fn_to_hwc() 65 if (table->hwc[i].max_fn && in mlx5_sf_table_fn_to_hwc() 66 fn_id >= table->hwc[i].start_fn_id && in mlx5_sf_table_fn_to_hwc() 67 fn_id < (table->hwc[i].start_fn_id + table->hwc[i].max_fn)) in mlx5_sf_table_fn_to_hwc() 68 return &table->hwc[i]; in mlx5_sf_table_fn_to_hwc() 73 static int mlx5_sf_hw_table_id_alloc(struct mlx5_sf_hw_table *table, u32 controller, in mlx5_sf_hw_table_id_alloc() argument 80 hwc = mlx5_sf_controller_to_hwc(table->dev, controller); in mlx5_sf_hw_table_id_alloc() 102 static void mlx5_sf_hw_table_id_free(struct mlx5_sf_hw_table *table, u32 controller, int id) in mlx5_sf_hw_table_id_free() argument 106 hwc = mlx5_sf_controller_to_hwc(table->dev, controller); in mlx5_sf_hw_table_id_free() [all …]
|
/Linux-v6.1/drivers/net/wireguard/ |
D | peerlookup.c | 10 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 …]
|
/Linux-v6.1/drivers/net/wireless/intel/iwlwifi/fw/ |
D | dump.c | 102 struct iwl_umac_error_event_table table = {}; in iwl_fwrt_dump_umac_error_log() local 111 iwl_trans_read_mem_bytes(trans, base, &table, sizeof(table)); in iwl_fwrt_dump_umac_error_log() 113 if (table.valid) in iwl_fwrt_dump_umac_error_log() 114 fwrt->dump.umac_err_id = table.error_id; in iwl_fwrt_dump_umac_error_log() 116 if (ERROR_START_OFFSET <= table.valid * ERROR_ELEM_SIZE) { in iwl_fwrt_dump_umac_error_log() 119 fwrt->trans->status, table.valid); in iwl_fwrt_dump_umac_error_log() 122 if ((table.error_id & ~FW_SYSASSERT_CPU_MASK) == in iwl_fwrt_dump_umac_error_log() 129 IWL_ERR(fwrt, "0x%08X | %s\n", table.error_id, in iwl_fwrt_dump_umac_error_log() 130 iwl_fw_lookup_assert_desc(table.error_id)); in iwl_fwrt_dump_umac_error_log() 131 IWL_ERR(fwrt, "0x%08X | umac branchlink1\n", table.blink1); in iwl_fwrt_dump_umac_error_log() [all …]
|
/Linux-v6.1/drivers/gpu/drm/i915/gt/ |
D | intel_mocs.c | 24 const struct drm_i915_mocs_entry *table; member 440 struct drm_i915_mocs_table *table) in get_mocs_settings() argument 444 memset(table, 0, sizeof(struct drm_i915_mocs_table)); in get_mocs_settings() 446 table->unused_entries_index = I915_MOCS_PTE; in get_mocs_settings() 448 table->size = ARRAY_SIZE(pvc_mocs_table); in get_mocs_settings() 449 table->table = pvc_mocs_table; in get_mocs_settings() 450 table->n_entries = PVC_NUM_MOCS_ENTRIES; in get_mocs_settings() 451 table->uc_index = 1; in get_mocs_settings() 452 table->wb_index = 2; in get_mocs_settings() 453 table->unused_entries_index = 2; in get_mocs_settings() [all …]
|
/Linux-v6.1/arch/s390/mm/ |
D | pgalloc.c | 64 void crst_table_free(struct mm_struct *mm, unsigned long *table) in crst_table_free() argument 66 free_pages((unsigned long)table, CRST_ALLOC_ORDER); in crst_table_free() 160 u64 *table; in page_table_alloc_pgste() local 164 table = (u64 *)page_to_virt(page); in page_table_alloc_pgste() 165 memset64(table, _PAGE_INVALID, PTRS_PER_PTE); in page_table_alloc_pgste() 166 memset64(table + PTRS_PER_PTE, 0, PTRS_PER_PTE); in page_table_alloc_pgste() 251 unsigned long *table; in page_table_alloc() local 257 table = NULL; in page_table_alloc() 274 table = (unsigned long *) page_to_virt(page); in page_table_alloc() 277 table += PTRS_PER_PTE; in page_table_alloc() [all …]
|
/Linux-v6.1/tools/power/acpi/tools/acpidump/ |
D | apdump.c | 15 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 …]
|
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/sf/dev/ |
D | dev.c | 35 struct mlx5_sf_dev_table *table = dev->priv.sf_dev_table; in mlx5_sf_dev_allocated() local 37 return table && !xa_empty(&table->devices); in mlx5_sf_dev_allocated() 85 struct mlx5_sf_dev_table *table = dev->priv.sf_dev_table; in mlx5_sf_dev_add() local 113 if (!table->max_sfs) { in mlx5_sf_dev_add() 119 sf_dev->bar_base_addr = table->base_address + (sf_index * table->sf_bar_length); in mlx5_sf_dev_add() 136 err = xa_insert(&table->devices, sf_index, sf_dev, GFP_KERNEL); in mlx5_sf_dev_add() 150 struct mlx5_sf_dev_table *table = dev->priv.sf_dev_table; in mlx5_sf_dev_del() local 152 xa_erase(&table->devices, sf_index); in mlx5_sf_dev_del() 159 struct mlx5_sf_dev_table *table = container_of(nb, struct mlx5_sf_dev_table, nb); in mlx5_sf_dev_state_change_handler() local 166 max_functions = mlx5_sf_max_functions(table->dev); in mlx5_sf_dev_state_change_handler() [all …]
|
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/ |
D | rl.c | 112 static struct mlx5_rl_entry *find_rl_entry(struct mlx5_rl_table *table, in find_rl_entry() argument 119 lockdep_assert_held(&table->rl_lock); in find_rl_entry() 120 WARN_ON(!table->rl_entry); in find_rl_entry() 122 for (i = 0; i < table->max_size; i++) { in find_rl_entry() 124 if (!table->rl_entry[i].refcount) in find_rl_entry() 125 return &table->rl_entry[i]; in find_rl_entry() 129 if (table->rl_entry[i].refcount) { in find_rl_entry() 130 if (table->rl_entry[i].dedicated) in find_rl_entry() 132 if (mlx5_rl_are_equal_raw(&table->rl_entry[i], rl_in, in find_rl_entry() 134 return &table->rl_entry[i]; in find_rl_entry() [all …]
|
/Linux-v6.1/drivers/net/wireless/realtek/rtw89/ |
D | fw.h | 516 static inline void SET_CTRL_INFO_MACID(void *table, u32 val) in SET_CTRL_INFO_MACID() argument 518 le32p_replace_bits((__le32 *)(table) + 0, val, GENMASK(6, 0)); in SET_CTRL_INFO_MACID() 521 static inline void SET_CTRL_INFO_OPERATION(void *table, u32 val) in SET_CTRL_INFO_OPERATION() argument 523 le32p_replace_bits((__le32 *)(table) + 0, val, BIT(7)); in SET_CTRL_INFO_OPERATION() 526 static inline void SET_CMC_TBL_DATARATE(void *table, u32 val) in SET_CMC_TBL_DATARATE() argument 528 le32p_replace_bits((__le32 *)(table) + 1, val, GENMASK(8, 0)); in SET_CMC_TBL_DATARATE() 529 le32p_replace_bits((__le32 *)(table) + 9, SET_CMC_TBL_MASK_DATARATE, in SET_CMC_TBL_DATARATE() 533 static inline void SET_CMC_TBL_FORCE_TXOP(void *table, u32 val) in SET_CMC_TBL_FORCE_TXOP() argument 535 le32p_replace_bits((__le32 *)(table) + 1, val, BIT(9)); in SET_CMC_TBL_FORCE_TXOP() 536 le32p_replace_bits((__le32 *)(table) + 9, SET_CMC_TBL_MASK_FORCE_TXOP, in SET_CMC_TBL_FORCE_TXOP() [all …]
|
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx4/ |
D | icm.c | 258 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-v6.1/drivers/infiniband/core/ |
D | cache.c | 49 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 …]
|
/Linux-v6.1/drivers/infiniband/hw/hns/ |
D | hns_roce_hem.c | 203 struct hns_roce_hem_table *table, unsigned long *obj, in hns_roce_calc_hem_mhop() argument 212 if (get_hem_table_config(hr_dev, mhop, table->type)) in hns_roce_calc_hem_mhop() 222 bt_num = hns_roce_get_bt_num(table->type, mhop->hop_num); in hns_roce_calc_hem_mhop() 224 chunk_size = table->type < HEM_TYPE_MTT ? mhop->buf_chunk_size : in hns_roce_calc_hem_mhop() 226 table_idx = *obj / (chunk_size / table->obj_size); in hns_roce_calc_hem_mhop() 242 table->type, mhop->hop_num); in hns_roce_calc_hem_mhop() 336 struct hns_roce_hem_table *table, unsigned long obj, in calc_hem_config() argument 347 ret = hns_roce_calc_hem_mhop(hr_dev, table, &mhop_obj, mhop); in calc_hem_config() 355 bt_num = hns_roce_get_bt_num(table->type, mhop->hop_num); in calc_hem_config() 372 table->type, mhop->hop_num); in calc_hem_config() [all …]
|
/Linux-v6.1/arch/x86/lib/ |
D | inat.c | 29 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-v6.1/tools/arch/x86/lib/ |
D | inat.c | 29 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-v6.1/arch/powerpc/boot/ |
D | planetcore.c | 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() 46 table += strlen(table) + 1; in planetcore_get_key() [all …]
|
/Linux-v6.1/drivers/net/ethernet/marvell/octeontx2/af/ |
D | rvu_npc_hash.c | 391 struct npc_exact_table *table = rvu->hw->table; in rvu_exact_calculate_hash() local 410 hash &= table->mem_table.hash_mask; in rvu_exact_calculate_hash() 411 hash += table->mem_table.hash_offset; in rvu_exact_calculate_hash() 430 struct npc_exact_table *table; in rvu_npc_exact_alloc_mem_table_entry() local 433 table = rvu->hw->table; in rvu_npc_exact_alloc_mem_table_entry() 434 depth = table->mem_table.depth; in rvu_npc_exact_alloc_mem_table_entry() 437 mutex_lock(&table->lock); in rvu_npc_exact_alloc_mem_table_entry() 438 for (i = 0; i < table->mem_table.ways; i++) { in rvu_npc_exact_alloc_mem_table_entry() 439 if (test_bit(hash + i * depth, table->mem_table.bmap)) in rvu_npc_exact_alloc_mem_table_entry() 442 set_bit(hash + i * depth, table->mem_table.bmap); in rvu_npc_exact_alloc_mem_table_entry() [all …]
|
/Linux-v6.1/drivers/media/i2c/ |
D | ks0127.c | 208 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 …]
|
/Linux-v6.1/net/sched/ |
D | sch_gred.c | 62 static inline int gred_wred_mode(struct gred_sched *table) in gred_wred_mode() argument 64 return test_bit(GRED_WRED_MODE, &table->flags); in gred_wred_mode() 67 static inline void gred_enable_wred_mode(struct gred_sched *table) in gred_enable_wred_mode() argument 69 __set_bit(GRED_WRED_MODE, &table->flags); in gred_enable_wred_mode() 72 static inline void gred_disable_wred_mode(struct gred_sched *table) in gred_disable_wred_mode() argument 74 __clear_bit(GRED_WRED_MODE, &table->flags); in gred_disable_wred_mode() 77 static inline int gred_rio_mode(struct gred_sched *table) in gred_rio_mode() argument 79 return test_bit(GRED_RIO_MODE, &table->flags); in gred_rio_mode() 82 static inline void gred_enable_rio_mode(struct gred_sched *table) in gred_enable_rio_mode() argument 84 __set_bit(GRED_RIO_MODE, &table->flags); in gred_enable_rio_mode() [all …]
|
/Linux-v6.1/drivers/clk/ |
D | clk-divider.c | 45 static unsigned int _get_table_maxdiv(const struct clk_div_table *table, in _get_table_maxdiv() argument 51 for (clkt = table; clkt->div; clkt++) in _get_table_maxdiv() 57 static unsigned int _get_table_mindiv(const struct clk_div_table *table) in _get_table_mindiv() argument 62 for (clkt = table; clkt->div; clkt++) in _get_table_mindiv() 68 static unsigned int _get_maxdiv(const struct clk_div_table *table, u8 width, in _get_maxdiv() argument 75 if (table) in _get_maxdiv() 76 return _get_table_maxdiv(table, width); in _get_maxdiv() 80 static unsigned int _get_table_div(const struct clk_div_table *table, in _get_table_div() argument 85 for (clkt = table; clkt->div; clkt++) in _get_table_div() 91 static unsigned int _get_div(const struct clk_div_table *table, in _get_div() argument [all …]
|
/Linux-v6.1/drivers/gpu/drm/amd/pm/powerplay/smumgr/ |
D | vegam_smumgr.c | 450 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 …]
|
D | polaris10_smumgr.c | 432 SMU74_Discrete_DpmTable *table = &(smu_data->smc_state_table); in polaris10_populate_bapm_parameters_in_dpm_table() local 442 table->DefaultTdp = PP_HOST_TO_SMC_US((uint16_t)(cac_dtp_table->usTDP * 128)); in polaris10_populate_bapm_parameters_in_dpm_table() 443 table->TargetTdp = PP_HOST_TO_SMC_US((uint16_t)(cac_dtp_table->usTDP * 128)); in polaris10_populate_bapm_parameters_in_dpm_table() 449 table->TemperatureLimitEdge = PP_HOST_TO_SMC_US( in polaris10_populate_bapm_parameters_in_dpm_table() 451 table->TemperatureLimitHotspot = PP_HOST_TO_SMC_US( in polaris10_populate_bapm_parameters_in_dpm_table() 453 table->FanGainEdge = PP_HOST_TO_SMC_US( in polaris10_populate_bapm_parameters_in_dpm_table() 455 table->FanGainHotspot = PP_HOST_TO_SMC_US( in polaris10_populate_bapm_parameters_in_dpm_table() 464 table->BAPMTI_R[i][j][k] = PP_HOST_TO_SMC_US(*pdef1); in polaris10_populate_bapm_parameters_in_dpm_table() 465 table->BAPMTI_RC[i][j][k] = PP_HOST_TO_SMC_US(*pdef2); in polaris10_populate_bapm_parameters_in_dpm_table() 478 SMU74_Discrete_DpmTable *table = &(smu_data->smc_state_table); in polaris10_populate_zero_rpm_parameters() local [all …]
|
D | ci_smumgr.c | 843 SMU7_Discrete_DpmTable *table) in ci_populate_smc_vddc_table() argument 849 table->VddcLevelCount = data->vddc_voltage_table.count; in ci_populate_smc_vddc_table() 850 for (count = 0; count < table->VddcLevelCount; count++) { in ci_populate_smc_vddc_table() 853 &(table->VddcLevel[count])); in ci_populate_smc_vddc_table() 858 table->VddcLevel[count].Smio = (uint8_t) count; in ci_populate_smc_vddc_table() 859 table->Smio[count] |= data->vddc_voltage_table.entries[count].smio_low; in ci_populate_smc_vddc_table() 860 table->SmioMaskVddcVid |= data->vddc_voltage_table.entries[count].smio_low; in ci_populate_smc_vddc_table() 862 table->VddcLevel[count].Smio = 0; in ci_populate_smc_vddc_table() 866 CONVERT_FROM_HOST_TO_SMC_UL(table->VddcLevelCount); in ci_populate_smc_vddc_table() 872 SMU7_Discrete_DpmTable *table) in ci_populate_smc_vdd_ci_table() argument [all …]
|
/Linux-v6.1/drivers/net/ethernet/sfc/ |
D | mcdi_filters.c | 27 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() 328 static int efx_mcdi_filter_pri(struct efx_mcdi_filter_table *table, in efx_mcdi_filter_pri() argument 335 match_pri < table->rx_match_count; in efx_mcdi_filter_pri() 337 if (table->rx_match_mcdi_flags[match_pri] == mcdi_flags) in efx_mcdi_filter_pri() 348 struct efx_mcdi_filter_table *table; in efx_mcdi_filter_insert_locked() local [all …]
|
/Linux-v6.1/drivers/infiniband/hw/mthca/ |
D | mthca_memfree.c | 222 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 …]
|