Home
last modified time | relevance | path

Searched refs:vd (Results 1 – 25 of 111) sorted by relevance

12345

/kernel/linux/linux-5.10/lib/vdso/
Dgettimeofday.c35 static inline bool vdso_clocksource_ok(const struct vdso_data *vd) in vdso_clocksource_ok() argument
37 return vd->clock_mode != VDSO_CLOCKMODE_NONE; in vdso_clocksource_ok()
52 const struct vdso_data *vd = __arch_get_timens_vdso_data(); in do_hres_timens() local
60 vd = &vd[CS_HRES_COARSE]; in do_hres_timens()
62 vd = &vd[CS_RAW]; in do_hres_timens()
63 vdso_ts = &vd->basetime[clk]; in do_hres_timens()
66 seq = vdso_read_begin(vd); in do_hres_timens()
68 if (unlikely(!vdso_clocksource_ok(vd))) in do_hres_timens()
71 cycles = __arch_get_hw_counter(vd->clock_mode, vd); in do_hres_timens()
75 last = vd->cycle_last; in do_hres_timens()
[all …]
/kernel/linux/linux-5.10/drivers/dma/
Dvirt-dma.h57 struct virt_dma_desc *vd, unsigned long tx_flags) in vchan_tx_prep() argument
61 dma_async_tx_descriptor_init(&vd->tx, &vc->chan); in vchan_tx_prep()
62 vd->tx.flags = tx_flags; in vchan_tx_prep()
63 vd->tx.tx_submit = vchan_tx_submit; in vchan_tx_prep()
64 vd->tx.desc_free = vchan_tx_desc_free; in vchan_tx_prep()
66 vd->tx_result.result = DMA_TRANS_NOERROR; in vchan_tx_prep()
67 vd->tx_result.residue = 0; in vchan_tx_prep()
70 list_add_tail(&vd->node, &vc->desc_allocated); in vchan_tx_prep()
73 return &vd->tx; in vchan_tx_prep()
94 static inline void vchan_cookie_complete(struct virt_dma_desc *vd) in vchan_cookie_complete() argument
[all …]
Dvirt-dma.c22 struct virt_dma_desc *vd = to_virt_desc(tx); in vchan_tx_submit() local
29 list_move_tail(&vd->node, &vc->desc_submitted); in vchan_tx_submit()
33 vc, vd, cookie); in vchan_tx_submit()
52 struct virt_dma_desc *vd = to_virt_desc(tx); in vchan_tx_desc_free() local
56 list_del(&vd->node); in vchan_tx_desc_free()
60 vc, vd, vd->tx.cookie); in vchan_tx_desc_free()
61 vc->desc_free(vd); in vchan_tx_desc_free()
69 struct virt_dma_desc *vd; in vchan_find_desc() local
71 list_for_each_entry(vd, &vc->desc_issued, node) in vchan_find_desc()
72 if (vd->tx.cookie == cookie) in vchan_find_desc()
[all …]
Duniphier-mdmac.c52 struct virt_dma_desc vd; member
81 to_uniphier_mdmac_desc(struct virt_dma_desc *vd) in to_uniphier_mdmac_desc() argument
83 return container_of(vd, struct uniphier_mdmac_desc, vd); in to_uniphier_mdmac_desc()
90 struct virt_dma_desc *vd; in uniphier_mdmac_next_desc() local
92 vd = vchan_next_desc(&mc->vc); in uniphier_mdmac_next_desc()
93 if (!vd) { in uniphier_mdmac_next_desc()
98 list_del(&vd->node); in uniphier_mdmac_next_desc()
100 mc->md = to_uniphier_mdmac_desc(vd); in uniphier_mdmac_next_desc()
210 vchan_cookie_complete(&md->vd); in uniphier_mdmac_interrupt()
249 return vchan_tx_prep(vc, &md->vd, flags); in uniphier_mdmac_prep_slave_sg()
[all …]
Dmilbeaut-xdmac.c62 struct virt_dma_desc vd; member
87 to_milbeaut_xdmac_desc(struct virt_dma_desc *vd) in to_milbeaut_xdmac_desc() argument
89 return container_of(vd, struct milbeaut_xdmac_desc, vd); in to_milbeaut_xdmac_desc()
96 struct virt_dma_desc *vd; in milbeaut_xdmac_next_desc() local
98 vd = vchan_next_desc(&mc->vc); in milbeaut_xdmac_next_desc()
99 if (!vd) { in milbeaut_xdmac_next_desc()
104 list_del(&vd->node); in milbeaut_xdmac_next_desc()
106 mc->md = to_milbeaut_xdmac_desc(vd); in milbeaut_xdmac_next_desc()
176 vchan_cookie_complete(&md->vd); in milbeaut_xdmac_interrupt()
204 return vchan_tx_prep(vc, &md->vd, flags); in milbeaut_xdmac_prep_memcpy()
[all …]
Dpxa_dma.c84 struct virt_dma_desc vd; /* Virtual descriptor */ member
143 container_of((_vd), struct pxad_desc_sw, vd)
534 static bool is_desc_completed(struct virt_dma_desc *vd) in is_desc_completed() argument
536 struct pxad_desc_sw *sw_desc = to_pxad_sw_desc(vd); in is_desc_completed()
555 struct virt_dma_desc *vd) in pxad_try_hotchain() argument
571 to_pxad_sw_desc(vd)->misaligned) in pxad_try_hotchain()
576 pxad_desc_chain(vd_last_issued, vd); in pxad_try_hotchain()
577 if (is_chan_running(chan) || is_desc_completed(vd)) in pxad_try_hotchain()
607 struct virt_dma_desc *vd, *tmp; in pxad_chan_handler() local
620 list_for_each_entry_safe(vd, tmp, &chan->vc.desc_issued, node) { in pxad_chan_handler()
[all …]
Dmilbeaut-hdmac.c60 struct virt_dma_desc vd; member
90 to_milbeaut_hdmac_desc(struct virt_dma_desc *vd) in to_milbeaut_hdmac_desc() argument
92 return container_of(vd, struct milbeaut_hdmac_desc, vd); in to_milbeaut_hdmac_desc()
99 struct virt_dma_desc *vd; in milbeaut_hdmac_next_desc() local
101 vd = vchan_next_desc(&mc->vc); in milbeaut_hdmac_next_desc()
102 if (!vd) { in milbeaut_hdmac_next_desc()
107 list_del(&vd->node); in milbeaut_hdmac_next_desc()
109 mc->md = to_milbeaut_hdmac_desc(vd); in milbeaut_hdmac_next_desc()
194 vchan_cookie_complete(&md->vd); in milbeaut_hdmac_interrupt()
284 return vchan_tx_prep(vc, &md->vd, flags); in milbeaut_hdmac_prep_slave_sg()
[all …]
Damba-pl08x.c199 struct virt_dma_desc vd; member
284 const struct vendor_data *vd; member
322 return container_of(tx, struct pl08x_txd, vd.tx); in to_pl08x_txd()
394 if (pl08x->vd->pl080s) in pl08x_write_lli()
514 if (pl08x->vd->pl080s) in pl08x_write_lli()
531 struct virt_dma_desc *vd = vchan_next_desc(&plchan->vc); in pl08x_start_next_txd() local
532 struct pl08x_txd *txd = to_pl08x_txd(&vd->tx); in pl08x_start_next_txd()
535 list_del(&txd->vd.node); in pl08x_start_next_txd()
825 for (i = 0; i < pl08x->vd->channels; i++) { in pl08x_get_phy_channel()
839 if (i == pl08x->vd->channels) { in pl08x_get_phy_channel()
[all …]
Dmoxart-dma.c128 struct virt_dma_desc vd; member
178 return container_of(t, struct moxart_desc, vd.tx); in to_moxart_dma_desc()
181 static void moxart_dma_desc_free(struct virt_dma_desc *vd) in moxart_dma_desc_free() argument
183 kfree(container_of(vd, struct moxart_desc, vd)); in moxart_dma_desc_free()
198 moxart_dma_desc_free(&ch->desc->vd); in moxart_terminate_all()
329 return vchan_tx_prep(&ch->vc, &d->vd, tx_flags); in moxart_prep_slave_sg()
422 struct virt_dma_desc *vd; in moxart_dma_start_desc() local
424 vd = vchan_next_desc(&ch->vc); in moxart_dma_start_desc()
426 if (!vd) { in moxart_dma_start_desc()
431 list_del(&vd->node); in moxart_dma_start_desc()
[all …]
Duniphier-xdmac.c78 struct virt_dma_desc vd; member
110 to_uniphier_xdmac_desc(struct virt_dma_desc *vd) in to_uniphier_xdmac_desc() argument
112 return container_of(vd, struct uniphier_xdmac_desc, vd); in to_uniphier_xdmac_desc()
119 struct virt_dma_desc *vd; in uniphier_xdmac_next_desc() local
121 vd = vchan_next_desc(&xc->vc); in uniphier_xdmac_next_desc()
122 if (!vd) in uniphier_xdmac_next_desc()
125 list_del(&vd->node); in uniphier_xdmac_next_desc()
127 return to_uniphier_xdmac_desc(vd); in uniphier_xdmac_next_desc()
251 vchan_cookie_complete(&xc->xd->vd); in uniphier_xdmac_chan_irq()
315 return vchan_tx_prep(vc, &xd->vd, flags); in uniphier_xdmac_prep_dma_memcpy()
[all …]
Dimg-mdc-dma.c106 struct virt_dma_desc vd; member
178 return container_of(vdesc, struct mdc_tx_desc, vd); in to_mdc_desc()
277 static void mdc_desc_free(struct virt_dma_desc *vd) in mdc_desc_free() argument
279 struct mdc_tx_desc *mdesc = to_mdc_desc(&vd->tx); in mdc_desc_free()
332 return vchan_tx_prep(&mchan->vc, &mdesc->vd, flags); in mdc_prep_dma_memcpy()
335 mdc_desc_free(&mdesc->vd); in mdc_prep_dma_memcpy()
439 return vchan_tx_prep(&mchan->vc, &mdesc->vd, flags); in mdc_prep_dma_cyclic()
442 mdc_desc_free(&mdesc->vd); in mdc_prep_dma_cyclic()
516 return vchan_tx_prep(&mchan->vc, &mdesc->vd, flags); in mdc_prep_slave_sg()
519 mdc_desc_free(&mdesc->vd); in mdc_prep_slave_sg()
[all …]
Dbcm2835-dma.c87 struct virt_dma_desc vd; member
201 return container_of(t, struct bcm2835_desc, vd.tx); in to_bcm2835_dma_desc()
215 static void bcm2835_dma_desc_free(struct virt_dma_desc *vd) in bcm2835_dma_desc_free() argument
218 container_of(vd, struct bcm2835_desc, vd)); in bcm2835_dma_desc_free()
440 struct virt_dma_desc *vd = vchan_next_desc(&c->vc); in bcm2835_dma_start_desc() local
443 if (!vd) { in bcm2835_dma_start_desc()
448 list_del(&vd->node); in bcm2835_dma_start_desc()
450 c->desc = d = to_bcm2835_dma_desc(&vd->tx); in bcm2835_dma_start_desc()
488 vchan_cyclic_callback(&d->vd); in bcm2835_dma_callback()
490 vchan_cookie_complete(&c->desc->vd); in bcm2835_dma_callback()
[all …]
/kernel/linux/linux-5.10/include/vdso/
Dhelpers.h9 static __always_inline u32 vdso_read_begin(const struct vdso_data *vd) in vdso_read_begin() argument
13 while (unlikely((seq = READ_ONCE(vd->seq)) & 1)) in vdso_read_begin()
20 static __always_inline u32 vdso_read_retry(const struct vdso_data *vd, in vdso_read_retry() argument
26 seq = READ_ONCE(vd->seq); in vdso_read_retry()
30 static __always_inline void vdso_write_begin(struct vdso_data *vd) in vdso_write_begin() argument
37 WRITE_ONCE(vd[CS_HRES_COARSE].seq, vd[CS_HRES_COARSE].seq + 1); in vdso_write_begin()
38 WRITE_ONCE(vd[CS_RAW].seq, vd[CS_RAW].seq + 1); in vdso_write_begin()
42 static __always_inline void vdso_write_end(struct vdso_data *vd) in vdso_write_end() argument
50 WRITE_ONCE(vd[CS_HRES_COARSE].seq, vd[CS_HRES_COARSE].seq + 1); in vdso_write_end()
51 WRITE_ONCE(vd[CS_RAW].seq, vd[CS_RAW].seq + 1); in vdso_write_end()
/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/
Dmobility.c78 const char *name, u32 vd, char *value) in update_dt_property() argument
89 if (vd & 0x80000000) { in update_dt_property()
90 vd = ~vd + 1; in update_dt_property()
96 char *new_data = kzalloc(new_prop->length + vd, GFP_KERNEL); in update_dt_property()
101 memcpy(new_data + new_prop->length, value, vd); in update_dt_property()
105 new_prop->length += vd; in update_dt_property()
117 new_prop->length = vd; in update_dt_property()
125 memcpy(new_prop->value, value, vd); in update_dt_property()
148 u32 vd; in update_dt_node() local
183 vd = be32_to_cpu(*(__be32 *)prop_data); in update_dt_node()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/kernel/
Dvecemu.c266 unsigned int va, vb, vc, vd; in emulate_altivec() local
275 vd = (word >> 21) & 0x1f; in emulate_altivec()
285 vaddfp(&vrs[vd], &vrs[va], &vrs[vb]); in emulate_altivec()
288 vsubfp(&vrs[vd], &vrs[va], &vrs[vb]); in emulate_altivec()
291 vrefp(&vrs[vd], &vrs[vb]); in emulate_altivec()
294 vrsqrtefp(&vrs[vd], &vrs[vb]); in emulate_altivec()
298 vrs[vd].u[i] = eexp2(vrs[vb].u[i]); in emulate_altivec()
302 vrs[vd].u[i] = elog2(vrs[vb].u[i]); in emulate_altivec()
306 vrs[vd].u[i] = rfin(vrs[vb].u[i]); in emulate_altivec()
310 vrs[vd].u[i] = rfiz(vrs[vb].u[i]); in emulate_altivec()
[all …]
/kernel/linux/linux-5.10/drivers/dma/mediatek/
Dmtk-hsdma.c132 struct virt_dma_desc vd; member
148 struct virt_dma_desc *vd; member
259 static struct mtk_hsdma_vdesc *to_hsdma_vdesc(struct virt_dma_desc *vd) in to_hsdma_vdesc() argument
261 return container_of(vd, struct mtk_hsdma_vdesc, vd); in to_hsdma_vdesc()
300 static void mtk_hsdma_vdesc_free(struct virt_dma_desc *vd) in mtk_hsdma_vdesc_free() argument
302 kfree(container_of(vd, struct mtk_hsdma_vdesc, vd)); in mtk_hsdma_vdesc_free()
460 ring->cb[ring->cur_tptr].vd = &hvd->vd; in mtk_hsdma_issue_pending_vdesc()
498 struct virt_dma_desc *vd, *vd2; in mtk_hsdma_issue_vchan_pending() local
503 list_for_each_entry_safe(vd, vd2, &hvc->vc.desc_issued, node) { in mtk_hsdma_issue_vchan_pending()
506 hvd = to_hsdma_vdesc(vd); in mtk_hsdma_issue_vchan_pending()
[all …]
Dmtk-cqdma.c80 struct virt_dma_desc vd; member
159 static struct mtk_cqdma_vdesc *to_cqdma_vdesc(struct virt_dma_desc *vd) in to_cqdma_vdesc() argument
161 return container_of(vd, struct mtk_cqdma_vdesc, vd); in to_cqdma_vdesc()
200 static void mtk_cqdma_vdesc_free(struct virt_dma_desc *vd) in mtk_cqdma_vdesc_free() argument
202 kfree(to_cqdma_vdesc(vd)); in mtk_cqdma_vdesc_free()
268 struct virt_dma_desc *vd, *vd2; in mtk_cqdma_issue_vchan_pending() local
276 list_for_each_entry_safe(vd, vd2, &cvc->vc.desc_issued, node) { in mtk_cqdma_issue_vchan_pending()
281 cvd = to_cqdma_vdesc(vd); in mtk_cqdma_issue_vchan_pending()
291 list_del(&vd->node); in mtk_cqdma_issue_vchan_pending()
339 vchan_cookie_complete(&cvd->parent->vd); in mtk_cqdma_consume_work_queue()
[all …]
/kernel/linux/linux-5.10/drivers/clk/versatile/
Dicst.c76 unsigned int vd; in icst_hz_to_vco() local
81 vd = (f + fref_div / 2) / fref_div; in icst_hz_to_vco()
82 if (vd < p->vd_min || vd > p->vd_max) in icst_hz_to_vco()
85 f_pll = fref_div * vd; in icst_hz_to_vco()
91 vco.v = vd - 8; in icst_hz_to_vco()
/kernel/linux/linux-5.10/arch/arm/vfp/
Dvfpdouble.c54 static void vfp_double_normalise_denormal(struct vfp_double *vd) in vfp_double_normalise_denormal() argument
56 int bits = 31 - fls(vd->significand >> 32); in vfp_double_normalise_denormal()
58 bits = 63 - fls(vd->significand); in vfp_double_normalise_denormal()
60 vfp_double_dump("normalise_denormal: in", vd); in vfp_double_normalise_denormal()
63 vd->exponent -= bits - 1; in vfp_double_normalise_denormal()
64 vd->significand <<= bits; in vfp_double_normalise_denormal()
67 vfp_double_dump("normalise_denormal: out", vd); in vfp_double_normalise_denormal()
70 u32 vfp_double_normaliseround(int dd, struct vfp_double *vd, u32 fpscr, u32 exceptions, const char … in vfp_double_normaliseround() argument
76 vfp_double_dump("pack: in", vd); in vfp_double_normaliseround()
81 if (vd->exponent == 2047 && (vd->significand == 0 || exceptions)) in vfp_double_normaliseround()
[all …]
/kernel/linux/linux-5.10/sound/core/
Dcontrol.c121 if (control->vd[idx].owner == ctl) in snd_ctl_release()
122 control->vd[idx].owner = NULL; in snd_ctl_release()
205 *kctl = kzalloc(struct_size(*kctl, vd, count), GFP_KERNEL); in snd_ctl_new()
210 (*kctl)->vd[idx].access = access; in snd_ctl_new()
211 (*kctl)->vd[idx].owner = file; in snd_ctl_new()
530 if (!(kctl->vd[0].access & SNDRV_CTL_ELEM_ACCESS_USER)) { in snd_ctl_remove_user_ctl()
535 if (kctl->vd[idx].owner != NULL && kctl->vd[idx].owner != file) { in snd_ctl_remove_user_ctl()
564 struct snd_kcontrol_volatile *vd; in snd_ctl_activate_id() local
575 vd = &kctl->vd[index_offset]; in snd_ctl_activate_id()
578 if (!(vd->access & SNDRV_CTL_ELEM_ACCESS_INACTIVE)) in snd_ctl_activate_id()
[all …]
/kernel/linux/linux-5.10/drivers/dma/dw-edma/
Ddw-edma-core.c38 struct dw_edma_desc *vd2dw_edma_desc(struct virt_dma_desc *vd) in vd2dw_edma_desc() argument
40 return container_of(vd, struct dw_edma_desc, vd); in vd2dw_edma_desc()
173 struct virt_dma_desc *vd; in dw_edma_start_transfer() local
175 vd = vchan_next_desc(&chan->vc); in dw_edma_start_transfer()
176 if (!vd) in dw_edma_start_transfer()
179 desc = vd2dw_edma_desc(vd); in dw_edma_start_transfer()
292 struct virt_dma_desc *vd; in dw_edma_device_tx_status() local
308 vd = vchan_find_desc(&chan->vc, cookie); in dw_edma_device_tx_status()
309 if (vd) { in dw_edma_device_tx_status()
310 desc = vd2dw_edma_desc(vd); in dw_edma_device_tx_status()
[all …]
/kernel/linux/linux-5.10/drivers/misc/cxl/
Dflash.c68 u32 vd, char *value) in update_property() argument
84 new_prop->length = vd; in update_property()
91 memcpy(new_prop->value, value, vd); in update_property()
96 dn, name, vd, be32_to_cpu(*val)); in update_property()
115 u32 vd; in update_node() local
143 vd = be32_to_cpu(*(__be32 *)prop_data); in update_node()
144 prop_data += vd + sizeof(vd); in update_node()
153 vd = be32_to_cpu(*(__be32 *)prop_data); in update_node()
154 prop_data += sizeof(vd); in update_node()
156 if ((vd != 0x00000000) && (vd != 0x80000000)) { in update_node()
[all …]
/kernel/linux/linux-5.10/drivers/dma/sh/
Dusb-dmac.c52 struct virt_dma_desc vd; member
63 #define to_usb_dmac_desc(vd) container_of(vd, struct usb_dmac_desc, vd) argument
224 struct virt_dma_desc *vd; in usb_dmac_chan_start_desc() local
226 vd = vchan_next_desc(&chan->vc); in usb_dmac_chan_start_desc()
227 if (!vd) { in usb_dmac_chan_start_desc()
237 list_del(&vd->node); in usb_dmac_chan_start_desc()
239 chan->desc = to_usb_dmac_desc(vd); in usb_dmac_chan_start_desc()
442 return vchan_tx_prep(&uchan->vc, &desc->vd, dma_flags); in usb_dmac_prep_slave_sg()
507 struct virt_dma_desc *vd; in usb_dmac_chan_get_residue() local
512 vd = vchan_find_desc(&chan->vc, cookie); in usb_dmac_chan_get_residue()
[all …]
/kernel/linux/linux-5.10/drivers/media/radio/
Dtea575x.c522 tea->vd = tea575x_radio; in snd_tea575x_init()
523 video_set_drvdata(&tea->vd, tea); in snd_tea575x_init()
525 strscpy(tea->vd.name, tea->v4l2_dev->name, sizeof(tea->vd.name)); in snd_tea575x_init()
526 tea->vd.lock = &tea->mutex; in snd_tea575x_init()
527 tea->vd.v4l2_dev = tea->v4l2_dev; in snd_tea575x_init()
528 tea->vd.device_caps = V4L2_CAP_TUNER | V4L2_CAP_RADIO; in snd_tea575x_init()
530 tea->vd.device_caps |= V4L2_CAP_HW_FREQ_SEEK; in snd_tea575x_init()
533 tea->vd.fops = &tea->fops; in snd_tea575x_init()
536 v4l2_disable_ioctl(&tea->vd, VIDIOC_S_HW_FREQ_SEEK); in snd_tea575x_init()
539 tea->vd.ctrl_handler = &tea->ctrl_handler; in snd_tea575x_init()
[all …]
Dradio-tea5777.c547 tea->vd = tea575x_radio; in radio_tea5777_init()
548 video_set_drvdata(&tea->vd, tea); in radio_tea5777_init()
550 strscpy(tea->vd.name, tea->v4l2_dev->name, sizeof(tea->vd.name)); in radio_tea5777_init()
551 tea->vd.lock = &tea->mutex; in radio_tea5777_init()
552 tea->vd.v4l2_dev = tea->v4l2_dev; in radio_tea5777_init()
553 tea->vd.device_caps = V4L2_CAP_TUNER | V4L2_CAP_RADIO | in radio_tea5777_init()
557 tea->vd.fops = &tea->fops; in radio_tea5777_init()
559 tea->vd.ctrl_handler = &tea->ctrl_handler; in radio_tea5777_init()
571 res = video_register_device(&tea->vd, VFL_TYPE_RADIO, -1); in radio_tea5777_init()
574 v4l2_ctrl_handler_free(tea->vd.ctrl_handler); in radio_tea5777_init()
[all …]

12345