Lines Matching refs:rfkill
41 struct rfkill;
62 void (*poll)(struct rfkill *rfkill, void *data);
63 void (*query)(struct rfkill *rfkill, void *data);
79 struct rfkill * __must_check rfkill_alloc(const char *name,
100 int __must_check rfkill_register(struct rfkill *rfkill);
110 void rfkill_pause_polling(struct rfkill *rfkill);
119 void rfkill_resume_polling(struct rfkill *rfkill);
130 void rfkill_unregister(struct rfkill *rfkill);
138 void rfkill_destroy(struct rfkill *rfkill);
149 bool rfkill_set_hw_state_reason(struct rfkill *rfkill,
170 static inline bool rfkill_set_hw_state(struct rfkill *rfkill, bool blocked) in rfkill_set_hw_state() argument
172 return rfkill_set_hw_state_reason(rfkill, blocked, in rfkill_set_hw_state()
196 bool rfkill_set_sw_state(struct rfkill *rfkill, bool blocked);
212 void rfkill_init_sw_state(struct rfkill *rfkill, bool blocked);
223 void rfkill_set_states(struct rfkill *rfkill, bool sw, bool hw);
230 bool rfkill_blocked(struct rfkill *rfkill);
241 static inline struct rfkill * __must_check
251 static inline int __must_check rfkill_register(struct rfkill *rfkill) in rfkill_register() argument
253 if (rfkill == ERR_PTR(-ENODEV)) in rfkill_register()
258 static inline void rfkill_pause_polling(struct rfkill *rfkill) in rfkill_pause_polling() argument
262 static inline void rfkill_resume_polling(struct rfkill *rfkill) in rfkill_resume_polling() argument
266 static inline void rfkill_unregister(struct rfkill *rfkill) in rfkill_unregister() argument
270 static inline void rfkill_destroy(struct rfkill *rfkill) in rfkill_destroy() argument
274 static inline bool rfkill_set_hw_state_reason(struct rfkill *rfkill, in rfkill_set_hw_state_reason() argument
281 static inline bool rfkill_set_hw_state(struct rfkill *rfkill, bool blocked) in rfkill_set_hw_state() argument
286 static inline bool rfkill_set_sw_state(struct rfkill *rfkill, bool blocked) in rfkill_set_sw_state() argument
291 static inline void rfkill_init_sw_state(struct rfkill *rfkill, bool blocked) in rfkill_init_sw_state() argument
295 static inline void rfkill_set_states(struct rfkill *rfkill, bool sw, bool hw) in rfkill_set_states() argument
299 static inline bool rfkill_blocked(struct rfkill *rfkill) in rfkill_blocked() argument
318 const char *rfkill_get_led_trigger_name(struct rfkill *rfkill);
329 void rfkill_set_led_trigger_name(struct rfkill *rfkill, const char *name);
331 static inline const char *rfkill_get_led_trigger_name(struct rfkill *rfkill) in rfkill_get_led_trigger_name() argument
337 rfkill_set_led_trigger_name(struct rfkill *rfkill, const char *name) in rfkill_set_led_trigger_name() argument