Home
last modified time | relevance | path

Searched refs:bar_num (Results 1 – 9 of 9) sorted by relevance

/drivers/bus/mhi/host/
Dpci_generic.c32 unsigned int bar_num; member
139 .bar_num = MHI_PCI_DEFAULT_BAR_NUM,
170 unsigned int bar_num, u64 dma_mask) in mhi_pci_claim() argument
175 err = pci_assign_resource(pdev, bar_num); in mhi_pci_claim()
185 err = pcim_iomap_regions(pdev, 1 << bar_num, pci_name(pdev)); in mhi_pci_claim()
190 mhi_cntrl->regs = pcim_iomap_table(pdev)[bar_num]; in mhi_pci_claim()
286 err = mhi_pci_claim(mhi_cntrl, info->bar_num, DMA_BIT_MASK(info->dma_data_width)); in mhi_pci_probe()
/drivers/staging/gasket/
Dgasket_core.c258 static int gasket_map_pci_bar(struct gasket_dev *gasket_dev, int bar_num) in gasket_map_pci_bar() argument
263 ulong desc_bytes = driver_desc->bar_descriptions[bar_num].size; in gasket_map_pci_bar()
270 if (driver_desc->bar_descriptions[bar_num].type != PCI_BAR) { in gasket_map_pci_bar()
275 data = &gasket_dev->bar_data[bar_num]; in gasket_map_pci_bar()
283 (ulong)pci_resource_start(gasket_dev->pci_dev, bar_num); in gasket_map_pci_bar()
286 bar_num); in gasket_map_pci_bar()
291 (ulong)pci_resource_len(gasket_dev->pci_dev, bar_num); in gasket_map_pci_bar()
295 bar_num, data->length_bytes, desc_bytes); in gasket_map_pci_bar()
303 bar_num, &gasket_dev->pci_dev->resource[bar_num]); in gasket_map_pci_bar()
311 bar_num, &gasket_dev->pci_dev->resource[bar_num]); in gasket_map_pci_bar()
[all …]
/drivers/scsi/isci/
Dinit.c287 int err, bar_num, bar_mask = 0; in isci_pci_init() local
298 for (bar_num = 0; bar_num < SCI_PCI_BAR_COUNT; bar_num++) in isci_pci_init()
299 bar_mask |= 1 << (bar_num * 2); in isci_pci_init()
/drivers/net/ethernet/cisco/enic/
Dvnic_dev.c88 u8 bar_num = ioread8(&r->bar); in vnic_dev_discover_res() local
95 if (bar_num >= num_bars) in vnic_dev_discover_res()
98 if (!bar[bar_num].len || !bar[bar_num].vaddr) in vnic_dev_discover_res()
108 if (len + bar_offset > bar[bar_num].len) { in vnic_dev_discover_res()
111 bar[bar_num].len); in vnic_dev_discover_res()
125 vdev->res[type].vaddr = (char __iomem *)bar[bar_num].vaddr + in vnic_dev_discover_res()
127 vdev->res[type].bus_addr = bar[bar_num].bus_addr + bar_offset; in vnic_dev_discover_res()
/drivers/scsi/snic/
Dvnic_dev.c118 u8 bar_num = ioread8(&r->bar); in vnic_dev_discover_res() local
125 if (bar_num >= num_bars) in vnic_dev_discover_res()
128 if (!bar[bar_num].len || !bar[bar_num].vaddr) in vnic_dev_discover_res()
/drivers/infiniband/hw/usnic/
Dusnic_vnic.c413 int bar_num) in usnic_vnic_get_bar() argument
415 return (bar_num < ARRAY_SIZE(vnic->bar)) ? &vnic->bar[bar_num] : NULL; in usnic_vnic_get_bar()
Dusnic_vnic.h113 int bar_num);
/drivers/scsi/lpfc/
Dlpfc_debugfs.c3595 int bar_num, acc_range, bar_size; in lpfc_idiag_baracc_read() local
3619 bar_num = idiag.cmd.data[IDIAG_BARACC_BAR_NUM_INDX]; in lpfc_idiag_baracc_read()
3631 if (bar_num == IDIAG_BARACC_BAR_0) in lpfc_idiag_baracc_read()
3633 else if (bar_num == IDIAG_BARACC_BAR_1) in lpfc_idiag_baracc_read()
3635 else if (bar_num == IDIAG_BARACC_BAR_2) in lpfc_idiag_baracc_read()
3640 if (bar_num == IDIAG_BARACC_BAR_0) in lpfc_idiag_baracc_read()
3745 uint32_t bar_num, bar_size, offset, value, acc_range; in lpfc_idiag_baracc_write() local
3764 bar_num = idiag.cmd.data[IDIAG_BARACC_BAR_NUM_INDX]; in lpfc_idiag_baracc_write()
3767 if ((bar_num != IDIAG_BARACC_BAR_0) && in lpfc_idiag_baracc_write()
3768 (bar_num != IDIAG_BARACC_BAR_1) && in lpfc_idiag_baracc_write()
[all …]
/drivers/scsi/fnic/
Dvnic_dev.c118 u8 bar_num = ioread8(&r->bar); in vnic_dev_discover_res() local
125 if (bar_num != 0) /* only mapping in BAR0 resources */ in vnic_dev_discover_res()