Lines Matching refs:state
290 int state = hp_wmi_read_int(HPWMI_HARDWARE_QUERY);
292 if (state < 0)
293 return state;
295 return !!(state & mask);
300 int state = 0;
301 int ret = hp_wmi_perform_query(HPWMI_FEATURE_QUERY, HPWMI_READ, &state,
302 sizeof(state), sizeof(state));
311 u8 state[128];
312 int ret = hp_wmi_perform_query(HPWMI_FEATURE2_QUERY, HPWMI_READ, &state,
313 sizeof(state), sizeof(state));
387 struct bios_rfkill2_state state;
390 err = hp_wmi_perform_query(HPWMI_WIRELESS2_QUERY, HPWMI_READ, &state,
391 sizeof(state), sizeof(state));
398 devstate = &state.device[num];
400 if (num >= state.count ||
679 /* Set initial hardware state */
795 struct bios_rfkill2_state state;
798 err = hp_wmi_perform_query(HPWMI_WIRELESS2_QUERY, HPWMI_READ, &state,
799 sizeof(state), sizeof(state));
803 if (state.count > HPWMI_MAX_RFKILL2_DEVICES) {
808 for (i = 0; i < state.count; i++) {
812 switch (state.device[i].radio_type) {
831 state.device[i].radio_type);
835 if (!state.device[i].vendor_id) {
837 i, state.count);
848 rfkill2[rfkill2_count].id = state.device[i].rfkill_id;
853 IS_SWBLOCKED(state.device[i].power));
855 IS_HWBLOCKED(state.device[i].power));
857 if (!(state.device[i].power & HPWMI_POWER_BIOS))
950 * Hardware state may have changed while suspended, so trigger
951 * input events for the current state. As this is a switch,
952 * the input layer will only actually pass it on if the state