Lines Matching refs:cmd_len

430 	int cmd_len, resp_len, i;  in wilc_spi_single_read()  local
455 cmd_len = offsetof(struct wilc_spi_cmd, u.simple_cmd.crc); in wilc_spi_single_read()
459 c->u.simple_cmd.crc[0] = wilc_get_crc7(wb, cmd_len); in wilc_spi_single_read()
460 cmd_len += 1; in wilc_spi_single_read()
464 if (cmd_len + resp_len > ARRAY_SIZE(wb)) { in wilc_spi_single_read()
467 cmd_len, resp_len, ARRAY_SIZE(wb)); in wilc_spi_single_read()
471 if (wilc_spi_tx_rx(wilc, wb, rb, cmd_len + resp_len)) { in wilc_spi_single_read()
476 r = (struct wilc_spi_rsp_data *)&rb[cmd_len]; in wilc_spi_single_read()
525 int cmd_len, resp_len; in wilc_spi_write_cmd() local
540 cmd_len = offsetof(struct wilc_spi_cmd, u.internal_w_cmd.crc); in wilc_spi_write_cmd()
542 c->u.internal_w_cmd.crc[0] = wilc_get_crc7(wb, cmd_len); in wilc_spi_write_cmd()
548 cmd_len = offsetof(struct wilc_spi_cmd, u.w_cmd.crc); in wilc_spi_write_cmd()
550 c->u.w_cmd.crc[0] = wilc_get_crc7(wb, cmd_len); in wilc_spi_write_cmd()
557 cmd_len += 1; in wilc_spi_write_cmd()
561 if (cmd_len + resp_len > ARRAY_SIZE(wb)) { in wilc_spi_write_cmd()
564 cmd_len, resp_len, ARRAY_SIZE(wb)); in wilc_spi_write_cmd()
568 if (wilc_spi_tx_rx(wilc, wb, rb, cmd_len + resp_len)) { in wilc_spi_write_cmd()
573 r = (struct wilc_spi_rsp_data *)&rb[cmd_len]; in wilc_spi_write_cmd()
600 int cmd_len, resp_len; in wilc_spi_dma_rw() local
616 cmd_len = offsetof(struct wilc_spi_cmd, u.dma_cmd.crc); in wilc_spi_dma_rw()
618 c->u.dma_cmd.crc[0] = wilc_get_crc7(wb, cmd_len); in wilc_spi_dma_rw()
626 cmd_len = offsetof(struct wilc_spi_cmd, u.dma_cmd_ext.crc); in wilc_spi_dma_rw()
628 c->u.dma_cmd_ext.crc[0] = wilc_get_crc7(wb, cmd_len); in wilc_spi_dma_rw()
635 cmd_len += 1; in wilc_spi_dma_rw()
639 if (cmd_len + resp_len > ARRAY_SIZE(wb)) { in wilc_spi_dma_rw()
641 cmd_len, resp_len, ARRAY_SIZE(wb)); in wilc_spi_dma_rw()
645 if (wilc_spi_tx_rx(wilc, wb, rb, cmd_len + resp_len)) { in wilc_spi_dma_rw()
650 r = (struct wilc_spi_rsp_data *)&rb[cmd_len]; in wilc_spi_dma_rw()
729 int cmd_len, resp_len = 0; in wilc_spi_special_cmd() local
744 cmd_len = offsetof(struct wilc_spi_cmd, u.simple_cmd.crc); in wilc_spi_special_cmd()
748 c->u.simple_cmd.crc[0] = wilc_get_crc7(wb, cmd_len); in wilc_spi_special_cmd()
749 cmd_len += 1; in wilc_spi_special_cmd()
751 if (cmd_len + resp_len > ARRAY_SIZE(wb)) { in wilc_spi_special_cmd()
753 cmd_len, resp_len, ARRAY_SIZE(wb)); in wilc_spi_special_cmd()
757 if (wilc_spi_tx_rx(wilc, wb, rb, cmd_len + resp_len)) { in wilc_spi_special_cmd()
762 r = (struct wilc_spi_special_cmd_rsp *)&rb[cmd_len]; in wilc_spi_special_cmd()