Home
last modified time | relevance | path

Searched refs:vdev (Results 1 – 25 of 102) sorted by relevance

12345

/drivers/media/video/
Dv4l2-dev.c46 struct video_device *vdev = to_video_device(cd); in show_index() local
48 return sprintf(buf, "%i\n", vdev->index); in show_index()
54 struct video_device *vdev = to_video_device(cd); in show_name() local
56 return sprintf(buf, "%.*s\n", (int)sizeof(vdev->name), vdev->name); in show_name()
78 void video_device_release(struct video_device *vdev) in video_device_release() argument
80 kfree(vdev); in video_device_release()
84 void video_device_release_empty(struct video_device *vdev) in video_device_release_empty() argument
91 static inline void video_get(struct video_device *vdev) in video_get() argument
93 get_device(&vdev->dev); in video_get()
96 static inline void video_put(struct video_device *vdev) in video_put() argument
[all …]
Dzr364xx.c109 struct video_device *vdev; /* v4l video device */ member
400 struct video_device *vdev = video_devdata(file); in zr364xx_read() local
405 if (vdev == NULL) in zr364xx_read()
407 cam = video_get_drvdata(vdev); in zr364xx_read()
464 struct video_device *vdev = video_devdata(file); in zr364xx_vidioc_queryctrl() local
467 if (vdev == NULL) in zr364xx_vidioc_queryctrl()
469 cam = video_get_drvdata(vdev); in zr364xx_vidioc_queryctrl()
490 struct video_device *vdev = video_devdata(file); in zr364xx_vidioc_s_ctrl() local
493 if (vdev == NULL) in zr364xx_vidioc_s_ctrl()
495 cam = video_get_drvdata(vdev); in zr364xx_vidioc_s_ctrl()
[all …]
/drivers/net/enic/
Dvnic_dev.c60 void *vnic_dev_priv(struct vnic_dev *vdev) in vnic_dev_priv() argument
62 return vdev->priv; in vnic_dev_priv()
65 static int vnic_dev_discover_res(struct vnic_dev *vdev, in vnic_dev_discover_res() argument
131 vdev->res[type].count = count; in vnic_dev_discover_res()
132 vdev->res[type].vaddr = (char __iomem *)bar->vaddr + bar_offset; in vnic_dev_discover_res()
138 unsigned int vnic_dev_get_res_count(struct vnic_dev *vdev, in vnic_dev_get_res_count() argument
141 return vdev->res[type].count; in vnic_dev_get_res_count()
144 void __iomem *vnic_dev_get_res(struct vnic_dev *vdev, enum vnic_res_type type, in vnic_dev_get_res() argument
147 if (!vdev->res[type].vaddr) in vnic_dev_get_res()
155 return (char __iomem *)vdev->res[type].vaddr + in vnic_dev_get_res()
[all …]
Dvnic_dev.h73 void *vnic_dev_priv(struct vnic_dev *vdev);
74 unsigned int vnic_dev_get_res_count(struct vnic_dev *vdev,
76 void __iomem *vnic_dev_get_res(struct vnic_dev *vdev, enum vnic_res_type type,
81 int vnic_dev_alloc_desc_ring(struct vnic_dev *vdev, struct vnic_dev_ring *ring,
83 void vnic_dev_free_desc_ring(struct vnic_dev *vdev,
85 int vnic_dev_cmd(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd,
87 int vnic_dev_fw_info(struct vnic_dev *vdev,
89 int vnic_dev_spec(struct vnic_dev *vdev, unsigned int offset, unsigned int size,
91 int vnic_dev_stats_clear(struct vnic_dev *vdev);
92 int vnic_dev_stats_dump(struct vnic_dev *vdev, struct vnic_stats **stats);
[all …]
Denic_res.c47 err = vnic_dev_mac_addr(enic->vdev, enic->mac_addr); in enic_get_vnic_config()
55 err = vnic_dev_spec(enic->vdev, \ in enic_get_vnic_config()
106 vnic_dev_add_addr(enic->vdev, enic->mac_addr); in enic_add_station_addr()
111 vnic_dev_add_addr(enic->vdev, addr); in enic_add_multicast_addr()
116 vnic_dev_del_addr(enic->vdev, addr); in enic_del_multicast_addr()
125 err = vnic_dev_cmd(enic->vdev, CMD_VLAN_ADD, &a0, &a1, wait); in enic_add_vlan()
136 err = vnic_dev_cmd(enic->vdev, CMD_VLAN_DEL, &a0, &a1, wait); in enic_del_vlan()
156 return vnic_dev_cmd(enic->vdev, CMD_NIC_CFG, &a0, &a1, wait); in enic_set_nic_cfg()
175 enic->wq_count = vnic_dev_get_res_count(enic->vdev, RES_TYPE_WQ); in enic_get_res_counts()
176 enic->rq_count = vnic_dev_get_res_count(enic->vdev, RES_TYPE_RQ); in enic_get_res_counts()
[all …]
Dvnic_wq.c32 struct vnic_dev *vdev; in vnic_wq_alloc_bufs() local
36 vdev = wq->vdev; in vnic_wq_alloc_bufs()
71 struct vnic_dev *vdev; in vnic_wq_free() local
74 vdev = wq->vdev; in vnic_wq_free()
76 vnic_dev_free_desc_ring(vdev, &wq->ring); in vnic_wq_free()
86 int vnic_wq_alloc(struct vnic_dev *vdev, struct vnic_wq *wq, unsigned int index, in vnic_wq_alloc() argument
92 wq->vdev = vdev; in vnic_wq_alloc()
94 wq->ctrl = vnic_dev_get_res(vdev, RES_TYPE_WQ, index); in vnic_wq_alloc()
102 err = vnic_dev_alloc_desc_ring(vdev, &wq->ring, desc_count, desc_size); in vnic_wq_alloc()
Dvnic_rq.c32 struct vnic_dev *vdev; in vnic_rq_alloc_bufs() local
36 vdev = rq->vdev; in vnic_rq_alloc_bufs()
72 struct vnic_dev *vdev; in vnic_rq_free() local
75 vdev = rq->vdev; in vnic_rq_free()
77 vnic_dev_free_desc_ring(vdev, &rq->ring); in vnic_rq_free()
87 int vnic_rq_alloc(struct vnic_dev *vdev, struct vnic_rq *rq, unsigned int index, in vnic_rq_alloc() argument
93 rq->vdev = vdev; in vnic_rq_alloc()
95 rq->ctrl = vnic_dev_get_res(vdev, RES_TYPE_RQ, index); in vnic_rq_alloc()
103 err = vnic_dev_alloc_desc_ring(vdev, &rq->ring, desc_count, desc_size); in vnic_rq_alloc()
Denic_main.c122 ecmd->speed = vnic_dev_port_speed(enic->vdev); in enic_get_settings()
141 vnic_dev_fw_info(enic->vdev, &fw_info); in enic_get_drvinfo()
188 vnic_dev_stats_dump(enic->vdev, &vstats); in enic_get_ethtool_stats()
282 struct enic *enic = vnic_dev_priv(wq->vdev); in enic_free_wq_buf()
301 static int enic_wq_service(struct vnic_dev *vdev, struct cq_desc *cq_desc, in enic_wq_service() argument
304 struct enic *enic = vnic_dev_priv(vdev); in enic_wq_service()
343 int link_status = vnic_dev_link_status(enic->vdev); in enic_link_check()
357 u32 mtu = vnic_dev_mtu(enic->vdev); in enic_mtu_check()
371 u32 msg_enable = vnic_dev_msg_lvl(enic->vdev); in enic_msglvl_check()
674 vnic_dev_stats_dump(enic->vdev, &stats); in enic_get_stats()
[all …]
/drivers/staging/usbip/
Dvhci_tx.c27 struct vhci_device *vdev = priv->vdev; in setup_cmd_submit_pdu() local
30 usb_pipedevice(urb->pipe), vdev->devid); in setup_cmd_submit_pdu()
34 pdup->base.devid = vdev->devid; in setup_cmd_submit_pdu()
47 static struct vhci_priv *dequeue_from_priv_tx(struct vhci_device *vdev) in dequeue_from_priv_tx() argument
52 spin_lock_irqsave(&vdev->priv_lock, flags); in dequeue_from_priv_tx()
54 list_for_each_entry_safe(priv, tmp, &vdev->priv_tx, list) { in dequeue_from_priv_tx()
55 list_move_tail(&priv->list, &vdev->priv_rx); in dequeue_from_priv_tx()
56 spin_unlock_irqrestore(&vdev->priv_lock, flags); in dequeue_from_priv_tx()
60 spin_unlock_irqrestore(&vdev->priv_lock, flags); in dequeue_from_priv_tx()
67 static int vhci_send_cmd_submit(struct vhci_device *vdev) in vhci_send_cmd_submit() argument
[all …]
Dvhci_sysfs.c53 struct vhci_device *vdev = port_to_vdev(i); in show_status() local
55 spin_lock(&vdev->ud.lock); in show_status()
57 out += sprintf(out, "%03u %03u ", i, vdev->ud.status); in show_status()
59 if (vdev->ud.status == VDEV_ST_USED) { in show_status()
61 vdev->speed, vdev->devid); in show_status()
62 out += sprintf(out, "%16p ", vdev->ud.tcp_socket); in show_status()
63 out += sprintf(out, "%s", dev_name(&vdev->udev->dev)); in show_status()
70 spin_unlock(&vdev->ud.lock); in show_status()
82 struct vhci_device *vdev; in vhci_port_disconnect() local
89 vdev = port_to_vdev(rhport); in vhci_port_disconnect()
[all …]
Dvhci_hcd.c319 switch (dum->vdev[rhport].speed) { in vhci_hub_control()
380 if (dum->vdev[rhport].ud.status == in vhci_hub_control()
384 dum->vdev[rhport].ud.status); in vhci_hub_control()
502 if (the_controller->vdev[i].udev == udev) in get_vdev()
510 struct vhci_device *vdev = get_vdev(urb->dev); in vhci_tx_urb() local
514 if (!vdev) { in vhci_tx_urb()
520 spin_lock_irqsave(&vdev->priv_lock, flag); in vhci_tx_urb()
525 spin_unlock_irqrestore(&vdev->priv_lock, flag); in vhci_tx_urb()
526 usbip_event_add(&vdev->ud, VDEV_EVENT_ERROR_MALLOC); in vhci_tx_urb()
534 priv->vdev = vdev; in vhci_tx_urb()
[all …]
Dvhci_rx.c25 static struct urb *pickup_urb_and_free_priv(struct vhci_device *vdev, in pickup_urb_and_free_priv() argument
32 spin_lock(&vdev->priv_lock); in pickup_urb_and_free_priv()
34 list_for_each_entry_safe(priv, tmp, &vdev->priv_rx, list) { in pickup_urb_and_free_priv()
64 spin_unlock(&vdev->priv_lock); in pickup_urb_and_free_priv()
69 static void vhci_recv_ret_submit(struct vhci_device *vdev, in vhci_recv_ret_submit() argument
72 struct usbip_device *ud = &vdev->ud; in vhci_recv_ret_submit()
76 urb = pickup_urb_and_free_priv(vdev, pdu->base.seqnum); in vhci_recv_ret_submit()
120 static struct vhci_unlink *dequeue_pending_unlink(struct vhci_device *vdev, in dequeue_pending_unlink() argument
125 spin_lock(&vdev->priv_lock); in dequeue_pending_unlink()
127 list_for_each_entry_safe(unlink, tmp, &vdev->unlink_rx, list) { in dequeue_pending_unlink()
[all …]
/drivers/lguest/
Dlguest_device.c38 struct virtio_device vdev; member
47 #define to_lgdev(vd) container_of(vd, struct lguest_device, vdev)
86 static u32 lg_get_features(struct virtio_device *vdev) in lg_get_features() argument
90 struct lguest_device_desc *desc = to_lgdev(vdev)->desc; in lg_get_features()
105 static void lg_finalize_features(struct virtio_device *vdev) in lg_finalize_features() argument
108 struct lguest_device_desc *desc = to_lgdev(vdev)->desc; in lg_finalize_features()
113 vring_transport_features(vdev); in lg_finalize_features()
120 bits = min_t(unsigned, desc->feature_len, sizeof(vdev->features)) * 8; in lg_finalize_features()
122 if (test_bit(i, vdev->features)) in lg_finalize_features()
128 static void lg_get(struct virtio_device *vdev, unsigned int offset, in lg_get() argument
[all …]
/drivers/s390/kvm/
Dkvm_virtio.c36 struct virtio_device vdev; member
40 #define to_kvmdev(vd) container_of(vd, struct kvm_device, vdev)
78 static u32 kvm_get_features(struct virtio_device *vdev) in kvm_get_features() argument
82 struct kvm_device_desc *desc = to_kvmdev(vdev)->desc; in kvm_get_features()
91 static void kvm_finalize_features(struct virtio_device *vdev) in kvm_finalize_features() argument
94 struct kvm_device_desc *desc = to_kvmdev(vdev)->desc; in kvm_finalize_features()
99 vring_transport_features(vdev); in kvm_finalize_features()
102 bits = min_t(unsigned, desc->feature_len, sizeof(vdev->features)) * 8; in kvm_finalize_features()
104 if (test_bit(i, vdev->features)) in kvm_finalize_features()
112 static void kvm_get(struct virtio_device *vdev, unsigned int offset, in kvm_get() argument
[all …]
/drivers/virtio/
Dvirtio_pci.c36 struct virtio_device vdev; member
79 static struct virtio_pci_device *to_vp_device(struct virtio_device *vdev) in to_vp_device() argument
81 return container_of(vdev, struct virtio_pci_device, vdev); in to_vp_device()
85 static u32 vp_get_features(struct virtio_device *vdev) in vp_get_features() argument
87 struct virtio_pci_device *vp_dev = to_vp_device(vdev); in vp_get_features()
95 static void vp_finalize_features(struct virtio_device *vdev) in vp_finalize_features() argument
97 struct virtio_pci_device *vp_dev = to_vp_device(vdev); in vp_finalize_features()
100 vring_transport_features(vdev); in vp_finalize_features()
103 BUILD_BUG_ON(ARRAY_SIZE(vdev->features) != 1); in vp_finalize_features()
104 iowrite32(vdev->features[0], vp_dev->ioaddr+VIRTIO_PCI_GUEST_FEATURES); in vp_finalize_features()
[all …]
Dvirtio_balloon.c30 struct virtio_device *vdev; member
104 dev_printk(KERN_INFO, &vb->vdev->dev, in fill_balloon()
157 static void virtballoon_changed(struct virtio_device *vdev) in virtballoon_changed() argument
159 struct virtio_balloon *vb = vdev->priv; in virtballoon_changed()
167 vb->vdev->config->get(vb->vdev, in towards_target()
177 vb->vdev->config->set(vb->vdev, in update_balloon_size()
203 static int virtballoon_probe(struct virtio_device *vdev) in virtballoon_probe() argument
208 vdev->priv = vb = kmalloc(sizeof(*vb), GFP_KERNEL); in virtballoon_probe()
217 vb->vdev = vdev; in virtballoon_probe()
220 vb->inflate_vq = vdev->config->find_vq(vdev, 0, balloon_ack); in virtballoon_probe()
[all …]
/drivers/scsi/ibmvscsi/
Drpa_vscsi.c74 struct vio_dev *vdev = to_vio_dev(hostdata->dev); in rpavscsi_release_crq_queue() local
75 free_irq(vdev->irq, (void *)hostdata); in rpavscsi_release_crq_queue()
78 rc = plpar_hcall_norets(H_FREE_CRQ, vdev->unit_address); in rpavscsi_release_crq_queue()
119 struct vio_dev *vdev = to_vio_dev(hostdata->dev); in rpavscsi_send_crq() local
121 return plpar_hcall_norets(H_SEND_CRQ, vdev->unit_address, word1, word2); in rpavscsi_send_crq()
131 struct vio_dev *vdev = to_vio_dev(hostdata->dev); in rpavscsi_task() local
142 vio_enable_interrupts(vdev); in rpavscsi_task()
144 vio_disable_interrupts(vdev); in rpavscsi_task()
203 struct vio_dev *vdev = to_vio_dev(hostdata->dev); in rpavscsi_reset_crq_queue() local
207 rc = plpar_hcall_norets(H_FREE_CRQ, vdev->unit_address); in rpavscsi_reset_crq_queue()
[all …]
/drivers/ide/
Dvia82cxxx.c119 struct via82cxxx_dev *vdev = host->host_priv; in via_set_speed() local
122 if (~vdev->via_config->flags & VIA_BAD_AST) { in via_set_speed()
134 switch (vdev->via_config->udma_mask) { in via_set_speed()
160 struct via82cxxx_dev *vdev = host->host_priv; in via_set_drive() local
166 switch (vdev->via_config->udma_mask) { in via_set_drive()
218 static void via_cable_detect(struct via82cxxx_dev *vdev, u32 u) in via_cable_detect() argument
222 switch (vdev->via_config->udma_mask) { in via_cable_detect()
232 vdev->via_80w |= (1 << (1 - (i >> 4))); in via_cable_detect()
244 vdev->via_80w |= (1 << (1 - (i >> 4))); in via_cable_detect()
256 vdev->via_80w |= (1 << (1 - (i >> 4))); in via_cable_detect()
[all …]
/drivers/block/
Dvirtio_blk.c17 struct virtio_device *vdev; member
45 struct virtio_blk *vblk = vq->vdev->priv; in blk_done()
165 err = virtio_config_val(vblk->vdev, VIRTIO_BLK_F_GEOMETRY, in virtblk_getgeo()
193 static int virtblk_probe(struct virtio_device *vdev) in virtblk_probe() argument
205 err = virtio_config_val(vdev, VIRTIO_BLK_F_SEG_MAX, in virtblk_probe()
213 vdev->priv = vblk = kmalloc(sizeof(*vblk) + in virtblk_probe()
222 vblk->vdev = vdev; in virtblk_probe()
227 vblk->vq = vdev->config->find_vq(vdev, 0, blk_done); in virtblk_probe()
271 vblk->disk->driverfs_dev = &vdev->dev; in virtblk_probe()
275 if (virtio_has_feature(vdev, VIRTIO_BLK_F_BARRIER)) in virtblk_probe()
[all …]
/drivers/media/video/usbvision/
Dusbvision-video.c182 struct video_device *vdev = in cd_to_usbvision() local
184 return video_get_drvdata(vdev); in cd_to_usbvision()
197 struct video_device *vdev = in show_model() local
199 struct usb_usbvision *usbvision = video_get_drvdata(vdev); in show_model()
208 struct video_device *vdev = in show_hue() local
210 struct usb_usbvision *usbvision = video_get_drvdata(vdev); in show_hue()
223 struct video_device *vdev = in show_contrast() local
225 struct usb_usbvision *usbvision = video_get_drvdata(vdev); in show_contrast()
238 struct video_device *vdev = in show_brightness() local
240 struct usb_usbvision *usbvision = video_get_drvdata(vdev); in show_brightness()
[all …]
/drivers/net/
Dvirtio_net.c42 struct virtio_device *vdev; member
108 struct virtnet_info *vi = svq->vdev->priv; in skb_xmit_done()
376 struct virtnet_info *vi = rvq->vdev->priv; in skb_recv_done()
603 struct virtio_device *vdev = vi->vdev; in virtnet_set_tx_csum() local
605 if (data && !virtio_has_feature(vdev, VIRTIO_NET_F_CSUM)) in virtnet_set_tx_csum()
641 static int virtnet_probe(struct virtio_device *vdev) in virtnet_probe() argument
656 SET_NETDEV_DEV(dev, &vdev->dev); in virtnet_probe()
659 if (csum && virtio_has_feature(vdev, VIRTIO_NET_F_CSUM)) { in virtnet_probe()
662 if (gso && virtio_has_feature(vdev, VIRTIO_NET_F_GSO)) { in virtnet_probe()
667 if (gso && virtio_has_feature(vdev, VIRTIO_NET_F_HOST_TSO4)) in virtnet_probe()
[all …]
/drivers/char/
Dhvcs.c303 struct vio_dev *vdev; member
439 hvcsd->vdev->unit_address, in hvcs_vterm_state_store()
538 vio_disable_interrupts(hvcsd->vdev); in hvcs_throttle()
552 vio_disable_interrupts(hvcsd->vdev); in hvcs_handle_interrupt()
563 uint32_t unit_address = hvcsd->vdev->unit_address; in hvcs_try_write()
601 unit_address = hvcsd->vdev->unit_address; in hvcs_io()
634 vio_enable_interrupts(hvcsd->vdev); in hvcs_io()
705 struct vio_dev *vdev; in destroy_hvcs_struct() local
718 hvcsd->vdev->unit_address, in destroy_hvcs_struct()
723 hvcsd->vdev->unit_address); in destroy_hvcs_struct()
[all …]
Dvirtio_console.c40 static struct virtio_device *vdev; variable
166 virtcons_apply_config(vdev); in notifier_add_vio()
193 vdev = dev; in virtcons_probe()
205 in_vq = vdev->config->find_vq(vdev, 0, hvc_handle_input); in virtcons_probe()
211 out_vq = vdev->config->find_vq(vdev, 1, NULL); in virtcons_probe()
244 vdev->config->del_vq(out_vq); in virtcons_probe()
246 vdev->config->del_vq(in_vq); in virtcons_probe()
/drivers/char/hw_random/
Dvirtio-rng.c92 static int virtrng_probe(struct virtio_device *vdev) in virtrng_probe() argument
97 vq = vdev->config->find_vq(vdev, 0, random_recv_done); in virtrng_probe()
103 vdev->config->del_vq(vq); in virtrng_probe()
111 static void virtrng_remove(struct virtio_device *vdev) in virtrng_remove() argument
113 vdev->config->reset(vdev); in virtrng_remove()
115 vdev->config->del_vq(vq); in virtrng_remove()
/drivers/media/video/pwc/
Dpwc-if.c995 struct video_device *vdev = to_video_device(cd); in cd_to_pwc() local
996 return video_get_drvdata(vdev); in cd_to_pwc()
1039 static int pwc_create_sysfs_files(struct video_device *vdev) in pwc_create_sysfs_files() argument
1041 struct pwc_device *pdev = video_get_drvdata(vdev); in pwc_create_sysfs_files()
1044 rc = device_create_file(&vdev->dev, &dev_attr_button); in pwc_create_sysfs_files()
1048 rc = device_create_file(&vdev->dev, &dev_attr_pan_tilt); in pwc_create_sysfs_files()
1055 device_remove_file(&vdev->dev, &dev_attr_button); in pwc_create_sysfs_files()
1061 static void pwc_remove_sysfs_files(struct video_device *vdev) in pwc_remove_sysfs_files() argument
1063 struct pwc_device *pdev = video_get_drvdata(vdev); in pwc_remove_sysfs_files()
1065 device_remove_file(&vdev->dev, &dev_attr_pan_tilt); in pwc_remove_sysfs_files()
[all …]

12345