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