Lines Matching refs:value
27 …_t rt_pci_bus_read_config_##name(struct rt_pci_bus *bus, rt_uint32_t devfn, int reg, type *value) \
34 *value = err ? (type)(~0) : (type)data; \
40 …_t rt_pci_bus_write_config_##name(struct rt_pci_bus *bus, rt_uint32_t devfn, int reg, type value) \
45 err = bus->ops->write(bus, devfn, reg, sizeof(type), value); \
63 rt_uint32_t devfn, int reg, int width, rt_uint32_t *value) in PCI_OPS()
71 *value = HWREG8(base); in PCI_OPS()
75 *value = HWREG16(base); in PCI_OPS()
79 *value = HWREG32(base); in PCI_OPS()
89 rt_uint32_t devfn, int reg, int width, rt_uint32_t value) in rt_pci_bus_write_config_uxx() argument
97 HWREG8(base) = value; in rt_pci_bus_write_config_uxx()
101 HWREG16(base) = value; in rt_pci_bus_write_config_uxx()
105 HWREG32(base) = value; in rt_pci_bus_write_config_uxx()
115 rt_uint32_t devfn, int reg, int width, rt_uint32_t *value) in rt_pci_bus_read_config_generic_u32() argument
121 *value = HWREG32(base); in rt_pci_bus_read_config_generic_u32()
125 *value = (*value >> (8 * (reg & 3))) & ((1 << (width * 8)) - 1); in rt_pci_bus_read_config_generic_u32()
135 rt_uint32_t devfn, int reg, int width, rt_uint32_t value) in rt_pci_bus_write_config_generic_u32() argument
143 HWREG32(base) = value; in rt_pci_bus_write_config_generic_u32()
151 tmp |= value << ((reg & 0x3) * 8); in rt_pci_bus_write_config_generic_u32()