Home
last modified time | relevance | path

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

/drivers/ntb/hw/intel/
Dntb_hw_gen4.c343 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()
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 …]
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()
/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.h924 u32 bar_size; member
/drivers/pci/endpoint/functions/
Dpci-epf-test.c81 static size_t bar_size[] = { 512, 512, 1024, 16384, 131072, 1048576 }; variable
789 if (test_reg_size > bar_size[test_reg_bar]) in pci_epf_test_alloc_space()
791 test_reg_size = bar_size[test_reg_bar]; in pci_epf_test_alloc_space()
812 base = pci_epf_alloc_space(epf, bar_size[bar], bar, in pci_epf_test_alloc_space()
837 bar_size[i] = epc_features->bar_fixed_size[i]; in pci_epf_configure_bar()
/drivers/pci/controller/
Dpci-hyperv.c1731 resource_size_t bar_size = 0; in survey_child_resources() local
1774 bar_size = get_bar_size(bar_val); in survey_child_resources()
1777 hbus->high_mmio_space += bar_size; in survey_child_resources()
1779 hbus->low_mmio_space += bar_size; in survey_child_resources()
1806 resource_size_t bar_size; in prepopulate_bars() local
1859 bar_size = get_bar_size(bar_val); in prepopulate_bars()
1861 if (high_size != bar_size) { in prepopulate_bars()
1873 high_base += bar_size; in prepopulate_bars()
1875 if (low_size != bar_size) in prepopulate_bars()
1881 low_base += bar_size; in prepopulate_bars()
/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
/drivers/net/ethernet/sfc/
Def100_nic.c1103 unsigned int bar_size = resource_size(&efx->pci_dev->resource[efx->mem_bar]); in ef100_probe_main() local
1109 if (WARN_ON(bar_size == 0)) in ef100_probe_main()
/drivers/nvme/host/
Dpci.c1819 resource_size_t bar_size; in nvme_map_cmb() local
1837 bar_size = pci_resource_len(pdev, bar); in nvme_map_cmb()
1839 if (offset > bar_size) in nvme_map_cmb()
1857 if (size > bar_size - offset) in nvme_map_cmb()
1858 size = bar_size - offset; in nvme_map_cmb()
/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()
/drivers/infiniband/hw/mlx5/
Dmain.c3816 u64 bar_size; in mlx5_ib_init_var_table() local
3825 bar_size = (1ULL << log_doorbell_bar_size) * 4096; in mlx5_ib_init_var_table()
3827 var_table->num_var_hw_entries = div_u64(bar_size, in mlx5_ib_init_var_table()
/drivers/misc/habanalabs/goya/
Dgoya.c870 region->bar_size = CFG_BAR_SIZE; in goya_set_pci_memory_regions()
879 region->bar_size = CFG_BAR_SIZE; in goya_set_pci_memory_regions()
888 region->bar_size = prop->dram_pci_bar_size; in goya_set_pci_memory_regions()
/drivers/misc/habanalabs/common/
Dfirmware_if.c1611 region->bar_size) { in hl_fw_dynamic_validate_memory_bound()
Dhabanalabs.h938 u64 bar_size; member
/drivers/misc/habanalabs/gaudi/
Dgaudi.c1780 region->bar_size = CFG_BAR_SIZE; in gaudi_set_pci_memory_regions()
1789 region->bar_size = SRAM_BAR_SIZE; in gaudi_set_pci_memory_regions()
1798 region->bar_size = prop->dram_pci_bar_size; in gaudi_set_pci_memory_regions()
1807 region->bar_size = CFG_BAR_SIZE; in gaudi_set_pci_memory_regions()