Lines Matching defs:gp_idx
98 u8 gp_idx;
578 mcp->gp_idx = offsetof(struct mcp_get_gpio, gpio[offset].value);
595 mcp->gp_idx = offsetof(struct mcp_set_gpio, gpio[offset].value);
597 mcp->txbuf[mcp->gp_idx - 1] = 1;
598 mcp->txbuf[mcp->gp_idx] = !!value;
611 mcp->gp_idx = offsetof(struct mcp_set_gpio, gpio[offset].direction);
613 mcp->txbuf[mcp->gp_idx - 1] = 1;
614 mcp->txbuf[mcp->gp_idx] = val;
659 mcp->gp_idx = offsetof(struct mcp_get_gpio, gpio[offset].direction);
789 if ((data[mcp->gp_idx] == MCP2221_ALT_F_NOT_GPIOV) ||
790 (data[mcp->gp_idx + 1] == MCP2221_ALT_F_NOT_GPIOD)) {
793 mcp->status = !!data[mcp->gp_idx];
794 mcp->gpio_dir = data[mcp->gp_idx + 1];
806 if ((data[mcp->gp_idx] == MCP2221_ALT_F_NOT_GPIOV) ||
807 (data[mcp->gp_idx - 1] == MCP2221_ALT_F_NOT_GPIOV)) {