Home
last modified time | relevance | path

Searched refs:blocked (Results 1 – 25 of 50) sorted by relevance

12

/drivers/staging/lustre/lustre/libcfs/linux/
Dlinux-prim.c134 old = current->blocked; in cfs_block_allsigs()
135 sigfillset(&current->blocked); in cfs_block_allsigs()
148 old = current->blocked; in cfs_block_sigs()
149 sigaddsetmask(&current->blocked, sigs); in cfs_block_sigs()
162 old = current->blocked; in cfs_block_sigsinv()
163 sigaddsetmask(&current->blocked, ~sigs); in cfs_block_sigsinv()
176 current->blocked = old; in cfs_restore_sigs()
/drivers/platform/x86/
Damilo-rfkill.c32 static int amilo_a1655_rfkill_set_block(void *data, bool blocked) in amilo_a1655_rfkill_set_block() argument
34 u8 param = blocked ? A1655_WIFI_OFF : A1655_WIFI_ON; in amilo_a1655_rfkill_set_block()
58 static int amilo_m7440_rfkill_set_block(void *data, bool blocked) in amilo_m7440_rfkill_set_block() argument
60 u8 val1 = blocked ? M7440_RADIO_OFF1 : M7440_RADIO_ON1; in amilo_m7440_rfkill_set_block()
61 u8 val2 = blocked ? M7440_RADIO_OFF2 : M7440_RADIO_ON2; in amilo_m7440_rfkill_set_block()
Dxo1-rfkill.c19 static int rfkill_set_block(void *data, bool blocked) in rfkill_set_block() argument
24 if (blocked == card_blocked) in rfkill_set_block()
27 if (blocked) in rfkill_set_block()
34 card_blocked = blocked; in rfkill_set_block()
Dmsi-laptop.c722 static int rfkill_bluetooth_set(void *data, bool blocked) in rfkill_bluetooth_set() argument
729 int result = set_device_state(blocked ? "0" : "1", 0, in rfkill_bluetooth_set()
735 static int rfkill_wlan_set(void *data, bool blocked) in rfkill_wlan_set() argument
737 int result = set_device_state(blocked ? "0" : "1", 0, in rfkill_wlan_set()
743 static int rfkill_threeg_set(void *data, bool blocked) in rfkill_threeg_set() argument
745 int result = set_device_state(blocked ? "0" : "1", 0, in rfkill_threeg_set()
781 static bool msi_rfkill_set_state(struct rfkill *rfkill, bool blocked) in msi_rfkill_set_state() argument
784 return rfkill_set_hw_state(rfkill, blocked); in msi_rfkill_set_state()
786 return rfkill_set_sw_state(rfkill, blocked); in msi_rfkill_set_state()
Dasus-wmi.c597 bool blocked; in asus_rfkill_hotplug() local
602 blocked = asus_wlan_rfkill_blocked(asus); in asus_rfkill_hotplug()
609 rfkill_set_sw_state(asus->wlan.rfkill, blocked); in asus_rfkill_hotplug()
624 if (blocked != absent) { in asus_rfkill_hotplug()
627 blocked ? "blocked" : "unblocked", in asus_rfkill_hotplug()
634 if (!blocked) { in asus_rfkill_hotplug()
800 static int asus_rfkill_set(void *data, bool blocked) in asus_rfkill_set() argument
803 u32 ctrl_param = !blocked; in asus_rfkill_set()
834 static int asus_rfkill_wlan_set(void *data, bool blocked) in asus_rfkill_wlan_set() argument
848 ret = asus_rfkill_set(data, blocked); in asus_rfkill_wlan_set()
Dintel_oaktrail.c108 static int oaktrail_rfkill_set(void *data, bool blocked) in oaktrail_rfkill_set() argument
116 if (!blocked) in oaktrail_rfkill_set()
Deeepc-laptop.c573 bool blocked = eeepc_wlan_rfkill_blocked(eeepc); in eeepc_rfkill_hotplug() local
578 rfkill_set_sw_state(eeepc->wlan_rfkill, blocked); in eeepc_rfkill_hotplug()
604 if (blocked != absent) { in eeepc_rfkill_hotplug()
607 blocked ? "blocked" : "unblocked", in eeepc_rfkill_hotplug()
614 if (!blocked) { in eeepc_rfkill_hotplug()
785 static int eeepc_rfkill_set(void *data, bool blocked) in eeepc_rfkill_set() argument
789 return write_acpi_int(handle, NULL, !blocked); in eeepc_rfkill_set()
Dsamsung-laptop.c569 static int seclinux_rfkill_set(void *data, bool blocked) in seclinux_rfkill_set() argument
576 !blocked); in seclinux_rfkill_set()
592 static int swsmi_rfkill_set(void *priv, bool blocked) in swsmi_rfkill_set() argument
610 data.data[WL_STATUS_WLAN] = !blocked; in swsmi_rfkill_set()
612 data.data[WL_STATUS_BT] = !blocked; in swsmi_rfkill_set()
882 int blocked) in samsung_new_rfkill() argument
896 if (blocked != -1) in samsung_new_rfkill()
897 rfkill_init_sw_state(*rfkill, blocked); in samsung_new_rfkill()
Dasus-laptop.c1306 static int asus_gps_rfkill_set(void *data, bool blocked) in asus_gps_rfkill_set() argument
1310 return asus_gps_switch(asus, !blocked); in asus_gps_rfkill_set()
1317 static int asus_rfkill_set(void *data, bool blocked) in asus_rfkill_set() argument
1323 return asus_wlan_set(asus, !blocked); in asus_rfkill_set()
1325 return asus_bluetooth_set(asus, !blocked); in asus_rfkill_set()
1327 return asus_wimax_set(asus, !blocked); in asus_rfkill_set()
1329 return asus_wwan_set(asus, !blocked); in asus_rfkill_set()
1433 static int pega_rfkill_set(void *data, bool blocked) in pega_rfkill_set() argument
1437 int ret = asus_pega_lucid_set(rfk->asus, rfk->control_id, !blocked); in pega_rfkill_set()
Dclassmate-laptop.c912 bool blocked; in cmpc_rfkill_query() local
917 blocked = state & 1 ? false : true; in cmpc_rfkill_query()
918 rfkill_set_sw_state(rfkill, blocked); in cmpc_rfkill_query()
922 static int cmpc_rfkill_block(void *data, bool blocked) in cmpc_rfkill_block() argument
935 if (is_blocked != blocked) { in cmpc_rfkill_block()
936 state = blocked ? 0 : 1; in cmpc_rfkill_block()
Dhp-wmi.c331 static int hp_wmi_set_block(void *data, bool blocked) in hp_wmi_set_block() argument
334 int query = BIT(r + 8) | ((!blocked) << r); in hp_wmi_set_block()
382 static int hp_wmi_rfkill2_set_block(void *data, bool blocked) in hp_wmi_rfkill2_set_block() argument
385 char buffer[4] = { 0x01, 0x00, rfkill_id, !blocked }; in hp_wmi_rfkill2_set_block()
/drivers/net/wireless/brcm80211/brcmfmac/
Dflowring.c185 bool blocked) in brcmf_flowring_block() argument
207 if (ring->blocked) { in brcmf_flowring_block()
214 ring->blocked = blocked; in brcmf_flowring_block()
215 if (currently_blocked == blocked) { in brcmf_flowring_block()
223 brcmf_txflowblock_if(ifp, BRCMF_NETIF_STOP_REASON_FLOW, blocked); in brcmf_flowring_block()
263 if (!ring->blocked && in brcmf_flowring_enqueue()
290 if (ring->blocked && in brcmf_flowring_dequeue()
Dflowring.h38 bool blocked; member
/drivers/net/wireless/ath/ath5k/
Drfkill.c79 bool blocked; in ath5k_tasklet_rfkill_toggle() local
81 blocked = ath5k_is_rfkill_set(ah); in ath5k_tasklet_rfkill_toggle()
82 wiphy_rfkill_set_hw_state(ah->hw->wiphy, blocked); in ath5k_tasklet_rfkill_toggle()
/drivers/net/wireless/brcm80211/brcmsmac/
Dmac80211_if.c426 bool blocked; in brcms_ops_start() local
437 blocked = brcms_rfkill_set_hw_state(wl); in brcms_ops_start()
439 if (!blocked) in brcms_ops_start()
447 if (!blocked) in brcms_ops_start()
881 bool blocked; in brcms_ops_rfkill_poll() local
884 blocked = brcms_c_check_radio_disabled(wl->wlc); in brcms_ops_rfkill_poll()
887 wiphy_rfkill_set_hw_state(wl->pub->ieee_hw->wiphy, blocked); in brcms_ops_rfkill_poll()
1695 bool blocked = brcms_c_check_radio_disabled(wl->wlc); in brcms_rfkill_set_hw_state() local
1698 wiphy_rfkill_set_hw_state(wl->pub->ieee_hw->wiphy, blocked); in brcms_rfkill_set_hw_state()
1699 if (blocked) in brcms_rfkill_set_hw_state()
[all …]
/drivers/firewire/
Dsbp2.c152 bool blocked; member
178 int blocked; /* ditto */ member
721 if (!tgt->dont_block && !lu->blocked && in sbp2_conditionally_block()
723 lu->blocked = true; in sbp2_conditionally_block()
724 if (++tgt->blocked == 1) in sbp2_conditionally_block()
746 if (lu->blocked && lu->generation == card->generation) { in sbp2_conditionally_unblock()
747 lu->blocked = false; in sbp2_conditionally_unblock()
748 unblock = --tgt->blocked == 0; in sbp2_conditionally_unblock()
1006 lu->blocked = false; in sbp2_add_logical_unit()
/drivers/isdn/capi/
Dkcapi.c469 if (!ctr->blocked) { in capi_ctr_suspend_output()
472 ctr->blocked = 1; in capi_ctr_suspend_output()
490 if (ctr->blocked) { in capi_ctr_resume_output()
493 ctr->blocked = 0; in capi_ctr_resume_output()
532 ctr->blocked = 0; in attach_capi_ctr()
793 if (ctr->blocked) in capi20_put_message()
/drivers/net/wireless/b43/
Dphy_common.h175 void (*software_rfkill)(struct b43_wldev *dev, bool blocked);
403 void b43_software_rfkill(struct b43_wldev *dev, bool blocked);
Dphy_common.c458 void b43_software_rfkill(struct b43_wldev *dev, bool blocked) in b43_software_rfkill() argument
463 phy->ops->software_rfkill(dev, blocked); in b43_software_rfkill()
464 phy->radio_on = !blocked; in b43_software_rfkill()
Dphy_a.c484 bool blocked) in b43_aphy_op_software_rfkill() argument
488 if (!blocked) { in b43_aphy_op_software_rfkill()
/drivers/parport/
Dshare.c789 goto blocked; in parport_claim()
792 goto blocked; in parport_claim()
801 goto blocked; in parport_claim()
848 blocked: in parport_claim()
/drivers/net/wireless/ath/ath9k/
Dhtc_drv_gpio.c319 bool blocked = !!ath_is_rfkill_set(priv); in ath9k_htc_rfkill_poll_state() local
321 wiphy_rfkill_set_hw_state(hw->wiphy, blocked); in ath9k_htc_rfkill_poll_state()
Dgpio.c109 bool blocked = !!ath_is_rfkill_set(sc); in ath9k_rfkill_poll_state() local
111 wiphy_rfkill_set_hw_state(hw->wiphy, blocked); in ath9k_rfkill_poll_state()
/drivers/block/
Dnbd.c160 sigset_t blocked, oldset; in sock_xmit() local
172 siginitsetinv(&blocked, sigmask(SIGKILL)); in sock_xmit()
173 sigprocmask(SIG_SETMASK, &blocked, &oldset); in sock_xmit()
207 dequeue_signal_lock(current, &current->blocked, &info)); in sock_xmit()
/drivers/staging/lustre/lnet/lnet/
Dapi-ni.c1733 sigset_t blocked = cfs_block_allsigs(); in lnet_ping_target_fini() local
1760 cfs_restore_sigs(blocked); in lnet_ping_target_fini()
1781 sigset_t blocked; in lnet_ping() local
1836 blocked = cfs_block_allsigs(); in lnet_ping()
1841 cfs_restore_sigs(blocked); in lnet_ping()

12