Home
last modified time | relevance | path

Searched refs:ready (Results 1 – 25 of 607) sorted by relevance

12345678910>>...25

/linux-6.12.1/include/linux/
Dlwq.h25 struct llist_node *ready; /* entries to be dequeued */ member
36 q->ready = NULL; in lwq_init()
51 return smp_load_acquire(&q->ready) == NULL && llist_empty(&q->new); in lwq_empty()
104 smp_load_acquire(&q->ready) == NULL; in lwq_enqueue()
122 smp_load_acquire(&q->ready) == NULL; in lwq_enqueue_batch()
/linux-6.12.1/drivers/xen/events/
Devents_fifo.c275 unsigned priority, unsigned long *ready) in consume_one_event() argument
305 clear_bit(priority, ready); in consume_one_event()
321 unsigned long ready; in __evtchn_fifo_handle_events() local
326 ready = xchg(&control_block->ready, 0); in __evtchn_fifo_handle_events()
328 while (ready) { in __evtchn_fifo_handle_events()
329 q = find_first_bit(&ready, EVTCHN_FIFO_MAX_QUEUES); in __evtchn_fifo_handle_events()
330 consume_one_event(cpu, ctrl, control_block, q, &ready); in __evtchn_fifo_handle_events()
331 ready |= xchg(&control_block->ready, 0); in __evtchn_fifo_handle_events()
/linux-6.12.1/lib/
Dlwq.c26 this = q->ready; in __lwq_dequeue()
29 smp_store_release(&q->ready, (void *)1); in __lwq_dequeue()
32 q->ready = NULL; in __lwq_dequeue()
35 q->ready = llist_next(this); in __lwq_dequeue()
57 r = q->ready; in lwq_dequeue_all()
58 q->ready = NULL; in lwq_dequeue_all()
/linux-6.12.1/tools/perf/tests/
Dmmap-thread-lookup.c29 int ready[2]; member
64 ret = write(td->ready[1], &go, sizeof(int)); in thread_fn()
84 if (pipe(td->ready)) in thread_create()
90 ssize_t ret = read(td->ready[0], &go, sizeof(int)); in thread_create()
94 close(td->ready[0]); in thread_create()
95 close(td->ready[1]); in thread_create()
Dattr.c42 static bool ready; variable
74 if (!ready) in store_event()
162 if (unlikely(test_attr__enabled) && !ready) in test_attr__ready()
163 ready = true; in test_attr__ready()
/linux-6.12.1/arch/um/drivers/
Dxterm_kern.c15 struct completion ready; member
38 complete(&xterm->ready); in xterm_interrupt()
58 init_completion(&data->ready); in xterm_fd()
73 wait_for_completion(&data->ready); in xterm_fd()
/linux-6.12.1/kernel/power/
Duser.c36 bool ready; member
97 data->ready = false; in snapshot_open()
145 if (!data->ready) { in snapshot_read()
296 if (!data->frozen || data->ready) in snapshot_ioctl()
306 if (data->mode != O_RDONLY || !data->frozen || data->ready) { in snapshot_ioctl()
314 data->ready = !freezer_test_done && !error; in snapshot_ioctl()
334 data->ready = false; in snapshot_ioctl()
351 if (!data->ready) { in snapshot_ioctl()
398 data->ready = false; in snapshot_ioctl()
/linux-6.12.1/drivers/char/hw_random/
Dmtk-rng.c73 int ready; in mtk_rng_wait_ready() local
75 ready = readl(priv->base + RNG_CTRL) & RNG_READY; in mtk_rng_wait_ready()
76 if (!ready && wait) in mtk_rng_wait_ready()
77 readl_poll_timeout_atomic(priv->base + RNG_CTRL, ready, in mtk_rng_wait_ready()
78 ready & RNG_READY, USEC_POLL, in mtk_rng_wait_ready()
80 return !!(ready & RNG_READY); in mtk_rng_wait_ready()
Datmel-rng.c45 int ready; in atmel_trng_wait_ready() local
47 ready = readl(trng->base + TRNG_ISR) & TRNG_ISR_DATRDY; in atmel_trng_wait_ready()
48 if (!ready && wait) in atmel_trng_wait_ready()
49 readl_poll_timeout(trng->base + TRNG_ISR, ready, in atmel_trng_wait_ready()
50 ready & TRNG_ISR_DATRDY, 1000, 20000); in atmel_trng_wait_ready()
52 return !!ready; in atmel_trng_wait_ready()
Dks-sa-rng.c181 u32 ready; in ks_sa_rng_data_present() local
193 ready = readl(&ks_sa_rng->reg_rng->status); in ks_sa_rng_data_present()
194 ready &= TRNG_STATUS_REG_READY; in ks_sa_rng_data_present()
196 if (ready || !wait) in ks_sa_rng_data_present()
202 return ready; in ks_sa_rng_data_present()
/linux-6.12.1/drivers/video/fbdev/
Dpxa3xx-gcu.c98 struct pxa3xx_gcu_batch *ready; member
208 struct pxa3xx_gcu_batch *ready = priv->ready; in run_ready() local
212 BUG_ON(!ready); in run_ready()
216 while (ready) { in run_ready()
218 shared->buffer[num++] = ready->phys; in run_ready()
219 ready = ready->next; in run_ready()
223 priv->running = priv->ready; in run_ready()
224 priv->ready = priv->ready_last = NULL; in run_ready()
259 if (priv->ready) { in pxa3xx_gcu_handle_irq()
433 if (priv->ready) { in pxa3xx_gcu_write()
[all …]
/linux-6.12.1/net/rds/
Dtcp_listen.c240 void (*ready)(struct sock *sk); in rds_tcp_listen_data_ready() local
246 ready = sk->sk_user_data; in rds_tcp_listen_data_ready()
247 if (!ready) { /* check for teardown race */ in rds_tcp_listen_data_ready()
248 ready = sk->sk_data_ready; in rds_tcp_listen_data_ready()
264 ready = rds_tcp_listen_sock_def_readable(sock_net(sk)); in rds_tcp_listen_data_ready()
268 if (ready) in rds_tcp_listen_data_ready()
269 ready(sk); in rds_tcp_listen_data_ready()
/linux-6.12.1/fs/netfs/
Dfscache_io.c42 goto ready; /* There can be no content */ in fscache_wait_for_operation()
51 goto ready; in fscache_wait_for_operation()
59 ready: in fscache_wait_for_operation()
104 goto ready; /* There can be no content */ in fscache_begin_operation()
107 goto ready; in fscache_begin_operation()
116 ready: in fscache_begin_operation()
/linux-6.12.1/drivers/net/ethernet/altera/
Daltera_msgdma.c128 u32 ready = 0; in msgdma_tx_completions() local
137 ready = max_t(int, in msgdma_tx_completions()
143 ready = priv->tx_prod - priv->tx_cons - 1; in msgdma_tx_completions()
145 ready = priv->tx_prod - priv->tx_cons; in msgdma_tx_completions()
147 return ready; in msgdma_tx_completions()
/linux-6.12.1/drivers/hid/
Dhid-wiimote.h127 struct completion ready; member
308 complete(&wdata->state.ready); in wiimote_cmd_complete()
318 complete(&wdata->state.ready); in wiimote_cmd_abort()
335 reinit_completion(&wdata->state.ready); in wiimote_cmd_set()
353 ret = wait_for_completion_interruptible_timeout(&wdata->state.ready, HZ); in wiimote_cmd_wait()
369 ret = wait_for_completion_timeout(&wdata->state.ready, HZ); in wiimote_cmd_wait_noint()
/linux-6.12.1/tools/usb/ffs-aio-example/simple/device_app/
Daio_simple.c182 static void handle_ep0(int ep0, bool *ready) in handle_ep0() argument
209 *ready = true; in handle_ep0()
213 *ready = false; in handle_ep0()
238 bool ready; in main() local
312 handle_ep0(ep0, &ready); in main()
315 if (!ready) in main()
/linux-6.12.1/arch/sparc/mm/
Dleon_mm.c74 goto ready; in leon_swprobe()
96 goto ready; in leon_swprobe()
123 goto ready; in leon_swprobe()
145 goto ready; in leon_swprobe()
151 ready: in leon_swprobe()
/linux-6.12.1/tools/usb/ffs-aio-example/multibuff/device_app/
Daio_multibuff.c176 static void handle_ep0(int ep0, bool *ready) in handle_ep0() argument
196 *ready = true; in handle_ep0()
200 *ready = false; in handle_ep0()
249 bool ready; in main() local
317 handle_ep0(ep0, &ready); in main()
320 if (!ready) in main()
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/lib/
Ddevcom.c32 bool ready; member
308 void mlx5_devcom_comp_set_ready(struct mlx5_devcom_comp_dev *devcom, bool ready) in mlx5_devcom_comp_set_ready() argument
312 WRITE_ONCE(devcom->comp->ready, ready); in mlx5_devcom_comp_set_ready()
320 return READ_ONCE(devcom->comp->ready); in mlx5_devcom_comp_is_ready()
332 if (!READ_ONCE(comp->ready)) { in mlx5_devcom_for_each_peer_begin()
383 if (!READ_ONCE(comp->ready)) in mlx5_devcom_get_next_peer_data_rcu()
/linux-6.12.1/drivers/virtio/
Dvirtio_input.c21 bool ready; member
41 if (vi->ready) { in virtinput_recv_events()
93 if (vi->ready) { in virtinput_send_status()
319 vi->ready = true; in virtinput_probe()
329 vi->ready = false; in virtinput_probe()
347 vi->ready = false; in virtinput_remove()
365 vi->ready = false; in virtinput_freeze()
382 vi->ready = true; in virtinput_restore()
/linux-6.12.1/tools/testing/selftests/net/packetdrill/
Dtcp_inq_server.pkt20 // Now we have 10K of data ready on the socket.
24 // We read 2K and we should have 8K ready to read.
31 // We read 8K and we should have no further data ready to read.
Dtcp_inq_client.pkt19 // Now we have 10K of data ready on the socket.
23 // We read 1K and we should have 9K ready to read.
30 // We read 9K and we should have no further data ready to read.
/linux-6.12.1/drivers/char/ipmi/
Dipmi_poweroff.c42 static int ready; variable
543 if (!ready) in ipmi_poweroff_function()
559 if (ready) in ipmi_po_new_smi()
627 ready = 1; in ipmi_po_new_smi()
632 if (!ready) in ipmi_po_smi_gone()
638 ready = 0; in ipmi_po_smi_gone()
710 if (ready) { in ipmi_poweroff_cleanup()
/linux-6.12.1/drivers/vdpa/pds/
Dvdpa_dev.c126 static void pds_vdpa_set_vq_ready(struct vdpa_device *vdpa_dev, u16 qid, bool ready) in pds_vdpa_set_vq_ready() argument
135 __func__, qid, pdsv->vqs[qid].ready, ready); in pds_vdpa_set_vq_ready()
136 if (ready == pdsv->vqs[qid].ready) in pds_vdpa_set_vq_ready()
143 if (ready) { in pds_vdpa_set_vq_ready()
152 ready = false; in pds_vdpa_set_vq_ready()
161 pdsv->vqs[qid].ready = ready; in pds_vdpa_set_vq_ready()
168 return pdsv->vqs[qid].ready; in pds_vdpa_get_vq_ready()
181 if (pdsv->vqs[qid].ready) { in pds_vdpa_set_vq_state()
231 if (pdsv->vqs[qid].ready) { in pds_vdpa_get_vq_state()
501 pdsv->vqs[qid].ready = false; in pds_vdpa_init_vqs_entry()
/linux-6.12.1/drivers/parisc/
Dpdc_stable.c88 short ready; /* entry record is valid if != 0 */ member
104 .ready = 0, \
160 entry->ready = 1; in pdcspath_fetch()
191 if (!entry->ready) { in pdcspath_store()
208 entry->ready = 2; in pdcspath_store()
232 i = entry->ready; in pdcspath_hwpath_read()
314 entry->ready = 0; in pdcspath_hwpath_write()
352 i = entry->ready; in pdcspath_layer_read()
1017 entry->ready = 2; in pdcs_register_pathentries()
1043 if (entry->ready >= 2) in pdcs_unregister_pathentries()

12345678910>>...25