Home
last modified time | relevance | path

Searched refs:vi (Results 1 – 25 of 33) sorted by relevance

12

/drivers/virtio/
Dvirtio_input.c24 static void virtinput_queue_evtbuf(struct virtio_input *vi, in virtinput_queue_evtbuf() argument
30 virtqueue_add_inbuf(vi->evt, sg, 1, evtbuf, GFP_ATOMIC); in virtinput_queue_evtbuf()
35 struct virtio_input *vi = vq->vdev->priv; in virtinput_recv_events() local
40 spin_lock_irqsave(&vi->lock, flags); in virtinput_recv_events()
41 if (vi->ready) { in virtinput_recv_events()
42 while ((event = virtqueue_get_buf(vi->evt, &len)) != NULL) { in virtinput_recv_events()
43 spin_unlock_irqrestore(&vi->lock, flags); in virtinput_recv_events()
44 input_event(vi->idev, in virtinput_recv_events()
48 spin_lock_irqsave(&vi->lock, flags); in virtinput_recv_events()
49 virtinput_queue_evtbuf(vi, event); in virtinput_recv_events()
[all …]
/drivers/char/hw_random/
Dvirtio-rng.c40 struct virtrng_info *vi = vq->vdev->priv; in random_recv_done() local
44 if (!virtqueue_get_buf(vi->vq, &len)) in random_recv_done()
47 smp_store_release(&vi->data_avail, len); in random_recv_done()
48 complete(&vi->have_data); in random_recv_done()
51 static void request_entropy(struct virtrng_info *vi) in request_entropy() argument
55 reinit_completion(&vi->have_data); in request_entropy()
56 vi->data_idx = 0; in request_entropy()
58 sg_init_one(&sg, vi->data, sizeof(vi->data)); in request_entropy()
61 virtqueue_add_inbuf(vi->vq, &sg, 1, vi->data, GFP_KERNEL); in request_entropy()
63 virtqueue_kick(vi->vq); in request_entropy()
[all …]
/drivers/net/
Dvirtio_net.c410 static void virtnet_rq_free_buf(struct virtnet_info *vi, in virtnet_rq_free_buf() argument
413 if (vi->mergeable_rx_bufs) in virtnet_rq_free_buf()
415 else if (vi->big_packets) in virtnet_rq_free_buf()
421 static void enable_delayed_refill(struct virtnet_info *vi) in enable_delayed_refill() argument
423 spin_lock_bh(&vi->refill_lock); in enable_delayed_refill()
424 vi->refill_enabled = true; in enable_delayed_refill()
425 spin_unlock_bh(&vi->refill_lock); in enable_delayed_refill()
428 static void disable_delayed_refill(struct virtnet_info *vi) in disable_delayed_refill() argument
430 spin_lock_bh(&vi->refill_lock); in disable_delayed_refill()
431 vi->refill_enabled = false; in disable_delayed_refill()
[all …]
/drivers/parisc/
Diosapic.c517 static void iosapic_rd_irt_entry(struct vector_info *vi , u32 *dp0, u32 *dp1) in iosapic_rd_irt_entry() argument
519 struct iosapic_info *isp = vi->iosapic; in iosapic_rd_irt_entry()
520 u8 idx = vi->irqline; in iosapic_rd_irt_entry()
527 static void iosapic_wr_irt_entry(struct vector_info *vi, u32 dp0, u32 dp1) in iosapic_wr_irt_entry() argument
529 struct iosapic_info *isp = vi->iosapic; in iosapic_wr_irt_entry()
532 vi->irqline, isp->isi_hpa, dp0, dp1); in iosapic_wr_irt_entry()
534 iosapic_write(isp->addr, IOSAPIC_IRDT_ENTRY(vi->irqline), dp0); in iosapic_wr_irt_entry()
539 iosapic_write(isp->addr, IOSAPIC_IRDT_ENTRY_HI(vi->irqline), dp1); in iosapic_wr_irt_entry()
551 iosapic_set_irt_data( struct vector_info *vi, u32 *dp0, u32 *dp1) in iosapic_set_irt_data() argument
554 struct irt_entry *p = vi->irte; in iosapic_set_irt_data()
[all …]
/drivers/scsi/esas2r/
Desas2r_vda.c66 struct atto_ioctl_vda *vi, in esas2r_process_vda_ioctl() argument
74 vi->status = ATTO_STS_SUCCESS; in esas2r_process_vda_ioctl()
75 vi->vda_status = RS_PENDING; in esas2r_process_vda_ioctl()
77 if (vi->function >= vercnt) { in esas2r_process_vda_ioctl()
78 vi->status = ATTO_STS_INV_FUNC; in esas2r_process_vda_ioctl()
82 if (vi->version > esas2r_vdaioctl_versions[vi->function]) { in esas2r_process_vda_ioctl()
83 vi->status = ATTO_STS_INV_VERSION; in esas2r_process_vda_ioctl()
88 vi->status = ATTO_STS_DEGRADED; in esas2r_process_vda_ioctl()
92 if (vi->function != VDA_FUNC_SCSI) in esas2r_process_vda_ioctl()
95 rq->vrq->scsi.function = vi->function; in esas2r_process_vda_ioctl()
[all …]
/drivers/staging/media/tegra-video/
Dvi.c66 static int tegra_get_format_idx_by_code(struct tegra_vi *vi, in tegra_get_format_idx_by_code() argument
72 for (i = offset; i < vi->soc->nformats; ++i) { in tegra_get_format_idx_by_code()
73 if (vi->soc->video_formats[i].code == code) in tegra_get_format_idx_by_code()
80 static u32 tegra_get_format_fourcc_by_idx(struct tegra_vi *vi, in tegra_get_format_fourcc_by_idx() argument
83 if (index >= vi->soc->nformats) in tegra_get_format_fourcc_by_idx()
86 return vi->soc->video_formats[index].fourcc; in tegra_get_format_fourcc_by_idx()
90 tegra_get_format_by_fourcc(struct tegra_vi *vi, u32 fourcc) in tegra_get_format_by_fourcc() argument
94 for (i = 0; i < vi->soc->nformats; ++i) { in tegra_get_format_by_fourcc()
95 if (vi->soc->video_formats[i].fourcc == fourcc) in tegra_get_format_by_fourcc()
96 return &vi->soc->video_formats[i]; in tegra_get_format_by_fourcc()
[all …]
Dtegra20.c153 writel(val, chan->vi->iomem + addr); in tegra20_vi_write()
227 static int tegra20_vi_enable(struct tegra_vi *vi, bool on) in tegra20_vi_enable() argument
239 return dev_err_probe(vi->dev, PTR_ERR(apb_misc), "cannot access APB_MISC"); in tegra20_vi_enable()
252 struct tegra_vi *vi = chan->vi; in tegra20_channel_host1x_syncpt_init() local
255 out_sp = host1x_syncpt_request(&vi->client, HOST1X_SYNCPT_CLIENT_MANAGED); in tegra20_channel_host1x_syncpt_init()
257 return dev_err_probe(vi->dev, -ENOMEM, "failed to request syncpoint\n"); in tegra20_channel_host1x_syncpt_init()
Dvi.h58 int (*vi_enable)(struct tegra_vi *vi, bool on);
188 struct tegra_vi *vi; member
313 void tegra_channels_cleanup(struct tegra_vi *vi);
Dtegra210.c150 writel_relaxed(val, chan->vi->iomem + addr); in tegra_vi_write()
155 return readl_relaxed(chan->vi->iomem + addr); in tegra_vi_read()
164 vi_csi_base = chan->vi->iomem + TEGRA210_VI_CSI_BASE(portno); in vi_csi_write()
174 vi_csi_base = chan->vi->iomem + TEGRA210_VI_CSI_BASE(portno); in vi_csi_read()
185 struct tegra_vi *vi = chan->vi; in tegra210_channel_host1x_syncpt_init() local
192 fs_sp = host1x_syncpt_request(&vi->client, flags); in tegra210_channel_host1x_syncpt_init()
194 dev_err(vi->dev, "failed to request frame start syncpoint\n"); in tegra210_channel_host1x_syncpt_init()
199 mw_sp = host1x_syncpt_request(&vi->client, flags); in tegra210_channel_host1x_syncpt_init()
201 dev_err(vi->dev, "failed to request memory ack syncpoint\n"); in tegra210_channel_host1x_syncpt_init()
Dvideo.c21 tegra_channels_cleanup(vid->vi); in tegra_v4l2_dev_release()
99 tegra_channels_cleanup(vid->vi); in host1x_video_probe()
Dvideo.h19 struct tegra_vi *vi; member
DMakefile4 vi.o \
/drivers/mtd/ubi/
Dgluebi.c279 struct ubi_volume_info *vi) in gluebi_create() argument
289 mtd->name = kmemdup(vi->name, vi->name_len + 1, GFP_KERNEL); in gluebi_create()
295 gluebi->vol_id = vi->vol_id; in gluebi_create()
296 gluebi->ubi_num = vi->ubi_num; in gluebi_create()
302 mtd->erasesize = vi->usable_leb_size; in gluebi_create()
314 if (vi->vol_type == UBI_DYNAMIC_VOLUME) in gluebi_create()
315 mtd->size = (unsigned long long)vi->usable_leb_size * vi->size; in gluebi_create()
317 mtd->size = vi->used_bytes; in gluebi_create()
321 g = find_gluebi_nolock(vi->ubi_num, vi->vol_id); in gluebi_create()
324 g->mtd.index, vi->ubi_num, vi->vol_id); in gluebi_create()
[all …]
Dblock.c328 static int calc_disk_capacity(struct ubi_volume_info *vi, u64 *disk_capacity) in calc_disk_capacity() argument
330 u64 size = vi->used_bytes >> 9; in calc_disk_capacity()
332 if (vi->used_bytes % 512) { in calc_disk_capacity()
333 if (vi->vol_type == UBI_DYNAMIC_VOLUME) in calc_disk_capacity()
335 vi->used_bytes - (size << 9)); in calc_disk_capacity()
338 vi->used_bytes - (size << 9)); in calc_disk_capacity()
349 int ubiblock_create(struct ubi_volume_info *vi) in ubiblock_create() argument
356 ret = calc_disk_capacity(vi, &disk_capacity); in ubiblock_create()
363 if (find_dev_nolock(vi->ubi_num, vi->vol_id)) { in ubiblock_create()
376 dev->ubi_num = vi->ubi_num; in ubiblock_create()
[all …]
Dkapi.c68 struct ubi_volume_info *vi) in ubi_do_get_volume_info() argument
70 vi->vol_id = vol->vol_id; in ubi_do_get_volume_info()
71 vi->ubi_num = ubi->ubi_num; in ubi_do_get_volume_info()
72 vi->size = vol->reserved_pebs; in ubi_do_get_volume_info()
73 vi->used_bytes = vol->used_bytes; in ubi_do_get_volume_info()
74 vi->vol_type = vol->vol_type; in ubi_do_get_volume_info()
75 vi->corrupted = vol->corrupted; in ubi_do_get_volume_info()
76 vi->upd_marker = vol->upd_marker; in ubi_do_get_volume_info()
77 vi->alignment = vol->alignment; in ubi_do_get_volume_info()
78 vi->usable_leb_size = vol->usable_leb_size; in ubi_do_get_volume_info()
[all …]
Dubi.h958 struct ubi_volume_info *vi);
981 int ubiblock_create(struct ubi_volume_info *vi);
982 int ubiblock_remove(struct ubi_volume_info *vi);
986 static inline int ubiblock_create(struct ubi_volume_info *vi) in ubiblock_create() argument
990 static inline int ubiblock_remove(struct ubi_volume_info *vi) in ubiblock_remove() argument
Dcdev.c562 struct ubi_volume_info vi; in vol_cdev_ioctl() local
564 ubi_get_volume_info(desc, &vi); in vol_cdev_ioctl()
565 err = ubiblock_create(&vi); in vol_cdev_ioctl()
572 struct ubi_volume_info vi; in vol_cdev_ioctl() local
574 ubi_get_volume_info(desc, &vi); in vol_cdev_ioctl()
575 err = ubiblock_remove(&vi); in vol_cdev_ioctl()
Dbuild.c162 ubi_do_get_volume_info(ubi, vol, &nt.vi); in ubi_volume_notify()
205 ubi_do_get_volume_info(ubi, ubi->volumes[i], &nt.vi); in ubi_notify_all()
/drivers/i2c/busses/
Di2c-virtio.c136 struct virtio_i2c *vi = i2c_get_adapdata(adap); in virtio_i2c_xfer() local
137 struct virtqueue *vq = vi->vq; in virtio_i2c_xfer()
172 static int virtio_i2c_setup_vqs(struct virtio_i2c *vi) in virtio_i2c_setup_vqs() argument
174 struct virtio_device *vdev = vi->vdev; in virtio_i2c_setup_vqs()
176 vi->vq = virtio_find_single_vq(vdev, virtio_i2c_msg_done, "msg"); in virtio_i2c_setup_vqs()
177 return PTR_ERR_OR_ZERO(vi->vq); in virtio_i2c_setup_vqs()
192 struct virtio_i2c *vi; in virtio_i2c_probe() local
200 vi = devm_kzalloc(&vdev->dev, sizeof(*vi), GFP_KERNEL); in virtio_i2c_probe()
201 if (!vi) in virtio_i2c_probe()
204 vdev->priv = vi; in virtio_i2c_probe()
[all …]
/drivers/crypto/virtio/
Dvirtio_crypto_core.c99 static int virtcrypto_find_vqs(struct virtio_crypto *vi) in virtcrypto_find_vqs() argument
106 struct device *dev = &vi->vdev->dev; in virtcrypto_find_vqs()
113 total_vqs = vi->max_data_queues + 1; in virtcrypto_find_vqs()
131 for (i = 0; i < vi->max_data_queues; i++) { in virtcrypto_find_vqs()
133 snprintf(vi->data_vq[i].name, sizeof(vi->data_vq[i].name), in virtcrypto_find_vqs()
135 names[i] = vi->data_vq[i].name; in virtcrypto_find_vqs()
138 ret = virtio_find_vqs(vi->vdev, total_vqs, vqs, callbacks, names, NULL); in virtcrypto_find_vqs()
142 vi->ctrl_vq = vqs[total_vqs - 1]; in virtcrypto_find_vqs()
144 for (i = 0; i < vi->max_data_queues; i++) { in virtcrypto_find_vqs()
145 spin_lock_init(&vi->data_vq[i].lock); in virtcrypto_find_vqs()
[all …]
/drivers/media/pci/ivtv/
Divtv-vbi.c87 struct vbi_info *vi = &itv->vbi; in ivtv_write_vbi_line() local
106 if (memcmp(&vps, &vi->vps_payload, sizeof(vps))) { in ivtv_write_vbi_line()
107 vi->vps_payload = vps; in ivtv_write_vbi_line()
114 if (vi->wss_payload != wss) { in ivtv_write_vbi_line()
115 vi->wss_payload = wss; in ivtv_write_vbi_line()
123 struct vbi_info *vi = &itv->vbi; in ivtv_write_vbi_cc_lines() local
125 if (vi->cc_payload_idx < ARRAY_SIZE(vi->cc_payload)) { in ivtv_write_vbi_cc_lines()
126 memcpy(&vi->cc_payload[vi->cc_payload_idx], cc, in ivtv_write_vbi_cc_lines()
128 vi->cc_payload_idx++; in ivtv_write_vbi_cc_lines()
464 struct vbi_info *vi = &itv->vbi; in ivtv_vbi_work_handler() local
[all …]
/drivers/net/ethernet/fungible/funeth/
Dfuneth_main.c1220 struct fun_vport_info *vi; in fun_set_vf_mac() local
1227 vi = fun_get_vport(ed, vf); in fun_set_vf_mac()
1228 if (!vi) in fun_set_vf_mac()
1235 ether_addr_copy(vi->mac, mac); in fun_set_vf_mac()
1248 struct fun_vport_info *vi; in fun_set_vf_vlan() local
1258 vi = fun_get_vport(ed, vf); in fun_set_vf_vlan()
1259 if (!vi) in fun_set_vf_vlan()
1266 vi->vlan = vlan; in fun_set_vf_vlan()
1267 vi->qos = qos; in fun_set_vf_vlan()
1268 vi->vlan_proto = vlan_proto; in fun_set_vf_vlan()
[all …]
/drivers/media/usb/pvrusb2/
Dpvrusb2-v4l2.c162 static int pvr2_enum_input(struct file *file, void *priv, struct v4l2_input *vi) in pvr2_enum_input() argument
174 tmp.index = vi->index; in pvr2_enum_input()
175 if (vi->index >= fh->input_cnt) in pvr2_enum_input()
177 val = fh->input_map[vi->index]; in pvr2_enum_input()
206 *vi = tmp; in pvr2_enum_input()
/drivers/gpu/drm/amd/amdgpu/
DMakefile97 vi.o mxgpu_vi.o nbio_v6_1.o soc15.o emu_soc.o mxgpu_ai.o nbio_v7_0.o vega10_reg_init.o \
/drivers/net/ethernet/emulex/benet/
Dbe_main.c1896 struct ifla_vf_info *vi) in be_get_vf_config() argument
1907 vi->vf = vf; in be_get_vf_config()
1908 vi->max_tx_rate = vf_cfg->tx_rate; in be_get_vf_config()
1909 vi->min_tx_rate = 0; in be_get_vf_config()
1910 vi->vlan = vf_cfg->vlan_tag & VLAN_VID_MASK; in be_get_vf_config()
1911 vi->qos = vf_cfg->vlan_tag >> VLAN_PRIO_SHIFT; in be_get_vf_config()
1912 memcpy(&vi->mac, vf_cfg->mac_addr, ETH_ALEN); in be_get_vf_config()
1913 vi->linkstate = adapter->vf_cfg[vf].plink_tracking; in be_get_vf_config()
1914 vi->spoofchk = adapter->vf_cfg[vf].spoofchk; in be_get_vf_config()

12