Lines Matching refs:reg
909 unsigned int dev, func, reg; in check_pci_device_reg() local
923 reg = fdt32_to_cpu(cells[0]); in check_pci_device_reg()
924 dev = (reg & 0xf800) >> 11; in check_pci_device_reg()
925 func = (reg & 0x700) >> 8; in check_pci_device_reg()
927 if (reg & 0xff000000) in check_pci_device_reg()
929 if (reg & 0x000000ff) in check_pci_device_reg()
982 uint64_t reg = 0; in check_simple_bus_reg() local
1006 reg = (reg << 32) | fdt32_to_cpu(*(cells++)); in check_simple_bus_reg()
1008 snprintf(unit_addr, sizeof(unit_addr), "%"PRIx64, reg); in check_simple_bus_reg()
1053 uint32_t reg = 0; in check_i2c_bus_reg() local
1069 reg = fdt32_to_cpu(*cells); in check_i2c_bus_reg()
1071 reg &= ~I2C_OWN_SLAVE_ADDRESS; in check_i2c_bus_reg()
1072 snprintf(unit_addr, sizeof(unit_addr), "%x", reg); in check_i2c_bus_reg()
1078 reg = fdt32_to_cpu(*(cells++)); in check_i2c_bus_reg()
1080 reg &= ~I2C_OWN_SLAVE_ADDRESS; in check_i2c_bus_reg()
1082 if (reg & I2C_TEN_BIT_ADDRESS) { in check_i2c_bus_reg()
1083 if ((reg & ~I2C_TEN_BIT_ADDRESS) > 0x3ff) in check_i2c_bus_reg()
1085 reg); in check_i2c_bus_reg()
1086 } else if (reg > 0x7f) in check_i2c_bus_reg()
1088 reg); in check_i2c_bus_reg()
1143 uint32_t reg = 0; in check_spi_bus_reg() local
1161 reg = fdt32_to_cpu(*cells); in check_spi_bus_reg()
1162 snprintf(unit_addr, sizeof(unit_addr), "%x", reg); in check_spi_bus_reg()
1197 struct property *reg, *ranges; in check_avoid_default_addr_size() local
1202 reg = get_property(node, "reg"); in check_avoid_default_addr_size()
1205 if (!reg && !ranges) in check_avoid_default_addr_size()