Lines Matching +full:default +full:- +full:blocked

2  * Copyright (C) 2006 - 2007 Ivo van Doorn
44 * struct rfkill_ops - rfkill driver methods
46 * @poll: poll the rfkill block state(s) -- only assign this method
57 * @set_block: turn the transmitter on (blocked == false) or off
58 * (blocked == true) -- ignore and return 0 when hard blocked.
64 int (*set_block)(void *data, bool blocked);
69 * rfkill_alloc - Allocate rfkill structure
70 * @name: name of the struct -- the string is not copied internally
86 * rfkill_register - Register a rfkill structure.
94 * set_block() will be called to initialize the software blocked state
95 * to a default value.
97 * If the hardware blocked state is not set before registration,
105 * Pause polling -- say transmitter is off for other reasons.
106 * NOTE: not necessary for suspend/resume -- in that case the
116 * NOTE: not necessary for suspend/resume -- in that case the
123 * rfkill_unregister - Unregister a rfkill structure.
133 * rfkill_destroy - Free rfkill structure
141 * rfkill_set_hw_state_reason - Set the internal rfkill hardware block state
144 * @blocked: the current hardware block state to set
150 bool blocked,
153 * rfkill_set_hw_state - Set the internal rfkill hardware block state
155 * @blocked: the current hardware block state to set
157 * rfkill drivers that get events when the hard-blocked state changes
168 * should be blocked) so that drivers need not keep track of the soft
169 * block state -- which they might not be able to.
171 static inline bool rfkill_set_hw_state(struct rfkill *rfkill, bool blocked) in rfkill_set_hw_state() argument
173 return rfkill_set_hw_state_reason(rfkill, blocked, in rfkill_set_hw_state()
178 * rfkill_set_sw_state - Set the internal rfkill software block state
180 * @blocked: the current software block state to set
182 * rfkill drivers that get events when the soft-blocked state changes
195 * should be blocked).
197 bool rfkill_set_sw_state(struct rfkill *rfkill, bool blocked);
200 * rfkill_init_sw_state - Initialize persistent software block state
202 * @blocked: the current software block state to set
213 void rfkill_init_sw_state(struct rfkill *rfkill, bool blocked);
216 * rfkill_set_states - Set the internal rfkill block states
227 * rfkill_blocked - Query rfkill block state
234 * rfkill_soft_blocked - Query soft rfkill block state
241 * rfkill_find_type - Helper for finding rfkill type by name
256 return ERR_PTR(-ENODEV); in rfkill_alloc()
261 if (rfkill == ERR_PTR(-ENODEV)) in rfkill_register()
263 return -EINVAL; in rfkill_register()
283 bool blocked, in rfkill_set_hw_state_reason() argument
286 return blocked; in rfkill_set_hw_state_reason()
289 static inline bool rfkill_set_hw_state(struct rfkill *rfkill, bool blocked) in rfkill_set_hw_state() argument
291 return blocked; in rfkill_set_hw_state()
294 static inline bool rfkill_set_sw_state(struct rfkill *rfkill, bool blocked) in rfkill_set_sw_state() argument
296 return blocked; in rfkill_set_sw_state()
299 static inline void rfkill_init_sw_state(struct rfkill *rfkill, bool blocked) in rfkill_init_sw_state() argument
327 * rfkill_get_led_trigger_name - Get the LED trigger name for the button's LED.
334 * rfkill_set_led_trigger_name - Set the LED trigger name