Lines Matching defs:func
223 #define PCI_CONF_FUNC(func) (((func) & 0x3) << 8)
273 static int orion5x_pci_hw_rd_conf(int bus, int dev, u32 func,
281 PCI_CONF_FUNC(func) | PCI_CONF_ADDR_EN, PCI_CONF_ADDR);
295 static int orion5x_pci_hw_wr_conf(int bus, int dev, u32 func,
305 PCI_CONF_FUNC(func) | PCI_CONF_ADDR_EN, PCI_CONF_ADDR);
396 int bus_nr, func, reg;
400 func = PCI_CONF_FUNC_STAT_CMD;
402 orion5x_pci_hw_rd_conf(bus_nr, 0, func, reg, 4, &val);
404 orion5x_pci_hw_wr_conf(bus_nr, 0, func, reg, 4, val | 0x7);
427 u32 func = PCI_CONF_FUNC_BAR_CS(cs->cs_index);
435 orion5x_pci_hw_rd_conf(bus, 0, func, reg, 4, &val);
437 orion5x_pci_hw_wr_conf(bus, 0, func, reg, 4, val);
443 orion5x_pci_hw_wr_conf(bus, 0, func, reg, 4, 0);