Lines Matching refs:cmd_size
183 size_t cmd_size, int flags) in i2400mu_bus_bm_cmd_send() argument
190 size_t cmd_size_a = ALIGN(cmd_size, 16); /* USB restriction */ in i2400mu_bus_bm_cmd_send()
193 i2400m, _cmd, cmd_size); in i2400mu_bus_bm_cmd_send()
195 if (cmd_size > I2400M_BM_CMD_BUF_SIZE) in i2400mu_bus_bm_cmd_send()
198 memmove(i2400m->bm_cmd_buf, _cmd, cmd_size); in i2400mu_bus_bm_cmd_send()
200 if (cmd_size_a > cmd_size) /* Zero pad space */ in i2400mu_bus_bm_cmd_send()
201 memset(i2400m->bm_cmd_buf + cmd_size, 0, cmd_size_a - cmd_size); in i2400mu_bus_bm_cmd_send()
207 result = i2400mu_tx_bulk_out(i2400mu, i2400m->bm_cmd_buf, cmd_size); in i2400mu_bus_bm_cmd_send()
213 if (result != cmd_size) { /* all was transferred? */ in i2400mu_bus_bm_cmd_send()
215 "(%zd vs %zu submitted)\n", opcode, result, cmd_size); in i2400mu_bus_bm_cmd_send()
223 i2400m, _cmd, cmd_size, result); in i2400mu_bus_bm_cmd_send()