Home
last modified time | relevance | path

Searched refs:gp_idx (Results 1 – 1 of 1) sorted by relevance

/Linux-v6.6/drivers/hid/
Dhid-mcp2221.c104 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()
[all …]