Home
last modified time | relevance | path

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

12345678

/drivers/media/video/
Dv4l2-dev.c44 struct video_device *vdev = to_video_device(cd); in show_index() local
46 return sprintf(buf, "%i\n", vdev->index); in show_index()
52 struct video_device *vdev = to_video_device(cd); in show_name() local
54 return sprintf(buf, "%.*s\n", (int)sizeof(vdev->name), vdev->name); in show_name()
95 static inline void devnode_set(struct video_device *vdev) in devnode_set() argument
97 set_bit(vdev->num, devnode_bits(vdev->vfl_type)); in devnode_set()
101 static inline void devnode_clear(struct video_device *vdev) in devnode_clear() argument
103 clear_bit(vdev->num, devnode_bits(vdev->vfl_type)); in devnode_clear()
107 static inline int devnode_find(struct video_device *vdev, int from, int to) in devnode_find() argument
109 return find_next_zero_bit(devnode_bits(vdev->vfl_type), to, from); in devnode_find()
[all …]
Dv4l2-fh.c33 void v4l2_fh_init(struct v4l2_fh *fh, struct video_device *vdev) in v4l2_fh_init() argument
35 fh->vdev = vdev; in v4l2_fh_init()
37 fh->ctrl_handler = vdev->ctrl_handler; in v4l2_fh_init()
39 set_bit(V4L2_FL_USES_V4L2_FH, &fh->vdev->flags); in v4l2_fh_init()
52 if (test_bit(V4L2_FL_USE_FH_PRIO, &fh->vdev->flags)) in v4l2_fh_add()
53 v4l2_prio_open(fh->vdev->prio, &fh->prio); in v4l2_fh_add()
54 spin_lock_irqsave(&fh->vdev->fh_lock, flags); in v4l2_fh_add()
55 list_add(&fh->list, &fh->vdev->fh_list); in v4l2_fh_add()
56 spin_unlock_irqrestore(&fh->vdev->fh_lock, flags); in v4l2_fh_add()
62 struct video_device *vdev = video_devdata(filp); in v4l2_fh_open() local
[all …]
Dtimblogiw.c159 struct video_device *vdev = video_devdata(file); in timblogiw_g_fmt() local
160 struct timblogiw *lw = video_get_drvdata(vdev); in timblogiw_g_fmt()
163 dev_dbg(&vdev->dev, "%s entry\n", __func__); in timblogiw_g_fmt()
185 struct video_device *vdev = video_devdata(file); in timblogiw_try_fmt() local
188 dev_dbg(&vdev->dev, in timblogiw_try_fmt()
210 struct video_device *vdev = video_devdata(file); in timblogiw_s_fmt() local
211 struct timblogiw *lw = video_get_drvdata(vdev); in timblogiw_s_fmt()
223 dev_err(&vdev->dev, "%s queue busy\n", __func__); in timblogiw_s_fmt()
239 struct video_device *vdev = video_devdata(file); in timblogiw_querycap() local
241 dev_dbg(&vdev->dev, "%s: Entry\n", __func__); in timblogiw_querycap()
[all …]
/drivers/net/ethernet/cisco/enic/
Dvnic_dev.c76 void *vnic_dev_priv(struct vnic_dev *vdev) in vnic_dev_priv() argument
78 return vdev->priv; in vnic_dev_priv()
81 static int vnic_dev_discover_res(struct vnic_dev *vdev, in vnic_dev_discover_res() argument
164 vdev->res[type].count = count; in vnic_dev_discover_res()
165 vdev->res[type].vaddr = (char __iomem *)bar[bar_num].vaddr + in vnic_dev_discover_res()
167 vdev->res[type].bus_addr = bar[bar_num].bus_addr + bar_offset; in vnic_dev_discover_res()
173 unsigned int vnic_dev_get_res_count(struct vnic_dev *vdev, in vnic_dev_get_res_count() argument
176 return vdev->res[type].count; in vnic_dev_get_res_count()
179 void __iomem *vnic_dev_get_res(struct vnic_dev *vdev, enum vnic_res_type type, in vnic_dev_get_res() argument
182 if (!vdev->res[type].vaddr) in vnic_dev_get_res()
[all …]
Dvnic_dev.h76 void *vnic_dev_priv(struct vnic_dev *vdev);
77 unsigned int vnic_dev_get_res_count(struct vnic_dev *vdev,
79 void __iomem *vnic_dev_get_res(struct vnic_dev *vdev, enum vnic_res_type type,
82 int vnic_dev_alloc_desc_ring(struct vnic_dev *vdev, struct vnic_dev_ring *ring,
84 void vnic_dev_free_desc_ring(struct vnic_dev *vdev,
86 int vnic_dev_cmd(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd,
88 void vnic_dev_cmd_proxy_by_index_start(struct vnic_dev *vdev, u16 index);
89 void vnic_dev_cmd_proxy_end(struct vnic_dev *vdev);
90 int vnic_dev_fw_info(struct vnic_dev *vdev,
92 int vnic_dev_spec(struct vnic_dev *vdev, unsigned int offset, unsigned int size,
[all …]
Denic_dev.c33 err = vnic_dev_fw_info(enic->vdev, fw_info); in enic_dev_fw_info()
44 err = vnic_dev_stats_dump(enic->vdev, vstats); in enic_dev_stats_dump()
58 err = vnic_dev_add_addr(enic->vdev, enic->netdev->dev_addr); in enic_dev_add_station_addr()
72 err = vnic_dev_del_addr(enic->vdev, enic->netdev->dev_addr); in enic_dev_del_station_addr()
84 err = vnic_dev_packet_filter(enic->vdev, directed, in enic_dev_packet_filter()
96 err = vnic_dev_add_addr(enic->vdev, addr); in enic_dev_add_addr()
107 err = vnic_dev_del_addr(enic->vdev, addr); in enic_dev_del_addr()
118 err = vnic_dev_notify_unset(enic->vdev); in enic_dev_notify_unset()
129 err = vnic_dev_hang_notify(enic->vdev); in enic_dev_hang_notify()
140 err = vnic_dev_set_ig_vlan_rewrite_mode(enic->vdev, in enic_dev_set_ig_vlan_rewrite_mode()
[all …]
/drivers/scsi/fnic/
Dvnic_dev.c58 void *vnic_dev_priv(struct vnic_dev *vdev) in vnic_dev_priv() argument
60 return vdev->priv; in vnic_dev_priv()
63 static int vnic_dev_discover_res(struct vnic_dev *vdev, in vnic_dev_discover_res() argument
129 vdev->res[type].count = count; in vnic_dev_discover_res()
130 vdev->res[type].vaddr = (char __iomem *)bar->vaddr + bar_offset; in vnic_dev_discover_res()
136 unsigned int vnic_dev_get_res_count(struct vnic_dev *vdev, in vnic_dev_get_res_count() argument
139 return vdev->res[type].count; in vnic_dev_get_res_count()
142 void __iomem *vnic_dev_get_res(struct vnic_dev *vdev, enum vnic_res_type type, in vnic_dev_get_res() argument
145 if (!vdev->res[type].vaddr) in vnic_dev_get_res()
153 return (char __iomem *)vdev->res[type].vaddr + in vnic_dev_get_res()
[all …]
Dvnic_dev.h111 void *vnic_dev_priv(struct vnic_dev *vdev);
112 unsigned int vnic_dev_get_res_count(struct vnic_dev *vdev,
114 void __iomem *vnic_dev_get_res(struct vnic_dev *vdev, enum vnic_res_type type,
120 int vnic_dev_alloc_desc_ring(struct vnic_dev *vdev, struct vnic_dev_ring *ring,
122 void vnic_dev_free_desc_ring(struct vnic_dev *vdev,
124 int vnic_dev_cmd(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd,
126 int vnic_dev_fw_info(struct vnic_dev *vdev,
128 int vnic_dev_spec(struct vnic_dev *vdev, unsigned int offset,
130 int vnic_dev_stats_clear(struct vnic_dev *vdev);
131 int vnic_dev_stats_dump(struct vnic_dev *vdev, struct vnic_stats **stats);
[all …]
/drivers/net/ethernet/neterion/vxge/
Dvxge-main.c91 static inline int is_vxge_card_up(struct vxgedev *vdev) in is_vxge_card_up() argument
93 return test_bit(__VXGE_STATE_CARD_UP, &vdev->state); in is_vxge_card_up()
120 static inline void VXGE_COMPLETE_ALL_TX(struct vxgedev *vdev) in VXGE_COMPLETE_ALL_TX() argument
125 for (i = 0; i < vdev->no_of_vpath; i++) in VXGE_COMPLETE_ALL_TX()
126 VXGE_COMPLETE_VPATH_TX(&vdev->vpaths[i].fifo); in VXGE_COMPLETE_ALL_TX()
129 static inline void VXGE_COMPLETE_ALL_RX(struct vxgedev *vdev) in VXGE_COMPLETE_ALL_RX() argument
135 for (i = 0; i < vdev->no_of_vpath; i++) { in VXGE_COMPLETE_ALL_RX()
136 ring = &vdev->vpaths[i].ring; in VXGE_COMPLETE_ALL_RX()
150 struct vxgedev *vdev = netdev_priv(dev); in vxge_callback_link_up() local
153 vdev->ndev->name, __func__, __LINE__); in vxge_callback_link_up()
[all …]
/drivers/staging/usbip/
Dvhci_hcd.c319 switch (dum->vdev[rhport].speed) { in vhci_hub_control()
380 if (dum->vdev[rhport].ud.status == in vhci_hub_control()
385 dum->vdev[rhport].ud.status); in vhci_hub_control()
462 if (the_controller->vdev[i].udev == udev) in get_vdev()
470 struct vhci_device *vdev = get_vdev(urb->dev); in vhci_tx_urb() local
474 if (!vdev) { in vhci_tx_urb()
482 spin_lock_irqsave(&vdev->priv_lock, flag); in vhci_tx_urb()
486 spin_unlock_irqrestore(&vdev->priv_lock, flag); in vhci_tx_urb()
487 usbip_event_add(&vdev->ud, VDEV_EVENT_ERROR_MALLOC); in vhci_tx_urb()
495 priv->vdev = vdev; in vhci_tx_urb()
[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()
56 out += sprintf(out, "%03u %03u ", i, vdev->ud.status); in show_status()
58 if (vdev->ud.status == VDEV_ST_USED) { in show_status()
60 vdev->speed, vdev->devid); in show_status()
61 out += sprintf(out, "%16p ", vdev->ud.tcp_socket); in show_status()
62 out += sprintf(out, "%s", dev_name(&vdev->udev->dev)); in show_status()
69 spin_unlock(&vdev->ud.lock); in show_status()
81 struct vhci_device *vdev; in vhci_port_disconnect() local
88 vdev = port_to_vdev(rhport); in vhci_port_disconnect()
[all …]
Dvhci_tx.c29 struct vhci_device *vdev = priv->vdev; in setup_cmd_submit_pdu() local
32 usb_pipedevice(urb->pipe), vdev->devid); in setup_cmd_submit_pdu()
36 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()
65 static int vhci_send_cmd_submit(struct vhci_device *vdev) in vhci_send_cmd_submit() argument
[all …]
Dvhci_rx.c27 struct urb *pickup_urb_and_free_priv(struct vhci_device *vdev, __u32 seqnum) in pickup_urb_and_free_priv() argument
33 list_for_each_entry_safe(priv, tmp, &vdev->priv_rx, list) { in pickup_urb_and_free_priv()
66 static void vhci_recv_ret_submit(struct vhci_device *vdev, in vhci_recv_ret_submit() argument
69 struct usbip_device *ud = &vdev->ud; in vhci_recv_ret_submit()
73 spin_lock(&vdev->priv_lock); in vhci_recv_ret_submit()
74 urb = pickup_urb_and_free_priv(vdev, pdu->base.seqnum); in vhci_recv_ret_submit()
75 spin_unlock(&vdev->priv_lock); in vhci_recv_ret_submit()
115 static struct vhci_unlink *dequeue_pending_unlink(struct vhci_device *vdev, in dequeue_pending_unlink() argument
120 spin_lock(&vdev->priv_lock); in dequeue_pending_unlink()
122 list_for_each_entry_safe(unlink, tmp, &vdev->unlink_rx, list) { in dequeue_pending_unlink()
[all …]
/drivers/remoteproc/
Dremoteproc_virtio.c70 static struct virtqueue *rp_find_vq(struct virtio_device *vdev, in rp_find_vq() argument
75 struct rproc_vdev *rvdev = vdev_to_rvdev(vdev); in rp_find_vq()
76 struct rproc *rproc = vdev_to_rproc(vdev); in rp_find_vq()
102 vq = vring_new_virtqueue(len, rvring->align, vdev, false, addr, in rp_find_vq()
115 static void rproc_virtio_del_vqs(struct virtio_device *vdev) in rproc_virtio_del_vqs() argument
118 struct rproc *rproc = vdev_to_rproc(vdev); in rproc_virtio_del_vqs()
124 list_for_each_entry_safe(vq, n, &vdev->vqs, list) { in rproc_virtio_del_vqs()
131 static int rproc_virtio_find_vqs(struct virtio_device *vdev, unsigned nvqs, in rproc_virtio_find_vqs() argument
136 struct rproc *rproc = vdev_to_rproc(vdev); in rproc_virtio_find_vqs()
140 vqs[i] = rp_find_vq(vdev, i, callbacks[i], names[i]); in rproc_virtio_find_vqs()
[all …]
/drivers/virtio/
Dvirtio_pci.c37 struct virtio_device vdev; member
104 static struct virtio_pci_device *to_vp_device(struct virtio_device *vdev) in to_vp_device() argument
106 return container_of(vdev, struct virtio_pci_device, vdev); in to_vp_device()
110 static u32 vp_get_features(struct virtio_device *vdev) in vp_get_features() argument
112 struct virtio_pci_device *vp_dev = to_vp_device(vdev); in vp_get_features()
120 static void vp_finalize_features(struct virtio_device *vdev) in vp_finalize_features() argument
122 struct virtio_pci_device *vp_dev = to_vp_device(vdev); in vp_finalize_features()
125 vring_transport_features(vdev); in vp_finalize_features()
128 BUILD_BUG_ON(ARRAY_SIZE(vdev->features) != 1); in vp_finalize_features()
129 iowrite32(vdev->features[0], vp_dev->ioaddr+VIRTIO_PCI_GUEST_FEATURES); in vp_finalize_features()
[all …]
Dvirtio_mmio.c67 container_of(_plat_dev, struct virtio_mmio_device, vdev)
70 struct virtio_device vdev; member
102 static u32 vm_get_features(struct virtio_device *vdev) in vm_get_features() argument
104 struct virtio_mmio_device *vm_dev = to_virtio_mmio_device(vdev); in vm_get_features()
112 static void vm_finalize_features(struct virtio_device *vdev) in vm_finalize_features() argument
114 struct virtio_mmio_device *vm_dev = to_virtio_mmio_device(vdev); in vm_finalize_features()
118 vring_transport_features(vdev); in vm_finalize_features()
120 for (i = 0; i < ARRAY_SIZE(vdev->features); i++) { in vm_finalize_features()
122 writel(vdev->features[i], in vm_finalize_features()
127 static void vm_get(struct virtio_device *vdev, unsigned offset, in vm_get() argument
[all …]
Dvirtio_balloon.c40 struct virtio_device *vdev; member
138 dev_printk(KERN_INFO, &vb->vdev->dev, in fill_balloon()
259 static void virtballoon_changed(struct virtio_device *vdev) in virtballoon_changed() argument
261 struct virtio_balloon *vb = vdev->priv; in virtballoon_changed()
271 vb->vdev->config->get(vb->vdev, in towards_target()
282 vb->vdev->config->set(vb->vdev, in update_balloon_size()
323 nvqs = virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_STATS_VQ) ? 3 : 2; in init_vqs()
324 err = vb->vdev->config->find_vqs(vb->vdev, nvqs, vqs, callbacks, names); in init_vqs()
330 if (virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_STATS_VQ)) { in init_vqs()
347 static int virtballoon_probe(struct virtio_device *vdev) in virtballoon_probe() argument
[all …]
/drivers/staging/vme/devices/
Dvme_pio2_core.c86 dev_warn(&card->vdev->dev, "Spurious Interrupt\n"); in pio2_int()
96 dev_err(&card->vdev->dev, in pio2_int()
103 dev_info(&card->vdev->dev, in pio2_int()
115 dev_err(&card->vdev->dev, in pio2_int()
191 static int pio2_match(struct vme_dev *vdev) in pio2_match() argument
194 if (vdev->num >= bus_num) { in pio2_match()
195 dev_err(&vdev->dev, in pio2_match()
200 if (vdev->num >= base_num) { in pio2_match()
201 dev_err(&vdev->dev, in pio2_match()
206 if (vdev->num >= vector_num) { in pio2_match()
[all …]
/drivers/lguest/
Dlguest_device.c46 struct virtio_device vdev; member
57 #define to_lgdev(vd) container_of(vd, struct lguest_device, vdev)
97 static u32 lg_get_features(struct virtio_device *vdev) in lg_get_features() argument
101 struct lguest_device_desc *desc = to_lgdev(vdev)->desc; in lg_get_features()
116 static void status_notify(struct virtio_device *vdev) in status_notify() argument
118 unsigned long offset = (void *)to_lgdev(vdev)->desc - lguest_devices; in status_notify()
129 static void lg_finalize_features(struct virtio_device *vdev) in lg_finalize_features() argument
132 struct lguest_device_desc *desc = to_lgdev(vdev)->desc; in lg_finalize_features()
137 vring_transport_features(vdev); in lg_finalize_features()
145 bits = min_t(unsigned, desc->feature_len, sizeof(vdev->features)) * 8; in lg_finalize_features()
[all …]
/drivers/s390/kvm/
Dkvm_virtio.c40 struct virtio_device vdev; member
44 #define to_kvmdev(vd) container_of(vd, struct kvm_device, vdev)
82 static u32 kvm_get_features(struct virtio_device *vdev) in kvm_get_features() argument
86 struct kvm_device_desc *desc = to_kvmdev(vdev)->desc; in kvm_get_features()
95 static void kvm_finalize_features(struct virtio_device *vdev) in kvm_finalize_features() argument
98 struct kvm_device_desc *desc = to_kvmdev(vdev)->desc; in kvm_finalize_features()
103 vring_transport_features(vdev); in kvm_finalize_features()
106 bits = min_t(unsigned, desc->feature_len, sizeof(vdev->features)) * 8; in kvm_finalize_features()
108 if (test_bit(i, vdev->features)) in kvm_finalize_features()
116 static void kvm_get(struct virtio_device *vdev, unsigned int offset, in kvm_get() argument
[all …]
/drivers/scsi/
Dvirtio_scsi.c51 struct virtio_device *vdev; member
63 static inline struct Scsi_Host *virtio_scsi_host(struct virtio_device *vdev) in virtio_scsi_host() argument
65 return vdev->priv; in virtio_scsi_host()
150 struct Scsi_Host *sh = virtio_scsi_host(vq->vdev); in virtscsi_vq_done()
227 struct Scsi_Host *shost = virtio_scsi_host(vscsi->vdev); in virtscsi_map_cmd()
394 #define virtscsi_config_get(vdev, fld) \ argument
397 vdev->config->get(vdev, \
403 #define virtscsi_config_set(vdev, fld, val) \ argument
406 vdev->config->set(vdev, \
411 static int virtscsi_init(struct virtio_device *vdev, in virtscsi_init() argument
[all …]
/drivers/block/
Dvirtio_blk.c26 struct virtio_device *vdev; member
67 struct virtio_blk *vblk = vq->vdev->priv; in blk_done()
250 if (!virtio_has_feature(vblk->vdev, VIRTIO_BLK_F_SCSI)) in virtblk_ioctl()
265 err = virtio_config_val(vblk->vdev, VIRTIO_BLK_F_GEOMETRY, in virtblk_getgeo()
323 struct virtio_device *vdev = vblk->vdev; in virtblk_config_changed_work() local
333 vdev->config->get(vdev, offsetof(struct virtio_blk_config, capacity), in virtblk_config_changed_work()
338 dev_warn(&vdev->dev, "Capacity %llu too large: truncating\n", in virtblk_config_changed_work()
347 dev_notice(&vdev->dev, in virtblk_config_changed_work()
359 static void virtblk_config_changed(struct virtio_device *vdev) in virtblk_config_changed() argument
361 struct virtio_blk *vblk = vdev->priv; in virtblk_config_changed()
[all …]
/drivers/video/via/
Dvia-core.c478 static int __devinit via_pci_setup_mmio(struct viafb_dev *vdev) in via_pci_setup_mmio() argument
486 vdev->engine_start = pci_resource_start(vdev->pdev, 1); in via_pci_setup_mmio()
487 vdev->engine_len = pci_resource_len(vdev->pdev, 1); in via_pci_setup_mmio()
488 vdev->engine_mmio = ioremap_nocache(vdev->engine_start, in via_pci_setup_mmio()
489 vdev->engine_len); in via_pci_setup_mmio()
490 if (vdev->engine_mmio == NULL) in via_pci_setup_mmio()
491 dev_err(&vdev->pdev->dev, in via_pci_setup_mmio()
501 if (vdev->chip_type == UNICHROME_VX900) in via_pci_setup_mmio()
502 vdev->fbmem_start = pci_resource_start(vdev->pdev, 2); in via_pci_setup_mmio()
504 vdev->fbmem_start = pci_resource_start(vdev->pdev, 0); in via_pci_setup_mmio()
[all …]
/drivers/ide/
Dvia82cxxx.c129 struct via82cxxx_dev *vdev = host->host_priv; in via_set_speed() local
132 if (~vdev->via_config->flags & VIA_BAD_AST) { in via_set_speed()
144 switch (vdev->via_config->udma_mask) { in via_set_speed()
152 if (vdev->via_config->udma_mask) { in via_set_speed()
184 struct via82cxxx_dev *vdev = host->host_priv; in via_set_drive() local
191 switch (vdev->via_config->udma_mask) { in via_set_drive()
245 static void via_cable_detect(struct via82cxxx_dev *vdev, u32 u) in via_cable_detect() argument
249 switch (vdev->via_config->udma_mask) { in via_cable_detect()
259 vdev->via_80w |= (1 << (1 - (i >> 4))); in via_cable_detect()
271 vdev->via_80w |= (1 << (1 - (i >> 4))); in via_cable_detect()
[all …]
/drivers/scsi/ibmvscsi/
Drpa_vscsi.c76 struct vio_dev *vdev = to_vio_dev(hostdata->dev); in rpavscsi_release_crq_queue() local
77 free_irq(vdev->irq, (void *)hostdata); in rpavscsi_release_crq_queue()
82 rc = plpar_hcall_norets(H_FREE_CRQ, vdev->unit_address); in rpavscsi_release_crq_queue()
123 struct vio_dev *vdev = to_vio_dev(hostdata->dev); in rpavscsi_send_crq() local
125 return plpar_hcall_norets(H_SEND_CRQ, vdev->unit_address, word1, word2); in rpavscsi_send_crq()
135 struct vio_dev *vdev = to_vio_dev(hostdata->dev); in rpavscsi_task() local
146 vio_enable_interrupts(vdev); in rpavscsi_task()
148 vio_disable_interrupts(vdev); in rpavscsi_task()
207 struct vio_dev *vdev = to_vio_dev(hostdata->dev); in rpavscsi_reset_crq_queue() local
213 rc = plpar_hcall_norets(H_FREE_CRQ, vdev->unit_address); in rpavscsi_reset_crq_queue()
[all …]

12345678