Lines Matching defs:tx
64 u8 tx[2], rx[1];
67 tx[0] = mcp->addr | 0x01;
68 tx[1] = reg;
69 status = spi_write_then_read(mcp->spi, tx, sizeof tx, rx, sizeof rx);
75 u8 tx[3];
77 tx[0] = mcp->addr;
78 tx[1] = reg;
79 tx[2] = val;
80 return spi_write_then_read(mcp->spi, tx, sizeof tx, NULL, 0);
86 u8 tx[2];
90 tx[0] = mcp->addr | 0x01;
91 tx[1] = reg;
92 return spi_write_then_read(mcp->spi, tx, sizeof tx, vals, n);
284 u8 tx[4];
286 tx[0] = mcp->addr;
287 tx[1] = MCP_IPOL;
288 memcpy(&tx[2], &mcp->cache[MCP_IPOL], sizeof(tx) - 2);
289 status = spi_write_then_read(mcp->spi, tx, sizeof tx, NULL, 0);