• Home
  • Raw
  • Download

Lines Matching refs:resp

615 	struct ec_response_lightbar resp;  in cmd_ec_lightbar()  local
621 r = lb_do_cmd(LIGHTBAR_CMD_DUMP, &param, &resp); in cmd_ec_lightbar()
624 for (i = 0; i < ARRAY_SIZE(resp.dump.vals); i++) { in cmd_ec_lightbar()
626 resp.dump.vals[i].reg, in cmd_ec_lightbar()
627 resp.dump.vals[i].ic0, in cmd_ec_lightbar()
628 resp.dump.vals[i].ic1); in cmd_ec_lightbar()
634 return lb_do_cmd(LIGHTBAR_CMD_INIT, &param, &resp); in cmd_ec_lightbar()
637 return lb_do_cmd(LIGHTBAR_CMD_OFF, &param, &resp); in cmd_ec_lightbar()
640 return lb_do_cmd(LIGHTBAR_CMD_ON, &param, &resp); in cmd_ec_lightbar()
643 r = lb_do_cmd(LIGHTBAR_CMD_VERSION, &param, &resp); in cmd_ec_lightbar()
646 resp.version.num, resp.version.flags); in cmd_ec_lightbar()
657 &param, &resp); in cmd_ec_lightbar()
660 &param, &resp); in cmd_ec_lightbar()
663 printf("%02x\n", resp.get_brightness.num); in cmd_ec_lightbar()
679 return lb_do_cmd(LIGHTBAR_CMD_DEMO, &param, &resp); in cmd_ec_lightbar()
682 rv = lb_do_cmd(LIGHTBAR_CMD_GET_DEMO, &param, &resp); in cmd_ec_lightbar()
685 printf("%s\n", resp.get_demo.num ? "on" : "off"); in cmd_ec_lightbar()
708 return lb_do_cmd(LIGHTBAR_CMD_SEQ, &param, &resp); in cmd_ec_lightbar()
716 return lb_do_cmd(LIGHTBAR_CMD_REG, &param, &resp); in cmd_ec_lightbar()
725 return lb_do_cmd(LIGHTBAR_CMD_SET_RGB, &param, &resp); in cmd_ec_lightbar()
733 r = lb_do_cmd(LIGHTBAR_CMD_GET_RGB, &param, &resp); in cmd_ec_lightbar()
737 resp.get_rgb.red, in cmd_ec_lightbar()
738 resp.get_rgb.green, in cmd_ec_lightbar()
739 resp.get_rgb.blue); in cmd_ec_lightbar()