Lines Matching full:blocked
315 * @blocked: the new software state
320 static void rfkill_set_block(struct rfkill *rfkill, bool blocked) in rfkill_set_block() argument
345 if (blocked) in rfkill_set_block()
353 err = rfkill->ops->set_block(rfkill->data, blocked); in rfkill_set_block()
379 static void rfkill_update_global_state(enum rfkill_type type, bool blocked) in rfkill_update_global_state() argument
384 rfkill_global_states[type].cur = blocked; in rfkill_update_global_state()
389 rfkill_global_states[i].cur = blocked; in rfkill_update_global_state()
398 * @blocked: the new state
405 static void __rfkill_switch_all(const enum rfkill_type type, bool blocked) in __rfkill_switch_all() argument
409 rfkill_update_global_state(type, blocked); in __rfkill_switch_all()
414 rfkill_set_block(rfkill, blocked); in __rfkill_switch_all()
421 * @blocked: the new state
428 void rfkill_switch_all(enum rfkill_type type, bool blocked) in rfkill_switch_all() argument
436 __rfkill_switch_all(type, blocked); in rfkill_switch_all()
515 * locks all radios in one of the BLOCKED states.
537 bool rfkill_set_hw_state(struct rfkill *rfkill, bool blocked) in rfkill_set_hw_state() argument
546 if (blocked) in rfkill_set_hw_state()
556 if (rfkill->registered && prev != blocked) in rfkill_set_hw_state()
563 static void __rfkill_set_sw_state(struct rfkill *rfkill, bool blocked) in __rfkill_set_sw_state() argument
571 if (blocked) in __rfkill_set_sw_state()
577 bool rfkill_set_sw_state(struct rfkill *rfkill, bool blocked) in rfkill_set_sw_state() argument
586 __rfkill_set_sw_state(rfkill, blocked); in rfkill_set_sw_state()
588 blocked = blocked || hwblock; in rfkill_set_sw_state()
592 return blocked; in rfkill_set_sw_state()
594 if (prev != blocked && !hwblock) in rfkill_set_sw_state()
600 return blocked; in rfkill_set_sw_state()
604 void rfkill_init_sw_state(struct rfkill *rfkill, bool blocked) in rfkill_init_sw_state() argument
612 __rfkill_set_sw_state(rfkill, blocked); in rfkill_init_sw_state()