Lines Matching refs:resp
615 struct ec_response_lightbar resp; in cmd_ec_lightbar() local
621 r = lb_do_cmd(LIGHTBAR_CMD_DUMP, ¶m, &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, ¶m, &resp); in cmd_ec_lightbar()
637 return lb_do_cmd(LIGHTBAR_CMD_OFF, ¶m, &resp); in cmd_ec_lightbar()
640 return lb_do_cmd(LIGHTBAR_CMD_ON, ¶m, &resp); in cmd_ec_lightbar()
643 r = lb_do_cmd(LIGHTBAR_CMD_VERSION, ¶m, &resp); in cmd_ec_lightbar()
646 resp.version.num, resp.version.flags); in cmd_ec_lightbar()
657 ¶m, &resp); in cmd_ec_lightbar()
660 ¶m, &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, ¶m, &resp); in cmd_ec_lightbar()
682 rv = lb_do_cmd(LIGHTBAR_CMD_GET_DEMO, ¶m, &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, ¶m, &resp); in cmd_ec_lightbar()
716 return lb_do_cmd(LIGHTBAR_CMD_REG, ¶m, &resp); in cmd_ec_lightbar()
725 return lb_do_cmd(LIGHTBAR_CMD_SET_RGB, ¶m, &resp); in cmd_ec_lightbar()
733 r = lb_do_cmd(LIGHTBAR_CMD_GET_RGB, ¶m, &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()