rfkill 112 include/linux/rfkill.h #define to_rfkill(d) container_of(d, struct rfkill, dev) rfkill 114 include/linux/rfkill.h struct rfkill * __must_check rfkill_allocate(struct device *parent, rfkill 145 include/linux/rfkill.h return (char *)(rfkill->led_trigger.name); rfkill 105 net/rfkill/rfkill.c struct led_trigger *led = &rfkill->led_trigger; rfkill 119 net/rfkill/rfkill.c struct rfkill *rfkill = container_of(led->trigger, rfkill 120 net/rfkill/rfkill.c struct rfkill, led_trigger); rfkill 122 net/rfkill/rfkill.c rfkill_led_trigger(rfkill, rfkill->state); rfkill 128 net/rfkill/rfkill.c rfkill_led_trigger(rfkill, rfkill->state); rfkill 131 net/rfkill/rfkill.c rfkill); rfkill 138 net/rfkill/rfkill.c if (rfkill->get_state) { rfkill 139 net/rfkill/rfkill.c mutex_lock(&rfkill->mutex); rfkill 140 net/rfkill/rfkill.c if (!rfkill->get_state(rfkill->data, &newstate)) { rfkill 141 net/rfkill/rfkill.c oldstate = rfkill->state; rfkill 142 net/rfkill/rfkill.c rfkill->state = newstate; rfkill 144 net/rfkill/rfkill.c notify_rfkill_state_change(rfkill); rfkill 146 net/rfkill/rfkill.c mutex_unlock(&rfkill->mutex); rfkill 182 net/rfkill/rfkill.c if (unlikely(rfkill->dev.power.power_state.event & PM_EVENT_SLEEP)) rfkill 185 net/rfkill/rfkill.c oldstate = rfkill->state; rfkill 187 net/rfkill/rfkill.c if (rfkill->get_state && !force && rfkill 188 net/rfkill/rfkill.c !rfkill->get_state(rfkill->data, &newstate)) rfkill 189 net/rfkill/rfkill.c rfkill->state = newstate; rfkill 199 net/rfkill/rfkill.c if (rfkill->state == RFKILL_STATE_HARD_BLOCKED) rfkill 214 net/rfkill/rfkill.c if (force || state != rfkill->state) { rfkill 215 net/rfkill/rfkill.c retval = rfkill->toggle_radio(rfkill->data, state); rfkill 217 net/rfkill/rfkill.c if (!retval && rfkill->state != RFKILL_STATE_HARD_BLOCKED) rfkill 218 net/rfkill/rfkill.c rfkill->state = state; rfkill 221 net/rfkill/rfkill.c if (force || rfkill->state != oldstate) rfkill 222 net/rfkill/rfkill.c notify_rfkill_state_change(rfkill); rfkill 241 net/rfkill/rfkill.c struct rfkill *rfkill; rfkill 251 net/rfkill/rfkill.c list_for_each_entry(rfkill, &rfkill_list, node) { rfkill 252 net/rfkill/rfkill.c if ((!rfkill->user_claim) && (rfkill->type == type)) { rfkill 253 net/rfkill/rfkill.c mutex_lock(&rfkill->mutex); rfkill 254 net/rfkill/rfkill.c rfkill_toggle_radio(rfkill, state, 0); rfkill 255 net/rfkill/rfkill.c mutex_unlock(&rfkill->mutex); rfkill 287 net/rfkill/rfkill.c struct rfkill *rfkill; rfkill 292 net/rfkill/rfkill.c list_for_each_entry(rfkill, &rfkill_list, node) { rfkill 293 net/rfkill/rfkill.c mutex_lock(&rfkill->mutex); rfkill 294 net/rfkill/rfkill.c rfkill_toggle_radio(rfkill, RFKILL_STATE_SOFT_BLOCKED, 1); rfkill 295 net/rfkill/rfkill.c mutex_unlock(&rfkill->mutex); rfkill 347 net/rfkill/rfkill.c BUG_ON(!rfkill); rfkill 354 net/rfkill/rfkill.c mutex_lock(&rfkill->mutex); rfkill 356 net/rfkill/rfkill.c oldstate = rfkill->state; rfkill 357 net/rfkill/rfkill.c rfkill->state = state; rfkill 360 net/rfkill/rfkill.c notify_rfkill_state_change(rfkill); rfkill 362 net/rfkill/rfkill.c mutex_unlock(&rfkill->mutex); rfkill 372 net/rfkill/rfkill.c struct rfkill *rfkill = to_rfkill(dev); rfkill 374 net/rfkill/rfkill.c return sprintf(buf, "%s\n", rfkill->name); rfkill 399 net/rfkill/rfkill.c struct rfkill *rfkill = to_rfkill(dev); rfkill 401 net/rfkill/rfkill.c return sprintf(buf, "%s\n", rfkill_get_type_str(rfkill->type)); rfkill 408 net/rfkill/rfkill.c struct rfkill *rfkill = to_rfkill(dev); rfkill 410 net/rfkill/rfkill.c update_rfkill_state(rfkill); rfkill 411 net/rfkill/rfkill.c return sprintf(buf, "%d\n", rfkill->state); rfkill 418 net/rfkill/rfkill.c struct rfkill *rfkill = to_rfkill(dev); rfkill 434 net/rfkill/rfkill.c if (mutex_lock_interruptible(&rfkill->mutex)) rfkill 436 net/rfkill/rfkill.c error = rfkill_toggle_radio(rfkill, state, 0); rfkill 437 net/rfkill/rfkill.c mutex_unlock(&rfkill->mutex); rfkill 446 net/rfkill/rfkill.c struct rfkill *rfkill = to_rfkill(dev); rfkill 448 net/rfkill/rfkill.c return sprintf(buf, "%d\n", rfkill->user_claim); rfkill 455 net/rfkill/rfkill.c struct rfkill *rfkill = to_rfkill(dev); rfkill 463 net/rfkill/rfkill.c if (rfkill->user_claim_unsupported) rfkill 479 net/rfkill/rfkill.c if (rfkill->user_claim != claim) { rfkill 481 net/rfkill/rfkill.c mutex_lock(&rfkill->mutex); rfkill 482 net/rfkill/rfkill.c rfkill_toggle_radio(rfkill, rfkill 483 net/rfkill/rfkill.c rfkill_global_states[rfkill->type].current_state, rfkill 485 net/rfkill/rfkill.c mutex_unlock(&rfkill->mutex); rfkill 487 net/rfkill/rfkill.c rfkill->user_claim = claim; rfkill 505 net/rfkill/rfkill.c struct rfkill *rfkill = to_rfkill(dev); rfkill 507 net/rfkill/rfkill.c kfree(rfkill); rfkill 523 net/rfkill/rfkill.c struct rfkill *rfkill = to_rfkill(dev); rfkill 526 net/rfkill/rfkill.c mutex_lock(&rfkill->mutex); rfkill 531 net/rfkill/rfkill.c rfkill_toggle_radio(rfkill, rfkill->state, 1); rfkill 533 net/rfkill/rfkill.c mutex_unlock(&rfkill->mutex); rfkill 547 net/rfkill/rfkill.c struct rfkill *rfkill = (struct rfkill *)data; rfkill 551 net/rfkill/rfkill.c kobject_uevent(&rfkill->dev.kobj, KOBJ_CHANGE); rfkill 567 net/rfkill/rfkill.c struct rfkill *rfkill = to_rfkill(dev); rfkill 570 net/rfkill/rfkill.c error = add_uevent_var(env, "RFKILL_NAME=%s", rfkill->name); rfkill 574 net/rfkill/rfkill.c rfkill_get_type_str(rfkill->type)); rfkill 577 net/rfkill/rfkill.c error = add_uevent_var(env, "RFKILL_STATE=%d", rfkill->state); rfkill 592 net/rfkill/rfkill.c struct rfkill *p; rfkill 598 net/rfkill/rfkill.c if (WARN((p == rfkill), KERN_WARNING rfkill 606 net/rfkill/rfkill.c return test_bit(rfkill->type, seen); rfkill 615 net/rfkill/rfkill.c error = rfkill_check_duplicity(rfkill); rfkill 621 net/rfkill/rfkill.c set_bit(rfkill->type, rfkill_states_lockdflt); rfkill 622 net/rfkill/rfkill.c rfkill_global_states[rfkill->type].current_state = rfkill 623 net/rfkill/rfkill.c rfkill_global_states[rfkill->type].default_state; rfkill 626 net/rfkill/rfkill.c rfkill_toggle_radio(rfkill, rfkill 627 net/rfkill/rfkill.c rfkill_global_states[rfkill->type].current_state, rfkill 630 net/rfkill/rfkill.c list_add_tail(&rfkill->node, &rfkill_list); rfkill 642 net/rfkill/rfkill.c list_del_init(&rfkill->node); rfkill 645 net/rfkill/rfkill.c mutex_lock(&rfkill->mutex); rfkill 646 net/rfkill/rfkill.c rfkill_toggle_radio(rfkill, RFKILL_STATE_SOFT_BLOCKED, 1); rfkill 647 net/rfkill/rfkill.c mutex_unlock(&rfkill->mutex); rfkill 663 net/rfkill/rfkill.c struct rfkill * __must_check rfkill_allocate(struct device *parent, rfkill 666 net/rfkill/rfkill.c struct rfkill *rfkill; rfkill 675 net/rfkill/rfkill.c rfkill = kzalloc(sizeof(struct rfkill), GFP_KERNEL); rfkill 676 net/rfkill/rfkill.c if (!rfkill) rfkill 679 net/rfkill/rfkill.c mutex_init(&rfkill->mutex); rfkill 680 net/rfkill/rfkill.c INIT_LIST_HEAD(&rfkill->node); rfkill 681 net/rfkill/rfkill.c rfkill->type = type; rfkill 683 net/rfkill/rfkill.c dev = &rfkill->dev; rfkill 690 net/rfkill/rfkill.c return rfkill; rfkill 703 net/rfkill/rfkill.c if (rfkill) rfkill 704 net/rfkill/rfkill.c put_device(&rfkill->dev); rfkill 713 net/rfkill/rfkill.c if (!rfkill->led_trigger.name) rfkill 714 net/rfkill/rfkill.c rfkill->led_trigger.name = rfkill->dev.bus_id; rfkill 715 net/rfkill/rfkill.c if (!rfkill->led_trigger.activate) rfkill 716 net/rfkill/rfkill.c rfkill->led_trigger.activate = rfkill_led_trigger_activate; rfkill 717 net/rfkill/rfkill.c error = led_trigger_register(&rfkill->led_trigger); rfkill 719 net/rfkill/rfkill.c rfkill->led_trigger.name = NULL; rfkill 726 net/rfkill/rfkill.c if (rfkill->led_trigger.name) { rfkill 727 net/rfkill/rfkill.c led_trigger_unregister(&rfkill->led_trigger); rfkill 728 net/rfkill/rfkill.c rfkill->led_trigger.name = NULL; rfkill 744 net/rfkill/rfkill.c struct device *dev = &rfkill->dev; rfkill 747 net/rfkill/rfkill.c if (WARN((!rfkill || !rfkill->toggle_radio || rfkill 748 net/rfkill/rfkill.c rfkill->type >= RFKILL_TYPE_MAX || rfkill 749 net/rfkill/rfkill.c rfkill->state >= RFKILL_STATE_MAX), rfkill 758 net/rfkill/rfkill.c rfkill_led_trigger_register(rfkill); rfkill 760 net/rfkill/rfkill.c error = rfkill_add_switch(rfkill); rfkill 762 net/rfkill/rfkill.c rfkill_led_trigger_unregister(rfkill); rfkill 768 net/rfkill/rfkill.c rfkill_remove_switch(rfkill); rfkill 769 net/rfkill/rfkill.c rfkill_led_trigger_unregister(rfkill); rfkill 787 net/rfkill/rfkill.c BUG_ON(!rfkill); rfkill 788 net/rfkill/rfkill.c device_del(&rfkill->dev); rfkill 789 net/rfkill/rfkill.c rfkill_remove_switch(rfkill); rfkill 790 net/rfkill/rfkill.c rfkill_led_trigger_unregister(rfkill); rfkill 791 net/rfkill/rfkill.c put_device(&rfkill->dev);