Lines Matching refs:blocked
308 * @blocked: the new software state
313 static void rfkill_set_block(struct rfkill *rfkill, bool blocked)
338 if (blocked)
346 err = rfkill->ops->set_block(rfkill->data, blocked);
383 static void rfkill_update_global_state(enum rfkill_type type, bool blocked)
388 rfkill_global_states[type].cur = blocked;
393 rfkill_global_states[i].cur = blocked;
402 * @blocked: the new state
409 static void __rfkill_switch_all(const enum rfkill_type type, bool blocked)
413 rfkill_update_global_state(type, blocked);
418 rfkill_set_block(rfkill, blocked);
425 * @blocked: the new state
432 void rfkill_switch_all(enum rfkill_type type, bool blocked)
440 __rfkill_switch_all(type, blocked);
542 bool blocked, unsigned long reason)
552 return blocked;
556 if (blocked) {
570 if (rfkill->registered && prev != blocked)
577 static void __rfkill_set_sw_state(struct rfkill *rfkill, bool blocked)
585 if (blocked)
591 bool rfkill_set_sw_state(struct rfkill *rfkill, bool blocked)
600 __rfkill_set_sw_state(rfkill, blocked);
602 blocked = blocked || hwblock;
606 return blocked;
608 if (prev != blocked && !hwblock)
614 return blocked;
618 void rfkill_init_sw_state(struct rfkill *rfkill, bool blocked)
626 __rfkill_set_sw_state(rfkill, blocked);