Home
last modified time | relevance | path

Searched refs:bar_size (Results 1 – 18 of 18) sorted by relevance

/kernel/linux/linux-5.10/arch/xtensa/lib/
Dpci-auto.c63 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/
Dntb_hw_gen4.c341 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()
Dntb_hw_gen3.c448 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()
Dntb_hw_gen1.c810 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/
Dpcie_bus.c304 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()
Dwmi.c287 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()
Dwil6210.h921 u32 bar_size; member
/kernel/linux/linux-5.10/drivers/pci/endpoint/functions/
Dpci-epf-test.c81 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/
Dpci-hyperv.c1679 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/
Dpci_clp.h118 u8 bar_size[PCI_STD_NUM_BARS]; member
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/
Dqed_vf.c427 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()
Dqed_sriov.c1400 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()
Dqed_vf.h185 u8 bar_size; member
/kernel/linux/linux-5.10/drivers/nvme/host/
Dpci.c1826 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/
Def100_nic.c1091 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/
Dlpfc_debugfs.c3592 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/
Dpci_clp.c153 zdev->bars[i].size = response->bar_size[i]; in clp_store_query_pci_fn()
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/
Dmain.c4111 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()