Lines Matching defs:blocked
322 * @blocked: the new software state
327 static void rfkill_set_block(struct rfkill *rfkill, bool blocked)
352 if (blocked)
360 err = rfkill->ops->set_block(rfkill->data, blocked);
397 static void rfkill_update_global_state(enum rfkill_type type, bool blocked)
402 rfkill_global_states[type].cur = blocked;
407 rfkill_global_states[i].cur = blocked;
416 * @blocked: the new state
423 static void __rfkill_switch_all(const enum rfkill_type type, bool blocked)
427 rfkill_update_global_state(type, blocked);
432 rfkill_set_block(rfkill, blocked);
439 * @blocked: the new state
446 void rfkill_switch_all(enum rfkill_type type, bool blocked)
454 __rfkill_switch_all(type, blocked);
556 bool blocked,
566 if (blocked) {
580 if (rfkill->registered && prev != blocked)
587 static void __rfkill_set_sw_state(struct rfkill *rfkill, bool blocked)
595 if (blocked)
601 bool rfkill_set_sw_state(struct rfkill *rfkill, bool blocked)
610 __rfkill_set_sw_state(rfkill, blocked);
612 blocked = blocked || hwblock;
616 return blocked;
618 if (prev != blocked && !hwblock)
624 return blocked;
628 void rfkill_init_sw_state(struct rfkill *rfkill, bool blocked)
636 __rfkill_set_sw_state(rfkill, blocked);