/linux-6.1.9/arch/xtensa/lib/ |
D | pci-auto.c | 63 int bar_size; in pciauto_setup_bars() local 74 pci_read_config_dword(dev, bar, &bar_size); in pciauto_setup_bars() 77 if (!bar_size) in pciauto_setup_bars() 81 if (bar_size & PCI_BASE_ADDRESS_SPACE_IO) in pciauto_setup_bars() 83 bar_size &= PCI_BASE_ADDRESS_IO_MASK; in pciauto_setup_bars() 89 if ((bar_size & PCI_BASE_ADDRESS_MEM_TYPE_MASK) == in pciauto_setup_bars() 93 bar_size &= PCI_BASE_ADDRESS_MEM_MASK; in pciauto_setup_bars() 99 *upper_limit = (*upper_limit + bar_size) & bar_size; in pciauto_setup_bars() 114 ~bar_size + 1, *upper_limit); in pciauto_setup_bars()
|
/linux-6.1.9/drivers/gpu/drm/i915/gt/ |
D | intel_gsc.c | 86 size_t bar_size; member 100 .bar_size = GSC_BAR_LENGTH, 111 .bar_size = GSC_BAR_LENGTH, 121 .bar_size = GSC_BAR_LENGTH, 127 .bar_size = GSC_BAR_LENGTH, 226 adev->bar.end = adev->bar.start + def->bar_size - 1; in gsc_init_one()
|
D | intel_region_lmem.c | 35 int bar_size = pci_rebar_bytes_to_size(size); in _resize_bar() local 40 ret = pci_resize_resource(pdev, resno, bar_size); in _resize_bar() 43 resno, 1 << bar_size, ERR_PTR(ret)); in _resize_bar() 47 drm_info(&i915->drm, "BAR%d resized to %dM\n", resno, 1 << bar_size); in _resize_bar()
|
/linux-6.1.9/drivers/ntb/hw/intel/ |
D | ntb_hw_gen4.c | 343 resource_size_t bar_size, mw_size; in intel_ntb4_mw_set_trans() local 358 bar_size = pci_resource_len(ndev->ntb.pdev, bar); in intel_ntb4_mw_set_trans() 361 mw_size = bar_size - ndev->b2b_off; in intel_ntb4_mw_set_trans() 363 mw_size = bar_size; in intel_ntb4_mw_set_trans() 367 if (addr & (bar_size - 1)) in intel_ntb4_mw_set_trans() 530 resource_size_t bar_size, mw_size; in intel_ntb4_mw_get_align() local 543 bar_size = pci_resource_len(ndev->ntb.pdev, bar); in intel_ntb4_mw_get_align() 546 mw_size = bar_size - ndev->b2b_off; in intel_ntb4_mw_get_align() 548 mw_size = bar_size; in intel_ntb4_mw_get_align()
|
D | ntb_hw_gen3.c | 448 resource_size_t bar_size, mw_size; in intel_ntb3_mw_set_trans() local 463 bar_size = pci_resource_len(ndev->ntb.pdev, bar); in intel_ntb3_mw_set_trans() 466 mw_size = bar_size - ndev->b2b_off; in intel_ntb3_mw_set_trans() 468 mw_size = bar_size; in intel_ntb3_mw_set_trans() 471 if (addr & (bar_size - 1)) in intel_ntb3_mw_set_trans()
|
D | ntb_hw_gen1.c | 810 resource_size_t bar_size, mw_size; in intel_ntb_mw_get_align() local 823 bar_size = pci_resource_len(ndev->ntb.pdev, bar); in intel_ntb_mw_get_align() 826 mw_size = bar_size - ndev->b2b_off; in intel_ntb_mw_get_align() 828 mw_size = bar_size; in intel_ntb_mw_get_align() 847 resource_size_t bar_size, mw_size; in intel_ntb_mw_set_trans() local 862 bar_size = pci_resource_len(ndev->ntb.pdev, bar); in intel_ntb_mw_set_trans() 865 mw_size = bar_size - ndev->b2b_off; in intel_ntb_mw_set_trans() 867 mw_size = bar_size; in intel_ntb_mw_set_trans() 870 if (addr & (bar_size - 1)) in intel_ntb_mw_set_trans() 1297 resource_size_t bar_size; in xeon_setup_b2b_mw() local [all …]
|
/linux-6.1.9/drivers/net/wireless/ath/wil6210/ |
D | pcie_bus.c | 304 u32 bar_size = pci_resource_len(pdev, 0); in wil_pcie_probe() local 312 bar_size); in wil_pcie_probe() 314 if ((bar_size < WIL6210_MIN_MEM_SIZE) || in wil_pcie_probe() 315 (bar_size > WIL6210_MAX_MEM_SIZE)) { in wil_pcie_probe() 317 bar_size); in wil_pcie_probe() 330 wil->bar_size = bar_size; in wil_pcie_probe()
|
D | wmi.c | 287 if (off > wil->bar_size - 4) in wmi_buffer_block() 289 if (size && ((off + size > wil->bar_size) || (off + size < off))) in wmi_buffer_block() 312 if (off > wil->bar_size - 4) in wmi_addr()
|
D | wil6210.h | 923 u32 bar_size; member
|
/linux-6.1.9/drivers/pci/endpoint/functions/ |
D | pci-epf-test.c | 83 static size_t bar_size[] = { 512, 512, 1024, 16384, 131072, 1048576 }; variable 885 if (test_reg_size > bar_size[test_reg_bar]) in pci_epf_test_alloc_space() 887 test_reg_size = bar_size[test_reg_bar]; in pci_epf_test_alloc_space() 908 base = pci_epf_alloc_space(epf, bar_size[bar], bar, in pci_epf_test_alloc_space() 933 bar_size[i] = epc_features->bar_fixed_size[i]; in pci_epf_configure_bar()
|
/linux-6.1.9/drivers/pci/controller/ |
D | pci-hyperv.c | 2065 resource_size_t bar_size = 0; in survey_child_resources() local 2108 bar_size = get_bar_size(bar_val); in survey_child_resources() 2111 hbus->high_mmio_space += bar_size; in survey_child_resources() 2113 hbus->low_mmio_space += bar_size; in survey_child_resources() 2140 resource_size_t bar_size; in prepopulate_bars() local 2193 bar_size = get_bar_size(bar_val); in prepopulate_bars() 2195 if (high_size != bar_size) { in prepopulate_bars() 2207 high_base += bar_size; in prepopulate_bars() 2209 if (low_size != bar_size) in prepopulate_bars() 2215 low_base += bar_size; in prepopulate_bars()
|
/linux-6.1.9/arch/s390/include/asm/ |
D | pci_clp.h | 118 u8 bar_size[PCI_STD_NUM_BARS]; member
|
/linux-6.1.9/drivers/net/ethernet/qlogic/qed/ |
D | qed_vf.c | 427 u32 bar_size; in qed_vf_hw_bar_size() local 434 bar_size = p_hwfn->vf_iov_info->acquire_resp.pfdev_info.bar_size; in qed_vf_hw_bar_size() 435 if (bar_size) in qed_vf_hw_bar_size() 436 return 1 << bar_size; in qed_vf_hw_bar_size()
|
D | qed_sriov.c | 1402 u32 bar_size; in qed_iov_vf_mbx_acquire_resc_cids() local 1420 bar_size = qed_iov_vf_db_bar_size(p_hwfn, p_ptt); in qed_iov_vf_mbx_acquire_resc_cids() 1421 if (bar_size) in qed_iov_vf_mbx_acquire_resc_cids() 1422 bar_size = 1 << bar_size; in qed_iov_vf_mbx_acquire_resc_cids() 1425 bar_size /= 2; in qed_iov_vf_mbx_acquire_resc_cids() 1427 bar_size = PXP_VF_BAR0_DQ_LENGTH; in qed_iov_vf_mbx_acquire_resc_cids() 1430 if (bar_size / db_size < 256) in qed_iov_vf_mbx_acquire_resc_cids() 1432 (u8)(bar_size / db_size)); in qed_iov_vf_mbx_acquire_resc_cids() 1622 resp->pfdev_info.bar_size = qed_iov_vf_db_bar_size(p_hwfn, p_ptt); in qed_iov_vf_mbx_acquire()
|
D | qed_vf.h | 185 u8 bar_size; member
|
/linux-6.1.9/drivers/net/wireless/ath/ath11k/ |
D | qmi.h | 405 u32 bar_size; member
|
D | qmi.c | 808 bar_size), 2159 resp.bar_size != ATH11K_QMI_DEVICE_BAR_SIZE) { in ath11k_qmi_request_device_info() 2161 resp.bar_addr, resp.bar_size); in ath11k_qmi_request_device_info() 2166 bar_addr_va = devm_ioremap(ab->dev, resp.bar_addr, resp.bar_size); in ath11k_qmi_request_device_info() 2176 ab->mem_len = resp.bar_size; in ath11k_qmi_request_device_info()
|
/linux-6.1.9/drivers/net/ethernet/sfc/ |
D | ef100_nic.c | 993 unsigned int bar_size = resource_size(&efx->pci_dev->resource[efx->mem_bar]); in ef100_probe_main() local 999 if (WARN_ON(bar_size == 0)) in ef100_probe_main()
|
/linux-6.1.9/drivers/nvme/host/ |
D | pci.c | 1917 resource_size_t bar_size; in nvme_map_cmb() local 1935 bar_size = pci_resource_len(pdev, bar); in nvme_map_cmb() 1937 if (offset > bar_size) in nvme_map_cmb() 1955 if (size > bar_size - offset) in nvme_map_cmb() 1956 size = bar_size - offset; in nvme_map_cmb()
|
/linux-6.1.9/drivers/scsi/lpfc/ |
D | lpfc_debugfs.c | 3589 int bar_num, acc_range, bar_size; in lpfc_idiag_baracc_read() local 3616 bar_size = idiag.cmd.data[IDIAG_BARACC_BAR_SZE_INDX]; in lpfc_idiag_baracc_read() 3668 if (offset_run >= bar_size) { in lpfc_idiag_baracc_read() 3697 if (idiag.offset.last_rd >= bar_size) in lpfc_idiag_baracc_read() 3739 uint32_t bar_num, bar_size, offset, value, acc_range; in lpfc_idiag_baracc_write() local 3800 bar_size = idiag.cmd.data[IDIAG_BARACC_BAR_SZE_INDX]; in lpfc_idiag_baracc_write() 3807 if (offset > bar_size - sizeof(uint32_t)) in lpfc_idiag_baracc_write() 3812 if (offset + acc_range * sizeof(uint32_t) > bar_size) in lpfc_idiag_baracc_write()
|
/linux-6.1.9/arch/s390/pci/ |
D | pci_clp.c | 156 zdev->bars[i].size = response->bar_size[i]; in clp_store_query_pci_fn()
|
/linux-6.1.9/drivers/infiniband/hw/mlx5/ |
D | main.c | 3784 u64 bar_size; in mlx5_ib_init_var_table() local 3793 bar_size = (1ULL << log_doorbell_bar_size) * 4096; in mlx5_ib_init_var_table() 3795 var_table->num_var_hw_entries = div_u64(bar_size, in mlx5_ib_init_var_table()
|
/linux-6.1.9/drivers/misc/habanalabs/goya/ |
D | goya.c | 936 region->bar_size = CFG_BAR_SIZE; in goya_set_pci_memory_regions() 945 region->bar_size = CFG_BAR_SIZE; in goya_set_pci_memory_regions() 954 region->bar_size = prop->dram_pci_bar_size; in goya_set_pci_memory_regions()
|
/linux-6.1.9/drivers/misc/habanalabs/gaudi/ |
D | gaudi.c | 1812 region->bar_size = CFG_BAR_SIZE; in gaudi_set_pci_memory_regions() 1821 region->bar_size = SRAM_BAR_SIZE; in gaudi_set_pci_memory_regions() 1830 region->bar_size = prop->dram_pci_bar_size; in gaudi_set_pci_memory_regions() 1839 region->bar_size = CFG_BAR_SIZE; in gaudi_set_pci_memory_regions()
|
/linux-6.1.9/drivers/misc/habanalabs/common/ |
D | firmware_if.c | 1873 region->bar_size) { in hl_fw_dynamic_validate_memory_bound()
|