• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7800-V1.0.2.28/target/linux/lantiq/files/arch/mips/pci/

Lines Matching defs:where

489 static inline unsigned int pcie_bus_addr(u8 bus_num, u16 devfn, int where)
496 addr = ((PCI_SLOT(devfn) & 0x1F) << 15) | ((PCI_FUNC(devfn) & 0x7) << 12) | ((where & 0xFFF)& ~3);
501 ((PCI_FUNC(devfn) & 0x7) << 12) | ((where & 0xFFF) & ~3);
504 __func__, bus_num, PCI_SLOT(devfn), PCI_FUNC(devfn), where, addr);
563 unsigned int ifx_pcie_bus_enum_read_hack(int where, unsigned int value)
567 if (where == PCI_PRIMARY_BUS) {
581 unsigned int ifx_pcie_bus_enum_write_hack(int where, unsigned int value)
585 if (where == PCI_PRIMARY_BUS) {
598 } else if (where == PCI_SUBORDINATE_BUS) {
608 * int where, int size, unsigned int *value)
613 * \param[in] where PCI register number
622 static int ifx_pcie_read_config(struct pci_bus *bus, unsigned int devfn, int where, int size, unsigned int *value)
637 if (unlikely(((size - 1) & where))) {
673 PCI_SLOT(devfn), PCI_FUNC(devfn), where, size);
679 t = (where & ~3);
684 unsigned int addr = pcie_bus_addr(bus_number, devfn, where);
698 data = ifx_pcie_bus_enum_hack(bus, devfn, where, data, pcie_port, 1);
702 __func__, (data >> (8 * (where & 3))) & mask[size & 7], data);
704 *value = (data >> (8 * (where & 3))) & mask[size & 7];
709 static unsigned int ifx_pcie_size_to_value(int where, int size, unsigned int data, unsigned int value)
716 shift = (where & 0x3) << 3;
721 shift = (where & 3) << 3;
734 * int where, int size, unsigned int value)
739 * \param[in] where PCI register number
747 static int ifx_pcie_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, unsigned int value)
757 if (unlikely(((size - 1) & where))) {
781 bus_number, PCI_SLOT(devfn), PCI_FUNC(devfn), where, size, value);
790 tvalue = ifx_pcie_bus_enum_hack(bus, devfn, where, value, pcie_port, 0);
795 t = (where & ~3);
800 data = ifx_pcie_size_to_value(where, size, data, tvalue);
807 unsigned int addr = pcie_bus_addr(bus_number, devfn, where);
822 data = ifx_pcie_size_to_value(where, size, data, tvalue);