Lines Matching defs:params
173 uint8_t params[HIDPP_REPORT_LONG_PARAMS_MAX];
183 uint8_t params[HIDPP_REPORT_LONG_PARAMS_MAX];
825 rep->fap.params[0] == sc->sc_req->fap.funcidx_swid)
842 uint8_t params[3] = { 0, 0, HIDPP_PING_DATA };
850 params, sizeof(params), &resp);
858 if (resp.rap.params[2] != HIDPP_PING_DATA)
861 *major = resp.fap.params[0];
862 *minor = resp.fap.params[1];
876 uint8_t params[2] = { 0x60 + device_id, 0x01 };
883 params, sizeof(params), &resp);
886 len = resp.rap.params[2];
887 name = &resp.rap.params[3];
889 uint8_t params[1] = { 0x40 + (device_id - 1) };
896 params, sizeof(params), &resp);
899 len = resp.rap.params[1];
900 name = &resp.rap.params[2];
918 uint8_t params[1] = { 0x50 + device_id };
925 params, sizeof(params), &resp);
928 type = resp.rap.params[1] & 0xf;
930 uint8_t params[1] = { 0x20 + (device_id - 1) };
937 params, sizeof(params), &resp);
940 type = resp.rap.params[7];
973 uint8_t params[3];
976 params[0] = HIDPP_ENABLE_REPORTS_DEVICE_BATTERY_STATUS;
978 params[1] = HIDPP_ENABLE_REPORTS_RECEIVER_WIRELESS |
981 params[2] = 0;
988 params, sizeof(params), &resp);
996 uint8_t params[2] = { feature >> 8, feature & 0xff };
1004 params, sizeof(params), &resp);
1008 if (resp.fap.params[0] == 0)
1011 *feature_idx = resp.fap.params[0];
1012 *feature_type = resp.fap.params[1];
1032 *count = resp.fap.params[0];
1041 uint8_t params[1] = { idx };
1049 params, sizeof(params), &resp);
1053 *id = bemtoh16(resp.fap.params);
1054 *type = resp.fap.params[2];
1075 level = resp.fap.params[0];
1076 /* next_level = resp.fap.params[1]; */
1077 status = resp.fap.params[2];
1116 * level must be checked against resp.fap.params[3]
1143 dev->d_battery.nlevels = resp.fap.params[0];
1144 dev->d_battery.rechargeable = resp.fap.params[1] &
1164 dev->d_battery.nlevels = nlevels(resp.fap.params[0]);
1165 dev->d_battery.unified_level_mask = resp.fap.params[0];
1166 dev->d_battery.rechargeable = resp.fap.params[1] &
1187 percentage = resp.fap.params[0];
1188 level = resp.fap.params[1] & dev->d_battery.unified_level_mask;
1189 status = resp.fap.params[2];
1190 /* external_power_status = resp.fap.params[3]; */
1263 uint8_t *params, int nparams, struct uhidpp_report *resp)
1279 memcpy(req.fap.params, params, nparams);
1286 uint8_t *params, int nparams, struct uhidpp_report *resp)
1299 memcpy(req.rap.params, params, nparams);
1358 error = resp->rap.params[1];
1361 error = resp->fap.params[1];