Home
last modified time | relevance | path

Searched refs:test_bit (Results 1 – 25 of 248) sorted by relevance

12345678910

/freebsd/sys/contrib/dev/athk/
H A Dkey.c391 if (test_bit(i, common->keymap) || in ath_reserve_key_cache_slot_tkip()
392 test_bit(i + 64, common->keymap)) in ath_reserve_key_cache_slot_tkip()
395 (test_bit(i + 32, common->keymap) || in ath_reserve_key_cache_slot_tkip()
396 test_bit(i + 64 + 32, common->keymap))) in ath_reserve_key_cache_slot_tkip()
416 if (!test_bit(i, common->keymap) && in ath_reserve_key_cache_slot()
417 (test_bit(i + 32, common->keymap) || in ath_reserve_key_cache_slot()
418 test_bit(i + 64, common->keymap) || in ath_reserve_key_cache_slot()
419 test_bit(i + 64 + 32, common->keymap))) in ath_reserve_key_cache_slot()
421 if (!test_bit(i + 32, common->keymap) && in ath_reserve_key_cache_slot()
422 (test_bit(i, common->keymap) || in ath_reserve_key_cache_slot()
[all …]
/freebsd/sys/ofed/drivers/infiniband/ulp/ipoib/
H A Dipoib_multicast.c178 if (!test_bit(IPOIB_MCAST_FLAG_SENDONLY, &mcast->flags)) { in ipoib_mcast_join_finish()
287 if (!test_bit(IPOIB_FLAG_OPER_UP, &priv->flags)) { in ipoib_mcast_sendonly_join()
361 if (test_bit(IPOIB_MCAST_RUN, &priv->flags)) in ipoib_mcast_join_complete()
395 if (test_bit(IPOIB_MCAST_RUN, &priv->flags)) in ipoib_mcast_join_complete()
463 if (test_bit(IPOIB_MCAST_RUN, &priv->flags)) in ipoib_mcast_join()
480 if (!test_bit(IPOIB_MCAST_RUN, &priv->flags)) in ipoib_mcast_join_task()
507 if (!test_bit(IPOIB_FLAG_ADMIN_UP, &priv->flags)) in ipoib_mcast_join_task()
514 if (test_bit(IPOIB_MCAST_RUN, &priv->flags)) in ipoib_mcast_join_task()
531 !test_bit(IPOIB_MCAST_FLAG_ATTACHED, &priv->broadcast->flags)) { in ipoib_mcast_join_task()
533 !test_bit(IPOIB_MCAST_FLAG_BUSY, &priv->broadcast->flags)) in ipoib_mcast_join_task()
[all …]
H A Dipoib_ib.c265 if (test_bit(IPOIB_FLAG_CSUM, &priv->flags) && likely(wc->wc_flags & IB_WC_IP_CSUM_OK)) in ipoib_ib_handle_rx_wc()
359 test_bit(IPOIB_FLAG_ADMIN_UP, &priv->flags)) in ipoib_ib_handle_tx_wc()
587 if (!test_bit(IPOIB_STOP_REAPER, &priv->flags)) in ipoib_reap_ah()
669 if (!test_bit(IPOIB_PKEY_ASSIGNED, &priv->flags)) { in ipoib_ib_dev_up()
688 if (!test_bit(IPOIB_PKEY_ASSIGNED, &priv->flags)) { in ipoib_ib_dev_down()
898 if (!test_bit(IPOIB_FLAG_INITIALIZED, &priv->flags)) { in __ipoib_ib_dev_flush()
903 if (!test_bit(IPOIB_FLAG_ADMIN_UP, &priv->flags)) { in __ipoib_ib_dev_flush()
943 if (test_bit(IPOIB_FLAG_ADMIN_UP, &priv->flags)) { in __ipoib_ib_dev_flush()
1003 if (test_bit(IPOIB_PKEY_ASSIGNED, &priv->flags)) in ipoib_pkey_poll()
1007 if (!test_bit(IPOIB_PKEY_STOP, &priv->flags)) in ipoib_pkey_poll()
[all …]
H A Dipoib_ethtool.c50 return test_bit(IPOIB_FLAG_CSUM, &priv->flags) && in ipoib_get_rx_csum()
51 !test_bit(IPOIB_FLAG_ADMIN_CM, &priv->flags); in ipoib_get_rx_csum()
/freebsd/sys/contrib/dev/rtw88/
H A Dps.c29 if (!test_bit(RTW_FLAG_POWERON, rtwdev->flags)) in rtw_enter_ips()
53 if (test_bit(RTW_FLAG_POWERON, rtwdev->flags)) in rtw_leave_ips()
155 if (test_bit(RTW_FLAG_WOWLAN, rtwdev->flags)) in rtw_fw_leave_lps_check()
176 if (test_bit(RTW_FLAG_WOWLAN, rtwdev->flags)) in rtw_fw_leave_lps_check_prepare()
206 if (test_bit(RTW_FLAG_WOWLAN, rtwdev->flags)) in rtw_get_lps_deep_mode()
217 if (!test_bit(RTW_FLAG_LEISURE_PS, rtwdev->flags)) { in __rtw_enter_lps_deep()
250 if (test_bit(RTW_FLAG_LEISURE_PS, rtwdev->flags)) in __rtw_enter_lps()
269 if (!test_bit(RTW_FLAG_LEISURE_PS, rtwdev->flags)) in __rtw_leave_lps()
/freebsd/sys/contrib/dev/athk/ath12k/
H A Dmhi.c329 if (!(test_bit(ATH12K_FLAG_UNREGISTERING, &ab->dev_flags))) in ath12k_mhi_op_status_cb()
482 if (!test_bit(ATH12K_MHI_INIT, &ab_pci->mhi_state)) in ath12k_mhi_check_state_bit()
487 if (test_bit(ATH12K_MHI_INIT, &ab_pci->mhi_state) && in ath12k_mhi_check_state_bit()
488 !test_bit(ATH12K_MHI_POWER_ON, &ab_pci->mhi_state)) in ath12k_mhi_check_state_bit()
492 if (test_bit(ATH12K_MHI_POWER_ON, &ab_pci->mhi_state)) in ath12k_mhi_check_state_bit()
497 if (test_bit(ATH12K_MHI_POWER_ON, &ab_pci->mhi_state) && in ath12k_mhi_check_state_bit()
498 !test_bit(ATH12K_MHI_SUSPEND, &ab_pci->mhi_state)) in ath12k_mhi_check_state_bit()
502 if (test_bit(ATH12K_MHI_SUSPEND, &ab_pci->mhi_state)) in ath12k_mhi_check_state_bit()
506 if (test_bit(ATH12K_MHI_POWER_ON, &ab_pci->mhi_state) && in ath12k_mhi_check_state_bit()
507 !test_bit(ATH12K_MHI_TRIGGER_RDDM, &ab_pci->mhi_state)) in ath12k_mhi_check_state_bit()
/freebsd/sys/dev/qat/qat_common/
H A Dadf_freebsd_uio_cleanup.c66 if (test_bit(i, &orphan->tx_mask)) { in check_orphan_ring()
69 if (!test_bit(rx_ring, &orphan->rx_mask)) { in check_orphan_ring()
83 } else if (test_bit(i, &orphan->rx_mask)) { in check_orphan_ring()
86 if (!test_bit(tx_ring, &orphan->tx_mask)) { in check_orphan_ring()
158 if (test_bit(i, &tx_mask)) in get_orphan_bundle()
163 if (test_bit(i, &asym_mask)) in get_orphan_bundle()
203 if (!test_bit(i, &mask)) in cleanup_all_ring()
369 if (!test_bit(ADF_STATUS_RESTARTING, &accel_dev->status)) { in adf_uio_do_cleanup_orphan()
H A Dadf_init.c302 if (!test_bit(ADF_STATUS_CONFIGURED, &accel_dev->status) && in adf_dev_init_locked()
513 if (!test_bit(ADF_STATUS_RESTARTING, &accel_dev->status) && in adf_dev_start_locked()
553 if (!test_bit(ADF_STATUS_CONFIGURED, &accel_dev->status)) in adf_dev_stop_locked()
557 !test_bit(ADF_STATUS_STARTING, &accel_dev->status)) { in adf_dev_stop_locked()
579 if (!test_bit(accel_dev->accel_id, service->start_status)) in adf_dev_stop_locked()
589 if (test_bit(ADF_STATUS_AE_STARTED, &accel_dev->status)) { in adf_dev_stop_locked()
622 if (!test_bit(ADF_STATUS_CONFIGURED, &accel_dev->status)) in adf_dev_shutdown_locked()
625 if (test_bit(ADF_STATUS_SYSCTL_CTX_INITIALISED, &accel_dev->status)) { in adf_dev_shutdown_locked()
638 if (test_bit(ADF_STATUS_AE_UCODE_LOADED, &accel_dev->status)) { in adf_dev_shutdown_locked()
643 if (test_bit(ADF_STATUS_AE_INITIALISED, &accel_dev->status)) { in adf_dev_shutdown_locked()
[all …]
/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_netdev.c150 if (test_bit(LKPI_NAPI_FLAG_LOST_RACE_TRY_AGAIN, &napi->state)) in lkpi___napi_schedule_dd()
168 if (test_bit(LKPI_NAPI_FLAG_SHUTDOWN, &napi->state)) { in linuxkpi___napi_schedule()
232 if (!test_bit(LKPI_NAPI_FLAG_LOST_RACE_TRY_AGAIN, &old)) in linuxkpi_napi_complete_done()
240 if (test_bit(LKPI_NAPI_FLAG_LOST_RACE_TRY_AGAIN, &old)) { in linuxkpi_napi_complete_done()
261 while (test_bit(LKPI_NAPI_FLAG_IS_SCHEDULED, &napi->state)) in linuxkpi_napi_disable()
271 KASSERT(!test_bit(LKPI_NAPI_FLAG_IS_SCHEDULED, &napi->state), in linuxkpi_napi_enable()
284 while (test_bit(LKPI_NAPI_FLAG_IS_SCHEDULED, &napi->state)) in linuxkpi_napi_synchronize()
/freebsd/sys/contrib/dev/athk/ath10k/
H A Dthermal.c85 if (test_bit(ATH10K_FLAG_CRASH_FLUSH, &ar->dev_flags)) { in ath10k_thermal_show_temp()
133 if (!test_bit(WMI_SERVICE_THERM_THROT, ar->wmi.svc_map)) in ath10k_thermal_set_throttling()
161 if (!test_bit(WMI_SERVICE_THERM_THROT, ar->wmi.svc_map)) in ath10k_thermal_register()
215 if (!test_bit(WMI_SERVICE_THERM_THROT, ar->wmi.svc_map)) in ath10k_thermal_unregister()
H A Dcoredump.c1453 if (!test_bit(ATH10K_FW_CRASH_DUMP_RAM_DATA, &ath10k_coredump_mask)) in ath10k_coredump_get_mem_layout()
1506 if (test_bit(ATH10K_FW_CRASH_DUMP_REGISTERS, &ath10k_coredump_mask)) in ath10k_coredump_build()
1509 if (test_bit(ATH10K_FW_CRASH_DUMP_CE_DATA, &ath10k_coredump_mask)) in ath10k_coredump_build()
1513 if (test_bit(ATH10K_FW_CRASH_DUMP_RAM_DATA, &ath10k_coredump_mask)) in ath10k_coredump_build()
1559 if (test_bit(ATH10K_FW_CRASH_DUMP_REGISTERS, &ath10k_coredump_mask)) { in ath10k_coredump_build()
1568 if (test_bit(ATH10K_FW_CRASH_DUMP_CE_DATA, &ath10k_coredump_mask)) { in ath10k_coredump_build()
1583 if (test_bit(ATH10K_FW_CRASH_DUMP_RAM_DATA, &ath10k_coredump_mask)) { in ath10k_coredump_build()
1635 if (test_bit(ATH10K_FW_CRASH_DUMP_RAM_DATA, &ath10k_coredump_mask)) { in ath10k_coredump_register()
H A Dcore.c811 if (test_bit(i, ar->normal_mode_fw.fw_file.fw_features)) { in ath10k_core_get_fw_features_str()
1901 if (!(skip_otp || test_bit(ATH10K_FW_FEATURE_IGNORE_OTP_RESULT, in ath10k_download_and_run_otp()
2246 if (!test_bit(ATH10K_FW_FEATURE_NON_BMI, fw_file->fw_features) && in ath10k_core_fetch_firmware_api_n()
2622 if (test_bit(ATH10K_FLAG_NAPI_ENABLED, &ar->dev_flags)) in ath10k_core_napi_enable()
2634 if (!test_bit(ATH10K_FLAG_NAPI_ENABLED, &ar->dev_flags)) in ath10k_core_napi_sync_disable()
2730 if (test_bit(ATH10K_FW_FEATURE_WMI_10_2, fw_file->fw_features) && in ath10k_core_init_firmware_features()
2731 !test_bit(ATH10K_FW_FEATURE_WMI_10X, fw_file->fw_features)) { in ath10k_core_init_firmware_features()
2749 if (!test_bit(ATH10K_FW_FEATURE_RAW_MODE_SUPPORT, in ath10k_core_init_firmware_features()
2768 if (!test_bit(ATH10K_FW_FEATURE_RAW_MODE_SUPPORT, in ath10k_core_init_firmware_features()
2776 if (test_bit(ATH10K_FLAG_RAW_MODE, &ar->dev_flags)) { in ath10k_core_init_firmware_features()
[all …]
H A Dwow.c373 if (!test_bit(i, &wow_mask)) in ath10k_vif_wow_set_wakeups()
506 if (WARN_ON(!test_bit(ATH10K_FW_FEATURE_WOWLAN_SUPPORT, in ath10k_wow_op_suspend()
558 if (test_bit(ATH10K_FW_FEATURE_WOWLAN_SUPPORT, in ath10k_wow_op_set_wakeup()
572 if (WARN_ON(!test_bit(ATH10K_FW_FEATURE_WOWLAN_SUPPORT, in ath10k_wow_op_resume()
617 if (!test_bit(ATH10K_FW_FEATURE_WOWLAN_SUPPORT, in ath10k_wow_init()
621 if (WARN_ON(!test_bit(WMI_SERVICE_WOW, ar->wmi.svc_map))) in ath10k_wow_init()
631 if (test_bit(WMI_SERVICE_NLO, ar->wmi.svc_map)) { in ath10k_wow_init()
/freebsd/sys/contrib/dev/athk/ath11k/
H A Dpcic.c187 wakeup_required = test_bit(ATH11K_FLAG_DEVICE_INIT_DONE, &ab->dev_flags) && in ath11k_pcic_write32()
224 wakeup_required = test_bit(ATH11K_FLAG_DEVICE_INIT_DONE, &ab->dev_flags) && in ath11k_pcic_read32()
248 wakeup_required = test_bit(ATH11K_FLAG_DEVICE_INIT_DONE, &ab->dev_flags) && in ath11k_pcic_read()
366 if (!test_bit(ATH11K_FLAG_MULTI_MSI_VECTORS, &ab->dev_flags)) in ath11k_pcic_ce_irq_enable()
380 if (!test_bit(ATH11K_FLAG_MULTI_MSI_VECTORS, &ab->dev_flags)) in ath11k_pcic_ce_irq_disable()
430 if (!test_bit(ATH11K_FLAG_CE_IRQ_ENABLED, &ab->dev_flags)) in ath11k_pcic_ce_interrupt_handler()
451 if (!test_bit(ATH11K_FLAG_MULTI_MSI_VECTORS, &ab->dev_flags)) in ath11k_pcic_ext_grp_disable()
485 if (!test_bit(ATH11K_FLAG_MULTI_MSI_VECTORS, &ab->dev_flags)) in ath11k_pcic_ext_grp_enable()
559 if (!test_bit(ATH11K_FLAG_EXT_IRQ_ENABLED, &ab->dev_flags)) in ath11k_pcic_ext_interrupt_handler()
595 if (!test_bit(ATH11K_FLAG_MULTI_MSI_VECTORS, &ab->dev_flags)) in ath11k_pcic_ext_irq_config()
[all …]
H A Dmhi.c226 if (test_bit(ATH11K_FLAG_MULTI_MSI_VECTORS, &ab->dev_flags)) in ath11k_mhi_get_msi()
294 if (!(test_bit(ATH11K_FLAG_UNREGISTERING, &ab->dev_flags))) in ath11k_mhi_op_status_cb()
380 if (!test_bit(ATH11K_FLAG_MULTI_MSI_VECTORS, &ab->dev_flags)) in ath11k_mhi_register()
383 if (test_bit(ATH11K_FLAG_FIXED_MEM_RGN, &ab->dev_flags)) { in ath11k_mhi_register()
/freebsd/sys/contrib/openzfs/include/os/linux/kernel/linux/
H A Ddcache_compat.h47 test_bit(PG_dcache_clean, &(page)->flags)) \
58 if (test_bit(PG_dcache_clean, &(page)->flags)) \
/freebsd/sys/contrib/dev/mediatek/mt76/
H A Dsdio_txrx.c258 if (test_bit(MT76_MCU_RESET, &dev->phy.state)) in mt76s_tx_run_queue()
261 if (!test_bit(MT76_STATE_MCU_RUNNING, &dev->phy.state)) { in mt76s_tx_run_queue()
343 if (test_bit(MT76_MCU_RESET, &dev->phy.state) || in mt76s_txrx_worker()
344 test_bit(MT76_STATE_SUSPEND, &dev->phy.state)) { in mt76s_txrx_worker()
364 if (!test_bit(MT76_STATE_INITIALIZED, &dev->phy.state) || in mt76s_sdio_irq()
365 test_bit(MT76_MCU_RESET, &dev->phy.state)) in mt76s_sdio_irq()
H A Dmcu.c43 test_bit(MT76_MCU_RESET, &dev->phy.state)), in mt76_mcu_get_response()
82 if (test_bit(MT76_RESET, &dev->phy.state) && atomic_read(&dev->bus_hung)) in mt76_mcu_skb_send_and_get_msg()
114 if (!skb && !test_bit(MT76_MCU_RESET, &dev->phy.state) && in mt76_mcu_skb_send_and_get_msg()
H A Dsdio.c146 if (test_bit(MT76_STATE_MCU_RUNNING, &dev->phy.state)) in mt76s_rr()
155 if (test_bit(MT76_STATE_MCU_RUNNING, &dev->phy.state)) in mt76s_wr()
391 if (!test_bit(MT76_STATE_INITIALIZED, &dev->phy.state)) in mt76s_process_rx_queue()
483 !test_bit(MT76_STATE_SUSPEND, &dev->phy.state)) in mt76s_status_worker()
502 if (test_bit(MT76_RESET, &dev->phy.state) || in mt76s_tx_status_data()
503 test_bit(MT76_REMOVED, &dev->phy.state)) in mt76s_tx_status_data()
511 if (count && test_bit(MT76_STATE_RUNNING, &dev->phy.state)) in mt76s_tx_status_data()
H A Dscan.c20 !test_bit(MT76_MCU_RESET, &dev->phy.state)) in mt76_scan_complete()
24 if (!test_bit(MT76_MCU_RESET, &dev->phy.state)) in mt76_scan_complete()
143 test_bit(MT76_MCU_RESET, &dev->phy.state)) { in mt76_hw_scan()
/freebsd/sys/netpfil/ipfw/
H A Ddn_sched_prio.c59 #define test_bit(ix, pData) ((*pData) & (1<<(ix))) macro
91 if (test_bit(prio, &si->bitmap) == 0) { in prio_enqueue()
176 if (test_bit(prio, &si->bitmap) == 0) { in prio_new_queue()
/freebsd/sys/contrib/dev/iwlwifi/mvm/
H A Doffloading.c96 test_bit(i, mvmvif->tentative_addrs)) { in iwl_mvm_send_proto_offload()
133 test_bit(i, mvmvif->tentative_addrs)) in iwl_mvm_send_proto_offload()
154 test_bit(i, mvmvif->tentative_addrs)) in iwl_mvm_send_proto_offload()
/freebsd/sys/contrib/dev/iwlwifi/
H A Diwl-trans.c219 if (test_bit(STATUS_TRANS_DEAD, &trans->status)) in iwl_trans_restart_wk()
318 test_bit(STATUS_RFKILL_OPMODE, &trans->status))) in iwl_trans_send_cmd()
321 if (unlikely(test_bit(STATUS_SUSPENDED, &trans->status))) in iwl_trans_send_cmd()
324 if (unlikely(test_bit(STATUS_FW_ERROR, &trans->status))) in iwl_trans_send_cmd()
667 if (unlikely(test_bit(STATUS_FW_ERROR, &trans->status))) in iwl_trans_tx()
684 if (unlikely(test_bit(STATUS_FW_ERROR, &trans->status))) in iwl_trans_reclaim()
719 if (unlikely(test_bit(STATUS_FW_ERROR, &trans->status))) in iwl_trans_wait_txq_empty()
/freebsd/sys/contrib/dev/iwlwifi/fw/
H A Dimg.h67 return test_bit((__force long)api, capabilities->_api); in fw_has_api()
74 return test_bit((__force long)capa, capabilities->_capa); in fw_has_capa()
/freebsd/sys/contrib/dev/mediatek/mt76/mt7615/
H A Dusb.c207 if (!test_bit(MT76_STATE_INITIALIZED, &dev->mphy.state)) in mt7663u_disconnect()
224 if (!test_bit(MT76_STATE_SUSPEND, &dev->mphy.state) && in mt7663u_suspend()
254 if (!test_bit(MT76_STATE_SUSPEND, &dev->mphy.state) && in mt7663u_resume()

12345678910