Lines Matching refs:tp_rfk
1156 static int tpacpi_rfk_update_swstate(const struct tpacpi_rfk *tp_rfk) in tpacpi_rfk_update_swstate() argument
1160 if (!tp_rfk) in tpacpi_rfk_update_swstate()
1163 status = (tp_rfk->ops->get_status)(); in tpacpi_rfk_update_swstate()
1167 rfkill_set_sw_state(tp_rfk->rfkill, in tpacpi_rfk_update_swstate()
1189 struct tpacpi_rfk *tp_rfk; in tpacpi_rfk_update_hwblock_state() local
1192 tp_rfk = tpacpi_rfkill_switches[i]; in tpacpi_rfk_update_hwblock_state()
1193 if (tp_rfk) { in tpacpi_rfk_update_hwblock_state()
1194 if (rfkill_set_hw_state(tp_rfk->rfkill, in tpacpi_rfk_update_hwblock_state()
1223 struct tpacpi_rfk *tp_rfk = data; in tpacpi_rfk_hook_set_block() local
1231 res = (tp_rfk->ops->set_status)(blocked ? in tpacpi_rfk_hook_set_block()
1235 tpacpi_rfk_update_swstate(tp_rfk); in tpacpi_rfk_hook_set_block()
1306 struct tpacpi_rfk *tp_rfk; in tpacpi_destroy_rfkill() local
1310 tp_rfk = tpacpi_rfkill_switches[id]; in tpacpi_destroy_rfkill()
1311 if (tp_rfk) { in tpacpi_destroy_rfkill()
1312 rfkill_unregister(tp_rfk->rfkill); in tpacpi_destroy_rfkill()
1313 rfkill_destroy(tp_rfk->rfkill); in tpacpi_destroy_rfkill()
1315 kfree(tp_rfk); in tpacpi_destroy_rfkill()