Lines Matching refs:cmd_len
16 static int quicki2c_init_write_buf(struct quicki2c_device *qcdev, u32 cmd, int cmd_len, in quicki2c_init_write_buf() argument
22 buf_len = HIDI2C_REG_LEN + cmd_len; in quicki2c_init_write_buf()
35 memcpy(write_buf + offset, &cmd, cmd_len); in quicki2c_init_write_buf()
36 offset += cmd_len; in quicki2c_init_write_buf()
57 int cmd_len; in quicki2c_encode_cmd() local
64 cmd_len = HIDI2C_CMD_LEN; in quicki2c_encode_cmd()
68 cmd_len = HIDI2C_CMD_LEN_OPT; in quicki2c_encode_cmd()
71 return cmd_len; in quicki2c_encode_cmd()
78 int cmd_len, ret; in write_cmd_to_txdma() local
81 cmd_len = quicki2c_encode_cmd(qcdev, &cmd, opcode, report_type, report_id); in write_cmd_to_txdma()
83 ret = quicki2c_init_write_buf(qcdev, cmd, cmd_len, buf ? true : false, buf, in write_cmd_to_txdma()
133 int cmd_len, rep_type; in quicki2c_get_report() local
146 cmd_len = quicki2c_encode_cmd(qcdev, &cmd, HIDI2C_GET_REPORT, rep_type, reportnum); in quicki2c_get_report()
148 ret = quicki2c_init_write_buf(qcdev, cmd, cmd_len, true, NULL, 0, in quicki2c_get_report()