• Home
  • Raw
  • Download

Lines Matching refs:wb

239 static int wilc_spi_tx_rx(struct wilc *wilc, u8 *wb, u8 *rb, u32 rlen)  in wilc_spi_tx_rx()  argument
248 .tx_buf = wb, in wilc_spi_tx_rx()
360 u8 wb[32], rb[32]; in wilc_spi_single_read() local
366 memset(wb, 0x0, sizeof(wb)); in wilc_spi_single_read()
368 c = (struct wilc_spi_cmd *)wb; in wilc_spi_single_read()
388 c->u.simple_cmd.crc[0] = wilc_get_crc7(wb, cmd_len); 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()
439 u8 wb[32], rb[32]; in wilc_spi_write_cmd() local
444 memset(wb, 0x0, sizeof(wb)); in wilc_spi_write_cmd()
446 c = (struct wilc_spi_cmd *)wb; in wilc_spi_write_cmd()
457 c->u.internal_w_cmd.crc[0] = wilc_get_crc7(wb, cmd_len); in wilc_spi_write_cmd()
465 c->u.w_cmd.crc[0] = wilc_get_crc7(wb, cmd_len); 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()
509 u8 wb[32], rb[32]; in wilc_spi_dma_rw() local
516 memset(wb, 0x0, sizeof(wb)); in wilc_spi_dma_rw()
518 c = (struct wilc_spi_cmd *)wb; in wilc_spi_dma_rw()
528 c->u.dma_cmd.crc[0] = wilc_get_crc7(wb, cmd_len); in wilc_spi_dma_rw()
538 c->u.dma_cmd_ext.crc[0] = wilc_get_crc7(wb, cmd_len); 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()