/kernel/linux/linux-5.10/drivers/firmware/efi/ |
D | tpm.c | 43 int tbl_size; in efi_tpm_eventlog_init() local 62 tbl_size = sizeof(*log_tbl) + log_tbl->size; in efi_tpm_eventlog_init() 63 memblock_reserve(efi.tpm_log, tbl_size); in efi_tpm_eventlog_init() 83 tbl_size = 0; in efi_tpm_eventlog_init() 89 tbl_size = tpm2_calc_event_log_size(events, in efi_tpm_eventlog_init() 94 if (tbl_size < 0) { in efi_tpm_eventlog_init() 101 tbl_size + sizeof(*final_tbl)); in efi_tpm_eventlog_init() 102 efi_tpm_final_log_size = tbl_size; in efi_tpm_eventlog_init()
|
D | memattr.c | 15 static int __initdata tbl_size; variable 42 tbl_size = sizeof(*tbl) + tbl->num_entries * tbl->desc_size; in efi_memattr_init() 43 memblock_reserve(efi_mem_attr_table, tbl_size); in efi_memattr_init() 134 if (tbl_size <= sizeof(*tbl)) in efi_memattr_apply_permissions() 146 tbl = memremap(efi_mem_attr_table, tbl_size, MEMREMAP_WB); in efi_memattr_apply_permissions()
|
/kernel/linux/linux-5.10/arch/powerpc/boot/ |
D | simple_alloc.c | 129 unsigned long heap_base, tbl_size; in simple_alloc_init() local 135 tbl_size = tbl_entries * sizeof(struct alloc_info); in simple_alloc_init() 138 memset(alloc_tbl, 0, tbl_size); in simple_alloc_init() 140 heap_base = _ALIGN_UP((unsigned long)alloc_tbl + tbl_size, alloc_min); in simple_alloc_init()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_bios.c | 359 acpi_size tbl_size; in amdgpu_acpi_vfct_bios() local 365 tbl_size = hdr->length; in amdgpu_acpi_vfct_bios() 366 if (tbl_size < sizeof(UEFI_ACPI_VFCT)) { in amdgpu_acpi_vfct_bios() 374 while (offset < tbl_size) { in amdgpu_acpi_vfct_bios() 379 if (offset > tbl_size) { in amdgpu_acpi_vfct_bios() 385 if (offset > tbl_size) { in amdgpu_acpi_vfct_bios()
|
D | amdgpu_ras_eeprom.c | 118 pp[3] = cpu_to_le32(hdr->tbl_size); in __encode_table_header_to_buff() 130 hdr->tbl_size = le32_to_cpu(pp[3]); in __decode_table_header_from_buff() 257 hdr->tbl_size = EEPROM_TABLE_HEADER_SIZE; in amdgpu_ras_eeprom_reset_table() 311 control->num_recs = (hdr->tbl_size - EEPROM_TABLE_HEADER_SIZE) / in amdgpu_ras_eeprom_init() 590 control->tbl_hdr.tbl_size += EEPROM_TABLE_RECORD_SIZE * num; in amdgpu_ras_eeprom_process_recods() 591 if (control->tbl_hdr.tbl_size > EEPROM_SIZE_BYTES) in amdgpu_ras_eeprom_process_recods() 592 control->tbl_hdr.tbl_size = EEPROM_TABLE_HEADER_SIZE + in amdgpu_ras_eeprom_process_recods()
|
D | amdgpu_ras_eeprom.h | 41 uint32_t tbl_size; member
|
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
D | radeon_bios.c | 613 acpi_size tbl_size; in radeon_acpi_vfct_bios() local 620 tbl_size = hdr->length; in radeon_acpi_vfct_bios() 621 if (tbl_size < sizeof(UEFI_ACPI_VFCT)) { in radeon_acpi_vfct_bios() 629 while (offset < tbl_size) { in radeon_acpi_vfct_bios() 634 if (offset > tbl_size) { in radeon_acpi_vfct_bios() 640 if (offset > tbl_size) { in radeon_acpi_vfct_bios()
|
/kernel/linux/linux-5.10/include/linux/ |
D | fs_parser.h | 84 extern bool validate_constant_table(const struct constant_table *tbl, size_t tbl_size, 89 static inline bool validate_constant_table(const struct constant_table *tbl, size_t tbl_size, in validate_constant_table() argument
|
/kernel/linux/linux-5.10/fs/ |
D | fs_parser.c | 320 bool validate_constant_table(const struct constant_table *tbl, size_t tbl_size, in validate_constant_table() argument 326 if (tbl_size == 0) { in validate_constant_table() 331 for (i = 0; i < tbl_size; i++) { in validate_constant_table()
|
/kernel/linux/linux-5.10/fs/exfat/ |
D | nls.c | 752 unsigned long long tbl_size, num_sectors; in exfat_create_upcase_table() local 780 tbl_size = le64_to_cpu(ep->dentry.upcase.size); in exfat_create_upcase_table() 783 num_sectors = ((tbl_size - 1) >> blksize_bits) + 1; in exfat_create_upcase_table()
|
/kernel/linux/linux-5.10/drivers/power/supply/ |
D | rt9455_charger.c | 254 static unsigned int rt9455_find_idx(const int tbl[], int tbl_size, int v) in rt9455_find_idx() argument 264 for (i = 0; i < tbl_size - 1; i++) in rt9455_find_idx() 268 return (tbl_size - 1); in rt9455_find_idx() 273 const int tbl[], int tbl_size, int *val) in rt9455_get_field_val() argument 282 v = (v >= tbl_size) ? (tbl_size - 1) : v; in rt9455_get_field_val() 290 const int tbl[], int tbl_size, int val) in rt9455_set_field_val() argument 292 unsigned int idx = rt9455_find_idx(tbl, tbl_size, val); in rt9455_set_field_val()
|
D | bq24190_charger.c | 230 static u8 bq24190_find_idx(const int tbl[], int tbl_size, int v) in bq24190_find_idx() argument 234 for (i = 1; i < tbl_size; i++) in bq24190_find_idx() 295 const int tbl[], int tbl_size, in bq24190_get_field_val() argument 305 v = (v >= tbl_size) ? (tbl_size - 1) : v; in bq24190_get_field_val() 313 const int tbl[], int tbl_size, in bq24190_set_field_val() argument 318 idx = bq24190_find_idx(tbl, tbl_size, val); in bq24190_set_field_val()
|
D | ab8500_fg.c | 856 int i, tbl_size; in ab8500_fg_volt_to_capacity() local 861 tbl_size = di->bm->bat_type[di->bm->batt_id].n_v_cap_tbl_elements; in ab8500_fg_volt_to_capacity() 863 for (i = 0; i < tbl_size; ++i) { in ab8500_fg_volt_to_capacity() 868 if ((i > 0) && (i < tbl_size)) { in ab8500_fg_volt_to_capacity() 908 int i, tbl_size; in ab8500_fg_battery_resistance() local 913 tbl_size = di->bm->bat_type[di->bm->batt_id].n_batres_tbl_elements; in ab8500_fg_battery_resistance() 915 for (i = 0; i < tbl_size; ++i) { in ab8500_fg_battery_resistance() 920 if ((i > 0) && (i < tbl_size)) { in ab8500_fg_battery_resistance() 929 resist = tbl[tbl_size - 1].resist; in ab8500_fg_battery_resistance()
|
D | ab8500_btemp.c | 428 const struct abx500_res_to_temp *tbl, int tbl_size, int res) in ab8500_btemp_res_to_temp() argument 439 else if (res <= tbl[tbl_size - 1].resist) in ab8500_btemp_res_to_temp() 440 i = tbl_size - 2; in ab8500_btemp_res_to_temp()
|
D | bq25890_charger.c | 339 u32 tbl_size = bq25890_tables[id].lt.size; in bq25890_find_idx() local 341 for (idx = 1; idx < tbl_size && tbl[idx] <= value; idx++) in bq25890_find_idx()
|
/kernel/linux/linux-5.10/drivers/acpi/pmic/ |
D | tps68470_pmic.c | 280 unsigned int tbl_size) in tps68470_pmic_common_handler() argument 289 ret = pmic_get_reg_bit(address, tbl, tbl_size, ®, &bitmask); in tps68470_pmic_common_handler()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/amazon/ena/ |
D | ena_com.c | 1126 size_t tbl_size; in ena_com_indirect_table_allocate() local 1142 tbl_size = (1ULL << log_size) * in ena_com_indirect_table_allocate() 1146 dma_alloc_coherent(ena_dev->dmadev, tbl_size, in ena_com_indirect_table_allocate() 1151 tbl_size = (1ULL << log_size) * sizeof(u16); in ena_com_indirect_table_allocate() 1153 devm_kzalloc(ena_dev->dmadev, tbl_size, GFP_KERNEL); in ena_com_indirect_table_allocate() 1162 tbl_size = (1ULL << log_size) * in ena_com_indirect_table_allocate() 1165 dma_free_coherent(ena_dev->dmadev, tbl_size, rss->rss_ind_tbl, in ena_com_indirect_table_allocate() 1176 size_t tbl_size = (1ULL << rss->tbl_log_size) * in ena_com_indirect_table_destroy() local 1180 dma_free_coherent(ena_dev->dmadev, tbl_size, rss->rss_ind_tbl, in ena_com_indirect_table_destroy() 2641 u32 tbl_size; in ena_com_indirect_table_get() local [all …]
|
/kernel/linux/linux-5.10/drivers/regulator/ |
D | mt6360-regulator.c | 375 int tbl_size) in mt6360_regulator_irq_register() argument 379 for (i = 0; i < tbl_size; i++) { in mt6360_regulator_irq_register()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/ |
D | i40e_ddp.c | 130 sec->tbl_size = 1; in i40e_add_pinfo() 170 sec->tbl_size = 1; in i40e_del_pinfo()
|
D | i40e_type.h | 1497 u16 tbl_size; member
|
/kernel/linux/linux-5.10/drivers/iommu/amd/ |
D | init.c | 293 static inline unsigned long tbl_size(int entry_size) in tbl_size() function 2647 dev_table_size = tbl_size(DEV_TABLE_ENTRY_SIZE); in early_amd_iommu_init() 2648 alias_table_size = tbl_size(ALIAS_TABLE_ENTRY_SIZE); in early_amd_iommu_init() 2649 rlookup_table_size = tbl_size(RLOOKUP_TABLE_ENTRY_SIZE); in early_amd_iommu_init()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_ethtool.c | 1265 u32 i, tbl_size; in bnxt_get_rxfh() local 1275 tbl_size = bnxt_get_rxfh_indir_size(dev); in bnxt_get_rxfh() 1276 for (i = 0; i < tbl_size; i++) in bnxt_get_rxfh() 1299 u32 i, pad, tbl_size = bnxt_get_rxfh_indir_size(dev); in bnxt_set_rxfh() local 1301 for (i = 0; i < tbl_size; i++) in bnxt_set_rxfh() 1303 pad = bp->rss_indir_tbl_entries - tbl_size; in bnxt_set_rxfh()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/bios/ |
D | bios_parser.c | 1026 uint32_t tbl_size, i; in get_ss_info_from_internal_ss_info_tbl_V2_1() local 1036 tbl_size = (le16_to_cpu(header->sHeader.usStructureSize) in get_ss_info_from_internal_ss_info_tbl_V2_1() 1042 for (i = 0; i < tbl_size; i++) { in get_ss_info_from_internal_ss_info_tbl_V2_1()
|
/kernel/linux/linux-5.10/kernel/ |
D | workqueue.c | 4266 size_t tbl_size = 0; in alloc_workqueue() local 4287 tbl_size = nr_node_ids * sizeof(wq->numa_pwq_tbl[0]); in alloc_workqueue() 4289 wq = kzalloc(sizeof(*wq) + tbl_size, GFP_KERNEL); in alloc_workqueue()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/ |
D | qed_l2.c | 479 p_config->tbl_size = p_rss->rss_table_size_log; in qed_sp_vport_update_rss() 492 1 << p_config->tbl_size); in qed_sp_vport_update_rss()
|