Lines Matching refs:cmd_len

361 	int cmd_len, resp_len;  in wilc_spi_single_read()  local
385 cmd_len = offsetof(struct wilc_spi_cmd, u.simple_cmd.crc); in wilc_spi_single_read()
388 c->u.simple_cmd.crc[0] = wilc_get_crc7(wb, cmd_len); in wilc_spi_single_read()
389 cmd_len += 1; in wilc_spi_single_read()
393 if (cmd_len + resp_len > ARRAY_SIZE(wb)) { in wilc_spi_single_read()
396 cmd_len, resp_len, ARRAY_SIZE(wb)); in wilc_spi_single_read()
400 if (wilc_spi_tx_rx(wilc, wb, rb, cmd_len + resp_len)) { in wilc_spi_single_read()
405 r = (struct wilc_spi_read_rsp_data *)&rb[cmd_len]; in wilc_spi_single_read()
440 int cmd_len, resp_len; in wilc_spi_write_cmd() local
455 cmd_len = offsetof(struct wilc_spi_cmd, u.internal_w_cmd.crc); in wilc_spi_write_cmd()
457 c->u.internal_w_cmd.crc[0] = wilc_get_crc7(wb, cmd_len); in wilc_spi_write_cmd()
463 cmd_len = offsetof(struct wilc_spi_cmd, u.w_cmd.crc); in wilc_spi_write_cmd()
465 c->u.w_cmd.crc[0] = wilc_get_crc7(wb, cmd_len); in wilc_spi_write_cmd()
472 cmd_len += 1; in wilc_spi_write_cmd()
476 if (cmd_len + resp_len > ARRAY_SIZE(wb)) { in wilc_spi_write_cmd()
479 cmd_len, resp_len, ARRAY_SIZE(wb)); in wilc_spi_write_cmd()
483 if (wilc_spi_tx_rx(wilc, wb, rb, cmd_len + resp_len)) { in wilc_spi_write_cmd()
488 r = (struct wilc_spi_rsp_data *)&rb[cmd_len]; in wilc_spi_write_cmd()
510 int cmd_len, resp_len; in wilc_spi_dma_rw() local
526 cmd_len = offsetof(struct wilc_spi_cmd, u.dma_cmd.crc); in wilc_spi_dma_rw()
528 c->u.dma_cmd.crc[0] = wilc_get_crc7(wb, cmd_len); in wilc_spi_dma_rw()
536 cmd_len = offsetof(struct wilc_spi_cmd, u.dma_cmd_ext.crc); in wilc_spi_dma_rw()
538 c->u.dma_cmd_ext.crc[0] = wilc_get_crc7(wb, cmd_len); in wilc_spi_dma_rw()
545 cmd_len += 1; in wilc_spi_dma_rw()
549 if (cmd_len + resp_len > ARRAY_SIZE(wb)) { in wilc_spi_dma_rw()
551 cmd_len, resp_len, ARRAY_SIZE(wb)); in wilc_spi_dma_rw()
555 if (wilc_spi_tx_rx(wilc, wb, rb, cmd_len + resp_len)) { in wilc_spi_dma_rw()
560 r = (struct wilc_spi_rsp_data *)&rb[cmd_len]; in wilc_spi_dma_rw()