Lines Matching full:blocked

308  * @blocked: the new software state
313 static void rfkill_set_block(struct rfkill *rfkill, bool blocked) in rfkill_set_block() argument
338 if (blocked) in rfkill_set_block()
346 err = rfkill->ops->set_block(rfkill->data, blocked); in rfkill_set_block()
383 static void rfkill_update_global_state(enum rfkill_type type, bool blocked) in rfkill_update_global_state() argument
388 rfkill_global_states[type].cur = blocked; in rfkill_update_global_state()
393 rfkill_global_states[i].cur = blocked; in rfkill_update_global_state()
402 * @blocked: the new state
409 static void __rfkill_switch_all(const enum rfkill_type type, bool blocked) in __rfkill_switch_all() argument
413 rfkill_update_global_state(type, blocked); in __rfkill_switch_all()
418 rfkill_set_block(rfkill, blocked); in __rfkill_switch_all()
425 * @blocked: the new state
432 void rfkill_switch_all(enum rfkill_type type, bool blocked) in rfkill_switch_all() argument
440 __rfkill_switch_all(type, blocked); in rfkill_switch_all()
519 * locks all radios in one of the BLOCKED states.
542 bool blocked, in rfkill_set_hw_state_reason() argument
552 if (blocked) { in rfkill_set_hw_state_reason()
566 if (rfkill->registered && prev != blocked) in rfkill_set_hw_state_reason()
573 static void __rfkill_set_sw_state(struct rfkill *rfkill, bool blocked) in __rfkill_set_sw_state() argument
581 if (blocked) in __rfkill_set_sw_state()
587 bool rfkill_set_sw_state(struct rfkill *rfkill, bool blocked) in rfkill_set_sw_state() argument
596 __rfkill_set_sw_state(rfkill, blocked); in rfkill_set_sw_state()
598 blocked = blocked || hwblock; in rfkill_set_sw_state()
602 return blocked; in rfkill_set_sw_state()
604 if (prev != blocked && !hwblock) in rfkill_set_sw_state()
610 return blocked; in rfkill_set_sw_state()
614 void rfkill_init_sw_state(struct rfkill *rfkill, bool blocked) in rfkill_init_sw_state() argument
622 __rfkill_set_sw_state(rfkill, blocked); in rfkill_init_sw_state()