Lines Matching refs:wb
298 static int wilc_spi_tx_rx(struct wilc *wilc, u8 *wb, u8 *rb, u32 rlen) in wilc_spi_tx_rx() argument
307 .tx_buf = wb, in wilc_spi_tx_rx()
423 u8 wb[32], rb[32]; in wilc_spi_single_read() local
430 memset(wb, 0x0, sizeof(wb)); in wilc_spi_single_read()
432 c = (struct wilc_spi_cmd *)wb; in wilc_spi_single_read()
453 c->u.simple_cmd.crc[0] = wilc_get_crc7(wb, cmd_len); in wilc_spi_single_read()
458 if (cmd_len + resp_len > ARRAY_SIZE(wb)) { in wilc_spi_single_read()
461 cmd_len, resp_len, ARRAY_SIZE(wb)); in wilc_spi_single_read()
465 if (wilc_spi_tx_rx(wilc, wb, rb, cmd_len + resp_len)) { in wilc_spi_single_read()
518 u8 wb[32], rb[32]; in wilc_spi_write_cmd() local
523 memset(wb, 0x0, sizeof(wb)); in wilc_spi_write_cmd()
525 c = (struct wilc_spi_cmd *)wb; in wilc_spi_write_cmd()
536 c->u.internal_w_cmd.crc[0] = wilc_get_crc7(wb, cmd_len); in wilc_spi_write_cmd()
544 c->u.w_cmd.crc[0] = wilc_get_crc7(wb, cmd_len); in wilc_spi_write_cmd()
555 if (cmd_len + resp_len > ARRAY_SIZE(wb)) { in wilc_spi_write_cmd()
558 cmd_len, resp_len, ARRAY_SIZE(wb)); in wilc_spi_write_cmd()
562 if (wilc_spi_tx_rx(wilc, wb, rb, cmd_len + resp_len)) { in wilc_spi_write_cmd()
589 u8 wb[32], rb[32]; in wilc_spi_dma_rw() local
596 memset(wb, 0x0, sizeof(wb)); in wilc_spi_dma_rw()
598 c = (struct wilc_spi_cmd *)wb; in wilc_spi_dma_rw()
608 c->u.dma_cmd.crc[0] = wilc_get_crc7(wb, cmd_len); in wilc_spi_dma_rw()
618 c->u.dma_cmd_ext.crc[0] = wilc_get_crc7(wb, cmd_len); in wilc_spi_dma_rw()
629 if (cmd_len + resp_len > ARRAY_SIZE(wb)) { in wilc_spi_dma_rw()
631 cmd_len, resp_len, ARRAY_SIZE(wb)); in wilc_spi_dma_rw()
635 if (wilc_spi_tx_rx(wilc, wb, rb, cmd_len + resp_len)) { in wilc_spi_dma_rw()