Lines Matching full:bc

112 			 u8 opc, u8 slave_id, u16 slave_addr, u8 *__buf, size_t bc)  in spmi_read_cmd()  argument
122 if (bc > SPMI_CONTROLLER_MAX_TRANS_BYTES) { in spmi_read_cmd()
125 SPMI_CONTROLLER_MAX_TRANS_BYTES, bc); in spmi_read_cmd()
146 ((bc - 1) << SPMI_APB_SPMI_CMD_LENGTH_OFFSET) | in spmi_read_cmd()
159 for (i = 0; bc > i * SPMI_PER_DATAREG_BYTE; i++) { in spmi_read_cmd()
165 if ((bc - i * SPMI_PER_DATAREG_BYTE) >> 2) { in spmi_read_cmd()
169 memcpy(buf, &data, bc % SPMI_PER_DATAREG_BYTE); in spmi_read_cmd()
170 buf += (bc % SPMI_PER_DATAREG_BYTE); in spmi_read_cmd()
178 "spmi read wait timeout op:0x%x slave_id:%d slave_addr:0x%x bc:%zu\n", in spmi_read_cmd()
179 opc, slave_id, slave_addr, bc + 1); in spmi_read_cmd()
182 __func__, slave_id, slave_addr, (int)bc, __buf); in spmi_read_cmd()
188 u8 opc, u8 slave_id, u16 slave_addr, const u8 *__buf, size_t bc) in spmi_write_cmd() argument
198 if (bc > SPMI_CONTROLLER_MAX_TRANS_BYTES) { in spmi_write_cmd()
201 SPMI_CONTROLLER_MAX_TRANS_BYTES, bc); in spmi_write_cmd()
222 ((bc - 1) << SPMI_APB_SPMI_CMD_LENGTH_OFFSET) | in spmi_write_cmd()
229 for (i = 0; bc > i * SPMI_PER_DATAREG_BYTE; i++) { in spmi_write_cmd()
231 if ((bc - i * SPMI_PER_DATAREG_BYTE) >> 2) { in spmi_write_cmd()
235 memcpy(&data, buf, bc % SPMI_PER_DATAREG_BYTE); in spmi_write_cmd()
236 buf += (bc % SPMI_PER_DATAREG_BYTE); in spmi_write_cmd()
254 dev_err(&ctrl->dev, "spmi write wait timeout op:0x%x slave_id:%d slave_addr:0x%x bc:%zu\n", in spmi_write_cmd()
255 opc, slave_id, slave_addr, bc); in spmi_write_cmd()
258 __func__, slave_id, slave_addr, (int)bc, __buf); in spmi_write_cmd()