Lines Matching refs:wb

363 static int wilc_spi_tx_rx(struct wilc *wilc, u8 *wb, u8 *rb, u32 rlen)  in wilc_spi_tx_rx()  argument
372 .tx_buf = wb, in wilc_spi_tx_rx()
487 u8 wb[32], rb[32]; in wilc_spi_single_read() local
494 memset(wb, 0x0, sizeof(wb)); in wilc_spi_single_read()
496 c = (struct wilc_spi_cmd *)wb; in wilc_spi_single_read()
517 c->u.simple_cmd.crc[0] = wilc_get_crc7(wb, cmd_len); in wilc_spi_single_read()
522 if (cmd_len + resp_len > ARRAY_SIZE(wb)) { in wilc_spi_single_read()
525 cmd_len, resp_len, ARRAY_SIZE(wb)); in wilc_spi_single_read()
529 if (wilc_spi_tx_rx(wilc, wb, rb, cmd_len + resp_len)) { in wilc_spi_single_read()
582 u8 wb[32], rb[32]; in wilc_spi_write_cmd() local
587 memset(wb, 0x0, sizeof(wb)); in wilc_spi_write_cmd()
589 c = (struct wilc_spi_cmd *)wb; in wilc_spi_write_cmd()
600 c->u.internal_w_cmd.crc[0] = wilc_get_crc7(wb, cmd_len); in wilc_spi_write_cmd()
608 c->u.w_cmd.crc[0] = wilc_get_crc7(wb, cmd_len); in wilc_spi_write_cmd()
619 if (cmd_len + resp_len > ARRAY_SIZE(wb)) { in wilc_spi_write_cmd()
622 cmd_len, resp_len, ARRAY_SIZE(wb)); in wilc_spi_write_cmd()
626 if (wilc_spi_tx_rx(wilc, wb, rb, cmd_len + resp_len)) { in wilc_spi_write_cmd()
657 u8 wb[32], rb[32]; in wilc_spi_dma_rw() local
664 memset(wb, 0x0, sizeof(wb)); in wilc_spi_dma_rw()
666 c = (struct wilc_spi_cmd *)wb; in wilc_spi_dma_rw()
676 c->u.dma_cmd.crc[0] = wilc_get_crc7(wb, cmd_len); in wilc_spi_dma_rw()
686 c->u.dma_cmd_ext.crc[0] = wilc_get_crc7(wb, cmd_len); in wilc_spi_dma_rw()
697 if (cmd_len + resp_len > ARRAY_SIZE(wb)) { in wilc_spi_dma_rw()
699 cmd_len, resp_len, ARRAY_SIZE(wb)); in wilc_spi_dma_rw()
703 if (wilc_spi_tx_rx(wilc, wb, rb, cmd_len + resp_len)) { in wilc_spi_dma_rw()
783 u8 wb[32], rb[32]; in wilc_spi_special_cmd() local
791 memset(wb, 0x0, sizeof(wb)); in wilc_spi_special_cmd()
793 c = (struct wilc_spi_cmd *)wb; in wilc_spi_special_cmd()
803 c->u.simple_cmd.crc[0] = wilc_get_crc7(wb, cmd_len); in wilc_spi_special_cmd()
806 if (cmd_len + resp_len > ARRAY_SIZE(wb)) { in wilc_spi_special_cmd()
808 cmd_len, resp_len, ARRAY_SIZE(wb)); in wilc_spi_special_cmd()
812 if (wilc_spi_tx_rx(wilc, wb, rb, cmd_len + resp_len)) { in wilc_spi_special_cmd()