| /linux/lib/vdso/ |
| A D | gettimeofday.c | 60 vd = __arch_get_timens_vdso_data(vd); in do_hres_timens() 62 vd = &vd[CS_HRES_COARSE]; in do_hres_timens() 64 vd = &vd[CS_RAW]; in do_hres_timens() 73 cycles = __arch_get_hw_counter(vd->clock_mode, vd); in do_hres_timens() 78 ns += vdso_calc_delta(cycles, last, vd->mask, vd->mult); in do_hres_timens() 144 cycles = __arch_get_hw_counter(vd->clock_mode, vd); in do_hres() 243 vd = &vd[CS_HRES_COARSE]; in __cvdso_clock_gettime_common() 247 vd = &vd[CS_RAW]; in __cvdso_clock_gettime_common() 316 vd = __arch_get_timens_vdso_data(vd); in __cvdso_gettimeofday_data() 339 vd = __arch_get_timens_vdso_data(vd); in __cvdso_time_data() [all …]
|
| /linux/drivers/dma/ |
| A D | virt-dma.h | 62 vd->tx.flags = tx_flags; in vchan_tx_prep() 63 vd->tx.tx_submit = vchan_tx_submit; in vchan_tx_prep() 67 vd->tx_result.residue = 0; in vchan_tx_prep() 73 return &vd->tx; in vchan_tx_prep() 99 cookie = vd->tx.cookie; in vchan_cookie_complete() 100 dma_cookie_complete(&vd->tx); in vchan_cookie_complete() 102 vd, cookie); in vchan_cookie_complete() 123 vc->desc_free(vd); in vchan_vdesc_fini() 135 vc->cyclic = vd; in vchan_cyclic_callback() 151 if (vc->cyclic == vd) in vchan_terminate_vdesc() [all …]
|
| A D | virt-dma.c | 33 vc, vd, cookie); in vchan_tx_submit() 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() 73 return vd; in vchan_find_desc() 92 vd = vc->cyclic; in vchan_complete() 93 if (vd) { in vchan_complete() 106 list_del(&vd->node); in vchan_complete() 108 vchan_vdesc_fini(vd); in vchan_complete() 117 list_del(&vd->node); in vchan_dma_desc_free_list() [all …]
|
| A D | uniphier-mdmac.c | 52 struct virt_dma_desc vd; member 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() 286 struct virt_dma_desc *vd; in uniphier_mdmac_tx_status() local 312 vd = vchan_find_desc(vc, cookie); in uniphier_mdmac_tx_status() [all …]
|
| A D | pxa_dma.c | 623 __func__, vd, vd->tx.cookie, vd_completed, in pxad_chan_handler() 627 vchan_cyclic_callback(vd); in pxad_chan_handler() 631 list_del(&vd->node); in pxad_chan_handler() 632 vchan_cookie_complete(vd); in pxad_chan_handler() 770 pxad_free_desc(&sw_desc->vd); in pxad_alloc_desc() 792 __func__, vd, cookie); in pxad_tx_submit() 853 INIT_LIST_HEAD(&vd->node); in pxad_tx_prep() 858 vc, vd, vd->tx.cookie, in pxad_tx_prep() 1101 vd, vd->tx.cookie, is_desc_completed(vd)); in pxad_terminate_all() 1140 if (!vd) in pxad_residue() [all …]
|
| A D | milbeaut-xdmac.c | 62 struct virt_dma_desc vd; member 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() 175 vchan_cookie_complete(&md->vd); in milbeaut_xdmac_interrupt() 203 return vchan_tx_prep(vc, &md->vd, flags); in milbeaut_xdmac_prep_memcpy() 224 vchan_terminate_vdesc(&mc->md->vd); in milbeaut_xdmac_terminate_all() [all …]
|
| A D | milbeaut-hdmac.c | 60 struct virt_dma_desc vd; member 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() 326 struct virt_dma_desc *vd; in milbeaut_hdmac_tx_status() local 364 vd = vchan_find_desc(vc, cookie); in milbeaut_hdmac_tx_status() [all …]
|
| A D | amba-pl08x.c | 394 if (pl08x->vd->pl080s) in pl08x_write_lli() 514 if (pl08x->vd->pl080s) in pl08x_write_lli() 1578 if (vd) { in pl08x_dma_tx_status() 2728 pl08x->vd = vd; in pl08x_probe() 2736 if (vd->ftdmac020) { in pl08x_probe() 2775 if (vd->ftdmac020) in pl08x_probe() 2783 if (vd->signals) { in pl08x_probe() 2835 if (vd->pl080s) in pl08x_probe() 2853 if (vd->ftdmac020) in pl08x_probe() 2897 if (vd->pl080s) in pl08x_probe() [all …]
|
| A D | moxart-dma.c | 128 struct virt_dma_desc vd; member 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() 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() 482 struct virt_dma_desc *vd; in moxart_tx_status() local 493 vd = vchan_find_desc(&ch->vc, cookie); in moxart_tx_status() 494 if (vd) { in moxart_tx_status() [all …]
|
| /linux/include/vdso/ |
| A D | helpers.h | 9 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()
|
| /linux/arch/powerpc/kernel/vdso32/ |
| A D | vgettimeofday.c | 8 const struct vdso_data *vd) in __c_kernel_clock_gettime() argument 10 return __cvdso_clock_gettime32_data(vd, clock, ts); in __c_kernel_clock_gettime() 14 const struct vdso_data *vd) in __c_kernel_clock_gettime64() argument 16 return __cvdso_clock_gettime_data(vd, clock, ts); in __c_kernel_clock_gettime64() 20 const struct vdso_data *vd) in __c_kernel_gettimeofday() argument 22 return __cvdso_gettimeofday_data(vd, tv, tz); in __c_kernel_gettimeofday() 26 const struct vdso_data *vd) in __c_kernel_clock_getres() argument 28 return __cvdso_clock_getres_time32_data(vd, clock_id, res); in __c_kernel_clock_getres() 31 __kernel_old_time_t __c_kernel_time(__kernel_old_time_t *time, const struct vdso_data *vd) in __c_kernel_time() argument 33 return __cvdso_time_data(vd, time); in __c_kernel_time()
|
| /linux/arch/powerpc/kernel/vdso64/ |
| A D | vgettimeofday.c | 9 const struct vdso_data *vd) in __c_kernel_clock_gettime() argument 11 return __cvdso_clock_gettime_data(vd, clock, ts); in __c_kernel_clock_gettime() 15 const struct vdso_data *vd) in __c_kernel_gettimeofday() argument 17 return __cvdso_gettimeofday_data(vd, tv, tz); in __c_kernel_gettimeofday() 21 const struct vdso_data *vd) in __c_kernel_clock_getres() argument 23 return __cvdso_clock_getres_data(vd, clock_id, res); in __c_kernel_clock_getres() 26 __kernel_old_time_t __c_kernel_time(__kernel_old_time_t *time, const struct vdso_data *vd) in __c_kernel_time() argument 28 return __cvdso_time_data(vd, time); in __c_kernel_time()
|
| /linux/arch/powerpc/kernel/ |
| A D | vecemu.c | 266 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() 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() 316 vrs[vd].u[i] = x; in emulate_altivec() [all …]
|
| /linux/drivers/dma/ptdma/ |
| A D | ptdma-dmaengine.c | 23 return container_of(vd, struct pt_dma_desc, vd); in to_pt_desc() 42 struct pt_dma_desc *desc = to_pt_desc(vd); in pt_do_cleanup() 75 return vd ? to_pt_desc(vd) : NULL; in pt_next_dma_desc() 82 struct virt_dma_desc *vd; in pt_handle_active_desc() local 94 tx_desc = &desc->vd.tx; in pt_handle_active_desc() 95 vd = &desc->vd; in pt_handle_active_desc() 108 list_del(&desc->vd.node); in pt_handle_active_desc() 118 vchan_vdesc_fini(vd); in pt_handle_active_desc() 135 dma_chan = desc->vd.tx.chan; in pt_cmd_callback() 215 return &desc->vd.tx; in pt_prep_dma_memcpy() [all …]
|
| /linux/arch/powerpc/platforms/pseries/ |
| A D | mobility.c | 104 if (vd & 0x80000000) { in update_dt_property() 105 vd = ~vd + 1; in update_dt_property() 120 new_prop->length += vd; in update_dt_property() 132 new_prop->length = vd; in update_dt_property() 140 memcpy(new_prop->value, value, vd); in update_dt_property() 162 u32 vd; in update_dt_node() local 192 prop_data += vd + sizeof(vd); in update_dt_node() 202 prop_data += sizeof(vd); in update_dt_node() 204 switch (vd) { in update_dt_node() 217 vd, prop_data); in update_dt_node() [all …]
|
| /linux/drivers/dma/mediatek/ |
| A D | mtk-hsdma.c | 132 struct virt_dma_desc vd; member 148 struct virt_dma_desc *vd; member 261 return container_of(vd, struct mtk_hsdma_vdesc, vd); in to_hsdma_vdesc() 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() 573 if (unlikely(!cb->vd)) { in mtk_hsdma_free_rooms_in_ring() 604 cb->vd = 0; in mtk_hsdma_free_rooms_in_ring() 664 struct virt_dma_desc *vd; in mtk_hsdma_find_active_desc() local 668 return vd; in mtk_hsdma_find_active_desc() 672 return vd; in mtk_hsdma_find_active_desc() [all …]
|
| A D | mtk-cqdma.c | 80 struct virt_dma_desc vd; member 161 return container_of(vd, struct mtk_cqdma_vdesc, vd); in to_cqdma_vdesc() 202 kfree(to_cqdma_vdesc(vd)); in mtk_cqdma_vdesc_free() 281 cvd = to_cqdma_vdesc(vd); in mtk_cqdma_issue_vchan_pending() 291 list_del(&vd->node); in mtk_cqdma_issue_vchan_pending() 423 struct virt_dma_desc *vd; in mtk_cqdma_find_active_desc() local 430 return vd; in mtk_cqdma_find_active_desc() 436 return vd; in mtk_cqdma_find_active_desc() 447 struct virt_dma_desc *vd; in mtk_cqdma_tx_status() local 460 if (vd) { in mtk_cqdma_tx_status() [all …]
|
| /linux/arch/powerpc/include/asm/vdso/ |
| A D | gettimeofday.h | 152 const struct vdso_data *vd) 161 const struct vdso_data *__arch_get_timens_vdso_data(const struct vdso_data *vd) 163 return (void *)vd + PAGE_SIZE; 167 static inline bool vdso_clocksource_ok(const struct vdso_data *vd) 208 const struct vdso_data *vd); 210 const struct vdso_data *vd); 213 const struct vdso_data *vd); 215 const struct vdso_data *vd); 217 const struct vdso_data *vd); 220 const struct vdso_data *vd); [all …]
|
| /linux/arch/arm/vfp/ |
| A D | vfpdouble.c | 63 vd->exponent -= bits - 1; in vfp_double_normalise_denormal() 64 vd->significand <<= bits; in vfp_double_normalise_denormal() 81 if (vd->exponent == 2047 && (vd->significand == 0 || exceptions)) in vfp_double_normaliseround() 88 vd->exponent = 0; in vfp_double_normaliseround() 92 exponent = vd->exponent; in vfp_double_normaliseround() 104 vd->exponent = exponent; in vfp_double_normaliseround() 117 vd->exponent = exponent; in vfp_double_normaliseround() 150 vd->exponent = exponent; in vfp_double_normaliseround() 174 vd->exponent = 2045; in vfp_double_normaliseround() 178 vd->significand = 0; in vfp_double_normaliseround() [all …]
|
| /linux/drivers/clk/versatile/ |
| A D | icst.c | 76 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()
|
| /linux/sound/core/ |
| A D | control.c | 563 if (kctl->vd[idx].owner != NULL && kctl->vd[idx].owner != file) { in snd_ctl_remove_user_ctl() 600 vd = &kctl->vd[index_offset]; in snd_ctl_activate_id() 1005 vd = &kctl->vd[index_offset]; in __snd_ctl_elem_info() 1008 if (vd->owner) { in __snd_ctl_elem_info() 1074 vd = &kctl->vd[index_offset]; in snd_ctl_elem_read() 1148 vd = &kctl->vd[index_offset]; in snd_ctl_elem_write() 1150 (file && vd->owner && vd->owner != file)) { in snd_ctl_elem_write() 1215 vd = &kctl->vd[snd_ctl_get_ioff(kctl, &id)]; in snd_ctl_elem_lock() 1243 vd = &kctl->vd[snd_ctl_get_ioff(kctl, &id)]; in snd_ctl_elem_unlock() 1685 vd->owner != NULL && vd->owner != file) in call_tlv_handler() [all …]
|
| /linux/drivers/dma/sh/ |
| A D | usb-dmac.c | 52 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() 507 struct virt_dma_desc *vd; in usb_dmac_chan_get_residue() local 513 if (!vd) in usb_dmac_chan_get_residue() 515 desc = to_usb_dmac_desc(vd); in usb_dmac_chan_get_residue() [all …]
|
| /linux/drivers/misc/cxl/ |
| A D | flash.c | 68 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 …]
|
| /linux/drivers/media/radio/ |
| A D | tea575x.c | 522 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() 530 tea->vd.device_caps |= V4L2_CAP_HW_FREQ_SEEK; in snd_tea575x_init() 533 tea->vd.fops = &tea->fops; in snd_tea575x_init() 539 tea->vd.ctrl_handler = &tea->ctrl_handler; in snd_tea575x_init() 564 v4l2_ctrl_handler_free(tea->vd.ctrl_handler); in snd_tea575x_init() 574 video_unregister_device(&tea->vd); in snd_tea575x_exit() [all …]
|
| /linux/drivers/dma/dw-edma/ |
| A D | dw-edma-core.c | 40 return container_of(vd, struct dw_edma_desc, vd); in vd2dw_edma_desc() 178 struct virt_dma_desc *vd; in dw_edma_start_transfer() local 181 if (!vd) in dw_edma_start_transfer() 184 desc = vd2dw_edma_desc(vd); in dw_edma_start_transfer() 296 struct virt_dma_desc *vd; in dw_edma_device_tx_status() local 313 if (vd) { in dw_edma_device_tx_status() 549 if (vd) { in dw_edma_done_interrupt() 557 list_del(&vd->node); in dw_edma_done_interrupt() 564 list_del(&vd->node); in dw_edma_done_interrupt() 591 if (vd) { in dw_edma_abort_interrupt() [all …]
|