/drivers/net/ethernet/3com/ |
D | 3c59x.c | 661 static void window_set(struct vortex_private *vp, int window) in window_set() argument 663 if (window != vp->window) { in window_set() 664 iowrite16(SelectWindow + window, vp->ioaddr + EL3_CMD); in window_set() 665 vp->window = window; in window_set() 671 window_read ## size(struct vortex_private *vp, int window, int addr) \ 675 spin_lock_irqsave(&vp->window_lock, flags); \ 676 window_set(vp, window); \ 677 ret = ioread ## size(vp->ioaddr + addr); \ 678 spin_unlock_irqrestore(&vp->window_lock, flags); \ 682 window_write ## size(struct vortex_private *vp, u ## size value, \ [all …]
|
D | 3c515.c | 474 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() 582 struct corkscrew_private *vp = netdev_priv(dev); in corkscrew_setup() local 590 vp->dev = &idev->dev; in corkscrew_setup() 601 vp->product_name = "3c515"; in corkscrew_setup() 602 vp->options = dev->mem_start; in corkscrew_setup() 603 vp->our_dev = dev; in corkscrew_setup() 605 if (!vp->options) { in corkscrew_setup() [all …]
|
/drivers/media/platform/s3c-camif/ |
D | camif-capture.c | 47 static void camif_cfg_video_path(struct camif_vp *vp) in camif_cfg_video_path() argument 49 WARN_ON(s3c_camif_get_scaler_config(vp, &vp->scaler)); in camif_cfg_video_path() 50 camif_hw_set_scaler(vp); in camif_cfg_video_path() 51 camif_hw_set_flip(vp); in camif_cfg_video_path() 52 camif_hw_set_target_format(vp); in camif_cfg_video_path() 53 camif_hw_set_output_dma(vp); in camif_cfg_video_path() 56 static void camif_prepare_dma_offset(struct camif_vp *vp) in camif_prepare_dma_offset() argument 58 struct camif_frame *f = &vp->out_frame; in camif_prepare_dma_offset() 68 static int s3c_camif_hw_init(struct camif_dev *camif, struct camif_vp *vp) in s3c_camif_hw_init() argument 72 if (camif->sensor.sd == NULL || vp->out_fmt == NULL) in s3c_camif_hw_init() [all …]
|
D | camif-regs.c | 41 void camif_hw_clear_pending_irq(struct camif_vp *vp) in camif_hw_clear_pending_irq() argument 43 u32 cfg = camif_read(vp->camif, S3C_CAMIF_REG_CIGCTRL); in camif_hw_clear_pending_irq() 44 cfg |= CIGCTRL_IRQ_CLR(vp->id); in camif_hw_clear_pending_irq() 45 camif_write(vp->camif, S3C_CAMIF_REG_CIGCTRL, cfg); in camif_hw_clear_pending_irq() 82 cfg = camif_read(camif, S3C_CAMIF_REG_CIIMGEFF(camif->vp->offset)); in camif_hw_set_effect() 95 camif_write(camif, S3C_CAMIF_REG_CIIMGEFF(camif->vp->offset), cfg); in camif_hw_set_effect() 154 void camif_hw_clear_fifo_overflow(struct camif_vp *vp) in camif_hw_clear_fifo_overflow() argument 156 struct camif_dev *camif = vp->camif; in camif_hw_clear_fifo_overflow() 160 if (vp->id == 0) in camif_hw_clear_fifo_overflow() 203 void camif_hw_set_output_addr(struct camif_vp *vp, in camif_hw_set_output_addr() argument [all …]
|
D | camif-core.h | 293 struct camif_vp vp[CAMIF_VP_NUM]; member 331 const struct camif_fmt *s3c_camif_find_format(struct camif_vp *vp, 339 int s3c_camif_get_scaler_config(struct camif_vp *vp, 342 static inline void camif_active_queue_add(struct camif_vp *vp, in camif_active_queue_add() argument 345 list_add_tail(&buf->list, &vp->active_buf_q); in camif_active_queue_add() 346 vp->active_buffers++; in camif_active_queue_add() 350 struct camif_vp *vp) in camif_active_queue_pop() argument 352 struct camif_buffer *buf = list_first_entry(&vp->active_buf_q, in camif_active_queue_pop() 355 vp->active_buffers--; in camif_active_queue_pop() 360 struct camif_vp *vp, int index) in camif_active_queue_peek() argument [all …]
|
D | camif-regs.h | 242 void camif_hw_clear_pending_irq(struct camif_vp *vp); 243 void camif_hw_clear_fifo_overflow(struct camif_vp *vp); 244 void camif_hw_set_lastirq(struct camif_vp *vp, int enable); 245 void camif_hw_set_input_path(struct camif_vp *vp); 246 void camif_hw_enable_scaler(struct camif_vp *vp, bool on); 247 void camif_hw_enable_capture(struct camif_vp *vp); 248 void camif_hw_disable_capture(struct camif_vp *vp); 252 void camif_hw_set_scaler(struct camif_vp *vp); 253 void camif_hw_set_flip(struct camif_vp *vp); 254 void camif_hw_set_output_dma(struct camif_vp *vp); [all …]
|
D | camif-core.c | 109 const struct camif_fmt *s3c_camif_find_format(struct camif_vp *vp, in s3c_camif_find_format() argument 122 if (vp && !(vp->fmt_flags & fmt->flags)) in s3c_camif_find_format() 151 int s3c_camif_get_scaler_config(struct camif_vp *vp, in s3c_camif_get_scaler_config() argument 154 struct v4l2_rect *camif_crop = &vp->camif->camif_crop; in s3c_camif_get_scaler_config() 157 int target_x = vp->out_frame.rect.width; in s3c_camif_get_scaler_config() 158 int target_y = vp->out_frame.rect.height; in s3c_camif_get_scaler_config() 161 if (vp->rotation == 90 || vp->rotation == 270) in s3c_camif_get_scaler_config() 276 &camif->vp[i - 1].vdev.entity, 0, in camif_create_media_links() 391 struct camif_vp *vp = &camif->vp[i]; in camif_request_irqs() local 393 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);
|
D | enic_dev.c | 191 int enic_dev_init_prov2(struct enic *enic, struct vic_provinfo *vp) in enic_dev_init_prov2() argument 197 (u8 *)vp, vic_provinfo_size(vp)); in enic_dev_init_prov2()
|
/drivers/net/ethernet/sun/ |
D | sunvnet.c | 77 struct net_device *dev = port->vp->dev; in vnet_send_attr() 280 struct net_device *dev = port->vp->dev; in vnet_rx_one() 535 struct vnet *vp; in vnet_ack() local 564 vp = port->vp; in vnet_ack() 565 dev = vp->dev; in vnet_ack() 585 port->vp->dev->name, in handle_mcast() 596 struct vnet *vp = (struct vnet *)param; in maybe_tx_wakeup() local 597 struct net_device *dev = vp->dev; in maybe_tx_wakeup() 604 list_for_each_entry(port, &vp->port_list, list) { in maybe_tx_wakeup() 700 tasklet_schedule(&port->vp->vnet_tx_wakeup); in vnet_event() [all …]
|
/drivers/media/usb/pvrusb2/ |
D | pvrusb2-v4l2.c | 173 struct pvr2_v4l2 *vp = fh->vhead; in pvr2_g_priority() local 175 *p = v4l2_prio_max(&vp->prio); in pvr2_g_priority() 182 struct pvr2_v4l2 *vp = fh->vhead; in pvr2_s_priority() local 184 return v4l2_prio_change(&vp->prio, &fh->prio, prio); in pvr2_s_priority() 880 static void pvr2_v4l2_destroy_no_lock(struct pvr2_v4l2 *vp) in pvr2_v4l2_destroy_no_lock() argument 882 if (vp->dev_video) { in pvr2_v4l2_destroy_no_lock() 883 pvr2_v4l2_dev_destroy(vp->dev_video); in pvr2_v4l2_destroy_no_lock() 884 vp->dev_video = NULL; in pvr2_v4l2_destroy_no_lock() 886 if (vp->dev_radio) { in pvr2_v4l2_destroy_no_lock() 887 pvr2_v4l2_dev_destroy(vp->dev_radio); in pvr2_v4l2_destroy_no_lock() [all …]
|
D | pvrusb2-hdw.c | 356 static int ctrl_channelfreq_get(struct pvr2_ctrl *cptr,int *vp) in ctrl_channelfreq_get() argument 360 *vp = hdw->freqTable[hdw->freqProgSlot-1]; in ctrl_channelfreq_get() 362 *vp = 0; in ctrl_channelfreq_get() 389 static int ctrl_channelprog_get(struct pvr2_ctrl *cptr,int *vp) in ctrl_channelprog_get() argument 391 *vp = cptr->hdw->freqProgSlot; in ctrl_channelprog_get() 404 static int ctrl_channel_get(struct pvr2_ctrl *cptr,int *vp) in ctrl_channel_get() argument 407 *vp = hdw->freqSelector ? hdw->freqSlotRadio : hdw->freqSlotTelevision; in ctrl_channel_get() 429 static int ctrl_freq_get(struct pvr2_ctrl *cptr,int *vp) in ctrl_freq_get() argument 431 *vp = pvr2_hdw_get_cur_freq(cptr->hdw); in ctrl_freq_get() 643 static int ctrl_vres_max_get(struct pvr2_ctrl *cptr,int *vp) in ctrl_vres_max_get() 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/net/ethernet/neterion/vxge/ |
D | vxge-traffic.c | 30 enum vxge_hw_status vxge_hw_vpath_intr_enable(struct __vxge_hw_vpath_handle *vp) in vxge_hw_vpath_intr_enable() argument 37 if (vp == NULL) { in vxge_hw_vpath_intr_enable() 42 vpath = vp->vpath; in vxge_hw_vpath_intr_enable() 157 struct __vxge_hw_vpath_handle *vp) in vxge_hw_vpath_intr_disable() argument 164 if (vp == NULL) { in vxge_hw_vpath_intr_disable() 169 vpath = vp->vpath; in vxge_hw_vpath_intr_disable() 1752 struct __vxge_hw_vpath_handle *vp, in vxge_hw_vpath_mac_addr_add() argument 1762 if (vp == NULL) { in vxge_hw_vpath_mac_addr_add() 1790 status = __vxge_hw_vpath_rts_table_set(vp, in vxge_hw_vpath_mac_addr_add() 1815 struct __vxge_hw_vpath_handle *vp, in vxge_hw_vpath_mac_addr_get() argument [all …]
|
D | vxge-config.c | 2786 __vxge_hw_ring_delete(struct __vxge_hw_vpath_handle *vp) in __vxge_hw_ring_delete() argument 2788 struct __vxge_hw_ring *ring = vp->vpath->ringh; in __vxge_hw_ring_delete() 2795 vp->vpath->ringh = NULL; in __vxge_hw_ring_delete() 2806 __vxge_hw_ring_create(struct __vxge_hw_vpath_handle *vp, in __vxge_hw_ring_create() argument 2819 if ((vp == NULL) || (attr == NULL)) { in __vxge_hw_ring_create() 2824 hldev = vp->vpath->hldev; in __vxge_hw_ring_create() 2825 vp_id = vp->vpath->vp_id; in __vxge_hw_ring_create() 2832 ring = (struct __vxge_hw_ring *)__vxge_hw_channel_allocate(vp, in __vxge_hw_ring_create() 2842 vp->vpath->ringh = ring; in __vxge_hw_ring_create() 2844 ring->vp_reg = vp->vpath->vp_reg; in __vxge_hw_ring_create() [all …]
|
/drivers/net/usb/ |
D | net1080.c | 148 u16 *vp = kmalloc(sizeof (u16)); 150 if (!vp) 163 retval = nc_register_read(dev, reg, vp); 168 netdev_dbg(dev->net, "reg [0x%x] = 0x%x\n", reg, *vp); 170 kfree(vp); 283 u16 vp; in net1080_reset() local 288 if ((retval = nc_register_read(dev, REG_STATUS, &vp)) < 0) { in net1080_reset() 293 status = vp; in net1080_reset() 296 if ((retval = nc_register_read(dev, REG_USBCTL, &vp)) < 0) { in net1080_reset() 300 usbctl = vp; in net1080_reset() [all …]
|
/drivers/video/fbdev/geode/ |
D | suspend_gx.c | 38 memcpy(par->vp, par->vid_regs, sizeof(par->vp)); in gx_save_regs() 144 for (i = 0; i < ARRAY_SIZE(par->vp); i++) { in gx_restore_video_proc() 148 write_vp(par, i, par->vp[i] & ~VP_VCFG_VID_EN); in gx_restore_video_proc() 153 write_vp(par, i, par->vp[i] & in gx_restore_video_proc() 170 write_vp(par, i, par->vp[i]); in gx_restore_video_proc() 194 write_vp(par, VP_VCFG, par->vp[VP_VCFG] & ~VP_VCFG_VID_EN); in gx_disable_graphics() 195 write_vp(par, VP_DCFG, par->vp[VP_DCFG] & ~(VP_DCFG_DAC_BL_EN | in gx_disable_graphics() 229 write_vp(par, VP_VCFG, par->vp[VP_VCFG]); in gx_enable_graphics() 230 write_vp(par, VP_DCFG, par->vp[VP_DCFG]); in gx_enable_graphics()
|
/drivers/scsi/sym53c8xx_2/ |
D | sym_malloc.c | 362 m_vtob_p vp = NULL; in __vtobus() local 369 vp = mp->vtob[hc]; in __vtobus() 370 while (vp && vp->vaddr != a) in __vtobus() 371 vp = vp->next; in __vtobus() 373 if (!vp) in __vtobus() 375 b = vp->baddr + (m - a); in __vtobus()
|
/drivers/media/platform/s5p-tv/ |
D | mixer_drv.c | 217 res->vp = ERR_PTR(-EINVAL); in mxr_resource_clear_clocks() 240 if (!IS_ERR(res->vp)) in mxr_release_clocks() 241 clk_put(res->vp); in mxr_release_clocks() 258 res->vp = clk_get(dev, "vp"); in mxr_acquire_clocks() 259 if (IS_ERR(res->vp)) { in mxr_acquire_clocks() 360 ret = clk_prepare_enable(res->vp); in mxr_runtime_resume() 378 clk_disable_unprepare(res->vp); in mxr_runtime_resume() 395 clk_disable_unprepare(res->vp); in mxr_runtime_suspend()
|
/drivers/ata/ |
D | pata_via.c | 392 struct via_port *vp = ap->private_data; in via_tf_load() local 405 vp->cached_device = tf->device; in via_tf_load() 407 iowrite8(vp->cached_device, ioaddr->device_addr); in via_tf_load() 443 struct via_port *vp; in via_port_start() local 450 vp = devm_kzalloc(&pdev->dev, sizeof(struct via_port), GFP_KERNEL); in via_port_start() 451 if (vp == NULL) in via_port_start() 453 ap->private_data = vp; in via_port_start()
|
/drivers/net/wireless/ |
D | mac80211_hwsim.c | 187 struct hwsim_vif_priv *vp = (void *)vif->drv_priv; in hwsim_check_magic() local 188 WARN(vp->magic != HWSIM_VIF_MAGIC, in hwsim_check_magic() 190 vif, vp->magic, vif->addr, vif->type, vif->p2p); in hwsim_check_magic() 195 struct hwsim_vif_priv *vp = (void *)vif->drv_priv; in hwsim_set_magic() local 196 vp->magic = HWSIM_VIF_MAGIC; in hwsim_set_magic() 201 struct hwsim_vif_priv *vp = (void *)vif->drv_priv; in hwsim_clear_magic() local 202 vp->magic = 0; in hwsim_clear_magic() 509 struct hwsim_vif_priv *vp = (void *)vif->drv_priv; in hwsim_send_ps_poll() local 513 if (!vp->assoc) in hwsim_send_ps_poll() 518 __func__, vp->bssid, vp->aid); in hwsim_send_ps_poll() [all …]
|
/drivers/staging/lustre/lustre/llite/ |
D | vvp_page.c | 376 struct ccc_page *vp = cl2ccc_page(slice); in vvp_page_print() local 377 struct page *vmpage = vp->cpg_page; in vvp_page_print() 381 vp, vp->cpg_defer_uptodate, vp->cpg_ra_used, in vvp_page_print() 382 vp->cpg_write_queued, vmpage); in vvp_page_print()
|
/drivers/block/aoe/ |
D | aoemain.c | 21 discover_timer(ulong vp) in discover_timer() argument 29 switch (vp) { in discover_timer()
|