/linux/drivers/firmware/efi/ |
H A D | memattr.c | 15 static int __initdata tbl_size; variable 58 tbl_size = sizeof(*tbl) + size; in efi_memattr_init() 59 memblock_reserve(efi_mem_attr_table, tbl_size); in efi_memattr_init() 151 if (tbl_size <= sizeof(*tbl)) in efi_memattr_apply_permissions() 163 tbl = memremap(efi_mem_attr_table, tbl_size, MEMREMAP_WB); in efi_memattr_apply_permissions()
|
H A D | tpm.c | 43 unsigned int tbl_size; in efi_tpm_eventlog_init() local 63 tbl_size = sizeof(*log_tbl) + log_tbl->size; in efi_tpm_eventlog_init() 64 if (memblock_reserve(efi.tpm_log, tbl_size)) { in efi_tpm_eventlog_init() 66 efi.tpm_log, tbl_size); in efi_tpm_eventlog_init()
|
/linux/arch/powerpc/boot/ |
H A D | simple_alloc.c | 130 unsigned long heap_base, tbl_size; in simple_alloc_init() local 136 tbl_size = tbl_entries * sizeof(struct alloc_info); in simple_alloc_init() 139 memset(alloc_tbl, 0, tbl_size); in simple_alloc_init() 141 heap_base = _ALIGN_UP((unsigned long)alloc_tbl + tbl_size, alloc_min); in simple_alloc_init()
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_bios.c | 361 acpi_size tbl_size; in amdgpu_acpi_vfct_bios() local 367 tbl_size = hdr->length; in amdgpu_acpi_vfct_bios() 368 if (tbl_size < sizeof(UEFI_ACPI_VFCT)) { in amdgpu_acpi_vfct_bios() 376 while (offset < tbl_size) { in amdgpu_acpi_vfct_bios() 381 if (offset > tbl_size) { in amdgpu_acpi_vfct_bios() 387 if (offset > tbl_size) { in amdgpu_acpi_vfct_bios()
|
/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_bios.c | 603 acpi_size tbl_size; in radeon_acpi_vfct_bios() local 610 tbl_size = hdr->length; in radeon_acpi_vfct_bios() 611 if (tbl_size < sizeof(UEFI_ACPI_VFCT)) { in radeon_acpi_vfct_bios() 619 while (offset < tbl_size) { in radeon_acpi_vfct_bios() 624 if (offset > tbl_size) { in radeon_acpi_vfct_bios() 630 if (offset > tbl_size) { in radeon_acpi_vfct_bios()
|
/linux/drivers/power/supply/ |
H A D | rt9455_charger.c | 255 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 D | bq24190_charger.c | 272 * 'val'. The index range returned is 0 to 'tbl_size' - 1. Assumes that 273 * the values in 'tbl' are sorted from smallest to largest and 'tbl_size' 276 static u8 bq24190_find_idx(const int tbl[], int tbl_size, int v) in bq24190_find_idx() argument 280 for (i = 1; i < tbl_size; i++) in bq24190_find_idx() 341 const int tbl[], int tbl_size, in bq24190_get_field_val() argument 351 v = (v >= tbl_size) ? (tbl_size - 1) : v; in bq24190_get_field_val() 359 const int tbl[], int tbl_size, in bq24190_set_field_val() argument 364 idx = bq24190_find_idx(tbl, tbl_size, val); in bq24190_set_field_val()
|
H A D | bq25890_charger.c | 386 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()
|
/linux/drivers/acpi/pmic/ |
H A 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()
|
/linux/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_ddp.c | 148 sec->tbl_size = 1; in i40e_add_pinfo() 188 sec->tbl_size = 1; in i40e_del_pinfo()
|
/linux/drivers/net/ethernet/amazon/ena/ |
H A D | ena_com.c | 1112 size_t tbl_size; in ena_com_indirect_table_allocate() local 1129 tbl_size = (1ULL << log_size) * in ena_com_indirect_table_allocate() 1132 rss->rss_ind_tbl = dma_alloc_coherent(ena_dev->dmadev, tbl_size, &rss->rss_ind_tbl_dma_addr, in ena_com_indirect_table_allocate() 1137 tbl_size = (1ULL << log_size) * sizeof(u16); in ena_com_indirect_table_allocate() 1138 rss->host_rss_ind_tbl = devm_kzalloc(ena_dev->dmadev, tbl_size, GFP_KERNEL); in ena_com_indirect_table_allocate() 1147 tbl_size = (1ULL << log_size) * in ena_com_indirect_table_allocate() 1150 dma_free_coherent(ena_dev->dmadev, tbl_size, rss->rss_ind_tbl, rss->rss_ind_tbl_dma_addr); in ena_com_indirect_table_allocate() 1160 size_t tbl_size = (1ULL << rss->tbl_log_size) * in ena_com_indirect_table_destroy() local 1164 dma_free_coherent(ena_dev->dmadev, tbl_size, rss->rss_ind_tbl, in ena_com_indirect_table_destroy() 2918 u32 tbl_size; in ena_com_indirect_table_get() local [all...] |
/linux/kernel/dma/ |
H A D | swiotlb.c | 529 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()
|
/linux/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_ethtool.c | 1031 int tbl_size, u32 *ids, u32 start, in bnxt_get_all_fltr_ids_rcu() argument 1038 for (i = 0; i < tbl_size; i++) { in bnxt_get_all_fltr_ids_rcu() 1057 int tbl_size, u32 id) in bnxt_get_one_fltr_rcu() argument 1061 for (i = 0; i < tbl_size; i++) { in bnxt_get_one_fltr_rcu() 1830 u32 i, tbl_size; in bnxt_get_rxfh() local 1850 tbl_size = bnxt_get_rxfh_indir_size(dev); in bnxt_get_rxfh() 1851 for (i = 0; i < tbl_size; i++) in bnxt_get_rxfh() 1875 u32 i, pad, tbl_size = bnxt_get_rxfh_indir_size(bp->dev); in bnxt_modify_rss() local 1880 for (i = 0; i < tbl_size; i++) in bnxt_modify_rss() 1882 pad = bp->rss_indir_tbl_entries - tbl_size; in bnxt_modify_rss() [all...] |
H A D | bnxt.c | 6528 u32 i, tbl_size, max_ring = 0; in bnxt_get_max_rss_ring() local 6533 tbl_size = bnxt_get_rxfh_indir_size(bp->dev); in bnxt_get_max_rss_ring() 6534 for (i = 0; i < tbl_size; i++) in bnxt_get_max_rss_ring() 6570 u16 tbl_size, i; in bnxt_fill_hw_rss_tbl_p5() local 6572 tbl_size = bnxt_get_rxfh_indir_size(bp->dev); in bnxt_fill_hw_rss_tbl_p5() 6574 for (i = 0; i < tbl_size; i++) { in bnxt_fill_hw_rss_tbl_p5() 10810 u16 tbl_size = bnxt_get_rxfh_indir_size(bp->dev); in bnxt_vnic_has_rx_ring() local 10819 for (i = 0; i < tbl_size; i++) { in bnxt_vnic_has_rx_ring() 11325 int i, total_vecs, max, rc = 0, min = 1, ulp_msix, tx_cp, tbl_size; in bnxt_init_int_mode() local 11346 tbl_size = total_vecs; in bnxt_init_int_mode() [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/bios/ |
H A D | bios_parser.c | 1031 uint32_t tbl_size, i; in get_ss_info_from_internal_ss_info_tbl_V2_1() local 1045 tbl_size = (le16_to_cpu(header->sHeader.usStructureSize) in get_ss_info_from_internal_ss_info_tbl_V2_1() 1051 for (i = 0; i < tbl_size; i++) { in get_ss_info_from_internal_ss_info_tbl_V2_1()
|
/linux/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_l2.c | 480 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()
|
H A D | qed_hsi.h | 3960 u8 tbl_size; member
|