/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/ntb/hw/intel/ |
D | ntb_hw_gen4.c | 341 resource_size_t bar_size, mw_size; in intel_ntb4_mw_set_trans() local 356 bar_size = pci_resource_len(ndev->ntb.pdev, bar); in intel_ntb4_mw_set_trans() 359 mw_size = bar_size - ndev->b2b_off; in intel_ntb4_mw_set_trans() 361 mw_size = bar_size; in intel_ntb4_mw_set_trans() 365 if (addr & (bar_size - 1)) in intel_ntb4_mw_set_trans() 505 resource_size_t bar_size, mw_size; in intel_ntb4_mw_get_align() local 518 bar_size = pci_resource_len(ndev->ntb.pdev, bar); in intel_ntb4_mw_get_align() 521 mw_size = bar_size - ndev->b2b_off; in intel_ntb4_mw_get_align() 523 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 …]
|
/kernel/linux/linux-5.10/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 | 921 u32 bar_size; member
|
/kernel/linux/linux-5.10/drivers/pci/endpoint/functions/ |
D | pci-epf-test.c | 81 static size_t bar_size[] = { 512, 512, 1024, 16384, 131072, 1048576 }; variable 777 if (test_reg_size > bar_size[test_reg_bar]) in pci_epf_test_alloc_space() 779 test_reg_size = bar_size[test_reg_bar]; in pci_epf_test_alloc_space() 800 base = pci_epf_alloc_space(epf, bar_size[bar], bar, in pci_epf_test_alloc_space() 824 bar_size[i] = epc_features->bar_fixed_size[i]; in pci_epf_configure_bar()
|
/kernel/linux/linux-5.10/drivers/pci/controller/ |
D | pci-hyperv.c | 1679 resource_size_t bar_size = 0; in survey_child_resources() local 1722 bar_size = get_bar_size(bar_val); in survey_child_resources() 1725 hbus->high_mmio_space += bar_size; in survey_child_resources() 1727 hbus->low_mmio_space += bar_size; in survey_child_resources() 1754 resource_size_t bar_size; in prepopulate_bars() local 1807 bar_size = get_bar_size(bar_val); in prepopulate_bars() 1809 if (high_size != bar_size) { in prepopulate_bars() 1821 high_base += bar_size; in prepopulate_bars() 1823 if (low_size != bar_size) in prepopulate_bars() 1829 low_base += bar_size; in prepopulate_bars()
|
/kernel/linux/linux-5.10/arch/s390/include/asm/ |
D | pci_clp.h | 118 u8 bar_size[PCI_STD_NUM_BARS]; member
|
/kernel/linux/linux-5.10/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 | 1400 u32 bar_size; in qed_iov_vf_mbx_acquire_resc_cids() local 1418 bar_size = qed_iov_vf_db_bar_size(p_hwfn, p_ptt); in qed_iov_vf_mbx_acquire_resc_cids() 1419 if (bar_size) in qed_iov_vf_mbx_acquire_resc_cids() 1420 bar_size = 1 << bar_size; in qed_iov_vf_mbx_acquire_resc_cids() 1423 bar_size /= 2; in qed_iov_vf_mbx_acquire_resc_cids() 1425 bar_size = PXP_VF_BAR0_DQ_LENGTH; in qed_iov_vf_mbx_acquire_resc_cids() 1428 if (bar_size / db_size < 256) in qed_iov_vf_mbx_acquire_resc_cids() 1430 (u8)(bar_size / db_size)); in qed_iov_vf_mbx_acquire_resc_cids() 1620 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
|
/kernel/linux/linux-5.10/drivers/nvme/host/ |
D | pci.c | 1826 resource_size_t bar_size; in nvme_map_cmb() local 1844 bar_size = pci_resource_len(pdev, bar); in nvme_map_cmb() 1846 if (offset > bar_size) in nvme_map_cmb() 1864 if (size > bar_size - offset) in nvme_map_cmb() 1865 size = bar_size - offset; in nvme_map_cmb()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/ |
D | ef100_nic.c | 1091 unsigned int bar_size = resource_size(&efx->pci_dev->resource[efx->mem_bar]); in ef100_probe_main() local 1097 if (WARN_ON(bar_size == 0)) in ef100_probe_main()
|
/kernel/linux/linux-5.10/drivers/scsi/lpfc/ |
D | lpfc_debugfs.c | 3592 int bar_num, acc_range, bar_size; in lpfc_idiag_baracc_read() local 3619 bar_size = idiag.cmd.data[IDIAG_BARACC_BAR_SZE_INDX]; in lpfc_idiag_baracc_read() 3671 if (offset_run >= bar_size) { in lpfc_idiag_baracc_read() 3700 if (idiag.offset.last_rd >= bar_size) in lpfc_idiag_baracc_read() 3742 uint32_t bar_num, bar_size, offset, value, acc_range; in lpfc_idiag_baracc_write() local 3803 bar_size = idiag.cmd.data[IDIAG_BARACC_BAR_SZE_INDX]; in lpfc_idiag_baracc_write() 3810 if (offset > bar_size - sizeof(uint32_t)) in lpfc_idiag_baracc_write() 3815 if (offset + acc_range * sizeof(uint32_t) > bar_size) in lpfc_idiag_baracc_write()
|
/kernel/linux/linux-5.10/arch/s390/pci/ |
D | pci_clp.c | 153 zdev->bars[i].size = response->bar_size[i]; in clp_store_query_pci_fn()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/ |
D | main.c | 4111 u64 bar_size; in mlx5_ib_init_var_table() local 4120 bar_size = (1ULL << log_doorbell_bar_size) * 4096; in mlx5_ib_init_var_table() 4122 var_table->num_var_hw_entries = div_u64(bar_size, in mlx5_ib_init_var_table()
|