/drivers/net/ethernet/3com/ |
D | 3c59x.c | 660 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 …]
|
D | 3c515.c | 461 struct corkscrew_private *vp = netdev_priv(dev); in cleanup_card() local 462 list_del_init(&vp->list); in cleanup_card() 467 if (vp->dev) in cleanup_card() 468 pnp_device_detach(to_pnp_dev(vp->dev)); in cleanup_card() 568 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 …]
|
/drivers/media/platform/s3c-camif/ |
D | camif-capture.c | 44 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 …]
|
D | camif-regs.c | 38 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 …]
|
D | camif-core.h | 298 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 …]
|
D | camif-regs.h | 241 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 …]
|
D | camif-core.c | 100 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() 144 int s3c_camif_get_scaler_config(struct camif_vp *vp, in s3c_camif_get_scaler_config() argument 147 struct v4l2_rect *camif_crop = &vp->camif->camif_crop; in s3c_camif_get_scaler_config() 150 int target_x = vp->out_frame.rect.width; in s3c_camif_get_scaler_config() 151 int target_y = vp->out_frame.rect.height; in s3c_camif_get_scaler_config() 154 if (vp->rotation == 90 || vp->rotation == 270) in s3c_camif_get_scaler_config() 268 &camif->vp[i - 1].vdev.entity, 0, in camif_create_media_links() 380 struct camif_vp *vp = &camif->vp[i]; in camif_request_irqs() local 382 init_waitqueue_head(&vp->irq_queue); in camif_request_irqs() [all …]
|
/drivers/net/ethernet/cisco/enic/ |
D | vnic_vic.c | 29 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 …]
|
D | enic_pp.c | 73 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 …]
|
D | vnic_vic.h | 65 #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/ |
D | sunvnet.c | 69 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 …]
|
D | ldmvsw.c | 74 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 …]
|
D | sunvnet_common.h | 70 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);
|
D | sunvnet_common.c | 1548 static struct vnet_mcast_entry *__vnet_mc_find(struct vnet *vp, u8 *addr) in __vnet_mc_find() argument 1552 for (m = vp->mcast_list; m; m = m->next) { in __vnet_mc_find() 1559 static void __update_mc_list(struct vnet *vp, struct net_device *dev) in __update_mc_list() argument 1566 m = __vnet_mc_find(vp, ha->addr); in __update_mc_list() 1579 m->next = vp->mcast_list; in __update_mc_list() 1580 vp->mcast_list = m; in __update_mc_list() 1585 static void __send_mc_list(struct vnet *vp, struct vnet_port *port) in __send_mc_list() argument 1600 for (m = vp->mcast_list; m; m = m->next) { in __send_mc_list() 1622 pp = &vp->mcast_list; in __send_mc_list() 1648 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/ |
D | qlcnic_sriov_pf.c | 74 struct qlcnic_vport *vp; in qlcnic_sriov_pf_cal_res_limit() local 108 vp = sriov->vf_info[id].vp; in qlcnic_sriov_pf_cal_res_limit() 109 info->min_tx_bw = vp->min_tx_bw; in qlcnic_sriov_pf_cal_res_limit() 110 info->max_tx_bw = vp->max_tx_bw; in qlcnic_sriov_pf_cal_res_limit() 236 struct qlcnic_vport *vp; in qlcnic_sriov_pf_reset_vport_handle() local 245 vp = sriov->vf_info[index].vp; in qlcnic_sriov_pf_reset_vport_handle() 246 vp->handle = 0; in qlcnic_sriov_pf_reset_vport_handle() 254 struct qlcnic_vport *vp; in qlcnic_sriov_pf_set_vport_handle() local 263 vp = sriov->vf_info[index].vp; in qlcnic_sriov_pf_set_vport_handle() 264 vp->handle = vport_handle; in qlcnic_sriov_pf_set_vport_handle() [all …]
|
/drivers/media/usb/pvrusb2/ |
D | pvrusb2-v4l2.c | 868 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 …]
|
D | pvrusb2-hdw.c | 344 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/ |
D | vxge-traffic.c | 31 enum vxge_hw_status vxge_hw_vpath_intr_enable(struct __vxge_hw_vpath_handle *vp) in vxge_hw_vpath_intr_enable() argument 36 if (vp == NULL) { in vxge_hw_vpath_intr_enable() 41 vpath = vp->vpath; in vxge_hw_vpath_intr_enable() 156 struct __vxge_hw_vpath_handle *vp) in vxge_hw_vpath_intr_disable() argument 161 if (vp == NULL) { in vxge_hw_vpath_intr_disable() 166 vpath = vp->vpath; in vxge_hw_vpath_intr_disable() 1703 struct __vxge_hw_vpath_handle *vp, in vxge_hw_vpath_mac_addr_add() argument 1713 if (vp == NULL) { in vxge_hw_vpath_mac_addr_add() 1741 status = __vxge_hw_vpath_rts_table_set(vp, in vxge_hw_vpath_mac_addr_add() 1766 struct __vxge_hw_vpath_handle *vp, in vxge_hw_vpath_mac_addr_get() argument [all …]
|
D | vxge-config.c | 2767 __vxge_hw_ring_delete(struct __vxge_hw_vpath_handle *vp) in __vxge_hw_ring_delete() argument 2769 struct __vxge_hw_ring *ring = vp->vpath->ringh; in __vxge_hw_ring_delete() 2776 vp->vpath->ringh = NULL; in __vxge_hw_ring_delete() 2787 __vxge_hw_ring_create(struct __vxge_hw_vpath_handle *vp, in __vxge_hw_ring_create() argument 2800 if ((vp == NULL) || (attr == NULL)) { in __vxge_hw_ring_create() 2805 hldev = vp->vpath->hldev; in __vxge_hw_ring_create() 2806 vp_id = vp->vpath->vp_id; in __vxge_hw_ring_create() 2813 ring = (struct __vxge_hw_ring *)__vxge_hw_channel_allocate(vp, in __vxge_hw_ring_create() 2823 vp->vpath->ringh = ring; in __vxge_hw_ring_create() 2825 ring->vp_reg = vp->vpath->vp_reg; in __vxge_hw_ring_create() [all …]
|
/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/ |
D | vmem.c | 192 const t_vmem_elem *vp = from; in isp_vmem_load() local 198 load_vector(ID, &to[c], vp); in isp_vmem_load() 199 vp = (t_vmem_elem *)((char *)vp + ISP_VEC_ALIGN); in isp_vmem_load() 210 t_vmem_elem *vp = to; in isp_vmem_store() local 216 store_vector(ID, vp, &from[c]); in isp_vmem_store() 217 vp = (t_vmem_elem *)((char *)vp + ISP_VEC_ALIGN); in isp_vmem_store() 239 const t_vmem_elem *vp = from; in isp_vmem_2d_load() local 242 load_vector(ID, &to[stride_to * h + c], vp); in isp_vmem_2d_load() 243 vp = (t_vmem_elem *)((char *)vp + ISP_VEC_ALIGN); in isp_vmem_2d_load() 268 t_vmem_elem *vp = to; in isp_vmem_2d_store() local [all …]
|
/drivers/net/usb/ |
D | net1080.c | 135 u16 *vp = kmalloc(sizeof (u16)); 137 if (!vp) 150 retval = nc_register_read(dev, reg, vp); 155 netdev_dbg(dev->net, "reg [0x%x] = 0x%x\n", reg, *vp); 157 kfree(vp); 262 u16 vp; in net1080_reset() local 267 if ((retval = nc_register_read(dev, REG_STATUS, &vp)) < 0) { in net1080_reset() 272 status = vp; in net1080_reset() 275 if ((retval = nc_register_read(dev, REG_USBCTL, &vp)) < 0) { in net1080_reset() 279 usbctl = vp; in net1080_reset() [all …]
|
/drivers/video/fbdev/geode/ |
D | suspend_gx.c | 32 memcpy(par->vp, par->vid_regs, sizeof(par->vp)); in gx_save_regs() 138 for (i = 0; i < ARRAY_SIZE(par->vp); i++) { in gx_restore_video_proc() 142 write_vp(par, i, par->vp[i] & ~VP_VCFG_VID_EN); in gx_restore_video_proc() 147 write_vp(par, i, par->vp[i] & in gx_restore_video_proc() 164 write_vp(par, i, par->vp[i]); in gx_restore_video_proc() 188 write_vp(par, VP_VCFG, par->vp[VP_VCFG] & ~VP_VCFG_VID_EN); in gx_disable_graphics() 189 write_vp(par, VP_DCFG, par->vp[VP_DCFG] & ~(VP_DCFG_DAC_BL_EN | in gx_disable_graphics() 223 write_vp(par, VP_VCFG, par->vp[VP_VCFG]); in gx_enable_graphics() 224 write_vp(par, VP_DCFG, par->vp[VP_DCFG]); in gx_enable_graphics()
|
/drivers/scsi/sym53c8xx_2/ |
D | sym_malloc.c | 349 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/ |
D | qedf_fip.c | 175 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/ |
D | pata_via.c | 393 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()
|