Lines Matching refs:cmd

148 static int ixp4xx_pci_read_indirect(struct ixp4xx_pci *p, u32 addr, u32 cmd, u32 *data)  in ixp4xx_pci_read_indirect()  argument
161 ixp4xx_writel(p, IXP4XX_PCI_NP_CBE, cmd); in ixp4xx_pci_read_indirect()
166 ixp4xx_writel(p, IXP4XX_PCI_NP_CBE, cmd); in ixp4xx_pci_read_indirect()
173 static int ixp4xx_pci_write_indirect(struct ixp4xx_pci *p, u32 addr, u32 cmd, u32 data) in ixp4xx_pci_write_indirect() argument
178 ixp4xx_writel(p, IXP4XX_PCI_NP_CBE, cmd); in ixp4xx_pci_write_indirect()
220 u32 n, cmd, val; in ixp4xx_crp_read_config() local
223 cmd = where & ~3; in ixp4xx_crp_read_config()
226 __func__, where, size, cmd); in ixp4xx_crp_read_config()
228 ixp4xx_writel(p, IXP4XX_PCI_CRP_AD_CBE, cmd); in ixp4xx_crp_read_config()
258 u32 n, cmd, val; in ixp4xx_crp_write_config() local
261 cmd = ixp4xx_crp_byte_lane_enable_bits(n, size); in ixp4xx_crp_write_config()
262 if (cmd == 0xffffffff) in ixp4xx_crp_write_config()
264 cmd |= where & ~3; in ixp4xx_crp_write_config()
265 cmd |= CRP_AD_CBE_WRITE; in ixp4xx_crp_write_config()
270 __func__, where, size, cmd, val); in ixp4xx_crp_write_config()
272 ixp4xx_writel(p, IXP4XX_PCI_CRP_AD_CBE, cmd); in ixp4xx_crp_write_config()
297 u32 n, addr, val, cmd; in ixp4xx_pci_read_config() local
303 cmd = ixp4xx_byte_lane_enable_bits(n, size); in ixp4xx_pci_read_config()
304 if (cmd == 0xffffffff) in ixp4xx_pci_read_config()
308 cmd |= NP_CMD_CONFIGREAD; in ixp4xx_pci_read_config()
310 where, size, bus_num, PCI_SLOT(devfn), PCI_FUNC(devfn), addr, cmd); in ixp4xx_pci_read_config()
312 ret = ixp4xx_pci_read_indirect(p, addr, cmd, &val); in ixp4xx_pci_read_config()
344 u32 n, addr, val, cmd; in ixp4xx_pci_write_config() local
349 cmd = ixp4xx_byte_lane_enable_bits(n, size); in ixp4xx_pci_write_config()
350 if (cmd == 0xffffffff) in ixp4xx_pci_write_config()
354 cmd |= NP_CMD_CONFIGWRITE; in ixp4xx_pci_write_config()
358 value, where, size, bus_num, PCI_SLOT(devfn), PCI_FUNC(devfn), addr, cmd); in ixp4xx_pci_write_config()
360 ret = ixp4xx_pci_write_indirect(p, addr, cmd, val); in ixp4xx_pci_write_config()