/src/usr.sbin/umcpmioctl/ |
umcpmioctl.c | 149 struct mcp2221_get_gpio_cfg_res get_gpio_cfg_res; local in function:main 169 error = ioctl(fd, UMCPMIO_GET_GP_CFG, &get_gpio_cfg_res); 284 buf = (uint8_t *)&get_gpio_cfg_res; 304 print_gpio_cfg(&get_gpio_cfg_res);
|
/src/sys/dev/usb/ |
umcpmio_subr.c | 711 struct mcp2221_get_gpio_cfg_res get_gpio_cfg_res; local in function:umcpmio_get_gpio_value 715 err = umcpmio_get_gpio_cfg(sc, &get_gpio_cfg_res, takemutex); 719 if (get_gpio_cfg_res.cmd != MCP2221_CMD_GET_GPIO_CFG || 720 get_gpio_cfg_res.completion != MCP2221_CMD_COMPLETE_OK) { 723 get_gpio_cfg_res.cmd, 724 get_gpio_cfg_res.completion); 730 if (get_gpio_cfg_res.gp0_pin_value != 732 if (get_gpio_cfg_res.gp0_pin_value == 0x01) 736 if (get_gpio_cfg_res.gp1_pin_value != 738 if (get_gpio_cfg_res.gp1_pin_value == 0x01 [all...] |
umcpmio.c | 1351 struct mcp2221_get_gpio_cfg_res get_gpio_cfg_res; local in function:umcpmio_dev_ioctl 1418 error = umcpmio_get_gpio_cfg(sc, &get_gpio_cfg_res, false); 1420 (uint8_t *)&get_gpio_cfg_res, MCP2221_RES_BUFFER_SIZE, 1421 "umcpmio_dev_ioctl: UMCPMIO_GET_GP_CFG: get_gpio_cfg_res"); 1426 memcpy(ioctl_get_gpio_cfg, &get_gpio_cfg_res,
|