Lines Matching defs:txbuf

100 	u8 txbuf[64];
175 memset(mcp->txbuf, 0, 8);
176 mcp->txbuf[0] = MCP2221_I2C_PARAM_OR_STATUS;
178 return mcp_send_data_req_status(mcp, mcp->txbuf, 8);
184 memset(mcp->txbuf, 0, 8);
185 mcp->txbuf[0] = MCP2221_I2C_PARAM_OR_STATUS;
186 mcp->txbuf[2] = MCP2221_I2C_CANCEL;
188 return mcp_send_data_req_status(mcp, mcp->txbuf, 8);
214 memset(mcp->txbuf, 0, 8);
215 mcp->txbuf[0] = MCP2221_I2C_PARAM_OR_STATUS;
216 mcp->txbuf[3] = MCP2221_I2C_SET_SPEED;
217 mcp->txbuf[4] = mcp->cur_i2c_clk_div;
219 ret = mcp_send_data_req_status(mcp, mcp->txbuf, 8);
250 mcp->txbuf[0] = type;
251 mcp->txbuf[1] = msg->len & 0xff;
252 mcp->txbuf[2] = msg->len >> 8;
253 mcp->txbuf[3] = (u8)(msg->addr << 1);
255 memcpy(&mcp->txbuf[4], &msg->buf[idx], len);
257 ret = mcp_send_data_req_status(mcp, mcp->txbuf, len + 4);
303 mcp->txbuf[0] = type;
305 mcp->txbuf[1] = msg->len & 0xff;
306 mcp->txbuf[2] = msg->len >> 8;
307 mcp->txbuf[3] = (u8)(msg->addr << 1);
311 mcp->txbuf[1] = smbus_len;
312 mcp->txbuf[2] = 0;
313 mcp->txbuf[3] = (u8)(smbus_addr << 1);
318 ret = mcp_send_data_req_status(mcp, mcp->txbuf, 4);
328 memset(mcp->txbuf, 0, 4);
329 mcp->txbuf[0] = MCP2221_I2C_GET_DATA;
331 ret = mcp_send_data_req_status(mcp, mcp->txbuf, 1);
413 mcp->txbuf[0] = type;
414 mcp->txbuf[1] = len + 1; /* 1 is due to command byte itself */
415 mcp->txbuf[2] = 0;
416 mcp->txbuf[3] = (u8)(addr << 1);
417 mcp->txbuf[4] = command;
424 mcp->txbuf[5] = buf[0];
428 mcp->txbuf[5] = buf[0];
429 mcp->txbuf[6] = buf[1];
436 memcpy(&mcp->txbuf[5], buf, len);
440 ret = mcp_send_data_req_status(mcp, mcp->txbuf, data_len);
523 mcp->txbuf[0] = MCP2221_I2C_GET_DATA;
524 ret = mcp_send_data_req_status(mcp, mcp->txbuf, 1);
546 mcp->txbuf[0] = MCP2221_I2C_GET_DATA;
547 ret = mcp_send_data_req_status(mcp, mcp->txbuf, 1);
616 mcp->txbuf[0] = MCP2221_GPIO_GET;
621 ret = mcp_send_data_req_status(mcp, mcp->txbuf, 1);
632 memset(mcp->txbuf, 0, 18);
633 mcp->txbuf[0] = MCP2221_GPIO_SET;
637 mcp->txbuf[mcp->gp_idx - 1] = 1;
638 mcp->txbuf[mcp->gp_idx] = !!value;
641 mcp_send_data_req_status(mcp, mcp->txbuf, 18);
648 memset(mcp->txbuf, 0, 18);
649 mcp->txbuf[0] = MCP2221_GPIO_SET;
653 mcp->txbuf[mcp->gp_idx - 1] = 1;
654 mcp->txbuf[mcp->gp_idx] = val;
656 return mcp_send_data_req_status(mcp, mcp->txbuf, 18);
697 mcp->txbuf[0] = MCP2221_GPIO_GET;
702 ret = mcp_send_data_req_status(mcp, mcp->txbuf, 1);
779 if ((mcp->txbuf[3] == MCP2221_I2C_SET_SPEED) &&
896 if (mcp->txbuf[1] != 0) {
1008 memset(mcp->txbuf, 0, 12);
1009 mcp->txbuf[0] = MCP2221_SET_SRAM_SETTINGS;
1010 mcp->txbuf[4] = BIT(7) | val;
1012 ret = mcp_send_data_req_status(mcp, mcp->txbuf, 12);
1074 mcp->txbuf[0] = MCP2221_GET_SRAM_SETTINGS;
1075 ret = mcp_send_data_req_status(mcp, mcp->txbuf, 1);
1084 mcp->txbuf[0] = MCP2221_READ_FLASH_DATA;
1085 mcp->txbuf[1] = 0;
1086 ret = mcp_send_data_req_status(mcp, mcp->txbuf, 2);