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