/linux-4.1.27/arch/x86/boot/compressed/ |
H A D | cpuflags.c | 9 return test_bit(flag, cpu.flags); has_cpuflag()
|
/linux-4.1.27/include/linux/ |
H A D | khugepaged.h | 28 if (test_bit(MMF_VM_HUGEPAGE, &oldmm->flags)) khugepaged_fork() 35 if (test_bit(MMF_VM_HUGEPAGE, &mm->flags)) khugepaged_exit() 42 if (!test_bit(MMF_VM_HUGEPAGE, &vma->vm_mm->flags)) khugepaged_enter()
|
H A D | blk-iopoll.h | 28 if (!test_bit(IOPOLL_F_DISABLE, &iop->state)) blk_iopoll_sched_prep() 36 return test_bit(IOPOLL_F_DISABLE, &iop->state); blk_iopoll_disable_pending()
|
H A D | bit_spinlock.h | 30 } while (test_bit(bitnum, addr)); bit_spin_lock() 59 BUG_ON(!test_bit(bitnum, addr)); bit_spin_unlock() 76 BUG_ON(!test_bit(bitnum, addr)); __bit_spin_unlock() 91 return test_bit(bitnum, addr); bit_spin_is_locked()
|
H A D | atmdev.h | 72 (test_bit(ATM_VF_READY,&(flags)) ? ATM_VS_CONNECTED : \ 73 test_bit(ATM_VF_RELEASED,&(flags)) ? ATM_VS_CLOSING : \ 74 test_bit(ATM_VF_LISTEN,&(flags)) ? ATM_VS_LISTEN : \ 75 test_bit(ATM_VF_REGIS,&(flags)) ? ATM_VS_INUSE : \ 76 test_bit(ATM_VF_BOUND,&(flags)) ? ATM_VS_BOUND : ATM_VS_IDLE) 271 BUG_ON(!test_bit(ATM_DF_REMOVED, &dev->flags)); atm_dev_put()
|
H A D | fdtable.h | 34 return test_bit(fd, fdt->close_on_exec); close_on_exec() 39 return test_bit(fd, fdt->open_fds); fd_is_open()
|
H A D | ksm.h | 27 if (test_bit(MMF_VM_MERGEABLE, &oldmm->flags)) ksm_fork() 34 if (test_bit(MMF_VM_MERGEABLE, &mm->flags)) ksm_exit()
|
H A D | dma-attrs.h | 68 return test_bit(attr, attrs->flags); dma_get_attr()
|
H A D | blkdev.h | 543 if (test_bit(flag, &q->queue_flags)) { queue_flag_test_and_clear() 556 if (!test_bit(flag, &q->queue_flags)) { queue_flag_test_and_set() 587 #define blk_queue_tagged(q) test_bit(QUEUE_FLAG_QUEUED, &(q)->queue_flags) 588 #define blk_queue_stopped(q) test_bit(QUEUE_FLAG_STOPPED, &(q)->queue_flags) 589 #define blk_queue_dying(q) test_bit(QUEUE_FLAG_DYING, &(q)->queue_flags) 590 #define blk_queue_dead(q) test_bit(QUEUE_FLAG_DEAD, &(q)->queue_flags) 591 #define blk_queue_bypass(q) test_bit(QUEUE_FLAG_BYPASS, &(q)->queue_flags) 592 #define blk_queue_init_done(q) test_bit(QUEUE_FLAG_INIT_DONE, &(q)->queue_flags) 593 #define blk_queue_nomerges(q) test_bit(QUEUE_FLAG_NOMERGES, &(q)->queue_flags) 595 test_bit(QUEUE_FLAG_NOXMERGES, &(q)->queue_flags) 596 #define blk_queue_nonrot(q) test_bit(QUEUE_FLAG_NONROT, &(q)->queue_flags) 597 #define blk_queue_io_stat(q) test_bit(QUEUE_FLAG_IO_STAT, &(q)->queue_flags) 598 #define blk_queue_add_random(q) test_bit(QUEUE_FLAG_ADD_RANDOM, &(q)->queue_flags) 600 test_bit(QUEUE_FLAG_STACKABLE, &(q)->queue_flags) 601 #define blk_queue_discard(q) test_bit(QUEUE_FLAG_DISCARD, &(q)->queue_flags) 603 test_bit(QUEUE_FLAG_SECDISCARD, &(q)->queue_flags))
|
/linux-4.1.27/tools/include/asm-generic/bitops/ |
H A D | atomic.h | 16 static __always_inline int test_bit(unsigned int nr, const unsigned long *addr) test_bit() function
|
/linux-4.1.27/drivers/net/wireless/ath/ |
H A D | key.c | 391 if (test_bit(i, common->keymap) || ath_reserve_key_cache_slot_tkip() 392 test_bit(i + 64, common->keymap)) ath_reserve_key_cache_slot_tkip() 395 (test_bit(i + 32, common->keymap) || ath_reserve_key_cache_slot_tkip() 396 test_bit(i + 64 + 32, common->keymap))) ath_reserve_key_cache_slot_tkip() 416 if (!test_bit(i, common->keymap) && ath_reserve_key_cache_slot() 417 (test_bit(i + 32, common->keymap) || ath_reserve_key_cache_slot() 418 test_bit(i + 64, common->keymap) || ath_reserve_key_cache_slot() 419 test_bit(i + 64 + 32, common->keymap))) ath_reserve_key_cache_slot() 421 if (!test_bit(i + 32, common->keymap) && ath_reserve_key_cache_slot() 422 (test_bit(i, common->keymap) || ath_reserve_key_cache_slot() 423 test_bit(i + 64, common->keymap) || ath_reserve_key_cache_slot() 424 test_bit(i + 64 + 32, common->keymap))) ath_reserve_key_cache_slot() 426 if (!test_bit(i + 64, common->keymap) && ath_reserve_key_cache_slot() 427 (test_bit(i , common->keymap) || ath_reserve_key_cache_slot() 428 test_bit(i + 32, common->keymap) || ath_reserve_key_cache_slot() 429 test_bit(i + 64 + 32, common->keymap))) ath_reserve_key_cache_slot() 431 if (!test_bit(i + 64 + 32, common->keymap) && ath_reserve_key_cache_slot() 432 (test_bit(i, common->keymap) || ath_reserve_key_cache_slot() 433 test_bit(i + 32, common->keymap) || ath_reserve_key_cache_slot() 434 test_bit(i + 64, common->keymap))) ath_reserve_key_cache_slot() 439 if (!test_bit(i, common->keymap) && ath_reserve_key_cache_slot() 440 test_bit(i + 64, common->keymap)) ath_reserve_key_cache_slot() 442 if (test_bit(i, common->keymap) && ath_reserve_key_cache_slot() 443 !test_bit(i + 64, common->keymap)) ath_reserve_key_cache_slot() 462 if (!test_bit(i, common->keymap)) ath_reserve_key_cache_slot()
|
/linux-4.1.27/drivers/iio/imu/inv_mpu6050/ |
H A D | inv_mpu_trigger.c | 21 test_bit(INV_MPU6050_SCAN_GYRO_X, inv_scan_query() 23 test_bit(INV_MPU6050_SCAN_GYRO_Y, inv_scan_query() 25 test_bit(INV_MPU6050_SCAN_GYRO_Z, inv_scan_query() 29 test_bit(INV_MPU6050_SCAN_ACCL_X, inv_scan_query() 31 test_bit(INV_MPU6050_SCAN_ACCL_Y, inv_scan_query() 33 test_bit(INV_MPU6050_SCAN_ACCL_Z, inv_scan_query()
|
/linux-4.1.27/drivers/media/platform/exynos4-is/ |
H A D | fimc-is-param.c | 186 if (test_bit(PARAM_GLOBAL_SHOTMODE, p_index)) __is_hw_update_params() 189 if (test_bit(PARAM_SENSOR_FRAME_RATE, p_index)) __is_hw_update_params() 193 if (test_bit(i, p_index)) __is_hw_update_params() 198 if (test_bit(i, p_index)) __is_hw_update_params() 203 if (test_bit(i, p_index)) __is_hw_update_params() 244 if (test_bit(PARAM_ISP_OTF_INPUT, __is_set_frame_size() 402 if (!test_bit(PARAM_ISP_ADJUST, p_index)) { __is_set_isp_adjust() 440 if (!test_bit(PARAM_ISP_METERING, p_index)) { __is_set_isp_metering() 483 if (!test_bit((PARAM_FD_CONFIG - 32), p_index)) __is_set_fd_control() 498 if (!test_bit((PARAM_FD_CONFIG - 32), p_index)) { __is_set_fd_config_maxface() 518 if (!test_bit((PARAM_FD_CONFIG - 32), p_index)) { __is_set_fd_config_rollangle() 538 if (!test_bit((PARAM_FD_CONFIG - 32), p_index)) { __is_set_fd_config_yawangle() 558 if (!test_bit((PARAM_FD_CONFIG - 32), p_index)) { __is_set_fd_config_smilemode() 578 if (!test_bit((PARAM_FD_CONFIG - 32), p_index)) { __is_set_fd_config_blinkmode() 598 if (!test_bit((PARAM_FD_CONFIG - 32), p_index)) { __is_set_fd_config_eyedetect() 618 if (!test_bit((PARAM_FD_CONFIG - 32), p_index)) { __is_set_fd_config_mouthdetect() 638 if (!test_bit((PARAM_FD_CONFIG - 32), p_index)) { __is_set_fd_config_orientation() 658 if (!test_bit((PARAM_FD_CONFIG - 32), p_index)) { __is_set_fd_config_orientation_val() 694 if (!test_bit(PARAM_ISP_OTF_INPUT, p_index)) { fimc_is_set_initial_params() 737 if (!test_bit(PARAM_ISP_FLASH, p_index)) fimc_is_set_initial_params() 741 if (!test_bit(PARAM_ISP_AWB, p_index)) fimc_is_set_initial_params() 744 if (!test_bit(PARAM_ISP_IMAGE_EFFECT, p_index)) fimc_is_set_initial_params() 747 if (!test_bit(PARAM_ISP_ISO, p_index)) fimc_is_set_initial_params() 750 if (!test_bit(PARAM_ISP_ADJUST, p_index)) { fimc_is_set_initial_params() 761 if (!test_bit(PARAM_ISP_METERING, p_index)) { fimc_is_set_initial_params() 769 if (!test_bit(PARAM_ISP_AFC, p_index)) fimc_is_set_initial_params() 773 if (!test_bit(PARAM_ISP_OTF_OUTPUT, p_index)) { fimc_is_set_initial_params() 783 if (!test_bit(PARAM_ISP_DMA1_OUTPUT, p_index)) { fimc_is_set_initial_params() 799 if (!test_bit(PARAM_ISP_DMA2_OUTPUT, p_index)) { fimc_is_set_initial_params() 816 if (!test_bit(PARAM_SENSOR_FRAME_RATE, p_index)) { fimc_is_set_initial_params() 826 if (!test_bit(PARAM_DRC_OTF_INPUT, p_index)) { fimc_is_set_initial_params() 849 if (!test_bit(PARAM_DRC_OTF_OUTPUT, p_index)) { fimc_is_set_initial_params() 864 if (!test_bit(PARAM_FD_OTF_INPUT, p_index)) { fimc_is_set_initial_params()
|
H A D | fimc-isp-video.c | 94 if (!test_bit(ST_ISP_VID_CAP_BUF_PREP, &isp->state) || isp_video_capture_start_streaming() 95 test_bit(ST_ISP_VID_CAP_STREAMING, &isp->state)) isp_video_capture_start_streaming() 182 if (test_bit(ST_ISP_VID_CAP_BUF_PREP, &isp->state)) { isp_video_capture_buffer_prepare() 204 if (test_bit(ST_ISP_VID_CAP_BUF_PREP, &isp->state)) { isp_video_capture_buffer_queue() 234 if (!test_bit(ST_ISP_VID_CAP_STREAMING, &isp->state)) isp_video_capture_buffer_queue() 249 if (!test_bit(ST_ISP_VID_CAP_STREAMING, &is->isp.state)) fimc_isp_video_irq_handler()
|
/linux-4.1.27/drivers/isdn/hisax/ |
H A D | lmgr.c | 38 test_bit(FLG_LAPD, &st->l2.flag) ? hisax_manager() 40 if (test_bit(FLG_LAPD, &st->l2.flag)) hisax_manager()
|
H A D | isdnl2.c | 167 if (test_bit(FLG_MOD128, &st->l2.flag)) cansend() 171 return ((p1 < st->l2.window) && !test_bit(FLG_PEER_BUSY, &st->l2.flag)); cansend() 186 return (((test_bit(FLG_MOD128, &l2->flag) && (!ui)) ? 2 : 1) + l2headersize() 187 (test_bit(FLG_LAPD, &l2->flag) ? 2 : 1)); l2headersize() 193 return (test_bit(FLG_LAPD, &l2->flag) ? 2 : 1); l2addrsize() 202 if (test_bit(FLG_LAPD, &l2->flag)) { sethdraddr() 207 if (test_bit(FLG_ORIG, &l2->flag)) sethdraddr() 221 if (test_bit(FLG_LAPB, &st->l2.flag)) enqueue_super() 257 if (!test_bit(FLG_MOD128, &st->l2.flag)) IsSFrame() 267 return (test_bit(FLG_MOD128, &st->l2.flag) ? d == SABME : d == SABM); IsSABME() 273 return (test_bit(FLG_MOD128, &st->l2.flag) ? data[0] == REJ : (data[0] & 0xf) == REJ); IsREJ() 285 return (test_bit(FLG_MOD128, &st->l2.flag) ? data[0] == RNR : (data[0] & 0xf) == RNR); IsRNR() 291 int i = l2addrsize(&st->l2) + (test_bit(FLG_MOD128, &st->l2.flag) ? 2 : 1); iframe_error() 294 if (test_bit(FLG_ORIG, &st->l2.flag)) iframe_error() 315 (test_bit(FLG_MOD128, &st->l2.flag) ? 2 : 1)) super_error() 325 if (test_bit(FLG_ORIG, &st->l2.flag)) unnum_error() 341 if (test_bit(FLG_ORIG, &st->l2.flag)) UI_error() 360 if (test_bit(FLG_ORIG, &st->l2.flag)) FRMR_error() 366 if (test_bit(FLG_MOD128, &st->l2.flag)) { FRMR_error() 389 if (test_bit(FLG_MOD128, &l2->flag)) legalnr() 405 if (test_bit(FLG_MOD128, &l2->flag)) setva() 416 if (test_bit(FLG_LLI_L2WAKEUP, &st->lli.flag) && (len >= 0)) setva() 493 if (test_bit(FLG_LAPB, &st->l2.flag)) lapb_dl_release_l2l3() 506 cmd = (test_bit(FLG_MOD128, &st->l2.flag) ? SABME : SABM) | 0x10; establishlink() 856 if (!test_bit(FLG_L3_INIT, &st->l2.flag)) l2_st5_dm_release() 858 if (test_bit(FLG_LAPB, &st->l2.flag)) l2_st5_dm_release() 888 if (test_bit(FLG_MOD128, &l2->flag)) { enquiry_cr() 904 if (test_bit(FLG_OWN_BUSY, &st->l2.flag)) enquiry_response() 914 if (test_bit(FLG_OWN_BUSY, &st->l2.flag)) transmit_enquiry() 944 if (test_bit(FLG_MOD128, &l2->flag)) { invoke_retransmission() 952 if (test_bit(FLG_LAPB, &l2->flag)) invoke_retransmission() 974 if (test_bit(FLG_ORIG, &l2->flag)) l2_st7_got_super() 986 if (test_bit(FLG_MOD128, &l2->flag)) { l2_st7_got_super() 1031 if (test_bit(FLG_LAPB, &st->l2.flag)) l2_feed_i_if_reest() 1033 if (!test_bit(FLG_L3_INIT, &st->l2.flag)) l2_feed_i_if_reest() 1045 if (test_bit(FLG_LAPB, &st->l2.flag)) l2_feed_i_pull() 1057 if (test_bit(FLG_LAPB, &st->l2.flag)) l2_feed_iqueue() 1072 if (test_bit(FLG_MOD128, &l2->flag)) { l2_got_iframe() 1081 if (test_bit(FLG_OWN_BUSY, &l2->flag)) { l2_got_iframe() 1086 if (test_bit(FLG_MOD128, &l2->flag)) l2_got_iframe() 1111 if (!test_bit(FLG_PEER_BUSY, &st->l2.flag) && (fi->state == ST_L2_7)) { l2_got_iframe() 1152 if (test_bit(FLG_LAPD, &st->l2.flag) && l2_st5_tout_200() 1153 test_bit(FLG_DCHAN_BUSY, &st->l2.flag)) { l2_st5_tout_200() 1160 if (test_bit(FLG_LAPB, &st->l2.flag)) l2_st5_tout_200() 1166 send_uframe(st, (test_bit(FLG_MOD128, &st->l2.flag) ? SABME : SABM) l2_st5_tout_200() 1176 if (test_bit(FLG_LAPD, &st->l2.flag) && l2_st6_tout_200() 1177 test_bit(FLG_DCHAN_BUSY, &st->l2.flag)) { l2_st6_tout_200() 1197 if (test_bit(FLG_LAPD, &st->l2.flag) && l2_st7_tout_200() 1198 test_bit(FLG_DCHAN_BUSY, &st->l2.flag)) { l2_st7_tout_200() 1215 if (test_bit(FLG_LAPD, &st->l2.flag) && l2_st8_tout_200() 1216 test_bit(FLG_DCHAN_BUSY, &st->l2.flag)) { l2_st8_tout_200() 1236 if (test_bit(FLG_LAPD, &st->l2.flag) && l2_st7_tout_203() 1237 test_bit(FLG_DCHAN_BUSY, &st->l2.flag)) { l2_st7_tout_203() 1275 if (test_bit(FLG_MOD128, &l2->flag)) l2_pull_iqueue() 1289 if (test_bit(FLG_MOD128, &l2->flag)) { l2_pull_iqueue() 1319 if (test_bit(FLG_ORIG, &l2->flag)) l2_st8_got_super() 1330 if (test_bit(FLG_MOD128, &l2->flag)) { l2_st8_got_super() 1722 if (test_bit(FLG_L1_ACTIV, &st->l2.flag)) { isdnl2_l3l2() 1723 if (test_bit(FLG_LAPD, &st->l2.flag) || isdnl2_l3l2() 1724 test_bit(FLG_ORIG, &st->l2.flag)) { isdnl2_l3l2() 1728 if (test_bit(FLG_LAPD, &st->l2.flag) || isdnl2_l3l2() 1729 test_bit(FLG_ORIG, &st->l2.flag)) { isdnl2_l3l2() 1736 if (test_bit(FLG_LAPB, &st->l2.flag)) { isdnl2_l3l2() 1787 if (test_bit(FLG_LAPB, &st->l2.flag)) setstack_isdnl2()
|
H A D | isdnl1.c | 177 if (test_bit(FLG_L1_DBUSY, &cs->HW_Flags)) L1deactivated() 211 if (test_bit(FLG_L1_ACTTIMER, &stptr->l1.Flags)) DChannel_proc_rcv() 275 if (test_bit(BC_FLG_BUSY, &bcs->Flag)) { BChannel_proc_xmt() 282 if (!test_bit(BC_FLG_ACTIV, &bcs->Flag)) { BChannel_proc_xmt() 283 if (!test_bit(BC_FLG_BUSY, &bcs->Flag) && BChannel_proc_xmt() 469 if (test_bit(FLG_L1_ACTIVATING, &st->l1.Flags)) l1_deact_cnf() 488 if (test_bit(FLG_L1_ACTIVATING, &st->l1.Flags)) { l1_power_up_s() 515 if (test_bit(FLG_L1_UINT, &st->l1.Flags)) l1_info2_ind() 529 if (test_bit(FLG_L1_UINT, &st->l1.Flags)) l1_info4_ind() 537 if (!test_bit(FLG_L1_ACTIVATED, &st->l1.Flags)) { l1_info4_ind() 555 if (!test_bit(FLG_L1_UINT, &st->l1.Flags)) l1_timer3() 597 if ((!test_bit(FLG_L1_DEACTTIMER, &st->l1.Flags)) && (!test_bit(FLG_L1_T3RUN, &st->l1.Flags))) { l1_activate_no() 815 if (test_bit(FLG_L1_ACTIVATED, &st->l1.Flags)) dch_l2l1() 898 if (test_bit(FLG_HW_L1_UINT, &cs->HW_Flags)) { setstack_HiSax()
|
H A D | hscx.c | 57 test_bit(HW_IPAC, &cs->HW_Flags) ? 0x82 : 0x85); modehscx() 63 if (test_bit(HW_IOM1, &cs->HW_Flags) && (hscx == 0)) modehscx() 68 test_bit(HW_IOM1, &cs->HW_Flags) ? 0x7 : bcs->hw.hscx.tsaxr0); modehscx() 70 test_bit(HW_IOM1, &cs->HW_Flags) ? 0x7 : bcs->hw.hscx.tsaxr0); modehscx() 86 test_bit(HW_IPAC, &cs->HW_Flags) ? 0x8a : 0x8d); modehscx()
|
H A D | hscx_irq.c | 87 int fifo_size = test_bit(HW_IPAC, &cs->HW_Flags) ? 64 : 32; hscx_fill_fifo() 128 int fifo_size = test_bit(HW_IPAC, &cs->HW_Flags) ? 64 : 32; hscx_interrupt() 131 if (!test_bit(BC_FLG_INIT, &bcs->Flag)) hscx_interrupt() 162 test_bit(HW_IPAC, &cs->HW_Flags) ? 0x3f : 0x1f); hscx_interrupt() 200 if (test_bit(FLG_LLI_L1WAKEUP, &bcs->st->lli.flag) && hscx_interrupt()
|
/linux-4.1.27/arch/mn10300/lib/ |
H A D | bitops.c | 19 if (test_bit(nr, addr)) change_bit() 38 if (test_bit(nr, addr)) test_and_change_bit()
|
/linux-4.1.27/arch/mips/include/asm/ |
H A D | watch.h | 22 if (unlikely(test_bit(TIF_LOAD_WATCH, \
|
/linux-4.1.27/drivers/net/wireless/ti/wlcore/ |
H A D | ps.c | 52 if (unlikely(!test_bit(WL1271_FLAG_ELP_REQUESTED, &wl->flags))) wl1271_elp_work() 55 if (test_bit(WL1271_FLAG_IN_ELP, &wl->flags)) wl1271_elp_work() 59 if (!test_bit(WLVIF_FLAG_IN_PS, &wlvif->flags) && wl12xx_for_each_wlvif() 60 test_bit(WLVIF_FLAG_IN_USE, &wlvif->flags)) wl12xx_for_each_wlvif() 95 if (!test_bit(WLVIF_FLAG_IN_PS, &wlvif->flags) && wl12xx_for_each_wlvif() 96 test_bit(WLVIF_FLAG_IN_USE, &wlvif->flags)) wl12xx_for_each_wlvif() 125 if (!test_bit(WL1271_FLAG_IN_ELP, &wl->flags)) wl1271_ps_elp_wakeup() 135 if (test_bit(WL1271_FLAG_IRQ_RUNNING, &wl->flags)) wl1271_ps_elp_wakeup() 282 if (!test_bit(hlid, wlvif->ap.sta_hlid_map) || wl12xx_ps_link_start() 283 test_bit(hlid, &wl->ap_ps_map)) wl12xx_ps_link_start() 314 if (!test_bit(hlid, &wl->ap_ps_map)) wl12xx_ps_link_end()
|
H A D | event.c | 121 !test_bit(wlvif->role_id , &roles_bitmap)) wl12xx_for_each_wlvif() 124 wlvif->ba_allowed = !!test_bit(wlvif->role_id, wl12xx_for_each_wlvif() 144 !test_bit(wlvif->role_id , &roles_bitmap)) wl12xx_for_each_wlvif() 189 if (!test_bit(h, wlvif->ap.sta_hlid_map)) wl12xx_for_each_wlvif_ap() 247 !test_bit(wlvif->role_id , &roles_bitmap)) wl12xx_for_each_wlvif_sta()
|
H A D | io.h | 63 if (test_bit(WL1271_FLAG_IO_FAILED, &wl->flags) || wlcore_raw_write() 64 WARN_ON((test_bit(WL1271_FLAG_IN_ELP, &wl->flags) && wlcore_raw_write() 81 if (test_bit(WL1271_FLAG_IO_FAILED, &wl->flags) || wlcore_raw_read() 82 WARN_ON((test_bit(WL1271_FLAG_IN_ELP, &wl->flags) && wlcore_raw_read() 212 if (!test_bit(WL1271_FLAG_GPIO_POWER, &wl->flags)) wl1271_power_off()
|
H A D | main.c | 65 if (!test_bit(WLVIF_FLAG_STA_ASSOCIATED, &wlvif->flags)) wl12xx_set_authorized() 120 if (!test_bit(WLVIF_FLAG_RX_STREAMING_STARTED, &wlvif->flags)) wl1271_recalc_rx_streaming() 125 test_bit(WLVIF_FLAG_STA_ASSOCIATED, &wlvif->flags) && wl1271_recalc_rx_streaming() 127 test_bit(WL1271_FLAG_SOFT_GEMINI, &wl->flags))) wl1271_recalc_rx_streaming() 147 if (test_bit(WLVIF_FLAG_RX_STREAMING_STARTED, &wlvif->flags) || wl1271_rx_streaming_enable_work() 148 !test_bit(WLVIF_FLAG_STA_ASSOCIATED, &wlvif->flags) || wl1271_rx_streaming_enable_work() 150 !test_bit(WL1271_FLAG_SOFT_GEMINI, &wl->flags))) wl1271_rx_streaming_enable_work() 183 if (!test_bit(WLVIF_FLAG_RX_STREAMING_STARTED, &wlvif->flags)) wl1271_rx_streaming_disable_work() 349 fw_ps = test_bit(hlid, &wl->ap_fw_ps_map); wl12xx_irq_ps_regulate_link() 603 if (!test_bit(WL1271_FLAG_FW_TX_BUSY, &wl->flags) && wlcore_irq_locked() 671 if (test_bit(WL1271_FLAG_SUSPENDED, &wl->flags)) { wlcore_irq() 695 if (!test_bit(WL1271_FLAG_FW_TX_BUSY, &wl->flags) && wlcore_irq() 801 WARN_ON(!test_bit(WL1271_FLAG_INTENDED_FW_RECOVERY, wl12xx_queue_recovery_work() 931 if (test_bit(WL1271_FLAG_RECOVERY_IN_PROGRESS, &wl->flags)) wlcore_save_freed_pkts() 994 if (!test_bit(WL1271_FLAG_INTENDED_FW_RECOVERY, &wl->flags)) { wl1271_recovery_work() 1001 !test_bit(WL1271_FLAG_INTENDED_FW_RECOVERY, &wl->flags)); wl1271_recovery_work() 1018 test_bit(WLVIF_FLAG_STA_ASSOCIATED, &wlvif->flags)) { wl1271_recovery_work() 1284 (!test_bit(hlid, wlvif->links_map)) || wl1271_op_tx() 1317 if (!test_bit(WL1271_FLAG_FW_TX_BUSY, &wl->flags) && wl1271_op_tx() 1318 !test_bit(WL1271_FLAG_TX_PENDING, &wl->flags)) wl1271_op_tx() 1331 if (test_bit(WL1271_FLAG_DUMMY_PACKET_PENDING, &wl->flags)) wl1271_tx_dummy_packet() 1342 if (!test_bit(WL1271_FLAG_FW_TX_BUSY, &wl->flags)) wl1271_tx_dummy_packet() 1417 if (test_bit(i, (unsigned long *)p->mask)) { wl1271_validate_wowlan_pattern() 1558 if (!test_bit(i, (unsigned long *)p->mask)) { wl1271_convert_wowlan_pattern_to_rx_filter() 1564 if (!test_bit(j, (unsigned long *)p->mask)) wl1271_convert_wowlan_pattern_to_rx_filter() 1675 if (!test_bit(WLVIF_FLAG_STA_ASSOCIATED, &wlvif->flags)) wl1271_configure_suspend_sta() 1705 if (!test_bit(WLVIF_FLAG_AP_STARTED, &wlvif->flags)) wl1271_configure_suspend_ap() 1741 if ((is_sta && !test_bit(WLVIF_FLAG_STA_ASSOCIATED, &wlvif->flags)) || wl1271_configure_resume() 1742 (is_ap && !test_bit(WLVIF_FLAG_AP_STARTED, &wlvif->flags))) wl1271_configure_resume() 1778 if (test_bit(WL1271_FLAG_RECOVERY_IN_PROGRESS, &wl->flags)) { wl1271_op_suspend() 1876 pending_recovery = test_bit(WL1271_FLAG_RECOVERY_IN_PROGRESS, wl1271_op_resume() 1979 if (!test_bit(WL1271_FLAG_RECOVERY_IN_PROGRESS, &wl->flags)) wlcore_op_stop_locked() 2130 if (!test_bit(WLVIF_FLAG_STA_ASSOCIATED, &wlvif->flags)) wlcore_connection_loss_work() 2429 if (test_bit(WL1271_FLAG_VIF_CHANGE_IN_PROGRESS, &wl->flags)) wl12xx_need_fw_change() 2575 if (test_bit(WL1271_FLAG_RECOVERY_IN_PROGRESS, &wl->flags) || wl1271_op_add_interface() 2576 test_bit(WLVIF_FLAG_INITIALIZED, &wlvif->flags)) { wl1271_op_add_interface() 2687 if (!test_bit(WL1271_FLAG_RECOVERY_IN_PROGRESS, &wl->flags)) { __wl1271_op_remove_interface() 2747 if (test_bit(WL1271_FLAG_RECOVERY_IN_PROGRESS, &wl->flags) && __wl1271_op_remove_interface() 2748 !test_bit(WL1271_FLAG_INTENDED_FW_RECOVERY, &wl->flags)) __wl1271_op_remove_interface() 2793 !test_bit(WLVIF_FLAG_INITIALIZED, &wlvif->flags)) wl1271_op_remove_interface() 2849 if (test_bit(WLVIF_FLAG_STA_ASSOCIATED, &wlvif->flags)) wlcore_join() 3070 bool cur_idle = !test_bit(WLVIF_FLAG_ACTIVE, &wlvif->flags); wl1271_sta_handle_idle() 3355 if (!test_bit(WLVIF_FLAG_AP_STARTED, &wlvif->flags)) { wl1271_set_key() 4057 if (test_bit(WLVIF_FLAG_AP_PROBE_RESP_SET, &wlvif->flags)) wlcore_set_beacon_template() 4179 if (!test_bit(WLVIF_FLAG_AP_STARTED, &wlvif->flags)) { wl1271_bss_info_changed_ap() 4192 if (test_bit(WLVIF_FLAG_AP_STARTED, &wlvif->flags)) { wl1271_bss_info_changed_ap() 4197 if (test_bit(wlvif->role_id, wl->roc_map)) wl1271_bss_info_changed_ap() 4295 test_bit(WLVIF_FLAG_IN_USE, &wlvif->flags)) { wlcore_clear_bssid() 4449 if (test_bit(WLVIF_FLAG_STA_AUTHORIZED, &wlvif->flags)) wl1271_bss_info_changed_sta() 4458 test_bit(WLVIF_FLAG_STA_ASSOCIATED, &wlvif->flags) && wl1271_bss_info_changed_sta() 4459 !test_bit(WLVIF_FLAG_IN_PS, &wlvif->flags)) { wl1271_bss_info_changed_sta() 4478 test_bit(WLVIF_FLAG_IN_PS, &wlvif->flags)) { wl1271_bss_info_changed_sta() 4582 if (unlikely(!test_bit(WLVIF_FLAG_INITIALIZED, &wlvif->flags))) wl1271_op_bss_info_changed() 4694 if (unlikely(!test_bit(WLVIF_FLAG_INITIALIZED, &wlvif->flags))) wlcore_op_assign_vif_chanctx() 4743 if (unlikely(!test_bit(WLVIF_FLAG_INITIALIZED, &wlvif->flags))) wlcore_op_unassign_vif_chanctx() 4776 WARN_ON(!test_bit(WLVIF_FLAG_BEACON_DISABLED, &wlvif->flags)); __wlcore_switch_vif_chan() 4850 if (!test_bit(WLVIF_FLAG_INITIALIZED, &wlvif->flags)) wl1271_op_conf_tx() 4958 if (!test_bit(hlid, wlvif->ap.sta_hlid_map)) wl1271_free_sta() 5017 if (WARN_ON(!test_bit(id, wlvif->ap.sta_hlid_map))) wl12xx_sta_remove() 5082 test_bit(wlvif->role_id, wl->roc_map)) wlcore_update_inconn_sta() 5171 if (test_bit(wlvif->role_id, wl->roc_map)) wl12xx_update_sta_state() 5366 !test_bit(WLVIF_FLAG_STA_ASSOCIATED, &wlvif->flags)) { wl12xx_set_bitrate_mask() 5400 if (test_bit(WLVIF_FLAG_STA_ASSOCIATED, &wlvif->flags)) wl12xx_op_channel_switch() 5413 if (test_bit(WLVIF_FLAG_STA_ASSOCIATED, &wlvif->flags)) { wl12xx_op_channel_switch() 5579 if (!test_bit(WLVIF_FLAG_INITIALIZED, &wlvif->flags)) __wlcore_roc_completed()
|
/linux-4.1.27/drivers/isdn/mISDN/ |
H A D | layer2.c | 122 return ((test_bit(FLG_MOD128, &l2->flag) && (!ui)) ? 2 : 1) + l2headersize() 123 (test_bit(FLG_LAPD, &l2->flag) ? 2 : 1); l2headersize() 129 return test_bit(FLG_LAPD, &l2->flag) ? 2 : 1; l2addrsize() 250 if (test_bit(FLG_L1_NOTREADY, &l2->flag)) { ph_data_confirm() 317 if (test_bit(FLG_LAPD, &l2->flag) && l2mgr() 318 !test_bit(FLG_FIXED_TEI, &l2->flag)) { l2mgr() 383 if (test_bit(FLG_MOD128, &l2->flag)) cansend() 387 return (p1 < l2->window) && !test_bit(FLG_PEER_BUSY, &l2->flag); cansend() 405 if (test_bit(FLG_LAPD, &l2->flag)) { sethdraddr() 406 if (test_bit(FLG_LAPD_NET, &l2->flag)) sethdraddr() 412 if (test_bit(FLG_ORIG, &l2->flag)) sethdraddr() 465 if (test_bit(FLG_MOD128, &l2->flag)) IsRR() 476 if (!test_bit(FLG_MOD128, &l2->flag)) IsSFrame() 486 return test_bit(FLG_MOD128, &l2->flag) ? d == SABME : d == SABM; IsSABME() 492 return test_bit(FLG_MOD128, &l2->flag) ? IsREJ() 505 return test_bit(FLG_MOD128, &l2->flag) ? IsRNR() 515 i = l2addrsize(l2) + (test_bit(FLG_MOD128, &l2->flag) ? 2 : 1); iframe_error() 516 if (test_bit(FLG_ORIG, &l2->flag)) iframe_error() 531 (test_bit(FLG_MOD128, &l2->flag) ? 2 : 1)) super_error() 540 if (test_bit(FLG_ORIG, &l2->flag)) unnum_error() 553 if (test_bit(FLG_ORIG, &l2->flag)) UI_error() 569 if (test_bit(FLG_ORIG, &l2->flag)) FRMR_error() 573 if (test_bit(FLG_MOD128, &l2->flag)) { FRMR_error() 594 if (test_bit(FLG_MOD128, &l2->flag)) legalnr() 607 if (test_bit(FLG_MOD128, &l2->flag)) setva() 700 if (test_bit(FLG_LAPB, &l2->flag)) lapb_dl_release_l2l3() 713 cmd = (test_bit(FLG_MOD128, &l2->flag) ? SABME : SABM) | 0x10; establishlink() 809 if (test_bit(FLG_LAPD_NET, &l2->flag)) tx_ui() 1082 if (!test_bit(FLG_L3_INIT, &l2->flag)) l2_st5_dm_release() 1084 if (test_bit(FLG_LAPB, &l2->flag)) l2_st5_dm_release() 1117 if (test_bit(FLG_MOD128, &l2->flag)) { enquiry_cr() 1135 if (test_bit(FLG_OWN_BUSY, &l2->flag)) enquiry_response() 1145 if (test_bit(FLG_OWN_BUSY, &l2->flag)) transmit_enquiry() 1172 if (test_bit(FLG_MOD128, &l2->flag)) { invoke_retransmission() 1201 if (test_bit(FLG_ORIG, &l2->flag)) l2_st7_got_super() 1213 if (test_bit(FLG_MOD128, &l2->flag)) { l2_st7_got_super() 1259 if (!test_bit(FLG_L3_INIT, &l2->flag)) l2_feed_i_if_reest() 1293 if (test_bit(FLG_MOD128, &l2->flag)) { l2_got_iframe() 1302 if (test_bit(FLG_OWN_BUSY, &l2->flag)) { l2_got_iframe() 1309 if (test_bit(FLG_MOD128, &l2->flag)) l2_got_iframe() 1333 if (!test_bit(FLG_PEER_BUSY, &l2->flag) && l2_got_iframe() 1377 if (test_bit(FLG_LAPD, &l2->flag) && l2_st5_tout_200() 1378 test_bit(FLG_DCHAN_BUSY, &l2->flag)) { l2_st5_tout_200() 1385 if (test_bit(FLG_LAPB, &l2->flag)) l2_st5_tout_200() 1394 send_uframe(l2, NULL, (test_bit(FLG_MOD128, &l2->flag) ? l2_st5_tout_200() 1404 if (test_bit(FLG_LAPD, &l2->flag) && l2_st6_tout_200() 1405 test_bit(FLG_DCHAN_BUSY, &l2->flag)) { l2_st6_tout_200() 1427 if (test_bit(FLG_LAPD, &l2->flag) && l2_st7_tout_200() 1428 test_bit(FLG_DCHAN_BUSY, &l2->flag)) { l2_st7_tout_200() 1444 if (test_bit(FLG_LAPD, &l2->flag) && l2_st8_tout_200() 1445 test_bit(FLG_DCHAN_BUSY, &l2->flag)) { l2_st8_tout_200() 1465 if (test_bit(FLG_LAPD, &l2->flag) && l2_st7_tout_203() 1466 test_bit(FLG_DCHAN_BUSY, &l2->flag)) { l2_st7_tout_203() 1490 if (test_bit(FLG_MOD128, &l2->flag)) l2_pull_iqueue() 1502 if (test_bit(FLG_MOD128, &l2->flag)) { l2_pull_iqueue() 1548 if (test_bit(FLG_ORIG, &l2->flag)) l2_st8_got_super() 1559 if (test_bit(FLG_MOD128, &l2->flag)) { l2_st8_got_super() 1895 if (test_bit(FLG_LAPD, &l2->flag)) { /* Maybe not needed */ ph_data_indication() 2017 if (test_bit(FLG_LAPB, &l2->flag)) l2_send() 2019 if (test_bit(FLG_L1_ACTIV, &l2->flag)) { l2_send() 2020 if (test_bit(FLG_LAPD, &l2->flag) || l2_send() 2021 test_bit(FLG_ORIG, &l2->flag)) l2_send() 2025 if (test_bit(FLG_LAPD, &l2->flag) || l2_send() 2026 test_bit(FLG_ORIG, &l2->flag)) { l2_send() 2035 if (test_bit(FLG_LAPB, &l2->flag)) l2_send() 2096 if (test_bit(FLG_LAPD, &l2->flag)) { release_l2() 2117 if (test_bit(FLG_LAPD, &l2->flag)) { l2_ctrl() 2158 if (test_bit(OPTION_L2_PMX, &options)) create_l2() 2162 if (test_bit(OPTION_L2_PTP, &options)) create_l2() 2164 if (test_bit(OPTION_L2_FIXEDTEI, &options)) create_l2() 2170 if (test_bit(OPTION_L2_PMX, &options)) create_l2() 2183 if (test_bit(OPTION_L2_PMX, &options)) create_l2() 2187 if (test_bit(OPTION_L2_PTP, &options)) create_l2() 2189 if (test_bit(OPTION_L2_FIXEDTEI, &options)) create_l2() 2195 if (test_bit(OPTION_L2_PMX, &options)) create_l2() 2224 if (test_bit(FLG_LAPB, &l2->flag) || create_l2() 2225 test_bit(FLG_FIXED_TEI, &l2->flag) || create_l2() 2226 test_bit(FLG_LAPD_NET, &l2->flag)) create_l2()
|
H A D | tei.c | 131 if (!test_bit(OPTION_L1_HOLD, &mgr->options)) { da_deactivate() 144 if (!test_bit(OPTION_L1_HOLD, &mgr->options)) { da_ui() 340 if (!test_bit(MGR_PH_ACTIVE, &mgr->options)) do_send() 363 if (test_bit(MGR_PH_NOTREADY, &mgr->options)) { do_ack() 365 if (test_bit(MGR_PH_ACTIVE, &mgr->options)) { do_ack() 386 if (!test_bit(MGR_PH_ACTIVE, &mgr->options)) { mgr_send_down() 397 if (!test_bit(MGR_OPT_NETWORK, &mgr->options)) /* only net send UI */ dl_unit_data() 399 if (!test_bit(MGR_PH_ACTIVE, &mgr->options)) dl_unit_data() 447 if (test_bit(MGR_OPT_NETWORK, &mgr->options)) put_tei_msg() 772 if (test_bit(FLG_FIXED_TEI, &tm->l2->flag)) tei_ph_data_ind() 917 if (!test_bit(MGR_OPT_NETWORK, &mgr->options)) ph_data_ind() 924 if (test_bit(MGR_OPT_NETWORK, &mgr->options)) ph_data_ind() 947 if (test_bit(FLG_FIXED_TEI, &l2->flag)) l2_tei() 956 if (test_bit(MGR_OPT_NETWORK, &tm->mgr->options)) l2_tei() 958 if (test_bit(MGR_OPT_USER, &tm->mgr->options)) l2_tei() 962 if (test_bit(MGR_OPT_NETWORK, &tm->mgr->options)) l2_tei() 966 if (test_bit(MGR_OPT_NETWORK, &tm->mgr->options)) l2_tei() 970 if (test_bit(MGR_OPT_NETWORK, &tm->mgr->options)) l2_tei() 1011 if (test_bit(MGR_OPT_NETWORK, &mgr->options)) { create_teimgr() 1022 } else if (test_bit(MGR_OPT_USER, &mgr->options)) { create_teimgr() 1041 if (test_bit(MGR_PH_ACTIVE, &mgr->options)) create_teimgr() 1073 if (test_bit(OPTION_L2_PMX, &opt)) create_teimgr() 1081 if (test_bit(OPTION_L2_PMX, &opt)) create_teimgr() 1153 if (test_bit(MGR_OPT_NETWORK, &mgr->options)) { free_teimanager() 1156 if (test_bit(OPTION_L2_CLEANUP, &mgr->options)) { free_teimanager() 1171 if (test_bit(MGR_OPT_USER, &mgr->options)) { free_teimanager() 1216 if (test_bit(MGR_OPT_USER, &mgr->options)) check_data()
|
H A D | layer1.c | 129 if (test_bit(FLG_L1_ACTIVATING, &l1->Flags)) l1_deact_cnf() 148 if (test_bit(FLG_L1_ACTIVATING, &l1->Flags)) { l1_power_up_s() 185 if (!test_bit(FLG_L1_ACTIVATED, &l1->Flags)) { l1_info4_ind() 249 if ((!test_bit(FLG_L1_DEACTTIMER, &l1->Flags)) && l1_activate_no() 250 (!test_bit(FLG_L1_T3RUN, &l1->Flags))) { l1_activate_no() 352 if (test_bit(FLG_L1_ACTIVATED, &l1->Flags)) l1_event()
|
/linux-4.1.27/drivers/gpio/ |
H A D | gpiolib-sysfs.c | 49 if (!test_bit(FLAG_EXPORT, &desc->flags)) { gpio_direction_show() 54 test_bit(FLAG_IS_OUT, &desc->flags) gpio_direction_show() 70 if (!test_bit(FLAG_EXPORT, &desc->flags)) gpio_direction_store() 96 if (!test_bit(FLAG_EXPORT, &desc->flags)) gpio_value_show() 113 if (!test_bit(FLAG_EXPORT, &desc->flags)) gpio_value_store() 115 else if (!test_bit(FLAG_IS_OUT, &desc->flags)) gpio_value_store() 170 if (test_bit(FLAG_TRIG_FALL, &gpio_flags)) gpio_setup_irq() 171 irq_flags |= test_bit(FLAG_ACTIVE_LOW, &desc->flags) ? gpio_setup_irq() 173 if (test_bit(FLAG_TRIG_RISE, &gpio_flags)) gpio_setup_irq() 174 irq_flags |= test_bit(FLAG_ACTIVE_LOW, &desc->flags) ? gpio_setup_irq() 240 if (!test_bit(FLAG_EXPORT, &desc->flags)) gpio_edge_show() 274 if (!test_bit(FLAG_EXPORT, &desc->flags)) gpio_edge_store() 294 if (!!test_bit(FLAG_ACTIVE_LOW, &desc->flags) == !!value) sysfs_set_active_low() 303 if (dev != NULL && (!!test_bit(FLAG_TRIG_RISE, &desc->flags) ^ sysfs_set_active_low() 304 !!test_bit(FLAG_TRIG_FALL, &desc->flags))) { sysfs_set_active_low() 322 if (!test_bit(FLAG_EXPORT, &desc->flags)) gpio_active_low_show() 326 !!test_bit(FLAG_ACTIVE_LOW, &desc->flags)); gpio_active_low_show() 341 if (!test_bit(FLAG_EXPORT, &desc->flags)) { gpio_active_low_store() 365 bool show_direction = test_bit(FLAG_SYSFS_DIR, &desc->flags); gpio_is_visible() 373 if (!show_direction && test_bit(FLAG_IS_OUT, &desc->flags)) gpio_is_visible() 583 if (!test_bit(FLAG_REQUESTED, &desc->flags) || gpiod_export() 584 test_bit(FLAG_EXPORT, &desc->flags)) { gpiod_export() 588 test_bit(FLAG_REQUESTED, &desc->flags), gpiod_export() 589 test_bit(FLAG_EXPORT, &desc->flags)); gpiod_export() 653 if (test_bit(FLAG_EXPORT, &desc->flags)) { gpiod_export_link() 699 if (test_bit(FLAG_EXPORT, &desc->flags)) { gpiod_sysfs_set_active_low() 737 if (test_bit(FLAG_EXPORT, &desc->flags)) { gpiod_unexport()
|
/linux-4.1.27/drivers/input/keyboard/ |
H A D | sunkbd.c | 164 (!!test_bit(LED_CAPSL, dev->led) << 3) | sunkbd_event() 165 (!!test_bit(LED_SCROLLL, dev->led) << 2) | sunkbd_event() 166 (!!test_bit(LED_COMPOSE, dev->led) << 1) | sunkbd_event() 167 !!test_bit(LED_NUML, dev->led)); sunkbd_event() 231 (!!test_bit(LED_CAPSL, sunkbd->dev->led) << 3) | sunkbd_reinit() 232 (!!test_bit(LED_SCROLLL, sunkbd->dev->led) << 2) | sunkbd_reinit() 233 (!!test_bit(LED_COMPOSE, sunkbd->dev->led) << 1) | sunkbd_reinit() 234 !!test_bit(LED_NUML, sunkbd->dev->led)); sunkbd_reinit() 236 SUNKBD_CMD_NOCLICK - !!test_bit(SND_CLICK, sunkbd->dev->snd)); sunkbd_reinit() 238 SUNKBD_CMD_BELLOFF - !!test_bit(SND_BELL, sunkbd->dev->snd)); sunkbd_reinit()
|
H A D | sh_keysc.c | 145 if (test_bit(i, keys0) == test_bit(i, priv->last_keys)) sh_keysc_isr() 148 if (test_bit(i, keys1) || test_bit(i, keys0)) { sh_keysc_isr() 153 if (!test_bit(i, keys1)) { sh_keysc_isr()
|
/linux-4.1.27/arch/x86/kvm/ |
H A D | kvm_cache_regs.h | 12 if (!test_bit(reg, (unsigned long *)&vcpu->arch.regs_avail)) kvm_register_read() 41 if (!test_bit(VCPU_EXREG_PDPTR, kvm_pdptr_read() 71 if (!test_bit(VCPU_EXREG_CR3, (ulong *)&vcpu->arch.regs_avail)) kvm_read_cr3()
|
H A D | ioapic.h | 105 return test_bit(vector, ioapic->handled_vectors); kvm_ioapic_handles_vector()
|
/linux-4.1.27/drivers/bluetooth/ |
H A D | hci_ldisc.c | 168 if (test_bit(HCI_UART_TX_WAKEUP, &hu->tx_state)) hci_uart_write_work() 195 if (!test_bit(HCI_UART_INIT_PENDING, &hu->hdev_flags)) hci_uart_init_ready() 232 if (test_bit(HCI_UART_PROTO_SET, &hu->flags)) hci_uart_flush() 256 if (!test_bit(HCI_RUNNING, &hdev->flags)) hci_uart_send_frame() 277 if (!test_bit(HCI_UART_VND_DETECT, &hu->hdev_flags)) hci_uart_setup() 390 if (test_bit(HCI_UART_REGISTERED, &hu->flags)) hci_uart_tty_close() 422 if (test_bit(HCI_UART_PROTO_SET, &hu->flags)) hci_uart_tty_wakeup() 446 if (!test_bit(HCI_UART_PROTO_SET, &hu->flags)) hci_uart_tty_receive() 485 if (test_bit(HCI_UART_RAW_DEVICE, &hu->hdev_flags)) hci_uart_register_dev() 488 if (test_bit(HCI_UART_EXT_CONFIG, &hu->hdev_flags)) hci_uart_register_dev() 491 if (!test_bit(HCI_UART_RESET_ON_INIT, &hu->hdev_flags)) hci_uart_register_dev() 494 if (test_bit(HCI_UART_CREATE_AMP, &hu->hdev_flags)) hci_uart_register_dev() 499 if (test_bit(HCI_UART_INIT_PENDING, &hu->hdev_flags)) hci_uart_register_dev() 592 if (test_bit(HCI_UART_PROTO_SET, &hu->flags)) hci_uart_tty_ioctl() 597 if (test_bit(HCI_UART_REGISTERED, &hu->flags)) hci_uart_tty_ioctl() 602 if (test_bit(HCI_UART_PROTO_SET, &hu->flags)) hci_uart_tty_ioctl()
|
H A D | bluecard_cs.c | 163 if (!test_bit(CARD_HAS_PCCARD_ID, &(info->hw_state))) bluecard_activity_led_timeout() 166 if (test_bit(CARD_HAS_ACTIVITY_LED, &(info->hw_state))) { bluecard_activity_led_timeout() 180 if (!test_bit(CARD_HAS_PCCARD_ID, &(info->hw_state))) bluecard_enable_activity_led() 183 if (test_bit(CARD_HAS_ACTIVITY_LED, &(info->hw_state))) { bluecard_enable_activity_led() 225 if (!test_bit(XMIT_SENDING_READY, &(info->tx_state))) bluecard_write_wakeup() 246 if (test_bit(XMIT_BUFFER_NUMBER, &(info->tx_state))) { bluecard_write_wakeup() 247 if (!test_bit(XMIT_BUF_TWO_READY, &(info->tx_state))) bluecard_write_wakeup() 253 if (!test_bit(XMIT_BUF_ONE_READY, &(info->tx_state))) bluecard_write_wakeup() 337 } while (test_bit(XMIT_WAKEUP, &(info->tx_state))); bluecard_write_wakeup() 385 if (test_bit(XMIT_SENDING_READY, &(info->tx_state))) bluecard_receive() 509 if (!test_bit(CARD_READY, &(info->hw_state))) bluecard_interrupt() 628 if (test_bit(CARD_HAS_PCCARD_ID, &(info->hw_state))) bluecard_hci_open() 634 if (test_bit(CARD_HAS_PCCARD_ID, &(info->hw_state))) { bluecard_hci_open() 654 if (test_bit(CARD_HAS_PCCARD_ID, &(info->hw_state))) { bluecard_hci_close()
|
/linux-4.1.27/fs/ocfs2/ |
H A D | aops.h | 64 test_bit(0, (unsigned long *)&iocb->private) ocfs2_iocb_set_rw_locked() 90 test_bit(OCFS2_IOCB_RW_LOCK_LEVEL, (unsigned long *)&iocb->private) 96 test_bit(OCFS2_IOCB_SEM, (unsigned long *)&iocb->private) 103 test_bit(OCFS2_IOCB_UNALIGNED_IO, (unsigned long *)&iocb->private)
|
/linux-4.1.27/arch/blackfin/include/asm/ |
H A D | bitops.h | 76 static inline int test_bit(int nr, const volatile unsigned long *addr) test_bit() function 100 #define test_bit __skip_test_bit macro 102 #undef test_bit macro 106 /* Needs to be after test_bit and friends */
|
/linux-4.1.27/drivers/md/ |
H A D | raid5.c | 246 test_bit(STRIPE_BIOFILL_RUN, &sh->state) || stripe_operations_active() 247 test_bit(STRIPE_COMPUTE_RUN, &sh->state); stripe_operations_active() 298 if (test_bit(STRIPE_HANDLE, &sh->state)) { do_release_stripe() 299 if (test_bit(STRIPE_DELAYED, &sh->state) && do_release_stripe() 300 !test_bit(STRIPE_PREREAD_ACTIVE, &sh->state)) do_release_stripe() 302 else if (test_bit(STRIPE_BIT_DELAY, &sh->state) && do_release_stripe() 323 if (!test_bit(STRIPE_EXPANDING, &sh->state)) do_release_stripe() 527 BUG_ON(test_bit(STRIPE_HANDLE, &sh->state)); init_stripe() 545 test_bit(R5_LOCKED, &dev->flags)) { init_stripe() 549 test_bit(R5_LOCKED, &dev->flags)); init_stripe() 598 if (rdev && test_bit(Faulty, &rdev->flags)) calc_degraded() 600 if (!rdev || test_bit(Faulty, &rdev->flags)) calc_degraded() 602 else if (test_bit(In_sync, &rdev->flags)) calc_degraded() 624 if (rdev && test_bit(Faulty, &rdev->flags)) calc_degraded() 626 if (!rdev || test_bit(Faulty, &rdev->flags)) calc_degraded() 628 else if (test_bit(In_sync, &rdev->flags)) calc_degraded() 675 if (!test_bit(R5_INACTIVE_BLOCKED, &conf->cache_state)) { get_active_stripe() 678 !test_bit(R5_DID_ALLOC, &conf->cache_state)) get_active_stripe() 692 || !test_bit(R5_INACTIVE_BLOCKED, get_active_stripe() 704 if (!test_bit(STRIPE_HANDLE, &sh->state)) get_active_stripe() 707 !test_bit(STRIPE_EXPANDING, &sh->state)); get_active_stripe() 751 return test_bit(STRIPE_BATCH_READY, &sh->state) && stripe_can_batch() 752 !test_bit(STRIPE_BITMAP_PENDING, &sh->state) && stripe_can_batch() 778 if (!test_bit(STRIPE_HANDLE, &head->state)) stripe_add_to_batch_list() 781 !test_bit(STRIPE_EXPANDING, &head->state)); stripe_add_to_batch_list() 843 if (test_bit(STRIPE_BIT_DELAY, &sh->batch_head->state) && stripe_add_to_batch_list() 903 if (test_bit(R5_Discard, &sh->dev[i].flags)) ops_run_io() 935 if (test_bit(R5_ReadRepl, &head_sh->dev[i].flags) && rrdev) ops_run_io() 940 if (rdev && test_bit(Faulty, &rdev->flags)) ops_run_io() 944 if (rrdev && test_bit(Faulty, &rrdev->flags)) ops_run_io() 955 test_bit(WriteErrorSeen, &rdev->flags)) { ops_run_io() 1014 if (test_bit(R5_ReadNoMerge, &head_sh->dev[i].flags)) ops_run_io() 1017 if (test_bit(R5_SkipCopy, &sh->dev[i].flags)) ops_run_io() 1018 WARN_ON(test_bit(R5_UPTODATE, &sh->dev[i].flags)); ops_run_io() 1066 if (test_bit(R5_SkipCopy, &sh->dev[i].flags)) ops_run_io() 1067 WARN_ON(test_bit(R5_UPTODATE, &sh->dev[i].flags)); ops_run_io() 1221 if (test_bit(R5_Wantfill, &dev->flags)) { ops_run_biofill() 1250 BUG_ON(!test_bit(R5_Wantcompute, &tgt->flags)); mark_target_uptodate() 1308 BUG_ON(!test_bit(R5_Wantcompute, &tgt->flags)); ops_run_compute5() 1357 test_bit(R5_Wantdrain, &dev->flags)) || set_syndrome_sources() 1394 BUG_ON(!test_bit(R5_Wantcompute, &tgt->flags)); ops_run_compute6_1() 1444 BUG_ON(!test_bit(R5_Wantcompute, &tgt->flags)); ops_run_compute6_2() 1445 BUG_ON(!test_bit(R5_Wantcompute, &tgt2->flags)); ops_run_compute6_2() 1560 if (test_bit(R5_Wantdrain, &dev->flags)) ops_run_prexor5() 1667 fua |= test_bit(R5_WantFUA, &sh->dev[i].flags); ops_complete_reconstruct() 1668 sync |= test_bit(R5_SyncIO, &sh->dev[i].flags); ops_complete_reconstruct() 1669 discard |= test_bit(R5_Discard, &sh->dev[i].flags); ops_complete_reconstruct() 1676 if (!discard && !test_bit(R5_SkipCopy, &dev->flags)) ops_complete_reconstruct() 1719 if (!test_bit(R5_Discard, &sh->dev[i].flags)) ops_run_reconstruct5() 1801 if (!test_bit(R5_Discard, &sh->dev[i].flags)) ops_run_reconstruct6() 1923 if (test_bit(STRIPE_OP_BIOFILL, &ops_request)) { raid_run_ops() 1928 if (test_bit(STRIPE_OP_COMPUTE_BLK, &ops_request)) { raid_run_ops() 1938 if (tx && !test_bit(STRIPE_OP_RECONSTRUCT, &ops_request)) raid_run_ops() 1942 if (test_bit(STRIPE_OP_PREXOR, &ops_request)) { raid_run_ops() 1949 if (test_bit(STRIPE_OP_BIODRAIN, &ops_request)) { raid_run_ops() 1954 if (test_bit(STRIPE_OP_RECONSTRUCT, &ops_request)) { raid_run_ops() 1961 if (test_bit(STRIPE_OP_CHECK, &ops_request)) { raid_run_ops() 2291 int uptodate = test_bit(BIO_UPTODATE, &bi->bi_flags); raid5_end_read_request() 2307 if (test_bit(R5_ReadRepl, &sh->dev[i].flags)) raid5_end_read_request() 2323 if (test_bit(R5_ReadError, &sh->dev[i].flags)) { raid5_end_read_request() 2338 } else if (test_bit(R5_ReadNoMerge, &sh->dev[i].flags)) raid5_end_read_request() 2350 if (test_bit(R5_ReadRepl, &sh->dev[i].flags)) raid5_end_read_request() 2367 } else if (test_bit(R5_ReWrite, &sh->dev[i].flags)) { raid5_end_read_request() 2384 if (set_bad && test_bit(In_sync, &rdev->flags) raid5_end_read_request() 2385 && !test_bit(R5_ReadNoMerge, &sh->dev[i].flags)) raid5_end_read_request() 2388 if (test_bit(R5_ReadNoMerge, &sh->dev[i].flags)) { raid5_end_read_request() 2397 && test_bit(In_sync, &rdev->flags) raid5_end_read_request() 2415 int uptodate = test_bit(BIO_UPTODATE, &bi->bi_flags); raid5_end_write_request() 2465 if (test_bit(R5_ReadError, &sh->dev[i].flags)) raid5_end_write_request() 2898 BUG_ON(!(test_bit(R5_UPTODATE, &sh->dev[pd_idx].flags) || schedule_reconstruction() 2899 test_bit(R5_Wantcompute, &sh->dev[pd_idx].flags))); schedule_reconstruction() 2901 (!(test_bit(R5_UPTODATE, &sh->dev[qd_idx].flags) || schedule_reconstruction() 2902 test_bit(R5_Wantcompute, &sh->dev[qd_idx].flags)))); schedule_reconstruction() 2910 (test_bit(R5_UPTODATE, &dev->flags) || schedule_reconstruction() 2911 test_bit(R5_Wantcompute, &dev->flags))) { schedule_reconstruction() 3083 if (test_bit(R5_ReadError, &sh->dev[i].flags)) { handle_failed_stripe() 3087 if (rdev && test_bit(In_sync, &rdev->flags)) handle_failed_stripe() 3132 WARN_ON(test_bit(R5_UPTODATE, &sh->dev[i].flags)); handle_failed_stripe() 3152 if (!test_bit(R5_Wantfill, &sh->dev[i].flags) && handle_failed_stripe() 3153 (!test_bit(R5_Insync, &sh->dev[i].flags) || handle_failed_stripe() 3154 test_bit(R5_ReadError, &sh->dev[i].flags))) { handle_failed_stripe() 3207 if (test_bit(MD_RECOVERY_RECOVER, &conf->mddev->recovery)) { handle_failed_sync() 3214 && !test_bit(Faulty, &rdev->flags) handle_failed_sync() 3215 && !test_bit(In_sync, &rdev->flags) handle_failed_sync() 3221 && !test_bit(Faulty, &rdev->flags) handle_failed_sync() 3222 && !test_bit(In_sync, &rdev->flags) handle_failed_sync() 3241 && !test_bit(Faulty, &rdev->flags) want_replace() 3242 && !test_bit(In_sync, &rdev->flags) want_replace() 3266 if (test_bit(R5_LOCKED, &dev->flags) || need_this_block() 3267 test_bit(R5_UPTODATE, &dev->flags)) need_this_block() 3274 (dev->towrite && !test_bit(R5_OVERWRITE, &dev->flags))) need_this_block() 3303 if (test_bit(R5_Insync, &dev->flags) && need_this_block() 3304 !test_bit(STRIPE_PREREAD_ACTIVE, &sh->state)) need_this_block() 3314 !test_bit(R5_UPTODATE, &fdev[i]->flags) && need_this_block() 3315 !test_bit(R5_OVERWRITE, &fdev[i]->flags)) need_this_block() 3339 !test_bit(R5_UPTODATE, &fdev[i]->flags) && need_this_block() 3340 !test_bit(R5_OVERWRITE, &fdev[i]->flags)) need_this_block() 3357 BUG_ON(test_bit(R5_Wantcompute, &dev->flags)); fetch_block() 3358 BUG_ON(test_bit(R5_Wantread, &dev->flags)); fetch_block() 3390 if (!test_bit(R5_UPTODATE, fetch_block() 3407 } else if (test_bit(R5_Insync, &dev->flags)) { fetch_block() 3432 if (!test_bit(STRIPE_COMPUTE_RUN, &sh->state) && !sh->check_state && handle_stripe_fill() 3459 if (!test_bit(R5_LOCKED, &dev->flags) && handle_stripe_clean_event() 3460 (test_bit(R5_UPTODATE, &dev->flags) || handle_stripe_clean_event() 3461 test_bit(R5_Discard, &dev->flags) || handle_stripe_clean_event() 3462 test_bit(R5_SkipCopy, &dev->flags))) { handle_stripe_clean_event() 3469 WARN_ON(test_bit(R5_UPTODATE, &dev->flags)); handle_stripe_clean_event() 3489 !test_bit(STRIPE_DEGRADED, &sh->state), handle_stripe_clean_event() 3502 } else if (test_bit(R5_Discard, &dev->flags)) handle_stripe_clean_event() 3504 WARN_ON(test_bit(R5_SkipCopy, &dev->flags)); handle_stripe_clean_event() 3508 test_bit(R5_Discard, &sh->dev[sh->pd_idx].flags)) { handle_stripe_clean_event() 3536 if (test_bit(STRIPE_SYNC_REQUESTED, &sh->state)) handle_stripe_clean_event() 3578 !test_bit(R5_LOCKED, &dev->flags) && handle_stripe_dirtying() 3579 !(test_bit(R5_UPTODATE, &dev->flags) || handle_stripe_dirtying() 3580 test_bit(R5_Wantcompute, &dev->flags))) { handle_stripe_dirtying() 3581 if (test_bit(R5_Insync, &dev->flags)) handle_stripe_dirtying() 3587 if (!test_bit(R5_OVERWRITE, &dev->flags) && handle_stripe_dirtying() 3589 !test_bit(R5_LOCKED, &dev->flags) && handle_stripe_dirtying() 3590 !(test_bit(R5_UPTODATE, &dev->flags) || handle_stripe_dirtying() 3591 test_bit(R5_Wantcompute, &dev->flags))) { handle_stripe_dirtying() 3592 if (test_bit(R5_Insync, &dev->flags)) handle_stripe_dirtying() 3610 !test_bit(R5_LOCKED, &dev->flags) && handle_stripe_dirtying() 3611 !(test_bit(R5_UPTODATE, &dev->flags) || handle_stripe_dirtying() 3612 test_bit(R5_Wantcompute, &dev->flags)) && handle_stripe_dirtying() 3613 test_bit(R5_Insync, &dev->flags)) { handle_stripe_dirtying() 3614 if (test_bit(STRIPE_PREREAD_ACTIVE, handle_stripe_dirtying() 3634 if (!test_bit(R5_OVERWRITE, &dev->flags) && handle_stripe_dirtying() 3636 !test_bit(R5_LOCKED, &dev->flags) && handle_stripe_dirtying() 3637 !(test_bit(R5_UPTODATE, &dev->flags) || handle_stripe_dirtying() 3638 test_bit(R5_Wantcompute, &dev->flags))) { handle_stripe_dirtying() 3640 if (test_bit(R5_Insync, &dev->flags) && handle_stripe_dirtying() 3641 test_bit(STRIPE_PREREAD_ACTIVE, handle_stripe_dirtying() 3658 rcw, qread, test_bit(STRIPE_DELAYED, &sh->state)); handle_stripe_dirtying() 3662 !test_bit(STRIPE_PREREAD_ACTIVE, &sh->state)) handle_stripe_dirtying() 3675 if ((s->req_compute || !test_bit(STRIPE_COMPUTE_RUN, &sh->state)) && handle_stripe_dirtying() 3677 !test_bit(STRIPE_BIT_DELAY, &sh->state))) handle_stripe_dirtying() 3708 if (test_bit(STRIPE_INSYNC, &sh->state)) handle_parity_checks5() 3712 BUG_ON(!test_bit(R5_UPTODATE, &dev->flags)); handle_parity_checks5() 3744 if (test_bit(MD_RECOVERY_CHECK, &conf->mddev->recovery)) handle_parity_checks5() 3832 if (test_bit(STRIPE_INSYNC, &sh->state)) handle_parity_checks6() 3896 if (test_bit(MD_RECOVERY_CHECK, &conf->mddev->recovery)) handle_parity_checks6() 3959 if (!test_bit(STRIPE_EXPANDING, &sh2->state) || handle_stripe_expansion() 3960 test_bit(R5_Expanded, &sh2->dev[dd_idx].flags)) { handle_stripe_expansion() 3977 !test_bit(R5_Expanded, &sh2->dev[j].flags)) handle_stripe_expansion() 4014 s->expanding = test_bit(STRIPE_EXPAND_SOURCE, &sh->state) && !sh->batch_head; analyse_stripe() 4015 s->expanded = test_bit(STRIPE_EXPAND_READY, &sh->state) && !sh->batch_head; analyse_stripe() 4037 if (test_bit(R5_UPTODATE, &dev->flags) && dev->toread && analyse_stripe() 4038 !test_bit(STRIPE_BIOFILL_RUN, &sh->state)) analyse_stripe() 4042 if (test_bit(R5_LOCKED, &dev->flags)) analyse_stripe() 4044 if (test_bit(R5_UPTODATE, &dev->flags)) analyse_stripe() 4046 if (test_bit(R5_Wantcompute, &dev->flags)) { analyse_stripe() 4051 if (test_bit(R5_Wantfill, &dev->flags)) analyse_stripe() 4057 if (!test_bit(R5_OVERWRITE, &dev->flags)) analyse_stripe() 4066 if (rdev && !test_bit(Faulty, &rdev->flags) && analyse_stripe() 4077 if (rdev && test_bit(Faulty, &rdev->flags)) analyse_stripe() 4083 && (test_bit(Blocked, &rdev->flags) analyse_stripe() 4097 if (!test_bit(WriteErrorSeen, &rdev->flags) && analyse_stripe() 4098 test_bit(R5_UPTODATE, &dev->flags)) { analyse_stripe() 4105 } else if (test_bit(In_sync, &rdev->flags)) analyse_stripe() 4110 else if (test_bit(R5_UPTODATE, &dev->flags) && analyse_stripe() 4111 test_bit(R5_Expanded, &dev->flags)) analyse_stripe() 4118 if (test_bit(R5_WriteError, &dev->flags)) { analyse_stripe() 4125 if (rdev2 && !test_bit(Faulty, &rdev2->flags)) { analyse_stripe() 4131 if (test_bit(R5_MadeGood, &dev->flags)) { analyse_stripe() 4136 if (rdev2 && !test_bit(Faulty, &rdev2->flags)) { analyse_stripe() 4142 if (test_bit(R5_MadeGoodRepl, &dev->flags)) { analyse_stripe() 4145 if (rdev2 && !test_bit(Faulty, &rdev2->flags)) { analyse_stripe() 4151 if (!test_bit(R5_Insync, &dev->flags)) { analyse_stripe() 4156 if (test_bit(R5_ReadError, &dev->flags)) analyse_stripe() 4158 if (!test_bit(R5_Insync, &dev->flags)) { analyse_stripe() 4162 if (rdev && !test_bit(Faulty, &rdev->flags)) analyse_stripe() 4166 if (test_bit(STRIPE_SYNCING, &sh->state)) { analyse_stripe() 4177 test_bit(MD_RECOVERY_REQUESTED, &(conf->mddev->recovery))) analyse_stripe() 4307 if (test_bit(STRIPE_SYNC_REQUESTED, &sh->state) && !sh->batch_head) { handle_stripe() 4310 if (!test_bit(STRIPE_DISCARD, &sh->state) && handle_stripe() 4344 if (s.to_fill && !test_bit(STRIPE_BIOFILL_RUN, &sh->state)) { handle_stripe() 4379 BUG_ON(!test_bit(R5_UPTODATE, &sh->dev[sh->pd_idx].flags) && handle_stripe() 4380 !test_bit(R5_Discard, &sh->dev[sh->pd_idx].flags)); handle_stripe() 4382 !test_bit(R5_UPTODATE, &sh->dev[sh->qd_idx].flags) && handle_stripe() 4383 !test_bit(R5_Discard, &sh->dev[sh->qd_idx].flags)); handle_stripe() 4386 if (test_bit(R5_LOCKED, &dev->flags) && handle_stripe() 4395 if (!test_bit(R5_Insync, &dev->flags) || handle_stripe() 4418 (s.p_failed || ((test_bit(R5_Insync, &pdev->flags) handle_stripe() 4419 && !test_bit(R5_LOCKED, &pdev->flags) handle_stripe() 4420 && (test_bit(R5_UPTODATE, &pdev->flags) || handle_stripe() 4421 test_bit(R5_Discard, &pdev->flags))))) && handle_stripe() 4422 (s.q_failed || ((test_bit(R5_Insync, &qdev->flags) handle_stripe() 4423 && !test_bit(R5_LOCKED, &qdev->flags) handle_stripe() 4424 && (test_bit(R5_UPTODATE, &qdev->flags) || handle_stripe() 4425 test_bit(R5_Discard, &qdev->flags)))))) handle_stripe() 4455 !test_bit(STRIPE_COMPUTE_RUN, &sh->state) && handle_stripe() 4456 !test_bit(STRIPE_INSYNC, &sh->state))) { handle_stripe() 4464 && !test_bit(STRIPE_COMPUTE_RUN, &sh->state) handle_stripe() 4465 && !test_bit(STRIPE_REPLACED, &sh->state)) { handle_stripe() 4468 if (test_bit(R5_NeedReplace, &sh->dev[i].flags)) { handle_stripe() 4469 WARN_ON(!test_bit(R5_UPTODATE, &sh->dev[i].flags)); handle_stripe() 4479 !test_bit(STRIPE_COMPUTE_RUN, &sh->state) && handle_stripe() 4480 test_bit(STRIPE_INSYNC, &sh->state)) { handle_stripe() 4493 if (test_bit(R5_ReadError, &dev->flags) handle_stripe() 4494 && !test_bit(R5_LOCKED, &dev->flags) handle_stripe() 4495 && test_bit(R5_UPTODATE, &dev->flags) handle_stripe() 4497 if (!test_bit(R5_ReWrite, &dev->flags)) { handle_stripe() 4515 if (sh_src && test_bit(STRIPE_EXPAND_SOURCE, &sh_src->state)) { handle_stripe() 4539 if (s.expanded && test_bit(STRIPE_EXPANDING, &sh->state) && handle_stripe() 4553 !test_bit(STRIPE_COMPUTE_RUN, &sh->state)) handle_stripe() 4663 if (test_bit(R5_INACTIVE_BLOCKED, &conf->cache_state)) raid5_congested() 4765 int uptodate = test_bit(BIO_UPTODATE, &bi->bi_flags); raid5_align_endio() 4844 if (!rdev || test_bit(Faulty, &rdev->flags) || chunk_aligned_read() 4848 (test_bit(Faulty, &rdev->flags) || chunk_aligned_read() 4849 !(test_bit(In_sync, &rdev->flags) || chunk_aligned_read() 4938 else if (!test_bit(STRIPE_IO_STARTED, &sh->state)) { __get_priority_stripe() 5092 if (test_bit(STRIPE_SYNCING, &sh->state)) { make_discard_request() 5287 if (test_bit(STRIPE_EXPANDING, &sh->state) || make_request() 5449 || test_bit(MD_RECOVERY_INTR, &mddev->recovery)); reshape_request() 5458 test_bit(MD_RECOVERY_INTR, &mddev->recovery)); reshape_request() 5459 if (test_bit(MD_RECOVERY_INTR, &mddev->recovery)) reshape_request() 5544 || test_bit(MD_RECOVERY_INTR, &mddev->recovery)); reshape_request() 5553 !test_bit(MD_CHANGE_DEVS, &mddev->flags) reshape_request() 5554 || test_bit(MD_RECOVERY_INTR, &mddev->recovery)); reshape_request() 5555 if (test_bit(MD_RECOVERY_INTR, &mddev->recovery)) reshape_request() 5579 if (test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery)) { sync_request() 5597 if (test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery)) sync_request() 5611 test_bit(MD_RECOVERY_SYNC, &mddev->recovery)) { sync_request() 5616 if (!test_bit(MD_RECOVERY_REQUESTED, &mddev->recovery) && sync_request() 5644 if (rdev == NULL || test_bit(Faulty, &rdev->flags)) sync_request() 6535 if (test_bit(Replacement, &rdev->flags)) { rdev_for_each() 6545 if (test_bit(In_sync, &rdev->flags)) { rdev_for_each() 6793 if (test_bit(In_sync, &rdev->flags)) { 7001 test_bit(In_sync, &conf->disks[i].rdev->flags) ? "U" : "_"); status() 7024 i, !test_bit(Faulty, &tmp->rdev->flags), print_raid5_conf() 7041 && !test_bit(Faulty, &tmp->replacement->flags) raid5_spare_active() 7059 && !test_bit(Faulty, &tmp->rdev->flags) raid5_spare_active() 7092 if (test_bit(In_sync, &rdev->flags) || raid5_remove_disk() 7100 if (!test_bit(Faulty, &rdev->flags) && raid5_remove_disk() 7176 if (test_bit(WantReplacement, &p->rdev->flags) && raid5_add_disk() 7295 if (test_bit(MD_RECOVERY_RUNNING, &mddev->recovery)) raid5_start_reshape() 7305 if (!test_bit(In_sync, &rdev->flags) rdev_for_each() 7306 && !test_bit(Faulty, &rdev->flags)) rdev_for_each() 7366 !test_bit(Faulty, &rdev->flags)) { rdev_for_each() 7378 && !test_bit(Faulty, &rdev->flags)) { 7432 if (!test_bit(MD_RECOVERY_INTR, &conf->mddev->recovery)) { end_reshape() 7464 if (!test_bit(MD_RECOVERY_INTR, &mddev->recovery)) { raid5_finish_reshape()
|
H A D | raid1.c | 122 if (test_bit(MD_RECOVERY_REQUESTED, &pi->mddev->recovery)) r1buf_pool_alloc() 134 if (!test_bit(MD_RECOVERY_REQUESTED, &pi->mddev->recovery)) { r1buf_pool_alloc() 257 if (!test_bit(R1BIO_Uptodate, &r1_bio->state)) call_bio_endio() 317 int uptodate = test_bit(BIO_UPTODATE, &bio->bi_flags); raid1_end_read_request() 339 test_bit(In_sync, &conf->mirrors[mirror].rdev->flags))) raid1_end_read_request() 368 if (test_bit(R1BIO_BehindIO, &r1_bio->state)) { close_write() 379 !test_bit(R1BIO_Degraded, &r1_bio->state), close_write() 380 test_bit(R1BIO_BehindIO, &r1_bio->state)); close_write() 389 if (test_bit(R1BIO_WriteError, &r1_bio->state)) r1_bio_write_done() 393 if (test_bit(R1BIO_MadeGood, &r1_bio->state)) r1_bio_write_done() 402 int uptodate = test_bit(BIO_UPTODATE, &bio->bi_flags); raid1_end_write_request() 404 int mirror, behind = test_bit(R1BIO_BehindIO, &r1_bio->state); raid1_end_write_request() 446 if (test_bit(In_sync, &conf->mirrors[mirror].rdev->flags) && raid1_end_write_request() 447 !test_bit(Faulty, &conf->mirrors[mirror].rdev->flags)) raid1_end_write_request() 460 if (test_bit(WriteMostly, &conf->mirrors[mirror].rdev->flags)) raid1_end_write_request() 471 test_bit(R1BIO_Uptodate, &r1_bio->state)) { raid1_end_write_request() 560 || test_bit(Unmerged, &rdev->flags) read_balance() 561 || test_bit(Faulty, &rdev->flags)) read_balance() 563 if (!test_bit(In_sync, &rdev->flags) && read_balance() 566 if (test_bit(WriteMostly, &rdev->flags)) { read_balance() 691 if (test_bit(Faulty, &rdev->flags)) { read_balance() 725 if (rdev && !test_bit(Faulty, &rdev->flags)) { raid1_mergeable_bvec() 755 if (rdev && !test_bit(Faulty, &rdev->flags)) { raid1_congested() 1178 if (test_bit(WriteMostly, &mirror->rdev->flags) && make_request() 1265 if (rdev && unlikely(test_bit(Blocked, &rdev->flags))) { make_request() 1271 if (!rdev || test_bit(Faulty, &rdev->flags) make_request() 1272 || test_bit(Unmerged, &rdev->flags)) { make_request() 1279 if (test_bit(WriteErrorSeen, &rdev->flags)) { make_request() 1388 test_bit(R1BIO_BehindIO, make_request() 1401 if (test_bit(WriteMostly, &conf->mirrors[i].rdev->flags)) make_request() 1468 rdev && test_bit(In_sync, &rdev->flags) ? "U" : "_"); status() 1486 if (test_bit(In_sync, &rdev->flags) error() 1535 i, !test_bit(In_sync, &rdev->flags), print_conf() 1536 !test_bit(Faulty, &rdev->flags), print_conf() 1578 && !test_bit(Candidate, &repl->flags) raid1_spare_active() 1580 && !test_bit(Faulty, &repl->flags) raid1_spare_active() 1598 && !test_bit(Faulty, &rdev->flags) raid1_spare_active() 1651 if (test_bit(WantReplacement, &p->rdev->flags) && raid1_add_disk() 1663 if (err == 0 && test_bit(Unmerged, &rdev->flags)) { raid1_add_disk() 1695 if (test_bit(In_sync, &rdev->flags) || raid1_remove_disk() 1703 if (!test_bit(Faulty, &rdev->flags) && raid1_remove_disk() 1750 if (test_bit(BIO_UPTODATE, &bio->bi_flags)) end_sync_read() 1759 int uptodate = test_bit(BIO_UPTODATE, &bio->bi_flags); end_sync_write() 1800 if (test_bit(R1BIO_MadeGood, &r1_bio->state) || end_sync_write() 1801 test_bit(R1BIO_WriteError, &r1_bio->state)) end_sync_write() 1892 if (!rdev || test_bit(Faulty, &rdev->flags)) fix_sync_read_error() 1975 uptodate = test_bit(BIO_UPTODATE, &b->bi_flags); process_checks() 2001 test_bit(BIO_UPTODATE, &r1_bio->bios[primary]->bi_flags)) { process_checks() 2011 int uptodate = test_bit(BIO_UPTODATE, &sbio->bi_flags); process_checks() 2032 if (j < 0 || (test_bit(MD_RECOVERY_CHECK, &mddev->recovery) process_checks() 2053 if (!test_bit(R1BIO_Uptodate, &r1_bio->state)) sync_request_write() 2058 if (test_bit(MD_RECOVERY_REQUESTED, &mddev->recovery)) sync_request_write() 2070 !test_bit(MD_RECOVERY_SYNC, &mddev->recovery)))) sync_request_write() 2084 if (test_bit(R1BIO_MadeGood, &r1_bio->state) || sync_request_write() 2085 test_bit(R1BIO_WriteError, &r1_bio->state)) sync_request_write() 2127 (test_bit(In_sync, &rdev->flags) || fix_read_error() 2128 (!test_bit(Faulty, &rdev->flags) && fix_read_error() 2157 !test_bit(Faulty, &rdev->flags)) fix_read_error() 2169 !test_bit(Faulty, &rdev->flags)) { fix_read_error() 2227 if (test_bit(R1BIO_BehindIO, &r1_bio->state)) { narrow_write_error() 2274 if (test_bit(BIO_UPTODATE, &bio->bi_flags) && handle_sync_write_finished() 2275 test_bit(R1BIO_MadeGood, &r1_bio->state)) { handle_sync_write_finished() 2278 if (!test_bit(BIO_UPTODATE, &bio->bi_flags) && handle_sync_write_finished() 2279 test_bit(R1BIO_WriteError, &r1_bio->state)) { handle_sync_write_finished() 2312 if (test_bit(R1BIO_WriteError, &r1_bio->state)) handle_write_finished() 2437 if (test_bit(R1BIO_IsSync, &r1_bio->state)) { raid1d() 2438 if (test_bit(R1BIO_MadeGood, &r1_bio->state) || raid1d() 2439 test_bit(R1BIO_WriteError, &r1_bio->state)) raid1d() 2443 } else if (test_bit(R1BIO_MadeGood, &r1_bio->state) || raid1d() 2444 test_bit(R1BIO_WriteError, &r1_bio->state)) raid1d() 2446 else if (test_bit(R1BIO_ReadError, &r1_bio->state)) raid1d() 2524 !test_bit(MD_RECOVERY_REQUESTED, &mddev->recovery) && sync_request() 2533 !conf->fullsync && !test_bit(MD_RECOVERY_REQUESTED, &mddev->recovery)) { sync_request() 2566 test_bit(Faulty, &rdev->flags)) { sync_request() 2569 } else if (!test_bit(In_sync, &rdev->flags)) { sync_request() 2590 if (test_bit(WriteMostly, &rdev->flags)) { sync_request() 2600 } else if (!test_bit(WriteErrorSeen, &rdev->flags) && sync_request() 2601 test_bit(MD_RECOVERY_SYNC, &mddev->recovery) && sync_request() 2602 !test_bit(MD_RECOVERY_CHECK, &mddev->recovery)) { sync_request() 2661 if (test_bit(MD_RECOVERY_SYNC, &mddev->recovery) && read_targets > 0) sync_request() 2695 !test_bit(MD_RECOVERY_REQUESTED, &mddev->recovery)) sync_request() 2733 if (test_bit(MD_RECOVERY_REQUESTED, &mddev->recovery)) { sync_request() 2803 if (test_bit(Replacement, &rdev->flags)) rdev_for_each() 2847 } else if (!test_bit(In_sync, &disk->rdev->flags)) 2853 !test_bit(In_sync, &disk->rdev->flags)) { 2931 !test_bit(In_sync, &conf->mirrors[i].rdev->flags) || 2932 test_bit(Faulty, &conf->mirrors[i].rdev->flags))
|
H A D | raid10.c | 150 if (test_bit(MD_RECOVERY_SYNC, &conf->mddev->recovery) || r10buf_pool_alloc() 151 test_bit(MD_RECOVERY_RESHAPE, &conf->mddev->recovery)) r10buf_pool_alloc() 179 if (j > 0 && !test_bit(MD_RECOVERY_SYNC, r10buf_pool_alloc() 309 if (!test_bit(R10BIO_Uptodate, &r10_bio->state)) raid_end_bio_io() 363 int uptodate = test_bit(BIO_UPTODATE, &bio->bi_flags); raid10_end_read_request() 394 if (!_enough(conf, test_bit(R10BIO_Previous, &r10_bio->state), raid10_end_read_request() 421 !test_bit(R10BIO_Degraded, &r10_bio->state), close_write() 429 if (test_bit(R10BIO_WriteError, &r10_bio->state)) one_write_done() 433 if (test_bit(R10BIO_MadeGood, &r10_bio->state)) one_write_done() 443 int uptodate = test_bit(BIO_UPTODATE, &bio->bi_flags); raid10_end_write_request() 498 if (test_bit(In_sync, &rdev->flags) && raid10_end_write_request() 499 !test_bit(Faulty, &rdev->flags)) raid10_end_write_request() 733 if (rdev && !test_bit(Faulty, &rdev->flags)) { raid10_mergeable_bvec() 745 if (rdev && !test_bit(Faulty, &rdev->flags)) { raid10_mergeable_bvec() 823 if (rdev == NULL || test_bit(Faulty, &rdev->flags) || read_balance() 824 test_bit(Unmerged, &rdev->flags) || read_balance() 828 test_bit(Faulty, &rdev->flags) || read_balance() 829 test_bit(Unmerged, &rdev->flags)) read_balance() 831 if (!test_bit(In_sync, &rdev->flags) && read_balance() 896 if (test_bit(Faulty, &rdev->flags)) { read_balance() 927 if (rdev && !test_bit(Faulty, &rdev->flags)) { raid10_congested() 1093 if (!test_bit(MD_RECOVERY_RESHAPE, &rdev->mddev->recovery) || choose_data_offset() 1094 test_bit(R10BIO_Previous, &r10_bio->state)) choose_data_offset() 1172 while (test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery) && __make_request() 1185 if (test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery) && __make_request() 1198 !test_bit(MD_CHANGE_PENDING, &mddev->flags)); __make_request() 1319 if (rdev && unlikely(test_bit(Blocked, &rdev->flags))) { __make_request() 1324 if (rrdev && unlikely(test_bit(Blocked, &rrdev->flags))) { __make_request() 1329 if (rdev && (test_bit(Faulty, &rdev->flags) __make_request() 1330 || test_bit(Unmerged, &rdev->flags))) __make_request() 1332 if (rrdev && (test_bit(Faulty, &rrdev->flags) __make_request() 1333 || test_bit(Unmerged, &rrdev->flags))) __make_request() 1343 if (rdev && test_bit(WriteErrorSeen, &rdev->flags)) { __make_request() 1598 test_bit(In_sync, &conf->mirrors[i].rdev->flags) ? "U" : "_"); status() 1629 test_bit(In_sync, &rdev->flags)) _enough() 1667 if (test_bit(In_sync, &rdev->flags) error() 1710 i, !test_bit(In_sync, &tmp->rdev->flags), print_conf() 1711 !test_bit(Faulty, &tmp->rdev->flags), print_conf() 1741 && !test_bit(Faulty, &tmp->replacement->flags) raid10_spare_active() 1759 && !test_bit(Faulty, &tmp->rdev->flags) raid10_spare_active() 1808 if (!test_bit(WantReplacement, &p->rdev->flags) || raid10_add_disk() 1836 if (err == 0 && test_bit(Unmerged, &rdev->flags)) { raid10_add_disk() 1873 if (test_bit(In_sync, &rdev->flags) || raid10_remove_disk() 1881 if (!test_bit(Faulty, &rdev->flags) && raid10_remove_disk() 1931 if (test_bit(BIO_UPTODATE, &bio->bi_flags)) end_sync_read() 1944 if (test_bit(R10BIO_IsRecover, &r10_bio->state) || end_sync_read() 1961 if (test_bit(R10BIO_MadeGood, &r10_bio->state) || end_sync_request() 1962 test_bit(R10BIO_WriteError, &r10_bio->state)) end_sync_request() 1970 if (test_bit(R10BIO_MadeGood, &r10_bio->state) || end_sync_request() 1971 test_bit(R10BIO_WriteError, &r10_bio->state)) end_sync_request() 1982 int uptodate = test_bit(BIO_UPTODATE, &bio->bi_flags); end_sync_write() 2047 if (test_bit(BIO_UPTODATE, &r10_bio->devs[i].bio->bi_flags)) sync_request_write() 2067 if (test_bit(BIO_UPTODATE, &r10_bio->devs[i].bio->bi_flags)) { sync_request_write() 2086 if (test_bit(MD_RECOVERY_CHECK, &mddev->recovery)) sync_request_write() 2252 if (!test_bit(R10BIO_Uptodate, &r10_bio->state)) { recovery_request_write() 2328 && (rw == READ || test_bit(WriteErrorSeen, &rdev->flags))) r10_sync_page_io() 2366 if (test_bit(Faulty, &rdev->flags)) fix_read_error() 2407 !test_bit(Unmerged, &rdev->flags) && fix_read_error() 2408 test_bit(In_sync, &rdev->flags) && fix_read_error() 2461 test_bit(Unmerged, &rdev->flags) || fix_read_error() 2462 !test_bit(In_sync, &rdev->flags)) fix_read_error() 2501 !test_bit(In_sync, &rdev->flags)) fix_read_error() 2712 if (test_bit(R10BIO_IsSync, &r10_bio->state) || handle_write_completed() 2713 test_bit(R10BIO_IsRecover, &r10_bio->state)) { handle_write_completed() 2719 if (test_bit(BIO_UPTODATE, handle_write_completed() 2735 if (test_bit(BIO_UPTODATE, handle_write_completed() 2762 !test_bit(BIO_UPTODATE, &bio->bi_flags)) { handle_write_completed() 2780 if (test_bit(R10BIO_WriteError, handle_write_completed() 2815 if (test_bit(R10BIO_MadeGood, &r10_bio->state) || raid10d() 2816 test_bit(R10BIO_WriteError, &r10_bio->state)) raid10d() 2818 else if (test_bit(R10BIO_IsReshape, &r10_bio->state)) raid10d() 2820 else if (test_bit(R10BIO_IsSync, &r10_bio->state)) raid10d() 2822 else if (test_bit(R10BIO_IsRecover, &r10_bio->state)) raid10d() 2824 else if (test_bit(R10BIO_ReadError, &r10_bio->state)) raid10d() 2916 !test_bit(MD_RECOVERY_SYNC, &mddev->recovery) && sync_request() 2917 !test_bit(MD_RECOVERY_REQUESTED, &mddev->recovery) && sync_request() 2918 !test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery) && sync_request() 2926 if (test_bit(MD_RECOVERY_SYNC, &mddev->recovery) || sync_request() 2927 test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery)) sync_request() 2939 if (test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery)) { sync_request() 2946 if (test_bit(MD_RECOVERY_SYNC, &mddev->recovery)) sync_request() 2959 && test_bit(MD_RECOVERY_SYNC, &mddev->recovery)) { sync_request() 2977 if (test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery)) sync_request() 3014 if (!test_bit(MD_RECOVERY_SYNC, &mddev->recovery)) { sync_request() 3028 test_bit(In_sync, &mirror->rdev->flags)) sync_request() 3031 test_bit(Faulty, sync_request() 3082 test_bit(Faulty, &conf->mirrors[j].rdev->flags)) { sync_request() 3099 !test_bit(In_sync, &conf->mirrors[d].rdev->flags)) sync_request() 3143 if (!test_bit(In_sync, &rdev->flags)) { sync_request() 3172 test_bit(Faulty, &rdev->flags)) sync_request() 3197 if (!test_bit(In_sync, sync_request() 3244 !conf->fullsync && !test_bit(MD_RECOVERY_REQUESTED, sync_request() 3278 test_bit(Faulty, &conf->mirrors[d].rdev->flags)) sync_request() 3306 test_bit(Faulty, sync_request() 3646 if (test_bit(Replacement, &rdev->flags)) { rdev_for_each() 3717 !test_bit(In_sync, &disk->rdev->flags)) { 4003 if (!rdev || test_bit(Faulty, &rdev->flags)) calc_degraded() 4005 else if (!test_bit(In_sync, &rdev->flags)) calc_degraded() 4019 if (!rdev || test_bit(Faulty, &rdev->flags)) calc_degraded() 4021 else if (!test_bit(In_sync, &rdev->flags)) { calc_degraded() 4058 if (test_bit(MD_RECOVERY_RUNNING, &mddev->recovery)) raid10_start_reshape() 4070 if (!test_bit(In_sync, &rdev->flags) rdev_for_each() 4071 && !test_bit(Faulty, &rdev->flags)) rdev_for_each() 4130 !test_bit(Faulty, &rdev->flags)) { rdev_for_each() 4142 && !test_bit(Faulty, &rdev->flags)) { 4354 test_bit(MD_RECOVERY_INTR, &mddev->recovery)); reshape_request() 4355 if (test_bit(MD_RECOVERY_INTR, &mddev->recovery)) { reshape_request() 4374 BUG_ON(!test_bit(R10BIO_Previous, &r10_bio->state)); reshape_request() 4418 if (!rdev2 || test_bit(Faulty, &rdev2->flags)) reshape_request() 4496 if (!test_bit(R10BIO_Uptodate, &r10_bio->state)) reshape_request_write() 4518 if (!rdev || test_bit(Faulty, &rdev->flags)) reshape_request_write() 4531 if (test_bit(MD_RECOVERY_INTR, &conf->mddev->recovery)) end_reshape() 4586 test_bit(Faulty, &rdev->flags) || handle_reshape_read_error() 4587 !test_bit(In_sync, &rdev->flags)) handle_reshape_read_error() 4619 int uptodate = test_bit(BIO_UPTODATE, &bio->bi_flags); end_reshape_write() 4658 if (test_bit(MD_RECOVERY_INTR, &mddev->recovery)) raid10_finish_reshape()
|
H A D | dm-raid.c | 255 if (!test_bit(In_sync, &rs->dev[i].rdev.flags) && dev_parms() 282 if (!test_bit(In_sync, &rs->dev[i].rdev.flags)) dev_parms() 388 if (!test_bit(In_sync, &rs->dev[i].rdev.flags) || validate_raid_redundancy() 428 !test_bit(In_sync, &rs->dev[d].rdev.flags)) && validate_raid_redundancy() 454 !test_bit(In_sync, &rs->dev[i].rdev.flags)) && validate_raid_redundancy() 819 test_bit(Faulty, &(rs->dev[i].rdev.flags))) super_sync() 875 (!test_bit(In_sync, &rdev->flags) && !rdev->recovery_offset)) { super_load() 964 if (!test_bit(In_sync, &r->flags)) { rdev_for_each() 968 } else if (test_bit(FirstUse, &r->flags)) rdev_for_each() 1004 if (!test_bit(FirstUse, &r->flags) && (r->raid_disk >= 0)) { rdev_for_each() 1041 if (!test_bit(FirstUse, &rdev->flags)) { super_validate() 1050 if (test_bit(Faulty, &rdev->flags)) { super_validate() 1334 if (test_bit(MD_RECOVERY_FROZEN, &mddev->recovery)) decipher_sync_action() 1337 if (test_bit(MD_RECOVERY_RUNNING, &mddev->recovery) || decipher_sync_action() 1338 (!mddev->ro && test_bit(MD_RECOVERY_NEEDED, &mddev->recovery))) { decipher_sync_action() 1339 if (test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery)) decipher_sync_action() 1342 if (test_bit(MD_RECOVERY_SYNC, &mddev->recovery)) { decipher_sync_action() 1343 if (!test_bit(MD_RECOVERY_REQUESTED, &mddev->recovery)) decipher_sync_action() 1345 else if (test_bit(MD_RECOVERY_CHECK, &mddev->recovery)) decipher_sync_action() 1350 if (test_bit(MD_RECOVERY_RECOVER, &mddev->recovery)) decipher_sync_action() 1370 if (test_bit(MD_RECOVERY_RUNNING, &rs->md.recovery)) raid_status() 1381 } else if (test_bit(MD_RECOVERY_REQUESTED, &rs->md.recovery)) { raid_status() 1396 if (!test_bit(In_sync, &rs->dev[i].rdev.flags)) raid_status() 1407 if (test_bit(Faulty, &rs->dev[i].rdev.flags)) raid_status() 1410 !test_bit(In_sync, &rs->dev[i].rdev.flags)) raid_status() 1450 !test_bit(In_sync, &rs->dev[i].rdev.flags)) raid_status() 1453 test_bit(WriteMostly, &rs->dev[i].rdev.flags)) raid_status() 1473 !test_bit(In_sync, &rs->dev[i].rdev.flags)) raid_status() 1488 test_bit(WriteMostly, &rs->dev[i].rdev.flags)) raid_status() 1553 } else if (test_bit(MD_RECOVERY_RUNNING, &mddev->recovery) || raid_message() 1554 test_bit(MD_RECOVERY_NEEDED, &mddev->recovery)) raid_message() 1636 if (test_bit(Faulty, &r->flags) && r->sb_page && attempt_restore_of_faulty_devices()
|
H A D | md.c | 408 !test_bit(Faulty, &rdev->flags)) { rdev_for_each_rcu() 738 if (error || !test_bit(BIO_UPTODATE, &bio->bi_flags)) { super_written() 740 error, test_bit(BIO_UPTODATE, &bio->bi_flags)); super_written() 741 WARN_ON(test_bit(BIO_UPTODATE, &bio->bi_flags)); super_written() 796 ret = test_bit(BIO_UPTODATE, &bio->bi_flags); sync_page_io() 1261 int is_active = test_bit(In_sync, &rdev2->flags); rdev_for_each() 1271 test_bit(Faulty, &rdev2->flags)) rdev_for_each() 1287 if (test_bit(Faulty, &rdev2->flags)) rdev_for_each() 1291 if (test_bit(In_sync, &rdev2->flags)) rdev_for_each() 1300 if (test_bit(WriteMostly, &rdev2->flags)) rdev_for_each() 1713 if (test_bit(WriteMostly, &rdev->flags)) super_1_sync() 1726 !test_bit(In_sync, &rdev->flags)) { super_1_sync() 1735 if (test_bit(Replacement, &rdev->flags)) super_1_sync() 1812 if (test_bit(Faulty, &rdev2->flags)) rdev_for_each() 1814 else if (test_bit(In_sync, &rdev2->flags)) rdev_for_each() 1965 if (test_bit(Faulty, &rdev->flags)) rdev_for_each() 2171 if (test_bit(AutoDetected, &rdev->flags)) export_rdev() 2238 !test_bit(In_sync, &rdev->flags) && rdev_for_each() 2315 if (test_bit(Faulty, &rdev->flags)) rdev_for_each() 2332 if (!test_bit(Faulty, &rdev->flags)) { rdev_for_each() 2361 test_bit(MD_CHANGE_DEVS, &mddev->flags)) { 2369 if (test_bit(MD_RECOVERY_RUNNING, &mddev->recovery)) 2447 if (test_bit(Faulty, &flags) || state_show() 2452 if (test_bit(In_sync, &flags)) { state_show() 2456 if (test_bit(WriteMostly, &flags)) { state_show() 2460 if (test_bit(Blocked, &flags) || state_show() 2462 && !test_bit(Faulty, &flags))) { state_show() 2466 if (!test_bit(Faulty, &flags) && state_show() 2467 !test_bit(In_sync, &flags)) { state_show() 2471 if (test_bit(WriteErrorSeen, &flags)) { state_show() 2475 if (test_bit(WantReplacement, &flags)) { state_show() 2479 if (test_bit(Replacement, &flags)) { state_show() 2506 if (test_bit(Faulty, &rdev->flags)) state_store() 2537 if (!test_bit(Faulty, &rdev->flags) && state_store() 2573 !test_bit(Replacement, &rdev->flags)) state_store() 2604 if (test_bit(Faulty, &rdev->flags) && (rdev->raid_disk == -1)) { state_store() 2692 if (test_bit(MD_RECOVERY_RUNNING, &rdev->mddev->recovery)) slot_store() 2703 if (test_bit(In_sync, &rdev->flags)) slot_store() 2778 test_bit(MD_RECOVERY_RUNNING,&mddev->recovery)) new_offset_store() 2934 if (test_bit(In_sync, &rdev->flags) || recovery_start_show() 3222 if (test_bit(Candidate, &rdev->flags)) { rdev_for_each_safe() 3369 test_bit(MD_RECOVERY_RUNNING, &mddev->recovery) || level_store() 3700 if (mddev->pers && !test_bit(MD_RECOVERY_FROZEN, &mddev->recovery)) resync_start_store() 3786 else if (test_bit(MD_CHANGE_PENDING, &mddev->flags)) array_state_show() 4193 if (test_bit(MD_RECOVERY_FROZEN, &recovery)) action_show() 4195 else if (test_bit(MD_RECOVERY_RUNNING, &recovery) || action_show() 4196 (!mddev->ro && test_bit(MD_RECOVERY_NEEDED, &recovery))) { action_show() 4197 if (test_bit(MD_RECOVERY_RESHAPE, &recovery)) action_show() 4199 else if (test_bit(MD_RECOVERY_SYNC, &recovery)) { action_show() 4200 if (!test_bit(MD_RECOVERY_REQUESTED, &recovery)) action_show() 4202 else if (test_bit(MD_RECOVERY_CHECK, &recovery)) action_show() 4206 } else if (test_bit(MD_RECOVERY_RECOVER, &recovery)) action_show() 4224 if (test_bit(MD_RECOVERY_RUNNING, &mddev->recovery) && action_store() 4233 } else if (test_bit(MD_RECOVERY_RUNNING, &mddev->recovery) || action_store() 4234 test_bit(MD_RECOVERY_NEEDED, &mddev->recovery)) action_store() 4406 if (!test_bit(MD_RECOVERY_RUNNING, &mddev->recovery)) sync_completed_show() 4413 if (test_bit(MD_RECOVERY_SYNC, &mddev->recovery) || sync_completed_show() 4414 test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery)) sync_completed_show() 4447 if (test_bit(MD_RECOVERY_RUNNING, &mddev->recovery)) min_sync_store() 4491 test_bit(MD_RECOVERY_RUNNING, &mddev->recovery)) max_sync_store() 5039 if (test_bit(Faulty, &rdev->flags)) rdev_for_each() 5402 if (!test_bit(MD_RECOVERY_FROZEN, &mddev->recovery)) { md_set_readonly() 5407 if (test_bit(MD_RECOVERY_RUNNING, &mddev->recovery)) md_set_readonly() 5415 wait_event(resync_wait, !test_bit(MD_RECOVERY_RUNNING, md_set_readonly() 5422 test_bit(MD_RECOVERY_RUNNING, &mddev->recovery) || md_set_readonly() 5423 (bdev && !test_bit(MD_STILL_CLOSED, &mddev->flags))) { md_set_readonly() 5463 if (!test_bit(MD_RECOVERY_FROZEN, &mddev->recovery)) { do_md_stop() 5468 if (test_bit(MD_RECOVERY_RUNNING, &mddev->recovery)) do_md_stop() 5477 !test_bit(MD_RECOVERY_RUNNING, do_md_stop() 5485 test_bit(MD_RECOVERY_RUNNING, &mddev->recovery) || do_md_stop() 5486 (bdev && !test_bit(MD_STILL_CLOSED, &mddev->flags))) { do_md_stop() 5694 if (test_bit(Faulty, &rdev->flags)) rdev_for_each_rcu() 5698 if (test_bit(In_sync, &rdev->flags)) rdev_for_each_rcu() 5788 if (test_bit(Faulty, &rdev->flags)) get_disk_info() 5790 else if (test_bit(In_sync, &rdev->flags)) { get_disk_info() 5794 if (test_bit(WriteMostly, &rdev->flags)) get_disk_info() 6065 if (test_bit(Faulty, &rdev->flags)) { hot_add_disk() 6303 if (test_bit(MD_RECOVERY_RUNNING, &mddev->recovery) || update_size() 6336 test_bit(MD_RECOVERY_RUNNING, &mddev->recovery) || update_raid_disks() 6504 if (!test_bit(Faulty, &rdev->flags)) set_disk_faulty() 6636 !test_bit(MD_RECOVERY_NEEDED, md_ioctl() 6795 if (test_bit(MD_CHANGE_DEVS, &mddev->flags)) { md_ioctl() 6798 !test_bit(MD_CHANGE_DEVS, &mddev->flags) && md_ioctl() 6799 !test_bit(MD_CHANGE_PENDING, &mddev->flags)); md_ioctl() 6974 test_bit(THREAD_WAKEUP, &thread->flags) md_thread() 7042 if (!rdev || test_bit(Faulty, &rdev->flags)) md_error() 7095 if (test_bit(MD_RECOVERY_SYNC, &mddev->recovery) || status_resync() 7096 test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery)) status_resync() 7127 (test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery)? status_resync() 7129 (test_bit(MD_RECOVERY_CHECK, &mddev->recovery)? status_resync() 7131 (test_bit(MD_RECOVERY_SYNC, &mddev->recovery) ? status_resync() 7270 if (test_bit(WriteMostly, &rdev->flags)) rdev_for_each_rcu() 7272 if (test_bit(Faulty, &rdev->flags)) { rdev_for_each_rcu() 7278 if (test_bit(Replacement, &rdev->flags)) rdev_for_each_rcu() 7543 !test_bit(MD_CHANGE_PENDING, &mddev->flags)); md_write_start() 7594 if (test_bit(MD_CHANGE_PENDING, &mddev->flags)) md_allow_write() 7623 if (test_bit(MD_RECOVERY_DONE, &mddev->recovery)) md_do_sync() 7630 if (test_bit(MD_RECOVERY_SYNC, &mddev->recovery)) { md_do_sync() 7631 if (test_bit(MD_RECOVERY_CHECK, &mddev->recovery)) { md_do_sync() 7634 } else if (test_bit(MD_RECOVERY_REQUESTED, &mddev->recovery)) { md_do_sync() 7639 } else if (test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery)) md_do_sync() 7666 if (test_bit(MD_RECOVERY_INTR, &mddev->recovery)) md_do_sync() 7690 if (!test_bit(MD_RECOVERY_INTR, &mddev->recovery) && for_each_mddev() 7709 if (test_bit(MD_RECOVERY_SYNC, &mddev->recovery)) { 7716 if (test_bit(MD_RECOVERY_REQUESTED, &mddev->recovery)) 7721 } else if (test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery)) 7730 !test_bit(Faulty, &rdev->flags) && 7731 !test_bit(In_sync, &rdev->flags) && 7799 if (!test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery) && 7811 if (test_bit(MD_RECOVERY_SYNC, &mddev->recovery) && 7820 !test_bit(MD_RECOVERY_INTR, &mddev->recovery)) { 7828 || test_bit(MD_RECOVERY_INTR, 7832 if (test_bit(MD_RECOVERY_INTR, &mddev->recovery)) 7846 if (test_bit(MD_RECOVERY_INTR, &mddev->recovery)) 7877 if (test_bit(MD_RECOVERY_INTR, &mddev->recovery)) 7910 test_bit(MD_RECOVERY_INTR, &mddev->recovery) 7924 if (!test_bit(MD_RECOVERY_CHECK, &mddev->recovery) && 7926 if (test_bit(MD_RECOVERY_SYNC, &mddev->recovery)) { 7927 if (test_bit(MD_RECOVERY_INTR, &mddev->recovery)) { 7932 if (test_bit(MD_RECOVERY_ERROR, 7943 if (!test_bit(MD_RECOVERY_INTR, &mddev->recovery)) 7949 !test_bit(Faulty, &rdev->flags) && 7950 !test_bit(In_sync, &rdev->flags) && 7960 if (!test_bit(MD_RECOVERY_INTR, &mddev->recovery)) { 7962 if (test_bit(MD_RECOVERY_REQUESTED, &mddev->recovery)) 7965 } else if (test_bit(MD_RECOVERY_REQUESTED, &mddev->recovery)) 7987 !test_bit(Blocked, &rdev->flags) && rdev_for_each() 7988 (test_bit(Faulty, &rdev->flags) || rdev_for_each() 7989 ! test_bit(In_sync, &rdev->flags)) && rdev_for_each() 8006 !test_bit(In_sync, &rdev->flags) && rdev_for_each() 8007 !test_bit(Faulty, &rdev->flags)) rdev_for_each() 8011 if (test_bit(Faulty, &rdev->flags)) rdev_for_each() 8015 !test_bit(Bitmap_sync, &rdev->flags))) rdev_for_each() 8101 if (mddev->ro && !test_bit(MD_RECOVERY_NEEDED, &mddev->recovery)) md_check_recovery() 8105 test_bit(MD_RECOVERY_NEEDED, &mddev->recovery) || md_check_recovery() 8106 test_bit(MD_RECOVERY_DONE, &mddev->recovery) || md_check_recovery() 8160 if (test_bit(MD_RECOVERY_RUNNING, &mddev->recovery) && md_check_recovery() 8161 !test_bit(MD_RECOVERY_DONE, &mddev->recovery)) { md_check_recovery() 8184 test_bit(MD_RECOVERY_FROZEN, &mddev->recovery)) md_check_recovery() 8208 } else if (!test_bit(MD_RECOVERY_SYNC, &mddev->recovery)) md_check_recovery() 8246 if (!test_bit(MD_RECOVERY_INTR, &mddev->recovery) && md_reap_sync_thread() 8247 !test_bit(MD_RECOVERY_REQUESTED, &mddev->recovery)) { md_reap_sync_thread() 8258 if (test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery) && md_reap_sync_thread() 8292 !test_bit(Blocked, &rdev->flags) && md_wait_for_blocked_rdev() 8293 !test_bit(BlockedBadBlocks, &rdev->flags), md_wait_for_blocked_rdev() 8965 if (test_bit(Faulty, &rdev->flags)) autostart_arrays()
|
H A D | dm-bufio.c | 674 BUG_ON(!test_bit(B_WRITING, &b->state)); write_endio() 695 if (!test_bit(B_DIRTY, &b->state)) __write_dirty_buffer() 747 BUG_ON(test_bit(B_WRITING, &b->state)); __get_unclaimed_buffer() 748 BUG_ON(test_bit(B_DIRTY, &b->state)); __get_unclaimed_buffer() 759 BUG_ON(test_bit(B_READING, &b->state)); __get_unclaimed_buffer() 886 BUG_ON(test_bit(B_READING, &b->state)); __write_dirty_buffers_async() 888 if (!test_bit(B_DIRTY, &b->state) && __write_dirty_buffers_async() 889 !test_bit(B_WRITING, &b->state)) { __write_dirty_buffers_async() 894 if (no_wait && test_bit(B_WRITING, &b->state)) __write_dirty_buffers_async() 1016 if (nf == NF_GET && unlikely(test_bit(B_READING, &b->state))) __bufio_new() 1020 __relink_lru(b, test_bit(B_DIRTY, &b->state) || __bufio_new() 1021 test_bit(B_WRITING, &b->state)); __bufio_new() 1035 BUG_ON(!test_bit(B_READING, &b->state)); read_endio() 1174 !test_bit(B_READING, &b->state) && dm_bufio_release() 1175 !test_bit(B_WRITING, &b->state) && dm_bufio_release() 1176 !test_bit(B_DIRTY, &b->state)) { dm_bufio_release() 1192 BUG_ON(test_bit(B_READING, &b->state)); dm_bufio_mark_buffer_dirty() 1242 BUG_ON(test_bit(B_READING, &b->state)); dm_bufio_write_dirty_buffers() 1244 if (test_bit(B_WRITING, &b->state)) { dm_bufio_write_dirty_buffers() 1258 if (!test_bit(B_DIRTY, &b->state) && dm_bufio_write_dirty_buffers() 1259 !test_bit(B_WRITING, &b->state)) dm_bufio_write_dirty_buffers() 1355 BUG_ON(test_bit(B_READING, &b->state)); dm_bufio_release_move() 1494 if (test_bit(B_READING, &b->state) || __try_evict_buffer() 1495 test_bit(B_WRITING, &b->state) || __try_evict_buffer() 1496 test_bit(B_DIRTY, &b->state)) __try_evict_buffer()
|
H A D | multipath.c | 46 if (rdev && test_bit(In_sync, &rdev->flags)) { multipath_map() 86 int uptodate = test_bit(BIO_UPTODATE, &bio->bi_flags); multipath_end_request() 154 test_bit(In_sync, &conf->multipaths[i].rdev->flags) ? "U" : "_"); multipath_status() 166 if (rdev && !test_bit(Faulty, &rdev->flags)) { multipath_congested() 236 i,!test_bit(Faulty, &tmp->rdev->flags), print_multipath_conf() 300 if (test_bit(In_sync, &rdev->flags) || multipath_remove_disk() 446 if (!test_bit(Faulty, &rdev->flags)) rdev_for_each()
|
/linux-4.1.27/drivers/net/wireless/rt2x00/ |
H A D | rt2x00link.c | 255 if (test_bit(DEVICE_STATE_SCANNING, &rt2x00dev->flags)) rt2x00link_start_tuner() 260 if (test_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags)) rt2x00link_start_tuner() 275 if (!test_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags)) rt2x00link_reset_tuner() 328 if (!test_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags) || rt2x00link_tuner() 329 test_bit(DEVICE_STATE_SCANNING, &rt2x00dev->flags)) rt2x00link_tuner() 375 if (test_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags)) rt2x00link_tuner() 384 if (test_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags) && rt2x00link_start_watchdog() 406 if (!test_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags)) rt2x00link_watchdog() 411 if (test_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags)) rt2x00link_watchdog() 421 if (test_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags) && rt2x00link_start_agc() 432 if (test_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags) && rt2x00link_start_vcocal() 459 if (!test_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags)) rt2x00link_agc() 464 if (test_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags)) rt2x00link_agc() 480 if (!test_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags)) rt2x00link_vcocal() 485 if (test_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags)) rt2x00link_vcocal()
|
H A D | rt2x00dev.c | 60 if (test_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags)) rt2x00lib_enable_radio() 141 if (!test_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags)) rt2x00lib_intf_scheduled_iter() 171 if (!test_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags)) rt2x00lib_autowakeup() 227 if (!test_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags)) rt2x00lib_beacondone() 251 if (!test_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags)) rt2x00lib_pretbtt() 379 test_bit(TXDONE_SUCCESS, &txdesc->flags) || rt2x00lib_txdone() 380 test_bit(TXDONE_UNKNOWN, &txdesc->flags); rt2x00lib_txdone() 390 retry_rates = test_bit(TXDONE_FALLBACK, &txdesc->flags) ? rt2x00lib_txdone() 439 if (test_bit(TXDONE_AMPDU, &txdesc->flags) || rt2x00lib_txdone() 531 if (!test_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags)) rt2x00lib_sleep() 538 if (!test_bit(CONFIG_POWERSAVING, &rt2x00dev->flags)) rt2x00lib_sleep() 633 if (!cam && !test_bit(CONFIG_POWERSAVING, &rt2x00dev->flags)) rt2x00lib_rxdone_check_ps() 692 if (!test_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags) || rt2x00lib_rxdone() 693 !test_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags)) rt2x00lib_rxdone() 696 if (test_bit(ENTRY_DATA_IO_FAILED, &entry->flags)) rt2x00lib_rxdone() 813 if (test_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags) && rt2x00lib_rxdone() 814 test_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags)) rt2x00lib_rxdone() 1016 if (test_bit(DEVICE_STATE_REGISTERED_HW, &rt2x00dev->flags)) rt2x00lib_remove_hw() 1034 if (test_bit(DEVICE_STATE_REGISTERED_HW, &rt2x00dev->flags)) rt2x00lib_probe_hw() 1152 if (test_bit(DEVICE_STATE_INITIALIZED, &rt2x00dev->flags)) rt2x00lib_initialize() 1186 if (test_bit(DEVICE_STATE_STARTED, &rt2x00dev->flags)) rt2x00lib_start()
|
H A D | rt2800mmio.c | 75 !test_bit(ENTRY_TXD_MORE_FRAG, &txdesc->flags)); rt2800mmio_write_tx_desc() 77 test_bit(ENTRY_TXD_BURST, &txdesc->flags)); rt2800mmio_write_tx_desc() 90 !test_bit(ENTRY_TXD_ENCRYPT_IV, &txdesc->flags)); rt2800mmio_write_tx_desc() 202 !test_bit(ENTRY_DATA_STATUS_SET, &entry->flags)) { rt2800mmio_txdone_find_entry() 224 if (!test_bit(ENTRY_DATA_STATUS_SET, &entry->flags)) { rt2800mmio_txdone_match_first() 240 if (test_bit(ENTRY_DATA_STATUS_SET, &entry->flags)) { rt2800mmio_txdone_release_entries() 358 if (test_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags)) rt2800mmio_pretbtt_tasklet() 393 if (test_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags)) rt2800mmio_tbtt_tasklet() 403 else if (test_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags)) rt2800mmio_rxdone_tasklet() 412 if (test_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags)) rt2800mmio_autowake_tasklet() 469 if (!test_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags)) rt2800mmio_interrupt()
|
H A D | rt2x00usb.c | 50 if (!test_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags)) rt2x00usb_vendor_request() 144 if (!test_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags)) rt2x00usb_regbusy_read() 228 if (test_bit(ENTRY_DATA_IO_FAILED, &entry->flags)) rt2x00usb_work_txdone_entry() 245 if (test_bit(ENTRY_OWNER_DEVICE_DATA, &entry->flags) || tx_queue_for_each() 246 !test_bit(ENTRY_DATA_STATUS_PENDING, &entry->flags)) tx_queue_for_each() 259 if (!test_bit(ENTRY_OWNER_DEVICE_DATA, &entry->flags)) rt2x00usb_interrupt_txdone() 291 test_bit(ENTRY_DATA_STATUS_PENDING, &entry->flags)) rt2x00usb_kick_tx_entry() 341 if (test_bit(ENTRY_OWNER_DEVICE_DATA, &entry->flags) || rt2x00usb_work_rxdone() 342 !test_bit(ENTRY_DATA_STATUS_PENDING, &entry->flags)) rt2x00usb_work_rxdone() 395 test_bit(ENTRY_DATA_STATUS_PENDING, &entry->flags)) rt2x00usb_kick_rx_entry() 450 if (!test_bit(ENTRY_OWNER_DEVICE_DATA, &entry->flags)) rt2x00usb_flush_entry()
|
H A D | rt2x00queue.c | 208 if (test_bit(CONFIG_QOS_DISABLED, &rt2x00dev->flags)) rt2x00queue_create_tx_descriptor_seq() 226 if (test_bit(ENTRY_TXD_FIRST_FRAGMENT, &txdesc->flags)) rt2x00queue_create_tx_descriptor_seq() 251 if (test_bit(ENTRY_TXD_FIRST_FRAGMENT, &txdesc->flags)) rt2x00queue_create_tx_descriptor_plcp() 338 if (test_bit(CONFIG_HT_DISABLED, &rt2x00dev->flags)) { rt2x00queue_create_tx_descriptor_ht() 462 !test_bit(ENTRY_TXD_RTS_FRAME, &txdesc->flags)) rt2x00queue_create_tx_descriptor() 563 !test_bit(ENTRY_TXD_BURST, &txdesc->flags)) rt2x00queue_kick_tx_queue() 647 if (test_bit(ENTRY_TXD_ENCRYPT, &txdesc.flags) && rt2x00queue_write_tx_frame() 648 !test_bit(ENTRY_TXD_ENCRYPT_IV, &txdesc.flags)) { rt2x00queue_write_tx_frame() 913 if (!test_bit(DEVICE_STATE_PRESENT, &queue->rt2x00dev->flags) || rt2x00queue_pause_queue() 914 !test_bit(QUEUE_STARTED, &queue->flags) || rt2x00queue_pause_queue() 924 if (!test_bit(DEVICE_STATE_PRESENT, &queue->rt2x00dev->flags) || rt2x00queue_unpause_queue() 925 !test_bit(QUEUE_STARTED, &queue->flags) || rt2x00queue_unpause_queue() 956 if (!test_bit(DEVICE_STATE_PRESENT, &queue->rt2x00dev->flags) || rt2x00queue_start_queue()
|
H A D | rt2x00config.c | 157 if (test_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags)) rt2x00lib_config_antenna() 171 if (test_bit(DEVICE_STATE_ENABLED_RADIO, &rt2x00dev->flags)) rt2x00lib_config_antenna() 259 if (test_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags) && rt2x00lib_config()
|
/linux-4.1.27/drivers/iio/light/ |
H A D | gp2ap020a00f.c | 430 return test_bit(GP2AP020A00F_FLAG_ALS_CLEAR_TRIGGER, &data->flags) || gp2ap020a00f_als_enabled() 431 test_bit(GP2AP020A00F_FLAG_ALS_IR_TRIGGER, &data->flags) || gp2ap020a00f_als_enabled() 432 test_bit(GP2AP020A00F_FLAG_ALS_RISING_EV, &data->flags) || gp2ap020a00f_als_enabled() 433 test_bit(GP2AP020A00F_FLAG_ALS_FALLING_EV, &data->flags); gp2ap020a00f_als_enabled() 438 return test_bit(GP2AP020A00F_FLAG_PROX_RISING_EV, &data->flags) || gp2ap020a00f_prox_detect_enabled() 439 test_bit(GP2AP020A00F_FLAG_PROX_FALLING_EV, &data->flags); gp2ap020a00f_prox_detect_enabled() 451 else if (test_bit(GP2AP020A00F_FLAG_LUX_MODE_HI, &data->flags) && gp2ap020a00f_write_event_threshold() 570 if (test_bit(GP2AP020A00F_FLAG_ALS_RISING_EV, &data->flags)) gp2ap020a00f_exec_cmd() 586 if (!test_bit(GP2AP020A00F_FLAG_ALS_RISING_EV, &data->flags)) gp2ap020a00f_exec_cmd() 600 if (test_bit(GP2AP020A00F_FLAG_ALS_FALLING_EV, &data->flags)) gp2ap020a00f_exec_cmd() 616 if (!test_bit(GP2AP020A00F_FLAG_ALS_FALLING_EV, &data->flags)) gp2ap020a00f_exec_cmd() 630 if (test_bit(GP2AP020A00F_FLAG_PROX_RISING_EV, &data->flags)) gp2ap020a00f_exec_cmd() 646 if (!test_bit(GP2AP020A00F_FLAG_PROX_RISING_EV, &data->flags)) gp2ap020a00f_exec_cmd() 657 if (test_bit(GP2AP020A00F_FLAG_PROX_FALLING_EV, &data->flags)) gp2ap020a00f_exec_cmd() 673 if (!test_bit(GP2AP020A00F_FLAG_PROX_FALLING_EV, &data->flags)) gp2ap020a00f_exec_cmd() 693 test_bit(GP2AP020A00F_FLAG_DATA_READY, wait_conversion_complete_irq() 726 if (!test_bit(GP2AP020A00F_FLAG_LUX_MODE_HI, &data->flags)) { gp2ap020a00f_adjust_lux_mode() 793 if (test_bit(GP2AP020A00F_FLAG_ALS_RISING_EV, &data->flags)) { gp2ap020a00f_adjust_lux_mode() 803 if (test_bit(GP2AP020A00F_FLAG_ALS_FALLING_EV, &data->flags)) { gp2ap020a00f_adjust_lux_mode() 822 if (test_bit(GP2AP020A00F_FLAG_LUX_MODE_HI, &data->flags)) gp2ap020a00f_output_to_lux() 917 if (test_bit(GP2AP020A00F_FLAG_ALS_RISING_EV, &priv->flags)) { gp2ap020a00f_thresh_event_handler() 931 if (test_bit(GP2AP020A00F_FLAG_ALS_FALLING_EV, &priv->flags)) { gp2ap020a00f_thresh_event_handler() 954 if (test_bit(GP2AP020A00F_FLAG_ALS_CLEAR_TRIGGER, &priv->flags) || gp2ap020a00f_thresh_event_handler() 955 test_bit(GP2AP020A00F_FLAG_ALS_IR_TRIGGER, &priv->flags) || gp2ap020a00f_thresh_event_handler() 956 test_bit(GP2AP020A00F_FLAG_PROX_TRIGGER, &priv->flags)) gp2ap020a00f_thresh_event_handler() 1046 event_en = test_bit(GP2AP020A00F_FLAG_ALS_RISING_EV, gp2ap020a00f_write_event_val() 1050 event_en = test_bit(GP2AP020A00F_FLAG_ALS_FALLING_EV, gp2ap020a00f_write_event_val() 1058 event_en = test_bit(GP2AP020A00F_FLAG_PROX_RISING_EV, gp2ap020a00f_write_event_val() 1066 event_en = test_bit(GP2AP020A00F_FLAG_PROX_FALLING_EV, gp2ap020a00f_write_event_val() 1212 event_en = test_bit(GP2AP020A00F_FLAG_PROX_RISING_EV, gp2ap020a00f_read_event_config() 1215 event_en = test_bit(GP2AP020A00F_FLAG_PROX_FALLING_EV, gp2ap020a00f_read_event_config() 1220 event_en = test_bit(GP2AP020A00F_FLAG_ALS_RISING_EV, gp2ap020a00f_read_event_config() 1223 event_en = test_bit(GP2AP020A00F_FLAG_ALS_FALLING_EV, gp2ap020a00f_read_event_config()
|
H A D | ltr501.c | 281 if (test_bit(0, indio_dev->active_scan_mask) || ltr501_trigger_handler() 282 test_bit(1, indio_dev->active_scan_mask)) ltr501_trigger_handler() 284 if (test_bit(2, indio_dev->active_scan_mask)) ltr501_trigger_handler() 296 if (test_bit(0, indio_dev->active_scan_mask)) ltr501_trigger_handler() 298 if (test_bit(1, indio_dev->active_scan_mask)) ltr501_trigger_handler()
|
/linux-4.1.27/drivers/scsi/esas2r/ |
H A D | esas2r_int.c | 320 if (test_bit(AF_CHPRST_PENDING, &a->flags) || esas2r_do_deferred_processes() 321 test_bit(AF_FLASHING, &a->flags)) esas2r_do_deferred_processes() 323 else if (test_bit(AF_DISC_PENDING, &a->flags)) esas2r_do_deferred_processes() 371 if (test_bit(AF_FLASHING, &a->flags)) esas2r_do_deferred_processes() 532 if ((test_bit(AF_POWER_MGT, &a->flags)) && esas2r_chip_rst_needed_during_tasklet() 533 !test_bit(AF_FIRST_INIT, &a->flags) && !alrdyrst) { esas2r_chip_rst_needed_during_tasklet() 546 if (!test_bit(AF_POWER_MGT, &a->flags)) { esas2r_chip_rst_needed_during_tasklet() 563 while (test_bit(AF_CHPRST_DETECTED, &a->flags)) { esas2r_handle_chip_rst_during_tasklet() 569 if (!test_bit(AF_DEGRADED_MODE, &a->flags) && esas2r_handle_chip_rst_during_tasklet() 570 !test_bit(AF_POWER_MGT, &a->flags)) esas2r_handle_chip_rst_during_tasklet() 577 if (test_bit(AF_CHPRST_NEEDED, &a->flags)) esas2r_handle_chip_rst_during_tasklet() 580 if (test_bit(AF_POWER_MGT, &a->flags)) { esas2r_handle_chip_rst_during_tasklet() 582 if (test_bit(AF_FIRST_INIT, &a->flags)) { esas2r_handle_chip_rst_during_tasklet() 593 if (test_bit(AF_FIRST_INIT, &a->flags)) { esas2r_handle_chip_rst_during_tasklet() 620 if (test_bit(AF_CHPRST_NEEDED, &a->flags) || esas2r_do_tasklet_tasks() 621 test_bit(AF_CHPRST_DETECTED, &a->flags)) { esas2r_do_tasklet_tasks() 622 if (test_bit(AF_CHPRST_NEEDED, &a->flags)) esas2r_do_tasklet_tasks() 628 if (test_bit(AF_BUSRST_NEEDED, &a->flags)) { esas2r_do_tasklet_tasks() 633 if (test_bit(AF_FLASHING, &a->flags)) esas2r_do_tasklet_tasks() 640 if (test_bit(AF_BUSRST_DETECTED, &a->flags)) { esas2r_do_tasklet_tasks() 655 if (test_bit(AF_PORT_CHANGE, &a->flags)) { esas2r_do_tasklet_tasks()
|
H A D | esas2r_init.c | 443 if (test_bit(AF2_IRQ_CLAIMED, &a->flags2)) esas2r_init_adapter() 447 if (!test_bit(AF_DEGRADED_MODE, &a->flags)) esas2r_init_adapter() 460 if ((test_bit(AF2_INIT_DONE, &a->flags2)) esas2r_adapter_power_down() 461 && (!test_bit(AF_DEGRADED_MODE, &a->flags))) { esas2r_adapter_power_down() 511 if (test_bit(AF2_IRQ_CLAIMED, &a->flags2)) { esas2r_adapter_power_down() 521 if (test_bit(AF2_MSI_ENABLED, &a->flags2)) { esas2r_adapter_power_down() 644 if (test_bit(AF2_INIT_DONE, &a->flags2)) { esas2r_kill_adapter() 760 if (test_bit(AF2_IRQ_CLAIMED, &a->flags2)) { esas2r_resume() 898 if (test_bit(AF2_THUNDERBOLT, &a->flags2)) esas2r_init_adapter_struct() 958 if (!test_bit(AF_NVR_VALID, &a->flags)) esas2r_init_adapter_struct() 965 if (test_bit(AF_FIRST_INIT, &a->flags)) { esas2r_init_adapter_struct() 1021 if (test_bit(AF_CHPRST_DETECTED, &a->flags)) esas2r_check_adapter() 1269 if ((test_bit(AF2_THUNDERBOLT, &a->flags2)) esas2r_format_init_msg() 1363 if (test_bit(AF_DEGRADED_MODE, &a->flags)) esas2r_init_adapter_hw() 1366 if (!test_bit(AF_NVR_VALID, &a->flags)) { esas2r_init_adapter_hw() 1400 if (test_bit(AF_CHPRST_DETECTED, &a->flags) esas2r_init_adapter_hw() 1401 && (test_bit(AF_FIRST_INIT, &a->flags))) { esas2r_init_adapter_hw() 1433 if (test_bit(AF_FIRST_INIT, &a->flags)) esas2r_init_adapter_hw() 1436 while (test_bit(AF_DISC_PENDING, &a->flags)) { esas2r_init_adapter_hw() 1455 if (!test_bit(AF_CHPRST_PENDING, &a->flags)) esas2r_init_adapter_hw() 1475 if (test_bit(AF_FIRST_INIT, &a->flags)) esas2r_init_adapter_hw() 1506 if (test_bit(AF_CHPRST_DETECTED, &a->flags) && esas2r_init_adapter_hw() 1507 test_bit(AF_FIRST_INIT, &a->flags)) { esas2r_init_adapter_hw() 1524 if (test_bit(AF_FIRST_INIT, &a->flags)) { esas2r_init_adapter_hw() 1552 if (test_bit(AF2_COREDUMP_AVAIL, &a->flags2) && esas2r_reset_chip() 1553 !test_bit(AF2_COREDUMP_SAVED, &a->flags2)) { esas2r_reset_chip() 1611 if (!test_bit(AF_DEGRADED_MODE, &a->flags)) { esas2r_power_down() 1651 if (test_bit(AF2_VDA_POWER_DOWN, &a->flags2)) esas2r_power_down() 1695 if (test_bit(AF_NOT_PRESENT, &a->flags)) esas2r_is_adapter_present()
|
H A D | esas2r_io.c | 52 if (unlikely(test_bit(AF_DEGRADED_MODE, &a->flags) || esas2r_start_request() 53 test_bit(AF_POWER_DOWN, &a->flags))) { esas2r_start_request() 74 !test_bit(AF_DISC_PENDING, &a->flags))) esas2r_start_request() 95 !test_bit(AF_CHPRST_PENDING, &a->flags) && esas2r_start_request() 96 !test_bit(AF_FLASHING, &a->flags) && esas2r_start_request() 97 !test_bit(AF_DISC_PENDING, &a->flags))) esas2r_start_request() 152 if (test_bit(AF_COMM_LIST_TOGGLE, &a->flags)) esas2r_start_vda_request() 173 if (test_bit(AF_COMM_LIST_TOGGLE, &a->flags)) esas2r_start_vda_request() 720 !test_bit(AF_CHPRST_PENDING, &a->flags) && esas2r_timer_tick() 721 !test_bit(AF_DISC_PENDING, &a->flags)) { esas2r_timer_tick() 728 if (test_bit(AF_CHPRST_PENDING, &a->flags)) { esas2r_timer_tick() 729 if (!test_bit(AF_CHPRST_NEEDED, &a->flags) && esas2r_timer_tick() 730 !test_bit(AF_CHPRST_DETECTED, &a->flags)) esas2r_timer_tick() 733 if (test_bit(AF_DISC_PENDING, &a->flags)) esas2r_timer_tick() 735 if (test_bit(AF_HEARTBEAT_ENB, &a->flags)) { esas2r_timer_tick() 736 if (test_bit(AF_HEARTBEAT, &a->flags)) { esas2r_timer_tick() 811 if (test_bit(AF_FLASHING, &a->flags)) { esas2r_send_task_mgmt() 830 if (!test_bit(AF_FLASHING, &a->flags)) esas2r_send_task_mgmt() 847 if (!test_bit(AF_DEGRADED_MODE, &a->flags) && esas2r_reset_bus() 848 !test_bit(AF_CHPRST_PENDING, &a->flags) && esas2r_reset_bus() 849 !test_bit(AF_DISC_PENDING, &a->flags)) { esas2r_reset_bus()
|
H A D | esas2r_disc.c | 110 if (test_bit(AF_CHPRST_DETECTED, &a->flags) || esas2r_disc_initialize() 111 test_bit(AF_POWER_MGT, &a->flags)) { esas2r_disc_initialize() 261 if (test_bit(AF_DISC_POLLED, &a->flags) && esas2r_disc_check_complete() 262 test_bit(AF_DISC_IN_PROG, &a->flags)) { esas2r_disc_check_complete() 304 if (!test_bit(AF_CHPRST_PENDING, &a->flags) && esas2r_disc_queue_event() 305 !test_bit(AF_DISC_POLLED, &a->flags)) esas2r_disc_queue_event() 319 if (test_bit(AF_DISC_IN_PROG, &a->flags)) { esas2r_disc_start_port() 327 if (test_bit(AF_DISC_POLLED, &a->flags) esas2r_disc_start_port() 356 if (test_bit(AF_DISC_POLLED, &a->flags)) esas2r_disc_start_port() 376 if (!test_bit(AF_DISC_POLLED, &a->flags)) esas2r_disc_start_port() 450 if (!test_bit(AF_DISC_PENDING, &a->flags)) esas2r_disc_continue() 477 if (!test_bit(AF_CHPRST_PENDING, &a->flags) && esas2r_disc_start_request() 478 !test_bit(AF_FLASHING, &a->flags)) esas2r_disc_start_request()
|
/linux-4.1.27/net/atm/ |
H A D | svc.c | 52 if (test_bit(ATM_VF_REGIS, &vcc->flags)) { svc_disconnect() 56 if (test_bit(ATM_VF_RELEASED, &vcc->flags) || !sigd) svc_disconnect() 123 if (!test_bit(ATM_VF_HASQOS, &vcc->flags)) { svc_bind() 132 if (!test_bit(ATM_VF_WAITING, &vcc->flags) || !sigd) svc_bind() 174 if (test_bit(ATM_VF_WAITING, &vcc->flags)) { svc_connect() 190 if (!test_bit(ATM_VF_HASQOS, &vcc->flags)) { svc_connect() 214 while (test_bit(ATM_VF_WAITING, &vcc->flags) && sigd) { svc_connect() 235 while (test_bit(ATM_VF_WAITING, &vcc->flags) && sigd) { svc_connect() 241 while (!test_bit(ATM_VF_RELEASED, &vcc->flags) && svc_connect() 291 if (test_bit(ATM_VF_SESSION, &vcc->flags)) { svc_listen() 295 if (test_bit(ATM_VF_LISTEN, &vcc->flags)) { svc_listen() 303 if (!test_bit(ATM_VF_WAITING, &vcc->flags) || !sigd) svc_listen() 345 if (test_bit(ATM_VF_RELEASED, &old_vcc->flags)) svc_accept() 347 if (test_bit(ATM_VF_CLOSE, &old_vcc->flags)) { svc_accept() 395 if (!test_bit(ATM_VF_WAITING, &new_vcc->flags) || !sigd) svc_accept() 440 if (!test_bit(ATM_VF_WAITING, &vcc->flags) || svc_change_qos() 441 test_bit(ATM_VF_RELEASED, &vcc->flags) || !sigd) { svc_change_qos() 544 if (!test_bit(ATM_VF_WAITING, &vcc->flags) || !sigd) svc_addparty() 567 if (!test_bit(ATM_VF_WAITING, &vcc->flags) || !sigd) svc_dropparty() 590 if (!test_bit(ATM_VF_SESSION, &vcc->flags)) svc_ioctl() 598 if (!test_bit(ATM_VF_SESSION, &vcc->flags)) svc_ioctl()
|
H A D | common.c | 327 if (test_bit(ATM_VF_ADDR, &walk->flags) && walk->vpi == vpi && sk_for_each() 403 if (test_bit(ATM_DF_REMOVED, &dev->flags) || __vcc_connect() 483 if (test_bit(ATM_VF_PARTIAL, &vcc->flags)) vcc_connect() 494 if (!test_bit(ATM_VF_HASQOS, &vcc->flags)) vcc_connect() 521 if (test_bit(ATM_VF_READY, &ATM_SD(sock)->flags)) vcc_connect() 542 if (test_bit(ATM_VF_RELEASED, &vcc->flags) || vcc_recvmsg() 543 test_bit(ATM_VF_CLOSE, &vcc->flags) || vcc_recvmsg() 544 !test_bit(ATM_VF_READY, &vcc->flags)) vcc_recvmsg() 590 if (test_bit(ATM_VF_RELEASED, &vcc->flags) || vcc_sendmsg() 591 test_bit(ATM_VF_CLOSE, &vcc->flags) || vcc_sendmsg() 592 !test_bit(ATM_VF_READY, &vcc->flags)) { vcc_sendmsg() 619 if (test_bit(ATM_VF_RELEASED, &vcc->flags) || vcc_sendmsg() 620 test_bit(ATM_VF_CLOSE, &vcc->flags) || vcc_sendmsg() 621 !test_bit(ATM_VF_READY, &vcc->flags)) { vcc_sendmsg() 662 if (test_bit(ATM_VF_RELEASED, &vcc->flags) || vcc_poll() 663 test_bit(ATM_VF_CLOSE, &vcc->flags)) vcc_poll() 672 test_bit(ATM_VF_WAITING, &vcc->flags)) vcc_poll() 804 if (!test_bit(ATM_VF_HASQOS, &vcc->flags)) vcc_getsockopt() 815 if (!vcc->dev || !test_bit(ATM_VF_ADDR, &vcc->flags)) vcc_getsockopt()
|
H A D | pvc.c | 41 if (!test_bit(ATM_VF_HASQOS, &vcc->flags)) { pvc_bind() 45 if (test_bit(ATM_VF_PARTIAL, &vcc->flags)) { pvc_bind() 94 if (!vcc->dev || !test_bit(ATM_VF_ADDR, &vcc->flags)) pvc_getname()
|
H A D | signaling.c | 40 if (test_bit(ATM_VF_RELEASED, &vcc->flags) || modify_qos() 41 !test_bit(ATM_VF_READY, &vcc->flags)) modify_qos() 170 if (type == as_connect && test_bit(ATM_VF_SESSION, &vcc->flags)) sigd_enq2() 190 !test_bit(ATM_VF_META, &vcc->flags)) { purge_vcc()
|
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_sp.c | 187 if (test_bit(RAMROD_DRV_CLR_ONLY, ramrod_flags)) { bnx2x_exe_queue_step() 256 return !!test_bit(o->state, o->pstate); bnx2x_raw_check_pending() 294 if (!test_bit(state, pstate)) { bnx2x_state_wait() 837 if (test_bit(BNX2X_ISCSI_ETH_MAC, vlan_mac_flags)) bnx2x_set_one_mac_e2() 840 else if (test_bit(BNX2X_ETH_MAC, vlan_mac_flags)) bnx2x_set_one_mac_e2() 1179 if (!(test_bit(BNX2X_DONT_CONSUME_CAM_CREDIT, bnx2x_validate_vlan_mac_add() 1236 if (!(test_bit(BNX2X_DONT_CONSUME_CAM_CREDIT, bnx2x_validate_vlan_mac_del() 1304 if (!(test_bit(BNX2X_DONT_CONSUME_CAM_CREDIT_DEST, bnx2x_validate_vlan_mac_move() 1309 if (!(test_bit(BNX2X_DONT_CONSUME_CAM_CREDIT, bnx2x_validate_vlan_mac_move() 1343 if (test_bit(BNX2X_DONT_CONSUME_CAM_CREDIT, bnx2x_remove_vlan_mac() 1456 if (test_bit(RAMROD_CONT, ramrod_flags)) { bnx2x_complete_vlan_mac() 1504 if (!test_bit(BNX2X_DONT_CONSUME_CAM_CREDIT, bnx2x_optimize_vlan_mac() 1601 bool restore = test_bit(RAMROD_RESTORE, ramrod_flags); bnx2x_execute_vlan_mac() 1602 bool drv_only = test_bit(RAMROD_DRV_CLR_ONLY, ramrod_flags); bnx2x_execute_vlan_mac() 1721 bool restore = test_bit(RAMROD_RESTORE, &p->ramrod_flags); bnx2x_vlan_mac_push_new_cmd() 1757 bool cont = test_bit(RAMROD_CONT, ramrod_flags); bnx2x_config_vlan_mac() 1775 if (test_bit(RAMROD_DRV_CLR_ONLY, ramrod_flags)) { bnx2x_config_vlan_mac() 1781 if (cont || test_bit(RAMROD_EXEC, ramrod_flags) || bnx2x_config_vlan_mac() 1782 test_bit(RAMROD_COMP_WAIT, ramrod_flags)) { bnx2x_config_vlan_mac() 1792 if (test_bit(RAMROD_COMP_WAIT, &p->ramrod_flags)) { bnx2x_config_vlan_mac() 2074 if (test_bit(BNX2X_ACCEPT_UNICAST, &p->rx_accept_flags)) bnx2x_set_rx_mode_e1x() 2078 if (test_bit(BNX2X_ACCEPT_MULTICAST, &p->rx_accept_flags)) bnx2x_set_rx_mode_e1x() 2082 if (test_bit(BNX2X_ACCEPT_ALL_UNICAST, &p->rx_accept_flags)) { bnx2x_set_rx_mode_e1x() 2087 if (test_bit(BNX2X_ACCEPT_ALL_MULTICAST, &p->rx_accept_flags)) { bnx2x_set_rx_mode_e1x() 2092 if (test_bit(BNX2X_ACCEPT_BROADCAST, &p->rx_accept_flags)) bnx2x_set_rx_mode_e1x() 2095 if (test_bit(BNX2X_ACCEPT_UNMATCHED, &p->rx_accept_flags)) bnx2x_set_rx_mode_e1x() 2159 if (test_bit(BNX2X_ACCEPT_UNICAST, accept_flags)) bnx2x_rx_mode_set_cmd_state_e2() 2162 if (test_bit(BNX2X_ACCEPT_MULTICAST, accept_flags)) bnx2x_rx_mode_set_cmd_state_e2() 2165 if (test_bit(BNX2X_ACCEPT_ALL_UNICAST, accept_flags)) { bnx2x_rx_mode_set_cmd_state_e2() 2170 if (test_bit(BNX2X_ACCEPT_ALL_MULTICAST, accept_flags)) { bnx2x_rx_mode_set_cmd_state_e2() 2175 if (test_bit(BNX2X_ACCEPT_BROADCAST, accept_flags)) bnx2x_rx_mode_set_cmd_state_e2() 2178 if (test_bit(BNX2X_ACCEPT_UNMATCHED, accept_flags)) { bnx2x_rx_mode_set_cmd_state_e2() 2183 if (test_bit(BNX2X_ACCEPT_ANY_VLAN, accept_flags)) bnx2x_rx_mode_set_cmd_state_e2() 2210 if (test_bit(RAMROD_TX, &p->ramrod_flags)) { bnx2x_set_rx_mode_e2() 2223 if (test_bit(RAMROD_RX, &p->ramrod_flags)) { bnx2x_set_rx_mode_e2() 2241 if (test_bit(BNX2X_RX_MODE_FCOE_ETH, &p->rx_mode_flags)) { bnx2x_set_rx_mode_e2() 2243 if (test_bit(RAMROD_TX, &p->ramrod_flags)) { bnx2x_set_rx_mode_e2() 2257 if (test_bit(RAMROD_RX, &p->ramrod_flags)) { bnx2x_set_rx_mode_e2() 2323 if (test_bit(RAMROD_COMP_WAIT, &p->ramrod_flags)) { bnx2x_config_rx_mode() 2981 if (test_bit(RAMROD_DRV_CLR_ONLY, &p->ramrod_flags)) { bnx2x_mcast_setup_e2() 3078 if (!test_bit(RAMROD_DRV_CLR_ONLY, &p->ramrod_flags)) { bnx2x_mcast_setup_e1h() 3465 if (test_bit(RAMROD_DRV_CLR_ONLY, &p->ramrod_flags)) { bnx2x_mcast_setup_e1() 3562 if (test_bit(RAMROD_COMP_WAIT, &p->ramrod_flags)) bnx2x_config_mcast() 3593 return !!test_bit(o->sched_state, o->raw.pstate); bnx2x_mcast_check_sched() 4035 if (test_bit(BNX2X_RSS_MODE_DISABLED, &p->rss_flags)) bnx2x_setup_rss() 4037 else if (test_bit(BNX2X_RSS_MODE_REGULAR, &p->rss_flags)) bnx2x_setup_rss() 4045 if (test_bit(BNX2X_RSS_IPV4, &p->rss_flags)) bnx2x_setup_rss() 4048 if (test_bit(BNX2X_RSS_IPV4_TCP, &p->rss_flags)) bnx2x_setup_rss() 4051 if (test_bit(BNX2X_RSS_IPV4_UDP, &p->rss_flags)) bnx2x_setup_rss() 4054 if (test_bit(BNX2X_RSS_IPV6, &p->rss_flags)) bnx2x_setup_rss() 4057 if (test_bit(BNX2X_RSS_IPV6_TCP, &p->rss_flags)) bnx2x_setup_rss() 4060 if (test_bit(BNX2X_RSS_IPV6_UDP, &p->rss_flags)) bnx2x_setup_rss() 4063 if (test_bit(BNX2X_RSS_GRE_INNER_HDRS, &p->rss_flags)) bnx2x_setup_rss() 4067 if (test_bit(BNX2X_RSS_SET_SRCH, &p->rss_flags)) { bnx2x_setup_rss() 4127 if (test_bit(RAMROD_DRV_CLR_ONLY, &p->ramrod_flags)) { bnx2x_config_rss() 4141 if (test_bit(RAMROD_COMP_WAIT, &p->ramrod_flags)) bnx2x_config_rss() 4195 if (test_bit(RAMROD_DRV_CLR_ONLY, ¶ms->ramrod_flags)) bnx2x_queue_state_change() 4207 if (test_bit(RAMROD_COMP_WAIT, ¶ms->ramrod_flags)) { bnx2x_queue_state_change() 4216 return !!test_bit(pending_bit, pending); bnx2x_queue_state_change() 4305 data->rx.tpa_en |= test_bit(BNX2X_Q_FLG_TPA_IPV6, ¶ms->flags) * bnx2x_q_fill_setup_data_e2() 4317 if (test_bit(BNX2X_Q_FLG_STATS, flags)) { bnx2x_q_fill_init_general_data() 4322 test_bit(BNX2X_Q_FLG_ZERO_STATS, flags); bnx2x_q_fill_init_general_data() 4327 gen_data->is_fcoe_flg = test_bit(BNX2X_Q_FLG_FCOE, flags); bnx2x_q_fill_init_general_data() 4328 gen_data->activate_flg = test_bit(BNX2X_Q_FLG_ACTIVE, flags); bnx2x_q_fill_init_general_data() 4336 test_bit(BNX2X_Q_FLG_FCOE, flags) ? bnx2x_q_fill_init_general_data() 4351 test_bit(BNX2X_Q_FLG_TX_SEC, flags); bnx2x_q_fill_init_tx_data() 4355 test_bit(BNX2X_Q_FLG_DEF_VLAN, flags); bnx2x_q_fill_init_tx_data() 4357 test_bit(BNX2X_Q_FLG_TX_SWITCH, flags); bnx2x_q_fill_init_tx_data() 4359 test_bit(BNX2X_Q_FLG_ANTI_SPOOF, flags); bnx2x_q_fill_init_tx_data() 4361 test_bit(BNX2X_Q_FLG_FORCE_DEFAULT_PRI, flags); bnx2x_q_fill_init_tx_data() 4363 test_bit(BNX2X_Q_FLG_REFUSE_OUTBAND_VLAN, flags); bnx2x_q_fill_init_tx_data() 4365 test_bit(BNX2X_Q_FLG_TUN_INC_INNER_IP_ID, flags); bnx2x_q_fill_init_tx_data() 4367 test_bit(BNX2X_Q_FLG_PCSUM_ON_PKT, flags) ? CSUM_ON_PKT : bnx2x_q_fill_init_tx_data() 4402 rx_data->tpa_en = test_bit(BNX2X_Q_FLG_TPA, flags) * bnx2x_q_fill_init_rx_data() 4404 rx_data->tpa_en |= test_bit(BNX2X_Q_FLG_TPA_GRO, flags) * bnx2x_q_fill_init_rx_data() 4411 test_bit(BNX2X_Q_FLG_DHC, flags); bnx2x_q_fill_init_rx_data() 4426 test_bit(BNX2X_Q_FLG_VLAN, flags); bnx2x_q_fill_init_rx_data() 4428 test_bit(BNX2X_Q_FLG_OV, flags); bnx2x_q_fill_init_rx_data() 4446 rx_data->is_leading_rss = test_bit(BNX2X_Q_FLG_LEADING_RSS, flags); bnx2x_q_fill_init_rx_data() 4448 if (test_bit(BNX2X_Q_FLG_MCAST, flags)) { bnx2x_q_fill_init_rx_data() 4457 test_bit(BNX2X_Q_FLG_SILENT_VLAN_REM, flags); bnx2x_q_fill_init_rx_data() 4530 if (test_bit(BNX2X_Q_TYPE_HAS_TX, &o->type) && bnx2x_q_init() 4531 test_bit(BNX2X_Q_FLG_HC, &init->tx.flags)) { bnx2x_q_init() 4536 !test_bit(BNX2X_Q_FLG_HC_EN, &init->tx.flags), bnx2x_q_init() 4541 if (test_bit(BNX2X_Q_TYPE_HAS_RX, &o->type) && bnx2x_q_init() 4542 test_bit(BNX2X_Q_FLG_HC, &init->rx.flags)) { bnx2x_q_init() 4547 !test_bit(BNX2X_Q_FLG_HC_EN, &init->rx.flags), bnx2x_q_init() 4680 test_bit(BNX2X_Q_UPDATE_IN_VLAN_REM, ¶ms->update_flags); bnx2x_q_fill_update_data() 4682 test_bit(BNX2X_Q_UPDATE_IN_VLAN_REM_CHNG, bnx2x_q_fill_update_data() 4687 test_bit(BNX2X_Q_UPDATE_OUT_VLAN_REM, ¶ms->update_flags); bnx2x_q_fill_update_data() 4689 test_bit(BNX2X_Q_UPDATE_OUT_VLAN_REM_CHNG, bnx2x_q_fill_update_data() 4696 test_bit(BNX2X_Q_UPDATE_ANTI_SPOOF, ¶ms->update_flags); bnx2x_q_fill_update_data() 4698 test_bit(BNX2X_Q_UPDATE_ANTI_SPOOF_CHNG, ¶ms->update_flags); bnx2x_q_fill_update_data() 4702 test_bit(BNX2X_Q_UPDATE_ACTIVATE, ¶ms->update_flags); bnx2x_q_fill_update_data() 4704 test_bit(BNX2X_Q_UPDATE_ACTIVATE_CHNG, ¶ms->update_flags); bnx2x_q_fill_update_data() 4708 test_bit(BNX2X_Q_UPDATE_DEF_VLAN_EN, ¶ms->update_flags); bnx2x_q_fill_update_data() 4710 test_bit(BNX2X_Q_UPDATE_DEF_VLAN_EN_CHNG, bnx2x_q_fill_update_data() 4715 test_bit(BNX2X_Q_UPDATE_SILENT_VLAN_REM_CHNG, bnx2x_q_fill_update_data() 4718 test_bit(BNX2X_Q_UPDATE_SILENT_VLAN_REM, ¶ms->update_flags); bnx2x_q_fill_update_data() 4724 test_bit(BNX2X_Q_UPDATE_TX_SWITCHING, ¶ms->update_flags); bnx2x_q_fill_update_data() 4726 test_bit(BNX2X_Q_UPDATE_TX_SWITCHING_CHNG, bnx2x_q_fill_update_data() 4731 test_bit(BNX2X_Q_UPDATE_PTP_PKTS, ¶ms->update_flags); bnx2x_q_fill_update_data() 4733 test_bit(BNX2X_Q_UPDATE_PTP_PKTS_CHNG, ¶ms->update_flags); bnx2x_q_fill_update_data() 5026 if (test_bit(RAMROD_DRV_CLR_ONLY, ¶ms->ramrod_flags)) { bnx2x_queue_chk_transition() 5048 if (test_bit(BNX2X_Q_FLG_ACTIVE, bnx2x_queue_chk_transition() 5076 if (test_bit(BNX2X_Q_UPDATE_ACTIVATE_CHNG, bnx2x_queue_chk_transition() 5078 !test_bit(BNX2X_Q_UPDATE_ACTIVATE, bnx2x_queue_chk_transition() 5103 if (test_bit(BNX2X_Q_UPDATE_ACTIVATE_CHNG, bnx2x_queue_chk_transition() 5105 !test_bit(BNX2X_Q_UPDATE_ACTIVATE, bnx2x_queue_chk_transition() 5138 if (test_bit(BNX2X_Q_UPDATE_ACTIVATE_CHNG, bnx2x_queue_chk_transition() 5140 test_bit(BNX2X_Q_UPDATE_ACTIVATE, bnx2x_queue_chk_transition() 5341 if (test_bit(RAMROD_DRV_CLR_ONLY, ¶ms->ramrod_flags)) { bnx2x_func_chk_transition() 5374 (!test_bit(BNX2X_F_CMD_STOP, &o->pending))) bnx2x_func_chk_transition() 5378 (!test_bit(BNX2X_F_CMD_STOP, &o->pending))) bnx2x_func_chk_transition() 5385 (!test_bit(BNX2X_F_CMD_STOP, &o->pending))) bnx2x_func_chk_transition() 5389 (!test_bit(BNX2X_F_CMD_STOP, &o->pending))) bnx2x_func_chk_transition() 5398 (!test_bit(BNX2X_F_CMD_STOP, &o->pending))) bnx2x_func_chk_transition() 5402 (!test_bit(BNX2X_F_CMD_STOP, &o->pending))) bnx2x_func_chk_transition() 5718 if (test_bit(BNX2X_F_UPDATE_TX_SWITCH_SUSPEND_CHNG, bnx2x_func_send_switch_update() 5722 test_bit(BNX2X_F_UPDATE_TX_SWITCH_SUSPEND, bnx2x_func_send_switch_update() 5726 if (test_bit(BNX2X_F_UPDATE_SD_VLAN_TAG_CHNG, bnx2x_func_send_switch_update() 5733 if (test_bit(BNX2X_F_UPDATE_SD_VLAN_ETH_TYPE_CHNG, bnx2x_func_send_switch_update() 5740 if (test_bit(BNX2X_F_UPDATE_VLAN_FORCE_PRIO_CHNG, bnx2x_func_send_switch_update() 5743 if (test_bit(BNX2X_F_UPDATE_VLAN_FORCE_PRIO_FLAG, bnx2x_func_send_switch_update() 5750 if (test_bit(BNX2X_F_UPDATE_TUNNEL_CFG_CHNG, bnx2x_func_send_switch_update() 5753 if (test_bit(BNX2X_F_UPDATE_TUNNEL_CLSS_EN, bnx2x_func_send_switch_update() 5756 if (test_bit(BNX2X_F_UPDATE_TUNNEL_INNER_GRE_RSS_EN, bnx2x_func_send_switch_update() 6013 (test_bit(RAMROD_RETRY, ¶ms->ramrod_flags))) { bnx2x_func_state_change() 6034 if (test_bit(RAMROD_DRV_CLR_ONLY, ¶ms->ramrod_flags)) { bnx2x_func_state_change() 6050 if (test_bit(RAMROD_COMP_WAIT, ¶ms->ramrod_flags)) { bnx2x_func_state_change() 6059 return !!test_bit(cmd, pending); bnx2x_func_state_change()
|
/linux-4.1.27/drivers/input/ |
H A D | ff-core.c | 69 if (!test_bit(FF_PERIODIC, ff->ffbit)) compat_effect() 112 if (!test_bit(EV_FF, dev->evbit)) input_ff_upload() 116 !test_bit(effect->type, dev->ffbit)) { input_ff_upload() 124 !test_bit(effect->u.periodic.waveform, dev->ffbit))) { input_ff_upload() 129 if (!test_bit(effect->type, ff->ffbit)) { input_ff_upload() 228 if (!test_bit(EV_FF, dev->evbit)) input_ff_erase() 276 if (!test_bit(FF_GAIN, dev->ffbit) || value > 0xffff) input_ff_event() 283 if (!test_bit(FF_AUTOCENTER, dev->ffbit) || value > 0xffff) input_ff_event() 347 if (test_bit(i, dev->ffbit)) input_ff_create() 351 if (test_bit(FF_PERIODIC, ff->ffbit)) input_ff_create()
|
H A D | input.c | 56 return code <= max && test_bit(code, bm); is_event_supported() 77 if (test_bit(EV_REP, dev->evbit) && input_start_autorepeat() 159 if (test_bit(EV_REP, dev->evbit) && test_bit(EV_KEY, dev->evbit)) { input_pass_values() 191 if (test_bit(dev->repeat_key, dev->key) && input_repeat_key() 297 if (!!test_bit(code, dev->key) != !!value) { input_get_disposition() 307 !!test_bit(code, dev->sw) != !!value) { input_get_disposition() 334 !!test_bit(code, dev->led) != !!value) { input_get_disposition() 344 if (!!test_bit(code, dev->snd) != !!value) input_get_disposition() 916 if (test_bit(EV_KEY, dev->evbit) && input_set_keycode() 1154 if (test_bit(EV_KEY, dev->evbit)) input_devices_seq_show() 1156 if (test_bit(EV_REL, dev->evbit)) input_devices_seq_show() 1158 if (test_bit(EV_ABS, dev->evbit)) input_devices_seq_show() 1160 if (test_bit(EV_MSC, dev->evbit)) input_devices_seq_show() 1162 if (test_bit(EV_LED, dev->evbit)) input_devices_seq_show() 1164 if (test_bit(EV_SND, dev->evbit)) input_devices_seq_show() 1166 if (test_bit(EV_FF, dev->evbit)) input_devices_seq_show() 1168 if (test_bit(EV_SW, dev->evbit)) input_devices_seq_show() 1599 if (test_bit(EV_KEY, dev->evbit)) input_dev_uevent() 1601 if (test_bit(EV_REL, dev->evbit)) input_dev_uevent() 1603 if (test_bit(EV_ABS, dev->evbit)) input_dev_uevent() 1605 if (test_bit(EV_MSC, dev->evbit)) input_dev_uevent() 1607 if (test_bit(EV_LED, dev->evbit)) input_dev_uevent() 1609 if (test_bit(EV_SND, dev->evbit)) input_dev_uevent() 1611 if (test_bit(EV_FF, dev->evbit)) input_dev_uevent() 1613 if (test_bit(EV_SW, dev->evbit)) input_dev_uevent() 1626 if (!test_bit(EV_##type, dev->evbit)) \ 1630 if (!test_bit(i, dev->bits##bit)) \ 1633 active = test_bit(i, dev->bits); \ 1649 if (activate && test_bit(EV_REP, dev->evbit)) { input_dev_toggle() 1971 } else if (test_bit(ABS_MT_TRACKING_ID, dev->absbit)) { input_estimate_events_per_packet() 1975 } else if (test_bit(ABS_MT_POSITION_X, dev->absbit)) { input_estimate_events_per_packet() 1983 if (test_bit(EV_ABS, dev->evbit)) { input_estimate_events_per_packet() 1985 if (test_bit(i, dev->absbit)) { input_estimate_events_per_packet() 1994 if (test_bit(EV_REL, dev->evbit)) { input_estimate_events_per_packet() 1996 if (test_bit(i, dev->relbit)) input_estimate_events_per_packet() 2008 if (!test_bit(EV_##type, dev->evbit)) \
|
H A D | ff-memless.c | 139 if (!test_bit(FF_EFFECT_STARTED, &state->flags)) ml_schedule_timer() 142 if (test_bit(FF_EFFECT_PLAYING, &state->flags)) ml_schedule_timer() 213 if (test_bit(effect_type, ff->ffbit)) get_compatible_type() 216 if (effect_type == FF_PERIODIC && test_bit(FF_RUMBLE, ff->ffbit)) get_compatible_type() 356 if (!test_bit(FF_EFFECT_STARTED, &state->flags)) ml_get_combo_effect() 466 if (test_bit(FF_EFFECT_PLAYING, &state->flags)) ml_ff_playback() 485 if (test_bit(FF_EFFECT_STARTED, &state->flags)) { ml_ff_upload() 547 if (test_bit(FF_RUMBLE, ff->ffbit)) { input_ff_create_memless()
|
H A D | joydev.c | 297 event->value = !!test_bit(joydev->keypam[event->number], joydev_generate_startup_event() 348 test_bit(joydev->keypam[i], input->key) ? (1 << i) : 0; joydev_0x_read() 811 if (test_bit(EV_KEY, dev->evbit) && test_bit(BTN_TOUCH, dev->keybit)) joydev_match() 815 if (test_bit(EV_KEY, dev->evbit) && test_bit(BTN_DIGI, dev->keybit)) joydev_match() 863 if (test_bit(i, dev->absbit)) { joydev_connect() 870 if (test_bit(i + BTN_MISC, dev->keybit)) { joydev_connect() 877 if (test_bit(i + BTN_MISC, dev->keybit)) { joydev_connect()
|
/linux-4.1.27/arch/blackfin/kernel/ |
H A D | ipipe.c | 105 if (unlikely(test_bit(IPIPE_STICKY_FLAG, &idesc->control))) __ipipe_handle_irq() 111 if (likely(test_bit(IPIPE_WIRED_FLAG, &idesc->control))) { __ipipe_handle_irq() 114 if (test_bit(IPIPE_SYNCDEFER_FLAG, &p->status)) __ipipe_handle_irq() 128 if (test_bit(IPIPE_HANDLE_FLAG, &idesc->control)) { __ipipe_handle_irq() 135 if (!test_bit(IPIPE_PASS_FLAG, &idesc->control)) __ipipe_handle_irq() 148 if (test_bit(IPIPE_SYNCDEFER_FLAG, &p->status)) __ipipe_handle_irq() 156 if (test_bit(IPIPE_AHEAD_FLAG, &this_domain->flags) && __ipipe_handle_irq() 270 && !test_bit(irq - IPIPE_VIRQ_BASE, &__ipipe_virtual_irq_map))) ipipe_trigger_irq() 306 test_bit(IPIPE_SYNCDEFER_FLAG, &ipipe_root_cpudom_var(status))) ___ipipe_sync_pipeline() 370 x = test_bit(IPIPE_STALL_FLAG, p); __ipipe_test_root()
|
/linux-4.1.27/sound/usb/misc/ |
H A D | ua101.c | 196 if (test_bit(USB_PLAYBACK_RUNNING, &ua->states)) { playback_urb_complete() 269 if (unlikely(!test_bit(USB_PLAYBACK_RUNNING, &ua->states))) playback_tasklet() 299 if (test_bit(ALSA_PLAYBACK_RUNNING, &ua->states)) playback_tasklet() 380 if (frames > 0 && test_bit(ALSA_CAPTURE_RUNNING, &ua->states)) capture_urb_complete() 385 if (test_bit(USB_CAPTURE_RUNNING, &ua->states)) { capture_urb_complete() 412 if (test_bit(USB_PLAYBACK_RUNNING, &ua->states) && capture_urb_complete() 495 if (err < 0 && !test_bit(DISCONNECTED, &ua->states)) disable_iso_interface() 515 if (test_bit(DISCONNECTED, &ua->states)) start_usb_capture() 518 if (test_bit(USB_CAPTURE_RUNNING, &ua->states)) start_usb_capture() 556 if (test_bit(DISCONNECTED, &ua->states)) start_usb_playback() 559 if (test_bit(USB_PLAYBACK_RUNNING, &ua->states)) start_usb_playback() 582 !test_bit(USB_CAPTURE_RUNNING, &ua->states) || start_usb_playback() 583 test_bit(DISCONNECTED, &ua->states)); start_usb_playback() 584 if (test_bit(DISCONNECTED, &ua->states)) { start_usb_playback() 588 if (!test_bit(USB_CAPTURE_RUNNING, &ua->states)) { start_usb_playback() 616 if (test_bit(ALSA_CAPTURE_RUNNING, &ua->states)) abort_alsa_capture() 622 if (test_bit(ALSA_PLAYBACK_RUNNING, &ua->states)) abort_alsa_playback() 699 if (!test_bit(ALSA_CAPTURE_OPEN, &ua->states)) playback_pcm_open() 715 if (!test_bit(ALSA_PLAYBACK_OPEN, &ua->states)) capture_pcm_close() 728 if (!test_bit(ALSA_CAPTURE_OPEN, &ua->states)) playback_pcm_close() 791 test_bit(CAPTURE_URB_COMPLETED, &ua->states) || capture_pcm_prepare() 792 !test_bit(USB_CAPTURE_RUNNING, &ua->states)); capture_pcm_prepare() 793 if (test_bit(DISCONNECTED, &ua->states)) capture_pcm_prepare() 795 if (!test_bit(USB_CAPTURE_RUNNING, &ua->states)) capture_pcm_prepare() 818 test_bit(PLAYBACK_URB_COMPLETED, &ua->states) || playback_pcm_prepare() 819 !test_bit(USB_PLAYBACK_RUNNING, &ua->states)); playback_pcm_prepare() 820 if (test_bit(DISCONNECTED, &ua->states)) playback_pcm_prepare() 822 if (!test_bit(USB_PLAYBACK_RUNNING, &ua->states)) playback_pcm_prepare() 837 if (!test_bit(USB_CAPTURE_RUNNING, &ua->states)) capture_pcm_trigger() 855 if (!test_bit(USB_PLAYBACK_RUNNING, &ua->states)) playback_pcm_trigger()
|
/linux-4.1.27/drivers/char/pcmcia/ |
H A D | cm4000_cs.c | 488 if (test_bit(IS_INVREV, &dev->flags)) set_protocol() 497 | (test_bit(IS_INVREV, &dev->flags) ? 0x02 : 0x00) /* inv parity */ set_protocol() 642 while (test_bit(LOCK_MONITOR, (void *)&dev->flags)) 714 } else if (test_bit(IS_CMM_ABSENT, &dev->flags)) { 721 } else if ((dev->flags0 & 1) && test_bit(IS_CMM_ABSENT, &dev->flags)) { 728 if (test_bit(IS_ATR_VALID, &dev->flags) == 1) { 823 if (test_bit(IS_ATR_VALID, &dev->flags) == 1) { 827 if ((test_bit(IS_AUTOPPS_ACT, &dev->flags) == 0) && 829 !(test_bit(IS_ANY_T0, &dev->flags) && 830 test_bit(IS_ANY_T1, &dev->flags))) { 860 if (test_bit(IS_AUTOPPS_ACT, &dev->flags) == 1) 866 if (test_bit(IS_ANY_T0, &dev->flags) 867 && test_bit(IS_ANY_T1, &dev->flags)) 884 if (test_bit(IS_BAD_CSUM, &dev->flags)) { 889 else if (test_bit(IS_BAD_LENGTH, &dev->flags)) { 935 test_bit(IS_CMM_ABSENT, &dev->flags)) 938 if (test_bit(IS_BAD_CSUM, &dev->flags)) 945 || (test_bit(IS_ATR_PRESENT, (void *)&dev->flags) != 0)))) { 951 if (test_bit(IS_ATR_VALID, &dev->flags) == 0) 1030 if (test_bit(IS_INVREV, &dev->flags) && count > 0) 1075 test_bit(IS_CMM_ABSENT, &dev->flags)) 1078 if (test_bit(IS_BAD_CSUM, &dev->flags)) { 1086 * could be run between test_bit and the call to sleep on the 1097 || (test_bit(IS_ATR_PRESENT, (void *)&dev->flags) != 0)))) { 1103 if (test_bit(IS_ATR_VALID, &dev->flags) == 0) { /* invalid atr */ 1153 | (test_bit(IS_INVREV, &dev->flags) ? 2 : 0)/* inverse parity */ 1165 | (test_bit(IS_INVREV, &dev->flags) ? 2 : 0) 1172 if (test_bit(IS_INVREV, &dev->flags)) { 1191 if (test_bit(IS_INVREV, &dev->flags)) 1213 if (test_bit(IS_INVREV, &dev->flags)) { 1428 if (test_bit(IS_CMM_ABSENT, &dev->flags)) { 1466 if (test_bit(IS_ATR_PRESENT, &dev->flags)) 1468 if (test_bit(IS_ATR_VALID, &dev->flags)) 1470 if (test_bit(IS_CMM_ABSENT, &dev->flags)) 1472 if (test_bit(IS_BAD_CARD, &dev->flags)) 1487 || (test_bit(IS_ATR_PRESENT, (void *)&dev->flags) 1497 if (test_bit(IS_ATR_VALID, &dev->flags) == 0) { 1555 || (test_bit(IS_ATR_VALID, (void *)&dev->flags) != 1586 || (test_bit(IS_ATR_PRESENT, (void *)&dev->flags)
|
/linux-4.1.27/fs/ocfs2/cluster/ |
H A D | quorum.c | 115 lowest_reachable = test_bit(lowest_hb, qs->qs_conn_bm); o2quo_make_decision() 121 if (!test_bit(o2nm_this_node(), qs->qs_hb_bm) || o2quo_make_decision() 219 mlog_bug_on_msg(test_bit(node, qs->qs_hb_bm), "node %u\n", node); o2quo_hb_up() 224 if (!test_bit(node, qs->qs_conn_bm)) o2quo_hb_up() 244 mlog_bug_on_msg(!test_bit(node, qs->qs_hb_bm), "node %u\n", node); o2quo_hb_down() 287 mlog_bug_on_msg(test_bit(node, qs->qs_conn_bm), "node %u\n", node); o2quo_conn_up() 292 if (!test_bit(node, qs->qs_hb_bm)) o2quo_conn_up() 310 if (test_bit(node, qs->qs_conn_bm)) { o2quo_conn_err() 321 if (test_bit(node, qs->qs_hb_bm)) o2quo_conn_err()
|
/linux-4.1.27/include/net/ |
H A D | scm.h | 96 if (test_bit(SOCK_PASSSEC, &sock->flags)) { scm_passec() 114 if (test_bit(SOCK_PASSCRED, &sock->flags) || scm->fp) scm_recv() 120 if (test_bit(SOCK_PASSCRED, &sock->flags)) { scm_recv()
|
/linux-4.1.27/fs/fscache/ |
H A D | operation.c | 121 } else if (test_bit(FSCACHE_OBJECT_IS_LOOKED_UP, &object->flags)) { fscache_submit_exclusive_op() 133 ASSERT(test_bit(FSCACHE_IOERROR, &object->cache->flags)); fscache_submit_exclusive_op() 225 } else if (test_bit(FSCACHE_OBJECT_IS_LOOKED_UP, &object->flags)) { fscache_submit_op() 236 } else if (!test_bit(FSCACHE_IOERROR, &object->cache->flags)) { fscache_submit_op() 274 if (test_bit(FSCACHE_OP_EXCLUSIVE, &op->flags)) { fscache_start_operations() 317 if (test_bit(FSCACHE_OP_EXCLUSIVE, &op->flags)) fscache_cancel_op() 350 if (test_bit(FSCACHE_OP_EXCLUSIVE, &op->flags)) fscache_cancel_all_ops() 373 ASSERTIFCMP(test_bit(FSCACHE_OP_EXCLUSIVE, &op->flags), fscache_op_complete() 375 ASSERTIFCMP(test_bit(FSCACHE_OP_EXCLUSIVE, &op->flags), fscache_op_complete() 383 if (test_bit(FSCACHE_OP_EXCLUSIVE, &op->flags)) fscache_op_complete() 425 if (test_bit(FSCACHE_OP_DEC_READ_CNT, &op->flags)) fscache_put_operation() 427 if (test_bit(FSCACHE_OP_UNUSE_COOKIE, &op->flags)) fscache_put_operation()
|
/linux-4.1.27/drivers/infiniband/ulp/ipoib/ |
H A D | ipoib_multicast.c | 74 if (!test_bit(IPOIB_FLAG_OPER_UP, &priv->flags)) __ipoib_mcast_schedule_join_thread() 252 if (!test_bit(IPOIB_MCAST_FLAG_SENDONLY, &mcast->flags)) { ipoib_mcast_join_finish() 346 if (!test_bit(IPOIB_FLAG_OPER_UP, &priv->flags)) ipoib_mcast_carrier_on_task() 365 test_bit(IPOIB_MCAST_FLAG_SENDONLY, &mcast->flags) ? ipoib_mcast_join_complete() 399 test_bit(IPOIB_MCAST_FLAG_SENDONLY, &mcast->flags) ? "sendonly " : "", ipoib_mcast_join_complete() 403 test_bit(IPOIB_MCAST_FLAG_SENDONLY, &mcast->flags) ? "sendonly " : "", ipoib_mcast_join_complete() 408 if (test_bit(IPOIB_MCAST_FLAG_SENDONLY, &mcast->flags) && ipoib_mcast_join_complete() 522 if (!test_bit(IPOIB_FLAG_OPER_UP, &priv->flags)) ipoib_mcast_join_task() 539 if (!test_bit(IPOIB_FLAG_OPER_UP, &priv->flags)) ipoib_mcast_join_task() 565 if (!test_bit(IPOIB_MCAST_FLAG_ATTACHED, &priv->broadcast->flags)) { ipoib_mcast_join_task() 567 !test_bit(IPOIB_MCAST_FLAG_BUSY, &priv->broadcast->flags)) { ipoib_mcast_join_task() 585 !test_bit(IPOIB_MCAST_FLAG_BUSY, &mcast->flags) && ipoib_mcast_join_task() 586 (!test_bit(IPOIB_MCAST_FLAG_SENDONLY, &mcast->flags) || ipoib_mcast_join_task() 593 if (test_bit(IPOIB_MCAST_FLAG_SENDONLY, &mcast->flags)) ipoib_mcast_join_task() 674 } else if (!test_bit(IPOIB_MCAST_FLAG_SENDONLY, &mcast->flags)) ipoib_mcast_leave() 690 if (!test_bit(IPOIB_FLAG_OPER_UP, &priv->flags) || ipoib_mcast_send() 692 !test_bit(IPOIB_MCAST_FLAG_ATTACHED, &priv->broadcast->flags)) { ipoib_mcast_send() 726 if (!test_bit(IPOIB_MCAST_FLAG_BUSY, &mcast->flags)) { ipoib_mcast_send() 784 if (test_bit(IPOIB_MCAST_FLAG_BUSY, &mcast->flags)) ipoib_mcast_dev_flush() 815 if (!test_bit(IPOIB_FLAG_OPER_UP, &priv->flags)) ipoib_mcast_restart_task() 848 if (!mcast || test_bit(IPOIB_MCAST_FLAG_SENDONLY, &mcast->flags)) { netdev_for_each_mc_addr() 852 if (test_bit(IPOIB_FLAG_UMCAST, &priv->flags) && netdev_for_each_mc_addr() 892 if (!test_bit(IPOIB_MCAST_FLAG_FOUND, &mcast->flags) && 893 !test_bit(IPOIB_MCAST_FLAG_SENDONLY, &mcast->flags)) { 913 if (test_bit(IPOIB_MCAST_FLAG_BUSY, &mcast->flags)) 924 if (test_bit(IPOIB_FLAG_OPER_UP, &priv->flags)) {
|
H A D | ipoib_netlink.c | 53 val = test_bit(IPOIB_FLAG_ADMIN_CM, &priv->flags); ipoib_fill_info() 57 val = test_bit(IPOIB_FLAG_UMCAST, &priv->flags); ipoib_fill_info() 112 if (test_bit(IPOIB_FLAG_SUBINTERFACE, &ppriv->flags)) { ipoib_new_child_link()
|
/linux-4.1.27/drivers/hid/usbhid/ |
H A D | hid-core.c | 86 !test_bit(HID_DISCONNECTED, &usbhid->iofl) && hid_start_in() 87 !test_bit(HID_SUSPENDED, &usbhid->iofl) && hid_start_in() 121 if (test_bit(HID_CLEAR_HALT, &usbhid->iofl)) { hid_reset() 134 if (test_bit(HID_RESET_PENDING, &usbhid->iofl)) { hid_reset() 149 if (test_bit(HID_DISCONNECTED, &usbhid->iofl)) hid_io_error() 167 if (!test_bit(HID_NO_BANDWIDTH, &usbhid->iofl) hid_io_error() 194 if (!hid || test_bit(HID_RESET_PENDING, &usbhid->iofl) || usbhid_restart_out_queue() 195 test_bit(HID_SUSPENDED, &usbhid->iofl)) usbhid_restart_out_queue() 210 if (test_bit(HID_SUSPENDED, &usbhid->iofl)) { usbhid_restart_out_queue() 233 if (!hid || test_bit(HID_RESET_PENDING, &usbhid->iofl) || usbhid_restart_ctrl_queue() 234 test_bit(HID_SUSPENDED, &usbhid->iofl)) usbhid_restart_ctrl_queue() 249 if (test_bit(HID_SUSPENDED, &usbhid->iofl)) { usbhid_restart_ctrl_queue() 281 if (!test_bit(HID_RESUME_RUNNING, &usbhid->iofl)) { hid_irq_in() 527 test_bit(HID_DISCONNECTED, &usbhid->iofl)) __usbhid_submit_report() 546 if (!test_bit(HID_OUT_RUNNING, &usbhid->iofl)) { __usbhid_submit_report() 570 if (!test_bit(HID_OUT_RUNNING, &usbhid->iofl)) __usbhid_submit_report() 597 if (!test_bit(HID_CTRL_RUNNING, &usbhid->iofl)) { __usbhid_submit_report() 621 if (!test_bit(HID_CTRL_RUNNING, &usbhid->iofl)) __usbhid_submit_report() 644 (!test_bit(HID_CTRL_RUNNING, &usbhid->iofl) && usbhid_wait_io() 645 !test_bit(HID_OUT_RUNNING, &usbhid->iofl)), usbhid_wait_io() 770 if (test_bit(HID_CTRL_RUNNING, &usbhid->iofl)) usbhid_init_reports() 772 if (test_bit(HID_OUT_RUNNING, &usbhid->iofl)) usbhid_init_reports() 1401 int clear_halt = test_bit(HID_CLEAR_HALT, &usbhid->iofl); hid_restart_io() 1402 int reset_pending = test_bit(HID_RESET_PENDING, &usbhid->iofl); hid_restart_io() 1413 if (reset_pending || !test_bit(HID_STARTED, &usbhid->iofl)) hid_restart_io() 1422 if (usbhid->urbout && !test_bit(HID_OUT_RUNNING, &usbhid->iofl)) hid_restart_io() 1424 if (!test_bit(HID_CTRL_RUNNING, &usbhid->iofl)) hid_restart_io() 1527 if (!test_bit(HID_RESET_PENDING, &usbhid->iofl) hid_suspend() 1528 && !test_bit(HID_CLEAR_HALT, &usbhid->iofl) hid_suspend() 1529 && !test_bit(HID_OUT_RUNNING, &usbhid->iofl) hid_suspend() 1530 && !test_bit(HID_CTRL_RUNNING, &usbhid->iofl) hid_suspend() 1531 && !test_bit(HID_KEYS_PRESSED, &usbhid->iofl) hid_suspend() 1563 if (PMSG_IS_AUTO(message) && test_bit(HID_KEYS_PRESSED, &usbhid->iofl)) { hid_suspend()
|
H A D | usbkbd.c | 176 kbd->newleds = (!!test_bit(LED_KANA, dev->led) << 3) | (!!test_bit(LED_COMPOSE, dev->led) << 3) | usb_kbd_event() 177 (!!test_bit(LED_SCROLLL, dev->led) << 2) | (!!test_bit(LED_CAPSL, dev->led) << 1) | usb_kbd_event() 178 (!!test_bit(LED_NUML, dev->led)); usb_kbd_event()
|
/linux-4.1.27/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_dcb.c | 244 if (test_bit(QLCNIC_DCB_STATE, &dcb->state)) __qlcnic_init_dcbnl_ops() 284 while (test_bit(QLCNIC_DCB_AEN_MODE, &dcb->state)) __qlcnic_dcb_free() 784 return test_bit(QLCNIC_DCB_STATE, &adapter->dcb->state); qlcnic_dcb_get_state() 804 if (!test_bit(QLCNIC_DCB_STATE, &adapter->dcb->state) || qlcnic_dcb_get_pg_tc_cfg_tx() 840 if (!test_bit(QLCNIC_DCB_STATE, &adapter->dcb->state) || qlcnic_dcb_get_pg_bwg_cfg_tx() 866 if (!test_bit(QLCNIC_DCB_STATE, &adapter->dcb->state) || qlcnic_dcb_get_pfc_cfg() 885 if (!test_bit(QLCNIC_DCB_STATE, &adapter->dcb->state)) qlcnic_dcb_get_capability() 914 if (!test_bit(QLCNIC_DCB_STATE, &adapter->dcb->state)) qlcnic_dcb_get_num_tcs() 937 if (!test_bit(QLCNIC_DCB_STATE, &adapter->dcb->state)) qlcnic_dcb_get_app() 948 if (!test_bit(QLCNIC_DCB_STATE, &dcb->state)) qlcnic_dcb_get_pfc_state() 959 if (!test_bit(QLCNIC_DCB_STATE, &adapter->dcb->state)) qlcnic_dcb_get_dcbx() 970 if (!test_bit(QLCNIC_DCB_STATE, &adapter->dcb->state)) qlcnic_dcb_get_feat_cfg() 1026 if (!test_bit(QLCNIC_DCB_STATE, &adapter->dcb->state)) qlcnic_dcb_peer_app_info() 1047 if (!test_bit(QLCNIC_DCB_STATE, &adapter->dcb->state)) qlcnic_dcb_peer_app_table() 1072 if (!test_bit(QLCNIC_DCB_STATE, &adapter->dcb->state)) qlcnic_dcb_cee_peer_get_pg() 1107 if (!test_bit(QLCNIC_DCB_STATE, &adapter->dcb->state)) qlcnic_dcb_cee_peer_get_pfc()
|
/linux-4.1.27/drivers/net/wireless/ath/ath9k/ |
H A D | ar9003_rtt.c | 125 if (!test_bit(SW_PKDET_DONE, &ah->caldata->cal_flags)) ar9003_hw_patch_rtt() 213 if (test_bit(SW_PKDET_DONE, &ah->caldata->cal_flags)) { ar9003_hw_rtt_restore() 235 if (!test_bit(RTT_DONE, &ah->caldata->cal_flags)) ar9003_hw_rtt_restore() 240 if (test_bit(SW_PKDET_DONE, &ah->caldata->cal_flags)) ar9003_hw_rtt_restore()
|
H A D | link.c | 125 if (!test_bit(ATH_OP_BEACONS, &common->op_flags)) ath_hw_pll_work() 151 if (!caldata || !test_bit(PAPRD_DONE, &caldata->cal_flags)) { ath_paprd_activate() 224 !test_bit(PAPRD_PACKET_SENT, &caldata->cal_flags) || ath_paprd_calibrate() 225 test_bit(PAPRD_DONE, &caldata->cal_flags)) { ath_paprd_calibrate() 312 if (ah->caldata && test_bit(NFCAL_INTF, &ah->caldata->cal_flags)) ath_ani_calibrate() 407 if (!test_bit(PAPRD_DONE, &ah->caldata->cal_flags)) { ath_ani_calibrate() 424 !test_bit(ATH_OP_ANI_RUN, &common->op_flags) || ath_start_ani() 464 if (!test_bit(ATH_OP_PRIM_STA_VIF, &common->op_flags)) ath_check_ani() 468 if (!test_bit(ATH_OP_PRIM_STA_VIF, &common->op_flags)) ath_check_ani() 472 if (!test_bit(ATH_OP_ANI_RUN, &common->op_flags)) { ath_check_ani()
|
H A D | htc_drv_gpio.c | 76 test_bit(OP_BT_PRIORITY_DETECTED, &priv->op_flags)); ath_btcoex_period_work() 82 ath9k_hw_btcoex_bt_stomp(priv->ah, test_bit(OP_BT_SCAN, &priv->op_flags) ? ath_btcoex_period_work() 86 timer_period = test_bit(OP_BT_SCAN, &priv->op_flags) ? ath_btcoex_period_work() 109 test_bit(OP_BT_SCAN, &priv->op_flags)) ath_btcoex_duty_cycle_work()
|
H A D | wow.c | 180 if (test_bit(ATH_OP_INVALID, &common->op_flags)) { ath9k_suspend() 199 if (test_bit(ATH_OP_MULTI_CHANNEL, &common->op_flags)) { ath9k_suspend() 207 if (!test_bit(ATH_OP_PRIM_STA_VIF, &common->op_flags)) { ath9k_suspend()
|
/linux-4.1.27/arch/sh/mm/ |
H A D | kmap.c | 37 BUG_ON(!test_bit(PG_dcache_clean, &page->flags)); kmap_coherent()
|
H A D | cache.c | 63 test_bit(PG_dcache_clean, &page->flags)) { copy_to_user_page() 82 test_bit(PG_dcache_clean, &page->flags)) { copy_from_user_page() 101 test_bit(PG_dcache_clean, &from->flags)) { copy_user_highpage() 157 test_bit(PG_dcache_clean, &page->flags)) { __flush_anon_page()
|
/linux-4.1.27/arch/x86/boot/ |
H A D | bitops.h | 33 #define test_bit(nr,addr) \ macro
|
/linux-4.1.27/drivers/usb/class/ |
H A D | cdc-wdm.c | 197 if (!test_bit(WDM_OVERFLOW, &desc->flags)) { wdm_in_callback() 274 && !test_bit(WDM_DISCONNECTING, &desc->flags) wdm_int_callback() 275 && !test_bit(WDM_SUSPENDING, &desc->flags)) { wdm_int_callback() 364 if (test_bit(WDM_DISCONNECTING, &desc->flags)) { wdm_write() 376 r = wait_event_interruptible(desc->wait, !test_bit(WDM_IN_USE, wdm_write() 379 if (test_bit(WDM_IN_USE, &desc->flags)) wdm_write() 382 if (test_bit(WDM_RESETTING, &desc->flags)) wdm_write() 486 if (test_bit(WDM_DISCONNECTING, &desc->flags)) { wdm_read() 490 if (test_bit(WDM_OVERFLOW, &desc->flags)) { wdm_read() 497 if (!test_bit(WDM_READ, &desc->flags)) { wdm_read() 504 test_bit(WDM_READ, &desc->flags)); wdm_read() 508 if (test_bit(WDM_DISCONNECTING, &desc->flags)) { wdm_read() 512 if (test_bit(WDM_RESETTING, &desc->flags)) { wdm_read() 534 if (!test_bit(WDM_READ, &desc->flags)) { /* lost race */ wdm_read() 580 wait_event(desc->wait, !test_bit(WDM_IN_USE, &desc->flags)); wdm_flush() 583 if (desc->werr < 0 && !test_bit(WDM_DISCONNECTING, &desc->flags)) wdm_flush() 597 if (test_bit(WDM_DISCONNECTING, &desc->flags)) { wdm_poll() 602 if (test_bit(WDM_READ, &desc->flags)) wdm_poll() 606 if (!test_bit(WDM_IN_USE, &desc->flags)) wdm_poll() 629 if (test_bit(WDM_DISCONNECTING, &desc->flags)) wdm_open() 675 if (!test_bit(WDM_DISCONNECTING, &desc->flags)) { wdm_release() 736 if (test_bit(WDM_DISCONNECTING, &desc->flags)) { wdm_rxwork() 746 if (!test_bit(WDM_DISCONNECTING, &desc->flags)) wdm_rxwork() 1010 (test_bit(WDM_IN_USE, &desc->flags) wdm_suspend() 1011 || test_bit(WDM_RESPONDING, &desc->flags))) { wdm_suspend()
|
/linux-4.1.27/drivers/watchdog/ |
H A D | it87_wdt.c | 266 if (test_bit(WDTS_USE_GP, &wdt_status)) wdt_keepalive() 268 else if (test_bit(WDTS_USE_CIR, &wdt_status)) wdt_keepalive() 289 if (test_bit(WDTS_USE_GP, &wdt_status)) wdt_start() 291 else if (test_bit(WDTS_USE_CIR, &wdt_status)) wdt_start() 337 if (test_bit(WDTS_TIMER_RUN, &wdt_status)) { wdt_set_timeout() 381 if (test_bit(WDTS_EXPECTED, &wdt_status)) wdt_get_status() 433 if (test_bit(WDTS_TIMER_RUN, &wdt_status)) { wdt_release() 542 if (test_bit(WDTS_TIMER_RUN, &wdt_status)) { wdt_ioctl() 679 if (!nocir && !test_bit(WDTS_USE_GP, &wdt_status)) { it87_wdt_init() 727 if (test_bit(WDTS_USE_CIR, &wdt_status)) { it87_wdt_init() 747 if (test_bit(WDTS_USE_GP, &wdt_status)) it87_wdt_init() 749 else if (test_bit(WDTS_USE_CIR, &wdt_status)) { it87_wdt_init() 773 if (test_bit(WDTS_USE_GP, &wdt_status)) { it87_wdt_exit() 776 } else if (test_bit(WDTS_USE_CIR, &wdt_status)) { it87_wdt_exit() 786 if (test_bit(WDTS_USE_GP, &wdt_status)) it87_wdt_exit() 788 else if (test_bit(WDTS_USE_CIR, &wdt_status)) it87_wdt_exit()
|
H A D | watchdog_dev.c | 68 if (test_bit(WDOG_UNREGISTERED, &wddev->status)) { watchdog_ping() 101 if (test_bit(WDOG_UNREGISTERED, &wddev->status)) { watchdog_start() 134 if (test_bit(WDOG_UNREGISTERED, &wddev->status)) { watchdog_stop() 142 if (test_bit(WDOG_NO_WAY_OUT, &wddev->status)) { watchdog_stop() 176 if (test_bit(WDOG_UNREGISTERED, &wddev->status)) { watchdog_get_status() 208 if (test_bit(WDOG_UNREGISTERED, &wddev->status)) { watchdog_set_timeout() 239 if (test_bit(WDOG_UNREGISTERED, &wddev->status)) { watchdog_get_timeleft() 268 if (test_bit(WDOG_UNREGISTERED, &wddev->status)) { watchdog_ioctl_op() 472 if (!test_bit(WDOG_ACTIVE, &wdd->status)) watchdog_release() 481 if (!test_bit(WDOG_UNREGISTERED, &wdd->status)) watchdog_release()
|
H A D | iop_wdt.c | 193 if (test_bit(WDT_OK_TO_CLOSE, &wdt_status)) iop_wdt_release() 194 if (test_bit(WDT_ENABLED, &wdt_status)) iop_wdt_release()
|
/linux-4.1.27/arch/arm64/include/asm/ |
H A D | sync_bitops.h | 23 #define sync_test_bit(nr, addr) test_bit(nr, addr)
|
H A D | cachetype.h | 85 return test_bit(ICACHEF_ALIASING, &__icache_flags); icache_is_aliasing() 90 return test_bit(ICACHEF_AIVIVT, &__icache_flags); icache_is_aivivt()
|
H A D | cpufeature.h | 55 return test_bit(num, cpu_hwcaps); cpus_have_cap()
|
/linux-4.1.27/arch/arm/include/asm/ |
H A D | sync_bitops.h | 22 #define sync_test_bit(nr, addr) test_bit(nr, addr)
|
/linux-4.1.27/drivers/crypto/qat/qat_common/ |
H A D | adf_init.c | 131 if (!test_bit(ADF_STATUS_CONFIGURED, &accel_dev->status)) { adf_dev_init() 289 !test_bit(ADF_STATUS_STARTING, &accel_dev->status)) { adf_dev_stop() 303 if (!test_bit(accel_dev->accel_id, &service->start_status)) adf_dev_stop() 317 if (!test_bit(accel_dev->accel_id, &service->start_status)) adf_dev_stop() 330 if (test_bit(ADF_STATUS_AE_STARTED, &accel_dev->status)) { adf_dev_stop() 360 if (test_bit(ADF_STATUS_AE_UCODE_LOADED, &accel_dev->status)) { adf_dev_shutdown() 365 if (test_bit(ADF_STATUS_AE_INITIALISED, &accel_dev->status)) { adf_dev_shutdown() 378 if (!test_bit(accel_dev->accel_id, &service->init_status)) adf_dev_shutdown() 391 if (!test_bit(accel_dev->accel_id, &service->init_status)) adf_dev_shutdown() 401 if (test_bit(ADF_STATUS_IRQ_ALLOCATED, &accel_dev->status)) { adf_dev_shutdown() 407 if (!test_bit(ADF_STATUS_RESTARTING, &accel_dev->status)) adf_dev_shutdown()
|
/linux-4.1.27/fs/cachefiles/ |
H A D | daemon.c | 170 if (!test_bit(CACHEFILES_READY, &cache->flags)) cachefiles_daemon_read() 187 test_bit(CACHEFILES_CULLING, &cache->flags) ? '1' : '0', cachefiles_daemon_read() 222 if (test_bit(CACHEFILES_DEAD, &cache->flags)) cachefiles_daemon_write() 279 if (!test_bit(CACHEFILES_DEAD, &cache->flags)) cachefiles_daemon_write() 302 if (test_bit(CACHEFILES_STATE_CHANGED, &cache->flags)) cachefiles_daemon_poll() 305 if (test_bit(CACHEFILES_CULLING, &cache->flags)) cachefiles_daemon_poll() 564 if (!test_bit(CACHEFILES_READY, &cache->flags)) { cachefiles_daemon_cull() 569 if (test_bit(CACHEFILES_DEAD, &cache->flags)) { cachefiles_daemon_cull() 636 if (!test_bit(CACHEFILES_READY, &cache->flags)) { cachefiles_daemon_inuse() 641 if (test_bit(CACHEFILES_DEAD, &cache->flags)) { cachefiles_daemon_inuse() 731 if (test_bit(CACHEFILES_CULLING, &cache->flags) && cachefiles_has_space()
|
/linux-4.1.27/fs/gfs2/ |
H A D | glock.c | 287 if (test_bit(HIF_HOLDER, &gh->gh_iflags)) do_error() 319 if (test_bit(HIF_HOLDER, &gh->gh_iflags)) 365 if (!test_bit(HIF_HOLDER, &gh->gh_iflags)) find_first_waiter() 431 if (test_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags) && finish_xmote() 437 if (gh && !test_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags)) { finish_xmote() 531 if (test_bit(GLF_INVALIDATE_IN_PROGRESS, &gl->gl_flags)) 563 if (test_bit(HIF_HOLDER, &gh->gh_iflags)) find_first_holder() 586 GLOCK_BUG_ON(gl, test_bit(GLF_DEMOTE_IN_PROGRESS, &gl->gl_flags)); 588 if (test_bit(GLF_DEMOTE, &gl->gl_flags) && 598 if (test_bit(GLF_DEMOTE, &gl->gl_flags)) 661 if (test_bit(GLF_PENDING_DEMOTE, &gl->gl_flags) && glock_work_func() 941 if (test_bit(GLF_LOCK, &gl->gl_flags)) 943 if (test_bit(GLF_INVALIDATE_IN_PROGRESS, &gl->gl_flags)) 958 if (test_bit(HIF_HOLDER, &gh2->gh_iflags)) 1012 if (unlikely(test_bit(SDF_SHUTDOWN, &sdp->sd_flags))) gfs2_glock_nq() 1015 if (test_bit(GLF_LRU, &gl->gl_flags)) gfs2_glock_nq() 1045 return test_bit(HIF_WAIT, &gh->gh_iflags) ? 0 : 1; gfs2_glock_poll() 1075 !test_bit(GLF_PENDING_DEMOTE, &gl->gl_flags) && gfs2_glock_dq() 1076 !test_bit(GLF_DEMOTE, &gl->gl_flags)) gfs2_glock_dq() 1079 if (!test_bit(GLF_LFLUSH, &gl->gl_flags) && demote_ok(gl)) gfs2_glock_dq() 1088 if (test_bit(GLF_PENDING_DEMOTE, &gl->gl_flags) && gfs2_glock_dq() 1089 !test_bit(GLF_DEMOTE, &gl->gl_flags) && gfs2_glock_dq() 1259 if (test_bit(GLF_QUEUED, &gl->gl_flags) && gfs2_glock_cb() 1263 if (test_bit(GLF_REPLY_PENDING, &gl->gl_flags)) gfs2_glock_cb() 1295 if (test_bit(HIF_HOLDER, &gh->gh_iflags)) gfs2_should_freeze() 1320 if (unlikely(test_bit(DFL_BLOCK_LOCKS, &ls->ls_recover_flags))) { gfs2_glock_complete() 1419 if (!test_bit(GLF_LOCK, &gl->gl_flags)) { gfs2_scan_glock_lru() 1613 if (test_bit(HIF_HOLDER, &iflags)) hflags2str() 1615 if (test_bit(HIF_WAIT, &iflags)) hflags2str() 1617 if (test_bit(HIF_FIRST, &iflags)) hflags2str() 1653 if (test_bit(GLF_LOCK, gflags)) gflags2str() 1655 if (test_bit(GLF_DEMOTE, gflags)) gflags2str() 1657 if (test_bit(GLF_PENDING_DEMOTE, gflags)) gflags2str() 1659 if (test_bit(GLF_DEMOTE_IN_PROGRESS, gflags)) gflags2str() 1661 if (test_bit(GLF_DIRTY, gflags)) gflags2str() 1663 if (test_bit(GLF_LFLUSH, gflags)) gflags2str() 1665 if (test_bit(GLF_INVALIDATE_IN_PROGRESS, gflags)) gflags2str() 1667 if (test_bit(GLF_REPLY_PENDING, gflags)) gflags2str() 1669 if (test_bit(GLF_INITIAL, gflags)) gflags2str() 1671 if (test_bit(GLF_FROZEN, gflags)) gflags2str() 1673 if (test_bit(GLF_QUEUED, gflags)) gflags2str() 1675 if (test_bit(GLF_LRU, gflags)) gflags2str() 1679 if (test_bit(GLF_BLOCKING, gflags)) gflags2str() 1711 if (!test_bit(GLF_DEMOTE, &gl->gl_flags)) gfs2_dump_glock()
|
H A D | sys.c | 131 unsigned int b = test_bit(SDF_SHUTDOWN, &sdp->sd_flags); withdraw_show() 318 if (test_bit(DFL_BLOCK_LOCKS, &ls->ls_recover_flags)) block_show() 385 if (test_bit(SDF_NOJOURNALID, &sdp->sd_flags) == 0) lkfirst_store() 402 return sprintf(buf, "%d\n", !!test_bit(DFL_FIRST_MOUNT_DONE, &ls->ls_recover_flags)); first_done_show() 438 if (test_bit(SDF_NORECOVERY, &sdp->sd_flags)) { recover_store() 481 if (test_bit(SDF_NOJOURNALID, &sdp->sd_flags) == 0) jid_store() 688 if (!test_bit(SDF_NOJOURNALID, &sdp->sd_flags)) gfs2_uevent()
|
H A D | lock_dlm.c | 77 unsigned index = test_bit(GLF_BLOCKING, &gl->gl_flags) ? gfs2_update_reply_times() 161 if (!test_bit(GLF_INITIAL, &gl->gl_flags)) gdlm_ast() 237 if (test_bit(GLF_BLOCKING, &gl->gl_flags)) make_flags() 304 if (test_bit(SDF_SKIP_DLM_UNLOCK, &sdp->sd_flags) && gdlm_put_lock() 597 if (!test_bit(DFL_MOUNT_DONE, &ls->ls_recover_flags) || gfs2_control_func() 598 test_bit(DFL_FIRST_MOUNT, &ls->ls_recover_flags)) { gfs2_control_func() 950 if (test_bit(DFL_BLOCK_LOCKS, &ls->ls_recover_flags) || control_first_done() 951 !test_bit(DFL_MOUNT_DONE, &ls->ls_recover_flags) || control_first_done() 952 !test_bit(DFL_FIRST_MOUNT, &ls->ls_recover_flags)) { control_first_done() 1074 if (!test_bit(DFL_MOUNT_DONE, &ls->ls_recover_flags) || gdlm_recover_prep() 1075 test_bit(DFL_FIRST_MOUNT, &ls->ls_recover_flags)) { gdlm_recover_prep() 1127 if (!test_bit(DFL_UNMOUNT, &ls->ls_recover_flags)) gdlm_recover_done() 1143 if (test_bit(DFL_NO_DLM_OPS, &ls->ls_recover_flags)) gdlm_recovery_result() 1151 if (test_bit(DFL_FIRST_MOUNT, &ls->ls_recover_flags)) { gdlm_recovery_result() 1171 if (!test_bit(DFL_UNMOUNT, &ls->ls_recover_flags)) gdlm_recovery_result() 1249 if (!test_bit(SDF_NOJOURNALID, &sdp->sd_flags)) { gdlm_mount() 1266 ls->ls_first = !!test_bit(DFL_FIRST_MOUNT, &ls->ls_recover_flags); gdlm_mount() 1285 if (test_bit(DFL_NO_DLM_OPS, &ls->ls_recover_flags)) gdlm_first_done() 1297 if (test_bit(DFL_NO_DLM_OPS, &ls->ls_recover_flags)) gdlm_unmount()
|
H A D | dentry.c | 123 if (test_bit(GLF_DEMOTE, &ginode->i_iopen_gh.gh_gl->gl_flags)) gfs2_dentry_delete()
|
H A D | log.h | 55 if (!test_bit(GIF_ORDERED, &ip->i_flags)) { gfs2_ordered_add_inode()
|
/linux-4.1.27/net/bridge/ |
H A D | br_vlan.c | 46 if (test_bit(vid, v->vlan_bitmap)) { __vlan_add() 91 if (!test_bit(vid, v->vlan_bitmap)) __vlan_del() 155 if (test_bit(vid, pv->untagged_bitmap)) br_handle_vlan() 248 if (test_bit(*vid, v->vlan_bitmap)) br_allowed_ingress() 270 if (test_bit(vid, v->vlan_bitmap)) br_allowed_egress() 301 if (test_bit(*vid, v->vlan_bitmap)) br_should_learn() 381 if (test_bit(vid, pv->vlan_bitmap)) br_vlan_find() 504 return pv && vid == pv->pvid && test_bit(vid, pv->untagged_bitmap); vlan_default_pvid() 580 if (!test_bit(p->port_no, changed)) __br_vlan_set_default_pvid() 590 if (test_bit(0, changed)) { __br_vlan_set_default_pvid() 721 if (test_bit(vid, pv->vlan_bitmap)) nbp_vlan_find()
|
/linux-4.1.27/drivers/isdn/hardware/mISDN/ |
H A D | hfcmulti.c | 946 if (test_bit(HFC_CHIP_PLXSD, &hc->chip)) { hfcmulti_resync() 957 if (test_bit(HFC_CHIP_PLXSD, &hc->chip)) { hfcmulti_resync() 962 if (test_bit(HFC_CHIP_PCM_MASTER, &hc->chip)) { hfcmulti_resync() 986 && !test_bit(HFC_CHIP_RX_SYNC, &hc->chip)) { hfcmulti_resync() 1072 if (test_bit(HFC_CHIP_PLXSD, &hc->chip) && hc->plx_membase) { release_io_hfcmulti() 1172 if (test_bit(HFC_CHIP_EXRAM_128, &hc->chip)) { init_chip() 1183 if (test_bit(HFC_CHIP_EXRAM_512, &hc->chip)) { init_chip() 1205 if (test_bit(HFC_CHIP_PLXSD, &hc->chip)) { init_chip() 1234 if (test_bit(HFC_CHIP_PLXSD, &pos->chip)) { init_chip() 1260 if (test_bit(HFC_CHIP_EMBSD, &hc->chip)) init_chip() 1264 if (!test_bit(HFC_CHIP_REVISION0, &hc->chip)) init_chip() 1268 if (test_bit(HFC_CHIP_PCM_SLAVE, &hc->chip)) { init_chip() 1273 if (test_bit(HFC_CHIP_PCM_MASTER, &hc->chip) && !plxsd_master) { init_chip() 1306 if (test_bit(HFC_CHIP_PLXSD, &hc->chip)) { init_chip() 1337 if (test_bit(HFC_CHIP_PLXSD, &hc->chip)) init_chip() 1339 else if (test_bit(HFC_CHIP_EMBSD, &hc->chip)) init_chip() 1353 if (test_bit(HFC_CHIP_CLOCK2, &hc->chip)) { init_chip() 1360 if (test_bit(HFC_CHIP_EMBSD, &hc->chip)) init_chip() 1364 if (test_bit(HFC_CHIP_B410P, &hc->chip)) { init_chip() 1391 if (test_bit(HFC_CHIP_PCM_MASTER, &hc->chip)) init_chip() 1394 if (test_bit(HFC_CHIP_PCM_SLAVE, &hc->chip)) init_chip() 1403 if (test_bit(HFC_CHIP_PCM_MASTER, &hc->chip)) { init_chip() 1410 if (test_bit(HFC_CHIP_PCM_SLAVE, &hc->chip)) { init_chip() 1415 if (test_bit(HFC_CHIP_PLXSD, &hc->chip) init_chip() 1424 if (test_bit(HFC_CHIP_PLXSD, &hc->chip)) { init_chip() 1458 if (test_bit(HFC_CHIP_PLXSD, &hc->chip)) { init_chip() 1459 if (test_bit(HFC_CHIP_PCM_MASTER, &hc->chip)) init_chip() 1477 if (test_bit(HFC_CHIP_PCM_MASTER, &hc->chip) init_chip() 1478 || test_bit(HFC_CHIP_PLXSD, &hc->chip)) { init_chip() 1495 if (test_bit(HFC_CHIP_DTMF, &hc->chip)) { init_chip() 1500 if (test_bit(HFC_CHIP_ULAW, &hc->chip)) init_chip() 1507 if (test_bit(HFC_CHIP_ULAW, &hc->chip)) init_chip() 1517 if (test_bit(HFC_CHIP_WATCHDOG, &hc->chip)) init_chip() 1536 if (test_bit(HFC_CHIP_EMBSD, &hc->chip)) { init_chip() 1710 if (test_bit(HFC_CHIP_B410P, &hc->chip)) { hfcmulti_leds() 1861 if (!test_bit(FLG_TRANSPARENT, &bch->Flags)) hfcmulti_dtmf() 1966 if (!test_bit(FLG_ACTIVE, &dch->Flags)) hfcmulti_tx() 1971 if (!test_bit(FLG_ACTIVE, &bch->Flags)) hfcmulti_tx() 1982 if (test_bit(HFC_CHIP_B410P, &hc->chip) && hfcmulti_tx() 1999 if (dch || test_bit(FLG_HDLC, &bch->Flags)) { hfcmulti_tx() 2018 if (test_bit(HFC_CHIP_REVISION0, &hc->chip)) { hfcmulti_tx() 2049 if (bch && test_bit(FLG_TRANSPARENT, &bch->Flags)) hfcmulti_tx() 2058 if (bch && (!test_bit(FLG_HDLC, &bch->Flags)) && hfcmulti_tx() 2092 if (bch && test_bit(FLG_FILLEMPTY, &bch->Flags) hfcmulti_tx() 2093 && !test_bit(FLG_HDLC, &bch->Flags) && z2 == z1) { hfcmulti_tx() 2103 if (bch && (!test_bit(FLG_HDLC, &bch->Flags)) && (!*txpending) hfcmulti_tx() 2137 if (dch || test_bit(FLG_HDLC, &bch->Flags)) hfcmulti_tx() 2163 if (dch || test_bit(FLG_HDLC, &bch->Flags)) { hfcmulti_tx() 2185 if (bch && test_bit(FLG_TRANSPARENT, &bch->Flags)) hfcmulti_tx() 2205 if (!test_bit(FLG_ACTIVE, &bch->Flags)) hfcmulti_rx() 2209 if (!test_bit(FLG_ACTIVE, &dch->Flags)) hfcmulti_rx() 2217 if (test_bit(HFC_CHIP_B410P, &hc->chip) && hfcmulti_rx() 2233 if (dch || test_bit(FLG_HDLC, &bch->Flags)) { hfcmulti_rx() 2253 if ((dch || test_bit(FLG_HDLC, &bch->Flags)) && f1 != f2) hfcmulti_rx() 2288 if (dch || test_bit(FLG_HDLC, &bch->Flags)) { hfcmulti_rx() 2415 if (test_bit(HFC_CHIP_RX_SYNC, &hc->chip)) handle_timer_irq() 2465 if (test_bit(HFC_CFG_REPORT_LOS, &hc->chan[hc->dnum[0]].cfg)) { handle_timer_irq() 2473 if (test_bit(HFC_CFG_REPORT_AIS, &hc->chan[hc->dnum[0]].cfg)) { handle_timer_irq() 2484 if (test_bit(HFC_CFG_REPORT_SLIP, &hc->chan[hc->dnum[0]].cfg)) { handle_timer_irq() 2497 if (test_bit(HFC_CFG_REPORT_RDI, &hc->chan[hc->dnum[0]].cfg)) { handle_timer_irq() 2569 if (test_bit(HFC_CHIP_WATCHDOG, &hc->chip)) handle_timer_irq() 2606 if (test_bit(HFC_CHIP_PLXSD, &hc->chip) && ph_state_irq() 2639 if (test_bit(HFC_CHIP_PLXSD, &hc->chip)) ph_state_irq() 2662 test_bit(FLG_ACTIVE, &dch->Flags)) { fifo_irq() 2669 test_bit(FLG_ACTIVE, &bch->Flags)) { fifo_irq() 2677 test_bit(FLG_ACTIVE, &dch->Flags)) { fifo_irq() 2681 test_bit(FLG_ACTIVE, &bch->Flags)) { fifo_irq() 2724 if (test_bit(HFC_CHIP_PLXSD, &hc->chip)) { hfcmulti_interrupt() 2781 if (test_bit(HFC_CHIP_PLXSD, &hc->chip) hfcmulti_interrupt() 2809 if (test_bit(HFC_CHIP_PLXSD, &hc->chip)) hfcmulti_interrupt() 3025 if (test_bit(HFC_CHIP_B410P, &hc->chip) && mode_hfcmulti() 3278 if (test_bit(HFC_CHIP_PLXSD, &hc->chip)) { hfcm_l1callback() 3508 && test_bit(HFC_CHIP_DTMF, &hc->chip)) { handle_bmsg() 3608 if (test_bit(HFC_CHIP_DTMF, &hc->chip)) channel_bctrl() 3610 if (test_bit(HFC_CHIP_CONF, &hc->chip)) channel_bctrl() 3613 if (test_bit(HFC_CHIP_B410P, &hc->chip)) { channel_bctrl() 3673 if (test_bit(HFC_CHIP_B410P, &hc->chip)) channel_bctrl() 3683 if (test_bit(HFC_CHIP_B410P, &hc->chip)) channel_bctrl() 3897 if (test_bit(HFC_CFG_REPORT_LOS, &hc->chan[hc->dnum[0]].cfg)) { hfcmulti_initmode() 3901 if (test_bit(HFC_CFG_OPTICAL, &hc->chan[hc->dnum[0]].cfg)) { hfcmulti_initmode() 3914 if (test_bit(HFC_CFG_CRC4, &hc->chan[hc->dnum[0]].cfg)) hfcmulti_initmode() 3919 if (test_bit(HFC_CFG_CRC4, &hc->chan[hc->dnum[0]].cfg)) hfcmulti_initmode() 3935 if (test_bit(HFC_CHIP_RX_SYNC, &hc->chip)) hfcmulti_initmode() 3939 if (test_bit(HFC_CHIP_E1CLOCK_GET, &hc->chip)) hfcmulti_initmode() 3941 if (test_bit(HFC_CHIP_E1CLOCK_PUT, &hc->chip)) hfcmulti_initmode() 3943 if (test_bit(HFC_CHIP_PCM_SLAVE, &hc->chip)) { hfcmulti_initmode() 3978 if (test_bit(HFC_CHIP_PLXSD, &hc->chip)) { hfcmulti_initmode() 4023 if (!test_bit(HFC_CFG_NONCAP_TX, &hc->chan[i].cfg)) hfcmulti_initmode() 4034 test_bit(HFC_CFG_DIS_ECHANNEL, &hc->chan[i].cfg)) hfcmulti_initmode() 4048 if (test_bit(HFC_CHIP_PLXSD, &hc->chip)) { hfcmulti_initmode() 4091 if (test_bit(FLG_ACTIVE, &dch->Flags)) open_dchannel() 4159 if (test_bit(HFC_CHIP_PLXSD, &hc->chip)) { channel_dctrl() 4287 if (test_bit(HFC_CHIP_PLXSD, &hc->chip)) { init_card() 4325 if (test_bit(HFC_CHIP_PCM_SLAVE, &hc->chip)) { init_card() 4336 if (test_bit(HFC_CHIP_PLXSD, &hc->chip)) { init_card() 4573 if (test_bit(HFC_CHIP_PLXSD, &hc->chip)) { release_port() 4597 if (test_bit(HFC_CHIP_PLXSD, &hc->chip)) { release_port() 5206 if (test_bit(HFC_CHIP_B410P, &hc->chip)) hfcmulti_init()
|
H A D | hfcpci.c | 248 if (test_bit(HFC_CFG_MASTER, &hc->cfg)) reset_hfcpci() 250 if (test_bit(HFC_CFG_NEG_F0, &hc->cfg)) reset_hfcpci() 279 if (test_bit(HFC_CFG_PCM, &hc->cfg)) { reset_hfcpci() 284 if (test_bit(HFC_CFG_SW_DD_DU, &hc->cfg)) { reset_hfcpci() 321 if (test_bit(FLG_ACTIVE, &hc->bch[0].Flags) && Sel_BCS() 324 else if (test_bit(FLG_ACTIVE, &hc->bch[1].Flags) && Sel_BCS() 575 if (test_bit(FLG_RX_OFF, &bch->Flags)) { hfcpci_empty_fifo_trans() 661 } else if (test_bit(FLG_TRANSPARENT, &bch->Flags)) { main_rec_hfcpci() 765 if (!test_bit(FLG_FILLEMPTY, &bch->Flags) && hfcpci_fill_fifo() 766 !test_bit(FLG_TRANSPARENT, &bch->Flags)) hfcpci_fill_fifo() 780 if (test_bit(FLG_TRANSPARENT, &bch->Flags)) { hfcpci_fill_fifo() 790 if (test_bit(FLG_FILLEMPTY, &bch->Flags)) { hfcpci_fill_fifo() 960 if (test_bit(HFC_CFG_MASTER, &hc->cfg)) handle_nt_timer3() 1051 if (test_bit(FLG_HFC_TIMER_T3, &dch->Flags) && ph_state() 1071 if (test_bit(HFC_CFG_MASTER, &hc->cfg)) hfc_l1callback() 1080 if (test_bit(HFC_CFG_MASTER, &hc->cfg)) hfc_l1callback() 1266 if (!test_bit(HFC_CFG_PCM, &hc->cfg)) mode_hfcpci() 1273 } else if (test_bit(HFC_CFG_PCM, &hc->cfg) && (protocol > ISDN_P_NONE)) mode_hfcpci() 1396 if (test_bit(HFC_CFG_PCM, &hc->cfg)) { mode_hfcpci() 1402 if (test_bit(HFC_CFG_SW_DD_DU, &hc->cfg)) { mode_hfcpci() 1614 if (test_bit(HFC_CFG_MASTER, &hc->cfg)) hfcpci_l2l1D() 1617 if (test_bit(FLG_ACTIVE, &dch->Flags)) { hfcpci_l2l1D() 1808 if (test_bit(HFC_CFG_SW_DD_DU, &hc->cfg)) channel_ctrl() 1820 if (test_bit(HFC_CFG_SW_DD_DU, &hc->cfg)) channel_ctrl() 1850 if (test_bit(HFC_CFG_SW_DD_DU, &hc->cfg)) channel_ctrl() 1858 if (test_bit(HFC_CFG_SW_DD_DU, &hc->cfg)) channel_ctrl()
|
H A D | w6692.c | 335 if (test_bit(FLG_TX_BUSY, &dch->Flags)) { d_retransmit() 478 if (test_bit(FLG_RX_OFF, &wch->bch.Flags)) { W6692_empty_Bfifo() 511 if (!test_bit(FLG_TX_EMPTY, &wch->bch.Flags)) W6692_fill_Bfifo() 524 else if (test_bit(FLG_HDLC, &wch->bch.Flags)) W6692_fill_Bfifo() 555 !test_bit(FLG_TRANSPARENT, &wch->bch.Flags)) 580 !test_bit(FLG_TRANSPARENT, &wch->bch.Flags)) 661 } else if (test_bit(FLG_TX_EMPTY, &wch->bch.Flags)) { send_next() 680 test_bit(FLG_ACTIVE, &wch->bch.Flags)) { W6692B_interrupt() 687 if (test_bit(FLG_HDLC, &wch->bch.Flags)) { W6692B_interrupt() 729 if (test_bit(FLG_TRANSPARENT, &wch->bch.Flags)) W6692B_interrupt() 761 if (!test_bit(FLG_TRANSPARENT, &wch->bch.Flags)) W6692B_interrupt() 777 if (!test_bit(FLG_TRANSPARENT, &wch->bch.Flags)) W6692B_interrupt() 779 } else if (test_bit(FLG_FILLEMPTY, &wch->bch.Flags)) { W6692B_interrupt() 828 if (test_bit(FLG_BUSY_TIMER, &dch->Flags)) { dbusy_timer_handler()
|
/linux-4.1.27/arch/sparc/lib/ |
H A D | bitext.c | 80 while (test_bit(offset + i, t->map) == 0) { bit_map_string_get() 110 if (test_bit(offset + i, t->map) == 0) bit_map_clear()
|
/linux-4.1.27/net/netfilter/ |
H A D | nf_conntrack_labels.c | 30 return bit < label_bits(labels) && test_bit(bit, labels->bits); nf_connlabel_match() 41 if (test_bit(bit, labels->bits)) nf_connlabel_set()
|
H A D | nf_conntrack_proto_sctp.c | 327 if (!test_bit(SCTP_CID_INIT, map) && sctp_packet() 328 !test_bit(SCTP_CID_SHUTDOWN_COMPLETE, map) && sctp_packet() 329 !test_bit(SCTP_CID_COOKIE_ECHO, map) && sctp_packet() 330 !test_bit(SCTP_CID_ABORT, map) && sctp_packet() 331 !test_bit(SCTP_CID_SHUTDOWN_ACK, map) && sctp_packet() 431 if (test_bit(SCTP_CID_ABORT, map) || sctp_new() 432 test_bit(SCTP_CID_SHUTDOWN_COMPLETE, map) || sctp_new() 433 test_bit(SCTP_CID_COOKIE_ACK, map)) sctp_new()
|
/linux-4.1.27/drivers/scsi/qla2xxx/ |
H A D | qla_inline.h | 211 return test_bit(ISP_ABORT_NEEDED, &base_vha->dpc_flags) || qla2x00_reset_active() 212 test_bit(ABORT_ISP_ACTIVE, &base_vha->dpc_flags) || qla2x00_reset_active() 213 test_bit(ISP_ABORT_RETRY, &base_vha->dpc_flags) || qla2x00_reset_active() 214 test_bit(ISP_ABORT_NEEDED, &vha->dpc_flags) || qla2x00_reset_active() 215 test_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags); qla2x00_reset_active() 275 if (test_bit(MBX_INTR_WAIT, &ha->mbx_cmd_flags) && qla2x00_handle_mbx_completion()
|
/linux-4.1.27/sound/usb/line6/ |
H A D | playback.c | 202 if (test_bit(LINE6_STREAM_PCM, &line6pcm->out.running) && submit_audio_out_urb() 203 !test_bit(LINE6_FLAG_PAUSE_PLAYBACK, &line6pcm->flags)) { submit_audio_out_urb() 247 if (test_bit(LINE6_STREAM_IMPULSE, &line6pcm->out.running)) { submit_audio_out_urb() 250 if (test_bit(LINE6_STREAM_PCM, &line6pcm->in.running)) { submit_audio_out_urb() 328 if (test_bit(LINE6_STREAM_PCM, &line6pcm->out.running)) { audio_out_callback() 352 if (test_bit(LINE6_STREAM_PCM, &line6pcm->out.running)) { audio_out_callback()
|
H A D | capture.c | 188 if (!test_bit(LINE6_STREAM_IMPULSE, &line6pcm->in.running) && audio_in_callback() 189 test_bit(LINE6_STREAM_PCM, &line6pcm->in.running) && audio_in_callback() 202 if (!test_bit(LINE6_STREAM_IMPULSE, &line6pcm->in.running) && audio_in_callback() 203 test_bit(LINE6_STREAM_PCM, &line6pcm->in.running)) audio_in_callback()
|
/linux-4.1.27/drivers/media/pci/ivtv/ |
H A D | ivtv-fileops.c | 110 test_bit(IVTV_F_S_INTERNAL_USE, &s->s_flags)) { ivtv_release_stream() 225 if (test_bit(IVTV_F_S_INTERNAL_USE, &s_vbi->s_flags) && ivtv_get_buffer() 226 !test_bit(IVTV_F_S_APPL_IO, &s_vbi->s_flags)) { ivtv_get_buffer() 261 if (s->type != IVTV_DEC_STREAM_TYPE_VBI && !test_bit(IVTV_F_S_STREAMING, &s->s_flags)) { ivtv_get_buffer() 453 if (test_bit(IVTV_F_S_STREAMOFF, &s->s_flags) || test_and_set_bit(IVTV_F_S_STREAMING, &s->s_flags)) { ivtv_start_capture() 461 test_bit(IVTV_F_S_INTERNAL_USE, &s_vbi->s_flags) && ivtv_start_capture() 496 test_bit(IVTV_F_S_STREAMING, &s_vbi->s_flags)) { ivtv_start_capture() 687 if (test_bit(IVTV_F_S_NEEDS_DATA, &s->s_flags)) { ivtv_write() 697 test_bit(IVTV_F_S_DMA_PENDING, &s->s_flags)) { ivtv_write() 756 if (test_bit(IVTV_F_I_EV_VSYNC, &itv->i_flags) || ivtv_v4l2_dec_poll() 757 test_bit(IVTV_F_I_EV_DEC_STOPPED, &itv->i_flags)) ivtv_v4l2_dec_poll() 773 int eof = test_bit(IVTV_F_S_STREAMOFF, &s->s_flags); ivtv_v4l2_enc_poll() 777 if (!eof && !test_bit(IVTV_F_S_STREAMING, &s->s_flags) && ivtv_v4l2_enc_poll() 818 if (test_bit(IVTV_F_S_STREAMING, &s->s_flags)) { ivtv_stop_capture() 825 test_bit(IVTV_F_S_STREAMING, &s_vbi->s_flags) && ivtv_stop_capture() 826 !test_bit(IVTV_F_S_APPL_IO, &s_vbi->s_flags)) { ivtv_stop_capture() 832 test_bit(IVTV_F_S_INTERNAL_USE, &s->s_flags)) { ivtv_stop_capture() 855 test_bit(IVTV_F_I_DECODING_YUV, &itv->i_flags)) { ivtv_stop_decoding() 861 if (test_bit(IVTV_F_S_STREAMING, &s->s_flags)) { ivtv_stop_decoding() 930 if (itv->output_mode == OUT_NONE && !test_bit(IVTV_F_S_APPL_IO, &s_vout->s_flags)) { ivtv_v4l2_close() 977 test_bit(IVTV_F_S_CLAIMED, &itv->streams[IVTV_DEC_STREAM_TYPE_YUV].s_flags)) 981 test_bit(IVTV_F_S_CLAIMED, &itv->streams[IVTV_DEC_STREAM_TYPE_MPG].s_flags)) 1007 if (!test_bit(IVTV_F_I_RADIO_USER, &itv->i_flags)) {
|
H A D | ivtv-irq.c | 139 if (!test_bit(IVTV_F_S_CLAIMED, &s->s_flags)) { stream_enc_dma_append() 222 if (rc && !s->buffers_stolen && test_bit(IVTV_F_S_APPL_IO, &s->s_flags)) { stream_enc_dma_append() 413 if (!test_bit(IVTV_F_I_DMA, &itv->i_flags)) ivtv_dma_stream_dec_prepare() 419 if (!test_bit(IVTV_F_I_DMA, &itv->i_flags)) ivtv_dma_stream_dec_prepare() 549 if (!test_bit(IVTV_F_I_UDMA, &itv->i_flags) && itv->cur_dma_stream < 0) ivtv_irq_dma_read() 552 if (!test_bit(IVTV_F_I_UDMA, &itv->i_flags)) { ivtv_irq_dma_read() 704 if (!test_bit(IVTV_F_I_UDMA, &itv->i_flags) && ivtv_irq_dma_err() 744 if (test_bit(IVTV_F_I_UDMA, &itv->i_flags)) { ivtv_irq_dma_err() 792 if (test_bit(IVTV_F_S_CLAIMED, &s->s_flags) && ivtv_irq_dec_vbi_reinsert() 805 if (test_bit(IVTV_F_I_DEC_YUV, &itv->i_flags)) { ivtv_irq_dec_data_req() 826 if (test_bit(IVTV_F_I_DEC_YUV, &itv->i_flags)) ivtv_irq_dec_data_req() 887 if (test_bit(IVTV_F_I_EV_VSYNC_ENABLED, &itv->i_flags)) { ivtv_irq_vsync() 899 test_bit(IVTV_F_I_UPDATE_WSS, &itv->i_flags) || ivtv_irq_vsync() 900 test_bit(IVTV_F_I_UPDATE_VPS, &itv->i_flags) || ivtv_irq_vsync() 901 test_bit(IVTV_F_I_UPDATE_CC, &itv->i_flags))) { ivtv_irq_vsync() 1030 if ((combo & IVTV_IRQ_DMA) && !test_bit(IVTV_F_I_DMA, &itv->i_flags)) { ivtv_irq_handler() 1046 test_bit(IVTV_F_I_UDMA_PENDING, &itv->i_flags)) ivtv_irq_handler() 1050 if ((combo & IVTV_IRQ_DMA) && !test_bit(IVTV_F_I_PIO, &itv->i_flags)) { ivtv_irq_handler() 1081 if (!test_bit(IVTV_F_I_DMA, &itv->i_flags)) ivtv_unfinished_dma()
|
/linux-4.1.27/fs/btrfs/ |
H A D | extent_map.c | 78 if (test_bit(EXTENT_FLAG_FS_MAPPING, &em->flags)) free_extent_map() 187 if (test_bit(EXTENT_FLAG_PINNED, &prev->flags)) mergable_maps() 194 if (test_bit(EXTENT_FLAG_COMPRESSED, &prev->flags)) mergable_maps() 197 if (test_bit(EXTENT_FLAG_LOGGING, &prev->flags) || mergable_maps() 198 test_bit(EXTENT_FLAG_LOGGING, &next->flags)) mergable_maps() 295 if (test_bit(EXTENT_FLAG_FILLING, &em->flags)) { unpin_extent_cache() 434 WARN_ON(test_bit(EXTENT_FLAG_PINNED, &em->flags)); remove_extent_mapping() 436 if (!test_bit(EXTENT_FLAG_LOGGING, &em->flags)) remove_extent_mapping() 447 WARN_ON(test_bit(EXTENT_FLAG_PINNED, &cur->flags)); replace_extent_mapping() 449 if (!test_bit(EXTENT_FLAG_LOGGING, &cur->flags)) replace_extent_mapping()
|
/linux-4.1.27/fs/hfs/ |
H A D | bnode.c | 274 wait_event(node2->lock_wq, !test_bit(HFS_BNODE_NEW, &node2->flags)); __hfs_bnode_create() 327 wait_event(node->lock_wq, !test_bit(HFS_BNODE_NEW, &node->flags)); hfs_bnode_find() 328 if (test_bit(HFS_BNODE_ERROR, &node->flags)) hfs_bnode_find() 336 if (test_bit(HFS_BNODE_ERROR, &node->flags)) hfs_bnode_find() 338 if (!test_bit(HFS_BNODE_NEW, &node->flags)) hfs_bnode_find() 425 if (test_bit(HFS_BNODE_ERROR, &node->flags)) { hfs_bnode_create() 475 if (test_bit(HFS_BNODE_DELETED, &node->flags)) { hfs_bnode_put()
|
/linux-4.1.27/drivers/scsi/bnx2fc/ |
H A D | bnx2fc_tgt.c | 71 (test_bit( bnx2fc_ofld_wait() 125 if (!(test_bit(BNX2FC_FLAG_OFFLOADED, &tgt->flags))) { bnx2fc_offload_session() 150 if (!(test_bit(BNX2FC_FLAG_ENABLED, &tgt->flags))) bnx2fc_offload_session() 200 if (test_bit(BNX2FC_FLAG_DISABLE_FAILED, &tgt->flags)) bnx2fc_flush_active_ios() 234 if (test_bit(BNX2FC_FLAG_DISABLE_FAILED, &tgt->flags)) bnx2fc_flush_active_ios() 283 (test_bit( bnx2fc_upld_wait() 323 if (test_bit(BNX2FC_FLAG_DISABLED, &tgt->flags)) { bnx2fc_upload_session() 331 if (!(test_bit(BNX2FC_FLAG_DESTROYED, &tgt->flags))) bnx2fc_upload_session() 337 } else if (test_bit(BNX2FC_FLAG_DISABLE_FAILED, &tgt->flags)) { bnx2fc_upload_session() 492 if (test_bit(BNX2FC_FLAG_ENABLED, &tgt->flags)) { bnx2fc_rport_event_handler() 507 if (test_bit(BNX2FC_FLAG_ENABLED, &tgt->flags)) { bnx2fc_rport_event_handler() 545 if (!(test_bit(BNX2FC_FLAG_ENABLED, &tgt->flags))) { bnx2fc_rport_event_handler() 563 if (test_bit(BNX2FC_FLAG_EXPL_LOGO, &tgt->flags)) { bnx2fc_rport_event_handler()
|
H A D | bnx2fc_els.c | 283 if (test_bit(BNX2FC_FLAG_IO_COMPL, &orig_io_req->req_flags) || bnx2fc_srr_compl() 284 test_bit(BNX2FC_FLAG_ISSUE_ABTS, &orig_io_req->req_flags)) { bnx2fc_srr_compl() 310 if (test_bit(BNX2FC_FLAG_IO_COMPL, &orig_io_req->req_flags) || bnx2fc_srr_compl() 311 test_bit(BNX2FC_FLAG_ISSUE_ABTS, &orig_io_req->req_flags)) { bnx2fc_srr_compl() 427 if (test_bit(BNX2FC_FLAG_IO_COMPL, &orig_io_req->req_flags)) { bnx2fc_rec_compl() 433 if (test_bit(BNX2FC_FLAG_ISSUE_ABTS, &orig_io_req->req_flags)) { bnx2fc_rec_compl() 692 if (!(test_bit(BNX2FC_FLAG_SESSION_READY, &tgt->flags)) || bnx2fc_initiate_els() 693 (test_bit(BNX2FC_FLAG_EXPL_LOGO, &tgt->flags))) { bnx2fc_initiate_els() 773 if (!test_bit(BNX2FC_FLAG_SESSION_READY, &tgt->flags)) { bnx2fc_initiate_els()
|
/linux-4.1.27/drivers/scsi/isci/ |
H A D | task.c | 110 return idev ? test_bit(IDEV_IO_READY, &idev->flags) || isci_device_io_ready() 111 (test_bit(IDEV_IO_NCQERROR, &idev->flags) && isci_device_io_ready() 177 if (test_bit(IDEV_GONE, &idev->flags)) { isci_task_execute_task() 279 (!test_bit(IDEV_IO_READY, &idev->flags) && isci_task_execute_tmf() 280 !test_bit(IDEV_IO_NCQERROR, &idev->flags))) { isci_task_execute_tmf() 443 if (!test_bit(IDEV_GONE, &idev->flags)) { isci_task_lu_reset() 504 target_done_already = test_bit(IREQ_COMPLETE_IN_TARGET, isci_task_abort_task() 517 ((idev) ? ((test_bit(IDEV_GONE, &idev->flags)) isci_task_abort_task() 561 test_bit(IDEV_GONE, &idev->flags)) { isci_task_abort_task() 579 test_bit(IREQ_COMPLETE_IN_TARGET, isci_task_abort_task() 581 test_bit(IDEV_GONE, &idev->flags)); isci_task_abort_task() 733 if (!test_bit(IREQ_NO_AUTO_FREE_TAG, &ireq->flags)) isci_task_request_complete() 763 if (!test_bit(IDEV_GONE, &idev->flags)) { isci_reset_device()
|
/linux-4.1.27/drivers/media/pci/cx18/ |
H A D | cx18-fileops.c | 119 test_bit(CX18_F_S_INTERNAL_USE, &s->s_flags)) { cx18_release_stream() 200 if (test_bit(CX18_F_S_INTERNAL_USE, &s_vbi->s_flags) && cx18_get_mdl() 201 !test_bit(CX18_F_S_APPL_IO, &s_vbi->s_flags)) { cx18_get_mdl() 232 if (!test_bit(CX18_F_S_STREAMING, &s->s_flags)) { cx18_get_mdl() 515 if (test_bit(CX18_F_S_STREAMOFF, &s->s_flags) || cx18_start_capture() 530 if (test_bit(CX18_F_S_INTERNAL_USE, &s_idx->s_flags) && cx18_start_capture() 539 if (test_bit(CX18_F_S_INTERNAL_USE, &s_vbi->s_flags) && cx18_start_capture() 570 if (test_bit(CX18_F_S_STREAMING, &s_idx->s_flags)) { cx18_start_capture() 575 if (test_bit(CX18_F_S_STREAMING, &s_vbi->s_flags) && cx18_start_capture() 576 !test_bit(CX18_F_S_APPL_IO, &s_vbi->s_flags)) { cx18_start_capture() 617 int eof = test_bit(CX18_F_S_STREAMOFF, &s->s_flags); cx18_v4l2_enc_poll() 621 if (!eof && !test_bit(CX18_F_S_STREAMING, &s->s_flags) && cx18_v4l2_enc_poll() 666 int eof = test_bit(CX18_F_S_STREAMOFF, &s->s_flags); cx18_v4l2_mmap() 672 if (!eof && !test_bit(CX18_F_S_STREAMING, &s->s_flags)) { cx18_v4l2_mmap() 725 if (test_bit(CX18_F_S_STREAMING, &s->s_flags)) { cx18_stop_capture() 729 if (test_bit(CX18_F_S_STREAMING, &s_vbi->s_flags) && cx18_stop_capture() 730 !test_bit(CX18_F_S_APPL_IO, &s_vbi->s_flags)) { cx18_stop_capture() 735 if (test_bit(CX18_F_S_STREAMING, &s_idx->s_flags)) { cx18_stop_capture() 741 test_bit(CX18_F_S_INTERNAL_USE, &s->s_flags)) cx18_stop_capture() 820 if (!test_bit(CX18_F_I_RADIO_USER, &cx->i_flags)) { cx18_serialized_open()
|
H A D | cx18-audio.c | 44 if (test_bit(CX18_F_I_RADIO_USER, &cx->i_flags)) cx18_audio_set_io()
|
/linux-4.1.27/drivers/pwm/ |
H A D | pwm-tiecap.c | 100 if (!test_bit(PWMF_ENABLED, &pwm->flags)) { ecap_pwm_config() 114 if (!test_bit(PWMF_ENABLED, &pwm->flags)) { ecap_pwm_config() 182 if (test_bit(PWMF_ENABLED, &pwm->flags)) { ecap_pwm_free() 309 if (test_bit(PWMF_ENABLED, &pwm->flags)) ecap_pwm_suspend() 321 if (test_bit(PWMF_ENABLED, &pwm->flags)) ecap_pwm_resume()
|
H A D | pwm-ep93xx.c | 85 if (!test_bit(PWMF_ENABLED, &pwm->flags)) { ep93xx_pwm_config() 116 if (!test_bit(PWMF_ENABLED, &pwm->flags)) ep93xx_pwm_config()
|
H A D | pwm-mxs.c | 80 if (!test_bit(PWMF_ENABLED, &pwm->flags)) { mxs_pwm_config() 95 if (!test_bit(PWMF_ENABLED, &pwm->flags)) mxs_pwm_config()
|
H A D | pwm-tegra.c | 115 if (!test_bit(PWMF_ENABLED, &pwm->flags)) { tegra_pwm_config() 127 if (!test_bit(PWMF_ENABLED, &pwm->flags)) tegra_pwm_config() 217 if (!test_bit(PWMF_ENABLED, &pwm->flags)) tegra_pwm_remove()
|
/linux-4.1.27/drivers/scsi/libsas/ |
H A D | sas_event.c | 32 if (!test_bit(SAS_HA_REGISTERED, &ha->state)) sas_queue_work() 35 if (test_bit(SAS_HA_DRAINING, &ha->state)) { sas_queue_work() 85 if (test_bit(SAS_HA_REGISTERED, &ha->state)) sas_drain_work()
|
/linux-4.1.27/fs/jfs/ |
H A D | jfs_metapage.c | 44 #define metapage_locked(mp) test_bit(META_locked, &(mp)->flag) 235 if (mp->count || mp->nohomeok || test_bit(META_dirty, &mp->flag) || drop_metapage() 236 test_bit(META_io, &mp->flag)) drop_metapage() 283 if (!test_bit(BIO_UPTODATE, &bio->bi_flags)) { metapage_read_end_io() 321 if (mp && test_bit(META_io, &mp->flag)) { last_write_complete() 340 if (! test_bit(BIO_UPTODATE, &bio->bi_flags)) { metapage_write_end_io() 377 if (!mp || !test_bit(META_dirty, &mp->flag)) metapage_writepage() 380 if (mp->nohomeok && !test_bit(META_forcewrite, &mp->flag)) { metapage_writepage() 553 test_bit(META_dirty, &mp->flag)) { metapage_releasepage() 652 if (test_bit(META_discard, &mp->flag)) { __get_metapage() 753 if (test_bit(META_dirty, &mp->flag)) { release_metapage() 755 if (test_bit(META_sync, &mp->flag)) { release_metapage()
|
/linux-4.1.27/drivers/usb/host/ |
H A D | uhci-hub.c | 50 test_bit(port, &uhci->port_c_suspend)) any_ports_active() 73 test_bit(port, &uhci->port_c_suspend)) get_hub_status_data() 103 if (test_bit(port, &uhci->resuming_ports)) uhci_finish_suspend() 164 if (!test_bit(port, &uhci->resuming_ports)) { uhci_check_ports() 285 if (test_bit(port, &uhci->port_c_suspend)) { uhci_hub_control() 289 if (test_bit(port, &uhci->resuming_ports)) uhci_hub_control()
|
H A D | ehci-hub.c | 69 if (test_bit(port, &ehci->owned_ports)) { ehci_handover_companion_ports() 83 if (test_bit(port, &ehci->owned_ports)) { ehci_handover_companion_ports() 90 else if (test_bit(port, &ehci->companion_ports)) ehci_handover_companion_ports() 110 if (test_bit(port, &ehci->owned_ports)) { ehci_handover_companion_ports() 445 if (test_bit(i, &ehci->bus_suspended)) { ehci_bus_resume() 466 if (test_bit(i, &ehci->bus_suspended) && ehci_bus_resume() 489 if (test_bit(i, &resume_needed)) { ehci_bus_resume() 665 if ((temp & mask) != 0 || test_bit(i, &ehci->port_c_suspend) ehci_hub_status_data() 1037 } else if (test_bit(wIndex, &ehci->resuming_ports)) { ehci_hub_control() 1082 test_bit(wIndex, &ehci->companion_ports)) { ehci_hub_control() 1111 } else if (test_bit(wIndex, &ehci->suspended_ports)) { ehci_hub_control() 1126 if (test_bit(wIndex, &ehci->port_c_suspend)) ehci_hub_control()
|
/linux-4.1.27/fs/hfsplus/ |
H A D | unicode.c | 137 compose = !test_bit(HFSPLUS_SB_NODECOMPOSE, &HFSPLUS_SB(sb)->flags); hfsplus_uni2asc() 306 decompose = !test_bit(HFSPLUS_SB_NODECOMPOSE, &HFSPLUS_SB(sb)->flags); hfsplus_asc2uni() 347 casefold = test_bit(HFSPLUS_SB_CASEFOLD, &HFSPLUS_SB(sb)->flags); hfsplus_hash_dentry() 348 decompose = !test_bit(HFSPLUS_SB_NODECOMPOSE, &HFSPLUS_SB(sb)->flags); hfsplus_hash_dentry() 399 casefold = test_bit(HFSPLUS_SB_CASEFOLD, &HFSPLUS_SB(sb)->flags); hfsplus_compare_dentry() 400 decompose = !test_bit(HFSPLUS_SB_NODECOMPOSE, &HFSPLUS_SB(sb)->flags); hfsplus_compare_dentry()
|
H A D | bnode.c | 440 !test_bit(HFS_BNODE_NEW, &node2->flags)); __hfs_bnode_create() 494 !test_bit(HFS_BNODE_NEW, &node->flags)); hfs_bnode_find() 495 if (test_bit(HFS_BNODE_ERROR, &node->flags)) hfs_bnode_find() 503 if (test_bit(HFS_BNODE_ERROR, &node->flags)) hfs_bnode_find() 505 if (!test_bit(HFS_BNODE_NEW, &node->flags)) hfs_bnode_find() 593 if (test_bit(HFS_BNODE_ERROR, &node->flags)) { hfs_bnode_create() 643 if (test_bit(HFS_BNODE_DELETED, &node->flags)) { hfs_bnode_put()
|
H A D | options.c | 233 if (test_bit(HFSPLUS_SB_NODECOMPOSE, &sbi->flags)) hfsplus_show_options() 235 if (test_bit(HFSPLUS_SB_NOBARRIER, &sbi->flags)) hfsplus_show_options()
|
/linux-4.1.27/drivers/net/wireless/iwlegacy/ |
H A D | debug.c | 542 if (!test_bit(S_GEO_CONFIGURED, &il->status)) il_dbgfs_channels_read() 622 test_bit(S_HCMD_ACTIVE, &il->status)); il_dbgfs_status_read() 625 test_bit(S_INT_ENABLED, &il->status)); il_dbgfs_status_read() 628 test_bit(S_RFKILL, &il->status)); il_dbgfs_status_read() 631 test_bit(S_CT_KILL, &il->status)); il_dbgfs_status_read() 634 test_bit(S_INIT, &il->status)); il_dbgfs_status_read() 637 test_bit(S_ALIVE, &il->status)); il_dbgfs_status_read() 640 test_bit(S_READY, &il->status)); il_dbgfs_status_read() 643 test_bit(S_TEMPERATURE, &il->status)); il_dbgfs_status_read() 646 test_bit(S_GEO_CONFIGURED, &il->status)); il_dbgfs_status_read() 649 test_bit(S_EXIT_PENDING, &il->status)); il_dbgfs_status_read() 652 test_bit(S_STATS, &il->status)); il_dbgfs_status_read() 655 test_bit(S_SCANNING, &il->status)); il_dbgfs_status_read() 658 test_bit(S_SCAN_ABORTING, &il->status)); il_dbgfs_status_read() 661 test_bit(S_SCAN_HW, &il->status)); il_dbgfs_status_read() 664 test_bit(S_POWER_PMI, &il->status)); il_dbgfs_status_read() 667 test_bit(S_FW_ERROR, &il->status)); il_dbgfs_status_read() 877 !!test_bit(cnt, il->queue_stopped), il_dbgfs_tx_queue_read()
|
/linux-4.1.27/drivers/block/drbd/ |
H A D | drbd_actlog.c | 131 *done || test_bit(FORCE_DETACH, &device->flags), dt); wait_until_done_or_force_detached() 150 if ((rw & WRITE) && !test_bit(MD_NO_FUA, &device->flags)) _drbd_md_sync_page_io() 223 if (test_bit(BME_NO_WRITES, &bm_ext->flags)) find_active_resync_extent() 378 if (test_bit(BME_NO_WRITES, &bm_ext->flags)) { drbd_al_begin_io_nonblock() 597 D_ASSERT(device, test_bit(__LC_LOCKED, &device->act_log->flags)); drbd_al_shrink() 956 if (test_bit(BME_LOCKED, &bm_ext->flags)) drbd_rs_begin_io() 965 (sa && test_bit(BME_PRIORITY, &bm_ext->flags))); drbd_rs_begin_io() 967 if (sig || (sa && test_bit(BME_PRIORITY, &bm_ext->flags))) { drbd_rs_begin_io() 1030 D_ASSERT(device, !test_bit(BME_LOCKED, &bm_ext->flags)); drbd_try_rs_begin_io() 1031 D_ASSERT(device, test_bit(BME_NO_WRITES, &bm_ext->flags)); drbd_try_rs_begin_io() 1047 if (test_bit(BME_LOCKED, &bm_ext->flags)) drbd_try_rs_begin_io() 1080 D_ASSERT(device, test_bit(BME_LOCKED, &bm_ext->flags) == 0); drbd_try_rs_begin_io() 1101 D_ASSERT(device, !test_bit(BME_LOCKED, &bm_ext->flags)); drbd_try_rs_begin_io() 1102 D_ASSERT(device, test_bit(BME_NO_WRITES, &bm_ext->flags)); drbd_try_rs_begin_io() 1195 D_ASSERT(device, !test_bit(BME_LOCKED, &bm_ext->flags)); drbd_rs_del_all() 1196 D_ASSERT(device, test_bit(BME_NO_WRITES, &bm_ext->flags)); drbd_rs_del_all() 1208 D_ASSERT(device, !test_bit(BME_LOCKED, &bm_ext->flags)); drbd_rs_del_all() 1209 D_ASSERT(device, !test_bit(BME_NO_WRITES, &bm_ext->flags)); drbd_rs_del_all()
|
/linux-4.1.27/fs/afs/ |
H A D | inode.c | 86 if (test_bit(AFS_VNODE_MOUNTPOINT, &vnode->flags)) { afs_inode_map_status() 322 !test_bit(AFS_VNODE_CB_BROKEN, &vnode->flags) && afs_validate() 323 !test_bit(AFS_VNODE_MODIFIED, &vnode->flags) && afs_validate() 324 !test_bit(AFS_VNODE_ZAP_DATA, &vnode->flags)) { afs_validate() 333 if (test_bit(AFS_VNODE_DELETED, &vnode->flags)) afs_validate() 343 test_bit(AFS_VNODE_CB_BROKEN, &vnode->flags)) { afs_validate() 351 if (test_bit(AFS_VNODE_DELETED, &vnode->flags)) { afs_validate() 397 if (test_bit(AFS_VNODE_PSEUDODIR, &AFS_FS_I(inode)->flags)) afs_drop_inode()
|
H A D | callback.c | 70 if (test_bit(AFS_VNODE_DELETED, &vnode->flags)) afs_broken_callback_work() 78 if (test_bit(AFS_VNODE_CB_BROKEN, &vnode->flags)) { afs_broken_callback_work() 85 if (test_bit(AFS_VNODE_DELETED, &vnode->flags)) afs_broken_callback_work() 100 if (test_bit(AFS_VNODE_CB_BROKEN, &vnode->flags)) { afs_broken_callback_work()
|
/linux-4.1.27/sound/drivers/mpu401/ |
H A D | mpu401_uart.c | 100 if (test_bit(MPU401_MODE_BIT_OUTPUT, &mpu->mode) && uart_interrupt_tx() 101 test_bit(MPU401_MODE_BIT_OUTPUT_TRIGGER, &mpu->mode)) { uart_interrupt_tx() 114 if (test_bit(MPU401_MODE_BIT_INPUT, &mpu->mode)) _snd_mpu401_uart_interrupt() 292 if (! test_bit(MPU401_MODE_BIT_OUTPUT, &mpu->mode)) { snd_mpu401_uart_input_open() 314 if (! test_bit(MPU401_MODE_BIT_INPUT, &mpu->mode)) { snd_mpu401_uart_output_open() 336 if (! test_bit(MPU401_MODE_BIT_OUTPUT, &mpu->mode)) snd_mpu401_uart_input_close() 353 if (! test_bit(MPU401_MODE_BIT_INPUT, &mpu->mode)) snd_mpu401_uart_output_close() 408 if (test_bit(MPU401_MODE_BIT_INPUT_TRIGGER, &mpu->mode)) snd_mpu401_uart_input_read()
|
/linux-4.1.27/include/asm-generic/bitops/ |
H A D | non-atomic.h | 99 * test_bit - Determine whether a bit is set 103 static inline int test_bit(int nr, const volatile unsigned long *addr) test_bit() function
|
H A D | le.h | 54 return test_bit(nr ^ BITOP_LE_SWIZZLE, addr); test_bit_le()
|
/linux-4.1.27/drivers/net/wireless/ath/ath6kl/ |
H A D | cfg80211.c | 289 if (!test_bit(WMI_READY, &ar->flag)) { ath6kl_cfg80211_ready() 294 if (!test_bit(WLAN_ENABLED, &vif->flags)) { ath6kl_cfg80211_ready() 435 if (WARN_ON(!test_bit(WMI_READY, &vif->ar->flag))) ath6kl_cfg80211_sta_bmiss_enhance() 441 if (!test_bit(ATH6KL_FW_CAPABILITY_BMISS_ENHANCE, ath6kl_cfg80211_sta_bmiss_enhance() 471 if (test_bit(DESTROY_IN_PROGRESS, &ar->flag)) { ath6kl_cfg80211_connect() 476 if (test_bit(SKIP_SCAN, &ar->flag) && ath6kl_cfg80211_connect() 488 if (test_bit(DESTROY_IN_PROGRESS, &ar->flag)) { ath6kl_cfg80211_connect() 517 if (test_bit(CONNECTED, &vif->flags) && ath6kl_cfg80211_connect() 830 if (test_bit(DESTROY_IN_PROGRESS, &ar->flag)) { ath6kl_cfg80211_disconnect() 845 if (!test_bit(SKIP_SCAN, &ar->flag)) ath6kl_cfg80211_disconnect() 1047 if (test_bit(CONNECTED, &vif->flags)) ath6kl_cfg80211_scan() 1207 if (!test_bit(CONNECTED, &vif->flags)) { ath6kl_cfg80211_add_key() 1219 !test_bit(CONNECTED, &vif->flags)) { ath6kl_cfg80211_add_key() 1344 if (vif->next_mode == AP_NETWORK && !test_bit(CONNECTED, &vif->flags)) ath6kl_cfg80211_set_default_key() 1445 if (test_bit(CONNECTED, &vif->flags)) { ath6kl_cfg80211_get_txpower() 1537 ath6kl_cfg80211_vif_stop(vif, test_bit(WMI_READY, &ar->flag)); ath6kl_cfg80211_del_iface() 1561 if (!test_bit(ATH6KL_FW_CAPABILITY_STA_P2PDEV_DUPLEX, ath6kl_cfg80211_change_iface() 1791 !test_bit(STATS_UPDATE_PEND, ath6kl_get_station() 1852 if (test_bit(CONNECTED, &vif->flags) && ath6kl_get_station() 1853 test_bit(DTIM_PERIOD_AVAIL, &vif->flags) && ath6kl_get_station() 1889 if (test_bit(CONNECTED, &vif->flags)) ath6kl_flush_pmksa() 2069 return test_bit(HOST_SLEEP_MODE_CMD_PROCESSED, &vif->flags); is_hsleep_mode_procsed() 2127 if (!test_bit(NETDEV_MCAST_ALL_ON, &vif->flags) && ath6kl_wow_suspend_vif() 2128 test_bit(ATH6KL_FW_CAPABILITY_WOW_MULTICAST_FILTER, ath6kl_wow_suspend_vif() 2230 if (!test_bit(CONNECTED, &vif->flags) || ath6kl_wow_suspend() 2280 if (!test_bit(NETDEV_MCAST_ALL_OFF, &vif->flags) && ath6kl_wow_resume_vif() 2281 test_bit(ATH6KL_FW_CAPABILITY_WOW_MULTICAST_FILTER, ath6kl_wow_resume_vif() 2316 if (!test_bit(CONNECTED, &vif->flags) || ath6kl_wow_resume() 2345 if (!test_bit(WMI_READY, &ar->flag)) { ath6kl_cfg80211_deepsleep_suspend() 2906 if (test_bit(ATH6KL_FW_CAPABILITY_AP_INACTIVITY_MINS, ath6kl_start_ap() 2929 test_bit(ATH6KL_FW_CAPABILITY_RSN_CAP_OVERRIDE, ath6kl_start_ap() 2969 if (!test_bit(CONNECTED, &vif->flags)) ath6kl_stop_ap() 3200 if (vif->nw_type == AP_NETWORK && test_bit(CONNECTED, &vif->flags) && ath6kl_mgmt_tx() 3297 if (test_bit(ATH6KL_FW_CAPABILITY_RSSI_SCAN_THOLD, ath6kl_cfg80211_sscan_start() 3374 !test_bit(ATH6KL_FW_CAPABILITY_TX_ERR_NOTIFY, ar->fw_capabilities)) ath6kl_cfg80211_set_txe_config() 3475 (test_bit(CONNECTED, &vif->flags) || ath6kl_cfg80211_stop() 3476 test_bit(CONNECT_PEND, &vif->flags))) ath6kl_cfg80211_stop() 3594 discon_issued = test_bit(CONNECTED, &vif->flags) || ath6kl_cfg80211_vif_stop() 3595 test_bit(CONNECT_PEND, &vif->flags); ath6kl_cfg80211_vif_stop() 3670 if (test_bit(ATH6KL_FW_CAPABILITY_CUSTOM_MAC_ADDR, ath6kl_interface_add() 3741 test_bit(ATH6KL_FW_CAPABILITY_REGDOMAIN, ar->fw_capabilities)) { ath6kl_cfg80211_init() 3750 if (test_bit(ATH6KL_FW_CAPABILITY_SCHED_SCAN_MATCH_LIST, ath6kl_cfg80211_init() 3783 test_bit(ATH6KL_FW_CAPABILITY_RSN_CAP_OVERRIDE, ath6kl_cfg80211_init() 3791 if (test_bit(ATH6KL_FW_CAPABILITY_64BIT_RATES, ath6kl_cfg80211_init() 3823 if (test_bit(ATH6KL_FW_CAPABILITY_SCHED_SCAN_V2, ar->fw_capabilities)) ath6kl_cfg80211_init() 3826 if (test_bit(ATH6KL_FW_CAPABILITY_INACTIVITY_TIMEOUT, ath6kl_cfg80211_init()
|
H A D | recovery.c | 52 if (!test_bit(RECOVERY_CLEANUP, &ar->flag) && ath6kl_recovery_err_notify() 68 if (test_bit(RECOVERY_CLEANUP, &ar->flag) || ath6kl_recovery_hb_timer()
|
H A D | main.c | 508 if (test_bit(CONNECTED, &vif->flags) || ath6kl_disconnect() 509 test_bit(CONNECT_PEND, &vif->flags)) { ath6kl_disconnect() 584 test_bit(ATH6KL_FW_CAPABILITY_RSN_CAP_OVERRIDE, ath6kl_commit_ch_switch() 805 if (test_bit(STATS_UPDATE_PEND, &vif->flags)) { ath6kl_update_target_stats() 1001 if (test_bit(WMI_READY, &ar->flag)) ath6kl_disconnect_event() 1034 if (!ar->usr_bss_filter && test_bit(WMI_READY, &ar->flag)) ath6kl_disconnect_event() 1093 if (test_bit(CONNECTED, &vif->flags)) { ath6kl_open() 1166 if (!test_bit(WMI_READY, &vif->ar->flag) || ath6kl_set_multicast_list() 1167 !test_bit(WLAN_ENABLED, &vif->flags)) ath6kl_set_multicast_list() 1180 if (test_bit(ATH6KL_FW_CAPABILITY_WOW_MULTICAST_FILTER, ath6kl_set_multicast_list() 1204 if (test_bit(NETDEV_MCAST_ALL_ON, &vif->flags)) ath6kl_set_multicast_list() 1308 if (!test_bit(ATH6KL_FW_CAPABILITY_NO_IP_CHECKSUM, init_netdev()
|
/linux-4.1.27/drivers/scsi/qla4xxx/ |
H A D | ql4_os.c | 1716 if (adapter_up(ha) && !test_bit(AF_BUILD_DDB_LIST, &ha->flags)) qla4xxx_ep_poll() 1880 if (test_bit(AF_LINK_UP, &ha->flags)) qla4xxx_set_port_state() 3462 conn->is_fw_assigned_ipv6 = test_bit(OPT_IS_FW_ASSIGNED_IPV6, &options); qla4xxx_copy_from_fwddb_param() 3463 if (test_bit(OPT_IPV6_DEVICE, &options)) { qla4xxx_copy_from_fwddb_param() 3475 sess->auto_snd_tgt_disable = test_bit(OPT_AUTO_SENDTGTS_DISABLE, qla4xxx_copy_from_fwddb_param() 3477 sess->discovery_sess = test_bit(OPT_DISC_SESSION, &options); qla4xxx_copy_from_fwddb_param() 3478 sess->entry_state = test_bit(OPT_ENTRY_STATE, &options); qla4xxx_copy_from_fwddb_param() 3481 conn->hdrdgst_en = test_bit(ISCSIOPT_HEADER_DIGEST_EN, &options); qla4xxx_copy_from_fwddb_param() 3482 conn->datadgst_en = test_bit(ISCSIOPT_DATA_DIGEST_EN, &options); qla4xxx_copy_from_fwddb_param() 3483 sess->imm_data_en = test_bit(ISCSIOPT_IMMEDIATE_DATA_EN, &options); qla4xxx_copy_from_fwddb_param() 3484 sess->initial_r2t_en = test_bit(ISCSIOPT_INITIAL_R2T_EN, &options); qla4xxx_copy_from_fwddb_param() 3485 sess->dataseq_inorder_en = test_bit(ISCSIOPT_DATA_SEQ_IN_ORDER, qla4xxx_copy_from_fwddb_param() 3487 sess->pdu_inorder_en = test_bit(ISCSIOPT_DATA_PDU_IN_ORDER, &options); qla4xxx_copy_from_fwddb_param() 3488 sess->chap_auth_en = test_bit(ISCSIOPT_CHAP_AUTH_EN, &options); qla4xxx_copy_from_fwddb_param() 3489 conn->snack_req_en = test_bit(ISCSIOPT_SNACK_REQ_EN, &options); qla4xxx_copy_from_fwddb_param() 3490 sess->discovery_logout_en = test_bit(ISCSIOPT_DISCOVERY_LOGOUT_EN, qla4xxx_copy_from_fwddb_param() 3492 sess->bidi_chap_en = test_bit(ISCSIOPT_BIDI_CHAP_EN, &options); qla4xxx_copy_from_fwddb_param() 3494 test_bit(ISCSIOPT_DISCOVERY_AUTH_OPTIONAL, &options); qla4xxx_copy_from_fwddb_param() 3495 if (test_bit(ISCSIOPT_ERL1, &options)) qla4xxx_copy_from_fwddb_param() 3497 if (test_bit(ISCSIOPT_ERL0, &options)) qla4xxx_copy_from_fwddb_param() 3501 conn->tcp_timestamp_stat = test_bit(TCPOPT_TIMESTAMP_STAT, &options); qla4xxx_copy_from_fwddb_param() 3502 conn->tcp_nagle_disable = test_bit(TCPOPT_NAGLE_DISABLE, &options); qla4xxx_copy_from_fwddb_param() 3503 conn->tcp_wsf_disable = test_bit(TCPOPT_WSF_DISABLE, &options); qla4xxx_copy_from_fwddb_param() 3504 if (test_bit(TCPOPT_TIMER_SCALE3, &options)) qla4xxx_copy_from_fwddb_param() 3506 if (test_bit(TCPOPT_TIMER_SCALE2, &options)) qla4xxx_copy_from_fwddb_param() 3508 if (test_bit(TCPOPT_TIMER_SCALE1, &options)) qla4xxx_copy_from_fwddb_param() 3512 conn->tcp_timestamp_en = test_bit(TCPOPT_TIMESTAMP_EN, &options); qla4xxx_copy_from_fwddb_param() 3515 conn->fragment_disable = test_bit(IPOPT_FRAGMENT_DISABLE, &options); qla4xxx_copy_from_fwddb_param() 3562 if (test_bit(OPT_IPV6_DEVICE, &options)) { qla4xxx_copy_from_fwddb_param() 3713 conn->is_fw_assigned_ipv6 = test_bit(OPT_IS_FW_ASSIGNED_IPV6, &options); qla4xxx_copy_to_sess_conn_params() 3714 sess->auto_snd_tgt_disable = test_bit(OPT_AUTO_SENDTGTS_DISABLE, qla4xxx_copy_to_sess_conn_params() 3716 sess->discovery_sess = test_bit(OPT_DISC_SESSION, &options); qla4xxx_copy_to_sess_conn_params() 3719 conn->hdrdgst_en = test_bit(ISCSIOPT_HEADER_DIGEST_EN, &options); qla4xxx_copy_to_sess_conn_params() 3720 conn->datadgst_en = test_bit(ISCSIOPT_DATA_DIGEST_EN, &options); qla4xxx_copy_to_sess_conn_params() 3721 sess->imm_data_en = test_bit(ISCSIOPT_IMMEDIATE_DATA_EN, &options); qla4xxx_copy_to_sess_conn_params() 3722 sess->initial_r2t_en = test_bit(ISCSIOPT_INITIAL_R2T_EN, &options); qla4xxx_copy_to_sess_conn_params() 3723 sess->dataseq_inorder_en = test_bit(ISCSIOPT_DATA_SEQ_IN_ORDER, qla4xxx_copy_to_sess_conn_params() 3725 sess->pdu_inorder_en = test_bit(ISCSIOPT_DATA_PDU_IN_ORDER, &options); qla4xxx_copy_to_sess_conn_params() 3726 sess->chap_auth_en = test_bit(ISCSIOPT_CHAP_AUTH_EN, &options); qla4xxx_copy_to_sess_conn_params() 3727 sess->discovery_logout_en = test_bit(ISCSIOPT_DISCOVERY_LOGOUT_EN, qla4xxx_copy_to_sess_conn_params() 3729 sess->bidi_chap_en = test_bit(ISCSIOPT_BIDI_CHAP_EN, &options); qla4xxx_copy_to_sess_conn_params() 3731 test_bit(ISCSIOPT_DISCOVERY_AUTH_OPTIONAL, &options); qla4xxx_copy_to_sess_conn_params() 3732 if (test_bit(ISCSIOPT_ERL1, &options)) qla4xxx_copy_to_sess_conn_params() 3734 if (test_bit(ISCSIOPT_ERL0, &options)) qla4xxx_copy_to_sess_conn_params() 3738 conn->tcp_timestamp_stat = test_bit(TCPOPT_TIMESTAMP_STAT, &options); qla4xxx_copy_to_sess_conn_params() 3739 conn->tcp_nagle_disable = test_bit(TCPOPT_NAGLE_DISABLE, &options); qla4xxx_copy_to_sess_conn_params() 3740 conn->tcp_wsf_disable = test_bit(TCPOPT_WSF_DISABLE, &options); qla4xxx_copy_to_sess_conn_params() 3741 if (test_bit(TCPOPT_TIMER_SCALE3, &options)) qla4xxx_copy_to_sess_conn_params() 3743 if (test_bit(TCPOPT_TIMER_SCALE2, &options)) qla4xxx_copy_to_sess_conn_params() 3745 if (test_bit(TCPOPT_TIMER_SCALE1, &options)) qla4xxx_copy_to_sess_conn_params() 3749 conn->tcp_timestamp_en = test_bit(TCPOPT_TIMESTAMP_EN, &options); qla4xxx_copy_to_sess_conn_params() 3752 conn->fragment_disable = test_bit(IPOPT_FRAGMENT_DISABLE, &options); qla4xxx_copy_to_sess_conn_params() 4067 if (test_bit(AF_EEH_BUSY, &ha->flags)) { qla4xxx_queuecommand() 4068 if (test_bit(AF_PCI_CHANNEL_IO_PERM_FAILURE, &ha->flags)) qla4xxx_queuecommand() 4086 if (test_bit(DPC_RESET_HA_INTR, &ha->dpc_flags) || qla4xxx_queuecommand() 4087 test_bit(DPC_RESET_ACTIVE, &ha->dpc_flags) || qla4xxx_queuecommand() 4088 test_bit(DPC_RESET_HA, &ha->dpc_flags) || qla4xxx_queuecommand() 4089 test_bit(DPC_HA_UNRECOVERABLE, &ha->dpc_flags) || qla4xxx_queuecommand() 4090 test_bit(DPC_HA_NEED_QUIESCENT, &ha->dpc_flags) || qla4xxx_queuecommand() 4091 !test_bit(AF_ONLINE, &ha->flags) || qla4xxx_queuecommand() 4092 !test_bit(AF_LINK_UP, &ha->flags) || qla4xxx_queuecommand() 4093 test_bit(AF_LOOPBACK, &ha->flags) || qla4xxx_queuecommand() 4094 test_bit(DPC_POST_IDC_ACK, &ha->dpc_flags) || qla4xxx_queuecommand() 4095 test_bit(DPC_RESTORE_ACB, &ha->dpc_flags) || qla4xxx_queuecommand() 4096 test_bit(DPC_RESET_HA_FW_CONTEXT, &ha->dpc_flags)) qla4xxx_queuecommand() 4404 if (!(test_bit(DPC_RESET_ACTIVE, &ha->dpc_flags) || qla4_8xxx_watchdog() 4405 test_bit(DPC_RESET_HA, &ha->dpc_flags) || qla4_8xxx_watchdog() 4406 test_bit(DPC_RETRY_RESET_HA, &ha->dpc_flags))) { qla4_8xxx_watchdog() 4419 !test_bit(DPC_RESET_HA, &ha->dpc_flags)) { qla4_8xxx_watchdog() 4441 !test_bit(DPC_HA_NEED_QUIESCENT, &ha->dpc_flags)) { qla4_8xxx_watchdog() 4467 if (adapter_up(ha) && !test_bit(DF_RELOGIN, &ddb_entry->flags) && qla4xxx_check_relogin_flash_ddb() 4522 if (test_bit(AF_EEH_BUSY, &ha->flags)) { qla4xxx_timer() 4551 test_bit(DPC_RESET_HA, &ha->dpc_flags) || qla4xxx_timer() 4552 test_bit(DPC_RETRY_RESET_HA, &ha->dpc_flags) || qla4xxx_timer() 4553 test_bit(DPC_RELOGIN_DEVICE, &ha->dpc_flags) || qla4xxx_timer() 4554 test_bit(DPC_RESET_HA_FW_CONTEXT, &ha->dpc_flags) || qla4xxx_timer() 4555 test_bit(DPC_RESET_HA_INTR, &ha->dpc_flags) || qla4xxx_timer() 4556 test_bit(DPC_GET_DHCP_IP_ADDR, &ha->dpc_flags) || qla4xxx_timer() 4557 test_bit(DPC_LINK_CHANGED, &ha->dpc_flags) || qla4xxx_timer() 4558 test_bit(DPC_HA_UNRECOVERABLE, &ha->dpc_flags) || qla4xxx_timer() 4559 test_bit(DPC_HA_NEED_QUIESCENT, &ha->dpc_flags) || qla4xxx_timer() 4560 test_bit(DPC_SYSFS_DDB_EXPORT, &ha->dpc_flags) || qla4xxx_timer() 4561 test_bit(DPC_AEN, &ha->dpc_flags)) { qla4xxx_timer() 4829 !test_bit(DPC_RESET_HA_FW_CONTEXT, &ha->dpc_flags)) { qla4xxx_recover_adapter() 4838 if (test_bit(DPC_RESET_HA, &ha->dpc_flags)) qla4xxx_recover_adapter() 4843 if (test_bit(DPC_RESET_HA_INTR, &ha->dpc_flags)) { qla4xxx_recover_adapter() 4851 test_bit(DPC_RESET_HA_FW_CONTEXT, &ha->dpc_flags)) { qla4xxx_recover_adapter() 4880 if (test_bit(AF_FW_RECOVERY, &ha->flags)) qla4xxx_recover_adapter() 4894 if (!test_bit(AF_FW_RECOVERY, &ha->flags)) qla4xxx_recover_adapter() 4938 if (!test_bit(AF_ONLINE, &ha->flags) && qla4xxx_recover_adapter() 4939 !test_bit(DPC_RESET_HA_INTR, &ha->dpc_flags)) { qla4xxx_recover_adapter() 4965 if (!test_bit(DPC_RETRY_RESET_HA, &ha->dpc_flags)) { qla4xxx_recover_adapter() 5006 if (test_bit(AF_ONLINE, &ha->flags)) qla4xxx_recover_adapter() 5036 if (!(test_bit(DF_RELOGIN, &ddb_entry->flags) || qla4xxx_relogin_devices() 5037 test_bit(DF_DISABLE_RELOGIN, qla4xxx_relogin_devices() 5063 if (test_bit(AF_ONLINE, &ha->flags)) { qla4xxx_unblock_flash_ddb() 5141 if (test_bit(DF_DISABLE_RELOGIN, &ddb_entry->flags)) qla4xxx_dpc_relogin() 5283 if (!test_bit(AF_INIT_DONE, &ha->flags)) qla4xxx_do_dpc() 5286 if (test_bit(AF_EEH_BUSY, &ha->flags)) { qla4xxx_do_dpc() 5296 if (test_bit(DPC_HA_UNRECOVERABLE, &ha->dpc_flags)) { qla4xxx_do_dpc() 5312 if (test_bit(DPC_POST_IDC_ACK, &ha->dpc_flags)) { qla4xxx_do_dpc() 5331 test_bit(DPC_RESTORE_ACB, &ha->dpc_flags)) { qla4xxx_do_dpc() 5347 if (!test_bit(DPC_RESET_ACTIVE, &ha->dpc_flags) && qla4xxx_do_dpc() 5348 (test_bit(DPC_RESET_HA, &ha->dpc_flags) || qla4xxx_do_dpc() 5349 test_bit(DPC_RESET_HA_INTR, &ha->dpc_flags) || qla4xxx_do_dpc() 5350 test_bit(DPC_RESET_HA_FW_CONTEXT, &ha->dpc_flags))) { qla4xxx_do_dpc() 5361 if (test_bit(DPC_RESET_HA_FW_CONTEXT, &ha->dpc_flags) || qla4xxx_do_dpc() 5362 test_bit(DPC_RESET_HA, &ha->dpc_flags)) qla4xxx_do_dpc() 5365 if (test_bit(DPC_RESET_HA_INTR, &ha->dpc_flags)) { qla4xxx_do_dpc() 5405 if (!test_bit(AF_LOOPBACK, &ha->flags) && qla4xxx_do_dpc() 5407 if (!test_bit(AF_LINK_UP, &ha->flags)) { qla4xxx_do_dpc() 7462 if (test_bit(AF_ST_DISCOVERY_IN_PROGRESS, &ha->flags)) { qla4xxx_ddb_login_st() 7608 if (test_bit(DF_BOOT_TGT, &ddb_entry->flags)) { qla4xxx_sysfs_ddb_logout_sid() 8468 if (!test_bit(AF_LINK_UP, &ha->flags)) { qla4xxx_build_ddb_list() 8551 if (test_bit(DF_BOOT_TGT, &ddb_entry->flags)) { qla4xxx_wait_login_resp_boot_tgt() 8739 while ((!test_bit(AF_ONLINE, &ha->flags)) && qla4xxx_probe_adapter() 8768 if (!test_bit(AF_ONLINE, &ha->flags)) { qla4xxx_probe_adapter() 9117 (test_bit(AF_EEH_BUSY, &ha->flags))) { qla4xxx_eh_wait_on_command() 9430 if (!test_bit(DPC_RESET_HA, &ha->dpc_flags)) { qla4xxx_eh_host_reset() 9510 if (test_bit(DPC_RESET_HA, &ha->dpc_flags)) qla4xxx_host_reset() 9518 if (!test_bit(DPC_RESET_HA, &ha->dpc_flags)) { qla4xxx_host_reset() 9535 test_bit(DPC_RESET_HA, &ha->dpc_flags)) { qla4xxx_host_reset() 9625 if (test_bit(AF_ONLINE, &ha->flags)) { qla4_8xxx_error_recovery()
|
H A D | ql4_def.h | 922 return (test_bit(AF_ONLINE, &ha->flags) != 0) && adapter_up() 923 (test_bit(AF_LINK_UP, &ha->flags) != 0) && adapter_up() 924 (!test_bit(AF_LOOPBACK, &ha->flags)); adapter_up() 1051 return test_bit(DPC_RESET_ACTIVE, &ha->dpc_flags) || ql4xxx_reset_active() 1052 test_bit(DPC_RESET_HA, &ha->dpc_flags) || ql4xxx_reset_active() 1053 test_bit(DPC_RETRY_RESET_HA, &ha->dpc_flags) || ql4xxx_reset_active() 1054 test_bit(DPC_RESET_HA_INTR, &ha->dpc_flags) || ql4xxx_reset_active() 1055 test_bit(DPC_RESET_HA_FW_CONTEXT, &ha->dpc_flags) || ql4xxx_reset_active() 1056 test_bit(DPC_HA_UNRECOVERABLE, &ha->dpc_flags); ql4xxx_reset_active()
|
H A D | ql4_attr.c | 23 if (!test_bit(AF_82XX_DUMP_READING, &ha->flags)) qla4_8xxx_sysfs_read_fw_dump() 68 if (test_bit(AF_82XX_FW_DUMPED, &ha->flags) && qla4_8xxx_sysfs_write_fw_dump() 69 !test_bit(AF_82XX_DUMP_READING, &ha->flags)) { qla4_8xxx_sysfs_write_fw_dump()
|
/linux-4.1.27/net/rxrpc/ |
H A D | ar-ack.c | 473 if (test_bit(RXRPC_CALL_RELEASED, &call->flags)) rxrpc_drain_rx_oos_queue() 845 !test_bit(RXRPC_CALL_HAS_USERID, &call->flags)) { rxrpc_post_message() 850 if (!test_bit(RXRPC_CALL_TERMINAL_MSG, &call->flags)) { rxrpc_post_message() 928 if (test_bit(RXRPC_CALL_RELEASE, &call->events)) { rxrpc_process_call() 933 if (test_bit(RXRPC_CALL_RCVD_ERROR, &call->events)) { rxrpc_process_call() 950 if (test_bit(RXRPC_CALL_CONN_ABORT, &call->events)) { rxrpc_process_call() 965 if (test_bit(RXRPC_CALL_REJECT_BUSY, &call->events)) { rxrpc_process_call() 971 if (test_bit(RXRPC_CALL_ABORT, &call->events)) { rxrpc_process_call() 985 if (test_bit(RXRPC_CALL_ACK_FINAL, &call->events)) { rxrpc_process_call() 1017 if (test_bit(RXRPC_CALL_RCVD_ABORT, &call->events)) rxrpc_process_call() 1037 if (test_bit(RXRPC_CALL_LIFE_TIMER, &call->events)) { rxrpc_process_call() 1078 if (test_bit(RXRPC_CALL_ACK, &call->events)) { rxrpc_process_call() 1160 if (!test_bit(RXRPC_CALL_RELEASED, &call->flags) && rxrpc_process_call() 1161 !test_bit(RXRPC_CALL_RELEASE, &call->events)) { rxrpc_process_call() 1175 if (!test_bit(RXRPC_CALL_POST_ACCEPT, &call->events)) rxrpc_process_call() 1180 if (test_bit(RXRPC_CALL_POST_ACCEPT, &call->events)) { rxrpc_process_call() 1331 if (!test_bit(RXRPC_CALL_RELEASED, &call->flags) && rxrpc_process_call()
|
H A D | ar-recvmsg.c | 27 if (test_bit(RXRPC_CALL_HAS_USERID, &call->flags)) { rxrpc_remove_user_ID() 35 if (!test_bit(RXRPC_CALL_RELEASED, &call->flags) && rxrpc_remove_user_ID() 122 if (test_bit(RXRPC_CALL_RELEASED, &call->flags)) { rxrpc_recvmsg() 169 ASSERT(test_bit(RXRPC_CALL_HAS_USERID, &call->flags)); rxrpc_recvmsg() 279 ASSERT(test_bit(RXRPC_CALL_HAS_USERID, &call->flags)); rxrpc_recvmsg()
|
/linux-4.1.27/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_virtchnl_pf.c | 53 if (!test_bit(I40E_VF_STAT_INIT, &vf->vf_states) && i40e_vc_vf_broadcast() 54 !test_bit(I40E_VF_STAT_ACTIVE, &vf->vf_states)) i40e_vc_vf_broadcast() 140 if (!test_bit(I40E_VF_STAT_INIT, &vf->vf_states) && i40e_vc_notify_vf_reset() 141 !test_bit(I40E_VF_STAT_ACTIVE, &vf->vf_states)) i40e_vc_notify_vf_reset() 863 if (test_bit(I40E_VF_STAT_INIT, &pf->vf[i].vf_states)) i40e_free_vfs() 882 if (test_bit(I40E_VF_STAT_INIT, &pf->vf[i].vf_states)) i40e_free_vfs() 1149 if (!test_bit(I40E_VF_STAT_INIT, &vf->vf_states)) { i40e_vc_get_vf_resources_msg() 1204 if (test_bit(I40E_VF_STAT_ACTIVE, &vf->vf_states)) i40e_vc_reset_vf_msg() 1229 if (!test_bit(I40E_VF_STAT_ACTIVE, &vf->vf_states) || i40e_vc_config_promiscuous_mode_msg() 1230 !test_bit(I40E_VIRTCHNL_VF_CAP_PRIVILEGE, &vf->vf_caps) || i40e_vc_config_promiscuous_mode_msg() 1267 if (!test_bit(I40E_VF_STAT_ACTIVE, &vf->vf_states)) { i40e_vc_config_queues_msg() 1324 if (!test_bit(I40E_VF_STAT_ACTIVE, &vf->vf_states)) { i40e_vc_config_irq_map_msg() 1384 if (!test_bit(I40E_VF_STAT_ACTIVE, &vf->vf_states)) { i40e_vc_enable_queues_msg() 1423 if (!test_bit(I40E_VF_STAT_ACTIVE, &vf->vf_states)) { i40e_vc_disable_queues_msg() 1466 if (!test_bit(I40E_VF_STAT_ACTIVE, &vf->vf_states)) { i40e_vc_get_stats_msg() 1542 if (!test_bit(I40E_VF_STAT_ACTIVE, &vf->vf_states) || i40e_vc_add_mac_addr_msg() 1543 !test_bit(I40E_VIRTCHNL_VF_CAP_PRIVILEGE, &vf->vf_caps) || i40e_vc_add_mac_addr_msg() 1606 if (!test_bit(I40E_VF_STAT_ACTIVE, &vf->vf_states) || i40e_vc_del_mac_addr_msg() 1607 !test_bit(I40E_VIRTCHNL_VF_CAP_PRIVILEGE, &vf->vf_caps) || i40e_vc_del_mac_addr_msg() 1657 if (!test_bit(I40E_VF_STAT_ACTIVE, &vf->vf_states) || i40e_vc_add_vlan_msg() 1658 !test_bit(I40E_VIRTCHNL_VF_CAP_PRIVILEGE, &vf->vf_caps) || i40e_vc_add_vlan_msg() 1711 if (!test_bit(I40E_VF_STAT_ACTIVE, &vf->vf_states) || i40e_vc_remove_vlan_msg() 1712 !test_bit(I40E_VIRTCHNL_VF_CAP_PRIVILEGE, &vf->vf_caps) || i40e_vc_remove_vlan_msg() 1760 if (test_bit(I40E_VF_STAT_DISABLED, &vf->vf_states)) i40e_vc_validate_vf_msg() 1949 if (!test_bit(__I40E_VFLR_EVENT_PENDING, &pf->state)) i40e_vc_process_vflr_event() 1969 if (!test_bit(__I40E_DOWN, &pf->state)) i40e_vc_process_vflr_event() 2004 if (!test_bit(I40E_VF_STAT_INIT, &vf->vf_states)) { i40e_ndo_set_vf_mac() 2078 if (!test_bit(I40E_VF_STAT_INIT, &vf->vf_states)) { i40e_ndo_set_vf_port_vlan() 2191 if (!test_bit(I40E_VF_STAT_INIT, &vf->vf_states)) { i40e_ndo_set_vf_bw() 2265 if (!test_bit(I40E_VF_STAT_INIT, &vf->vf_states)) { i40e_ndo_get_vf_config()
|
H A D | i40e_txrx.h | 197 test_bit(__I40E_RX_PS_ENABLED, &(ring)->state) 203 test_bit(__I40E_TX_DETECT_HANG, &(ring)->state) 209 test_bit(__I40E_RX_16BYTE_DESC_ENABLED, &(ring)->state)
|
/linux-4.1.27/drivers/net/usb/ |
H A D | r8152.c | 687 if (test_bit(RTL8152_UNPLUG, &tp->flags)) generic_ocp_read() 731 if (test_bit(RTL8152_UNPLUG, &tp->flags)) generic_ocp_write() 959 if (test_bit(RTL8152_UNPLUG, &tp->flags)) read_mii_word() 975 if (test_bit(RTL8152_UNPLUG, &tp->flags)) write_mii_word() 1061 if (test_bit(RTL8152_UNPLUG, &tp->flags)) read_bulk_callback() 1064 if (!test_bit(WORK_ENABLE, &tp->flags)) read_bulk_callback() 1141 if (!test_bit(WORK_ENABLE, &tp->flags)) write_bulk_callback() 1144 if (test_bit(RTL8152_UNPLUG, &tp->flags)) write_bulk_callback() 1162 if (!test_bit(WORK_ENABLE, &tp->flags)) intr_callback() 1165 if (test_bit(RTL8152_UNPLUG, &tp->flags)) intr_callback() 1812 if (test_bit(RTL8152_UNPLUG, &tp->flags)) bottom_half() 1815 if (!test_bit(WORK_ENABLE, &tp->flags)) bottom_half() 1851 if (test_bit(RTL8152_UNPLUG, &tp->flags) || r8152_submit_rx() 1852 !test_bit(WORK_ENABLE, &tp->flags) || !netif_carrier_ok(tp->netdev)) r8152_submit_rx() 1993 if (test_bit(SELECTIVE_SUSPEND, &tp->flags)) { rtl8152_start_xmit() 2139 if (test_bit(RTL8152_UNPLUG, &tp->flags)) rtl8152_enable() 2165 if (test_bit(RTL8152_UNPLUG, &tp->flags)) rtl8153_enable() 2181 if (test_bit(RTL8152_UNPLUG, &tp->flags)) { rtl_disable() 2850 if (test_bit(PHY_RESET, &tp->flags)) rtl8152_set_speed() 2859 if (test_bit(PHY_RESET, &tp->flags)) { rtl8152_set_speed() 2877 if (test_bit(RTL8152_UNPLUG, &tp->flags)) rtl8152_up() 2887 if (test_bit(RTL8152_UNPLUG, &tp->flags)) { rtl8152_down() 2900 if (test_bit(RTL8152_UNPLUG, &tp->flags)) rtl8153_up() 2910 if (test_bit(RTL8152_UNPLUG, &tp->flags)) { rtl8153_down() 2954 if (test_bit(RTL8152_UNPLUG, &tp->flags) || !netif_running(tp->netdev)) rtl_work_func_t() 2960 if (!test_bit(WORK_ENABLE, &tp->flags)) rtl_work_func_t() 2968 if (test_bit(RTL8152_LINK_CHG, &tp->flags)) rtl_work_func_t() 2971 if (test_bit(RTL8152_SET_RX_MODE, &tp->flags)) rtl_work_func_t() 2975 if (test_bit(SCHEDULE_NAPI, &tp->flags) && rtl_work_func_t() 2981 if (test_bit(PHY_RESET, &tp->flags)) rtl_work_func_t() 3049 if (res < 0 || test_bit(RTL8152_UNPLUG, &tp->flags)) { rtl8152_close() 3177 if (test_bit(RTL8152_UNPLUG, &tp->flags)) r8152b_init() 3217 if (test_bit(RTL8152_UNPLUG, &tp->flags)) r8153_init() 3325 if (netif_running(netdev) && test_bit(WORK_ENABLE, &tp->flags)) { rtl8152_suspend() 3329 if (test_bit(SELECTIVE_SUSPEND, &tp->flags)) { rtl8152_suspend() 3350 if (!test_bit(SELECTIVE_SUSPEND, &tp->flags)) { rtl8152_resume() 3356 if (test_bit(SELECTIVE_SUSPEND, &tp->flags)) { rtl8152_resume() 3372 } else if (test_bit(SELECTIVE_SUSPEND, &tp->flags)) { rtl8152_resume() 3782 if (test_bit(RTL8152_UNPLUG, &tp->flags)) rtl8152_ioctl() 3904 if (test_bit(RTL8152_UNPLUG, &tp->flags)) rtl8152_unload() 3913 if (test_bit(RTL8152_UNPLUG, &tp->flags)) rtl8153_unload()
|
/linux-4.1.27/drivers/md/bcache/ |
H A D | writeback.h | 48 test_bit(BCACHE_DEV_DETACHING, &dc->disk.flags) || should_writeback()
|
/linux-4.1.27/drivers/net/caif/ |
H A D | caif_spi_slave.c | 78 test_bit(SPI_XFER, &cfspi->state) || cfspi_xfer() 79 test_bit(SPI_TERMINATE, &cfspi->state)); cfspi_xfer() 81 if (test_bit(SPI_TERMINATE, &cfspi->state)) cfspi_xfer() 240 && !test_bit(SPI_SS_ON, &cfspi->state)) cfspi_xfer()
|
H A D | caif_hsi.c | 77 if (!test_bit(CFHSI_SHUTDOWN, &cfhsi->bits)) cfhsi_inactivity_tout() 157 if (!test_bit(CFHSI_SHUTDOWN, &cfhsi->bits)) cfhsi_abort_tx() 198 !test_bit(CFHSI_FLUSH_FIFO, &cfhsi->bits), ret); cfhsi_flush_fifo() 338 if (test_bit(CFHSI_SHUTDOWN, &cfhsi->bits)) cfhsi_start_tx() 371 if (test_bit(CFHSI_SHUTDOWN, &cfhsi->bits)) cfhsi_tx_done() 407 if (test_bit(CFHSI_SHUTDOWN, &cfhsi->bits)) cfhsi_tx_done_cb() 629 if (test_bit(CFHSI_SHUTDOWN, &cfhsi->bits)) cfhsi_rx_done() 693 if (test_bit(CFHSI_AWAKE, &cfhsi->bits)) { cfhsi_rx_done() 762 if (test_bit(CFHSI_SHUTDOWN, &cfhsi->bits)) cfhsi_rx_done_cb() 780 if (test_bit(CFHSI_SHUTDOWN, &cfhsi->bits)) cfhsi_wake_up() 783 if (unlikely(test_bit(CFHSI_AWAKE, &cfhsi->bits))) { cfhsi_wake_up() 908 if (test_bit(CFHSI_SHUTDOWN, &cfhsi->bits)) cfhsi_wake_down() 983 if (test_bit(CFHSI_SHUTDOWN, &cfhsi->bits)) cfhsi_wake_up_cb() 1053 if (WARN_ON(test_bit(CFHSI_SHUTDOWN, &cfhsi->bits))) { cfhsi_xmit()
|
/linux-4.1.27/drivers/net/wireless/ath/ath5k/ |
H A D | led.c | 92 if (test_bit(ATH_STAT_LEDSOFT, ah->status)) { ath5k_led_enable() 100 if (!test_bit(ATH_STAT_LEDSOFT, ah->status)) ath5k_led_on() 107 if (!test_bit(ATH_STAT_LEDSOFT, ah->status)) ath5k_led_off() 186 if (!test_bit(ATH_STAT_LEDSOFT, ah->status)) ath5k_init_leds()
|
/linux-4.1.27/drivers/spi/ |
H A D | spi-dw-mid.c | 144 if (test_bit(RX_BUSY, &dws->dma_chan_busy)) dw_spi_dma_tx_done() 190 if (test_bit(TX_BUSY, &dws->dma_chan_busy)) dw_spi_dma_rx_done() 276 if (test_bit(TX_BUSY, &dws->dma_chan_busy)) { mid_spi_dma_stop() 280 if (test_bit(RX_BUSY, &dws->dma_chan_busy)) { mid_spi_dma_stop()
|
/linux-4.1.27/drivers/staging/iio/accel/ |
H A D | lis3l02dq_ring.c | 73 if (test_bit(i, indio_dev->active_scan_mask)) { lis3l02dq_read_all() 330 if (test_bit(0, indio_dev->active_scan_mask)) { lis3l02dq_buffer_postenable() 336 if (test_bit(1, indio_dev->active_scan_mask)) { lis3l02dq_buffer_postenable() 342 if (test_bit(2, indio_dev->active_scan_mask)) { lis3l02dq_buffer_postenable()
|
/linux-4.1.27/drivers/input/joystick/iforce/ |
H A D | iforce-packets.c | 145 if (test_bit(FF_CORE_IS_USED, iforce->core_effects[i].flags) && mark_core_as_ready() 189 if (LO(cmd) >= 8 && test_bit(ABS_RUDDER ,dev->absbit)) iforce_process_packet() 206 if (test_bit(ABS_HAT1X, dev->absbit)) { iforce_process_packet() 211 if (test_bit(ABS_HAT1Y, dev->absbit)) { iforce_process_packet()
|
H A D | iforce-main.c | 138 if (test_bit(FF_CORE_UPDATE, core_effect->flags)) iforce_upload_effect() 183 if (test_bit(FF_MOD1_IS_USED, core_effect->flags)) iforce_erase_effect() 186 if (!err && test_bit(FF_MOD2_IS_USED, core_effect->flags)) iforce_erase_effect() 209 if (test_bit(EV_FF, dev->evbit)) { iforce_open() 222 if (test_bit(EV_FF, dev->evbit)) { iforce_close() 225 if (test_bit(FF_CORE_IS_USED, iforce->core_effects[i].flags)) { iforce_close() 237 !test_bit(IFORCE_XMIT_RUNNING, iforce->xmit_flags)); iforce_close()
|
/linux-4.1.27/include/net/netfilter/ |
H A D | nf_conntrack.h | 261 return test_bit(IPS_TEMPLATE_BIT, &ct->status); nf_ct_is_template() 267 return test_bit(IPS_CONFIRMED_BIT, &ct->status); nf_ct_is_confirmed() 272 return test_bit(IPS_DYING_BIT, &ct->status); nf_ct_is_dying() 277 return test_bit(IPS_UNTRACKED_BIT, &ct->status); nf_ct_is_untracked()
|
/linux-4.1.27/net/batman-adv/ |
H A D | bitarray.h | 32 return test_bit(diff, seq_bits) != 0; batadv_test_bit()
|
/linux-4.1.27/net/bluetooth/ |
H A D | hci_conn.c | 553 if (test_bit(HCI_CONN_PARAM_REMOVAL_PEND, &conn->flags)) hci_conn_del() 573 if (!test_bit(HCI_UP, &d->flags) || hci_get_route() 924 if (test_bit(HCI_CONN_MODE_CHANGE_PEND, &acl->flags)) { hci_connect_sco() 947 !test_bit(HCI_CONN_AES_CCM, &conn->flags) || hci_conn_check_link_mode() 953 !test_bit(HCI_CONN_ENCRYPT, &conn->flags)) hci_conn_check_link_mode() 969 else if (test_bit(HCI_CONN_AUTH, &conn->flags)) hci_conn_auth() 987 if (test_bit(HCI_CONN_ENCRYPT, &conn->flags)) hci_conn_auth() 1029 if (!test_bit(HCI_CONN_AUTH, &conn->flags)) hci_conn_security() 1062 if (test_bit(HCI_CONN_ENCRYPT_PEND, &conn->flags)) hci_conn_security() 1072 if (test_bit(HCI_CONN_ENCRYPT, &conn->flags)) hci_conn_security() 1128 if (!test_bit(HCI_CONN_POWER_SAVE, &conn->flags) && !force_active) hci_conn_enter_active_mode() 1182 if (test_bit(HCI_CONN_ENCRYPT, &conn->flags)) get_link_mode() 1185 if (test_bit(HCI_CONN_AUTH, &conn->flags)) get_link_mode() 1188 if (test_bit(HCI_CONN_SECURE, &conn->flags)) get_link_mode() 1191 if (test_bit(HCI_CONN_FIPS, &conn->flags)) get_link_mode() 1305 if (test_bit(HCI_CONN_DROP, &conn->flags)) { hci_chan_create()
|
H A D | l2cap_core.c | 563 test_bit(FLAG_HOLD_HCI_CONN, &chan->flags)) __l2cap_chan_add() 601 test_bit(FLAG_HOLD_HCI_CONN, &chan->flags)) l2cap_chan_del() 615 if (test_bit(CONF_NOT_COMPLETE, &chan->conf_state)) l2cap_chan_del() 672 if (test_bit(FLAG_DEFER_SETUP, &chan->flags)) l2cap_chan_le_connect_reject() 695 if (test_bit(FLAG_DEFER_SETUP, &chan->flags)) l2cap_chan_connect_reject() 894 (!test_bit(FLAG_FLUSHABLE, &chan->flags) && l2cap_do_send() 900 bt_cb(skb)->force_active = test_bit(FLAG_FORCE_ACTIVE, &chan->flags); l2cap_do_send() 955 if (test_bit(FLAG_EXT_CTRL, &chan->flags)) { __unpack_control() 1008 if (test_bit(FLAG_EXT_CTRL, &chan->flags)) { __pack_control() 1019 if (test_bit(FLAG_EXT_CTRL, &chan->flags)) __ertm_hdr_size() 1044 if (test_bit(FLAG_EXT_CTRL, &chan->flags)) l2cap_create_sframe_pdu() 1089 if (test_bit(FLAG_EXT_CTRL, &chan->flags)) l2cap_send_sframe() 1109 if (test_bit(CONN_LOCAL_BUSY, &chan->conn_state)) l2cap_send_rr_or_rnr() 1123 return !test_bit(CONF_CONNECT_PEND, &chan->conf_state); __l2cap_no_conn_pending() 1141 test_bit(HCI_UP, &hdev->flags)) { __amp_capable() 1423 && test_bit(CONF_STATE2_DEVICE, l2cap_conn_start() 1439 if (test_bit(FLAG_DEFER_SETUP, &chan->flags)) { l2cap_conn_start() 1457 if (test_bit(CONF_REQ_SENT, &chan->conf_state) || l2cap_conn_start() 1559 if (test_bit(FLAG_FORCE_RELIABLE, &chan->flags)) l2cap_conn_unreliable() 1882 if (test_bit(CONN_REMOTE_BUSY, &chan->conn_state)) l2cap_ertm_send() 1950 if (test_bit(CONN_REMOTE_BUSY, &chan->conn_state)) l2cap_ertm_resend() 1998 if (test_bit(FLAG_EXT_CTRL, &chan->flags)) { l2cap_ertm_resend() 2043 if (test_bit(CONN_REMOTE_BUSY, &chan->conn_state)) l2cap_retransmit_all() 2078 if (test_bit(CONN_LOCAL_BUSY, &chan->conn_state) && l2cap_send_ack() 2085 if (!test_bit(CONN_REMOTE_BUSY, &chan->conn_state)) { l2cap_send_ack() 2256 if (test_bit(FLAG_EXT_CTRL, &chan->flags)) l2cap_create_iframe_pdu() 2694 if (test_bit(CONN_RNR_SENT, &chan->conn_state)) { l2cap_tx_state_xmit() 2765 if (test_bit(CONN_RNR_SENT, &chan->conn_state)) { l2cap_tx_state_wait_f() 3192 if (test_bit(CONF_STATE2_DEVICE, &chan->conf_state)) l2cap_build_conf_req() 3247 if (test_bit(FLAG_EFS_ENABLE, &chan->flags)) l2cap_build_conf_req() 3250 if (test_bit(FLAG_EXT_CTRL, &chan->flags)) l2cap_build_conf_req() 3256 test_bit(CONF_RECV_NO_FCS, &chan->conf_state)) { l2cap_build_conf_req() 3279 if (test_bit(FLAG_EFS_ENABLE, &chan->flags)) l2cap_build_conf_req() 3284 test_bit(CONF_RECV_NO_FCS, &chan->conf_state)) { l2cap_build_conf_req() 3375 if (!test_bit(CONF_STATE2_DEVICE, &chan->conf_state)) { l2cap_parse_conf_req() 3445 if (!test_bit(CONF_EWS_RECV, &chan->conf_state)) l2cap_parse_conf_req() 3465 if (test_bit(FLAG_EFS_ENABLE, &chan->flags)) { l2cap_parse_conf_req() 3547 if (test_bit(CONF_STATE2_DEVICE, &chan->conf_state) && l2cap_parse_conf_rsp() 3596 if (!test_bit(FLAG_EXT_CTRL, &chan->flags)) l2cap_parse_conf_rsp() 3600 if (test_bit(FLAG_EFS_ENABLE, &chan->flags)) { l2cap_parse_conf_rsp() 3722 if (test_bit(FLAG_EXT_CTRL, &chan->flags)) l2cap_conf_rfc_get() 3826 if (test_bit(FLAG_DEFER_SETUP, &chan->flags)) { l2cap_connect() 3881 if (chan && !test_bit(CONF_REQ_SENT, &chan->conf_state) && l2cap_connect() 3992 else if (!test_bit(CONF_RECV_NO_FCS, &chan->conf_state)) set_default_fcs() 4089 if (!test_bit(CONF_OUTPUT_DONE, &chan->conf_state)) l2cap_config_req() 4092 if (test_bit(CONF_INPUT_DONE, &chan->conf_state)) { l2cap_config_req() 4116 if (test_bit(CONF_REM_CONF_PEND, &chan->conf_state) && l2cap_config_req() 4117 test_bit(CONF_LOC_CONF_PEND, &chan->conf_state)) { l2cap_config_req() 4166 if (test_bit(CONF_LOC_CONF_PEND, &chan->conf_state)) { l2cap_config_rsp() 4227 if (test_bit(CONF_OUTPUT_DONE, &chan->conf_state)) { l2cap_config_rsp() 4478 if (hdev->dev_type != HCI_AMP || !test_bit(HCI_UP, &hdev->flags)) { l2cap_create_channel_req() 4644 if (test_bit(CONF_INPUT_DONE, &chan->conf_state)) { l2cap_logical_finish_create() 4673 if (test_bit(CONN_LOCAL_BUSY, &chan->conn_state)) { l2cap_logical_finish_move() 4919 !test_bit(HCI_UP, &hdev->flags)) { l2cap_move_channel_req() 4947 if (test_bit(CONN_LOCAL_BUSY, &chan->conn_state)) { l2cap_move_channel_req() 4994 } else if (test_bit(CONN_LOCAL_BUSY, l2cap_move_continue() 5477 if (test_bit(FLAG_DEFER_SETUP, &chan->flags)) { l2cap_le_connect_req() 5732 if (test_bit(FLAG_EXT_CTRL, &chan->flags)) l2cap_check_fcs() 5760 if (test_bit(CONN_LOCAL_BUSY, &chan->conn_state)) { l2cap_send_i_or_rr_or_rnr() 5772 if (!test_bit(CONN_LOCAL_BUSY, &chan->conn_state) && l2cap_send_i_or_rr_or_rnr() 5773 test_bit(CONN_SEND_FBIT, &chan->conn_state)) { l2cap_send_i_or_rr_or_rnr() 5909 while (!test_bit(CONN_LOCAL_BUSY, &chan->conn_state)) { l2cap_rx_queued_iframes() 6131 if (test_bit(CONN_LOCAL_BUSY, &chan->conn_state)) { l2cap_rx_state_recv() 6156 if (!test_bit(CONN_LOCAL_BUSY, &chan->conn_state)) l2cap_rx_state_recv() 6166 if (test_bit(CONN_LOCAL_BUSY, &chan->conn_state)) { l2cap_rx_state_recv() 7205 if (test_bit(FLAG_ROLE_SWITCH, &c->flags)) l2cap_connect_ind() 7210 if (test_bit(FLAG_ROLE_SWITCH, &c->flags)) l2cap_connect_ind() 7404 if (test_bit(FLAG_DEFER_SETUP, &chan->flags)) { l2cap_security_cfm() 7427 if (!test_bit(CONF_REQ_SENT, &chan->conf_state) && l2cap_security_cfm()
|
H A D | smp.c | 743 complete = test_bit(SMP_FLAG_COMPLETE, &smp->flags); smp_chan_destroy() 835 if (test_bit(SMP_FLAG_SC, &smp->flags)) get_auth_method() 868 if (smp->method == JUST_CFM && test_bit(SMP_FLAG_INITIATOR, tk_request() 886 if (test_bit(SMP_FLAG_SC, &smp->flags)) tk_request() 1069 persistent = !test_bit(HCI_CONN_FLUSH_KEY, smp_notify_keys() 1108 if (test_bit(SMP_FLAG_DEBUG_KEY, &smp->flags)) smp_notify_keys() 1137 if (test_bit(SMP_FLAG_DEBUG_KEY, &smp->flags)) sc_add_ltk() 1251 if (test_bit(SMP_FLAG_SC, &smp->flags)) { smp_distribute_keys() 1528 if (test_bit(SMP_FLAG_WAIT_USER, &smp->flags)) { sc_passkey_round() 1627 if (test_bit(SMP_FLAG_SC, &smp->flags)) { smp_user_confirm_reply() 1656 if (test_bit(SMP_FLAG_CFM_PENDING, &smp->flags)) { smp_user_confirm_reply() 1756 if (!test_bit(HCI_CONN_AES_CCM, &conn->hcon->flags) && smp_cmd_pairing_req() 1822 if (test_bit(SMP_FLAG_SC, &smp->flags)) { smp_cmd_pairing_req() 1844 if (test_bit(SMP_FLAG_LOCAL_OOB, &smp->flags)) { sc_send_public_key() 1967 if (test_bit(SMP_FLAG_SC, &smp->flags)) { smp_cmd_pairing_rsp() 1983 if (test_bit(SMP_FLAG_TK_VALID, &smp->flags)) smp_cmd_pairing_rsp() 2061 if (test_bit(SMP_FLAG_SC, &smp->flags)) { smp_cmd_pairing_confirm() 2065 if (test_bit(SMP_FLAG_REMOTE_PK, &smp->flags)) smp_cmd_pairing_confirm() 2082 if (test_bit(SMP_FLAG_TK_VALID, &smp->flags)) smp_cmd_pairing_confirm() 2107 if (!test_bit(SMP_FLAG_SC, &smp->flags)) smp_cmd_pairing_random() 2215 test_bit(HCI_CONN_STK_ENCRYPT, &hcon->flags) && smp_sufficient_security() 2536 if (test_bit(SMP_FLAG_REMOTE_OOB, &smp->flags) || sc_select_method() 2537 test_bit(SMP_FLAG_LOCAL_OOB, &smp->flags)) sc_select_method() 2568 if (method == JUST_CFM && test_bit(SMP_FLAG_INITIATOR, &smp->flags)) sc_select_method() 2591 if (test_bit(SMP_FLAG_REMOTE_OOB, &smp->flags)) { smp_cmd_public_key() 2733 if (test_bit(SMP_FLAG_WAIT_USER, &smp->flags)) { smp_cmd_dhkey_check() 2899 if (!test_bit(HCI_CONN_NEW_LINK_KEY, &hcon->flags)) bredr_pairing() 2903 if (!test_bit(HCI_CONN_ENCRYPT, &hcon->flags)) bredr_pairing() 2915 if (!test_bit(HCI_CONN_AES_CCM, &hcon->flags) && bredr_pairing() 2972 if (!test_bit(HCI_CONN_ENCRYPT, &hcon->flags)) smp_resume_cb() 2990 if (hcon->type == ACL_LINK && test_bit(HCI_CONN_ENCRYPT, &hcon->flags)) smp_ready_cb()
|
/linux-4.1.27/drivers/dma-buf/ |
H A D | fence.c | 124 if (test_bit(FENCE_FLAG_ENABLE_SIGNAL_BIT, &fence->flags)) { fence_signal() 206 !test_bit(FENCE_FLAG_SIGNALED_BIT, &fence->flags)) { fence_enable_sw_signaling() 252 if (test_bit(FENCE_FLAG_SIGNALED_BIT, &fence->flags)) { fence_add_callback() 261 if (test_bit(FENCE_FLAG_SIGNALED_BIT, &fence->flags)) fence_add_callback() 348 if (test_bit(FENCE_FLAG_SIGNALED_BIT, &fence->flags)) fence_default_wait() 360 if (test_bit(FENCE_FLAG_SIGNALED_BIT, &fence->flags)) fence_default_wait() 376 while (!test_bit(FENCE_FLAG_SIGNALED_BIT, &fence->flags) && ret > 0) { fence_default_wait()
|
/linux-4.1.27/fs/nfs/ |
H A D | callback_proc.c | 182 if (test_bit(NFS_LAYOUT_BULK_RECALL, &lo->plh_flags) || initiate_file_draining() 403 status = (test_bit(ref->rc_slotid, tbl->used_slots) && referring_call_exists() 436 if (test_bit(NFS4_SLOT_TBL_DRAINING, &tbl->slot_tbl_state)) { nfs4_callback_sequence() 442 if (test_bit(NFS4CLNT_SESSION_RESET, &clp->cl_state)) nfs4_callback_sequence() 513 if (test_bit(RCA4_TYPE_MASK_RDATA_DLG, (const unsigned long *) nfs4_callback_recallany() 516 if (test_bit(RCA4_TYPE_MASK_WDATA_DLG, (const unsigned long *) nfs4_callback_recallany() 519 if (test_bit(RCA4_TYPE_MASK_FILE_LAYOUT, (const unsigned long *) nfs4_callback_recallany()
|
H A D | nfs4state.c | 81 if (test_bit(NFS4CLNT_LEASE_CONFIRM, &clp->cl_state)) nfs4_init_clientid() 278 if (!test_bit(NFS_CS_CHECK_LEASE_TIME, &clp->cl_res_state)) { nfs41_setup_state_renewal() 310 if (test_bit(NFS4CLNT_LEASE_CONFIRM, &clp->cl_state)) nfs41_init_clientid() 768 call_close |= test_bit(NFS_O_RDONLY_STATE, &state->flags); __nfs4_close() 769 call_close |= test_bit(NFS_O_RDWR_STATE, &state->flags); __nfs4_close() 773 call_close |= test_bit(NFS_O_WRONLY_STATE, &state->flags); __nfs4_close() 774 call_close |= test_bit(NFS_O_RDWR_STATE, &state->flags); __nfs4_close() 901 if (test_bit(NFS_LOCK_INITIALIZED, &lsp->ls_flags)) { nfs4_put_lock_state() 953 if (test_bit(LK_STATE_IN_USE, &state->flags) == 0) nfs4_copy_lock_stateid() 959 if (lsp && test_bit(NFS_LOCK_LOST, &lsp->ls_flags)) nfs4_copy_lock_stateid() 961 else if (lsp != NULL && test_bit(NFS_LOCK_INITIALIZED, &lsp->ls_flags) != 0) { nfs4_copy_lock_stateid() 979 if (test_bit(NFS_OPEN_STATE, &state->flags)) nfs4_copy_open_stateid() 1181 if (!test_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state)) nfs4_schedule_lease_recovery() 1207 if (test_bit(NFS_MIG_FAILED, &server->mig_status)) nfs4_schedule_migration_recovery() 1268 if (!test_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state) && nfs4_client_recover_expired_lease() 1269 !test_bit(NFS4CLNT_CHECK_LEASE,&clp->cl_state)) nfs4_client_recover_expired_lease() 1304 if (test_bit(NFS_STATE_RECLAIM_NOGRACE, &state->flags)) { nfs4_state_mark_reclaim_reboot() 1350 if (!test_bit(NFS_DELEGATED_STATE, &state->flags)) nfs_inode_find_state_and_recover() 1474 if (!test_bit(NFS_DELEGATED_STATE, &state->flags)) { nfs4_reclaim_open_state() 1477 if (!test_bit(NFS_LOCK_INITIALIZED, &lock->ls_flags)) nfs4_reclaim_open_state() 1758 if (test_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state)) nfs4_check_lease() 1859 if (!test_bit(NFS4CLNT_RECLAIM_NOGRACE, &clp->cl_state)) nfs4_reclaim_lease() 2335 if (test_bit(NFS4CLNT_PURGE_STATE, &clp->cl_state)) { nfs4_state_manager() 2343 if (test_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state)) { nfs4_state_manager() 2356 if (test_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state)) nfs4_state_manager() 2395 if (test_bit(NFS4CLNT_RECLAIM_REBOOT, &clp->cl_state)) { nfs4_state_manager()
|
H A D | delegation.c | 54 !test_bit(NFS_DELEGATION_RETURNING, &delegation->flags)) { nfs4_do_check_delegation() 131 if (!test_bit(NFS_DELEGATED_STATE, &state->flags)) nfs_delegation_claim_opens() 202 if (!test_bit(NFS_DELEGATION_REVOKED, &delegation->flags)) nfs_do_return_delegation() 412 if (test_bit(NFS_DELEGATION_REVOKED, &delegation->flags)) nfs_end_delegation_return() 439 if (test_bit(NFS_DELEGATION_RETURNING, &delegation->flags)) nfs_delegation_need_return() 581 if (test_bit(NFS4CLNT_DELEGRETURN, &clp->cl_state)) nfs_delegation_run_state_manager() 824 if (test_bit(NFS_DELEGATION_RETURNING, nfs_delegation_reap_unclaimed() 827 if (test_bit(NFS_DELEGATION_NEED_RECLAIM, nfs_delegation_reap_unclaimed()
|
/linux-4.1.27/net/sunrpc/ |
H A D | svcauth_unix.c | 101 if (test_bit(CACHE_VALID, &item->flags) && ip_map_put() 102 !test_bit(CACHE_NEGATIVE, &item->flags)) ip_map_put() 261 if (test_bit(CACHE_VALID, &h->flags) && ip_map_show() 262 !test_bit(CACHE_NEGATIVE, &h->flags)) ip_map_show() 346 if (test_bit(XPT_CACHE_AUTH, &xprt->xpt_flags)) { ip_map_cached_get() 372 if (test_bit(XPT_CACHE_AUTH, &xprt->xpt_flags)) { ip_map_cached_put() 426 if (test_bit(CACHE_VALID, &item->flags) && unix_gid_put() 427 !test_bit(CACHE_NEGATIVE, &item->flags)) unix_gid_put() 559 if (test_bit(CACHE_VALID, &h->flags) && unix_gid_show() 560 !test_bit(CACHE_NEGATIVE, &h->flags)) unix_gid_show()
|
H A D | auth.c | 467 test_bit(RPCAUTH_CRED_HASHED, &cred->cr_flags) != 0) rpcauth_prune_expired() 561 if (test_bit(RPCAUTH_CRED_HASHED, &entry->cr_flags) && rpcauth_lookup_credcache() 562 !test_bit(RPCAUTH_CRED_NEW, &entry->cr_flags)) rpcauth_lookup_credcache() 567 if (test_bit(RPCAUTH_CRED_HASHED, &entry->cr_flags) == 0) { rpcauth_lookup_credcache() 605 if (test_bit(RPCAUTH_CRED_NEW, &cred->cr_flags) && rpcauth_lookup_credcache() 716 if (test_bit(RPCAUTH_CRED_HASHED, &cred->cr_flags) == 0) { put_rpccred() 728 if (test_bit(RPCAUTH_CRED_HASHED, &cred->cr_flags) != 0) { put_rpccred() 729 if (test_bit(RPCAUTH_CRED_UPTODATE, &cred->cr_flags) != 0) { put_rpccred() 859 test_bit(RPCAUTH_CRED_UPTODATE, &cred->cr_flags) != 0; rpcauth_uptodatecred()
|
/linux-4.1.27/drivers/nfc/nfcmrvl/ |
H A D | usb.c | 61 rv = test_bit(NFCMRVL_USB_SUSPENDING, &drv_data->flags); nfcmrvl_inc_tx() 77 if (!test_bit(NFCMRVL_NCI_RUNNING, &drv_data->flags)) nfcmrvl_bulk_complete() 86 if (!test_bit(NFCMRVL_USB_BULK_RUNNING, &drv_data->flags)) nfcmrvl_bulk_complete() 409 if (!test_bit(NFCMRVL_NCI_RUNNING, &drv_data->flags)) nfcmrvl_resume() 412 if (test_bit(NFCMRVL_USB_BULK_RUNNING, &drv_data->flags)) { nfcmrvl_resume()
|
/linux-4.1.27/security/keys/ |
H A D | gc.c | 63 if (gc_at <= now || test_bit(KEY_GC_REAP_KEYTYPE, &key_gc_flags)) { key_schedule_gc() 138 if (test_bit(KEY_FLAG_INSTANTIATED, &key->flags) && key_gc_unused_keys() 139 !test_bit(KEY_FLAG_NEGATIVE, &key->flags) && key_gc_unused_keys() 146 if (test_bit(KEY_FLAG_IN_QUOTA, &key->flags)) { key_gc_unused_keys() 154 if (test_bit(KEY_FLAG_INSTANTIATED, &key->flags)) key_gc_unused_keys()
|
/linux-4.1.27/drivers/net/ethernet/broadcom/ |
H A D | cnic.c | 120 if (!dev || !test_bit(CNIC_F_CNIC_UP, &dev->flags)) { cnic_uio_open() 280 return test_bit(SK_F_INUSE, &csk->flags); cnic_in_use() 331 if (test_bit(SK_F_IPV6, &csk->flags)) { cnic_send_nlmsg() 392 test_bit(SK_F_CONNECT_START, &csk->flags)) { cnic_iscsi_nl_msg_recv() 397 if (test_bit(SK_F_IPV6, &csk->flags)) cnic_iscsi_nl_msg_recv() 406 } else if (!test_bit(SK_F_OFFLD_SCHED, &csk->flags) && cnic_iscsi_nl_msg_recv() 407 !test_bit(SK_F_OFFLD_COMPLETE, &csk->flags)) { cnic_iscsi_nl_msg_recv() 427 if (!test_bit(SK_F_CONNECT_START, &csk->flags)) { cnic_offld_prep() 588 if (test_bit(CNIC_F_CNIC_UP, &dev->flags)) cnic_register_device() 631 while (test_bit(ULP_F_CALL_PENDING, &cp->ulp_flags[ulp_type]) && cnic_unregister_device() 636 if (test_bit(ULP_F_CALL_PENDING, &cp->ulp_flags[ulp_type])) cnic_unregister_device() 674 if (!test_bit(id, id_tbl->table)) { cnic_alloc_id() 1096 if (test_bit(CNIC_F_BNX2_CLASS, &dev->flags)) { cnic_init_uio() 1107 } else if (test_bit(CNIC_F_BNX2X_CLASS, &dev->flags)) { cnic_init_uio() 1338 if (!test_bit(CNIC_F_CNIC_UP, &dev->flags)) cnic_submit_bnx2_kwqes() 1343 !test_bit(CNIC_LCL_FL_KWQ_INIT, &cp->cnic_local_flags)) { cnic_submit_bnx2_kwqes() 1897 if (test_bit(CTX_FL_OFFLD_START, &ctx->ctx_flags)) { cnic_bnx2x_iscsi_ofld1() 1973 if (unlikely(test_bit(CTX_FL_CID_ERROR, &ctx->ctx_flags))) cnic_bnx2x_destroy_ramrod() 1991 if (!test_bit(CTX_FL_OFFLD_START, &ctx->ctx_flags)) cnic_bnx2x_iscsi_destroy() 2363 if (test_bit(CTX_FL_OFFLD_START, &ctx->ctx_flags)) cnic_bnx2x_fcoe_ofld1() 2537 while (test_bit(CTX_FL_DELETE_WAIT, &ctx->ctx_flags)) cnic_bnx2x_delete_wait() 2541 if (!test_bit(CTX_FL_OFFLD_START, &ctx->ctx_flags)) cnic_bnx2x_delete_wait() 2546 if (test_bit(CTX_FL_OFFLD_START, &ctx->ctx_flags)) cnic_bnx2x_delete_wait() 2652 if (!test_bit(CNIC_F_CNIC_UP, &dev->flags)) cnic_submit_bnx2x_iscsi_kwqes() 2726 if (!test_bit(CNIC_F_CNIC_UP, &dev->flags)) cnic_submit_bnx2x_fcoe_kwqes() 2789 if (!test_bit(CNIC_F_CNIC_UP, &dev->flags)) cnic_submit_bnx2x_kwqes() 2913 if (!test_bit(CNIC_F_BNX2X_CLASS, &cp->dev->flags)) cnic_l2_completion() 2943 if (!test_bit(CNIC_LCL_FL_RINGS_INITED, &cp->cnic_local_flags)) cnic_chk_pkt_rings() 2949 if (test_bit(CNIC_LCL_FL_L2_WAIT, &cp->cnic_local_flags)) cnic_chk_pkt_rings() 2995 if (unlikely(!test_bit(CNIC_F_CNIC_UP, &dev->flags))) { cnic_service_bnx2() 3019 if (likely(test_bit(CNIC_F_CNIC_UP, &dev->flags))) { cnic_doirq() 3136 if (unlikely(!test_bit(CNIC_F_CNIC_UP, &dev->flags))) cnic_service_bnx2x_bh() 3286 if (!test_bit(CNIC_F_CNIC_UP, &dev->flags)) cnic_ctl() 3487 if (test_bit(SK_F_IPV6, &csk->flags)) { cnic_cm_conn_req() 3585 if (test_bit(CTX_FL_OFFLD_START, &ctx->ctx_flags)) cnic_cm_create() 3630 if (test_bit(SK_F_PG_OFFLD_COMPLETE, &csk->flags)) { cnic_close_conn() 3873 while (test_bit(SK_F_PG_OFFLD_COMPLETE, &csk->flags)) cnic_cm_abort() 3892 while (test_bit(SK_F_PG_OFFLD_COMPLETE, &csk->flags)) cnic_cm_close() 3926 if (test_bit(SK_F_PG_OFFLD_COMPLETE, &csk->flags)) cnic_cm_set_pg() 4054 if (test_bit(CNIC_F_BNX2X_CLASS, &dev->flags) && cnic_cm_process_kcqe() 4055 !test_bit(SK_F_OFFLD_COMPLETE, &csk->flags) && cnic_cm_process_kcqe() 4176 if (test_bit(SK_F_HW_ERR, &csk->flags)) cnic_close_bnx2x_conn() 4178 else if (test_bit(SK_F_PG_OFFLD_COMPLETE, &csk->flags)) cnic_close_bnx2x_conn() 4278 if (!test_bit(CTX_FL_OFFLD_START, &ctx->ctx_flags) || cnic_delete_task() 4279 !test_bit(CTX_FL_DELETE_WAIT, &ctx->ctx_flags)) cnic_delete_task() 5159 if (test_bit(CNIC_LCL_FL_RINGS_INITED, &cp->cnic_local_flags)) cnic_init_rings() 5162 if (test_bit(CNIC_F_BNX2_CLASS, &dev->flags)) { cnic_init_rings() 5166 } else if (test_bit(CNIC_F_BNX2X_CLASS, &dev->flags)) { cnic_init_rings() 5208 while (test_bit(CNIC_LCL_FL_L2_WAIT, &cp->cnic_local_flags) && cnic_init_rings() 5212 if (test_bit(CNIC_LCL_FL_L2_WAIT, &cp->cnic_local_flags)) cnic_init_rings() 5229 if (!test_bit(CNIC_LCL_FL_RINGS_INITED, &cp->cnic_local_flags)) cnic_shutdown_rings() 5232 if (test_bit(CNIC_F_BNX2_CLASS, &dev->flags)) { cnic_shutdown_rings() 5234 } else if (test_bit(CNIC_F_BNX2X_CLASS, &dev->flags)) { cnic_shutdown_rings() 5249 while (test_bit(CNIC_LCL_FL_L2_WAIT, &cp->cnic_local_flags) && cnic_shutdown_rings() 5253 if (test_bit(CNIC_LCL_FL_L2_WAIT, &cp->cnic_local_flags)) cnic_shutdown_rings() 5311 if (test_bit(CNIC_F_CNIC_UP, &dev->flags)) cnic_start_hw() 5397 if (test_bit(CNIC_F_CNIC_UP, &dev->flags)) { cnic_stop_hw()
|
/linux-4.1.27/sound/atmel/ |
H A D | ac97c.c | 393 if (!test_bit(DMA_TX_READY, &chip->flags)) atmel_ac97c_playback_prepare() 484 if (!test_bit(DMA_RX_READY, &chip->flags)) atmel_ac97c_capture_prepare() 768 capture = test_bit(DMA_RX_CHAN_PRESENT, &chip->flags); atmel_ac97c_pcm_new() 769 playback = test_bit(DMA_TX_CHAN_PRESENT, &chip->flags); atmel_ac97c_pcm_new() 1109 if (!test_bit(DMA_RX_CHAN_PRESENT, &chip->flags) && atmel_ac97c_probe() 1110 !test_bit(DMA_TX_CHAN_PRESENT, &chip->flags)) { atmel_ac97c_probe() 1143 if (test_bit(DMA_RX_CHAN_PRESENT, &chip->flags)) atmel_ac97c_probe() 1145 if (test_bit(DMA_TX_CHAN_PRESENT, &chip->flags)) atmel_ac97c_probe() 1174 if (test_bit(DMA_RX_READY, &chip->flags)) atmel_ac97c_suspend() 1176 if (test_bit(DMA_TX_READY, &chip->flags)) atmel_ac97c_suspend() 1191 if (test_bit(DMA_RX_READY, &chip->flags)) atmel_ac97c_resume() 1193 if (test_bit(DMA_TX_READY, &chip->flags)) atmel_ac97c_resume() 1223 if (test_bit(DMA_RX_CHAN_PRESENT, &chip->flags)) atmel_ac97c_remove() 1225 if (test_bit(DMA_TX_CHAN_PRESENT, &chip->flags)) atmel_ac97c_remove()
|
/linux-4.1.27/drivers/scsi/bnx2i/ |
H A D | bnx2i_init.c | 93 if (test_bit(CNIC_F_BNX2_CLASS, &dev->flags)) { bnx2i_identify_device() 105 } else if (test_bit(CNIC_F_BNX2X_CLASS, &dev->flags)) { bnx2i_identify_device() 183 while (!test_bit(ADAPTER_STATE_UP, &hba->adapter_state) && bnx2i_start() 184 !test_bit(ADAPTER_STATE_INIT_FAILED, &hba->adapter_state) && i--) bnx2i_start() 364 if (test_bit(BNX2I_CNIC_REGISTERED, &hba->reg_with_cnic)) { bnx2i_ulp_exit() 580 if (test_bit(BNX2I_CNIC_REGISTERED, &hba->reg_with_cnic)) { bnx2i_mod_exit()
|
/linux-4.1.27/net/tipc/ |
H A D | server.c | 99 if (test_bit(CF_SERVER, &con->flags)) { tipc_conn_kref_release() 141 if (con && test_bit(CF_CONNECTED, &con->flags)) { sock_data_ready() 155 if (con && test_bit(CF_CONNECTED, &con->flags)) { sock_write_space() 464 if (test_bit(CF_CONNECTED, &con->flags)) { tipc_conn_sendmsg() 539 while (test_bit(CF_CONNECTED, &con->flags)) { tipc_recv_work() 556 if (test_bit(CF_CONNECTED, &con->flags)) tipc_send_work()
|
/linux-4.1.27/drivers/s390/char/ |
H A D | raw3270.c | 121 if (test_bit(RAW3270_FLAGS_14BITADDR, &rp->flags)) { raw3270_buffer_address() 265 !test_bit(RAW3270_FLAGS_BUSY, &rp->flags)) { __raw3270_start() 284 !test_bit(RAW3270_FLAGS_FROZEN, &rp->flags); raw3270_view_active() 297 test_bit(RAW3270_FLAGS_FROZEN, &rp->flags)) raw3270_start() 315 test_bit(RAW3270_FLAGS_FROZEN, &rp->flags)) raw3270_start_locked() 363 } else if (test_bit(RAW3270_FLAGS_BUSY, &rp->flags)) { raw3270_irq() 679 test_bit(RAW3270_FLAGS_FROZEN, &rp->flags)) raw3270_reset() 893 else if (test_bit(RAW3270_FLAGS_FROZEN, &rp->flags)) raw3270_activate_view() 943 !test_bit(RAW3270_FLAGS_FROZEN, &rp->flags)) { raw3270_deactivate_view() 1038 !test_bit(RAW3270_FLAGS_FROZEN, &rp->flags)) { raw3270_del_view() 1247 if (test_bit(RAW3270_FLAGS_CONSOLE, &rp->flags)) raw3270_set_offline() 1265 if (!test_bit(RAW3270_FLAGS_CONSOLE, &rp->flags)) { raw3270_pm_stop() 1302 if (rp && test_bit(RAW3270_FLAGS_FROZEN, &rp->flags)) raw3270_pm_unfreeze()
|
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/ |
H A D | p2p.c | 584 if (test_bit(BRCMF_P2P_STATUS_ENABLED, &p2p->status)) { brcmf_p2p_enable_discovery() 942 if (test_bit(BRCMF_P2P_STATUS_DISCOVER_LISTEN, &p2p->status)) { brcmf_p2p_discover_listen() 1132 if (test_bit(BRCMF_P2P_STATUS_FINDING_COMMON_CHANNEL, brcmf_p2p_afx_handler() 1175 (!test_bit(BRCMF_P2P_STATUS_FINDING_COMMON_CHANNEL, brcmf_p2p_af_searching_channel() 1189 (!test_bit(BRCMF_P2P_STATUS_FINDING_COMMON_CHANNEL, brcmf_p2p_af_searching_channel() 1197 if (test_bit(BRCMF_VIF_STATUS_CONNECTED, &pri_vif->sme_state) || brcmf_p2p_af_searching_channel() 1198 test_bit(BRCMF_VIF_STATUS_CONNECTING, &pri_vif->sme_state)) brcmf_p2p_af_searching_channel() 1230 if (!test_bit(BRCMF_P2P_STATUS_FINDING_COMMON_CHANNEL, &p2p->status)) brcmf_p2p_scan_finding_common_channel() 1276 if (test_bit(BRCMF_P2P_STATUS_SENDING_ACT_FRAME, &p2p->status) && brcmf_p2p_stop_wait_next_action_frame() 1277 (test_bit(BRCMF_P2P_STATUS_ACTION_TX_COMPLETED, &p2p->status) || brcmf_p2p_stop_wait_next_action_frame() 1278 test_bit(BRCMF_P2P_STATUS_ACTION_TX_NOACK, &p2p->status))) { brcmf_p2p_stop_wait_next_action_frame() 1285 } else if (test_bit(BRCMF_P2P_STATUS_WAITING_NEXT_AF_LISTEN, brcmf_p2p_stop_wait_next_action_frame() 1309 if (!test_bit(BRCMF_P2P_STATUS_WAITING_NEXT_ACT_FRAME, &p2p->status) || brcmf_p2p_gon_req_collision() 1385 if (test_bit(BRCMF_P2P_STATUS_FINDING_COMMON_CHANNEL, brcmf_p2p_notify_action_frame_rx() 1408 if (test_bit(BRCMF_P2P_STATUS_WAITING_NEXT_ACT_FRAME, &p2p->status) && brcmf_p2p_notify_action_frame_rx() 1464 if (!test_bit(BRCMF_P2P_STATUS_SENDING_ACT_FRAME, &p2p->status)) brcmf_p2p_notify_action_tx_complete() 1525 if (test_bit(BRCMF_P2P_STATUS_ACTION_TX_COMPLETED, &p2p->status)) { brcmf_p2p_tx_action_frame() 1728 if (test_bit(BRCMF_VIF_STATUS_CONNECTING, brcmf_p2p_send_action_frame() 1733 if (test_bit(BRCMF_SCAN_STATUS_BUSY, &cfg->scan_status)) brcmf_p2p_send_action_frame() 1794 test_bit(BRCMF_P2P_STATUS_WAITING_NEXT_ACT_FRAME, &p2p->status) && brcmf_p2p_send_action_frame() 1869 if (test_bit(BRCMF_P2P_STATUS_FINDING_COMMON_CHANNEL, &p2p->status) && brcmf_p2p_notify_rx_mgmt_p2p_probereq() 1883 if (test_bit(BRCMF_P2P_STATUS_GO_NEG_PHASE, &p2p->status)) { brcmf_p2p_notify_rx_mgmt_p2p_probereq() 2357 if (test_bit(BRCMF_VIF_STATUS_DISCONNECTING, &vif->sme_state)) brcmf_p2p_del_vif()
|
/linux-4.1.27/drivers/net/wireless/iwlwifi/dvm/ |
H A D | tt.c | 173 if (test_bit(STATUS_EXIT_PENDING, &priv->status)) iwl_tt_check_exit_ct_kill() 222 if (test_bit(STATUS_EXIT_PENDING, &priv->status)) iwl_tt_ready_for_ct_kill() 501 if (test_bit(STATUS_EXIT_PENDING, &priv->status)) iwl_bg_ct_enter() 530 if (test_bit(STATUS_EXIT_PENDING, &priv->status)) iwl_bg_ct_exit() 560 if (test_bit(STATUS_EXIT_PENDING, &priv->status)) iwl_tt_enter_ct_kill() 569 if (test_bit(STATUS_EXIT_PENDING, &priv->status)) iwl_tt_exit_ct_kill() 581 if (test_bit(STATUS_EXIT_PENDING, &priv->status)) iwl_bg_tt_work() 592 if (test_bit(STATUS_EXIT_PENDING, &priv->status)) iwl_tt_handler()
|
/linux-4.1.27/drivers/infiniband/hw/usnic/ |
H A D | usnic_transport.c | 82 } else if (test_bit(port_num, roce_bitmap)) { usnic_transport_rsrv_port() 114 if (!test_bit(port_num, roce_bitmap)) { usnic_transport_unrsrv_port()
|
/linux-4.1.27/block/ |
H A D | blk-iopoll.c | 108 if (test_bit(IOPOLL_F_SCHED, &iop->state)) blk_iopoll_softirq() 163 BUG_ON(!test_bit(IOPOLL_F_SCHED, &iop->state)); blk_iopoll_enable()
|
H A D | blk-timeout.c | 24 if (!test_bit(QUEUE_FLAG_FAIL_IO, &q->queue_flags)) blk_should_fake_timeout() 44 int set = test_bit(QUEUE_FLAG_FAIL_IO, &disk->queue->queue_flags); part_timeout_show()
|
H A D | blk-lib.c | 137 if (!test_bit(BIO_UPTODATE, &bb.flags)) blkdev_issue_discard() 211 if (!test_bit(BIO_UPTODATE, &bb.flags)) blkdev_issue_write_same() 273 if (!test_bit(BIO_UPTODATE, &bb.flags)) __blkdev_issue_zeroout()
|
H A D | bounce.c | 131 if (test_bit(BIO_EOPNOTSUPP, &bio->bi_flags)) bounce_end_io() 165 if (test_bit(BIO_UPTODATE, &bio->bi_flags)) __bounce_end_io_read() 190 return test_bit(BIO_SNAP_STABLE, &bio->bi_flags); must_snapshot_stable_pages()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/core/ |
H A D | notify.c | 44 if (test_bit(NVKM_NOTIFY_WORK, ¬ify->flags)) nvkm_notify_put() 107 if (test_bit(NVKM_NOTIFY_WORK, ¬ify->flags)) { nvkm_notify_send()
|
/linux-4.1.27/drivers/platform/x86/ |
H A D | ideapad-laptop.c | 270 if (test_bit(CFG_BT_BIT, &priv->cfg)) debugfs_cfg_show() 272 if (test_bit(CFG_3G_BIT, &priv->cfg)) debugfs_cfg_show() 274 if (test_bit(CFG_WIFI_BIT, &priv->cfg)) debugfs_cfg_show() 276 if (test_bit(CFG_CAMERA_BIT, &priv->cfg)) debugfs_cfg_show() 432 supported = test_bit(CFG_CAMERA_BIT, &(priv->cfg)); ideapad_is_visible() 640 if (test_bit(bit, &value)) { ideapad_check_special_buttons() 794 if (test_bit(vpc_bit, &vpc1)) { ideapad_acpi_notify() 950 if (test_bit(ideapad_rfk_data[i].cfgbit, &priv->cfg)) ideapad_acpi_add()
|
/linux-4.1.27/arch/sh/include/asm/ |
H A D | bitops-op32.h | 133 * test_bit - Determine whether a bit is set 137 static inline int test_bit(int nr, const volatile unsigned long *addr) test_bit() function
|
/linux-4.1.27/net/core/ |
H A D | link_watch.c | 119 if (test_bit(LW_URGENT, &linkwatch_flags)) linkwatch_schedule_work() 137 if (test_bit(LW_URGENT, &linkwatch_flags)) linkwatch_schedule_work()
|
/linux-4.1.27/drivers/iio/common/st_sensors/ |
H A D | st_sensors_buffer.c | 41 if (test_bit(i, indio_dev->active_scan_mask)) { st_sensors_get_buffer_element()
|
/linux-4.1.27/drivers/s390/cio/ |
H A D | idset.c | 58 return test_bit(ssid * set->num_id + id, set->bitmap); idset_contains()
|
/linux-4.1.27/drivers/input/touchscreen/ |
H A D | of_touchscreen.c | 33 if (!test_bit(axis, dev->absbit)) { touchscreen_set_params()
|
/linux-4.1.27/arch/x86/kernel/cpu/mcheck/ |
H A D | mce_intel.c | 244 if (test_bit(i, owned)) cmci_discover() 248 if (test_bit(i, mce_banks_ce_disabled)) cmci_discover() 291 WARN_ON(!test_bit(i, this_cpu_ptr(mce_poll_banks))); cmci_discover() 325 if (!test_bit(bank, this_cpu_ptr(mce_banks_owned))) __cmci_disable_bank()
|
/linux-4.1.27/fs/xfs/ |
H A D | xfs_extfree_item.h | 32 * Define EFI flag bits. Manipulated by set/clear/test_bit operators.
|
/linux-4.1.27/arch/arm64/kvm/ |
H A D | reset.c | 89 if (test_bit(KVM_ARM_VCPU_EL1_32BIT, vcpu->arch.features)) { kvm_reset_vcpu()
|
/linux-4.1.27/arch/m32r/include/asm/ |
H A D | smp.h | 23 #define physid_isset(physid, map) test_bit(physid, (map).mask)
|
/linux-4.1.27/mm/ |
H A D | debug-pagealloc.c | 53 return test_bit(PAGE_EXT_DEBUG_POISON, &page_ext->flags); page_poison()
|
/linux-4.1.27/sound/oss/ |
H A D | msnd_pinnacle.c | 289 if (!test_bit(F_DISABLE_WRITE_NDELAY, &dev.flags) && dsp_ioctl() 528 else if ((dev.recsrc & SOUND_MASK_DIGITAL1) && test_bit(F_HAVEDIGITAL, &dev.flags)) { set_recsrc() 621 if (test_bit(F_HAVEDIGITAL, &dev.flags)) mixer_ioctl() 669 if (!(dev.mode & FMODE_WRITE) || !test_bit(F_WRITING, &dev.flags)) dsp_write_flush() 674 !test_bit(F_WRITEFLUSH, &dev.flags), dsp_write_flush() 697 if (test_bit(F_WRITING, &dev.flags)) { dsp_halt() 771 test_bit(F_AUDIO_WRITE_INUSE, &dev.flags)) || dev_open() 773 test_bit(F_AUDIO_READ_INUSE, &dev.flags))) { dev_open() 782 if (!test_bit(F_DISABLE_WRITE_NDELAY, &dev.flags)) dev_open() 930 if (!test_bit(F_READING, &dev.flags) && dev.mode & FMODE_READ) { dsp_read() 945 test_bit(F_READBLOCK, &dev.flags), dsp_read() 990 if (!test_bit(F_WRITING, &dev.flags) && (dev.mode & FMODE_WRITE)) { dsp_write() 1005 test_bit(F_WRITEBLOCK, &dev.flags), dsp_write() 1040 if (dev.last_playbank == LOBYTE(wMessage) || !test_bit(F_WRITING, &dev.flags)) eval_dsp_msg() 1045 if (!test_bit(F_WRITEBLOCK, &dev.flags)) { eval_dsp_msg() 1391 if (test_bit(F_RESETTING, &dev.flags) || ++dev.nresets > 10) dsp_full_reset()
|
/linux-4.1.27/drivers/net/ethernet/intel/i40evf/ |
H A D | i40e_txrx.h | 196 test_bit(__I40E_RX_PS_ENABLED, &(ring)->state) 202 test_bit(__I40E_TX_DETECT_HANG, &(ring)->state) 208 test_bit(__I40E_RX_16BYTE_DESC_ENABLED, &(ring)->state)
|
/linux-4.1.27/drivers/staging/vt6656/ |
H A D | usbpipe.c | 54 if (test_bit(DEVICE_FLAGS_DISCONNECTED, &priv->flags)) vnt_control_out() 82 if (test_bit(DEVICE_FLAGS_DISCONNECTED, &priv->flags)) vnt_control_in() 284 if (test_bit(DEVICE_FLAGS_DISCONNECTED, &priv->flags)) { vnt_tx_context()
|
/linux-4.1.27/drivers/input/serio/ |
H A D | serport.c | 133 if (!test_bit(SERPORT_ACTIVE, &serport->flags)) serport_ldisc_receive() 192 wait_event_interruptible(serport->wait, test_bit(SERPORT_DEAD, &serport->flags)); serport_ldisc_read() 258 if (test_bit(SERPORT_ACTIVE, &serport->flags)) serport_ldisc_write_wakeup()
|
/linux-4.1.27/arch/xtensa/mm/ |
H A D | cache.c | 144 if (!test_bit(PG_arch_1, &page->flags)) flush_dcache_page() 230 if (!PageReserved(page) && test_bit(PG_arch_1, &page->flags)) { update_mmu_cache() 243 if (!PageReserved(page) && !test_bit(PG_arch_1, &page->flags) update_mmu_cache()
|
/linux-4.1.27/drivers/acpi/ |
H A D | battery.c | 282 else if (test_bit(ACPI_BATTERY_ALARM_PRESENT, &battery->flags) && acpi_battery_get_property() 448 char *name = test_bit(ACPI_BATTERY_XINFO_PRESENT, &battery->flags) ? acpi_battery_get_info() 469 else if (test_bit(ACPI_BATTERY_XINFO_PRESENT, &battery->flags)) acpi_battery_get_info() 477 if (test_bit(ACPI_BATTERY_QUIRK_PERCENTAGE_CAPACITY, &battery->flags)) acpi_battery_get_info() 479 if (test_bit(ACPI_BATTERY_QUIRK_THINKPAD_MAH, &battery->flags) && acpi_battery_get_info() 538 if (test_bit(ACPI_BATTERY_QUIRK_PERCENTAGE_CAPACITY, &battery->flags) acpi_battery_get_state() 542 if (test_bit(ACPI_BATTERY_QUIRK_THINKPAD_MAH, &battery->flags) && acpi_battery_get_state() 555 !test_bit(ACPI_BATTERY_ALARM_PRESENT, &battery->flags)) acpi_battery_set_alarm() 686 if (test_bit(ACPI_BATTERY_QUIRK_PERCENTAGE_CAPACITY, &battery->flags)) acpi_battery_quirks() 698 if (test_bit(ACPI_BATTERY_QUIRK_THINKPAD_MAH, &battery->flags)) acpi_battery_quirks() 706 if (test_bit(ACPI_BATTERY_QUIRK_THINKPAD_MAH, acpi_battery_quirks() 762 (test_bit(ACPI_BATTERY_ALARM_PRESENT, &battery->flags) && acpi_battery_update()
|
/linux-4.1.27/fs/ubifs/ |
H A D | misc.h | 38 return !!test_bit(DIRTY_ZNODE, &znode->flags); ubifs_zn_dirty() 49 return !!test_bit(OBSOLETE_ZNODE, &znode->flags); ubifs_zn_obsolete() 61 return !!test_bit(COW_ZNODE, &znode->flags); ubifs_zn_cow()
|
/linux-4.1.27/include/linux/sunrpc/ |
H A D | sched.h | 139 #define RPC_IS_RUNNING(t) test_bit(RPC_TASK_RUNNING, &(t)->tk_runstate) 150 #define RPC_IS_QUEUED(t) test_bit(RPC_TASK_QUEUED, &(t)->tk_runstate) 159 #define RPC_IS_ACTIVATED(t) test_bit(RPC_TASK_ACTIVE, &(t)->tk_runstate)
|
/linux-4.1.27/arch/powerpc/mm/ |
H A D | pgtable.c | 80 if (!test_bit(PG_arch_1, &pg->flags)) { set_pte_filter() 114 if (test_bit(PG_arch_1, &pg->flags)) set_pte_filter() 156 if (test_bit(PG_arch_1, &pg->flags)) set_access_flags_filter()
|