Lines Matching refs:tx_buf
30 struct spi_buf tx_buf[3]; in lan9250_write_sys_reg() local
31 const struct spi_buf_set tx = {.buffers = tx_buf, .count = 3}; in lan9250_write_sys_reg()
36 tx_buf[0].buf = &cmd; in lan9250_write_sys_reg()
37 tx_buf[0].len = ARRAY_SIZE(cmd); in lan9250_write_sys_reg()
38 tx_buf[1].buf = addr; in lan9250_write_sys_reg()
39 tx_buf[1].len = ARRAY_SIZE(addr); in lan9250_write_sys_reg()
40 tx_buf[2].buf = instr; in lan9250_write_sys_reg()
41 tx_buf[2].len = ARRAY_SIZE(instr); in lan9250_write_sys_reg()
51 struct spi_buf tx_buf[3]; in lan9250_read_sys_reg() local
53 const struct spi_buf_set tx = {.buffers = tx_buf, .count = 3}; in lan9250_read_sys_reg()
58 tx_buf[0].buf = &cmd; in lan9250_read_sys_reg()
59 tx_buf[0].len = ARRAY_SIZE(cmd); in lan9250_read_sys_reg()
60 tx_buf[1].buf = addr; in lan9250_read_sys_reg()
61 tx_buf[1].len = ARRAY_SIZE(addr); in lan9250_read_sys_reg()
62 tx_buf[2].buf = NULL; in lan9250_read_sys_reg()
63 tx_buf[2].len = sizeof(uint32_t); in lan9250_read_sys_reg()
411 struct spi_buf tx_buf[3]; in lan9250_write_buf() local
412 const struct spi_buf_set tx = {.buffers = tx_buf, .count = 3}; in lan9250_write_buf()
414 tx_buf[0].buf = &cmd; in lan9250_write_buf()
415 tx_buf[0].len = ARRAY_SIZE(cmd); in lan9250_write_buf()
416 tx_buf[1].buf = &instr; in lan9250_write_buf()
417 tx_buf[1].len = ARRAY_SIZE(instr); in lan9250_write_buf()
418 tx_buf[2].buf = data_buffer; in lan9250_write_buf()
419 tx_buf[2].len = buf_len; in lan9250_write_buf()
429 struct spi_buf tx_buf[3]; in lan9250_read_buf() local
431 const struct spi_buf_set tx = {.buffers = tx_buf, .count = 3}; in lan9250_read_buf()
434 tx_buf[0].buf = &cmd; in lan9250_read_buf()
435 tx_buf[0].len = ARRAY_SIZE(cmd); in lan9250_read_buf()
436 tx_buf[1].buf = &instr; in lan9250_read_buf()
437 tx_buf[1].len = ARRAY_SIZE(instr); in lan9250_read_buf()
438 tx_buf[2].buf = NULL; in lan9250_read_buf()
439 tx_buf[2].len = buf_len; in lan9250_read_buf()