Lines Matching refs:gp_idx
105 u8 gp_idx;
618 mcp->gp_idx = offsetof(struct mcp_get_gpio, gpio[offset]);
635 mcp->gp_idx = offsetof(struct mcp_set_gpio, gpio[offset].value);
637 mcp->txbuf[mcp->gp_idx - 1] = 1;
638 mcp->txbuf[mcp->gp_idx] = !!value;
651 mcp->gp_idx = offsetof(struct mcp_set_gpio, gpio[offset].direction);
653 mcp->txbuf[mcp->gp_idx - 1] = 1;
654 mcp->txbuf[mcp->gp_idx] = val;
699 mcp->gp_idx = offsetof(struct mcp_get_gpio, gpio[offset]);
834 if ((data[mcp->gp_idx] == MCP2221_ALT_F_NOT_GPIOV) ||
835 (data[mcp->gp_idx + 1] == MCP2221_ALT_F_NOT_GPIOD)) {
838 mcp->status = !!data[mcp->gp_idx];
839 mcp->gpio_dir = data[mcp->gp_idx + 1];
851 if ((data[mcp->gp_idx] == MCP2221_ALT_F_NOT_GPIOV) ||
852 (data[mcp->gp_idx - 1] == MCP2221_ALT_F_NOT_GPIOV)) {