Lines Matching defs:gp_idx
104 u8 gp_idx;
597 mcp->gp_idx = offsetof(struct mcp_get_gpio, gpio[offset]);
614 mcp->gp_idx = offsetof(struct mcp_set_gpio, gpio[offset].value);
616 mcp->txbuf[mcp->gp_idx - 1] = 1;
617 mcp->txbuf[mcp->gp_idx] = !!value;
630 mcp->gp_idx = offsetof(struct mcp_set_gpio, gpio[offset].direction);
632 mcp->txbuf[mcp->gp_idx - 1] = 1;
633 mcp->txbuf[mcp->gp_idx] = val;
678 mcp->gp_idx = offsetof(struct mcp_get_gpio, gpio[offset]);
812 if ((data[mcp->gp_idx] == MCP2221_ALT_F_NOT_GPIOV) ||
813 (data[mcp->gp_idx + 1] == MCP2221_ALT_F_NOT_GPIOD)) {
816 mcp->status = !!data[mcp->gp_idx];
817 mcp->gpio_dir = data[mcp->gp_idx + 1];
829 if ((data[mcp->gp_idx] == MCP2221_ALT_F_NOT_GPIOV) ||
830 (data[mcp->gp_idx - 1] == MCP2221_ALT_F_NOT_GPIOV)) {