Home
last modified time | relevance | path

Searched refs:vp (Results 1 – 25 of 130) sorted by relevance

123456

/linux/sound/synth/emux/
H A Demux_synth.c34 static void terminate_voice(struct snd_emux *emu, struct snd_emux_voice *vp, int free);
35 static void update_voice(struct snd_emux *emu, struct snd_emux_voice *vp, int update);
36 static void setup_voice(struct snd_emux_voice *vp);
37 static int calc_pan(struct snd_emux_voice *vp);
38 static int calc_volume(struct snd_emux_voice *vp);
39 static int calc_pitch(struct snd_emux_voice *vp);
50 struct snd_emux_voice *vp; in snd_emux_note_on() local
88 vp = emu->ops.get_voice(emu, port); in snd_emux_note_on()
89 if (vp == NULL || vp->ch < 0) in snd_emux_note_on()
91 if (STATE_IS_PLAYING(vp->state)) in snd_emux_note_on()
[all …]
H A Demux_proc.c50 struct snd_emux_voice *vp = &emu->voices[0]; in snd_emux_proc_info_read()
53 vp->reg.parm.moddelay, in snd_emux_proc_info_read()
54 vp->reg.parm.modatkhld, in snd_emux_proc_info_read()
55 vp->reg.parm.moddcysus, in snd_emux_proc_info_read()
56 vp->reg.parm.modrelease); in snd_emux_proc_info_read()
58 vp->reg.parm.voldelay, in snd_emux_proc_info_read()
59 vp->reg.parm.volatkhld, in snd_emux_proc_info_read()
60 vp->reg.parm.voldcysus, in snd_emux_proc_info_read()
61 vp->reg.parm.volrelease); in snd_emux_proc_info_read()
63 vp->reg.parm.lfo1delay, in snd_emux_proc_info_read()
[all …]
/linux/sound/pci/emu10k1/
H A Demu10k1_callback.c30 static int start_voice(struct snd_emux_voice *vp);
31 static void trigger_voice(struct snd_emux_voice *vp);
32 static void release_voice(struct snd_emux_voice *vp);
33 static void update_voice(struct snd_emux_voice *vp, int update);
34 static void terminate_voice(struct snd_emux_voice *vp);
35 static void free_voice(struct snd_emux_voice *vp);
36 static u32 make_fmmod(struct snd_emux_voice *vp);
37 static u32 make_fm2frq2(struct snd_emux_voice *vp);
83 struct snd_emux_voice *vp; in snd_emu10k1_synth_get_voice() local
93 vp = &emu->voices[best[i].voice]; in snd_emu10k1_synth_get_voice()
[all …]
/linux/arch/um/drivers/
H A Dvector_kern.c72 static int vector_mmsg_rx(struct vector_private *vp, int budget);
105 static void vector_reset_stats(struct vector_private *vp) in vector_reset_stats() argument
113 spin_lock(&vp->rx_queue->head_lock); in vector_reset_stats()
114 vp->estats.rx_queue_max = 0; in vector_reset_stats()
115 vp->estats.rx_queue_running_average = 0; in vector_reset_stats()
116 vp->estats.rx_encaps_errors = 0; in vector_reset_stats()
117 vp->estats.sg_ok = 0; in vector_reset_stats()
118 vp->estats.sg_linearized = 0; in vector_reset_stats()
119 spin_unlock(&vp->rx_queue->head_lock); in vector_reset_stats()
125 spin_lock(&vp->tx_queue->head_lock); in vector_reset_stats()
[all …]
H A Dvector_transports.c67 struct sk_buff *skb, struct vector_private *vp) in l2tpv3_form_header() argument
69 struct uml_l2tpv3_data *td = vp->transport_data; in l2tpv3_form_header()
97 struct sk_buff *skb, struct vector_private *vp) in gre_form_header() argument
99 struct uml_gre_data *td = vp->transport_data; in gre_form_header()
115 struct sk_buff *skb, struct vector_private *vp) in raw_form_header() argument
131 uint8_t *header, struct sk_buff *skb, struct vector_private *vp) in l2tpv3_verify_header() argument
133 struct uml_l2tpv3_data *td = vp->transport_data; in l2tpv3_verify_header()
152 netdev_err(vp->dev, "uml_l2tpv3: unknown cookie id"); in l2tpv3_verify_header()
159 netdev_err(vp->dev, "uml_l2tpv3: session mismatch"); in l2tpv3_verify_header()
166 uint8_t *header, struct sk_buff *skb, struct vector_private *vp) in gre_verify_header() argument
[all …]
/linux/drivers/net/ethernet/3com/
H A D3c59x.c660 static void window_set(struct vortex_private *vp, int window) in window_set() argument
662 if (window != vp->window) { in window_set()
663 iowrite16(SelectWindow + window, vp->ioaddr + EL3_CMD); in window_set()
664 vp->window = window; in window_set()
670 window_read ## size(struct vortex_private *vp, int window, int addr) \
674 spin_lock_irqsave(&vp->window_lock, flags); \
675 window_set(vp, window); \
676 ret = ioread ## size(vp->ioaddr + addr); \
677 spin_unlock_irqrestore(&vp->window_lock, flags); \
681 window_write ## size(struct vortex_private *vp, u ## size value, \
[all …]
H A D3c515.c460 struct corkscrew_private *vp = netdev_priv(dev); in cleanup_card() local
461 list_del_init(&vp->list); in cleanup_card()
466 if (vp->dev) in cleanup_card()
467 pnp_device_detach(to_pnp_dev(vp->dev)); in cleanup_card()
567 struct corkscrew_private *vp = netdev_priv(dev); in corkscrew_setup() local
576 vp->dev = &idev->dev; in corkscrew_setup()
587 vp->product_name = "3c515"; in corkscrew_setup()
588 vp->options = dev->mem_start; in corkscrew_setup()
589 vp->our_dev = dev; in corkscrew_setup()
591 if (!vp->options) { in corkscrew_setup()
[all …]
/linux/sound/isa/sb/
H A Demu8000_callback.c18 static int start_voice(struct snd_emux_voice *vp);
19 static void trigger_voice(struct snd_emux_voice *vp);
20 static void release_voice(struct snd_emux_voice *vp);
21 static void update_voice(struct snd_emux_voice *vp, int update);
23 static void terminate_voice(struct snd_emux_voice *vp);
32 static void set_pitch(struct snd_emu8000 *hw, struct snd_emux_voice *vp);
33 static void set_volume(struct snd_emu8000 *hw, struct snd_emux_voice *vp);
34 static void set_pan(struct snd_emu8000 *hw, struct snd_emux_voice *vp);
35 static void set_fmmod(struct snd_emu8000 *hw, struct snd_emux_voice *vp);
36 static void set_tremfreq(struct snd_emu8000 *hw, struct snd_emux_voice *vp);
[all …]
/linux/arch/arm/mach-omap2/
H A Dvp.c15 struct omap_vp_instance *vp = voltdm->vp; in _vp_set_init_voltage() local
21 vpconfig = voltdm->read(vp->vpconfig); in _vp_set_init_voltage()
22 vpconfig &= ~(vp->common->vpconfig_initvoltage_mask | in _vp_set_init_voltage()
23 vp->common->vpconfig_forceupdate | in _vp_set_init_voltage()
24 vp->common->vpconfig_initvdd); in _vp_set_init_voltage()
25 vpconfig |= vsel << __ffs(vp->common->vpconfig_initvoltage_mask); in _vp_set_init_voltage()
26 voltdm->write(vpconfig, vp->vpconfig); in _vp_set_init_voltage()
29 voltdm->write((vpconfig | vp->common->vpconfig_initvdd), in _vp_set_init_voltage()
30 vp->vpconfig); in _vp_set_init_voltage()
33 voltdm->write(vpconfig, vp->vpconfig); in _vp_set_init_voltage()
[all …]
/linux/drivers/media/platform/samsung/s3c-camif/
H A Dcamif-capture.c44 static void camif_cfg_video_path(struct camif_vp *vp) in camif_cfg_video_path() argument
46 WARN_ON(s3c_camif_get_scaler_config(vp, &vp->scaler)); in camif_cfg_video_path()
47 camif_hw_set_scaler(vp); in camif_cfg_video_path()
48 camif_hw_set_flip(vp); in camif_cfg_video_path()
49 camif_hw_set_target_format(vp); in camif_cfg_video_path()
50 camif_hw_set_output_dma(vp); in camif_cfg_video_path()
53 static void camif_prepare_dma_offset(struct camif_vp *vp) in camif_prepare_dma_offset() argument
55 struct camif_frame *f = &vp->out_frame; in camif_prepare_dma_offset()
65 static int s3c_camif_hw_init(struct camif_dev *camif, struct camif_vp *vp) in s3c_camif_hw_init() argument
69 if (camif->sensor.sd == NULL || vp->out_fmt == NULL) in s3c_camif_hw_init()
[all …]
H A Dcamif-regs.c38 void camif_hw_clear_pending_irq(struct camif_vp *vp) in camif_hw_clear_pending_irq() argument
40 u32 cfg = camif_read(vp->camif, S3C_CAMIF_REG_CIGCTRL); in camif_hw_clear_pending_irq()
41 cfg |= CIGCTRL_IRQ_CLR(vp->id); in camif_hw_clear_pending_irq()
42 camif_write(vp->camif, S3C_CAMIF_REG_CIGCTRL, cfg); in camif_hw_clear_pending_irq()
79 cfg = camif_read(camif, S3C_CAMIF_REG_CIIMGEFF(camif->vp->offset)); in camif_hw_set_effect()
92 camif_write(camif, S3C_CAMIF_REG_CIIMGEFF(camif->vp->offset), cfg); in camif_hw_set_effect()
151 void camif_hw_clear_fifo_overflow(struct camif_vp *vp) in camif_hw_clear_fifo_overflow() argument
153 struct camif_dev *camif = vp->camif; in camif_hw_clear_fifo_overflow()
157 if (vp->id == 0) in camif_hw_clear_fifo_overflow()
200 void camif_hw_set_output_addr(struct camif_vp *vp, in camif_hw_set_output_addr() argument
[all …]
H A Dcamif-core.h298 struct camif_vp vp[CAMIF_VP_NUM]; member
335 const struct camif_fmt *s3c_camif_find_format(struct camif_vp *vp,
343 int s3c_camif_get_scaler_config(struct camif_vp *vp,
346 static inline void camif_active_queue_add(struct camif_vp *vp, in camif_active_queue_add() argument
349 list_add_tail(&buf->list, &vp->active_buf_q); in camif_active_queue_add()
350 vp->active_buffers++; in camif_active_queue_add()
354 struct camif_vp *vp) in camif_active_queue_pop() argument
356 struct camif_buffer *buf = list_first_entry(&vp->active_buf_q, in camif_active_queue_pop()
359 vp->active_buffers--; in camif_active_queue_pop()
364 struct camif_vp *vp, int index) in camif_active_queue_peek() argument
[all …]
/linux/drivers/net/ethernet/cisco/enic/
H A Dvnic_vic.c14 struct vic_provinfo *vp; in vic_provinfo_alloc() local
19 vp = kzalloc(VIC_PROVINFO_MAX_DATA, flags); in vic_provinfo_alloc()
20 if (!vp) in vic_provinfo_alloc()
23 memcpy(vp->oui, oui, sizeof(vp->oui)); in vic_provinfo_alloc()
24 vp->type = type; in vic_provinfo_alloc()
25 vp->length = htonl(sizeof(vp->num_tlvs)); in vic_provinfo_alloc()
27 return vp; in vic_provinfo_alloc()
30 void vic_provinfo_free(struct vic_provinfo *vp) in vic_provinfo_free() argument
32 kfree(vp); in vic_provinfo_free()
35 int vic_provinfo_add_tlv(struct vic_provinfo *vp, u16 type, u16 length, in vic_provinfo_add_tlv() argument
[all …]
/linux/drivers/gpu/drm/rockchip/
H A Drockchip_drm_vop2.h264 unsigned long (*setup_intf_mux)(struct vop2_video_port *vp, int ep_id, u32 polflags);
265 void (*setup_bg_dly)(struct vop2_video_port *vp);
266 void (*setup_overlay)(struct vop2_video_port *vp);
275 const struct vop2_video_port_data *vp; member
422 #define RK3568_VP_LINE_FLAG(vp) (0x70 + (vp) * 0x4) argument
429 #define RK3568_VP_INT_EN(vp) (0xA0 + (vp) * 0x10) argument
430 #define RK3568_VP_INT_CLR(vp) (0xA4 + (vp) * 0x10) argument
431 #define RK3568_VP_INT_STATUS(vp) (0xA8 + (vp) * 0x10) argument
432 #define RK3568_VP_INT_RAW_STATUS(vp) (0xAC + (vp) * 0x10) argument
459 #define RK3576_OVL_CTRL(vp) (0x600 + (vp) * 0x100) argument
[all …]
H A Drockchip_drm_vop2.c711 static void vop2_setup_csc_mode(struct vop2_video_port *vp, in vop2_setup_csc_mode() argument
715 struct rockchip_crtc_state *vcstate = to_rockchip_crtc_state(vp->crtc.state); in vop2_setup_csc_mode()
742 static void vop2_crtc_enable_irq(struct vop2_video_port *vp, u32 irq) in vop2_crtc_enable_irq() argument
744 struct vop2 *vop2 = vp->vop2; in vop2_crtc_enable_irq()
746 vop2_writel(vop2, RK3568_VP_INT_CLR(vp->id), irq << 16 | irq); in vop2_crtc_enable_irq()
747 vop2_writel(vop2, RK3568_VP_INT_EN(vp->id), irq << 16 | irq); in vop2_crtc_enable_irq()
750 static void vop2_crtc_disable_irq(struct vop2_video_port *vp, u32 irq) in vop2_crtc_disable_irq() argument
752 struct vop2 *vop2 = vp->vop2; in vop2_crtc_disable_irq()
754 vop2_writel(vop2, RK3568_VP_INT_EN(vp->id), irq << 16); in vop2_crtc_disable_irq()
875 static bool vop2_vp_dsp_lut_is_enabled(struct vop2_video_port *vp) in vop2_vp_dsp_lut_is_enabled() argument
[all …]
H A Drockchip_vop2_reg.c1372 static unsigned long rk3568_set_intf_mux(struct vop2_video_port *vp, int id, u32 polflags) in rk3568_set_intf_mux() argument
1374 struct vop2 *vop2 = vp->vop2; in rk3568_set_intf_mux()
1375 struct drm_crtc *crtc = &vp->crtc; in rk3568_set_intf_mux()
1385 FIELD_PREP(RK3568_SYS_DSP_INFACE_EN_RGB_MUX, vp->id); in rk3568_set_intf_mux()
1396 FIELD_PREP(RK3568_SYS_DSP_INFACE_EN_HDMI_MUX, vp->id); in rk3568_set_intf_mux()
1403 FIELD_PREP(RK3568_SYS_DSP_INFACE_EN_EDP_MUX, vp->id); in rk3568_set_intf_mux()
1410 FIELD_PREP(RK3568_SYS_DSP_INFACE_EN_MIPI0_MUX, vp->id); in rk3568_set_intf_mux()
1417 FIELD_PREP(RK3568_SYS_DSP_INFACE_EN_MIPI1_MUX, vp->id); in rk3568_set_intf_mux()
1424 FIELD_PREP(RK3568_SYS_DSP_INFACE_EN_LVDS0_MUX, vp->id); in rk3568_set_intf_mux()
1431 FIELD_PREP(RK3568_SYS_DSP_INFACE_EN_LVDS1_MUX, vp->id); in rk3568_set_intf_mux()
[all …]
/linux/drivers/net/ethernet/sun/
H A Dsunvnet.c69 struct vnet *vp = netdev_priv(dev); in vnet_get_msglevel() local
71 return vp->msg_enable; in vnet_get_msglevel()
76 struct vnet *vp = netdev_priv(dev); in vnet_set_msglevel() local
78 vp->msg_enable = value; in vnet_set_msglevel()
102 struct vnet *vp = (struct vnet *)netdev_priv(dev); in vnet_get_sset_count() local
107 + (NUM_VNET_PORT_STATS * vp->nports); in vnet_get_sset_count()
115 struct vnet *vp = (struct vnet *)netdev_priv(dev); in vnet_get_strings() local
124 list_for_each_entry_rcu(port, &vp->port_list, list) { in vnet_get_strings()
146 struct vnet *vp = (struct vnet *)netdev_priv(dev); in vnet_get_ethtool_stats() local
163 data[i++] = vp->nports; in vnet_get_ethtool_stats()
[all …]
H A Dldmvsw.c74 return port->vp->msg_enable; in vsw_get_msglevel()
81 port->vp->msg_enable = value; in vsw_set_msglevel()
124 return sunvnet_set_rx_mode_common(dev, port->vp); in vsw_set_rx_mode()
145 return sunvnet_poll_controller_common(dev, port->vp); in vsw_poll_controller()
170 struct vnet *vp; in vsw_get_vnet() local
195 vp = NULL; in vsw_get_vnet()
199 vp = iter; in vsw_get_vnet()
204 if (!vp) { in vsw_get_vnet()
205 vp = kzalloc(sizeof(*vp), GFP_KERNEL); in vsw_get_vnet()
206 if (unlikely(!vp)) { in vsw_get_vnet()
[all …]
/linux/drivers/hv/
H A Dmshv_root_main.c296 mshv_suspend_vp(const struct mshv_vp *vp, bool *message_in_flight) in mshv_suspend_vp() argument
312 ret = mshv_set_vp_registers(vp->vp_index, vp->vp_partition->pt_id, in mshv_suspend_vp()
315 vp_err(vp, "Failed to explicitly suspend vCPU\n"); in mshv_suspend_vp()
319 ret = mshv_get_vp_registers(vp->vp_index, vp->vp_partition->pt_id, in mshv_suspend_vp()
322 vp_err(vp, "Failed to get intercept suspend state\n"); in mshv_suspend_vp()
342 static long mshv_run_vp_with_hyp_scheduler(struct mshv_vp *vp) in mshv_run_vp_with_hyp_scheduler() argument
352 ret = mshv_set_vp_registers(vp->vp_index, vp->vp_partition->pt_id, in mshv_run_vp_with_hyp_scheduler()
355 vp_err(vp, "Failed to resume vp execution. %lx\n", ret); in mshv_run_vp_with_hyp_scheduler()
359 ret = wait_event_interruptible(vp->run.vp_suspend_queue, in mshv_run_vp_with_hyp_scheduler()
360 vp->run.kicked_by_hv == 1); in mshv_run_vp_with_hyp_scheduler()
[all …]
/linux/fs/afs/
H A Dfsclient.c241 struct afs_vnode_param *vp = &op->file[op->fetch_status.which]; in afs_deliver_fs_fetch_status() local
251 xdr_decode_AFSFetchStatus(&bp, call, &vp->scb); in afs_deliver_fs_fetch_status()
252 xdr_decode_AFSCallBack(&bp, call, &vp->scb); in afs_deliver_fs_fetch_status()
274 struct afs_vnode_param *vp = &op->file[op->fetch_status.which]; in afs_fs_fetch_status() local
279 key_serial(op->key), vp->fid.vid, vp->fid.vnode); in afs_fs_fetch_status()
289 bp[1] = htonl(vp->fid.vid); in afs_fs_fetch_status()
290 bp[2] = htonl(vp->fid.vnode); in afs_fs_fetch_status()
291 bp[3] = htonl(vp->fid.unique); in afs_fs_fetch_status()
293 call->fid = vp->fid; in afs_fs_fetch_status()
294 trace_afs_make_fs_call(call, &vp->fid); in afs_fs_fetch_status()
[all …]
H A Dinode.c154 struct afs_vnode_param *vp, in afs_inode_init_from_status() argument
157 struct afs_file_status *status = &vp->scb.status; in afs_inode_init_from_status()
162 vp->fid.vid, vp->fid.vnode, vp->fid.unique, in afs_inode_init_from_status()
234 if (!vp->scb.have_cb) { in afs_inode_init_from_status()
240 afs_set_cb_promise(vnode, vp->scb.callback.expires_at, in afs_inode_init_from_status()
252 struct afs_vnode_param *vp) in afs_apply_status() argument
254 struct afs_file_status *status = &vp->scb.status; in afs_apply_status()
255 struct afs_vnode *vnode = vp->vnode; in afs_apply_status()
261 bool change_size = vp->set_size; in afs_apply_status()
264 vp->fid.vid, vp->fid.vnode, vp->fid.unique, in afs_apply_status()
[all …]
/linux/arch/sh/kernel/cpu/shmobile/
H A Dpm.c82 void *vp; in sh_mobile_register_self_refresh() local
100 vp = sdp + 1; in sh_mobile_register_self_refresh()
104 memcpy(vp, &sh_mobile_sleep_enter_start, n); in sh_mobile_register_self_refresh()
105 vp += roundup(n, 4); in sh_mobile_register_self_refresh()
109 memcpy(vp, pre_start, n); in sh_mobile_register_self_refresh()
110 sdp->sf_pre = (unsigned long)vp; in sh_mobile_register_self_refresh()
111 vp += roundup(n, 4); in sh_mobile_register_self_refresh()
115 memcpy(vp, post_start, n); in sh_mobile_register_self_refresh()
116 sdp->sf_post = (unsigned long)vp; in sh_mobile_register_self_refresh()
117 vp += roundup(n, 4); in sh_mobile_register_self_refresh()
[all …]
/linux/sound/drivers/opl3/
H A Dopl3_midi.c139 struct snd_opl3_voice *vp, *vp2; in opl3_get_voice() local
166 vp = &opl3->voices[i]; in opl3_get_voice()
168 if (vp->state == SNDRV_OPL3_ST_NOT_AVAIL) in opl3_get_voice()
173 voice_time = vp->time; in opl3_get_voice()
184 if (vp->state) in opl3_get_voice()
200 else if (vp->state) in opl3_get_voice()
204 if (vp->state) in opl3_get_voice()
242 struct snd_opl3_voice *vp = &opl3->voices[i]; in snd_opl3_timer_func() local
243 if (vp->state > 0 && vp->note_off_check) { in snd_opl3_timer_func()
244 if (vp->note_off == jiffies) in snd_opl3_timer_func()
[all …]
/linux/lib/crypto/mpi/
H A Dmpih-mul.c21 #define MPN_MUL_N_RECURSE(prodp, up, vp, size, tspace) \ argument
24 mul_n_basecase(prodp, up, vp, size); \
26 mul_n(prodp, up, vp, size, tspace); \
55 mul_n_basecase(mpi_ptr_t prodp, mpi_ptr_t up, mpi_ptr_t vp, mpi_size_t size) in mul_n_basecase() argument
63 v_limb = vp[0]; in mul_n_basecase()
79 v_limb = vp[i]; in mul_n_basecase()
95 mul_n(mpi_ptr_t prodp, mpi_ptr_t up, mpi_ptr_t vp, in mul_n() argument
112 MPN_MUL_N_RECURSE(prodp, up, vp, esize, tspace); in mul_n()
113 cy_limb = mpihelp_addmul_1(prodp + esize, up, esize, vp[esize]); in mul_n()
115 cy_limb = mpihelp_addmul_1(prodp + esize, vp, size, up[esize]); in mul_n()
[all …]
H A Dmpi-mul.c21 mpi_ptr_t up, vp, wp; in mpi_mul() local
35 vp = u->d; in mpi_mul()
42 vp = v->d; in mpi_mul()
50 if (wp == up || wp == vp) { in mpi_mul()
68 if (wp == vp) in mpi_mul()
69 vp = up; in mpi_mul()
72 } else if (wp == vp) { in mpi_mul()
74 vp = tmp_limb = mpi_alloc_limb_space(vsize); in mpi_mul()
75 if (!vp) in mpi_mul()
78 MPN_COPY(vp, wp, vsize); in mpi_mul()
[all …]

123456