Lines Matching refs:reg_index
1107 static inline int bq27xxx_read(struct bq27xxx_device_info *di, int reg_index, in bq27xxx_read() argument
1112 if (!di || di->regs[reg_index] == INVALID_REG_ADDR) in bq27xxx_read()
1115 ret = di->bus.read(di, di->regs[reg_index], single); in bq27xxx_read()
1118 di->regs[reg_index], reg_index); in bq27xxx_read()
1123 static inline int bq27xxx_write(struct bq27xxx_device_info *di, int reg_index, in bq27xxx_write() argument
1128 if (!di || di->regs[reg_index] == INVALID_REG_ADDR) in bq27xxx_write()
1134 ret = di->bus.write(di, di->regs[reg_index], value, single); in bq27xxx_write()
1137 di->regs[reg_index], reg_index); in bq27xxx_write()
1142 static inline int bq27xxx_read_block(struct bq27xxx_device_info *di, int reg_index, in bq27xxx_read_block() argument
1147 if (!di || di->regs[reg_index] == INVALID_REG_ADDR) in bq27xxx_read_block()
1153 ret = di->bus.read_bulk(di, di->regs[reg_index], data, len); in bq27xxx_read_block()
1156 di->regs[reg_index], reg_index); in bq27xxx_read_block()
1161 static inline int bq27xxx_write_block(struct bq27xxx_device_info *di, int reg_index, in bq27xxx_write_block() argument
1166 if (!di || di->regs[reg_index] == INVALID_REG_ADDR) in bq27xxx_write_block()
1172 ret = di->bus.write_bulk(di, di->regs[reg_index], data, len); in bq27xxx_write_block()
1175 di->regs[reg_index], reg_index); in bq27xxx_write_block()