Lines Matching refs:cmd
48 __be16 cmd; member
55 .cmd = cpu_to_be16(0x805D),
62 .cmd = cpu_to_be16(0xEFC8),
68 .cmd = cpu_to_be16(0xC7F7),
75 .cmd = cpu_to_be16(0x401A),
81 .cmd = cpu_to_be16(0x48A3),
87 .cmd = cpu_to_be16(0x5059),
93 .cmd = cpu_to_be16(0x58E0),
121 const struct icp10100_command *cmd, in icp10100_send_cmd() argument
124 size_t size = cmd->response_word_nb * ICP10100_RESPONSE_WORD_LENGTH; in icp10100_send_cmd()
133 .buf = (uint8_t *)&cmd->cmd, in icp10100_send_cmd()
148 if (cmd->response_word_nb > 0 && in icp10100_send_cmd()
149 (buf == NULL || buf_len < (cmd->response_word_nb * 2))) in icp10100_send_cmd()
152 dev_dbg(&st->client->dev, "sending cmd %#x\n", be16_to_cpu(cmd->cmd)); in icp10100_send_cmd()
154 if (cmd->response_word_nb > 0 && cmd->wait_us == 0) { in icp10100_send_cmd()
165 if (cmd->wait_us > 0) in icp10100_send_cmd()
166 usleep_range(cmd->wait_us, cmd->wait_max_us); in icp10100_send_cmd()
168 if (cmd->response_word_nb > 0) { in icp10100_send_cmd()
178 for (i = 0; i < cmd->response_word_nb; ++i) { in icp10100_send_cmd()
249 const struct icp10100_command *cmd; in icp10100_get_measures() local
258 cmd = &icp10100_cmd_measure[st->mode]; in icp10100_get_measures()
259 ret = icp10100_send_cmd(st, cmd, measures, sizeof(measures)); in icp10100_get_measures()