Lines Matching refs:where
199 int where, int size, u32 *ptr, bool write) in ar2315_pci_cfg_access() argument
203 u32 addr = (1 << (13 + dev)) | (func << 8) | (where & ~3); in ar2315_pci_cfg_access()
205 u32 sh = (where & 3) * 8; in ar2315_pci_cfg_access()
254 unsigned devfn, int where, u32 *val) in ar2315_pci_local_cfg_rd() argument
256 return ar2315_pci_cfg_access(apc, devfn, where, sizeof(u32), val, in ar2315_pci_local_cfg_rd()
261 unsigned devfn, int where, u32 val) in ar2315_pci_local_cfg_wr() argument
263 return ar2315_pci_cfg_access(apc, devfn, where, sizeof(u32), &val, in ar2315_pci_local_cfg_wr()
267 static int ar2315_pci_cfg_read(struct pci_bus *bus, unsigned devfn, int where, in ar2315_pci_cfg_read() argument
275 return ar2315_pci_cfg_access(apc, devfn, where, size, value, false); in ar2315_pci_cfg_read()
278 static int ar2315_pci_cfg_write(struct pci_bus *bus, unsigned devfn, int where, in ar2315_pci_cfg_write() argument
286 return ar2315_pci_cfg_access(apc, devfn, where, size, &value, true); in ar2315_pci_cfg_write()