/freebsd-src/sys/contrib/dev/athk/ |
H A D | key.c | 391 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-src/sys/ofed/drivers/infiniband/ulp/ipoib/ |
H A D | ipoib_multicast.c | 178 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 D | ipoib_ib.c | 265 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 D | ipoib_ethtool.c | 50 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-src/sys/contrib/dev/rtw88/ |
H A D | ps.c | 29 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-src/sys/contrib/dev/athk/ath12k/ |
H A D | mhi.c | 329 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-src/sys/dev/qat/qat_common/ |
H A D | adf_freebsd_uio_cleanup.c | 66 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 D | adf_init.c | 280 if (!test_bit(ADF_STATUS_CONFIGURED, &accel_dev->status) && in adf_dev_init() 485 if (!test_bit(ADF_STATUS_RESTARTING, &accel_dev->status) && in adf_dev_start() 518 !test_bit(ADF_STATUS_STARTING, &accel_dev->status)) { in adf_dev_stop() 538 if (!test_bit(accel_dev->accel_id, service->start_status)) in adf_dev_stop() 548 if (test_bit(ADF_STATUS_AE_STARTED, &accel_dev->status)) { in adf_dev_stop() 573 if (test_bit(ADF_STATUS_SYSCTL_CTX_INITIALISED, &accel_dev->status)) { in adf_dev_shutdown() 586 if (test_bit(ADF_STATUS_AE_UCODE_LOADED, &accel_dev->status)) { in adf_dev_shutdown() 591 if (test_bit(ADF_STATUS_AE_INITIALISED, &accel_dev->status)) { in adf_dev_shutdown() 603 if (!test_bit(accel_dev->accel_id, service->init_status)) in adf_dev_shutdown() 615 if (test_bit(ADF_STATUS_IRQ_ALLOCATED, &accel_dev->status)) { in adf_dev_shutdown() [all …]
|
/freebsd-src/sys/compat/linuxkpi/common/src/ |
H A D | linux_netdev.c | 150 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-src/sys/contrib/dev/athk/ath10k/ |
H A D | thermal.c | 84 if (test_bit(ATH10K_FLAG_CRASH_FLUSH, &ar->dev_flags)) { in ath10k_thermal_show_temp() 132 if (!test_bit(WMI_SERVICE_THERM_THROT, ar->wmi.svc_map)) in ath10k_thermal_set_throttling() 160 if (!test_bit(WMI_SERVICE_THERM_THROT, ar->wmi.svc_map)) in ath10k_thermal_register() 214 if (!test_bit(WMI_SERVICE_THERM_THROT, ar->wmi.svc_map)) in ath10k_thermal_unregister()
|
H A D | coredump.c | 1450 if (!test_bit(ATH10K_FW_CRASH_DUMP_RAM_DATA, &ath10k_coredump_mask)) in ath10k_coredump_get_mem_layout() 1503 if (test_bit(ATH10K_FW_CRASH_DUMP_REGISTERS, &ath10k_coredump_mask)) in ath10k_coredump_build() 1506 if (test_bit(ATH10K_FW_CRASH_DUMP_CE_DATA, &ath10k_coredump_mask)) in ath10k_coredump_build() 1510 if (test_bit(ATH10K_FW_CRASH_DUMP_RAM_DATA, &ath10k_coredump_mask)) in ath10k_coredump_build() 1556 if (test_bit(ATH10K_FW_CRASH_DUMP_REGISTERS, &ath10k_coredump_mask)) { in ath10k_coredump_build() 1565 if (test_bit(ATH10K_FW_CRASH_DUMP_CE_DATA, &ath10k_coredump_mask)) { in ath10k_coredump_build() 1580 if (test_bit(ATH10K_FW_CRASH_DUMP_RAM_DATA, &ath10k_coredump_mask)) { in ath10k_coredump_build() 1632 if (test_bit(ATH10K_FW_CRASH_DUMP_RAM_DATA, &ath10k_coredump_mask)) { in ath10k_coredump_register()
|
H A D | core.c | 790 if (test_bit(i, ar->normal_mode_fw.fw_file.fw_features)) { in ath10k_core_get_fw_features_str() 1879 if (!(skip_otp || test_bit(ATH10K_FW_FEATURE_IGNORE_OTP_RESULT, in ath10k_download_and_run_otp() 2224 if (!test_bit(ATH10K_FW_FEATURE_NON_BMI, fw_file->fw_features) && in ath10k_core_fetch_firmware_api_n() 2560 if (test_bit(ATH10K_FLAG_NAPI_ENABLED, &ar->dev_flags)) in ath10k_core_napi_enable() 2572 if (!test_bit(ATH10K_FLAG_NAPI_ENABLED, &ar->dev_flags)) in ath10k_core_napi_sync_disable() 2668 if (test_bit(ATH10K_FW_FEATURE_WMI_10_2, fw_file->fw_features) && in ath10k_core_init_firmware_features() 2669 !test_bit(ATH10K_FW_FEATURE_WMI_10X, fw_file->fw_features)) { in ath10k_core_init_firmware_features() 2687 if (!test_bit(ATH10K_FW_FEATURE_RAW_MODE_SUPPORT, in ath10k_core_init_firmware_features() 2706 if (!test_bit(ATH10K_FW_FEATURE_RAW_MODE_SUPPORT, in ath10k_core_init_firmware_features() 2714 if (test_bit(ATH10K_FLAG_RAW_MODE, &ar->dev_flags)) { in ath10k_core_init_firmware_features() [all …]
|
H A D | wow.c | 372 if (!test_bit(i, &wow_mask)) in ath10k_vif_wow_set_wakeups() 505 if (WARN_ON(!test_bit(ATH10K_FW_FEATURE_WOWLAN_SUPPORT, in ath10k_wow_op_suspend() 557 if (test_bit(ATH10K_FW_FEATURE_WOWLAN_SUPPORT, in ath10k_wow_op_set_wakeup() 571 if (WARN_ON(!test_bit(ATH10K_FW_FEATURE_WOWLAN_SUPPORT, in ath10k_wow_op_resume() 616 if (!test_bit(ATH10K_FW_FEATURE_WOWLAN_SUPPORT, in ath10k_wow_init() 620 if (WARN_ON(!test_bit(WMI_SERVICE_WOW, ar->wmi.svc_map))) in ath10k_wow_init() 630 if (test_bit(WMI_SERVICE_NLO, ar->wmi.svc_map)) { in ath10k_wow_init()
|
H A D | mac.c | 218 if (test_bit(WMI_SERVICE_TX_MODE_DYNAMIC, ar->wmi.svc_map)) in ath10k_mac_ext_resource_config() 287 if (test_bit(ATH10K_FLAG_RAW_MODE, &ar->dev_flags)) in ath10k_send_key() 712 if (test_bit(WMI_SERVICE_SYNC_DELETE_CMDS, ar->wmi.svc_map)) { in ath10k_wait_for_peer_delete_done() 852 if (test_bit(WMI_SERVICE_SYNC_DELETE_CMDS, ar->wmi.svc_map)) { in ath10k_peer_delete() 1021 if (test_bit(ATH10K_FLAG_CRASH_FLUSH, &ar->dev_flags)) in ath10k_vdev_setup_sync() 1252 (!test_bit(ATH10K_FW_FEATURE_ALLOWS_MESH_BCAST, in ath10k_mac_monitor_vdev_is_needed() 1255 test_bit(ATH10K_CAC_RUNNING, &ar->dev_flags); in ath10k_mac_monitor_vdev_is_needed() 1268 if (test_bit(ATH10K_CAC_RUNNING, &ar->dev_flags) && num_ctx > 1) in ath10k_mac_monitor_vdev_is_allowed() 1393 if (!test_bit(ATH10K_CAC_RUNNING, &ar->dev_flags)) in ath10k_stop_cac() 1635 if (!test_bit(WMI_SERVICE_BEACON_OFFLOAD, ar->wmi.svc_map)) in ath10k_mac_setup_bcn_tmpl() [all …]
|
/freebsd-src/sys/contrib/dev/athk/ath11k/ |
H A D | pcic.c | 163 wakeup_required = test_bit(ATH11K_FLAG_DEVICE_INIT_DONE, &ab->dev_flags) && in ath11k_pcic_write32() 200 wakeup_required = test_bit(ATH11K_FLAG_DEVICE_INIT_DONE, &ab->dev_flags) && in ath11k_pcic_read32() 224 wakeup_required = test_bit(ATH11K_FLAG_DEVICE_INIT_DONE, &ab->dev_flags) && in ath11k_pcic_read() 341 if (!test_bit(ATH11K_FLAG_MULTI_MSI_VECTORS, &ab->dev_flags)) in ath11k_pcic_ce_irq_enable() 355 if (!test_bit(ATH11K_FLAG_MULTI_MSI_VECTORS, &ab->dev_flags)) in ath11k_pcic_ce_irq_disable() 405 if (!test_bit(ATH11K_FLAG_CE_IRQ_ENABLED, &ab->dev_flags)) in ath11k_pcic_ce_interrupt_handler() 426 if (!test_bit(ATH11K_FLAG_MULTI_MSI_VECTORS, &ab->dev_flags)) in ath11k_pcic_ext_grp_disable() 460 if (!test_bit(ATH11K_FLAG_MULTI_MSI_VECTORS, &ab->dev_flags)) in ath11k_pcic_ext_grp_enable() 534 if (!test_bit(ATH11K_FLAG_EXT_IRQ_ENABLED, &ab->dev_flags)) in ath11k_pcic_ext_interrupt_handler() 569 if (!test_bit(ATH11K_FLAG_MULTI_MSI_VECTORS, &ab->dev_flags)) in ath11k_pcic_ext_irq_config() [all …]
|
H A D | mhi.c | 281 if (test_bit(ATH11K_FLAG_MULTI_MSI_VECTORS, &ab->dev_flags)) in ath11k_mhi_get_msi() 341 if (!(test_bit(ATH11K_FLAG_UNREGISTERING, &ab->dev_flags))) in ath11k_mhi_op_status_cb() 417 if (!test_bit(ATH11K_FLAG_MULTI_MSI_VECTORS, &ab->dev_flags)) in ath11k_mhi_register() 420 if (test_bit(ATH11K_FLAG_FIXED_MEM_RGN, &ab->dev_flags)) { in ath11k_mhi_register()
|
/freebsd-src/sys/contrib/dev/mediatek/mt76/ |
H A D | sdio_txrx.c | 252 if (test_bit(MT76_MCU_RESET, &dev->phy.state)) in mt76s_tx_run_queue() 255 if (!test_bit(MT76_STATE_MCU_RUNNING, &dev->phy.state)) { in mt76s_tx_run_queue() 337 if (test_bit(MT76_MCU_RESET, &dev->phy.state) || in mt76s_txrx_worker() 338 test_bit(MT76_STATE_SUSPEND, &dev->phy.state)) { in mt76s_txrx_worker() 358 if (!test_bit(MT76_STATE_INITIALIZED, &dev->phy.state) || in mt76s_sdio_irq() 359 test_bit(MT76_MCU_RESET, &dev->phy.state)) in mt76s_sdio_irq()
|
H A D | sdio.c | 146 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_REMOVED, &dev->phy.state)) in mt76s_tx_status_data() 510 if (count && test_bit(MT76_STATE_RUNNING, &dev->phy.state)) in mt76s_tx_status_data()
|
/freebsd-src/sys/contrib/openzfs/include/os/linux/kernel/linux/ |
H A D | dcache_compat.h | 46 test_bit(PG_dcache_clean, &(page)->flags)) \ 57 if (test_bit(PG_dcache_clean, &(page)->flags)) \
|
/freebsd-src/sys/netpfil/ipfw/ |
H A D | dn_sched_prio.c | 59 #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-src/sys/contrib/dev/iwlwifi/mvm/ |
H A D | offloading.c | 96 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()
|
H A D | mld-mac80211.c | 27 if (test_bit(IWL_MVM_STATUS_IN_HW_RESTART, &mvm->status)) in iwl_mvm_mld_mac_add_interface() 84 if (!test_bit(IWL_MVM_STATUS_IN_HW_RESTART, &mvm->status)) in iwl_mvm_mld_mac_add_interface() 87 if (!test_bit(IWL_MVM_STATUS_IN_HW_RESTART, &mvm->status) && in iwl_mvm_mld_mac_add_interface() 834 if (test_bit(IWL_MVM_STATUS_IN_HW_RESTART, &mvm->status)) in iwl_mvm_mld_link_info_changed_ap_ibss() 900 if (!test_bit(IWL_MVM_STATUS_IN_HW_RESTART, &mvm->status) && 932 !test_bit(IWL_MVM_STATUS_HW_RESTART_REQUESTED, in iwl_mvm_mld_config_iface_filter() 1168 if (test_bit(IWL_MVM_STATUS_IN_HW_RESTART, &mvm->status)) 1214 if (!test_bit(IWL_MVM_STATUS_IN_HW_RESTART,
|
/freebsd-src/sys/contrib/dev/iwlwifi/fw/ |
H A D | img.h | 66 return test_bit((__force long)api, capabilities->_api); in fw_has_api() 73 return test_bit((__force long)capa, capabilities->_capa); in fw_has_capa()
|
/freebsd-src/sys/contrib/dev/mediatek/mt76/mt7615/ |
H A D | usb.c | 206 if (!test_bit(MT76_STATE_INITIALIZED, &dev->mphy.state)) in mt7663u_disconnect() 223 if (!test_bit(MT76_STATE_SUSPEND, &dev->mphy.state) && in mt7663u_suspend() 253 if (!test_bit(MT76_STATE_SUSPEND, &dev->mphy.state) && in mt7663u_resume()
|
/freebsd-src/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_eq.c | 313 port <= 0 || !test_bit(port - 1, actv_ports.ports)) { in mlx4_get_slave_port_state() 330 port <= 0 || !test_bit(port - 1, actv_ports.ports)) { in mlx4_set_slave_port_state() 348 if (test_bit(i, slaves_pport.slaves)) in set_all_slave_state() 376 port <= 0 || !test_bit(port - 1, actv_ports.ports)) { in set_and_calc_slave_port_state() 606 if (!test_bit(i, slaves_port.slaves) && !mlx4_is_bonded(dev)) in mlx4_eq_int() 649 if (!test_bit(i, slaves_port.slaves) && !mlx4_is_bonded(dev)) in mlx4_eq_int() 1391 return test_bit(port - 1, priv->eq_table.eq[vector].actv_ports.ports); in mlx4_is_eq_vector_valid() 1402 sum += !!test_bit(port - 1, in mlx4_get_eqs_per_port() 1435 if (test_bit(port - 1, in mlx4_assign_eq() 1447 test_bit(port - 1, eq->actv_ports.ports)) { in mlx4_assign_eq() [all …]
|