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