Home
last modified time | relevance | path

Searched refs:state (Results 4776 - 4800 of 17857) sorted by relevance

1...<<191192193194195196197198199200>>...715

/third_party/node/deps/base64/base64/bin/
H A Dbase64.c303 struct base64_state state; in encode() local
305 // Initialize the encoder's state structure. in encode()
306 base64_stream_encode_init(&state, 0); in encode()
312 base64_stream_encode(&state, buf->raw, nread, buf->enc, &nout); in encode()
328 base64_stream_encode_final(&state, buf->enc, &nout); in encode()
360 struct base64_state state; in decode() local
362 // Initialize the decoder's state structure. in decode()
363 base64_stream_decode_init(&state, 0); in decode()
389 if (base64_stream_decode(&state, start, len, in decode()
/third_party/mesa3d/src/mesa/main/
H A Dshared.c27 * Shared-context state
54 * Allocate and initialize a shared context state structure.
132 /* Mutex and timestamp for texobj state validation */ in _mesa_alloc_shared_state()
333 * Deallocate a shared state object and all children structures.
336 * \param shared shared state pointer.
472 * If ptr's refcount goes to zero, free the shared state.
477 struct gl_shared_state *state) in _mesa_reference_shared_state()
479 if (*ptr == state) in _mesa_reference_shared_state()
483 /* unref old state */ in _mesa_reference_shared_state()
500 if (state) { in _mesa_reference_shared_state()
475 _mesa_reference_shared_state(struct gl_context *ctx, struct gl_shared_state **ptr, struct gl_shared_state *state) _mesa_reference_shared_state() argument
[all...]
/third_party/mesa3d/src/mesa/vbo/
H A Dvbo_save_draw.c38 #include "main/state.h"
46 GLbitfield mask, GLbitfield state, GLbitfield pop_state, in copy_vao()
81 ctx->NewState |= state; in copy_vao()
95 * last vertex to the saved state
230 struct pipe_vertex_state *state = node->state[mode]; in vbo_save_playback_vertex_list_gallium() local
261 * Guess that the same state can never be used by N=500000 display in vbo_save_playback_vertex_list_gallium()
266 p_atomic_add(&state->reference.count, add_refs); in vbo_save_playback_vertex_list_gallium()
274 /* Fast path using a pre-built gallium vertex buffer state. */ in vbo_save_playback_vertex_list_gallium()
276 ctx->Driver.DrawGalliumVertexState(ctx, state, inf in vbo_save_playback_vertex_list_gallium()
45 copy_vao(struct gl_context *ctx, const struct gl_vertex_array_object *vao, GLbitfield mask, GLbitfield state, GLbitfield pop_state, int shift, fi_type **data, bool *color0_changed) copy_vao() argument
[all...]
/third_party/icu/icu4c/source/test/intltest/
H A Ddatadrivennumberformattestsuite.cpp42 int32_t state = 0; in run() local
47 if (fFileLine.isEmpty() && state == 2) { in run()
48 state = 0; in run()
57 if (state == 0) { in run()
64 state = 1; in run()
70 } else if (state == 1) { in run()
80 state = 2; in run()
/third_party/ltp/utils/benchmark/ebizzy-0.3/
H A Debizzy.c351 static inline unsigned int rand_num(unsigned int max, unsigned int *state) in rand_num() argument
353 *state *= 1103515245 + 12345; in rand_num()
354 return ((*state / 65536) % max); in rand_num()
376 unsigned int state = 0; in search_mem() local
379 chunk = rand_num(chunks, &state); in search_mem()
386 copy_size = (rand_num(chunk_size / record_size, &state) in search_mem()
399 key = rand_num(copy_size / record_size, &state); in search_mem()
/third_party/lwip/src/apps/snmp/
H A Dsnmp_mib2_interfaces.c127 struct snmp_next_oid_state state; in interfaces_Table_get_next_cell_instance() local
133 snmp_next_oid_init(&state, row_oid->id, row_oid->len, result_temp, LWIP_ARRAYSIZE(interfaces_Table_oid_ranges)); in interfaces_Table_get_next_cell_instance()
141 snmp_next_oid_check(&state, test_oid, LWIP_ARRAYSIZE(interfaces_Table_oid_ranges), netif); in interfaces_Table_get_next_cell_instance()
145 if (state.status == SNMP_NEXT_OID_STATUS_SUCCESS) { in interfaces_Table_get_next_cell_instance()
146 snmp_oid_assign(row_oid, state.next_oid, state.next_oid_len); in interfaces_Table_get_next_cell_instance()
148 cell_instance->reference.ptr = /* (struct netif*) */state.reference; in interfaces_Table_get_next_cell_instance()
H A Dsnmp_snmpv2_usm.c184 struct snmp_next_oid_state state; in usmusertable_get_next_instance() local
247 snmp_next_oid_init(&state, row_oid->id, row_oid->len, result_temp, LWIP_ARRAYSIZE(usmUserTable_oid_ranges)); in usmusertable_get_next_instance()
261 snmp_next_oid_check(&state, test_oid, (u8_t)(1 + eid_len + 1 + strlen(username)), LWIP_PTR_NUMERIC_CAST(void *, i)); in usmusertable_get_next_instance()
265 if (state.status == SNMP_NEXT_OID_STATUS_SUCCESS) { in usmusertable_get_next_instance()
266 snmp_oid_assign(row_oid, state.next_oid, state.next_oid_len); in usmusertable_get_next_instance()
269 snmpv3_get_username(username, LWIP_PTR_NUMERIC_CAST(u8_t, state.reference)); in usmusertable_get_next_instance()
/third_party/vk-gl-cts/executor/
H A DxeBatchExecutor.cpp178 // Check commlink state. in run()
233 void BatchExecutor::onStateChanged (CommLinkState state, const char* message) in onStateChanged() argument
235 switch (state) in onStateChanged()
256 // Reset state and start batch. in onStateChanged()
283 XE_FAIL("Unknown state"); in onStateChanged()
350 void BatchExecutor::enqueueStateChanged (void* userPtr, CommLinkState state, const char* message) in enqueueStateChanged() argument
356 << state in enqueueStateChanged()
389 CommLinkState state = COMMLINKSTATE_LAST; in dispatchStateChanged() local
393 >> state in dispatchStateChanged()
396 executor->onStateChanged(state, messag in dispatchStateChanged()
[all...]
/third_party/skia/tests/
H A DSerialProcsTest.cpp46 State* state = (State*)ctx; in DEF_TEST()
47 if (length != strlen(state->fStr)+1 || 0 != memcmp(data, state->fStr, length)) { in DEF_TEST()
50 return sk_ref_sp(state->fImg); in DEF_TEST()
62 State state = { magic_str, src_img.get() }; in DEF_TEST() local
65 sproc.fImageCtx = &state; in DEF_TEST()
67 dproc.fImageCtx = &state; in DEF_TEST()
/third_party/python/Modules/
H A Dresource.c74 void *state = PyModule_GetState(module); in get_resource_state() local
75 assert(state != NULL); in get_resource_state()
76 return (resourcemodulestate *)state; in get_resource_state()
357 resourcemodulestate *state = get_resource_state(module); in resource_exec() local
372 state->StructRUsageType = PyStructSequence_NewType(&struct_rusage_desc); in resource_exec()
373 if (state->StructRUsageType == NULL) { in resource_exec()
376 if (PyModule_AddType(module, state->StructRUsageType) < 0) { in resource_exec()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbevf/
H A Dixgbevf_main.c92 if (!test_bit(__IXGBEVF_DOWN, &adapter->state) && in ixgbevf_service_event_schedule()
93 !test_bit(__IXGBEVF_REMOVING, &adapter->state) && in ixgbevf_service_event_schedule()
94 !test_and_set_bit(__IXGBEVF_SERVICE_SCHED, &adapter->state)) in ixgbevf_service_event_schedule()
100 BUG_ON(!test_bit(__IXGBEVF_SERVICE_SCHED, &adapter->state)); in ixgbevf_service_event_complete()
102 /* flush memory to make sure state is correct before next watchdog */ in ixgbevf_service_event_complete()
104 clear_bit(__IXGBEVF_SERVICE_SCHED, &adapter->state); in ixgbevf_service_event_complete()
123 if (test_bit(__IXGBEVF_SERVICE_INITED, &adapter->state)) in ixgbevf_remove_adapter()
226 &tx_ring->state); in ixgbevf_check_tx_hang()
229 clear_bit(__IXGBEVF_HANG_CHECK_ARMED, &tx_ring->state); in ixgbevf_check_tx_hang()
240 if (!test_bit(__IXGBEVF_DOWN, &adapter->state)) { in ixgbevf_tx_timeout_reset()
2304 bool state; ixgbevf_up_complete() local
4784 ixgbevf_io_error_detected(struct pci_dev *pdev, pci_channel_state_t state) ixgbevf_io_error_detected() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ixgbevf/
H A Dixgbevf_main.c92 if (!test_bit(__IXGBEVF_DOWN, &adapter->state) && in ixgbevf_service_event_schedule()
93 !test_bit(__IXGBEVF_REMOVING, &adapter->state) && in ixgbevf_service_event_schedule()
94 !test_and_set_bit(__IXGBEVF_SERVICE_SCHED, &adapter->state)) in ixgbevf_service_event_schedule()
100 BUG_ON(!test_bit(__IXGBEVF_SERVICE_SCHED, &adapter->state)); in ixgbevf_service_event_complete()
102 /* flush memory to make sure state is correct before next watchdog */ in ixgbevf_service_event_complete()
104 clear_bit(__IXGBEVF_SERVICE_SCHED, &adapter->state); in ixgbevf_service_event_complete()
123 if (test_bit(__IXGBEVF_SERVICE_INITED, &adapter->state)) in ixgbevf_remove_adapter()
226 &tx_ring->state); in ixgbevf_check_tx_hang()
229 clear_bit(__IXGBEVF_HANG_CHECK_ARMED, &tx_ring->state); in ixgbevf_check_tx_hang()
240 if (!test_bit(__IXGBEVF_DOWN, &adapter->state)) { in ixgbevf_tx_timeout_reset()
2310 bool state; ixgbevf_up_complete() local
4774 ixgbevf_io_error_detected(struct pci_dev *pdev, pci_channel_state_t state) ixgbevf_io_error_detected() argument
[all...]
/third_party/rust/crates/libc/src/unix/linux_like/android/
H A Dmod.rs609 fn hash<H: ::hash::Hasher>(&self, state: &mut H) { in hash()
610 self.nl_family.hash(state); in hash()
611 self.nl_pid.hash(state); in hash()
612 self.nl_groups.hash(state); in hash()
645 fn hash<H: ::hash::Hasher>(&self, state: &mut H) { in hash()
646 self.d_ino.hash(state); in hash()
647 self.d_off.hash(state); in hash()
648 self.d_reclen.hash(state); in hash()
649 self.d_type.hash(state); in hash()
650 self.d_name.hash(state); in hash()
[all...]
/applications/standard/app_samples/code/BasicFeature/Native/Audio/entry/src/main/cpp/
H A Daudio.cpp76 OH_AudioStream_State state; in GetRendererState() local
77 OH_AudioRenderer_GetCurrentState(audioRenderer, &state); in GetRendererState()
79 napi_create_int32(env, state, &sum); in GetRendererState()
87 OH_AudioStream_State state; in GetCapturerState() local
88 OH_AudioCapturer_GetCurrentState(audioCapturer, &state); in GetCapturerState()
90 napi_create_int32(env, state, &sum); in GetCapturerState()
422 OH_AudioStream_State state; in AvpGetRendererState() local
423 OH_AudioRenderer_GetCurrentState(audioRendererNormal, &state); in AvpGetRendererState()
425 napi_create_int32(env, state, &sum); in AvpGetRendererState()
515 OH_AudioStream_State state; in AvpVividGetRendererState() local
[all...]
/applications/standard/app_samples/code/DocsSample/Media/Audio/OHAudio/entry/src/main/cpp/
H A Daudio.cpp76 OH_AudioStream_State state; in GetRendererState() local
77 OH_AudioRenderer_GetCurrentState(audioRenderer, &state); in GetRendererState()
79 napi_create_int32(env, state, &sum); in GetRendererState()
87 OH_AudioStream_State state; in GetCapturerState() local
88 OH_AudioCapturer_GetCurrentState(audioCapturer, &state); in GetCapturerState()
90 napi_create_int32(env, state, &sum); in GetCapturerState()
442 OH_AudioStream_State state; in AvpGetRendererState() local
443 OH_AudioRenderer_GetCurrentState(audioRendererNormal, &state); in AvpGetRendererState()
445 napi_create_int32(env, state, &sum); in AvpGetRendererState()
535 OH_AudioStream_State state; in AvpVividGetRendererState() local
[all...]
/kernel/linux/linux-5.10/drivers/net/dsa/sja1105/
H A Dsja1105_tas.c592 tas_data->state = SJA1105_TAS_STATE_RUNNING; in sja1105_tas_check_running()
595 tas_data->state = SJA1105_TAS_STATE_DISABLED; in sja1105_tas_check_running()
634 if (tas_data->state == SJA1105_TAS_STATE_ENABLED_NOT_RUNNING || in sja1105_tas_start()
635 tas_data->state == SJA1105_TAS_STATE_RUNNING) { in sja1105_tas_start()
647 tas_data->state = SJA1105_TAS_STATE_ENABLED_NOT_RUNNING; in sja1105_tas_start()
661 if (tas_data->state == SJA1105_TAS_STATE_DISABLED) { in sja1105_tas_stop()
673 tas_data->state = SJA1105_TAS_STATE_DISABLED; in sja1105_tas_stop()
717 * which is what the state machine handles.
732 switch (tas_data->state) { in sja1105_tas_state_machine()
806 if (tas_data->state ! in sja1105_tas_state_machine()
[all...]
/kernel/linux/linux-5.10/drivers/media/platform/exynos4-is/
H A Dfimc-isp.c257 if (!test_bit(IS_ST_INIT_DONE, &is->state)) in fimc_isp_subdev_s_stream()
275 clear_bit(IS_ST_STREAM_ON, &is->state); in fimc_isp_subdev_s_stream()
284 clear_bit(IS_ST_STREAM_OFF, &is->state); in fimc_isp_subdev_s_stream()
311 set_bit(IS_ST_PWR_ON, &is->state); in fimc_isp_subdev_s_power()
319 set_bit(IS_ST_PWR_SUBIP_ON, &is->state); in fimc_isp_subdev_s_power()
324 if (!test_bit(IS_ST_PWR_ON, &is->state)) { in fimc_isp_subdev_s_power()
336 if (test_bit(IS_ST_PWR_SUBIP_ON, &is->state)) { in fimc_isp_subdev_s_power()
349 clear_bit(IS_ST_PWR_ON, &is->state); in fimc_isp_subdev_s_power()
350 clear_bit(IS_ST_INIT_DONE, &is->state); in fimc_isp_subdev_s_power()
351 is->state in fimc_isp_subdev_s_power()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/
H A Dccm_mbox.c40 * @state: processing state (/stage) of the message
47 enum nfp_net_mbox_cmsg_state state; member
66 cb->state = NFP_NET_MBOX_CMSG_STATE_QUEUED; in nfp_ccm_mbox_msg_init()
84 return cb->state == NFP_NET_MBOX_CMSG_STATE_DONE; in nfp_ccm_mbox_done()
91 return cb->state != NFP_NET_MBOX_CMSG_STATE_QUEUED && in nfp_ccm_mbox_in_progress()
92 cb->state != NFP_NET_MBOX_CMSG_STATE_NEXT; in nfp_ccm_mbox_in_progress()
99 cb->state = NFP_NET_MBOX_CMSG_STATE_BUSY; in nfp_ccm_mbox_set_busy()
125 return cb->state == NFP_NET_MBOX_CMSG_STATE_NEXT; in nfp_ccm_mbox_should_run()
138 cb->state in nfp_ccm_mbox_mark_next_runner()
[all...]
/kernel/linux/linux-5.10/drivers/s390/net/
H A Dqeth_core_sys.c24 switch (card->state) { in qeth_dev_state_show()
38 static DEVICE_ATTR(state, 0444, qeth_dev_state_show, NULL);
116 if (card->state != CARD_STATE_DOWN) { in qeth_dev_portno_store()
185 if (card->state != CARD_STATE_DOWN) { in qeth_dev_prioqing_store()
260 if (card->state != CARD_STATE_DOWN) { in qeth_dev_bufcnt_store()
366 if (card->state != CARD_STATE_DOWN) { in qeth_dev_layer2_store()
519 int state = 0; in qeth_hw_trap_store() local
523 state = 1; in qeth_hw_trap_store()
526 if (state) { in qeth_hw_trap_store()
537 if (state) { in qeth_hw_trap_store()
[all...]
/kernel/linux/linux-5.10/sound/core/
H A Dpcm_compat.c159 snd_pcm_state_t state; member
207 .state = status.state, in snd_pcm_status_user_compat64()
301 if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) in snd_pcm_ioctl_xferi_compat()
347 if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) in snd_pcm_ioctl_xfern_compat()
383 snd_pcm_state_t state; member
452 sstatus.state = status->state; in snd_pcm_ioctl_sync_ptr_x32()
458 if (put_user(sstatus.state, &src->s.status.state) || in snd_pcm_ioctl_sync_ptr_x32()
[all...]
/kernel/linux/linux-5.10/drivers/xen/xenbus/
H A Dxenbus_probe.c141 "%s/%s", dev->otherend, "state"); in watch_otherend()
179 enum xenbus_state state; in xenbus_otherend_changed() local
189 state = xenbus_read_driver_state(dev->otherend); in xenbus_otherend_changed()
191 dev_dbg(&dev->dev, "state is %d, (%s), %s, %s\n", in xenbus_otherend_changed()
192 state, xenbus_strstate(state), dev->otherend_watch.node, path); in xenbus_otherend_changed()
199 if (ignore_on_shutdown && (state == XenbusStateClosing)) in xenbus_otherend_changed()
205 drv->otherend_changed(dev, state); in xenbus_otherend_changed()
285 * If the toolstack has forced the device state to closing then set in xenbus_dev_remove()
286 * the state t in xenbus_dev_remove()
443 enum xenbus_state state = xenbus_read_driver_state(nodename); xenbus_probe_node() local
[all...]
/kernel/linux/linux-5.10/net/dccp/ccids/
H A Dccid3.c38 static const char *ccid3_tx_state_name(enum ccid3_hc_tx_states state) in ccid3_tx_state_name() argument
46 return ccid3_state_names[state]; in ccid3_tx_state_name()
51 enum ccid3_hc_tx_states state) in ccid3_hc_tx_set_state()
58 ccid3_tx_state_name(state)); in ccid3_hc_tx_set_state()
59 WARN_ON(state == oldstate); in ccid3_hc_tx_set_state()
60 hc->tx_state = state; in ccid3_hc_tx_set_state()
198 ccid3_pr_debug("%s(%p, state=%s) - entry\n", dccp_role(sk), sk, in ccid3_hc_tx_no_feedback_timer()
201 /* Ignore and do not restart after leaving the established state */ in ccid3_hc_tx_no_feedback_timer()
205 /* Reset feedback state to "no feedback received" */ in ccid3_hc_tx_no_feedback_timer()
560 static const char *ccid3_rx_state_name(enum ccid3_hc_rx_states state) in ccid3_rx_state_name() argument
50 ccid3_hc_tx_set_state(struct sock *sk, enum ccid3_hc_tx_states state) ccid3_hc_tx_set_state() argument
571 ccid3_hc_rx_set_state(struct sock *sk, enum ccid3_hc_rx_states state) ccid3_hc_rx_set_state() argument
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/
H A Dnouveau_fbcon.c71 if (info->state != FBINFO_STATE_RUNNING) in nouveau_fbcon_fillrect()
103 if (info->state != FBINFO_STATE_RUNNING) in nouveau_fbcon_copyarea()
135 if (info->state != FBINFO_STATE_RUNNING) in nouveau_fbcon_imageblit()
168 info->state != FBINFO_STATE_RUNNING || in nouveau_fbcon_sync()
451 int state = READ_ONCE(drm->fbcon_new_state); in nouveau_fbcon_set_suspend_work() local
453 if (state == FBINFO_STATE_RUNNING) in nouveau_fbcon_set_suspend_work()
457 if (state == FBINFO_STATE_RUNNING) in nouveau_fbcon_set_suspend_work()
459 drm_fb_helper_set_suspend(&drm->fbcon->helper, state); in nouveau_fbcon_set_suspend_work()
460 if (state != FBINFO_STATE_RUNNING) in nouveau_fbcon_set_suspend_work()
464 if (state in nouveau_fbcon_set_suspend_work()
472 nouveau_fbcon_set_suspend(struct drm_device *dev, int state) nouveau_fbcon_set_suspend() argument
[all...]
/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/
H A Daddi_apci_1564.c27 * generate change-of-state (COS) interrupts (channels 4 to 19)
46 * 19:4 COS digital input state (channels 19 to 4)
154 * the state of the interrupt capable inputs.
212 s->state &= ~APCI1564_EVENT_MASK; in apci1564_interrupt()
216 /* get the COS interrupt state and set the event flag */ in apci1564_interrupt()
217 s->state = inl(dev->iobase + APCI1564_DI_INT_STATUS_REG); in apci1564_interrupt()
218 s->state &= APCI1564_DI_INT_MODE_MASK; in apci1564_interrupt()
219 s->state |= APCI1564_EVENT_COS; in apci1564_interrupt()
229 s->state |= APCI1564_EVENT_TIMER; in apci1564_interrupt()
245 s->state | in apci1564_interrupt()
[all...]
/kernel/linux/linux-6.6/drivers/net/can/slcan/
H A Dslcan-core.c250 /* A change state frame must contain state info and receive and transmit
255 * sb256256 : state bus-off: rx counter 256, tx counter 256
256 * sa057033 : state active, rx counter 57, tx counter 33
265 enum can_state state, rx_state, tx_state; in slcan_bump_state() local
269 state = CAN_STATE_ERROR_ACTIVE; in slcan_bump_state()
272 state = CAN_STATE_ERROR_WARNING; in slcan_bump_state()
275 state = CAN_STATE_ERROR_PASSIVE; in slcan_bump_state()
278 state = CAN_STATE_BUS_OFF; in slcan_bump_state()
284 if (state in slcan_bump_state()
[all...]

Completed in 33 milliseconds

1...<<191192193194195196197198199200>>...715