Searched refs:bar_size (Results 1 – 3 of 3) sorted by relevance
/drivers/ntb/hw/intel/ |
D | ntb_hw_intel.c | 845 resource_size_t bar_size, mw_size; in intel_ntb_mw_set_trans() local 857 bar_size = pci_resource_len(ndev->ntb.pdev, bar); in intel_ntb_mw_set_trans() 860 mw_size = bar_size - ndev->b2b_off; in intel_ntb_mw_set_trans() 862 mw_size = bar_size; in intel_ntb_mw_set_trans() 865 if (addr & (bar_size - 1)) in intel_ntb_mw_set_trans() 1485 resource_size_t bar_size; in xeon_setup_b2b_mw() local 1504 bar_size = pci_resource_len(ndev->ntb.pdev, b2b_bar); in xeon_setup_b2b_mw() 1506 dev_dbg(ndev_dev(ndev), "b2b bar size %#llx\n", bar_size); in xeon_setup_b2b_mw() 1508 if (b2b_mw_share && XEON_B2B_MIN_SIZE <= bar_size >> 1) { in xeon_setup_b2b_mw() 1511 ndev->b2b_off = bar_size >> 1; in xeon_setup_b2b_mw() [all …]
|
/drivers/scsi/lpfc/ |
D | lpfc_debugfs.c | 1713 int bar_num, acc_range, bar_size; in lpfc_idiag_baracc_read() local 1740 bar_size = idiag.cmd.data[IDIAG_BARACC_BAR_SZE_INDX]; in lpfc_idiag_baracc_read() 1792 if (offset_run >= bar_size) { in lpfc_idiag_baracc_read() 1821 if (idiag.offset.last_rd >= bar_size) in lpfc_idiag_baracc_read() 1863 uint32_t bar_num, bar_size, offset, value, acc_range; in lpfc_idiag_baracc_write() local 1924 bar_size = idiag.cmd.data[IDIAG_BARACC_BAR_SZE_INDX]; in lpfc_idiag_baracc_write() 1931 if (offset > bar_size - sizeof(uint32_t)) in lpfc_idiag_baracc_write() 1936 if (offset + acc_range * sizeof(uint32_t) > bar_size) in lpfc_idiag_baracc_write()
|
/drivers/nvme/host/ |
D | pci.c | 2382 resource_size_t bar_size; in nvme_map_cmb() local 2399 bar_size = pci_resource_len(pdev, NVME_CMB_BIR(cmbloc)); in nvme_map_cmb() 2401 if (offset > bar_size) in nvme_map_cmb() 2409 if (size > bar_size - offset) in nvme_map_cmb() 2410 size = bar_size - offset; in nvme_map_cmb()
|