Lines Matching refs:where
236 int where, u8 byte_en, u32 *value) in tlp_cfg_dword_read() argument
247 headers[2] = TLP_CFG_DW2(bus, devfn, where); in tlp_cfg_dword_read()
255 int where, u8 byte_en, u32 value) in tlp_cfg_dword_write() argument
267 headers[2] = TLP_CFG_DW2(bus, devfn, where); in tlp_cfg_dword_write()
270 if ((where & 0x7) == 0) in tlp_cfg_dword_write()
283 if ((bus == pcie->root_bus_nr) && (where == PCI_PRIMARY_BUS)) in tlp_cfg_dword_write()
290 int where, int size, u32 *value) in altera_pcie_cfg_read() argument
297 if (altera_pcie_hide_rc_bar(bus, devfn, where)) in altera_pcie_cfg_read()
307 byte_en = 1 << (where & 3); in altera_pcie_cfg_read()
310 byte_en = 3 << (where & 3); in altera_pcie_cfg_read()
318 (where & ~DWORD_MASK), byte_en, &data); in altera_pcie_cfg_read()
324 *value = (data >> (8 * (where & 0x3))) & 0xff; in altera_pcie_cfg_read()
327 *value = (data >> (8 * (where & 0x2))) & 0xffff; in altera_pcie_cfg_read()
338 int where, int size, u32 value) in altera_pcie_cfg_write() argument
342 u32 shift = 8 * (where & 3); in altera_pcie_cfg_write()
345 if (altera_pcie_hide_rc_bar(bus, devfn, where)) in altera_pcie_cfg_write()
354 byte_en = 1 << (where & 3); in altera_pcie_cfg_write()
358 byte_en = 3 << (where & 3); in altera_pcie_cfg_write()
367 (where & ~DWORD_MASK), byte_en, data32); in altera_pcie_cfg_write()