/linux-master/drivers/usb/cdns3/ |
H A D | cdnsp-pci.c | 61 * For GADGET/HOST PCI (devfn) function number is 0, 62 * for OTG PCI (devfn) function number is 1. 64 if (!id || (pdev->devfn != PCI_DEV_FN_HOST_DEVICE && 65 pdev->devfn != PCI_DEV_FN_OTG)) 96 if (pdev->devfn == 0) {
|
/linux-master/arch/xtensa/lib/ |
H A D | pci-auto.c | 122 pciauto_setup_irq(struct pci_controller* pci_ctrl,struct pci_dev *dev,int devfn) argument 135 irq = pci_ctrl->map_irq(dev, PCI_SLOT(devfn), pin); 259 pciauto_dev.devfn = pci_devfn;
|
/linux-master/drivers/pci/controller/ |
H A D | pcie-xilinx.c | 149 * @devfn: device/function 153 static bool xilinx_pcie_valid_device(struct pci_bus *bus, unsigned int devfn) argument 161 } else if (devfn > 0) { 171 * @devfn: Device/function 178 unsigned int devfn, int where) 182 if (!xilinx_pcie_valid_device(bus, devfn)) 185 return pcie->reg_base + PCIE_ECAM_OFFSET(bus->number, devfn, where); 177 xilinx_pcie_map_bus(struct pci_bus *bus, unsigned int devfn, int where) argument
|
H A D | pcie-rcar-host.c | 154 unsigned int devfn, int where, u32 *data) 167 dev = PCI_SLOT(devfn); 168 func = PCI_FUNC(devfn); 183 * space to devfn 0 in order to enable self-enumeration. In this 232 static int rcar_pcie_read_conf(struct pci_bus *bus, unsigned int devfn, argument 239 bus, devfn, where, val); 248 dev_dbg(&bus->dev, "pcie-config-read: bus=%3d devfn=0x%04x where=0x%04x size=%d val=0x%08x\n", 249 bus->number, devfn, where, size, *val); 255 static int rcar_pcie_write_conf(struct pci_bus *bus, unsigned int devfn, argument 264 bus, devfn, wher 152 rcar_pcie_config_access(struct rcar_pcie_host *host, unsigned char access_type, struct pci_bus *bus, unsigned int devfn, int where, u32 *data) argument [all...] |
H A D | pcie-rockchip-host.c | 154 struct pci_bus *bus, u32 devfn, 159 addr = rockchip->reg_base + PCIE_ECAM_OFFSET(bus->number, devfn, where); 187 struct pci_bus *bus, u32 devfn, 192 addr = rockchip->reg_base + PCIE_ECAM_OFFSET(bus->number, devfn, where); 216 static int rockchip_pcie_rd_conf(struct pci_bus *bus, u32 devfn, int where, argument 221 if (!rockchip_pcie_valid_device(rockchip, bus, PCI_SLOT(devfn))) 227 return rockchip_pcie_rd_other_conf(rockchip, bus, devfn, where, size, 231 static int rockchip_pcie_wr_conf(struct pci_bus *bus, u32 devfn, argument 236 if (!rockchip_pcie_valid_device(rockchip, bus, PCI_SLOT(devfn))) 242 return rockchip_pcie_wr_other_conf(rockchip, bus, devfn, wher 153 rockchip_pcie_rd_other_conf(struct rockchip_pcie *rockchip, struct pci_bus *bus, u32 devfn, int where, int size, u32 *val) argument 186 rockchip_pcie_wr_other_conf(struct rockchip_pcie *rockchip, struct pci_bus *bus, u32 devfn, int where, int size, u32 val) argument [all...] |
H A D | pci-rcar-gen2.c | 105 static void __iomem *rcar_pci_cfg_base(struct pci_bus *bus, unsigned int devfn, argument 111 if (!pci_is_root_bus(bus) || PCI_FUNC(devfn)) 115 slot = PCI_SLOT(devfn);
|
/linux-master/drivers/parisc/ |
H A D | dino.c | 171 static int dino_cfg_read(struct pci_bus *bus, unsigned int devfn, int where, argument 176 u32 v = DINO_CFG_TOK(local_bus, devfn, where & ~3); 180 DBG("%s: %p, %d, %d, %d\n", __func__, base_addr, devfn, where, 206 static int dino_cfg_write(struct pci_bus *bus, unsigned int devfn, int where, argument 211 u32 v = DINO_CFG_TOK(local_bus, devfn, where & ~3); 215 DBG("%s: %p, %d, %d, %d\n", __func__, base_addr, devfn, where, 572 dino_cfg_write(dev->bus, dev->devfn, 584 dino_cfg_read(dev->bus, dev->devfn, PCI_INTERRUPT_PIN, 1, &irq_pin); 590 dino_cfg_write(dev->bus, dev->devfn, PCI_INTERRUPT_LINE, 1, dev->irq); 675 dino_cfg_read(dev->bus, dev->devfn, [all...] |
H A D | lba_pci.c | 363 static int elroy_cfg_read(struct pci_bus *bus, unsigned int devfn, int pos, int size, u32 *data) argument 367 u32 tok = LBA_CFG_TOK(local_bus, devfn); 370 if ((pos > 255) || (devfn > 255)) 382 if (LBA_SKIP_PROBE(d) && !lba_device_present(bus->busn_res.start, devfn, d)) { 430 static int elroy_cfg_write(struct pci_bus *bus, unsigned int devfn, int pos, int size, u32 data) argument 434 u32 tok = LBA_CFG_TOK(local_bus,devfn); 436 if ((pos > 255) || (devfn > 255)) 446 if (LBA_SKIP_PROBE(d) && (!lba_device_present(bus->busn_res.start, devfn, d))) { 480 static int mercury_cfg_read(struct pci_bus *bus, unsigned int devfn, int pos, int size, u32 *data) argument 484 u32 tok = LBA_CFG_TOK(local_bus, devfn); 512 mercury_cfg_write(struct pci_bus *bus, unsigned int devfn, int pos, int size, u32 data) argument [all...] |
H A D | iosapic.c | 458 pcidev->slot_name, PCI_SLOT(pcidev->devfn), intr_pin); 507 intr_slot = PCI_SLOT(p->self->devfn); 509 intr_slot = PCI_SLOT(pcidev->devfn); 724 if (PCI_FUNC(pcidev->devfn) != SUPERIO_USB_FN) 785 PCI_SLOT(pcidev->devfn), PCI_FUNC(pcidev->devfn),
|
/linux-master/arch/sparc/kernel/ |
H A D | pci.c | 266 struct pci_bus *bus, int devfn) 290 pci_info(bus," create device, devfn: %x, type: %s\n", 291 devfn, of_node_get_device_type(node)); 297 dev->devfn = devfn; 322 dev->bus->number, PCI_SLOT(devfn), PCI_FUNC(devfn)); 549 int reglen, devfn, prev_devfn; local 564 devfn = (reg[0] >> 8) & 0xff; 571 if (devfn 264 of_create_pci_dev(struct pci_pbm_info *pbm, struct device_node *node, struct pci_bus *bus, int devfn) argument [all...] |
/linux-master/drivers/ssb/ |
H A D | driver_pcicore.c | 205 static int ssb_pcicore_read_config(struct pci_bus *bus, unsigned int devfn, argument 212 err = ssb_extpci_read_config(extpci_core, bus->number, PCI_SLOT(devfn), 213 PCI_FUNC(devfn), reg, val, size); 219 static int ssb_pcicore_write_config(struct pci_bus *bus, unsigned int devfn, argument 226 err = ssb_extpci_write_config(extpci_core, bus->number, PCI_SLOT(devfn), 227 PCI_FUNC(devfn), reg, &val, size); 286 if (dev->bus->number != 0 || PCI_SLOT(dev->devfn) != 0)
|
/linux-master/drivers/pci/controller/mobiveil/ |
H A D | pcie-mobiveil-host.c | 27 static bool mobiveil_pcie_valid_device(struct pci_bus *bus, unsigned int devfn) argument 30 if (pci_is_root_bus(bus) && (devfn > 0)) 37 if ((bus->primary == to_pci_host_bridge(bus->bridge)->busnr) && (PCI_SLOT(devfn) > 0)) 48 unsigned int devfn, int where) 54 if (!mobiveil_pcie_valid_device(bus, devfn)) 68 PCI_SLOT(devfn) << PAB_DEVICE_SHIFT | 69 PCI_FUNC(devfn) << PAB_FUNCTION_SHIFT; 47 mobiveil_pcie_map_bus(struct pci_bus *bus, unsigned int devfn, int where) argument
|
/linux-master/arch/mips/pci/ |
H A D | ops-tx4927.c | 58 static int mkaddr(struct pci_bus *bus, unsigned int devfn, int where, argument 62 devfn >= PCI_DEVFN(TX4927_PCIC_MAX_DEVNU, 0)) 65 | ((devfn & 0xff) << 0x08) | (where & 0xfc) 139 static int tx4927_pci_config_read(struct pci_bus *bus, unsigned int devfn, argument 145 ret = mkaddr(bus, devfn, where, pcicptr); 163 static int tx4927_pci_config_write(struct pci_bus *bus, unsigned int devfn, argument 169 ret = mkaddr(bus, devfn, where, pcicptr);
|
/linux-master/include/linux/ |
H A D | pci.h | 71 #define PCI_DEVID(bus, devfn) ((((u16)(bus)) << 8) | (devfn)) 72 /* return bus from PCI devid = ((u16)bus_number) << 8) | devfn */ 80 unsigned char number; /* PCI_SLOT(pci_dev->devfn) */ 331 unsigned int devfn; /* Encoded device & function index */ member in struct:pci_dev 355 unsigned long *dma_alias_mask;/* Mask of enabled devfn aliases */ 687 return PCI_DEVID(dev->bus->number, dev->devfn); 801 void __iomem *(*map_bus)(struct pci_bus *bus, unsigned int devfn, int where); 802 int (*read)(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val); 803 int (*write)(struct pci_bus *bus, unsigned int devfn, in 2057 pci_get_slot(struct pci_bus *bus, unsigned int devfn) argument 2060 pci_get_domain_bus_and_slot(int domain, unsigned int bus, unsigned int devfn) argument [all...] |
H A D | dmi.h | 96 int devfn; member in struct:dmi_dev_onboard
|
/linux-master/arch/powerpc/sysdev/ |
H A D | mpic.c | 450 unsigned int devfn) 478 PCI_SLOT(devfn), PCI_FUNC(devfn), 486 unsigned int devfn) 493 unsigned int devfn, u32 vdid) 518 devfn >> 3, devfn & 0x7, pos, vdid & 0xffff, vdid >> 16, n + 1); 543 unsigned int devfn; local 564 for (devfn = 0; devfn < 449 mpic_scan_ht_msi(struct mpic *mpic, u8 __iomem *devbase, unsigned int devfn) argument 485 mpic_scan_ht_msi(struct mpic *mpic, u8 __iomem *devbase, unsigned int devfn) argument 492 mpic_scan_ht_pic(struct mpic *mpic, u8 __iomem *devbase, unsigned int devfn, u32 vdid) argument [all...] |
/linux-master/drivers/ipack/carriers/ |
H A D | tpci200.c | 256 tpci200->info->pdev->devfn); 268 tpci200->info->pdev->devfn); 279 tpci200->info->pdev->devfn); 290 tpci200->info->pdev->devfn); 303 tpci200->info->pdev->devfn); 343 tpci200->info->pdev->devfn);
|
/linux-master/drivers/misc/cb710/ |
H A D | core.c | 31 unsigned int devfn = PCI_DEVFN(PCI_SLOT(pdev->devfn), 0); local 42 pdev0 = pci_get_slot(pdev->bus, devfn);
|
/linux-master/drivers/pci/ |
H A D | slot.c | 77 if (PCI_SLOT(dev->devfn) == slot->number) 169 if (PCI_SLOT(dev->devfn) == slot->number) 191 * @slot_nr: PCI_SLOT(pci_dev->devfn) or -1 for placeholder 223 * %struct pci_bus and bb is the bus number. In other words, the devfn of 288 if (PCI_SLOT(dev->devfn) == slot_nr)
|
/linux-master/drivers/misc/mei/ |
H A D | hw-me.c | 1537 unsigned int devfn; local 1539 devfn = PCI_DEVFN(PCI_SLOT(pdev->devfn), 0); 1540 pci_bus_read_config_dword(pdev->bus, devfn, PCI_CFG_HFS_2, ®); 1563 unsigned int devfn; local 1565 devfn = PCI_DEVFN(PCI_SLOT(pdev->devfn), 0); 1566 pci_bus_read_config_dword(pdev->bus, devfn, PCI_CFG_HFS_1, ®); 1588 unsigned int devfn; local 1590 devfn [all...] |
/linux-master/arch/mips/txx9/generic/ |
H A D | pci.c | 30 int top_bus, int bus, int devfn, int offset, u16 *value) 44 return pci_bus_read_config_word(&fake_bus, devfn, offset, value); 273 irq = pcibios_map_irq(dev, PCI_SLOT(dev->devfn), 1); /* INTA */ 29 early_read_config_word(struct pci_controller *hose, int top_bus, int bus, int devfn, int offset, u16 *value) argument
|
/linux-master/drivers/crypto/intel/qat/qat_common/ |
H A D | adf_dev_mgr.c | 24 return ((7 * (PCI_SLOT(accel_to_pci_dev(vf)->devfn) - 1)) + 25 PCI_FUNC(accel_to_pci_dev(vf)->devfn) + 26 (PCI_SLOT(accel_to_pci_dev(vf)->devfn) - 1));
|
/linux-master/arch/alpha/kernel/ |
H A D | core_t2.c | 284 t2_read_config(struct pci_bus *bus, unsigned int devfn, int where, argument 292 if (mk_conf_addr(bus, devfn, where, &pci_addr, &type1)) 303 t2_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, argument 310 if (mk_conf_addr(bus, devfn, where, &pci_addr, &type1))
|
H A D | core_tsunami.c | 116 tsunami_read_config(struct pci_bus *bus, unsigned int devfn, int where, argument 122 if (mk_conf_addr(bus, devfn, where, &addr, &type1)) 141 tsunami_write_config(struct pci_bus *bus, unsigned int devfn, int where, argument 147 if (mk_conf_addr(bus, devfn, where, &addr, &type1))
|
/linux-master/drivers/pcmcia/ |
H A D | o2micro.h | 121 if (PCI_FUNC(socket->dev->devfn) == 0) {
|