Lines Matching refs:blocked
303 * @blocked: the new software state
308 static void rfkill_set_block(struct rfkill *rfkill, bool blocked)
333 if (blocked)
341 err = rfkill->ops->set_block(rfkill->data, blocked);
367 static void rfkill_update_global_state(enum rfkill_type type, bool blocked)
372 rfkill_global_states[type].cur = blocked;
377 rfkill_global_states[i].cur = blocked;
386 * @blocked: the new state
393 static void __rfkill_switch_all(const enum rfkill_type type, bool blocked)
397 rfkill_update_global_state(type, blocked);
402 rfkill_set_block(rfkill, blocked);
409 * @blocked: the new state
416 void rfkill_switch_all(enum rfkill_type type, bool blocked)
424 __rfkill_switch_all(type, blocked);
525 bool rfkill_set_hw_state(struct rfkill *rfkill, bool blocked)
534 if (blocked)
544 if (rfkill->registered && prev != blocked)
551 static void __rfkill_set_sw_state(struct rfkill *rfkill, bool blocked)
559 if (blocked)
565 bool rfkill_set_sw_state(struct rfkill *rfkill, bool blocked)
574 __rfkill_set_sw_state(rfkill, blocked);
576 blocked = blocked || hwblock;
580 return blocked;
582 if (prev != blocked && !hwblock)
588 return blocked;
592 void rfkill_init_sw_state(struct rfkill *rfkill, bool blocked)
600 __rfkill_set_sw_state(rfkill, blocked);