Lines Matching refs:off
60 unsigned int func, unsigned int off) in bcma_get_cfgspace_addr() argument
78 addr |= (off & ~3); in bcma_get_cfgspace_addr()
85 unsigned int func, unsigned int off, in bcma_extpci_read_config() argument
103 if (off >= PCI_CONFIG_SPACE_SIZE) { in bcma_extpci_read_config()
105 addr |= (off & 0x0FFC); in bcma_extpci_read_config()
110 addr |= (off & 0xFC); in bcma_extpci_read_config()
114 addr = bcma_get_cfgspace_addr(pc, dev, func, off); in bcma_extpci_read_config()
127 val >>= (8 * (off & 3)); in bcma_extpci_read_config()
149 unsigned int func, unsigned int off, in bcma_extpci_write_config() argument
168 if (off >= PCI_CONFIG_SPACE_SIZE) { in bcma_extpci_write_config()
170 addr |= (off & 0x0FFC); in bcma_extpci_write_config()
175 addr |= (off & 0xFC); in bcma_extpci_write_config()
179 addr = bcma_get_cfgspace_addr(pc, dev, func, off); in bcma_extpci_write_config()
195 val &= ~(0xFF << (8 * (off & 3))); in bcma_extpci_write_config()
196 val |= *((const u8 *)buf) << (8 * (off & 3)); in bcma_extpci_write_config()
199 val &= ~(0xFFFF << (8 * (off & 3))); in bcma_extpci_write_config()
200 val |= *((const u16 *)buf) << (8 * (off & 3)); in bcma_extpci_write_config()
210 if (off >= PCI_CONFIG_SPACE_SIZE) in bcma_extpci_write_config()