Home
last modified time | relevance | path

Searched refs:tbl_size (Results 1 – 25 of 28) sorted by relevance

12

/openbmc/linux/drivers/firmware/efi/
H A Dtpm.c43 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()
H A Dmemattr.c15 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()
135 if (tbl_size <= sizeof(*tbl)) in efi_memattr_apply_permissions()
147 tbl = memremap(efi_mem_attr_table, tbl_size, MEMREMAP_WB); in efi_memattr_apply_permissions()
/openbmc/ipmitool/lib/
H A Dipmi_pef.c219 uint8_t tbl_size; in ipmi_pef_get_policy_table() local
239 for (ptmp=ptbl, i=1; i<=tbl_size; i++) { in ipmi_pef_get_policy_table()
248 tbl_size = 0; in ipmi_pef_get_policy_table()
256 return(tbl_size); in ipmi_pef_get_policy_table()
270 uint8_t tbl_size, dsttype, timeout, retries; in ipmi_pef_print_lan_dest() local
465 uint8_t tbl_size, wrk; in ipmi_pef_print_serial_dest() local
673 uint8_t wrk, ch, medium, tbl_size; in ipmi_pef_list_policies() local
675 tbl_size = ipmi_pef_get_policy_table(intf, &ptbl); in ipmi_pef_list_policies()
676 if (!tbl_size) { in ipmi_pef_list_policies()
688 for (ptmp=ptbl, i=1; i<=tbl_size; i++, ptmp++) { in ipmi_pef_list_policies()
[all …]
/openbmc/linux/arch/powerpc/boot/
H A Dsimple_alloc.c127 unsigned long heap_base, tbl_size; in simple_alloc_init() local
133 tbl_size = tbl_entries * sizeof(struct alloc_info); in simple_alloc_init()
136 memset(alloc_tbl, 0, tbl_size); in simple_alloc_init()
138 heap_base = _ALIGN_UP((unsigned long)alloc_tbl + tbl_size, alloc_min); in simple_alloc_init()
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_bios.c367 acpi_size tbl_size; in amdgpu_acpi_vfct_bios() local
373 tbl_size = hdr->length; in amdgpu_acpi_vfct_bios()
374 if (tbl_size < sizeof(UEFI_ACPI_VFCT)) { in amdgpu_acpi_vfct_bios()
382 while (offset < tbl_size) { in amdgpu_acpi_vfct_bios()
387 if (offset > tbl_size) { in amdgpu_acpi_vfct_bios()
393 if (offset > tbl_size) { in amdgpu_acpi_vfct_bios()
H A Damdgpu_ras_eeprom.c145 #define RAS_NUM_RECS(_tbl_hdr) (((_tbl_hdr)->tbl_size - \
148 #define RAS_NUM_RECS_V2_1(_tbl_hdr) (((_tbl_hdr)->tbl_size - \
241 pp[3] = cpu_to_le32(hdr->tbl_size); in __encode_table_header_to_buf()
254 hdr->tbl_size = le32_to_cpu(pp[3]); in __decode_table_header_from_buf()
434 hdr->tbl_size = RAS_TABLE_HEADER_SIZE + in amdgpu_ras_eeprom_reset_table()
446 hdr->tbl_size = RAS_TABLE_HEADER_SIZE; in amdgpu_ras_eeprom_reset_table()
740 control->tbl_hdr.tbl_size = RAS_TABLE_HEADER_SIZE + in amdgpu_ras_eeprom_update_header()
744 control->tbl_hdr.tbl_size = RAS_TABLE_HEADER_SIZE + in amdgpu_ras_eeprom_update_header()
752 control->tbl_hdr.tbl_size); in amdgpu_ras_eeprom_update_header()
1103 control->tbl_hdr.tbl_size, in amdgpu_ras_debugfs_table_read()
H A Damdgpu_ras_eeprom.h50 uint32_t tbl_size; member
/openbmc/linux/drivers/gpu/drm/radeon/
H A Dradeon_bios.c613 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()
/openbmc/linux/include/linux/
H A Dfs_parser.h85 extern bool validate_constant_table(const struct constant_table *tbl, size_t tbl_size,
90 static inline bool validate_constant_table(const struct constant_table *tbl, size_t tbl_size, in validate_constant_table() argument
/openbmc/linux/fs/exfat/
H A Dnls.c752 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()
/openbmc/linux/fs/
H A Dfs_parser.c334 bool validate_constant_table(const struct constant_table *tbl, size_t tbl_size, in validate_constant_table() argument
340 if (tbl_size == 0) { in validate_constant_table()
345 for (i = 0; i < tbl_size; i++) { in validate_constant_table()
/openbmc/linux/drivers/power/supply/
H A Drt9455_charger.c255 static unsigned int rt9455_find_idx(const int tbl[], int tbl_size, int v) in rt9455_find_idx() argument
265 for (i = 0; i < tbl_size - 1; i++) in rt9455_find_idx()
269 return (tbl_size - 1); in rt9455_find_idx()
274 const int tbl[], int tbl_size, int *val) in rt9455_get_field_val() argument
283 v = (v >= tbl_size) ? (tbl_size - 1) : v; in rt9455_get_field_val()
291 const int tbl[], int tbl_size, int val) in rt9455_set_field_val() argument
293 unsigned int idx = rt9455_find_idx(tbl, tbl_size, val); in rt9455_set_field_val()
H A Dbq24190_charger.c237 static u8 bq24190_find_idx(const int tbl[], int tbl_size, int v) in bq24190_find_idx() argument
241 for (i = 1; i < tbl_size; i++) in bq24190_find_idx()
302 const int tbl[], int tbl_size, in bq24190_get_field_val() argument
312 v = (v >= tbl_size) ? (tbl_size - 1) : v; in bq24190_get_field_val()
320 const int tbl[], int tbl_size, in bq24190_set_field_val() argument
325 idx = bq24190_find_idx(tbl, tbl_size, val); in bq24190_set_field_val()
H A Dbq25890_charger.c386 u32 tbl_size = bq25890_tables[id].lt.size; in bq25890_find_idx() local
388 for (idx = 1; idx < tbl_size && tbl[idx] <= value; idx++) in bq25890_find_idx()
/openbmc/linux/drivers/acpi/pmic/
H A Dtps68470_pmic.c280 unsigned int tbl_size) in tps68470_pmic_common_handler() argument
289 ret = pmic_get_reg_bit(address, tbl, tbl_size, &reg, &bitmask); in tps68470_pmic_common_handler()
/openbmc/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_ddp.c130 sec->tbl_size = 1; in i40e_add_pinfo()
170 sec->tbl_size = 1; in i40e_del_pinfo()
H A Di40e_type.h1460 u16 tbl_size; member
/openbmc/linux/drivers/regulator/
H A Dmt6360-regulator.c383 int tbl_size) in mt6360_regulator_irq_register() argument
387 for (i = 0; i < tbl_size; i++) { in mt6360_regulator_irq_register()
/openbmc/linux/drivers/net/ethernet/amazon/ena/
H A Dena_com.c1115 size_t tbl_size; in ena_com_indirect_table_allocate() local
1132 tbl_size = (1ULL << log_size) * in ena_com_indirect_table_allocate()
1140 tbl_size = (1ULL << log_size) * sizeof(u16); in ena_com_indirect_table_allocate()
1141 rss->host_rss_ind_tbl = devm_kzalloc(ena_dev->dmadev, tbl_size, GFP_KERNEL); in ena_com_indirect_table_allocate()
1150 tbl_size = (1ULL << log_size) * in ena_com_indirect_table_allocate()
1153 dma_free_coherent(ena_dev->dmadev, tbl_size, rss->rss_ind_tbl, rss->rss_ind_tbl_dma_addr); in ena_com_indirect_table_allocate()
1163 size_t tbl_size = (1ULL << rss->tbl_log_size) * in ena_com_indirect_table_destroy() local
1167 dma_free_coherent(ena_dev->dmadev, tbl_size, rss->rss_ind_tbl, in ena_com_indirect_table_destroy()
2617 u32 tbl_size; in ena_com_indirect_table_get() local
2620 tbl_size = (1ULL << rss->tbl_log_size) * in ena_com_indirect_table_get()
[all …]
/openbmc/linux/kernel/dma/
H A Dswiotlb.c529 size_t tbl_size, slots_size; in swiotlb_exit() local
540 tbl_size = PAGE_ALIGN(mem->end - mem->start); in swiotlb_exit()
543 set_memory_encrypted(tbl_vaddr, tbl_size >> PAGE_SHIFT); in swiotlb_exit()
548 free_pages(tbl_vaddr, get_order(tbl_size)); in swiotlb_exit()
553 memblock_free_late(mem->start, tbl_size); in swiotlb_exit()
/openbmc/linux/drivers/iommu/amd/
H A Dinit.c258 static inline unsigned long tbl_size(int entry_size, int last_bdf) in tbl_size() function
1649 pci_seg->dev_table_size = tbl_size(DEV_TABLE_ENTRY_SIZE, last_bdf); in alloc_pci_segment()
1650 pci_seg->alias_table_size = tbl_size(ALIAS_TABLE_ENTRY_SIZE, last_bdf); in alloc_pci_segment()
1651 pci_seg->rlookup_table_size = tbl_size(RLOOKUP_TABLE_ENTRY_SIZE, last_bdf); in alloc_pci_segment()
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ethtool.c1314 u32 i, tbl_size; in bnxt_get_rxfh() local
1324 tbl_size = bnxt_get_rxfh_indir_size(dev); in bnxt_get_rxfh()
1325 for (i = 0; i < tbl_size; i++) in bnxt_get_rxfh()
1348 u32 i, pad, tbl_size = bnxt_get_rxfh_indir_size(dev); in bnxt_set_rxfh() local
1350 for (i = 0; i < tbl_size; i++) in bnxt_set_rxfh()
1352 pad = bp->rss_indir_tbl_entries - tbl_size; in bnxt_set_rxfh()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/bios/
H A Dbios_parser.c1030 uint32_t tbl_size, i; in get_ss_info_from_internal_ss_info_tbl_V2_1() local
1042 tbl_size = (le16_to_cpu(header->sHeader.usStructureSize) in get_ss_info_from_internal_ss_info_tbl_V2_1()
1048 for (i = 0; i < tbl_size; i++) { in get_ss_info_from_internal_ss_info_tbl_V2_1()
/openbmc/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_l2.c480 p_config->tbl_size = p_rss->rss_table_size_log; in qed_sp_vport_update_rss()
493 1 << p_config->tbl_size); in qed_sp_vport_update_rss()
/openbmc/linux/Documentation/filesystems/
H A Dmount_api.rst755 size_t tbl_size,

12