/Linux-v4.19/drivers/net/ethernet/cisco/enic/ |
D | vnic_dev.c | 39 void *vnic_dev_priv(struct vnic_dev *vdev) in vnic_dev_priv() argument 41 return vdev->priv; in vnic_dev_priv() 44 static int vnic_dev_discover_res(struct vnic_dev *vdev, in vnic_dev_discover_res() argument 56 vdev_err(vdev, "vNIC BAR0 res hdr length error\n"); in vnic_dev_discover_res() 63 vdev_err(vdev, "vNIC BAR0 res hdr not mem-mapped\n"); in vnic_dev_discover_res() 72 vdev_err(vdev, "vNIC BAR0 res magic/version error exp (%lx/%lx) or (%lx/%lx), curr (%x/%x)\n", in vnic_dev_discover_res() 109 vdev_err(vdev, "vNIC BAR0 resource %d out-of-bounds, offset 0x%x + size 0x%x > bar len 0x%lx\n", in vnic_dev_discover_res() 124 vdev->res[type].count = count; in vnic_dev_discover_res() 125 vdev->res[type].vaddr = (char __iomem *)bar[bar_num].vaddr + in vnic_dev_discover_res() 127 vdev->res[type].bus_addr = bar[bar_num].bus_addr + bar_offset; in vnic_dev_discover_res() [all …]
|
D | vnic_dev.h | 111 int (*devcmd_rtn)(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd, 117 void *vnic_dev_priv(struct vnic_dev *vdev); 118 unsigned int vnic_dev_get_res_count(struct vnic_dev *vdev, 120 void __iomem *vnic_dev_get_res(struct vnic_dev *vdev, enum vnic_res_type type, 123 int vnic_dev_alloc_desc_ring(struct vnic_dev *vdev, struct vnic_dev_ring *ring, 125 void vnic_dev_free_desc_ring(struct vnic_dev *vdev, 127 int vnic_dev_cmd(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd, 129 void vnic_dev_cmd_proxy_by_index_start(struct vnic_dev *vdev, u16 index); 130 void vnic_dev_cmd_proxy_end(struct vnic_dev *vdev); 131 int vnic_dev_fw_info(struct vnic_dev *vdev, [all …]
|
/Linux-v4.19/drivers/vfio/pci/ |
D | vfio_pci_intrs.c | 33 struct vfio_pci_device *vdev = opaque; in vfio_send_intx_eventfd() local 35 if (likely(is_intx(vdev) && !vdev->virq_disabled)) in vfio_send_intx_eventfd() 36 eventfd_signal(vdev->ctx[0].trigger, 1); in vfio_send_intx_eventfd() 39 void vfio_pci_intx_mask(struct vfio_pci_device *vdev) in vfio_pci_intx_mask() argument 41 struct pci_dev *pdev = vdev->pdev; in vfio_pci_intx_mask() 44 spin_lock_irqsave(&vdev->irqlock, flags); in vfio_pci_intx_mask() 52 if (unlikely(!is_intx(vdev))) { in vfio_pci_intx_mask() 53 if (vdev->pci_2_3) in vfio_pci_intx_mask() 55 } else if (!vdev->ctx[0].masked) { in vfio_pci_intx_mask() 60 if (vdev->pci_2_3) in vfio_pci_intx_mask() [all …]
|
D | vfio_pci.c | 80 struct vfio_pci_device *vdev = opaque; in vfio_pci_set_vga_decode() local 81 struct pci_dev *tmp = NULL, *pdev = vdev->pdev; in vfio_pci_set_vga_decode() 114 static void vfio_pci_probe_mmaps(struct vfio_pci_device *vdev) in vfio_pci_probe_mmaps() argument 120 INIT_LIST_HEAD(&vdev->dummy_resources_list); in vfio_pci_probe_mmaps() 123 res = vdev->pdev->resource + bar; in vfio_pci_probe_mmaps() 140 vdev->bar_mmap_supported[bar] = true; in vfio_pci_probe_mmaps() 165 &vdev->dummy_resources_list); in vfio_pci_probe_mmaps() 166 vdev->bar_mmap_supported[bar] = true; in vfio_pci_probe_mmaps() 178 vdev->bar_mmap_supported[bar] = false; in vfio_pci_probe_mmaps() 182 static void vfio_pci_try_bus_reset(struct vfio_pci_device *vdev); [all …]
|
D | vfio_pci_config.c | 114 int (*readfn)(struct vfio_pci_device *vdev, int pos, int count, 116 int (*writefn)(struct vfio_pci_device *vdev, int pos, int count, 177 static int vfio_default_config_read(struct vfio_pci_device *vdev, int pos, in vfio_default_config_read() argument 183 memcpy(val, vdev->vconfig + pos, count); in vfio_default_config_read() 189 struct pci_dev *pdev = vdev->pdev; in vfio_default_config_read() 203 static int vfio_default_config_write(struct vfio_pci_device *vdev, int pos, in vfio_default_config_write() argument 220 memcpy(&virt_val, vdev->vconfig + pos, count); in vfio_default_config_write() 225 memcpy(vdev->vconfig + pos, &virt_val, count); in vfio_default_config_write() 230 struct pci_dev *pdev = vdev->pdev; in vfio_default_config_write() 250 static int vfio_direct_config_read(struct vfio_pci_device *vdev, int pos, in vfio_direct_config_read() argument [all …]
|
D | vfio_pci_private.h | 58 size_t (*rw)(struct vfio_pci_device *vdev, char __user *buf, 60 void (*release)(struct vfio_pci_device *vdev, 116 #define is_intx(vdev) (vdev->irq_type == VFIO_PCI_INTX_IRQ_INDEX) argument 117 #define is_msi(vdev) (vdev->irq_type == VFIO_PCI_MSI_IRQ_INDEX) argument 118 #define is_msix(vdev) (vdev->irq_type == VFIO_PCI_MSIX_IRQ_INDEX) argument 119 #define is_irq_none(vdev) (!(is_intx(vdev) || is_msi(vdev) || is_msix(vdev))) argument 120 #define irq_is(vdev, type) (vdev->irq_type == type) argument 122 extern void vfio_pci_intx_mask(struct vfio_pci_device *vdev); 123 extern void vfio_pci_intx_unmask(struct vfio_pci_device *vdev); 125 extern int vfio_pci_set_irqs_ioctl(struct vfio_pci_device *vdev, [all …]
|
/Linux-v4.19/include/linux/ |
D | virtio_config.h | 66 void (*get)(struct virtio_device *vdev, unsigned offset, 68 void (*set)(struct virtio_device *vdev, unsigned offset, 70 u32 (*generation)(struct virtio_device *vdev); 71 u8 (*get_status)(struct virtio_device *vdev); 72 void (*set_status)(struct virtio_device *vdev, u8 status); 73 void (*reset)(struct virtio_device *vdev); 79 u64 (*get_features)(struct virtio_device *vdev); 80 int (*finalize_features)(struct virtio_device *vdev); 81 const char *(*bus_name)(struct virtio_device *vdev); 84 const struct cpumask *(*get_vq_affinity)(struct virtio_device *vdev, [all …]
|
/Linux-v4.19/drivers/vfio/platform/ |
D | vfio_platform_common.c | 32 #define VFIO_PLATFORM_IS_ACPI(vdev) ((vdev)->acpihid != NULL) argument 56 static int vfio_platform_acpi_probe(struct vfio_platform_device *vdev, in vfio_platform_acpi_probe() argument 67 vdev->name); in vfio_platform_acpi_probe() 72 vdev->acpihid = acpi_device_hid(adev); in vfio_platform_acpi_probe() 74 return WARN_ON(!vdev->acpihid) ? -EINVAL : 0; in vfio_platform_acpi_probe() 77 static int vfio_platform_acpi_call_reset(struct vfio_platform_device *vdev, in vfio_platform_acpi_call_reset() argument 82 struct device *dev = vdev->device; in vfio_platform_acpi_call_reset() 99 static bool vfio_platform_acpi_has_reset(struct vfio_platform_device *vdev) in vfio_platform_acpi_has_reset() argument 102 struct device *dev = vdev->device; in vfio_platform_acpi_has_reset() 111 static bool vfio_platform_has_reset(struct vfio_platform_device *vdev) in vfio_platform_has_reset() argument [all …]
|
D | vfio_amba.c | 28 static struct resource *get_amba_resource(struct vfio_platform_device *vdev, in get_amba_resource() argument 31 struct amba_device *adev = (struct amba_device *) vdev->opaque; in get_amba_resource() 39 static int get_amba_irq(struct vfio_platform_device *vdev, int i) in get_amba_irq() argument 41 struct amba_device *adev = (struct amba_device *) vdev->opaque; in get_amba_irq() 53 struct vfio_platform_device *vdev; in vfio_amba_probe() local 56 vdev = kzalloc(sizeof(*vdev), GFP_KERNEL); in vfio_amba_probe() 57 if (!vdev) in vfio_amba_probe() 60 vdev->name = kasprintf(GFP_KERNEL, "vfio-amba-%08x", adev->periphid); in vfio_amba_probe() 61 if (!vdev->name) { in vfio_amba_probe() 62 kfree(vdev); in vfio_amba_probe() [all …]
|
D | vfio_platform_irq.c | 49 static int vfio_platform_set_irq_mask(struct vfio_platform_device *vdev, in vfio_platform_set_irq_mask() argument 57 if (!(vdev->irqs[index].flags & VFIO_IRQ_INFO_MASKABLE)) in vfio_platform_set_irq_mask() 64 return vfio_virqfd_enable((void *) &vdev->irqs[index], in vfio_platform_set_irq_mask() 67 &vdev->irqs[index].mask, fd); in vfio_platform_set_irq_mask() 69 vfio_virqfd_disable(&vdev->irqs[index].mask); in vfio_platform_set_irq_mask() 74 vfio_platform_mask(&vdev->irqs[index]); in vfio_platform_set_irq_mask() 80 vfio_platform_mask(&vdev->irqs[index]); in vfio_platform_set_irq_mask() 109 static int vfio_platform_set_irq_unmask(struct vfio_platform_device *vdev, in vfio_platform_set_irq_unmask() argument 117 if (!(vdev->irqs[index].flags & VFIO_IRQ_INFO_MASKABLE)) in vfio_platform_set_irq_unmask() 124 return vfio_virqfd_enable((void *) &vdev->irqs[index], in vfio_platform_set_irq_unmask() [all …]
|
D | vfio_platform.c | 32 static struct resource *get_platform_resource(struct vfio_platform_device *vdev, in get_platform_resource() argument 35 struct platform_device *dev = (struct platform_device *) vdev->opaque; in get_platform_resource() 51 static int get_platform_irq(struct vfio_platform_device *vdev, int i) in get_platform_irq() argument 53 struct platform_device *pdev = (struct platform_device *) vdev->opaque; in get_platform_irq() 60 struct vfio_platform_device *vdev; in vfio_platform_probe() local 63 vdev = kzalloc(sizeof(*vdev), GFP_KERNEL); in vfio_platform_probe() 64 if (!vdev) in vfio_platform_probe() 67 vdev->opaque = (void *) pdev; in vfio_platform_probe() 68 vdev->name = pdev->name; in vfio_platform_probe() 69 vdev->flags = VFIO_DEVICE_FLAGS_PLATFORM; in vfio_platform_probe() [all …]
|
/Linux-v4.19/drivers/scsi/snic/ |
D | vnic_dev.c | 68 int (*devcmd_rtn)(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd, 77 void *svnic_dev_priv(struct vnic_dev *vdev) in svnic_dev_priv() argument 79 return vdev->priv; in svnic_dev_priv() 82 static int vnic_dev_discover_res(struct vnic_dev *vdev, in vnic_dev_discover_res() argument 158 vdev->res[type].count = count; in vnic_dev_discover_res() 159 vdev->res[type].vaddr = (char __iomem *)bar->vaddr + bar_offset; in vnic_dev_discover_res() 165 unsigned int svnic_dev_get_res_count(struct vnic_dev *vdev, in svnic_dev_get_res_count() argument 168 return vdev->res[type].count; in svnic_dev_get_res_count() 171 void __iomem *svnic_dev_get_res(struct vnic_dev *vdev, enum vnic_res_type type, in svnic_dev_get_res() argument 174 if (!vdev->res[type].vaddr) in svnic_dev_get_res() [all …]
|
D | vnic_dev.h | 70 void *svnic_dev_priv(struct vnic_dev *vdev); 71 unsigned int svnic_dev_get_res_count(struct vnic_dev *vdev, 73 void __iomem *svnic_dev_get_res(struct vnic_dev *vdev, enum vnic_res_type type, 79 int svnic_dev_alloc_desc_ring(struct vnic_dev *vdev, struct vnic_dev_ring *ring, 81 void svnic_dev_free_desc_ring(struct vnic_dev *vdev, 83 int svnic_dev_cmd(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd, 85 int svnic_dev_fw_info(struct vnic_dev *vdev, 87 int svnic_dev_spec(struct vnic_dev *vdev, unsigned int offset, 89 int svnic_dev_stats_clear(struct vnic_dev *vdev); 90 int svnic_dev_stats_dump(struct vnic_dev *vdev, struct vnic_stats **stats); [all …]
|
/Linux-v4.19/drivers/scsi/fnic/ |
D | vnic_dev.c | 58 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 …]
|
D | vnic_dev.h | 111 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 …]
|
/Linux-v4.19/drivers/media/v4l2-core/ |
D | v4l2-dev.c | 52 struct video_device *vdev = to_video_device(cd); in index_show() local 54 return sprintf(buf, "%i\n", vdev->index); in index_show() 61 struct video_device *vdev = to_video_device(cd); in dev_debug_show() local 63 return sprintf(buf, "%i\n", vdev->dev_debug); in dev_debug_show() 69 struct video_device *vdev = to_video_device(cd); in dev_debug_store() local 77 vdev->dev_debug = value; in dev_debug_store() 85 struct video_device *vdev = to_video_device(cd); in name_show() local 87 return sprintf(buf, "%.*s\n", (int)sizeof(vdev->name), vdev->name); in name_show() 131 static inline void devnode_set(struct video_device *vdev) in devnode_set() argument 133 set_bit(vdev->num, devnode_bits(vdev->vfl_type)); in devnode_set() [all …]
|
D | v4l2-fh.c | 29 void v4l2_fh_init(struct v4l2_fh *fh, struct video_device *vdev) in v4l2_fh_init() argument 31 fh->vdev = vdev; in v4l2_fh_init() 33 fh->ctrl_handler = vdev->ctrl_handler; in v4l2_fh_init() 35 set_bit(V4L2_FL_USES_V4L2_FH, &fh->vdev->flags); in v4l2_fh_init() 41 set_bit(_IOC_NR(VIDIOC_G_PRIORITY), vdev->valid_ioctls); in v4l2_fh_init() 42 set_bit(_IOC_NR(VIDIOC_S_PRIORITY), vdev->valid_ioctls); in v4l2_fh_init() 56 v4l2_prio_open(fh->vdev->prio, &fh->prio); in v4l2_fh_add() 57 spin_lock_irqsave(&fh->vdev->fh_lock, flags); in v4l2_fh_add() 58 list_add(&fh->list, &fh->vdev->fh_list); in v4l2_fh_add() 59 spin_unlock_irqrestore(&fh->vdev->fh_lock, flags); in v4l2_fh_add() [all …]
|
/Linux-v4.19/drivers/misc/mic/vop/ |
D | vop_vringh.c | 32 static inline struct device *vop_dev(struct vop_vdev *vdev) in vop_dev() argument 34 return vdev->vpdev->dev.parent; in vop_dev() 38 static inline int vop_vdev_inited(struct vop_vdev *vdev) in vop_vdev_inited() argument 40 if (!vdev) in vop_vdev_inited() 43 if (!vdev->dd || !vdev->dd->type) { in vop_vdev_inited() 44 dev_err(vop_dev(vdev), "%s %d err %d\n", in vop_vdev_inited() 49 if (vdev->dd->type == -1) { in vop_vdev_inited() 50 dev_dbg(vop_dev(vdev), "%s %d err %d\n", in vop_vdev_inited() 60 struct vop_vdev *vdev = vvrh->vdev; in _vop_notify() local 61 struct vop_device *vpdev = vdev->vpdev; in _vop_notify() [all …]
|
D | vop_main.c | 59 struct virtio_device vdev; member 73 #define to_vopvdev(vd) container_of(vd, struct _vop_vdev, vdev) 78 static inline struct device *_vop_dev(struct _vop_vdev *vdev) in _vop_dev() argument 80 return vdev->vdev.dev.parent; in _vop_dev() 116 static u64 vop_get_features(struct virtio_device *vdev) in vop_get_features() argument 120 struct mic_device_desc __iomem *desc = to_vopvdev(vdev)->desc; in vop_get_features() 124 bits = min_t(unsigned, feature_len, sizeof(vdev->features)) * 8; in vop_get_features() 132 static int vop_finalize_features(struct virtio_device *vdev) in vop_finalize_features() argument 135 struct mic_device_desc __iomem *desc = to_vopvdev(vdev)->desc; in vop_finalize_features() 142 vring_transport_features(vdev); in vop_finalize_features() [all …]
|
/Linux-v4.19/drivers/net/ethernet/neterion/vxge/ |
D | vxge-main.c | 90 static enum vxge_hw_status vxge_reset_all_vpaths(struct vxgedev *vdev); 92 static inline int is_vxge_card_up(struct vxgedev *vdev) in is_vxge_card_up() argument 94 return test_bit(__VXGE_STATE_CARD_UP, &vdev->state); in is_vxge_card_up() 121 static inline void VXGE_COMPLETE_ALL_TX(struct vxgedev *vdev) in VXGE_COMPLETE_ALL_TX() argument 126 for (i = 0; i < vdev->no_of_vpath; i++) in VXGE_COMPLETE_ALL_TX() 127 VXGE_COMPLETE_VPATH_TX(&vdev->vpaths[i].fifo); in VXGE_COMPLETE_ALL_TX() 130 static inline void VXGE_COMPLETE_ALL_RX(struct vxgedev *vdev) in VXGE_COMPLETE_ALL_RX() argument 136 for (i = 0; i < vdev->no_of_vpath; i++) { in VXGE_COMPLETE_ALL_RX() 137 ring = &vdev->vpaths[i].ring; in VXGE_COMPLETE_ALL_RX() 151 struct vxgedev *vdev = netdev_priv(dev); in vxge_callback_link_up() local [all …]
|
/Linux-v4.19/arch/sparc/kernel/ |
D | vio.c | 71 struct vio_dev *vdev = to_vio_dev(dev); in vio_device_probe() local 78 id = vio_match_device(drv->id_table, vdev); in vio_device_probe() 84 if (vdev->tx_irq == 0 && vdev->tx_ino != ~0UL) in vio_device_probe() 85 vdev->tx_irq = sun4v_build_virq(vdev->cdev_handle, in vio_device_probe() 86 vdev->tx_ino); in vio_device_probe() 88 if (vdev->rx_irq == 0 && vdev->rx_ino != ~0UL) in vio_device_probe() 89 vdev->rx_irq = sun4v_build_virq(vdev->cdev_handle, in vio_device_probe() 90 vdev->rx_ino); in vio_device_probe() 93 return drv->probe(vdev, id); in vio_device_probe() 98 struct vio_dev *vdev = to_vio_dev(dev); in vio_device_remove() local [all …]
|
/Linux-v4.19/tools/virtio/linux/ |
D | virtio_config.h | 13 static inline bool __virtio_test_bit(const struct virtio_device *vdev, in __virtio_test_bit() argument 16 return vdev->features & (1ULL << fbit); in __virtio_test_bit() 24 static inline void __virtio_set_bit(struct virtio_device *vdev, in __virtio_set_bit() argument 27 vdev->features |= (1ULL << fbit); in __virtio_set_bit() 35 static inline void __virtio_clear_bit(struct virtio_device *vdev, in __virtio_clear_bit() argument 38 vdev->features &= ~(1ULL << fbit); in __virtio_clear_bit() 48 static inline bool virtio_has_iommu_quirk(const struct virtio_device *vdev) in virtio_has_iommu_quirk() argument 54 return !virtio_has_feature(vdev, VIRTIO_F_IOMMU_PLATFORM); in virtio_has_iommu_quirk() 57 static inline bool virtio_is_little_endian(struct virtio_device *vdev) in virtio_is_little_endian() argument 59 return virtio_has_feature(vdev, VIRTIO_F_VERSION_1) || in virtio_is_little_endian() [all …]
|
/Linux-v4.19/drivers/remoteproc/ |
D | remoteproc_virtio.c | 71 static struct virtqueue *rp_find_vq(struct virtio_device *vdev, in rp_find_vq() argument 76 struct rproc_vdev *rvdev = vdev_to_rvdev(vdev); in rp_find_vq() 77 struct rproc *rproc = vdev_to_rproc(vdev); in rp_find_vq() 106 vq = vring_new_virtqueue(id, len, rvring->align, vdev, false, ctx, in rp_find_vq() 120 static void __rproc_virtio_del_vqs(struct virtio_device *vdev) in __rproc_virtio_del_vqs() argument 125 list_for_each_entry_safe(vq, n, &vdev->vqs, list) { in __rproc_virtio_del_vqs() 132 static void rproc_virtio_del_vqs(struct virtio_device *vdev) in rproc_virtio_del_vqs() argument 134 __rproc_virtio_del_vqs(vdev); in rproc_virtio_del_vqs() 137 static int rproc_virtio_find_vqs(struct virtio_device *vdev, unsigned int nvqs, in rproc_virtio_find_vqs() argument 147 vqs[i] = rp_find_vq(vdev, i, callbacks[i], names[i], in rproc_virtio_find_vqs() [all …]
|
/Linux-v4.19/drivers/crypto/virtio/ |
D | virtio_crypto_core.c | 39 struct virtio_crypto *vcrypto = vq->vdev->priv; in virtcrypto_dataq_callback() 67 struct device *dev = &vi->vdev->dev; in virtcrypto_find_vqs() 99 ret = virtio_find_vqs(vi->vdev, total_vqs, vqs, callbacks, names, NULL); in virtcrypto_find_vqs() 219 virtio_cread(vcrypto->vdev, in virtcrypto_update_status() 227 dev_warn(&vcrypto->vdev->dev, in virtcrypto_update_status() 230 virtio_break_device(vcrypto->vdev); in virtcrypto_update_status() 242 dev_err(&vcrypto->vdev->dev, in virtcrypto_update_status() 247 dev_info(&vcrypto->vdev->dev, "Accelerator device is ready\n"); in virtcrypto_update_status() 250 dev_info(&vcrypto->vdev->dev, "Accelerator is not ready\n"); in virtcrypto_update_status() 290 struct virtio_device *vdev = vcrypto->vdev; in virtcrypto_del_vqs() local [all …]
|
/Linux-v4.19/drivers/usb/usbip/ |
D | vhci_tx.c | 15 struct vhci_device *vdev = priv->vdev; in setup_cmd_submit_pdu() local 18 usb_pipedevice(urb->pipe), vdev->devid); in setup_cmd_submit_pdu() 22 pdup->base.devid = vdev->devid; in setup_cmd_submit_pdu() 33 static struct vhci_priv *dequeue_from_priv_tx(struct vhci_device *vdev) in dequeue_from_priv_tx() argument 38 spin_lock_irqsave(&vdev->priv_lock, flags); in dequeue_from_priv_tx() 40 list_for_each_entry_safe(priv, tmp, &vdev->priv_tx, list) { in dequeue_from_priv_tx() 41 list_move_tail(&priv->list, &vdev->priv_rx); in dequeue_from_priv_tx() 42 spin_unlock_irqrestore(&vdev->priv_lock, flags); in dequeue_from_priv_tx() 46 spin_unlock_irqrestore(&vdev->priv_lock, flags); in dequeue_from_priv_tx() 51 static int vhci_send_cmd_submit(struct vhci_device *vdev) in vhci_send_cmd_submit() argument [all …]
|