Lines Matching refs:tx_buf
97 u16 tx_buf = JBT_COMMAND | reg; in jbt_ret_write_0() local
103 ret = spi_write(spi, (u8 *)&tx_buf, sizeof(tx_buf)); in jbt_ret_write_0()
118 u16 tx_buf[2]; in jbt_reg_write_1() local
124 tx_buf[0] = JBT_COMMAND | reg; in jbt_reg_write_1()
125 tx_buf[1] = JBT_DATA | data; in jbt_reg_write_1()
127 ret = spi_write(spi, (u8 *)tx_buf, sizeof(tx_buf)); in jbt_reg_write_1()
142 u16 tx_buf[3]; in jbt_reg_write_2() local
148 tx_buf[0] = JBT_COMMAND | reg; in jbt_reg_write_2()
149 tx_buf[1] = JBT_DATA | (data >> 8); in jbt_reg_write_2()
150 tx_buf[2] = JBT_DATA | (data & 0xff); in jbt_reg_write_2()
152 ret = spi_write(spi, (u8 *)tx_buf, sizeof(tx_buf)); in jbt_reg_write_2()