Home
last modified time | relevance | path

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

123

/drivers/net/ethernet/3com/
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 …]
D3c515.c474 struct corkscrew_private *vp = netdev_priv(dev); in cleanup_card() local
475 list_del_init(&vp->list); in cleanup_card()
480 if (vp->dev) in cleanup_card()
481 pnp_device_detach(to_pnp_dev(vp->dev)); in cleanup_card()
581 struct corkscrew_private *vp = netdev_priv(dev); in corkscrew_setup() local
589 vp->dev = &idev->dev; in corkscrew_setup()
600 vp->product_name = "3c515"; in corkscrew_setup()
601 vp->options = dev->mem_start; in corkscrew_setup()
602 vp->our_dev = dev; in corkscrew_setup()
604 if (!vp->options) { in corkscrew_setup()
[all …]
/drivers/media/platform/s3c-camif/
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 …]
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 …]
Dcamif-core.h288 struct camif_vp vp[CAMIF_VP_NUM]; member
325 const struct camif_fmt *s3c_camif_find_format(struct camif_vp *vp,
333 int s3c_camif_get_scaler_config(struct camif_vp *vp,
336 static inline void camif_active_queue_add(struct camif_vp *vp, in camif_active_queue_add() argument
339 list_add_tail(&buf->list, &vp->active_buf_q); in camif_active_queue_add()
340 vp->active_buffers++; in camif_active_queue_add()
344 struct camif_vp *vp) in camif_active_queue_pop() argument
346 struct camif_buffer *buf = list_first_entry(&vp->active_buf_q, in camif_active_queue_pop()
349 vp->active_buffers--; in camif_active_queue_pop()
354 struct camif_vp *vp, int index) in camif_active_queue_peek() argument
[all …]
Dcamif-regs.h241 void camif_hw_clear_pending_irq(struct camif_vp *vp);
242 void camif_hw_clear_fifo_overflow(struct camif_vp *vp);
243 void camif_hw_set_lastirq(struct camif_vp *vp, int enable);
244 void camif_hw_set_input_path(struct camif_vp *vp);
245 void camif_hw_enable_scaler(struct camif_vp *vp, bool on);
246 void camif_hw_enable_capture(struct camif_vp *vp);
247 void camif_hw_disable_capture(struct camif_vp *vp);
251 void camif_hw_set_scaler(struct camif_vp *vp);
252 void camif_hw_set_flip(struct camif_vp *vp);
253 void camif_hw_set_output_dma(struct camif_vp *vp);
[all …]
Dcamif-core.c100 const struct camif_fmt *s3c_camif_find_format(struct camif_vp *vp, in s3c_camif_find_format() argument
113 if (vp && !(vp->fmt_flags & fmt->flags)) in s3c_camif_find_format()
142 int s3c_camif_get_scaler_config(struct camif_vp *vp, in s3c_camif_get_scaler_config() argument
145 struct v4l2_rect *camif_crop = &vp->camif->camif_crop; in s3c_camif_get_scaler_config()
148 int target_x = vp->out_frame.rect.width; in s3c_camif_get_scaler_config()
149 int target_y = vp->out_frame.rect.height; in s3c_camif_get_scaler_config()
152 if (vp->rotation == 90 || vp->rotation == 270) in s3c_camif_get_scaler_config()
266 &camif->vp[i - 1].vdev.entity, 0, in camif_create_media_links()
378 struct camif_vp *vp = &camif->vp[i]; in camif_request_irqs() local
380 init_waitqueue_head(&vp->irq_queue); in camif_request_irqs()
[all …]
/drivers/net/ethernet/cisco/enic/
Dvnic_vic.c29 struct vic_provinfo *vp; in vic_provinfo_alloc() local
34 vp = kzalloc(VIC_PROVINFO_MAX_DATA, flags); in vic_provinfo_alloc()
35 if (!vp) in vic_provinfo_alloc()
38 memcpy(vp->oui, oui, sizeof(vp->oui)); in vic_provinfo_alloc()
39 vp->type = type; in vic_provinfo_alloc()
40 vp->length = htonl(sizeof(vp->num_tlvs)); in vic_provinfo_alloc()
42 return vp; in vic_provinfo_alloc()
45 void vic_provinfo_free(struct vic_provinfo *vp) in vic_provinfo_free() argument
47 kfree(vp); in vic_provinfo_free()
50 int vic_provinfo_add_tlv(struct vic_provinfo *vp, u16 type, u16 length, in vic_provinfo_add_tlv() argument
[all …]
Denic_pp.c73 struct vic_provinfo *vp; in enic_set_port_profile() local
88 vp = vic_provinfo_alloc(GFP_KERNEL, oui, in enic_set_port_profile()
90 if (!vp) in enic_set_port_profile()
93 VIC_PROVINFO_ADD_TLV(vp, in enic_set_port_profile()
108 VIC_PROVINFO_ADD_TLV(vp, in enic_set_port_profile()
113 VIC_PROVINFO_ADD_TLV(vp, in enic_set_port_profile()
119 VIC_PROVINFO_ADD_TLV(vp, in enic_set_port_profile()
126 VIC_PROVINFO_ADD_TLV(vp, in enic_set_port_profile()
131 VIC_PROVINFO_ADD_TLV(vp, in enic_set_port_profile()
135 ENIC_DEVCMD_PROXY_BY_INDEX(vf, err, enic, vnic_dev_init_prov2, (u8 *)vp, in enic_set_port_profile()
[all …]
Dvnic_vic.h65 #define VIC_PROVINFO_ADD_TLV(vp, tlvtype, tlvlen, data) \ argument
67 err = vic_provinfo_add_tlv(vp, tlvtype, tlvlen, data); \
78 void vic_provinfo_free(struct vic_provinfo *vp);
79 int vic_provinfo_add_tlv(struct vic_provinfo *vp, u16 type, u16 length,
81 size_t vic_provinfo_size(struct vic_provinfo *vp);
/drivers/net/ethernet/sun/
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
125 list_for_each_entry_rcu(port, &vp->port_list, list) { in vnet_get_strings()
160 struct vnet *vp = (struct vnet *)netdev_priv(dev); in vnet_get_ethtool_stats() local
177 data[i++] = vp->nports; in vnet_get_ethtool_stats()
[all …]
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()
146 return sunvnet_poll_controller_common(dev, port->vp); in vsw_poll_controller()
171 struct vnet *vp; in vsw_get_vnet() local
196 vp = NULL; in vsw_get_vnet()
200 vp = iter; in vsw_get_vnet()
205 if (!vp) { in vsw_get_vnet()
206 vp = kzalloc(sizeof(*vp), GFP_KERNEL); in vsw_get_vnet()
207 if (unlikely(!vp)) { in vsw_get_vnet()
[all …]
Dsunvnet_common.h70 struct vnet *vp; member
130 ((__port)->vsw ? (__port)->dev : (__port)->vp->dev)
136 void sunvnet_set_rx_mode_common(struct net_device *dev, struct vnet *vp);
144 void sunvnet_poll_controller_common(struct net_device *dev, struct vnet *vp);
Dsunvnet_common.c1566 static struct vnet_mcast_entry *__vnet_mc_find(struct vnet *vp, u8 *addr) in __vnet_mc_find() argument
1570 for (m = vp->mcast_list; m; m = m->next) { in __vnet_mc_find()
1577 static void __update_mc_list(struct vnet *vp, struct net_device *dev) in __update_mc_list() argument
1584 m = __vnet_mc_find(vp, ha->addr); in __update_mc_list()
1597 m->next = vp->mcast_list; in __update_mc_list()
1598 vp->mcast_list = m; in __update_mc_list()
1603 static void __send_mc_list(struct vnet *vp, struct vnet_port *port) in __send_mc_list() argument
1618 for (m = vp->mcast_list; m; m = m->next) { in __send_mc_list()
1640 pp = &vp->mcast_list; in __send_mc_list()
1666 void sunvnet_set_rx_mode_common(struct net_device *dev, struct vnet *vp) in sunvnet_set_rx_mode_common() argument
[all …]
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_sriov_pf.c75 struct qlcnic_vport *vp; in qlcnic_sriov_pf_cal_res_limit() local
109 vp = sriov->vf_info[id].vp; in qlcnic_sriov_pf_cal_res_limit()
110 info->min_tx_bw = vp->min_tx_bw; in qlcnic_sriov_pf_cal_res_limit()
111 info->max_tx_bw = vp->max_tx_bw; in qlcnic_sriov_pf_cal_res_limit()
237 struct qlcnic_vport *vp; in qlcnic_sriov_pf_reset_vport_handle() local
246 vp = sriov->vf_info[index].vp; in qlcnic_sriov_pf_reset_vport_handle()
247 vp->handle = 0; in qlcnic_sriov_pf_reset_vport_handle()
255 struct qlcnic_vport *vp; in qlcnic_sriov_pf_set_vport_handle() local
264 vp = sriov->vf_info[index].vp; in qlcnic_sriov_pf_set_vport_handle()
265 vp->handle = vport_handle; in qlcnic_sriov_pf_set_vport_handle()
[all …]
/drivers/media/usb/pvrusb2/
Dpvrusb2-v4l2.c868 static void pvr2_v4l2_destroy_no_lock(struct pvr2_v4l2 *vp) in pvr2_v4l2_destroy_no_lock() argument
870 if (vp->dev_video) { in pvr2_v4l2_destroy_no_lock()
871 pvr2_v4l2_dev_destroy(vp->dev_video); in pvr2_v4l2_destroy_no_lock()
872 vp->dev_video = NULL; in pvr2_v4l2_destroy_no_lock()
874 if (vp->dev_radio) { in pvr2_v4l2_destroy_no_lock()
875 pvr2_v4l2_dev_destroy(vp->dev_radio); in pvr2_v4l2_destroy_no_lock()
876 vp->dev_radio = NULL; in pvr2_v4l2_destroy_no_lock()
879 pvr2_trace(PVR2_TRACE_STRUCT,"Destroying pvr2_v4l2 id=%p",vp); in pvr2_v4l2_destroy_no_lock()
880 pvr2_channel_done(&vp->channel); in pvr2_v4l2_destroy_no_lock()
881 kfree(vp); in pvr2_v4l2_destroy_no_lock()
[all …]
Dpvrusb2-hdw.c344 static int ctrl_channelfreq_get(struct pvr2_ctrl *cptr,int *vp) in ctrl_channelfreq_get() argument
348 *vp = hdw->freqTable[hdw->freqProgSlot-1]; in ctrl_channelfreq_get()
350 *vp = 0; in ctrl_channelfreq_get()
377 static int ctrl_channelprog_get(struct pvr2_ctrl *cptr,int *vp) in ctrl_channelprog_get() argument
379 *vp = cptr->hdw->freqProgSlot; in ctrl_channelprog_get()
392 static int ctrl_channel_get(struct pvr2_ctrl *cptr,int *vp) in ctrl_channel_get() argument
395 *vp = hdw->freqSelector ? hdw->freqSlotRadio : hdw->freqSlotTelevision; in ctrl_channel_get()
417 static int ctrl_freq_get(struct pvr2_ctrl *cptr,int *vp) in ctrl_freq_get() argument
419 *vp = pvr2_hdw_get_cur_freq(cptr->hdw); in ctrl_freq_get()
631 static int ctrl_vres_max_get(struct pvr2_ctrl *cptr,int *vp) in ctrl_vres_max_get() argument
[all …]
/drivers/net/ethernet/neterion/vxge/
Dvxge-traffic.c31 enum vxge_hw_status vxge_hw_vpath_intr_enable(struct __vxge_hw_vpath_handle *vp) in vxge_hw_vpath_intr_enable() argument
38 if (vp == NULL) { in vxge_hw_vpath_intr_enable()
43 vpath = vp->vpath; in vxge_hw_vpath_intr_enable()
158 struct __vxge_hw_vpath_handle *vp) in vxge_hw_vpath_intr_disable() argument
165 if (vp == NULL) { in vxge_hw_vpath_intr_disable()
170 vpath = vp->vpath; in vxge_hw_vpath_intr_disable()
1718 struct __vxge_hw_vpath_handle *vp, in vxge_hw_vpath_mac_addr_add() argument
1728 if (vp == NULL) { in vxge_hw_vpath_mac_addr_add()
1756 status = __vxge_hw_vpath_rts_table_set(vp, in vxge_hw_vpath_mac_addr_add()
1781 struct __vxge_hw_vpath_handle *vp, in vxge_hw_vpath_mac_addr_get() argument
[all …]
Dvxge-config.c2773 __vxge_hw_ring_delete(struct __vxge_hw_vpath_handle *vp) in __vxge_hw_ring_delete() argument
2775 struct __vxge_hw_ring *ring = vp->vpath->ringh; in __vxge_hw_ring_delete()
2782 vp->vpath->ringh = NULL; in __vxge_hw_ring_delete()
2793 __vxge_hw_ring_create(struct __vxge_hw_vpath_handle *vp, in __vxge_hw_ring_create() argument
2806 if ((vp == NULL) || (attr == NULL)) { in __vxge_hw_ring_create()
2811 hldev = vp->vpath->hldev; in __vxge_hw_ring_create()
2812 vp_id = vp->vpath->vp_id; in __vxge_hw_ring_create()
2819 ring = (struct __vxge_hw_ring *)__vxge_hw_channel_allocate(vp, in __vxge_hw_ring_create()
2829 vp->vpath->ringh = ring; in __vxge_hw_ring_create()
2831 ring->vp_reg = vp->vpath->vp_reg; in __vxge_hw_ring_create()
[all …]
/drivers/net/usb/
Dnet1080.c136 u16 *vp = kmalloc(sizeof (u16));
138 if (!vp)
151 retval = nc_register_read(dev, reg, vp);
156 netdev_dbg(dev->net, "reg [0x%x] = 0x%x\n", reg, *vp);
158 kfree(vp);
263 u16 vp; in net1080_reset() local
268 if ((retval = nc_register_read(dev, REG_STATUS, &vp)) < 0) { in net1080_reset()
273 status = vp; in net1080_reset()
276 if ((retval = nc_register_read(dev, REG_USBCTL, &vp)) < 0) { in net1080_reset()
280 usbctl = vp; in net1080_reset()
[all …]
/drivers/video/fbdev/geode/
Dsuspend_gx.c34 memcpy(par->vp, par->vid_regs, sizeof(par->vp)); in gx_save_regs()
140 for (i = 0; i < ARRAY_SIZE(par->vp); i++) { in gx_restore_video_proc()
144 write_vp(par, i, par->vp[i] & ~VP_VCFG_VID_EN); in gx_restore_video_proc()
149 write_vp(par, i, par->vp[i] & in gx_restore_video_proc()
166 write_vp(par, i, par->vp[i]); in gx_restore_video_proc()
190 write_vp(par, VP_VCFG, par->vp[VP_VCFG] & ~VP_VCFG_VID_EN); in gx_disable_graphics()
191 write_vp(par, VP_DCFG, par->vp[VP_DCFG] & ~(VP_DCFG_DAC_BL_EN | in gx_disable_graphics()
225 write_vp(par, VP_VCFG, par->vp[VP_VCFG]); in gx_enable_graphics()
226 write_vp(par, VP_DCFG, par->vp[VP_DCFG]); in gx_enable_graphics()
Dlxfb_ops.c606 memcpy(par->vp, par->vp_regs, sizeof(par->vp)); in lx_save_regs()
736 for (i = 0; i < ARRAY_SIZE(par->vp); i++) { in lx_restore_video_proc()
751 write_vp(par, i, par->vp[i]); in lx_restore_video_proc()
804 write_vp(par, VP_VCFG, par->vp[VP_VCFG]); in lx_restore_regs()
805 write_vp(par, VP_DCFG, par->vp[VP_DCFG]); in lx_restore_regs()
/drivers/scsi/sym53c8xx_2/
Dsym_malloc.c349 m_vtob_p vp = NULL; in __vtobus() local
356 vp = mp->vtob[hc]; in __vtobus()
357 while (vp && vp->vaddr != a) in __vtobus()
358 vp = vp->next; in __vtobus()
360 if (!vp) in __vtobus()
362 b = vp->baddr + (m - a); in __vtobus()
/drivers/scsi/qedf/
Dqedf_fip.c175 struct fip_vn_desc *vp; in qedf_fip_recv() local
257 vp = (struct fip_vn_desc *)desc; in qedf_fip_recv()
261 ntoh24(vp->fd_fc_id), vp->fd_mac, in qedf_fip_recv()
262 get_unaligned_be64(&vp->fd_wwpn)); in qedf_fip_recv()
266 if ((get_unaligned_be64(&vp->fd_wwpn) == in qedf_fip_recv()
268 (ntoh24(vp->fd_fc_id) == in qedf_fip_recv()
270 (ether_addr_equal(vp->fd_mac, in qedf_fip_recv()
/drivers/ata/
Dpata_via.c393 struct via_port *vp = ap->private_data; in via_tf_load() local
406 vp->cached_device = tf->device; in via_tf_load()
408 iowrite8(vp->cached_device, ioaddr->device_addr); in via_tf_load()
444 struct via_port *vp; in via_port_start() local
451 vp = devm_kzalloc(&pdev->dev, sizeof(struct via_port), GFP_KERNEL); in via_port_start()
452 if (vp == NULL) in via_port_start()
454 ap->private_data = vp; in via_port_start()

123