Lines Matching refs:blocked
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()
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()
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()
542 bool blocked, unsigned long reason) in rfkill_set_hw_state_reason() argument
552 return blocked; in rfkill_set_hw_state_reason()
556 if (blocked) { in rfkill_set_hw_state_reason()
570 if (rfkill->registered && prev != blocked) in rfkill_set_hw_state_reason()
577 static void __rfkill_set_sw_state(struct rfkill *rfkill, bool blocked) in __rfkill_set_sw_state() argument
585 if (blocked) in __rfkill_set_sw_state()
591 bool rfkill_set_sw_state(struct rfkill *rfkill, bool blocked) in rfkill_set_sw_state() argument
600 __rfkill_set_sw_state(rfkill, blocked); in rfkill_set_sw_state()
602 blocked = blocked || hwblock; in rfkill_set_sw_state()
606 return blocked; in rfkill_set_sw_state()
608 if (prev != blocked && !hwblock) in rfkill_set_sw_state()
614 return blocked; in rfkill_set_sw_state()
618 void rfkill_init_sw_state(struct rfkill *rfkill, bool blocked) in rfkill_init_sw_state() argument
626 __rfkill_set_sw_state(rfkill, blocked); in rfkill_init_sw_state()