/foundation/CastEngine/castengine_cast_framework/service/src/device_manager/src/ |
H A D | cast_device_data_manager.cpp | 58 data.state = RemoteDeviceState::FOUND; in AddDevice() 259 bool CastDeviceDataManager::SetDeviceState(const std::string &deviceId, RemoteDeviceState state) in SetDeviceState() argument 266 it->state = state; in SetDeviceState() 288 auto state = GetDeviceState(deviceId); in IsDeviceUsed() local 289 return state == RemoteDeviceState::CONNECTING || state == RemoteDeviceState::CONNECTED; in IsDeviceUsed() 355 return (it != devices_.end()) ? it->state : RemoteDeviceState::UNKNOWN; in GetDeviceStateLocked() 384 it->state = RemoteDeviceState::UNKNOWN; in UpdateDeivceByDeviceId()
|
/foundation/communication/bluetooth/frameworks/inner/src/ |
H A D | bluetooth_avrcp_tg.cpp | 45 void OnConnectionStateChanged(const BluetoothRawAddress &addr, int32_t state, int32_t cause) override 47 HILOGD("enter, address: %{public}s, state: %{public}d, cause: %{public}d", 48 GET_ENCRYPT_RAW_ADDR(addr), state, cause); 50 impl_->OnConnectionStateChanged(device, static_cast<int>(state), cause); 80 void OnConnectionStateChanged(const BluetoothRemoteDevice &device, int state, int cause) in OnConnectionStateChanged() 82 HILOGI("enter, device: %{public}s, state: %{public}d, cause: %{public}d", in OnConnectionStateChanged() 83 GET_ENCRYPT_ADDR(device), state, cause); in OnConnectionStateChanged() 85 observers_.ForEach([device, state, cause](std::shared_ptr<IObserver> observer) { in OnConnectionStateChanged() 86 observer->OnConnectionStateChanged(device, state, cause); in OnConnectionStateChanged() 213 for (auto state in GetDevicesByStates() [all...] |
/foundation/graphic/graphic_3d/lume/LumeRender/src/loader/ |
H A D | shader_state_loader_util.cpp | 284 // Read rasterization state. in ParseSingleState() 295 // Read depth stencil state in ParseSingleState() 306 // Read depth color blend state. in ParseSingleState() 329 for (auto const& state : allStates) { in LoadStates() 331 SafeGetJsonValue(state, "variantName", ssr.res.error, variant.variantName); in LoadStates() 333 ssr.res.error += "graphics state variant name needs to be given\n"; in LoadStates() 336 if (const json::value* graphicsStateIt = state.find("state"); graphicsStateIt) { in LoadStates() 339 SafeGetJsonValue(state, "baseShaderState", ssr.res.error, variant.baseShaderState); in LoadStates() 340 SafeGetJsonValue(state, "baseVariantNam in LoadStates() [all...] |
/foundation/multimedia/camera_framework/services/camera_service/src/ |
H A D | hcamera_device_manager.cpp | 143 void HCameraDeviceManager::SetStateOfACamera(std::string cameraId, int32_t state)
in SetStateOfACamera() argument 145 MEDIA_INFO_LOG("HCameraDeviceManager::SetStateOfACamera start %{public}s, state: %{public}d",
in SetStateOfACamera() 146 cameraId.c_str(), state);\
in SetStateOfACamera() 147 if (state == 0) {
in SetStateOfACamera() 148 stateOfACamera_.EnsureInsert(cameraId, state);
in SetStateOfACamera() 207 MEDIA_INFO_LOG("HCameraDeviceManager::GetConflictDevices active pid:%{public}d state: %{public}d,"
in GetConflictDevices() 208 "request pid:%{public}d state: %{public}d", pidOfActiveClient, activeState, pidOfOpenRequest, requestState);
in GetConflictDevices() 248 MEDIA_INFO_LOG("Request Open camera ID %{public}s active pid: %{public}d, state: %{public}d,"
in HandleCameraEvictions() 249 "request pid: %{public}d, state: %{public}d", cameraId.c_str(), pidOfActiveClient,
in HandleCameraEvictions() 272 MEDIA_ERR_LOG("Invalid state in HandleCameraEvictions() [all...] |
/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/manager/trans_lane_manager_test/ |
H A D | trans_lane_manager_test.cpp | 286 CoreSessionState state; in HWTEST_F() local 287 ret = TransGetSocketChannelStateBySession(sessionName, sessionId, &state); in HWTEST_F() 289 EXPECT_EQ(state, CORE_SESSION_STATE_INIT); in HWTEST_F() 301 ret = TransGetSocketChannelStateByChannel(channelId, channelType, &state); in HWTEST_F() 303 EXPECT_EQ(state, CORE_SESSION_STATE_INIT); in HWTEST_F() 306 ret = TransGetSocketChannelStateBySession(sessionName, sessionId, &state); in HWTEST_F() 308 EXPECT_EQ(state, CORE_SESSION_STATE_CHANNEL_OPENED); in HWTEST_F() 311 ret = TransGetSocketChannelStateByChannel(channelId, channelType, &state); in HWTEST_F() 313 EXPECT_EQ(state, CORE_SESSION_STATE_CANCELLING); in HWTEST_F()
|
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_sub_manage/ |
H A D | wifi_p2p_manager.cpp | 55 WIFI_LOGI("AutoStartP2pService, current p2p state:%{public}d", p2pState);
in AutoStartP2pService() 76 WIFI_LOGE("AutoStartP2pService, set p2p mid state opening failed!");
in AutoStartP2pService() 119 WIFI_LOGI("AutoStopP2pService, current p2p state:%{public}d", p2pState);
in AutoStopP2pService() 129 WIFI_LOGE("AutoStopP2pService, set p2p mid state opening failed!");
in AutoStopP2pService() 219 WIFI_LOGI("CloseP2pService, current sta state:%{public}d", staState);
in CloseP2pService() 227 mP2pCallback.OnP2pStateChangedEvent = [this](P2pState state) { this->DealP2pStateChanged(state); };
in InitP2pCallback() 259 void WifiP2pManager::DealP2pStateChanged(P2pState state)
in DealP2pStateChanged() argument 261 WIFI_LOGI("DealP2pStateChanged, state: %{public}d", static_cast<int>(state));
in DealP2pStateChanged() [all...] |
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/cloud_data/src/ |
H A D | js_cloud_utils.cpp | 65 NAPI_CALL_RETURN_ERR(GetNamedProperty(env, input, "state", output.state, true), napi_invalid_arg); in Convert2Value() 66 if (output.state < CloudData::Confirmation::CFM_NIL || in Convert2Value() 67 output.state >= CloudData::Confirmation::CFM_BUTT) { in Convert2Value() 149 napi_value state = nullptr; in Convert2JSValue() local 150 if (value.state == CloudData::Confirmation::CFM_NIL) { in Convert2JSValue() 151 napi_get_undefined(env, &state); in Convert2JSValue() 153 state = Convert2JSValue(env, value.state); in Convert2JSValue() 162 napi_set_named_property(env, jsValue, "state", stat in Convert2JSValue() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
H A D | dce_virtual.c | 55 enum amdgpu_interrupt_state state); 217 int x, int y, enum mode_set_atomic state) in dce_virtual_crtc_set_base_atomic() 520 enum amd_clockgating_state state) in dce_virtual_set_clockgating_state() 526 enum amd_powergating_state state) in dce_virtual_set_powergating_state() 728 enum amdgpu_interrupt_state state) in dce_virtual_set_crtc_vblank_interrupt_state() 735 adev->mode_info.crtcs[crtc]->vsync_timer_enabled = state; in dce_virtual_set_crtc_vblank_interrupt_state() 736 DRM_DEBUG("[FM]set crtc %d vblank interrupt state %d\n", crtc, state); in dce_virtual_set_crtc_vblank_interrupt_state() 743 enum amdgpu_interrupt_state state) in dce_virtual_set_crtc_irq_state() 748 dce_virtual_set_crtc_vblank_interrupt_state(adev, type, state); in dce_virtual_set_crtc_irq_state() 215 dce_virtual_crtc_set_base_atomic(struct drm_crtc *crtc, struct drm_framebuffer *fb, int x, int y, enum mode_set_atomic state) dce_virtual_crtc_set_base_atomic() argument 519 dce_virtual_set_clockgating_state(void *handle, enum amd_clockgating_state state) dce_virtual_set_clockgating_state() argument 525 dce_virtual_set_powergating_state(void *handle, enum amd_powergating_state state) dce_virtual_set_powergating_state() argument 726 dce_virtual_set_crtc_vblank_interrupt_state(struct amdgpu_device *adev, int crtc, enum amdgpu_interrupt_state state) dce_virtual_set_crtc_vblank_interrupt_state() argument 740 dce_virtual_set_crtc_irq_state(struct amdgpu_device *adev, struct amdgpu_irq_src *source, unsigned type, enum amdgpu_interrupt_state state) dce_virtual_set_crtc_irq_state() argument [all...] |
/kernel/linux/linux-5.10/arch/m68k/mac/ |
H A D | iop.c | 67 * A message is 32 bytes plus a state byte for the channel (MSG_IDLE, MSG_NEW, 69 * buffer, set the state to MSG_NEW and signal the IOP by setting the IRQ flag 70 * in the IOP control to 1. The IOP will move the state to MSG_RCVD when it 73 * reply back out of the send channel buffer and reset the channel state back 77 * are reversed. That is, the IOP puts message in the channel with a state of 78 * MSG_NEW, and the host receives the message and move its state to MSG_RCVD 81 * channel state to MSG_IDLE. 86 * channels have gone to the MSG_COMPLETE state and it will raise INT1 when one 87 * or more messages on the receive channels have gone to the MSG_NEW state. 92 * The handler for a message is called when the message state goe 560 int i,state; iop_ism_irq() local [all...] |
/kernel/linux/linux-5.10/arch/arm/mach-sa1100/ |
H A D | assabet.c | 191 /* Restore GPIO state for L3 bus */ in adv7171_write() 228 static void assabet_ucb1x00_reset(enum ucb1x00_reset state) in assabet_ucb1x00_reset() argument 230 int set = state == UCB_RST_REMOVE || state == UCB_RST_SUSPEND || in assabet_ucb1x00_reset() 231 state == UCB_RST_PROBE_FAIL; in assabet_ucb1x00_reset() 306 static int assabet_irda_set_power(struct device *dev, unsigned int state) in assabet_irda_set_power() argument 315 if (state < 4) in assabet_irda_set_power() 317 bcr_state[state]); in assabet_irda_set_power() 679 static void assabet_uart_pm(struct uart_port *port, u_int state, u_int oldstate) in assabet_uart_pm() argument 682 if (state) in assabet_uart_pm() [all...] |
/kernel/linux/linux-5.10/arch/x86/platform/olpc/ |
H A D | olpc-xo1-sci.c | 73 /* Report current ebook switch state through input layer */ 76 unsigned char state; in send_ebook_state() local 78 if (olpc_ec_cmd(EC_READ_EB_MODE, NULL, 0, &state, 1)) { in send_ebook_state() 79 pr_err(PFX "failed to get ebook state\n"); in send_ebook_state() 83 if (test_bit(SW_TABLET_MODE, ebook_switch_idev->sw) == !!state) in send_ebook_state() 86 input_report_switch(ebook_switch_idev, SW_TABLET_MODE, state); in send_ebook_state() 114 int state; in detect_lid_state() local 116 state = cs5535_gpio_isset(OLPC_GPIO_LID, GPIO_READ_BACK); in detect_lid_state() 117 lid_open = !state ^ !lid_inverted; /* x ^^ y */ in detect_lid_state() 118 if (!state) in detect_lid_state() 266 xo1_sci_suspend(struct platform_device *pdev, pm_message_t state) xo1_sci_suspend() argument [all...] |
/kernel/linux/linux-5.10/drivers/clk/ti/ |
H A D | apll.c | 46 u8 state = 1; in dra7_apll_enable() local 55 state <<= __ffs(ad->idlest_mask); in dra7_apll_enable() 60 if ((v & ad->idlest_mask) == state) in dra7_apll_enable() 68 state <<= __ffs(ad->idlest_mask); in dra7_apll_enable() 72 if ((v & ad->idlest_mask) == state) in dra7_apll_enable() 82 clk_name, (state) ? "locked" : "bypassed"); in dra7_apll_enable() 86 clk_name, (state) ? "locked" : "bypassed", i); in dra7_apll_enable() 95 u8 state = 1; in dra7_apll_disable() local 100 state <<= __ffs(ad->idlest_mask); in dra7_apll_disable()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/iavf/ |
H A D | iavf_client.c | 122 if (!(test_bit(__IAVF_CLIENT_INSTANCE_OPENED, &cinst->state))) { in iavf_notify_client_open() 125 set_bit(__IAVF_CLIENT_INSTANCE_OPENED, &cinst->state); in iavf_notify_client_open() 175 clear_bit(__IAVF_CLIENT_INSTANCE_OPENED, &cinst->state); in iavf_notify_client_close() 216 set_bit(__IAVF_CLIENT_INSTANCE_NONE, &cinst->state); in iavf_client_add_instance() 257 if (adapter->state < __IAVF_DOWN) in iavf_client_subtask() 272 if (!test_bit(__IAVF_CLIENT_INSTANCE_OPENED, &cinst->state)) { in iavf_client_subtask() 279 &cinst->state); in iavf_client_subtask() 372 if (test_bit(__IAVF_CLIENT_INSTANCE_OPENED, &cinst->state)) { in iavf_client_release() 377 clear_bit(__IAVF_CLIENT_INSTANCE_OPENED, &cinst->state); in iavf_client_release()
|
/kernel/linux/linux-6.6/arch/m68k/mac/ |
H A D | iop.c | 71 * A message is 32 bytes plus a state byte for the channel (MSG_IDLE, MSG_NEW, 73 * buffer, set the state to MSG_NEW and signal the IOP by setting the IRQ flag 74 * in the IOP control to 1. The IOP will move the state to MSG_RCVD when it 77 * reply back out of the send channel buffer and reset the channel state back 81 * are reversed. That is, the IOP puts message in the channel with a state of 82 * MSG_NEW, and the host receives the message and move its state to MSG_RCVD 85 * channel state to MSG_IDLE. 90 * channels have gone to the MSG_COMPLETE state and it will raise INT1 when one 91 * or more messages on the receive channels have gone to the MSG_NEW state. 96 * The handler for a message is called when the message state goe 542 int i,state; iop_ism_irq() local [all...] |
/kernel/linux/linux-6.6/arch/s390/lib/ |
H A D | test_unwind.c | 52 struct unwind_state state; in test_unwind() local 67 unwind_for_each_frame(&state, task, regs, sp) { in test_unwind() 68 unsigned long addr = unwind_get_return_address(&state); in test_unwind() 73 if (state.reliable && !addr) { in test_unwind() 74 kunit_err(current_test, "unwind state reliable but addr is 0\n"); in test_unwind() 81 state.reliable ? " [%-7s%px] %pSR\n" : in test_unwind() 83 stack_type_name(state.stack_info.type), in test_unwind() 84 (void *)state.sp, (void *)state.ip); in test_unwind() 97 if (unwind_error(&state)) { in test_unwind() [all...] |
/kernel/linux/linux-5.10/drivers/md/bcache/ |
H A D | bset.h | 372 void bch_bset_sort_state_free(struct bset_sort_state *state); 373 int bch_bset_sort_state_init(struct bset_sort_state *state, 375 void bch_btree_sort_lazy(struct btree_keys *b, struct bset_sort_state *state); 377 struct bset_sort_state *state); 380 struct bset_sort_state *state); 382 struct bset_sort_state *state); 385 struct bset_sort_state *state) in bch_btree_sort() 387 bch_btree_sort_partial(b, 0, state); in bch_btree_sort() 396 void bch_btree_keys_stats(struct btree_keys *b, struct bset_stats *state); 384 bch_btree_sort(struct btree_keys *b, struct bset_sort_state *state) bch_btree_sort() argument
|
/kernel/linux/linux-5.10/drivers/media/pci/cx18/ |
H A D | cx18-av-vbi.c | 121 struct cx18_av_state *state = &cx->av_state; in cx18_av_g_sliced_fmt() local 129 int is_pal = !(state->std & V4L2_STD_525_60); in cx18_av_g_sliced_fmt() 164 struct cx18_av_state *state = &cx->av_state; in cx18_av_s_raw_fmt() local 170 cx18_av_write(cx, 0x47f, state->slicer_line_delay); in cx18_av_s_raw_fmt() 178 struct cx18_av_state *state = &cx->av_state; in cx18_av_s_sliced_fmt() local 179 int is_pal = !(state->std & V4L2_STD_525_60); in cx18_av_s_sliced_fmt() 192 cx18_av_write(cx, 0x47f, state->slicer_line_delay); in cx18_av_s_sliced_fmt() 249 struct cx18_av_state *state = &cx->av_state; in cx18_av_decode_vbi_line() local 268 l += state->slicer_line_offset; in cx18_av_decode_vbi_line()
|
/kernel/linux/linux-5.10/drivers/misc/uacce/ |
H A D | uacce.c | 15 * If the parent driver or the device disappears, the queue state is invalid and 20 return q->state == UACCE_Q_INIT || q->state == UACCE_Q_STARTED; in uacce_queue_is_valid() 27 if (q->state != UACCE_Q_INIT) in uacce_start_queue() 36 q->state = UACCE_Q_STARTED; in uacce_start_queue() 44 if ((q->state == UACCE_Q_STARTED) && uacce->ops->stop_queue) in uacce_put_queue() 47 if ((q->state == UACCE_Q_INIT || q->state == UACCE_Q_STARTED) && in uacce_put_queue() 51 q->state = UACCE_Q_ZOMBIE; in uacce_put_queue() 170 q->state in uacce_fops_open() [all...] |
/kernel/linux/linux-5.10/drivers/i2c/busses/ |
H A D | i2c-meson.c | 77 * @state: Current state in the driver state machine 95 int state; member 239 i2c->state = STATE_IDLE; in meson_i2c_transfer_complete() 241 if (i2c->state == STATE_READ && i2c->count) in meson_i2c_transfer_complete() 248 i2c->state = STATE_IDLE; in meson_i2c_transfer_complete() 263 dev_dbg(i2c->dev, "irq: state %d, pos %d, count %d, ctrl %08x\n", in meson_i2c_irq() 264 i2c->state, i2c->pos, i2c->count, ctrl); in meson_i2c_irq() 266 if (i2c->state in meson_i2c_irq() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_tc_matchall.c | 168 tc_port_matchall->egress.state = CXGB4_MATCHALL_STATE_ENABLED; in cxgb4_matchall_alloc_tc() 188 tc_port_matchall->egress.state = CXGB4_MATCHALL_STATE_DISABLED; in cxgb4_matchall_free_tc() 319 tc_port_matchall->ingress.state = CXGB4_MATCHALL_STATE_ENABLED; in cxgb4_matchall_alloc_filter() 351 tc_port_matchall->ingress.state = CXGB4_MATCHALL_STATE_DISABLED; in cxgb4_matchall_free_filter() 367 if (tc_port_matchall->ingress.state == in cxgb4_tc_matchall_replace() 383 if (tc_port_matchall->egress.state == CXGB4_MATCHALL_STATE_ENABLED) { in cxgb4_tc_matchall_replace() 436 if (tc_port_matchall->ingress.state == CXGB4_MATCHALL_STATE_DISABLED) in cxgb4_tc_matchall_stats() 473 if (tc_port_matchall->egress.state == CXGB4_MATCHALL_STATE_ENABLED) in cxgb4_matchall_disable_offload() 476 if (tc_port_matchall->ingress.state == CXGB4_MATCHALL_STATE_ENABLED) in cxgb4_matchall_disable_offload()
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath10k/ |
H A D | testmode.c | 235 if (ar->state == ATH10K_STATE_UTF) { in ath10k_tm_cmd_utf_start() 241 if (ar->state != ATH10K_STATE_OFF) { in ath10k_tm_cmd_utf_start() 280 ar->state = ATH10K_STATE_OFF; in ath10k_tm_cmd_utf_start() 288 ar->state = ATH10K_STATE_OFF; in ath10k_tm_cmd_utf_start() 292 ar->state = ATH10K_STATE_UTF; in ath10k_tm_cmd_utf_start() 344 ar->state = ATH10K_STATE_OFF; in __ath10k_tm_cmd_utf_stop() 355 if (ar->state != ATH10K_STATE_UTF) { in ath10k_tm_cmd_utf_stop() 380 if (ar->state != ATH10K_STATE_UTF) { in ath10k_tm_cmd_wmi() 460 if (ar->state != ATH10K_STATE_UTF) { in ath10k_testmode_destroy()
|
/kernel/linux/linux-5.10/drivers/s390/cio/ |
H A D | vfio_ccw_ops.c | 31 * interrupt pending" are clear, but we are not sure what other state in vfio_ccw_mdev_reset() 42 private->state = VFIO_CCW_STATE_IDLE; in vfio_ccw_mdev_reset() 118 if (private->state == VFIO_CCW_STATE_NOT_OPER) in vfio_ccw_mdev_create() 125 private->state = VFIO_CCW_STATE_IDLE; in vfio_ccw_mdev_create() 145 if ((private->state != VFIO_CCW_STATE_NOT_OPER) && in vfio_ccw_mdev_remove() 146 (private->state != VFIO_CCW_STATE_STANDBY)) { in vfio_ccw_mdev_remove() 148 private->state = VFIO_CCW_STATE_STANDBY; in vfio_ccw_mdev_remove() 149 /* The state will be NOT_OPER on error. */ in vfio_ccw_mdev_remove() 199 if ((private->state != VFIO_CCW_STATE_NOT_OPER) && in vfio_ccw_mdev_release() 200 (private->state ! in vfio_ccw_mdev_release() [all...] |
/kernel/linux/linux-5.10/drivers/thermal/ |
H A D | sun8i_thermal.c | 151 int i, state, ret = 0; in sun8i_h3_irq_ack() local 153 regmap_read(tmdev->regmap, SUN8I_THS_IS, &state); in sun8i_h3_irq_ack() 156 if (state & SUN8I_THS_DATA_IRQ_STS(i)) { in sun8i_h3_irq_ack() 168 int i, state, ret = 0; in sun50i_h6_irq_ack() local 170 regmap_read(tmdev->regmap, SUN50I_H6_THS_DIS, &state); in sun50i_h6_irq_ack() 173 if (state & SUN50I_H6_THS_DATA_IRQ_STS(i)) { in sun50i_h6_irq_ack() 186 int i, state; in sun8i_irq_thread() local 188 state = tmdev->chip->irq_ack(tmdev); in sun8i_irq_thread() 191 if (state & BIT(i)) in sun8i_irq_thread()
|
/kernel/linux/linux-5.10/drivers/usb/musb/ |
H A D | davinci.c | 198 usb_otg_state_string(musb->xceiv->otg->state)); in otg_timer() 201 switch (musb->xceiv->otg->state) { in otg_timer() 212 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VRISE; in otg_timer() 219 * when to switch to the A-Default state machine (by setting in otg_timer() 224 * grounded and we're now in the A-Default state machine. in otg_timer() 235 musb->xceiv->otg->state = OTG_STATE_A_IDLE; in otg_timer() 265 * mask, state, "vector", and EOI registers. in davinci_musb_interrupt() 285 * switch appropriately between halves of the OTG state machine. in davinci_musb_interrupt() 309 musb->xceiv->otg->state = OTG_STATE_A_WAIT_VFALL; in davinci_musb_interrupt() 314 musb->xceiv->otg->state in davinci_musb_interrupt() [all...] |
/kernel/linux/linux-5.10/drivers/usb/usbip/ |
H A D | vudc_transfer.c | 317 timer->state = VUDC_TR_IDLE; in v_timer() 344 if (timer->state != VUDC_TR_RUNNING) in v_timer() 436 timer->state = VUDC_TR_IDLE; in v_timer() 451 t->state = VUDC_TR_STOPPED; in v_init_timer() 459 switch (t->state) { in v_start_timer() 465 t->state = VUDC_TR_IDLE; in v_start_timer() 477 switch (t->state) { in v_kick_timer() 481 t->state = VUDC_TR_RUNNING; in v_kick_timer() 495 t->state = VUDC_TR_STOPPED; in v_stop_timer()
|