Lines Matching refs:cmd_len

422 	int cmd_len, resp_len, i;  in wilc_spi_single_read()  local
447 cmd_len = offsetof(struct wilc_spi_cmd, u.simple_cmd.crc); in wilc_spi_single_read()
451 c->u.simple_cmd.crc[0] = wilc_get_crc7(wb, cmd_len); in wilc_spi_single_read()
452 cmd_len += 1; in wilc_spi_single_read()
456 if (cmd_len + resp_len > ARRAY_SIZE(wb)) { in wilc_spi_single_read()
459 cmd_len, resp_len, ARRAY_SIZE(wb)); in wilc_spi_single_read()
463 if (wilc_spi_tx_rx(wilc, wb, rb, cmd_len + resp_len)) { in wilc_spi_single_read()
468 r = (struct wilc_spi_rsp_data *)&rb[cmd_len]; in wilc_spi_single_read()
517 int cmd_len, resp_len; in wilc_spi_write_cmd() local
532 cmd_len = offsetof(struct wilc_spi_cmd, u.internal_w_cmd.crc); in wilc_spi_write_cmd()
534 c->u.internal_w_cmd.crc[0] = wilc_get_crc7(wb, cmd_len); in wilc_spi_write_cmd()
540 cmd_len = offsetof(struct wilc_spi_cmd, u.w_cmd.crc); in wilc_spi_write_cmd()
542 c->u.w_cmd.crc[0] = wilc_get_crc7(wb, cmd_len); in wilc_spi_write_cmd()
549 cmd_len += 1; in wilc_spi_write_cmd()
553 if (cmd_len + resp_len > ARRAY_SIZE(wb)) { in wilc_spi_write_cmd()
556 cmd_len, resp_len, ARRAY_SIZE(wb)); in wilc_spi_write_cmd()
560 if (wilc_spi_tx_rx(wilc, wb, rb, cmd_len + resp_len)) { in wilc_spi_write_cmd()
565 r = (struct wilc_spi_rsp_data *)&rb[cmd_len]; in wilc_spi_write_cmd()
588 int cmd_len, resp_len; in wilc_spi_dma_rw() local
604 cmd_len = offsetof(struct wilc_spi_cmd, u.dma_cmd.crc); in wilc_spi_dma_rw()
606 c->u.dma_cmd.crc[0] = wilc_get_crc7(wb, cmd_len); in wilc_spi_dma_rw()
614 cmd_len = offsetof(struct wilc_spi_cmd, u.dma_cmd_ext.crc); in wilc_spi_dma_rw()
616 c->u.dma_cmd_ext.crc[0] = wilc_get_crc7(wb, cmd_len); in wilc_spi_dma_rw()
623 cmd_len += 1; in wilc_spi_dma_rw()
627 if (cmd_len + resp_len > ARRAY_SIZE(wb)) { in wilc_spi_dma_rw()
629 cmd_len, resp_len, ARRAY_SIZE(wb)); in wilc_spi_dma_rw()
633 if (wilc_spi_tx_rx(wilc, wb, rb, cmd_len + resp_len)) { in wilc_spi_dma_rw()
638 r = (struct wilc_spi_rsp_data *)&rb[cmd_len]; in wilc_spi_dma_rw()