vdev 139 arch/powerpc/include/asm/vio.h extern int vio_h_cop_sync(struct vio_dev *vdev, struct vio_pfo_op *op); vdev 145 arch/powerpc/include/asm/vio.h extern const void *vio_get_attribute(struct vio_dev *vdev, char *which, vdev 1106 arch/powerpc/platforms/pseries/vio.c int vio_h_cop_sync(struct vio_dev *vdev, struct vio_pfo_op *op) vdev 1108 arch/powerpc/platforms/pseries/vio.c struct device *dev = &vdev->dev; vdev 1118 arch/powerpc/platforms/pseries/vio.c vdev->resource_id, vdev 1625 arch/powerpc/platforms/pseries/vio.c const void *vio_get_attribute(struct vio_dev *vdev, char *which, int *length) vdev 1627 arch/powerpc/platforms/pseries/vio.c return of_get_property(vdev->dev.of_node, which, length); vdev 146 arch/s390/kernel/setup.c int vdev; vdev 148 arch/s390/kernel/setup.c vdev = simple_strtoul(str, &str, 0); vdev 149 arch/s390/kernel/setup.c if (vdev >= 0 && vdev < 65536) { vdev 150 arch/s390/kernel/setup.c console_devno = vdev; vdev 430 arch/sparc/include/asm/vio.h struct vio_dev *vdev; vdev 474 arch/sparc/include/asm/vio.h vio->vdev->channel_id, ## a); \ vdev 506 arch/sparc/include/asm/vio.h int vio_driver_init(struct vio_driver_state *vio, struct vio_dev *vdev, vdev 513 arch/sparc/include/asm/vio.h u64 vio_vdev_node(struct mdesc_handle *hp, struct vio_dev *vdev); vdev 1158 arch/sparc/kernel/ds.c static int ds_probe(struct vio_dev *vdev, const struct vio_device_id *id) vdev 1181 arch/sparc/kernel/ds.c val = mdesc_get_property(hp, vdev->mp, "id", NULL); vdev 1202 arch/sparc/kernel/ds.c ds_cfg.tx_irq = vdev->tx_irq; vdev 1203 arch/sparc/kernel/ds.c ds_cfg.rx_irq = vdev->rx_irq; vdev 1205 arch/sparc/kernel/ds.c lp = ldc_alloc(vdev->channel_id, &ds_cfg, dp, "DS"); vdev 1239 arch/sparc/kernel/ds.c static int ds_remove(struct vio_dev *vdev) vdev 71 arch/sparc/kernel/vio.c struct vio_dev *vdev = to_vio_dev(dev); vdev 78 arch/sparc/kernel/vio.c id = vio_match_device(drv->id_table, vdev); vdev 84 arch/sparc/kernel/vio.c if (vdev->tx_irq == 0 && vdev->tx_ino != ~0UL) vdev 85 arch/sparc/kernel/vio.c vdev->tx_irq = sun4v_build_virq(vdev->cdev_handle, vdev 86 arch/sparc/kernel/vio.c vdev->tx_ino); vdev 88 arch/sparc/kernel/vio.c if (vdev->rx_irq == 0 && vdev->rx_ino != ~0UL) vdev 89 arch/sparc/kernel/vio.c vdev->rx_irq = sun4v_build_virq(vdev->cdev_handle, vdev 90 arch/sparc/kernel/vio.c vdev->rx_ino); vdev 93 arch/sparc/kernel/vio.c return drv->probe(vdev, id); vdev 98 arch/sparc/kernel/vio.c struct vio_dev *vdev = to_vio_dev(dev); vdev 108 arch/sparc/kernel/vio.c return drv->remove(vdev); vdev 117 arch/sparc/kernel/vio.c struct vio_dev *vdev = to_vio_dev(dev); vdev 120 arch/sparc/kernel/vio.c if (!strcmp(vdev->type, "vnet-port")) vdev 122 arch/sparc/kernel/vio.c else if (!strcmp(vdev->type, "vdc-port")) vdev 132 arch/sparc/kernel/vio.c struct vio_dev *vdev = to_vio_dev(dev); vdev 133 arch/sparc/kernel/vio.c return sprintf(buf, "%s\n", vdev->type); vdev 140 arch/sparc/kernel/vio.c const struct vio_dev *vdev = to_vio_dev(dev); vdev 142 arch/sparc/kernel/vio.c return sprintf(buf, "vio:T%sS%s\n", vdev->type, vdev->compat); vdev 190 arch/sparc/kernel/vio.c struct vio_dev *vdev; vdev 193 arch/sparc/kernel/vio.c vdev = to_vio_dev(dev); vdev 194 arch/sparc/kernel/vio.c dp = vdev->dp; vdev 238 arch/sparc/kernel/vio.c u64 vio_vdev_node(struct mdesc_handle *hp, struct vio_dev *vdev) vdev 242 arch/sparc/kernel/vio.c if (vdev == NULL) vdev 245 arch/sparc/kernel/vio.c node = mdesc_get_node(hp, (const char *)vdev->node_name, vdev 246 arch/sparc/kernel/vio.c &vdev->md_node_info); vdev 253 arch/sparc/kernel/vio.c struct vio_dev *vdev) vdev 257 arch/sparc/kernel/vio.c vdev->tx_ino = ~0UL; vdev 258 arch/sparc/kernel/vio.c vdev->rx_ino = ~0UL; vdev 259 arch/sparc/kernel/vio.c vdev->channel_id = ~0UL; vdev 269 arch/sparc/kernel/vio.c vdev->tx_ino = *irq; vdev 273 arch/sparc/kernel/vio.c vdev->rx_ino = *irq; vdev 277 arch/sparc/kernel/vio.c vdev->channel_id = *chan_id; vdev 280 arch/sparc/kernel/vio.c vdev->cdev_handle = cdev_cfg_handle; vdev 298 arch/sparc/kernel/vio.c struct vio_dev *vdev; vdev 329 arch/sparc/kernel/vio.c vdev = kzalloc(sizeof(*vdev), GFP_KERNEL); vdev 330 arch/sparc/kernel/vio.c if (!vdev) { vdev 335 arch/sparc/kernel/vio.c vdev->mp = mp; vdev 336 arch/sparc/kernel/vio.c memcpy(vdev->type, type, tlen); vdev 338 arch/sparc/kernel/vio.c memcpy(vdev->compat, compat, clen); vdev 340 arch/sparc/kernel/vio.c memset(vdev->compat, 0, sizeof(vdev->compat)); vdev 341 arch/sparc/kernel/vio.c vdev->compat_len = clen; vdev 343 arch/sparc/kernel/vio.c vdev->port_id = ~0UL; vdev 344 arch/sparc/kernel/vio.c vdev->tx_irq = 0; vdev 345 arch/sparc/kernel/vio.c vdev->rx_irq = 0; vdev 347 arch/sparc/kernel/vio.c vio_fill_channel_info(hp, mp, vdev); vdev 350 arch/sparc/kernel/vio.c dev_set_name(&vdev->dev, "%s", type); vdev 351 arch/sparc/kernel/vio.c vdev->dev_no = ~(u64)0; vdev 353 arch/sparc/kernel/vio.c dev_set_name(&vdev->dev, "%s-%llu", type, *id); vdev 354 arch/sparc/kernel/vio.c vdev->dev_no = *id; vdev 356 arch/sparc/kernel/vio.c dev_set_name(&vdev->dev, "%s-%llu-%llu", type, vdev 358 arch/sparc/kernel/vio.c vdev->dev_no = *cfg_handle; vdev 359 arch/sparc/kernel/vio.c vdev->port_id = *id; vdev 362 arch/sparc/kernel/vio.c vdev->dev.parent = parent; vdev 363 arch/sparc/kernel/vio.c vdev->dev.bus = &vio_bus_type; vdev 364 arch/sparc/kernel/vio.c vdev->dev.release = vio_dev_release; vdev 376 arch/sparc/kernel/vio.c vdev->dp = dp; vdev 383 arch/sparc/kernel/vio.c (void) snprintf(vdev->node_name, VIO_MAX_NAME_LEN, "%s", vdev 387 arch/sparc/kernel/vio.c &vdev->md_node_info); vdev 390 arch/sparc/kernel/vio.c dev_name(&vdev->dev), err); vdev 391 arch/sparc/kernel/vio.c kfree(vdev); vdev 397 arch/sparc/kernel/vio.c dev_name(&vdev->dev), vdev->tx_ino, vdev->rx_ino); vdev 399 arch/sparc/kernel/vio.c err = device_register(&vdev->dev); vdev 402 arch/sparc/kernel/vio.c dev_name(&vdev->dev), err); vdev 403 arch/sparc/kernel/vio.c put_device(&vdev->dev); vdev 406 arch/sparc/kernel/vio.c if (vdev->dp) vdev 407 arch/sparc/kernel/vio.c err = sysfs_create_file(&vdev->dev.kobj, vdev 410 arch/sparc/kernel/vio.c return vdev; vdev 426 arch/sparc/kernel/vio.c struct vio_dev *vdev = to_vio_dev(dev); vdev 432 arch/sparc/kernel/vio.c node = vio_vdev_node(node_data->hp, vdev); vdev 169 arch/sparc/kernel/viohs.c vio->vdev->channel_id); vdev 743 arch/sparc/kernel/viohs.c cfg.tx_irq = vio->vdev->tx_irq; vdev 744 arch/sparc/kernel/viohs.c cfg.rx_irq = vio->vdev->rx_irq; vdev 746 arch/sparc/kernel/viohs.c lp = ldc_alloc(vio->vdev->channel_id, &cfg, event_arg, vio->name); vdev 782 arch/sparc/kernel/viohs.c vio->name, vio->vdev->channel_id, err); vdev 794 arch/sparc/kernel/viohs.c vio->name, vio->vdev->channel_id, err); vdev 814 arch/sparc/kernel/viohs.c int vio_driver_init(struct vio_driver_state *vio, struct vio_dev *vdev, vdev 851 arch/sparc/kernel/viohs.c vio->vdev = vdev; vdev 43 arch/um/drivers/virtio_uml.c container_of(_vdev, struct virtio_uml_device, vdev) vdev 46 arch/um/drivers/virtio_uml.c struct virtio_device vdev; vdev 326 arch/um/drivers/virtio_uml.c virtio_config_changed(&vu_dev->vdev); vdev 694 arch/um/drivers/virtio_uml.c static void vu_get(struct virtio_device *vdev, unsigned offset, vdev 697 arch/um/drivers/virtio_uml.c struct virtio_uml_device *vu_dev = to_virtio_uml_device(vdev); vdev 702 arch/um/drivers/virtio_uml.c static void vu_set(struct virtio_device *vdev, unsigned offset, vdev 705 arch/um/drivers/virtio_uml.c struct virtio_uml_device *vu_dev = to_virtio_uml_device(vdev); vdev 710 arch/um/drivers/virtio_uml.c static u8 vu_get_status(struct virtio_device *vdev) vdev 712 arch/um/drivers/virtio_uml.c struct virtio_uml_device *vu_dev = to_virtio_uml_device(vdev); vdev 717 arch/um/drivers/virtio_uml.c static void vu_set_status(struct virtio_device *vdev, u8 status) vdev 719 arch/um/drivers/virtio_uml.c struct virtio_uml_device *vu_dev = to_virtio_uml_device(vdev); vdev 724 arch/um/drivers/virtio_uml.c static void vu_reset(struct virtio_device *vdev) vdev 726 arch/um/drivers/virtio_uml.c struct virtio_uml_device *vu_dev = to_virtio_uml_device(vdev); vdev 744 arch/um/drivers/virtio_uml.c static void vu_del_vqs(struct virtio_device *vdev) vdev 746 arch/um/drivers/virtio_uml.c struct virtio_uml_device *vu_dev = to_virtio_uml_device(vdev); vdev 751 arch/um/drivers/virtio_uml.c list_for_each_entry_reverse(vq, &vdev->vqs, list) vdev 757 arch/um/drivers/virtio_uml.c list_for_each_entry_safe(vq, n, &vdev->vqs, list) vdev 796 arch/um/drivers/virtio_uml.c static struct virtqueue *vu_setup_vq(struct virtio_device *vdev, vdev 800 arch/um/drivers/virtio_uml.c struct virtio_uml_device *vu_dev = to_virtio_uml_device(vdev); vdev 815 arch/um/drivers/virtio_uml.c vq = vring_create_virtqueue(index, num, PAGE_SIZE, vdev, true, true, vdev 864 arch/um/drivers/virtio_uml.c static int vu_find_vqs(struct virtio_device *vdev, unsigned nvqs, vdev 869 arch/um/drivers/virtio_uml.c struct virtio_uml_device *vu_dev = to_virtio_uml_device(vdev); vdev 883 arch/um/drivers/virtio_uml.c vqs[i] = vu_setup_vq(vdev, queue_idx++, callbacks[i], names[i], vdev 891 arch/um/drivers/virtio_uml.c list_for_each_entry(vq, &vdev->vqs, list) { vdev 907 arch/um/drivers/virtio_uml.c vu_del_vqs(vdev); vdev 911 arch/um/drivers/virtio_uml.c static u64 vu_get_features(struct virtio_device *vdev) vdev 913 arch/um/drivers/virtio_uml.c struct virtio_uml_device *vu_dev = to_virtio_uml_device(vdev); vdev 918 arch/um/drivers/virtio_uml.c static int vu_finalize_features(struct virtio_device *vdev) vdev 920 arch/um/drivers/virtio_uml.c struct virtio_uml_device *vu_dev = to_virtio_uml_device(vdev); vdev 921 arch/um/drivers/virtio_uml.c u64 supported = vdev->features & VHOST_USER_SUPPORTED_F; vdev 923 arch/um/drivers/virtio_uml.c vring_transport_features(vdev); vdev 924 arch/um/drivers/virtio_uml.c vu_dev->features = vdev->features | supported; vdev 929 arch/um/drivers/virtio_uml.c static const char *vu_bus_name(struct virtio_device *vdev) vdev 931 arch/um/drivers/virtio_uml.c struct virtio_uml_device *vu_dev = to_virtio_uml_device(vdev); vdev 951 arch/um/drivers/virtio_uml.c struct virtio_device *vdev = vdev 953 arch/um/drivers/virtio_uml.c struct virtio_uml_device *vu_dev = to_virtio_uml_device(vdev); vdev 984 arch/um/drivers/virtio_uml.c vu_dev->vdev.dev.parent = &pdev->dev; vdev 985 arch/um/drivers/virtio_uml.c vu_dev->vdev.dev.release = virtio_uml_release_dev; vdev 986 arch/um/drivers/virtio_uml.c vu_dev->vdev.config = &virtio_uml_config_ops; vdev 987 arch/um/drivers/virtio_uml.c vu_dev->vdev.id.device = pdata->virtio_device_id; vdev 988 arch/um/drivers/virtio_uml.c vu_dev->vdev.id.vendor = VIRTIO_DEV_ANY_ID; vdev 1005 arch/um/drivers/virtio_uml.c rc = register_virtio_device(&vu_dev->vdev); vdev 1007 arch/um/drivers/virtio_uml.c put_device(&vu_dev->vdev.dev); vdev 1019 arch/um/drivers/virtio_uml.c unregister_virtio_device(&vu_dev->vdev); vdev 25 block/blk-mq-virtio.c struct virtio_device *vdev, int first_vec) vdev 30 block/blk-mq-virtio.c if (!vdev->config->get_vq_affinity) vdev 34 block/blk-mq-virtio.c mask = vdev->config->get_vq_affinity(vdev, first_vec + queue); vdev 863 drivers/block/sunvdc.c g->first_minor = port->vio.vdev->dev_no << PARTITION_SHIFT; vdev 901 drivers/block/sunvdc.c device_add_disk(&port->vio.vdev->dev, g, NULL); vdev 933 drivers/block/sunvdc.c struct vio_dev *vdev = to_vio_dev(dev); vdev 938 drivers/block/sunvdc.c if ((vdev->dev_no == port_data->dev_no) && vdev 939 drivers/block/sunvdc.c (!(strcmp((char *)&vdev->type, port_data->type))) && vdev 959 drivers/block/sunvdc.c static bool vdc_port_mpgroup_check(struct vio_dev *vdev) vdev 964 drivers/block/sunvdc.c port_data.dev_no = vdev->dev_no; vdev 965 drivers/block/sunvdc.c port_data.type = (char *)&vdev->type; vdev 967 drivers/block/sunvdc.c dev = device_find_child(vdev->dev.parent, &port_data, vdev 976 drivers/block/sunvdc.c static int vdc_port_probe(struct vio_dev *vdev, const struct vio_device_id *id) vdev 988 drivers/block/sunvdc.c if ((vdev->dev_no << PARTITION_SHIFT) & ~(u64)MINORMASK) { vdev 990 drivers/block/sunvdc.c vdev->dev_no); vdev 995 drivers/block/sunvdc.c if (vdc_port_mpgroup_check(vdev)) { vdev 998 drivers/block/sunvdc.c dev_name(&vdev->dev)); vdev 1009 drivers/block/sunvdc.c if (vdev->dev_no >= 26) vdev 1012 drivers/block/sunvdc.c 'a' + ((int)vdev->dev_no / 26) - 1, vdev 1013 drivers/block/sunvdc.c 'a' + ((int)vdev->dev_no % 26)); vdev 1016 drivers/block/sunvdc.c VDCBLK_NAME "%c", 'a' + ((int)vdev->dev_no % 26)); vdev 1023 drivers/block/sunvdc.c ldc_timeout = mdesc_get_property(hp, vdev->mp, "vdc-timeout", NULL); vdev 1028 drivers/block/sunvdc.c err = vio_driver_init(&port->vio, vdev, VDEV_DISK, vdev 1053 drivers/block/sunvdc.c dev_set_drvdata(&vdev->dev, port); vdev 1073 drivers/block/sunvdc.c static int vdc_port_remove(struct vio_dev *vdev) vdev 1075 drivers/block/sunvdc.c struct vdc_port *port = dev_get_drvdata(&vdev->dev); vdev 1092 drivers/block/sunvdc.c dev_set_drvdata(&vdev->dev, NULL); vdev 45 drivers/block/virtio_blk.c struct virtio_device *vdev; vdev 116 drivers/block/virtio_blk.c if (vbr->out_hdr.type & cpu_to_virtio32(vq->vdev, VIRTIO_BLK_T_OUT)) vdev 138 drivers/block/virtio_blk.c sreq->resid_len = virtio32_to_cpu(vblk->vdev, vbr->in_hdr.residual); vdev 139 drivers/block/virtio_blk.c sreq->sense_len = virtio32_to_cpu(vblk->vdev, vbr->in_hdr.sense_len); vdev 140 drivers/block/virtio_blk.c sreq->result = virtio32_to_cpu(vblk->vdev, vbr->in_hdr.errors); vdev 152 drivers/block/virtio_blk.c if (!virtio_has_feature(vblk->vdev, VIRTIO_BLK_F_SCSI)) vdev 181 drivers/block/virtio_blk.c if (vbr->out_hdr.type & cpu_to_virtio32(vq->vdev, VIRTIO_BLK_T_OUT)) vdev 247 drivers/block/virtio_blk.c struct virtio_blk *vblk = vq->vdev->priv; vdev 330 drivers/block/virtio_blk.c vbr->out_hdr.type = cpu_to_virtio32(vblk->vdev, type); vdev 332 drivers/block/virtio_blk.c 0 : cpu_to_virtio64(vblk->vdev, blk_rq_pos(req)); vdev 333 drivers/block/virtio_blk.c vbr->out_hdr.ioprio = cpu_to_virtio32(vblk->vdev, req_get_ioprio(req)); vdev 346 drivers/block/virtio_blk.c vbr->out_hdr.type |= cpu_to_virtio32(vblk->vdev, VIRTIO_BLK_T_OUT); vdev 348 drivers/block/virtio_blk.c vbr->out_hdr.type |= cpu_to_virtio32(vblk->vdev, VIRTIO_BLK_T_IN); vdev 428 drivers/block/virtio_blk.c if (vblk->vdev) vdev 452 drivers/block/virtio_blk.c if (!vblk->vdev) { vdev 458 drivers/block/virtio_blk.c if (virtio_has_feature(vblk->vdev, VIRTIO_BLK_F_GEOMETRY)) { vdev 459 drivers/block/virtio_blk.c virtio_cread(vblk->vdev, struct virtio_blk_config, vdev 461 drivers/block/virtio_blk.c virtio_cread(vblk->vdev, struct virtio_blk_config, vdev 463 drivers/block/virtio_blk.c virtio_cread(vblk->vdev, struct virtio_blk_config, vdev 519 drivers/block/virtio_blk.c struct virtio_device *vdev = vblk->vdev; vdev 526 drivers/block/virtio_blk.c virtio_cread(vdev, struct virtio_blk_config, capacity, &capacity); vdev 530 drivers/block/virtio_blk.c dev_warn(&vdev->dev, "Capacity %llu too large: truncating\n", vdev 542 drivers/block/virtio_blk.c dev_notice(&vdev->dev, vdev 565 drivers/block/virtio_blk.c static void virtblk_config_changed(struct virtio_device *vdev) vdev 567 drivers/block/virtio_blk.c struct virtio_blk *vblk = vdev->priv; vdev 580 drivers/block/virtio_blk.c struct virtio_device *vdev = vblk->vdev; vdev 583 drivers/block/virtio_blk.c err = virtio_cread_feature(vdev, VIRTIO_BLK_F_MQ, vdev 610 drivers/block/virtio_blk.c err = virtio_find_vqs(vdev, num_vqs, vqs, callbacks, names, &desc); vdev 657 drivers/block/virtio_blk.c static int virtblk_get_cache_mode(struct virtio_device *vdev) vdev 662 drivers/block/virtio_blk.c err = virtio_cread_feature(vdev, VIRTIO_BLK_F_CONFIG_WCE, vdev 671 drivers/block/virtio_blk.c writeback = virtio_has_feature(vdev, VIRTIO_BLK_F_FLUSH); vdev 676 drivers/block/virtio_blk.c static void virtblk_update_cache_mode(struct virtio_device *vdev) vdev 678 drivers/block/virtio_blk.c u8 writeback = virtblk_get_cache_mode(vdev); vdev 679 drivers/block/virtio_blk.c struct virtio_blk *vblk = vdev->priv; vdev 695 drivers/block/virtio_blk.c struct virtio_device *vdev = vblk->vdev; vdev 698 drivers/block/virtio_blk.c BUG_ON(!virtio_has_feature(vblk->vdev, VIRTIO_BLK_F_CONFIG_WCE)); vdev 703 drivers/block/virtio_blk.c virtio_cwrite8(vdev, offsetof(struct virtio_blk_config, wce), i); vdev 704 drivers/block/virtio_blk.c virtblk_update_cache_mode(vdev); vdev 713 drivers/block/virtio_blk.c u8 writeback = virtblk_get_cache_mode(vblk->vdev); vdev 733 drivers/block/virtio_blk.c struct virtio_device *vdev = vblk->vdev; vdev 736 drivers/block/virtio_blk.c !virtio_has_feature(vdev, VIRTIO_BLK_F_CONFIG_WCE)) vdev 770 drivers/block/virtio_blk.c vblk->vdev, 0); vdev 796 drivers/block/virtio_blk.c static int virtblk_probe(struct virtio_device *vdev) vdev 806 drivers/block/virtio_blk.c if (!vdev->config->get) { vdev 807 drivers/block/virtio_blk.c dev_err(&vdev->dev, "%s failure: config access disabled\n", vdev 819 drivers/block/virtio_blk.c err = virtio_cread_feature(vdev, VIRTIO_BLK_F_SEG_MAX, vdev 829 drivers/block/virtio_blk.c vdev->priv = vblk = kmalloc(sizeof(*vblk), GFP_KERNEL); vdev 839 drivers/block/virtio_blk.c vblk->vdev = vdev; vdev 859 drivers/block/virtio_blk.c if (!virtio_has_feature(vdev, VIRTIO_RING_F_INDIRECT_DESC)) vdev 897 drivers/block/virtio_blk.c virtblk_update_cache_mode(vdev); vdev 900 drivers/block/virtio_blk.c if (virtio_has_feature(vdev, VIRTIO_BLK_F_RO)) vdev 909 drivers/block/virtio_blk.c max_size = virtio_max_dma_size(vdev); vdev 913 drivers/block/virtio_blk.c err = virtio_cread_feature(vdev, VIRTIO_BLK_F_SIZE_MAX, vdev 921 drivers/block/virtio_blk.c err = virtio_cread_feature(vdev, VIRTIO_BLK_F_BLK_SIZE, vdev 930 drivers/block/virtio_blk.c err = virtio_cread_feature(vdev, VIRTIO_BLK_F_TOPOLOGY, vdev 937 drivers/block/virtio_blk.c err = virtio_cread_feature(vdev, VIRTIO_BLK_F_TOPOLOGY, vdev 943 drivers/block/virtio_blk.c err = virtio_cread_feature(vdev, VIRTIO_BLK_F_TOPOLOGY, vdev 949 drivers/block/virtio_blk.c err = virtio_cread_feature(vdev, VIRTIO_BLK_F_TOPOLOGY, vdev 955 drivers/block/virtio_blk.c if (virtio_has_feature(vdev, VIRTIO_BLK_F_DISCARD)) { vdev 958 drivers/block/virtio_blk.c virtio_cread(vdev, struct virtio_blk_config, vdev 962 drivers/block/virtio_blk.c virtio_cread(vdev, struct virtio_blk_config, vdev 966 drivers/block/virtio_blk.c virtio_cread(vdev, struct virtio_blk_config, max_discard_seg, vdev 975 drivers/block/virtio_blk.c if (virtio_has_feature(vdev, VIRTIO_BLK_F_WRITE_ZEROES)) { vdev 976 drivers/block/virtio_blk.c virtio_cread(vdev, struct virtio_blk_config, vdev 982 drivers/block/virtio_blk.c virtio_device_ready(vdev); vdev 984 drivers/block/virtio_blk.c device_add_disk(&vdev->dev, vblk->disk, virtblk_attr_groups); vdev 992 drivers/block/virtio_blk.c vdev->config->del_vqs(vdev); vdev 1001 drivers/block/virtio_blk.c static void virtblk_remove(struct virtio_device *vdev) vdev 1003 drivers/block/virtio_blk.c struct virtio_blk *vblk = vdev->priv; vdev 1016 drivers/block/virtio_blk.c vdev->config->reset(vdev); vdev 1019 drivers/block/virtio_blk.c vblk->vdev = NULL; vdev 1022 drivers/block/virtio_blk.c vdev->config->del_vqs(vdev); vdev 1031 drivers/block/virtio_blk.c static int virtblk_freeze(struct virtio_device *vdev) vdev 1033 drivers/block/virtio_blk.c struct virtio_blk *vblk = vdev->priv; vdev 1036 drivers/block/virtio_blk.c vdev->config->reset(vdev); vdev 1043 drivers/block/virtio_blk.c vdev->config->del_vqs(vdev); vdev 1047 drivers/block/virtio_blk.c static int virtblk_restore(struct virtio_device *vdev) vdev 1049 drivers/block/virtio_blk.c struct virtio_blk *vblk = vdev->priv; vdev 1052 drivers/block/virtio_blk.c ret = init_vq(vdev->priv); vdev 1056 drivers/block/virtio_blk.c virtio_device_ready(vdev); vdev 41 drivers/char/hw_random/pseries-rng.c static unsigned long pseries_rng_get_desired_dma(struct vio_dev *vdev) vdev 31 drivers/char/hw_random/virtio-rng.c struct virtrng_info *vi = vq->vdev->priv; vdev 87 drivers/char/hw_random/virtio-rng.c static int probe_common(struct virtio_device *vdev) vdev 111 drivers/char/hw_random/virtio-rng.c vdev->priv = vi; vdev 114 drivers/char/hw_random/virtio-rng.c vi->vq = virtio_find_single_vq(vdev, random_recv_done, "input"); vdev 129 drivers/char/hw_random/virtio-rng.c static void remove_common(struct virtio_device *vdev) vdev 131 drivers/char/hw_random/virtio-rng.c struct virtrng_info *vi = vdev->priv; vdev 136 drivers/char/hw_random/virtio-rng.c vdev->config->reset(vdev); vdev 140 drivers/char/hw_random/virtio-rng.c vdev->config->del_vqs(vdev); vdev 145 drivers/char/hw_random/virtio-rng.c static int virtrng_probe(struct virtio_device *vdev) vdev 147 drivers/char/hw_random/virtio-rng.c return probe_common(vdev); vdev 150 drivers/char/hw_random/virtio-rng.c static void virtrng_remove(struct virtio_device *vdev) vdev 152 drivers/char/hw_random/virtio-rng.c remove_common(vdev); vdev 155 drivers/char/hw_random/virtio-rng.c static void virtrng_scan(struct virtio_device *vdev) vdev 157 drivers/char/hw_random/virtio-rng.c struct virtrng_info *vi = vdev->priv; vdev 166 drivers/char/hw_random/virtio-rng.c static int virtrng_freeze(struct virtio_device *vdev) vdev 168 drivers/char/hw_random/virtio-rng.c remove_common(vdev); vdev 172 drivers/char/hw_random/virtio-rng.c static int virtrng_restore(struct virtio_device *vdev) vdev 176 drivers/char/hw_random/virtio-rng.c err = probe_common(vdev); vdev 178 drivers/char/hw_random/virtio-rng.c struct virtrng_info *vi = vdev->priv; vdev 45 drivers/char/tpm/tpm_ibmvtpm.c static int ibmvtpm_send_crq_word(struct vio_dev *vdev, u64 w1) vdev 47 drivers/char/tpm/tpm_ibmvtpm.c return plpar_hcall_norets(H_SEND_CRQ, vdev->unit_address, w1, 0); vdev 86 drivers/char/tpm/tpm_ibmvtpm.c static int ibmvtpm_send_crq(struct vio_dev *vdev, vdev 91 drivers/char/tpm/tpm_ibmvtpm.c return ibmvtpm_send_crq_word(vdev, w1); vdev 148 drivers/char/tpm/tpm_ibmvtpm.c rc = ibmvtpm_send_crq_word(ibmvtpm->vdev, INIT_CRQ_CMD); vdev 173 drivers/char/tpm/tpm_ibmvtpm.c ibmvtpm->vdev->unit_address); vdev 181 drivers/char/tpm/tpm_ibmvtpm.c rc = vio_enable_interrupts(ibmvtpm->vdev); vdev 242 drivers/char/tpm/tpm_ibmvtpm.c rc = ibmvtpm_send_crq(ibmvtpm->vdev, vdev 287 drivers/char/tpm/tpm_ibmvtpm.c rc = ibmvtpm_send_crq(ibmvtpm->vdev, vdev 310 drivers/char/tpm/tpm_ibmvtpm.c rc = ibmvtpm_send_crq(ibmvtpm->vdev, vdev 331 drivers/char/tpm/tpm_ibmvtpm.c rc = ibmvtpm_send_crq_word(ibmvtpm->vdev, INIT_CRQ_COMP_CMD); vdev 345 drivers/char/tpm/tpm_ibmvtpm.c static int tpm_ibmvtpm_remove(struct vio_dev *vdev) vdev 347 drivers/char/tpm/tpm_ibmvtpm.c struct tpm_chip *chip = dev_get_drvdata(&vdev->dev); vdev 353 drivers/char/tpm/tpm_ibmvtpm.c free_irq(vdev->irq, ibmvtpm); vdev 358 drivers/char/tpm/tpm_ibmvtpm.c rc = plpar_hcall_norets(H_FREE_CRQ, vdev->unit_address); vdev 373 drivers/char/tpm/tpm_ibmvtpm.c dev_set_drvdata(&vdev->dev, NULL); vdev 385 drivers/char/tpm/tpm_ibmvtpm.c static unsigned long tpm_ibmvtpm_get_desired_dma(struct vio_dev *vdev) vdev 387 drivers/char/tpm/tpm_ibmvtpm.c struct tpm_chip *chip = dev_get_drvdata(&vdev->dev); vdev 415 drivers/char/tpm/tpm_ibmvtpm.c rc = ibmvtpm_send_crq(ibmvtpm->vdev, vdev 441 drivers/char/tpm/tpm_ibmvtpm.c ibmvtpm->vdev->unit_address); vdev 447 drivers/char/tpm/tpm_ibmvtpm.c return plpar_hcall_norets(H_REG_CRQ, ibmvtpm->vdev->unit_address, vdev 621 drivers/char/tpm/tpm_ibmvtpm.c ibmvtpm->vdev = vio_dev; vdev 33 drivers/char/tpm/tpm_ibmvtpm.h struct vio_dev *vdev; vdev 146 drivers/char/virtio_console.c struct virtio_device *vdev; vdev 338 drivers/char/virtio_console.c static bool is_rproc_serial(const struct virtio_device *vdev) vdev 340 drivers/char/virtio_console.c return is_rproc_enabled && vdev->id.device == VIRTIO_ID_RPROC_SERIAL; vdev 349 drivers/char/virtio_console.c if (!portdev->vdev) vdev 351 drivers/char/virtio_console.c return __virtio_test_bit(portdev->vdev, VIRTIO_CONSOLE_F_MULTIPORT); vdev 412 drivers/char/virtio_console.c static struct port_buffer *alloc_buf(struct virtio_device *vdev, size_t buf_size, vdev 434 drivers/char/virtio_console.c if (is_rproc_serial(vdev)) { vdev 441 drivers/char/virtio_console.c if (!vdev->dev.parent || !vdev->dev.parent->parent) vdev 443 drivers/char/virtio_console.c buf->dev = vdev->dev.parent->parent; vdev 561 drivers/char/virtio_console.c portdev->cpkt.id = cpu_to_virtio32(portdev->vdev, port_id); vdev 562 drivers/char/virtio_console.c portdev->cpkt.event = cpu_to_virtio16(portdev->vdev, event); vdev 563 drivers/char/virtio_console.c portdev->cpkt.value = cpu_to_virtio16(portdev->vdev, value); vdev 827 drivers/char/virtio_console.c buf = alloc_buf(port->portdev->vdev, count, 0); vdev 929 drivers/char/virtio_console.c if (is_rproc_serial(port->out_vq->vdev)) vdev 946 drivers/char/virtio_console.c buf = alloc_buf(port->portdev->vdev, 0, pipe->nrbufs); vdev 1169 drivers/char/virtio_console.c struct virtio_device *vdev; vdev 1175 drivers/char/virtio_console.c vdev = port->portdev->vdev; vdev 1178 drivers/char/virtio_console.c if (!is_rproc_serial(vdev) && vdev 1179 drivers/char/virtio_console.c virtio_has_feature(vdev, VIRTIO_CONSOLE_F_SIZE)) vdev 1336 drivers/char/virtio_console.c buf = alloc_buf(vq->vdev, PAGE_SIZE, 0); vdev 1395 drivers/char/virtio_console.c dev_err(&port->portdev->vdev->dev, "Error allocating cdev\n"); vdev 1404 drivers/char/virtio_console.c dev_err(&port->portdev->vdev->dev, vdev 1408 drivers/char/virtio_console.c port->dev = device_create(pdrvdata.class, &port->portdev->vdev->dev, vdev 1410 drivers/char/virtio_console.c port->portdev->vdev->index, id); vdev 1413 drivers/char/virtio_console.c dev_err(&port->portdev->vdev->dev, vdev 1433 drivers/char/virtio_console.c if (is_rproc_serial(port->portdev->vdev)) vdev 1467 drivers/char/virtio_console.c port->portdev->vdev->index, id); vdev 1566 drivers/char/virtio_console.c static void handle_control_message(struct virtio_device *vdev, vdev 1577 drivers/char/virtio_console.c port = find_port_by_id(portdev, virtio32_to_cpu(vdev, cpkt->id)); vdev 1579 drivers/char/virtio_console.c cpkt->event != cpu_to_virtio16(vdev, VIRTIO_CONSOLE_PORT_ADD)) { vdev 1581 drivers/char/virtio_console.c dev_dbg(&portdev->vdev->dev, vdev 1586 drivers/char/virtio_console.c switch (virtio16_to_cpu(vdev, cpkt->event)) { vdev 1589 drivers/char/virtio_console.c dev_dbg(&portdev->vdev->dev, vdev 1594 drivers/char/virtio_console.c if (virtio32_to_cpu(vdev, cpkt->id) >= vdev 1596 drivers/char/virtio_console.c dev_warn(&portdev->vdev->dev, vdev 1602 drivers/char/virtio_console.c add_port(portdev, virtio32_to_cpu(vdev, cpkt->id)); vdev 1638 drivers/char/virtio_console.c port->host_connected = virtio16_to_cpu(vdev, cpkt->value); vdev 1720 drivers/char/virtio_console.c handle_control_message(vq->vdev, portdev, buf); vdev 1724 drivers/char/virtio_console.c dev_warn(&portdev->vdev->dev, vdev 1745 drivers/char/virtio_console.c port = find_port_by_vq(vq->vdev->priv, vq); vdev 1759 drivers/char/virtio_console.c port = find_port_by_vq(vq->vdev->priv, vq); vdev 1785 drivers/char/virtio_console.c if (!port->guest_connected && !is_rproc_serial(port->portdev->vdev)) vdev 1803 drivers/char/virtio_console.c portdev = vq->vdev->priv; vdev 1807 drivers/char/virtio_console.c static void config_intr(struct virtio_device *vdev) vdev 1811 drivers/char/virtio_console.c portdev = vdev->priv; vdev 1823 drivers/char/virtio_console.c struct virtio_device *vdev; vdev 1827 drivers/char/virtio_console.c vdev = portdev->vdev; vdev 1828 drivers/char/virtio_console.c virtio_cread(vdev, struct virtio_console_config, cols, &cols); vdev 1829 drivers/char/virtio_console.c virtio_cread(vdev, struct virtio_console_config, rows, &rows); vdev 1897 drivers/char/virtio_console.c err = virtio_find_vqs(portdev->vdev, nr_queues, vqs, vdev 1941 drivers/char/virtio_console.c virtio_device_for_each_vq(portdev->vdev, vq) { vdev 1948 drivers/char/virtio_console.c portdev->vdev->config->del_vqs(portdev->vdev); vdev 1953 drivers/char/virtio_console.c static void virtcons_remove(struct virtio_device *vdev) vdev 1958 drivers/char/virtio_console.c portdev = vdev->priv; vdev 1965 drivers/char/virtio_console.c vdev->config->reset(vdev); vdev 1997 drivers/char/virtio_console.c static int virtcons_probe(struct virtio_device *vdev) vdev 2005 drivers/char/virtio_console.c if (!vdev->config->get && vdev 2006 drivers/char/virtio_console.c (virtio_has_feature(vdev, VIRTIO_CONSOLE_F_SIZE) vdev 2007 drivers/char/virtio_console.c || virtio_has_feature(vdev, VIRTIO_CONSOLE_F_MULTIPORT))) { vdev 2008 drivers/char/virtio_console.c dev_err(&vdev->dev, "%s failure: config access disabled\n", vdev 2023 drivers/char/virtio_console.c portdev->vdev = vdev; vdev 2024 drivers/char/virtio_console.c vdev->priv = portdev; vdev 2029 drivers/char/virtio_console.c dev_err(&vdev->dev, vdev 2031 drivers/char/virtio_console.c portdev->chr_major, vdev->index); vdev 2040 drivers/char/virtio_console.c if (!is_rproc_serial(vdev) && vdev 2041 drivers/char/virtio_console.c virtio_cread_feature(vdev, VIRTIO_CONSOLE_F_MULTIPORT, vdev 2049 drivers/char/virtio_console.c dev_err(&vdev->dev, "Error %d initializing vqs\n", err); vdev 2057 drivers/char/virtio_console.c virtio_device_ready(portdev->vdev); vdev 2068 drivers/char/virtio_console.c dev_err(&vdev->dev, vdev 2077 drivers/char/virtio_console.c virtcons_remove(vdev); vdev 2138 drivers/char/virtio_console.c static int virtcons_freeze(struct virtio_device *vdev) vdev 2143 drivers/char/virtio_console.c portdev = vdev->priv; vdev 2145 drivers/char/virtio_console.c vdev->config->reset(vdev); vdev 2173 drivers/char/virtio_console.c static int virtcons_restore(struct virtio_device *vdev) vdev 2179 drivers/char/virtio_console.c portdev = vdev->priv; vdev 2185 drivers/char/virtio_console.c virtio_device_ready(portdev->vdev); vdev 102 drivers/crypto/nx/nx-842-pseries.c struct vio_dev *vdev; vdev 351 drivers/crypto/nx/nx-842-pseries.c ret = vio_h_cop_sync(local_devdata->vdev, &op); vdev 483 drivers/crypto/nx/nx-842-pseries.c ret = vio_h_cop_sync(local_devdata->vdev, &op); vdev 995 drivers/crypto/nx/nx-842-pseries.c if (old_devdata && old_devdata->vdev != NULL) { vdev 1003 drivers/crypto/nx/nx-842-pseries.c new_devdata->vdev = viodev; vdev 376 drivers/crypto/virtio/virtio_crypto_algs.c dev_to_node(&vcrypto->vdev->dev)); vdev 381 drivers/crypto/virtio/virtio_crypto_algs.c dev_to_node(&vcrypto->vdev->dev)); vdev 438 drivers/crypto/virtio/virtio_crypto_algs.c dev_to_node(&vcrypto->vdev->dev)); vdev 646 drivers/crypto/virtio/virtio_crypto_algs.c dev_info(&vcrypto->vdev->dev, "Registered algo %s\n", vdev 33 drivers/crypto/virtio/virtio_crypto_common.h struct virtio_device *vdev; vdev 27 drivers/crypto/virtio/virtio_crypto_core.c struct virtio_crypto *vcrypto = vq->vdev->priv; vdev 55 drivers/crypto/virtio/virtio_crypto_core.c struct device *dev = &vi->vdev->dev; vdev 87 drivers/crypto/virtio/virtio_crypto_core.c ret = virtio_find_vqs(vi->vdev, total_vqs, vqs, callbacks, names, NULL); vdev 207 drivers/crypto/virtio/virtio_crypto_core.c virtio_cread(vcrypto->vdev, vdev 215 drivers/crypto/virtio/virtio_crypto_core.c dev_warn(&vcrypto->vdev->dev, vdev 218 drivers/crypto/virtio/virtio_crypto_core.c virtio_break_device(vcrypto->vdev); vdev 230 drivers/crypto/virtio/virtio_crypto_core.c dev_err(&vcrypto->vdev->dev, vdev 235 drivers/crypto/virtio/virtio_crypto_core.c dev_info(&vcrypto->vdev->dev, "Accelerator device is ready\n"); vdev 238 drivers/crypto/virtio/virtio_crypto_core.c dev_info(&vcrypto->vdev->dev, "Accelerator is not ready\n"); vdev 278 drivers/crypto/virtio/virtio_crypto_core.c struct virtio_device *vdev = vcrypto->vdev; vdev 282 drivers/crypto/virtio/virtio_crypto_core.c vdev->config->del_vqs(vdev); vdev 287 drivers/crypto/virtio/virtio_crypto_core.c static int virtcrypto_probe(struct virtio_device *vdev) vdev 302 drivers/crypto/virtio/virtio_crypto_core.c if (!virtio_has_feature(vdev, VIRTIO_F_VERSION_1)) vdev 305 drivers/crypto/virtio/virtio_crypto_core.c if (!vdev->config->get) { vdev 306 drivers/crypto/virtio/virtio_crypto_core.c dev_err(&vdev->dev, "%s failure: config access disabled\n", vdev 311 drivers/crypto/virtio/virtio_crypto_core.c if (num_possible_nodes() > 1 && dev_to_node(&vdev->dev) < 0) { vdev 317 drivers/crypto/virtio/virtio_crypto_core.c dev_err(&vdev->dev, "Invalid NUMA configuration.\n"); vdev 322 drivers/crypto/virtio/virtio_crypto_core.c dev_to_node(&vdev->dev)); vdev 326 drivers/crypto/virtio/virtio_crypto_core.c virtio_cread(vdev, struct virtio_crypto_config, vdev 331 drivers/crypto/virtio/virtio_crypto_core.c virtio_cread(vdev, struct virtio_crypto_config, vdev 333 drivers/crypto/virtio/virtio_crypto_core.c virtio_cread(vdev, struct virtio_crypto_config, vdev 335 drivers/crypto/virtio/virtio_crypto_core.c virtio_cread(vdev, struct virtio_crypto_config, vdev 337 drivers/crypto/virtio/virtio_crypto_core.c virtio_cread(vdev, struct virtio_crypto_config, vdev 339 drivers/crypto/virtio/virtio_crypto_core.c virtio_cread(vdev, struct virtio_crypto_config, vdev 341 drivers/crypto/virtio/virtio_crypto_core.c virtio_cread(vdev, struct virtio_crypto_config, vdev 343 drivers/crypto/virtio/virtio_crypto_core.c virtio_cread(vdev, struct virtio_crypto_config, vdev 345 drivers/crypto/virtio/virtio_crypto_core.c virtio_cread(vdev, struct virtio_crypto_config, vdev 347 drivers/crypto/virtio/virtio_crypto_core.c virtio_cread(vdev, struct virtio_crypto_config, vdev 349 drivers/crypto/virtio/virtio_crypto_core.c virtio_cread(vdev, struct virtio_crypto_config, vdev 355 drivers/crypto/virtio/virtio_crypto_core.c dev_err(&vdev->dev, "Failed to add new virtio crypto device.\n"); vdev 359 drivers/crypto/virtio/virtio_crypto_core.c vcrypto = vdev->priv = vcrypto; vdev 360 drivers/crypto/virtio/virtio_crypto_core.c vcrypto->vdev = vdev; vdev 379 drivers/crypto/virtio/virtio_crypto_core.c dev_info(&vdev->dev, vdev 388 drivers/crypto/virtio/virtio_crypto_core.c dev_err(&vdev->dev, "Failed to initialize vqs.\n"); vdev 396 drivers/crypto/virtio/virtio_crypto_core.c virtio_device_ready(vdev); vdev 407 drivers/crypto/virtio/virtio_crypto_core.c vcrypto->vdev->config->reset(vdev); vdev 431 drivers/crypto/virtio/virtio_crypto_core.c static void virtcrypto_remove(struct virtio_device *vdev) vdev 433 drivers/crypto/virtio/virtio_crypto_core.c struct virtio_crypto *vcrypto = vdev->priv; vdev 435 drivers/crypto/virtio/virtio_crypto_core.c dev_info(&vdev->dev, "Start virtcrypto_remove.\n"); vdev 439 drivers/crypto/virtio/virtio_crypto_core.c vdev->config->reset(vdev); vdev 447 drivers/crypto/virtio/virtio_crypto_core.c static void virtcrypto_config_changed(struct virtio_device *vdev) vdev 449 drivers/crypto/virtio/virtio_crypto_core.c struct virtio_crypto *vcrypto = vdev->priv; vdev 455 drivers/crypto/virtio/virtio_crypto_core.c static int virtcrypto_freeze(struct virtio_device *vdev) vdev 457 drivers/crypto/virtio/virtio_crypto_core.c struct virtio_crypto *vcrypto = vdev->priv; vdev 459 drivers/crypto/virtio/virtio_crypto_core.c vdev->config->reset(vdev); vdev 469 drivers/crypto/virtio/virtio_crypto_core.c static int virtcrypto_restore(struct virtio_device *vdev) vdev 471 drivers/crypto/virtio/virtio_crypto_core.c struct virtio_crypto *vcrypto = vdev->priv; vdev 482 drivers/crypto/virtio/virtio_crypto_core.c virtio_device_ready(vdev); vdev 486 drivers/crypto/virtio/virtio_crypto_core.c dev_err(&vdev->dev, "Failed to start virtio crypto device.\n"); vdev 495 drivers/crypto/virtio/virtio_crypto_core.c vcrypto->vdev->config->reset(vdev); vdev 194 drivers/crypto/virtio/virtio_crypto_mgr.c if ((node == dev_to_node(&tmp_dev->vdev->dev) || vdev 195 drivers/crypto/virtio/virtio_crypto_mgr.c dev_to_node(&tmp_dev->vdev->dev) < 0) && vdev 222 drivers/gpu/drm/i915/gvt/gvt.h } vdev; vdev 132 drivers/gpu/drm/i915/gvt/kvmgt.c ret = vfio_unpin_pages(mdev_dev(vgpu->vdev.mdev), &cur_gfn, 1); vdev 155 drivers/gpu/drm/i915/gvt/kvmgt.c ret = vfio_pin_pages(mdev_dev(vgpu->vdev.mdev), &cur_gfn, 1, vdev 222 drivers/gpu/drm/i915/gvt/kvmgt.c struct rb_node *node = vgpu->vdev.dma_addr_cache.rb_node; vdev 240 drivers/gpu/drm/i915/gvt/kvmgt.c struct rb_node *node = vgpu->vdev.gfn_cache.rb_node; vdev 273 drivers/gpu/drm/i915/gvt/kvmgt.c link = &vgpu->vdev.gfn_cache.rb_node; vdev 284 drivers/gpu/drm/i915/gvt/kvmgt.c rb_insert_color(&new->gfn_node, &vgpu->vdev.gfn_cache); vdev 288 drivers/gpu/drm/i915/gvt/kvmgt.c link = &vgpu->vdev.dma_addr_cache.rb_node; vdev 299 drivers/gpu/drm/i915/gvt/kvmgt.c rb_insert_color(&new->dma_addr_node, &vgpu->vdev.dma_addr_cache); vdev 301 drivers/gpu/drm/i915/gvt/kvmgt.c vgpu->vdev.nr_cache_entries++; vdev 308 drivers/gpu/drm/i915/gvt/kvmgt.c rb_erase(&entry->gfn_node, &vgpu->vdev.gfn_cache); vdev 309 drivers/gpu/drm/i915/gvt/kvmgt.c rb_erase(&entry->dma_addr_node, &vgpu->vdev.dma_addr_cache); vdev 311 drivers/gpu/drm/i915/gvt/kvmgt.c vgpu->vdev.nr_cache_entries--; vdev 320 drivers/gpu/drm/i915/gvt/kvmgt.c mutex_lock(&vgpu->vdev.cache_lock); vdev 321 drivers/gpu/drm/i915/gvt/kvmgt.c node = rb_first(&vgpu->vdev.gfn_cache); vdev 323 drivers/gpu/drm/i915/gvt/kvmgt.c mutex_unlock(&vgpu->vdev.cache_lock); vdev 329 drivers/gpu/drm/i915/gvt/kvmgt.c mutex_unlock(&vgpu->vdev.cache_lock); vdev 335 drivers/gpu/drm/i915/gvt/kvmgt.c vgpu->vdev.gfn_cache = RB_ROOT; vdev 336 drivers/gpu/drm/i915/gvt/kvmgt.c vgpu->vdev.dma_addr_cache = RB_ROOT; vdev 337 drivers/gpu/drm/i915/gvt/kvmgt.c vgpu->vdev.nr_cache_entries = 0; vdev 338 drivers/gpu/drm/i915/gvt/kvmgt.c mutex_init(&vgpu->vdev.cache_lock); vdev 414 drivers/gpu/drm/i915/gvt/kvmgt.c void *base = vgpu->vdev.region[i].data; vdev 417 drivers/gpu/drm/i915/gvt/kvmgt.c if (pos >= vgpu->vdev.region[i].size || iswrite) { vdev 421 drivers/gpu/drm/i915/gvt/kvmgt.c count = min(count, (size_t)(vgpu->vdev.region[i].size - pos)); vdev 515 drivers/gpu/drm/i915/gvt/kvmgt.c (struct vfio_edid_region *)vgpu->vdev.region[i].data; vdev 549 drivers/gpu/drm/i915/gvt/kvmgt.c region = krealloc(vgpu->vdev.region, vdev 550 drivers/gpu/drm/i915/gvt/kvmgt.c (vgpu->vdev.num_regions + 1) * sizeof(*region), vdev 555 drivers/gpu/drm/i915/gvt/kvmgt.c vgpu->vdev.region = region; vdev 556 drivers/gpu/drm/i915/gvt/kvmgt.c vgpu->vdev.region[vgpu->vdev.num_regions].type = type; vdev 557 drivers/gpu/drm/i915/gvt/kvmgt.c vgpu->vdev.region[vgpu->vdev.num_regions].subtype = subtype; vdev 558 drivers/gpu/drm/i915/gvt/kvmgt.c vgpu->vdev.region[vgpu->vdev.num_regions].ops = ops; vdev 559 drivers/gpu/drm/i915/gvt/kvmgt.c vgpu->vdev.region[vgpu->vdev.num_regions].size = size; vdev 560 drivers/gpu/drm/i915/gvt/kvmgt.c vgpu->vdev.region[vgpu->vdev.num_regions].flags = flags; vdev 561 drivers/gpu/drm/i915/gvt/kvmgt.c vgpu->vdev.region[vgpu->vdev.num_regions].data = data; vdev 562 drivers/gpu/drm/i915/gvt/kvmgt.c vgpu->vdev.num_regions++; vdev 570 drivers/gpu/drm/i915/gvt/kvmgt.c vgpu->vdev.vfio_device = vfio_device_get_from_dev( vdev 571 drivers/gpu/drm/i915/gvt/kvmgt.c mdev_dev(vgpu->vdev.mdev)); vdev 572 drivers/gpu/drm/i915/gvt/kvmgt.c if (!vgpu->vdev.vfio_device) { vdev 640 drivers/gpu/drm/i915/gvt/kvmgt.c if (WARN_ON(!((struct intel_vgpu *)vgpu)->vdev.vfio_device)) vdev 643 drivers/gpu/drm/i915/gvt/kvmgt.c vfio_device_put(((struct intel_vgpu *)vgpu)->vdev.vfio_device); vdev 672 drivers/gpu/drm/i915/gvt/kvmgt.c INIT_WORK(&vgpu->vdev.release_work, intel_vgpu_release_work); vdev 674 drivers/gpu/drm/i915/gvt/kvmgt.c vgpu->vdev.mdev = mdev; vdev 701 drivers/gpu/drm/i915/gvt/kvmgt.c vdev.iommu_notifier); vdev 711 drivers/gpu/drm/i915/gvt/kvmgt.c mutex_lock(&vgpu->vdev.cache_lock); vdev 721 drivers/gpu/drm/i915/gvt/kvmgt.c mutex_unlock(&vgpu->vdev.cache_lock); vdev 732 drivers/gpu/drm/i915/gvt/kvmgt.c vdev.group_notifier); vdev 736 drivers/gpu/drm/i915/gvt/kvmgt.c vgpu->vdev.kvm = data; vdev 739 drivers/gpu/drm/i915/gvt/kvmgt.c schedule_work(&vgpu->vdev.release_work); vdev 751 drivers/gpu/drm/i915/gvt/kvmgt.c vgpu->vdev.iommu_notifier.notifier_call = intel_vgpu_iommu_notifier; vdev 752 drivers/gpu/drm/i915/gvt/kvmgt.c vgpu->vdev.group_notifier.notifier_call = intel_vgpu_group_notifier; vdev 756 drivers/gpu/drm/i915/gvt/kvmgt.c &vgpu->vdev.iommu_notifier); vdev 765 drivers/gpu/drm/i915/gvt/kvmgt.c &vgpu->vdev.group_notifier); vdev 784 drivers/gpu/drm/i915/gvt/kvmgt.c atomic_set(&vgpu->vdev.released, 0); vdev 789 drivers/gpu/drm/i915/gvt/kvmgt.c &vgpu->vdev.group_notifier); vdev 793 drivers/gpu/drm/i915/gvt/kvmgt.c &vgpu->vdev.iommu_notifier); vdev 802 drivers/gpu/drm/i915/gvt/kvmgt.c trigger = vgpu->vdev.msi_trigger; vdev 805 drivers/gpu/drm/i915/gvt/kvmgt.c vgpu->vdev.msi_trigger = NULL; vdev 817 drivers/gpu/drm/i915/gvt/kvmgt.c if (atomic_cmpxchg(&vgpu->vdev.released, 0, 1)) vdev 822 drivers/gpu/drm/i915/gvt/kvmgt.c ret = vfio_unregister_notifier(mdev_dev(vgpu->vdev.mdev), VFIO_IOMMU_NOTIFY, vdev 823 drivers/gpu/drm/i915/gvt/kvmgt.c &vgpu->vdev.iommu_notifier); vdev 826 drivers/gpu/drm/i915/gvt/kvmgt.c ret = vfio_unregister_notifier(mdev_dev(vgpu->vdev.mdev), VFIO_GROUP_NOTIFY, vdev 827 drivers/gpu/drm/i915/gvt/kvmgt.c &vgpu->vdev.group_notifier); vdev 838 drivers/gpu/drm/i915/gvt/kvmgt.c vgpu->vdev.kvm = NULL; vdev 852 drivers/gpu/drm/i915/gvt/kvmgt.c vdev.release_work); vdev 941 drivers/gpu/drm/i915/gvt/kvmgt.c if (index >= VFIO_PCI_NUM_REGIONS + vgpu->vdev.num_regions) { vdev 970 drivers/gpu/drm/i915/gvt/kvmgt.c if (index >= VFIO_PCI_NUM_REGIONS + vgpu->vdev.num_regions) vdev 974 drivers/gpu/drm/i915/gvt/kvmgt.c return vgpu->vdev.region[index].ops->rw(vgpu, buf, count, vdev 1227 drivers/gpu/drm/i915/gvt/kvmgt.c vgpu->vdev.msi_trigger = trigger; vdev 1297 drivers/gpu/drm/i915/gvt/kvmgt.c vgpu->vdev.num_regions; vdev 1388 drivers/gpu/drm/i915/gvt/kvmgt.c vgpu->vdev.num_regions) vdev 1393 drivers/gpu/drm/i915/gvt/kvmgt.c vgpu->vdev.num_regions); vdev 1399 drivers/gpu/drm/i915/gvt/kvmgt.c info.size = vgpu->vdev.region[i].size; vdev 1400 drivers/gpu/drm/i915/gvt/kvmgt.c info.flags = vgpu->vdev.region[i].flags; vdev 1402 drivers/gpu/drm/i915/gvt/kvmgt.c cap_type.type = vgpu->vdev.region[i].type; vdev 1403 drivers/gpu/drm/i915/gvt/kvmgt.c cap_type.subtype = vgpu->vdev.region[i].subtype; vdev 1768 drivers/gpu/drm/i915/gvt/kvmgt.c kvm = vgpu->vdev.kvm; vdev 1798 drivers/gpu/drm/i915/gvt/kvmgt.c &vgpu->vdev.nr_cache_entries); vdev 1826 drivers/gpu/drm/i915/gvt/kvmgt.c if (!vgpu->vdev.region) vdev 1829 drivers/gpu/drm/i915/gvt/kvmgt.c for (i = 0; i < vgpu->vdev.num_regions; i++) vdev 1830 drivers/gpu/drm/i915/gvt/kvmgt.c if (vgpu->vdev.region[i].ops->release) vdev 1831 drivers/gpu/drm/i915/gvt/kvmgt.c vgpu->vdev.region[i].ops->release(vgpu, vdev 1832 drivers/gpu/drm/i915/gvt/kvmgt.c &vgpu->vdev.region[i]); vdev 1833 drivers/gpu/drm/i915/gvt/kvmgt.c vgpu->vdev.num_regions = 0; vdev 1834 drivers/gpu/drm/i915/gvt/kvmgt.c kfree(vgpu->vdev.region); vdev 1835 drivers/gpu/drm/i915/gvt/kvmgt.c vgpu->vdev.region = NULL; vdev 1858 drivers/gpu/drm/i915/gvt/kvmgt.c if (vgpu->vdev.msi_trigger == NULL) vdev 1861 drivers/gpu/drm/i915/gvt/kvmgt.c if (eventfd_signal(vgpu->vdev.msi_trigger, 1) == 1) vdev 1898 drivers/gpu/drm/i915/gvt/kvmgt.c mutex_lock(&info->vgpu->vdev.cache_lock); vdev 1926 drivers/gpu/drm/i915/gvt/kvmgt.c mutex_unlock(&info->vgpu->vdev.cache_lock); vdev 1932 drivers/gpu/drm/i915/gvt/kvmgt.c mutex_unlock(&info->vgpu->vdev.cache_lock); vdev 1955 drivers/gpu/drm/i915/gvt/kvmgt.c mutex_lock(&info->vgpu->vdev.cache_lock); vdev 1959 drivers/gpu/drm/i915/gvt/kvmgt.c mutex_unlock(&info->vgpu->vdev.cache_lock); vdev 46 drivers/gpu/drm/virtio/virtgpu_drv.c static int virtio_gpu_pci_quirk(struct drm_device *dev, struct virtio_device *vdev) vdev 48 drivers/gpu/drm/virtio/virtgpu_drv.c struct pci_dev *pdev = to_pci_dev(vdev->dev.parent); vdev 97 drivers/gpu/drm/virtio/virtgpu_drv.c static int virtio_gpu_probe(struct virtio_device *vdev) vdev 108 drivers/gpu/drm/virtio/virtgpu_drv.c dev = drm_dev_alloc(&driver, &vdev->dev); vdev 111 drivers/gpu/drm/virtio/virtgpu_drv.c vdev->priv = dev; vdev 113 drivers/gpu/drm/virtio/virtgpu_drv.c if (!strcmp(vdev->dev.parent->bus->name, "pci")) { vdev 114 drivers/gpu/drm/virtio/virtgpu_drv.c ret = virtio_gpu_pci_quirk(dev, vdev); vdev 127 drivers/gpu/drm/virtio/virtgpu_drv.c drm_fbdev_generic_setup(vdev->priv, 32); vdev 135 drivers/gpu/drm/virtio/virtgpu_drv.c static void virtio_gpu_remove(struct virtio_device *vdev) vdev 137 drivers/gpu/drm/virtio/virtgpu_drv.c struct drm_device *dev = vdev->priv; vdev 144 drivers/gpu/drm/virtio/virtgpu_drv.c static void virtio_gpu_config_changed(struct virtio_device *vdev) vdev 146 drivers/gpu/drm/virtio/virtgpu_drv.c struct drm_device *dev = vdev->priv; vdev 180 drivers/gpu/drm/virtio/virtgpu_drv.h struct virtio_device *vdev; vdev 354 drivers/gpu/drm/virtio/virtgpu_drv.h void virtio_gpu_fence_event_process(struct virtio_gpu_device *vdev, vdev 41 drivers/gpu/drm/virtio/virtgpu_kms.c virtio_cread(vgdev->vdev, struct virtio_gpu_config, vdev 50 drivers/gpu/drm/virtio/virtgpu_kms.c virtio_cwrite(vgdev->vdev, struct virtio_gpu_config, vdev 133 drivers/gpu/drm/virtio/virtgpu_kms.c vgdev->vdev = dev_to_virtio(dev->dev); vdev 151 drivers/gpu/drm/virtio/virtgpu_kms.c if (virtio_has_feature(vgdev->vdev, VIRTIO_GPU_F_VIRGL)) vdev 158 drivers/gpu/drm/virtio/virtgpu_kms.c if (virtio_has_feature(vgdev->vdev, VIRTIO_GPU_F_EDID)) { vdev 163 drivers/gpu/drm/virtio/virtgpu_kms.c ret = virtio_find_vqs(vgdev->vdev, 2, vqs, callbacks, names, NULL); vdev 183 drivers/gpu/drm/virtio/virtgpu_kms.c virtio_cread(vgdev->vdev, struct virtio_gpu_config, vdev 194 drivers/gpu/drm/virtio/virtgpu_kms.c virtio_cread(vgdev->vdev, struct virtio_gpu_config, vdev 200 drivers/gpu/drm/virtio/virtgpu_kms.c virtio_device_ready(vgdev->vdev); vdev 217 drivers/gpu/drm/virtio/virtgpu_kms.c vgdev->vdev->config->del_vqs(vgdev->vdev); vdev 241 drivers/gpu/drm/virtio/virtgpu_kms.c vgdev->vdev->config->reset(vgdev->vdev); vdev 242 drivers/gpu/drm/virtio/virtgpu_kms.c vgdev->vdev->config->del_vqs(vgdev->vdev); vdev 225 drivers/gpu/drm/virtio/virtgpu_object.c max_segment = virtio_max_dma_size(qdev->vdev); vdev 24 drivers/gpu/drm/virtio/virtgpu_trace.h __entry->dev = vq->vdev->index; vdev 45 drivers/gpu/drm/virtio/virtgpu_vq.c struct drm_device *dev = vq->vdev->priv; vdev 53 drivers/gpu/drm/virtio/virtgpu_vq.c struct drm_device *dev = vq->vdev->priv; vdev 492 drivers/gpu/drm/virtio/virtgpu_vq.c bool use_dma_api = !virtio_has_iommu_quirk(vgdev->vdev); vdev 495 drivers/gpu/drm/virtio/virtgpu_vq.c dma_sync_sg_for_device(vgdev->vdev->dev.parent, vdev 899 drivers/gpu/drm/virtio/virtgpu_vq.c bool use_dma_api = !virtio_has_iommu_quirk(vgdev->vdev); vdev 902 drivers/gpu/drm/virtio/virtgpu_vq.c dma_sync_sg_for_device(vgdev->vdev->dev.parent, vdev 965 drivers/gpu/drm/virtio/virtgpu_vq.c bool use_dma_api = !virtio_has_iommu_quirk(vgdev->vdev); vdev 982 drivers/gpu/drm/virtio/virtgpu_vq.c obj->mapped = dma_map_sg(vgdev->vdev->dev.parent, vdev 1015 drivers/gpu/drm/virtio/virtgpu_vq.c bool use_dma_api = !virtio_has_iommu_quirk(vgdev->vdev); vdev 1025 drivers/gpu/drm/virtio/virtgpu_vq.c dma_unmap_sg(vgdev->vdev->dev.parent, vdev 125 drivers/ide/via82cxxx.c struct via82cxxx_dev *vdev = host->host_priv; vdev 128 drivers/ide/via82cxxx.c if (~vdev->via_config->flags & VIA_BAD_AST) { vdev 140 drivers/ide/via82cxxx.c switch (vdev->via_config->udma_mask) { vdev 148 drivers/ide/via82cxxx.c if (vdev->via_config->udma_mask) { vdev 180 drivers/ide/via82cxxx.c struct via82cxxx_dev *vdev = host->host_priv; vdev 187 drivers/ide/via82cxxx.c switch (vdev->via_config->udma_mask) { vdev 241 drivers/ide/via82cxxx.c static void via_cable_detect(struct via82cxxx_dev *vdev, u32 u) vdev 245 drivers/ide/via82cxxx.c switch (vdev->via_config->udma_mask) { vdev 255 drivers/ide/via82cxxx.c vdev->via_80w |= (1 << (1 - (i >> 4))); vdev 267 drivers/ide/via82cxxx.c vdev->via_80w |= (1 << (1 - (i >> 4))); vdev 279 drivers/ide/via82cxxx.c vdev->via_80w |= (1 << (1 - (i >> 4))); vdev 296 drivers/ide/via82cxxx.c struct via82cxxx_dev *vdev = host->host_priv; vdev 297 drivers/ide/via82cxxx.c struct via_isa_bridge *via_config = vdev->via_config; vdev 306 drivers/ide/via82cxxx.c via_cable_detect(vdev, u); vdev 382 drivers/ide/via82cxxx.c struct via82cxxx_dev *vdev = host->host_priv; vdev 387 drivers/ide/via82cxxx.c if ((vdev->via_config->flags & VIA_SATA_PATA) && hwif->channel == 0) vdev 390 drivers/ide/via82cxxx.c if ((vdev->via_80w >> hwif->channel) & 1) vdev 419 drivers/ide/via82cxxx.c struct via82cxxx_dev *vdev; vdev 472 drivers/ide/via82cxxx.c vdev = kzalloc(sizeof(*vdev), GFP_KERNEL); vdev 473 drivers/ide/via82cxxx.c if (!vdev) { vdev 479 drivers/ide/via82cxxx.c vdev->via_config = via_config; vdev 481 drivers/ide/via82cxxx.c rc = ide_pci_init_one(dev, &d, vdev); vdev 483 drivers/ide/via82cxxx.c kfree(vdev); vdev 491 drivers/ide/via82cxxx.c struct via82cxxx_dev *vdev = host->host_priv; vdev 494 drivers/ide/via82cxxx.c kfree(vdev); vdev 43 drivers/infiniband/hw/usnic/usnic_vnic.c struct vnic_dev *vdev; vdev 308 drivers/infiniband/hw/usnic/usnic_vnic.c cnt = vnic_dev_get_res_count(vnic->vdev, _to_vnic_res_type(type)); vdev 328 drivers/infiniband/hw/usnic/usnic_vnic.c res->ctrl = vnic_dev_get_res(vnic->vdev, vdev 371 drivers/infiniband/hw/usnic/usnic_vnic.c vnic->vdev = vnic_dev_register(NULL, pdev, pdev, vnic->bar, vdev 373 drivers/infiniband/hw/usnic/usnic_vnic.c if (!vnic->vdev) { vdev 393 drivers/infiniband/hw/usnic/usnic_vnic.c vnic_dev_unregister(vnic->vdev); vdev 409 drivers/infiniband/hw/usnic/usnic_vnic.c return vnic_dev_get_pdev(vnic->vdev); vdev 430 drivers/infiniband/hw/usnic/usnic_vnic.c vnic_dev_unregister(vnic->vdev); vdev 281 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c struct pvrdma_dev *vdev = to_vdev(ibdev); vdev 285 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c dev_warn(&vdev->pdev->dev, vdev 290 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c mutex_lock(&vdev->port_mutex); vdev 295 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c vdev->port_cap_mask |= props->set_port_cap_mask; vdev 296 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c vdev->port_cap_mask &= ~props->clr_port_cap_mask; vdev 299 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c vdev->ib_active = false; vdev 302 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c mutex_unlock(&vdev->port_mutex); vdev 316 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c struct pvrdma_dev *vdev = to_vdev(ibdev); vdev 325 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c if (!vdev->ib_active) vdev 328 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c context->dev = vdev; vdev 329 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c ret = pvrdma_uar_alloc(vdev, &context->uar); vdev 334 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c if (vdev->dsr_version < PVRDMA_PPN64_VERSION) vdev 340 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c ret = pvrdma_cmd_post(vdev, &req, &rsp, PVRDMA_CMD_CREATE_UC_RESP); vdev 342 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c dev_warn(&vdev->pdev->dev, vdev 350 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c uresp.qp_tab_size = vdev->dsr->caps.max_qp; vdev 353 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c pvrdma_uar_free(vdev, &context->uar); vdev 361 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c pvrdma_uar_free(vdev, &context->uar); vdev 116 drivers/input/rmi4/rmi_f54.c struct video_device vdev; vdev 703 drivers/input/rmi4/rmi_f54.c f54->vdev = rmi_f54_video_device; vdev 704 drivers/input/rmi4/rmi_f54.c f54->vdev.v4l2_dev = &f54->v4l2; vdev 705 drivers/input/rmi4/rmi_f54.c f54->vdev.lock = &f54->lock; vdev 706 drivers/input/rmi4/rmi_f54.c f54->vdev.vfl_dir = VFL_DIR_RX; vdev 707 drivers/input/rmi4/rmi_f54.c f54->vdev.queue = &f54->queue; vdev 708 drivers/input/rmi4/rmi_f54.c video_set_drvdata(&f54->vdev, f54); vdev 710 drivers/input/rmi4/rmi_f54.c ret = video_register_device(&f54->vdev, VFL_TYPE_TOUCH, -1); vdev 731 drivers/input/rmi4/rmi_f54.c video_unregister_device(&f54->vdev); vdev 247 drivers/input/touchscreen/atmel_mxt_ts.c struct video_device vdev; vdev 1592 drivers/input/touchscreen/atmel_mxt_ts.c video_unregister_device(&data->dbg.vdev); vdev 2611 drivers/input/touchscreen/atmel_mxt_ts.c dbg->vdev = mxt_video_device; vdev 2612 drivers/input/touchscreen/atmel_mxt_ts.c dbg->vdev.v4l2_dev = &dbg->v4l2; vdev 2613 drivers/input/touchscreen/atmel_mxt_ts.c dbg->vdev.lock = &dbg->lock; vdev 2614 drivers/input/touchscreen/atmel_mxt_ts.c dbg->vdev.vfl_dir = VFL_DIR_RX; vdev 2615 drivers/input/touchscreen/atmel_mxt_ts.c dbg->vdev.queue = &dbg->queue; vdev 2616 drivers/input/touchscreen/atmel_mxt_ts.c video_set_drvdata(&dbg->vdev, data); vdev 2618 drivers/input/touchscreen/atmel_mxt_ts.c error = video_register_device(&dbg->vdev, VFL_TYPE_TOUCH, -1); vdev 212 drivers/input/touchscreen/sur40.c struct video_device vdev; vdev 744 drivers/input/touchscreen/sur40.c sur40->vdev = sur40_video_device; vdev 745 drivers/input/touchscreen/sur40.c sur40->vdev.v4l2_dev = &sur40->v4l2; vdev 746 drivers/input/touchscreen/sur40.c sur40->vdev.lock = &sur40->lock; vdev 747 drivers/input/touchscreen/sur40.c sur40->vdev.queue = &sur40->queue; vdev 748 drivers/input/touchscreen/sur40.c video_set_drvdata(&sur40->vdev, sur40); vdev 780 drivers/input/touchscreen/sur40.c error = video_register_device(&sur40->vdev, VFL_TYPE_TOUCH, -1); vdev 794 drivers/input/touchscreen/sur40.c video_unregister_device(&sur40->vdev); vdev 813 drivers/input/touchscreen/sur40.c video_unregister_device(&sur40->vdev); vdev 38 drivers/iommu/virtio-iommu.c struct virtio_device *vdev; vdev 419 drivers/iommu/virtio-iommu.c static int viommu_add_resv_mem(struct viommu_endpoint *vdev, vdev 442 drivers/iommu/virtio-iommu.c dev_warn(vdev->dev, "unknown resv mem subtype 0x%x\n", vdev 457 drivers/iommu/virtio-iommu.c list_add(®ion->list, &vdev->resv_regions); vdev 470 drivers/iommu/virtio-iommu.c struct viommu_endpoint *vdev = fwspec->iommu_priv; vdev 501 drivers/iommu/virtio-iommu.c ret = viommu_add_resv_mem(vdev, (void *)prop, len); vdev 565 drivers/iommu/virtio-iommu.c struct viommu_dev *viommu = vq->vdev->priv; vdev 654 drivers/iommu/virtio-iommu.c struct viommu_endpoint *vdev = fwspec->iommu_priv; vdev 663 drivers/iommu/virtio-iommu.c ret = viommu_domain_finalise(vdev->viommu, domain); vdev 664 drivers/iommu/virtio-iommu.c } else if (vdomain->viommu != vdev->viommu) { vdev 685 drivers/iommu/virtio-iommu.c if (vdev->vdomain) vdev 686 drivers/iommu/virtio-iommu.c vdev->vdomain->nr_endpoints--; vdev 712 drivers/iommu/virtio-iommu.c vdev->vdomain = vdomain; vdev 814 drivers/iommu/virtio-iommu.c struct viommu_endpoint *vdev = fwspec->iommu_priv; vdev 817 drivers/iommu/virtio-iommu.c list_for_each_entry(entry, &vdev->resv_regions, list) { vdev 872 drivers/iommu/virtio-iommu.c struct viommu_endpoint *vdev; vdev 883 drivers/iommu/virtio-iommu.c vdev = kzalloc(sizeof(*vdev), GFP_KERNEL); vdev 884 drivers/iommu/virtio-iommu.c if (!vdev) vdev 887 drivers/iommu/virtio-iommu.c vdev->dev = dev; vdev 888 drivers/iommu/virtio-iommu.c vdev->viommu = viommu; vdev 889 drivers/iommu/virtio-iommu.c INIT_LIST_HEAD(&vdev->resv_regions); vdev 890 drivers/iommu/virtio-iommu.c fwspec->iommu_priv = vdev; vdev 920 drivers/iommu/virtio-iommu.c viommu_put_resv_regions(dev, &vdev->resv_regions); vdev 921 drivers/iommu/virtio-iommu.c kfree(vdev); vdev 928 drivers/iommu/virtio-iommu.c struct viommu_endpoint *vdev; vdev 934 drivers/iommu/virtio-iommu.c vdev = fwspec->iommu_priv; vdev 937 drivers/iommu/virtio-iommu.c iommu_device_unlink(&vdev->viommu->iommu, dev); vdev 938 drivers/iommu/virtio-iommu.c viommu_put_resv_regions(dev, &vdev->resv_regions); vdev 939 drivers/iommu/virtio-iommu.c kfree(vdev); vdev 973 drivers/iommu/virtio-iommu.c struct virtio_device *vdev = dev_to_virtio(viommu->dev); vdev 980 drivers/iommu/virtio-iommu.c return virtio_find_vqs(vdev, VIOMMU_NR_VQS, viommu->vqs, callbacks, vdev 1007 drivers/iommu/virtio-iommu.c static int viommu_probe(struct virtio_device *vdev) vdev 1009 drivers/iommu/virtio-iommu.c struct device *parent_dev = vdev->dev.parent; vdev 1011 drivers/iommu/virtio-iommu.c struct device *dev = &vdev->dev; vdev 1016 drivers/iommu/virtio-iommu.c if (!virtio_has_feature(vdev, VIRTIO_F_VERSION_1) || vdev 1017 drivers/iommu/virtio-iommu.c !virtio_has_feature(vdev, VIRTIO_IOMMU_F_MAP_UNMAP)) vdev 1027 drivers/iommu/virtio-iommu.c viommu->vdev = vdev; vdev 1034 drivers/iommu/virtio-iommu.c virtio_cread(vdev, struct virtio_iommu_config, page_size_mask, vdev 1046 drivers/iommu/virtio-iommu.c virtio_cread_feature(vdev, VIRTIO_IOMMU_F_INPUT_RANGE, vdev 1050 drivers/iommu/virtio-iommu.c virtio_cread_feature(vdev, VIRTIO_IOMMU_F_INPUT_RANGE, vdev 1054 drivers/iommu/virtio-iommu.c virtio_cread_feature(vdev, VIRTIO_IOMMU_F_DOMAIN_RANGE, vdev 1058 drivers/iommu/virtio-iommu.c virtio_cread_feature(vdev, VIRTIO_IOMMU_F_DOMAIN_RANGE, vdev 1062 drivers/iommu/virtio-iommu.c virtio_cread_feature(vdev, VIRTIO_IOMMU_F_PROBE, vdev 1072 drivers/iommu/virtio-iommu.c if (virtio_has_feature(vdev, VIRTIO_IOMMU_F_MMIO)) vdev 1077 drivers/iommu/virtio-iommu.c virtio_device_ready(vdev); vdev 1085 drivers/iommu/virtio-iommu.c virtio_bus_name(vdev)); vdev 1115 drivers/iommu/virtio-iommu.c vdev->priv = viommu; vdev 1127 drivers/iommu/virtio-iommu.c vdev->config->del_vqs(vdev); vdev 1132 drivers/iommu/virtio-iommu.c static void viommu_remove(struct virtio_device *vdev) vdev 1134 drivers/iommu/virtio-iommu.c struct viommu_dev *viommu = vdev->priv; vdev 1140 drivers/iommu/virtio-iommu.c vdev->config->reset(vdev); vdev 1141 drivers/iommu/virtio-iommu.c vdev->config->del_vqs(vdev); vdev 1143 drivers/iommu/virtio-iommu.c dev_info(&vdev->dev, "device removed\n"); vdev 1146 drivers/iommu/virtio-iommu.c static void viommu_config_changed(struct virtio_device *vdev) vdev 1148 drivers/iommu/virtio-iommu.c dev_warn(&vdev->dev, "config changed\n"); vdev 198 drivers/media/common/saa7146/saa7146_fops.c struct video_device *vdev = video_devdata(file); vdev 203 drivers/media/common/saa7146/saa7146_fops.c DEB_EE("file:%p, dev:%s\n", file, video_device_node_name(vdev)); vdev 205 drivers/media/common/saa7146/saa7146_fops.c if (mutex_lock_interruptible(vdev->lock)) vdev 225 drivers/media/common/saa7146/saa7146_fops.c v4l2_fh_init(&fh->fh, vdev); vdev 230 drivers/media/common/saa7146/saa7146_fops.c if (vdev->vfl_type == VFL_TYPE_VBI) { vdev 257 drivers/media/common/saa7146/saa7146_fops.c mutex_unlock(vdev->lock); vdev 263 drivers/media/common/saa7146/saa7146_fops.c struct video_device *vdev = video_devdata(file); vdev 269 drivers/media/common/saa7146/saa7146_fops.c mutex_lock(vdev->lock); vdev 271 drivers/media/common/saa7146/saa7146_fops.c if (vdev->vfl_type == VFL_TYPE_VBI) { vdev 286 drivers/media/common/saa7146/saa7146_fops.c mutex_unlock(vdev->lock); vdev 293 drivers/media/common/saa7146/saa7146_fops.c struct video_device *vdev = video_devdata(file); vdev 298 drivers/media/common/saa7146/saa7146_fops.c switch (vdev->vfl_type) { vdev 317 drivers/media/common/saa7146/saa7146_fops.c if (mutex_lock_interruptible(vdev->lock)) vdev 320 drivers/media/common/saa7146/saa7146_fops.c mutex_unlock(vdev->lock); vdev 326 drivers/media/common/saa7146/saa7146_fops.c struct video_device *vdev = video_devdata(file); vdev 334 drivers/media/common/saa7146/saa7146_fops.c if (vdev->vfl_type == VFL_TYPE_VBI) { vdev 365 drivers/media/common/saa7146/saa7146_fops.c struct video_device *vdev = video_devdata(file); vdev 368 drivers/media/common/saa7146/saa7146_fops.c mutex_lock(vdev->lock); vdev 370 drivers/media/common/saa7146/saa7146_fops.c mutex_unlock(vdev->lock); vdev 376 drivers/media/common/saa7146/saa7146_fops.c struct video_device *vdev = video_devdata(file); vdev 380 drivers/media/common/saa7146/saa7146_fops.c switch (vdev->vfl_type) { vdev 393 drivers/media/common/saa7146/saa7146_fops.c if (mutex_lock_interruptible(vdev->lock)) vdev 396 drivers/media/common/saa7146/saa7146_fops.c mutex_unlock(vdev->lock); vdev 407 drivers/media/common/saa7146/saa7146_fops.c struct video_device *vdev = video_devdata(file); vdev 411 drivers/media/common/saa7146/saa7146_fops.c switch (vdev->vfl_type) { vdev 416 drivers/media/common/saa7146/saa7146_fops.c if (mutex_lock_interruptible(vdev->lock)) vdev 419 drivers/media/common/saa7146/saa7146_fops.c mutex_unlock(vdev->lock); vdev 900 drivers/media/common/videobuf2/videobuf2-v4l2.c static inline bool vb2_queue_is_busy(struct video_device *vdev, struct file *file) vdev 902 drivers/media/common/videobuf2/videobuf2-v4l2.c return vdev->queue->owner && vdev->queue->owner != file->private_data; vdev 910 drivers/media/common/videobuf2/videobuf2-v4l2.c struct video_device *vdev = video_devdata(file); vdev 911 drivers/media/common/videobuf2/videobuf2-v4l2.c int res = vb2_verify_memory_type(vdev->queue, p->memory, p->type); vdev 913 drivers/media/common/videobuf2/videobuf2-v4l2.c fill_buf_caps(vdev->queue, &p->capabilities); vdev 916 drivers/media/common/videobuf2/videobuf2-v4l2.c if (vb2_queue_is_busy(vdev, file)) vdev 918 drivers/media/common/videobuf2/videobuf2-v4l2.c res = vb2_core_reqbufs(vdev->queue, p->memory, &p->count); vdev 922 drivers/media/common/videobuf2/videobuf2-v4l2.c vdev->queue->owner = p->count ? file->private_data : NULL; vdev 930 drivers/media/common/videobuf2/videobuf2-v4l2.c struct video_device *vdev = video_devdata(file); vdev 931 drivers/media/common/videobuf2/videobuf2-v4l2.c int res = vb2_verify_memory_type(vdev->queue, p->memory, vdev 934 drivers/media/common/videobuf2/videobuf2-v4l2.c p->index = vdev->queue->num_buffers; vdev 935 drivers/media/common/videobuf2/videobuf2-v4l2.c fill_buf_caps(vdev->queue, &p->capabilities); vdev 944 drivers/media/common/videobuf2/videobuf2-v4l2.c if (vb2_queue_is_busy(vdev, file)) vdev 947 drivers/media/common/videobuf2/videobuf2-v4l2.c res = vb2_create_bufs(vdev->queue, p); vdev 949 drivers/media/common/videobuf2/videobuf2-v4l2.c vdev->queue->owner = file->private_data; vdev 957 drivers/media/common/videobuf2/videobuf2-v4l2.c struct video_device *vdev = video_devdata(file); vdev 959 drivers/media/common/videobuf2/videobuf2-v4l2.c if (vb2_queue_is_busy(vdev, file)) vdev 961 drivers/media/common/videobuf2/videobuf2-v4l2.c return vb2_prepare_buf(vdev->queue, vdev->v4l2_dev->mdev, p); vdev 967 drivers/media/common/videobuf2/videobuf2-v4l2.c struct video_device *vdev = video_devdata(file); vdev 970 drivers/media/common/videobuf2/videobuf2-v4l2.c return vb2_querybuf(vdev->queue, p); vdev 976 drivers/media/common/videobuf2/videobuf2-v4l2.c struct video_device *vdev = video_devdata(file); vdev 978 drivers/media/common/videobuf2/videobuf2-v4l2.c if (vb2_queue_is_busy(vdev, file)) vdev 980 drivers/media/common/videobuf2/videobuf2-v4l2.c return vb2_qbuf(vdev->queue, vdev->v4l2_dev->mdev, p); vdev 986 drivers/media/common/videobuf2/videobuf2-v4l2.c struct video_device *vdev = video_devdata(file); vdev 988 drivers/media/common/videobuf2/videobuf2-v4l2.c if (vb2_queue_is_busy(vdev, file)) vdev 990 drivers/media/common/videobuf2/videobuf2-v4l2.c return vb2_dqbuf(vdev->queue, p, file->f_flags & O_NONBLOCK); vdev 996 drivers/media/common/videobuf2/videobuf2-v4l2.c struct video_device *vdev = video_devdata(file); vdev 998 drivers/media/common/videobuf2/videobuf2-v4l2.c if (vb2_queue_is_busy(vdev, file)) vdev 1000 drivers/media/common/videobuf2/videobuf2-v4l2.c return vb2_streamon(vdev->queue, i); vdev 1006 drivers/media/common/videobuf2/videobuf2-v4l2.c struct video_device *vdev = video_devdata(file); vdev 1008 drivers/media/common/videobuf2/videobuf2-v4l2.c if (vb2_queue_is_busy(vdev, file)) vdev 1010 drivers/media/common/videobuf2/videobuf2-v4l2.c return vb2_streamoff(vdev->queue, i); vdev 1016 drivers/media/common/videobuf2/videobuf2-v4l2.c struct video_device *vdev = video_devdata(file); vdev 1018 drivers/media/common/videobuf2/videobuf2-v4l2.c if (vb2_queue_is_busy(vdev, file)) vdev 1020 drivers/media/common/videobuf2/videobuf2-v4l2.c return vb2_expbuf(vdev->queue, p); vdev 1028 drivers/media/common/videobuf2/videobuf2-v4l2.c struct video_device *vdev = video_devdata(file); vdev 1030 drivers/media/common/videobuf2/videobuf2-v4l2.c return vb2_mmap(vdev->queue, vma); vdev 1036 drivers/media/common/videobuf2/videobuf2-v4l2.c struct video_device *vdev = video_devdata(file); vdev 1040 drivers/media/common/videobuf2/videobuf2-v4l2.c if (file->private_data == vdev->queue->owner) { vdev 1041 drivers/media/common/videobuf2/videobuf2-v4l2.c vb2_queue_release(vdev->queue); vdev 1042 drivers/media/common/videobuf2/videobuf2-v4l2.c vdev->queue->owner = NULL; vdev 1052 drivers/media/common/videobuf2/videobuf2-v4l2.c struct video_device *vdev = video_devdata(file); vdev 1053 drivers/media/common/videobuf2/videobuf2-v4l2.c struct mutex *lock = vdev->queue->lock ? vdev->queue->lock : vdev->lock; vdev 1062 drivers/media/common/videobuf2/videobuf2-v4l2.c struct video_device *vdev = video_devdata(file); vdev 1063 drivers/media/common/videobuf2/videobuf2-v4l2.c struct mutex *lock = vdev->queue->lock ? vdev->queue->lock : vdev->lock; vdev 1066 drivers/media/common/videobuf2/videobuf2-v4l2.c if (!(vdev->queue->io_modes & VB2_WRITE)) vdev 1070 drivers/media/common/videobuf2/videobuf2-v4l2.c if (vb2_queue_is_busy(vdev, file)) vdev 1072 drivers/media/common/videobuf2/videobuf2-v4l2.c err = vb2_write(vdev->queue, buf, count, ppos, vdev 1074 drivers/media/common/videobuf2/videobuf2-v4l2.c if (vdev->queue->fileio) vdev 1075 drivers/media/common/videobuf2/videobuf2-v4l2.c vdev->queue->owner = file->private_data; vdev 1086 drivers/media/common/videobuf2/videobuf2-v4l2.c struct video_device *vdev = video_devdata(file); vdev 1087 drivers/media/common/videobuf2/videobuf2-v4l2.c struct mutex *lock = vdev->queue->lock ? vdev->queue->lock : vdev->lock; vdev 1090 drivers/media/common/videobuf2/videobuf2-v4l2.c if (!(vdev->queue->io_modes & VB2_READ)) vdev 1094 drivers/media/common/videobuf2/videobuf2-v4l2.c if (vb2_queue_is_busy(vdev, file)) vdev 1096 drivers/media/common/videobuf2/videobuf2-v4l2.c err = vb2_read(vdev->queue, buf, count, ppos, vdev 1098 drivers/media/common/videobuf2/videobuf2-v4l2.c if (vdev->queue->fileio) vdev 1099 drivers/media/common/videobuf2/videobuf2-v4l2.c vdev->queue->owner = file->private_data; vdev 1109 drivers/media/common/videobuf2/videobuf2-v4l2.c struct video_device *vdev = video_devdata(file); vdev 1110 drivers/media/common/videobuf2/videobuf2-v4l2.c struct vb2_queue *q = vdev->queue; vdev 1111 drivers/media/common/videobuf2/videobuf2-v4l2.c struct mutex *lock = q->lock ? q->lock : vdev->lock; vdev 1126 drivers/media/common/videobuf2/videobuf2-v4l2.c res = vb2_poll(vdev->queue, file, wait); vdev 1141 drivers/media/common/videobuf2/videobuf2-v4l2.c struct video_device *vdev = video_devdata(file); vdev 1143 drivers/media/common/videobuf2/videobuf2-v4l2.c return vb2_get_unmapped_area(vdev->queue, addr, len, pgoff, flags); vdev 109 drivers/media/dvb-frontends/rtl2832_sdr.c struct video_device vdev; vdev 427 drivers/media/dvb-frontends/rtl2832_sdr.c strscpy(cap->card, dev->vdev.name, sizeof(cap->card)); vdev 1423 drivers/media/dvb-frontends/rtl2832_sdr.c dev->vdev = rtl2832_sdr_template; vdev 1424 drivers/media/dvb-frontends/rtl2832_sdr.c dev->vdev.queue = &dev->vb_queue; vdev 1425 drivers/media/dvb-frontends/rtl2832_sdr.c dev->vdev.queue->lock = &dev->vb_queue_lock; vdev 1426 drivers/media/dvb-frontends/rtl2832_sdr.c video_set_drvdata(&dev->vdev, dev); vdev 1437 drivers/media/dvb-frontends/rtl2832_sdr.c dev->vdev.v4l2_dev = &dev->v4l2_dev; vdev 1438 drivers/media/dvb-frontends/rtl2832_sdr.c dev->vdev.lock = &dev->v4l2_lock; vdev 1439 drivers/media/dvb-frontends/rtl2832_sdr.c dev->vdev.vfl_dir = VFL_DIR_RX; vdev 1441 drivers/media/dvb-frontends/rtl2832_sdr.c ret = video_register_device(&dev->vdev, VFL_TYPE_SDR, -1); vdev 1448 drivers/media/dvb-frontends/rtl2832_sdr.c video_device_node_name(&dev->vdev)); vdev 1477 drivers/media/dvb-frontends/rtl2832_sdr.c video_unregister_device(&dev->vdev); vdev 53 drivers/media/i2c/video-i2c.c struct video_device vdev; vdev 574 drivers/media/i2c/video-i2c.c strscpy(vcap->card, data->vdev.name, sizeof(vcap->card)); vdev 743 drivers/media/i2c/video-i2c.c static void video_i2c_release(struct video_device *vdev) vdev 745 drivers/media/i2c/video-i2c.c struct video_i2c_data *data = video_get_drvdata(vdev); vdev 803 drivers/media/i2c/video-i2c.c data->vdev.queue = queue; vdev 804 drivers/media/i2c/video-i2c.c data->vdev.queue->lock = &data->queue_lock; vdev 806 drivers/media/i2c/video-i2c.c snprintf(data->vdev.name, sizeof(data->vdev.name), vdev 810 drivers/media/i2c/video-i2c.c data->vdev.v4l2_dev = v4l2_dev; vdev 811 drivers/media/i2c/video-i2c.c data->vdev.fops = &video_i2c_fops; vdev 812 drivers/media/i2c/video-i2c.c data->vdev.lock = &data->lock; vdev 813 drivers/media/i2c/video-i2c.c data->vdev.ioctl_ops = &video_i2c_ioctl_ops; vdev 814 drivers/media/i2c/video-i2c.c data->vdev.release = video_i2c_release; vdev 815 drivers/media/i2c/video-i2c.c data->vdev.device_caps = V4L2_CAP_VIDEO_CAPTURE | vdev 823 drivers/media/i2c/video-i2c.c video_set_drvdata(&data->vdev, data); vdev 861 drivers/media/i2c/video-i2c.c ret = video_register_device(&data->vdev, VFL_TYPE_GRABBER, -1); vdev 904 drivers/media/i2c/video-i2c.c video_unregister_device(&data->vdev); vdev 1857 drivers/media/pci/bt8xx/bttv-driver.c struct video_device *vdev = video_devdata(file); vdev 1861 drivers/media/pci/bt8xx/bttv-driver.c v4l2_ctrl_handler_log_status(vdev->ctrl_handler, btv->c.v4l2_dev.name); vdev 2960 drivers/media/pci/bt8xx/bttv-driver.c struct video_device *vdev = video_devdata(file); vdev 2965 drivers/media/pci/bt8xx/bttv-driver.c dprintk("open dev=%s\n", video_device_node_name(vdev)); vdev 2967 drivers/media/pci/bt8xx/bttv-driver.c if (vdev->vfl_type == VFL_TYPE_GRABBER) { vdev 2969 drivers/media/pci/bt8xx/bttv-driver.c } else if (vdev->vfl_type == VFL_TYPE_VBI) { vdev 2987 drivers/media/pci/bt8xx/bttv-driver.c v4l2_fh_init(&fh->fh, vdev); vdev 3153 drivers/media/pci/bt8xx/bttv-driver.c struct video_device *vdev = video_devdata(file); vdev 3157 drivers/media/pci/bt8xx/bttv-driver.c dprintk("open dev=%s\n", video_device_node_name(vdev)); vdev 3167 drivers/media/pci/bt8xx/bttv-driver.c v4l2_fh_init(&fh->fh, vdev); vdev 221 drivers/media/pci/cobalt/cobalt-alsa-pcm.c rc = vb2_thread_start(&s->q, alsa_fnc, s, s->vdev.name); vdev 430 drivers/media/pci/cobalt/cobalt-alsa-pcm.c rc = vb2_thread_start(&s->q, alsa_pb_fnc, s, s->vdev.name); vdev 154 drivers/media/pci/cobalt/cobalt-driver.c v4l2_event_queue(&s->vdev, arg); vdev 210 drivers/media/pci/cobalt/cobalt-driver.h struct video_device vdev; vdev 1204 drivers/media/pci/cobalt/cobalt-v4l2.c struct video_device *vdev = &s->vdev; vdev 1211 drivers/media/pci/cobalt/cobalt-v4l2.c snprintf(vdev->name, sizeof(vdev->name), vdev 1233 drivers/media/pci/cobalt/cobalt-v4l2.c vdev->v4l2_dev = &cobalt->v4l2_dev; vdev 1235 drivers/media/pci/cobalt/cobalt-v4l2.c vdev->fops = &cobalt_empty_fops; vdev 1237 drivers/media/pci/cobalt/cobalt-v4l2.c vdev->fops = s->is_output ? &cobalt_out_fops : vdev 1239 drivers/media/pci/cobalt/cobalt-v4l2.c vdev->release = video_device_release_empty; vdev 1240 drivers/media/pci/cobalt/cobalt-v4l2.c vdev->vfl_dir = s->is_output ? VFL_DIR_TX : VFL_DIR_RX; vdev 1241 drivers/media/pci/cobalt/cobalt-v4l2.c vdev->lock = &s->lock; vdev 1243 drivers/media/pci/cobalt/cobalt-v4l2.c vdev->ctrl_handler = s->sd->ctrl_handler; vdev 1248 drivers/media/pci/cobalt/cobalt-v4l2.c vdev->ioctl_ops = s->is_dummy ? &cobalt_ioctl_empty_ops : vdev 1265 drivers/media/pci/cobalt/cobalt-v4l2.c vdev->queue = q; vdev 1266 drivers/media/pci/cobalt/cobalt-v4l2.c vdev->device_caps = V4L2_CAP_STREAMING | V4L2_CAP_READWRITE; vdev 1268 drivers/media/pci/cobalt/cobalt-v4l2.c vdev->device_caps |= V4L2_CAP_VIDEO_OUTPUT; vdev 1270 drivers/media/pci/cobalt/cobalt-v4l2.c vdev->device_caps |= V4L2_CAP_VIDEO_CAPTURE; vdev 1272 drivers/media/pci/cobalt/cobalt-v4l2.c video_set_drvdata(vdev, s); vdev 1275 drivers/media/pci/cobalt/cobalt-v4l2.c ret = video_register_device(vdev, VFL_TYPE_GRABBER, -1); vdev 1311 drivers/media/pci/cobalt/cobalt-v4l2.c struct video_device *vdev = &s->vdev; vdev 1314 drivers/media/pci/cobalt/cobalt-v4l2.c video_unregister_device(vdev); vdev 1111 drivers/media/pci/cx18/cx18-ioctl.c void cx18_set_funcs(struct video_device *vdev) vdev 1113 drivers/media/pci/cx18/cx18-ioctl.c vdev->ioctl_ops = &cx18_ioctl_ops; vdev 14 drivers/media/pci/cx18/cx18-ioctl.h void cx18_set_funcs(struct video_device *vdev); vdev 487 drivers/media/pci/cx18/cx18-streams.c struct video_device *vdev; vdev 523 drivers/media/pci/cx18/cx18-streams.c vdev = &cx->streams[type].video_dev; vdev 525 drivers/media/pci/cx18/cx18-streams.c if (vdev->v4l2_dev == NULL) vdev 533 drivers/media/pci/cx18/cx18-streams.c video_unregister_device(vdev); vdev 661 drivers/media/pci/cx25821/cx25821-video.c if (video_is_registered(&dev->channels[chan_num].vdev)) { vdev 662 drivers/media/pci/cx25821/cx25821-video.c video_unregister_device(&dev->channels[chan_num].vdev); vdev 679 drivers/media/pci/cx25821/cx25821-video.c struct video_device *vdev = &chan->vdev; vdev 749 drivers/media/pci/cx25821/cx25821-video.c *vdev = is_output ? cx25821_video_out_device : cx25821_video_device; vdev 750 drivers/media/pci/cx25821/cx25821-video.c vdev->v4l2_dev = &dev->v4l2_dev; vdev 752 drivers/media/pci/cx25821/cx25821-video.c vdev->ctrl_handler = hdl; vdev 754 drivers/media/pci/cx25821/cx25821-video.c vdev->vfl_dir = VFL_DIR_TX; vdev 755 drivers/media/pci/cx25821/cx25821-video.c vdev->lock = &dev->lock; vdev 756 drivers/media/pci/cx25821/cx25821-video.c vdev->queue = q; vdev 757 drivers/media/pci/cx25821/cx25821-video.c snprintf(vdev->name, sizeof(vdev->name), "%s #%d", dev->name, i); vdev 758 drivers/media/pci/cx25821/cx25821-video.c video_set_drvdata(vdev, chan); vdev 760 drivers/media/pci/cx25821/cx25821-video.c err = video_register_device(vdev, VFL_TYPE_GRABBER, vdev 202 drivers/media/pci/cx25821/cx25821.h struct video_device vdev; vdev 508 drivers/media/pci/dt3155/dt3155.c pd->vdev = dt3155_vdev; vdev 509 drivers/media/pci/dt3155/dt3155.c pd->vdev.v4l2_dev = &pd->v4l2_dev; vdev 510 drivers/media/pci/dt3155/dt3155.c video_set_drvdata(&pd->vdev, pd); /* for use in video_fops */ vdev 518 drivers/media/pci/dt3155/dt3155.c pd->vdev.lock = &pd->mux; /* for locking v4l2_file_operations */ vdev 529 drivers/media/pci/dt3155/dt3155.c pd->vdev.queue = &pd->vidq; vdev 553 drivers/media/pci/dt3155/dt3155.c err = video_register_device(&pd->vdev, VFL_TYPE_GRABBER, -1); vdev 556 drivers/media/pci/dt3155/dt3155.c dev_info(&pdev->dev, "/dev/video%i is ready\n", pd->vdev.minor); vdev 578 drivers/media/pci/dt3155/dt3155.c video_unregister_device(&pd->vdev); vdev 172 drivers/media/pci/dt3155/dt3155.h struct video_device vdev; vdev 1003 drivers/media/pci/intel/ipu3/ipu3-cio2.c r = media_pipeline_start(&q->vdev.entity, &q->pipe); vdev 1023 drivers/media/pci/intel/ipu3/ipu3-cio2.c media_pipeline_stop(&q->vdev.entity); vdev 1044 drivers/media/pci/intel/ipu3/ipu3-cio2.c media_pipeline_stop(&q->vdev.entity); vdev 1336 drivers/media/pci/intel/ipu3/ipu3-cio2.c struct cio2_queue *q = container_of(vd, struct cio2_queue, vdev); vdev 1553 drivers/media/pci/intel/ipu3/ipu3-cio2.c struct video_device *vdev = &q->vdev; vdev 1599 drivers/media/pci/intel/ipu3/ipu3-cio2.c vdev->entity.ops = &cio2_video_entity_ops; vdev 1600 drivers/media/pci/intel/ipu3/ipu3-cio2.c r = media_entity_pads_init(&vdev->entity, 1, &q->vdev_pad); vdev 1640 drivers/media/pci/intel/ipu3/ipu3-cio2.c snprintf(vdev->name, sizeof(vdev->name), vdev 1642 drivers/media/pci/intel/ipu3/ipu3-cio2.c vdev->release = video_device_release_empty; vdev 1643 drivers/media/pci/intel/ipu3/ipu3-cio2.c vdev->fops = &cio2_v4l2_fops; vdev 1644 drivers/media/pci/intel/ipu3/ipu3-cio2.c vdev->ioctl_ops = &cio2_v4l2_ioctl_ops; vdev 1645 drivers/media/pci/intel/ipu3/ipu3-cio2.c vdev->lock = &cio2->lock; vdev 1646 drivers/media/pci/intel/ipu3/ipu3-cio2.c vdev->v4l2_dev = &cio2->v4l2_dev; vdev 1647 drivers/media/pci/intel/ipu3/ipu3-cio2.c vdev->queue = &q->vbq; vdev 1648 drivers/media/pci/intel/ipu3/ipu3-cio2.c vdev->device_caps = V4L2_CAP_VIDEO_CAPTURE_MPLANE | V4L2_CAP_STREAMING; vdev 1649 drivers/media/pci/intel/ipu3/ipu3-cio2.c video_set_drvdata(vdev, cio2); vdev 1650 drivers/media/pci/intel/ipu3/ipu3-cio2.c r = video_register_device(vdev, VFL_TYPE_GRABBER, -1); vdev 1659 drivers/media/pci/intel/ipu3/ipu3-cio2.c &subdev->entity, CIO2_PAD_SOURCE, &vdev->entity, 0, vdev 1667 drivers/media/pci/intel/ipu3/ipu3-cio2.c video_unregister_device(&q->vdev); vdev 1673 drivers/media/pci/intel/ipu3/ipu3-cio2.c media_entity_cleanup(&vdev->entity); vdev 1686 drivers/media/pci/intel/ipu3/ipu3-cio2.c video_unregister_device(&q->vdev); vdev 1687 drivers/media/pci/intel/ipu3/ipu3-cio2.c media_entity_cleanup(&q->vdev.entity); vdev 340 drivers/media/pci/intel/ipu3/ipu3-cio2.h struct video_device vdev; vdev 429 drivers/media/pci/intel/ipu3/ipu3-cio2.h return container_of(video_devdata(file), struct cio2_queue, vdev); vdev 206 drivers/media/pci/ivtv/ivtv-alsa-main.c if (s->vdev.v4l2_dev == NULL) { vdev 153 drivers/media/pci/ivtv/ivtv-alsa-pcm.c v4l2_fh_init(&item.fh, &s->vdev); vdev 332 drivers/media/pci/ivtv/ivtv-driver.h struct video_device vdev; /* vdev.v4l2_dev is NULL if there is no device */ vdev 933 drivers/media/pci/ivtv/ivtv-fileops.c struct video_device *vdev = video_devdata(filp); vdev 934 drivers/media/pci/ivtv/ivtv-fileops.c struct ivtv_stream *s = video_get_drvdata(vdev); vdev 943 drivers/media/pci/ivtv/ivtv-fileops.c video_device_node_name(vdev)); vdev 951 drivers/media/pci/ivtv/ivtv-fileops.c video_device_node_name(vdev)); vdev 986 drivers/media/pci/ivtv/ivtv-fileops.c v4l2_fh_init(&item->fh, &s->vdev); vdev 1036 drivers/media/pci/ivtv/ivtv-fileops.c struct video_device *vdev = video_devdata(filp); vdev 1039 drivers/media/pci/ivtv/ivtv-fileops.c if (mutex_lock_interruptible(vdev->lock)) vdev 1042 drivers/media/pci/ivtv/ivtv-fileops.c mutex_unlock(vdev->lock); vdev 1012 drivers/media/pci/ivtv/ivtv-ioctl.c itv->streams[i].vdev.tvnorms = std; vdev 1063 drivers/media/pci/ivtv/ivtv-ioctl.c if (s->vdev.vfl_dir) vdev 1077 drivers/media/pci/ivtv/ivtv-ioctl.c if (s->vdev.vfl_dir) vdev 1576 drivers/media/pci/ivtv/ivtv-ioctl.c if (s->vdev.v4l2_dev == NULL || s->buffers == 0) vdev 1960 drivers/media/pci/ivtv/ivtv-ioctl.c void ivtv_set_funcs(struct video_device *vdev) vdev 1962 drivers/media/pci/ivtv/ivtv-ioctl.c vdev->ioctl_ops = &ivtv_ioctl_ops; vdev 17 drivers/media/pci/ivtv/ivtv-ioctl.h void ivtv_set_funcs(struct video_device *vdev); vdev 66 drivers/media/pci/ivtv/ivtv-irq.c s->vdev.v4l2_dev == NULL || !ivtv_use_pio(s)) { vdev 123 drivers/media/pci/ivtv/ivtv-irq.c if (s->vdev.v4l2_dev == NULL) { vdev 881 drivers/media/pci/ivtv/ivtv-irq.c if (s && s->vdev.v4l2_dev) vdev 882 drivers/media/pci/ivtv/ivtv-irq.c v4l2_event_queue(&s->vdev, frame ? &evtop : &evbottom); vdev 207 drivers/media/pci/ivtv/ivtv-streams.c s->vdev.v4l2_dev = NULL; vdev 228 drivers/media/pci/ivtv/ivtv-streams.c snprintf(s->vdev.name, sizeof(s->vdev.name), "%s %s", vdev 231 drivers/media/pci/ivtv/ivtv-streams.c s->vdev.num = num; vdev 232 drivers/media/pci/ivtv/ivtv-streams.c s->vdev.v4l2_dev = &itv->v4l2_dev; vdev 235 drivers/media/pci/ivtv/ivtv-streams.c s->vdev.vfl_dir = VFL_DIR_TX; vdev 236 drivers/media/pci/ivtv/ivtv-streams.c s->vdev.fops = ivtv_stream_info[type].fops; vdev 237 drivers/media/pci/ivtv/ivtv-streams.c s->vdev.ctrl_handler = itv->v4l2_dev.ctrl_handler; vdev 238 drivers/media/pci/ivtv/ivtv-streams.c s->vdev.release = video_device_release_empty; vdev 239 drivers/media/pci/ivtv/ivtv-streams.c s->vdev.tvnorms = V4L2_STD_ALL; vdev 240 drivers/media/pci/ivtv/ivtv-streams.c s->vdev.lock = &itv->serialize_lock; vdev 242 drivers/media/pci/ivtv/ivtv-streams.c v4l2_disable_ioctl(&s->vdev, VIDIOC_S_AUDIO); vdev 243 drivers/media/pci/ivtv/ivtv-streams.c v4l2_disable_ioctl(&s->vdev, VIDIOC_G_AUDIO); vdev 244 drivers/media/pci/ivtv/ivtv-streams.c v4l2_disable_ioctl(&s->vdev, VIDIOC_ENUMAUDIO); vdev 245 drivers/media/pci/ivtv/ivtv-streams.c v4l2_disable_ioctl(&s->vdev, VIDIOC_ENUMINPUT); vdev 246 drivers/media/pci/ivtv/ivtv-streams.c v4l2_disable_ioctl(&s->vdev, VIDIOC_S_INPUT); vdev 247 drivers/media/pci/ivtv/ivtv-streams.c v4l2_disable_ioctl(&s->vdev, VIDIOC_G_INPUT); vdev 248 drivers/media/pci/ivtv/ivtv-streams.c v4l2_disable_ioctl(&s->vdev, VIDIOC_S_FREQUENCY); vdev 249 drivers/media/pci/ivtv/ivtv-streams.c v4l2_disable_ioctl(&s->vdev, VIDIOC_G_FREQUENCY); vdev 250 drivers/media/pci/ivtv/ivtv-streams.c v4l2_disable_ioctl(&s->vdev, VIDIOC_S_TUNER); vdev 251 drivers/media/pci/ivtv/ivtv-streams.c v4l2_disable_ioctl(&s->vdev, VIDIOC_G_TUNER); vdev 252 drivers/media/pci/ivtv/ivtv-streams.c v4l2_disable_ioctl(&s->vdev, VIDIOC_S_STD); vdev 254 drivers/media/pci/ivtv/ivtv-streams.c ivtv_set_funcs(&s->vdev); vdev 269 drivers/media/pci/ivtv/ivtv-streams.c if (itv->streams[type].vdev.v4l2_dev == NULL) vdev 291 drivers/media/pci/ivtv/ivtv-streams.c if (s->vdev.v4l2_dev == NULL) vdev 294 drivers/media/pci/ivtv/ivtv-streams.c num = s->vdev.num; vdev 299 drivers/media/pci/ivtv/ivtv-streams.c if (s_mpg->vdev.v4l2_dev) vdev 300 drivers/media/pci/ivtv/ivtv-streams.c num = s_mpg->vdev.num + ivtv_stream_info[type].num_offset; vdev 302 drivers/media/pci/ivtv/ivtv-streams.c s->vdev.device_caps = s->caps; vdev 304 drivers/media/pci/ivtv/ivtv-streams.c itv->streams[IVTV_DEC_STREAM_TYPE_YUV].vdev.device_caps |= vdev 306 drivers/media/pci/ivtv/ivtv-streams.c itv->streams[IVTV_DEC_STREAM_TYPE_MPG].vdev.device_caps |= vdev 310 drivers/media/pci/ivtv/ivtv-streams.c video_set_drvdata(&s->vdev, s); vdev 313 drivers/media/pci/ivtv/ivtv-streams.c if (video_register_device_no_warn(&s->vdev, vfl_type, num)) { vdev 318 drivers/media/pci/ivtv/ivtv-streams.c name = video_device_node_name(&s->vdev); vdev 366 drivers/media/pci/ivtv/ivtv-streams.c struct video_device *vdev = &itv->streams[type].vdev; vdev 368 drivers/media/pci/ivtv/ivtv-streams.c if (vdev->v4l2_dev == NULL) vdev 371 drivers/media/pci/ivtv/ivtv-streams.c video_unregister_device(vdev); vdev 373 drivers/media/pci/ivtv/ivtv-streams.c itv->streams[type].vdev.v4l2_dev = NULL; vdev 497 drivers/media/pci/ivtv/ivtv-streams.c if (s->vdev.v4l2_dev == NULL) vdev 666 drivers/media/pci/ivtv/ivtv-streams.c if (s->vdev.v4l2_dev == NULL) vdev 728 drivers/media/pci/ivtv/ivtv-streams.c if (s->vdev.v4l2_dev == NULL) vdev 783 drivers/media/pci/ivtv/ivtv-streams.c if (s->vdev.v4l2_dev == NULL) vdev 798 drivers/media/pci/ivtv/ivtv-streams.c if (s->vdev.v4l2_dev == NULL) vdev 922 drivers/media/pci/ivtv/ivtv-streams.c if (s->vdev.v4l2_dev == NULL) vdev 974 drivers/media/pci/ivtv/ivtv-streams.c v4l2_event_queue(&s->vdev, &ev); vdev 987 drivers/media/pci/ivtv/ivtv-streams.c if (yuv_stream->vdev.v4l2_dev == NULL || dec_stream->vdev.v4l2_dev == NULL) vdev 1223 drivers/media/pci/ivtv/ivtvfb.c itv->streams[IVTV_DEC_STREAM_TYPE_YUV].vdev.device_caps |= vdev 1225 drivers/media/pci/ivtv/ivtvfb.c itv->streams[IVTV_DEC_STREAM_TYPE_MPG].vdev.device_caps |= vdev 1254 drivers/media/pci/ivtv/ivtvfb.c itv->streams[IVTV_DEC_STREAM_TYPE_YUV].vdev.device_caps &= vdev 1256 drivers/media/pci/ivtv/ivtvfb.c itv->streams[IVTV_DEC_STREAM_TYPE_MPG].vdev.device_caps &= vdev 1626 drivers/media/pci/meye/meye.c meye.vdev = meye_template; vdev 1627 drivers/media/pci/meye/meye.c meye.vdev.v4l2_dev = &meye.v4l2_dev; vdev 1712 drivers/media/pci/meye/meye.c meye.vdev.ctrl_handler = &meye.hdl; vdev 1714 drivers/media/pci/meye/meye.c if (video_register_device(&meye.vdev, VFL_TYPE_GRABBER, vdev 1751 drivers/media/pci/meye/meye.c video_unregister_device(&meye.vdev); vdev 301 drivers/media/pci/meye/meye.h struct video_device vdev; /* video device parameters */ vdev 463 drivers/media/pci/saa7134/saa7134-go7007.c dev->empress_dev = &go->vdev; vdev 496 drivers/media/pci/saa7134/saa7134-go7007.c video_unregister_device(&go->vdev); vdev 1129 drivers/media/pci/saa7134/saa7134-video.c struct video_device *vdev = video_devdata(file); vdev 1137 drivers/media/pci/saa7134/saa7134-video.c if (vdev->vfl_type == VFL_TYPE_RADIO) { vdev 1152 drivers/media/pci/saa7134/saa7134-video.c struct video_device *vdev = video_devdata(file); vdev 1169 drivers/media/pci/saa7134/saa7134-video.c if (vdev->vfl_type == VFL_TYPE_RADIO) vdev 1181 drivers/media/pci/saa7134/saa7134-video.c if (vdev->vfl_type == VFL_TYPE_RADIO) vdev 736 drivers/media/pci/saa7134/saa7134.h struct video_device *vdev = video_devdata(file); vdev 737 drivers/media/pci/saa7134/saa7134.h struct saa7134_dev *dev = video_get_drvdata(vdev); vdev 739 drivers/media/pci/saa7134/saa7134.h return vdev->queue == &dev->empress_vbq; vdev 1119 drivers/media/pci/tw5864/tw5864-video.c input->vdev = tw5864_video_template; vdev 1120 drivers/media/pci/tw5864/tw5864-video.c input->vdev.v4l2_dev = &input->root->v4l2_dev; vdev 1121 drivers/media/pci/tw5864/tw5864-video.c input->vdev.lock = &input->lock; vdev 1122 drivers/media/pci/tw5864/tw5864-video.c input->vdev.queue = &input->vidq; vdev 1123 drivers/media/pci/tw5864/tw5864-video.c video_set_drvdata(&input->vdev, input); vdev 1152 drivers/media/pci/tw5864/tw5864-video.c input->vdev.ctrl_handler = hdl; vdev 1159 drivers/media/pci/tw5864/tw5864-video.c ret = video_register_device(&input->vdev, VFL_TYPE_GRABBER, video_nr); vdev 1164 drivers/media/pci/tw5864/tw5864-video.c video_device_node_name(&input->vdev)); vdev 1190 drivers/media/pci/tw5864/tw5864-video.c video_unregister_device(&dev->vdev); vdev 1451 drivers/media/pci/tw5864/tw5864-video.c v4l2_event_queue(&input->vdev, &ev); vdev 89 drivers/media/pci/tw5864/tw5864.h struct video_device vdev; vdev 324 drivers/media/pci/tw68/tw68-core.c dev->name, video_device_node_name(&dev->vdev)); vdev 329 drivers/media/pci/tw68/tw68-core.c video_unregister_device(&dev->vdev); vdev 351 drivers/media/pci/tw68/tw68-core.c video_unregister_device(&dev->vdev); vdev 960 drivers/media/pci/tw68/tw68-video.c dev->vdev = tw68_video_template; vdev 961 drivers/media/pci/tw68/tw68-video.c dev->vdev.v4l2_dev = &dev->v4l2_dev; vdev 962 drivers/media/pci/tw68/tw68-video.c dev->vdev.lock = &dev->lock; vdev 963 drivers/media/pci/tw68/tw68-video.c dev->vdev.queue = &dev->vidq; vdev 964 drivers/media/pci/tw68/tw68-video.c video_set_drvdata(&dev->vdev, dev); vdev 965 drivers/media/pci/tw68/tw68-video.c return video_register_device(&dev->vdev, VFL_TYPE_GRABBER, video_nr); vdev 138 drivers/media/pci/tw68/tw68.h struct video_device vdev; vdev 1196 drivers/media/pci/tw686x/tw686x-video.c struct video_device *vdev; vdev 1262 drivers/media/pci/tw686x/tw686x-video.c vdev = video_device_alloc(); vdev 1263 drivers/media/pci/tw686x/tw686x-video.c if (!vdev) { vdev 1270 drivers/media/pci/tw686x/tw686x-video.c snprintf(vdev->name, sizeof(vdev->name), "%s video", dev->name); vdev 1271 drivers/media/pci/tw686x/tw686x-video.c vdev->fops = &tw686x_video_fops; vdev 1272 drivers/media/pci/tw686x/tw686x-video.c vdev->ioctl_ops = &tw686x_video_ioctl_ops; vdev 1273 drivers/media/pci/tw686x/tw686x-video.c vdev->release = video_device_release; vdev 1274 drivers/media/pci/tw686x/tw686x-video.c vdev->v4l2_dev = &dev->v4l2_dev; vdev 1275 drivers/media/pci/tw686x/tw686x-video.c vdev->queue = &vc->vidq; vdev 1276 drivers/media/pci/tw686x/tw686x-video.c vdev->tvnorms = V4L2_STD_525_60 | V4L2_STD_625_50; vdev 1277 drivers/media/pci/tw686x/tw686x-video.c vdev->minor = -1; vdev 1278 drivers/media/pci/tw686x/tw686x-video.c vdev->lock = &vc->vb_mutex; vdev 1279 drivers/media/pci/tw686x/tw686x-video.c vdev->ctrl_handler = &vc->ctrl_handler; vdev 1280 drivers/media/pci/tw686x/tw686x-video.c vdev->device_caps = V4L2_CAP_VIDEO_CAPTURE | vdev 1282 drivers/media/pci/tw686x/tw686x-video.c vc->device = vdev; vdev 1283 drivers/media/pci/tw686x/tw686x-video.c video_set_drvdata(vdev, vc); vdev 1285 drivers/media/pci/tw686x/tw686x-video.c err = video_register_device(vdev, VFL_TYPE_GRABBER, -1); vdev 1288 drivers/media/pci/tw686x/tw686x-video.c vc->num = vdev->num; vdev 2335 drivers/media/platform/am437x/am437x-vpfe.c struct video_device *vdev; vdev 2373 drivers/media/platform/am437x/am437x-vpfe.c vdev = &vpfe->video_dev; vdev 2374 drivers/media/platform/am437x/am437x-vpfe.c strscpy(vdev->name, VPFE_MODULE_NAME, sizeof(vdev->name)); vdev 2375 drivers/media/platform/am437x/am437x-vpfe.c vdev->release = video_device_release_empty; vdev 2376 drivers/media/platform/am437x/am437x-vpfe.c vdev->fops = &vpfe_fops; vdev 2377 drivers/media/platform/am437x/am437x-vpfe.c vdev->ioctl_ops = &vpfe_ioctl_ops; vdev 2378 drivers/media/platform/am437x/am437x-vpfe.c vdev->v4l2_dev = &vpfe->v4l2_dev; vdev 2379 drivers/media/platform/am437x/am437x-vpfe.c vdev->vfl_dir = VFL_DIR_RX; vdev 2380 drivers/media/platform/am437x/am437x-vpfe.c vdev->queue = q; vdev 2381 drivers/media/platform/am437x/am437x-vpfe.c vdev->lock = &vpfe->lock; vdev 2382 drivers/media/platform/am437x/am437x-vpfe.c vdev->device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING | vdev 2384 drivers/media/platform/am437x/am437x-vpfe.c video_set_drvdata(vdev, vpfe); vdev 220 drivers/media/platform/aspeed-video.c struct video_device vdev; vdev 1338 drivers/media/platform/aspeed-video.c v4l2_event_queue(&video->vdev, &ev); vdev 1508 drivers/media/platform/aspeed-video.c struct video_device *vdev = &video->vdev; vdev 1563 drivers/media/platform/aspeed-video.c vdev->queue = vbq; vdev 1564 drivers/media/platform/aspeed-video.c vdev->fops = &aspeed_video_v4l2_fops; vdev 1565 drivers/media/platform/aspeed-video.c vdev->device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_READWRITE | vdev 1567 drivers/media/platform/aspeed-video.c vdev->v4l2_dev = v4l2_dev; vdev 1568 drivers/media/platform/aspeed-video.c strscpy(vdev->name, DEVICE_NAME, sizeof(vdev->name)); vdev 1569 drivers/media/platform/aspeed-video.c vdev->vfl_type = VFL_TYPE_GRABBER; vdev 1570 drivers/media/platform/aspeed-video.c vdev->vfl_dir = VFL_DIR_RX; vdev 1571 drivers/media/platform/aspeed-video.c vdev->release = video_device_release_empty; vdev 1572 drivers/media/platform/aspeed-video.c vdev->ioctl_ops = &aspeed_video_ioctl_ops; vdev 1573 drivers/media/platform/aspeed-video.c vdev->lock = &video->video_lock; vdev 1575 drivers/media/platform/aspeed-video.c video_set_drvdata(vdev, video); vdev 1576 drivers/media/platform/aspeed-video.c rc = video_register_device(vdev, VFL_TYPE_GRABBER, 0); vdev 1704 drivers/media/platform/aspeed-video.c video_unregister_device(&video->vdev); vdev 2017 drivers/media/platform/atmel/atmel-isc-base.c struct video_device *vdev = &isc->video_dev; vdev 2078 drivers/media/platform/atmel/atmel-isc-base.c strscpy(vdev->name, ATMEL_ISC_NAME, sizeof(vdev->name)); vdev 2079 drivers/media/platform/atmel/atmel-isc-base.c vdev->release = video_device_release_empty; vdev 2080 drivers/media/platform/atmel/atmel-isc-base.c vdev->fops = &isc_fops; vdev 2081 drivers/media/platform/atmel/atmel-isc-base.c vdev->ioctl_ops = &isc_ioctl_ops; vdev 2082 drivers/media/platform/atmel/atmel-isc-base.c vdev->v4l2_dev = &isc->v4l2_dev; vdev 2083 drivers/media/platform/atmel/atmel-isc-base.c vdev->vfl_dir = VFL_DIR_RX; vdev 2084 drivers/media/platform/atmel/atmel-isc-base.c vdev->queue = q; vdev 2085 drivers/media/platform/atmel/atmel-isc-base.c vdev->lock = &isc->lock; vdev 2086 drivers/media/platform/atmel/atmel-isc-base.c vdev->ctrl_handler = &isc->ctrls.handler; vdev 2087 drivers/media/platform/atmel/atmel-isc-base.c vdev->device_caps = V4L2_CAP_STREAMING | V4L2_CAP_VIDEO_CAPTURE; vdev 2088 drivers/media/platform/atmel/atmel-isc-base.c video_set_drvdata(vdev, isc); vdev 2090 drivers/media/platform/atmel/atmel-isc-base.c ret = video_register_device(vdev, VFL_TYPE_GRABBER, -1); vdev 121 drivers/media/platform/atmel/atmel-isi.c struct video_device *vdev; vdev 1045 drivers/media/platform/atmel/atmel-isi.c isi->vdev->ctrl_handler = isi->entity.subdev->ctrl_handler; vdev 1059 drivers/media/platform/atmel/atmel-isi.c ret = video_register_device(isi->vdev, VFL_TYPE_GRABBER, -1); vdev 1066 drivers/media/platform/atmel/atmel-isi.c video_device_node_name(isi->vdev)); vdev 1076 drivers/media/platform/atmel/atmel-isi.c dev_dbg(isi->dev, "Removing %s\n", video_device_node_name(isi->vdev)); vdev 1079 drivers/media/platform/atmel/atmel-isi.c video_unregister_device(isi->vdev); vdev 1188 drivers/media/platform/atmel/atmel-isi.c isi->vdev = video_device_alloc(); vdev 1189 drivers/media/platform/atmel/atmel-isi.c if (!isi->vdev) { vdev 1195 drivers/media/platform/atmel/atmel-isi.c isi->vdev->fops = &isi_fops; vdev 1196 drivers/media/platform/atmel/atmel-isi.c isi->vdev->v4l2_dev = &isi->v4l2_dev; vdev 1197 drivers/media/platform/atmel/atmel-isi.c isi->vdev->queue = &isi->queue; vdev 1198 drivers/media/platform/atmel/atmel-isi.c strscpy(isi->vdev->name, KBUILD_MODNAME, sizeof(isi->vdev->name)); vdev 1199 drivers/media/platform/atmel/atmel-isi.c isi->vdev->release = video_device_release; vdev 1200 drivers/media/platform/atmel/atmel-isi.c isi->vdev->ioctl_ops = &isi_ioctl_ops; vdev 1201 drivers/media/platform/atmel/atmel-isi.c isi->vdev->lock = &isi->lock; vdev 1202 drivers/media/platform/atmel/atmel-isi.c isi->vdev->device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING | vdev 1204 drivers/media/platform/atmel/atmel-isi.c video_set_drvdata(isi->vdev, isi); vdev 1282 drivers/media/platform/atmel/atmel-isi.c video_device_release(isi->vdev); vdev 327 drivers/media/platform/coda/coda-common.c *vdev) vdev 329 drivers/media/platform/coda/coda-common.c struct coda_dev *dev = video_get_drvdata(vdev); vdev 330 drivers/media/platform/coda/coda-common.c unsigned int i = vdev - dev->vfd; vdev 399 drivers/media/platform/coda/coda-common.c struct video_device *vdev = video_devdata(file); vdev 400 drivers/media/platform/coda/coda-common.c const struct coda_video_device *cvd = to_coda_video_device(vdev); vdev 2401 drivers/media/platform/coda/coda-common.c struct video_device *vdev = video_devdata(file); vdev 2402 drivers/media/platform/coda/coda-common.c struct coda_dev *dev = video_get_drvdata(vdev); vdev 2430 drivers/media/platform/coda/coda-common.c ctx->cvd = to_coda_video_device(vdev); vdev 284 drivers/media/platform/coda/coda-h264.c dev_err(ctx->fh.vdev->dev_parent, vdev 386 drivers/media/platform/coda/coda-h264.c dev_err(ctx->fh.vdev->dev_parent, vdev 25 drivers/media/platform/coda/trace.h __entry->minor = ctx->fh.vdev->minor; vdev 45 drivers/media/platform/coda/trace.h __entry->minor = ctx->fh.vdev->minor; vdev 64 drivers/media/platform/coda/trace.h __entry->minor = ctx->fh.vdev->minor; vdev 98 drivers/media/platform/coda/trace.h __entry->minor = ctx->fh.vdev->minor; vdev 129 drivers/media/platform/coda/trace.h __entry->minor = ctx->fh.vdev->minor; vdev 419 drivers/media/platform/davinci/vpfe_capture.c struct video_device *vdev = video_devdata(file); vdev 437 drivers/media/platform/davinci/vpfe_capture.c v4l2_fh_init(&fh->fh, vdev); vdev 763 drivers/media/platform/davinci/vpif_capture.c struct video_device *vdev = video_devdata(file); vdev 764 drivers/media/platform/davinci/vpif_capture.c struct channel_obj *ch = video_get_drvdata(vdev); vdev 791 drivers/media/platform/davinci/vpif_capture.c struct video_device *vdev = video_devdata(file); vdev 792 drivers/media/platform/davinci/vpif_capture.c struct channel_obj *ch = video_get_drvdata(vdev); vdev 819 drivers/media/platform/davinci/vpif_capture.c struct video_device *vdev = video_devdata(file); vdev 820 drivers/media/platform/davinci/vpif_capture.c struct channel_obj *ch = video_get_drvdata(vdev); vdev 869 drivers/media/platform/davinci/vpif_capture.c struct video_device *vdev = video_devdata(file); vdev 870 drivers/media/platform/davinci/vpif_capture.c struct channel_obj *ch = video_get_drvdata(vdev); vdev 891 drivers/media/platform/davinci/vpif_capture.c struct video_device *vdev = video_devdata(file); vdev 892 drivers/media/platform/davinci/vpif_capture.c struct channel_obj *ch = video_get_drvdata(vdev); vdev 907 drivers/media/platform/davinci/vpif_capture.c struct video_device *vdev = video_devdata(file); vdev 908 drivers/media/platform/davinci/vpif_capture.c struct channel_obj *ch = video_get_drvdata(vdev); vdev 932 drivers/media/platform/davinci/vpif_capture.c struct video_device *vdev = video_devdata(file); vdev 933 drivers/media/platform/davinci/vpif_capture.c struct channel_obj *ch = video_get_drvdata(vdev); vdev 957 drivers/media/platform/davinci/vpif_capture.c struct video_device *vdev = video_devdata(file); vdev 958 drivers/media/platform/davinci/vpif_capture.c struct channel_obj *ch = video_get_drvdata(vdev); vdev 994 drivers/media/platform/davinci/vpif_capture.c struct video_device *vdev = video_devdata(file); vdev 995 drivers/media/platform/davinci/vpif_capture.c struct channel_obj *ch = video_get_drvdata(vdev); vdev 1050 drivers/media/platform/davinci/vpif_capture.c struct video_device *vdev = video_devdata(file); vdev 1051 drivers/media/platform/davinci/vpif_capture.c struct channel_obj *ch = video_get_drvdata(vdev); vdev 1099 drivers/media/platform/davinci/vpif_capture.c struct video_device *vdev = video_devdata(file); vdev 1100 drivers/media/platform/davinci/vpif_capture.c struct channel_obj *ch = video_get_drvdata(vdev); vdev 1133 drivers/media/platform/davinci/vpif_capture.c struct video_device *vdev = video_devdata(file); vdev 1134 drivers/media/platform/davinci/vpif_capture.c struct channel_obj *ch = video_get_drvdata(vdev); vdev 1164 drivers/media/platform/davinci/vpif_capture.c struct video_device *vdev = video_devdata(file); vdev 1165 drivers/media/platform/davinci/vpif_capture.c struct channel_obj *ch = video_get_drvdata(vdev); vdev 1263 drivers/media/platform/davinci/vpif_capture.c struct video_device *vdev = video_devdata(file); vdev 1264 drivers/media/platform/davinci/vpif_capture.c struct channel_obj *ch = video_get_drvdata(vdev); vdev 1412 drivers/media/platform/davinci/vpif_capture.c struct video_device *vdev; vdev 1457 drivers/media/platform/davinci/vpif_capture.c vdev = &ch->video_dev; vdev 1458 drivers/media/platform/davinci/vpif_capture.c strscpy(vdev->name, VPIF_DRIVER_NAME, sizeof(vdev->name)); vdev 1459 drivers/media/platform/davinci/vpif_capture.c vdev->release = video_device_release_empty; vdev 1460 drivers/media/platform/davinci/vpif_capture.c vdev->fops = &vpif_fops; vdev 1461 drivers/media/platform/davinci/vpif_capture.c vdev->ioctl_ops = &vpif_ioctl_ops; vdev 1462 drivers/media/platform/davinci/vpif_capture.c vdev->v4l2_dev = &vpif_obj.v4l2_dev; vdev 1463 drivers/media/platform/davinci/vpif_capture.c vdev->vfl_dir = VFL_DIR_RX; vdev 1464 drivers/media/platform/davinci/vpif_capture.c vdev->queue = q; vdev 1465 drivers/media/platform/davinci/vpif_capture.c vdev->lock = &common->lock; vdev 1466 drivers/media/platform/davinci/vpif_capture.c vdev->device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; vdev 1468 drivers/media/platform/davinci/vpif_capture.c err = video_register_device(vdev, vdev 609 drivers/media/platform/davinci/vpif_display.c struct video_device *vdev = video_devdata(file); vdev 610 drivers/media/platform/davinci/vpif_display.c struct channel_obj *ch = video_get_drvdata(vdev); vdev 626 drivers/media/platform/davinci/vpif_display.c struct video_device *vdev = video_devdata(file); vdev 627 drivers/media/platform/davinci/vpif_display.c struct channel_obj *ch = video_get_drvdata(vdev); vdev 654 drivers/media/platform/davinci/vpif_display.c struct video_device *vdev = video_devdata(file); vdev 655 drivers/media/platform/davinci/vpif_display.c struct channel_obj *ch = video_get_drvdata(vdev); vdev 678 drivers/media/platform/davinci/vpif_display.c struct video_device *vdev = video_devdata(file); vdev 679 drivers/media/platform/davinci/vpif_display.c struct channel_obj *ch = video_get_drvdata(vdev); vdev 726 drivers/media/platform/davinci/vpif_display.c struct video_device *vdev = video_devdata(file); vdev 727 drivers/media/platform/davinci/vpif_display.c struct channel_obj *ch = video_get_drvdata(vdev); vdev 748 drivers/media/platform/davinci/vpif_display.c struct video_device *vdev = video_devdata(file); vdev 749 drivers/media/platform/davinci/vpif_display.c struct channel_obj *ch = video_get_drvdata(vdev); vdev 841 drivers/media/platform/davinci/vpif_display.c struct video_device *vdev = video_devdata(file); vdev 842 drivers/media/platform/davinci/vpif_display.c struct channel_obj *ch = video_get_drvdata(vdev); vdev 859 drivers/media/platform/davinci/vpif_display.c struct video_device *vdev = video_devdata(file); vdev 860 drivers/media/platform/davinci/vpif_display.c struct channel_obj *ch = video_get_drvdata(vdev); vdev 878 drivers/media/platform/davinci/vpif_display.c struct video_device *vdev = video_devdata(file); vdev 879 drivers/media/platform/davinci/vpif_display.c struct channel_obj *ch = video_get_drvdata(vdev); vdev 910 drivers/media/platform/davinci/vpif_display.c struct video_device *vdev = video_devdata(file); vdev 911 drivers/media/platform/davinci/vpif_display.c struct channel_obj *ch = video_get_drvdata(vdev); vdev 1009 drivers/media/platform/davinci/vpif_display.c struct video_device *vdev = video_devdata(file); vdev 1010 drivers/media/platform/davinci/vpif_display.c struct channel_obj *ch = video_get_drvdata(vdev); vdev 1140 drivers/media/platform/davinci/vpif_display.c struct video_device *vdev; vdev 1206 drivers/media/platform/davinci/vpif_display.c vdev = &ch->video_dev; vdev 1207 drivers/media/platform/davinci/vpif_display.c strscpy(vdev->name, VPIF_DRIVER_NAME, sizeof(vdev->name)); vdev 1208 drivers/media/platform/davinci/vpif_display.c vdev->release = video_device_release_empty; vdev 1209 drivers/media/platform/davinci/vpif_display.c vdev->fops = &vpif_fops; vdev 1210 drivers/media/platform/davinci/vpif_display.c vdev->ioctl_ops = &vpif_ioctl_ops; vdev 1211 drivers/media/platform/davinci/vpif_display.c vdev->v4l2_dev = &vpif_obj.v4l2_dev; vdev 1212 drivers/media/platform/davinci/vpif_display.c vdev->vfl_dir = VFL_DIR_TX; vdev 1213 drivers/media/platform/davinci/vpif_display.c vdev->queue = q; vdev 1214 drivers/media/platform/davinci/vpif_display.c vdev->lock = &common->lock; vdev 1215 drivers/media/platform/davinci/vpif_display.c vdev->device_caps = V4L2_CAP_VIDEO_OUTPUT | V4L2_CAP_STREAMING; vdev 1217 drivers/media/platform/davinci/vpif_display.c err = video_register_device(vdev, VFL_TYPE_GRABBER, vdev 338 drivers/media/platform/exynos-gsc/gsc-core.h struct video_device vdev; vdev 754 drivers/media/platform/exynos-gsc/gsc-m2m.c gsc->vdev.fops = &gsc_m2m_fops; vdev 755 drivers/media/platform/exynos-gsc/gsc-m2m.c gsc->vdev.ioctl_ops = &gsc_m2m_ioctl_ops; vdev 756 drivers/media/platform/exynos-gsc/gsc-m2m.c gsc->vdev.release = video_device_release_empty; vdev 757 drivers/media/platform/exynos-gsc/gsc-m2m.c gsc->vdev.lock = &gsc->lock; vdev 758 drivers/media/platform/exynos-gsc/gsc-m2m.c gsc->vdev.vfl_dir = VFL_DIR_M2M; vdev 759 drivers/media/platform/exynos-gsc/gsc-m2m.c gsc->vdev.v4l2_dev = &gsc->v4l2_dev; vdev 760 drivers/media/platform/exynos-gsc/gsc-m2m.c gsc->vdev.device_caps = V4L2_CAP_STREAMING | vdev 762 drivers/media/platform/exynos-gsc/gsc-m2m.c snprintf(gsc->vdev.name, sizeof(gsc->vdev.name), "%s.%d:m2m", vdev 765 drivers/media/platform/exynos-gsc/gsc-m2m.c video_set_drvdata(&gsc->vdev, gsc); vdev 767 drivers/media/platform/exynos-gsc/gsc-m2m.c gsc->m2m.vfd = &gsc->vdev; vdev 774 drivers/media/platform/exynos-gsc/gsc-m2m.c ret = video_register_device(&gsc->vdev, VFL_TYPE_GRABBER, -1); vdev 781 drivers/media/platform/exynos-gsc/gsc-m2m.c pr_debug("gsc m2m driver registered as /dev/video%d", gsc->vdev.num); vdev 794 drivers/media/platform/exynos-gsc/gsc-m2m.c video_unregister_device(&gsc->vdev); vdev 324 drivers/media/platform/exynos4-is/fimc-capture.c fimc_pipeline_call(ve, open, &ve->vdev.entity, false); vdev 388 drivers/media/platform/exynos4-is/fimc-capture.c v4l2_err(&ctx->fimc_dev->vid_cap.ve.vdev, vdev 447 drivers/media/platform/exynos4-is/fimc-capture.c v4l2_err(&ve->vdev, "stream on failed: %d\n", ret); vdev 493 drivers/media/platform/exynos4-is/fimc-capture.c ret = fimc_pipeline_call(ve, open, &ve->vdev.entity, true); vdev 507 drivers/media/platform/exynos4-is/fimc-capture.c ve->vdev.entity.use_count++; vdev 537 drivers/media/platform/exynos4-is/fimc-capture.c media_pipeline_stop(&vc->ve.vdev.entity); vdev 549 drivers/media/platform/exynos4-is/fimc-capture.c vc->ve.vdev.entity.use_count--; vdev 1189 drivers/media/platform/exynos4-is/fimc-capture.c struct media_entity *entity = &vc->ve.vdev.entity; vdev 1246 drivers/media/platform/exynos4-is/fimc-capture.c media_pipeline_stop(&vc->ve.vdev.entity); vdev 1733 drivers/media/platform/exynos4-is/fimc-capture.c struct video_device *vfd = &fimc->vid_cap.ve.vdev; vdev 1856 drivers/media/platform/exynos4-is/fimc-capture.c struct video_device *vdev; vdev 1864 drivers/media/platform/exynos4-is/fimc-capture.c vdev = &fimc->vid_cap.ve.vdev; vdev 1866 drivers/media/platform/exynos4-is/fimc-capture.c if (video_is_registered(vdev)) { vdev 1867 drivers/media/platform/exynos4-is/fimc-capture.c video_unregister_device(vdev); vdev 1868 drivers/media/platform/exynos4-is/fimc-capture.c media_entity_cleanup(&vdev->entity); vdev 97 drivers/media/platform/exynos4-is/fimc-isp-video.c isp_dbg(2, &video->ve.vdev, vdev 164 drivers/media/platform/exynos4-is/fimc-isp-video.c v4l2_err(&video->ve.vdev, vdev 213 drivers/media/platform/exynos4-is/fimc-isp-video.c isp_dbg(2, &video->ve.vdev, vdev 268 drivers/media/platform/exynos4-is/fimc-isp-video.c struct media_entity *me = &ve->vdev.entity; vdev 306 drivers/media/platform/exynos4-is/fimc-isp-video.c struct media_entity *entity = &ivc->ve.vdev.entity; vdev 490 drivers/media/platform/exynos4-is/fimc-isp-video.c struct media_entity *me = &ve->vdev.entity; vdev 523 drivers/media/platform/exynos4-is/fimc-isp-video.c media_pipeline_stop(&video->ve.vdev.entity); vdev 570 drivers/media/platform/exynos4-is/fimc-isp-video.c struct video_device *vdev; vdev 603 drivers/media/platform/exynos4-is/fimc-isp-video.c vdev = &iv->ve.vdev; vdev 604 drivers/media/platform/exynos4-is/fimc-isp-video.c memset(vdev, 0, sizeof(*vdev)); vdev 605 drivers/media/platform/exynos4-is/fimc-isp-video.c strscpy(vdev->name, "fimc-is-isp.capture", sizeof(vdev->name)); vdev 606 drivers/media/platform/exynos4-is/fimc-isp-video.c vdev->queue = q; vdev 607 drivers/media/platform/exynos4-is/fimc-isp-video.c vdev->fops = &isp_video_fops; vdev 608 drivers/media/platform/exynos4-is/fimc-isp-video.c vdev->ioctl_ops = &isp_video_ioctl_ops; vdev 609 drivers/media/platform/exynos4-is/fimc-isp-video.c vdev->v4l2_dev = v4l2_dev; vdev 610 drivers/media/platform/exynos4-is/fimc-isp-video.c vdev->minor = -1; vdev 611 drivers/media/platform/exynos4-is/fimc-isp-video.c vdev->release = video_device_release_empty; vdev 612 drivers/media/platform/exynos4-is/fimc-isp-video.c vdev->lock = &isp->video_lock; vdev 613 drivers/media/platform/exynos4-is/fimc-isp-video.c vdev->device_caps = V4L2_CAP_STREAMING | V4L2_CAP_VIDEO_CAPTURE_MPLANE; vdev 616 drivers/media/platform/exynos4-is/fimc-isp-video.c ret = media_entity_pads_init(&vdev->entity, 1, &iv->pad); vdev 620 drivers/media/platform/exynos4-is/fimc-isp-video.c video_set_drvdata(vdev, isp); vdev 622 drivers/media/platform/exynos4-is/fimc-isp-video.c ret = video_register_device(vdev, VFL_TYPE_GRABBER, -1); vdev 624 drivers/media/platform/exynos4-is/fimc-isp-video.c media_entity_cleanup(&vdev->entity); vdev 629 drivers/media/platform/exynos4-is/fimc-isp-video.c vdev->name, video_device_node_name(vdev)); vdev 646 drivers/media/platform/exynos4-is/fimc-isp-video.c if (video_is_registered(&ve->vdev)) { vdev 647 drivers/media/platform/exynos4-is/fimc-isp-video.c video_unregister_device(&ve->vdev); vdev 648 drivers/media/platform/exynos4-is/fimc-isp-video.c media_entity_cleanup(&ve->vdev.entity); vdev 139 drivers/media/platform/exynos4-is/fimc-lite-reg.c v4l2_err(&dev->ve.vdev, vdev 391 drivers/media/platform/exynos4-is/fimc-lite.c v4l2_err(&fimc->ve.vdev, vdev 461 drivers/media/platform/exynos4-is/fimc-lite.c struct media_entity *me = &fimc->ve.vdev.entity; vdev 510 drivers/media/platform/exynos4-is/fimc-lite.c struct media_entity *entity = &fimc->ve.vdev.entity; vdev 815 drivers/media/platform/exynos4-is/fimc-lite.c struct media_entity *entity = &fimc->ve.vdev.entity; vdev 852 drivers/media/platform/exynos4-is/fimc-lite.c media_pipeline_stop(&fimc->ve.vdev.entity); vdev 1256 drivers/media/platform/exynos4-is/fimc-lite.c struct video_device *vfd = &fimc->ve.vdev; vdev 1321 drivers/media/platform/exynos4-is/fimc-lite.c if (video_is_registered(&fimc->ve.vdev)) { vdev 1322 drivers/media/platform/exynos4-is/fimc-lite.c video_unregister_device(&fimc->ve.vdev); vdev 1323 drivers/media/platform/exynos4-is/fimc-lite.c media_entity_cleanup(&fimc->ve.vdev.entity); vdev 1582 drivers/media/platform/exynos4-is/fimc-lite.c &fimc->ve.vdev.entity, false); vdev 618 drivers/media/platform/exynos4-is/fimc-reg.c v4l2_err(&vc->ve.vdev, vdev 698 drivers/media/platform/exynos4-is/fimc-reg.c v4l2_err(&vid_cap->ve.vdev, vdev 721 drivers/media/platform/exynos4-is/fimc-reg.c v4l2_err(&vid_cap->ve.vdev, vdev 869 drivers/media/platform/exynos4-is/media-dev.c sink = &fimc->ve.vdev.entity; vdev 908 drivers/media/platform/exynos4-is/media-dev.c sink = &isp->video_capture.ve.vdev.entity; vdev 1015 drivers/media/platform/exynos4-is/media-dev.c sink = &fmd->fimc[i]->vid_cap.ve.vdev.entity; vdev 1109 drivers/media/platform/exynos4-is/media-dev.c struct video_device *vdev; vdev 1112 drivers/media/platform/exynos4-is/media-dev.c vdev = media_entity_to_video_device(entity); vdev 1113 drivers/media/platform/exynos4-is/media-dev.c if (vdev->entity.use_count == 0) vdev 1116 drivers/media/platform/exynos4-is/media-dev.c ve = vdev_to_exynos_video_entity(vdev); vdev 175 drivers/media/platform/exynos4-is/media-dev.h mutex_lock(&ve->vdev.entity.graph_obj.mdev->graph_mutex); vdev 180 drivers/media/platform/exynos4-is/media-dev.h mutex_unlock(&ve->vdev.entity.graph_obj.mdev->graph_mutex); vdev 124 drivers/media/platform/fsl-viu.c struct video_device *vdev; vdev 933 drivers/media/platform/fsl-viu.c inp->std = fh->dev->vdev->tvnorms; vdev 1158 drivers/media/platform/fsl-viu.c struct video_device *vdev = video_devdata(file); vdev 1159 drivers/media/platform/fsl-viu.c struct viu_dev *dev = video_get_drvdata(vdev); vdev 1162 drivers/media/platform/fsl-viu.c int minor = vdev->minor; vdev 1191 drivers/media/platform/fsl-viu.c v4l2_fh_init(&fh->fh, vdev); vdev 1385 drivers/media/platform/fsl-viu.c struct video_device *vdev; vdev 1468 drivers/media/platform/fsl-viu.c vdev = video_device_alloc(); vdev 1469 drivers/media/platform/fsl-viu.c if (vdev == NULL) { vdev 1474 drivers/media/platform/fsl-viu.c *vdev = viu_template; vdev 1476 drivers/media/platform/fsl-viu.c vdev->v4l2_dev = &viu_dev->v4l2_dev; vdev 1478 drivers/media/platform/fsl-viu.c viu_dev->vdev = vdev; vdev 1482 drivers/media/platform/fsl-viu.c viu_dev->vdev->lock = &viu_dev->lock; vdev 1485 drivers/media/platform/fsl-viu.c video_set_drvdata(viu_dev->vdev, viu_dev); vdev 1489 drivers/media/platform/fsl-viu.c ret = video_register_device(viu_dev->vdev, VFL_TYPE_GRABBER, -1); vdev 1491 drivers/media/platform/fsl-viu.c video_device_release(viu_dev->vdev); vdev 1527 drivers/media/platform/fsl-viu.c video_unregister_device(viu_dev->vdev); vdev 1555 drivers/media/platform/fsl-viu.c video_unregister_device(dev->vdev); vdev 1800 drivers/media/platform/marvell-ccic/mcam-core.c cam->vdev = mcam_v4l_template; vdev 1801 drivers/media/platform/marvell-ccic/mcam-core.c cam->vdev.v4l2_dev = &cam->v4l2_dev; vdev 1802 drivers/media/platform/marvell-ccic/mcam-core.c cam->vdev.lock = &cam->s_mutex; vdev 1803 drivers/media/platform/marvell-ccic/mcam-core.c cam->vdev.queue = &cam->vb_queue; vdev 1804 drivers/media/platform/marvell-ccic/mcam-core.c video_set_drvdata(&cam->vdev, cam); vdev 1805 drivers/media/platform/marvell-ccic/mcam-core.c ret = video_register_device(&cam->vdev, VFL_TYPE_GRABBER, -1); vdev 1828 drivers/media/platform/marvell-ccic/mcam-core.c video_unregister_device(&cam->vdev); vdev 1955 drivers/media/platform/marvell-ccic/mcam-core.c if (!list_empty(&cam->vdev.fh_list)) { vdev 1975 drivers/media/platform/marvell-ccic/mcam-core.c if (!list_empty(&cam->vdev.fh_list)) { vdev 1992 drivers/media/platform/marvell-ccic/mcam-core.c if (!list_empty(&cam->vdev.fh_list)) { vdev 152 drivers/media/platform/marvell-ccic/mcam-core.h struct video_device vdev; vdev 162 drivers/media/platform/mtk-mdp/mtk_mdp_core.h struct video_device *vdev; vdev 1208 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c mdp->vdev = video_device_alloc(); vdev 1209 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c if (!mdp->vdev) { vdev 1214 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c mdp->vdev->device_caps = V4L2_CAP_VIDEO_M2M_MPLANE | V4L2_CAP_STREAMING; vdev 1215 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c mdp->vdev->fops = &mtk_mdp_m2m_fops; vdev 1216 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c mdp->vdev->ioctl_ops = &mtk_mdp_m2m_ioctl_ops; vdev 1217 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c mdp->vdev->release = video_device_release; vdev 1218 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c mdp->vdev->lock = &mdp->lock; vdev 1219 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c mdp->vdev->vfl_dir = VFL_DIR_M2M; vdev 1220 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c mdp->vdev->v4l2_dev = &mdp->v4l2_dev; vdev 1221 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c snprintf(mdp->vdev->name, sizeof(mdp->vdev->name), "%s:m2m", vdev 1223 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c video_set_drvdata(mdp->vdev, mdp); vdev 1232 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c ret = video_register_device(mdp->vdev, VFL_TYPE_GRABBER, 2); vdev 1239 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c mdp->vdev->num); vdev 1245 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c video_device_release(mdp->vdev); vdev 1253 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c video_unregister_device(mdp->vdev); vdev 1459 drivers/media/platform/omap3isp/ispccdc.c struct video_device *vdev = ccdc->subdev.devnode; vdev 1469 drivers/media/platform/omap3isp/ispccdc.c v4l2_event_queue(vdev, &event); vdev 2600 drivers/media/platform/omap3isp/ispccdc.c struct v4l2_device *vdev) vdev 2605 drivers/media/platform/omap3isp/ispccdc.c ccdc->subdev.dev = vdev->mdev->dev; vdev 2606 drivers/media/platform/omap3isp/ispccdc.c ret = v4l2_device_register_subdev(vdev, &ccdc->subdev); vdev 2610 drivers/media/platform/omap3isp/ispccdc.c ret = omap3isp_video_register(&ccdc->video_out, vdev); vdev 165 drivers/media/platform/omap3isp/ispccdc.h struct v4l2_device *vdev); vdev 1029 drivers/media/platform/omap3isp/ispccp2.c struct v4l2_device *vdev) vdev 1034 drivers/media/platform/omap3isp/ispccp2.c ccp2->subdev.dev = vdev->mdev->dev; vdev 1035 drivers/media/platform/omap3isp/ispccp2.c ret = v4l2_device_register_subdev(vdev, &ccp2->subdev); vdev 1039 drivers/media/platform/omap3isp/ispccp2.c ret = omap3isp_video_register(&ccp2->video_in, vdev); vdev 81 drivers/media/platform/omap3isp/ispccp2.h struct v4l2_device *vdev); vdev 1196 drivers/media/platform/omap3isp/ispcsi2.c struct v4l2_device *vdev) vdev 1201 drivers/media/platform/omap3isp/ispcsi2.c csi2->subdev.dev = vdev->mdev->dev; vdev 1202 drivers/media/platform/omap3isp/ispcsi2.c ret = v4l2_device_register_subdev(vdev, &csi2->subdev); vdev 1206 drivers/media/platform/omap3isp/ispcsi2.c ret = omap3isp_video_register(&csi2->video_out, vdev); vdev 151 drivers/media/platform/omap3isp/ispcsi2.h struct v4l2_device *vdev); vdev 2223 drivers/media/platform/omap3isp/isppreview.c struct v4l2_device *vdev) vdev 2228 drivers/media/platform/omap3isp/isppreview.c prev->subdev.dev = vdev->mdev->dev; vdev 2229 drivers/media/platform/omap3isp/isppreview.c ret = v4l2_device_register_subdev(vdev, &prev->subdev); vdev 2233 drivers/media/platform/omap3isp/isppreview.c ret = omap3isp_video_register(&prev->video_in, vdev); vdev 2237 drivers/media/platform/omap3isp/isppreview.c ret = omap3isp_video_register(&prev->video_out, vdev); vdev 151 drivers/media/platform/omap3isp/isppreview.h struct v4l2_device *vdev); vdev 1679 drivers/media/platform/omap3isp/ispresizer.c struct v4l2_device *vdev) vdev 1684 drivers/media/platform/omap3isp/ispresizer.c res->subdev.dev = vdev->mdev->dev; vdev 1685 drivers/media/platform/omap3isp/ispresizer.c ret = v4l2_device_register_subdev(vdev, &res->subdev); vdev 1689 drivers/media/platform/omap3isp/ispresizer.c ret = omap3isp_video_register(&res->video_in, vdev); vdev 1693 drivers/media/platform/omap3isp/ispresizer.c ret = omap3isp_video_register(&res->video_out, vdev); vdev 122 drivers/media/platform/omap3isp/ispresizer.h struct v4l2_device *vdev); vdev 459 drivers/media/platform/omap3isp/ispstat.c struct video_device *vdev = stat->subdev.devnode; vdev 471 drivers/media/platform/omap3isp/ispstat.c v4l2_event_queue(vdev, &event); vdev 1027 drivers/media/platform/omap3isp/ispstat.c struct v4l2_device *vdev) vdev 1029 drivers/media/platform/omap3isp/ispstat.c stat->subdev.dev = vdev->mdev->dev; vdev 1031 drivers/media/platform/omap3isp/ispstat.c return v4l2_device_register_subdev(vdev, &stat->subdev); vdev 153 drivers/media/platform/omap3isp/ispstat.h struct v4l2_device *vdev); vdev 1481 drivers/media/platform/omap3isp/ispvideo.c int omap3isp_video_register(struct isp_video *video, struct v4l2_device *vdev) vdev 1485 drivers/media/platform/omap3isp/ispvideo.c video->video.v4l2_dev = vdev; vdev 180 drivers/media/platform/omap3isp/ispvideo.h #define to_isp_video(vdev) container_of(vdev, struct isp_video, video) vdev 197 drivers/media/platform/omap3isp/ispvideo.h struct v4l2_device *vdev); vdev 687 drivers/media/platform/pxa_camera.c struct video_device vdev; vdev 2139 drivers/media/platform/pxa_camera.c struct video_device *vdev = &pcdev->vdev; vdev 2149 drivers/media/platform/pxa_camera.c *vdev = pxa_camera_videodev_template; vdev 2150 drivers/media/platform/pxa_camera.c vdev->v4l2_dev = v4l2_dev; vdev 2151 drivers/media/platform/pxa_camera.c vdev->lock = &pcdev->mlock; vdev 2153 drivers/media/platform/pxa_camera.c pcdev->vdev.queue = &pcdev->vb2_vq; vdev 2154 drivers/media/platform/pxa_camera.c pcdev->vdev.v4l2_dev = &pcdev->v4l2_dev; vdev 2155 drivers/media/platform/pxa_camera.c pcdev->vdev.ctrl_handler = subdev->ctrl_handler; vdev 2156 drivers/media/platform/pxa_camera.c video_set_drvdata(&pcdev->vdev, pcdev); vdev 2194 drivers/media/platform/pxa_camera.c err = video_register_device(&pcdev->vdev, VFL_TYPE_GRABBER, -1); vdev 2235 drivers/media/platform/pxa_camera.c video_unregister_device(&pcdev->vdev); vdev 2302 drivers/media/platform/qcom/camss/camss-vfe.c &video_out->vdev.entity, 0, vdev 2306 drivers/media/platform/qcom/camss/camss-vfe.c sd->entity.name, video_out->vdev.entity.name, vdev 433 drivers/media/platform/qcom/camss/camss-video.c struct video_device *vdev = &video->vdev; vdev 439 drivers/media/platform/qcom/camss/camss-video.c ret = media_pipeline_start(&vdev->entity, &video->pipe); vdev 447 drivers/media/platform/qcom/camss/camss-video.c entity = &vdev->entity; vdev 468 drivers/media/platform/qcom/camss/camss-video.c media_pipeline_stop(&vdev->entity); vdev 478 drivers/media/platform/qcom/camss/camss-video.c struct video_device *vdev = &video->vdev; vdev 483 drivers/media/platform/qcom/camss/camss-video.c entity = &vdev->entity; vdev 499 drivers/media/platform/qcom/camss/camss-video.c media_pipeline_stop(&vdev->entity); vdev 730 drivers/media/platform/qcom/camss/camss-video.c struct video_device *vdev = video_devdata(file); vdev 743 drivers/media/platform/qcom/camss/camss-video.c v4l2_fh_init(vfh, vdev); vdev 748 drivers/media/platform/qcom/camss/camss-video.c ret = v4l2_pipeline_pm_use(&vdev->entity, 1); vdev 770 drivers/media/platform/qcom/camss/camss-video.c struct video_device *vdev = video_devdata(file); vdev 774 drivers/media/platform/qcom/camss/camss-video.c v4l2_pipeline_pm_use(&vdev->entity, 0); vdev 795 drivers/media/platform/qcom/camss/camss-video.c static void msm_video_release(struct video_device *vdev) vdev 797 drivers/media/platform/qcom/camss/camss-video.c struct camss_video *video = video_get_drvdata(vdev); vdev 799 drivers/media/platform/qcom/camss/camss-video.c media_entity_cleanup(&vdev->entity); vdev 853 drivers/media/platform/qcom/camss/camss-video.c struct video_device *vdev; vdev 857 drivers/media/platform/qcom/camss/camss-video.c vdev = &video->vdev; vdev 878 drivers/media/platform/qcom/camss/camss-video.c ret = media_entity_pads_init(&vdev->entity, 1, pad); vdev 913 drivers/media/platform/qcom/camss/camss-video.c vdev->fops = &msm_vid_fops; vdev 914 drivers/media/platform/qcom/camss/camss-video.c vdev->device_caps = V4L2_CAP_VIDEO_CAPTURE_MPLANE | V4L2_CAP_STREAMING | vdev 916 drivers/media/platform/qcom/camss/camss-video.c vdev->ioctl_ops = &msm_vid_ioctl_ops; vdev 917 drivers/media/platform/qcom/camss/camss-video.c vdev->release = msm_video_release; vdev 918 drivers/media/platform/qcom/camss/camss-video.c vdev->v4l2_dev = v4l2_dev; vdev 919 drivers/media/platform/qcom/camss/camss-video.c vdev->vfl_dir = VFL_DIR_RX; vdev 920 drivers/media/platform/qcom/camss/camss-video.c vdev->queue = &video->vb2_q; vdev 921 drivers/media/platform/qcom/camss/camss-video.c vdev->lock = &video->lock; vdev 922 drivers/media/platform/qcom/camss/camss-video.c strscpy(vdev->name, name, sizeof(vdev->name)); vdev 924 drivers/media/platform/qcom/camss/camss-video.c ret = video_register_device(vdev, VFL_TYPE_GRABBER, -1); vdev 931 drivers/media/platform/qcom/camss/camss-video.c video_set_drvdata(vdev, video); vdev 937 drivers/media/platform/qcom/camss/camss-video.c media_entity_cleanup(&vdev->entity); vdev 956 drivers/media/platform/qcom/camss/camss-video.c video_unregister_device(&video->vdev); vdev 41 drivers/media/platform/qcom/camss/camss-video.h struct video_device vdev; vdev 1420 drivers/media/platform/qcom/venus/vdec.c struct video_device *vdev; vdev 1445 drivers/media/platform/qcom/venus/vdec.c vdev = video_device_alloc(); vdev 1446 drivers/media/platform/qcom/venus/vdec.c if (!vdev) vdev 1449 drivers/media/platform/qcom/venus/vdec.c strscpy(vdev->name, "qcom-venus-decoder", sizeof(vdev->name)); vdev 1450 drivers/media/platform/qcom/venus/vdec.c vdev->release = video_device_release; vdev 1451 drivers/media/platform/qcom/venus/vdec.c vdev->fops = &vdec_fops; vdev 1452 drivers/media/platform/qcom/venus/vdec.c vdev->ioctl_ops = &vdec_ioctl_ops; vdev 1453 drivers/media/platform/qcom/venus/vdec.c vdev->vfl_dir = VFL_DIR_M2M; vdev 1454 drivers/media/platform/qcom/venus/vdec.c vdev->v4l2_dev = &core->v4l2_dev; vdev 1455 drivers/media/platform/qcom/venus/vdec.c vdev->device_caps = V4L2_CAP_VIDEO_M2M_MPLANE | V4L2_CAP_STREAMING; vdev 1457 drivers/media/platform/qcom/venus/vdec.c ret = video_register_device(vdev, VFL_TYPE_GRABBER, -1); vdev 1461 drivers/media/platform/qcom/venus/vdec.c core->vdev_dec = vdev; vdev 1464 drivers/media/platform/qcom/venus/vdec.c video_set_drvdata(vdev, core); vdev 1470 drivers/media/platform/qcom/venus/vdec.c video_device_release(vdev); vdev 1243 drivers/media/platform/qcom/venus/venc.c struct video_device *vdev; vdev 1268 drivers/media/platform/qcom/venus/venc.c vdev = video_device_alloc(); vdev 1269 drivers/media/platform/qcom/venus/venc.c if (!vdev) vdev 1272 drivers/media/platform/qcom/venus/venc.c strscpy(vdev->name, "qcom-venus-encoder", sizeof(vdev->name)); vdev 1273 drivers/media/platform/qcom/venus/venc.c vdev->release = video_device_release; vdev 1274 drivers/media/platform/qcom/venus/venc.c vdev->fops = &venc_fops; vdev 1275 drivers/media/platform/qcom/venus/venc.c vdev->ioctl_ops = &venc_ioctl_ops; vdev 1276 drivers/media/platform/qcom/venus/venc.c vdev->vfl_dir = VFL_DIR_M2M; vdev 1277 drivers/media/platform/qcom/venus/venc.c vdev->v4l2_dev = &core->v4l2_dev; vdev 1278 drivers/media/platform/qcom/venus/venc.c vdev->device_caps = V4L2_CAP_VIDEO_M2M_MPLANE | V4L2_CAP_STREAMING; vdev 1280 drivers/media/platform/qcom/venus/venc.c ret = video_register_device(vdev, VFL_TYPE_GRABBER, -1); vdev 1284 drivers/media/platform/qcom/venus/venc.c core->vdev_enc = vdev; vdev 1287 drivers/media/platform/qcom/venus/venc.c video_set_drvdata(vdev, core); vdev 1293 drivers/media/platform/qcom/venus/venc.c video_device_release(vdev); vdev 120 drivers/media/platform/rcar-vin/rcar-core.c struct video_device *vdev; vdev 146 drivers/media/platform/rcar-vin/rcar-core.c vdev = media_entity_to_video_device(link->sink->entity); vdev 147 drivers/media/platform/rcar-vin/rcar-core.c vin = container_of(vdev, struct rvin_dev, vdev); vdev 162 drivers/media/platform/rcar-vin/rcar-core.c &group->vin[i]->vdev.entity.pads[0]); vdev 488 drivers/media/platform/rcar-vin/rcar-core.c ret = v4l2_subdev_call(subdev, video, g_tvnorms, &vin->vdev.tvnorms); vdev 519 drivers/media/platform/rcar-vin/rcar-core.c vin->vdev.ctrl_handler = &vin->ctrl_handler; vdev 533 drivers/media/platform/rcar-vin/rcar-core.c vin->vdev.ctrl_handler = NULL; vdev 550 drivers/media/platform/rcar-vin/rcar-core.c if (!video_is_registered(&vin->vdev)) { vdev 561 drivers/media/platform/rcar-vin/rcar-core.c sink = &vin->vdev.entity; vdev 694 drivers/media/platform/rcar-vin/rcar-core.c !video_is_registered(&vin->group->vin[i]->vdev)) { vdev 724 drivers/media/platform/rcar-vin/rcar-core.c sink = &vin->group->vin[route->vin]->vdev.entity; vdev 892 drivers/media/platform/rcar-vin/rcar-core.c ret = media_entity_pads_init(&vin->vdev.entity, 1, &vin->pad); vdev 917 drivers/media/platform/rcar-vin/rcar-core.c vin->vdev.ctrl_handler = &vin->ctrl_handler; vdev 1126 drivers/media/platform/rcar-vin/rcar-dma.c media_pipeline_stop(&vin->vdev.entity); vdev 1140 drivers/media/platform/rcar-vin/rcar-dma.c mdev = vin->vdev.entity.graph_obj.mdev; vdev 1142 drivers/media/platform/rcar-vin/rcar-dma.c pipe = sd->entity.pipe ? sd->entity.pipe : &vin->vdev.pipe; vdev 1143 drivers/media/platform/rcar-vin/rcar-dma.c ret = __media_pipeline_start(&vin->vdev.entity, pipe); vdev 1152 drivers/media/platform/rcar-vin/rcar-dma.c media_pipeline_stop(&vin->vdev.entity); vdev 453 drivers/media/platform/rcar-vin/rcar-v4l2.c i->std = vin->vdev.tvnorms; vdev 798 drivers/media/platform/rcar-vin/rcar-v4l2.c ret = v4l2_pipeline_pm_use(&vin->vdev.entity, 1); vdev 814 drivers/media/platform/rcar-vin/rcar-v4l2.c v4l2_pipeline_pm_use(&vin->vdev.entity, 0); vdev 842 drivers/media/platform/rcar-vin/rcar-v4l2.c v4l2_pipeline_pm_use(&vin->vdev.entity, 0); vdev 867 drivers/media/platform/rcar-vin/rcar-v4l2.c if (!video_is_registered(&vin->vdev)) vdev 871 drivers/media/platform/rcar-vin/rcar-v4l2.c video_device_node_name(&vin->vdev)); vdev 874 drivers/media/platform/rcar-vin/rcar-v4l2.c video_unregister_device(&vin->vdev); vdev 885 drivers/media/platform/rcar-vin/rcar-v4l2.c v4l2_event_queue(&vin->vdev, arg); vdev 894 drivers/media/platform/rcar-vin/rcar-v4l2.c struct video_device *vdev = &vin->vdev; vdev 900 drivers/media/platform/rcar-vin/rcar-v4l2.c vdev->v4l2_dev = &vin->v4l2_dev; vdev 901 drivers/media/platform/rcar-vin/rcar-v4l2.c vdev->queue = &vin->queue; vdev 902 drivers/media/platform/rcar-vin/rcar-v4l2.c snprintf(vdev->name, sizeof(vdev->name), "VIN%u output", vin->id); vdev 903 drivers/media/platform/rcar-vin/rcar-v4l2.c vdev->release = video_device_release_empty; vdev 904 drivers/media/platform/rcar-vin/rcar-v4l2.c vdev->lock = &vin->lock; vdev 905 drivers/media/platform/rcar-vin/rcar-v4l2.c vdev->fops = &rvin_fops; vdev 906 drivers/media/platform/rcar-vin/rcar-v4l2.c vdev->device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING | vdev 917 drivers/media/platform/rcar-vin/rcar-v4l2.c vdev->ioctl_ops = &rvin_mc_ioctl_ops; vdev 919 drivers/media/platform/rcar-vin/rcar-v4l2.c vdev->ioctl_ops = &rvin_ioctl_ops; vdev 925 drivers/media/platform/rcar-vin/rcar-v4l2.c ret = video_register_device(&vin->vdev, VFL_TYPE_GRABBER, -1); vdev 931 drivers/media/platform/rcar-vin/rcar-v4l2.c video_set_drvdata(&vin->vdev, vin); vdev 934 drivers/media/platform/rcar-vin/rcar-v4l2.c video_device_node_name(&vin->vdev)); vdev 189 drivers/media/platform/rcar-vin/rcar-vin.h struct video_device vdev; vdev 214 drivers/media/platform/rcar_drif.c struct video_device *vdev; /* V4L2 SDR device */ vdev 677 drivers/media/platform/rcar_drif.c dev_warn(&sdr->vdev->dev, vdev 874 drivers/media/platform/rcar_drif.c strscpy(cap->card, sdr->vdev->name, sizeof(cap->card)); vdev 876 drivers/media/platform/rcar_drif.c sdr->vdev->name); vdev 1066 drivers/media/platform/rcar_drif.c sdr->vdev = video_device_alloc(); vdev 1067 drivers/media/platform/rcar_drif.c if (!sdr->vdev) vdev 1070 drivers/media/platform/rcar_drif.c snprintf(sdr->vdev->name, sizeof(sdr->vdev->name), "R-Car DRIF"); vdev 1071 drivers/media/platform/rcar_drif.c sdr->vdev->fops = &rcar_drif_fops; vdev 1072 drivers/media/platform/rcar_drif.c sdr->vdev->ioctl_ops = &rcar_drif_ioctl_ops; vdev 1073 drivers/media/platform/rcar_drif.c sdr->vdev->release = video_device_release; vdev 1074 drivers/media/platform/rcar_drif.c sdr->vdev->lock = &sdr->v4l2_mutex; vdev 1075 drivers/media/platform/rcar_drif.c sdr->vdev->queue = &sdr->vb_queue; vdev 1076 drivers/media/platform/rcar_drif.c sdr->vdev->queue->lock = &sdr->vb_queue_mutex; vdev 1077 drivers/media/platform/rcar_drif.c sdr->vdev->ctrl_handler = &sdr->ctrl_hdl; vdev 1078 drivers/media/platform/rcar_drif.c sdr->vdev->v4l2_dev = &sdr->v4l2_dev; vdev 1079 drivers/media/platform/rcar_drif.c sdr->vdev->device_caps = V4L2_CAP_SDR_CAPTURE | V4L2_CAP_TUNER | vdev 1081 drivers/media/platform/rcar_drif.c video_set_drvdata(sdr->vdev, sdr); vdev 1084 drivers/media/platform/rcar_drif.c ret = video_register_device(sdr->vdev, VFL_TYPE_SDR, -1); vdev 1086 drivers/media/platform/rcar_drif.c video_device_release(sdr->vdev); vdev 1087 drivers/media/platform/rcar_drif.c sdr->vdev = NULL; vdev 1096 drivers/media/platform/rcar_drif.c video_unregister_device(sdr->vdev); vdev 1097 drivers/media/platform/rcar_drif.c sdr->vdev = NULL; vdev 173 drivers/media/platform/renesas-ceu.c struct video_device vdev; vdev 1375 drivers/media/platform/renesas-ceu.c static void ceu_vdev_release(struct video_device *vdev) vdev 1377 drivers/media/platform/renesas-ceu.c struct ceu_device *ceudev = video_get_drvdata(vdev); vdev 1400 drivers/media/platform/renesas-ceu.c struct video_device *vdev = &ceudev->vdev; vdev 1441 drivers/media/platform/renesas-ceu.c strscpy(vdev->name, DRIVER_NAME, sizeof(vdev->name)); vdev 1442 drivers/media/platform/renesas-ceu.c vdev->v4l2_dev = v4l2_dev; vdev 1443 drivers/media/platform/renesas-ceu.c vdev->lock = &ceudev->mlock; vdev 1444 drivers/media/platform/renesas-ceu.c vdev->queue = &ceudev->vb2_vq; vdev 1445 drivers/media/platform/renesas-ceu.c vdev->ctrl_handler = v4l2_sd->ctrl_handler; vdev 1446 drivers/media/platform/renesas-ceu.c vdev->fops = &ceu_fops; vdev 1447 drivers/media/platform/renesas-ceu.c vdev->ioctl_ops = &ceu_ioctl_ops; vdev 1448 drivers/media/platform/renesas-ceu.c vdev->release = ceu_vdev_release; vdev 1449 drivers/media/platform/renesas-ceu.c vdev->device_caps = V4L2_CAP_VIDEO_CAPTURE_MPLANE | vdev 1451 drivers/media/platform/renesas-ceu.c video_set_drvdata(vdev, ceudev); vdev 1453 drivers/media/platform/renesas-ceu.c ret = video_register_device(vdev, VFL_TYPE_GRABBER, -1); vdev 1455 drivers/media/platform/renesas-ceu.c v4l2_err(vdev->v4l2_dev, vdev 1734 drivers/media/platform/renesas-ceu.c video_unregister_device(&ceudev->vdev); vdev 419 drivers/media/platform/s3c-camif/camif-capture.c v4l2_err(&vp->vdev, "Sensor s_stream failed\n"); vdev 469 drivers/media/platform/s3c-camif/camif-capture.c v4l2_err(&vp->vdev, "buffer too small: %lu, required: %u\n", vdev 514 drivers/media/platform/s3c-camif/camif-capture.c v4l2_err(&vp->vdev, "Sensor s_stream failed\n"); vdev 936 drivers/media/platform/s3c-camif/camif-capture.c return vb2_qbuf(&vp->vb_queue, vp->vdev.v4l2_dev->mdev, buf); vdev 974 drivers/media/platform/s3c-camif/camif-capture.c return vb2_prepare_buf(&vp->vb_queue, vp->vdev.v4l2_dev->mdev, b); vdev 1103 drivers/media/platform/s3c-camif/camif-capture.c struct video_device *vfd = &vp->vdev; vdev 1180 drivers/media/platform/s3c-camif/camif-capture.c struct video_device *vfd = &camif->vp[idx].vdev; vdev 266 drivers/media/platform/s3c-camif/camif-core.c &camif->vp[i - 1].vdev.entity, 0, vdev 211 drivers/media/platform/s3c-camif/camif-core.h struct video_device vdev; vdev 753 drivers/media/platform/s5p-mfc/s5p_mfc.c struct video_device *vdev = video_devdata(file); vdev 770 drivers/media/platform/s5p-mfc/s5p_mfc.c v4l2_fh_init(&ctx->fh, vdev); vdev 791 drivers/media/platform/s5p-mfc/s5p_mfc.c if (vdev == dev->vfd_dec) { vdev 801 drivers/media/platform/s5p-mfc/s5p_mfc.c } else if (vdev == dev->vfd_enc) { vdev 847 drivers/media/platform/s5p-mfc/s5p_mfc.c if (vdev == dev->vfd_dec) { vdev 850 drivers/media/platform/s5p-mfc/s5p_mfc.c } else if (vdev == dev->vfd_enc) { vdev 874 drivers/media/platform/s5p-mfc/s5p_mfc.c if (vdev == dev->vfd_dec) { vdev 877 drivers/media/platform/s5p-mfc/s5p_mfc.c } else if (vdev == dev->vfd_enc) { vdev 107 drivers/media/platform/sh_veu.c struct video_device vdev; vdev 1107 drivers/media/platform/sh_veu.c struct video_device *vdev; vdev 1139 drivers/media/platform/sh_veu.c vdev = &veu->vdev; vdev 1141 drivers/media/platform/sh_veu.c *vdev = sh_veu_videodev; vdev 1142 drivers/media/platform/sh_veu.c vdev->v4l2_dev = &veu->v4l2_dev; vdev 1145 drivers/media/platform/sh_veu.c vdev->lock = &veu->fop_lock; vdev 1147 drivers/media/platform/sh_veu.c video_set_drvdata(vdev, veu); vdev 1163 drivers/media/platform/sh_veu.c ret = video_register_device(vdev, VFL_TYPE_GRABBER, -1); vdev 1184 drivers/media/platform/sh_veu.c video_unregister_device(&veu->vdev); vdev 75 drivers/media/platform/sh_vou.c struct video_device vdev; vdev 784 drivers/media/platform/sh_vou.c a->std = vou_dev->vdev.tvnorms; vdev 1220 drivers/media/platform/sh_vou.c struct video_device *vdev; vdev 1277 drivers/media/platform/sh_vou.c vdev = &vou_dev->vdev; vdev 1278 drivers/media/platform/sh_vou.c *vdev = sh_vou_video_template; vdev 1280 drivers/media/platform/sh_vou.c vdev->tvnorms |= V4L2_STD_PAL; vdev 1281 drivers/media/platform/sh_vou.c vdev->v4l2_dev = &vou_dev->v4l2_dev; vdev 1282 drivers/media/platform/sh_vou.c vdev->release = video_device_release_empty; vdev 1283 drivers/media/platform/sh_vou.c vdev->lock = &vou_dev->fop_lock; vdev 1285 drivers/media/platform/sh_vou.c video_set_drvdata(vdev, vou_dev); vdev 1303 drivers/media/platform/sh_vou.c vdev->queue = q; vdev 1326 drivers/media/platform/sh_vou.c ret = video_register_device(vdev, VFL_TYPE_GRABBER, -1); vdev 1352 drivers/media/platform/sh_vou.c video_unregister_device(&vou_dev->vdev); vdev 598 drivers/media/platform/sti/bdisp/bdisp-v4l2.c v4l2_fh_init(&ctx->fh, bdisp->m2m.vdev); vdev 1050 drivers/media/platform/sti/bdisp/bdisp-v4l2.c bdisp->vdev.fops = &bdisp_fops; vdev 1051 drivers/media/platform/sti/bdisp/bdisp-v4l2.c bdisp->vdev.ioctl_ops = &bdisp_ioctl_ops; vdev 1052 drivers/media/platform/sti/bdisp/bdisp-v4l2.c bdisp->vdev.release = video_device_release_empty; vdev 1053 drivers/media/platform/sti/bdisp/bdisp-v4l2.c bdisp->vdev.lock = &bdisp->lock; vdev 1054 drivers/media/platform/sti/bdisp/bdisp-v4l2.c bdisp->vdev.vfl_dir = VFL_DIR_M2M; vdev 1055 drivers/media/platform/sti/bdisp/bdisp-v4l2.c bdisp->vdev.v4l2_dev = &bdisp->v4l2_dev; vdev 1056 drivers/media/platform/sti/bdisp/bdisp-v4l2.c bdisp->vdev.device_caps = V4L2_CAP_STREAMING | V4L2_CAP_VIDEO_M2M; vdev 1057 drivers/media/platform/sti/bdisp/bdisp-v4l2.c snprintf(bdisp->vdev.name, sizeof(bdisp->vdev.name), "%s.%d", vdev 1060 drivers/media/platform/sti/bdisp/bdisp-v4l2.c video_set_drvdata(&bdisp->vdev, bdisp); vdev 1062 drivers/media/platform/sti/bdisp/bdisp-v4l2.c bdisp->m2m.vdev = &bdisp->vdev; vdev 1069 drivers/media/platform/sti/bdisp/bdisp-v4l2.c ret = video_register_device(&bdisp->vdev, VFL_TYPE_GRABBER, -1); vdev 1088 drivers/media/platform/sti/bdisp/bdisp-v4l2.c video_unregister_device(bdisp->m2m.vdev); vdev 1388 drivers/media/platform/sti/bdisp/bdisp-v4l2.c bdisp->id, bdisp->vdev.num); vdev 137 drivers/media/platform/sti/bdisp/bdisp.h struct video_device *vdev; vdev 187 drivers/media/platform/sti/bdisp/bdisp.h struct video_device vdev; vdev 389 drivers/media/platform/sti/delta/delta-v4l2.c strscpy(cap->card, delta->vdev->name, sizeof(cap->card)); vdev 1753 drivers/media/platform/sti/delta/delta-v4l2.c struct video_device *vdev; vdev 1766 drivers/media/platform/sti/delta/delta-v4l2.c vdev = video_device_alloc(); vdev 1767 drivers/media/platform/sti/delta/delta-v4l2.c if (!vdev) { vdev 1774 drivers/media/platform/sti/delta/delta-v4l2.c vdev->fops = &delta_fops; vdev 1775 drivers/media/platform/sti/delta/delta-v4l2.c vdev->ioctl_ops = &delta_ioctl_ops; vdev 1776 drivers/media/platform/sti/delta/delta-v4l2.c vdev->release = video_device_release; vdev 1777 drivers/media/platform/sti/delta/delta-v4l2.c vdev->lock = &delta->lock; vdev 1778 drivers/media/platform/sti/delta/delta-v4l2.c vdev->vfl_dir = VFL_DIR_M2M; vdev 1779 drivers/media/platform/sti/delta/delta-v4l2.c vdev->device_caps = V4L2_CAP_STREAMING | V4L2_CAP_VIDEO_M2M; vdev 1780 drivers/media/platform/sti/delta/delta-v4l2.c vdev->v4l2_dev = &delta->v4l2_dev; vdev 1781 drivers/media/platform/sti/delta/delta-v4l2.c snprintf(vdev->name, sizeof(vdev->name), "%s-%s", vdev 1784 drivers/media/platform/sti/delta/delta-v4l2.c ret = video_register_device(vdev, VFL_TYPE_GRABBER, -1); vdev 1791 drivers/media/platform/sti/delta/delta-v4l2.c delta->vdev = vdev; vdev 1792 drivers/media/platform/sti/delta/delta-v4l2.c video_set_drvdata(vdev, delta); vdev 1796 drivers/media/platform/sti/delta/delta-v4l2.c video_device_release(vdev); vdev 1811 drivers/media/platform/sti/delta/delta-v4l2.c video_unregister_device(delta->vdev); vdev 1894 drivers/media/platform/sti/delta/delta-v4l2.c DELTA_PREFIX, delta->vdev->name, delta->vdev->num); vdev 493 drivers/media/platform/sti/delta/delta.h struct video_device *vdev; vdev 279 drivers/media/platform/sti/hva/hva-debugfs.c seq_printf(s, "registered as /dev/video%d\n", hva->vdev->num); vdev 261 drivers/media/platform/sti/hva/hva-v4l2.c strscpy(cap->card, hva->vdev->name, sizeof(cap->card)); vdev 1286 drivers/media/platform/sti/hva/hva-v4l2.c struct video_device *vdev; vdev 1301 drivers/media/platform/sti/hva/hva-v4l2.c vdev = video_device_alloc(); vdev 1302 drivers/media/platform/sti/hva/hva-v4l2.c if (!vdev) { vdev 1309 drivers/media/platform/sti/hva/hva-v4l2.c vdev->fops = &hva_fops; vdev 1310 drivers/media/platform/sti/hva/hva-v4l2.c vdev->ioctl_ops = &hva_ioctl_ops; vdev 1311 drivers/media/platform/sti/hva/hva-v4l2.c vdev->release = video_device_release; vdev 1312 drivers/media/platform/sti/hva/hva-v4l2.c vdev->lock = &hva->lock; vdev 1313 drivers/media/platform/sti/hva/hva-v4l2.c vdev->vfl_dir = VFL_DIR_M2M; vdev 1314 drivers/media/platform/sti/hva/hva-v4l2.c vdev->device_caps = V4L2_CAP_STREAMING | V4L2_CAP_VIDEO_M2M; vdev 1315 drivers/media/platform/sti/hva/hva-v4l2.c vdev->v4l2_dev = &hva->v4l2_dev; vdev 1316 drivers/media/platform/sti/hva/hva-v4l2.c snprintf(vdev->name, sizeof(vdev->name), "%s%lx", HVA_NAME, vdev 1319 drivers/media/platform/sti/hva/hva-v4l2.c ret = video_register_device(vdev, VFL_TYPE_GRABBER, -1); vdev 1326 drivers/media/platform/sti/hva/hva-v4l2.c hva->vdev = vdev; vdev 1327 drivers/media/platform/sti/hva/hva-v4l2.c video_set_drvdata(vdev, hva); vdev 1331 drivers/media/platform/sti/hva/hva-v4l2.c video_device_release(vdev); vdev 1346 drivers/media/platform/sti/hva/hva-v4l2.c video_unregister_device(hva->vdev); vdev 1408 drivers/media/platform/sti/hva/hva-v4l2.c HVA_NAME, hva->vdev->num); vdev 338 drivers/media/platform/sti/hva/hva.h struct video_device *vdev; vdev 140 drivers/media/platform/stm32/stm32-dcmi.c struct video_device *vdev; vdev 589 drivers/media/platform/stm32/stm32-dcmi.c struct media_entity *entity = &dcmi->vdev->entity; vdev 682 drivers/media/platform/stm32/stm32-dcmi.c struct media_entity *entity = &dcmi->vdev->entity; vdev 739 drivers/media/platform/stm32/stm32-dcmi.c ret = media_pipeline_start(&dcmi->vdev->entity, &dcmi->pipeline); vdev 836 drivers/media/platform/stm32/stm32-dcmi.c media_pipeline_stop(&dcmi->vdev->entity); vdev 864 drivers/media/platform/stm32/stm32-dcmi.c media_pipeline_stop(&dcmi->vdev->entity); vdev 1699 drivers/media/platform/stm32/stm32-dcmi.c dcmi->vdev->ctrl_handler = dcmi->entity.source->ctrl_handler; vdev 1734 drivers/media/platform/stm32/stm32-dcmi.c dev_dbg(dcmi->dev, "Removing %s\n", video_device_node_name(dcmi->vdev)); vdev 1737 drivers/media/platform/stm32/stm32-dcmi.c video_unregister_device(dcmi->vdev); vdev 1759 drivers/media/platform/stm32/stm32-dcmi.c &dcmi->vdev->entity, 0, vdev 1946 drivers/media/platform/stm32/stm32-dcmi.c dcmi->vdev = video_device_alloc(); vdev 1947 drivers/media/platform/stm32/stm32-dcmi.c if (!dcmi->vdev) { vdev 1953 drivers/media/platform/stm32/stm32-dcmi.c dcmi->vdev->fops = &dcmi_fops; vdev 1954 drivers/media/platform/stm32/stm32-dcmi.c dcmi->vdev->v4l2_dev = &dcmi->v4l2_dev; vdev 1955 drivers/media/platform/stm32/stm32-dcmi.c dcmi->vdev->queue = &dcmi->queue; vdev 1956 drivers/media/platform/stm32/stm32-dcmi.c strscpy(dcmi->vdev->name, KBUILD_MODNAME, sizeof(dcmi->vdev->name)); vdev 1957 drivers/media/platform/stm32/stm32-dcmi.c dcmi->vdev->release = video_device_release; vdev 1958 drivers/media/platform/stm32/stm32-dcmi.c dcmi->vdev->ioctl_ops = &dcmi_ioctl_ops; vdev 1959 drivers/media/platform/stm32/stm32-dcmi.c dcmi->vdev->lock = &dcmi->lock; vdev 1960 drivers/media/platform/stm32/stm32-dcmi.c dcmi->vdev->device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING | vdev 1962 drivers/media/platform/stm32/stm32-dcmi.c video_set_drvdata(dcmi->vdev, dcmi); vdev 1966 drivers/media/platform/stm32/stm32-dcmi.c ret = media_entity_pads_init(&dcmi->vdev->entity, vdev 1972 drivers/media/platform/stm32/stm32-dcmi.c dcmi->vdev->entity.flags |= MEDIA_ENT_FL_DEFAULT; vdev 1974 drivers/media/platform/stm32/stm32-dcmi.c ret = video_register_device(dcmi->vdev, VFL_TYPE_GRABBER, -1); vdev 1981 drivers/media/platform/stm32/stm32-dcmi.c video_device_node_name(dcmi->vdev)); vdev 2031 drivers/media/platform/stm32/stm32-dcmi.c media_entity_cleanup(&dcmi->vdev->entity); vdev 2033 drivers/media/platform/stm32/stm32-dcmi.c video_device_release(dcmi->vdev); vdev 2051 drivers/media/platform/stm32/stm32-dcmi.c media_entity_cleanup(&dcmi->vdev->entity); vdev 62 drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.c struct video_device *vdev = &csi->vdev; vdev 79 drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.c &vdev->entity, 0, vdev 145 drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.c struct video_device *vdev; vdev 157 drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.c vdev = &csi->vdev; vdev 237 drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.c vdev->entity.ops = &sun4i_csi_video_entity_ops; vdev 238 drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.c ret = media_entity_pads_init(&vdev->entity, 1, &csi->vdev_pad); vdev 130 drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.h struct video_device vdev; vdev 269 drivers/media/platform/sunxi/sun4i-csi/sun4i_dma.c ret = media_pipeline_start(&csi->vdev.entity, &csi->vdev.pipe); vdev 333 drivers/media/platform/sunxi/sun4i-csi/sun4i_dma.c media_pipeline_stop(&csi->vdev.entity); vdev 362 drivers/media/platform/sunxi/sun4i-csi/sun4i_dma.c media_pipeline_stop(&csi->vdev.entity); vdev 217 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c ret = v4l2_pipeline_pm_use(&csi->vdev.entity, 1); vdev 230 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c v4l2_pipeline_pm_use(&csi->vdev.entity, 0); vdev 246 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c v4l2_pipeline_pm_use(&csi->vdev.entity, 0); vdev 356 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c struct video_device *vdev = &csi->vdev; vdev 359 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c vdev->device_caps = V4L2_CAP_VIDEO_CAPTURE_MPLANE | V4L2_CAP_STREAMING; vdev 360 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c vdev->v4l2_dev = &csi->v4l; vdev 361 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c vdev->queue = &csi->queue; vdev 362 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c strscpy(vdev->name, KBUILD_MODNAME, sizeof(vdev->name)); vdev 363 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c vdev->release = video_device_release_empty; vdev 364 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c vdev->lock = &csi->lock; vdev 373 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c vdev->fops = &sun4i_csi_fops; vdev 374 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c vdev->ioctl_ops = &sun4i_csi_ioctl_ops; vdev 375 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c video_set_drvdata(vdev, csi); vdev 377 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c ret = video_register_device(&csi->vdev, VFL_TYPE_GRABBER, -1); vdev 382 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c video_device_node_name(vdev)); vdev 647 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c sink = &csi->video.vdev.entity; vdev 118 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c v4l2_err(video->vdev.v4l2_dev, "buffer too small (%lu < %lu)\n", vdev 144 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c ret = media_pipeline_start(&video->vdev.entity, &video->vdev.pipe); vdev 208 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c media_pipeline_stop(&video->vdev.entity); vdev 232 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c media_pipeline_stop(&video->vdev.entity); vdev 320 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c strscpy(cap->card, video->vdev.name, sizeof(cap->card)); vdev 477 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c ret = v4l2_pipeline_pm_use(&video->vdev.entity, 1); vdev 510 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c v4l2_pipeline_pm_use(&video->vdev.entity, 0); vdev 549 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c struct video_device *vdev = container_of(link->sink->entity, vdev 551 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c struct sun6i_video *video = video_get_drvdata(vdev); vdev 559 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c "video node %s pad not connected\n", vdev->name); vdev 598 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c struct video_device *vdev = &video->vdev; vdev 607 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c vdev->entity.ops = &sun6i_video_media_ops; vdev 608 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c ret = media_entity_pads_init(&vdev->entity, 1, &video->pad); vdev 647 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c strscpy(vdev->name, name, sizeof(vdev->name)); vdev 648 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c vdev->release = video_device_release_empty; vdev 649 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c vdev->fops = &sun6i_video_fops; vdev 650 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c vdev->ioctl_ops = &sun6i_video_ioctl_ops; vdev 651 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c vdev->vfl_type = VFL_TYPE_GRABBER; vdev 652 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c vdev->vfl_dir = VFL_DIR_RX; vdev 653 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c vdev->v4l2_dev = &csi->v4l2_dev; vdev 654 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c vdev->queue = vidq; vdev 655 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c vdev->lock = &video->lock; vdev 656 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c vdev->device_caps = V4L2_CAP_STREAMING | V4L2_CAP_VIDEO_CAPTURE; vdev 657 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c video_set_drvdata(vdev, video); vdev 659 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c ret = video_register_device(vdev, VFL_TYPE_GRABBER, -1); vdev 671 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c media_entity_cleanup(&video->vdev.entity); vdev 678 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c video_unregister_device(&video->vdev); vdev 679 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c media_entity_cleanup(&video->vdev.entity); vdev 17 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.h struct video_device vdev; vdev 264 drivers/media/platform/ti-vpe/cal.c struct video_device vdev; vdev 1553 drivers/media/platform/ti-vpe/cal.c vfd = &ctx->vdev; vdev 1912 drivers/media/platform/ti-vpe/cal.c video_device_node_name(&ctx->vdev)); vdev 1918 drivers/media/platform/ti-vpe/cal.c video_unregister_device(&ctx->vdev); vdev 63 drivers/media/platform/via-camera.c struct video_device vdev; vdev 1054 drivers/media/platform/via-camera.c if (!list_empty(&cam->vdev.fh_list)) vdev 1260 drivers/media/platform/via-camera.c cam->vdev = viacam_v4l_template; vdev 1261 drivers/media/platform/via-camera.c cam->vdev.v4l2_dev = &cam->v4l2_dev; vdev 1262 drivers/media/platform/via-camera.c cam->vdev.lock = &cam->lock; vdev 1263 drivers/media/platform/via-camera.c cam->vdev.queue = vq; vdev 1264 drivers/media/platform/via-camera.c video_set_drvdata(&cam->vdev, cam); vdev 1265 drivers/media/platform/via-camera.c ret = video_register_device(&cam->vdev, VFL_TYPE_GRABBER, -1); vdev 1299 drivers/media/platform/via-camera.c video_unregister_device(&cam->vdev); vdev 1272 drivers/media/platform/vim2m.c static void vim2m_device_release(struct video_device *vdev) vdev 1274 drivers/media/platform/vim2m.c struct vim2m_dev *dev = container_of(vdev, struct vim2m_dev, vfd); vdev 23 drivers/media/platform/vimc/vimc-capture.c struct video_device vdev; vdev 135 drivers/media/platform/vimc/vimc-capture.c "new:%dx%d (0x%x, %d, %d, %d, %d)\n", vcap->vdev.name, vdev 237 drivers/media/platform/vimc/vimc-capture.c struct media_entity *entity = &vcap->vdev.entity; vdev 270 drivers/media/platform/vimc/vimc-capture.c media_pipeline_stop(&vcap->vdev.entity); vdev 310 drivers/media/platform/vimc/vimc-capture.c vcap->vdev.name, vb2_plane_size(vb, 0), size); vdev 334 drivers/media/platform/vimc/vimc-capture.c static void vimc_cap_release(struct video_device *vdev) vdev 337 drivers/media/platform/vimc/vimc-capture.c container_of(vdev, struct vimc_cap_device, vdev); vdev 352 drivers/media/platform/vimc/vimc-capture.c video_unregister_device(&vcap->vdev); vdev 401 drivers/media/platform/vimc/vimc-capture.c struct video_device *vdev; vdev 419 drivers/media/platform/vimc/vimc-capture.c vcap->vdev.entity.name = pdata->entity_name; vdev 420 drivers/media/platform/vimc/vimc-capture.c vcap->vdev.entity.function = MEDIA_ENT_F_IO_V4L; vdev 421 drivers/media/platform/vimc/vimc-capture.c ret = media_entity_pads_init(&vcap->vdev.entity, vdev 460 drivers/media/platform/vimc/vimc-capture.c vcap->ved.ent = &vcap->vdev.entity; vdev 467 drivers/media/platform/vimc/vimc-capture.c vdev = &vcap->vdev; vdev 468 drivers/media/platform/vimc/vimc-capture.c vdev->device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; vdev 469 drivers/media/platform/vimc/vimc-capture.c vdev->entity.ops = &vimc_cap_mops; vdev 470 drivers/media/platform/vimc/vimc-capture.c vdev->release = vimc_cap_release; vdev 471 drivers/media/platform/vimc/vimc-capture.c vdev->fops = &vimc_cap_fops; vdev 472 drivers/media/platform/vimc/vimc-capture.c vdev->ioctl_ops = &vimc_cap_ioctl_ops; vdev 473 drivers/media/platform/vimc/vimc-capture.c vdev->lock = &vcap->lock; vdev 474 drivers/media/platform/vimc/vimc-capture.c vdev->queue = q; vdev 475 drivers/media/platform/vimc/vimc-capture.c vdev->v4l2_dev = v4l2_dev; vdev 476 drivers/media/platform/vimc/vimc-capture.c vdev->vfl_dir = VFL_DIR_RX; vdev 477 drivers/media/platform/vimc/vimc-capture.c strscpy(vdev->name, pdata->entity_name, sizeof(vdev->name)); vdev 478 drivers/media/platform/vimc/vimc-capture.c video_set_drvdata(vdev, &vcap->ved); vdev 481 drivers/media/platform/vimc/vimc-capture.c ret = video_register_device(vdev, VFL_TYPE_GRABBER, -1); vdev 484 drivers/media/platform/vimc/vimc-capture.c vcap->vdev.name, ret); vdev 493 drivers/media/platform/vimc/vimc-capture.c media_entity_cleanup(&vcap->vdev.entity); vdev 266 drivers/media/platform/vimc/vimc-common.c struct video_device *vdev = container_of(pad->entity, vdev 269 drivers/media/platform/vimc/vimc-common.c struct vimc_ent_device *ved = video_get_drvdata(vdev); vdev 84 drivers/media/platform/vimc/vimc-streamer.c struct video_device *vdev; vdev 117 drivers/media/platform/vimc/vimc-streamer.c vdev = container_of(entity, vdev 120 drivers/media/platform/vimc/vimc-streamer.c ved = video_get_drvdata(vdev); vdev 214 drivers/media/platform/vivid/vivid-core.c struct video_device *vdev = video_devdata(file); vdev 216 drivers/media/platform/vivid/vivid-core.c if (vdev->vfl_type == VFL_TYPE_RADIO) vdev 223 drivers/media/platform/vivid/vivid-core.c struct video_device *vdev = video_devdata(file); vdev 225 drivers/media/platform/vivid/vivid-core.c if (vdev->vfl_type == VFL_TYPE_RADIO) vdev 227 drivers/media/platform/vivid/vivid-core.c if (vdev->vfl_type == VFL_TYPE_SDR) vdev 234 drivers/media/platform/vivid/vivid-core.c struct video_device *vdev = video_devdata(file); vdev 236 drivers/media/platform/vivid/vivid-core.c if (vdev->vfl_type == VFL_TYPE_RADIO) vdev 238 drivers/media/platform/vivid/vivid-core.c if (vdev->vfl_type == VFL_TYPE_SDR) vdev 245 drivers/media/platform/vivid/vivid-core.c struct video_device *vdev = video_devdata(file); vdev 247 drivers/media/platform/vivid/vivid-core.c if (vdev->vfl_type == VFL_TYPE_RADIO) vdev 249 drivers/media/platform/vivid/vivid-core.c if (vdev->vfl_type == VFL_TYPE_SDR) vdev 257 drivers/media/platform/vivid/vivid-core.c struct video_device *vdev = video_devdata(file); vdev 259 drivers/media/platform/vivid/vivid-core.c if (vdev->vfl_type == VFL_TYPE_RADIO) vdev 261 drivers/media/platform/vivid/vivid-core.c vdev->vfl_dir == VFL_DIR_RX ? vdev 263 drivers/media/platform/vivid/vivid-core.c if (vdev->vfl_type == VFL_TYPE_SDR) vdev 271 drivers/media/platform/vivid/vivid-core.c struct video_device *vdev = video_devdata(file); vdev 273 drivers/media/platform/vivid/vivid-core.c if (vdev->vfl_type == VFL_TYPE_RADIO) vdev 275 drivers/media/platform/vivid/vivid-core.c vdev->vfl_dir == VFL_DIR_RX ? vdev 277 drivers/media/platform/vivid/vivid-core.c if (vdev->vfl_type == VFL_TYPE_SDR) vdev 284 drivers/media/platform/vivid/vivid-core.c struct video_device *vdev = video_devdata(file); vdev 286 drivers/media/platform/vivid/vivid-core.c if (vdev->vfl_dir == VFL_DIR_RX) vdev 293 drivers/media/platform/vivid/vivid-core.c struct video_device *vdev = video_devdata(file); vdev 295 drivers/media/platform/vivid/vivid-core.c if (vdev->vfl_dir == VFL_DIR_RX) vdev 302 drivers/media/platform/vivid/vivid-core.c struct video_device *vdev = video_devdata(file); vdev 304 drivers/media/platform/vivid/vivid-core.c if (vdev->vfl_dir == VFL_DIR_RX) vdev 311 drivers/media/platform/vivid/vivid-core.c struct video_device *vdev = video_devdata(file); vdev 313 drivers/media/platform/vivid/vivid-core.c if (vdev->vfl_dir == VFL_DIR_RX) vdev 320 drivers/media/platform/vivid/vivid-core.c struct video_device *vdev = video_devdata(file); vdev 322 drivers/media/platform/vivid/vivid-core.c if (vdev->vfl_dir == VFL_DIR_RX) vdev 330 drivers/media/platform/vivid/vivid-core.c struct video_device *vdev = video_devdata(file); vdev 332 drivers/media/platform/vivid/vivid-core.c if (vdev->vfl_dir == VFL_DIR_RX) vdev 340 drivers/media/platform/vivid/vivid-core.c struct video_device *vdev = video_devdata(file); vdev 342 drivers/media/platform/vivid/vivid-core.c if (vdev->vfl_dir == VFL_DIR_RX) vdev 350 drivers/media/platform/vivid/vivid-core.c struct video_device *vdev = video_devdata(file); vdev 352 drivers/media/platform/vivid/vivid-core.c if (vdev->vfl_dir == VFL_DIR_RX) vdev 360 drivers/media/platform/vivid/vivid-core.c struct video_device *vdev = video_devdata(file); vdev 362 drivers/media/platform/vivid/vivid-core.c if (vdev->vfl_dir == VFL_DIR_RX) vdev 370 drivers/media/platform/vivid/vivid-core.c struct video_device *vdev = video_devdata(file); vdev 372 drivers/media/platform/vivid/vivid-core.c if (vdev->vfl_dir == VFL_DIR_RX) vdev 380 drivers/media/platform/vivid/vivid-core.c struct video_device *vdev = video_devdata(file); vdev 383 drivers/media/platform/vivid/vivid-core.c if (vdev->vfl_dir == VFL_DIR_RX && vdev->vfl_type == VFL_TYPE_GRABBER) vdev 391 drivers/media/platform/vivid/vivid-core.c struct video_device *vdev = video_devdata(file); vdev 393 drivers/media/platform/vivid/vivid-core.c if (vdev->vfl_dir == VFL_DIR_TX) vdev 401 drivers/media/platform/vivid/vivid-core.c struct video_device *vdev = video_devdata(file); vdev 403 drivers/media/platform/vivid/vivid-core.c if (vdev->vfl_dir == VFL_DIR_RX) vdev 410 drivers/media/platform/vivid/vivid-core.c struct video_device *vdev = video_devdata(file); vdev 412 drivers/media/platform/vivid/vivid-core.c if (vdev->vfl_dir == VFL_DIR_RX) vdev 417 drivers/media/platform/vivid/vivid-core.c static bool vivid_is_in_use(struct video_device *vdev) vdev 422 drivers/media/platform/vivid/vivid-core.c spin_lock_irqsave(&vdev->fh_lock, flags); vdev 423 drivers/media/platform/vivid/vivid-core.c res = !list_empty(&vdev->fh_list); vdev 424 drivers/media/platform/vivid/vivid-core.c spin_unlock_irqrestore(&vdev->fh_lock, flags); vdev 444 drivers/media/platform/vivid/vivid-core.c struct video_device *vdev = video_devdata(file); vdev 448 drivers/media/platform/vivid/vivid-core.c !video_is_registered(vdev) && vivid_is_last_user(dev)) { vdev 474 drivers/media/platform/vivid/vivid-core.c if (vdev->queue) vdev 336 drivers/media/platform/vivid/vivid-vbi-cap.c struct video_device *vdev = video_devdata(file); vdev 339 drivers/media/platform/vivid/vivid-vbi-cap.c if (vdev->vfl_dir == VFL_DIR_RX) { vdev 929 drivers/media/platform/vivid/vivid-vid-common.c struct video_device *vdev = video_devdata(file); vdev 931 drivers/media/platform/vivid/vivid-vid-common.c if (vdev->vfl_dir == VFL_DIR_RX) { vdev 947 drivers/media/platform/vivid/vivid-vid-common.c struct video_device *vdev = video_devdata(file); vdev 949 drivers/media/platform/vivid/vivid-vid-common.c if (vdev->vfl_dir == VFL_DIR_RX) { vdev 965 drivers/media/platform/vivid/vivid-vid-common.c struct video_device *vdev = video_devdata(file); vdev 967 drivers/media/platform/vivid/vivid-vid-common.c if (vdev->vfl_dir == VFL_DIR_RX) { vdev 982 drivers/media/platform/vivid/vivid-vid-common.c struct video_device *vdev = video_devdata(file); vdev 984 drivers/media/platform/vivid/vivid-vid-common.c if (vdev->vfl_dir == VFL_DIR_RX) { vdev 999 drivers/media/platform/vivid/vivid-vid-common.c struct video_device *vdev = video_devdata(file); vdev 1003 drivers/media/platform/vivid/vivid-vid-common.c if (vdev->vfl_dir == VFL_DIR_RX) { vdev 1200 drivers/media/platform/vivid/vivid-vid-out.c if (fh->vdev->vfl_dir == VFL_DIR_RX) vdev 238 drivers/media/platform/vsp1/vsp1_drv.c struct v4l2_device *vdev = &vsp1->v4l2_dev; vdev 259 drivers/media/platform/vsp1/vsp1_drv.c vdev->mdev = mdev; vdev 260 drivers/media/platform/vsp1/vsp1_drv.c ret = v4l2_device_register(vsp1->dev, vdev); vdev 423 drivers/media/platform/vsp1/vsp1_histo.c struct vsp1_histogram *histo = vdev_to_histo(vfh->vdev); vdev 442 drivers/media/platform/vsp1/vsp1_histo.c struct vsp1_histogram *histo = vdev_to_histo(vfh->vdev); vdev 456 drivers/media/platform/vsp1/vsp1_histo.c struct vsp1_histogram *histo = vdev_to_histo(vfh->vdev); vdev 54 drivers/media/platform/vsp1/vsp1_histo.h static inline struct vsp1_histogram *vdev_to_histo(struct video_device *vdev) vdev 56 drivers/media/platform/vsp1/vsp1_histo.h return container_of(vdev, struct vsp1_histogram, video); vdev 953 drivers/media/platform/vsp1/vsp1_video.c struct vsp1_video *video = to_vsp1_video(vfh->vdev); vdev 972 drivers/media/platform/vsp1/vsp1_video.c struct vsp1_video *video = to_vsp1_video(vfh->vdev); vdev 988 drivers/media/platform/vsp1/vsp1_video.c struct vsp1_video *video = to_vsp1_video(vfh->vdev); vdev 1000 drivers/media/platform/vsp1/vsp1_video.c struct vsp1_video *video = to_vsp1_video(vfh->vdev); vdev 1030 drivers/media/platform/vsp1/vsp1_video.c struct vsp1_video *video = to_vsp1_video(vfh->vdev); vdev 49 drivers/media/platform/vsp1/vsp1_video.h static inline struct vsp1_video *to_vsp1_video(struct video_device *vdev) vdev 51 drivers/media/platform/vsp1/vsp1_video.h return container_of(vdev, struct vsp1_video, video); vdev 492 drivers/media/platform/xilinx/xilinx-dma.c struct xvip_dma *dma = to_xvip_dma(vfh->vdev); vdev 514 drivers/media/platform/xilinx/xilinx-dma.c struct xvip_dma *dma = to_xvip_dma(vfh->vdev); vdev 528 drivers/media/platform/xilinx/xilinx-dma.c struct xvip_dma *dma = to_xvip_dma(vfh->vdev); vdev 590 drivers/media/platform/xilinx/xilinx-dma.c struct xvip_dma *dma = to_xvip_dma(vfh->vdev); vdev 600 drivers/media/platform/xilinx/xilinx-dma.c struct xvip_dma *dma = to_xvip_dma(vfh->vdev); vdev 98 drivers/media/platform/xilinx/xilinx-dma.h #define to_xvip_dma(vdev) container_of(vdev, struct xvip_dma, video) vdev 67 drivers/media/radio/radio-cadet.c struct video_device vdev; vdev 640 drivers/media/radio/radio-cadet.c strscpy(dev->vdev.name, v4l2_dev->name, sizeof(dev->vdev.name)); vdev 641 drivers/media/radio/radio-cadet.c dev->vdev.v4l2_dev = v4l2_dev; vdev 642 drivers/media/radio/radio-cadet.c dev->vdev.fops = &cadet_fops; vdev 643 drivers/media/radio/radio-cadet.c dev->vdev.ioctl_ops = &cadet_ioctl_ops; vdev 644 drivers/media/radio/radio-cadet.c dev->vdev.release = video_device_release_empty; vdev 645 drivers/media/radio/radio-cadet.c dev->vdev.lock = &dev->lock; vdev 646 drivers/media/radio/radio-cadet.c dev->vdev.device_caps = V4L2_CAP_TUNER | V4L2_CAP_RADIO | vdev 648 drivers/media/radio/radio-cadet.c video_set_drvdata(&dev->vdev, dev); vdev 650 drivers/media/radio/radio-cadet.c res = video_register_device(&dev->vdev, VFL_TYPE_RADIO, radio_nr); vdev 668 drivers/media/radio/radio-cadet.c video_unregister_device(&dev->vdev); vdev 234 drivers/media/radio/radio-isa.c isa->vdev.lock = &isa->lock; vdev 235 drivers/media/radio/radio-isa.c strscpy(isa->vdev.name, v4l2_dev->name, sizeof(isa->vdev.name)); vdev 236 drivers/media/radio/radio-isa.c isa->vdev.v4l2_dev = v4l2_dev; vdev 237 drivers/media/radio/radio-isa.c isa->vdev.fops = &radio_isa_fops; vdev 238 drivers/media/radio/radio-isa.c isa->vdev.ioctl_ops = &radio_isa_ioctl_ops; vdev 239 drivers/media/radio/radio-isa.c isa->vdev.release = video_device_release_empty; vdev 240 drivers/media/radio/radio-isa.c isa->vdev.device_caps = V4L2_CAP_TUNER | V4L2_CAP_RADIO; vdev 241 drivers/media/radio/radio-isa.c video_set_drvdata(&isa->vdev, isa); vdev 257 drivers/media/radio/radio-isa.c res = video_register_device(&isa->vdev, VFL_TYPE_RADIO, radio_nr); vdev 282 drivers/media/radio/radio-isa.c video_unregister_device(&isa->vdev); vdev 27 drivers/media/radio/radio-isa.h struct video_device vdev; vdev 50 drivers/media/radio/radio-keene.c struct video_device vdev; vdev 94 drivers/media/radio/radio-keene.c dev_warn(&radio->vdev.dev, "%s failed (%d)\n", __func__, ret); vdev 123 drivers/media/radio/radio-keene.c dev_warn(&radio->vdev.dev, "%s failed (%d)\n", __func__, ret); vdev 140 drivers/media/radio/radio-keene.c video_unregister_device(&radio->vdev); vdev 354 drivers/media/radio/radio-keene.c strscpy(radio->vdev.name, radio->v4l2_dev.name, vdev 355 drivers/media/radio/radio-keene.c sizeof(radio->vdev.name)); vdev 356 drivers/media/radio/radio-keene.c radio->vdev.v4l2_dev = &radio->v4l2_dev; vdev 357 drivers/media/radio/radio-keene.c radio->vdev.fops = &usb_keene_fops; vdev 358 drivers/media/radio/radio-keene.c radio->vdev.ioctl_ops = &usb_keene_ioctl_ops; vdev 359 drivers/media/radio/radio-keene.c radio->vdev.lock = &radio->lock; vdev 360 drivers/media/radio/radio-keene.c radio->vdev.release = video_device_release_empty; vdev 361 drivers/media/radio/radio-keene.c radio->vdev.vfl_dir = VFL_DIR_TX; vdev 362 drivers/media/radio/radio-keene.c radio->vdev.device_caps = V4L2_CAP_RADIO | V4L2_CAP_MODULATOR; vdev 368 drivers/media/radio/radio-keene.c video_set_drvdata(&radio->vdev, radio); vdev 374 drivers/media/radio/radio-keene.c retval = video_register_device(&radio->vdev, VFL_TYPE_RADIO, -1); vdev 381 drivers/media/radio/radio-keene.c video_device_node_name(&radio->vdev)); vdev 75 drivers/media/radio/radio-ma901.c struct video_device vdev; vdev 178 drivers/media/radio/radio-ma901.c video_unregister_device(&radio->vdev); vdev 392 drivers/media/radio/radio-ma901.c strscpy(radio->vdev.name, radio->v4l2_dev.name, vdev 393 drivers/media/radio/radio-ma901.c sizeof(radio->vdev.name)); vdev 394 drivers/media/radio/radio-ma901.c radio->vdev.v4l2_dev = &radio->v4l2_dev; vdev 395 drivers/media/radio/radio-ma901.c radio->vdev.fops = &usb_ma901radio_fops; vdev 396 drivers/media/radio/radio-ma901.c radio->vdev.ioctl_ops = &usb_ma901radio_ioctl_ops; vdev 397 drivers/media/radio/radio-ma901.c radio->vdev.release = video_device_release_empty; vdev 398 drivers/media/radio/radio-ma901.c radio->vdev.lock = &radio->lock; vdev 399 drivers/media/radio/radio-ma901.c radio->vdev.device_caps = V4L2_CAP_RADIO | V4L2_CAP_TUNER; vdev 406 drivers/media/radio/radio-ma901.c video_set_drvdata(&radio->vdev, radio); vdev 415 drivers/media/radio/radio-ma901.c retval = video_register_device(&radio->vdev, VFL_TYPE_RADIO, vdev 64 drivers/media/radio/radio-miropcm20.c struct video_device vdev; vdev 476 drivers/media/radio/radio-miropcm20.c strscpy(dev->vdev.name, v4l2_dev->name, sizeof(dev->vdev.name)); vdev 477 drivers/media/radio/radio-miropcm20.c dev->vdev.v4l2_dev = v4l2_dev; vdev 478 drivers/media/radio/radio-miropcm20.c dev->vdev.fops = &pcm20_fops; vdev 479 drivers/media/radio/radio-miropcm20.c dev->vdev.ioctl_ops = &pcm20_ioctl_ops; vdev 480 drivers/media/radio/radio-miropcm20.c dev->vdev.release = video_device_release_empty; vdev 481 drivers/media/radio/radio-miropcm20.c dev->vdev.lock = &dev->lock; vdev 482 drivers/media/radio/radio-miropcm20.c dev->vdev.device_caps = V4L2_CAP_TUNER | V4L2_CAP_RADIO | vdev 484 drivers/media/radio/radio-miropcm20.c video_set_drvdata(&dev->vdev, dev); vdev 489 drivers/media/radio/radio-miropcm20.c if (video_register_device(&dev->vdev, VFL_TYPE_RADIO, radio_nr) < 0) vdev 508 drivers/media/radio/radio-miropcm20.c video_unregister_device(&dev->vdev); vdev 119 drivers/media/radio/radio-mr800.c struct video_device vdev; vdev 154 drivers/media/radio/radio-mr800.c if (video_is_registered(&radio->vdev)) vdev 155 drivers/media/radio/radio-mr800.c amradio_dev_warn(&radio->vdev.dev, vdev 174 drivers/media/radio/radio-mr800.c if (video_is_registered(&radio->vdev) && cmd != AMRADIO_GET_READY_FLAG) vdev 175 drivers/media/radio/radio-mr800.c amradio_dev_warn(&radio->vdev.dev, "follow-up to cmd %02x failed\n", cmd); vdev 246 drivers/media/radio/radio-mr800.c video_unregister_device(&radio->vdev); vdev 423 drivers/media/radio/radio-mr800.c amradio_dev_err(&radio->vdev.dev, "initialization failed\n"); vdev 538 drivers/media/radio/radio-mr800.c strscpy(radio->vdev.name, radio->v4l2_dev.name, vdev 539 drivers/media/radio/radio-mr800.c sizeof(radio->vdev.name)); vdev 540 drivers/media/radio/radio-mr800.c radio->vdev.v4l2_dev = &radio->v4l2_dev; vdev 541 drivers/media/radio/radio-mr800.c radio->vdev.fops = &usb_amradio_fops; vdev 542 drivers/media/radio/radio-mr800.c radio->vdev.ioctl_ops = &usb_amradio_ioctl_ops; vdev 543 drivers/media/radio/radio-mr800.c radio->vdev.release = video_device_release_empty; vdev 544 drivers/media/radio/radio-mr800.c radio->vdev.lock = &radio->lock; vdev 545 drivers/media/radio/radio-mr800.c radio->vdev.device_caps = V4L2_CAP_RADIO | V4L2_CAP_TUNER | vdev 553 drivers/media/radio/radio-mr800.c video_set_drvdata(&radio->vdev, radio); vdev 558 drivers/media/radio/radio-mr800.c retval = video_register_device(&radio->vdev, VFL_TYPE_RADIO, vdev 107 drivers/media/radio/radio-raremono.c struct video_device vdev; vdev 170 drivers/media/radio/radio-raremono.c video_unregister_device(&radio->vdev); vdev 350 drivers/media/radio/radio-raremono.c strscpy(radio->vdev.name, radio->v4l2_dev.name, vdev 351 drivers/media/radio/radio-raremono.c sizeof(radio->vdev.name)); vdev 352 drivers/media/radio/radio-raremono.c radio->vdev.v4l2_dev = &radio->v4l2_dev; vdev 353 drivers/media/radio/radio-raremono.c radio->vdev.fops = &usb_raremono_fops; vdev 354 drivers/media/radio/radio-raremono.c radio->vdev.ioctl_ops = &usb_raremono_ioctl_ops; vdev 355 drivers/media/radio/radio-raremono.c radio->vdev.lock = &radio->lock; vdev 356 drivers/media/radio/radio-raremono.c radio->vdev.release = video_device_release_empty; vdev 357 drivers/media/radio/radio-raremono.c radio->vdev.device_caps = V4L2_CAP_TUNER | V4L2_CAP_RADIO; vdev 362 drivers/media/radio/radio-raremono.c video_set_drvdata(&radio->vdev, radio); vdev 366 drivers/media/radio/radio-raremono.c retval = video_register_device(&radio->vdev, VFL_TYPE_RADIO, -1); vdev 369 drivers/media/radio/radio-raremono.c video_device_node_name(&radio->vdev)); vdev 51 drivers/media/radio/radio-sf16fmi.c struct video_device vdev; vdev 341 drivers/media/radio/radio-sf16fmi.c strscpy(fmi->vdev.name, v4l2_dev->name, sizeof(fmi->vdev.name)); vdev 342 drivers/media/radio/radio-sf16fmi.c fmi->vdev.v4l2_dev = v4l2_dev; vdev 343 drivers/media/radio/radio-sf16fmi.c fmi->vdev.fops = &fmi_fops; vdev 344 drivers/media/radio/radio-sf16fmi.c fmi->vdev.ioctl_ops = &fmi_ioctl_ops; vdev 345 drivers/media/radio/radio-sf16fmi.c fmi->vdev.release = video_device_release_empty; vdev 346 drivers/media/radio/radio-sf16fmi.c fmi->vdev.device_caps = V4L2_CAP_TUNER | V4L2_CAP_RADIO; vdev 347 drivers/media/radio/radio-sf16fmi.c video_set_drvdata(&fmi->vdev, fmi); vdev 356 drivers/media/radio/radio-sf16fmi.c if (video_register_device(&fmi->vdev, VFL_TYPE_RADIO, radio_nr) < 0) { vdev 374 drivers/media/radio/radio-sf16fmi.c video_unregister_device(&fmi->vdev); vdev 134 drivers/media/radio/radio-tea5764.c struct video_device vdev; vdev 279 drivers/media/radio/radio-tea5764.c struct video_device *dev = &radio->vdev; vdev 460 drivers/media/radio/radio-tea5764.c radio->vdev = tea5764_radio_template; vdev 463 drivers/media/radio/radio-tea5764.c video_set_drvdata(&radio->vdev, radio); vdev 464 drivers/media/radio/radio-tea5764.c radio->vdev.lock = &radio->mutex; vdev 465 drivers/media/radio/radio-tea5764.c radio->vdev.v4l2_dev = v4l2_dev; vdev 466 drivers/media/radio/radio-tea5764.c radio->vdev.device_caps = V4L2_CAP_TUNER | V4L2_CAP_RADIO; vdev 474 drivers/media/radio/radio-tea5764.c ret = video_register_device(&radio->vdev, VFL_TYPE_RADIO, radio_nr); vdev 497 drivers/media/radio/radio-tea5764.c video_unregister_device(&radio->vdev); vdev 51 drivers/media/radio/si4713/radio-usb-si4713.c struct video_device vdev; vdev 465 drivers/media/radio/si4713/radio-usb-si4713.c radio->vdev.ctrl_handler = sd->ctrl_handler; vdev 467 drivers/media/radio/si4713/radio-usb-si4713.c strscpy(radio->vdev.name, radio->v4l2_dev.name, vdev 468 drivers/media/radio/si4713/radio-usb-si4713.c sizeof(radio->vdev.name)); vdev 469 drivers/media/radio/si4713/radio-usb-si4713.c radio->vdev.v4l2_dev = &radio->v4l2_dev; vdev 470 drivers/media/radio/si4713/radio-usb-si4713.c radio->vdev.fops = &usb_si4713_fops; vdev 471 drivers/media/radio/si4713/radio-usb-si4713.c radio->vdev.ioctl_ops = &usb_si4713_ioctl_ops; vdev 472 drivers/media/radio/si4713/radio-usb-si4713.c radio->vdev.lock = &radio->lock; vdev 473 drivers/media/radio/si4713/radio-usb-si4713.c radio->vdev.release = video_device_release_empty; vdev 474 drivers/media/radio/si4713/radio-usb-si4713.c radio->vdev.vfl_dir = VFL_DIR_TX; vdev 475 drivers/media/radio/si4713/radio-usb-si4713.c radio->vdev.device_caps = V4L2_CAP_MODULATOR | V4L2_CAP_RDS_OUTPUT; vdev 477 drivers/media/radio/si4713/radio-usb-si4713.c video_set_drvdata(&radio->vdev, radio); vdev 479 drivers/media/radio/si4713/radio-usb-si4713.c retval = video_register_device(&radio->vdev, VFL_TYPE_RADIO, -1); vdev 486 drivers/media/radio/si4713/radio-usb-si4713.c video_device_node_name(&radio->vdev)); vdev 508 drivers/media/radio/si4713/radio-usb-si4713.c video_unregister_device(&radio->vdev); vdev 102 drivers/media/usb/airspy/airspy.c struct video_device vdev; vdev 469 drivers/media/usb/airspy/airspy.c video_unregister_device(&s->vdev); vdev 612 drivers/media/usb/airspy/airspy.c strscpy(cap->card, s->vdev.name, sizeof(cap->card)); vdev 1015 drivers/media/usb/airspy/airspy.c s->vdev = airspy_template; vdev 1016 drivers/media/usb/airspy/airspy.c s->vdev.queue = &s->vb_queue; vdev 1017 drivers/media/usb/airspy/airspy.c s->vdev.queue->lock = &s->vb_queue_lock; vdev 1018 drivers/media/usb/airspy/airspy.c video_set_drvdata(&s->vdev, s); vdev 1051 drivers/media/usb/airspy/airspy.c s->vdev.v4l2_dev = &s->v4l2_dev; vdev 1052 drivers/media/usb/airspy/airspy.c s->vdev.lock = &s->v4l2_lock; vdev 1053 drivers/media/usb/airspy/airspy.c s->vdev.device_caps = V4L2_CAP_SDR_CAPTURE | V4L2_CAP_STREAMING | vdev 1056 drivers/media/usb/airspy/airspy.c ret = video_register_device(&s->vdev, VFL_TYPE_SDR, -1); vdev 1063 drivers/media/usb/airspy/airspy.c video_device_node_name(&s->vdev)); vdev 941 drivers/media/usb/au0828/au0828-video.c video_unregister_device(&dev->vdev); vdev 1037 drivers/media/usb/au0828/au0828-video.c struct video_device *vdev = video_devdata(filp); vdev 1045 drivers/media/usb/au0828/au0828-video.c if (vdev->vfl_type == VFL_TYPE_GRABBER && dev->vid_timeout_running) { vdev 1049 drivers/media/usb/au0828/au0828-video.c } else if (vdev->vfl_type == VFL_TYPE_VBI && vdev 1089 drivers/media/usb/au0828/au0828-video.c ret = v4l_enable_media_source(vdev); vdev 1346 drivers/media/usb/au0828/au0828-video.c input->std = dev->vdev.tvnorms; vdev 1670 drivers/media/usb/au0828/au0828-video.c struct video_device *vdev = video_devdata(file); vdev 1675 drivers/media/usb/au0828/au0828-video.c v4l2_device_call_all(vdev->v4l2_dev, 0, core, log_status); vdev 1854 drivers/media/usb/au0828/au0828-video.c ret = media_entity_pads_init(&dev->vdev.entity, 1, &dev->video_pad); vdev 1976 drivers/media/usb/au0828/au0828-video.c dev->vdev = au0828_video_template; vdev 1977 drivers/media/usb/au0828/au0828-video.c dev->vdev.v4l2_dev = &dev->v4l2_dev; vdev 1978 drivers/media/usb/au0828/au0828-video.c dev->vdev.lock = &dev->lock; vdev 1979 drivers/media/usb/au0828/au0828-video.c dev->vdev.queue = &dev->vb_vidq; vdev 1980 drivers/media/usb/au0828/au0828-video.c dev->vdev.queue->lock = &dev->vb_queue_lock; vdev 1981 drivers/media/usb/au0828/au0828-video.c dev->vdev.device_caps = vdev 1984 drivers/media/usb/au0828/au0828-video.c strscpy(dev->vdev.name, "au0828a video", sizeof(dev->vdev.name)); vdev 2009 drivers/media/usb/au0828/au0828-video.c video_set_drvdata(&dev->vdev, dev); vdev 2010 drivers/media/usb/au0828/au0828-video.c retval = video_register_device(&dev->vdev, VFL_TYPE_GRABBER, -1); vdev 2043 drivers/media/usb/au0828/au0828-video.c video_unregister_device(&dev->vdev); vdev 201 drivers/media/usb/au0828/au0828.h struct video_device vdev; vdev 378 drivers/media/usb/cpia2/cpia2.h struct video_device vdev; /* v4l videodev */ vdev 2337 drivers/media/usb/cpia2/cpia2_core.c !video_is_registered(&cam->vdev) || vdev 2342 drivers/media/usb/cpia2/cpia2_core.c if (!video_is_registered(&cam->vdev)) vdev 2399 drivers/media/usb/cpia2/cpia2_core.c if (!video_is_registered(&cam->vdev)) vdev 213 drivers/media/usb/cpia2/cpia2_usb.c if (!cam->streaming || !video_is_registered(&cam->vdev)) { vdev 215 drivers/media/usb/cpia2/cpia2_usb.c cam->streaming, video_is_registered(&cam->vdev)); vdev 386 drivers/media/usb/cpia2/cpia2_usb.c if (!video_is_registered(&cam->vdev)) vdev 117 drivers/media/usb/cpia2/cpia2_v4l.c if (video_is_registered(&cam->vdev) && v4l2_fh_is_singular_file(file)) { vdev 196 drivers/media/usb/cpia2/cpia2_v4l.c if (!video_is_registered(&cam->vdev)) vdev 894 drivers/media/usb/cpia2/cpia2_v4l.c !video_is_registered(&cam->vdev) || vdev 899 drivers/media/usb/cpia2/cpia2_v4l.c if (!video_is_registered(&cam->vdev)) vdev 1126 drivers/media/usb/cpia2/cpia2_v4l.c cam->vdev = cpia2_template; vdev 1127 drivers/media/usb/cpia2/cpia2_v4l.c video_set_drvdata(&cam->vdev, cam); vdev 1128 drivers/media/usb/cpia2/cpia2_v4l.c cam->vdev.lock = &cam->v4l2_lock; vdev 1129 drivers/media/usb/cpia2/cpia2_v4l.c cam->vdev.ctrl_handler = hdl; vdev 1130 drivers/media/usb/cpia2/cpia2_v4l.c cam->vdev.v4l2_dev = &cam->v4l2_dev; vdev 1131 drivers/media/usb/cpia2/cpia2_v4l.c cam->vdev.device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_READWRITE | vdev 1137 drivers/media/usb/cpia2/cpia2_v4l.c if (video_register_device(&cam->vdev, VFL_TYPE_GRABBER, video_nr) < 0) { vdev 1152 drivers/media/usb/cpia2/cpia2_v4l.c video_unregister_device(&cam->vdev); vdev 1713 drivers/media/usb/cx231xx/cx231xx-417.c struct video_device *vdev = video_devdata(file); vdev 1730 drivers/media/usb/cx231xx/cx231xx-417.c v4l2_fh_init(&fh->fh, vdev); vdev 1956 drivers/media/usb/cx231xx/cx231xx-cards.c video_device_node_name(&dev->vdev)); vdev 1165 drivers/media/usb/cx231xx/cx231xx-video.c i->std = dev->vdev.tvnorms; vdev 1737 drivers/media/usb/cx231xx/cx231xx-video.c struct video_device *vdev = video_devdata(filp); vdev 1742 drivers/media/usb/cx231xx/cx231xx-video.c switch (vdev->vfl_type) { vdev 1757 drivers/media/usb/cx231xx/cx231xx-video.c video_device_node_name(vdev), v4l2_type_names[fh_type], vdev 1779 drivers/media/usb/cx231xx/cx231xx-video.c v4l2_fh_init(&fh->fh, vdev); vdev 1854 drivers/media/usb/cx231xx/cx231xx-video.c if (video_is_registered(&dev->vdev)) { vdev 1856 drivers/media/usb/cx231xx/cx231xx-video.c video_device_node_name(&dev->vdev)); vdev 1861 drivers/media/usb/cx231xx/cx231xx-video.c video_unregister_device(&dev->vdev); vdev 2216 drivers/media/usb/cx231xx/cx231xx-video.c cx231xx_vdev_init(dev, &dev->vdev, &cx231xx_video_template, "video"); vdev 2219 drivers/media/usb/cx231xx/cx231xx-video.c ret = media_entity_pads_init(&dev->vdev.entity, 1, &dev->video_pad); vdev 2223 drivers/media/usb/cx231xx/cx231xx-video.c dev->vdev.ctrl_handler = &dev->ctrl_handler; vdev 2224 drivers/media/usb/cx231xx/cx231xx-video.c dev->vdev.device_caps = V4L2_CAP_READWRITE | V4L2_CAP_STREAMING | vdev 2227 drivers/media/usb/cx231xx/cx231xx-video.c dev->vdev.device_caps |= V4L2_CAP_TUNER; vdev 2230 drivers/media/usb/cx231xx/cx231xx-video.c ret = video_register_device(&dev->vdev, VFL_TYPE_GRABBER, vdev 2240 drivers/media/usb/cx231xx/cx231xx-video.c video_device_node_name(&dev->vdev)); vdev 628 drivers/media/usb/cx231xx/cx231xx.h struct video_device vdev; /* video for linux device struct */ vdev 1220 drivers/media/usb/dvb-usb/cxusb-analog.c struct video_device *vdev = video_devdata(file); vdev 1226 drivers/media/usb/dvb-usb/cxusb-analog.c if (vdev->vfl_type == VFL_TYPE_GRABBER) vdev 1262 drivers/media/usb/dvb-usb/cxusb-analog.c if (vdev->vfl_type == VFL_TYPE_GRABBER) vdev 1277 drivers/media/usb/dvb-usb/cxusb-analog.c struct video_device *vdev = video_devdata(file); vdev 1295 drivers/media/usb/dvb-usb/cxusb-analog.c if (vdev->vfl_type == VFL_TYPE_GRABBER) vdev 1320 drivers/media/usb/dvb-usb/cxusb-analog.c struct video_device *vdev = video_devdata(file); vdev 1338 drivers/media/usb/dvb-usb/cxusb-analog.c if (vdev->vfl_type == VFL_TYPE_GRABBER) vdev 1561 drivers/media/usb/dvb-usb/cxusb-analog.c struct video_device *vdev = video_devdata(f); vdev 1567 drivers/media/usb/dvb-usb/cxusb-analog.c if (vdev->vfl_type == VFL_TYPE_GRABBER) vdev 1612 drivers/media/usb/dvb-usb/cxusb-analog.c static void cxusb_medion_videodev_release(struct video_device *vdev) vdev 1614 drivers/media/usb/dvb-usb/cxusb-analog.c struct dvb_usb_device *dvbdev = video_get_drvdata(vdev); vdev 1618 drivers/media/usb/dvb-usb/cxusb-analog.c vb2_queue_release(vdev->queue); vdev 1620 drivers/media/usb/dvb-usb/cxusb-analog.c video_device_release(vdev); vdev 979 drivers/media/usb/em28xx/em28xx-video.c ret = media_entity_pads_init(&v4l2->vdev.entity, 1, &v4l2->video_pad); vdev 1131 drivers/media/usb/em28xx/em28xx-video.c if (owner && owner->vdev->vfl_type == VFL_TYPE_RADIO) vdev 1678 drivers/media/usb/em28xx/em28xx-video.c i->std = dev->v4l2->vdev.tvnorms; vdev 2137 drivers/media/usb/em28xx/em28xx-video.c struct video_device *vdev = video_devdata(filp); vdev 2143 drivers/media/usb/em28xx/em28xx-video.c switch (vdev->vfl_type) { vdev 2157 drivers/media/usb/em28xx/em28xx-video.c video_device_node_name(vdev), v4l2_type_names[fh_type], vdev 2175 drivers/media/usb/em28xx/em28xx-video.c if (vdev->vfl_type != VFL_TYPE_RADIO) vdev 2185 drivers/media/usb/em28xx/em28xx-video.c if (vdev->vfl_type == VFL_TYPE_RADIO) { vdev 2241 drivers/media/usb/em28xx/em28xx-video.c if (video_is_registered(&v4l2->vdev)) { vdev 2243 drivers/media/usb/em28xx/em28xx-video.c video_device_node_name(&v4l2->vdev)); vdev 2244 drivers/media/usb/em28xx/em28xx-video.c video_unregister_device(&v4l2->vdev); vdev 2759 drivers/media/usb/em28xx/em28xx-video.c em28xx_vdev_init(dev, &v4l2->vdev, &em28xx_video_template, "video"); vdev 2762 drivers/media/usb/em28xx/em28xx-video.c v4l2->vdev.queue = &v4l2->vb_vidq; vdev 2763 drivers/media/usb/em28xx/em28xx-video.c v4l2->vdev.queue->lock = &v4l2->vb_queue_lock; vdev 2764 drivers/media/usb/em28xx/em28xx-video.c v4l2->vdev.device_caps = V4L2_CAP_READWRITE | V4L2_CAP_VIDEO_CAPTURE | vdev 2767 drivers/media/usb/em28xx/em28xx-video.c v4l2->vdev.device_caps |= V4L2_CAP_AUDIO; vdev 2769 drivers/media/usb/em28xx/em28xx-video.c v4l2->vdev.device_caps |= V4L2_CAP_TUNER; vdev 2774 drivers/media/usb/em28xx/em28xx-video.c v4l2_disable_ioctl(&v4l2->vdev, VIDIOC_QUERYSTD); vdev 2775 drivers/media/usb/em28xx/em28xx-video.c v4l2_disable_ioctl(&v4l2->vdev, VIDIOC_G_STD); vdev 2776 drivers/media/usb/em28xx/em28xx-video.c v4l2_disable_ioctl(&v4l2->vdev, VIDIOC_S_STD); vdev 2778 drivers/media/usb/em28xx/em28xx-video.c v4l2_disable_ioctl(&v4l2->vdev, VIDIOC_S_PARM); vdev 2781 drivers/media/usb/em28xx/em28xx-video.c v4l2_disable_ioctl(&v4l2->vdev, VIDIOC_G_TUNER); vdev 2782 drivers/media/usb/em28xx/em28xx-video.c v4l2_disable_ioctl(&v4l2->vdev, VIDIOC_S_TUNER); vdev 2783 drivers/media/usb/em28xx/em28xx-video.c v4l2_disable_ioctl(&v4l2->vdev, VIDIOC_G_FREQUENCY); vdev 2784 drivers/media/usb/em28xx/em28xx-video.c v4l2_disable_ioctl(&v4l2->vdev, VIDIOC_S_FREQUENCY); vdev 2787 drivers/media/usb/em28xx/em28xx-video.c v4l2_disable_ioctl(&v4l2->vdev, VIDIOC_G_AUDIO); vdev 2788 drivers/media/usb/em28xx/em28xx-video.c v4l2_disable_ioctl(&v4l2->vdev, VIDIOC_S_AUDIO); vdev 2792 drivers/media/usb/em28xx/em28xx-video.c ret = video_register_device(&v4l2->vdev, VFL_TYPE_GRABBER, vdev 2866 drivers/media/usb/em28xx/em28xx-video.c video_device_node_name(&v4l2->vdev)); vdev 2900 drivers/media/usb/em28xx/em28xx-video.c if (video_is_registered(&v4l2->vdev)) { vdev 2903 drivers/media/usb/em28xx/em28xx-video.c video_device_node_name(&v4l2->vdev)); vdev 2904 drivers/media/usb/em28xx/em28xx-video.c video_unregister_device(&v4l2->vdev); vdev 554 drivers/media/usb/em28xx/em28xx.h struct video_device vdev; vdev 401 drivers/media/usb/go7007/go7007-driver.c v4l2_event_queue(&go->vdev, &ev); vdev 161 drivers/media/usb/go7007/go7007-priv.h struct video_device vdev; vdev 1327 drivers/media/usb/go7007/go7007-usb.c video_unregister_device(&go->vdev); vdev 1076 drivers/media/usb/go7007/go7007-v4l2.c struct video_device *vdev = &go->vdev; vdev 1094 drivers/media/usb/go7007/go7007-v4l2.c *vdev = go7007_template; vdev 1095 drivers/media/usb/go7007/go7007-v4l2.c vdev->lock = &go->serialize_lock; vdev 1096 drivers/media/usb/go7007/go7007-v4l2.c vdev->queue = &go->vidq; vdev 1097 drivers/media/usb/go7007/go7007-v4l2.c vdev->device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_READWRITE | vdev 1100 drivers/media/usb/go7007/go7007-v4l2.c vdev->device_caps |= V4L2_CAP_AUDIO; vdev 1102 drivers/media/usb/go7007/go7007-v4l2.c vdev->device_caps |= V4L2_CAP_TUNER; vdev 1103 drivers/media/usb/go7007/go7007-v4l2.c video_set_drvdata(vdev, go); vdev 1104 drivers/media/usb/go7007/go7007-v4l2.c vdev->v4l2_dev = &go->v4l2_dev; vdev 1106 drivers/media/usb/go7007/go7007-v4l2.c v4l2_disable_ioctl(vdev, VIDIOC_QUERYSTD); vdev 1108 drivers/media/usb/go7007/go7007-v4l2.c v4l2_disable_ioctl(vdev, VIDIOC_S_FREQUENCY); vdev 1109 drivers/media/usb/go7007/go7007-v4l2.c v4l2_disable_ioctl(vdev, VIDIOC_G_FREQUENCY); vdev 1110 drivers/media/usb/go7007/go7007-v4l2.c v4l2_disable_ioctl(vdev, VIDIOC_S_TUNER); vdev 1111 drivers/media/usb/go7007/go7007-v4l2.c v4l2_disable_ioctl(vdev, VIDIOC_G_TUNER); vdev 1121 drivers/media/usb/go7007/go7007-v4l2.c v4l2_disable_ioctl(vdev, VIDIOC_G_STD); vdev 1122 drivers/media/usb/go7007/go7007-v4l2.c v4l2_disable_ioctl(vdev, VIDIOC_S_STD); vdev 1123 drivers/media/usb/go7007/go7007-v4l2.c vdev->tvnorms = 0; vdev 1126 drivers/media/usb/go7007/go7007-v4l2.c v4l2_disable_ioctl(vdev, VIDIOC_ENUM_FRAMESIZES); vdev 1128 drivers/media/usb/go7007/go7007-v4l2.c v4l2_disable_ioctl(vdev, VIDIOC_G_AUDIO); vdev 1129 drivers/media/usb/go7007/go7007-v4l2.c v4l2_disable_ioctl(vdev, VIDIOC_S_AUDIO); vdev 1130 drivers/media/usb/go7007/go7007-v4l2.c v4l2_disable_ioctl(vdev, VIDIOC_ENUMAUDIO); vdev 1141 drivers/media/usb/go7007/go7007-v4l2.c rv = video_register_device(vdev, VFL_TYPE_GRABBER, -1); vdev 1145 drivers/media/usb/go7007/go7007-v4l2.c video_device_node_name(vdev)); vdev 900 drivers/media/usb/gspca/conex.c gspca_dev->vdev.ctrl_handler = hdl; vdev 1828 drivers/media/usb/gspca/cpia1.c gspca_dev->vdev.ctrl_handler = hdl; vdev 221 drivers/media/usb/gspca/dtcs033.c gspca_dev->vdev.ctrl_handler = hdl; vdev 723 drivers/media/usb/gspca/etoms.c gspca_dev->vdev.ctrl_handler = hdl; vdev 108 drivers/media/usb/gspca/gl860/gl860.c gspca_dev->vdev.ctrl_handler = hdl; vdev 845 drivers/media/usb/gspca/gspca.c v4l2_ctrl_handler_setup(gspca_dev->vdev.ctrl_handler); vdev 906 drivers/media/usb/gspca/gspca.c v4l2_ctrl_handler_setup(gspca_dev->vdev.ctrl_handler); vdev 1181 drivers/media/usb/gspca/gspca.c v4l2_ctrl_handler_free(gspca_dev->vdev.ctrl_handler); vdev 1498 drivers/media/usb/gspca/gspca.c gspca_dev->vdev = gspca_template; vdev 1499 drivers/media/usb/gspca/gspca.c gspca_dev->vdev.v4l2_dev = &gspca_dev->v4l2_dev; vdev 1500 drivers/media/usb/gspca/gspca.c gspca_dev->vdev.device_caps = V4L2_CAP_VIDEO_CAPTURE | vdev 1502 drivers/media/usb/gspca/gspca.c video_set_drvdata(&gspca_dev->vdev, gspca_dev); vdev 1506 drivers/media/usb/gspca/gspca.c gspca_dev->vdev.lock = &gspca_dev->usb_lock; vdev 1523 drivers/media/usb/gspca/gspca.c gspca_dev->vdev.queue = q; vdev 1547 drivers/media/usb/gspca/gspca.c v4l2_disable_ioctl(&gspca_dev->vdev, VIDIOC_DBG_G_REGISTER); vdev 1549 drivers/media/usb/gspca/gspca.c v4l2_disable_ioctl(&gspca_dev->vdev, VIDIOC_DBG_S_REGISTER); vdev 1552 drivers/media/usb/gspca/gspca.c v4l2_disable_ioctl(&gspca_dev->vdev, VIDIOC_G_JPEGCOMP); vdev 1554 drivers/media/usb/gspca/gspca.c v4l2_disable_ioctl(&gspca_dev->vdev, VIDIOC_S_JPEGCOMP); vdev 1557 drivers/media/usb/gspca/gspca.c ret = video_register_device(&gspca_dev->vdev, vdev 1567 drivers/media/usb/gspca/gspca.c video_device_node_name(&gspca_dev->vdev)); vdev 1577 drivers/media/usb/gspca/gspca.c v4l2_ctrl_handler_free(gspca_dev->vdev.ctrl_handler); vdev 1623 drivers/media/usb/gspca/gspca.c video_device_node_name(&gspca_dev->vdev)); vdev 1641 drivers/media/usb/gspca/gspca.c video_unregister_device(&gspca_dev->vdev); vdev 154 drivers/media/usb/gspca/gspca.h struct video_device vdev; /* !! must be the first item */ vdev 441 drivers/media/usb/gspca/jeilinj.c gspca_dev->vdev.ctrl_handler = hdl; vdev 416 drivers/media/usb/gspca/konica.c gspca_dev->vdev.ctrl_handler = hdl; vdev 276 drivers/media/usb/gspca/m5602/m5602_mt9m111.c sd->gspca_dev.vdev.ctrl_handler = hdl; vdev 277 drivers/media/usb/gspca/m5602/m5602_ov7660.c sd->gspca_dev.vdev.ctrl_handler = hdl; vdev 369 drivers/media/usb/gspca/m5602/m5602_ov9650.c sd->gspca_dev.vdev.ctrl_handler = hdl; vdev 241 drivers/media/usb/gspca/m5602/m5602_po1030.c sd->gspca_dev.vdev.ctrl_handler = hdl; vdev 531 drivers/media/usb/gspca/m5602/m5602_s5k4aa.c sd->gspca_dev.vdev.ctrl_handler = hdl; vdev 265 drivers/media/usb/gspca/m5602/m5602_s5k83a.c sd->gspca_dev.vdev.ctrl_handler = hdl; vdev 195 drivers/media/usb/gspca/mars.c gspca_dev->vdev.ctrl_handler = hdl; vdev 937 drivers/media/usb/gspca/mr97310a.c gspca_dev->vdev.ctrl_handler = hdl; vdev 2004 drivers/media/usb/gspca/nw80x.c gspca_dev->vdev.ctrl_handler = hdl; vdev 4886 drivers/media/usb/gspca/ov519.c gspca_dev->vdev.ctrl_handler = hdl; vdev 1250 drivers/media/usb/gspca/ov534.c gspca_dev->vdev.ctrl_handler = hdl; vdev 1466 drivers/media/usb/gspca/ov534_9.c p = video_device_node_name(&gspca_dev->vdev); vdev 1749 drivers/media/usb/gspca/ov534_9.c gspca_dev->vdev.ctrl_handler = hdl; vdev 250 drivers/media/usb/gspca/pac207.c gspca_dev->vdev.ctrl_handler = hdl; vdev 636 drivers/media/usb/gspca/pac7302.c gspca_dev->vdev.ctrl_handler = hdl; vdev 406 drivers/media/usb/gspca/pac7311.c gspca_dev->vdev.ctrl_handler = hdl; vdev 649 drivers/media/usb/gspca/se401.c gspca_dev->vdev.ctrl_handler = hdl; vdev 309 drivers/media/usb/gspca/sn9c2028.c gspca_dev->vdev.ctrl_handler = hdl; vdev 1715 drivers/media/usb/gspca/sn9c20x.c gspca_dev->vdev.ctrl_handler = hdl; vdev 1003 drivers/media/usb/gspca/sonixb.c gspca_dev->vdev.ctrl_handler = hdl; vdev 1622 drivers/media/usb/gspca/sonixj.c gspca_dev->vdev.ctrl_handler = hdl; vdev 375 drivers/media/usb/gspca/spca1528.c gspca_dev->vdev.ctrl_handler = hdl; vdev 911 drivers/media/usb/gspca/spca500.c gspca_dev->vdev.ctrl_handler = hdl; vdev 1971 drivers/media/usb/gspca/spca501.c gspca_dev->vdev.ctrl_handler = hdl; vdev 738 drivers/media/usb/gspca/spca505.c gspca_dev->vdev.ctrl_handler = hdl; vdev 541 drivers/media/usb/gspca/spca506.c gspca_dev->vdev.ctrl_handler = hdl; vdev 1471 drivers/media/usb/gspca/spca508.c gspca_dev->vdev.ctrl_handler = hdl; vdev 793 drivers/media/usb/gspca/spca561.c gspca_dev->vdev.ctrl_handler = hdl; vdev 816 drivers/media/usb/gspca/spca561.c gspca_dev->vdev.ctrl_handler = hdl; vdev 1092 drivers/media/usb/gspca/sq930x.c gspca_dev->vdev.ctrl_handler = hdl; vdev 376 drivers/media/usb/gspca/stk014.c gspca_dev->vdev.ctrl_handler = hdl; vdev 592 drivers/media/usb/gspca/stk1135.c gspca_dev->vdev.ctrl_handler = hdl; vdev 266 drivers/media/usb/gspca/stv06xx/stv06xx.c gspca_dev->vdev.ctrl_handler = &gspca_dev->ctrl_handler; vdev 951 drivers/media/usb/gspca/sunplus.c gspca_dev->vdev.ctrl_handler = hdl; vdev 950 drivers/media/usb/gspca/t613.c gspca_dev->vdev.ctrl_handler = hdl; vdev 4884 drivers/media/usb/gspca/topro.c gspca_dev->vdev.ctrl_handler = hdl; vdev 625 drivers/media/usb/gspca/touptek.c gspca_dev->vdev.ctrl_handler = hdl; vdev 308 drivers/media/usb/gspca/tv8532.c gspca_dev->vdev.ctrl_handler = hdl; vdev 3737 drivers/media/usb/gspca/vc032x.c gspca_dev->vdev.ctrl_handler = hdl; vdev 292 drivers/media/usb/gspca/vicam.c gspca_dev->vdev.ctrl_handler = hdl; vdev 3033 drivers/media/usb/gspca/xirlink_cit.c gspca_dev->vdev.ctrl_handler = hdl; vdev 6441 drivers/media/usb/gspca/zc3xx.c gspca_dev->vdev.ctrl_handler = hdl; vdev 917 drivers/media/usb/hackrf/hackrf.c struct video_device *vdev = video_devdata(file); vdev 924 drivers/media/usb/hackrf/hackrf.c if (vdev->vfl_dir == VFL_DIR_RX) vdev 1093 drivers/media/usb/hackrf/hackrf.c struct video_device *vdev = video_devdata(file); vdev 1103 drivers/media/usb/hackrf/hackrf.c if (vdev->vfl_dir == VFL_DIR_RX) { vdev 1113 drivers/media/usb/hackrf/hackrf.c if (vdev->vfl_dir == VFL_DIR_RX) { vdev 1140 drivers/media/usb/hackrf/hackrf.c struct video_device *vdev = video_devdata(file); vdev 1147 drivers/media/usb/hackrf/hackrf.c if (vdev->vfl_dir == VFL_DIR_RX) vdev 1153 drivers/media/usb/hackrf/hackrf.c if (vdev->vfl_dir == VFL_DIR_RX) vdev 1126 drivers/media/usb/hdpvr/hdpvr-video.c static void hdpvr_device_release(struct video_device *vdev) vdev 1128 drivers/media/usb/hdpvr/hdpvr-video.c struct hdpvr_device *dev = video_get_drvdata(vdev); vdev 107 drivers/media/usb/msi2500/msi2500.c struct video_device vdev; vdev 576 drivers/media/usb/msi2500/msi2500.c video_unregister_device(&dev->vdev); vdev 592 drivers/media/usb/msi2500/msi2500.c strscpy(cap->card, dev->vdev.name, sizeof(cap->card)); vdev 1212 drivers/media/usb/msi2500/msi2500.c dev->vdev = msi2500_template; vdev 1213 drivers/media/usb/msi2500/msi2500.c dev->vdev.queue = &dev->vb_queue; vdev 1214 drivers/media/usb/msi2500/msi2500.c dev->vdev.queue->lock = &dev->vb_queue_lock; vdev 1215 drivers/media/usb/msi2500/msi2500.c video_set_drvdata(&dev->vdev, dev); vdev 1264 drivers/media/usb/msi2500/msi2500.c dev->vdev.v4l2_dev = &dev->v4l2_dev; vdev 1265 drivers/media/usb/msi2500/msi2500.c dev->vdev.lock = &dev->v4l2_lock; vdev 1266 drivers/media/usb/msi2500/msi2500.c dev->vdev.device_caps = V4L2_CAP_SDR_CAPTURE | V4L2_CAP_STREAMING | vdev 1269 drivers/media/usb/msi2500/msi2500.c ret = video_register_device(&dev->vdev, VFL_TYPE_SDR, -1); vdev 1276 drivers/media/usb/msi2500/msi2500.c video_device_node_name(&dev->vdev)); vdev 2657 drivers/media/usb/pvrusb2/pvrusb2-hdw.c void pvr2_hdw_set_v4l2_dev(struct pvr2_hdw *hdw, struct video_device *vdev) vdev 2659 drivers/media/usb/pvrusb2/pvrusb2-hdw.c vdev->v4l2_dev = &hdw->v4l2_dev; vdev 885 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c static void pvr2_video_device_release(struct video_device *vdev) vdev 888 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c dev = container_of(vdev,struct pvr2_v4l2_dev,devbase); vdev 1060 drivers/media/usb/pwc/pwc-if.c pdev->vdev = pwc_template; vdev 1061 drivers/media/usb/pwc/pwc-if.c strscpy(pdev->vdev.name, name, sizeof(pdev->vdev.name)); vdev 1062 drivers/media/usb/pwc/pwc-if.c pdev->vdev.queue = &pdev->vb_queue; vdev 1063 drivers/media/usb/pwc/pwc-if.c pdev->vdev.queue->lock = &pdev->vb_queue_lock; vdev 1064 drivers/media/usb/pwc/pwc-if.c video_set_drvdata(&pdev->vdev, pdev); vdev 1081 drivers/media/usb/pwc/pwc-if.c pdev->vdev.name, vdev 1114 drivers/media/usb/pwc/pwc-if.c pdev->vdev.v4l2_dev = &pdev->v4l2_dev; vdev 1115 drivers/media/usb/pwc/pwc-if.c pdev->vdev.lock = &pdev->v4l2_lock; vdev 1116 drivers/media/usb/pwc/pwc-if.c pdev->vdev.device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING | vdev 1119 drivers/media/usb/pwc/pwc-if.c rc = video_register_device(&pdev->vdev, VFL_TYPE_GRABBER, -1); vdev 1124 drivers/media/usb/pwc/pwc-if.c PWC_INFO("Registered as %s.\n", video_device_node_name(&pdev->vdev)); vdev 1156 drivers/media/usb/pwc/pwc-if.c video_unregister_device(&pdev->vdev); vdev 1182 drivers/media/usb/pwc/pwc-if.c video_unregister_device(&pdev->vdev); vdev 484 drivers/media/usb/pwc/pwc-v4l.c strscpy(cap->card, pdev->vdev.name, sizeof(cap->card)); vdev 211 drivers/media/usb/pwc/pwc.h struct video_device vdev; vdev 206 drivers/media/usb/s2255/s2255drv.c struct video_device vdev; vdev 546 drivers/media/usb/s2255/s2255drv.c struct s2255_dev *dev = to_s2255_dev(vc->vdev.v4l2_dev); vdev 988 drivers/media/usb/s2255/s2255drv.c struct s2255_dev *dev = to_s2255_dev(vc->vdev.v4l2_dev); vdev 1037 drivers/media/usb/s2255/s2255drv.c struct s2255_dev *dev = to_s2255_dev(vc->vdev.v4l2_dev); vdev 1548 drivers/media/usb/s2255/s2255drv.c static void s2255_video_device_release(struct video_device *vdev) vdev 1550 drivers/media/usb/s2255/s2255drv.c struct s2255_dev *dev = to_s2255_dev(vdev->v4l2_dev); vdev 1552 drivers/media/usb/s2255/s2255drv.c container_of(vdev, struct s2255_vc, vdev); vdev 1642 drivers/media/usb/s2255/s2255drv.c vc->vdev = template; vdev 1643 drivers/media/usb/s2255/s2255drv.c vc->vdev.queue = q; vdev 1644 drivers/media/usb/s2255/s2255drv.c vc->vdev.ctrl_handler = &vc->hdl; vdev 1645 drivers/media/usb/s2255/s2255drv.c vc->vdev.lock = &dev->lock; vdev 1646 drivers/media/usb/s2255/s2255drv.c vc->vdev.v4l2_dev = &dev->v4l2_dev; vdev 1647 drivers/media/usb/s2255/s2255drv.c vc->vdev.device_caps = V4L2_CAP_VIDEO_CAPTURE | vdev 1649 drivers/media/usb/s2255/s2255drv.c video_set_drvdata(&vc->vdev, vc); vdev 1651 drivers/media/usb/s2255/s2255drv.c ret = video_register_device(&vc->vdev, vdev 1655 drivers/media/usb/s2255/s2255drv.c ret = video_register_device(&vc->vdev, vdev 1666 drivers/media/usb/s2255/s2255drv.c video_device_node_name(&vc->vdev)); vdev 2120 drivers/media/usb/s2255/s2255drv.c struct s2255_dev *dev = to_s2255_dev(vc->vdev.v4l2_dev); vdev 2150 drivers/media/usb/s2255/s2255drv.c struct s2255_dev *dev = to_s2255_dev(vc->vdev.v4l2_dev); vdev 2353 drivers/media/usb/s2255/s2255drv.c video_unregister_device(&dev->vc[i].vdev); vdev 408 drivers/media/usb/stk1160/stk1160-core.c video_unregister_device(&dev->vdev); vdev 562 drivers/media/usb/stk1160/stk1160-v4l.c i->std = dev->vdev.tvnorms; vdev 806 drivers/media/usb/stk1160/stk1160-v4l.c dev->vdev = v4l_template; vdev 807 drivers/media/usb/stk1160/stk1160-v4l.c dev->vdev.queue = &dev->vb_vidq; vdev 813 drivers/media/usb/stk1160/stk1160-v4l.c dev->vdev.lock = &dev->v4l_lock; vdev 816 drivers/media/usb/stk1160/stk1160-v4l.c dev->vdev.v4l2_dev = &dev->v4l2_dev; vdev 817 drivers/media/usb/stk1160/stk1160-v4l.c dev->vdev.device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING | vdev 832 drivers/media/usb/stk1160/stk1160-v4l.c video_set_drvdata(&dev->vdev, dev); vdev 833 drivers/media/usb/stk1160/stk1160-v4l.c rc = video_register_device(&dev->vdev, VFL_TYPE_GRABBER, -1); vdev 840 drivers/media/usb/stk1160/stk1160-v4l.c video_device_node_name(&dev->vdev)); vdev 111 drivers/media/usb/stk1160/stk1160.h struct video_device vdev; vdev 1251 drivers/media/usb/stkwebcam/stk-webcam.c dev->vdev = stk_v4l_data; vdev 1252 drivers/media/usb/stkwebcam/stk-webcam.c dev->vdev.lock = &dev->lock; vdev 1253 drivers/media/usb/stkwebcam/stk-webcam.c dev->vdev.v4l2_dev = &dev->v4l2_dev; vdev 1254 drivers/media/usb/stkwebcam/stk-webcam.c dev->vdev.device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_READWRITE | vdev 1256 drivers/media/usb/stkwebcam/stk-webcam.c video_set_drvdata(&dev->vdev, dev); vdev 1257 drivers/media/usb/stkwebcam/stk-webcam.c err = video_register_device(&dev->vdev, VFL_TYPE_GRABBER, -1); vdev 1262 drivers/media/usb/stkwebcam/stk-webcam.c video_device_node_name(&dev->vdev)); vdev 1383 drivers/media/usb/stkwebcam/stk-webcam.c video_device_node_name(&dev->vdev)); vdev 1385 drivers/media/usb/stkwebcam/stk-webcam.c video_unregister_device(&dev->vdev); vdev 78 drivers/media/usb/stkwebcam/stk-webcam.h struct video_device vdev; vdev 110 drivers/media/usb/stkwebcam/stk-webcam.h #define vdev_to_camera(d) container_of(d, struct stk_camera, vdev) vdev 1292 drivers/media/usb/tm6000/tm6000-video.c struct video_device *vdev = video_devdata(file); vdev 1300 drivers/media/usb/tm6000/tm6000-video.c video_device_node_name(vdev)); vdev 1302 drivers/media/usb/tm6000/tm6000-video.c switch (vdev->vfl_type) { vdev 1320 drivers/media/usb/tm6000/tm6000-video.c video_device_node_name(vdev), v4l2_type_names[type], vdev 1330 drivers/media/usb/tm6000/tm6000-video.c v4l2_fh_init(&fh->fh, vdev); vdev 1382 drivers/media/usb/tm6000/tm6000-video.c struct video_device *vdev = video_devdata(file); vdev 1385 drivers/media/usb/tm6000/tm6000-video.c mutex_lock(vdev->lock); vdev 1387 drivers/media/usb/tm6000/tm6000-video.c mutex_unlock(vdev->lock); vdev 1463 drivers/media/usb/tm6000/tm6000-video.c struct video_device *vdev = video_devdata(file); vdev 1466 drivers/media/usb/tm6000/tm6000-video.c video_device_node_name(vdev), dev->users); vdev 626 drivers/media/usb/usbtv/usbtv-video.c i->std = dev->vdev.tvnorms; vdev 933 drivers/media/usb/usbtv/usbtv-video.c strscpy(usbtv->vdev.name, "usbtv", sizeof(usbtv->vdev.name)); vdev 934 drivers/media/usb/usbtv/usbtv-video.c usbtv->vdev.v4l2_dev = &usbtv->v4l2_dev; vdev 935 drivers/media/usb/usbtv/usbtv-video.c usbtv->vdev.release = video_device_release_empty; vdev 936 drivers/media/usb/usbtv/usbtv-video.c usbtv->vdev.fops = &usbtv_fops; vdev 937 drivers/media/usb/usbtv/usbtv-video.c usbtv->vdev.ioctl_ops = &usbtv_ioctl_ops; vdev 938 drivers/media/usb/usbtv/usbtv-video.c usbtv->vdev.tvnorms = USBTV_TV_STD; vdev 939 drivers/media/usb/usbtv/usbtv-video.c usbtv->vdev.queue = &usbtv->vb2q; vdev 940 drivers/media/usb/usbtv/usbtv-video.c usbtv->vdev.lock = &usbtv->v4l2_lock; vdev 941 drivers/media/usb/usbtv/usbtv-video.c usbtv->vdev.device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_READWRITE | vdev 943 drivers/media/usb/usbtv/usbtv-video.c video_set_drvdata(&usbtv->vdev, usbtv); vdev 944 drivers/media/usb/usbtv/usbtv-video.c ret = video_register_device(&usbtv->vdev, VFL_TYPE_GRABBER, -1); vdev 968 drivers/media/usb/usbtv/usbtv-video.c video_unregister_device(&usbtv->vdev); vdev 93 drivers/media/usb/usbtv/usbtv.h struct video_device vdev; vdev 147 drivers/media/usb/usbvision/usbvision-video.c struct video_device *vdev = to_video_device(cd); vdev 148 drivers/media/usb/usbvision/usbvision-video.c return video_get_drvdata(vdev); vdev 161 drivers/media/usb/usbvision/usbvision-video.c struct video_device *vdev = to_video_device(cd); vdev 162 drivers/media/usb/usbvision/usbvision-video.c struct usb_usbvision *usbvision = video_get_drvdata(vdev); vdev 171 drivers/media/usb/usbvision/usbvision-video.c struct video_device *vdev = to_video_device(cd); vdev 172 drivers/media/usb/usbvision/usbvision-video.c struct usb_usbvision *usbvision = video_get_drvdata(vdev); vdev 183 drivers/media/usb/usbvision/usbvision-video.c struct video_device *vdev = to_video_device(cd); vdev 184 drivers/media/usb/usbvision/usbvision-video.c struct usb_usbvision *usbvision = video_get_drvdata(vdev); vdev 195 drivers/media/usb/usbvision/usbvision-video.c struct video_device *vdev = to_video_device(cd); vdev 196 drivers/media/usb/usbvision/usbvision-video.c struct usb_usbvision *usbvision = video_get_drvdata(vdev); vdev 207 drivers/media/usb/usbvision/usbvision-video.c struct video_device *vdev = to_video_device(cd); vdev 208 drivers/media/usb/usbvision/usbvision-video.c struct usb_usbvision *usbvision = video_get_drvdata(vdev); vdev 219 drivers/media/usb/usbvision/usbvision-video.c struct video_device *vdev = to_video_device(cd); vdev 220 drivers/media/usb/usbvision/usbvision-video.c struct usb_usbvision *usbvision = video_get_drvdata(vdev); vdev 229 drivers/media/usb/usbvision/usbvision-video.c struct video_device *vdev = to_video_device(cd); vdev 230 drivers/media/usb/usbvision/usbvision-video.c struct usb_usbvision *usbvision = video_get_drvdata(vdev); vdev 239 drivers/media/usb/usbvision/usbvision-video.c struct video_device *vdev = to_video_device(cd); vdev 240 drivers/media/usb/usbvision/usbvision-video.c struct usb_usbvision *usbvision = video_get_drvdata(vdev); vdev 245 drivers/media/usb/usbvision/usbvision-video.c static void usbvision_create_sysfs(struct video_device *vdev) vdev 249 drivers/media/usb/usbvision/usbvision-video.c if (!vdev) vdev 252 drivers/media/usb/usbvision/usbvision-video.c res = device_create_file(&vdev->dev, &dev_attr_version); vdev 255 drivers/media/usb/usbvision/usbvision-video.c res = device_create_file(&vdev->dev, &dev_attr_model); vdev 258 drivers/media/usb/usbvision/usbvision-video.c res = device_create_file(&vdev->dev, &dev_attr_hue); vdev 261 drivers/media/usb/usbvision/usbvision-video.c res = device_create_file(&vdev->dev, &dev_attr_contrast); vdev 264 drivers/media/usb/usbvision/usbvision-video.c res = device_create_file(&vdev->dev, &dev_attr_brightness); vdev 267 drivers/media/usb/usbvision/usbvision-video.c res = device_create_file(&vdev->dev, &dev_attr_saturation); vdev 270 drivers/media/usb/usbvision/usbvision-video.c res = device_create_file(&vdev->dev, &dev_attr_streaming); vdev 273 drivers/media/usb/usbvision/usbvision-video.c res = device_create_file(&vdev->dev, &dev_attr_compression); vdev 276 drivers/media/usb/usbvision/usbvision-video.c res = device_create_file(&vdev->dev, &dev_attr_bridge); vdev 281 drivers/media/usb/usbvision/usbvision-video.c dev_err(&vdev->dev, "%s error: %d\n", __func__, res); vdev 284 drivers/media/usb/usbvision/usbvision-video.c static void usbvision_remove_sysfs(struct video_device *vdev) vdev 286 drivers/media/usb/usbvision/usbvision-video.c if (vdev) { vdev 287 drivers/media/usb/usbvision/usbvision-video.c device_remove_file(&vdev->dev, &dev_attr_version); vdev 288 drivers/media/usb/usbvision/usbvision-video.c device_remove_file(&vdev->dev, &dev_attr_model); vdev 289 drivers/media/usb/usbvision/usbvision-video.c device_remove_file(&vdev->dev, &dev_attr_hue); vdev 290 drivers/media/usb/usbvision/usbvision-video.c device_remove_file(&vdev->dev, &dev_attr_contrast); vdev 291 drivers/media/usb/usbvision/usbvision-video.c device_remove_file(&vdev->dev, &dev_attr_brightness); vdev 292 drivers/media/usb/usbvision/usbvision-video.c device_remove_file(&vdev->dev, &dev_attr_saturation); vdev 293 drivers/media/usb/usbvision/usbvision-video.c device_remove_file(&vdev->dev, &dev_attr_streaming); vdev 294 drivers/media/usb/usbvision/usbvision-video.c device_remove_file(&vdev->dev, &dev_attr_compression); vdev 295 drivers/media/usb/usbvision/usbvision-video.c device_remove_file(&vdev->dev, &dev_attr_bridge); vdev 429 drivers/media/usb/usbvision/usbvision-video.c dev_err(&usbvision->vdev.dev, vdev 448 drivers/media/usb/usbvision/usbvision-video.c dev_err(&usbvision->vdev.dev, vdev 1218 drivers/media/usb/usbvision/usbvision-video.c struct video_device *vdev, vdev 1230 drivers/media/usb/usbvision/usbvision-video.c *vdev = *vdev_template; vdev 1231 drivers/media/usb/usbvision/usbvision-video.c vdev->lock = &usbvision->v4l2_lock; vdev 1232 drivers/media/usb/usbvision/usbvision-video.c vdev->v4l2_dev = &usbvision->v4l2_dev; vdev 1233 drivers/media/usb/usbvision/usbvision-video.c snprintf(vdev->name, sizeof(vdev->name), "%s", name); vdev 1234 drivers/media/usb/usbvision/usbvision-video.c video_set_drvdata(vdev, usbvision); vdev 1248 drivers/media/usb/usbvision/usbvision-video.c if (video_is_registered(&usbvision->vdev)) { vdev 1250 drivers/media/usb/usbvision/usbvision-video.c video_device_node_name(&usbvision->vdev)); vdev 1251 drivers/media/usb/usbvision/usbvision-video.c video_unregister_device(&usbvision->vdev); vdev 1261 drivers/media/usb/usbvision/usbvision-video.c usbvision_vdev_init(usbvision, &usbvision->vdev, vdev 1264 drivers/media/usb/usbvision/usbvision-video.c v4l2_disable_ioctl(&usbvision->vdev, VIDIOC_G_FREQUENCY); vdev 1265 drivers/media/usb/usbvision/usbvision-video.c v4l2_disable_ioctl(&usbvision->vdev, VIDIOC_S_TUNER); vdev 1266 drivers/media/usb/usbvision/usbvision-video.c v4l2_disable_ioctl(&usbvision->vdev, VIDIOC_G_FREQUENCY); vdev 1267 drivers/media/usb/usbvision/usbvision-video.c v4l2_disable_ioctl(&usbvision->vdev, VIDIOC_S_TUNER); vdev 1269 drivers/media/usb/usbvision/usbvision-video.c usbvision->vdev.device_caps = V4L2_CAP_VIDEO_CAPTURE | vdev 1272 drivers/media/usb/usbvision/usbvision-video.c usbvision->vdev.device_caps |= V4L2_CAP_TUNER; vdev 1274 drivers/media/usb/usbvision/usbvision-video.c if (video_register_device(&usbvision->vdev, VFL_TYPE_GRABBER, video_nr) < 0) vdev 1277 drivers/media/usb/usbvision/usbvision-video.c usbvision->nr, video_device_node_name(&usbvision->vdev)); vdev 1356 drivers/media/usb/usbvision/usbvision-video.c usbvision_remove_sysfs(&usbvision->vdev); vdev 1535 drivers/media/usb/usbvision/usbvision-video.c usbvision_create_sysfs(&usbvision->vdev); vdev 347 drivers/media/usb/usbvision/usbvision.h struct video_device vdev; /* Video Device */ vdev 1929 drivers/media/usb/uvc/uvc_driver.c static void uvc_release(struct video_device *vdev) vdev 1931 drivers/media/usb/uvc/uvc_driver.c struct uvc_streaming *stream = video_get_drvdata(vdev); vdev 1945 drivers/media/usb/uvc/uvc_driver.c if (!video_is_registered(&stream->vdev)) vdev 1948 drivers/media/usb/uvc/uvc_driver.c video_unregister_device(&stream->vdev); vdev 1949 drivers/media/usb/uvc/uvc_driver.c video_unregister_device(&stream->meta.vdev); vdev 1956 drivers/media/usb/uvc/uvc_driver.c if (dev->vdev.dev) vdev 1957 drivers/media/usb/uvc/uvc_driver.c v4l2_device_unregister(&dev->vdev); vdev 1966 drivers/media/usb/uvc/uvc_driver.c struct video_device *vdev, vdev 1986 drivers/media/usb/uvc/uvc_driver.c vdev->v4l2_dev = &dev->vdev; vdev 1987 drivers/media/usb/uvc/uvc_driver.c vdev->fops = fops; vdev 1988 drivers/media/usb/uvc/uvc_driver.c vdev->ioctl_ops = ioctl_ops; vdev 1989 drivers/media/usb/uvc/uvc_driver.c vdev->release = uvc_release; vdev 1990 drivers/media/usb/uvc/uvc_driver.c vdev->prio = &stream->chain->prio; vdev 1992 drivers/media/usb/uvc/uvc_driver.c vdev->vfl_dir = VFL_DIR_TX; vdev 1994 drivers/media/usb/uvc/uvc_driver.c vdev->vfl_dir = VFL_DIR_RX; vdev 1999 drivers/media/usb/uvc/uvc_driver.c vdev->device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; vdev 2002 drivers/media/usb/uvc/uvc_driver.c vdev->device_caps = V4L2_CAP_VIDEO_OUTPUT | V4L2_CAP_STREAMING; vdev 2005 drivers/media/usb/uvc/uvc_driver.c vdev->device_caps = V4L2_CAP_META_CAPTURE | V4L2_CAP_STREAMING; vdev 2009 drivers/media/usb/uvc/uvc_driver.c strscpy(vdev->name, dev->name, sizeof(vdev->name)); vdev 2015 drivers/media/usb/uvc/uvc_driver.c video_set_drvdata(vdev, stream); vdev 2017 drivers/media/usb/uvc/uvc_driver.c ret = video_register_device(vdev, VFL_TYPE_GRABBER, -1); vdev 2050 drivers/media/usb/uvc/uvc_driver.c return uvc_register_video_device(dev, stream, &stream->vdev, vdev 2086 drivers/media/usb/uvc/uvc_driver.c term->vdev = &stream->vdev; vdev 2193 drivers/media/usb/uvc/uvc_driver.c dev->vdev.mdev = &dev->mdev; vdev 2217 drivers/media/usb/uvc/uvc_driver.c if (v4l2_device_register(&intf->dev, &dev->vdev) < 0) vdev 26 drivers/media/usb/uvc/uvc_entity.c ? (entity->vdev ? &entity->vdev->entity : NULL) vdev 44 drivers/media/usb/uvc/uvc_entity.c ? (remote->vdev ? &remote->vdev->entity : NULL) vdev 66 drivers/media/usb/uvc/uvc_entity.c else if (entity->vdev != NULL) vdev 67 drivers/media/usb/uvc/uvc_entity.c media_entity_cleanup(&entity->vdev->entity); vdev 86 drivers/media/usb/uvc/uvc_entity.c ret = v4l2_device_register_subdev(&chain->dev->vdev, vdev 88 drivers/media/usb/uvc/uvc_entity.c } else if (entity->vdev != NULL) { vdev 89 drivers/media/usb/uvc/uvc_entity.c ret = media_entity_pads_init(&entity->vdev->entity, vdev 92 drivers/media/usb/uvc/uvc_entity.c entity->vdev->entity.flags |= MEDIA_ENT_FL_DEFAULT; vdev 29 drivers/media/usb/uvc/uvc_metadata.c struct uvc_streaming *stream = video_get_drvdata(vfh->vdev); vdev 33 drivers/media/usb/uvc/uvc_metadata.c strscpy(cap->card, vfh->vdev->name, sizeof(cap->card)); vdev 45 drivers/media/usb/uvc/uvc_metadata.c struct uvc_streaming *stream = video_get_drvdata(vfh->vdev); vdev 48 drivers/media/usb/uvc/uvc_metadata.c if (format->type != vfh->vdev->queue->type) vdev 63 drivers/media/usb/uvc/uvc_metadata.c struct uvc_streaming *stream = video_get_drvdata(vfh->vdev); vdev 68 drivers/media/usb/uvc/uvc_metadata.c if (format->type != vfh->vdev->queue->type) vdev 84 drivers/media/usb/uvc/uvc_metadata.c struct uvc_streaming *stream = video_get_drvdata(vfh->vdev); vdev 113 drivers/media/usb/uvc/uvc_metadata.c struct uvc_streaming *stream = video_get_drvdata(vfh->vdev); vdev 117 drivers/media/usb/uvc/uvc_metadata.c if (fdesc->type != vfh->vdev->queue->type || vdev 123 drivers/media/usb/uvc/uvc_metadata.c fdesc->type = vfh->vdev->queue->type; vdev 162 drivers/media/usb/uvc/uvc_metadata.c struct video_device *vdev = &stream->meta.vdev; vdev 171 drivers/media/usb/uvc/uvc_metadata.c vdev->queue = &queue->queue; vdev 173 drivers/media/usb/uvc/uvc_metadata.c return uvc_register_video_device(dev, stream, vdev, queue, vdev 542 drivers/media/usb/uvc/uvc_v4l2.c v4l2_fh_init(&handle->vfh, &stream->vdev); vdev 582 drivers/media/usb/uvc/uvc_v4l2.c struct video_device *vdev = video_devdata(file); vdev 588 drivers/media/usb/uvc/uvc_v4l2.c strscpy(cap->card, vdev->name, sizeof(cap->card)); vdev 748 drivers/media/usb/uvc/uvc_v4l2.c stream->vdev.v4l2_dev->mdev, buf); vdev 1499 drivers/media/usb/uvc/uvc_video.c struct vb2_queue *vb2_qmeta = stream->meta.vdev.queue; vdev 305 drivers/media/usb/uvc/uvcvideo.h struct video_device *vdev; vdev 538 drivers/media/usb/uvc/uvcvideo.h struct video_device vdev; vdev 570 drivers/media/usb/uvc/uvcvideo.h struct video_device vdev; vdev 652 drivers/media/usb/uvc/uvcvideo.h struct v4l2_device vdev; vdev 809 drivers/media/usb/uvc/uvcvideo.h struct video_device *vdev, vdev 162 drivers/media/usb/zr364xx/zr364xx.c struct video_device vdev; /* v4l video device */ vdev 1428 drivers/media/usb/zr364xx/zr364xx.c cam->vdev = zr364xx_template; vdev 1429 drivers/media/usb/zr364xx/zr364xx.c cam->vdev.lock = &cam->lock; vdev 1430 drivers/media/usb/zr364xx/zr364xx.c cam->vdev.v4l2_dev = &cam->v4l2_dev; vdev 1431 drivers/media/usb/zr364xx/zr364xx.c cam->vdev.ctrl_handler = &cam->ctrl_handler; vdev 1432 drivers/media/usb/zr364xx/zr364xx.c video_set_drvdata(&cam->vdev, cam); vdev 1522 drivers/media/usb/zr364xx/zr364xx.c err = video_register_device(&cam->vdev, VFL_TYPE_GRABBER, -1); vdev 1529 drivers/media/usb/zr364xx/zr364xx.c video_device_node_name(&cam->vdev)); vdev 1547 drivers/media/usb/zr364xx/zr364xx.c video_unregister_device(&cam->vdev); vdev 187 drivers/media/v4l2-core/v4l2-common.c int v4l2_g_parm_cap(struct video_device *vdev, vdev 197 drivers/media/v4l2-core/v4l2-common.c if (vdev->device_caps & V4L2_CAP_READWRITE) vdev 208 drivers/media/v4l2-core/v4l2-common.c int v4l2_s_parm_cap(struct video_device *vdev, vdev 221 drivers/media/v4l2-core/v4l2-common.c if (vdev->device_caps & V4L2_CAP_READWRITE) vdev 865 drivers/media/v4l2-core/v4l2-compat-ioctl32.c struct video_device *vdev = video_devdata(file); vdev 869 drivers/media/v4l2-core/v4l2-compat-ioctl32.c const struct v4l2_ioctl_ops *ops = vdev->ioctl_ops; vdev 871 drivers/media/v4l2-core/v4l2-compat-ioctl32.c if (test_bit(V4L2_FL_USES_V4L2_FH, &vdev->flags)) vdev 876 drivers/media/v4l2-core/v4l2-compat-ioctl32.c else if (vdev->ctrl_handler) vdev 877 drivers/media/v4l2-core/v4l2-compat-ioctl32.c hdl = vdev->ctrl_handler; vdev 1459 drivers/media/v4l2-core/v4l2-compat-ioctl32.c struct video_device *vdev = video_devdata(file); vdev 1467 drivers/media/v4l2-core/v4l2-compat-ioctl32.c else if (vdev->fops->compat_ioctl32) vdev 1468 drivers/media/v4l2-core/v4l2-compat-ioctl32.c ret = vdev->fops->compat_ioctl32(file, cmd, arg); vdev 21 drivers/media/v4l2-core/v4l2-ctrls.c #define dprintk(vdev, fmt, arg...) do { \ vdev 22 drivers/media/v4l2-core/v4l2-ctrls.c if (!WARN_ON(!(vdev)) && ((vdev)->dev_debug & V4L2_DEV_DEBUG_CTRL)) \ vdev 24 drivers/media/v4l2-core/v4l2-ctrls.c __func__, video_device_node_name(vdev), ##arg); \ vdev 3298 drivers/media/v4l2-core/v4l2-ctrls.c struct video_device *vdev, vdev 3317 drivers/media/v4l2-core/v4l2-ctrls.c dprintk(vdev, vdev 3326 drivers/media/v4l2-core/v4l2-ctrls.c dprintk(vdev, vdev 3332 drivers/media/v4l2-core/v4l2-ctrls.c dprintk(vdev, "cannot find control id 0x%x\n", id); vdev 3338 drivers/media/v4l2-core/v4l2-ctrls.c dprintk(vdev, "control id 0x%x is disabled\n", id); vdev 3358 drivers/media/v4l2-core/v4l2-ctrls.c dprintk(vdev, vdev 3422 drivers/media/v4l2-core/v4l2-ctrls.c struct video_device *vdev) vdev 3448 drivers/media/v4l2-core/v4l2-ctrls.c ret = prepare_ext_ctrls(hdl, cs, helpers, vdev, true); vdev 3541 drivers/media/v4l2-core/v4l2-ctrls.c int v4l2_g_ext_ctrls(struct v4l2_ctrl_handler *hdl, struct video_device *vdev, vdev 3578 drivers/media/v4l2-core/v4l2-ctrls.c ret = v4l2_g_ext_ctrls_common(hdl, cs, vdev); vdev 3722 drivers/media/v4l2-core/v4l2-ctrls.c struct video_device *vdev, vdev 3736 drivers/media/v4l2-core/v4l2-ctrls.c dprintk(vdev, vdev 3748 drivers/media/v4l2-core/v4l2-ctrls.c dprintk(vdev, vdev 3788 drivers/media/v4l2-core/v4l2-ctrls.c struct video_device *vdev, bool set) vdev 3799 drivers/media/v4l2-core/v4l2-ctrls.c dprintk(vdev, "%s: cannot change default value\n", vdev 3800 drivers/media/v4l2-core/v4l2-ctrls.c video_device_node_name(vdev)); vdev 3807 drivers/media/v4l2-core/v4l2-ctrls.c dprintk(vdev, "%s: invalid null control handler\n", vdev 3808 drivers/media/v4l2-core/v4l2-ctrls.c video_device_node_name(vdev)); vdev 3821 drivers/media/v4l2-core/v4l2-ctrls.c ret = prepare_ext_ctrls(hdl, cs, helpers, vdev, false); vdev 3823 drivers/media/v4l2-core/v4l2-ctrls.c ret = validate_ctrls(cs, helpers, vdev, set); vdev 3909 drivers/media/v4l2-core/v4l2-ctrls.c struct video_device *vdev, vdev 3919 drivers/media/v4l2-core/v4l2-ctrls.c dprintk(vdev, "%s: missing media device\n", vdev 3920 drivers/media/v4l2-core/v4l2-ctrls.c video_device_node_name(vdev)); vdev 3925 drivers/media/v4l2-core/v4l2-ctrls.c dprintk(vdev, "%s: invalid request fd %d\n", vdev 3926 drivers/media/v4l2-core/v4l2-ctrls.c video_device_node_name(vdev), cs->request_fd); vdev 3932 drivers/media/v4l2-core/v4l2-ctrls.c dprintk(vdev, "%s: cannot find request fd %d\n", vdev 3933 drivers/media/v4l2-core/v4l2-ctrls.c video_device_node_name(vdev), cs->request_fd); vdev 3939 drivers/media/v4l2-core/v4l2-ctrls.c dprintk(vdev, "%s: cannot lock request fd %d\n", vdev 3940 drivers/media/v4l2-core/v4l2-ctrls.c video_device_node_name(vdev), cs->request_fd); vdev 3947 drivers/media/v4l2-core/v4l2-ctrls.c dprintk(vdev, vdev 3949 drivers/media/v4l2-core/v4l2-ctrls.c video_device_node_name(vdev), vdev 3959 drivers/media/v4l2-core/v4l2-ctrls.c ret = try_set_ext_ctrls_common(fh, hdl, cs, vdev, set); vdev 3961 drivers/media/v4l2-core/v4l2-ctrls.c dprintk(vdev, vdev 3963 drivers/media/v4l2-core/v4l2-ctrls.c video_device_node_name(vdev), ret); vdev 3975 drivers/media/v4l2-core/v4l2-ctrls.c struct video_device *vdev, vdev 3979 drivers/media/v4l2-core/v4l2-ctrls.c return try_set_ext_ctrls(NULL, hdl, vdev, mdev, cs, false); vdev 3985 drivers/media/v4l2-core/v4l2-ctrls.c struct video_device *vdev, vdev 3989 drivers/media/v4l2-core/v4l2-ctrls.c return try_set_ext_ctrls(fh, hdl, vdev, mdev, cs, true); vdev 48 drivers/media/v4l2-core/v4l2-dev.c struct video_device *vdev = to_video_device(cd); vdev 50 drivers/media/v4l2-core/v4l2-dev.c return sprintf(buf, "%i\n", vdev->index); vdev 57 drivers/media/v4l2-core/v4l2-dev.c struct video_device *vdev = to_video_device(cd); vdev 59 drivers/media/v4l2-core/v4l2-dev.c return sprintf(buf, "%i\n", vdev->dev_debug); vdev 65 drivers/media/v4l2-core/v4l2-dev.c struct video_device *vdev = to_video_device(cd); vdev 73 drivers/media/v4l2-core/v4l2-dev.c vdev->dev_debug = value; vdev 81 drivers/media/v4l2-core/v4l2-dev.c struct video_device *vdev = to_video_device(cd); vdev 83 drivers/media/v4l2-core/v4l2-dev.c return sprintf(buf, "%.*s\n", (int)sizeof(vdev->name), vdev->name); vdev 127 drivers/media/v4l2-core/v4l2-dev.c static inline void devnode_set(struct video_device *vdev) vdev 129 drivers/media/v4l2-core/v4l2-dev.c set_bit(vdev->num, devnode_bits(vdev->vfl_type)); vdev 133 drivers/media/v4l2-core/v4l2-dev.c static inline void devnode_clear(struct video_device *vdev) vdev 135 drivers/media/v4l2-core/v4l2-dev.c clear_bit(vdev->num, devnode_bits(vdev->vfl_type)); vdev 139 drivers/media/v4l2-core/v4l2-dev.c static inline int devnode_find(struct video_device *vdev, int from, int to) vdev 141 drivers/media/v4l2-core/v4l2-dev.c return find_next_zero_bit(devnode_bits(vdev->vfl_type), to, from); vdev 150 drivers/media/v4l2-core/v4l2-dev.c void video_device_release(struct video_device *vdev) vdev 152 drivers/media/v4l2-core/v4l2-dev.c kfree(vdev); vdev 156 drivers/media/v4l2-core/v4l2-dev.c void video_device_release_empty(struct video_device *vdev) vdev 163 drivers/media/v4l2-core/v4l2-dev.c static inline void video_get(struct video_device *vdev) vdev 165 drivers/media/v4l2-core/v4l2-dev.c get_device(&vdev->dev); vdev 168 drivers/media/v4l2-core/v4l2-dev.c static inline void video_put(struct video_device *vdev) vdev 170 drivers/media/v4l2-core/v4l2-dev.c put_device(&vdev->dev); vdev 176 drivers/media/v4l2-core/v4l2-dev.c struct video_device *vdev = to_video_device(cd); vdev 177 drivers/media/v4l2-core/v4l2-dev.c struct v4l2_device *v4l2_dev = vdev->v4l2_dev; vdev 180 drivers/media/v4l2-core/v4l2-dev.c if (WARN_ON(video_devices[vdev->minor] != vdev)) { vdev 187 drivers/media/v4l2-core/v4l2-dev.c video_devices[vdev->minor] = NULL; vdev 190 drivers/media/v4l2-core/v4l2-dev.c cdev_del(vdev->cdev); vdev 193 drivers/media/v4l2-core/v4l2-dev.c vdev->cdev = NULL; vdev 196 drivers/media/v4l2-core/v4l2-dev.c devnode_clear(vdev); vdev 201 drivers/media/v4l2-core/v4l2-dev.c if (v4l2_dev->mdev && vdev->vfl_dir != VFL_DIR_M2M) { vdev 203 drivers/media/v4l2-core/v4l2-dev.c media_devnode_remove(vdev->intf_devnode); vdev 204 drivers/media/v4l2-core/v4l2-dev.c if (vdev->entity.function != MEDIA_ENT_F_UNKNOWN) vdev 205 drivers/media/v4l2-core/v4l2-dev.c media_device_unregister_entity(&vdev->entity); vdev 222 drivers/media/v4l2-core/v4l2-dev.c vdev->release(vdev); vdev 307 drivers/media/v4l2-core/v4l2-dev.c struct video_device *vdev = video_devdata(filp); vdev 310 drivers/media/v4l2-core/v4l2-dev.c if (!vdev->fops->read) vdev 312 drivers/media/v4l2-core/v4l2-dev.c if (video_is_registered(vdev)) vdev 313 drivers/media/v4l2-core/v4l2-dev.c ret = vdev->fops->read(filp, buf, sz, off); vdev 314 drivers/media/v4l2-core/v4l2-dev.c if ((vdev->dev_debug & V4L2_DEV_DEBUG_FOP) && vdev 315 drivers/media/v4l2-core/v4l2-dev.c (vdev->dev_debug & V4L2_DEV_DEBUG_STREAMING)) vdev 317 drivers/media/v4l2-core/v4l2-dev.c video_device_node_name(vdev), sz, ret); vdev 324 drivers/media/v4l2-core/v4l2-dev.c struct video_device *vdev = video_devdata(filp); vdev 327 drivers/media/v4l2-core/v4l2-dev.c if (!vdev->fops->write) vdev 329 drivers/media/v4l2-core/v4l2-dev.c if (video_is_registered(vdev)) vdev 330 drivers/media/v4l2-core/v4l2-dev.c ret = vdev->fops->write(filp, buf, sz, off); vdev 331 drivers/media/v4l2-core/v4l2-dev.c if ((vdev->dev_debug & V4L2_DEV_DEBUG_FOP) && vdev 332 drivers/media/v4l2-core/v4l2-dev.c (vdev->dev_debug & V4L2_DEV_DEBUG_STREAMING)) vdev 334 drivers/media/v4l2-core/v4l2-dev.c video_device_node_name(vdev), sz, ret); vdev 340 drivers/media/v4l2-core/v4l2-dev.c struct video_device *vdev = video_devdata(filp); vdev 343 drivers/media/v4l2-core/v4l2-dev.c if (!vdev->fops->poll) vdev 345 drivers/media/v4l2-core/v4l2-dev.c if (video_is_registered(vdev)) vdev 346 drivers/media/v4l2-core/v4l2-dev.c res = vdev->fops->poll(filp, poll); vdev 347 drivers/media/v4l2-core/v4l2-dev.c if (vdev->dev_debug & V4L2_DEV_DEBUG_POLL) vdev 349 drivers/media/v4l2-core/v4l2-dev.c video_device_node_name(vdev), res); vdev 355 drivers/media/v4l2-core/v4l2-dev.c struct video_device *vdev = video_devdata(filp); vdev 358 drivers/media/v4l2-core/v4l2-dev.c if (vdev->fops->unlocked_ioctl) { vdev 359 drivers/media/v4l2-core/v4l2-dev.c if (video_is_registered(vdev)) vdev 360 drivers/media/v4l2-core/v4l2-dev.c ret = vdev->fops->unlocked_ioctl(filp, cmd, arg); vdev 374 drivers/media/v4l2-core/v4l2-dev.c struct video_device *vdev = video_devdata(filp); vdev 377 drivers/media/v4l2-core/v4l2-dev.c if (!vdev->fops->get_unmapped_area) vdev 379 drivers/media/v4l2-core/v4l2-dev.c if (!video_is_registered(vdev)) vdev 381 drivers/media/v4l2-core/v4l2-dev.c ret = vdev->fops->get_unmapped_area(filp, addr, len, pgoff, flags); vdev 382 drivers/media/v4l2-core/v4l2-dev.c if (vdev->dev_debug & V4L2_DEV_DEBUG_FOP) vdev 384 drivers/media/v4l2-core/v4l2-dev.c video_device_node_name(vdev), ret); vdev 391 drivers/media/v4l2-core/v4l2-dev.c struct video_device *vdev = video_devdata(filp); vdev 394 drivers/media/v4l2-core/v4l2-dev.c if (!vdev->fops->mmap) vdev 396 drivers/media/v4l2-core/v4l2-dev.c if (video_is_registered(vdev)) vdev 397 drivers/media/v4l2-core/v4l2-dev.c ret = vdev->fops->mmap(filp, vm); vdev 398 drivers/media/v4l2-core/v4l2-dev.c if (vdev->dev_debug & V4L2_DEV_DEBUG_FOP) vdev 400 drivers/media/v4l2-core/v4l2-dev.c video_device_node_name(vdev), ret); vdev 407 drivers/media/v4l2-core/v4l2-dev.c struct video_device *vdev; vdev 412 drivers/media/v4l2-core/v4l2-dev.c vdev = video_devdata(filp); vdev 414 drivers/media/v4l2-core/v4l2-dev.c if (vdev == NULL || !video_is_registered(vdev)) { vdev 419 drivers/media/v4l2-core/v4l2-dev.c video_get(vdev); vdev 421 drivers/media/v4l2-core/v4l2-dev.c if (vdev->fops->open) { vdev 422 drivers/media/v4l2-core/v4l2-dev.c if (video_is_registered(vdev)) vdev 423 drivers/media/v4l2-core/v4l2-dev.c ret = vdev->fops->open(filp); vdev 428 drivers/media/v4l2-core/v4l2-dev.c if (vdev->dev_debug & V4L2_DEV_DEBUG_FOP) vdev 430 drivers/media/v4l2-core/v4l2-dev.c video_device_node_name(vdev), ret); vdev 433 drivers/media/v4l2-core/v4l2-dev.c video_put(vdev); vdev 440 drivers/media/v4l2-core/v4l2-dev.c struct video_device *vdev = video_devdata(filp); vdev 449 drivers/media/v4l2-core/v4l2-dev.c if (vdev->fops->release) { vdev 450 drivers/media/v4l2-core/v4l2-dev.c if (v4l2_device_supports_requests(vdev->v4l2_dev)) { vdev 451 drivers/media/v4l2-core/v4l2-dev.c mutex_lock(&vdev->v4l2_dev->mdev->req_queue_mutex); vdev 452 drivers/media/v4l2-core/v4l2-dev.c ret = vdev->fops->release(filp); vdev 453 drivers/media/v4l2-core/v4l2-dev.c mutex_unlock(&vdev->v4l2_dev->mdev->req_queue_mutex); vdev 455 drivers/media/v4l2-core/v4l2-dev.c ret = vdev->fops->release(filp); vdev 459 drivers/media/v4l2-core/v4l2-dev.c if (vdev->dev_debug & V4L2_DEV_DEBUG_FOP) vdev 461 drivers/media/v4l2-core/v4l2-dev.c video_device_node_name(vdev)); vdev 465 drivers/media/v4l2-core/v4l2-dev.c video_put(vdev); vdev 498 drivers/media/v4l2-core/v4l2-dev.c static int get_index(struct video_device *vdev) vdev 509 drivers/media/v4l2-core/v4l2-dev.c video_devices[i]->v4l2_dev == vdev->v4l2_dev) { vdev 534 drivers/media/v4l2-core/v4l2-dev.c static void determine_valid_ioctls(struct video_device *vdev) vdev 537 drivers/media/v4l2-core/v4l2-dev.c const struct v4l2_ioctl_ops *ops = vdev->ioctl_ops; vdev 538 drivers/media/v4l2-core/v4l2-dev.c bool is_vid = vdev->vfl_type == VFL_TYPE_GRABBER; vdev 539 drivers/media/v4l2-core/v4l2-dev.c bool is_vbi = vdev->vfl_type == VFL_TYPE_VBI; vdev 540 drivers/media/v4l2-core/v4l2-dev.c bool is_radio = vdev->vfl_type == VFL_TYPE_RADIO; vdev 541 drivers/media/v4l2-core/v4l2-dev.c bool is_sdr = vdev->vfl_type == VFL_TYPE_SDR; vdev 542 drivers/media/v4l2-core/v4l2-dev.c bool is_tch = vdev->vfl_type == VFL_TYPE_TOUCH; vdev 543 drivers/media/v4l2-core/v4l2-dev.c bool is_rx = vdev->vfl_dir != VFL_DIR_TX; vdev 544 drivers/media/v4l2-core/v4l2-dev.c bool is_tx = vdev->vfl_dir != VFL_DIR_RX; vdev 558 drivers/media/v4l2-core/v4l2-dev.c if (vdev->ctrl_handler || ops->vidioc_queryctrl) vdev 560 drivers/media/v4l2-core/v4l2-dev.c if (vdev->ctrl_handler || ops->vidioc_query_ext_ctrl) vdev 562 drivers/media/v4l2-core/v4l2-dev.c if (vdev->ctrl_handler || ops->vidioc_g_ctrl || ops->vidioc_g_ext_ctrls) vdev 564 drivers/media/v4l2-core/v4l2-dev.c if (vdev->ctrl_handler || ops->vidioc_s_ctrl || ops->vidioc_s_ext_ctrls) vdev 566 drivers/media/v4l2-core/v4l2-dev.c if (vdev->ctrl_handler || ops->vidioc_g_ext_ctrls) vdev 568 drivers/media/v4l2-core/v4l2-dev.c if (vdev->ctrl_handler || ops->vidioc_s_ext_ctrls) vdev 570 drivers/media/v4l2-core/v4l2-dev.c if (vdev->ctrl_handler || ops->vidioc_try_ext_ctrls) vdev 572 drivers/media/v4l2-core/v4l2-dev.c if (vdev->ctrl_handler || ops->vidioc_querymenu) vdev 722 drivers/media/v4l2-core/v4l2-dev.c if (ops->vidioc_g_parm || (vdev->vfl_type == VFL_TYPE_GRABBER && vdev 744 drivers/media/v4l2-core/v4l2-dev.c bitmap_andnot(vdev->valid_ioctls, valid_ioctls, vdev->valid_ioctls, vdev 748 drivers/media/v4l2-core/v4l2-dev.c static int video_register_media_controller(struct video_device *vdev) vdev 757 drivers/media/v4l2-core/v4l2-dev.c if (!vdev->v4l2_dev->mdev || vdev->vfl_dir == VFL_DIR_M2M) vdev 760 drivers/media/v4l2-core/v4l2-dev.c vdev->entity.obj_type = MEDIA_ENTITY_TYPE_VIDEO_DEVICE; vdev 761 drivers/media/v4l2-core/v4l2-dev.c vdev->entity.function = MEDIA_ENT_F_UNKNOWN; vdev 763 drivers/media/v4l2-core/v4l2-dev.c switch (vdev->vfl_type) { vdev 766 drivers/media/v4l2-core/v4l2-dev.c vdev->entity.function = MEDIA_ENT_F_IO_V4L; vdev 770 drivers/media/v4l2-core/v4l2-dev.c vdev->entity.function = MEDIA_ENT_F_IO_VBI; vdev 774 drivers/media/v4l2-core/v4l2-dev.c vdev->entity.function = MEDIA_ENT_F_IO_SWRADIO; vdev 778 drivers/media/v4l2-core/v4l2-dev.c vdev->entity.function = MEDIA_ENT_F_IO_V4L; vdev 796 drivers/media/v4l2-core/v4l2-dev.c if (vdev->entity.function != MEDIA_ENT_F_UNKNOWN) { vdev 797 drivers/media/v4l2-core/v4l2-dev.c vdev->entity.name = vdev->name; vdev 800 drivers/media/v4l2-core/v4l2-dev.c vdev->entity.info.dev.major = VIDEO_MAJOR; vdev 801 drivers/media/v4l2-core/v4l2-dev.c vdev->entity.info.dev.minor = vdev->minor; vdev 803 drivers/media/v4l2-core/v4l2-dev.c ret = media_device_register_entity(vdev->v4l2_dev->mdev, vdev 804 drivers/media/v4l2-core/v4l2-dev.c &vdev->entity); vdev 812 drivers/media/v4l2-core/v4l2-dev.c vdev->intf_devnode = media_devnode_create(vdev->v4l2_dev->mdev, vdev 815 drivers/media/v4l2-core/v4l2-dev.c vdev->minor); vdev 816 drivers/media/v4l2-core/v4l2-dev.c if (!vdev->intf_devnode) { vdev 817 drivers/media/v4l2-core/v4l2-dev.c media_device_unregister_entity(&vdev->entity); vdev 821 drivers/media/v4l2-core/v4l2-dev.c if (vdev->entity.function != MEDIA_ENT_F_UNKNOWN) { vdev 824 drivers/media/v4l2-core/v4l2-dev.c link = media_create_intf_link(&vdev->entity, vdev 825 drivers/media/v4l2-core/v4l2-dev.c &vdev->intf_devnode->intf, vdev 829 drivers/media/v4l2-core/v4l2-dev.c media_devnode_remove(vdev->intf_devnode); vdev 830 drivers/media/v4l2-core/v4l2-dev.c media_device_unregister_entity(&vdev->entity); vdev 841 drivers/media/v4l2-core/v4l2-dev.c int __video_register_device(struct video_device *vdev, vdev 854 drivers/media/v4l2-core/v4l2-dev.c vdev->minor = -1; vdev 857 drivers/media/v4l2-core/v4l2-dev.c if (WARN_ON(!vdev->release)) vdev 860 drivers/media/v4l2-core/v4l2-dev.c if (WARN_ON(!vdev->v4l2_dev)) vdev 863 drivers/media/v4l2-core/v4l2-dev.c if (WARN_ON(type != VFL_TYPE_SUBDEV && !vdev->device_caps)) vdev 867 drivers/media/v4l2-core/v4l2-dev.c spin_lock_init(&vdev->fh_lock); vdev 868 drivers/media/v4l2-core/v4l2-dev.c INIT_LIST_HEAD(&vdev->fh_list); vdev 897 drivers/media/v4l2-core/v4l2-dev.c vdev->vfl_type = type; vdev 898 drivers/media/v4l2-core/v4l2-dev.c vdev->cdev = NULL; vdev 899 drivers/media/v4l2-core/v4l2-dev.c if (vdev->dev_parent == NULL) vdev 900 drivers/media/v4l2-core/v4l2-dev.c vdev->dev_parent = vdev->v4l2_dev->dev; vdev 901 drivers/media/v4l2-core/v4l2-dev.c if (vdev->ctrl_handler == NULL) vdev 902 drivers/media/v4l2-core/v4l2-dev.c vdev->ctrl_handler = vdev->v4l2_dev->ctrl_handler; vdev 905 drivers/media/v4l2-core/v4l2-dev.c if (vdev->prio == NULL) vdev 906 drivers/media/v4l2-core/v4l2-dev.c vdev->prio = &vdev->v4l2_dev->prio; vdev 937 drivers/media/v4l2-core/v4l2-dev.c nr = devnode_find(vdev, nr == -1 ? 0 : nr, minor_cnt); vdev 939 drivers/media/v4l2-core/v4l2-dev.c nr = devnode_find(vdev, 0, minor_cnt); vdev 960 drivers/media/v4l2-core/v4l2-dev.c vdev->minor = i + minor_offset; vdev 961 drivers/media/v4l2-core/v4l2-dev.c vdev->num = nr; vdev 964 drivers/media/v4l2-core/v4l2-dev.c if (WARN_ON(video_devices[vdev->minor])) { vdev 969 drivers/media/v4l2-core/v4l2-dev.c devnode_set(vdev); vdev 970 drivers/media/v4l2-core/v4l2-dev.c vdev->index = get_index(vdev); vdev 971 drivers/media/v4l2-core/v4l2-dev.c video_devices[vdev->minor] = vdev; vdev 974 drivers/media/v4l2-core/v4l2-dev.c if (vdev->ioctl_ops) vdev 975 drivers/media/v4l2-core/v4l2-dev.c determine_valid_ioctls(vdev); vdev 978 drivers/media/v4l2-core/v4l2-dev.c vdev->cdev = cdev_alloc(); vdev 979 drivers/media/v4l2-core/v4l2-dev.c if (vdev->cdev == NULL) { vdev 983 drivers/media/v4l2-core/v4l2-dev.c vdev->cdev->ops = &v4l2_fops; vdev 984 drivers/media/v4l2-core/v4l2-dev.c vdev->cdev->owner = owner; vdev 985 drivers/media/v4l2-core/v4l2-dev.c ret = cdev_add(vdev->cdev, MKDEV(VIDEO_MAJOR, vdev->minor), 1); vdev 988 drivers/media/v4l2-core/v4l2-dev.c kfree(vdev->cdev); vdev 989 drivers/media/v4l2-core/v4l2-dev.c vdev->cdev = NULL; vdev 994 drivers/media/v4l2-core/v4l2-dev.c vdev->dev.class = &video_class; vdev 995 drivers/media/v4l2-core/v4l2-dev.c vdev->dev.devt = MKDEV(VIDEO_MAJOR, vdev->minor); vdev 996 drivers/media/v4l2-core/v4l2-dev.c vdev->dev.parent = vdev->dev_parent; vdev 997 drivers/media/v4l2-core/v4l2-dev.c dev_set_name(&vdev->dev, "%s%d", name_base, vdev->num); vdev 998 drivers/media/v4l2-core/v4l2-dev.c ret = device_register(&vdev->dev); vdev 1005 drivers/media/v4l2-core/v4l2-dev.c vdev->dev.release = v4l2_device_release; vdev 1007 drivers/media/v4l2-core/v4l2-dev.c if (nr != -1 && nr != vdev->num && warn_if_nr_in_use) vdev 1009 drivers/media/v4l2-core/v4l2-dev.c name_base, nr, video_device_node_name(vdev)); vdev 1012 drivers/media/v4l2-core/v4l2-dev.c v4l2_device_get(vdev->v4l2_dev); vdev 1015 drivers/media/v4l2-core/v4l2-dev.c ret = video_register_media_controller(vdev); vdev 1018 drivers/media/v4l2-core/v4l2-dev.c set_bit(V4L2_FL_REGISTERED, &vdev->flags); vdev 1024 drivers/media/v4l2-core/v4l2-dev.c if (vdev->cdev) vdev 1025 drivers/media/v4l2-core/v4l2-dev.c cdev_del(vdev->cdev); vdev 1026 drivers/media/v4l2-core/v4l2-dev.c video_devices[vdev->minor] = NULL; vdev 1027 drivers/media/v4l2-core/v4l2-dev.c devnode_clear(vdev); vdev 1030 drivers/media/v4l2-core/v4l2-dev.c vdev->minor = -1; vdev 1042 drivers/media/v4l2-core/v4l2-dev.c void video_unregister_device(struct video_device *vdev) vdev 1045 drivers/media/v4l2-core/v4l2-dev.c if (!vdev || !video_is_registered(vdev)) vdev 1052 drivers/media/v4l2-core/v4l2-dev.c clear_bit(V4L2_FL_REGISTERED, &vdev->flags); vdev 1054 drivers/media/v4l2-core/v4l2-dev.c device_unregister(&vdev->dev); vdev 186 drivers/media/v4l2-core/v4l2-device.c static void v4l2_device_release_subdev_node(struct video_device *vdev) vdev 188 drivers/media/v4l2-core/v4l2-device.c v4l2_subdev_release(video_get_drvdata(vdev)); vdev 189 drivers/media/v4l2-core/v4l2-device.c kfree(vdev); vdev 194 drivers/media/v4l2-core/v4l2-device.c struct video_device *vdev; vdev 208 drivers/media/v4l2-core/v4l2-device.c vdev = kzalloc(sizeof(*vdev), GFP_KERNEL); vdev 209 drivers/media/v4l2-core/v4l2-device.c if (!vdev) { vdev 214 drivers/media/v4l2-core/v4l2-device.c video_set_drvdata(vdev, sd); vdev 215 drivers/media/v4l2-core/v4l2-device.c strscpy(vdev->name, sd->name, sizeof(vdev->name)); vdev 216 drivers/media/v4l2-core/v4l2-device.c vdev->dev_parent = sd->dev; vdev 217 drivers/media/v4l2-core/v4l2-device.c vdev->v4l2_dev = v4l2_dev; vdev 218 drivers/media/v4l2-core/v4l2-device.c vdev->fops = &v4l2_subdev_fops; vdev 219 drivers/media/v4l2-core/v4l2-device.c vdev->release = v4l2_device_release_subdev_node; vdev 220 drivers/media/v4l2-core/v4l2-device.c vdev->ctrl_handler = sd->ctrl_handler; vdev 221 drivers/media/v4l2-core/v4l2-device.c err = __video_register_device(vdev, VFL_TYPE_SUBDEV, -1, 1, vdev 224 drivers/media/v4l2-core/v4l2-device.c kfree(vdev); vdev 227 drivers/media/v4l2-core/v4l2-device.c sd->devnode = vdev; vdev 230 drivers/media/v4l2-core/v4l2-device.c sd->entity.info.dev.minor = vdev->minor; vdev 233 drivers/media/v4l2-core/v4l2-device.c if (vdev->v4l2_dev->mdev) { vdev 237 drivers/media/v4l2-core/v4l2-device.c &vdev->intf_devnode->intf, vdev 32 drivers/media/v4l2-core/v4l2-event.c spin_lock_irqsave(&fh->vdev->fh_lock, flags); vdev 35 drivers/media/v4l2-core/v4l2-event.c spin_unlock_irqrestore(&fh->vdev->fh_lock, flags); vdev 51 drivers/media/v4l2-core/v4l2-event.c spin_unlock_irqrestore(&fh->vdev->fh_lock, flags); vdev 65 drivers/media/v4l2-core/v4l2-event.c if (fh->vdev->lock) vdev 66 drivers/media/v4l2-core/v4l2-event.c mutex_unlock(fh->vdev->lock); vdev 77 drivers/media/v4l2-core/v4l2-event.c if (fh->vdev->lock) vdev 78 drivers/media/v4l2-core/v4l2-event.c mutex_lock(fh->vdev->lock); vdev 90 drivers/media/v4l2-core/v4l2-event.c assert_spin_locked(&fh->vdev->fh_lock); vdev 150 drivers/media/v4l2-core/v4l2-event.c void v4l2_event_queue(struct video_device *vdev, const struct v4l2_event *ev) vdev 156 drivers/media/v4l2-core/v4l2-event.c if (vdev == NULL) vdev 161 drivers/media/v4l2-core/v4l2-event.c spin_lock_irqsave(&vdev->fh_lock, flags); vdev 163 drivers/media/v4l2-core/v4l2-event.c list_for_each_entry(fh, &vdev->fh_list, list) vdev 166 drivers/media/v4l2-core/v4l2-event.c spin_unlock_irqrestore(&vdev->fh_lock, flags); vdev 175 drivers/media/v4l2-core/v4l2-event.c spin_lock_irqsave(&fh->vdev->fh_lock, flags); vdev 177 drivers/media/v4l2-core/v4l2-event.c spin_unlock_irqrestore(&fh->vdev->fh_lock, flags); vdev 193 drivers/media/v4l2-core/v4l2-event.c assert_spin_locked(&fh->vdev->fh_lock); vdev 232 drivers/media/v4l2-core/v4l2-event.c spin_lock_irqsave(&fh->vdev->fh_lock, flags); vdev 236 drivers/media/v4l2-core/v4l2-event.c spin_unlock_irqrestore(&fh->vdev->fh_lock, flags); vdev 244 drivers/media/v4l2-core/v4l2-event.c spin_lock_irqsave(&fh->vdev->fh_lock, flags); vdev 246 drivers/media/v4l2-core/v4l2-event.c spin_unlock_irqrestore(&fh->vdev->fh_lock, flags); vdev 266 drivers/media/v4l2-core/v4l2-event.c spin_lock_irqsave(&fh->vdev->fh_lock, flags); vdev 273 drivers/media/v4l2-core/v4l2-event.c spin_unlock_irqrestore(&fh->vdev->fh_lock, flags); vdev 293 drivers/media/v4l2-core/v4l2-event.c spin_lock_irqsave(&fh->vdev->fh_lock, flags); vdev 299 drivers/media/v4l2-core/v4l2-event.c spin_unlock_irqrestore(&fh->vdev->fh_lock, flags); vdev 21 drivers/media/v4l2-core/v4l2-fh.c void v4l2_fh_init(struct v4l2_fh *fh, struct video_device *vdev) vdev 23 drivers/media/v4l2-core/v4l2-fh.c fh->vdev = vdev; vdev 25 drivers/media/v4l2-core/v4l2-fh.c fh->ctrl_handler = vdev->ctrl_handler; vdev 27 drivers/media/v4l2-core/v4l2-fh.c set_bit(V4L2_FL_USES_V4L2_FH, &fh->vdev->flags); vdev 33 drivers/media/v4l2-core/v4l2-fh.c set_bit(_IOC_NR(VIDIOC_G_PRIORITY), vdev->valid_ioctls); vdev 34 drivers/media/v4l2-core/v4l2-fh.c set_bit(_IOC_NR(VIDIOC_S_PRIORITY), vdev->valid_ioctls); vdev 48 drivers/media/v4l2-core/v4l2-fh.c v4l2_prio_open(fh->vdev->prio, &fh->prio); vdev 49 drivers/media/v4l2-core/v4l2-fh.c spin_lock_irqsave(&fh->vdev->fh_lock, flags); vdev 50 drivers/media/v4l2-core/v4l2-fh.c list_add(&fh->list, &fh->vdev->fh_list); vdev 51 drivers/media/v4l2-core/v4l2-fh.c spin_unlock_irqrestore(&fh->vdev->fh_lock, flags); vdev 57 drivers/media/v4l2-core/v4l2-fh.c struct video_device *vdev = video_devdata(filp); vdev 63 drivers/media/v4l2-core/v4l2-fh.c v4l2_fh_init(fh, vdev); vdev 73 drivers/media/v4l2-core/v4l2-fh.c spin_lock_irqsave(&fh->vdev->fh_lock, flags); vdev 75 drivers/media/v4l2-core/v4l2-fh.c spin_unlock_irqrestore(&fh->vdev->fh_lock, flags); vdev 76 drivers/media/v4l2-core/v4l2-fh.c v4l2_prio_close(fh->vdev->prio, fh->prio); vdev 82 drivers/media/v4l2-core/v4l2-fh.c if (fh->vdev == NULL) vdev 84 drivers/media/v4l2-core/v4l2-fh.c v4l_disable_media_source(fh->vdev); vdev 87 drivers/media/v4l2-core/v4l2-fh.c fh->vdev = NULL; vdev 109 drivers/media/v4l2-core/v4l2-fh.c if (fh == NULL || fh->vdev == NULL) vdev 111 drivers/media/v4l2-core/v4l2-fh.c spin_lock_irqsave(&fh->vdev->fh_lock, flags); vdev 113 drivers/media/v4l2-core/v4l2-fh.c spin_unlock_irqrestore(&fh->vdev->fh_lock, flags); vdev 1404 drivers/media/v4l2-core/v4l2-ioctl.c struct video_device *vdev = video_devdata(file); vdev 1418 drivers/media/v4l2-core/v4l2-ioctl.c if (!!(vdev->device_caps & cap_mask) != vdev 1435 drivers/media/v4l2-core/v4l2-ioctl.c if (!!(vdev->device_caps & cap_mask) != vdev 2785 drivers/media/v4l2-core/v4l2-ioctl.c static struct mutex *v4l2_ioctl_get_lock(struct video_device *vdev, vdev 2790 drivers/media/v4l2-core/v4l2-ioctl.c return vdev->lock; vdev 2798 drivers/media/v4l2-core/v4l2-ioctl.c if (vdev->queue && vdev->queue->lock && vdev 2800 drivers/media/v4l2-core/v4l2-ioctl.c return vdev->queue->lock; vdev 2801 drivers/media/v4l2-core/v4l2-ioctl.c return vdev->lock; vdev 269 drivers/media/v4l2-core/v4l2-mc.c int v4l_enable_media_source(struct video_device *vdev) vdev 271 drivers/media/v4l2-core/v4l2-mc.c struct media_device *mdev = vdev->entity.graph_obj.mdev; vdev 280 drivers/media/v4l2-core/v4l2-mc.c err = mdev->enable_source(&vdev->entity, &vdev->pipe); vdev 289 drivers/media/v4l2-core/v4l2-mc.c void v4l_disable_media_source(struct video_device *vdev) vdev 291 drivers/media/v4l2-core/v4l2-mc.c struct media_device *mdev = vdev->entity.graph_obj.mdev; vdev 296 drivers/media/v4l2-core/v4l2-mc.c mdev->disable_source(&vdev->entity); vdev 306 drivers/media/v4l2-core/v4l2-mc.c if (fh && fh->vdev) vdev 307 drivers/media/v4l2-core/v4l2-mc.c return v4l_enable_media_source(fh->vdev); vdev 491 drivers/media/v4l2-core/v4l2-mem2mem.c struct video_device *vdev = video_devdata(file); vdev 502 drivers/media/v4l2-core/v4l2-mem2mem.c ret = vb2_qbuf(vq, vdev->v4l2_dev->mdev, buf); vdev 523 drivers/media/v4l2-core/v4l2-mem2mem.c struct video_device *vdev = video_devdata(file); vdev 527 drivers/media/v4l2-core/v4l2-mem2mem.c return vb2_prepare_buf(vq, vdev->v4l2_dev->mdev, buf); vdev 725 drivers/media/v4l2-core/v4l2-mem2mem.c struct video_device *vdev, int function) vdev 761 drivers/media/v4l2-core/v4l2-mem2mem.c entity->info.dev.minor = vdev->minor; vdev 763 drivers/media/v4l2-core/v4l2-mem2mem.c len = strlen(vdev->name) + 2 + strlen(m2m_entity_name[type]); vdev 767 drivers/media/v4l2-core/v4l2-mem2mem.c snprintf(name, len, "%s-%s", vdev->name, m2m_entity_name[type]); vdev 782 drivers/media/v4l2-core/v4l2-mem2mem.c struct video_device *vdev, int function) vdev 784 drivers/media/v4l2-core/v4l2-mem2mem.c struct media_device *mdev = vdev->v4l2_dev->mdev; vdev 797 drivers/media/v4l2-core/v4l2-mem2mem.c m2m_dev->source = &vdev->entity; vdev 799 drivers/media/v4l2-core/v4l2-mem2mem.c MEM2MEM_ENT_TYPE_SOURCE, vdev, MEDIA_ENT_F_IO_V4L); vdev 803 drivers/media/v4l2-core/v4l2-mem2mem.c MEM2MEM_ENT_TYPE_PROC, vdev, function); vdev 807 drivers/media/v4l2-core/v4l2-mem2mem.c MEM2MEM_ENT_TYPE_SINK, vdev, MEDIA_ENT_F_IO_V4L); vdev 825 drivers/media/v4l2-core/v4l2-mem2mem.c VIDEO_MAJOR, vdev->minor); vdev 47 drivers/media/v4l2-core/v4l2-subdev.c struct video_device *vdev = video_devdata(file); vdev 48 drivers/media/v4l2-core/v4l2-subdev.c struct v4l2_subdev *sd = vdev_to_v4l2_subdev(vdev); vdev 62 drivers/media/v4l2-core/v4l2-subdev.c v4l2_fh_init(&subdev_fh->vfh, vdev); vdev 98 drivers/media/v4l2-core/v4l2-subdev.c struct video_device *vdev = video_devdata(file); vdev 99 drivers/media/v4l2-core/v4l2-subdev.c struct v4l2_subdev *sd = vdev_to_v4l2_subdev(vdev); vdev 329 drivers/media/v4l2-core/v4l2-subdev.c struct video_device *vdev = video_devdata(file); vdev 330 drivers/media/v4l2-core/v4l2-subdev.c struct v4l2_subdev *sd = vdev_to_v4l2_subdev(vdev); vdev 375 drivers/media/v4l2-core/v4l2-subdev.c vdev, sd->v4l2_dev->mdev, arg); vdev 381 drivers/media/v4l2-core/v4l2-subdev.c vdev, sd->v4l2_dev->mdev, arg); vdev 387 drivers/media/v4l2-core/v4l2-subdev.c vdev, sd->v4l2_dev->mdev, arg); vdev 616 drivers/media/v4l2-core/v4l2-subdev.c struct video_device *vdev = video_devdata(file); vdev 617 drivers/media/v4l2-core/v4l2-subdev.c struct mutex *lock = vdev->lock; vdev 622 drivers/media/v4l2-core/v4l2-subdev.c if (video_is_registered(vdev)) vdev 639 drivers/media/v4l2-core/v4l2-subdev.c struct video_device *vdev = video_devdata(file); vdev 640 drivers/media/v4l2-core/v4l2-subdev.c struct v4l2_subdev *sd = vdev_to_v4l2_subdev(vdev); vdev 648 drivers/media/v4l2-core/v4l2-subdev.c struct video_device *vdev = video_devdata(file); vdev 649 drivers/media/v4l2-core/v4l2-subdev.c struct v4l2_subdev *sd = vdev_to_v4l2_subdev(vdev); vdev 144 drivers/misc/ibmvmc.c struct vio_dev *vdev = to_vio_dev(adapter->dev); vdev 147 drivers/misc/ibmvmc.c free_irq(vdev->irq, (void *)adapter); vdev 153 drivers/misc/ibmvmc.c h_free_crq(vdev->unit_address); vdev 174 drivers/misc/ibmvmc.c struct vio_dev *vdev = to_vio_dev(adapter->dev); vdev 179 drivers/misc/ibmvmc.c h_free_crq(vdev->unit_address); vdev 187 drivers/misc/ibmvmc.c vdev->unit_address, vdev 243 drivers/misc/ibmvmc.c struct vio_dev *vdev = to_vio_dev(adapter->dev); vdev 247 drivers/misc/ibmvmc.c vdev->unit_address, word1, word2); vdev 254 drivers/misc/ibmvmc.c rc = plpar_hcall_norets(H_SEND_CRQ, vdev->unit_address, word1, word2); vdev 272 drivers/misc/ibmvmc.c static void *alloc_dma_buffer(struct vio_dev *vdev, size_t size, vdev 284 drivers/misc/ibmvmc.c *dma_handle = dma_map_single(&vdev->dev, buffer, size, vdev 287 drivers/misc/ibmvmc.c if (dma_mapping_error(&vdev->dev, *dma_handle)) { vdev 306 drivers/misc/ibmvmc.c static void free_dma_buffer(struct vio_dev *vdev, size_t size, void *vaddr, vdev 310 drivers/misc/ibmvmc.c dma_unmap_single(&vdev->dev, dma_handle, size, DMA_BIDIRECTIONAL); vdev 482 drivers/misc/ibmvmc.c struct vio_dev *vdev; vdev 499 drivers/misc/ibmvmc.c vdev = to_vio_dev(adapter->dev); vdev 509 drivers/misc/ibmvmc.c free_dma_buffer(vdev, vdev 2071 drivers/misc/ibmvmc.c struct vio_dev *vdev = to_vio_dev(adapter->dev); vdev 2087 drivers/misc/ibmvmc.c vio_enable_interrupts(vdev); vdev 2090 drivers/misc/ibmvmc.c vio_disable_interrupts(vdev); vdev 2115 drivers/misc/ibmvmc.c struct vio_dev *vdev = to_vio_dev(adapter->dev); vdev 2135 drivers/misc/ibmvmc.c vdev->unit_address, vdev 2155 drivers/misc/ibmvmc.c if (request_irq(vdev->irq, vdev 2159 drivers/misc/ibmvmc.c vdev->irq); vdev 2163 drivers/misc/ibmvmc.c rc = vio_enable_interrupts(vdev); vdev 2176 drivers/misc/ibmvmc.c h_free_crq(vdev->unit_address); vdev 2188 drivers/misc/ibmvmc.c static int read_dma_window(struct vio_dev *vdev, vdev 2199 drivers/misc/ibmvmc.c (const __be32 *)vio_get_attribute(vdev, "ibm,my-dma-window", vdev 2209 drivers/misc/ibmvmc.c prop = (const __be32 *)vio_get_attribute(vdev, "ibm,#dma-address-cells", vdev 2218 drivers/misc/ibmvmc.c prop = (const __be32 *)vio_get_attribute(vdev, "ibm,#dma-size-cells", vdev 2233 drivers/misc/ibmvmc.c static int ibmvmc_probe(struct vio_dev *vdev, const struct vio_device_id *id) vdev 2238 drivers/misc/ibmvmc.c dev_set_drvdata(&vdev->dev, NULL); vdev 2240 drivers/misc/ibmvmc.c adapter->dev = &vdev->dev; vdev 2242 drivers/misc/ibmvmc.c dev_info(adapter->dev, "Probe for UA 0x%x\n", vdev->unit_address); vdev 2244 drivers/misc/ibmvmc.c rc = read_dma_window(vdev, adapter); vdev 2281 drivers/misc/ibmvmc.c dev_set_drvdata(&vdev->dev, adapter); vdev 2291 drivers/misc/ibmvmc.c static int ibmvmc_remove(struct vio_dev *vdev) vdev 2293 drivers/misc/ibmvmc.c struct crq_server_adapter *adapter = dev_get_drvdata(&vdev->dev); vdev 2296 drivers/misc/ibmvmc.c vdev->unit_address); vdev 139 drivers/misc/mic/bus/vop_bus.c struct vop_device *vdev; vdev 141 drivers/misc/mic/bus/vop_bus.c vdev = kzalloc(sizeof(*vdev), GFP_KERNEL); vdev 142 drivers/misc/mic/bus/vop_bus.c if (!vdev) vdev 145 drivers/misc/mic/bus/vop_bus.c vdev->dev.parent = pdev; vdev 146 drivers/misc/mic/bus/vop_bus.c vdev->id.device = id; vdev 147 drivers/misc/mic/bus/vop_bus.c vdev->id.vendor = VOP_DEV_ANY_ID; vdev 148 drivers/misc/mic/bus/vop_bus.c vdev->dev.dma_ops = dma_ops; vdev 149 drivers/misc/mic/bus/vop_bus.c vdev->dev.dma_mask = &vdev->dev.coherent_dma_mask; vdev 150 drivers/misc/mic/bus/vop_bus.c dma_set_mask(&vdev->dev, DMA_BIT_MASK(64)); vdev 151 drivers/misc/mic/bus/vop_bus.c vdev->dev.release = vop_release_dev; vdev 152 drivers/misc/mic/bus/vop_bus.c vdev->hw_ops = hw_ops; vdev 153 drivers/misc/mic/bus/vop_bus.c vdev->dev.bus = &vop_bus; vdev 154 drivers/misc/mic/bus/vop_bus.c vdev->dnode = dnode; vdev 155 drivers/misc/mic/bus/vop_bus.c vdev->aper = aper; vdev 156 drivers/misc/mic/bus/vop_bus.c vdev->dma_ch = chan; vdev 157 drivers/misc/mic/bus/vop_bus.c vdev->index = dnode - 1; vdev 158 drivers/misc/mic/bus/vop_bus.c dev_set_name(&vdev->dev, "vop-dev%u", vdev->index); vdev 163 drivers/misc/mic/bus/vop_bus.c ret = device_register(&vdev->dev); vdev 166 drivers/misc/mic/bus/vop_bus.c return vdev; vdev 168 drivers/misc/mic/bus/vop_bus.c put_device(&vdev->dev); vdev 84 drivers/misc/mic/vop/vop_debugfs.c seq_printf(s, "Vdev 0x%llx\n", dc->vdev); vdev 98 drivers/misc/mic/vop/vop_debugfs.c struct vop_vdev *vdev; vdev 103 drivers/misc/mic/vop/vop_debugfs.c vdev = list_entry(pos, struct vop_vdev, list); vdev 105 drivers/misc/mic/vop/vop_debugfs.c vdev->virtio_id, vdev 106 drivers/misc/mic/vop/vop_debugfs.c vop_vdevup(vdev) ? "UP" : "DOWN", vdev 107 drivers/misc/mic/vop/vop_debugfs.c vdev->in_bytes, vdev 108 drivers/misc/mic/vop/vop_debugfs.c vdev->out_bytes, vdev 109 drivers/misc/mic/vop/vop_debugfs.c vdev->in_bytes_dma, vdev 110 drivers/misc/mic/vop/vop_debugfs.c vdev->out_bytes_dma); vdev 115 drivers/misc/mic/vop/vop_debugfs.c struct vop_vringh *vvr = &vdev->vvr[i]; vdev 45 drivers/misc/mic/vop/vop_main.c struct virtio_device vdev; vdev 60 drivers/misc/mic/vop/vop_main.c #define to_vopvdev(vd) container_of(vd, struct _vop_vdev, vdev) vdev 65 drivers/misc/mic/vop/vop_main.c static inline struct device *_vop_dev(struct _vop_vdev *vdev) vdev 67 drivers/misc/mic/vop/vop_main.c return vdev->vdev.dev.parent; vdev 103 drivers/misc/mic/vop/vop_main.c static u64 vop_get_features(struct virtio_device *vdev) vdev 107 drivers/misc/mic/vop/vop_main.c struct mic_device_desc __iomem *desc = to_vopvdev(vdev)->desc; vdev 111 drivers/misc/mic/vop/vop_main.c bits = min_t(unsigned, feature_len, sizeof(vdev->features)) * 8; vdev 119 drivers/misc/mic/vop/vop_main.c static void vop_transport_features(struct virtio_device *vdev) vdev 126 drivers/misc/mic/vop/vop_main.c __virtio_clear_bit(vdev, VIRTIO_F_RING_PACKED); vdev 129 drivers/misc/mic/vop/vop_main.c static int vop_finalize_features(struct virtio_device *vdev) vdev 132 drivers/misc/mic/vop/vop_main.c struct mic_device_desc __iomem *desc = to_vopvdev(vdev)->desc; vdev 139 drivers/misc/mic/vop/vop_main.c vring_transport_features(vdev); vdev 142 drivers/misc/mic/vop/vop_main.c vop_transport_features(vdev); vdev 146 drivers/misc/mic/vop/vop_main.c sizeof(vdev->features)) * 8; vdev 148 drivers/misc/mic/vop/vop_main.c if (__virtio_test_bit(vdev, i)) vdev 158 drivers/misc/mic/vop/vop_main.c static void vop_get(struct virtio_device *vdev, unsigned int offset, vdev 161 drivers/misc/mic/vop/vop_main.c struct mic_device_desc __iomem *desc = to_vopvdev(vdev)->desc; vdev 168 drivers/misc/mic/vop/vop_main.c static void vop_set(struct virtio_device *vdev, unsigned int offset, vdev 171 drivers/misc/mic/vop/vop_main.c struct mic_device_desc __iomem *desc = to_vopvdev(vdev)->desc; vdev 183 drivers/misc/mic/vop/vop_main.c static u8 vop_get_status(struct virtio_device *vdev) vdev 185 drivers/misc/mic/vop/vop_main.c return ioread8(&to_vopvdev(vdev)->desc->status); vdev 190 drivers/misc/mic/vop/vop_main.c struct _vop_vdev *vdev = to_vopvdev(dev); vdev 191 drivers/misc/mic/vop/vop_main.c struct vop_device *vpdev = vdev->vpdev; vdev 195 drivers/misc/mic/vop/vop_main.c iowrite8(status, &vdev->desc->status); vdev 196 drivers/misc/mic/vop/vop_main.c vpdev->hw_ops->send_intr(vpdev, vdev->c2h_vdev_db); vdev 202 drivers/misc/mic/vop/vop_main.c struct _vop_vdev *vdev = to_vopvdev(dev); vdev 203 drivers/misc/mic/vop/vop_main.c struct mic_device_ctrl __iomem *dc = vdev->dc; vdev 204 drivers/misc/mic/vop/vop_main.c struct vop_device *vpdev = vdev->vpdev; vdev 209 drivers/misc/mic/vop/vop_main.c vpdev->hw_ops->send_intr(vpdev, vdev->c2h_vdev_db); vdev 218 drivers/misc/mic/vop/vop_main.c dev_dbg(_vop_dev(vdev), "%s: retry: %d\n", __func__, retry); vdev 221 drivers/misc/mic/vop/vop_main.c iowrite8(0, &vdev->desc->status); vdev 226 drivers/misc/mic/vop/vop_main.c struct _vop_vdev *vdev = to_vopvdev(dev); vdev 228 drivers/misc/mic/vop/vop_main.c dev_dbg(_vop_dev(vdev), "%s: virtio id %d\n", vdev 232 drivers/misc/mic/vop/vop_main.c complete_all(&vdev->reset_done); vdev 240 drivers/misc/mic/vop/vop_main.c struct _vop_vdev *vdev = vq->priv; vdev 241 drivers/misc/mic/vop/vop_main.c struct vop_device *vpdev = vdev->vpdev; vdev 243 drivers/misc/mic/vop/vop_main.c vpdev->hw_ops->send_intr(vpdev, vdev->c2h_vdev_db); vdev 249 drivers/misc/mic/vop/vop_main.c struct _vop_vdev *vdev = to_vopvdev(vq->vdev); vdev 250 drivers/misc/mic/vop/vop_main.c struct vop_device *vpdev = vdev->vpdev; vdev 252 drivers/misc/mic/vop/vop_main.c dma_unmap_single(&vpdev->dev, vdev->used[n], vdev 253 drivers/misc/mic/vop/vop_main.c vdev->used_size[n], DMA_BIDIRECTIONAL); vdev 254 drivers/misc/mic/vop/vop_main.c free_pages((unsigned long)vdev->used_virt[n], vdev 255 drivers/misc/mic/vop/vop_main.c get_order(vdev->used_size[n])); vdev 257 drivers/misc/mic/vop/vop_main.c vpdev->hw_ops->unmap(vpdev, vdev->vr[n]); vdev 258 drivers/misc/mic/vop/vop_main.c vdev->vr[n] = NULL; vdev 263 drivers/misc/mic/vop/vop_main.c struct _vop_vdev *vdev = to_vopvdev(dev); vdev 267 drivers/misc/mic/vop/vop_main.c dev_dbg(_vop_dev(vdev), "%s\n", __func__); vdev 275 drivers/misc/mic/vop/vop_main.c struct virtio_device *vdev, vdev 289 drivers/misc/mic/vop/vop_main.c return __vring_new_virtqueue(index, vring, vdev, weak_barriers, context, vdev 303 drivers/misc/mic/vop/vop_main.c struct _vop_vdev *vdev = to_vopvdev(dev); vdev 304 drivers/misc/mic/vop/vop_main.c struct vop_device *vpdev = vdev->vpdev; vdev 312 drivers/misc/mic/vop/vop_main.c u8 type = ioread8(&vdev->desc->type); vdev 314 drivers/misc/mic/vop/vop_main.c if (index >= ioread8(&vdev->desc->num_vq)) vdev 321 drivers/misc/mic/vop/vop_main.c vqconfig = _vop_vq_config(vdev->desc) + index; vdev 328 drivers/misc/mic/vop/vop_main.c vdev->vr[index] = va; vdev 339 drivers/misc/mic/vop/vop_main.c vdev->used_size[index] = PAGE_ALIGN(sizeof(__u16) * 3 + vdev 343 drivers/misc/mic/vop/vop_main.c get_order(vdev->used_size[index])); vdev 344 drivers/misc/mic/vop/vop_main.c vdev->used_virt[index] = used; vdev 347 drivers/misc/mic/vop/vop_main.c dev_err(_vop_dev(vdev), "%s %d err %d\n", vdev 360 drivers/misc/mic/vop/vop_main.c vdev->used[index] = dma_map_single(&vpdev->dev, used, vdev 361 drivers/misc/mic/vop/vop_main.c vdev->used_size[index], vdev 363 drivers/misc/mic/vop/vop_main.c if (dma_mapping_error(&vpdev->dev, vdev->used[index])) { vdev 365 drivers/misc/mic/vop/vop_main.c dev_err(_vop_dev(vdev), "%s %d err %d\n", vdev 369 drivers/misc/mic/vop/vop_main.c writeq(vdev->used[index], &vqconfig->used_address); vdev 371 drivers/misc/mic/vop/vop_main.c vq->priv = vdev; vdev 377 drivers/misc/mic/vop/vop_main.c get_order(vdev->used_size[index])); vdev 379 drivers/misc/mic/vop/vop_main.c vpdev->hw_ops->unmap(vpdev, vdev->vr[index]); vdev 389 drivers/misc/mic/vop/vop_main.c struct _vop_vdev *vdev = to_vopvdev(dev); vdev 390 drivers/misc/mic/vop/vop_main.c struct vop_device *vpdev = vdev->vpdev; vdev 391 drivers/misc/mic/vop/vop_main.c struct mic_device_ctrl __iomem *dc = vdev->dc; vdev 395 drivers/misc/mic/vop/vop_main.c if (nvqs > ioread8(&vdev->desc->num_vq)) vdev 404 drivers/misc/mic/vop/vop_main.c dev_dbg(_vop_dev(vdev), "%s: %d: %s\n", vdev 419 drivers/misc/mic/vop/vop_main.c vpdev->hw_ops->send_intr(vpdev, vdev->c2h_vdev_db); vdev 426 drivers/misc/mic/vop/vop_main.c dev_dbg(_vop_dev(vdev), "%s: retry: %d\n", __func__, retry); vdev 455 drivers/misc/mic/vop/vop_main.c struct _vop_vdev *vdev = data; vdev 456 drivers/misc/mic/vop/vop_main.c struct vop_device *vpdev = vdev->vpdev; vdev 459 drivers/misc/mic/vop/vop_main.c vpdev->hw_ops->ack_interrupt(vpdev, vdev->h2c_vdev_db); vdev 460 drivers/misc/mic/vop/vop_main.c list_for_each_entry(vq, &vdev->vdev.vqs, list) vdev 468 drivers/misc/mic/vop/vop_main.c struct virtio_device *vdev = vdev 471 drivers/misc/mic/vop/vop_main.c container_of(vdev, struct _vop_vdev, vdev); vdev 484 drivers/misc/mic/vop/vop_main.c struct _vop_vdev *vdev, *reg_dev = NULL; vdev 488 drivers/misc/mic/vop/vop_main.c vdev = kzalloc(sizeof(*vdev), GFP_KERNEL); vdev 489 drivers/misc/mic/vop/vop_main.c if (!vdev) vdev 492 drivers/misc/mic/vop/vop_main.c vdev->vpdev = vpdev; vdev 493 drivers/misc/mic/vop/vop_main.c vdev->vdev.dev.parent = &vpdev->dev; vdev 494 drivers/misc/mic/vop/vop_main.c vdev->vdev.dev.release = vop_virtio_release_dev; vdev 495 drivers/misc/mic/vop/vop_main.c vdev->vdev.id.device = type; vdev 496 drivers/misc/mic/vop/vop_main.c vdev->vdev.config = &vop_vq_config_ops; vdev 497 drivers/misc/mic/vop/vop_main.c vdev->desc = d; vdev 498 drivers/misc/mic/vop/vop_main.c vdev->dc = (void __iomem *)d + _vop_aligned_desc_size(d); vdev 499 drivers/misc/mic/vop/vop_main.c vdev->dnode = dnode; vdev 500 drivers/misc/mic/vop/vop_main.c vdev->vdev.priv = (void *)(unsigned long)dnode; vdev 501 drivers/misc/mic/vop/vop_main.c init_completion(&vdev->reset_done); vdev 503 drivers/misc/mic/vop/vop_main.c vdev->h2c_vdev_db = vpdev->hw_ops->next_db(vpdev); vdev 504 drivers/misc/mic/vop/vop_main.c vdev->virtio_cookie = vpdev->hw_ops->request_irq(vpdev, vdev 506 drivers/misc/mic/vop/vop_main.c vdev, vdev->h2c_vdev_db); vdev 507 drivers/misc/mic/vop/vop_main.c if (IS_ERR(vdev->virtio_cookie)) { vdev 508 drivers/misc/mic/vop/vop_main.c ret = PTR_ERR(vdev->virtio_cookie); vdev 511 drivers/misc/mic/vop/vop_main.c iowrite8((u8)vdev->h2c_vdev_db, &vdev->dc->h2c_vdev_db); vdev 512 drivers/misc/mic/vop/vop_main.c vdev->c2h_vdev_db = ioread8(&vdev->dc->c2h_vdev_db); vdev 514 drivers/misc/mic/vop/vop_main.c ret = register_virtio_device(&vdev->vdev); vdev 515 drivers/misc/mic/vop/vop_main.c reg_dev = vdev; vdev 517 drivers/misc/mic/vop/vop_main.c dev_err(_vop_dev(vdev), vdev 522 drivers/misc/mic/vop/vop_main.c writeq((unsigned long)vdev, &vdev->dc->vdev); vdev 523 drivers/misc/mic/vop/vop_main.c dev_dbg(_vop_dev(vdev), "%s: registered vop device %u type %u vdev %p\n", vdev 524 drivers/misc/mic/vop/vop_main.c __func__, offset, type, vdev); vdev 529 drivers/misc/mic/vop/vop_main.c vpdev->hw_ops->free_irq(vpdev, vdev->virtio_cookie, vdev); vdev 532 drivers/misc/mic/vop/vop_main.c put_device(&vdev->vdev.dev); vdev 534 drivers/misc/mic/vop/vop_main.c kfree(vdev); vdev 544 drivers/misc/mic/vop/vop_main.c struct _vop_vdev *vdev = to_vopvdev(_dev); vdev 546 drivers/misc/mic/vop/vop_main.c return vdev->desc == (void __iomem *)data; vdev 551 drivers/misc/mic/vop/vop_main.c return (struct _vop_vdev *)(unsigned long)readq(&dc->vdev); vdev 560 drivers/misc/mic/vop/vop_main.c struct _vop_vdev *vdev = vop_dc_to_vdev(dc); vdev 566 drivers/misc/mic/vop/vop_main.c virtio_config_changed(&vdev->vdev); vdev 579 drivers/misc/mic/vop/vop_main.c struct _vop_vdev *vdev = vop_dc_to_vdev(dc); vdev 584 drivers/misc/mic/vop/vop_main.c struct device *dev = get_device(&vdev->vdev.dev); vdev 589 drivers/misc/mic/vop/vop_main.c ioread8(&dc->config_change), ioread8(&d->type), vdev); vdev 591 drivers/misc/mic/vop/vop_main.c reinit_completion(&vdev->reset_done); vdev 592 drivers/misc/mic/vop/vop_main.c unregister_virtio_device(&vdev->vdev); vdev 593 drivers/misc/mic/vop/vop_main.c vpdev->hw_ops->free_irq(vpdev, vdev->virtio_cookie, vdev); vdev 596 drivers/misc/mic/vop/vop_main.c wait_for_completion(&vdev->reset_done); vdev 90 drivers/misc/mic/vop/vop_main.h struct vop_vdev *vdev; vdev 149 drivers/misc/mic/vop/vop_main.h static inline bool vop_vdevup(struct vop_vdev *vdev) vdev 151 drivers/misc/mic/vop/vop_main.h return !!vdev->dd->status; vdev 20 drivers/misc/mic/vop/vop_vringh.c static inline struct device *vop_dev(struct vop_vdev *vdev) vdev 22 drivers/misc/mic/vop/vop_vringh.c return vdev->vpdev->dev.parent; vdev 26 drivers/misc/mic/vop/vop_vringh.c static inline int vop_vdev_inited(struct vop_vdev *vdev) vdev 28 drivers/misc/mic/vop/vop_vringh.c if (!vdev) vdev 31 drivers/misc/mic/vop/vop_vringh.c if (!vdev->dd || !vdev->dd->type) { vdev 32 drivers/misc/mic/vop/vop_vringh.c dev_err(vop_dev(vdev), "%s %d err %d\n", vdev 37 drivers/misc/mic/vop/vop_vringh.c if (vdev->dd->type == -1) { vdev 38 drivers/misc/mic/vop/vop_vringh.c dev_dbg(vop_dev(vdev), "%s %d err %d\n", vdev 48 drivers/misc/mic/vop/vop_vringh.c struct vop_vdev *vdev = vvrh->vdev; vdev 49 drivers/misc/mic/vop/vop_vringh.c struct vop_device *vpdev = vdev->vpdev; vdev 50 drivers/misc/mic/vop/vop_vringh.c s8 db = vdev->dc->h2c_vdev_db; vdev 56 drivers/misc/mic/vop/vop_vringh.c static void vop_virtio_init_post(struct vop_vdev *vdev) vdev 58 drivers/misc/mic/vop/vop_vringh.c struct mic_vqconfig *vqconfig = mic_vq_config(vdev->dd); vdev 59 drivers/misc/mic/vop/vop_vringh.c struct vop_device *vpdev = vdev->vpdev; vdev 62 drivers/misc/mic/vop/vop_vringh.c for (i = 0; i < vdev->dd->num_vq; i++) { vdev 67 drivers/misc/mic/vop/vop_vringh.c dev_warn(vop_dev(vdev), "used_address zero??\n"); vdev 70 drivers/misc/mic/vop/vop_vringh.c vdev->vvr[i].vrh.vring.used = vdev 77 drivers/misc/mic/vop/vop_vringh.c vdev->dc->used_address_updated = 0; vdev 79 drivers/misc/mic/vop/vop_vringh.c dev_info(vop_dev(vdev), "%s: device type %d LINKUP\n", vdev 80 drivers/misc/mic/vop/vop_vringh.c __func__, vdev->virtio_id); vdev 83 drivers/misc/mic/vop/vop_vringh.c static inline void vop_virtio_device_reset(struct vop_vdev *vdev) vdev 87 drivers/misc/mic/vop/vop_vringh.c dev_dbg(vop_dev(vdev), "%s: status %d device type %d RESET\n", vdev 88 drivers/misc/mic/vop/vop_vringh.c __func__, vdev->dd->status, vdev->virtio_id); vdev 90 drivers/misc/mic/vop/vop_vringh.c for (i = 0; i < vdev->dd->num_vq; i++) vdev 95 drivers/misc/mic/vop/vop_vringh.c mutex_lock_nested(&vdev->vvr[i].vr_mutex, i + 1); vdev 98 drivers/misc/mic/vop/vop_vringh.c vdev->dd->status = 0; vdev 99 drivers/misc/mic/vop/vop_vringh.c vdev->dc->vdev_reset = 0; vdev 100 drivers/misc/mic/vop/vop_vringh.c vdev->dc->host_ack = 1; vdev 102 drivers/misc/mic/vop/vop_vringh.c for (i = 0; i < vdev->dd->num_vq; i++) { vdev 103 drivers/misc/mic/vop/vop_vringh.c struct vringh *vrh = &vdev->vvr[i].vrh; vdev 105 drivers/misc/mic/vop/vop_vringh.c vdev->vvr[i].vring.info->avail_idx = 0; vdev 111 drivers/misc/mic/vop/vop_vringh.c for (i = 0; i < vdev->dd->num_vq; i++) vdev 112 drivers/misc/mic/vop/vop_vringh.c mutex_unlock(&vdev->vvr[i].vr_mutex); vdev 118 drivers/misc/mic/vop/vop_vringh.c struct vop_vdev *vdev; vdev 121 drivers/misc/mic/vop/vop_vringh.c vdev = list_entry(pos, struct vop_vdev, list); vdev 122 drivers/misc/mic/vop/vop_vringh.c vop_virtio_device_reset(vdev); vdev 123 drivers/misc/mic/vop/vop_vringh.c vdev->poll_wake = 1; vdev 124 drivers/misc/mic/vop/vop_vringh.c wake_up(&vdev->waitq); vdev 130 drivers/misc/mic/vop/vop_vringh.c struct vop_vdev *vdev = container_of(work, struct vop_vdev, vdev 133 drivers/misc/mic/vop/vop_vringh.c if (vdev->dc->used_address_updated) vdev 134 drivers/misc/mic/vop/vop_vringh.c vop_virtio_init_post(vdev); vdev 136 drivers/misc/mic/vop/vop_vringh.c if (vdev->dc->vdev_reset) vdev 137 drivers/misc/mic/vop/vop_vringh.c vop_virtio_device_reset(vdev); vdev 139 drivers/misc/mic/vop/vop_vringh.c vdev->poll_wake = 1; vdev 140 drivers/misc/mic/vop/vop_vringh.c wake_up(&vdev->waitq); vdev 145 drivers/misc/mic/vop/vop_vringh.c struct vop_vdev *vdev = data; vdev 146 drivers/misc/mic/vop/vop_vringh.c struct vop_device *vpdev = vdev->vpdev; vdev 148 drivers/misc/mic/vop/vop_vringh.c vpdev->hw_ops->ack_interrupt(vpdev, vdev->virtio_db); vdev 149 drivers/misc/mic/vop/vop_vringh.c schedule_work(&vdev->virtio_bh_work); vdev 153 drivers/misc/mic/vop/vop_vringh.c static int vop_virtio_config_change(struct vop_vdev *vdev, void *argp) vdev 157 drivers/misc/mic/vop/vop_vringh.c struct vop_device *vpdev = vdev->vpdev; vdev 163 drivers/misc/mic/vop/vop_vringh.c for (i = 0; i < vdev->dd->num_vq; i++) vdev 164 drivers/misc/mic/vop/vop_vringh.c mutex_lock_nested(&vdev->vvr[i].vr_mutex, i + 1); vdev 166 drivers/misc/mic/vop/vop_vringh.c if (db == -1 || vdev->dd->type == -1) { vdev 171 drivers/misc/mic/vop/vop_vringh.c memcpy(mic_vq_configspace(vdev->dd), argp, vdev->dd->config_len); vdev 172 drivers/misc/mic/vop/vop_vringh.c vdev->dc->config_change = MIC_VIRTIO_PARAM_CONFIG_CHANGED; vdev 176 drivers/misc/mic/vop/vop_vringh.c ret = wait_event_timeout(wake, vdev->dc->guest_ack, vdev 182 drivers/misc/mic/vop/vop_vringh.c dev_dbg(vop_dev(vdev), vdev 184 drivers/misc/mic/vop/vop_vringh.c vdev->dc->config_change = 0; vdev 185 drivers/misc/mic/vop/vop_vringh.c vdev->dc->guest_ack = 0; vdev 187 drivers/misc/mic/vop/vop_vringh.c for (i = 0; i < vdev->dd->num_vq; i++) vdev 188 drivers/misc/mic/vop/vop_vringh.c mutex_unlock(&vdev->vvr[i].vr_mutex); vdev 193 drivers/misc/mic/vop/vop_vringh.c static int vop_copy_dp_entry(struct vop_vdev *vdev, vdev 197 drivers/misc/mic/vop/vop_vringh.c struct vop_device *vpdev = vdev->vpdev; vdev 207 drivers/misc/mic/vop/vop_vringh.c dev_err(vop_dev(vdev), "%s %d err %d\n", vdev 225 drivers/misc/mic/vop/vop_vringh.c dev_err(vop_dev(vdev), "%s %d err %d\n", vdev 242 drivers/misc/mic/vop/vop_vringh.c static void vop_init_device_ctrl(struct vop_vdev *vdev, vdev 256 drivers/misc/mic/vop/vop_vringh.c vdev->dc = dc; vdev 259 drivers/misc/mic/vop/vop_vringh.c static int vop_virtio_add_device(struct vop_vdev *vdev, vdev 262 drivers/misc/mic/vop/vop_vringh.c struct vop_info *vi = vdev->vi; vdev 275 drivers/misc/mic/vop/vop_vringh.c init_waitqueue_head(&vdev->waitq); vdev 276 drivers/misc/mic/vop/vop_vringh.c INIT_LIST_HEAD(&vdev->list); vdev 277 drivers/misc/mic/vop/vop_vringh.c vdev->vpdev = vpdev; vdev 279 drivers/misc/mic/vop/vop_vringh.c ret = vop_copy_dp_entry(vdev, argp, &type, &dd); vdev 281 drivers/misc/mic/vop/vop_vringh.c dev_err(vop_dev(vdev), "%s %d err %d\n", vdev 286 drivers/misc/mic/vop/vop_vringh.c vop_init_device_ctrl(vdev, dd); vdev 288 drivers/misc/mic/vop/vop_vringh.c vdev->dd = dd; vdev 289 drivers/misc/mic/vop/vop_vringh.c vdev->virtio_id = type; vdev 291 drivers/misc/mic/vop/vop_vringh.c INIT_WORK(&vdev->virtio_bh_work, vop_bh_handler); vdev 294 drivers/misc/mic/vop/vop_vringh.c struct vop_vringh *vvr = &vdev->vvr[i]; vdev 295 drivers/misc/mic/vop/vop_vringh.c struct mic_vring *vr = &vdev->vvr[i].vring; vdev 306 drivers/misc/mic/vop/vop_vringh.c dev_err(vop_dev(vdev), "%s %d err %d\n", vdev 312 drivers/misc/mic/vop/vop_vringh.c vr->info->magic = cpu_to_le32(MIC_MAGIC + vdev->virtio_id + i); vdev 318 drivers/misc/mic/vop/vop_vringh.c dev_err(vop_dev(vdev), "%s %d err %d\n", vdev 326 drivers/misc/mic/vop/vop_vringh.c *(u32 *)mic_vq_features(vdev->dd), vdev 330 drivers/misc/mic/vop/vop_vringh.c dev_err(vop_dev(vdev), "%s %d err %d\n", vdev 337 drivers/misc/mic/vop/vop_vringh.c vvr->vdev = vdev; vdev 350 drivers/misc/mic/vop/vop_vringh.c vdev->virtio_id); vdev 351 drivers/misc/mic/vop/vop_vringh.c vdev->virtio_db = vpdev->hw_ops->next_db(vpdev); vdev 352 drivers/misc/mic/vop/vop_vringh.c vdev->virtio_cookie = vpdev->hw_ops->request_irq(vpdev, vdev 353 drivers/misc/mic/vop/vop_vringh.c _vop_virtio_intr_handler, irqname, vdev, vdev 354 drivers/misc/mic/vop/vop_vringh.c vdev->virtio_db); vdev 355 drivers/misc/mic/vop/vop_vringh.c if (IS_ERR(vdev->virtio_cookie)) { vdev 356 drivers/misc/mic/vop/vop_vringh.c ret = PTR_ERR(vdev->virtio_cookie); vdev 361 drivers/misc/mic/vop/vop_vringh.c vdev->dc->c2h_vdev_db = vdev->virtio_db; vdev 383 drivers/misc/mic/vop/vop_vringh.c struct vop_vringh *vvr = &vdev->vvr[j]; vdev 418 drivers/misc/mic/vop/vop_vringh.c static void vop_virtio_del_device(struct vop_vdev *vdev) vdev 420 drivers/misc/mic/vop/vop_vringh.c struct vop_info *vi = vdev->vi; vdev 421 drivers/misc/mic/vop/vop_vringh.c struct vop_device *vpdev = vdev->vpdev; vdev 428 drivers/misc/mic/vop/vop_vringh.c vop_dev_remove(vi, vdev->dc, vpdev); vdev 430 drivers/misc/mic/vop/vop_vringh.c vpdev->hw_ops->free_irq(vpdev, vdev->virtio_cookie, vdev); vdev 431 drivers/misc/mic/vop/vop_vringh.c flush_work(&vdev->virtio_bh_work); vdev 432 drivers/misc/mic/vop/vop_vringh.c vqconfig = mic_vq_config(vdev->dd); vdev 433 drivers/misc/mic/vop/vop_vringh.c for (i = 0; i < vdev->dd->num_vq; i++) { vdev 434 drivers/misc/mic/vop/vop_vringh.c struct vop_vringh *vvr = &vdev->vvr[i]; vdev 455 drivers/misc/mic/vop/vop_vringh.c vdev->dd->type = -1; vdev 469 drivers/misc/mic/vop/vop_vringh.c static int vop_sync_dma(struct vop_vdev *vdev, dma_addr_t dst, dma_addr_t src, vdev 475 drivers/misc/mic/vop/vop_vringh.c struct vop_info *vi = dev_get_drvdata(&vdev->vpdev->dev); vdev 514 drivers/misc/mic/vop/vop_vringh.c static int vop_virtio_copy_to_user(struct vop_vdev *vdev, void __user *ubuf, vdev 518 drivers/misc/mic/vop/vop_vringh.c struct vop_device *vpdev = vdev->vpdev; vdev 520 drivers/misc/mic/vop/vop_vringh.c struct vop_vringh *vvr = &vdev->vvr[vr_idx]; vdev 530 drivers/misc/mic/vop/vop_vringh.c dev_err(vop_dev(vdev), "%s %d err %d\n", vdev 534 drivers/misc/mic/vop/vop_vringh.c vdev->in_bytes += len; vdev 555 drivers/misc/mic/vop/vop_vringh.c err = vop_sync_dma(vdev, vvr->buf_da, daddr, vdev 558 drivers/misc/mic/vop/vop_vringh.c dev_err(vop_dev(vdev), "%s %d err %d\n", vdev 565 drivers/misc/mic/vop/vop_vringh.c dev_err(vop_dev(vdev), "%s %d err %d\n", vdev 572 drivers/misc/mic/vop/vop_vringh.c vdev->in_bytes_dma += partlen; vdev 573 drivers/misc/mic/vop/vop_vringh.c vdev->in_bytes += partlen; vdev 580 drivers/misc/mic/vop/vop_vringh.c dev_dbg(vop_dev(vdev), vdev 592 drivers/misc/mic/vop/vop_vringh.c static int vop_virtio_copy_from_user(struct vop_vdev *vdev, void __user *ubuf, vdev 596 drivers/misc/mic/vop/vop_vringh.c struct vop_device *vpdev = vdev->vpdev; vdev 598 drivers/misc/mic/vop/vop_vringh.c struct vop_vringh *vvr = &vdev->vvr[vr_idx]; vdev 599 drivers/misc/mic/vop/vop_vringh.c struct vop_info *vi = dev_get_drvdata(&vdev->vpdev->dev); vdev 611 drivers/misc/mic/vop/vop_vringh.c vdev->tx_dst_unaligned += len; vdev 614 drivers/misc/mic/vop/vop_vringh.c vdev->tx_len_unaligned += len; vdev 635 drivers/misc/mic/vop/vop_vringh.c dev_err(vop_dev(vdev), "%s %d err %d\n", vdev 639 drivers/misc/mic/vop/vop_vringh.c err = vop_sync_dma(vdev, daddr, vvr->buf_da, vdev 642 drivers/misc/mic/vop/vop_vringh.c dev_err(vop_dev(vdev), "%s %d err %d\n", vdev 649 drivers/misc/mic/vop/vop_vringh.c vdev->out_bytes_dma += partlen; vdev 650 drivers/misc/mic/vop/vop_vringh.c vdev->out_bytes += partlen; vdev 660 drivers/misc/mic/vop/vop_vringh.c dev_err(vop_dev(vdev), "%s %d err %d\n", vdev 664 drivers/misc/mic/vop/vop_vringh.c vdev->out_bytes += len; vdev 668 drivers/misc/mic/vop/vop_vringh.c dev_dbg(vop_dev(vdev), vdev 694 drivers/misc/mic/vop/vop_vringh.c static int vop_vringh_copy(struct vop_vdev *vdev, struct vringh_kiov *iov, vdev 707 drivers/misc/mic/vop/vop_vringh.c ret = vop_virtio_copy_to_user(vdev, ubuf, partlen, vdev 712 drivers/misc/mic/vop/vop_vringh.c ret = vop_virtio_copy_from_user(vdev, ubuf, partlen, vdev 717 drivers/misc/mic/vop/vop_vringh.c dev_err(vop_dev(vdev), "%s %d err %d\n", vdev 744 drivers/misc/mic/vop/vop_vringh.c static int _vop_virtio_copy(struct vop_vdev *vdev, struct mic_copy_desc *copy) vdev 751 drivers/misc/mic/vop/vop_vringh.c struct vop_vringh *vvr = &vdev->vvr[copy->vr_idx]; vdev 774 drivers/misc/mic/vop/vop_vringh.c dev_err(vop_dev(vdev), "%s %d err %d\n", vdev 782 drivers/misc/mic/vop/vop_vringh.c ret = vop_vringh_copy(vdev, riov, ubuf, len, vdev 785 drivers/misc/mic/vop/vop_vringh.c dev_err(vop_dev(vdev), "%s %d err %d\n", vdev 793 drivers/misc/mic/vop/vop_vringh.c ret = vop_vringh_copy(vdev, wiov, ubuf, len, vdev 796 drivers/misc/mic/vop/vop_vringh.c dev_err(vop_dev(vdev), "%s %d err %d\n", vdev 834 drivers/misc/mic/vop/vop_vringh.c static inline int vop_verify_copy_args(struct vop_vdev *vdev, vdev 837 drivers/misc/mic/vop/vop_vringh.c if (!vdev || copy->vr_idx >= vdev->dd->num_vq) vdev 843 drivers/misc/mic/vop/vop_vringh.c static int vop_virtio_copy_desc(struct vop_vdev *vdev, vdev 849 drivers/misc/mic/vop/vop_vringh.c err = vop_verify_copy_args(vdev, copy); vdev 853 drivers/misc/mic/vop/vop_vringh.c vvr = &vdev->vvr[copy->vr_idx]; vdev 855 drivers/misc/mic/vop/vop_vringh.c if (!vop_vdevup(vdev)) { vdev 857 drivers/misc/mic/vop/vop_vringh.c dev_err(vop_dev(vdev), "%s %d err %d\n", vdev 861 drivers/misc/mic/vop/vop_vringh.c err = _vop_virtio_copy(vdev, copy); vdev 863 drivers/misc/mic/vop/vop_vringh.c dev_err(vop_dev(vdev), "%s %d err %d\n", vdev 873 drivers/misc/mic/vop/vop_vringh.c struct vop_vdev *vdev; vdev 877 drivers/misc/mic/vop/vop_vringh.c vdev = kzalloc(sizeof(*vdev), GFP_KERNEL); vdev 878 drivers/misc/mic/vop/vop_vringh.c if (!vdev) vdev 880 drivers/misc/mic/vop/vop_vringh.c vdev->vi = vi; vdev 881 drivers/misc/mic/vop/vop_vringh.c mutex_init(&vdev->vdev_mutex); vdev 882 drivers/misc/mic/vop/vop_vringh.c f->private_data = vdev; vdev 883 drivers/misc/mic/vop/vop_vringh.c init_completion(&vdev->destroy); vdev 884 drivers/misc/mic/vop/vop_vringh.c complete(&vdev->destroy); vdev 890 drivers/misc/mic/vop/vop_vringh.c struct vop_vdev *vdev = f->private_data, *vdev_tmp; vdev 891 drivers/misc/mic/vop/vop_vringh.c struct vop_info *vi = vdev->vi; vdev 895 drivers/misc/mic/vop/vop_vringh.c mutex_lock(&vdev->vdev_mutex); vdev 896 drivers/misc/mic/vop/vop_vringh.c if (vdev->deleted) vdev 901 drivers/misc/mic/vop/vop_vringh.c if (vdev == vdev_tmp) { vdev 902 drivers/misc/mic/vop/vop_vringh.c vop_virtio_del_device(vdev); vdev 910 drivers/misc/mic/vop/vop_vringh.c mutex_unlock(&vdev->vdev_mutex); vdev 912 drivers/misc/mic/vop/vop_vringh.c wait_for_completion(&vdev->destroy); vdev 914 drivers/misc/mic/vop/vop_vringh.c kfree(vdev); vdev 920 drivers/misc/mic/vop/vop_vringh.c struct vop_vdev *vdev = f->private_data; vdev 921 drivers/misc/mic/vop/vop_vringh.c struct vop_info *vi = vdev->vi; vdev 946 drivers/misc/mic/vop/vop_vringh.c mutex_lock(&vdev->vdev_mutex); vdev 948 drivers/misc/mic/vop/vop_vringh.c ret = vop_virtio_add_device(vdev, dd_config); vdev 951 drivers/misc/mic/vop/vop_vringh.c list_add_tail(&vdev->list, &vi->vdev_list); vdev 954 drivers/misc/mic/vop/vop_vringh.c mutex_unlock(&vdev->vdev_mutex); vdev 963 drivers/misc/mic/vop/vop_vringh.c mutex_lock(&vdev->vdev_mutex); vdev 964 drivers/misc/mic/vop/vop_vringh.c ret = vop_vdev_inited(vdev); vdev 973 drivers/misc/mic/vop/vop_vringh.c ret = vop_virtio_copy_desc(vdev, ©); vdev 981 drivers/misc/mic/vop/vop_vringh.c mutex_unlock(&vdev->vdev_mutex); vdev 988 drivers/misc/mic/vop/vop_vringh.c mutex_lock(&vdev->vdev_mutex); vdev 989 drivers/misc/mic/vop/vop_vringh.c ret = vop_vdev_inited(vdev); vdev 992 drivers/misc/mic/vop/vop_vringh.c buf = memdup_user(argp, vdev->dd->config_len); vdev 997 drivers/misc/mic/vop/vop_vringh.c ret = vop_virtio_config_change(vdev, buf); vdev 1000 drivers/misc/mic/vop/vop_vringh.c mutex_unlock(&vdev->vdev_mutex); vdev 1017 drivers/misc/mic/vop/vop_vringh.c struct vop_vdev *vdev = f->private_data; vdev 1020 drivers/misc/mic/vop/vop_vringh.c mutex_lock(&vdev->vdev_mutex); vdev 1021 drivers/misc/mic/vop/vop_vringh.c if (vop_vdev_inited(vdev)) { vdev 1025 drivers/misc/mic/vop/vop_vringh.c poll_wait(f, &vdev->waitq, wait); vdev 1026 drivers/misc/mic/vop/vop_vringh.c if (vop_vdev_inited(vdev)) { vdev 1028 drivers/misc/mic/vop/vop_vringh.c } else if (vdev->poll_wake) { vdev 1029 drivers/misc/mic/vop/vop_vringh.c vdev->poll_wake = 0; vdev 1033 drivers/misc/mic/vop/vop_vringh.c mutex_unlock(&vdev->vdev_mutex); vdev 1038 drivers/misc/mic/vop/vop_vringh.c vop_query_offset(struct vop_vdev *vdev, unsigned long offset, vdev 1041 drivers/misc/mic/vop/vop_vringh.c struct vop_device *vpdev = vdev->vpdev; vdev 1059 drivers/misc/mic/vop/vop_vringh.c for (i = 0; i < vdev->dd->num_vq; i++) { vdev 1060 drivers/misc/mic/vop/vop_vringh.c struct vop_vringh *vvr = &vdev->vvr[i]; vdev 1077 drivers/misc/mic/vop/vop_vringh.c struct vop_vdev *vdev = f->private_data; vdev 1082 drivers/misc/mic/vop/vop_vringh.c err = vop_vdev_inited(vdev); vdev 1090 drivers/misc/mic/vop/vop_vringh.c i = vop_query_offset(vdev, offset, &size, &pa); vdev 1140 drivers/misc/mic/vop/vop_vringh.c struct vop_vdev *vdev; vdev 1145 drivers/misc/mic/vop/vop_vringh.c vdev = list_entry(pos, struct vop_vdev, list); vdev 1147 drivers/misc/mic/vop/vop_vringh.c reinit_completion(&vdev->destroy); vdev 1149 drivers/misc/mic/vop/vop_vringh.c mutex_lock(&vdev->vdev_mutex); vdev 1150 drivers/misc/mic/vop/vop_vringh.c vop_virtio_del_device(vdev); vdev 1151 drivers/misc/mic/vop/vop_vringh.c vdev->deleted = true; vdev 1152 drivers/misc/mic/vop/vop_vringh.c mutex_unlock(&vdev->vdev_mutex); vdev 1153 drivers/misc/mic/vop/vop_vringh.c complete(&vdev->destroy); vdev 103 drivers/net/caif/caif_virtio.c struct virtio_device *vdev; vdev 142 drivers/net/caif/caif_virtio.c struct cfv_info *cfv = vq_tx->vdev->priv; vdev 162 drivers/net/caif/caif_virtio.c struct cfv_info *cfv = vq_tx->vdev->priv; vdev 350 drivers/net/caif/caif_virtio.c static void cfv_recv(struct virtio_device *vdev, struct vringh *vr_rx) vdev 352 drivers/net/caif/caif_virtio.c struct cfv_info *cfv = vdev->priv; vdev 362 drivers/net/caif/caif_virtio.c dma_free_coherent(cfv->vdev->dev.parent->parent, vdev 396 drivers/net/caif/caif_virtio.c cfv->vdev->dev.parent->parent, vdev 647 drivers/net/caif/caif_virtio.c static int cfv_probe(struct virtio_device *vdev) vdev 663 drivers/net/caif/caif_virtio.c cfv->vdev = vdev; vdev 670 drivers/net/caif/caif_virtio.c if (!vdev->vringh_config || !vdev->vringh_config->find_vrhs) vdev 673 drivers/net/caif/caif_virtio.c err = vdev->vringh_config->find_vrhs(vdev, 1, &cfv->vr_rx, &vrh_cbs); vdev 678 drivers/net/caif/caif_virtio.c err = virtio_find_vqs(vdev, 1, &cfv->vq_tx, &vq_cbs, &names, NULL); vdev 683 drivers/net/caif/caif_virtio.c if (vdev->config->get) { vdev 684 drivers/net/caif/caif_virtio.c virtio_cread(vdev, struct virtio_caif_transf_config, headroom, vdev 686 drivers/net/caif/caif_virtio.c virtio_cread(vdev, struct virtio_caif_transf_config, headroom, vdev 688 drivers/net/caif/caif_virtio.c virtio_cread(vdev, struct virtio_caif_transf_config, tailroom, vdev 690 drivers/net/caif/caif_virtio.c virtio_cread(vdev, struct virtio_caif_transf_config, tailroom, vdev 692 drivers/net/caif/caif_virtio.c virtio_cread(vdev, struct virtio_caif_transf_config, mtu, vdev 694 drivers/net/caif/caif_virtio.c virtio_cread(vdev, struct virtio_caif_transf_config, mtu, vdev 712 drivers/net/caif/caif_virtio.c vdev->priv = cfv; vdev 729 drivers/net/caif/caif_virtio.c dev_err(&vdev->dev, "Unable to register netdev (%d)\n", err); vdev 740 drivers/net/caif/caif_virtio.c vdev->vringh_config->del_vrhs(cfv->vdev); vdev 741 drivers/net/caif/caif_virtio.c if (cfv->vdev) vdev 742 drivers/net/caif/caif_virtio.c vdev->config->del_vqs(cfv->vdev); vdev 747 drivers/net/caif/caif_virtio.c static void cfv_remove(struct virtio_device *vdev) vdev 749 drivers/net/caif/caif_virtio.c struct cfv_info *cfv = vdev->priv; vdev 759 drivers/net/caif/caif_virtio.c vdev->config->reset(vdev); vdev 760 drivers/net/caif/caif_virtio.c vdev->vringh_config->del_vrhs(cfv->vdev); vdev 762 drivers/net/caif/caif_virtio.c vdev->config->del_vqs(cfv->vdev); vdev 152 drivers/net/ethernet/cisco/enic/enic.h struct vnic_dev *vdev; vdev 205 drivers/net/ethernet/cisco/enic/enic.h static inline struct net_device *vnic_get_netdev(struct vnic_dev *vdev) vdev 207 drivers/net/ethernet/cisco/enic/enic.h struct enic *enic = vdev->priv; vdev 214 drivers/net/ethernet/cisco/enic/enic.h #define vdev_err(vdev, fmt, ...) \ vdev 215 drivers/net/ethernet/cisco/enic/enic.h dev_err(&(vdev)->pdev->dev, fmt, ##__VA_ARGS__) vdev 216 drivers/net/ethernet/cisco/enic/enic.h #define vdev_warn(vdev, fmt, ...) \ vdev 217 drivers/net/ethernet/cisco/enic/enic.h dev_warn(&(vdev)->pdev->dev, fmt, ##__VA_ARGS__) vdev 218 drivers/net/ethernet/cisco/enic/enic.h #define vdev_info(vdev, fmt, ...) \ vdev 219 drivers/net/ethernet/cisco/enic/enic.h dev_info(&(vdev)->pdev->dev, fmt, ##__VA_ARGS__) vdev 221 drivers/net/ethernet/cisco/enic/enic.h #define vdev_neterr(vdev, fmt, ...) \ vdev 222 drivers/net/ethernet/cisco/enic/enic.h netdev_err(vnic_get_netdev(vdev), fmt, ##__VA_ARGS__) vdev 223 drivers/net/ethernet/cisco/enic/enic.h #define vdev_netwarn(vdev, fmt, ...) \ vdev 224 drivers/net/ethernet/cisco/enic/enic.h netdev_warn(vnic_get_netdev(vdev), fmt, ##__VA_ARGS__) vdev 225 drivers/net/ethernet/cisco/enic/enic.h #define vdev_netinfo(vdev, fmt, ...) \ vdev 226 drivers/net/ethernet/cisco/enic/enic.h netdev_info(vnic_get_netdev(vdev), fmt, ##__VA_ARGS__) vdev 282 drivers/net/ethernet/cisco/enic/enic.h switch (vnic_dev_get_intr_mode(enic->vdev)) { vdev 295 drivers/net/ethernet/cisco/enic/enic.h switch (vnic_dev_get_intr_mode(enic->vdev)) { vdev 34 drivers/net/ethernet/cisco/enic/enic_api.c struct vnic_dev *vdev = enic->vdev; vdev 39 drivers/net/ethernet/cisco/enic/enic_api.c vnic_dev_cmd_proxy_by_index_start(vdev, vf); vdev 40 drivers/net/ethernet/cisco/enic/enic_api.c err = vnic_dev_cmd(vdev, cmd, a0, a1, wait); vdev 41 drivers/net/ethernet/cisco/enic/enic_api.c vnic_dev_cmd_proxy_end(vdev); vdev 45 drivers/net/ethernet/cisco/enic/enic_clsf.c res = vnic_dev_classifier(enic->vdev, CLSF_ADD, &rq, &data); vdev 64 drivers/net/ethernet/cisco/enic/enic_clsf.c ret = vnic_dev_classifier(enic->vdev, CLSF_DEL, &filter_id, NULL); vdev 33 drivers/net/ethernet/cisco/enic/enic_dev.c err = vnic_dev_fw_info(enic->vdev, fw_info); vdev 44 drivers/net/ethernet/cisco/enic/enic_dev.c err = vnic_dev_stats_dump(enic->vdev, vstats); vdev 58 drivers/net/ethernet/cisco/enic/enic_dev.c err = vnic_dev_add_addr(enic->vdev, enic->netdev->dev_addr); vdev 72 drivers/net/ethernet/cisco/enic/enic_dev.c err = vnic_dev_del_addr(enic->vdev, enic->netdev->dev_addr); vdev 84 drivers/net/ethernet/cisco/enic/enic_dev.c err = vnic_dev_packet_filter(enic->vdev, directed, vdev 96 drivers/net/ethernet/cisco/enic/enic_dev.c err = vnic_dev_add_addr(enic->vdev, addr); vdev 107 drivers/net/ethernet/cisco/enic/enic_dev.c err = vnic_dev_del_addr(enic->vdev, addr); vdev 118 drivers/net/ethernet/cisco/enic/enic_dev.c err = vnic_dev_notify_unset(enic->vdev); vdev 129 drivers/net/ethernet/cisco/enic/enic_dev.c err = vnic_dev_hang_notify(enic->vdev); vdev 140 drivers/net/ethernet/cisco/enic/enic_dev.c err = vnic_dev_set_ig_vlan_rewrite_mode(enic->vdev, vdev 152 drivers/net/ethernet/cisco/enic/enic_dev.c err = vnic_dev_enable_wait(enic->vdev); vdev 163 drivers/net/ethernet/cisco/enic/enic_dev.c err = vnic_dev_disable(enic->vdev); vdev 174 drivers/net/ethernet/cisco/enic/enic_dev.c err = vnic_dev_intr_coal_timer_info(enic->vdev); vdev 33 drivers/net/ethernet/cisco/enic/enic_dev.h vnic_dev_cmd_proxy_by_index_start(enic->vdev, vf); \ vdev 34 drivers/net/ethernet/cisco/enic/enic_dev.h err = vnicdevcmdfn(enic->vdev, ##__VA_ARGS__); \ vdev 35 drivers/net/ethernet/cisco/enic/enic_dev.h vnic_dev_cmd_proxy_end(enic->vdev); \ vdev 37 drivers/net/ethernet/cisco/enic/enic_dev.h err = vnicdevcmdfn(enic->vdev, ##__VA_ARGS__); \ vdev 122 drivers/net/ethernet/cisco/enic/enic_ethtool.c base->speed = vnic_dev_port_speed(enic->vdev); vdev 307 drivers/net/ethernet/cisco/enic/enic_ethtool.c if (vnic_dev_get_intr_mode(enic->vdev) == VNIC_DEV_INTR_MODE_MSIX) vdev 321 drivers/net/ethernet/cisco/enic/enic_ethtool.c u32 coalesce_usecs_max = vnic_dev_get_intr_coal_timer_max(enic->vdev); vdev 346 drivers/net/ethernet/cisco/enic/enic_ethtool.c if ((vnic_dev_get_intr_mode(enic->vdev) != VNIC_DEV_INTR_MODE_MSIX) && vdev 381 drivers/net/ethernet/cisco/enic/enic_ethtool.c coalesce_usecs_max = vnic_dev_get_intr_coal_timer_max(enic->vdev); vdev 392 drivers/net/ethernet/cisco/enic/enic_ethtool.c if (vnic_dev_get_intr_mode(enic->vdev) == VNIC_DEV_INTR_MODE_MSIX) { vdev 483 drivers/net/ethernet/cisco/enic/enic_ethtool.c (void)vnic_dev_capable_rss_hash_type(enic->vdev, &rss_hash_type); vdev 215 drivers/net/ethernet/cisco/enic/enic_main.c if ((vnic_dev_get_res_count(enic->vdev, RES_TYPE_WQ) != 1) && vdev 221 drivers/net/ethernet/cisco/enic/enic_main.c err = vnic_dev_overlay_offload_cfg(enic->vdev, vdev 227 drivers/net/ethernet/cisco/enic/enic_main.c err = vnic_dev_overlay_offload_ctrl(enic->vdev, OVERLAY_FEATURE_VXLAN, vdev 261 drivers/net/ethernet/cisco/enic/enic_main.c err = vnic_dev_overlay_offload_ctrl(enic->vdev, OVERLAY_FEATURE_VXLAN, vdev 361 drivers/net/ethernet/cisco/enic/enic_main.c struct enic *enic = vnic_dev_priv(wq->vdev); vdev 380 drivers/net/ethernet/cisco/enic/enic_main.c static int enic_wq_service(struct vnic_dev *vdev, struct cq_desc *cq_desc, vdev 383 drivers/net/ethernet/cisco/enic/enic_main.c struct enic *enic = vnic_dev_priv(vdev); vdev 428 drivers/net/ethernet/cisco/enic/enic_main.c u32 msg_enable = vnic_dev_msg_lvl(enic->vdev); vdev 439 drivers/net/ethernet/cisco/enic/enic_main.c u32 mtu = vnic_dev_mtu(enic->vdev); vdev 461 drivers/net/ethernet/cisco/enic/enic_main.c int link_status = vnic_dev_link_status(enic->vdev); vdev 1256 drivers/net/ethernet/cisco/enic/enic_main.c struct enic *enic = vnic_dev_priv(rq->vdev); vdev 1269 drivers/net/ethernet/cisco/enic/enic_main.c struct enic *enic = vnic_dev_priv(rq->vdev); vdev 1332 drivers/net/ethernet/cisco/enic/enic_main.c struct enic *enic = vnic_dev_priv(rq->vdev); vdev 1466 drivers/net/ethernet/cisco/enic/enic_main.c static int enic_rq_service(struct vnic_dev *vdev, struct cq_desc *cq_desc, vdev 1469 drivers/net/ethernet/cisco/enic/enic_main.c struct enic *enic = vnic_dev_priv(vdev); vdev 1607 drivers/net/ethernet/cisco/enic/enic_main.c if (vnic_dev_get_intr_mode(enic->vdev) == VNIC_DEV_INTR_MODE_MSIX) { vdev 1737 drivers/net/ethernet/cisco/enic/enic_main.c switch (vnic_dev_get_intr_mode(enic->vdev)) { vdev 1762 drivers/net/ethernet/cisco/enic/enic_main.c switch (vnic_dev_get_intr_mode(enic->vdev)) { vdev 1840 drivers/net/ethernet/cisco/enic/enic_main.c switch (vnic_dev_get_intr_mode(enic->vdev)) { vdev 1864 drivers/net/ethernet/cisco/enic/enic_main.c speed = vnic_dev_port_speed(enic->vdev); vdev 1889 drivers/net/ethernet/cisco/enic/enic_main.c switch (vnic_dev_get_intr_mode(enic->vdev)) { vdev 1891 drivers/net/ethernet/cisco/enic/enic_main.c err = vnic_dev_notify_set(enic->vdev, vdev 1895 drivers/net/ethernet/cisco/enic/enic_main.c err = vnic_dev_notify_set(enic->vdev, vdev 1899 drivers/net/ethernet/cisco/enic/enic_main.c err = vnic_dev_notify_set(enic->vdev, -1 /* no intr */); vdev 1909 drivers/net/ethernet/cisco/enic/enic_main.c switch (vnic_dev_get_intr_mode(enic->vdev)) { vdev 1966 drivers/net/ethernet/cisco/enic/enic_main.c if (vnic_dev_get_intr_mode(enic->vdev) == VNIC_DEV_INTR_MODE_MSIX) vdev 2016 drivers/net/ethernet/cisco/enic/enic_main.c if (vnic_dev_get_intr_mode(enic->vdev) == VNIC_DEV_INTR_MODE_MSIX) vdev 2093 drivers/net/ethernet/cisco/enic/enic_main.c int new_mtu = vnic_dev_mtu(enic->vdev); vdev 2106 drivers/net/ethernet/cisco/enic/enic_main.c struct vnic_dev *vdev = enic->vdev; vdev 2109 drivers/net/ethernet/cisco/enic/enic_main.c switch (vnic_dev_get_intr_mode(vdev)) { vdev 2136 drivers/net/ethernet/cisco/enic/enic_main.c static int enic_dev_wait(struct vnic_dev *vdev, vdev 2147 drivers/net/ethernet/cisco/enic/enic_main.c err = start(vdev, arg); vdev 2157 drivers/net/ethernet/cisco/enic/enic_main.c err = finished(vdev, &done); vdev 2176 drivers/net/ethernet/cisco/enic/enic_main.c err = enic_dev_wait(enic->vdev, vnic_dev_open, vdev 2189 drivers/net/ethernet/cisco/enic/enic_main.c err = enic_dev_wait(enic->vdev, vnic_dev_soft_reset, vdev 2202 drivers/net/ethernet/cisco/enic/enic_main.c err = enic_dev_wait(enic->vdev, vnic_dev_hang_reset, vdev 2306 drivers/net/ethernet/cisco/enic/enic_main.c res = vnic_dev_capable_rss_hash_type(enic->vdev, &rss_hash_type); vdev 2416 drivers/net/ethernet/cisco/enic/enic_main.c vnic_dev_set_intr_mode(enic->vdev, vdev 2436 drivers/net/ethernet/cisco/enic/enic_main.c vnic_dev_set_intr_mode(enic->vdev, vdev 2460 drivers/net/ethernet/cisco/enic/enic_main.c vnic_dev_set_intr_mode(enic->vdev, VNIC_DEV_INTR_MODE_MSI); vdev 2484 drivers/net/ethernet/cisco/enic/enic_main.c vnic_dev_set_intr_mode(enic->vdev, VNIC_DEV_INTR_MODE_INTX); vdev 2489 drivers/net/ethernet/cisco/enic/enic_main.c vnic_dev_set_intr_mode(enic->vdev, VNIC_DEV_INTR_MODE_UNKNOWN); vdev 2496 drivers/net/ethernet/cisco/enic/enic_main.c switch (vnic_dev_get_intr_mode(enic->vdev)) { vdev 2507 drivers/net/ethernet/cisco/enic/enic_main.c vnic_dev_set_intr_mode(enic->vdev, VNIC_DEV_INTR_MODE_UNKNOWN); vdev 2570 drivers/net/ethernet/cisco/enic/enic_main.c if (vnic_dev_get_intr_mode(enic->vdev) == VNIC_DEV_INTR_MODE_MSIX) vdev 2603 drivers/net/ethernet/cisco/enic/enic_main.c vnic_dev_intr_coal_timer_info_default(enic->vdev); vdev 2652 drivers/net/ethernet/cisco/enic/enic_main.c switch (vnic_dev_get_intr_mode(enic->vdev)) { vdev 2780 drivers/net/ethernet/cisco/enic/enic_main.c enic->vdev = vnic_dev_register(NULL, enic, pdev, enic->bar, vdev 2782 drivers/net/ethernet/cisco/enic/enic_main.c if (!enic->vdev) { vdev 2788 drivers/net/ethernet/cisco/enic/enic_main.c err = vnic_devcmd_init(enic->vdev); vdev 2862 drivers/net/ethernet/cisco/enic/enic_main.c err = vnic_dev_init(enic->vdev, 0); vdev 2956 drivers/net/ethernet/cisco/enic/enic_main.c err = vnic_dev_get_supported_feature_ver(enic->vdev, vdev 2999 drivers/net/ethernet/cisco/enic/enic_main.c vnic_dev_close(enic->vdev); vdev 3010 drivers/net/ethernet/cisco/enic/enic_main.c vnic_dev_unregister(enic->vdev); vdev 3034 drivers/net/ethernet/cisco/enic/enic_main.c vnic_dev_close(enic->vdev); vdev 3042 drivers/net/ethernet/cisco/enic/enic_main.c vnic_dev_unregister(enic->vdev); vdev 47 drivers/net/ethernet/cisco/enic/enic_res.c err = vnic_dev_get_mac_addr(enic->vdev, enic->mac_addr); vdev 56 drivers/net/ethernet/cisco/enic/enic_res.c err = vnic_dev_spec(enic->vdev, \ vdev 95 drivers/net/ethernet/cisco/enic/enic_res.c vnic_dev_get_intr_coal_timer_max(enic->vdev)); vdev 128 drivers/net/ethernet/cisco/enic/enic_res.c err = vnic_dev_cmd(enic->vdev, CMD_VLAN_ADD, &a0, &a1, wait); vdev 141 drivers/net/ethernet/cisco/enic/enic_res.c err = vnic_dev_cmd(enic->vdev, CMD_VLAN_DEL, &a0, &a1, wait); vdev 168 drivers/net/ethernet/cisco/enic/enic_res.c return vnic_dev_cmd(enic->vdev, cmd, &a0, &a1, wait); vdev 176 drivers/net/ethernet/cisco/enic/enic_res.c return vnic_dev_cmd(enic->vdev, CMD_RSS_KEY, &a0, &a1, wait); vdev 184 drivers/net/ethernet/cisco/enic/enic_res.c return vnic_dev_cmd(enic->vdev, CMD_RSS_CPU, &a0, &a1, wait); vdev 203 drivers/net/ethernet/cisco/enic/enic_res.c enic->wq_count = vnic_dev_get_res_count(enic->vdev, RES_TYPE_WQ); vdev 204 drivers/net/ethernet/cisco/enic/enic_res.c enic->rq_count = vnic_dev_get_res_count(enic->vdev, RES_TYPE_RQ); vdev 205 drivers/net/ethernet/cisco/enic/enic_res.c enic->cq_count = vnic_dev_get_res_count(enic->vdev, RES_TYPE_CQ); vdev 206 drivers/net/ethernet/cisco/enic/enic_res.c enic->intr_count = vnic_dev_get_res_count(enic->vdev, vdev 225 drivers/net/ethernet/cisco/enic/enic_res.c intr_mode = vnic_dev_get_intr_mode(enic->vdev); vdev 323 drivers/net/ethernet/cisco/enic/enic_res.c intr_mode = vnic_dev_get_intr_mode(enic->vdev); vdev 338 drivers/net/ethernet/cisco/enic/enic_res.c err = vnic_wq_alloc(enic->vdev, &enic->wq[i], i, vdev 346 drivers/net/ethernet/cisco/enic/enic_res.c err = vnic_rq_alloc(enic->vdev, &enic->rq[i], i, vdev 355 drivers/net/ethernet/cisco/enic/enic_res.c err = vnic_cq_alloc(enic->vdev, &enic->cq[i], i, vdev 359 drivers/net/ethernet/cisco/enic/enic_res.c err = vnic_cq_alloc(enic->vdev, &enic->cq[i], i, vdev 367 drivers/net/ethernet/cisco/enic/enic_res.c err = vnic_intr_alloc(enic->vdev, &enic->intr[i], i); vdev 375 drivers/net/ethernet/cisco/enic/enic_res.c enic->legacy_pba = vnic_dev_get_res(enic->vdev, vdev 31 drivers/net/ethernet/cisco/enic/vnic_cq.c vnic_dev_free_desc_ring(cq->vdev, &cq->ring); vdev 36 drivers/net/ethernet/cisco/enic/vnic_cq.c int vnic_cq_alloc(struct vnic_dev *vdev, struct vnic_cq *cq, unsigned int index, vdev 42 drivers/net/ethernet/cisco/enic/vnic_cq.c cq->vdev = vdev; vdev 44 drivers/net/ethernet/cisco/enic/vnic_cq.c cq->ctrl = vnic_dev_get_res(vdev, RES_TYPE_CQ, index); vdev 46 drivers/net/ethernet/cisco/enic/vnic_cq.c vdev_err(vdev, "Failed to hook CQ[%d] resource\n", index); vdev 50 drivers/net/ethernet/cisco/enic/vnic_cq.c err = vnic_dev_alloc_desc_ring(vdev, &cq->ring, desc_count, desc_size); vdev 60 drivers/net/ethernet/cisco/enic/vnic_cq.h struct vnic_dev *vdev; vdev 74 drivers/net/ethernet/cisco/enic/vnic_cq.h int (*q_service)(struct vnic_dev *vdev, struct cq_desc *cq_desc, vdev 90 drivers/net/ethernet/cisco/enic/vnic_cq.h if ((*q_service)(cq->vdev, cq_desc, type, vdev 114 drivers/net/ethernet/cisco/enic/vnic_cq.h int vnic_cq_alloc(struct vnic_dev *vdev, struct vnic_cq *cq, unsigned int index, vdev 39 drivers/net/ethernet/cisco/enic/vnic_dev.c void *vnic_dev_priv(struct vnic_dev *vdev) vdev 41 drivers/net/ethernet/cisco/enic/vnic_dev.c return vdev->priv; vdev 44 drivers/net/ethernet/cisco/enic/vnic_dev.c static int vnic_dev_discover_res(struct vnic_dev *vdev, vdev 56 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev_err(vdev, "vNIC BAR0 res hdr length error\n"); vdev 63 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev_err(vdev, "vNIC BAR0 res hdr not mem-mapped\n"); vdev 72 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev_err(vdev, "vNIC BAR0 res magic/version error exp (%lx/%lx) or (%lx/%lx), curr (%x/%x)\n", vdev 109 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev_err(vdev, "vNIC BAR0 resource %d out-of-bounds, offset 0x%x + size 0x%x > bar len 0x%lx\n", vdev 124 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->res[type].count = count; vdev 125 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->res[type].vaddr = (char __iomem *)bar[bar_num].vaddr + vdev 127 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->res[type].bus_addr = bar[bar_num].bus_addr + bar_offset; vdev 133 drivers/net/ethernet/cisco/enic/vnic_dev.c unsigned int vnic_dev_get_res_count(struct vnic_dev *vdev, vdev 136 drivers/net/ethernet/cisco/enic/vnic_dev.c return vdev->res[type].count; vdev 140 drivers/net/ethernet/cisco/enic/vnic_dev.c void __iomem *vnic_dev_get_res(struct vnic_dev *vdev, enum vnic_res_type type, vdev 143 drivers/net/ethernet/cisco/enic/vnic_dev.c if (!vdev->res[type].vaddr) vdev 151 drivers/net/ethernet/cisco/enic/vnic_dev.c return (char __iomem *)vdev->res[type].vaddr + vdev 154 drivers/net/ethernet/cisco/enic/vnic_dev.c return (char __iomem *)vdev->res[type].vaddr; vdev 191 drivers/net/ethernet/cisco/enic/vnic_dev.c int vnic_dev_alloc_desc_ring(struct vnic_dev *vdev, struct vnic_dev_ring *ring, vdev 196 drivers/net/ethernet/cisco/enic/vnic_dev.c ring->descs_unaligned = pci_alloc_consistent(vdev->pdev, vdev 201 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev_err(vdev, "Failed to allocate ring (size=%d), aborting\n", vdev 218 drivers/net/ethernet/cisco/enic/vnic_dev.c void vnic_dev_free_desc_ring(struct vnic_dev *vdev, struct vnic_dev_ring *ring) vdev 221 drivers/net/ethernet/cisco/enic/vnic_dev.c pci_free_consistent(vdev->pdev, vdev 229 drivers/net/ethernet/cisco/enic/vnic_dev.c static int _vnic_dev_cmd(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd, vdev 232 drivers/net/ethernet/cisco/enic/vnic_dev.c struct vnic_devcmd __iomem *devcmd = vdev->devcmd; vdev 244 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev_neterr(vdev, "Busy devcmd %d\n", _CMD_N(cmd)); vdev 250 drivers/net/ethernet/cisco/enic/vnic_dev.c writeq(vdev->args[i], &devcmd->args[i]); vdev 278 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev_neterr(vdev, "Error %d devcmd %d\n", vdev 286 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->args[i] = readq(&devcmd->args[i]); vdev 293 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev_neterr(vdev, "Timedout devcmd %d\n", _CMD_N(cmd)); vdev 297 drivers/net/ethernet/cisco/enic/vnic_dev.c static int _vnic_dev_cmd2(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd, vdev 300 drivers/net/ethernet/cisco/enic/vnic_dev.c struct devcmd2_controller *dc2c = vdev->devcmd2; vdev 316 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev_neterr(vdev, "devcmd2 %d: wq is full. fetch index: %u, posted index: %u\n", vdev 327 drivers/net/ethernet/cisco/enic/vnic_dev.c dc2c->cmd_ring[posted].args[i] = vdev->args[i]; vdev 355 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev_neterr(vdev, "Error %d devcmd %d\n", vdev 361 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->args[i] = result->results[i]; vdev 368 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev_neterr(vdev, "devcmd %d timed out\n", _CMD_N(cmd)); vdev 373 drivers/net/ethernet/cisco/enic/vnic_dev.c static int vnic_dev_init_devcmd1(struct vnic_dev *vdev) vdev 375 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->devcmd = vnic_dev_get_res(vdev, RES_TYPE_DEVCMD, 0); vdev 376 drivers/net/ethernet/cisco/enic/vnic_dev.c if (!vdev->devcmd) vdev 378 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->devcmd_rtn = _vnic_dev_cmd; vdev 383 drivers/net/ethernet/cisco/enic/vnic_dev.c static int vnic_dev_init_devcmd2(struct vnic_dev *vdev) vdev 388 drivers/net/ethernet/cisco/enic/vnic_dev.c if (vdev->devcmd2) vdev 391 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->devcmd2 = kzalloc(sizeof(*vdev->devcmd2), GFP_KERNEL); vdev 392 drivers/net/ethernet/cisco/enic/vnic_dev.c if (!vdev->devcmd2) vdev 395 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->devcmd2->color = 1; vdev 396 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->devcmd2->result_size = DEVCMD2_RING_SIZE; vdev 397 drivers/net/ethernet/cisco/enic/vnic_dev.c err = enic_wq_devcmd2_alloc(vdev, &vdev->devcmd2->wq, DEVCMD2_RING_SIZE, vdev 402 drivers/net/ethernet/cisco/enic/vnic_dev.c fetch_index = ioread32(&vdev->devcmd2->wq.ctrl->fetch_index); vdev 404 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev_err(vdev, "Fatal error in devcmd2 init - hardware surprise removal\n"); vdev 409 drivers/net/ethernet/cisco/enic/vnic_dev.c enic_wq_init_start(&vdev->devcmd2->wq, 0, fetch_index, fetch_index, 0, vdev 411 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->devcmd2->posted = fetch_index; vdev 412 drivers/net/ethernet/cisco/enic/vnic_dev.c vnic_wq_enable(&vdev->devcmd2->wq); vdev 414 drivers/net/ethernet/cisco/enic/vnic_dev.c err = vnic_dev_alloc_desc_ring(vdev, &vdev->devcmd2->results_ring, vdev 419 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->devcmd2->result = vdev->devcmd2->results_ring.descs; vdev 420 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->devcmd2->cmd_ring = vdev->devcmd2->wq.ring.descs; vdev 421 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->devcmd2->wq_ctrl = vdev->devcmd2->wq.ctrl; vdev 422 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->args[0] = (u64)vdev->devcmd2->results_ring.base_addr | vdev 424 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->args[1] = DEVCMD2_RING_SIZE; vdev 426 drivers/net/ethernet/cisco/enic/vnic_dev.c err = _vnic_dev_cmd2(vdev, CMD_INITIALIZE_DEVCMD2, 1000); vdev 430 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->devcmd_rtn = _vnic_dev_cmd2; vdev 435 drivers/net/ethernet/cisco/enic/vnic_dev.c vnic_dev_free_desc_ring(vdev, &vdev->devcmd2->results_ring); vdev 437 drivers/net/ethernet/cisco/enic/vnic_dev.c vnic_wq_disable(&vdev->devcmd2->wq); vdev 439 drivers/net/ethernet/cisco/enic/vnic_dev.c vnic_wq_free(&vdev->devcmd2->wq); vdev 441 drivers/net/ethernet/cisco/enic/vnic_dev.c kfree(vdev->devcmd2); vdev 442 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->devcmd2 = NULL; vdev 447 drivers/net/ethernet/cisco/enic/vnic_dev.c static void vnic_dev_deinit_devcmd2(struct vnic_dev *vdev) vdev 449 drivers/net/ethernet/cisco/enic/vnic_dev.c vnic_dev_free_desc_ring(vdev, &vdev->devcmd2->results_ring); vdev 450 drivers/net/ethernet/cisco/enic/vnic_dev.c vnic_wq_disable(&vdev->devcmd2->wq); vdev 451 drivers/net/ethernet/cisco/enic/vnic_dev.c vnic_wq_free(&vdev->devcmd2->wq); vdev 452 drivers/net/ethernet/cisco/enic/vnic_dev.c kfree(vdev->devcmd2); vdev 455 drivers/net/ethernet/cisco/enic/vnic_dev.c static int vnic_dev_cmd_proxy(struct vnic_dev *vdev, vdev 462 drivers/net/ethernet/cisco/enic/vnic_dev.c memset(vdev->args, 0, sizeof(vdev->args)); vdev 464 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->args[0] = vdev->proxy_index; vdev 465 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->args[1] = cmd; vdev 466 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->args[2] = *a0; vdev 467 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->args[3] = *a1; vdev 469 drivers/net/ethernet/cisco/enic/vnic_dev.c err = vdev->devcmd_rtn(vdev, proxy_cmd, wait); vdev 473 drivers/net/ethernet/cisco/enic/vnic_dev.c status = (u32)vdev->args[0]; vdev 475 drivers/net/ethernet/cisco/enic/vnic_dev.c err = (int)vdev->args[1]; vdev 478 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev_neterr(vdev, "Error %d proxy devcmd %d\n", vdev 483 drivers/net/ethernet/cisco/enic/vnic_dev.c *a0 = vdev->args[1]; vdev 484 drivers/net/ethernet/cisco/enic/vnic_dev.c *a1 = vdev->args[2]; vdev 489 drivers/net/ethernet/cisco/enic/vnic_dev.c static int vnic_dev_cmd_no_proxy(struct vnic_dev *vdev, vdev 494 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->args[0] = *a0; vdev 495 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->args[1] = *a1; vdev 497 drivers/net/ethernet/cisco/enic/vnic_dev.c err = vdev->devcmd_rtn(vdev, cmd, wait); vdev 499 drivers/net/ethernet/cisco/enic/vnic_dev.c *a0 = vdev->args[0]; vdev 500 drivers/net/ethernet/cisco/enic/vnic_dev.c *a1 = vdev->args[1]; vdev 505 drivers/net/ethernet/cisco/enic/vnic_dev.c void vnic_dev_cmd_proxy_by_index_start(struct vnic_dev *vdev, u16 index) vdev 507 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->proxy = PROXY_BY_INDEX; vdev 508 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->proxy_index = index; vdev 511 drivers/net/ethernet/cisco/enic/vnic_dev.c void vnic_dev_cmd_proxy_end(struct vnic_dev *vdev) vdev 513 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->proxy = PROXY_NONE; vdev 514 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->proxy_index = 0; vdev 517 drivers/net/ethernet/cisco/enic/vnic_dev.c int vnic_dev_cmd(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd, vdev 520 drivers/net/ethernet/cisco/enic/vnic_dev.c memset(vdev->args, 0, sizeof(vdev->args)); vdev 522 drivers/net/ethernet/cisco/enic/vnic_dev.c switch (vdev->proxy) { vdev 524 drivers/net/ethernet/cisco/enic/vnic_dev.c return vnic_dev_cmd_proxy(vdev, CMD_PROXY_BY_INDEX, cmd, vdev 527 drivers/net/ethernet/cisco/enic/vnic_dev.c return vnic_dev_cmd_proxy(vdev, CMD_PROXY_BY_BDF, cmd, vdev 531 drivers/net/ethernet/cisco/enic/vnic_dev.c return vnic_dev_cmd_no_proxy(vdev, cmd, a0, a1, wait); vdev 535 drivers/net/ethernet/cisco/enic/vnic_dev.c static int vnic_dev_capable(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd) vdev 541 drivers/net/ethernet/cisco/enic/vnic_dev.c err = vnic_dev_cmd(vdev, CMD_CAPABILITY, &a0, &a1, wait); vdev 546 drivers/net/ethernet/cisco/enic/vnic_dev.c int vnic_dev_fw_info(struct vnic_dev *vdev, vdev 553 drivers/net/ethernet/cisco/enic/vnic_dev.c if (!vdev->fw_info) { vdev 554 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->fw_info = pci_zalloc_consistent(vdev->pdev, vdev 556 drivers/net/ethernet/cisco/enic/vnic_dev.c &vdev->fw_info_pa); vdev 557 drivers/net/ethernet/cisco/enic/vnic_dev.c if (!vdev->fw_info) vdev 560 drivers/net/ethernet/cisco/enic/vnic_dev.c a0 = vdev->fw_info_pa; vdev 564 drivers/net/ethernet/cisco/enic/vnic_dev.c if (vnic_dev_capable(vdev, CMD_MCPU_FW_INFO)) vdev 565 drivers/net/ethernet/cisco/enic/vnic_dev.c err = vnic_dev_cmd(vdev, CMD_MCPU_FW_INFO, vdev 568 drivers/net/ethernet/cisco/enic/vnic_dev.c err = vnic_dev_cmd(vdev, CMD_MCPU_FW_INFO_OLD, vdev 572 drivers/net/ethernet/cisco/enic/vnic_dev.c *fw_info = vdev->fw_info; vdev 577 drivers/net/ethernet/cisco/enic/vnic_dev.c int vnic_dev_spec(struct vnic_dev *vdev, unsigned int offset, unsigned int size, vdev 587 drivers/net/ethernet/cisco/enic/vnic_dev.c err = vnic_dev_cmd(vdev, CMD_DEV_SPEC, &a0, &a1, wait); vdev 600 drivers/net/ethernet/cisco/enic/vnic_dev.c int vnic_dev_stats_dump(struct vnic_dev *vdev, struct vnic_stats **stats) vdev 605 drivers/net/ethernet/cisco/enic/vnic_dev.c if (!vdev->stats) { vdev 606 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->stats = pci_alloc_consistent(vdev->pdev, vdev 607 drivers/net/ethernet/cisco/enic/vnic_dev.c sizeof(struct vnic_stats), &vdev->stats_pa); vdev 608 drivers/net/ethernet/cisco/enic/vnic_dev.c if (!vdev->stats) vdev 612 drivers/net/ethernet/cisco/enic/vnic_dev.c *stats = vdev->stats; vdev 613 drivers/net/ethernet/cisco/enic/vnic_dev.c a0 = vdev->stats_pa; vdev 616 drivers/net/ethernet/cisco/enic/vnic_dev.c return vnic_dev_cmd(vdev, CMD_STATS_DUMP, &a0, &a1, wait); vdev 619 drivers/net/ethernet/cisco/enic/vnic_dev.c int vnic_dev_close(struct vnic_dev *vdev) vdev 623 drivers/net/ethernet/cisco/enic/vnic_dev.c return vnic_dev_cmd(vdev, CMD_CLOSE, &a0, &a1, wait); vdev 626 drivers/net/ethernet/cisco/enic/vnic_dev.c int vnic_dev_enable_wait(struct vnic_dev *vdev) vdev 631 drivers/net/ethernet/cisco/enic/vnic_dev.c if (vnic_dev_capable(vdev, CMD_ENABLE_WAIT)) vdev 632 drivers/net/ethernet/cisco/enic/vnic_dev.c return vnic_dev_cmd(vdev, CMD_ENABLE_WAIT, &a0, &a1, wait); vdev 634 drivers/net/ethernet/cisco/enic/vnic_dev.c return vnic_dev_cmd(vdev, CMD_ENABLE, &a0, &a1, wait); vdev 637 drivers/net/ethernet/cisco/enic/vnic_dev.c int vnic_dev_disable(struct vnic_dev *vdev) vdev 641 drivers/net/ethernet/cisco/enic/vnic_dev.c return vnic_dev_cmd(vdev, CMD_DISABLE, &a0, &a1, wait); vdev 644 drivers/net/ethernet/cisco/enic/vnic_dev.c int vnic_dev_open(struct vnic_dev *vdev, int arg) vdev 648 drivers/net/ethernet/cisco/enic/vnic_dev.c return vnic_dev_cmd(vdev, CMD_OPEN, &a0, &a1, wait); vdev 651 drivers/net/ethernet/cisco/enic/vnic_dev.c int vnic_dev_open_done(struct vnic_dev *vdev, int *done) vdev 659 drivers/net/ethernet/cisco/enic/vnic_dev.c err = vnic_dev_cmd(vdev, CMD_OPEN_STATUS, &a0, &a1, wait); vdev 668 drivers/net/ethernet/cisco/enic/vnic_dev.c int vnic_dev_soft_reset(struct vnic_dev *vdev, int arg) vdev 672 drivers/net/ethernet/cisco/enic/vnic_dev.c return vnic_dev_cmd(vdev, CMD_SOFT_RESET, &a0, &a1, wait); vdev 675 drivers/net/ethernet/cisco/enic/vnic_dev.c int vnic_dev_soft_reset_done(struct vnic_dev *vdev, int *done) vdev 683 drivers/net/ethernet/cisco/enic/vnic_dev.c err = vnic_dev_cmd(vdev, CMD_SOFT_RESET_STATUS, &a0, &a1, wait); vdev 692 drivers/net/ethernet/cisco/enic/vnic_dev.c int vnic_dev_hang_reset(struct vnic_dev *vdev, int arg) vdev 698 drivers/net/ethernet/cisco/enic/vnic_dev.c if (vnic_dev_capable(vdev, CMD_HANG_RESET)) { vdev 699 drivers/net/ethernet/cisco/enic/vnic_dev.c return vnic_dev_cmd(vdev, CMD_HANG_RESET, vdev 702 drivers/net/ethernet/cisco/enic/vnic_dev.c err = vnic_dev_soft_reset(vdev, arg); vdev 705 drivers/net/ethernet/cisco/enic/vnic_dev.c return vnic_dev_init(vdev, 0); vdev 709 drivers/net/ethernet/cisco/enic/vnic_dev.c int vnic_dev_hang_reset_done(struct vnic_dev *vdev, int *done) vdev 717 drivers/net/ethernet/cisco/enic/vnic_dev.c if (vnic_dev_capable(vdev, CMD_HANG_RESET_STATUS)) { vdev 718 drivers/net/ethernet/cisco/enic/vnic_dev.c err = vnic_dev_cmd(vdev, CMD_HANG_RESET_STATUS, vdev 723 drivers/net/ethernet/cisco/enic/vnic_dev.c return vnic_dev_soft_reset_done(vdev, done); vdev 731 drivers/net/ethernet/cisco/enic/vnic_dev.c int vnic_dev_hang_notify(struct vnic_dev *vdev) vdev 735 drivers/net/ethernet/cisco/enic/vnic_dev.c return vnic_dev_cmd(vdev, CMD_HANG_NOTIFY, &a0, &a1, wait); vdev 738 drivers/net/ethernet/cisco/enic/vnic_dev.c int vnic_dev_get_mac_addr(struct vnic_dev *vdev, u8 *mac_addr) vdev 747 drivers/net/ethernet/cisco/enic/vnic_dev.c err = vnic_dev_cmd(vdev, CMD_GET_MAC_ADDR, &a0, &a1, wait); vdev 757 drivers/net/ethernet/cisco/enic/vnic_dev.c int vnic_dev_packet_filter(struct vnic_dev *vdev, int directed, int multicast, vdev 770 drivers/net/ethernet/cisco/enic/vnic_dev.c err = vnic_dev_cmd(vdev, CMD_PACKET_FILTER, &a0, &a1, wait); vdev 772 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev_neterr(vdev, "Can't set packet filter\n"); vdev 777 drivers/net/ethernet/cisco/enic/vnic_dev.c int vnic_dev_add_addr(struct vnic_dev *vdev, const u8 *addr) vdev 787 drivers/net/ethernet/cisco/enic/vnic_dev.c err = vnic_dev_cmd(vdev, CMD_ADDR_ADD, &a0, &a1, wait); vdev 789 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev_neterr(vdev, "Can't add addr [%pM], %d\n", addr, err); vdev 794 drivers/net/ethernet/cisco/enic/vnic_dev.c int vnic_dev_del_addr(struct vnic_dev *vdev, const u8 *addr) vdev 804 drivers/net/ethernet/cisco/enic/vnic_dev.c err = vnic_dev_cmd(vdev, CMD_ADDR_DEL, &a0, &a1, wait); vdev 806 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev_neterr(vdev, "Can't del addr [%pM], %d\n", addr, err); vdev 811 drivers/net/ethernet/cisco/enic/vnic_dev.c int vnic_dev_set_ig_vlan_rewrite_mode(struct vnic_dev *vdev, vdev 817 drivers/net/ethernet/cisco/enic/vnic_dev.c if (vnic_dev_capable(vdev, CMD_IG_VLAN_REWRITE_MODE)) vdev 818 drivers/net/ethernet/cisco/enic/vnic_dev.c return vnic_dev_cmd(vdev, CMD_IG_VLAN_REWRITE_MODE, vdev 824 drivers/net/ethernet/cisco/enic/vnic_dev.c static int vnic_dev_notify_setcmd(struct vnic_dev *vdev, vdev 832 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->notify = notify_addr; vdev 833 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->notify_pa = notify_pa; vdev 839 drivers/net/ethernet/cisco/enic/vnic_dev.c r = vnic_dev_cmd(vdev, CMD_NOTIFY, &a0, &a1, wait); vdev 840 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->notify_sz = (r == 0) ? (u32)a1 : 0; vdev 844 drivers/net/ethernet/cisco/enic/vnic_dev.c int vnic_dev_notify_set(struct vnic_dev *vdev, u16 intr) vdev 849 drivers/net/ethernet/cisco/enic/vnic_dev.c if (vdev->notify || vdev->notify_pa) { vdev 850 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev_neterr(vdev, "notify block %p still allocated\n", vdev 851 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->notify); vdev 855 drivers/net/ethernet/cisco/enic/vnic_dev.c notify_addr = pci_alloc_consistent(vdev->pdev, vdev 861 drivers/net/ethernet/cisco/enic/vnic_dev.c return vnic_dev_notify_setcmd(vdev, notify_addr, notify_pa, intr); vdev 864 drivers/net/ethernet/cisco/enic/vnic_dev.c static int vnic_dev_notify_unsetcmd(struct vnic_dev *vdev) vdev 874 drivers/net/ethernet/cisco/enic/vnic_dev.c err = vnic_dev_cmd(vdev, CMD_NOTIFY, &a0, &a1, wait); vdev 875 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->notify = NULL; vdev 876 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->notify_pa = 0; vdev 877 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->notify_sz = 0; vdev 882 drivers/net/ethernet/cisco/enic/vnic_dev.c int vnic_dev_notify_unset(struct vnic_dev *vdev) vdev 884 drivers/net/ethernet/cisco/enic/vnic_dev.c if (vdev->notify) { vdev 885 drivers/net/ethernet/cisco/enic/vnic_dev.c pci_free_consistent(vdev->pdev, vdev 887 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->notify, vdev 888 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->notify_pa); vdev 891 drivers/net/ethernet/cisco/enic/vnic_dev.c return vnic_dev_notify_unsetcmd(vdev); vdev 894 drivers/net/ethernet/cisco/enic/vnic_dev.c static int vnic_dev_notify_ready(struct vnic_dev *vdev) vdev 897 drivers/net/ethernet/cisco/enic/vnic_dev.c unsigned int nwords = vdev->notify_sz / 4; vdev 901 drivers/net/ethernet/cisco/enic/vnic_dev.c if (!vdev->notify || !vdev->notify_sz) vdev 906 drivers/net/ethernet/cisco/enic/vnic_dev.c memcpy(&vdev->notify_copy, vdev->notify, vdev->notify_sz); vdev 907 drivers/net/ethernet/cisco/enic/vnic_dev.c words = (u32 *)&vdev->notify_copy; vdev 915 drivers/net/ethernet/cisco/enic/vnic_dev.c int vnic_dev_init(struct vnic_dev *vdev, int arg) vdev 921 drivers/net/ethernet/cisco/enic/vnic_dev.c if (vnic_dev_capable(vdev, CMD_INIT)) vdev 922 drivers/net/ethernet/cisco/enic/vnic_dev.c r = vnic_dev_cmd(vdev, CMD_INIT, &a0, &a1, wait); vdev 924 drivers/net/ethernet/cisco/enic/vnic_dev.c vnic_dev_cmd(vdev, CMD_INIT_v1, &a0, &a1, wait); vdev 929 drivers/net/ethernet/cisco/enic/vnic_dev.c vnic_dev_cmd(vdev, CMD_GET_MAC_ADDR, &a0, &a1, wait); vdev 930 drivers/net/ethernet/cisco/enic/vnic_dev.c vnic_dev_cmd(vdev, CMD_ADDR_ADD, &a0, &a1, wait); vdev 936 drivers/net/ethernet/cisco/enic/vnic_dev.c int vnic_dev_deinit(struct vnic_dev *vdev) vdev 941 drivers/net/ethernet/cisco/enic/vnic_dev.c return vnic_dev_cmd(vdev, CMD_DEINIT, &a0, &a1, wait); vdev 944 drivers/net/ethernet/cisco/enic/vnic_dev.c void vnic_dev_intr_coal_timer_info_default(struct vnic_dev *vdev) vdev 947 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->intr_coal_timer_info.mul = 2; vdev 948 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->intr_coal_timer_info.div = 3; vdev 949 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->intr_coal_timer_info.max_usec = vdev 950 drivers/net/ethernet/cisco/enic/vnic_dev.c vnic_dev_intr_coal_timer_hw_to_usec(vdev, 0xffff); vdev 953 drivers/net/ethernet/cisco/enic/vnic_dev.c int vnic_dev_intr_coal_timer_info(struct vnic_dev *vdev) vdev 958 drivers/net/ethernet/cisco/enic/vnic_dev.c memset(vdev->args, 0, sizeof(vdev->args)); vdev 960 drivers/net/ethernet/cisco/enic/vnic_dev.c if (vnic_dev_capable(vdev, CMD_INTR_COAL_CONVERT)) vdev 961 drivers/net/ethernet/cisco/enic/vnic_dev.c err = vdev->devcmd_rtn(vdev, CMD_INTR_COAL_CONVERT, wait); vdev 969 drivers/net/ethernet/cisco/enic/vnic_dev.c (!err && !(vdev->args[0] && vdev->args[1] && vdev->args[2]))) { vdev 970 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev_netwarn(vdev, "Using default conversion factor for interrupt coalesce timer\n"); vdev 971 drivers/net/ethernet/cisco/enic/vnic_dev.c vnic_dev_intr_coal_timer_info_default(vdev); vdev 976 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->intr_coal_timer_info.mul = (u32) vdev->args[0]; vdev 977 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->intr_coal_timer_info.div = (u32) vdev->args[1]; vdev 978 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->intr_coal_timer_info.max_usec = (u32) vdev->args[2]; vdev 984 drivers/net/ethernet/cisco/enic/vnic_dev.c int vnic_dev_link_status(struct vnic_dev *vdev) vdev 986 drivers/net/ethernet/cisco/enic/vnic_dev.c if (!vnic_dev_notify_ready(vdev)) vdev 989 drivers/net/ethernet/cisco/enic/vnic_dev.c return vdev->notify_copy.link_state; vdev 992 drivers/net/ethernet/cisco/enic/vnic_dev.c u32 vnic_dev_port_speed(struct vnic_dev *vdev) vdev 994 drivers/net/ethernet/cisco/enic/vnic_dev.c if (!vnic_dev_notify_ready(vdev)) vdev 997 drivers/net/ethernet/cisco/enic/vnic_dev.c return vdev->notify_copy.port_speed; vdev 1000 drivers/net/ethernet/cisco/enic/vnic_dev.c u32 vnic_dev_msg_lvl(struct vnic_dev *vdev) vdev 1002 drivers/net/ethernet/cisco/enic/vnic_dev.c if (!vnic_dev_notify_ready(vdev)) vdev 1005 drivers/net/ethernet/cisco/enic/vnic_dev.c return vdev->notify_copy.msglvl; vdev 1008 drivers/net/ethernet/cisco/enic/vnic_dev.c u32 vnic_dev_mtu(struct vnic_dev *vdev) vdev 1010 drivers/net/ethernet/cisco/enic/vnic_dev.c if (!vnic_dev_notify_ready(vdev)) vdev 1013 drivers/net/ethernet/cisco/enic/vnic_dev.c return vdev->notify_copy.mtu; vdev 1016 drivers/net/ethernet/cisco/enic/vnic_dev.c void vnic_dev_set_intr_mode(struct vnic_dev *vdev, vdev 1019 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->intr_mode = intr_mode; vdev 1023 drivers/net/ethernet/cisco/enic/vnic_dev.c struct vnic_dev *vdev) vdev 1025 drivers/net/ethernet/cisco/enic/vnic_dev.c return vdev->intr_mode; vdev 1028 drivers/net/ethernet/cisco/enic/vnic_dev.c u32 vnic_dev_intr_coal_timer_usec_to_hw(struct vnic_dev *vdev, u32 usec) vdev 1030 drivers/net/ethernet/cisco/enic/vnic_dev.c return (usec * vdev->intr_coal_timer_info.mul) / vdev 1031 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->intr_coal_timer_info.div; vdev 1034 drivers/net/ethernet/cisco/enic/vnic_dev.c u32 vnic_dev_intr_coal_timer_hw_to_usec(struct vnic_dev *vdev, u32 hw_cycles) vdev 1036 drivers/net/ethernet/cisco/enic/vnic_dev.c return (hw_cycles * vdev->intr_coal_timer_info.div) / vdev 1037 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->intr_coal_timer_info.mul; vdev 1040 drivers/net/ethernet/cisco/enic/vnic_dev.c u32 vnic_dev_get_intr_coal_timer_max(struct vnic_dev *vdev) vdev 1042 drivers/net/ethernet/cisco/enic/vnic_dev.c return vdev->intr_coal_timer_info.max_usec; vdev 1045 drivers/net/ethernet/cisco/enic/vnic_dev.c void vnic_dev_unregister(struct vnic_dev *vdev) vdev 1047 drivers/net/ethernet/cisco/enic/vnic_dev.c if (vdev) { vdev 1048 drivers/net/ethernet/cisco/enic/vnic_dev.c if (vdev->notify) vdev 1049 drivers/net/ethernet/cisco/enic/vnic_dev.c pci_free_consistent(vdev->pdev, vdev 1051 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->notify, vdev 1052 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->notify_pa); vdev 1053 drivers/net/ethernet/cisco/enic/vnic_dev.c if (vdev->stats) vdev 1054 drivers/net/ethernet/cisco/enic/vnic_dev.c pci_free_consistent(vdev->pdev, vdev 1056 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->stats, vdev->stats_pa); vdev 1057 drivers/net/ethernet/cisco/enic/vnic_dev.c if (vdev->fw_info) vdev 1058 drivers/net/ethernet/cisco/enic/vnic_dev.c pci_free_consistent(vdev->pdev, vdev 1060 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->fw_info, vdev->fw_info_pa); vdev 1061 drivers/net/ethernet/cisco/enic/vnic_dev.c if (vdev->devcmd2) vdev 1062 drivers/net/ethernet/cisco/enic/vnic_dev.c vnic_dev_deinit_devcmd2(vdev); vdev 1064 drivers/net/ethernet/cisco/enic/vnic_dev.c kfree(vdev); vdev 1069 drivers/net/ethernet/cisco/enic/vnic_dev.c struct vnic_dev *vnic_dev_register(struct vnic_dev *vdev, vdev 1073 drivers/net/ethernet/cisco/enic/vnic_dev.c if (!vdev) { vdev 1074 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev = kzalloc(sizeof(struct vnic_dev), GFP_KERNEL); vdev 1075 drivers/net/ethernet/cisco/enic/vnic_dev.c if (!vdev) vdev 1079 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->priv = priv; vdev 1080 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev->pdev = pdev; vdev 1082 drivers/net/ethernet/cisco/enic/vnic_dev.c if (vnic_dev_discover_res(vdev, bar, num_bars)) vdev 1085 drivers/net/ethernet/cisco/enic/vnic_dev.c return vdev; vdev 1088 drivers/net/ethernet/cisco/enic/vnic_dev.c vnic_dev_unregister(vdev); vdev 1093 drivers/net/ethernet/cisco/enic/vnic_dev.c struct pci_dev *vnic_dev_get_pdev(struct vnic_dev *vdev) vdev 1095 drivers/net/ethernet/cisco/enic/vnic_dev.c return vdev->pdev; vdev 1099 drivers/net/ethernet/cisco/enic/vnic_dev.c int vnic_devcmd_init(struct vnic_dev *vdev) vdev 1104 drivers/net/ethernet/cisco/enic/vnic_dev.c res = vnic_dev_get_res(vdev, RES_TYPE_DEVCMD2, 0); vdev 1106 drivers/net/ethernet/cisco/enic/vnic_dev.c err = vnic_dev_init_devcmd2(vdev); vdev 1108 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev_warn(vdev, "DEVCMD2 init failed: %d, Using DEVCMD1\n", vdev 1113 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev_warn(vdev, "DEVCMD2 resource not found (old firmware?) Using DEVCMD1\n"); vdev 1115 drivers/net/ethernet/cisco/enic/vnic_dev.c err = vnic_dev_init_devcmd1(vdev); vdev 1117 drivers/net/ethernet/cisco/enic/vnic_dev.c vdev_err(vdev, "DEVCMD1 initialization failed: %d\n", err); vdev 1122 drivers/net/ethernet/cisco/enic/vnic_dev.c int vnic_dev_init_prov2(struct vnic_dev *vdev, u8 *buf, u32 len) vdev 1130 drivers/net/ethernet/cisco/enic/vnic_dev.c prov_buf = pci_alloc_consistent(vdev->pdev, len, &prov_pa); vdev 1138 drivers/net/ethernet/cisco/enic/vnic_dev.c ret = vnic_dev_cmd(vdev, CMD_INIT_PROV_INFO2, &a0, &a1, wait); vdev 1140 drivers/net/ethernet/cisco/enic/vnic_dev.c pci_free_consistent(vdev->pdev, len, prov_buf, prov_pa); vdev 1145 drivers/net/ethernet/cisco/enic/vnic_dev.c int vnic_dev_enable2(struct vnic_dev *vdev, int active) vdev 1152 drivers/net/ethernet/cisco/enic/vnic_dev.c return vnic_dev_cmd(vdev, CMD_ENABLE2, &a0, &a1, wait); vdev 1155 drivers/net/ethernet/cisco/enic/vnic_dev.c static int vnic_dev_cmd_status(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd, vdev 1162 drivers/net/ethernet/cisco/enic/vnic_dev.c ret = vnic_dev_cmd(vdev, CMD_STATUS, &a0, &a1, wait); vdev 1169 drivers/net/ethernet/cisco/enic/vnic_dev.c int vnic_dev_enable2_done(struct vnic_dev *vdev, int *status) vdev 1171 drivers/net/ethernet/cisco/enic/vnic_dev.c return vnic_dev_cmd_status(vdev, CMD_ENABLE2, status); vdev 1174 drivers/net/ethernet/cisco/enic/vnic_dev.c int vnic_dev_deinit_done(struct vnic_dev *vdev, int *status) vdev 1176 drivers/net/ethernet/cisco/enic/vnic_dev.c return vnic_dev_cmd_status(vdev, CMD_DEINIT, status); vdev 1179 drivers/net/ethernet/cisco/enic/vnic_dev.c int vnic_dev_set_mac_addr(struct vnic_dev *vdev, u8 *mac_addr) vdev 1188 drivers/net/ethernet/cisco/enic/vnic_dev.c return vnic_dev_cmd(vdev, CMD_SET_MAC_ADDR, &a0, &a1, wait); vdev 1205 drivers/net/ethernet/cisco/enic/vnic_dev.c int vnic_dev_classifier(struct vnic_dev *vdev, u8 cmd, u16 *entry, vdev 1220 drivers/net/ethernet/cisco/enic/vnic_dev.c tlv_va = pci_alloc_consistent(vdev->pdev, tlv_size, &tlv_pa); vdev 1241 drivers/net/ethernet/cisco/enic/vnic_dev.c ret = vnic_dev_cmd(vdev, CMD_ADD_FILTER, &a0, &a1, wait); vdev 1243 drivers/net/ethernet/cisco/enic/vnic_dev.c pci_free_consistent(vdev->pdev, tlv_size, tlv_va, tlv_pa); vdev 1246 drivers/net/ethernet/cisco/enic/vnic_dev.c ret = vnic_dev_cmd(vdev, CMD_DEL_FILTER, &a0, &a1, wait); vdev 1252 drivers/net/ethernet/cisco/enic/vnic_dev.c int vnic_dev_overlay_offload_ctrl(struct vnic_dev *vdev, u8 overlay, u8 config) vdev 1258 drivers/net/ethernet/cisco/enic/vnic_dev.c return vnic_dev_cmd(vdev, CMD_OVERLAY_OFFLOAD_CTRL, &a0, &a1, wait); vdev 1261 drivers/net/ethernet/cisco/enic/vnic_dev.c int vnic_dev_overlay_offload_cfg(struct vnic_dev *vdev, u8 overlay, vdev 1268 drivers/net/ethernet/cisco/enic/vnic_dev.c return vnic_dev_cmd(vdev, CMD_OVERLAY_OFFLOAD_CFG, &a0, &a1, wait); vdev 1271 drivers/net/ethernet/cisco/enic/vnic_dev.c int vnic_dev_get_supported_feature_ver(struct vnic_dev *vdev, u8 feature, vdev 1278 drivers/net/ethernet/cisco/enic/vnic_dev.c ret = vnic_dev_cmd(vdev, CMD_GET_SUPP_FEATURE_VER, &a0, a1, wait); vdev 1285 drivers/net/ethernet/cisco/enic/vnic_dev.c int vnic_dev_capable_rss_hash_type(struct vnic_dev *vdev, u8 *rss_hash_type) vdev 1291 drivers/net/ethernet/cisco/enic/vnic_dev.c err = vnic_dev_cmd(vdev, CMD_CAPABILITY, &a0, &a1, wait); vdev 111 drivers/net/ethernet/cisco/enic/vnic_dev.h int (*devcmd_rtn)(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd, vdev 117 drivers/net/ethernet/cisco/enic/vnic_dev.h void *vnic_dev_priv(struct vnic_dev *vdev); vdev 118 drivers/net/ethernet/cisco/enic/vnic_dev.h unsigned int vnic_dev_get_res_count(struct vnic_dev *vdev, vdev 120 drivers/net/ethernet/cisco/enic/vnic_dev.h void __iomem *vnic_dev_get_res(struct vnic_dev *vdev, enum vnic_res_type type, vdev 123 drivers/net/ethernet/cisco/enic/vnic_dev.h int vnic_dev_alloc_desc_ring(struct vnic_dev *vdev, struct vnic_dev_ring *ring, vdev 125 drivers/net/ethernet/cisco/enic/vnic_dev.h void vnic_dev_free_desc_ring(struct vnic_dev *vdev, vdev 127 drivers/net/ethernet/cisco/enic/vnic_dev.h int vnic_dev_cmd(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd, vdev 129 drivers/net/ethernet/cisco/enic/vnic_dev.h void vnic_dev_cmd_proxy_by_index_start(struct vnic_dev *vdev, u16 index); vdev 130 drivers/net/ethernet/cisco/enic/vnic_dev.h void vnic_dev_cmd_proxy_end(struct vnic_dev *vdev); vdev 131 drivers/net/ethernet/cisco/enic/vnic_dev.h int vnic_dev_fw_info(struct vnic_dev *vdev, vdev 133 drivers/net/ethernet/cisco/enic/vnic_dev.h int vnic_dev_spec(struct vnic_dev *vdev, unsigned int offset, unsigned int size, vdev 135 drivers/net/ethernet/cisco/enic/vnic_dev.h int vnic_dev_stats_dump(struct vnic_dev *vdev, struct vnic_stats **stats); vdev 136 drivers/net/ethernet/cisco/enic/vnic_dev.h int vnic_dev_hang_notify(struct vnic_dev *vdev); vdev 137 drivers/net/ethernet/cisco/enic/vnic_dev.h int vnic_dev_packet_filter(struct vnic_dev *vdev, int directed, int multicast, vdev 139 drivers/net/ethernet/cisco/enic/vnic_dev.h int vnic_dev_add_addr(struct vnic_dev *vdev, const u8 *addr); vdev 140 drivers/net/ethernet/cisco/enic/vnic_dev.h int vnic_dev_del_addr(struct vnic_dev *vdev, const u8 *addr); vdev 141 drivers/net/ethernet/cisco/enic/vnic_dev.h int vnic_dev_get_mac_addr(struct vnic_dev *vdev, u8 *mac_addr); vdev 142 drivers/net/ethernet/cisco/enic/vnic_dev.h int vnic_dev_notify_set(struct vnic_dev *vdev, u16 intr); vdev 143 drivers/net/ethernet/cisco/enic/vnic_dev.h int vnic_dev_notify_unset(struct vnic_dev *vdev); vdev 144 drivers/net/ethernet/cisco/enic/vnic_dev.h int vnic_dev_link_status(struct vnic_dev *vdev); vdev 145 drivers/net/ethernet/cisco/enic/vnic_dev.h u32 vnic_dev_port_speed(struct vnic_dev *vdev); vdev 146 drivers/net/ethernet/cisco/enic/vnic_dev.h u32 vnic_dev_msg_lvl(struct vnic_dev *vdev); vdev 147 drivers/net/ethernet/cisco/enic/vnic_dev.h u32 vnic_dev_mtu(struct vnic_dev *vdev); vdev 148 drivers/net/ethernet/cisco/enic/vnic_dev.h int vnic_dev_close(struct vnic_dev *vdev); vdev 149 drivers/net/ethernet/cisco/enic/vnic_dev.h int vnic_dev_enable_wait(struct vnic_dev *vdev); vdev 150 drivers/net/ethernet/cisco/enic/vnic_dev.h int vnic_dev_disable(struct vnic_dev *vdev); vdev 151 drivers/net/ethernet/cisco/enic/vnic_dev.h int vnic_dev_open(struct vnic_dev *vdev, int arg); vdev 152 drivers/net/ethernet/cisco/enic/vnic_dev.h int vnic_dev_open_done(struct vnic_dev *vdev, int *done); vdev 153 drivers/net/ethernet/cisco/enic/vnic_dev.h int vnic_dev_init(struct vnic_dev *vdev, int arg); vdev 154 drivers/net/ethernet/cisco/enic/vnic_dev.h int vnic_dev_deinit(struct vnic_dev *vdev); vdev 155 drivers/net/ethernet/cisco/enic/vnic_dev.h void vnic_dev_intr_coal_timer_info_default(struct vnic_dev *vdev); vdev 156 drivers/net/ethernet/cisco/enic/vnic_dev.h int vnic_dev_intr_coal_timer_info(struct vnic_dev *vdev); vdev 157 drivers/net/ethernet/cisco/enic/vnic_dev.h int vnic_dev_hang_reset(struct vnic_dev *vdev, int arg); vdev 158 drivers/net/ethernet/cisco/enic/vnic_dev.h int vnic_dev_soft_reset(struct vnic_dev *vdev, int arg); vdev 159 drivers/net/ethernet/cisco/enic/vnic_dev.h int vnic_dev_hang_reset_done(struct vnic_dev *vdev, int *done); vdev 160 drivers/net/ethernet/cisco/enic/vnic_dev.h int vnic_dev_soft_reset_done(struct vnic_dev *vdev, int *done); vdev 161 drivers/net/ethernet/cisco/enic/vnic_dev.h void vnic_dev_set_intr_mode(struct vnic_dev *vdev, vdev 163 drivers/net/ethernet/cisco/enic/vnic_dev.h enum vnic_dev_intr_mode vnic_dev_get_intr_mode(struct vnic_dev *vdev); vdev 164 drivers/net/ethernet/cisco/enic/vnic_dev.h u32 vnic_dev_intr_coal_timer_usec_to_hw(struct vnic_dev *vdev, u32 usec); vdev 165 drivers/net/ethernet/cisco/enic/vnic_dev.h u32 vnic_dev_intr_coal_timer_hw_to_usec(struct vnic_dev *vdev, u32 hw_cycles); vdev 166 drivers/net/ethernet/cisco/enic/vnic_dev.h u32 vnic_dev_get_intr_coal_timer_max(struct vnic_dev *vdev); vdev 167 drivers/net/ethernet/cisco/enic/vnic_dev.h void vnic_dev_unregister(struct vnic_dev *vdev); vdev 168 drivers/net/ethernet/cisco/enic/vnic_dev.h int vnic_dev_set_ig_vlan_rewrite_mode(struct vnic_dev *vdev, vdev 170 drivers/net/ethernet/cisco/enic/vnic_dev.h struct vnic_dev *vnic_dev_register(struct vnic_dev *vdev, vdev 173 drivers/net/ethernet/cisco/enic/vnic_dev.h struct pci_dev *vnic_dev_get_pdev(struct vnic_dev *vdev); vdev 174 drivers/net/ethernet/cisco/enic/vnic_dev.h int vnic_dev_init_prov2(struct vnic_dev *vdev, u8 *buf, u32 len); vdev 175 drivers/net/ethernet/cisco/enic/vnic_dev.h int vnic_dev_enable2(struct vnic_dev *vdev, int active); vdev 176 drivers/net/ethernet/cisco/enic/vnic_dev.h int vnic_dev_enable2_done(struct vnic_dev *vdev, int *status); vdev 177 drivers/net/ethernet/cisco/enic/vnic_dev.h int vnic_dev_deinit_done(struct vnic_dev *vdev, int *status); vdev 178 drivers/net/ethernet/cisco/enic/vnic_dev.h int vnic_dev_set_mac_addr(struct vnic_dev *vdev, u8 *mac_addr); vdev 179 drivers/net/ethernet/cisco/enic/vnic_dev.h int vnic_dev_classifier(struct vnic_dev *vdev, u8 cmd, u16 *entry, vdev 181 drivers/net/ethernet/cisco/enic/vnic_dev.h int vnic_devcmd_init(struct vnic_dev *vdev); vdev 182 drivers/net/ethernet/cisco/enic/vnic_dev.h int vnic_dev_overlay_offload_ctrl(struct vnic_dev *vdev, u8 overlay, u8 config); vdev 183 drivers/net/ethernet/cisco/enic/vnic_dev.h int vnic_dev_overlay_offload_cfg(struct vnic_dev *vdev, u8 overlay, vdev 185 drivers/net/ethernet/cisco/enic/vnic_dev.h int vnic_dev_get_supported_feature_ver(struct vnic_dev *vdev, u8 feature, vdev 187 drivers/net/ethernet/cisco/enic/vnic_dev.h int vnic_dev_capable_rss_hash_type(struct vnic_dev *vdev, u8 *rss_hash_type); vdev 35 drivers/net/ethernet/cisco/enic/vnic_intr.c int vnic_intr_alloc(struct vnic_dev *vdev, struct vnic_intr *intr, vdev 39 drivers/net/ethernet/cisco/enic/vnic_intr.c intr->vdev = vdev; vdev 41 drivers/net/ethernet/cisco/enic/vnic_intr.c intr->ctrl = vnic_dev_get_res(vdev, RES_TYPE_INTR_CTRL, index); vdev 43 drivers/net/ethernet/cisco/enic/vnic_intr.c vdev_err(vdev, "Failed to hook INTR[%d].ctrl resource\n", vdev 63 drivers/net/ethernet/cisco/enic/vnic_intr.c iowrite32(vnic_dev_intr_coal_timer_usec_to_hw(intr->vdev, vdev 50 drivers/net/ethernet/cisco/enic/vnic_intr.h struct vnic_dev *vdev; vdev 103 drivers/net/ethernet/cisco/enic/vnic_intr.h int vnic_intr_alloc(struct vnic_dev *vdev, struct vnic_intr *intr, vdev 68 drivers/net/ethernet/cisco/enic/vnic_rq.c struct vnic_dev *vdev; vdev 71 drivers/net/ethernet/cisco/enic/vnic_rq.c vdev = rq->vdev; vdev 73 drivers/net/ethernet/cisco/enic/vnic_rq.c vnic_dev_free_desc_ring(vdev, &rq->ring); vdev 85 drivers/net/ethernet/cisco/enic/vnic_rq.c int vnic_rq_alloc(struct vnic_dev *vdev, struct vnic_rq *rq, unsigned int index, vdev 91 drivers/net/ethernet/cisco/enic/vnic_rq.c rq->vdev = vdev; vdev 93 drivers/net/ethernet/cisco/enic/vnic_rq.c rq->ctrl = vnic_dev_get_res(vdev, RES_TYPE_RQ, index); vdev 95 drivers/net/ethernet/cisco/enic/vnic_rq.c vdev_err(vdev, "Failed to hook RQ[%d] resource\n", index); vdev 101 drivers/net/ethernet/cisco/enic/vnic_rq.c err = vnic_dev_alloc_desc_ring(vdev, &rq->ring, desc_count, desc_size); vdev 159 drivers/net/ethernet/cisco/enic/vnic_rq.c struct vnic_dev *vdev = rq->vdev; vdev 174 drivers/net/ethernet/cisco/enic/vnic_rq.c vdev_neterr(vdev, "Failed to disable RQ[%d]\n", vdev 87 drivers/net/ethernet/cisco/enic/vnic_rq.h struct vnic_dev *vdev; vdev 208 drivers/net/ethernet/cisco/enic/vnic_rq.h int vnic_rq_alloc(struct vnic_dev *vdev, struct vnic_rq *rq, unsigned int index, vdev 71 drivers/net/ethernet/cisco/enic/vnic_wq.c struct vnic_dev *vdev; vdev 74 drivers/net/ethernet/cisco/enic/vnic_wq.c vdev = wq->vdev; vdev 76 drivers/net/ethernet/cisco/enic/vnic_wq.c vnic_dev_free_desc_ring(vdev, &wq->ring); vdev 88 drivers/net/ethernet/cisco/enic/vnic_wq.c int vnic_wq_alloc(struct vnic_dev *vdev, struct vnic_wq *wq, unsigned int index, vdev 94 drivers/net/ethernet/cisco/enic/vnic_wq.c wq->vdev = vdev; vdev 96 drivers/net/ethernet/cisco/enic/vnic_wq.c wq->ctrl = vnic_dev_get_res(vdev, RES_TYPE_WQ, index); vdev 98 drivers/net/ethernet/cisco/enic/vnic_wq.c vdev_err(vdev, "Failed to hook WQ[%d] resource\n", index); vdev 104 drivers/net/ethernet/cisco/enic/vnic_wq.c err = vnic_dev_alloc_desc_ring(vdev, &wq->ring, desc_count, desc_size); vdev 117 drivers/net/ethernet/cisco/enic/vnic_wq.c int enic_wq_devcmd2_alloc(struct vnic_dev *vdev, struct vnic_wq *wq, vdev 123 drivers/net/ethernet/cisco/enic/vnic_wq.c wq->vdev = vdev; vdev 125 drivers/net/ethernet/cisco/enic/vnic_wq.c wq->ctrl = vnic_dev_get_res(vdev, RES_TYPE_DEVCMD2, 0); vdev 129 drivers/net/ethernet/cisco/enic/vnic_wq.c err = vnic_dev_alloc_desc_ring(vdev, &wq->ring, desc_count, desc_size); vdev 179 drivers/net/ethernet/cisco/enic/vnic_wq.c struct vnic_dev *vdev = wq->vdev; vdev 190 drivers/net/ethernet/cisco/enic/vnic_wq.c vdev_neterr(vdev, "Failed to disable WQ[%d]\n", wq->index); vdev 82 drivers/net/ethernet/cisco/enic/vnic_wq.h struct vnic_dev *vdev; vdev 179 drivers/net/ethernet/cisco/enic/vnic_wq.h int vnic_wq_alloc(struct vnic_dev *vdev, struct vnic_wq *wq, unsigned int index, vdev 189 drivers/net/ethernet/cisco/enic/vnic_wq.h int enic_wq_devcmd2_alloc(struct vnic_dev *vdev, struct vnic_wq *wq, vdev 43 drivers/net/ethernet/ibm/ibmveth.c static unsigned long ibmveth_get_desired_dma(struct vio_dev *vdev); vdev 240 drivers/net/ethernet/ibm/ibmveth.c dma_addr = dma_map_single(&adapter->vdev->dev, skb->data, vdev 243 drivers/net/ethernet/ibm/ibmveth.c if (dma_mapping_error(&adapter->vdev->dev, dma_addr)) vdev 262 drivers/net/ethernet/ibm/ibmveth.c lpar_rc = h_add_logical_lan_buffer(adapter->vdev->unit_address, vdev 284 drivers/net/ethernet/ibm/ibmveth.c if (!dma_mapping_error(&adapter->vdev->dev, dma_addr)) vdev 285 drivers/net/ethernet/ibm/ibmveth.c dma_unmap_single(&adapter->vdev->dev, vdev 338 drivers/net/ethernet/ibm/ibmveth.c dma_unmap_single(&adapter->vdev->dev, vdev 377 drivers/net/ethernet/ibm/ibmveth.c dma_unmap_single(&adapter->vdev->dev, vdev 431 drivers/net/ethernet/ibm/ibmveth.c lpar_rc = h_add_logical_lan_buffer(adapter->vdev->unit_address, desc.desc); vdev 470 drivers/net/ethernet/ibm/ibmveth.c rc = h_register_logical_lan(adapter->vdev->unit_address, vdev 476 drivers/net/ethernet/ibm/ibmveth.c rc = h_free_logical_lan(adapter->vdev->unit_address); vdev 528 drivers/net/ethernet/ibm/ibmveth.c dev = &adapter->vdev->dev; vdev 566 drivers/net/ethernet/ibm/ibmveth.c h_vio_signal(adapter->vdev->unit_address, VIO_IRQ_DISABLE); vdev 601 drivers/net/ethernet/ibm/ibmveth.c lpar_rc = h_free_logical_lan(adapter->vdev->unit_address); vdev 614 drivers/net/ethernet/ibm/ibmveth.c dma_map_single(&adapter->vdev->dev, adapter->bounce_buffer, vdev 662 drivers/net/ethernet/ibm/ibmveth.c struct device *dev = &adapter->vdev->dev; vdev 673 drivers/net/ethernet/ibm/ibmveth.c h_vio_signal(adapter->vdev->unit_address, VIO_IRQ_DISABLE); vdev 676 drivers/net/ethernet/ibm/ibmveth.c lpar_rc = h_free_logical_lan(adapter->vdev->unit_address); vdev 705 drivers/net/ethernet/ibm/ibmveth.c dma_unmap_single(&adapter->vdev->dev, adapter->bounce_buffer_dma, vdev 792 drivers/net/ethernet/ibm/ibmveth.c ret = h_illan_attributes(adapter->vdev->unit_address, 0, 0, &ret_attr); vdev 796 drivers/net/ethernet/ibm/ibmveth.c ret4 = h_illan_attributes(adapter->vdev->unit_address, clr_attr, vdev 804 drivers/net/ethernet/ibm/ibmveth.c h_illan_attributes(adapter->vdev->unit_address, vdev 814 drivers/net/ethernet/ibm/ibmveth.c ret6 = h_illan_attributes(adapter->vdev->unit_address, vdev 822 drivers/net/ethernet/ibm/ibmveth.c h_illan_attributes(adapter->vdev->unit_address, vdev 871 drivers/net/ethernet/ibm/ibmveth.c ret1 = h_illan_attributes(adapter->vdev->unit_address, 0, 0, &ret_attr); vdev 875 drivers/net/ethernet/ibm/ibmveth.c ret2 = h_illan_attributes(adapter->vdev->unit_address, clr_attr, vdev 882 drivers/net/ethernet/ibm/ibmveth.c h_illan_attributes(adapter->vdev->unit_address, vdev 997 drivers/net/ethernet/ibm/ibmveth.c ret = h_send_logical_lan(adapter->vdev->unit_address, vdev 1100 drivers/net/ethernet/ibm/ibmveth.c dma_addr = dma_map_single(&adapter->vdev->dev, skb->data, vdev 1102 drivers/net/ethernet/ibm/ibmveth.c if (dma_mapping_error(&adapter->vdev->dev, dma_addr)) vdev 1112 drivers/net/ethernet/ibm/ibmveth.c dma_addr = skb_frag_dma_map(&adapter->vdev->dev, frag, 0, vdev 1115 drivers/net/ethernet/ibm/ibmveth.c if (dma_mapping_error(&adapter->vdev->dev, dma_addr)) vdev 1146 drivers/net/ethernet/ibm/ibmveth.c dma_unmap_single(&adapter->vdev->dev, vdev 1152 drivers/net/ethernet/ibm/ibmveth.c dma_unmap_page(&adapter->vdev->dev, descs[i].fields.address, vdev 1163 drivers/net/ethernet/ibm/ibmveth.c dma_unmap_page(&adapter->vdev->dev, descs[i].fields.address, vdev 1167 drivers/net/ethernet/ibm/ibmveth.c dma_unmap_single(&adapter->vdev->dev, vdev 1382 drivers/net/ethernet/ibm/ibmveth.c lpar_rc = h_vio_signal(adapter->vdev->unit_address, vdev 1389 drivers/net/ethernet/ibm/ibmveth.c lpar_rc = h_vio_signal(adapter->vdev->unit_address, vdev 1404 drivers/net/ethernet/ibm/ibmveth.c lpar_rc = h_vio_signal(adapter->vdev->unit_address, vdev 1419 drivers/net/ethernet/ibm/ibmveth.c lpar_rc = h_multicast_ctrl(adapter->vdev->unit_address, vdev 1430 drivers/net/ethernet/ibm/ibmveth.c lpar_rc = h_multicast_ctrl(adapter->vdev->unit_address, vdev 1445 drivers/net/ethernet/ibm/ibmveth.c lpar_rc = h_multicast_ctrl(adapter->vdev->unit_address, vdev 1456 drivers/net/ethernet/ibm/ibmveth.c lpar_rc = h_multicast_ctrl(adapter->vdev->unit_address, vdev 1469 drivers/net/ethernet/ibm/ibmveth.c struct vio_dev *viodev = adapter->vdev; vdev 1528 drivers/net/ethernet/ibm/ibmveth.c static unsigned long ibmveth_get_desired_dma(struct vio_dev *vdev) vdev 1530 drivers/net/ethernet/ibm/ibmveth.c struct net_device *netdev = dev_get_drvdata(&vdev->dev); vdev 1537 drivers/net/ethernet/ibm/ibmveth.c tbl = get_iommu_table_base(&vdev->dev); vdev 1575 drivers/net/ethernet/ibm/ibmveth.c rc = h_change_logical_lan_mac(adapter->vdev->unit_address, mac_address); vdev 1647 drivers/net/ethernet/ibm/ibmveth.c adapter->vdev = dev; vdev 1666 drivers/net/ethernet/ibm/ibmveth.c ret = h_illan_attributes(adapter->vdev->unit_address, 0, 0, &ret_attr); vdev 134 drivers/net/ethernet/ibm/ibmveth.h struct vio_dev *vdev; vdev 165 drivers/net/ethernet/ibm/ibmvnic.c struct device *dev = &adapter->vdev->dev; vdev 200 drivers/net/ethernet/ibm/ibmvnic.c struct device *dev = &adapter->vdev->dev; vdev 225 drivers/net/ethernet/ibm/ibmvnic.c dev_info(&adapter->vdev->dev, vdev 246 drivers/net/ethernet/ibm/ibmvnic.c struct device *dev = &adapter->vdev->dev; vdev 383 drivers/net/ethernet/ibm/ibmvnic.c struct device *dev = &adapter->vdev->dev; vdev 396 drivers/net/ethernet/ibm/ibmvnic.c struct device *dev = &adapter->vdev->dev; vdev 495 drivers/net/ethernet/ibm/ibmvnic.c struct device *dev = &adapter->vdev->dev; vdev 938 drivers/net/ethernet/ibm/ibmvnic.c struct device *dev = &adapter->vdev->dev; vdev 1410 drivers/net/ethernet/ibm/ibmvnic.c struct device *dev = &adapter->vdev->dev; vdev 1869 drivers/net/ethernet/ibm/ibmvnic.c rc = vio_enable_interrupts(adapter->vdev); vdev 2689 drivers/net/ethernet/ibm/ibmvnic.c rc = h_reg_sub_crq(adapter->vdev->unit_address, scrq->msg_token, vdev 2719 drivers/net/ethernet/ibm/ibmvnic.c struct device *dev = &adapter->vdev->dev; vdev 2728 drivers/net/ethernet/ibm/ibmvnic.c adapter->vdev->unit_address, vdev 2748 drivers/net/ethernet/ibm/ibmvnic.c struct device *dev = &adapter->vdev->dev; vdev 2770 drivers/net/ethernet/ibm/ibmvnic.c rc = h_reg_sub_crq(adapter->vdev->unit_address, scrq->msg_token, vdev 2858 drivers/net/ethernet/ibm/ibmvnic.c struct device *dev = &adapter->vdev->dev; vdev 2861 drivers/net/ethernet/ibm/ibmvnic.c rc = plpar_hcall_norets(H_VIOCTL, adapter->vdev->unit_address, vdev 2872 drivers/net/ethernet/ibm/ibmvnic.c struct device *dev = &adapter->vdev->dev; vdev 2893 drivers/net/ethernet/ibm/ibmvnic.c rc = plpar_hcall_norets(H_VIOCTL, adapter->vdev->unit_address, vdev 2904 drivers/net/ethernet/ibm/ibmvnic.c struct device *dev = &adapter->vdev->dev; vdev 3009 drivers/net/ethernet/ibm/ibmvnic.c struct device *dev = &adapter->vdev->dev; vdev 3027 drivers/net/ethernet/ibm/ibmvnic.c adapter->vdev->unit_address, i); vdev 3050 drivers/net/ethernet/ibm/ibmvnic.c adapter->vdev->unit_address, i); vdev 3079 drivers/net/ethernet/ibm/ibmvnic.c struct device *dev = &adapter->vdev->dev; vdev 3164 drivers/net/ethernet/ibm/ibmvnic.c struct device *dev = &adapter->vdev->dev; vdev 3357 drivers/net/ethernet/ibm/ibmvnic.c unsigned int ua = adapter->vdev->unit_address; vdev 3358 drivers/net/ethernet/ibm/ibmvnic.c struct device *dev = &adapter->vdev->dev; vdev 3389 drivers/net/ethernet/ibm/ibmvnic.c unsigned int ua = adapter->vdev->unit_address; vdev 3390 drivers/net/ethernet/ibm/ibmvnic.c struct device *dev = &adapter->vdev->dev; vdev 3408 drivers/net/ethernet/ibm/ibmvnic.c unsigned int ua = adapter->vdev->unit_address; vdev 3409 drivers/net/ethernet/ibm/ibmvnic.c struct device *dev = &adapter->vdev->dev; vdev 3520 drivers/net/ethernet/ibm/ibmvnic.c struct device *dev = &adapter->vdev->dev; vdev 3803 drivers/net/ethernet/ibm/ibmvnic.c struct device *dev = &adapter->vdev->dev; vdev 3819 drivers/net/ethernet/ibm/ibmvnic.c struct device *dev = &adapter->vdev->dev; vdev 3867 drivers/net/ethernet/ibm/ibmvnic.c struct device *dev = &adapter->vdev->dev; vdev 4015 drivers/net/ethernet/ibm/ibmvnic.c struct device *dev = &adapter->vdev->dev; vdev 4036 drivers/net/ethernet/ibm/ibmvnic.c struct device *dev = &adapter->vdev->dev; vdev 4054 drivers/net/ethernet/ibm/ibmvnic.c struct device *dev = &adapter->vdev->dev; vdev 4153 drivers/net/ethernet/ibm/ibmvnic.c struct device *dev = &adapter->vdev->dev; vdev 4188 drivers/net/ethernet/ibm/ibmvnic.c ibmvnic_remove(adapter->vdev); vdev 4200 drivers/net/ethernet/ibm/ibmvnic.c struct device *dev = &adapter->vdev->dev; vdev 4212 drivers/net/ethernet/ibm/ibmvnic.c struct device *dev = &adapter->vdev->dev; vdev 4229 drivers/net/ethernet/ibm/ibmvnic.c struct device *dev = &adapter->vdev->dev; vdev 4477 drivers/net/ethernet/ibm/ibmvnic.c struct device *dev = &adapter->vdev->dev; vdev 4672 drivers/net/ethernet/ibm/ibmvnic.c struct vio_dev *vdev = adapter->vdev; vdev 4676 drivers/net/ethernet/ibm/ibmvnic.c rc = plpar_hcall_norets(H_ENABLE_CRQ, vdev->unit_address); vdev 4680 drivers/net/ethernet/ibm/ibmvnic.c dev_err(&vdev->dev, "Error enabling adapter (rc=%d)\n", rc); vdev 4688 drivers/net/ethernet/ibm/ibmvnic.c struct device *dev = &adapter->vdev->dev; vdev 4689 drivers/net/ethernet/ibm/ibmvnic.c struct vio_dev *vdev = adapter->vdev; vdev 4694 drivers/net/ethernet/ibm/ibmvnic.c rc = plpar_hcall_norets(H_FREE_CRQ, vdev->unit_address); vdev 4703 drivers/net/ethernet/ibm/ibmvnic.c rc = plpar_hcall_norets(H_REG_CRQ, vdev->unit_address, vdev 4718 drivers/net/ethernet/ibm/ibmvnic.c struct vio_dev *vdev = adapter->vdev; vdev 4725 drivers/net/ethernet/ibm/ibmvnic.c free_irq(vdev->irq, adapter); vdev 4728 drivers/net/ethernet/ibm/ibmvnic.c rc = plpar_hcall_norets(H_FREE_CRQ, vdev->unit_address); vdev 4731 drivers/net/ethernet/ibm/ibmvnic.c dma_unmap_single(&vdev->dev, crq->msg_token, PAGE_SIZE, vdev 4741 drivers/net/ethernet/ibm/ibmvnic.c struct device *dev = &adapter->vdev->dev; vdev 4742 drivers/net/ethernet/ibm/ibmvnic.c struct vio_dev *vdev = adapter->vdev; vdev 4760 drivers/net/ethernet/ibm/ibmvnic.c rc = plpar_hcall_norets(H_REG_CRQ, vdev->unit_address, vdev 4780 drivers/net/ethernet/ibm/ibmvnic.c netdev_dbg(adapter->netdev, "registering irq 0x%x\n", vdev->irq); vdev 4782 drivers/net/ethernet/ibm/ibmvnic.c adapter->vdev->unit_address); vdev 4783 drivers/net/ethernet/ibm/ibmvnic.c rc = request_irq(vdev->irq, ibmvnic_interrupt, 0, crq->name, adapter); vdev 4786 drivers/net/ethernet/ibm/ibmvnic.c vdev->irq, rc); vdev 4790 drivers/net/ethernet/ibm/ibmvnic.c rc = vio_enable_interrupts(vdev); vdev 4804 drivers/net/ethernet/ibm/ibmvnic.c rc = plpar_hcall_norets(H_FREE_CRQ, vdev->unit_address); vdev 4816 drivers/net/ethernet/ibm/ibmvnic.c struct device *dev = &adapter->vdev->dev; vdev 4875 drivers/net/ethernet/ibm/ibmvnic.c struct device *dev = &adapter->vdev->dev; vdev 4944 drivers/net/ethernet/ibm/ibmvnic.c adapter->vdev = dev; vdev 5065 drivers/net/ethernet/ibm/ibmvnic.c rc = plpar_hcall(H_VIOCTL, retbuf, adapter->vdev->unit_address, vdev 5076 drivers/net/ethernet/ibm/ibmvnic.c rc = plpar_hcall_norets(H_VIOCTL, adapter->vdev->unit_address, vdev 5089 drivers/net/ethernet/ibm/ibmvnic.c static unsigned long ibmvnic_get_desired_dma(struct vio_dev *vdev) vdev 5091 drivers/net/ethernet/ibm/ibmvnic.c struct net_device *netdev = dev_get_drvdata(&vdev->dev); vdev 5097 drivers/net/ethernet/ibm/ibmvnic.c tbl = get_iommu_table_base(&vdev->dev); vdev 967 drivers/net/ethernet/ibm/ibmvnic.h struct vio_dev *vdev; vdev 7019 drivers/net/ethernet/intel/i40e/i40e_main.c static int i40e_fwd_ring_up(struct i40e_vsi *vsi, struct net_device *vdev, vdev 7036 drivers/net/ethernet/intel/i40e/i40e_main.c netdev_bind_sb_channel_queue(vsi->netdev, vdev, vdev 7064 drivers/net/ethernet/intel/i40e/i40e_main.c ret = i40e_add_macvlan_filter(hw, ch->seid, vdev->dev_addr, &aq_err); vdev 7067 drivers/net/ethernet/intel/i40e/i40e_main.c macvlan_release_l2fw_offload(vdev); vdev 7080 drivers/net/ethernet/intel/i40e/i40e_main.c netdev_err(vdev, "L2fwd offload disabled to L2 filter error\n"); vdev 7094 drivers/net/ethernet/intel/i40e/i40e_main.c struct net_device *vdev) vdev 7194 drivers/net/ethernet/intel/i40e/i40e_main.c static void *i40e_fwd_add(struct net_device *netdev, struct net_device *vdev) vdev 7219 drivers/net/ethernet/intel/i40e/i40e_main.c if (netif_is_multiqueue(vdev)) vdev 7261 drivers/net/ethernet/intel/i40e/i40e_main.c vdev); vdev 7280 drivers/net/ethernet/intel/i40e/i40e_main.c netdev_set_sb_channel(vdev, avail_macvlan); vdev 7281 drivers/net/ethernet/intel/i40e/i40e_main.c fwd->netdev = vdev; vdev 7287 drivers/net/ethernet/intel/i40e/i40e_main.c ret = i40e_fwd_ring_up(vsi, vdev, fwd); vdev 7290 drivers/net/ethernet/intel/i40e/i40e_main.c netdev_unbind_sb_channel(netdev, vdev); vdev 7291 drivers/net/ethernet/intel/i40e/i40e_main.c netdev_set_sb_channel(vdev, 0); vdev 7338 drivers/net/ethernet/intel/i40e/i40e_main.c static void i40e_fwd_del(struct net_device *netdev, void *vdev) vdev 7341 drivers/net/ethernet/intel/i40e/i40e_main.c struct i40e_fwd_adapter *fwd = vdev; vdev 5347 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c struct net_device *vdev = accel->netdev; vdev 5351 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c netdev_dbg(vdev, "pool %i:%i queues %i:%i\n", vdev 5360 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c netdev_bind_sb_channel_queue(adapter->netdev, vdev, vdev 5364 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c adapter->rx_ring[baseq + i]->netdev = vdev; vdev 5374 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c err = ixgbe_add_mac_filter(adapter, vdev->dev_addr, vdev 5380 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c macvlan_release_l2fw_offload(vdev); vdev 5385 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c netdev_err(vdev, "L2FW offload disabled due to L2 filter error\n"); vdev 5388 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c netdev_unbind_sb_channel(adapter->netdev, vdev); vdev 5389 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c netdev_set_sb_channel(vdev, 0); vdev 5397 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c static int ixgbe_macvlan_up(struct net_device *vdev, void *data) vdev 5402 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c if (!netif_is_macvlan(vdev)) vdev 5405 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c accel = macvlan_accel_priv(vdev); vdev 8511 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c struct net_device *vdev = sb_dev; vdev 8513 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c txq = vdev->tc_to_txq[tc].offset; vdev 8515 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c vdev->tc_to_txq[tc].count); vdev 9040 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c static int ixgbe_reassign_macvlan_pool(struct net_device *vdev, void *data) vdev 9047 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c if (!netif_is_macvlan(vdev)) vdev 9051 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c accel = macvlan_accel_priv(vdev); vdev 9064 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c netdev_err(vdev, "L2FW offload disabled due to lack of queue resources\n"); vdev 9065 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c macvlan_release_l2fw_offload(vdev); vdev 9068 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c netdev_unbind_sb_channel(adapter->netdev, vdev); vdev 9069 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c netdev_set_sb_channel(vdev, 0); vdev 10064 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c static void *ixgbe_fwd_add(struct net_device *pdev, struct net_device *vdev) vdev 10080 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c if (!macvlan_supports_dest_filter(vdev)) vdev 10087 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c if (netif_is_multiqueue(vdev)) vdev 10146 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c netdev_set_sb_channel(vdev, pool); vdev 10148 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c accel->netdev = vdev; vdev 4904 drivers/net/ethernet/neterion/vxge/vxge-config.c struct vxgedev *vdev = netdev_priv(vpath->hldev->ndev); vdev 4907 drivers/net/ethernet/neterion/vxge/vxge-config.c if (vdev->titan1) { vdev 110 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c struct vxgedev *vdev = netdev_priv(dev); vdev 113 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c strlcpy(info->fw_version, vdev->fw_version, sizeof(info->fw_version)); vdev 114 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c strlcpy(info->bus_info, pci_name(vdev->pdev), sizeof(info->bus_info)); vdev 134 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c struct vxgedev *vdev = netdev_priv(dev); vdev 135 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c struct __vxge_hw_device *hldev = vdev->devh; vdev 137 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c regs->len = sizeof(struct vxge_hw_vpath_reg) * vdev->no_of_vpath; vdev 138 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c regs->version = vdev->pdev->subsystem_device; vdev 139 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c for (index = 0; index < vdev->no_of_vpath; index++) { vdev 144 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c vdev->vpaths[index].device_id, vdev 168 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c struct vxgedev *vdev = netdev_priv(dev); vdev 169 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c struct __vxge_hw_device *hldev = vdev->devh; vdev 199 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c struct vxgedev *vdev = netdev_priv(dev); vdev 200 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c struct __vxge_hw_device *hldev = vdev->devh; vdev 218 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c struct vxgedev *vdev = netdev_priv(dev); vdev 219 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c struct __vxge_hw_device *hldev = vdev->devh; vdev 223 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c vdev->config.tx_pause_enable = ep->tx_pause; vdev 224 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c vdev->config.rx_pause_enable = ep->rx_pause; vdev 236 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c struct vxgedev *vdev = netdev_priv(dev); vdev 237 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c struct __vxge_hw_device *hldev = vdev->devh; vdev 298 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c for (k = 0; k < vdev->no_of_vpath; k++) { vdev 301 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c vpath = &vdev->vpaths[k]; vdev 375 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c for (k = 0; k < vdev->max_config_port; k++) { vdev 391 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c for (k = 0; k < vdev->max_config_port; k++) { vdev 489 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c for (k = 0; k < vdev->no_of_vpath; k++) { vdev 492 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c vpath = &vdev->vpaths[k]; vdev 533 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c for (k = 0; k < vdev->no_of_vpath; k++) { vdev 535 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c vpath = &vdev->vpaths[k]; vdev 573 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c *ptr++ = vdev->stats.vpaths_open; vdev 574 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c *ptr++ = vdev->stats.vpath_open_fail; vdev 575 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c *ptr++ = vdev->stats.link_up; vdev 576 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c *ptr++ = vdev->stats.link_down; vdev 578 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c for (k = 0; k < vdev->no_of_vpath; k++) { vdev 579 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c *ptr += vdev->vpaths[k].fifo.stats.tx_frms; vdev 580 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c *(ptr + 1) += vdev->vpaths[k].fifo.stats.tx_errors; vdev 581 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c *(ptr + 2) += vdev->vpaths[k].fifo.stats.tx_bytes; vdev 582 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c *(ptr + 3) += vdev->vpaths[k].fifo.stats.txd_not_free; vdev 583 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c *(ptr + 4) += vdev->vpaths[k].fifo.stats.txd_out_of_desc; vdev 584 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c *(ptr + 5) += vdev->vpaths[k].ring.stats.rx_frms; vdev 585 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c *(ptr + 6) += vdev->vpaths[k].ring.stats.rx_errors; vdev 586 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c *(ptr + 7) += vdev->vpaths[k].ring.stats.rx_bytes; vdev 587 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c *(ptr + 8) += vdev->vpaths[k].ring.stats.rx_mcast; vdev 588 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c *(ptr + 9) += vdev->vpaths[k].fifo.stats.pci_map_fail + vdev 589 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c vdev->vpaths[k].ring.stats.pci_map_fail; vdev 590 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c *(ptr + 10) += vdev->vpaths[k].ring.stats.skb_alloc_fail; vdev 605 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c struct vxgedev *vdev = netdev_priv(dev); vdev 610 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c for (i = 0; i < vdev->no_of_vpath; i++) { vdev 737 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c for (i = 0; i < vdev->max_config_port; i++) { vdev 768 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c for (i = 0; i < vdev->max_config_port; i++) { vdev 961 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c for (i = 0; i < vdev->no_of_vpath; i++) { vdev 1028 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c for (i = 0; i < vdev->no_of_vpath; i++) { vdev 1092 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c struct vxgedev *vdev = netdev_priv(dev); vdev 1094 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c return sizeof(struct vxge_hw_vpath_reg) * vdev->no_of_vpath; vdev 1099 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c struct vxgedev *vdev = netdev_priv(dev); vdev 1104 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c (vdev->no_of_vpath * VXGE_HW_VPATH_STATS_LEN) + vdev 1105 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c (vdev->max_config_port * VXGE_HW_AGGR_STATS_LEN) + vdev 1106 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c (vdev->max_config_port * VXGE_HW_PORT_STATS_LEN) + vdev 1107 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c (vdev->no_of_vpath * VXGE_HW_VPATH_TX_STATS_LEN) + vdev 1108 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c (vdev->no_of_vpath * VXGE_HW_VPATH_RX_STATS_LEN) + vdev 1109 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c (vdev->no_of_vpath * VXGE_SW_STATS_LEN) + vdev 1118 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c struct vxgedev *vdev = netdev_priv(dev); vdev 1120 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c if (vdev->max_vpath_supported != VXGE_HW_MAX_VIRTUAL_PATHS) { vdev 1132 drivers/net/ethernet/neterion/vxge/vxge-ethtool.c return vxge_fw_upgrade(vdev, parms->data, 1); vdev 90 drivers/net/ethernet/neterion/vxge/vxge-main.c static enum vxge_hw_status vxge_reset_all_vpaths(struct vxgedev *vdev); vdev 92 drivers/net/ethernet/neterion/vxge/vxge-main.c static inline int is_vxge_card_up(struct vxgedev *vdev) vdev 94 drivers/net/ethernet/neterion/vxge/vxge-main.c return test_bit(__VXGE_STATE_CARD_UP, &vdev->state); vdev 121 drivers/net/ethernet/neterion/vxge/vxge-main.c static inline void VXGE_COMPLETE_ALL_TX(struct vxgedev *vdev) vdev 126 drivers/net/ethernet/neterion/vxge/vxge-main.c for (i = 0; i < vdev->no_of_vpath; i++) vdev 127 drivers/net/ethernet/neterion/vxge/vxge-main.c VXGE_COMPLETE_VPATH_TX(&vdev->vpaths[i].fifo); vdev 130 drivers/net/ethernet/neterion/vxge/vxge-main.c static inline void VXGE_COMPLETE_ALL_RX(struct vxgedev *vdev) vdev 136 drivers/net/ethernet/neterion/vxge/vxge-main.c for (i = 0; i < vdev->no_of_vpath; i++) { vdev 137 drivers/net/ethernet/neterion/vxge/vxge-main.c ring = &vdev->vpaths[i].ring; vdev 151 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxgedev *vdev = netdev_priv(dev); vdev 154 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name, __func__, __LINE__); vdev 155 drivers/net/ethernet/neterion/vxge/vxge-main.c netdev_notice(vdev->ndev, "Link Up\n"); vdev 156 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->stats.link_up++; vdev 158 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_carrier_on(vdev->ndev); vdev 159 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_tx_wake_all_queues(vdev->ndev); vdev 162 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: %s:%d Exiting...", vdev->ndev->name, __func__, __LINE__); vdev 174 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxgedev *vdev = netdev_priv(dev); vdev 177 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: %s:%d", vdev->ndev->name, __func__, __LINE__); vdev 178 drivers/net/ethernet/neterion/vxge/vxge-main.c netdev_notice(vdev->ndev, "Link Down\n"); vdev 180 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->stats.link_down++; vdev 181 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_carrier_off(vdev->ndev); vdev 182 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_tx_stop_all_queues(vdev->ndev); vdev 185 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: %s:%d Exiting...", vdev->ndev->name, __func__, __LINE__); vdev 631 drivers/net/ethernet/neterion/vxge/vxge-main.c static u32 vxge_get_vpath_no(struct vxgedev *vdev, struct sk_buff *skb) vdev 644 drivers/net/ethernet/neterion/vxge/vxge-main.c queue_len = vdev->no_of_vpath; vdev 647 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vpath_selector[queue_len - 1]; vdev 699 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_add_mac_addr(struct vxgedev *vdev, struct macInfo *mac) vdev 710 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath = &vdev->vpaths[mac->vpath_no]; vdev 724 drivers/net/ethernet/neterion/vxge/vxge-main.c static int vxge_learn_mac(struct vxgedev *vdev, u8 *mac_header) vdev 737 drivers/net/ethernet/neterion/vxge/vxge-main.c for (vpath_idx = 0; vpath_idx < vdev->no_of_vpath; vpath_idx++) { vdev 738 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath = &vdev->vpaths[vpath_idx]; vdev 747 drivers/net/ethernet/neterion/vxge/vxge-main.c for (vpath_idx = 0; vpath_idx < vdev->no_of_vpath; vpath_idx++) { vdev 748 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath = &vdev->vpaths[vpath_idx]; vdev 753 drivers/net/ethernet/neterion/vxge/vxge-main.c status = vxge_add_mac_addr(vdev, &mac_info); vdev 764 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath = &vdev->vpaths[vpath_idx]; vdev 774 drivers/net/ethernet/neterion/vxge/vxge-main.c status = vxge_hw_mgmt_reg_write(vpath->vdev->devh, vdev 808 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxgedev *vdev = NULL; vdev 830 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev = netdev_priv(dev); vdev 832 drivers/net/ethernet/neterion/vxge/vxge-main.c if (unlikely(!is_vxge_card_up(vdev))) { vdev 839 drivers/net/ethernet/neterion/vxge/vxge-main.c if (vdev->config.addr_learn_en) { vdev 840 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath_no = vxge_learn_mac(vdev, skb->data + ETH_ALEN); vdev 850 drivers/net/ethernet/neterion/vxge/vxge-main.c if (vdev->config.tx_steering_type == TX_MULTIQ_STEERING) vdev 852 drivers/net/ethernet/neterion/vxge/vxge-main.c else if (vdev->config.tx_steering_type == TX_PORT_STEERING) vdev 853 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath_no = vxge_get_vpath_no(vdev, skb); vdev 857 drivers/net/ethernet/neterion/vxge/vxge-main.c if (vpath_no >= vdev->no_of_vpath) vdev 860 drivers/net/ethernet/neterion/vxge/vxge-main.c fifo = &vdev->vpaths[vpath_no].fifo; vdev 1092 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_del_mac_addr(struct vxgedev *vdev, struct macInfo *mac) vdev 1097 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath = &vdev->vpaths[mac->vpath_no]; vdev 1123 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxgedev *vdev; vdev 1137 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev = netdev_priv(dev); vdev 1139 drivers/net/ethernet/neterion/vxge/vxge-main.c if (unlikely(!is_vxge_card_up(vdev))) vdev 1142 drivers/net/ethernet/neterion/vxge/vxge-main.c if ((dev->flags & IFF_ALLMULTI) && (!vdev->all_multi_flg)) { vdev 1143 drivers/net/ethernet/neterion/vxge/vxge-main.c for (i = 0; i < vdev->no_of_vpath; i++) { vdev 1144 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath = &vdev->vpaths[i]; vdev 1150 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->all_multi_flg = 1; vdev 1152 drivers/net/ethernet/neterion/vxge/vxge-main.c } else if (!(dev->flags & IFF_ALLMULTI) && (vdev->all_multi_flg)) { vdev 1153 drivers/net/ethernet/neterion/vxge/vxge-main.c for (i = 0; i < vdev->no_of_vpath; i++) { vdev 1154 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath = &vdev->vpaths[i]; vdev 1160 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->all_multi_flg = 0; vdev 1165 drivers/net/ethernet/neterion/vxge/vxge-main.c if (!vdev->config.addr_learn_en) { vdev 1166 drivers/net/ethernet/neterion/vxge/vxge-main.c for (i = 0; i < vdev->no_of_vpath; i++) { vdev 1167 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath = &vdev->vpaths[i]; vdev 1185 drivers/net/ethernet/neterion/vxge/vxge-main.c if ((!vdev->all_multi_flg) && netdev_mc_count(dev)) { vdev 1186 drivers/net/ethernet/neterion/vxge/vxge-main.c mcast_cnt = vdev->vpaths[0].mcast_addr_cnt; vdev 1187 drivers/net/ethernet/neterion/vxge/vxge-main.c list_head = &vdev->vpaths[0].mac_addr_list; vdev 1189 drivers/net/ethernet/neterion/vxge/vxge-main.c (vdev->vpaths[0].mac_addr_cnt - mcast_cnt)) > vdev 1190 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vpaths[0].max_mac_addr_cnt) vdev 1203 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->no_of_vpath; vdev 1207 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev, vdev 1217 drivers/net/ethernet/neterion/vxge/vxge-main.c for (vpath_idx = 0; vpath_idx < vdev->no_of_vpath; vdev 1221 drivers/net/ethernet/neterion/vxge/vxge-main.c status = vxge_add_mac_addr(vdev, &mac_info); vdev 1234 drivers/net/ethernet/neterion/vxge/vxge-main.c mcast_cnt = vdev->vpaths[0].mcast_addr_cnt; vdev 1247 drivers/net/ethernet/neterion/vxge/vxge-main.c for (vpath_idx = 0; vpath_idx < vdev->no_of_vpath; vdev 1250 drivers/net/ethernet/neterion/vxge/vxge-main.c status = vxge_del_mac_addr(vdev, &mac_info); vdev 1255 drivers/net/ethernet/neterion/vxge/vxge-main.c for (i = 0; i < vdev->no_of_vpath; i++) { vdev 1256 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath = &vdev->vpaths[i]; vdev 1265 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->all_multi_flg = 1; vdev 1283 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxgedev *vdev; vdev 1290 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev = netdev_priv(dev); vdev 1309 drivers/net/ethernet/neterion/vxge/vxge-main.c for (vpath_idx = 0; vpath_idx < vdev->no_of_vpath; vpath_idx++) { vdev 1310 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxge_vpath *vpath = &vdev->vpaths[vpath_idx]; vdev 1325 drivers/net/ethernet/neterion/vxge/vxge-main.c status = vxge_del_mac_addr(vdev, &mac_info_old); vdev 1328 drivers/net/ethernet/neterion/vxge/vxge-main.c if (unlikely(!is_vxge_card_up(vdev))) { vdev 1334 drivers/net/ethernet/neterion/vxge/vxge-main.c for (vpath_idx = 0; vpath_idx < vdev->no_of_vpath; vpath_idx++) { vdev 1337 drivers/net/ethernet/neterion/vxge/vxge-main.c status = vxge_add_mac_addr(vdev, &mac_info_new); vdev 1354 drivers/net/ethernet/neterion/vxge/vxge-main.c static void vxge_vpath_intr_enable(struct vxgedev *vdev, int vp_id) vdev 1356 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxge_vpath *vpath = &vdev->vpaths[vp_id]; vdev 1363 drivers/net/ethernet/neterion/vxge/vxge-main.c if (vdev->config.intr_type == INTA) vdev 1387 drivers/net/ethernet/neterion/vxge/vxge-main.c static void vxge_vpath_intr_disable(struct vxgedev *vdev, int vp_id) vdev 1389 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxge_vpath *vpath = &vdev->vpaths[vp_id]; vdev 1393 drivers/net/ethernet/neterion/vxge/vxge-main.c hldev = pci_get_drvdata(vdev->pdev); vdev 1399 drivers/net/ethernet/neterion/vxge/vxge-main.c if (vdev->config.intr_type == INTA) vdev 1486 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxgedev *vdev = vpath->vdev; vdev 1492 drivers/net/ethernet/neterion/vxge/vxge-main.c for_each_set_bit(vid, vdev->active_vlans, VLAN_N_VID) vdev 1505 drivers/net/ethernet/neterion/vxge/vxge-main.c static int vxge_reset_vpath(struct vxgedev *vdev, int vp_id) vdev 1508 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxge_vpath *vpath = &vdev->vpaths[vp_id]; vdev 1512 drivers/net/ethernet/neterion/vxge/vxge-main.c if (unlikely(!is_vxge_card_up(vdev))) vdev 1516 drivers/net/ethernet/neterion/vxge/vxge-main.c if (test_bit(__VXGE_STATE_RESET_CARD, &vdev->state)) vdev 1521 drivers/net/ethernet/neterion/vxge/vxge-main.c if (is_vxge_card_up(vdev) && vdev 1545 drivers/net/ethernet/neterion/vxge/vxge-main.c if (vdev->all_multi_flg) { vdev 1554 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_vpath_intr_enable(vdev, vp_id); vdev 1566 drivers/net/ethernet/neterion/vxge/vxge-main.c clear_bit(vp_id, &vdev->vp_reset); vdev 1576 drivers/net/ethernet/neterion/vxge/vxge-main.c static void vxge_config_ci_for_tti_rti(struct vxgedev *vdev) vdev 1581 drivers/net/ethernet/neterion/vxge/vxge-main.c if (vdev->config.intr_type == MSI_X) { vdev 1582 drivers/net/ethernet/neterion/vxge/vxge-main.c for (i = 0; i < vdev->no_of_vpath; i++) { vdev 1585 drivers/net/ethernet/neterion/vxge/vxge-main.c hw_ring = vdev->vpaths[i].ring.handle; vdev 1591 drivers/net/ethernet/neterion/vxge/vxge-main.c for (i = 0; i < vdev->no_of_vpath; i++) { vdev 1592 drivers/net/ethernet/neterion/vxge/vxge-main.c struct __vxge_hw_fifo *hw_fifo = vdev->vpaths[i].fifo.handle; vdev 1598 drivers/net/ethernet/neterion/vxge/vxge-main.c if ((vdev->config.intr_type == INTA) && (i == 0)) vdev 1605 drivers/net/ethernet/neterion/vxge/vxge-main.c static int do_vxge_reset(struct vxgedev *vdev, int event) vdev 1614 drivers/net/ethernet/neterion/vxge/vxge-main.c if (unlikely(!is_vxge_card_up(vdev))) vdev 1618 drivers/net/ethernet/neterion/vxge/vxge-main.c if (test_and_set_bit(__VXGE_STATE_RESET_CARD, &vdev->state)) vdev 1623 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_carrier_off(vdev->ndev); vdev 1626 drivers/net/ethernet/neterion/vxge/vxge-main.c for (vp_id = 0; vp_id < vdev->no_of_vpath; vp_id++) { vdev 1627 drivers/net/ethernet/neterion/vxge/vxge-main.c while (test_bit(vp_id, &vdev->vp_reset)) vdev 1631 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_carrier_on(vdev->ndev); vdev 1634 drivers/net/ethernet/neterion/vxge/vxge-main.c if (unlikely(vdev->exec_mode)) { vdev 1637 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name); vdev 1638 drivers/net/ethernet/neterion/vxge/vxge-main.c clear_bit(__VXGE_STATE_CARD_UP, &vdev->state); vdev 1639 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_tx_stop_all_queues(vdev->ndev); vdev 1645 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_hw_device_wait_receive_idle(vdev->devh); vdev 1646 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_hw_device_intr_disable(vdev->devh); vdev 1648 drivers/net/ethernet/neterion/vxge/vxge-main.c switch (vdev->cric_err_event) { vdev 1650 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_tx_stop_all_queues(vdev->ndev); vdev 1654 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name); vdev 1671 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_tx_stop_all_queues(vdev->ndev); vdev 1675 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name); vdev 1681 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_tx_stop_all_queues(vdev->ndev); vdev 1685 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name); vdev 1693 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_tx_stop_all_queues(vdev->ndev); vdev 1697 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name); vdev 1707 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_tx_stop_all_queues(vdev->ndev); vdev 1710 drivers/net/ethernet/neterion/vxge/vxge-main.c status = vxge_reset_all_vpaths(vdev); vdev 1714 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name); vdev 1721 drivers/net/ethernet/neterion/vxge/vxge-main.c for (i = 0; i < vdev->no_of_vpath; i++) vdev 1722 drivers/net/ethernet/neterion/vxge/vxge-main.c if (vdev->vpaths[i].handle) { vdev 1724 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vpaths[i].handle) vdev 1744 drivers/net/ethernet/neterion/vxge/vxge-main.c for (vp_id = 0; vp_id < vdev->no_of_vpath; vp_id++) { vdev 1745 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_restore_vpath_mac_addr(&vdev->vpaths[vp_id]); vdev 1746 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_restore_vpath_vid_table(&vdev->vpaths[vp_id]); vdev 1750 drivers/net/ethernet/neterion/vxge/vxge-main.c for (i = 0; i < vdev->no_of_vpath; i++) vdev 1751 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_vpath_intr_enable(vdev, i); vdev 1753 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_hw_device_intr_enable(vdev->devh); vdev 1758 drivers/net/ethernet/neterion/vxge/vxge-main.c set_bit(__VXGE_STATE_CARD_UP, &vdev->state); vdev 1761 drivers/net/ethernet/neterion/vxge/vxge-main.c for (i = 0; i < vdev->no_of_vpath; i++) { vdev 1762 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_hw_vpath_enable(vdev->vpaths[i].handle); vdev 1764 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_hw_vpath_rx_doorbell_init(vdev->vpaths[i].handle); vdev 1767 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_tx_wake_all_queues(vdev->ndev); vdev 1771 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_config_ci_for_tti_rti(vdev); vdev 1779 drivers/net/ethernet/neterion/vxge/vxge-main.c clear_bit(__VXGE_STATE_RESET_CARD, &vdev->state); vdev 1791 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxgedev *vdev = container_of(work, struct vxgedev, reset_task); vdev 1793 drivers/net/ethernet/neterion/vxge/vxge-main.c if (!netif_running(vdev->ndev)) vdev 1796 drivers/net/ethernet/neterion/vxge/vxge-main.c do_vxge_reset(vdev, VXGE_LL_FULL_RESET); vdev 1839 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxgedev *vdev = container_of(napi, struct vxgedev, napi); vdev 1845 drivers/net/ethernet/neterion/vxge/vxge-main.c struct __vxge_hw_device *hldev = pci_get_drvdata(vdev->pdev); vdev 1847 drivers/net/ethernet/neterion/vxge/vxge-main.c for (i = 0; i < vdev->no_of_vpath; i++) { vdev 1848 drivers/net/ethernet/neterion/vxge/vxge-main.c ring = &vdev->vpaths[i].ring; vdev 1858 drivers/net/ethernet/neterion/vxge/vxge-main.c VXGE_COMPLETE_ALL_TX(vdev); vdev 1882 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxgedev *vdev = netdev_priv(dev); vdev 1883 drivers/net/ethernet/neterion/vxge/vxge-main.c struct pci_dev *pdev = vdev->pdev; vdev 1896 drivers/net/ethernet/neterion/vxge/vxge-main.c VXGE_COMPLETE_ALL_RX(vdev); vdev 1897 drivers/net/ethernet/neterion/vxge/vxge-main.c VXGE_COMPLETE_ALL_TX(vdev); vdev 1907 drivers/net/ethernet/neterion/vxge/vxge-main.c static enum vxge_hw_status vxge_rth_configure(struct vxgedev *vdev) vdev 1920 drivers/net/ethernet/neterion/vxge/vxge-main.c for (index = 0; index < (1 << vdev->config.rth_bkt_sz); index++) { vdev 1922 drivers/net/ethernet/neterion/vxge/vxge-main.c mtable[index] = index % vdev->no_of_vpath; vdev 1926 drivers/net/ethernet/neterion/vxge/vxge-main.c status = vxge_hw_vpath_rts_rth_itable_set(vdev->vp_handles, vdev 1927 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->no_of_vpath, vdev 1929 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->config.rth_bkt_sz); vdev 1933 drivers/net/ethernet/neterion/vxge/vxge-main.c "for vpath:%d", vdev->vpaths[0].device_id); vdev 1938 drivers/net/ethernet/neterion/vxge/vxge-main.c hash_types.hash_type_tcpipv4_en = vdev->config.rth_hash_type_tcpipv4; vdev 1939 drivers/net/ethernet/neterion/vxge/vxge-main.c hash_types.hash_type_ipv4_en = vdev->config.rth_hash_type_ipv4; vdev 1940 drivers/net/ethernet/neterion/vxge/vxge-main.c hash_types.hash_type_tcpipv6_en = vdev->config.rth_hash_type_tcpipv6; vdev 1941 drivers/net/ethernet/neterion/vxge/vxge-main.c hash_types.hash_type_ipv6_en = vdev->config.rth_hash_type_ipv6; vdev 1943 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->config.rth_hash_type_tcpipv6ex; vdev 1944 drivers/net/ethernet/neterion/vxge/vxge-main.c hash_types.hash_type_ipv6ex_en = vdev->config.rth_hash_type_ipv6ex; vdev 1952 drivers/net/ethernet/neterion/vxge/vxge-main.c for (index = 0; index < vdev->no_of_vpath; index++) { vdev 1954 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vpaths[index].handle, vdev 1955 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->config.rth_algorithm, vdev 1957 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->config.rth_bkt_sz); vdev 1961 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vpaths[index].device_id); vdev 1970 drivers/net/ethernet/neterion/vxge/vxge-main.c static enum vxge_hw_status vxge_reset_all_vpaths(struct vxgedev *vdev) vdev 1976 drivers/net/ethernet/neterion/vxge/vxge-main.c for (i = 0; i < vdev->no_of_vpath; i++) { vdev 1977 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath = &vdev->vpaths[i]; vdev 1980 drivers/net/ethernet/neterion/vxge/vxge-main.c if (is_vxge_card_up(vdev) && vdev 2002 drivers/net/ethernet/neterion/vxge/vxge-main.c static void vxge_close_vpaths(struct vxgedev *vdev, int index) vdev 2007 drivers/net/ethernet/neterion/vxge/vxge-main.c for (i = index; i < vdev->no_of_vpath; i++) { vdev 2008 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath = &vdev->vpaths[i]; vdev 2012 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->stats.vpaths_open--; vdev 2020 drivers/net/ethernet/neterion/vxge/vxge-main.c static int vxge_open_vpaths(struct vxgedev *vdev) vdev 2028 drivers/net/ethernet/neterion/vxge/vxge-main.c for (i = 0; i < vdev->no_of_vpath; i++) { vdev 2029 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath = &vdev->vpaths[i]; vdev 2032 drivers/net/ethernet/neterion/vxge/vxge-main.c if (!vdev->titan1) { vdev 2034 drivers/net/ethernet/neterion/vxge/vxge-main.c vcfg = &vdev->devh->config.vp_config[vpath->device_id]; vdev 2041 drivers/net/ethernet/neterion/vxge/vxge-main.c vcfg->tti.uec_c = TTI_T1A_TX_UFC_C(vdev->mtu); vdev 2042 drivers/net/ethernet/neterion/vxge/vxge-main.c vcfg->tti.uec_d = TTI_T1A_TX_UFC_D(vdev->mtu); vdev 2059 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath->ring.ndev = vdev->ndev; vdev 2060 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath->ring.pdev = vdev->pdev; vdev 2062 drivers/net/ethernet/neterion/vxge/vxge-main.c status = vxge_hw_vpath_open(vdev->devh, &attr, &vpath->handle); vdev 2069 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->config.tx_steering_type; vdev 2070 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath->fifo.ndev = vdev->ndev; vdev 2071 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath->fifo.pdev = vdev->pdev; vdev 2076 drivers/net/ethernet/neterion/vxge/vxge-main.c if (vdev->config.tx_steering_type) vdev 2078 drivers/net/ethernet/neterion/vxge/vxge-main.c netdev_get_tx_queue(vdev->ndev, i); vdev 2081 drivers/net/ethernet/neterion/vxge/vxge-main.c netdev_get_tx_queue(vdev->ndev, 0); vdev 2083 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->config.fifo_indicate_max_pkts; vdev 2086 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath->ring.rx_hwts = vdev->rx_hwts; vdev 2088 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vp_handles[i] = vpath->handle; vdev 2089 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath->ring.vlan_tag_strip = vdev->vlan_tag_strip; vdev 2090 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->stats.vpaths_open++; vdev 2092 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->stats.vpath_open_fail++; vdev 2095 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name, vpath->device_id, vdev 2097 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_close_vpaths(vdev, 0); vdev 2102 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vpaths_deployed |= vxge_mBIT(vp_id); vdev 2178 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxgedev *vdev = (struct vxgedev *)dev_id; vdev 2182 drivers/net/ethernet/neterion/vxge/vxge-main.c hldev = pci_get_drvdata(vdev->pdev); vdev 2184 drivers/net/ethernet/neterion/vxge/vxge-main.c if (pci_channel_offline(vdev->pdev)) vdev 2187 drivers/net/ethernet/neterion/vxge/vxge-main.c if (unlikely(!is_vxge_card_up(vdev))) vdev 2190 drivers/net/ethernet/neterion/vxge/vxge-main.c status = vxge_hw_device_begin_irq(hldev, vdev->exec_mode, &reason); vdev 2196 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vpaths_deployed >> vdev 2200 drivers/net/ethernet/neterion/vxge/vxge-main.c napi_schedule(&vdev->napi); vdev 2261 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxgedev *vdev = vpath->vdev; vdev 2265 drivers/net/ethernet/neterion/vxge/vxge-main.c for (i = 0; i < vdev->no_of_vpath; i++) { vdev 2270 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_hw_vpath_msix_mask(vdev->vpaths[i].handle, msix_id); vdev 2271 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_hw_vpath_msix_clear(vdev->vpaths[i].handle, msix_id); vdev 2273 drivers/net/ethernet/neterion/vxge/vxge-main.c status = vxge_hw_vpath_alarm_process(vdev->vpaths[i].handle, vdev 2274 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->exec_mode); vdev 2276 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_hw_vpath_msix_unmask(vdev->vpaths[i].handle, vdev 2287 drivers/net/ethernet/neterion/vxge/vxge-main.c static int vxge_alloc_msix(struct vxgedev *vdev) vdev 2291 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->intr_cnt = 0; vdev 2295 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->intr_cnt = vdev->no_of_vpath * 2; vdev 2298 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->intr_cnt++; vdev 2300 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->entries = kcalloc(vdev->intr_cnt, sizeof(struct msix_entry), vdev 2302 drivers/net/ethernet/neterion/vxge/vxge-main.c if (!vdev->entries) { vdev 2310 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vxge_entries = kcalloc(vdev->intr_cnt, vdev 2313 drivers/net/ethernet/neterion/vxge/vxge-main.c if (!vdev->vxge_entries) { vdev 2320 drivers/net/ethernet/neterion/vxge/vxge-main.c for (i = 0, j = 0; i < vdev->no_of_vpath; i++) { vdev 2325 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->entries[j].entry = msix_intr_vect; vdev 2326 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vxge_entries[j].entry = msix_intr_vect; vdev 2327 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vxge_entries[j].in_use = 0; vdev 2331 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->entries[j].entry = msix_intr_vect + 1; vdev 2332 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vxge_entries[j].entry = msix_intr_vect + 1; vdev 2333 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vxge_entries[j].in_use = 0; vdev 2338 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->entries[j].entry = VXGE_ALARM_MSIX_ID; vdev 2339 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vxge_entries[j].entry = VXGE_ALARM_MSIX_ID; vdev 2340 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vxge_entries[j].in_use = 0; vdev 2342 drivers/net/ethernet/neterion/vxge/vxge-main.c ret = pci_enable_msix_range(vdev->pdev, vdev 2343 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->entries, 3, vdev->intr_cnt); vdev 2347 drivers/net/ethernet/neterion/vxge/vxge-main.c } else if (ret < vdev->intr_cnt) { vdev 2348 drivers/net/ethernet/neterion/vxge/vxge-main.c pci_disable_msix(vdev->pdev); vdev 2352 drivers/net/ethernet/neterion/vxge/vxge-main.c VXGE_DRIVER_NAME, vdev->intr_cnt, ret); vdev 2358 drivers/net/ethernet/neterion/vxge/vxge-main.c kfree(vdev->entries); vdev 2359 drivers/net/ethernet/neterion/vxge/vxge-main.c kfree(vdev->vxge_entries); vdev 2360 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->entries = NULL; vdev 2361 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vxge_entries = NULL; vdev 2364 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_close_vpaths(vdev, temp); vdev 2365 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->no_of_vpath = temp; vdev 2371 drivers/net/ethernet/neterion/vxge/vxge-main.c kfree(vdev->vxge_entries); vdev 2373 drivers/net/ethernet/neterion/vxge/vxge-main.c kfree(vdev->entries); vdev 2378 drivers/net/ethernet/neterion/vxge/vxge-main.c static int vxge_enable_msix(struct vxgedev *vdev) vdev 2385 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->intr_cnt = 0; vdev 2388 drivers/net/ethernet/neterion/vxge/vxge-main.c ret = vxge_alloc_msix(vdev); vdev 2390 drivers/net/ethernet/neterion/vxge/vxge-main.c for (i = 0; i < vdev->no_of_vpath; i++) { vdev 2391 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxge_vpath *vpath = &vdev->vpaths[i]; vdev 2410 drivers/net/ethernet/neterion/vxge/vxge-main.c static void vxge_rem_msix_isr(struct vxgedev *vdev) vdev 2414 drivers/net/ethernet/neterion/vxge/vxge-main.c for (intr_cnt = 0; intr_cnt < (vdev->no_of_vpath * 2 + 1); vdev 2416 drivers/net/ethernet/neterion/vxge/vxge-main.c if (vdev->vxge_entries[intr_cnt].in_use) { vdev 2417 drivers/net/ethernet/neterion/vxge/vxge-main.c synchronize_irq(vdev->entries[intr_cnt].vector); vdev 2418 drivers/net/ethernet/neterion/vxge/vxge-main.c free_irq(vdev->entries[intr_cnt].vector, vdev 2419 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vxge_entries[intr_cnt].arg); vdev 2420 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vxge_entries[intr_cnt].in_use = 0; vdev 2424 drivers/net/ethernet/neterion/vxge/vxge-main.c kfree(vdev->entries); vdev 2425 drivers/net/ethernet/neterion/vxge/vxge-main.c kfree(vdev->vxge_entries); vdev 2426 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->entries = NULL; vdev 2427 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vxge_entries = NULL; vdev 2429 drivers/net/ethernet/neterion/vxge/vxge-main.c if (vdev->config.intr_type == MSI_X) vdev 2430 drivers/net/ethernet/neterion/vxge/vxge-main.c pci_disable_msix(vdev->pdev); vdev 2433 drivers/net/ethernet/neterion/vxge/vxge-main.c static void vxge_rem_isr(struct vxgedev *vdev) vdev 2436 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->config.intr_type == MSI_X) { vdev 2437 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_rem_msix_isr(vdev); vdev 2438 drivers/net/ethernet/neterion/vxge/vxge-main.c } else if (vdev->config.intr_type == INTA) { vdev 2439 drivers/net/ethernet/neterion/vxge/vxge-main.c synchronize_irq(vdev->pdev->irq); vdev 2440 drivers/net/ethernet/neterion/vxge/vxge-main.c free_irq(vdev->pdev->irq, vdev); vdev 2444 drivers/net/ethernet/neterion/vxge/vxge-main.c static int vxge_add_isr(struct vxgedev *vdev) vdev 2448 drivers/net/ethernet/neterion/vxge/vxge-main.c int pci_fun = PCI_FUNC(vdev->pdev->devfn); vdev 2450 drivers/net/ethernet/neterion/vxge/vxge-main.c if (IS_ENABLED(CONFIG_PCI_MSI) && vdev->config.intr_type == MSI_X) vdev 2451 drivers/net/ethernet/neterion/vxge/vxge-main.c ret = vxge_enable_msix(vdev); vdev 2458 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->config.intr_type = INTA; vdev 2461 drivers/net/ethernet/neterion/vxge/vxge-main.c if (IS_ENABLED(CONFIG_PCI_MSI) && vdev->config.intr_type == MSI_X) { vdev 2463 drivers/net/ethernet/neterion/vxge/vxge-main.c intr_idx < (vdev->no_of_vpath * vdev 2471 drivers/net/ethernet/neterion/vxge/vxge-main.c snprintf(vdev->desc[intr_cnt], VXGE_INTR_STRLEN, vdev 2473 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name, vdev 2474 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->entries[intr_cnt].entry, vdev 2477 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->entries[intr_cnt].vector, vdev 2479 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->desc[intr_cnt], vdev 2480 drivers/net/ethernet/neterion/vxge/vxge-main.c &vdev->vpaths[vp_idx].fifo); vdev 2481 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vxge_entries[intr_cnt].arg = vdev 2482 drivers/net/ethernet/neterion/vxge/vxge-main.c &vdev->vpaths[vp_idx].fifo; vdev 2486 drivers/net/ethernet/neterion/vxge/vxge-main.c snprintf(vdev->desc[intr_cnt], VXGE_INTR_STRLEN, vdev 2488 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name, vdev 2489 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->entries[intr_cnt].entry, vdev 2492 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->entries[intr_cnt].vector, vdev 2494 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->desc[intr_cnt], vdev 2495 drivers/net/ethernet/neterion/vxge/vxge-main.c &vdev->vpaths[vp_idx].ring); vdev 2496 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vxge_entries[intr_cnt].arg = vdev 2497 drivers/net/ethernet/neterion/vxge/vxge-main.c &vdev->vpaths[vp_idx].ring; vdev 2505 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name, intr_cnt); vdev 2506 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_rem_msix_isr(vdev); vdev 2507 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->config.intr_type = INTA; vdev 2510 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name); vdev 2516 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vxge_entries[intr_cnt].in_use = 1; vdev 2517 drivers/net/ethernet/neterion/vxge/vxge-main.c msix_idx += vdev->vpaths[vp_idx].device_id * vdev 2520 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vpaths[vp_idx].handle, vdev 2527 drivers/net/ethernet/neterion/vxge/vxge-main.c (vp_idx < (vdev->no_of_vpath - 1))) vdev 2531 drivers/net/ethernet/neterion/vxge/vxge-main.c intr_cnt = vdev->no_of_vpath * 2; vdev 2532 drivers/net/ethernet/neterion/vxge/vxge-main.c snprintf(vdev->desc[intr_cnt], VXGE_INTR_STRLEN, vdev 2534 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name, vdev 2535 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->entries[intr_cnt].entry, vdev 2538 drivers/net/ethernet/neterion/vxge/vxge-main.c ret = request_irq(vdev->entries[intr_cnt].vector, vdev 2540 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->desc[intr_cnt], vdev 2541 drivers/net/ethernet/neterion/vxge/vxge-main.c &vdev->vpaths[0]); vdev 2545 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name, intr_cnt); vdev 2546 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_rem_msix_isr(vdev); vdev 2547 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->config.intr_type = INTA; vdev 2550 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name); vdev 2554 drivers/net/ethernet/neterion/vxge/vxge-main.c msix_idx = (vdev->vpaths[0].handle->vpath->vp_id * vdev 2556 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_hw_vpath_msix_unmask(vdev->vpaths[vp_idx].handle, vdev 2558 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vxge_entries[intr_cnt].in_use = 1; vdev 2559 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vxge_entries[intr_cnt].arg = &vdev->vpaths[0]; vdev 2563 drivers/net/ethernet/neterion/vxge/vxge-main.c if (vdev->config.intr_type == INTA) { vdev 2564 drivers/net/ethernet/neterion/vxge/vxge-main.c snprintf(vdev->desc[0], VXGE_INTR_STRLEN, vdev 2565 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s:vxge:INTA", vdev->ndev->name); vdev 2566 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_hw_device_set_intr_type(vdev->devh, vdev 2569 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_hw_vpath_tti_ci_set(vdev->vpaths[0].fifo.handle); vdev 2571 drivers/net/ethernet/neterion/vxge/vxge-main.c ret = request_irq((int) vdev->pdev->irq, vdev 2573 drivers/net/ethernet/neterion/vxge/vxge-main.c IRQF_SHARED, vdev->desc[0], vdev); vdev 2577 drivers/net/ethernet/neterion/vxge/vxge-main.c VXGE_DRIVER_NAME, "IRQ", vdev->pdev->irq); vdev 2582 drivers/net/ethernet/neterion/vxge/vxge-main.c "IRQ", vdev->pdev->irq); vdev 2590 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxgedev *vdev = from_timer(vdev, t, vp_reset_timer); vdev 2593 drivers/net/ethernet/neterion/vxge/vxge-main.c for (i = 0; i < vdev->no_of_vpath; i++) { vdev 2594 drivers/net/ethernet/neterion/vxge/vxge-main.c if (test_bit(i, &vdev->vp_reset)) { vdev 2595 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_reset_vpath(vdev, i); vdev 2599 drivers/net/ethernet/neterion/vxge/vxge-main.c if (j && (vdev->config.intr_type != MSI_X)) { vdev 2600 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_hw_device_unmask_all(vdev->devh); vdev 2601 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_hw_device_flush_io(vdev->devh); vdev 2604 drivers/net/ethernet/neterion/vxge/vxge-main.c mod_timer(&vdev->vp_reset_timer, jiffies + HZ / 2); vdev 2609 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxgedev *vdev = from_timer(vdev, t, vp_lockup_timer); vdev 2616 drivers/net/ethernet/neterion/vxge/vxge-main.c for (i = 0; i < vdev->no_of_vpath; i++) { vdev 2617 drivers/net/ethernet/neterion/vxge/vxge-main.c ring = &vdev->vpaths[i].ring; vdev 2631 drivers/net/ethernet/neterion/vxge/vxge-main.c if (!test_and_set_bit(i, &vdev->vp_reset)) { vdev 2632 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath = &vdev->vpaths[i]; vdev 2635 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_vpath_intr_disable(vdev, i); vdev 2648 drivers/net/ethernet/neterion/vxge/vxge-main.c mod_timer(&vdev->vp_lockup_timer, jiffies + HZ / 1000); vdev 2668 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxgedev *vdev = netdev_priv(dev); vdev 2676 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->devh->config.rth_en = !!(features & NETIF_F_RXHASH); vdev 2677 drivers/net/ethernet/neterion/vxge/vxge-main.c if (vxge_reset_all_vpaths(vdev) != VXGE_HW_OK) { vdev 2679 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->devh->config.rth_en = !!(dev->features & NETIF_F_RXHASH); vdev 2699 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxgedev *vdev; vdev 2709 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev = netdev_priv(dev); vdev 2710 drivers/net/ethernet/neterion/vxge/vxge-main.c hldev = pci_get_drvdata(vdev->pdev); vdev 2717 drivers/net/ethernet/neterion/vxge/vxge-main.c status = vxge_open_vpaths(vdev); vdev 2720 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: fatal: Vpath open failed", vdev->ndev->name); vdev 2725 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->mtu = dev->mtu; vdev 2727 drivers/net/ethernet/neterion/vxge/vxge-main.c status = vxge_add_isr(vdev); vdev 2735 drivers/net/ethernet/neterion/vxge/vxge-main.c if (vdev->config.intr_type != MSI_X) { vdev 2736 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_napi_add(dev, &vdev->napi, vxge_poll_inta, vdev 2737 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->config.napi_weight); vdev 2738 drivers/net/ethernet/neterion/vxge/vxge-main.c napi_enable(&vdev->napi); vdev 2739 drivers/net/ethernet/neterion/vxge/vxge-main.c for (i = 0; i < vdev->no_of_vpath; i++) { vdev 2740 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath = &vdev->vpaths[i]; vdev 2741 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath->ring.napi_p = &vdev->napi; vdev 2744 drivers/net/ethernet/neterion/vxge/vxge-main.c for (i = 0; i < vdev->no_of_vpath; i++) { vdev 2745 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath = &vdev->vpaths[i]; vdev 2747 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_poll_msix, vdev->config.napi_weight); vdev 2754 drivers/net/ethernet/neterion/vxge/vxge-main.c if (vdev->config.rth_steering) { vdev 2755 drivers/net/ethernet/neterion/vxge/vxge-main.c status = vxge_rth_configure(vdev); vdev 2767 drivers/net/ethernet/neterion/vxge/vxge-main.c for (i = 0; i < vdev->no_of_vpath; i++) { vdev 2768 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath = &vdev->vpaths[i]; vdev 2771 drivers/net/ethernet/neterion/vxge/vxge-main.c status = vxge_hw_vpath_mtu_set(vpath->handle, vdev->mtu); vdev 2780 drivers/net/ethernet/neterion/vxge/vxge-main.c VXGE_DEVICE_DEBUG_LEVEL_SET(VXGE_TRACE, VXGE_COMPONENT_LL, vdev); vdev 2781 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_debug_init(vdev->level_trace, vdev 2782 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: MTU is %d", vdev->ndev->name, vdev->mtu); vdev 2783 drivers/net/ethernet/neterion/vxge/vxge-main.c VXGE_DEVICE_DEBUG_LEVEL_SET(VXGE_ERR, VXGE_COMPONENT_LL, vdev); vdev 2788 drivers/net/ethernet/neterion/vxge/vxge-main.c if (vdev->all_multi_flg) { vdev 2789 drivers/net/ethernet/neterion/vxge/vxge-main.c for (i = 0; i < vdev->no_of_vpath; i++) { vdev 2790 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath = &vdev->vpaths[i]; vdev 2810 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_hw_mgmt_reg_write(vdev->devh, vdev 2817 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_hw_mgmt_reg_write(vdev->devh, vdev 2827 drivers/net/ethernet/neterion/vxge/vxge-main.c for (i = 0; i < vdev->no_of_vpath; i++) { vdev 2828 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath = &vdev->vpaths[i]; vdev 2834 drivers/net/ethernet/neterion/vxge/vxge-main.c if (vdev->config.addr_learn_en) { vdev 2843 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_hw_device_setpause_data(vdev->devh, 0, vdev 2844 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->config.tx_pause_enable, vdev 2845 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->config.rx_pause_enable); vdev 2847 drivers/net/ethernet/neterion/vxge/vxge-main.c if (vdev->vp_reset_timer.function == NULL) vdev 2848 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_os_timer(&vdev->vp_reset_timer, vxge_poll_vp_reset, vdev 2852 drivers/net/ethernet/neterion/vxge/vxge-main.c if (vdev->titan1 && vdev->vp_lockup_timer.function == NULL) vdev 2853 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_os_timer(&vdev->vp_lockup_timer, vxge_poll_vp_lockup, vdev 2856 drivers/net/ethernet/neterion/vxge/vxge-main.c set_bit(__VXGE_STATE_CARD_UP, &vdev->state); vdev 2860 drivers/net/ethernet/neterion/vxge/vxge-main.c if (vxge_hw_device_link_state_get(vdev->devh) == VXGE_HW_LINK_UP) { vdev 2861 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_carrier_on(vdev->ndev); vdev 2862 drivers/net/ethernet/neterion/vxge/vxge-main.c netdev_notice(vdev->ndev, "Link Up\n"); vdev 2863 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->stats.link_up++; vdev 2866 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_hw_device_intr_enable(vdev->devh); vdev 2870 drivers/net/ethernet/neterion/vxge/vxge-main.c for (i = 0; i < vdev->no_of_vpath; i++) { vdev 2871 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath = &vdev->vpaths[i]; vdev 2878 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_tx_start_all_queues(vdev->ndev); vdev 2881 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_config_ci_for_tti_rti(vdev); vdev 2886 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_rem_isr(vdev); vdev 2889 drivers/net/ethernet/neterion/vxge/vxge-main.c if (vdev->config.intr_type != MSI_X) vdev 2890 drivers/net/ethernet/neterion/vxge/vxge-main.c napi_disable(&vdev->napi); vdev 2892 drivers/net/ethernet/neterion/vxge/vxge-main.c for (i = 0; i < vdev->no_of_vpath; i++) vdev 2893 drivers/net/ethernet/neterion/vxge/vxge-main.c napi_disable(&vdev->vpaths[i].ring.napi); vdev 2897 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_close_vpaths(vdev, 0); vdev 2919 drivers/net/ethernet/neterion/vxge/vxge-main.c static void vxge_napi_del_all(struct vxgedev *vdev) vdev 2922 drivers/net/ethernet/neterion/vxge/vxge-main.c if (vdev->config.intr_type != MSI_X) vdev 2923 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_napi_del(&vdev->napi); vdev 2925 drivers/net/ethernet/neterion/vxge/vxge-main.c for (i = 0; i < vdev->no_of_vpath; i++) vdev 2926 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_napi_del(&vdev->vpaths[i].ring.napi); vdev 2933 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxgedev *vdev; vdev 2940 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev = netdev_priv(dev); vdev 2941 drivers/net/ethernet/neterion/vxge/vxge-main.c hldev = pci_get_drvdata(vdev->pdev); vdev 2943 drivers/net/ethernet/neterion/vxge/vxge-main.c if (unlikely(!is_vxge_card_up(vdev))) vdev 2948 drivers/net/ethernet/neterion/vxge/vxge-main.c while (test_and_set_bit(__VXGE_STATE_RESET_CARD, &vdev->state)) vdev 2953 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath_vector = vxge_mBIT(vdev->vpaths[0].device_id); vdev 2954 drivers/net/ethernet/neterion/vxge/vxge-main.c status = vxge_hw_mgmt_reg_read(vdev->devh, vdev 2963 drivers/net/ethernet/neterion/vxge/vxge-main.c status = vxge_hw_mgmt_reg_write(vdev->devh, vdev 2973 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_hw_mgmt_reg_write(vdev->devh, vdev 2980 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_hw_mgmt_reg_write(vdev->devh, vdev 2990 drivers/net/ethernet/neterion/vxge/vxge-main.c if (vdev->titan1) vdev 2991 drivers/net/ethernet/neterion/vxge/vxge-main.c del_timer_sync(&vdev->vp_lockup_timer); vdev 2993 drivers/net/ethernet/neterion/vxge/vxge-main.c del_timer_sync(&vdev->vp_reset_timer); vdev 2998 drivers/net/ethernet/neterion/vxge/vxge-main.c clear_bit(__VXGE_STATE_CARD_UP, &vdev->state); vdev 3001 drivers/net/ethernet/neterion/vxge/vxge-main.c if (vdev->config.intr_type != MSI_X) vdev 3002 drivers/net/ethernet/neterion/vxge/vxge-main.c napi_disable(&vdev->napi); vdev 3004 drivers/net/ethernet/neterion/vxge/vxge-main.c for (i = 0; i < vdev->no_of_vpath; i++) vdev 3005 drivers/net/ethernet/neterion/vxge/vxge-main.c napi_disable(&vdev->vpaths[i].ring.napi); vdev 3008 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_carrier_off(vdev->ndev); vdev 3009 drivers/net/ethernet/neterion/vxge/vxge-main.c netdev_notice(vdev->ndev, "Link Down\n"); vdev 3010 drivers/net/ethernet/neterion/vxge/vxge-main.c netif_tx_stop_all_queues(vdev->ndev); vdev 3014 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_hw_device_intr_disable(vdev->devh); vdev 3016 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_rem_isr(vdev); vdev 3018 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_napi_del_all(vdev); vdev 3021 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_reset_all_vpaths(vdev); vdev 3023 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_close_vpaths(vdev, 0); vdev 3028 drivers/net/ethernet/neterion/vxge/vxge-main.c clear_bit(__VXGE_STATE_RESET_CARD, &vdev->state); vdev 3060 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxgedev *vdev = netdev_priv(dev); vdev 3062 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_debug_entryexit(vdev->level_trace, vdev 3066 drivers/net/ethernet/neterion/vxge/vxge-main.c if (unlikely(!is_vxge_card_up(vdev))) { vdev 3069 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_debug_init(vdev->level_err, vdev 3074 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_debug_init(vdev->level_trace, vdev 3081 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->mtu = new_mtu; vdev 3086 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_debug_init(vdev->level_trace, vdev 3087 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: MTU changed to %d", vdev->ndev->name, new_mtu); vdev 3089 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_debug_entryexit(vdev->level_trace, vdev 3104 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxgedev *vdev = netdev_priv(dev); vdev 3108 drivers/net/ethernet/neterion/vxge/vxge-main.c for (k = 0; k < vdev->no_of_vpath; k++) { vdev 3109 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxge_ring_stats *rxstats = &vdev->vpaths[k].ring.stats; vdev 3110 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxge_fifo_stats *txstats = &vdev->vpaths[k].fifo.stats; vdev 3167 drivers/net/ethernet/neterion/vxge/vxge-main.c static int vxge_hwtstamp_set(struct vxgedev *vdev, void __user *data) vdev 3190 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->rx_hwts = 0; vdev 3209 drivers/net/ethernet/neterion/vxge/vxge-main.c if (vdev->devh->config.hwts_en != VXGE_HW_HWTS_ENABLE) vdev 3212 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->rx_hwts = 1; vdev 3220 drivers/net/ethernet/neterion/vxge/vxge-main.c for (i = 0; i < vdev->no_of_vpath; i++) vdev 3221 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vpaths[i].ring.rx_hwts = vdev->rx_hwts; vdev 3229 drivers/net/ethernet/neterion/vxge/vxge-main.c static int vxge_hwtstamp_get(struct vxgedev *vdev, void __user *data) vdev 3235 drivers/net/ethernet/neterion/vxge/vxge-main.c config.rx_filter = (vdev->rx_hwts ? vdev 3256 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxgedev *vdev = netdev_priv(dev); vdev 3260 drivers/net/ethernet/neterion/vxge/vxge-main.c return vxge_hwtstamp_set(vdev, rq->ifr_data); vdev 3262 drivers/net/ethernet/neterion/vxge/vxge-main.c return vxge_hwtstamp_get(vdev, rq->ifr_data); vdev 3278 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxgedev *vdev; vdev 3282 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev = netdev_priv(dev); vdev 3284 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->cric_err_event = VXGE_HW_EVENT_RESET_START; vdev 3286 drivers/net/ethernet/neterion/vxge/vxge-main.c schedule_work(&vdev->reset_task); vdev 3302 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxgedev *vdev = netdev_priv(dev); vdev 3307 drivers/net/ethernet/neterion/vxge/vxge-main.c for (vp_id = 0; vp_id < vdev->no_of_vpath; vp_id++) { vdev 3308 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath = &vdev->vpaths[vp_id]; vdev 3313 drivers/net/ethernet/neterion/vxge/vxge-main.c set_bit(vid, vdev->active_vlans); vdev 3328 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxgedev *vdev = netdev_priv(dev); vdev 3335 drivers/net/ethernet/neterion/vxge/vxge-main.c for (vp_id = 0; vp_id < vdev->no_of_vpath; vp_id++) { vdev 3336 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath = &vdev->vpaths[vp_id]; vdev 3343 drivers/net/ethernet/neterion/vxge/vxge-main.c clear_bit(vid, vdev->active_vlans); vdev 3373 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxgedev *vdev; vdev 3396 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev = netdev_priv(ndev); vdev 3397 drivers/net/ethernet/neterion/vxge/vxge-main.c memset(vdev, 0, sizeof(struct vxgedev)); vdev 3399 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev = ndev; vdev 3400 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->devh = hldev; vdev 3401 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->pdev = hldev->pdev; vdev 3402 drivers/net/ethernet/neterion/vxge/vxge-main.c memcpy(&vdev->config, config, sizeof(struct vxge_config)); vdev 3403 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->rx_hwts = 0; vdev 3404 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->titan1 = (vdev->pdev->revision == VXGE_HW_TITAN1_PCI_REVISION); vdev 3406 drivers/net/ethernet/neterion/vxge/vxge-main.c SET_NETDEV_DEV(ndev, &vdev->pdev->dev); vdev 3412 drivers/net/ethernet/neterion/vxge/vxge-main.c if (vdev->config.rth_steering != NO_STEERING) vdev 3422 drivers/net/ethernet/neterion/vxge/vxge-main.c INIT_WORK(&vdev->reset_task, vxge_reset); vdev 3427 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vpaths = kcalloc(no_of_vpath, sizeof(struct vxge_vpath), vdev 3429 drivers/net/ethernet/neterion/vxge/vxge-main.c if (!vdev->vpaths) { vdev 3432 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name); vdev 3472 drivers/net/ethernet/neterion/vxge/vxge-main.c *vdev_out = vdev; vdev 3494 drivers/net/ethernet/neterion/vxge/vxge-main.c kfree(vdev->vpaths); vdev 3508 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxgedev *vdev; vdev 3513 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev = netdev_priv(dev); vdev 3515 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_debug_entryexit(vdev->level_trace, "%s: %s:%d", vdev->ndev->name, vdev 3520 drivers/net/ethernet/neterion/vxge/vxge-main.c flush_work(&vdev->reset_task); vdev 3525 drivers/net/ethernet/neterion/vxge/vxge-main.c kfree(vdev->vpaths); vdev 3530 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_debug_init(vdev->level_trace, "%s: ethernet device unregistered", vdev 3532 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_debug_entryexit(vdev->level_trace, "%s: %s:%d Exiting...", buf, vdev 3547 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxgedev *vdev = netdev_priv(dev); vdev 3551 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_debug_entryexit(vdev->level_trace, vdev 3552 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: %s:%d", vdev->ndev->name, __func__, __LINE__); vdev 3557 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->cric_err_event = type; vdev 3559 drivers/net/ethernet/neterion/vxge/vxge-main.c for (vpath_idx = 0; vpath_idx < vdev->no_of_vpath; vpath_idx++) { vdev 3560 drivers/net/ethernet/neterion/vxge/vxge-main.c vpath = &vdev->vpaths[vpath_idx]; vdev 3565 drivers/net/ethernet/neterion/vxge/vxge-main.c if (!test_bit(__VXGE_STATE_RESET_CARD, &vdev->state)) { vdev 3568 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: Slot is frozen", vdev->ndev->name); vdev 3572 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name); vdev 3576 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name); vdev 3581 drivers/net/ethernet/neterion/vxge/vxge-main.c if (unlikely(vdev->exec_mode)) vdev 3582 drivers/net/ethernet/neterion/vxge/vxge-main.c clear_bit(__VXGE_STATE_CARD_UP, &vdev->state); vdev 3585 drivers/net/ethernet/neterion/vxge/vxge-main.c if (unlikely(vdev->exec_mode)) vdev 3586 drivers/net/ethernet/neterion/vxge/vxge-main.c clear_bit(__VXGE_STATE_CARD_UP, &vdev->state); vdev 3590 drivers/net/ethernet/neterion/vxge/vxge-main.c if (unlikely(vdev->exec_mode)) vdev 3591 drivers/net/ethernet/neterion/vxge/vxge-main.c clear_bit(__VXGE_STATE_CARD_UP, &vdev->state); vdev 3594 drivers/net/ethernet/neterion/vxge/vxge-main.c if (!test_and_set_bit(vpath_idx, &vdev->vp_reset)) { vdev 3597 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_vpath_intr_disable(vdev, vpath_idx); vdev 3605 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_debug_entryexit(vdev->level_trace, vdev 3607 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name, __func__, __LINE__); vdev 3909 drivers/net/ethernet/neterion/vxge/vxge-main.c static void vxge_print_parm(struct vxgedev *vdev, u64 vpath_mask) vdev 3915 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name, vdev->no_of_vpath); vdev 3917 drivers/net/ethernet/neterion/vxge/vxge-main.c switch (vdev->config.intr_type) { vdev 3920 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: Interrupt type INTA", vdev->ndev->name); vdev 3925 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: Interrupt type MSI-X", vdev->ndev->name); vdev 3929 drivers/net/ethernet/neterion/vxge/vxge-main.c if (vdev->config.rth_steering) { vdev 3932 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name); vdev 3935 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: RTH steering disabled", vdev->ndev->name); vdev 3938 drivers/net/ethernet/neterion/vxge/vxge-main.c switch (vdev->config.tx_steering_type) { vdev 3941 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: Tx steering disabled", vdev->ndev->name); vdev 3946 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name); vdev 3948 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: Tx steering disabled", vdev->ndev->name); vdev 3949 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->config.tx_steering_type = 0; vdev 3954 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name); vdev 3956 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: Tx steering disabled", vdev->ndev->name); vdev 3957 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->config.tx_steering_type = 0; vdev 3962 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name); vdev 3967 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name); vdev 3972 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name); vdev 3974 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: Tx steering disabled", vdev->ndev->name); vdev 3975 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->config.tx_steering_type = 0; vdev 3978 drivers/net/ethernet/neterion/vxge/vxge-main.c if (vdev->config.addr_learn_en) vdev 3980 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: MAC Address learning enabled", vdev->ndev->name); vdev 3986 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: MTU size - %d", vdev->ndev->name, vdev 3987 drivers/net/ethernet/neterion/vxge/vxge-main.c ((vdev->devh))-> vdev 3990 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: VLAN tag stripping %s", vdev->ndev->name, vdev 3991 drivers/net/ethernet/neterion/vxge/vxge-main.c ((vdev->devh))-> vdev 3995 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: Max frags : %d", vdev->ndev->name, vdev 3996 drivers/net/ethernet/neterion/vxge/vxge-main.c ((vdev->devh))-> vdev 4065 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxgedev *vdev = netdev_priv(netdev); vdev 4073 drivers/net/ethernet/neterion/vxge/vxge-main.c do_vxge_reset(vdev, VXGE_LL_FULL_RESET); vdev 4131 drivers/net/ethernet/neterion/vxge/vxge-main.c int vxge_fw_upgrade(struct vxgedev *vdev, char *fw_name, int override) vdev 4133 drivers/net/ethernet/neterion/vxge/vxge-main.c struct __vxge_hw_device *hldev = vdev->devh; vdev 4139 drivers/net/ethernet/neterion/vxge/vxge-main.c ret = request_firmware(&fw, fw_name, &vdev->pdev->dev); vdev 4166 drivers/net/ethernet/neterion/vxge/vxge-main.c cmaj = vdev->config.device_hw_info.fw_version.major; vdev 4167 drivers/net/ethernet/neterion/vxge/vxge-main.c cmin = vdev->config.device_hw_info.fw_version.minor; vdev 4168 drivers/net/ethernet/neterion/vxge/vxge-main.c cbld = vdev->config.device_hw_info.fw_version.build; vdev 4200 drivers/net/ethernet/neterion/vxge/vxge-main.c static int vxge_probe_fw_update(struct vxgedev *vdev) vdev 4206 drivers/net/ethernet/neterion/vxge/vxge-main.c maj = vdev->config.device_hw_info.fw_version.major; vdev 4207 drivers/net/ethernet/neterion/vxge/vxge-main.c min = vdev->config.device_hw_info.fw_version.minor; vdev 4208 drivers/net/ethernet/neterion/vxge/vxge-main.c bld = vdev->config.device_hw_info.fw_version.build; vdev 4236 drivers/net/ethernet/neterion/vxge/vxge-main.c if (vdev->devh->eprom_versions[i]) { vdev 4246 drivers/net/ethernet/neterion/vxge/vxge-main.c ret = vxge_fw_upgrade(vdev, fw_name, 0); vdev 4305 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxgedev *vdev; vdev 4578 drivers/net/ethernet/neterion/vxge/vxge-main.c &vdev); vdev 4584 drivers/net/ethernet/neterion/vxge/vxge-main.c ret = vxge_probe_fw_update(vdev); vdev 4589 drivers/net/ethernet/neterion/vxge/vxge-main.c VXGE_COPY_DEBUG_INFO_TO_LL(vdev, vxge_hw_device_error_level_get(hldev), vdev 4593 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->mtu = VXGE_HW_DEFAULT_MTU; vdev 4594 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->bar0 = attr.bar0; vdev 4595 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->max_vpath_supported = max_vpath_supported; vdev 4596 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->no_of_vpath = no_of_vpath; vdev 4602 drivers/net/ethernet/neterion/vxge/vxge-main.c if (j >= vdev->no_of_vpath) vdev 4605 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vpaths[j].is_configured = 1; vdev 4606 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vpaths[j].device_id = i; vdev 4607 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vpaths[j].ring.driver_id = j; vdev 4608 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vpaths[j].vdev = vdev; vdev 4609 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vpaths[j].max_mac_addr_cnt = max_mac_vpath; vdev 4610 drivers/net/ethernet/neterion/vxge/vxge-main.c memcpy((u8 *)vdev->vpaths[j].macaddr, vdev 4615 drivers/net/ethernet/neterion/vxge/vxge-main.c INIT_LIST_HEAD(&vdev->vpaths[j].mac_addr_list); vdev 4617 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vpaths[j].mac_addr_cnt = 0; vdev 4618 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vpaths[j].mcast_addr_cnt = 0; vdev 4621 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->exec_mode = VXGE_EXEC_MODE_DISABLE; vdev 4622 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->max_config_port = max_config_port; vdev 4624 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vlan_tag_strip = vlan_tag_strip; vdev 4627 drivers/net/ethernet/neterion/vxge/vxge-main.c for (i = 0; i < vdev->no_of_vpath; i++) vdev 4628 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vpath_selector[i] = vpath_selector[i]; vdev 4630 drivers/net/ethernet/neterion/vxge/vxge-main.c macaddr = (u8 *)vdev->vpaths[0].macaddr; vdev 4637 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name, ll_config->device_hw_info.serial_number); vdev 4640 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name, ll_config->device_hw_info.part_number); vdev 4643 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name, ll_config->device_hw_info.product_desc); vdev 4646 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name, macaddr); vdev 4649 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name, vxge_hw_device_link_width_get(hldev)); vdev 4652 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: Firmware version : %s Date : %s", vdev->ndev->name, vdev 4660 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: Single Function Mode Enabled", vdev->ndev->name); vdev 4664 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: Multi Function Mode Enabled", vdev->ndev->name); vdev 4668 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: Single Root IOV Mode Enabled", vdev->ndev->name); vdev 4672 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: Multi Root IOV Mode Enabled", vdev->ndev->name); vdev 4677 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_print_parm(vdev, vpath_mask); vdev 4680 drivers/net/ethernet/neterion/vxge/vxge-main.c strcpy(vdev->fw_version, ll_config->device_hw_info.fw_version.version); vdev 4681 drivers/net/ethernet/neterion/vxge/vxge-main.c memcpy(vdev->ndev->dev_addr, (u8 *)vdev->vpaths[0].macaddr, ETH_ALEN); vdev 4684 drivers/net/ethernet/neterion/vxge/vxge-main.c for (i = 0; i < vdev->no_of_vpath; i++) { vdev 4689 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name); vdev 4694 drivers/net/ethernet/neterion/vxge/vxge-main.c memcpy(macaddr, vdev->ndev->dev_addr, ETH_ALEN); vdev 4695 drivers/net/ethernet/neterion/vxge/vxge-main.c list_add(&entry->item, &vdev->vpaths[i].mac_addr_list); vdev 4696 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->vpaths[i].mac_addr_cnt = 1; vdev 4718 drivers/net/ethernet/neterion/vxge/vxge-main.c if (vdev->config.intr_type == INTA) vdev 4722 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->ndev->name, __func__, __LINE__); vdev 4725 drivers/net/ethernet/neterion/vxge/vxge-main.c VXGE_COPY_DEBUG_INFO_TO_LL(vdev, vxge_hw_device_error_level_get(hldev), vdev 4732 drivers/net/ethernet/neterion/vxge/vxge-main.c for (i = 0; i < vdev->no_of_vpath; i++) vdev 4733 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_free_mac_add_list(&vdev->vpaths[i]); vdev 4762 drivers/net/ethernet/neterion/vxge/vxge-main.c struct vxgedev *vdev; vdev 4769 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev = netdev_priv(hldev->ndev); vdev 4771 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_debug_entryexit(vdev->level_trace, "%s:%d", __func__, __LINE__); vdev 4772 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_debug_init(vdev->level_trace, "%s : removing PCI device...", vdev 4775 drivers/net/ethernet/neterion/vxge/vxge-main.c for (i = 0; i < vdev->no_of_vpath; i++) vdev 4776 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_free_mac_add_list(&vdev->vpaths[i]); vdev 4781 drivers/net/ethernet/neterion/vxge/vxge-main.c iounmap(vdev->bar0); vdev 4787 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_debug_init(vdev->level_trace, "%s:%d Device unregistered", vdev 4789 drivers/net/ethernet/neterion/vxge/vxge-main.c vxge_debug_entryexit(vdev->level_trace, "%s:%d Exiting...", __func__, vdev 310 drivers/net/ethernet/neterion/vxge/vxge-main.h struct vxgedev *vdev; vdev 323 drivers/net/ethernet/neterion/vxge/vxge-main.h #define VXGE_COPY_DEBUG_INFO_TO_LL(vdev, err, trace) { \ vdev 324 drivers/net/ethernet/neterion/vxge/vxge-main.h for (i = 0; i < vdev->no_of_vpath; i++) { \ vdev 325 drivers/net/ethernet/neterion/vxge/vxge-main.h vdev->vpaths[i].level_err = err; \ vdev 326 drivers/net/ethernet/neterion/vxge/vxge-main.h vdev->vpaths[i].level_trace = trace; \ vdev 328 drivers/net/ethernet/neterion/vxge/vxge-main.h vdev->level_err = err; \ vdev 329 drivers/net/ethernet/neterion/vxge/vxge-main.h vdev->level_trace = trace; \ vdev 428 drivers/net/ethernet/neterion/vxge/vxge-main.h int vxge_fw_upgrade(struct vxgedev *vdev, char *fw_name, int override); vdev 502 drivers/net/ethernet/neterion/vxge/vxge-main.h #define VXGE_DEVICE_DEBUG_LEVEL_SET(level, mask, vdev) {\ vdev 503 drivers/net/ethernet/neterion/vxge/vxge-main.h vxge_hw_device_debug_set((struct __vxge_hw_device *)vdev->devh, \ vdev 505 drivers/net/ethernet/neterion/vxge/vxge-main.h VXGE_COPY_DEBUG_INFO_TO_LL(vdev, \ vdev 507 drivers/net/ethernet/neterion/vxge/vxge-main.h vdev->devh), \ vdev 509 drivers/net/ethernet/neterion/vxge/vxge-main.h vdev->devh));\ vdev 227 drivers/net/ethernet/sun/ldmvsw.c struct vio_dev *vdev, vdev 259 drivers/net/ethernet/sun/ldmvsw.c SET_NETDEV_DEV(dev, &vdev->dev); vdev 279 drivers/net/ethernet/sun/ldmvsw.c static int vsw_port_probe(struct vio_dev *vdev, const struct vio_device_id *id) vdev 293 drivers/net/ethernet/sun/ldmvsw.c rmac = mdesc_get_property(hp, vdev->mp, remote_macaddr_prop, &len); vdev 301 drivers/net/ethernet/sun/ldmvsw.c port_id = mdesc_get_property(hp, vdev->mp, id_prop, NULL); vdev 310 drivers/net/ethernet/sun/ldmvsw.c vp = vsw_get_vnet(hp, vdev->mp, &handle); vdev 320 drivers/net/ethernet/sun/ldmvsw.c dev = vsw_alloc_netdev(vsw_port_hwaddr, vdev, handle, *port_id); vdev 348 drivers/net/ethernet/sun/ldmvsw.c err = vio_driver_init(&port->vio, vdev, VDEV_NETWORK, vdev 358 drivers/net/ethernet/sun/ldmvsw.c dev_set_drvdata(&vdev->dev, port); vdev 399 drivers/net/ethernet/sun/ldmvsw.c dev_set_drvdata(&vdev->dev, NULL); vdev 407 drivers/net/ethernet/sun/ldmvsw.c static int vsw_port_remove(struct vio_dev *vdev) vdev 409 drivers/net/ethernet/sun/ldmvsw.c struct vnet_port *port = dev_get_drvdata(&vdev->dev); vdev 429 drivers/net/ethernet/sun/ldmvsw.c dev_set_drvdata(&vdev->dev, NULL); vdev 285 drivers/net/ethernet/sun/sunvnet.c struct vio_dev *vdev) vdev 323 drivers/net/ethernet/sun/sunvnet.c SET_NETDEV_DEV(dev, &vdev->dev); vdev 344 drivers/net/ethernet/sun/sunvnet.c struct vio_dev *vdev) vdev 357 drivers/net/ethernet/sun/sunvnet.c vp = vnet_new(local_mac, vdev); vdev 385 drivers/net/ethernet/sun/sunvnet.c struct vio_dev *vdev) vdev 406 drivers/net/ethernet/sun/sunvnet.c return vnet_find_or_create(local_mac, vdev); vdev 423 drivers/net/ethernet/sun/sunvnet.c static int vnet_port_probe(struct vio_dev *vdev, const struct vio_device_id *id) vdev 434 drivers/net/ethernet/sun/sunvnet.c vp = vnet_find_parent(hp, vdev->mp, vdev); vdev 441 drivers/net/ethernet/sun/sunvnet.c rmac = mdesc_get_property(hp, vdev->mp, remote_macaddr_prop, &len); vdev 458 drivers/net/ethernet/sun/sunvnet.c err = vio_driver_init(&port->vio, vdev, VDEV_NETWORK, vdev 475 drivers/net/ethernet/sun/sunvnet.c if (mdesc_get_property(hp, vdev->mp, "switch-port", NULL)) vdev 491 drivers/net/ethernet/sun/sunvnet.c dev_set_drvdata(&vdev->dev, port); vdev 513 drivers/net/ethernet/sun/sunvnet.c static int vnet_port_remove(struct vio_dev *vdev) vdev 515 drivers/net/ethernet/sun/sunvnet.c struct vnet_port *port = dev_get_drvdata(&vdev->dev); vdev 532 drivers/net/ethernet/sun/sunvnet.c dev_set_drvdata(&vdev->dev, NULL); vdev 922 drivers/net/ethernet/sun/sunvnet_common.c vio_set_intr(vio->vdev->rx_ino, HV_INTR_ENABLED); vdev 934 drivers/net/ethernet/sun/sunvnet_common.c vio_set_intr(vio->vdev->rx_ino, HV_INTR_DISABLED); vdev 202 drivers/net/ethernet/ti/cpsw.c static int cpsw_update_vlan_mc(struct net_device *vdev, int vid, void *ctx) vdev 208 drivers/net/ethernet/ti/cpsw.c if (!vdev || !(vdev->flags & IFF_UP)) vdev 212 drivers/net/ethernet/ti/cpsw.c netdev_for_each_mc_addr(ha, vdev) { vdev 267 drivers/net/ethernet/ti/cpsw.c static int cpsw_purge_vlan_mc(struct net_device *vdev, int vid, void *ctx) vdev 273 drivers/net/ethernet/ti/cpsw.c if (!vdev || !(vdev->flags & IFF_UP)) vdev 277 drivers/net/ethernet/ti/cpsw.c netdev_for_each_mc_addr(ha, vdev) { vdev 1628 drivers/net/ethernet/ti/cpsw.c static int cpsw_restore_vlans(struct net_device *vdev, int vid, void *arg) vdev 1632 drivers/net/ethernet/ti/cpsw.c if (!vdev) vdev 177 drivers/net/virtio_net.c struct virtio_device *vdev; vdev 339 drivers/net/virtio_net.c struct virtnet_info *vi = vq->vdev->priv; vdev 788 drivers/net/virtio_net.c u16 num_buf = virtio16_to_cpu(vi->vdev, hdr->num_buffers); vdev 936 drivers/net/virtio_net.c virtio16_to_cpu(vi->vdev, vdev 1049 drivers/net/virtio_net.c virtio_is_little_endian(vi->vdev))) { vdev 1246 drivers/net/virtio_net.c struct virtnet_info *vi = rvq->vdev->priv; vdev 1314 drivers/net/virtio_net.c struct virtnet_info *vi = rq->vq->vdev->priv; vdev 1402 drivers/net/virtio_net.c struct virtnet_info *vi = rq->vq->vdev->priv; vdev 1423 drivers/net/virtio_net.c struct virtnet_info *vi = rq->vq->vdev->priv; vdev 1483 drivers/net/virtio_net.c struct virtnet_info *vi = sq->vq->vdev->priv; vdev 1510 drivers/net/virtio_net.c struct virtnet_info *vi = sq->vq->vdev->priv; vdev 1528 drivers/net/virtio_net.c virtio_is_little_endian(vi->vdev), false, vdev 1639 drivers/net/virtio_net.c BUG_ON(!virtio_has_feature(vi->vdev, VIRTIO_NET_F_CTRL_VQ)); vdev 1674 drivers/net/virtio_net.c struct virtio_device *vdev = vi->vdev; vdev 1679 drivers/net/virtio_net.c if (virtio_has_feature(vi->vdev, VIRTIO_NET_F_STANDBY)) vdev 1690 drivers/net/virtio_net.c if (virtio_has_feature(vdev, VIRTIO_NET_F_CTRL_MAC_ADDR)) { vdev 1694 drivers/net/virtio_net.c dev_warn(&vdev->dev, vdev 1699 drivers/net/virtio_net.c } else if (virtio_has_feature(vdev, VIRTIO_NET_F_MAC) && vdev 1700 drivers/net/virtio_net.c !virtio_has_feature(vdev, VIRTIO_F_VERSION_1)) { vdev 1705 drivers/net/virtio_net.c virtio_cwrite8(vdev, vdev 1770 drivers/net/virtio_net.c if (!vi->has_cvq || !virtio_has_feature(vi->vdev, VIRTIO_NET_F_MQ)) vdev 1773 drivers/net/virtio_net.c vi->ctrl->mq.virtqueue_pairs = cpu_to_virtio16(vi->vdev, queue_pairs); vdev 1830 drivers/net/virtio_net.c if (!virtio_has_feature(vi->vdev, VIRTIO_NET_F_CTRL_RX)) vdev 1862 drivers/net/virtio_net.c mac_data->entries = cpu_to_virtio32(vi->vdev, uc_count); vdev 1873 drivers/net/virtio_net.c mac_data->entries = cpu_to_virtio32(vi->vdev, mc_count); vdev 1894 drivers/net/virtio_net.c vi->ctrl->vid = cpu_to_virtio16(vi->vdev, vid); vdev 1909 drivers/net/virtio_net.c vi->ctrl->vid = cpu_to_virtio16(vi->vdev, vid); vdev 2036 drivers/net/virtio_net.c struct virtio_device *vdev = vi->vdev; vdev 2040 drivers/net/virtio_net.c strlcpy(info->bus_info, virtio_bus_name(vdev), sizeof(info->bus_info)); vdev 2287 drivers/net/virtio_net.c if (!virtio_has_feature(vi->vdev, VIRTIO_NET_F_SPEED_DUPLEX)) vdev 2290 drivers/net/virtio_net.c speed = virtio_cread32(vi->vdev, offsetof(struct virtio_net_config, vdev 2294 drivers/net/virtio_net.c duplex = virtio_cread8(vi->vdev, offsetof(struct virtio_net_config, vdev 2316 drivers/net/virtio_net.c static void virtnet_freeze_down(struct virtio_device *vdev) vdev 2318 drivers/net/virtio_net.c struct virtnet_info *vi = vdev->priv; vdev 2339 drivers/net/virtio_net.c static int virtnet_restore_up(struct virtio_device *vdev) vdev 2341 drivers/net/virtio_net.c struct virtnet_info *vi = vdev->priv; vdev 2348 drivers/net/virtio_net.c virtio_device_ready(vdev); vdev 2371 drivers/net/virtio_net.c vi->ctrl->offloads = cpu_to_virtio64(vi->vdev, offloads); vdev 2413 drivers/net/virtio_net.c if (!virtio_has_feature(vi->vdev, VIRTIO_NET_F_CTRL_GUEST_OFFLOADS) vdev 2414 drivers/net/virtio_net.c && (virtio_has_feature(vi->vdev, VIRTIO_NET_F_GUEST_TSO4) || vdev 2415 drivers/net/virtio_net.c virtio_has_feature(vi->vdev, VIRTIO_NET_F_GUEST_TSO6) || vdev 2416 drivers/net/virtio_net.c virtio_has_feature(vi->vdev, VIRTIO_NET_F_GUEST_ECN) || vdev 2417 drivers/net/virtio_net.c virtio_has_feature(vi->vdev, VIRTIO_NET_F_GUEST_UFO) || vdev 2418 drivers/net/virtio_net.c virtio_has_feature(vi->vdev, VIRTIO_NET_F_GUEST_CSUM))) { vdev 2551 drivers/net/virtio_net.c if (!virtio_has_feature(vi->vdev, VIRTIO_NET_F_STANDBY)) vdev 2609 drivers/net/virtio_net.c if (virtio_cread_feature(vi->vdev, VIRTIO_NET_F_STATUS, vdev 2636 drivers/net/virtio_net.c static void virtnet_config_changed(struct virtio_device *vdev) vdev 2638 drivers/net/virtio_net.c struct virtnet_info *vi = vdev->priv; vdev 2726 drivers/net/virtio_net.c struct virtio_device *vdev = vi->vdev; vdev 2730 drivers/net/virtio_net.c vdev->config->del_vqs(vdev); vdev 2765 drivers/net/virtio_net.c virtio_has_feature(vi->vdev, VIRTIO_NET_F_CTRL_VQ); vdev 2803 drivers/net/virtio_net.c ret = vi->vdev->config->find_vqs(vi->vdev, total_vqs, vqs, callbacks, vdev 2810 drivers/net/virtio_net.c if (virtio_has_feature(vi->vdev, VIRTIO_NET_F_CTRL_VLAN)) vdev 2931 drivers/net/virtio_net.c static bool virtnet_fail_on_feature(struct virtio_device *vdev, vdev 2935 drivers/net/virtio_net.c if (!virtio_has_feature(vdev, fbit)) vdev 2938 drivers/net/virtio_net.c dev_err(&vdev->dev, "device advertises feature %s but not %s", vdev 2944 drivers/net/virtio_net.c #define VIRTNET_FAIL_ON(vdev, fbit, dbit) \ vdev 2945 drivers/net/virtio_net.c virtnet_fail_on_feature(vdev, fbit, #fbit, dbit) vdev 2947 drivers/net/virtio_net.c static bool virtnet_validate_features(struct virtio_device *vdev) vdev 2949 drivers/net/virtio_net.c if (!virtio_has_feature(vdev, VIRTIO_NET_F_CTRL_VQ) && vdev 2950 drivers/net/virtio_net.c (VIRTNET_FAIL_ON(vdev, VIRTIO_NET_F_CTRL_RX, vdev 2952 drivers/net/virtio_net.c VIRTNET_FAIL_ON(vdev, VIRTIO_NET_F_CTRL_VLAN, vdev 2954 drivers/net/virtio_net.c VIRTNET_FAIL_ON(vdev, VIRTIO_NET_F_GUEST_ANNOUNCE, vdev 2956 drivers/net/virtio_net.c VIRTNET_FAIL_ON(vdev, VIRTIO_NET_F_MQ, "VIRTIO_NET_F_CTRL_VQ") || vdev 2957 drivers/net/virtio_net.c VIRTNET_FAIL_ON(vdev, VIRTIO_NET_F_CTRL_MAC_ADDR, vdev 2968 drivers/net/virtio_net.c static int virtnet_validate(struct virtio_device *vdev) vdev 2970 drivers/net/virtio_net.c if (!vdev->config->get) { vdev 2971 drivers/net/virtio_net.c dev_err(&vdev->dev, "%s failure: config access disabled\n", vdev 2976 drivers/net/virtio_net.c if (!virtnet_validate_features(vdev)) vdev 2979 drivers/net/virtio_net.c if (virtio_has_feature(vdev, VIRTIO_NET_F_MTU)) { vdev 2980 drivers/net/virtio_net.c int mtu = virtio_cread16(vdev, vdev 2984 drivers/net/virtio_net.c __virtio_clear_bit(vdev, VIRTIO_NET_F_MTU); vdev 2990 drivers/net/virtio_net.c static int virtnet_probe(struct virtio_device *vdev) vdev 2999 drivers/net/virtio_net.c err = virtio_cread_feature(vdev, VIRTIO_NET_F_MQ, vdev 3006 drivers/net/virtio_net.c !virtio_has_feature(vdev, VIRTIO_NET_F_CTRL_VQ)) vdev 3020 drivers/net/virtio_net.c SET_NETDEV_DEV(dev, &vdev->dev); vdev 3023 drivers/net/virtio_net.c if (virtio_has_feature(vdev, VIRTIO_NET_F_CSUM)) { vdev 3029 drivers/net/virtio_net.c if (virtio_has_feature(vdev, VIRTIO_NET_F_GSO)) { vdev 3034 drivers/net/virtio_net.c if (virtio_has_feature(vdev, VIRTIO_NET_F_HOST_TSO4)) vdev 3036 drivers/net/virtio_net.c if (virtio_has_feature(vdev, VIRTIO_NET_F_HOST_TSO6)) vdev 3038 drivers/net/virtio_net.c if (virtio_has_feature(vdev, VIRTIO_NET_F_HOST_ECN)) vdev 3047 drivers/net/virtio_net.c if (virtio_has_feature(vdev, VIRTIO_NET_F_GUEST_CSUM)) vdev 3049 drivers/net/virtio_net.c if (virtio_has_feature(vdev, VIRTIO_NET_F_GUEST_TSO4) || vdev 3050 drivers/net/virtio_net.c virtio_has_feature(vdev, VIRTIO_NET_F_GUEST_TSO6)) vdev 3052 drivers/net/virtio_net.c if (virtio_has_feature(vdev, VIRTIO_NET_F_CTRL_GUEST_OFFLOADS)) vdev 3062 drivers/net/virtio_net.c if (virtio_has_feature(vdev, VIRTIO_NET_F_MAC)) vdev 3063 drivers/net/virtio_net.c virtio_cread_bytes(vdev, vdev 3072 drivers/net/virtio_net.c vi->vdev = vdev; vdev 3073 drivers/net/virtio_net.c vdev->priv = vi; vdev 3078 drivers/net/virtio_net.c if (virtio_has_feature(vdev, VIRTIO_NET_F_GUEST_TSO4) || vdev 3079 drivers/net/virtio_net.c virtio_has_feature(vdev, VIRTIO_NET_F_GUEST_TSO6) || vdev 3080 drivers/net/virtio_net.c virtio_has_feature(vdev, VIRTIO_NET_F_GUEST_ECN) || vdev 3081 drivers/net/virtio_net.c virtio_has_feature(vdev, VIRTIO_NET_F_GUEST_UFO)) vdev 3084 drivers/net/virtio_net.c if (virtio_has_feature(vdev, VIRTIO_NET_F_MRG_RXBUF)) vdev 3087 drivers/net/virtio_net.c if (virtio_has_feature(vdev, VIRTIO_NET_F_MRG_RXBUF) || vdev 3088 drivers/net/virtio_net.c virtio_has_feature(vdev, VIRTIO_F_VERSION_1)) vdev 3093 drivers/net/virtio_net.c if (virtio_has_feature(vdev, VIRTIO_F_ANY_LAYOUT) || vdev 3094 drivers/net/virtio_net.c virtio_has_feature(vdev, VIRTIO_F_VERSION_1)) vdev 3097 drivers/net/virtio_net.c if (virtio_has_feature(vdev, VIRTIO_NET_F_CTRL_VQ)) vdev 3100 drivers/net/virtio_net.c if (virtio_has_feature(vdev, VIRTIO_NET_F_MTU)) { vdev 3101 drivers/net/virtio_net.c mtu = virtio_cread16(vdev, vdev 3108 drivers/net/virtio_net.c dev_err(&vdev->dev, vdev 3146 drivers/net/virtio_net.c if (virtio_has_feature(vdev, VIRTIO_NET_F_STANDBY)) { vdev 3160 drivers/net/virtio_net.c virtio_device_ready(vdev); vdev 3173 drivers/net/virtio_net.c if (virtio_has_feature(vi->vdev, VIRTIO_NET_F_STATUS)) { vdev 3182 drivers/net/virtio_net.c if (virtio_has_feature(vi->vdev, guest_offloads[i])) vdev 3192 drivers/net/virtio_net.c vi->vdev->config->reset(vdev); vdev 3208 drivers/net/virtio_net.c vi->vdev->config->reset(vi->vdev); vdev 3220 drivers/net/virtio_net.c static void virtnet_remove(struct virtio_device *vdev) vdev 3222 drivers/net/virtio_net.c struct virtnet_info *vi = vdev->priv; vdev 3238 drivers/net/virtio_net.c static __maybe_unused int virtnet_freeze(struct virtio_device *vdev) vdev 3240 drivers/net/virtio_net.c struct virtnet_info *vi = vdev->priv; vdev 3243 drivers/net/virtio_net.c virtnet_freeze_down(vdev); vdev 3249 drivers/net/virtio_net.c static __maybe_unused int virtnet_restore(struct virtio_device *vdev) vdev 3251 drivers/net/virtio_net.c struct virtnet_info *vi = vdev->priv; vdev 3254 drivers/net/virtio_net.c err = virtnet_restore_up(vdev); vdev 8250 drivers/net/wireless/ath/ath10k/wmi.c ath10k_wmi_fw_vdev_stats_fill(const struct ath10k_fw_stats_vdev *vdev, vdev 8258 drivers/net/wireless/ath/ath10k/wmi.c "vdev id", vdev->vdev_id); vdev 8260 drivers/net/wireless/ath/ath10k/wmi.c "beacon snr", vdev->beacon_snr); vdev 8262 drivers/net/wireless/ath/ath10k/wmi.c "data snr", vdev->data_snr); vdev 8264 drivers/net/wireless/ath/ath10k/wmi.c "num rx frames", vdev->num_rx_frames); vdev 8266 drivers/net/wireless/ath/ath10k/wmi.c "num rts fail", vdev->num_rts_fail); vdev 8268 drivers/net/wireless/ath/ath10k/wmi.c "num rts success", vdev->num_rts_success); vdev 8270 drivers/net/wireless/ath/ath10k/wmi.c "num rx err", vdev->num_rx_err); vdev 8272 drivers/net/wireless/ath/ath10k/wmi.c "num rx discard", vdev->num_rx_discard); vdev 8274 drivers/net/wireless/ath/ath10k/wmi.c "num tx not acked", vdev->num_tx_not_acked); vdev 8276 drivers/net/wireless/ath/ath10k/wmi.c for (i = 0 ; i < ARRAY_SIZE(vdev->num_tx_frames); i++) vdev 8280 drivers/net/wireless/ath/ath10k/wmi.c vdev->num_tx_frames[i]); vdev 8282 drivers/net/wireless/ath/ath10k/wmi.c for (i = 0 ; i < ARRAY_SIZE(vdev->num_tx_frames_retries); i++) vdev 8286 drivers/net/wireless/ath/ath10k/wmi.c vdev->num_tx_frames_retries[i]); vdev 8288 drivers/net/wireless/ath/ath10k/wmi.c for (i = 0 ; i < ARRAY_SIZE(vdev->num_tx_frames_failures); i++) vdev 8292 drivers/net/wireless/ath/ath10k/wmi.c vdev->num_tx_frames_failures[i]); vdev 8294 drivers/net/wireless/ath/ath10k/wmi.c for (i = 0 ; i < ARRAY_SIZE(vdev->tx_rate_history); i++) vdev 8298 drivers/net/wireless/ath/ath10k/wmi.c vdev->tx_rate_history[i]); vdev 8300 drivers/net/wireless/ath/ath10k/wmi.c for (i = 0 ; i < ARRAY_SIZE(vdev->beacon_rssi_history); i++) vdev 8304 drivers/net/wireless/ath/ath10k/wmi.c vdev->beacon_rssi_history[i]); vdev 8353 drivers/net/wireless/ath/ath10k/wmi.c const struct ath10k_fw_stats_vdev *vdev; vdev 8380 drivers/net/wireless/ath/ath10k/wmi.c list_for_each_entry(vdev, &fw_stats->vdevs, list) { vdev 8381 drivers/net/wireless/ath/ath10k/wmi.c ath10k_wmi_fw_vdev_stats_fill(vdev, buf, &len); vdev 8411 drivers/net/wireless/ath/ath10k/wmi.c const struct ath10k_fw_stats_vdev *vdev; vdev 8439 drivers/net/wireless/ath/ath10k/wmi.c list_for_each_entry(vdev, &fw_stats->vdevs, list) { vdev 8440 drivers/net/wireless/ath/ath10k/wmi.c ath10k_wmi_fw_vdev_stats_fill(vdev, buf, &len); vdev 8486 drivers/net/wireless/ath/ath10k/wmi.c ath10k_wmi_fw_vdev_stats_extd_fill(const struct ath10k_fw_stats_vdev_extd *vdev, vdev 8494 drivers/net/wireless/ath/ath10k/wmi.c "vdev id", vdev->vdev_id); vdev 8496 drivers/net/wireless/ath/ath10k/wmi.c "ppdu aggr count", vdev->ppdu_aggr_cnt); vdev 8498 drivers/net/wireless/ath/ath10k/wmi.c "ppdu noack", vdev->ppdu_noack); vdev 8500 drivers/net/wireless/ath/ath10k/wmi.c "mpdu queued", vdev->mpdu_queued); vdev 8502 drivers/net/wireless/ath/ath10k/wmi.c "ppdu nonaggr count", vdev->ppdu_nonaggr_cnt); vdev 8504 drivers/net/wireless/ath/ath10k/wmi.c "mpdu sw requeued", vdev->mpdu_sw_requeued); vdev 8506 drivers/net/wireless/ath/ath10k/wmi.c "mpdu success retry", vdev->mpdu_suc_retry); vdev 8508 drivers/net/wireless/ath/ath10k/wmi.c "mpdu success multitry", vdev->mpdu_suc_multitry); vdev 8510 drivers/net/wireless/ath/ath10k/wmi.c "mpdu fail retry", vdev->mpdu_fail_retry); vdev 8511 drivers/net/wireless/ath/ath10k/wmi.c val = vdev->tx_ftm_suc; vdev 8516 drivers/net/wireless/ath/ath10k/wmi.c val = vdev->tx_ftm_suc_retry; vdev 8521 drivers/net/wireless/ath/ath10k/wmi.c val = vdev->tx_ftm_fail; vdev 8526 drivers/net/wireless/ath/ath10k/wmi.c val = vdev->rx_ftmr_cnt; vdev 8531 drivers/net/wireless/ath/ath10k/wmi.c val = vdev->rx_ftmr_dup_cnt; vdev 8536 drivers/net/wireless/ath/ath10k/wmi.c val = vdev->rx_iftmr_cnt; vdev 8541 drivers/net/wireless/ath/ath10k/wmi.c val = vdev->rx_iftmr_dup_cnt; vdev 8558 drivers/net/wireless/ath/ath10k/wmi.c const struct ath10k_fw_stats_vdev_extd *vdev; vdev 8612 drivers/net/wireless/ath/ath10k/wmi.c list_for_each_entry(vdev, &fw_stats->vdevs, list) { vdev 8613 drivers/net/wireless/ath/ath10k/wmi.c ath10k_wmi_fw_vdev_stats_extd_fill(vdev, buf, &len); vdev 15 drivers/nvdimm/nd_virtio.c struct virtio_pmem *vpmem = vq->vdev->priv; vdev 40 drivers/nvdimm/nd_virtio.c struct virtio_device *vdev = nd_region->provider_data; vdev 41 drivers/nvdimm/nd_virtio.c struct virtio_pmem *vpmem = vdev->priv; vdev 72 drivers/nvdimm/nd_virtio.c dev_info(&vdev->dev, "failed to send command to virtio pmem device, no free slots in the virtqueue\n"); vdev 88 drivers/nvdimm/nd_virtio.c dev_info(&vdev->dev, "failed to send command to virtio pmem device\n"); vdev 21 drivers/nvdimm/virtio_pmem.c vpmem->req_vq = virtio_find_single_vq(vpmem->vdev, vdev 32 drivers/nvdimm/virtio_pmem.c static int virtio_pmem_probe(struct virtio_device *vdev) vdev 35 drivers/nvdimm/virtio_pmem.c int nid = dev_to_node(&vdev->dev); vdev 41 drivers/nvdimm/virtio_pmem.c if (!vdev->config->get) { vdev 42 drivers/nvdimm/virtio_pmem.c dev_err(&vdev->dev, "%s failure: config access disabled\n", vdev 47 drivers/nvdimm/virtio_pmem.c vpmem = devm_kzalloc(&vdev->dev, sizeof(*vpmem), GFP_KERNEL); vdev 53 drivers/nvdimm/virtio_pmem.c vpmem->vdev = vdev; vdev 54 drivers/nvdimm/virtio_pmem.c vdev->priv = vpmem; vdev 57 drivers/nvdimm/virtio_pmem.c dev_err(&vdev->dev, "failed to initialize virtio pmem vq's\n"); vdev 61 drivers/nvdimm/virtio_pmem.c virtio_cread(vpmem->vdev, struct virtio_pmem_config, vdev 63 drivers/nvdimm/virtio_pmem.c virtio_cread(vpmem->vdev, struct virtio_pmem_config, vdev 71 drivers/nvdimm/virtio_pmem.c vpmem->nvdimm_bus = nvdimm_bus_register(&vdev->dev, vdev 74 drivers/nvdimm/virtio_pmem.c dev_err(&vdev->dev, "failed to register device with nvdimm_bus\n"); vdev 79 drivers/nvdimm/virtio_pmem.c dev_set_drvdata(&vdev->dev, vpmem->nvdimm_bus); vdev 88 drivers/nvdimm/virtio_pmem.c dev_err(&vdev->dev, "failed to create nvdimm region\n"); vdev 97 drivers/nvdimm/virtio_pmem.c vdev->config->del_vqs(vdev); vdev 102 drivers/nvdimm/virtio_pmem.c static void virtio_pmem_remove(struct virtio_device *vdev) vdev 104 drivers/nvdimm/virtio_pmem.c struct nvdimm_bus *nvdimm_bus = dev_get_drvdata(&vdev->dev); vdev 107 drivers/nvdimm/virtio_pmem.c vdev->config->del_vqs(vdev); vdev 108 drivers/nvdimm/virtio_pmem.c vdev->config->reset(vdev); vdev 33 drivers/nvdimm/virtio_pmem.h struct virtio_device *vdev; vdev 116 drivers/platform/mellanox/mlxbf-tmfifo.c struct virtio_device vdev; vdev 156 drivers/platform/mellanox/mlxbf-tmfifo.c struct mlxbf_tmfifo_vdev *vdev[MLXBF_TMFIFO_VDEV_MAX]; vdev 205 drivers/platform/mellanox/mlxbf-tmfifo.c #define mlxbf_vdev_to_tmfifo(d) container_of(d, struct mlxbf_tmfifo_vdev, vdev) vdev 218 drivers/platform/mellanox/mlxbf-tmfifo.c dma_free_coherent(tm_vdev->vdev.dev.parent, size, vdev 245 drivers/platform/mellanox/mlxbf-tmfifo.c vring->vdev_id = tm_vdev->vdev.id.device; vdev 246 drivers/platform/mellanox/mlxbf-tmfifo.c dev = &tm_vdev->vdev.dev; vdev 291 drivers/platform/mellanox/mlxbf-tmfifo.c struct virtio_device *vdev = vring->vq->vdev; vdev 294 drivers/platform/mellanox/mlxbf-tmfifo.c if (vring->next_avail == virtio16_to_cpu(vdev, vr->avail->idx)) vdev 298 drivers/platform/mellanox/mlxbf-tmfifo.c head = virtio16_to_cpu(vdev, vr->avail->ring[idx]); vdev 312 drivers/platform/mellanox/mlxbf-tmfifo.c struct virtio_device *vdev = vring->vq->vdev; vdev 315 drivers/platform/mellanox/mlxbf-tmfifo.c vr_idx = virtio16_to_cpu(vdev, vr->used->idx); vdev 317 drivers/platform/mellanox/mlxbf-tmfifo.c vr->used->ring[idx].id = cpu_to_virtio32(vdev, desc - vr->desc); vdev 318 drivers/platform/mellanox/mlxbf-tmfifo.c vr->used->ring[idx].len = cpu_to_virtio32(vdev, len); vdev 326 drivers/platform/mellanox/mlxbf-tmfifo.c vr->used->idx = cpu_to_virtio16(vdev, vr_idx + 1); vdev 334 drivers/platform/mellanox/mlxbf-tmfifo.c struct virtio_device *vdev = vring->vq->vdev; vdev 338 drivers/platform/mellanox/mlxbf-tmfifo.c len += virtio32_to_cpu(vdev, desc->len); vdev 339 drivers/platform/mellanox/mlxbf-tmfifo.c if (!(virtio16_to_cpu(vdev, desc->flags) & VRING_DESC_F_NEXT)) vdev 341 drivers/platform/mellanox/mlxbf-tmfifo.c idx = virtio16_to_cpu(vdev, desc->next); vdev 372 drivers/platform/mellanox/mlxbf-tmfifo.c struct virtio_device *vdev = vring->vq->vdev; vdev 375 drivers/platform/mellanox/mlxbf-tmfifo.c net_hdr = phys_to_virt(virtio64_to_cpu(vdev, desc->addr)); vdev 416 drivers/platform/mellanox/mlxbf-tmfifo.c struct virtio_device *vdev = &cons->vdev; vdev 421 drivers/platform/mellanox/mlxbf-tmfifo.c addr = phys_to_virt(virtio64_to_cpu(vdev, desc->addr)); vdev 422 drivers/platform/mellanox/mlxbf-tmfifo.c len = virtio32_to_cpu(vdev, desc->len); vdev 436 drivers/platform/mellanox/mlxbf-tmfifo.c if (!(virtio16_to_cpu(vdev, desc->flags) & VRING_DESC_F_NEXT)) vdev 438 drivers/platform/mellanox/mlxbf-tmfifo.c idx = virtio16_to_cpu(vdev, desc->next); vdev 508 drivers/platform/mellanox/mlxbf-tmfifo.c cons = fifo->vdev[VIRTIO_ID_CONSOLE]; vdev 563 drivers/platform/mellanox/mlxbf-tmfifo.c struct virtio_device *vdev = vring->vq->vdev; vdev 569 drivers/platform/mellanox/mlxbf-tmfifo.c addr = phys_to_virt(virtio64_to_cpu(vdev, desc->addr)); vdev 627 drivers/platform/mellanox/mlxbf-tmfifo.c config = &fifo->vdev[vdev_id]->config.net; vdev 641 drivers/platform/mellanox/mlxbf-tmfifo.c struct mlxbf_tmfifo_vdev *tm_dev2 = fifo->vdev[vdev_id]; vdev 676 drivers/platform/mellanox/mlxbf-tmfifo.c struct virtio_device *vdev; vdev 682 drivers/platform/mellanox/mlxbf-tmfifo.c vdev = &fifo->vdev[vring->vdev_id]->vdev; vdev 705 drivers/platform/mellanox/mlxbf-tmfifo.c len = virtio32_to_cpu(vdev, desc->len); vdev 722 drivers/platform/mellanox/mlxbf-tmfifo.c (virtio16_to_cpu(vdev, desc->flags) & VRING_DESC_F_NEXT)) { vdev 723 drivers/platform/mellanox/mlxbf-tmfifo.c idx = virtio16_to_cpu(vdev, desc->next); vdev 756 drivers/platform/mellanox/mlxbf-tmfifo.c if (!fifo->vdev[devid]) vdev 802 drivers/platform/mellanox/mlxbf-tmfifo.c tm_vdev = fifo->vdev[i]; vdev 856 drivers/platform/mellanox/mlxbf-tmfifo.c tm_vdev = fifo->vdev[VIRTIO_ID_CONSOLE]; vdev 874 drivers/platform/mellanox/mlxbf-tmfifo.c static u64 mlxbf_tmfifo_virtio_get_features(struct virtio_device *vdev) vdev 876 drivers/platform/mellanox/mlxbf-tmfifo.c struct mlxbf_tmfifo_vdev *tm_vdev = mlxbf_vdev_to_tmfifo(vdev); vdev 882 drivers/platform/mellanox/mlxbf-tmfifo.c static int mlxbf_tmfifo_virtio_finalize_features(struct virtio_device *vdev) vdev 884 drivers/platform/mellanox/mlxbf-tmfifo.c struct mlxbf_tmfifo_vdev *tm_vdev = mlxbf_vdev_to_tmfifo(vdev); vdev 886 drivers/platform/mellanox/mlxbf-tmfifo.c tm_vdev->features = vdev->features; vdev 892 drivers/platform/mellanox/mlxbf-tmfifo.c static void mlxbf_tmfifo_virtio_del_vqs(struct virtio_device *vdev) vdev 894 drivers/platform/mellanox/mlxbf-tmfifo.c struct mlxbf_tmfifo_vdev *tm_vdev = mlxbf_vdev_to_tmfifo(vdev); vdev 914 drivers/platform/mellanox/mlxbf-tmfifo.c static int mlxbf_tmfifo_virtio_find_vqs(struct virtio_device *vdev, vdev 922 drivers/platform/mellanox/mlxbf-tmfifo.c struct mlxbf_tmfifo_vdev *tm_vdev = mlxbf_vdev_to_tmfifo(vdev); vdev 940 drivers/platform/mellanox/mlxbf-tmfifo.c vq = vring_new_virtqueue(i, vring->num, vring->align, vdev, vdev 945 drivers/platform/mellanox/mlxbf-tmfifo.c dev_err(&vdev->dev, "vring_new_virtqueue failed\n"); vdev 958 drivers/platform/mellanox/mlxbf-tmfifo.c mlxbf_tmfifo_virtio_del_vqs(vdev); vdev 963 drivers/platform/mellanox/mlxbf-tmfifo.c static u8 mlxbf_tmfifo_virtio_get_status(struct virtio_device *vdev) vdev 965 drivers/platform/mellanox/mlxbf-tmfifo.c struct mlxbf_tmfifo_vdev *tm_vdev = mlxbf_vdev_to_tmfifo(vdev); vdev 971 drivers/platform/mellanox/mlxbf-tmfifo.c static void mlxbf_tmfifo_virtio_set_status(struct virtio_device *vdev, vdev 974 drivers/platform/mellanox/mlxbf-tmfifo.c struct mlxbf_tmfifo_vdev *tm_vdev = mlxbf_vdev_to_tmfifo(vdev); vdev 980 drivers/platform/mellanox/mlxbf-tmfifo.c static void mlxbf_tmfifo_virtio_reset(struct virtio_device *vdev) vdev 982 drivers/platform/mellanox/mlxbf-tmfifo.c struct mlxbf_tmfifo_vdev *tm_vdev = mlxbf_vdev_to_tmfifo(vdev); vdev 988 drivers/platform/mellanox/mlxbf-tmfifo.c static void mlxbf_tmfifo_virtio_get(struct virtio_device *vdev, vdev 993 drivers/platform/mellanox/mlxbf-tmfifo.c struct mlxbf_tmfifo_vdev *tm_vdev = mlxbf_vdev_to_tmfifo(vdev); vdev 1002 drivers/platform/mellanox/mlxbf-tmfifo.c static void mlxbf_tmfifo_virtio_set(struct virtio_device *vdev, vdev 1007 drivers/platform/mellanox/mlxbf-tmfifo.c struct mlxbf_tmfifo_vdev *tm_vdev = mlxbf_vdev_to_tmfifo(vdev); vdev 1017 drivers/platform/mellanox/mlxbf-tmfifo.c struct virtio_device *vdev = vdev 1019 drivers/platform/mellanox/mlxbf-tmfifo.c struct mlxbf_tmfifo_vdev *tm_vdev = mlxbf_vdev_to_tmfifo(vdev); vdev 1048 drivers/platform/mellanox/mlxbf-tmfifo.c tm_vdev = fifo->vdev[vdev_id]; vdev 1061 drivers/platform/mellanox/mlxbf-tmfifo.c tm_vdev->vdev.id.device = vdev_id; vdev 1062 drivers/platform/mellanox/mlxbf-tmfifo.c tm_vdev->vdev.config = &mlxbf_tmfifo_virtio_config_ops; vdev 1063 drivers/platform/mellanox/mlxbf-tmfifo.c tm_vdev->vdev.dev.parent = dev; vdev 1064 drivers/platform/mellanox/mlxbf-tmfifo.c tm_vdev->vdev.dev.release = tmfifo_virtio_dev_release; vdev 1080 drivers/platform/mellanox/mlxbf-tmfifo.c fifo->vdev[vdev_id] = tm_vdev; vdev 1083 drivers/platform/mellanox/mlxbf-tmfifo.c ret = register_virtio_device(&tm_vdev->vdev); vdev 1095 drivers/platform/mellanox/mlxbf-tmfifo.c fifo->vdev[vdev_id] = NULL; vdev 1097 drivers/platform/mellanox/mlxbf-tmfifo.c put_device(&tm_vdev->vdev.dev); vdev 1113 drivers/platform/mellanox/mlxbf-tmfifo.c tm_vdev = fifo->vdev[vdev_id]; vdev 1115 drivers/platform/mellanox/mlxbf-tmfifo.c unregister_virtio_device(&tm_vdev->vdev); vdev 1117 drivers/platform/mellanox/mlxbf-tmfifo.c fifo->vdev[vdev_id] = NULL; vdev 65 drivers/remoteproc/remoteproc_virtio.c static struct virtqueue *rp_find_vq(struct virtio_device *vdev, vdev 70 drivers/remoteproc/remoteproc_virtio.c struct rproc_vdev *rvdev = vdev_to_rvdev(vdev); vdev 71 drivers/remoteproc/remoteproc_virtio.c struct rproc *rproc = vdev_to_rproc(vdev); vdev 108 drivers/remoteproc/remoteproc_virtio.c vq = vring_new_virtqueue(id, len, rvring->align, vdev, false, ctx, vdev 126 drivers/remoteproc/remoteproc_virtio.c static void __rproc_virtio_del_vqs(struct virtio_device *vdev) vdev 131 drivers/remoteproc/remoteproc_virtio.c list_for_each_entry_safe(vq, n, &vdev->vqs, list) { vdev 138 drivers/remoteproc/remoteproc_virtio.c static void rproc_virtio_del_vqs(struct virtio_device *vdev) vdev 140 drivers/remoteproc/remoteproc_virtio.c __rproc_virtio_del_vqs(vdev); vdev 143 drivers/remoteproc/remoteproc_virtio.c static int rproc_virtio_find_vqs(struct virtio_device *vdev, unsigned int nvqs, vdev 158 drivers/remoteproc/remoteproc_virtio.c vqs[i] = rp_find_vq(vdev, queue_idx++, callbacks[i], names[i], vdev 169 drivers/remoteproc/remoteproc_virtio.c __rproc_virtio_del_vqs(vdev); vdev 173 drivers/remoteproc/remoteproc_virtio.c static u8 rproc_virtio_get_status(struct virtio_device *vdev) vdev 175 drivers/remoteproc/remoteproc_virtio.c struct rproc_vdev *rvdev = vdev_to_rvdev(vdev); vdev 183 drivers/remoteproc/remoteproc_virtio.c static void rproc_virtio_set_status(struct virtio_device *vdev, u8 status) vdev 185 drivers/remoteproc/remoteproc_virtio.c struct rproc_vdev *rvdev = vdev_to_rvdev(vdev); vdev 191 drivers/remoteproc/remoteproc_virtio.c dev_dbg(&vdev->dev, "status: %d\n", status); vdev 194 drivers/remoteproc/remoteproc_virtio.c static void rproc_virtio_reset(struct virtio_device *vdev) vdev 196 drivers/remoteproc/remoteproc_virtio.c struct rproc_vdev *rvdev = vdev_to_rvdev(vdev); vdev 202 drivers/remoteproc/remoteproc_virtio.c dev_dbg(&vdev->dev, "reset !\n"); vdev 206 drivers/remoteproc/remoteproc_virtio.c static u64 rproc_virtio_get_features(struct virtio_device *vdev) vdev 208 drivers/remoteproc/remoteproc_virtio.c struct rproc_vdev *rvdev = vdev_to_rvdev(vdev); vdev 216 drivers/remoteproc/remoteproc_virtio.c static void rproc_transport_features(struct virtio_device *vdev) vdev 223 drivers/remoteproc/remoteproc_virtio.c __virtio_clear_bit(vdev, VIRTIO_F_RING_PACKED); vdev 226 drivers/remoteproc/remoteproc_virtio.c static int rproc_virtio_finalize_features(struct virtio_device *vdev) vdev 228 drivers/remoteproc/remoteproc_virtio.c struct rproc_vdev *rvdev = vdev_to_rvdev(vdev); vdev 234 drivers/remoteproc/remoteproc_virtio.c vring_transport_features(vdev); vdev 237 drivers/remoteproc/remoteproc_virtio.c rproc_transport_features(vdev); vdev 240 drivers/remoteproc/remoteproc_virtio.c BUG_ON((u32)vdev->features != vdev->features); vdev 246 drivers/remoteproc/remoteproc_virtio.c rsc->gfeatures = vdev->features; vdev 251 drivers/remoteproc/remoteproc_virtio.c static void rproc_virtio_get(struct virtio_device *vdev, unsigned int offset, vdev 254 drivers/remoteproc/remoteproc_virtio.c struct rproc_vdev *rvdev = vdev_to_rvdev(vdev); vdev 262 drivers/remoteproc/remoteproc_virtio.c dev_err(&vdev->dev, "rproc_virtio_get: access out of bounds\n"); vdev 269 drivers/remoteproc/remoteproc_virtio.c static void rproc_virtio_set(struct virtio_device *vdev, unsigned int offset, vdev 272 drivers/remoteproc/remoteproc_virtio.c struct rproc_vdev *rvdev = vdev_to_rvdev(vdev); vdev 280 drivers/remoteproc/remoteproc_virtio.c dev_err(&vdev->dev, "rproc_virtio_set: access out of bounds\n"); vdev 309 drivers/remoteproc/remoteproc_virtio.c struct virtio_device *vdev = dev_to_virtio(dev); vdev 310 drivers/remoteproc/remoteproc_virtio.c struct rproc_vdev *rvdev = vdev_to_rvdev(vdev); vdev 311 drivers/remoteproc/remoteproc_virtio.c struct rproc *rproc = vdev_to_rproc(vdev); vdev 313 drivers/remoteproc/remoteproc_virtio.c kfree(vdev); vdev 333 drivers/remoteproc/remoteproc_virtio.c struct virtio_device *vdev; vdev 393 drivers/remoteproc/remoteproc_virtio.c vdev = kzalloc(sizeof(*vdev), GFP_KERNEL); vdev 394 drivers/remoteproc/remoteproc_virtio.c if (!vdev) { vdev 398 drivers/remoteproc/remoteproc_virtio.c vdev->id.device = id, vdev 399 drivers/remoteproc/remoteproc_virtio.c vdev->config = &rproc_virtio_config_ops, vdev 400 drivers/remoteproc/remoteproc_virtio.c vdev->dev.parent = dev; vdev 401 drivers/remoteproc/remoteproc_virtio.c vdev->dev.release = rproc_virtio_dev_release; vdev 416 drivers/remoteproc/remoteproc_virtio.c ret = register_virtio_device(vdev); vdev 418 drivers/remoteproc/remoteproc_virtio.c put_device(&vdev->dev); vdev 423 drivers/remoteproc/remoteproc_virtio.c dev_info(dev, "registered %s (type %d)\n", dev_name(&vdev->dev), id); vdev 438 drivers/remoteproc/remoteproc_virtio.c struct virtio_device *vdev = dev_to_virtio(dev); vdev 440 drivers/remoteproc/remoteproc_virtio.c unregister_virtio_device(vdev); vdev 57 drivers/rpmsg/virtio_rpmsg_bus.c struct virtio_device *vdev; vdev 239 drivers/rpmsg/virtio_rpmsg_bus.c struct device *dev = rpdev ? &rpdev->dev : &vrp->vdev->dev; vdev 334 drivers/rpmsg/virtio_rpmsg_bus.c virtio_has_feature(vrp->vdev, VIRTIO_RPMSG_F_NS)) { vdev 358 drivers/rpmsg/virtio_rpmsg_bus.c virtio_has_feature(vrp->vdev, VIRTIO_RPMSG_F_NS)) { vdev 397 drivers/rpmsg/virtio_rpmsg_bus.c struct device *tmp, *dev = &vrp->vdev->dev; vdev 431 drivers/rpmsg/virtio_rpmsg_bus.c rpdev->dev.parent = &vrp->vdev->dev; vdev 768 drivers/rpmsg/virtio_rpmsg_bus.c struct virtproc_info *vrp = rvq->vdev->priv; vdev 769 drivers/rpmsg/virtio_rpmsg_bus.c struct device *dev = &rvq->vdev->dev; vdev 806 drivers/rpmsg/virtio_rpmsg_bus.c struct virtproc_info *vrp = svq->vdev->priv; vdev 808 drivers/rpmsg/virtio_rpmsg_bus.c dev_dbg(&svq->vdev->dev, "%s\n", __func__); vdev 822 drivers/rpmsg/virtio_rpmsg_bus.c struct device *dev = &vrp->vdev->dev; vdev 858 drivers/rpmsg/virtio_rpmsg_bus.c ret = rpmsg_unregister_device(&vrp->vdev->dev, &chinfo); vdev 870 drivers/rpmsg/virtio_rpmsg_bus.c static int rpmsg_probe(struct virtio_device *vdev) vdev 885 drivers/rpmsg/virtio_rpmsg_bus.c vrp->vdev = vdev; vdev 893 drivers/rpmsg/virtio_rpmsg_bus.c err = virtio_find_vqs(vdev, 2, vqs, vq_cbs, names, NULL); vdev 915 drivers/rpmsg/virtio_rpmsg_bus.c bufs_va = dma_alloc_coherent(vdev->dev.parent, vdev 923 drivers/rpmsg/virtio_rpmsg_bus.c dev_dbg(&vdev->dev, "buffers: va %pK, dma %pad\n", vdev 947 drivers/rpmsg/virtio_rpmsg_bus.c vdev->priv = vrp; vdev 950 drivers/rpmsg/virtio_rpmsg_bus.c if (virtio_has_feature(vdev, VIRTIO_RPMSG_F_NS)) { vdev 955 drivers/rpmsg/virtio_rpmsg_bus.c dev_err(&vdev->dev, "failed to create the ns ept\n"); vdev 968 drivers/rpmsg/virtio_rpmsg_bus.c virtio_device_ready(vdev); vdev 978 drivers/rpmsg/virtio_rpmsg_bus.c dev_info(&vdev->dev, "rpmsg host is online\n"); vdev 983 drivers/rpmsg/virtio_rpmsg_bus.c dma_free_coherent(vdev->dev.parent, total_buf_space, vdev 986 drivers/rpmsg/virtio_rpmsg_bus.c vdev->config->del_vqs(vrp->vdev); vdev 999 drivers/rpmsg/virtio_rpmsg_bus.c static void rpmsg_remove(struct virtio_device *vdev) vdev 1001 drivers/rpmsg/virtio_rpmsg_bus.c struct virtproc_info *vrp = vdev->priv; vdev 1005 drivers/rpmsg/virtio_rpmsg_bus.c vdev->config->reset(vdev); vdev 1007 drivers/rpmsg/virtio_rpmsg_bus.c ret = device_for_each_child(&vdev->dev, NULL, rpmsg_remove_device); vdev 1009 drivers/rpmsg/virtio_rpmsg_bus.c dev_warn(&vdev->dev, "can't remove rpmsg device: %d\n", ret); vdev 1016 drivers/rpmsg/virtio_rpmsg_bus.c vdev->config->del_vqs(vrp->vdev); vdev 1018 drivers/rpmsg/virtio_rpmsg_bus.c dma_free_coherent(vdev->dev.parent, total_buf_space, vdev 57 drivers/s390/virtio/virtio_ccw.c struct virtio_device vdev; vdev 186 drivers/s390/virtio/virtio_ccw.c static struct virtio_ccw_device *to_vc_device(struct virtio_device *vdev) vdev 188 drivers/s390/virtio/virtio_ccw.c return container_of(vdev, struct virtio_ccw_device, vdev); vdev 422 drivers/s390/virtio/virtio_ccw.c vcdev = to_vc_device(info->vq->vdev); vdev 448 drivers/s390/virtio/virtio_ccw.c struct virtio_ccw_device *vcdev = to_vc_device(vq->vdev); vdev 484 drivers/s390/virtio/virtio_ccw.c dev_warn(&vq->vdev->dev, "Error %d while deleting queue %d\n", vdev 493 drivers/s390/virtio/virtio_ccw.c static void virtio_ccw_del_vqs(struct virtio_device *vdev) vdev 497 drivers/s390/virtio/virtio_ccw.c struct virtio_ccw_device *vcdev = to_vc_device(vdev); vdev 505 drivers/s390/virtio/virtio_ccw.c list_for_each_entry_safe(vq, n, &vdev->vqs, list) vdev 511 drivers/s390/virtio/virtio_ccw.c static struct virtqueue *virtio_ccw_setup_vq(struct virtio_device *vdev, vdev 516 drivers/s390/virtio/virtio_ccw.c struct virtio_ccw_device *vcdev = to_vc_device(vdev); vdev 545 drivers/s390/virtio/virtio_ccw.c vdev, true, may_reduce, ctx, vdev 652 drivers/s390/virtio/virtio_ccw.c static int virtio_ccw_find_vqs(struct virtio_device *vdev, unsigned nvqs, vdev 659 drivers/s390/virtio/virtio_ccw.c struct virtio_ccw_device *vcdev = to_vc_device(vdev); vdev 674 drivers/s390/virtio/virtio_ccw.c vqs[i] = virtio_ccw_setup_vq(vdev, queue_idx++, callbacks[i], vdev 731 drivers/s390/virtio/virtio_ccw.c virtio_ccw_del_vqs(vdev); vdev 735 drivers/s390/virtio/virtio_ccw.c static void virtio_ccw_reset(struct virtio_device *vdev) vdev 737 drivers/s390/virtio/virtio_ccw.c struct virtio_ccw_device *vcdev = to_vc_device(vdev); vdev 756 drivers/s390/virtio/virtio_ccw.c static u64 virtio_ccw_get_features(struct virtio_device *vdev) vdev 758 drivers/s390/virtio/virtio_ccw.c struct virtio_ccw_device *vcdev = to_vc_device(vdev); vdev 806 drivers/s390/virtio/virtio_ccw.c static void ccw_transport_features(struct virtio_device *vdev) vdev 813 drivers/s390/virtio/virtio_ccw.c static int virtio_ccw_finalize_features(struct virtio_device *vdev) vdev 815 drivers/s390/virtio/virtio_ccw.c struct virtio_ccw_device *vcdev = to_vc_device(vdev); vdev 821 drivers/s390/virtio/virtio_ccw.c !__virtio_test_bit(vdev, VIRTIO_F_VERSION_1)) { vdev 822 drivers/s390/virtio/virtio_ccw.c dev_err(&vdev->dev, "virtio: device uses revision 1 " vdev 837 drivers/s390/virtio/virtio_ccw.c vring_transport_features(vdev); vdev 840 drivers/s390/virtio/virtio_ccw.c ccw_transport_features(vdev); vdev 843 drivers/s390/virtio/virtio_ccw.c features->features = cpu_to_le32((u32)vdev->features); vdev 857 drivers/s390/virtio/virtio_ccw.c features->features = cpu_to_le32(vdev->features >> 32); vdev 872 drivers/s390/virtio/virtio_ccw.c static void virtio_ccw_get_config(struct virtio_device *vdev, vdev 875 drivers/s390/virtio/virtio_ccw.c struct virtio_ccw_device *vcdev = to_vc_device(vdev); vdev 912 drivers/s390/virtio/virtio_ccw.c static void virtio_ccw_set_config(struct virtio_device *vdev, vdev 916 drivers/s390/virtio/virtio_ccw.c struct virtio_ccw_device *vcdev = to_vc_device(vdev); vdev 932 drivers/s390/virtio/virtio_ccw.c virtio_ccw_get_config(vdev, 0, NULL, offset); vdev 949 drivers/s390/virtio/virtio_ccw.c static u8 virtio_ccw_get_status(struct virtio_device *vdev) vdev 951 drivers/s390/virtio/virtio_ccw.c struct virtio_ccw_device *vcdev = to_vc_device(vdev); vdev 978 drivers/s390/virtio/virtio_ccw.c static void virtio_ccw_set_status(struct virtio_device *vdev, u8 status) vdev 980 drivers/s390/virtio/virtio_ccw.c struct virtio_ccw_device *vcdev = to_vc_device(vdev); vdev 1002 drivers/s390/virtio/virtio_ccw.c static const char *virtio_ccw_bus_name(struct virtio_device *vdev) vdev 1004 drivers/s390/virtio/virtio_ccw.c struct virtio_ccw_device *vcdev = to_vc_device(vdev); vdev 1140 drivers/s390/virtio/virtio_ccw.c virtio_config_changed(&vcdev->vdev); vdev 1210 drivers/s390/virtio/virtio_ccw.c virtio_break_device(&vcdev->vdev); vdev 1211 drivers/s390/virtio/virtio_ccw.c unregister_virtio_device(&vcdev->vdev); vdev 1227 drivers/s390/virtio/virtio_ccw.c virtio_break_device(&vcdev->vdev); vdev 1228 drivers/s390/virtio/virtio_ccw.c unregister_virtio_device(&vcdev->vdev); vdev 1293 drivers/s390/virtio/virtio_ccw.c vcdev->vdev.dev.parent = &cdev->dev; vdev 1304 drivers/s390/virtio/virtio_ccw.c vcdev->vdev.dev.release = virtio_ccw_release_dev; vdev 1305 drivers/s390/virtio/virtio_ccw.c vcdev->vdev.config = &virtio_ccw_config_ops; vdev 1314 drivers/s390/virtio/virtio_ccw.c vcdev->vdev.id.vendor = cdev->id.cu_type; vdev 1315 drivers/s390/virtio/virtio_ccw.c vcdev->vdev.id.device = cdev->id.cu_model; vdev 1321 drivers/s390/virtio/virtio_ccw.c ret = register_virtio_device(&vcdev->vdev); vdev 1332 drivers/s390/virtio/virtio_ccw.c put_device(&vcdev->vdev.dev); vdev 1380 drivers/s390/virtio/virtio_ccw.c return virtio_device_freeze(&vcdev->vdev); vdev 1392 drivers/s390/virtio/virtio_ccw.c return virtio_device_restore(&vcdev->vdev); vdev 935 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c if (chba->vdev && vdev 936 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c chba->ipv4addr != cxgb3i_get_private_ipv4addr(chba->vdev)) { vdev 937 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c cxgb3i_set_private_ipv4addr(chba->vdev, chba->ipv4addr); vdev 940 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c chba->vdev->name, &chba->ipv4addr); vdev 948 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c if (chba->vdev) vdev 949 drivers/scsi/cxgbi/cxgb3i/cxgb3i.c cxgb3i_set_private_ipv4addr(chba->vdev, 0); vdev 223 drivers/scsi/cxgbi/libcxgbi.c struct net_device *vdev = NULL; vdev 228 drivers/scsi/cxgbi/libcxgbi.c vdev = ndev; vdev 231 drivers/scsi/cxgbi/libcxgbi.c "vlan dev %s -> %s.\n", vdev->name, ndev->name); vdev 238 drivers/scsi/cxgbi/libcxgbi.c cdev->hbas[i]->vdev = vdev; vdev 256 drivers/scsi/cxgbi/libcxgbi.c struct net_device *vdev = NULL; vdev 261 drivers/scsi/cxgbi/libcxgbi.c vdev = ndev; vdev 263 drivers/scsi/cxgbi/libcxgbi.c pr_info("vlan dev %s -> %s.\n", vdev->name, ndev->name); vdev 270 drivers/scsi/cxgbi/libcxgbi.c cdev->hbas[i]->vdev = vdev; vdev 289 drivers/scsi/cxgbi/libcxgbi.c struct net_device *vdev = NULL; vdev 294 drivers/scsi/cxgbi/libcxgbi.c vdev = ndev; vdev 296 drivers/scsi/cxgbi/libcxgbi.c pr_info("vlan dev %s -> %s.\n", vdev->name, ndev->name); vdev 304 drivers/scsi/cxgbi/libcxgbi.c cdev->hbas[i]->vdev = vdev; vdev 439 drivers/scsi/cxgbi/libcxgbi.h struct net_device *vdev; /* vlan dev */ vdev 268 drivers/scsi/fnic/fnic.h struct vnic_dev *vdev; vdev 69 drivers/scsi/fnic/fnic_fcs.c fnic->link_status = vnic_dev_link_status(fnic->vdev); vdev 70 drivers/scsi/fnic/fnic_fcs.c fnic->link_down_cnt = vnic_dev_link_down_cnt(fnic->vdev); vdev 72 drivers/scsi/fnic/fnic_fcs.c new_port_speed = vnic_dev_port_speed(fnic->vdev); vdev 80 drivers/scsi/fnic/fnic_fcs.c switch (vnic_dev_port_speed(fnic->vdev)) { vdev 741 drivers/scsi/fnic/fnic_fcs.c vnic_dev_del_addr(fnic->vdev, data); vdev 744 drivers/scsi/fnic/fnic_fcs.c vnic_dev_add_addr(fnic->vdev, new); vdev 836 drivers/scsi/fnic/fnic_fcs.c struct fnic *fnic = vnic_dev_priv(rq->vdev); vdev 936 drivers/scsi/fnic/fnic_fcs.c static int fnic_rq_cmpl_handler_cont(struct vnic_dev *vdev, vdev 941 drivers/scsi/fnic/fnic_fcs.c struct fnic *fnic = vnic_dev_priv(vdev); vdev 979 drivers/scsi/fnic/fnic_fcs.c struct fnic *fnic = vnic_dev_priv(rq->vdev); vdev 1014 drivers/scsi/fnic/fnic_fcs.c struct fnic *fnic = vnic_dev_priv(rq->vdev); vdev 1259 drivers/scsi/fnic/fnic_fcs.c struct fnic *fnic = vnic_dev_priv(wq->vdev); vdev 1267 drivers/scsi/fnic/fnic_fcs.c static int fnic_wq_cmpl_handler_cont(struct vnic_dev *vdev, vdev 1272 drivers/scsi/fnic/fnic_fcs.c struct fnic *fnic = vnic_dev_priv(vdev); vdev 1302 drivers/scsi/fnic/fnic_fcs.c struct fnic *fnic = vnic_dev_priv(wq->vdev); vdev 154 drivers/scsi/fnic/fnic_isr.c switch (vnic_dev_get_intr_mode(fnic->vdev)) { vdev 177 drivers/scsi/fnic/fnic_isr.c switch (vnic_dev_get_intr_mode(fnic->vdev)) { vdev 268 drivers/scsi/fnic/fnic_isr.c vnic_dev_set_intr_mode(fnic->vdev, vdev 294 drivers/scsi/fnic/fnic_isr.c vnic_dev_set_intr_mode(fnic->vdev, VNIC_DEV_INTR_MODE_MSI); vdev 320 drivers/scsi/fnic/fnic_isr.c vnic_dev_set_intr_mode(fnic->vdev, VNIC_DEV_INTR_MODE_INTX); vdev 325 drivers/scsi/fnic/fnic_isr.c vnic_dev_set_intr_mode(fnic->vdev, VNIC_DEV_INTR_MODE_UNKNOWN); vdev 333 drivers/scsi/fnic/fnic_isr.c vnic_dev_set_intr_mode(fnic->vdev, VNIC_DEV_INTR_MODE_INTX); vdev 179 drivers/scsi/fnic/fnic_main.c u32 port_speed = vnic_dev_port_speed(fnic->vdev); vdev 219 drivers/scsi/fnic/fnic_main.c ret = vnic_dev_stats_dump(fnic->vdev, &fnic->stats); vdev 331 drivers/scsi/fnic/fnic_main.c ret = vnic_dev_stats_clear(fnic->vdev); vdev 395 drivers/scsi/fnic/fnic_main.c switch (vnic_dev_get_intr_mode(fnic->vdev)) { vdev 397 drivers/scsi/fnic/fnic_main.c err = vnic_dev_notify_set(fnic->vdev, FNIC_INTX_NOTIFY); vdev 400 drivers/scsi/fnic/fnic_main.c err = vnic_dev_notify_set(fnic->vdev, -1); vdev 403 drivers/scsi/fnic/fnic_main.c err = vnic_dev_notify_set(fnic->vdev, FNIC_MSIX_ERR_NOTIFY); vdev 409 drivers/scsi/fnic/fnic_main.c vnic_dev_get_intr_mode(fnic->vdev)); vdev 435 drivers/scsi/fnic/fnic_main.c switch (vnic_dev_get_intr_mode(fnic->vdev)) { vdev 449 drivers/scsi/fnic/fnic_main.c static int fnic_dev_wait(struct vnic_dev *vdev, vdev 461 drivers/scsi/fnic/fnic_main.c err = start(vdev, arg); vdev 473 drivers/scsi/fnic/fnic_main.c err = finished(vdev, &done); vdev 490 drivers/scsi/fnic/fnic_main.c vnic_dev_disable(fnic->vdev); vdev 556 drivers/scsi/fnic/fnic_main.c old_vlan = vnic_dev_set_default_vlan(fnic->vdev, vlan_id); vdev 647 drivers/scsi/fnic/fnic_main.c fnic->vdev = vnic_dev_register(NULL, fnic, pdev, &fnic->bar0); vdev 648 drivers/scsi/fnic/fnic_main.c if (!fnic->vdev) { vdev 656 drivers/scsi/fnic/fnic_main.c err = vnic_dev_cmd_init(fnic->vdev); vdev 664 drivers/scsi/fnic/fnic_main.c err = fnic_dev_wait(fnic->vdev, vnic_dev_open, vdev 672 drivers/scsi/fnic/fnic_main.c err = vnic_dev_init(fnic->vdev, 0); vdev 679 drivers/scsi/fnic/fnic_main.c err = vnic_dev_mac_addr(fnic->vdev, fnic->ctlr.ctl_src_addr); vdev 770 drivers/scsi/fnic/fnic_main.c vnic_dev_packet_filter(fnic->vdev, 1, 1, 0, 0, 0); vdev 771 drivers/scsi/fnic/fnic_main.c vnic_dev_add_addr(fnic->vdev, FIP_ALL_ENODE_MACS); vdev 772 drivers/scsi/fnic/fnic_main.c vnic_dev_add_addr(fnic->vdev, fnic->ctlr.ctl_src_addr); vdev 805 drivers/scsi/fnic/fnic_main.c if (vnic_dev_get_intr_mode(fnic->vdev) == VNIC_DEV_INTR_MODE_MSI) vdev 897 drivers/scsi/fnic/fnic_main.c vnic_dev_enable(fnic->vdev); vdev 914 drivers/scsi/fnic/fnic_main.c vnic_dev_notify_unset(fnic->vdev); vdev 926 drivers/scsi/fnic/fnic_main.c vnic_dev_close(fnic->vdev); vdev 929 drivers/scsi/fnic/fnic_main.c vnic_dev_unregister(fnic->vdev); vdev 959 drivers/scsi/fnic/fnic_main.c if (vnic_dev_get_intr_mode(fnic->vdev) == VNIC_DEV_INTR_MODE_MSI) vdev 1009 drivers/scsi/fnic/fnic_main.c vnic_dev_notify_unset(fnic->vdev); vdev 1013 drivers/scsi/fnic/fnic_main.c vnic_dev_close(fnic->vdev); vdev 1014 drivers/scsi/fnic/fnic_main.c vnic_dev_unregister(fnic->vdev); vdev 41 drivers/scsi/fnic/fnic_res.c err = vnic_dev_spec(fnic->vdev, \ vdev 196 drivers/scsi/fnic/fnic_res.c return vnic_dev_cmd(fnic->vdev, CMD_NIC_CFG, &a0, &a1, wait); vdev 201 drivers/scsi/fnic/fnic_res.c fnic->wq_count = vnic_dev_get_res_count(fnic->vdev, RES_TYPE_WQ); vdev 204 drivers/scsi/fnic/fnic_res.c fnic->rq_count = vnic_dev_get_res_count(fnic->vdev, RES_TYPE_RQ); vdev 205 drivers/scsi/fnic/fnic_res.c fnic->cq_count = vnic_dev_get_res_count(fnic->vdev, RES_TYPE_CQ); vdev 206 drivers/scsi/fnic/fnic_res.c fnic->intr_count = vnic_dev_get_res_count(fnic->vdev, vdev 241 drivers/scsi/fnic/fnic_res.c intr_mode = vnic_dev_get_intr_mode(fnic->vdev); vdev 256 drivers/scsi/fnic/fnic_res.c err = vnic_wq_alloc(fnic->vdev, &fnic->wq[i], i, vdev 265 drivers/scsi/fnic/fnic_res.c err = vnic_wq_copy_alloc(fnic->vdev, &fnic->wq_copy[i], vdev 275 drivers/scsi/fnic/fnic_res.c err = vnic_rq_alloc(fnic->vdev, &fnic->rq[i], i, vdev 285 drivers/scsi/fnic/fnic_res.c err = vnic_cq_alloc(fnic->vdev, vdev 296 drivers/scsi/fnic/fnic_res.c err = vnic_cq_alloc(fnic->vdev, &fnic->cq[cq_index], cq_index, vdev 307 drivers/scsi/fnic/fnic_res.c err = vnic_cq_alloc(fnic->vdev, &fnic->cq[cq_index], vdev 316 drivers/scsi/fnic/fnic_res.c err = vnic_intr_alloc(fnic->vdev, &fnic->intr[i], i); vdev 321 drivers/scsi/fnic/fnic_res.c fnic->legacy_pba = vnic_dev_get_res(fnic->vdev, vdev 427 drivers/scsi/fnic/fnic_res.c err = vnic_dev_stats_dump(fnic->vdev, &fnic->stats); vdev 435 drivers/scsi/fnic/fnic_res.c vnic_dev_stats_clear(fnic->vdev); vdev 1272 drivers/scsi/fnic/fnic_scsi.c static int fnic_fcpio_cmpl_handler(struct vnic_dev *vdev, vdev 1276 drivers/scsi/fnic/fnic_scsi.c struct fnic *fnic = vnic_dev_priv(vdev); vdev 1455 drivers/scsi/fnic/fnic_scsi.c struct fnic *fnic = vnic_dev_priv(wq->vdev); vdev 26 drivers/scsi/fnic/vnic_cq.c vnic_dev_free_desc_ring(cq->vdev, &cq->ring); vdev 31 drivers/scsi/fnic/vnic_cq.c int vnic_cq_alloc(struct vnic_dev *vdev, struct vnic_cq *cq, unsigned int index, vdev 37 drivers/scsi/fnic/vnic_cq.c cq->vdev = vdev; vdev 39 drivers/scsi/fnic/vnic_cq.c cq->ctrl = vnic_dev_get_res(vdev, RES_TYPE_CQ, index); vdev 45 drivers/scsi/fnic/vnic_cq.c err = vnic_dev_alloc_desc_ring(vdev, &cq->ring, desc_count, desc_size); vdev 63 drivers/scsi/fnic/vnic_cq.h struct vnic_dev *vdev; vdev 72 drivers/scsi/fnic/vnic_cq.h int (*q_service)(struct vnic_dev *vdev, struct cq_desc *cq_desc, vdev 88 drivers/scsi/fnic/vnic_cq.h if ((*q_service)(cq->vdev, cq_desc, type, vdev 112 drivers/scsi/fnic/vnic_cq.h int vnic_cq_alloc(struct vnic_dev *vdev, struct vnic_cq *cq, unsigned int index, vdev 25 drivers/scsi/fnic/vnic_cq_copy.h int (*q_service)(struct vnic_dev *vdev, vdev 41 drivers/scsi/fnic/vnic_cq_copy.h if ((*q_service)(cq->vdev, cq->index, desc)) vdev 73 drivers/scsi/fnic/vnic_dev.c int (*devcmd_rtn)(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd, vdev 82 drivers/scsi/fnic/vnic_dev.c void *vnic_dev_priv(struct vnic_dev *vdev) vdev 84 drivers/scsi/fnic/vnic_dev.c return vdev->priv; vdev 87 drivers/scsi/fnic/vnic_dev.c static int vnic_dev_discover_res(struct vnic_dev *vdev, vdev 154 drivers/scsi/fnic/vnic_dev.c vdev->res[type].count = count; vdev 155 drivers/scsi/fnic/vnic_dev.c vdev->res[type].vaddr = (char __iomem *)bar->vaddr + bar_offset; vdev 161 drivers/scsi/fnic/vnic_dev.c unsigned int vnic_dev_get_res_count(struct vnic_dev *vdev, vdev 164 drivers/scsi/fnic/vnic_dev.c return vdev->res[type].count; vdev 167 drivers/scsi/fnic/vnic_dev.c void __iomem *vnic_dev_get_res(struct vnic_dev *vdev, enum vnic_res_type type, vdev 170 drivers/scsi/fnic/vnic_dev.c if (!vdev->res[type].vaddr) vdev 178 drivers/scsi/fnic/vnic_dev.c return (char __iomem *)vdev->res[type].vaddr + vdev 181 drivers/scsi/fnic/vnic_dev.c return (char __iomem *)vdev->res[type].vaddr; vdev 218 drivers/scsi/fnic/vnic_dev.c int vnic_dev_alloc_desc_ring(struct vnic_dev *vdev, struct vnic_dev_ring *ring, vdev 223 drivers/scsi/fnic/vnic_dev.c ring->descs_unaligned = dma_alloc_coherent(&vdev->pdev->dev, vdev 246 drivers/scsi/fnic/vnic_dev.c void vnic_dev_free_desc_ring(struct vnic_dev *vdev, struct vnic_dev_ring *ring) vdev 249 drivers/scsi/fnic/vnic_dev.c dma_free_coherent(&vdev->pdev->dev, vdev 257 drivers/scsi/fnic/vnic_dev.c int vnic_dev_cmd1(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd, int wait) vdev 259 drivers/scsi/fnic/vnic_dev.c struct vnic_devcmd __iomem *devcmd = vdev->devcmd; vdev 271 drivers/scsi/fnic/vnic_dev.c u64 *a0 = &vdev->args[0]; vdev 272 drivers/scsi/fnic/vnic_dev.c u64 *a1 = &vdev->args[1]; vdev 319 drivers/scsi/fnic/vnic_dev.c int vnic_dev_cmd2(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd, vdev 322 drivers/scsi/fnic/vnic_dev.c struct devcmd2_controller *dc2c = vdev->devcmd2; vdev 338 drivers/scsi/fnic/vnic_dev.c pci_name(vdev->pdev), _CMD_N(cmd)); vdev 340 drivers/scsi/fnic/vnic_dev.c pci_name(vdev->pdev), fetch_index, posted); vdev 350 drivers/scsi/fnic/vnic_dev.c pci_name(vdev->pdev), _CMD_N(cmd)); vdev 352 drivers/scsi/fnic/vnic_dev.c pci_name(vdev->pdev), fetch_index, posted); vdev 363 drivers/scsi/fnic/vnic_dev.c dc2c->cmd_ring[posted].args[i] = vdev->args[i]; vdev 395 drivers/scsi/fnic/vnic_dev.c pci_name(vdev->pdev), vdev 402 drivers/scsi/fnic/vnic_dev.c vdev->args[i] = result->results[i]; vdev 408 drivers/scsi/fnic/vnic_dev.c pr_err("%s:Timed out devcmd %d\n", pci_name(vdev->pdev), _CMD_N(cmd)); vdev 414 drivers/scsi/fnic/vnic_dev.c int vnic_dev_init_devcmd1(struct vnic_dev *vdev) vdev 416 drivers/scsi/fnic/vnic_dev.c vdev->devcmd = vnic_dev_get_res(vdev, RES_TYPE_DEVCMD, 0); vdev 417 drivers/scsi/fnic/vnic_dev.c if (!vdev->devcmd) vdev 420 drivers/scsi/fnic/vnic_dev.c vdev->devcmd_rtn = &vnic_dev_cmd1; vdev 425 drivers/scsi/fnic/vnic_dev.c int vnic_dev_init_devcmd2(struct vnic_dev *vdev) vdev 430 drivers/scsi/fnic/vnic_dev.c if (vdev->devcmd2) vdev 433 drivers/scsi/fnic/vnic_dev.c vdev->devcmd2 = kzalloc(sizeof(*vdev->devcmd2), GFP_ATOMIC); vdev 434 drivers/scsi/fnic/vnic_dev.c if (!vdev->devcmd2) vdev 437 drivers/scsi/fnic/vnic_dev.c vdev->devcmd2->color = 1; vdev 438 drivers/scsi/fnic/vnic_dev.c vdev->devcmd2->result_size = DEVCMD2_RING_SIZE; vdev 439 drivers/scsi/fnic/vnic_dev.c err = vnic_wq_devcmd2_alloc(vdev, &vdev->devcmd2->wq, vdev 444 drivers/scsi/fnic/vnic_dev.c fetch_index = ioread32(&vdev->devcmd2->wq.ctrl->fetch_index); vdev 455 drivers/scsi/fnic/vnic_dev.c vnic_wq_init_start(&vdev->devcmd2->wq, 0, fetch_index, vdev 458 drivers/scsi/fnic/vnic_dev.c vnic_wq_enable(&vdev->devcmd2->wq); vdev 460 drivers/scsi/fnic/vnic_dev.c err = vnic_dev_alloc_desc_ring(vdev, &vdev->devcmd2->results_ring, vdev 465 drivers/scsi/fnic/vnic_dev.c vdev->devcmd2->result = vdev 466 drivers/scsi/fnic/vnic_dev.c (struct devcmd2_result *) vdev->devcmd2->results_ring.descs; vdev 467 drivers/scsi/fnic/vnic_dev.c vdev->devcmd2->cmd_ring = vdev 468 drivers/scsi/fnic/vnic_dev.c (struct vnic_devcmd2 *) vdev->devcmd2->wq.ring.descs; vdev 469 drivers/scsi/fnic/vnic_dev.c vdev->devcmd2->wq_ctrl = vdev->devcmd2->wq.ctrl; vdev 470 drivers/scsi/fnic/vnic_dev.c vdev->args[0] = (u64) vdev->devcmd2->results_ring.base_addr | vdev 472 drivers/scsi/fnic/vnic_dev.c vdev->args[1] = DEVCMD2_RING_SIZE; vdev 474 drivers/scsi/fnic/vnic_dev.c err = vnic_dev_cmd2(vdev, CMD_INITIALIZE_DEVCMD2, 1000); vdev 478 drivers/scsi/fnic/vnic_dev.c vdev->devcmd_rtn = &vnic_dev_cmd2; vdev 483 drivers/scsi/fnic/vnic_dev.c vnic_dev_free_desc_ring(vdev, &vdev->devcmd2->results_ring); vdev 485 drivers/scsi/fnic/vnic_dev.c vnic_wq_disable(&vdev->devcmd2->wq); vdev 486 drivers/scsi/fnic/vnic_dev.c vnic_wq_free(&vdev->devcmd2->wq); vdev 488 drivers/scsi/fnic/vnic_dev.c kfree(vdev->devcmd2); vdev 489 drivers/scsi/fnic/vnic_dev.c vdev->devcmd2 = NULL; vdev 495 drivers/scsi/fnic/vnic_dev.c void vnic_dev_deinit_devcmd2(struct vnic_dev *vdev) vdev 497 drivers/scsi/fnic/vnic_dev.c vnic_dev_free_desc_ring(vdev, &vdev->devcmd2->results_ring); vdev 498 drivers/scsi/fnic/vnic_dev.c vnic_wq_disable(&vdev->devcmd2->wq); vdev 499 drivers/scsi/fnic/vnic_dev.c vnic_wq_free(&vdev->devcmd2->wq); vdev 500 drivers/scsi/fnic/vnic_dev.c kfree(vdev->devcmd2); vdev 501 drivers/scsi/fnic/vnic_dev.c vdev->devcmd2 = NULL; vdev 502 drivers/scsi/fnic/vnic_dev.c vdev->devcmd_rtn = &vnic_dev_cmd1; vdev 506 drivers/scsi/fnic/vnic_dev.c int vnic_dev_cmd_no_proxy(struct vnic_dev *vdev, vdev 511 drivers/scsi/fnic/vnic_dev.c vdev->args[0] = *a0; vdev 512 drivers/scsi/fnic/vnic_dev.c vdev->args[1] = *a1; vdev 514 drivers/scsi/fnic/vnic_dev.c err = (*vdev->devcmd_rtn)(vdev, cmd, wait); vdev 516 drivers/scsi/fnic/vnic_dev.c *a0 = vdev->args[0]; vdev 517 drivers/scsi/fnic/vnic_dev.c *a1 = vdev->args[1]; vdev 523 drivers/scsi/fnic/vnic_dev.c int vnic_dev_cmd(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd, vdev 526 drivers/scsi/fnic/vnic_dev.c memset(vdev->args, 0, sizeof(vdev->args)); vdev 528 drivers/scsi/fnic/vnic_dev.c switch (vdev->proxy) { vdev 531 drivers/scsi/fnic/vnic_dev.c return vnic_dev_cmd_no_proxy(vdev, cmd, a0, a1, wait); vdev 536 drivers/scsi/fnic/vnic_dev.c int vnic_dev_fw_info(struct vnic_dev *vdev, vdev 543 drivers/scsi/fnic/vnic_dev.c if (!vdev->fw_info) { vdev 544 drivers/scsi/fnic/vnic_dev.c vdev->fw_info = dma_alloc_coherent(&vdev->pdev->dev, vdev 546 drivers/scsi/fnic/vnic_dev.c &vdev->fw_info_pa, GFP_KERNEL); vdev 547 drivers/scsi/fnic/vnic_dev.c if (!vdev->fw_info) vdev 550 drivers/scsi/fnic/vnic_dev.c a0 = vdev->fw_info_pa; vdev 553 drivers/scsi/fnic/vnic_dev.c err = vnic_dev_cmd(vdev, CMD_MCPU_FW_INFO, &a0, &a1, wait); vdev 556 drivers/scsi/fnic/vnic_dev.c *fw_info = vdev->fw_info; vdev 561 drivers/scsi/fnic/vnic_dev.c int vnic_dev_spec(struct vnic_dev *vdev, unsigned int offset, unsigned int size, vdev 571 drivers/scsi/fnic/vnic_dev.c err = vnic_dev_cmd(vdev, CMD_DEV_SPEC, &a0, &a1, wait); vdev 594 drivers/scsi/fnic/vnic_dev.c int vnic_dev_stats_clear(struct vnic_dev *vdev) vdev 598 drivers/scsi/fnic/vnic_dev.c return vnic_dev_cmd(vdev, CMD_STATS_CLEAR, &a0, &a1, wait); vdev 601 drivers/scsi/fnic/vnic_dev.c int vnic_dev_stats_dump(struct vnic_dev *vdev, struct vnic_stats **stats) vdev 606 drivers/scsi/fnic/vnic_dev.c if (!vdev->stats) { vdev 607 drivers/scsi/fnic/vnic_dev.c vdev->stats = dma_alloc_coherent(&vdev->pdev->dev, vdev 608 drivers/scsi/fnic/vnic_dev.c sizeof(struct vnic_stats), &vdev->stats_pa, GFP_KERNEL); vdev 609 drivers/scsi/fnic/vnic_dev.c if (!vdev->stats) vdev 613 drivers/scsi/fnic/vnic_dev.c *stats = vdev->stats; vdev 614 drivers/scsi/fnic/vnic_dev.c a0 = vdev->stats_pa; vdev 617 drivers/scsi/fnic/vnic_dev.c return vnic_dev_cmd(vdev, CMD_STATS_DUMP, &a0, &a1, wait); vdev 620 drivers/scsi/fnic/vnic_dev.c int vnic_dev_close(struct vnic_dev *vdev) vdev 624 drivers/scsi/fnic/vnic_dev.c return vnic_dev_cmd(vdev, CMD_CLOSE, &a0, &a1, wait); vdev 627 drivers/scsi/fnic/vnic_dev.c int vnic_dev_enable(struct vnic_dev *vdev) vdev 631 drivers/scsi/fnic/vnic_dev.c return vnic_dev_cmd(vdev, CMD_ENABLE, &a0, &a1, wait); vdev 634 drivers/scsi/fnic/vnic_dev.c int vnic_dev_disable(struct vnic_dev *vdev) vdev 638 drivers/scsi/fnic/vnic_dev.c return vnic_dev_cmd(vdev, CMD_DISABLE, &a0, &a1, wait); vdev 641 drivers/scsi/fnic/vnic_dev.c int vnic_dev_open(struct vnic_dev *vdev, int arg) vdev 645 drivers/scsi/fnic/vnic_dev.c return vnic_dev_cmd(vdev, CMD_OPEN, &a0, &a1, wait); vdev 648 drivers/scsi/fnic/vnic_dev.c int vnic_dev_open_done(struct vnic_dev *vdev, int *done) vdev 656 drivers/scsi/fnic/vnic_dev.c err = vnic_dev_cmd(vdev, CMD_OPEN_STATUS, &a0, &a1, wait); vdev 665 drivers/scsi/fnic/vnic_dev.c int vnic_dev_soft_reset(struct vnic_dev *vdev, int arg) vdev 669 drivers/scsi/fnic/vnic_dev.c return vnic_dev_cmd(vdev, CMD_SOFT_RESET, &a0, &a1, wait); vdev 672 drivers/scsi/fnic/vnic_dev.c int vnic_dev_soft_reset_done(struct vnic_dev *vdev, int *done) vdev 680 drivers/scsi/fnic/vnic_dev.c err = vnic_dev_cmd(vdev, CMD_SOFT_RESET_STATUS, &a0, &a1, wait); vdev 689 drivers/scsi/fnic/vnic_dev.c int vnic_dev_hang_notify(struct vnic_dev *vdev) vdev 693 drivers/scsi/fnic/vnic_dev.c return vnic_dev_cmd(vdev, CMD_HANG_NOTIFY, &a0, &a1, wait); vdev 696 drivers/scsi/fnic/vnic_dev.c int vnic_dev_mac_addr(struct vnic_dev *vdev, u8 *mac_addr) vdev 705 drivers/scsi/fnic/vnic_dev.c err = vnic_dev_cmd(vdev, CMD_MAC_ADDR, &a[0], &a[1], wait); vdev 715 drivers/scsi/fnic/vnic_dev.c void vnic_dev_packet_filter(struct vnic_dev *vdev, int directed, int multicast, vdev 728 drivers/scsi/fnic/vnic_dev.c err = vnic_dev_cmd(vdev, CMD_PACKET_FILTER, &a0, &a1, wait); vdev 733 drivers/scsi/fnic/vnic_dev.c void vnic_dev_add_addr(struct vnic_dev *vdev, u8 *addr) vdev 743 drivers/scsi/fnic/vnic_dev.c err = vnic_dev_cmd(vdev, CMD_ADDR_ADD, &a[0], &a[1], wait); vdev 748 drivers/scsi/fnic/vnic_dev.c void vnic_dev_del_addr(struct vnic_dev *vdev, u8 *addr) vdev 758 drivers/scsi/fnic/vnic_dev.c err = vnic_dev_cmd(vdev, CMD_ADDR_DEL, &a[0], &a[1], wait); vdev 763 drivers/scsi/fnic/vnic_dev.c int vnic_dev_notify_set(struct vnic_dev *vdev, u16 intr) vdev 768 drivers/scsi/fnic/vnic_dev.c if (!vdev->notify) { vdev 769 drivers/scsi/fnic/vnic_dev.c vdev->notify = dma_alloc_coherent(&vdev->pdev->dev, vdev 771 drivers/scsi/fnic/vnic_dev.c &vdev->notify_pa, GFP_KERNEL); vdev 772 drivers/scsi/fnic/vnic_dev.c if (!vdev->notify) vdev 776 drivers/scsi/fnic/vnic_dev.c a0 = vdev->notify_pa; vdev 780 drivers/scsi/fnic/vnic_dev.c return vnic_dev_cmd(vdev, CMD_NOTIFY, &a0, &a1, wait); vdev 783 drivers/scsi/fnic/vnic_dev.c void vnic_dev_notify_unset(struct vnic_dev *vdev) vdev 792 drivers/scsi/fnic/vnic_dev.c vnic_dev_cmd(vdev, CMD_NOTIFY, &a0, &a1, wait); vdev 795 drivers/scsi/fnic/vnic_dev.c static int vnic_dev_notify_ready(struct vnic_dev *vdev) vdev 802 drivers/scsi/fnic/vnic_dev.c if (!vdev->notify) vdev 807 drivers/scsi/fnic/vnic_dev.c memcpy(&vdev->notify_copy, vdev->notify, vdev 809 drivers/scsi/fnic/vnic_dev.c words = (u32 *)&vdev->notify_copy; vdev 817 drivers/scsi/fnic/vnic_dev.c int vnic_dev_init(struct vnic_dev *vdev, int arg) vdev 821 drivers/scsi/fnic/vnic_dev.c return vnic_dev_cmd(vdev, CMD_INIT, &a0, &a1, wait); vdev 824 drivers/scsi/fnic/vnic_dev.c u16 vnic_dev_set_default_vlan(struct vnic_dev *vdev, u16 new_default_vlan) vdev 830 drivers/scsi/fnic/vnic_dev.c old_vlan = vnic_dev_cmd(vdev, CMD_SET_DEFAULT_VLAN, &a0, &a1, wait); vdev 834 drivers/scsi/fnic/vnic_dev.c int vnic_dev_link_status(struct vnic_dev *vdev) vdev 836 drivers/scsi/fnic/vnic_dev.c if (vdev->linkstatus) vdev 837 drivers/scsi/fnic/vnic_dev.c return *vdev->linkstatus; vdev 839 drivers/scsi/fnic/vnic_dev.c if (!vnic_dev_notify_ready(vdev)) vdev 842 drivers/scsi/fnic/vnic_dev.c return vdev->notify_copy.link_state; vdev 845 drivers/scsi/fnic/vnic_dev.c u32 vnic_dev_port_speed(struct vnic_dev *vdev) vdev 847 drivers/scsi/fnic/vnic_dev.c if (!vnic_dev_notify_ready(vdev)) vdev 850 drivers/scsi/fnic/vnic_dev.c return vdev->notify_copy.port_speed; vdev 853 drivers/scsi/fnic/vnic_dev.c u32 vnic_dev_msg_lvl(struct vnic_dev *vdev) vdev 855 drivers/scsi/fnic/vnic_dev.c if (!vnic_dev_notify_ready(vdev)) vdev 858 drivers/scsi/fnic/vnic_dev.c return vdev->notify_copy.msglvl; vdev 861 drivers/scsi/fnic/vnic_dev.c u32 vnic_dev_mtu(struct vnic_dev *vdev) vdev 863 drivers/scsi/fnic/vnic_dev.c if (!vnic_dev_notify_ready(vdev)) vdev 866 drivers/scsi/fnic/vnic_dev.c return vdev->notify_copy.mtu; vdev 869 drivers/scsi/fnic/vnic_dev.c u32 vnic_dev_link_down_cnt(struct vnic_dev *vdev) vdev 871 drivers/scsi/fnic/vnic_dev.c if (!vnic_dev_notify_ready(vdev)) vdev 874 drivers/scsi/fnic/vnic_dev.c return vdev->notify_copy.link_down_cnt; vdev 877 drivers/scsi/fnic/vnic_dev.c void vnic_dev_set_intr_mode(struct vnic_dev *vdev, vdev 880 drivers/scsi/fnic/vnic_dev.c vdev->intr_mode = intr_mode; vdev 884 drivers/scsi/fnic/vnic_dev.c struct vnic_dev *vdev) vdev 886 drivers/scsi/fnic/vnic_dev.c return vdev->intr_mode; vdev 889 drivers/scsi/fnic/vnic_dev.c void vnic_dev_unregister(struct vnic_dev *vdev) vdev 891 drivers/scsi/fnic/vnic_dev.c if (vdev) { vdev 892 drivers/scsi/fnic/vnic_dev.c if (vdev->notify) vdev 893 drivers/scsi/fnic/vnic_dev.c dma_free_coherent(&vdev->pdev->dev, vdev 895 drivers/scsi/fnic/vnic_dev.c vdev->notify, vdev 896 drivers/scsi/fnic/vnic_dev.c vdev->notify_pa); vdev 897 drivers/scsi/fnic/vnic_dev.c if (vdev->linkstatus) vdev 898 drivers/scsi/fnic/vnic_dev.c dma_free_coherent(&vdev->pdev->dev, vdev 900 drivers/scsi/fnic/vnic_dev.c vdev->linkstatus, vdev 901 drivers/scsi/fnic/vnic_dev.c vdev->linkstatus_pa); vdev 902 drivers/scsi/fnic/vnic_dev.c if (vdev->stats) vdev 903 drivers/scsi/fnic/vnic_dev.c dma_free_coherent(&vdev->pdev->dev, vdev 905 drivers/scsi/fnic/vnic_dev.c vdev->stats, vdev->stats_pa); vdev 906 drivers/scsi/fnic/vnic_dev.c if (vdev->fw_info) vdev 907 drivers/scsi/fnic/vnic_dev.c dma_free_coherent(&vdev->pdev->dev, vdev 909 drivers/scsi/fnic/vnic_dev.c vdev->fw_info, vdev->fw_info_pa); vdev 910 drivers/scsi/fnic/vnic_dev.c if (vdev->devcmd2) vdev 911 drivers/scsi/fnic/vnic_dev.c vnic_dev_deinit_devcmd2(vdev); vdev 912 drivers/scsi/fnic/vnic_dev.c kfree(vdev); vdev 916 drivers/scsi/fnic/vnic_dev.c struct vnic_dev *vnic_dev_register(struct vnic_dev *vdev, vdev 919 drivers/scsi/fnic/vnic_dev.c if (!vdev) { vdev 920 drivers/scsi/fnic/vnic_dev.c vdev = kzalloc(sizeof(struct vnic_dev), GFP_KERNEL); vdev 921 drivers/scsi/fnic/vnic_dev.c if (!vdev) vdev 925 drivers/scsi/fnic/vnic_dev.c vdev->priv = priv; vdev 926 drivers/scsi/fnic/vnic_dev.c vdev->pdev = pdev; vdev 928 drivers/scsi/fnic/vnic_dev.c if (vnic_dev_discover_res(vdev, bar)) vdev 931 drivers/scsi/fnic/vnic_dev.c return vdev; vdev 934 drivers/scsi/fnic/vnic_dev.c vnic_dev_unregister(vdev); vdev 938 drivers/scsi/fnic/vnic_dev.c int vnic_dev_cmd_init(struct vnic_dev *vdev) vdev 943 drivers/scsi/fnic/vnic_dev.c p = vnic_dev_get_res(vdev, RES_TYPE_DEVCMD2, 0); vdev 946 drivers/scsi/fnic/vnic_dev.c err = vnic_dev_init_devcmd2(vdev); vdev 949 drivers/scsi/fnic/vnic_dev.c err = vnic_dev_init_devcmd1(vdev); vdev 112 drivers/scsi/fnic/vnic_dev.h void *vnic_dev_priv(struct vnic_dev *vdev); vdev 113 drivers/scsi/fnic/vnic_dev.h unsigned int vnic_dev_get_res_count(struct vnic_dev *vdev, vdev 115 drivers/scsi/fnic/vnic_dev.h void __iomem *vnic_dev_get_res(struct vnic_dev *vdev, enum vnic_res_type type, vdev 121 drivers/scsi/fnic/vnic_dev.h int vnic_dev_alloc_desc_ring(struct vnic_dev *vdev, struct vnic_dev_ring *ring, vdev 123 drivers/scsi/fnic/vnic_dev.h void vnic_dev_free_desc_ring(struct vnic_dev *vdev, vdev 125 drivers/scsi/fnic/vnic_dev.h int vnic_dev_cmd(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd, vdev 127 drivers/scsi/fnic/vnic_dev.h int vnic_dev_fw_info(struct vnic_dev *vdev, vdev 129 drivers/scsi/fnic/vnic_dev.h int vnic_dev_spec(struct vnic_dev *vdev, unsigned int offset, vdev 131 drivers/scsi/fnic/vnic_dev.h int vnic_dev_stats_clear(struct vnic_dev *vdev); vdev 132 drivers/scsi/fnic/vnic_dev.h int vnic_dev_cmd_init(struct vnic_dev *vdev); vdev 133 drivers/scsi/fnic/vnic_dev.h int vnic_dev_stats_dump(struct vnic_dev *vdev, struct vnic_stats **stats); vdev 134 drivers/scsi/fnic/vnic_dev.h int vnic_dev_hang_notify(struct vnic_dev *vdev); vdev 135 drivers/scsi/fnic/vnic_dev.h void vnic_dev_packet_filter(struct vnic_dev *vdev, int directed, int multicast, vdev 137 drivers/scsi/fnic/vnic_dev.h void vnic_dev_add_addr(struct vnic_dev *vdev, u8 *addr); vdev 138 drivers/scsi/fnic/vnic_dev.h void vnic_dev_del_addr(struct vnic_dev *vdev, u8 *addr); vdev 139 drivers/scsi/fnic/vnic_dev.h int vnic_dev_mac_addr(struct vnic_dev *vdev, u8 *mac_addr); vdev 140 drivers/scsi/fnic/vnic_dev.h int vnic_dev_notify_set(struct vnic_dev *vdev, u16 intr); vdev 141 drivers/scsi/fnic/vnic_dev.h void vnic_dev_notify_unset(struct vnic_dev *vdev); vdev 142 drivers/scsi/fnic/vnic_dev.h int vnic_dev_link_status(struct vnic_dev *vdev); vdev 143 drivers/scsi/fnic/vnic_dev.h u32 vnic_dev_port_speed(struct vnic_dev *vdev); vdev 144 drivers/scsi/fnic/vnic_dev.h u32 vnic_dev_msg_lvl(struct vnic_dev *vdev); vdev 145 drivers/scsi/fnic/vnic_dev.h u32 vnic_dev_mtu(struct vnic_dev *vdev); vdev 146 drivers/scsi/fnic/vnic_dev.h u32 vnic_dev_link_down_cnt(struct vnic_dev *vdev); vdev 147 drivers/scsi/fnic/vnic_dev.h int vnic_dev_close(struct vnic_dev *vdev); vdev 148 drivers/scsi/fnic/vnic_dev.h int vnic_dev_enable(struct vnic_dev *vdev); vdev 149 drivers/scsi/fnic/vnic_dev.h int vnic_dev_disable(struct vnic_dev *vdev); vdev 150 drivers/scsi/fnic/vnic_dev.h int vnic_dev_open(struct vnic_dev *vdev, int arg); vdev 151 drivers/scsi/fnic/vnic_dev.h int vnic_dev_open_done(struct vnic_dev *vdev, int *done); vdev 152 drivers/scsi/fnic/vnic_dev.h int vnic_dev_init(struct vnic_dev *vdev, int arg); vdev 153 drivers/scsi/fnic/vnic_dev.h u16 vnic_dev_set_default_vlan(struct vnic_dev *vdev, vdev 155 drivers/scsi/fnic/vnic_dev.h int vnic_dev_soft_reset(struct vnic_dev *vdev, int arg); vdev 156 drivers/scsi/fnic/vnic_dev.h int vnic_dev_soft_reset_done(struct vnic_dev *vdev, int *done); vdev 157 drivers/scsi/fnic/vnic_dev.h void vnic_dev_set_intr_mode(struct vnic_dev *vdev, vdev 159 drivers/scsi/fnic/vnic_dev.h enum vnic_dev_intr_mode vnic_dev_get_intr_mode(struct vnic_dev *vdev); vdev 160 drivers/scsi/fnic/vnic_dev.h void vnic_dev_unregister(struct vnic_dev *vdev); vdev 161 drivers/scsi/fnic/vnic_dev.h struct vnic_dev *vnic_dev_register(struct vnic_dev *vdev, vdev 32 drivers/scsi/fnic/vnic_intr.c int vnic_intr_alloc(struct vnic_dev *vdev, struct vnic_intr *intr, vdev 36 drivers/scsi/fnic/vnic_intr.c intr->vdev = vdev; vdev 38 drivers/scsi/fnic/vnic_intr.c intr->ctrl = vnic_dev_get_res(vdev, RES_TYPE_INTR_CTRL, index); vdev 64 drivers/scsi/fnic/vnic_intr.h struct vnic_dev *vdev; vdev 112 drivers/scsi/fnic/vnic_intr.h int vnic_intr_alloc(struct vnic_dev *vdev, struct vnic_intr *intr, vdev 67 drivers/scsi/fnic/vnic_rq.c struct vnic_dev *vdev; vdev 70 drivers/scsi/fnic/vnic_rq.c vdev = rq->vdev; vdev 72 drivers/scsi/fnic/vnic_rq.c vnic_dev_free_desc_ring(vdev, &rq->ring); vdev 82 drivers/scsi/fnic/vnic_rq.c int vnic_rq_alloc(struct vnic_dev *vdev, struct vnic_rq *rq, unsigned int index, vdev 88 drivers/scsi/fnic/vnic_rq.c rq->vdev = vdev; vdev 90 drivers/scsi/fnic/vnic_rq.c rq->ctrl = vnic_dev_get_res(vdev, RES_TYPE_RQ, index); vdev 98 drivers/scsi/fnic/vnic_rq.c err = vnic_dev_alloc_desc_ring(vdev, &rq->ring, desc_count, desc_size); vdev 94 drivers/scsi/fnic/vnic_rq.h struct vnic_dev *vdev; vdev 224 drivers/scsi/fnic/vnic_rq.h int vnic_rq_alloc(struct vnic_dev *vdev, struct vnic_rq *rq, unsigned int index, vdev 28 drivers/scsi/fnic/vnic_wq.c int vnic_wq_get_ctrl(struct vnic_dev *vdev, struct vnic_wq *wq, vdev 31 drivers/scsi/fnic/vnic_wq.c wq->ctrl = vnic_dev_get_res(vdev, res_type, index); vdev 40 drivers/scsi/fnic/vnic_wq.c int vnic_wq_alloc_ring(struct vnic_dev *vdev, struct vnic_wq *wq, vdev 43 drivers/scsi/fnic/vnic_wq.c return vnic_dev_alloc_desc_ring(vdev, &wq->ring, desc_count, desc_size); vdev 86 drivers/scsi/fnic/vnic_wq.c struct vnic_dev *vdev; vdev 89 drivers/scsi/fnic/vnic_wq.c vdev = wq->vdev; vdev 91 drivers/scsi/fnic/vnic_wq.c vnic_dev_free_desc_ring(vdev, &wq->ring); vdev 102 drivers/scsi/fnic/vnic_wq.c int vnic_wq_alloc(struct vnic_dev *vdev, struct vnic_wq *wq, unsigned int index, vdev 108 drivers/scsi/fnic/vnic_wq.c wq->vdev = vdev; vdev 110 drivers/scsi/fnic/vnic_wq.c wq->ctrl = vnic_dev_get_res(vdev, RES_TYPE_WQ, index); vdev 118 drivers/scsi/fnic/vnic_wq.c err = vnic_dev_alloc_desc_ring(vdev, &wq->ring, desc_count, desc_size); vdev 132 drivers/scsi/fnic/vnic_wq.c int vnic_wq_devcmd2_alloc(struct vnic_dev *vdev, struct vnic_wq *wq, vdev 138 drivers/scsi/fnic/vnic_wq.c wq->vdev = vdev; vdev 140 drivers/scsi/fnic/vnic_wq.c err = vnic_wq_get_ctrl(vdev, wq, 0, RES_TYPE_DEVCMD2); vdev 147 drivers/scsi/fnic/vnic_wq.c err = vnic_wq_alloc_ring(vdev, wq, desc_count, desc_size); vdev 89 drivers/scsi/fnic/vnic_wq.h struct vnic_dev *vdev; vdev 166 drivers/scsi/fnic/vnic_wq.h int vnic_wq_alloc(struct vnic_dev *vdev, struct vnic_wq *wq, unsigned int index, vdev 168 drivers/scsi/fnic/vnic_wq.h int vnic_wq_devcmd2_alloc(struct vnic_dev *vdev, struct vnic_wq *wq, vdev 71 drivers/scsi/fnic/vnic_wq_copy.c struct vnic_dev *vdev; vdev 73 drivers/scsi/fnic/vnic_wq_copy.c vdev = wq->vdev; vdev 74 drivers/scsi/fnic/vnic_wq_copy.c vnic_dev_free_desc_ring(vdev, &wq->ring); vdev 78 drivers/scsi/fnic/vnic_wq_copy.c int vnic_wq_copy_alloc(struct vnic_dev *vdev, struct vnic_wq_copy *wq, vdev 85 drivers/scsi/fnic/vnic_wq_copy.c wq->vdev = vdev; vdev 87 drivers/scsi/fnic/vnic_wq_copy.c wq->ctrl = vnic_dev_get_res(vdev, RES_TYPE_WQ, index); vdev 95 drivers/scsi/fnic/vnic_wq_copy.c err = vnic_dev_alloc_desc_ring(vdev, &wq->ring, desc_count, desc_size); vdev 29 drivers/scsi/fnic/vnic_wq_copy.h struct vnic_dev *vdev; vdev 119 drivers/scsi/fnic/vnic_wq_copy.h int vnic_wq_copy_alloc(struct vnic_dev *vdev, struct vnic_wq_copy *wq, vdev 605 drivers/scsi/ibmvscsi/ibmvfc.c struct vio_dev *vdev = to_vio_dev(vhost->dev); vdev 606 drivers/scsi/ibmvscsi/ibmvfc.c return plpar_hcall_norets(H_SEND_CRQ, vdev->unit_address, word1, word2); vdev 645 drivers/scsi/ibmvscsi/ibmvfc.c struct vio_dev *vdev = to_vio_dev(vhost->dev); vdev 649 drivers/scsi/ibmvscsi/ibmvfc.c free_irq(vdev->irq, vhost); vdev 654 drivers/scsi/ibmvscsi/ibmvfc.c rc = plpar_hcall_norets(H_FREE_CRQ, vdev->unit_address); vdev 673 drivers/scsi/ibmvscsi/ibmvfc.c struct vio_dev *vdev = to_vio_dev(vhost->dev); vdev 679 drivers/scsi/ibmvscsi/ibmvfc.c rc = plpar_hcall_norets(H_ENABLE_CRQ, vdev->unit_address); vdev 699 drivers/scsi/ibmvscsi/ibmvfc.c struct vio_dev *vdev = to_vio_dev(vhost->dev); vdev 706 drivers/scsi/ibmvscsi/ibmvfc.c rc = plpar_hcall_norets(H_FREE_CRQ, vdev->unit_address); vdev 718 drivers/scsi/ibmvscsi/ibmvfc.c rc = plpar_hcall_norets(H_REG_CRQ, vdev->unit_address, vdev 3174 drivers/scsi/ibmvscsi/ibmvfc.c struct vio_dev *vdev = to_vio_dev(vhost->dev); vdev 3196 drivers/scsi/ibmvscsi/ibmvfc.c vio_enable_interrupts(vdev); vdev 3198 drivers/scsi/ibmvscsi/ibmvfc.c vio_disable_interrupts(vdev); vdev 3203 drivers/scsi/ibmvscsi/ibmvfc.c vio_disable_interrupts(vdev); vdev 4507 drivers/scsi/ibmvscsi/ibmvfc.c struct vio_dev *vdev = to_vio_dev(dev); vdev 4523 drivers/scsi/ibmvscsi/ibmvfc.c retrc = rc = plpar_hcall_norets(H_REG_CRQ, vdev->unit_address, vdev 4541 drivers/scsi/ibmvscsi/ibmvfc.c if ((rc = request_irq(vdev->irq, ibmvfc_interrupt, 0, IBMVFC_NAME, vhost))) { vdev 4542 drivers/scsi/ibmvscsi/ibmvfc.c dev_err(dev, "Couldn't register irq 0x%x. rc=%d\n", vdev->irq, rc); vdev 4546 drivers/scsi/ibmvscsi/ibmvfc.c if ((rc = vio_enable_interrupts(vdev))) { vdev 4558 drivers/scsi/ibmvscsi/ibmvfc.c rc = plpar_hcall_norets(H_FREE_CRQ, vdev->unit_address); vdev 4744 drivers/scsi/ibmvscsi/ibmvfc.c static int ibmvfc_probe(struct vio_dev *vdev, const struct vio_device_id *id) vdev 4748 drivers/scsi/ibmvscsi/ibmvfc.c struct device *dev = &vdev->dev; vdev 4850 drivers/scsi/ibmvscsi/ibmvfc.c static int ibmvfc_remove(struct vio_dev *vdev) vdev 4852 drivers/scsi/ibmvscsi/ibmvfc.c struct ibmvfc_host *vhost = dev_get_drvdata(&vdev->dev); vdev 4894 drivers/scsi/ibmvscsi/ibmvfc.c struct vio_dev *vdev = to_vio_dev(dev); vdev 4897 drivers/scsi/ibmvscsi/ibmvfc.c vio_disable_interrupts(vdev); vdev 4911 drivers/scsi/ibmvscsi/ibmvfc.c static unsigned long ibmvfc_get_desired_dma(struct vio_dev *vdev) vdev 145 drivers/scsi/ibmvscsi/ibmvscsi.c struct vio_dev *vdev = to_vio_dev(hostdata->dev); vdev 146 drivers/scsi/ibmvscsi/ibmvscsi.c free_irq(vdev->irq, (void *)hostdata); vdev 151 drivers/scsi/ibmvscsi/ibmvscsi.c rc = plpar_hcall_norets(H_FREE_CRQ, vdev->unit_address); vdev 197 drivers/scsi/ibmvscsi/ibmvscsi.c struct vio_dev *vdev = to_vio_dev(hostdata->dev); vdev 204 drivers/scsi/ibmvscsi/ibmvscsi.c return plpar_hcall_norets(H_SEND_CRQ, vdev->unit_address, word1, word2); vdev 214 drivers/scsi/ibmvscsi/ibmvscsi.c struct vio_dev *vdev = to_vio_dev(hostdata->dev); vdev 226 drivers/scsi/ibmvscsi/ibmvscsi.c vio_enable_interrupts(vdev); vdev 229 drivers/scsi/ibmvscsi/ibmvscsi.c vio_disable_interrupts(vdev); vdev 288 drivers/scsi/ibmvscsi/ibmvscsi.c struct vio_dev *vdev = to_vio_dev(hostdata->dev); vdev 294 drivers/scsi/ibmvscsi/ibmvscsi.c rc = plpar_hcall_norets(H_FREE_CRQ, vdev->unit_address); vdev 305 drivers/scsi/ibmvscsi/ibmvscsi.c vdev->unit_address, vdev 331 drivers/scsi/ibmvscsi/ibmvscsi.c struct vio_dev *vdev = to_vio_dev(hostdata->dev); vdev 350 drivers/scsi/ibmvscsi/ibmvscsi.c vdev->unit_address, vdev 372 drivers/scsi/ibmvscsi/ibmvscsi.c if (request_irq(vdev->irq, vdev 376 drivers/scsi/ibmvscsi/ibmvscsi.c vdev->irq); vdev 380 drivers/scsi/ibmvscsi/ibmvscsi.c rc = vio_enable_interrupts(vdev); vdev 394 drivers/scsi/ibmvscsi/ibmvscsi.c rc = plpar_hcall_norets(H_FREE_CRQ, vdev->unit_address); vdev 416 drivers/scsi/ibmvscsi/ibmvscsi.c struct vio_dev *vdev = to_vio_dev(hostdata->dev); vdev 422 drivers/scsi/ibmvscsi/ibmvscsi.c rc = plpar_hcall_norets(H_ENABLE_CRQ, vdev->unit_address); vdev 2092 drivers/scsi/ibmvscsi/ibmvscsi.c static unsigned long ibmvscsi_get_desired_dma(struct vio_dev *vdev) vdev 2202 drivers/scsi/ibmvscsi/ibmvscsi.c static int ibmvscsi_probe(struct vio_dev *vdev, const struct vio_device_id *id) vdev 2206 drivers/scsi/ibmvscsi/ibmvscsi.c struct device *dev = &vdev->dev; vdev 2212 drivers/scsi/ibmvscsi/ibmvscsi.c dev_set_drvdata(&vdev->dev, NULL); vdev 2216 drivers/scsi/ibmvscsi/ibmvscsi.c dev_err(&vdev->dev, "couldn't allocate host data\n"); vdev 2231 drivers/scsi/ibmvscsi/ibmvscsi.c dev_err(&vdev->dev, "couldn't map persistent buffers\n"); vdev 2239 drivers/scsi/ibmvscsi/ibmvscsi.c dev_err(&vdev->dev, "couldn't initialize kthread. rc=%ld\n", vdev 2246 drivers/scsi/ibmvscsi/ibmvscsi.c dev_err(&vdev->dev, "couldn't initialize crq. rc=%d\n", rc); vdev 2250 drivers/scsi/ibmvscsi/ibmvscsi.c dev_err(&vdev->dev, "couldn't initialize event pool\n"); vdev 2298 drivers/scsi/ibmvscsi/ibmvscsi.c dev_set_drvdata(&vdev->dev, hostdata); vdev 2320 drivers/scsi/ibmvscsi/ibmvscsi.c static int ibmvscsi_remove(struct vio_dev *vdev) vdev 2322 drivers/scsi/ibmvscsi/ibmvscsi.c struct ibmvscsi_host_data *hostdata = dev_get_drvdata(&vdev->dev); vdev 2595 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c struct vio_dev *vdev = vscsi->dma_dev; vdev 2603 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c dma_window = (const __be32 *)vio_get_attribute(vdev, vdev 2614 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c prop = (const __be32 *)vio_get_attribute(vdev, "ibm,#dma-address-cells", vdev 2623 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c prop = (const __be32 *)vio_get_attribute(vdev, "ibm,#dma-size-cells", vdev 2641 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c struct vio_dev *vdev; vdev 2646 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c vdev = vscsi->dma_dev; vdev 2647 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c if (!strcmp(dev_name(&vdev->dev), name)) { vdev 3015 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c struct vio_dev *vdev = vscsi->dma_dev; vdev 3029 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c vscsi->cmd_q.crq_token = dma_map_single(&vdev->dev, vdev 3032 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c if (dma_mapping_error(&vdev->dev, vscsi->cmd_q.crq_token)) { vdev 3437 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c static int ibmvscsis_probe(struct vio_dev *vdev, vdev 3448 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c dev_err(&vdev->dev, "probe: allocation of adapter failed\n"); vdev 3452 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c vscsi->dma_dev = vdev; vdev 3453 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c vscsi->dev = vdev->dev; vdev 3459 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c dev_name(&vdev->dev)); vdev 3470 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c snprintf(vscsi->eye, sizeof(vscsi->eye), "VSCSI %s", vdev->name); vdev 3472 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c vscsi->dds.unit_id = vdev->unit_address; vdev 3486 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c rc = srp_target_alloc(&vscsi->target, &vdev->dev, vscsi->request_limit, vdev 3526 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c vscsi->map_ioba = dma_map_single(&vdev->dev, vscsi->map_buf, PAGE_SIZE, vdev 3528 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c if (dma_mapping_error(&vdev->dev, vscsi->map_ioba)) { vdev 3554 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c snprintf(wq_name, 24, "ibmvscsis%s", dev_name(&vdev->dev)); vdev 3562 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c rc = request_irq(vdev->irq, ibmvscsis_interrupt, 0, "ibmvscsis", vscsi); vdev 3571 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c dev_set_drvdata(&vdev->dev, vscsi); vdev 3578 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c dma_unmap_single(&vdev->dev, vscsi->map_ioba, PAGE_SIZE, vdev 3602 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c static int ibmvscsis_remove(struct vio_dev *vdev) vdev 3604 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c struct scsi_info *vscsi = dev_get_drvdata(&vdev->dev); vdev 3614 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c vio_disable_interrupts(vdev); vdev 3615 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c free_irq(vdev->irq, vscsi); vdev 3617 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c dma_unmap_single(&vdev->dev, vscsi->map_ioba, PAGE_SIZE, vdev 289 drivers/scsi/snic/snic.h struct vnic_dev *vdev; vdev 60 drivers/scsi/snic/snic_attrs.c snic->link_status = svnic_dev_link_status(snic->vdev); vdev 45 drivers/scsi/snic/snic_ctl.c snic->link_status = svnic_dev_link_status(snic->vdev); vdev 46 drivers/scsi/snic/snic_ctl.c snic->link_down_cnt = svnic_dev_link_down_cnt(snic->vdev); vdev 39 drivers/scsi/snic/snic_io.c struct snic *snic = svnic_dev_priv(wq->vdev); vdev 56 drivers/scsi/snic/snic_io.c snic_wq_cmpl_handler_cont(struct vnic_dev *vdev, vdev 63 drivers/scsi/snic/snic_io.c struct snic *snic = svnic_dev_priv(vdev); vdev 101 drivers/scsi/snic/snic_io.c struct snic *snic = svnic_dev_priv(wq->vdev); vdev 108 drivers/scsi/snic/snic_isr.c intr_mode = svnic_dev_get_intr_mode(snic->vdev); vdev 182 drivers/scsi/snic/snic_isr.c svnic_dev_set_intr_mode(snic->vdev, VNIC_DEV_INTR_MODE_MSIX); vdev 185 drivers/scsi/snic/snic_isr.c svnic_dev_set_intr_mode(snic->vdev, VNIC_DEV_INTR_MODE_UNKNOWN); vdev 193 drivers/scsi/snic/snic_isr.c svnic_dev_set_intr_mode(snic->vdev, VNIC_DEV_INTR_MODE_INTX); vdev 169 drivers/scsi/snic/snic_main.c intr_mode = svnic_dev_get_intr_mode(snic->vdev); vdev 172 drivers/scsi/snic/snic_main.c ret = svnic_dev_notify_set(snic->vdev, SNIC_MSIX_ERR_NOTIFY); vdev 187 drivers/scsi/snic/snic_main.c snic_dev_wait(struct vnic_dev *vdev, vdev 196 drivers/scsi/snic/snic_main.c ret = start(vdev, arg); vdev 209 drivers/scsi/snic/snic_main.c ret = finished(vdev, &done); vdev 233 drivers/scsi/snic/snic_main.c svnic_dev_disable(snic->vdev); vdev 282 drivers/scsi/snic/snic_main.c snic_vdev_open_done(struct vnic_dev *vdev, int *done) vdev 284 drivers/scsi/snic/snic_main.c struct snic *snic = svnic_dev_priv(vdev); vdev 289 drivers/scsi/snic/snic_main.c ret = svnic_dev_open_done(vdev, done); vdev 465 drivers/scsi/snic/snic_main.c snic->vdev = svnic_dev_alloc_discover(NULL, snic, pdev, &snic->bar0, 1); vdev 466 drivers/scsi/snic/snic_main.c if (!snic->vdev) { vdev 473 drivers/scsi/snic/snic_main.c ret = svnic_dev_cmd_init(snic->vdev, 0); vdev 480 drivers/scsi/snic/snic_main.c ret = snic_dev_wait(snic->vdev, svnic_dev_open, snic_vdev_open_done, 0); vdev 489 drivers/scsi/snic/snic_main.c ret = svnic_dev_init(snic->vdev, 0); vdev 624 drivers/scsi/snic/snic_main.c ret = svnic_dev_enable_wait(snic->vdev); vdev 689 drivers/scsi/snic/snic_main.c svnic_dev_disable(snic->vdev); vdev 692 drivers/scsi/snic/snic_main.c svnic_dev_notify_unset(snic->vdev); vdev 723 drivers/scsi/snic/snic_main.c svnic_dev_close(snic->vdev); vdev 726 drivers/scsi/snic/snic_main.c svnic_dev_unregister(snic->vdev); vdev 806 drivers/scsi/snic/snic_main.c svnic_dev_notify_unset(snic->vdev); vdev 810 drivers/scsi/snic/snic_main.c svnic_dev_close(snic->vdev); vdev 811 drivers/scsi/snic/snic_main.c svnic_dev_unregister(snic->vdev); vdev 40 drivers/scsi/snic/snic_res.c ret = svnic_dev_spec(snic->vdev, \ vdev 122 drivers/scsi/snic/snic_res.c snic->wq_count = svnic_dev_get_res_count(snic->vdev, RES_TYPE_WQ); vdev 124 drivers/scsi/snic/snic_res.c snic->cq_count = svnic_dev_get_res_count(snic->vdev, RES_TYPE_CQ); vdev 126 drivers/scsi/snic/snic_res.c snic->intr_count = svnic_dev_get_res_count(snic->vdev, vdev 157 drivers/scsi/snic/snic_res.c intr_mode = svnic_dev_get_intr_mode(snic->vdev); vdev 177 drivers/scsi/snic/snic_res.c ret = svnic_wq_alloc(snic->vdev, vdev 188 drivers/scsi/snic/snic_res.c ret = svnic_cq_alloc(snic->vdev, vdev 200 drivers/scsi/snic/snic_res.c ret = svnic_cq_alloc(snic->vdev, vdev 210 drivers/scsi/snic/snic_res.c ret = svnic_intr_alloc(snic->vdev, &snic->intr[i], i); vdev 261 drivers/scsi/snic/snic_res.c ret = svnic_dev_stats_dump(snic->vdev, &snic->stats); vdev 270 drivers/scsi/snic/snic_res.c svnic_dev_stats_clear(snic->vdev); vdev 1200 drivers/scsi/snic/snic_scsi.c snic_io_cmpl_handler(struct vnic_dev *vdev, vdev 1204 drivers/scsi/snic/snic_scsi.c struct snic *snic = svnic_dev_priv(vdev); vdev 26 drivers/scsi/snic/vnic_cq.c svnic_dev_free_desc_ring(cq->vdev, &cq->ring); vdev 31 drivers/scsi/snic/vnic_cq.c int svnic_cq_alloc(struct vnic_dev *vdev, struct vnic_cq *cq, vdev 37 drivers/scsi/snic/vnic_cq.c cq->vdev = vdev; vdev 39 drivers/scsi/snic/vnic_cq.c cq->ctrl = svnic_dev_get_res(vdev, RES_TYPE_CQ, index); vdev 46 drivers/scsi/snic/vnic_cq.c err = svnic_dev_alloc_desc_ring(vdev, &cq->ring, desc_count, desc_size); vdev 53 drivers/scsi/snic/vnic_cq.h struct vnic_dev *vdev; vdev 62 drivers/scsi/snic/vnic_cq.h int (*q_service)(struct vnic_dev *vdev, struct cq_desc *cq_desc, vdev 78 drivers/scsi/snic/vnic_cq.h if ((*q_service)(cq->vdev, cq_desc, type, vdev 102 drivers/scsi/snic/vnic_cq.h int svnic_cq_alloc(struct vnic_dev *vdev, struct vnic_cq *cq, vdev 25 drivers/scsi/snic/vnic_cq_fw.h int (*q_service)(struct vnic_dev *vdev, vdev 41 drivers/scsi/snic/vnic_cq_fw.h if ((*q_service)(cq->vdev, cq->index, desc)) vdev 68 drivers/scsi/snic/vnic_dev.c int (*devcmd_rtn)(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd, vdev 77 drivers/scsi/snic/vnic_dev.c void *svnic_dev_priv(struct vnic_dev *vdev) vdev 79 drivers/scsi/snic/vnic_dev.c return vdev->priv; vdev 82 drivers/scsi/snic/vnic_dev.c static int vnic_dev_discover_res(struct vnic_dev *vdev, vdev 158 drivers/scsi/snic/vnic_dev.c vdev->res[type].count = count; vdev 159 drivers/scsi/snic/vnic_dev.c vdev->res[type].vaddr = (char __iomem *)bar->vaddr + bar_offset; vdev 165 drivers/scsi/snic/vnic_dev.c unsigned int svnic_dev_get_res_count(struct vnic_dev *vdev, vdev 168 drivers/scsi/snic/vnic_dev.c return vdev->res[type].count; vdev 171 drivers/scsi/snic/vnic_dev.c void __iomem *svnic_dev_get_res(struct vnic_dev *vdev, enum vnic_res_type type, vdev 174 drivers/scsi/snic/vnic_dev.c if (!vdev->res[type].vaddr) vdev 182 drivers/scsi/snic/vnic_dev.c return (char __iomem *)vdev->res[type].vaddr + vdev 186 drivers/scsi/snic/vnic_dev.c return (char __iomem *)vdev->res[type].vaddr; vdev 223 drivers/scsi/snic/vnic_dev.c int svnic_dev_alloc_desc_ring(struct vnic_dev *vdev, struct vnic_dev_ring *ring, vdev 228 drivers/scsi/snic/vnic_dev.c ring->descs_unaligned = dma_alloc_coherent(&vdev->pdev->dev, vdev 250 drivers/scsi/snic/vnic_dev.c void svnic_dev_free_desc_ring(struct vnic_dev *vdev, struct vnic_dev_ring *ring) vdev 253 drivers/scsi/snic/vnic_dev.c dma_free_coherent(&vdev->pdev->dev, vdev 261 drivers/scsi/snic/vnic_dev.c static int _svnic_dev_cmd2(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd, vdev 264 drivers/scsi/snic/vnic_dev.c struct devcmd2_controller *dc2c = vdev->devcmd2; vdev 290 drivers/scsi/snic/vnic_dev.c pci_name(vdev->pdev), _CMD_N(cmd), fetch_idx, posted); vdev 303 drivers/scsi/snic/vnic_dev.c dc2c->cmd_ring[posted].args[i] = vdev->args[i]; vdev 343 drivers/scsi/snic/vnic_dev.c vdev->args[i] = result->results[i]; vdev 355 drivers/scsi/snic/vnic_dev.c static int svnic_dev_init_devcmd2(struct vnic_dev *vdev) vdev 362 drivers/scsi/snic/vnic_dev.c if (vdev->devcmd2) vdev 365 drivers/scsi/snic/vnic_dev.c p = svnic_dev_get_res(vdev, RES_TYPE_DEVCMD2, 0); vdev 373 drivers/scsi/snic/vnic_dev.c vdev->devcmd2 = dc2c; vdev 378 drivers/scsi/snic/vnic_dev.c ret = vnic_wq_devcmd2_alloc(vdev, vdev 398 drivers/scsi/snic/vnic_dev.c ret = svnic_dev_alloc_desc_ring(vdev, vdev 408 drivers/scsi/snic/vnic_dev.c vdev->args[0] = (u64) dc2c->results_ring.base_addr | VNIC_PADDR_TARGET; vdev 409 drivers/scsi/snic/vnic_dev.c vdev->args[1] = DEVCMD2_RING_SIZE; vdev 411 drivers/scsi/snic/vnic_dev.c ret = _svnic_dev_cmd2(vdev, CMD_INITIALIZE_DEVCMD2, VNIC_DVCMD_TMO); vdev 415 drivers/scsi/snic/vnic_dev.c vdev->devcmd_rtn = &_svnic_dev_cmd2; vdev 421 drivers/scsi/snic/vnic_dev.c svnic_dev_free_desc_ring(vdev, &dc2c->results_ring); vdev 429 drivers/scsi/snic/vnic_dev.c vdev->devcmd2 = NULL; vdev 434 drivers/scsi/snic/vnic_dev.c static void vnic_dev_deinit_devcmd2(struct vnic_dev *vdev) vdev 436 drivers/scsi/snic/vnic_dev.c struct devcmd2_controller *dc2c = vdev->devcmd2; vdev 438 drivers/scsi/snic/vnic_dev.c vdev->devcmd2 = NULL; vdev 439 drivers/scsi/snic/vnic_dev.c vdev->devcmd_rtn = NULL; vdev 441 drivers/scsi/snic/vnic_dev.c svnic_dev_free_desc_ring(vdev, &dc2c->results_ring); vdev 447 drivers/scsi/snic/vnic_dev.c int svnic_dev_cmd(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd, vdev 452 drivers/scsi/snic/vnic_dev.c memset(vdev->args, 0, sizeof(vdev->args)); vdev 453 drivers/scsi/snic/vnic_dev.c vdev->args[0] = *a0; vdev 454 drivers/scsi/snic/vnic_dev.c vdev->args[1] = *a1; vdev 456 drivers/scsi/snic/vnic_dev.c err = (*vdev->devcmd_rtn)(vdev, cmd, wait); vdev 458 drivers/scsi/snic/vnic_dev.c *a0 = vdev->args[0]; vdev 459 drivers/scsi/snic/vnic_dev.c *a1 = vdev->args[1]; vdev 464 drivers/scsi/snic/vnic_dev.c int svnic_dev_fw_info(struct vnic_dev *vdev, vdev 471 drivers/scsi/snic/vnic_dev.c if (!vdev->fw_info) { vdev 472 drivers/scsi/snic/vnic_dev.c vdev->fw_info = dma_alloc_coherent(&vdev->pdev->dev, vdev 474 drivers/scsi/snic/vnic_dev.c &vdev->fw_info_pa, GFP_KERNEL); vdev 475 drivers/scsi/snic/vnic_dev.c if (!vdev->fw_info) vdev 478 drivers/scsi/snic/vnic_dev.c a0 = vdev->fw_info_pa; vdev 481 drivers/scsi/snic/vnic_dev.c err = svnic_dev_cmd(vdev, CMD_MCPU_FW_INFO, &a0, &a1, wait); vdev 484 drivers/scsi/snic/vnic_dev.c *fw_info = vdev->fw_info; vdev 489 drivers/scsi/snic/vnic_dev.c int svnic_dev_spec(struct vnic_dev *vdev, unsigned int offset, vdev 499 drivers/scsi/snic/vnic_dev.c err = svnic_dev_cmd(vdev, CMD_DEV_SPEC, &a0, &a1, wait); vdev 522 drivers/scsi/snic/vnic_dev.c int svnic_dev_stats_clear(struct vnic_dev *vdev) vdev 527 drivers/scsi/snic/vnic_dev.c return svnic_dev_cmd(vdev, CMD_STATS_CLEAR, &a0, &a1, wait); vdev 530 drivers/scsi/snic/vnic_dev.c int svnic_dev_stats_dump(struct vnic_dev *vdev, struct vnic_stats **stats) vdev 535 drivers/scsi/snic/vnic_dev.c if (!vdev->stats) { vdev 536 drivers/scsi/snic/vnic_dev.c vdev->stats = dma_alloc_coherent(&vdev->pdev->dev, vdev 537 drivers/scsi/snic/vnic_dev.c sizeof(struct vnic_stats), &vdev->stats_pa, GFP_KERNEL); vdev 538 drivers/scsi/snic/vnic_dev.c if (!vdev->stats) vdev 542 drivers/scsi/snic/vnic_dev.c *stats = vdev->stats; vdev 543 drivers/scsi/snic/vnic_dev.c a0 = vdev->stats_pa; vdev 546 drivers/scsi/snic/vnic_dev.c return svnic_dev_cmd(vdev, CMD_STATS_DUMP, &a0, &a1, wait); vdev 549 drivers/scsi/snic/vnic_dev.c int svnic_dev_close(struct vnic_dev *vdev) vdev 554 drivers/scsi/snic/vnic_dev.c return svnic_dev_cmd(vdev, CMD_CLOSE, &a0, &a1, wait); vdev 557 drivers/scsi/snic/vnic_dev.c int svnic_dev_enable_wait(struct vnic_dev *vdev) vdev 563 drivers/scsi/snic/vnic_dev.c err = svnic_dev_cmd(vdev, CMD_ENABLE_WAIT, &a0, &a1, wait); vdev 565 drivers/scsi/snic/vnic_dev.c return svnic_dev_cmd(vdev, CMD_ENABLE, &a0, &a1, wait); vdev 570 drivers/scsi/snic/vnic_dev.c int svnic_dev_disable(struct vnic_dev *vdev) vdev 575 drivers/scsi/snic/vnic_dev.c return svnic_dev_cmd(vdev, CMD_DISABLE, &a0, &a1, wait); vdev 578 drivers/scsi/snic/vnic_dev.c int svnic_dev_open(struct vnic_dev *vdev, int arg) vdev 583 drivers/scsi/snic/vnic_dev.c return svnic_dev_cmd(vdev, CMD_OPEN, &a0, &a1, wait); vdev 586 drivers/scsi/snic/vnic_dev.c int svnic_dev_open_done(struct vnic_dev *vdev, int *done) vdev 594 drivers/scsi/snic/vnic_dev.c err = svnic_dev_cmd(vdev, CMD_OPEN_STATUS, &a0, &a1, wait); vdev 603 drivers/scsi/snic/vnic_dev.c int svnic_dev_notify_set(struct vnic_dev *vdev, u16 intr) vdev 608 drivers/scsi/snic/vnic_dev.c if (!vdev->notify) { vdev 609 drivers/scsi/snic/vnic_dev.c vdev->notify = dma_alloc_coherent(&vdev->pdev->dev, vdev 611 drivers/scsi/snic/vnic_dev.c &vdev->notify_pa, GFP_KERNEL); vdev 612 drivers/scsi/snic/vnic_dev.c if (!vdev->notify) vdev 616 drivers/scsi/snic/vnic_dev.c a0 = vdev->notify_pa; vdev 620 drivers/scsi/snic/vnic_dev.c return svnic_dev_cmd(vdev, CMD_NOTIFY, &a0, &a1, wait); vdev 623 drivers/scsi/snic/vnic_dev.c void svnic_dev_notify_unset(struct vnic_dev *vdev) vdev 632 drivers/scsi/snic/vnic_dev.c svnic_dev_cmd(vdev, CMD_NOTIFY, &a0, &a1, wait); vdev 635 drivers/scsi/snic/vnic_dev.c static int vnic_dev_notify_ready(struct vnic_dev *vdev) vdev 642 drivers/scsi/snic/vnic_dev.c if (!vdev->notify) vdev 647 drivers/scsi/snic/vnic_dev.c memcpy(&vdev->notify_copy, vdev->notify, vdev 649 drivers/scsi/snic/vnic_dev.c words = (u32 *)&vdev->notify_copy; vdev 657 drivers/scsi/snic/vnic_dev.c int svnic_dev_init(struct vnic_dev *vdev, int arg) vdev 662 drivers/scsi/snic/vnic_dev.c return svnic_dev_cmd(vdev, CMD_INIT, &a0, &a1, wait); vdev 665 drivers/scsi/snic/vnic_dev.c int svnic_dev_link_status(struct vnic_dev *vdev) vdev 667 drivers/scsi/snic/vnic_dev.c if (vdev->linkstatus) vdev 668 drivers/scsi/snic/vnic_dev.c return *vdev->linkstatus; vdev 670 drivers/scsi/snic/vnic_dev.c if (!vnic_dev_notify_ready(vdev)) vdev 673 drivers/scsi/snic/vnic_dev.c return vdev->notify_copy.link_state; vdev 676 drivers/scsi/snic/vnic_dev.c u32 svnic_dev_link_down_cnt(struct vnic_dev *vdev) vdev 678 drivers/scsi/snic/vnic_dev.c if (!vnic_dev_notify_ready(vdev)) vdev 681 drivers/scsi/snic/vnic_dev.c return vdev->notify_copy.link_down_cnt; vdev 684 drivers/scsi/snic/vnic_dev.c void svnic_dev_set_intr_mode(struct vnic_dev *vdev, vdev 687 drivers/scsi/snic/vnic_dev.c vdev->intr_mode = intr_mode; vdev 690 drivers/scsi/snic/vnic_dev.c enum vnic_dev_intr_mode svnic_dev_get_intr_mode(struct vnic_dev *vdev) vdev 692 drivers/scsi/snic/vnic_dev.c return vdev->intr_mode; vdev 695 drivers/scsi/snic/vnic_dev.c void svnic_dev_unregister(struct vnic_dev *vdev) vdev 697 drivers/scsi/snic/vnic_dev.c if (vdev) { vdev 698 drivers/scsi/snic/vnic_dev.c if (vdev->notify) vdev 699 drivers/scsi/snic/vnic_dev.c dma_free_coherent(&vdev->pdev->dev, vdev 701 drivers/scsi/snic/vnic_dev.c vdev->notify, vdev 702 drivers/scsi/snic/vnic_dev.c vdev->notify_pa); vdev 703 drivers/scsi/snic/vnic_dev.c if (vdev->linkstatus) vdev 704 drivers/scsi/snic/vnic_dev.c dma_free_coherent(&vdev->pdev->dev, vdev 706 drivers/scsi/snic/vnic_dev.c vdev->linkstatus, vdev 707 drivers/scsi/snic/vnic_dev.c vdev->linkstatus_pa); vdev 708 drivers/scsi/snic/vnic_dev.c if (vdev->stats) vdev 709 drivers/scsi/snic/vnic_dev.c dma_free_coherent(&vdev->pdev->dev, vdev 711 drivers/scsi/snic/vnic_dev.c vdev->stats, vdev->stats_pa); vdev 712 drivers/scsi/snic/vnic_dev.c if (vdev->fw_info) vdev 713 drivers/scsi/snic/vnic_dev.c dma_free_coherent(&vdev->pdev->dev, vdev 715 drivers/scsi/snic/vnic_dev.c vdev->fw_info, vdev->fw_info_pa); vdev 716 drivers/scsi/snic/vnic_dev.c if (vdev->devcmd2) vdev 717 drivers/scsi/snic/vnic_dev.c vnic_dev_deinit_devcmd2(vdev); vdev 718 drivers/scsi/snic/vnic_dev.c kfree(vdev); vdev 722 drivers/scsi/snic/vnic_dev.c struct vnic_dev *svnic_dev_alloc_discover(struct vnic_dev *vdev, vdev 728 drivers/scsi/snic/vnic_dev.c if (!vdev) { vdev 729 drivers/scsi/snic/vnic_dev.c vdev = kzalloc(sizeof(struct vnic_dev), GFP_ATOMIC); vdev 730 drivers/scsi/snic/vnic_dev.c if (!vdev) vdev 734 drivers/scsi/snic/vnic_dev.c vdev->priv = priv; vdev 735 drivers/scsi/snic/vnic_dev.c vdev->pdev = pdev; vdev 737 drivers/scsi/snic/vnic_dev.c if (vnic_dev_discover_res(vdev, bar, num_bars)) vdev 740 drivers/scsi/snic/vnic_dev.c return vdev; vdev 743 drivers/scsi/snic/vnic_dev.c svnic_dev_unregister(vdev); vdev 751 drivers/scsi/snic/vnic_dev.c int svnic_dev_cmd_init(struct vnic_dev *vdev, int fallback) vdev 756 drivers/scsi/snic/vnic_dev.c p = svnic_dev_get_res(vdev, RES_TYPE_DEVCMD2, 0); vdev 758 drivers/scsi/snic/vnic_dev.c err = svnic_dev_init_devcmd2(vdev); vdev 70 drivers/scsi/snic/vnic_dev.h void *svnic_dev_priv(struct vnic_dev *vdev); vdev 71 drivers/scsi/snic/vnic_dev.h unsigned int svnic_dev_get_res_count(struct vnic_dev *vdev, vdev 73 drivers/scsi/snic/vnic_dev.h void __iomem *svnic_dev_get_res(struct vnic_dev *vdev, enum vnic_res_type type, vdev 79 drivers/scsi/snic/vnic_dev.h int svnic_dev_alloc_desc_ring(struct vnic_dev *vdev, struct vnic_dev_ring *ring, vdev 81 drivers/scsi/snic/vnic_dev.h void svnic_dev_free_desc_ring(struct vnic_dev *vdev, vdev 83 drivers/scsi/snic/vnic_dev.h int svnic_dev_cmd(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd, vdev 85 drivers/scsi/snic/vnic_dev.h int svnic_dev_fw_info(struct vnic_dev *vdev, vdev 87 drivers/scsi/snic/vnic_dev.h int svnic_dev_spec(struct vnic_dev *vdev, unsigned int offset, vdev 89 drivers/scsi/snic/vnic_dev.h int svnic_dev_stats_clear(struct vnic_dev *vdev); vdev 90 drivers/scsi/snic/vnic_dev.h int svnic_dev_stats_dump(struct vnic_dev *vdev, struct vnic_stats **stats); vdev 91 drivers/scsi/snic/vnic_dev.h int svnic_dev_notify_set(struct vnic_dev *vdev, u16 intr); vdev 92 drivers/scsi/snic/vnic_dev.h void svnic_dev_notify_unset(struct vnic_dev *vdev); vdev 93 drivers/scsi/snic/vnic_dev.h int svnic_dev_link_status(struct vnic_dev *vdev); vdev 94 drivers/scsi/snic/vnic_dev.h u32 svnic_dev_link_down_cnt(struct vnic_dev *vdev); vdev 95 drivers/scsi/snic/vnic_dev.h int svnic_dev_close(struct vnic_dev *vdev); vdev 96 drivers/scsi/snic/vnic_dev.h int svnic_dev_enable_wait(struct vnic_dev *vdev); vdev 97 drivers/scsi/snic/vnic_dev.h int svnic_dev_disable(struct vnic_dev *vdev); vdev 98 drivers/scsi/snic/vnic_dev.h int svnic_dev_open(struct vnic_dev *vdev, int arg); vdev 99 drivers/scsi/snic/vnic_dev.h int svnic_dev_open_done(struct vnic_dev *vdev, int *done); vdev 100 drivers/scsi/snic/vnic_dev.h int svnic_dev_init(struct vnic_dev *vdev, int arg); vdev 101 drivers/scsi/snic/vnic_dev.h struct vnic_dev *svnic_dev_alloc_discover(struct vnic_dev *vdev, vdev 105 drivers/scsi/snic/vnic_dev.h void svnic_dev_set_intr_mode(struct vnic_dev *vdev, vdev 107 drivers/scsi/snic/vnic_dev.h enum vnic_dev_intr_mode svnic_dev_get_intr_mode(struct vnic_dev *vdev); vdev 108 drivers/scsi/snic/vnic_dev.h void svnic_dev_unregister(struct vnic_dev *vdev); vdev 109 drivers/scsi/snic/vnic_dev.h int svnic_dev_cmd_init(struct vnic_dev *vdev, int fallback); vdev 31 drivers/scsi/snic/vnic_intr.c int svnic_intr_alloc(struct vnic_dev *vdev, struct vnic_intr *intr, vdev 35 drivers/scsi/snic/vnic_intr.c intr->vdev = vdev; vdev 37 drivers/scsi/snic/vnic_intr.c intr->ctrl = svnic_dev_get_res(vdev, RES_TYPE_INTR_CTRL, index); vdev 49 drivers/scsi/snic/vnic_intr.h struct vnic_dev *vdev; vdev 26 drivers/scsi/snic/vnic_wq.c static inline int vnic_wq_get_ctrl(struct vnic_dev *vdev, struct vnic_wq *wq, vdev 29 drivers/scsi/snic/vnic_wq.c wq->ctrl = svnic_dev_get_res(vdev, res_type, index); vdev 36 drivers/scsi/snic/vnic_wq.c static inline int vnic_wq_alloc_ring(struct vnic_dev *vdev, struct vnic_wq *wq, vdev 39 drivers/scsi/snic/vnic_wq.c return svnic_dev_alloc_desc_ring(vdev, &wq->ring, desc_count, vdev 83 drivers/scsi/snic/vnic_wq.c struct vnic_dev *vdev; vdev 86 drivers/scsi/snic/vnic_wq.c vdev = wq->vdev; vdev 88 drivers/scsi/snic/vnic_wq.c svnic_dev_free_desc_ring(vdev, &wq->ring); vdev 99 drivers/scsi/snic/vnic_wq.c int vnic_wq_devcmd2_alloc(struct vnic_dev *vdev, struct vnic_wq *wq, vdev 105 drivers/scsi/snic/vnic_wq.c wq->vdev = vdev; vdev 107 drivers/scsi/snic/vnic_wq.c err = vnic_wq_get_ctrl(vdev, wq, 0, RES_TYPE_DEVCMD2); vdev 116 drivers/scsi/snic/vnic_wq.c err = vnic_wq_alloc_ring(vdev, wq, 0, desc_count, desc_size); vdev 123 drivers/scsi/snic/vnic_wq.c int svnic_wq_alloc(struct vnic_dev *vdev, struct vnic_wq *wq, vdev 129 drivers/scsi/snic/vnic_wq.c wq->vdev = vdev; vdev 131 drivers/scsi/snic/vnic_wq.c err = vnic_wq_get_ctrl(vdev, wq, index, RES_TYPE_WQ); vdev 140 drivers/scsi/snic/vnic_wq.c err = vnic_wq_alloc_ring(vdev, wq, index, desc_count, desc_size); vdev 76 drivers/scsi/snic/vnic_wq.h struct vnic_dev *vdev; vdev 153 drivers/scsi/snic/vnic_wq.h int svnic_wq_alloc(struct vnic_dev *vdev, struct vnic_wq *wq, vdev 155 drivers/scsi/snic/vnic_wq.h int vnic_wq_devcmd2_alloc(struct vnic_dev *vdev, struct vnic_wq *wq, vdev 72 drivers/scsi/virtio_scsi.c struct virtio_device *vdev; vdev 92 drivers/scsi/virtio_scsi.c static inline struct Scsi_Host *virtio_scsi_host(struct virtio_device *vdev) vdev 94 drivers/scsi/virtio_scsi.c return vdev->priv; vdev 119 drivers/scsi/virtio_scsi.c virtscsi_compute_resid(sc, virtio32_to_cpu(vscsi->vdev, resp->resid)); vdev 157 drivers/scsi/virtio_scsi.c WARN_ON(virtio32_to_cpu(vscsi->vdev, resp->sense_len) > vdev 162 drivers/scsi/virtio_scsi.c virtio32_to_cpu(vscsi->vdev, resp->sense_len), vdev 194 drivers/scsi/virtio_scsi.c struct Scsi_Host *sh = virtio_scsi_host(vq->vdev); vdev 222 drivers/scsi/virtio_scsi.c struct Scsi_Host *sh = virtio_scsi_host(vq->vdev); vdev 281 drivers/scsi/virtio_scsi.c struct Scsi_Host *shost = virtio_scsi_host(vscsi->vdev); vdev 285 drivers/scsi/virtio_scsi.c switch (virtio32_to_cpu(vscsi->vdev, event->reason)) { vdev 308 drivers/scsi/virtio_scsi.c struct Scsi_Host *shost = virtio_scsi_host(vscsi->vdev); vdev 311 drivers/scsi/virtio_scsi.c u8 asc = virtio32_to_cpu(vscsi->vdev, event->reason) & 255; vdev 312 drivers/scsi/virtio_scsi.c u8 ascq = virtio32_to_cpu(vscsi->vdev, event->reason) >> 8; vdev 332 drivers/scsi/virtio_scsi.c struct Scsi_Host *shost = virtio_scsi_host(vscsi->vdev); vdev 367 drivers/scsi/virtio_scsi.c cpu_to_virtio32(vscsi->vdev, VIRTIO_SCSI_T_EVENTS_MISSED)) { vdev 368 drivers/scsi/virtio_scsi.c event->event &= ~cpu_to_virtio32(vscsi->vdev, vdev 371 drivers/scsi/virtio_scsi.c scsi_scan_host(virtio_scsi_host(vscsi->vdev)); vdev 374 drivers/scsi/virtio_scsi.c switch (virtio32_to_cpu(vscsi->vdev, event->event)) { vdev 399 drivers/scsi/virtio_scsi.c struct Scsi_Host *sh = virtio_scsi_host(vq->vdev); vdev 492 drivers/scsi/virtio_scsi.c static void virtio_scsi_init_hdr(struct virtio_device *vdev, vdev 500 drivers/scsi/virtio_scsi.c cmd->tag = cpu_to_virtio64(vdev, (unsigned long)sc); vdev 507 drivers/scsi/virtio_scsi.c static void virtio_scsi_init_hdr_pi(struct virtio_device *vdev, vdev 514 drivers/scsi/virtio_scsi.c virtio_scsi_init_hdr(vdev, (struct virtio_scsi_cmd_req *)cmd_pi, sc); vdev 522 drivers/scsi/virtio_scsi.c cmd_pi->pi_bytesout = cpu_to_virtio32(vdev, vdev 526 drivers/scsi/virtio_scsi.c cmd_pi->pi_bytesin = cpu_to_virtio32(vdev, vdev 565 drivers/scsi/virtio_scsi.c if (virtio_has_feature(vscsi->vdev, VIRTIO_SCSI_F_T10_PI)) { vdev 566 drivers/scsi/virtio_scsi.c virtio_scsi_init_hdr_pi(vscsi->vdev, &cmd->req.cmd_pi, sc); vdev 572 drivers/scsi/virtio_scsi.c virtio_scsi_init_hdr(vscsi->vdev, &cmd->req.cmd, sc); vdev 635 drivers/scsi/virtio_scsi.c .subtype = cpu_to_virtio32(vscsi->vdev, vdev 698 drivers/scsi/virtio_scsi.c .tag = cpu_to_virtio64(vscsi->vdev, (unsigned long)sc), vdev 708 drivers/scsi/virtio_scsi.c return blk_mq_virtio_map_queues(qmap, vscsi->vdev, 2); vdev 748 drivers/scsi/virtio_scsi.c #define virtscsi_config_get(vdev, fld) \ vdev 751 drivers/scsi/virtio_scsi.c virtio_cread(vdev, struct virtio_scsi_config, fld, &__val); \ vdev 755 drivers/scsi/virtio_scsi.c #define virtscsi_config_set(vdev, fld, val) \ vdev 758 drivers/scsi/virtio_scsi.c virtio_cwrite(vdev, struct virtio_scsi_config, fld, &__val); \ vdev 768 drivers/scsi/virtio_scsi.c static void virtscsi_remove_vqs(struct virtio_device *vdev) vdev 771 drivers/scsi/virtio_scsi.c vdev->config->reset(vdev); vdev 772 drivers/scsi/virtio_scsi.c vdev->config->del_vqs(vdev); vdev 775 drivers/scsi/virtio_scsi.c static int virtscsi_init(struct virtio_device *vdev, vdev 807 drivers/scsi/virtio_scsi.c err = virtio_find_vqs(vdev, num_vqs, vqs, callbacks, names, &desc); vdev 817 drivers/scsi/virtio_scsi.c virtscsi_config_set(vdev, cdb_size, VIRTIO_SCSI_CDB_SIZE); vdev 818 drivers/scsi/virtio_scsi.c virtscsi_config_set(vdev, sense_size, VIRTIO_SCSI_SENSE_SIZE); vdev 827 drivers/scsi/virtio_scsi.c virtscsi_remove_vqs(vdev); vdev 831 drivers/scsi/virtio_scsi.c static int virtscsi_probe(struct virtio_device *vdev) vdev 840 drivers/scsi/virtio_scsi.c if (!vdev->config->get) { vdev 841 drivers/scsi/virtio_scsi.c dev_err(&vdev->dev, "%s failure: config access disabled\n", vdev 847 drivers/scsi/virtio_scsi.c num_queues = virtscsi_config_get(vdev, num_queues) ? : 1; vdev 850 drivers/scsi/virtio_scsi.c num_targets = virtscsi_config_get(vdev, max_target) + 1; vdev 857 drivers/scsi/virtio_scsi.c sg_elems = virtscsi_config_get(vdev, seg_max) ?: 1; vdev 860 drivers/scsi/virtio_scsi.c vscsi->vdev = vdev; vdev 862 drivers/scsi/virtio_scsi.c vdev->priv = shost; vdev 864 drivers/scsi/virtio_scsi.c err = virtscsi_init(vdev, vscsi); vdev 870 drivers/scsi/virtio_scsi.c cmd_per_lun = virtscsi_config_get(vdev, cmd_per_lun) ?: 1; vdev 872 drivers/scsi/virtio_scsi.c shost->max_sectors = virtscsi_config_get(vdev, max_sectors) ?: 0xFFFF; vdev 877 drivers/scsi/virtio_scsi.c shost->max_lun = virtscsi_config_get(vdev, max_lun) + 1 + 0x4000; vdev 884 drivers/scsi/virtio_scsi.c if (virtio_has_feature(vdev, VIRTIO_SCSI_F_T10_PI)) { vdev 896 drivers/scsi/virtio_scsi.c err = scsi_add_host(shost, &vdev->dev); vdev 900 drivers/scsi/virtio_scsi.c virtio_device_ready(vdev); vdev 902 drivers/scsi/virtio_scsi.c if (virtio_has_feature(vdev, VIRTIO_SCSI_F_HOTPLUG)) vdev 909 drivers/scsi/virtio_scsi.c vdev->config->del_vqs(vdev); vdev 915 drivers/scsi/virtio_scsi.c static void virtscsi_remove(struct virtio_device *vdev) vdev 917 drivers/scsi/virtio_scsi.c struct Scsi_Host *shost = virtio_scsi_host(vdev); vdev 920 drivers/scsi/virtio_scsi.c if (virtio_has_feature(vdev, VIRTIO_SCSI_F_HOTPLUG)) vdev 924 drivers/scsi/virtio_scsi.c virtscsi_remove_vqs(vdev); vdev 929 drivers/scsi/virtio_scsi.c static int virtscsi_freeze(struct virtio_device *vdev) vdev 931 drivers/scsi/virtio_scsi.c virtscsi_remove_vqs(vdev); vdev 935 drivers/scsi/virtio_scsi.c static int virtscsi_restore(struct virtio_device *vdev) vdev 937 drivers/scsi/virtio_scsi.c struct Scsi_Host *sh = virtio_scsi_host(vdev); vdev 941 drivers/scsi/virtio_scsi.c err = virtscsi_init(vdev, vscsi); vdev 945 drivers/scsi/virtio_scsi.c virtio_device_ready(vdev); vdev 947 drivers/scsi/virtio_scsi.c if (virtio_has_feature(vdev, VIRTIO_SCSI_F_HOTPLUG)) vdev 2271 drivers/staging/media/allegro-dvt/allegro-core.c struct video_device *vdev = video_devdata(file); vdev 2272 drivers/staging/media/allegro-dvt/allegro-core.c struct allegro_dev *dev = video_get_drvdata(vdev); vdev 2281 drivers/staging/media/allegro-dvt/allegro-core.c v4l2_fh_init(&channel->fh, vdev); vdev 2371 drivers/staging/media/allegro-dvt/allegro-core.c struct video_device *vdev = video_devdata(file); vdev 2372 drivers/staging/media/allegro-dvt/allegro-core.c struct allegro_dev *dev = video_get_drvdata(vdev); vdev 151 drivers/staging/media/hantro/hantro.h struct video_device vdev; vdev 161 drivers/staging/media/hantro/hantro.h hantro_vdev_to_func(struct video_device *vdev) vdev 163 drivers/staging/media/hantro/hantro.h return container_of(vdev, struct hantro_func, vdev); vdev 394 drivers/staging/media/hantro/hantro_drv.c struct video_device *vdev = video_devdata(filp); vdev 395 drivers/staging/media/hantro/hantro_drv.c struct hantro_func *func = hantro_vdev_to_func(vdev); vdev 432 drivers/staging/media/hantro/hantro_drv.c v4l2_fh_init(&ctx->fh, vdev); vdev 495 drivers/staging/media/hantro/hantro_drv.c int function, struct video_device *vdev) vdev 503 drivers/staging/media/hantro/hantro_drv.c entity->info.dev.minor = vdev->minor; vdev 506 drivers/staging/media/hantro/hantro_drv.c name = devm_kasprintf(mdev->dev, GFP_KERNEL, "%s-%s", vdev->name, vdev 534 drivers/staging/media/hantro/hantro_drv.c ret = hantro_register_entity(mdev, &func->vdev.entity, "source", vdev 536 drivers/staging/media/hantro/hantro_drv.c &func->vdev); vdev 544 drivers/staging/media/hantro/hantro_drv.c &func->vdev); vdev 551 drivers/staging/media/hantro/hantro_drv.c &func->vdev); vdev 556 drivers/staging/media/hantro/hantro_drv.c ret = media_create_pad_link(&func->vdev.entity, 0, &func->proc, 0, vdev 571 drivers/staging/media/hantro/hantro_drv.c func->vdev.minor); vdev 578 drivers/staging/media/hantro/hantro_drv.c link = media_create_intf_link(&func->vdev.entity, vdev 604 drivers/staging/media/hantro/hantro_drv.c media_entity_remove_links(&func->vdev.entity); vdev 613 drivers/staging/media/hantro/hantro_drv.c media_device_unregister_entity(&func->vdev.entity); vdev 622 drivers/staging/media/hantro/hantro_drv.c media_entity_remove_links(&func->vdev.entity); vdev 625 drivers/staging/media/hantro/hantro_drv.c media_device_unregister_entity(&func->vdev.entity); vdev 644 drivers/staging/media/hantro/hantro_drv.c vfd = &func->vdev; vdev 715 drivers/staging/media/hantro/hantro_drv.c video_unregister_device(&func->vdev); vdev 79 drivers/staging/media/hantro/hantro_v4l2.c struct video_device *vdev = video_devdata(file); vdev 82 drivers/staging/media/hantro/hantro_v4l2.c strscpy(cap->card, vdev->name, sizeof(cap->card)); vdev 56 drivers/staging/media/imx/imx-ic-prpencvf.c struct imx_media_video_dev *vdev; vdev 200 drivers/staging/media/imx/imx-ic-prpencvf.c struct imx_media_video_dev *vdev = priv->vdev; vdev 207 drivers/staging/media/imx/imx-ic-prpencvf.c done->vbuf.field = vdev->fmt.fmt.pix.field; vdev 219 drivers/staging/media/imx/imx-ic-prpencvf.c next = imx_media_capture_device_next_buf(vdev); vdev 232 drivers/staging/media/imx/imx-ic-prpencvf.c phys += vdev->fmt.fmt.pix.bytesperline; vdev 299 drivers/staging/media/imx/imx-ic-prpencvf.c struct imx_media_video_dev *vdev = priv->vdev; vdev 305 drivers/staging/media/imx/imx-ic-prpencvf.c imx_media_capture_device_error(vdev); vdev 310 drivers/staging/media/imx/imx-ic-prpencvf.c struct imx_media_video_dev *vdev = priv->vdev; vdev 315 drivers/staging/media/imx/imx-ic-prpencvf.c buf = imx_media_capture_device_next_buf(vdev); vdev 351 drivers/staging/media/imx/imx-ic-prpencvf.c struct imx_media_video_dev *vdev = priv->vdev; vdev 360 drivers/staging/media/imx/imx-ic-prpencvf.c outcc = vdev->cc; vdev 365 drivers/staging/media/imx/imx-ic-prpencvf.c image.pix = vdev->fmt.fmt.pix; vdev 366 drivers/staging/media/imx/imx-ic-prpencvf.c image.rect = vdev->compose; vdev 450 drivers/staging/media/imx/imx-ic-prpencvf.c struct imx_media_video_dev *vdev = priv->vdev; vdev 460 drivers/staging/media/imx/imx-ic-prpencvf.c outfmt = &vdev->fmt.fmt.pix; vdev 462 drivers/staging/media/imx/imx-ic-prpencvf.c outcc = vdev->cc; vdev 579 drivers/staging/media/imx/imx-ic-prpencvf.c struct imx_media_video_dev *vdev = priv->vdev; vdev 589 drivers/staging/media/imx/imx-ic-prpencvf.c outfmt = &vdev->fmt.fmt.pix; vdev 591 drivers/staging/media/imx/imx-ic-prpencvf.c outcc = vdev->cc; vdev 667 drivers/staging/media/imx/imx-ic-prpencvf.c struct imx_media_video_dev *vdev = priv->vdev; vdev 675 drivers/staging/media/imx/imx-ic-prpencvf.c outfmt = &vdev->fmt.fmt.pix; vdev 1274 drivers/staging/media/imx/imx-ic-prpencvf.c ret = imx_media_capture_device_register(priv->vdev); vdev 1284 drivers/staging/media/imx/imx-ic-prpencvf.c imx_media_capture_device_unregister(priv->vdev); vdev 1292 drivers/staging/media/imx/imx-ic-prpencvf.c imx_media_capture_device_unregister(priv->vdev); vdev 1339 drivers/staging/media/imx/imx-ic-prpencvf.c priv->vdev = imx_media_capture_device_init(ic_priv->ipu_dev, vdev 1342 drivers/staging/media/imx/imx-ic-prpencvf.c if (IS_ERR(priv->vdev)) vdev 1343 drivers/staging/media/imx/imx-ic-prpencvf.c return PTR_ERR(priv->vdev); vdev 1355 drivers/staging/media/imx/imx-ic-prpencvf.c imx_media_capture_device_remove(priv->vdev); vdev 32 drivers/staging/media/imx/imx-media-capture.c struct imx_media_video_dev vdev; vdev 58 drivers/staging/media/imx/imx-media-capture.c #define to_capture_priv(v) container_of(v, struct capture_priv, vdev) vdev 199 drivers/staging/media/imx/imx-media-capture.c *f = priv->vdev.fmt; vdev 297 drivers/staging/media/imx/imx-media-capture.c ret = __capture_try_fmt_vid_cap(priv, &fmt_src, f, &priv->vdev.cc, vdev 298 drivers/staging/media/imx/imx-media-capture.c &priv->vdev.compose); vdev 302 drivers/staging/media/imx/imx-media-capture.c priv->vdev.fmt.fmt.pix = f->fmt.pix; vdev 341 drivers/staging/media/imx/imx-media-capture.c s->r = priv->vdev.compose; vdev 351 drivers/staging/media/imx/imx-media-capture.c s->r.width = priv->vdev.fmt.fmt.pix.width; vdev 352 drivers/staging/media/imx/imx-media-capture.c s->r.height = priv->vdev.fmt.fmt.pix.height; vdev 466 drivers/staging/media/imx/imx-media-capture.c struct v4l2_pix_format *pix = &priv->vdev.fmt.fmt.pix; vdev 505 drivers/staging/media/imx/imx-media-capture.c struct v4l2_pix_format *pix = &priv->vdev.fmt.fmt.pix; vdev 552 drivers/staging/media/imx/imx-media-capture.c return (priv->vdev.fmt.fmt.pix.width != f.fmt.pix.width || vdev 553 drivers/staging/media/imx/imx-media-capture.c priv->vdev.fmt.fmt.pix.height != f.fmt.pix.height || vdev 554 drivers/staging/media/imx/imx-media-capture.c priv->vdev.cc->cs != cc->cs || vdev 555 drivers/staging/media/imx/imx-media-capture.c priv->vdev.compose.width != compose.width || vdev 556 drivers/staging/media/imx/imx-media-capture.c priv->vdev.compose.height != compose.height) ? -EINVAL : 0; vdev 636 drivers/staging/media/imx/imx-media-capture.c struct video_device *vfd = priv->vdev.vfd; vdev 657 drivers/staging/media/imx/imx-media-capture.c struct video_device *vfd = priv->vdev.vfd; vdev 694 drivers/staging/media/imx/imx-media-capture.c imx_media_capture_device_next_buf(struct imx_media_video_dev *vdev) vdev 696 drivers/staging/media/imx/imx-media-capture.c struct capture_priv *priv = to_capture_priv(vdev); vdev 715 drivers/staging/media/imx/imx-media-capture.c void imx_media_capture_device_error(struct imx_media_video_dev *vdev) vdev 717 drivers/staging/media/imx/imx-media-capture.c struct capture_priv *priv = to_capture_priv(vdev); vdev 730 drivers/staging/media/imx/imx-media-capture.c int imx_media_capture_device_register(struct imx_media_video_dev *vdev) vdev 732 drivers/staging/media/imx/imx-media-capture.c struct capture_priv *priv = to_capture_priv(vdev); vdev 735 drivers/staging/media/imx/imx-media-capture.c struct video_device *vfd = vdev->vfd; vdev 794 drivers/staging/media/imx/imx-media-capture.c vdev->fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; vdev 795 drivers/staging/media/imx/imx-media-capture.c imx_media_mbus_fmt_to_pix_fmt(&vdev->fmt.fmt.pix, vdev 797 drivers/staging/media/imx/imx-media-capture.c vdev->compose.width = fmt_src.format.width; vdev 798 drivers/staging/media/imx/imx-media-capture.c vdev->compose.height = fmt_src.format.height; vdev 799 drivers/staging/media/imx/imx-media-capture.c vdev->cc = imx_media_find_format(vdev->fmt.fmt.pix.pixelformat, vdev 808 drivers/staging/media/imx/imx-media-capture.c imx_media_add_video_device(priv->md, vdev); vdev 817 drivers/staging/media/imx/imx-media-capture.c void imx_media_capture_device_unregister(struct imx_media_video_dev *vdev) vdev 819 drivers/staging/media/imx/imx-media-capture.c struct capture_priv *priv = to_capture_priv(vdev); vdev 820 drivers/staging/media/imx/imx-media-capture.c struct video_device *vfd = priv->vdev.vfd; vdev 861 drivers/staging/media/imx/imx-media-capture.c priv->vdev.vfd = vfd; vdev 863 drivers/staging/media/imx/imx-media-capture.c INIT_LIST_HEAD(&priv->vdev.list); vdev 869 drivers/staging/media/imx/imx-media-capture.c return &priv->vdev; vdev 873 drivers/staging/media/imx/imx-media-capture.c void imx_media_capture_device_remove(struct imx_media_video_dev *vdev) vdev 875 drivers/staging/media/imx/imx-media-capture.c struct capture_priv *priv = to_capture_priv(vdev); vdev 34 drivers/staging/media/imx/imx-media-csc-scaler.c struct imx_media_video_dev vdev; vdev 44 drivers/staging/media/imx/imx-media-csc-scaler.c #define vdev_to_priv(v) container_of(v, struct ipu_csc_scaler_priv, vdev) vdev 132 drivers/staging/media/imx/imx-media-csc-scaler.c v4l2_err(ctx->priv->vdev.vfd->v4l2_dev, vdev 247 drivers/staging/media/imx/imx-media-csc-scaler.c v4l2_err(ctx->priv->vdev.vfd->v4l2_dev, "%s: queue busy\n", vdev 517 drivers/staging/media/imx/imx-media-csc-scaler.c v4l2_warn(ctx->priv->vdev.vfd->v4l2_dev, "removing old ICC\n"); vdev 535 drivers/staging/media/imx/imx-media-csc-scaler.c v4l2_err(ctx->priv->vdev.vfd->v4l2_dev, "%s: error %d\n", vdev 825 drivers/staging/media/imx/imx-media-csc-scaler.c static void ipu_csc_scaler_video_device_release(struct video_device *vdev) vdev 827 drivers/staging/media/imx/imx-media-csc-scaler.c struct ipu_csc_scaler_priv *priv = video_get_drvdata(vdev); vdev 830 drivers/staging/media/imx/imx-media-csc-scaler.c video_device_release(vdev); vdev 844 drivers/staging/media/imx/imx-media-csc-scaler.c int imx_media_csc_scaler_device_register(struct imx_media_video_dev *vdev) vdev 846 drivers/staging/media/imx/imx-media-csc-scaler.c struct ipu_csc_scaler_priv *priv = vdev_to_priv(vdev); vdev 847 drivers/staging/media/imx/imx-media-csc-scaler.c struct video_device *vfd = vdev->vfd; vdev 864 drivers/staging/media/imx/imx-media-csc-scaler.c void imx_media_csc_scaler_device_unregister(struct imx_media_video_dev *vdev) vdev 866 drivers/staging/media/imx/imx-media-csc-scaler.c struct ipu_csc_scaler_priv *priv = vdev_to_priv(vdev); vdev 867 drivers/staging/media/imx/imx-media-csc-scaler.c struct video_device *vfd = priv->vdev.vfd; vdev 900 drivers/staging/media/imx/imx-media-csc-scaler.c priv->vdev.vfd = vfd; vdev 902 drivers/staging/media/imx/imx-media-csc-scaler.c INIT_LIST_HEAD(&priv->vdev.list); vdev 914 drivers/staging/media/imx/imx-media-csc-scaler.c return &priv->vdev; vdev 62 drivers/staging/media/imx/imx-media-csi.c struct imx_media_video_dev *vdev; vdev 264 drivers/staging/media/imx/imx-media-csi.c struct imx_media_video_dev *vdev = priv->vdev; vdev 271 drivers/staging/media/imx/imx-media-csi.c done->vbuf.field = vdev->fmt.fmt.pix.field; vdev 283 drivers/staging/media/imx/imx-media-csi.c next = imx_media_capture_device_next_buf(vdev); vdev 296 drivers/staging/media/imx/imx-media-csi.c phys += vdev->fmt.fmt.pix.bytesperline; vdev 359 drivers/staging/media/imx/imx-media-csi.c struct imx_media_video_dev *vdev = priv->vdev; vdev 364 drivers/staging/media/imx/imx-media-csi.c imx_media_capture_device_error(vdev); vdev 369 drivers/staging/media/imx/imx-media-csi.c struct imx_media_video_dev *vdev = priv->vdev; vdev 374 drivers/staging/media/imx/imx-media-csi.c buf = imx_media_capture_device_next_buf(vdev); vdev 407 drivers/staging/media/imx/imx-media-csi.c struct imx_media_video_dev *vdev = priv->vdev; vdev 426 drivers/staging/media/imx/imx-media-csi.c image.pix = vdev->fmt.fmt.pix; vdev 427 drivers/staging/media/imx/imx-media-csi.c image.rect = vdev->compose; vdev 598 drivers/staging/media/imx/imx-media-csi.c struct imx_media_video_dev *vdev = priv->vdev; vdev 608 drivers/staging/media/imx/imx-media-csi.c outfmt = &vdev->fmt.fmt.pix; vdev 1800 drivers/staging/media/imx/imx-media-csi.c ret = imx_media_capture_device_register(priv->vdev); vdev 1818 drivers/staging/media/imx/imx-media-csi.c imx_media_capture_device_unregister(priv->vdev); vdev 1966 drivers/staging/media/imx/imx-media-csi.c priv->vdev = imx_media_capture_device_init(priv->sd.dev, &priv->sd, vdev 1968 drivers/staging/media/imx/imx-media-csi.c if (IS_ERR(priv->vdev)) vdev 1969 drivers/staging/media/imx/imx-media-csi.c return PTR_ERR(priv->vdev); vdev 2000 drivers/staging/media/imx/imx-media-csi.c imx_media_capture_device_remove(priv->vdev); vdev 2011 drivers/staging/media/imx/imx-media-csi.c imx_media_capture_device_remove(priv->vdev); vdev 75 drivers/staging/media/imx/imx-media-dev-common.c struct imx_media_video_dev *vdev, vdev 104 drivers/staging/media/imx/imx-media-dev-common.c if (pad_vdev->vdev == vdev) vdev 109 drivers/staging/media/imx/imx-media-dev-common.c vdev->vfd->entity.name, entity->name, srcpad->index); vdev 116 drivers/staging/media/imx/imx-media-dev-common.c pad_vdev->vdev = vdev; vdev 129 drivers/staging/media/imx/imx-media-dev-common.c ret = imx_media_add_vdev_to_pad(imxmd, vdev, vdev 172 drivers/staging/media/imx/imx-media-dev-common.c struct imx_media_video_dev *vdev; vdev 180 drivers/staging/media/imx/imx-media-dev-common.c list_for_each_entry(vdev, &imxmd->vdev_list, list) { vdev 181 drivers/staging/media/imx/imx-media-dev-common.c link = list_first_entry(&vdev->vfd->entity.links, vdev 183 drivers/staging/media/imx/imx-media-dev-common.c ret = imx_media_add_vdev_to_pad(imxmd, vdev, link->source); vdev 299 drivers/staging/media/imx/imx-media-dev-common.c vfd = pad_vdev->vdev->vfd; vdev 309 drivers/staging/media/imx/imx-media-dev-common.c vfd = pad_vdev->vdev->vfd; vdev 341 drivers/staging/media/imx/imx-media-dev-common.c v4l2_event_queue(pad_vdev->vdev->vfd, arg); vdev 759 drivers/staging/media/imx/imx-media-utils.c struct imx_media_video_dev *vdev) vdev 763 drivers/staging/media/imx/imx-media-utils.c list_add_tail(&vdev->list, &imxmd->vdev_list); vdev 104 drivers/staging/media/imx/imx-media-vdic.c struct imx_media_video_dev *vdev; vdev 241 drivers/staging/media/imx/imx-media-vdic.c struct imx_media_video_dev *vdev = priv->vdev; vdev 249 drivers/staging/media/imx/imx-media-vdic.c image.pix = vdev->fmt.fmt.pix; vdev 250 drivers/staging/media/imx/imx-media-vdic.c image.rect = vdev->compose; vdev 718 drivers/staging/media/imx/imx-media-vdic.c struct imx_media_video_dev *vdev = priv->vdev; vdev 724 drivers/staging/media/imx/imx-media-vdic.c if (!vdev) { vdev 123 drivers/staging/media/imx/imx-media.h struct imx_media_video_dev *vdev; vdev 193 drivers/staging/media/imx/imx-media.h struct imx_media_video_dev *vdev); vdev 271 drivers/staging/media/imx/imx-media.h void imx_media_capture_device_remove(struct imx_media_video_dev *vdev); vdev 272 drivers/staging/media/imx/imx-media.h int imx_media_capture_device_register(struct imx_media_video_dev *vdev); vdev 273 drivers/staging/media/imx/imx-media.h void imx_media_capture_device_unregister(struct imx_media_video_dev *vdev); vdev 275 drivers/staging/media/imx/imx-media.h imx_media_capture_device_next_buf(struct imx_media_video_dev *vdev); vdev 276 drivers/staging/media/imx/imx-media.h void imx_media_capture_device_error(struct imx_media_video_dev *vdev); vdev 281 drivers/staging/media/imx/imx-media.h int imx_media_csc_scaler_device_register(struct imx_media_video_dev *vdev); vdev 282 drivers/staging/media/imx/imx-media.h void imx_media_csc_scaler_device_unregister(struct imx_media_video_dev *vdev); vdev 158 drivers/staging/media/imx/imx7-media-csi.c struct imx_media_video_dev *vdev; vdev 586 drivers/staging/media/imx/imx7-media-csi.c struct imx_media_video_dev *vdev = csi->vdev; vdev 593 drivers/staging/media/imx/imx7-media-csi.c buf = imx_media_capture_device_next_buf(vdev); vdev 627 drivers/staging/media/imx/imx7-media-csi.c struct imx_media_video_dev *vdev = csi->vdev; vdev 634 drivers/staging/media/imx/imx7-media-csi.c done->vbuf.field = vdev->fmt.fmt.pix.field; vdev 643 drivers/staging/media/imx/imx7-media-csi.c next = imx_media_capture_device_next_buf(vdev); vdev 715 drivers/staging/media/imx/imx7-media-csi.c struct imx_media_video_dev *vdev = csi->vdev; vdev 716 drivers/staging/media/imx/imx7-media-csi.c struct v4l2_pix_format *out_pix = &vdev->fmt.fmt.pix; vdev 764 drivers/staging/media/imx/imx7-media-csi.c struct imx_media_video_dev *vdev = csi->vdev; vdev 765 drivers/staging/media/imx/imx7-media-csi.c struct v4l2_pix_format *out_pix = &vdev->fmt.fmt.pix; vdev 1126 drivers/staging/media/imx/imx7-media-csi.c return imx_media_capture_device_register(csi->vdev); vdev 1133 drivers/staging/media/imx/imx7-media-csi.c imx_media_capture_device_unregister(csi->vdev); vdev 1258 drivers/staging/media/imx/imx7-media-csi.c csi->vdev = imx_media_capture_device_init(csi->sd.dev, &csi->sd, vdev 1260 drivers/staging/media/imx/imx7-media-csi.c if (IS_ERR(csi->vdev)) vdev 1261 drivers/staging/media/imx/imx7-media-csi.c return PTR_ERR(csi->vdev); vdev 1276 drivers/staging/media/imx/imx7-media-csi.c imx_media_capture_device_unregister(csi->vdev); vdev 1277 drivers/staging/media/imx/imx7-media-csi.c imx_media_capture_device_remove(csi->vdev); vdev 1305 drivers/staging/media/imx/imx7-media-csi.c imx_media_capture_device_unregister(csi->vdev); vdev 1306 drivers/staging/media/imx/imx7-media-csi.c imx_media_capture_device_remove(csi->vdev); vdev 484 drivers/staging/media/ipu3/ipu3-v4l2.c r = media_pipeline_start(&node->vdev.entity, &imgu_pipe->pipeline); vdev 508 drivers/staging/media/ipu3/ipu3-v4l2.c media_pipeline_stop(&node->vdev.entity); vdev 545 drivers/staging/media/ipu3/ipu3-v4l2.c media_pipeline_stop(&node->vdev.entity); vdev 1055 drivers/staging/media/ipu3/ipu3-v4l2.c static void imgu_node_to_v4l2(u32 node, struct video_device *vdev, vdev 1067 drivers/staging/media/ipu3/ipu3-v4l2.c vdev->ioctl_ops = &imgu_v4l2_ioctl_ops; vdev 1073 drivers/staging/media/ipu3/ipu3-v4l2.c vdev->ioctl_ops = &imgu_v4l2_meta_ioctl_ops; vdev 1080 drivers/staging/media/ipu3/ipu3-v4l2.c vdev->ioctl_ops = &imgu_v4l2_meta_ioctl_ops; vdev 1086 drivers/staging/media/ipu3/ipu3-v4l2.c vdev->ioctl_ops = &imgu_v4l2_ioctl_ops; vdev 1089 drivers/staging/media/ipu3/ipu3-v4l2.c vdev->device_caps = V4L2_CAP_STREAMING | cap; vdev 1161 drivers/staging/media/ipu3/ipu3-v4l2.c struct video_device *vdev = &node->vdev; vdev 1195 drivers/staging/media/ipu3/ipu3-v4l2.c imgu_node_to_v4l2(node_num, vdev, &node->vdev_fmt); vdev 1207 drivers/staging/media/ipu3/ipu3-v4l2.c r = media_entity_pads_init(&vdev->entity, 1, &node->vdev_pad); vdev 1215 drivers/staging/media/ipu3/ipu3-v4l2.c vdev->entity.ops = NULL; vdev 1234 drivers/staging/media/ipu3/ipu3-v4l2.c media_entity_cleanup(&vdev->entity); vdev 1239 drivers/staging/media/ipu3/ipu3-v4l2.c snprintf(vdev->name, sizeof(vdev->name), "%s %u %s", vdev 1241 drivers/staging/media/ipu3/ipu3-v4l2.c vdev->release = video_device_release_empty; vdev 1242 drivers/staging/media/ipu3/ipu3-v4l2.c vdev->fops = &imgu_v4l2_fops; vdev 1243 drivers/staging/media/ipu3/ipu3-v4l2.c vdev->lock = &node->lock; vdev 1244 drivers/staging/media/ipu3/ipu3-v4l2.c vdev->v4l2_dev = &imgu->v4l2_dev; vdev 1245 drivers/staging/media/ipu3/ipu3-v4l2.c vdev->queue = &node->vbq; vdev 1246 drivers/staging/media/ipu3/ipu3-v4l2.c vdev->vfl_dir = node->output ? VFL_DIR_TX : VFL_DIR_RX; vdev 1247 drivers/staging/media/ipu3/ipu3-v4l2.c video_set_drvdata(vdev, imgu); vdev 1248 drivers/staging/media/ipu3/ipu3-v4l2.c r = video_register_device(vdev, VFL_TYPE_GRABBER, -1); vdev 1251 drivers/staging/media/ipu3/ipu3-v4l2.c media_entity_cleanup(&vdev->entity); vdev 1260 drivers/staging/media/ipu3/ipu3-v4l2.c r = media_create_pad_link(&vdev->entity, 0, &sd->entity, vdev 1263 drivers/staging/media/ipu3/ipu3-v4l2.c r = media_create_pad_link(&sd->entity, node_num, &vdev->entity, vdev 1268 drivers/staging/media/ipu3/ipu3-v4l2.c video_unregister_device(vdev); vdev 1282 drivers/staging/media/ipu3/ipu3-v4l2.c video_unregister_device(&imgu_pipe->nodes[i].vdev); vdev 1283 drivers/staging/media/ipu3/ipu3-v4l2.c media_entity_cleanup(&imgu_pipe->nodes[i].vdev.entity); vdev 36 drivers/staging/media/ipu3/ipu3.h container_of(video_devdata(__file), struct imgu_video_device, vdev) vdev 78 drivers/staging/media/ipu3/ipu3.h struct video_device vdev; vdev 968 drivers/staging/media/meson/vdec/vdec.c struct video_device *vdev; vdev 1044 drivers/staging/media/meson/vdec/vdec.c vdev = video_device_alloc(); vdev 1045 drivers/staging/media/meson/vdec/vdec.c if (!vdev) { vdev 1052 drivers/staging/media/meson/vdec/vdec.c core->vdev_dec = vdev; vdev 1056 drivers/staging/media/meson/vdec/vdec.c strscpy(vdev->name, "meson-video-decoder", sizeof(vdev->name)); vdev 1057 drivers/staging/media/meson/vdec/vdec.c vdev->release = video_device_release; vdev 1058 drivers/staging/media/meson/vdec/vdec.c vdev->fops = &vdec_fops; vdev 1059 drivers/staging/media/meson/vdec/vdec.c vdev->ioctl_ops = &vdec_ioctl_ops; vdev 1060 drivers/staging/media/meson/vdec/vdec.c vdev->vfl_dir = VFL_DIR_M2M; vdev 1061 drivers/staging/media/meson/vdec/vdec.c vdev->v4l2_dev = &core->v4l2_dev; vdev 1062 drivers/staging/media/meson/vdec/vdec.c vdev->lock = &core->lock; vdev 1063 drivers/staging/media/meson/vdec/vdec.c vdev->device_caps = V4L2_CAP_VIDEO_M2M_MPLANE | V4L2_CAP_STREAMING; vdev 1065 drivers/staging/media/meson/vdec/vdec.c video_set_drvdata(vdev, core); vdev 1067 drivers/staging/media/meson/vdec/vdec.c ret = video_register_device(vdev, VFL_TYPE_GRABBER, -1); vdev 1076 drivers/staging/media/meson/vdec/vdec.c video_device_release(vdev); vdev 1225 drivers/staging/media/omap4iss/iss_csi2.c struct v4l2_device *vdev) vdev 1230 drivers/staging/media/omap4iss/iss_csi2.c ret = v4l2_device_register_subdev(vdev, &csi2->subdev); vdev 1234 drivers/staging/media/omap4iss/iss_csi2.c ret = omap4iss_video_register(&csi2->video_out, vdev); vdev 154 drivers/staging/media/omap4iss/iss_csi2.h struct v4l2_device *vdev); vdev 530 drivers/staging/media/omap4iss/iss_ipipe.c struct v4l2_device *vdev) vdev 535 drivers/staging/media/omap4iss/iss_ipipe.c ret = v4l2_device_register_subdev(vdev, &ipipe->subdev); vdev 57 drivers/staging/media/omap4iss/iss_ipipe.h struct v4l2_device *vdev); vdev 771 drivers/staging/media/omap4iss/iss_ipipeif.c struct v4l2_device *vdev) vdev 776 drivers/staging/media/omap4iss/iss_ipipeif.c ret = v4l2_device_register_subdev(vdev, &ipipeif->subdev); vdev 780 drivers/staging/media/omap4iss/iss_ipipeif.c ret = omap4iss_video_register(&ipipeif->video_out, vdev); vdev 80 drivers/staging/media/omap4iss/iss_ipipeif.h struct v4l2_device *vdev); vdev 813 drivers/staging/media/omap4iss/iss_resizer.c struct v4l2_device *vdev) vdev 818 drivers/staging/media/omap4iss/iss_resizer.c ret = v4l2_device_register_subdev(vdev, &resizer->subdev); vdev 822 drivers/staging/media/omap4iss/iss_resizer.c ret = omap4iss_video_register(&resizer->video_out, vdev); vdev 63 drivers/staging/media/omap4iss/iss_resizer.h struct v4l2_device *vdev); vdev 1262 drivers/staging/media/omap4iss/iss_video.c int omap4iss_video_register(struct iss_video *video, struct v4l2_device *vdev) vdev 1266 drivers/staging/media/omap4iss/iss_video.c video->video.v4l2_dev = vdev; vdev 171 drivers/staging/media/omap4iss/iss_video.h #define to_iss_video(vdev) container_of(vdev, struct iss_video, video) vdev 188 drivers/staging/media/omap4iss/iss_video.h struct v4l2_device *vdev); vdev 561 drivers/staging/media/soc_camera/mt9t031.c struct video_device *vdev = to_video_device(dev); vdev 562 drivers/staging/media/soc_camera/mt9t031.c struct v4l2_subdev *sd = soc_camera_vdev_to_subdev(vdev); vdev 599 drivers/staging/media/soc_camera/mt9t031.c struct video_device *vdev = soc_camera_i2c_to_vdev(client); vdev 607 drivers/staging/media/soc_camera/mt9t031.c if (vdev) vdev 609 drivers/staging/media/soc_camera/mt9t031.c vdev->dev.type = &mt9t031_dev_type; vdev 611 drivers/staging/media/soc_camera/mt9t031.c if (vdev) vdev 612 drivers/staging/media/soc_camera/mt9t031.c vdev->dev.type = NULL; vdev 310 drivers/staging/media/soc_camera/soc_camera.c inp->std = icd->vdev->tvnorms; vdev 614 drivers/staging/media/soc_camera/soc_camera.c struct video_device *vdev = video_devdata(file); vdev 627 drivers/staging/media/soc_camera/soc_camera.c if (!vdev || !video_is_registered(vdev)) { vdev 632 drivers/staging/media/soc_camera/soc_camera.c icd = video_get_drvdata(vdev); vdev 686 drivers/staging/media/soc_camera/soc_camera.c pm_runtime_enable(&icd->vdev->dev); vdev 687 drivers/staging/media/soc_camera/soc_camera.c ret = pm_runtime_resume(&icd->vdev->dev); vdev 719 drivers/staging/media/soc_camera/soc_camera.c pm_runtime_disable(&icd->vdev->dev); vdev 747 drivers/staging/media/soc_camera/soc_camera.c pm_runtime_suspend(&icd->vdev->dev); vdev 748 drivers/staging/media/soc_camera/soc_camera.c pm_runtime_disable(&icd->vdev->dev); vdev 1176 drivers/staging/media/soc_camera/soc_camera.c v4l2_subdev_call(sd, video, g_tvnorms, &icd->vdev->tvnorms); vdev 1712 drivers/staging/media/soc_camera/soc_camera.c if (icd->vdev) { vdev 1713 drivers/staging/media/soc_camera/soc_camera.c video_device_release(icd->vdev); vdev 1714 drivers/staging/media/soc_camera/soc_camera.c icd->vdev = NULL; vdev 1730 drivers/staging/media/soc_camera/soc_camera.c struct video_device *vdev = icd->vdev; vdev 1733 drivers/staging/media/soc_camera/soc_camera.c if (vdev) { vdev 1734 drivers/staging/media/soc_camera/soc_camera.c video_unregister_device(vdev); vdev 1735 drivers/staging/media/soc_camera/soc_camera.c icd->vdev = NULL; vdev 1805 drivers/staging/media/soc_camera/soc_camera.c return v4l2_g_parm_cap(icd->vdev, sd, a); vdev 1813 drivers/staging/media/soc_camera/soc_camera.c return v4l2_s_parm_cap(icd->vdev, sd, a); vdev 2034 drivers/staging/media/soc_camera/soc_camera.c struct video_device *vdev = video_device_alloc(); vdev 2036 drivers/staging/media/soc_camera/soc_camera.c if (!vdev) vdev 2039 drivers/staging/media/soc_camera/soc_camera.c strscpy(vdev->name, ici->drv_name, sizeof(vdev->name)); vdev 2041 drivers/staging/media/soc_camera/soc_camera.c vdev->v4l2_dev = &ici->v4l2_dev; vdev 2042 drivers/staging/media/soc_camera/soc_camera.c vdev->fops = &soc_camera_fops; vdev 2043 drivers/staging/media/soc_camera/soc_camera.c vdev->ioctl_ops = &soc_camera_ioctl_ops; vdev 2044 drivers/staging/media/soc_camera/soc_camera.c vdev->release = video_device_release; vdev 2045 drivers/staging/media/soc_camera/soc_camera.c vdev->ctrl_handler = &icd->ctrl_handler; vdev 2046 drivers/staging/media/soc_camera/soc_camera.c vdev->lock = &ici->host_lock; vdev 2048 drivers/staging/media/soc_camera/soc_camera.c icd->vdev = vdev; vdev 2058 drivers/staging/media/soc_camera/soc_camera.c const struct device_type *type = icd->vdev->dev.type; vdev 2064 drivers/staging/media/soc_camera/soc_camera.c video_set_drvdata(icd->vdev, icd); vdev 2065 drivers/staging/media/soc_camera/soc_camera.c if (icd->vdev->tvnorms == 0) { vdev 2067 drivers/staging/media/soc_camera/soc_camera.c v4l2_disable_ioctl(icd->vdev, VIDIOC_G_STD); vdev 2068 drivers/staging/media/soc_camera/soc_camera.c v4l2_disable_ioctl(icd->vdev, VIDIOC_S_STD); vdev 2069 drivers/staging/media/soc_camera/soc_camera.c v4l2_disable_ioctl(icd->vdev, VIDIOC_ENUMSTD); vdev 2071 drivers/staging/media/soc_camera/soc_camera.c ret = video_register_device(icd->vdev, VFL_TYPE_GRABBER, -1); vdev 2078 drivers/staging/media/soc_camera/soc_camera.c icd->vdev->dev.type = type; vdev 41 drivers/staging/most/video/video.c struct video_device *vdev; vdev 72 drivers/staging/most/video/video.c struct video_device *vdev = video_devdata(filp); vdev 76 drivers/staging/most/video/video.c switch (vdev->vfl_type) { vdev 94 drivers/staging/most/video/video.c v4l2_fh_init(&fh->fh, vdev); vdev 314 drivers/staging/most/video/video.c input->std = mdev->vdev->tvnorms; vdev 414 drivers/staging/most/video/video.c mdev->vdev = video_device_alloc(); vdev 415 drivers/staging/most/video/video.c if (!mdev->vdev) vdev 419 drivers/staging/most/video/video.c *mdev->vdev = comp_videodev_template; vdev 420 drivers/staging/most/video/video.c mdev->vdev->v4l2_dev = &mdev->v4l2_dev; vdev 421 drivers/staging/most/video/video.c mdev->vdev->lock = &mdev->lock; vdev 422 drivers/staging/most/video/video.c snprintf(mdev->vdev->name, sizeof(mdev->vdev->name), "MOST: %s", vdev 426 drivers/staging/most/video/video.c video_set_drvdata(mdev->vdev, mdev); vdev 427 drivers/staging/most/video/video.c ret = video_register_device(mdev->vdev, VFL_TYPE_GRABBER, -1); vdev 431 drivers/staging/most/video/video.c video_device_release(mdev->vdev); vdev 439 drivers/staging/most/video/video.c video_unregister_device(mdev->vdev); vdev 1795 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c video_device_node_name(&dev->vdev)); vdev 1797 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c video_unregister_device(&dev->vdev); vdev 1931 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c ret = bm2835_mmal_init_device(dev, &dev->vdev); vdev 40 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.h struct video_device vdev; vdev 501 drivers/staging/vme/devices/vme_user.c static int vme_user_match(struct vme_dev *vdev) vdev 505 drivers/staging/vme/devices/vme_user.c int cur_bus = vme_bus_num(vdev); vdev 506 drivers/staging/vme/devices/vme_user.c int cur_slot = vme_slot_num(vdev); vdev 509 drivers/staging/vme/devices/vme_user.c if ((cur_bus == bus[i]) && (cur_slot == vdev->num)) vdev 520 drivers/staging/vme/devices/vme_user.c static int vme_user_probe(struct vme_dev *vdev) vdev 527 drivers/staging/vme/devices/vme_user.c dev_err(&vdev->dev, "Driver can only be loaded for 1 device\n"); vdev 531 drivers/staging/vme/devices/vme_user.c vme_user_bridge = vdev; vdev 546 drivers/staging/vme/devices/vme_user.c dev_warn(&vdev->dev, "Error getting Major Number %d for driver.\n", vdev 573 drivers/staging/vme/devices/vme_user.c dev_warn(&vdev->dev, vdev 583 drivers/staging/vme/devices/vme_user.c dev_warn(&vdev->dev, vdev 602 drivers/staging/vme/devices/vme_user.c dev_warn(&vdev->dev, vdev 619 drivers/staging/vme/devices/vme_user.c dev_err(&vdev->dev, "Error creating vme_user class.\n"); vdev 648 drivers/staging/vme/devices/vme_user.c dev_info(&vdev->dev, "Error creating sysfs device\n"); vdev 296 drivers/tty/hvc/hvc_vio.c static int hvc_vio_probe(struct vio_dev *vdev, vdev 306 drivers/tty/hvc/hvc_vio.c if (!vdev || !id) vdev 309 drivers/tty/hvc/hvc_vio.c if (of_device_is_compatible(vdev->dev.of_node, "hvterm1")) { vdev 312 drivers/tty/hvc/hvc_vio.c } else if (of_device_is_compatible(vdev->dev.of_node, "hvterm-protocol")) { vdev 316 drivers/tty/hvc/hvc_vio.c pr_err("hvc_vio: Unknown protocol for %pOF\n", vdev->dev.of_node); vdev 321 drivers/tty/hvc/hvc_vio.c vdev->dev.of_node, vdev 326 drivers/tty/hvc/hvc_vio.c vdev->unit_address == hvterm_priv0.termno) { vdev 342 drivers/tty/hvc/hvc_vio.c pv->termno = vdev->unit_address; vdev 350 drivers/tty/hvc/hvc_vio.c hp = hvc_alloc(termno, vdev->irq, ops, MAX_VIO_PUT_CHARS); vdev 353 drivers/tty/hvc/hvc_vio.c dev_set_drvdata(&vdev->dev, hp); vdev 288 drivers/tty/hvc/hvcs.c struct vio_dev *vdev; vdev 423 drivers/tty/hvc/hvcs.c hvcsd->vdev->unit_address, vdev 521 drivers/tty/hvc/hvcs.c vio_disable_interrupts(hvcsd->vdev); vdev 535 drivers/tty/hvc/hvcs.c vio_disable_interrupts(hvcsd->vdev); vdev 546 drivers/tty/hvc/hvcs.c uint32_t unit_address = hvcsd->vdev->unit_address; vdev 584 drivers/tty/hvc/hvcs.c unit_address = hvcsd->vdev->unit_address; vdev 617 drivers/tty/hvc/hvcs.c vio_enable_interrupts(hvcsd->vdev); vdev 687 drivers/tty/hvc/hvcs.c struct vio_dev *vdev; vdev 700 drivers/tty/hvc/hvcs.c hvcsd->vdev->unit_address, vdev 705 drivers/tty/hvc/hvcs.c hvcsd->vdev->unit_address); vdev 707 drivers/tty/hvc/hvcs.c vdev = hvcsd->vdev; vdev 708 drivers/tty/hvc/hvcs.c hvcsd->vdev = NULL; vdev 718 drivers/tty/hvc/hvcs.c sysfs_remove_group(&vdev->dev.kobj, &hvcs_attr_group); vdev 779 drivers/tty/hvc/hvcs.c hvcsd->vdev = dev; vdev 796 drivers/tty/hvc/hvcs.c hvcsd->vdev->unit_address); vdev 811 drivers/tty/hvc/hvcs.c hvcsd->vdev->unit_address); vdev 894 drivers/tty/hvc/hvcs.c uint32_t unit_address = hvcsd->vdev->unit_address; vdev 965 drivers/tty/hvc/hvcs.c unsigned int unit_address = hvcsd->vdev->unit_address; vdev 1017 drivers/tty/hvc/hvcs.c retval = hvcs_free_connection(hvcsd->vdev->unit_address); vdev 1024 drivers/tty/hvc/hvcs.c unsigned int irq, struct vio_dev *vdev) vdev 1039 drivers/tty/hvc/hvcs.c if (vio_enable_interrupts(vdev) == H_SUCCESS) vdev 1089 drivers/tty/hvc/hvcs.c struct vio_dev *vdev; vdev 1126 drivers/tty/hvc/hvcs.c irq = hvcsd->vdev->irq; vdev 1127 drivers/tty/hvc/hvcs.c vdev = hvcsd->vdev; vdev 1128 drivers/tty/hvc/hvcs.c unit_address = hvcsd->vdev->unit_address; vdev 1137 drivers/tty/hvc/hvcs.c retval = hvcs_enable_device(hvcsd, unit_address, irq, vdev); vdev 1150 drivers/tty/hvc/hvcs.c vio_disable_interrupts(hvcsd->vdev); vdev 1176 drivers/tty/hvc/hvcs.c hvcsd->vdev->unit_address ); vdev 1207 drivers/tty/hvc/hvcs.c vio_disable_interrupts(hvcsd->vdev); vdev 1216 drivers/tty/hvc/hvcs.c irq = hvcsd->vdev->irq; vdev 1232 drivers/tty/hvc/hvcs.c hvcsd->vdev->unit_address, hvcsd->port.count); vdev 1261 drivers/tty/hvc/hvcs.c vio_disable_interrupts(hvcsd->vdev); vdev 1276 drivers/tty/hvc/hvcs.c irq = hvcsd->vdev->irq; vdev 1345 drivers/tty/hvc/hvcs.c unit_address = hvcsd->vdev->unit_address; vdev 269 drivers/tty/vcc.c disable_irq_nosync(vio->vdev->rx_irq); vdev 377 drivers/tty/vcc.c enable_irq(vio->vdev->rx_irq); vdev 568 drivers/tty/vcc.c static int vcc_probe(struct vio_dev *vdev, const struct vio_device_id *id) vdev 578 drivers/tty/vcc.c vccdbg("VCC: name=%s\n", dev_name(&vdev->dev)); vdev 589 drivers/tty/vcc.c name = kstrdup(dev_name(&vdev->dev), GFP_KERNEL); vdev 591 drivers/tty/vcc.c rv = vio_driver_init(&port->vio, vdev, VDEV_CONSOLE_CON, vcc_versions, vdev 612 drivers/tty/vcc.c dev = tty_register_device(vcc_tty_driver, port->index, &vdev->dev); vdev 620 drivers/tty/vcc.c node = vio_vdev_node(hp, vdev); vdev 637 drivers/tty/vcc.c rv = sysfs_create_group(&vdev->dev.kobj, &vcc_attribute_group); vdev 644 drivers/tty/vcc.c dev_set_drvdata(&vdev->dev, port); vdev 649 drivers/tty/vcc.c disable_irq_nosync(vdev->rx_irq); vdev 651 drivers/tty/vcc.c enable_irq(vdev->rx_irq); vdev 679 drivers/tty/vcc.c static int vcc_remove(struct vio_dev *vdev) vdev 681 drivers/tty/vcc.c struct vcc_port *port = dev_get_drvdata(&vdev->dev); vdev 708 drivers/tty/vcc.c sysfs_remove_group(&vdev->dev.kobj, &vcc_attribute_group); vdev 709 drivers/tty/vcc.c dev_set_drvdata(&vdev->dev, NULL); vdev 218 drivers/usb/gadget/function/f_uvc.c v4l2_event_queue(&uvc->vdev, &v4l2_event); vdev 247 drivers/usb/gadget/function/f_uvc.c v4l2_event_queue(&uvc->vdev, &v4l2_event); vdev 302 drivers/usb/gadget/function/f_uvc.c v4l2_event_queue(&uvc->vdev, &v4l2_event); vdev 328 drivers/usb/gadget/function/f_uvc.c v4l2_event_queue(&uvc->vdev, &v4l2_event); vdev 351 drivers/usb/gadget/function/f_uvc.c v4l2_event_queue(&uvc->vdev, &v4l2_event); vdev 369 drivers/usb/gadget/function/f_uvc.c v4l2_event_queue(&uvc->vdev, &v4l2_event); vdev 420 drivers/usb/gadget/function/f_uvc.c uvc->vdev.v4l2_dev = &uvc->v4l2_dev; vdev 421 drivers/usb/gadget/function/f_uvc.c uvc->vdev.fops = &uvc_v4l2_fops; vdev 422 drivers/usb/gadget/function/f_uvc.c uvc->vdev.ioctl_ops = &uvc_v4l2_ioctl_ops; vdev 423 drivers/usb/gadget/function/f_uvc.c uvc->vdev.release = video_device_release_empty; vdev 424 drivers/usb/gadget/function/f_uvc.c uvc->vdev.vfl_dir = VFL_DIR_TX; vdev 425 drivers/usb/gadget/function/f_uvc.c uvc->vdev.lock = &uvc->video.mutex; vdev 426 drivers/usb/gadget/function/f_uvc.c uvc->vdev.device_caps = V4L2_CAP_VIDEO_OUTPUT | V4L2_CAP_STREAMING; vdev 427 drivers/usb/gadget/function/f_uvc.c strlcpy(uvc->vdev.name, cdev->gadget->name, sizeof(uvc->vdev.name)); vdev 429 drivers/usb/gadget/function/f_uvc.c video_set_drvdata(&uvc->vdev, uvc); vdev 431 drivers/usb/gadget/function/f_uvc.c ret = video_register_device(&uvc->vdev, VFL_TYPE_GRABBER, -1); vdev 435 drivers/usb/gadget/function/f_uvc.c ret = device_create_file(&uvc->vdev.dev, &dev_attr_function_name); vdev 437 drivers/usb/gadget/function/f_uvc.c video_unregister_device(&uvc->vdev); vdev 887 drivers/usb/gadget/function/f_uvc.c device_remove_file(&uvc->vdev.dev, &dev_attr_function_name); vdev 888 drivers/usb/gadget/function/f_uvc.c video_unregister_device(&uvc->vdev); vdev 113 drivers/usb/gadget/function/uvc.h struct video_device vdev; vdev 66 drivers/usb/gadget/function/uvc_v4l2.c struct video_device *vdev = video_devdata(file); vdev 67 drivers/usb/gadget/function/uvc_v4l2.c struct uvc_device *uvc = video_get_drvdata(vdev); vdev 80 drivers/usb/gadget/function/uvc_v4l2.c struct video_device *vdev = video_devdata(file); vdev 81 drivers/usb/gadget/function/uvc_v4l2.c struct uvc_device *uvc = video_get_drvdata(vdev); vdev 99 drivers/usb/gadget/function/uvc_v4l2.c struct video_device *vdev = video_devdata(file); vdev 100 drivers/usb/gadget/function/uvc_v4l2.c struct uvc_device *uvc = video_get_drvdata(vdev); vdev 140 drivers/usb/gadget/function/uvc_v4l2.c struct video_device *vdev = video_devdata(file); vdev 141 drivers/usb/gadget/function/uvc_v4l2.c struct uvc_device *uvc = video_get_drvdata(vdev); vdev 153 drivers/usb/gadget/function/uvc_v4l2.c struct video_device *vdev = video_devdata(file); vdev 154 drivers/usb/gadget/function/uvc_v4l2.c struct uvc_device *uvc = video_get_drvdata(vdev); vdev 163 drivers/usb/gadget/function/uvc_v4l2.c struct video_device *vdev = video_devdata(file); vdev 164 drivers/usb/gadget/function/uvc_v4l2.c struct uvc_device *uvc = video_get_drvdata(vdev); vdev 178 drivers/usb/gadget/function/uvc_v4l2.c struct video_device *vdev = video_devdata(file); vdev 179 drivers/usb/gadget/function/uvc_v4l2.c struct uvc_device *uvc = video_get_drvdata(vdev); vdev 188 drivers/usb/gadget/function/uvc_v4l2.c struct video_device *vdev = video_devdata(file); vdev 189 drivers/usb/gadget/function/uvc_v4l2.c struct uvc_device *uvc = video_get_drvdata(vdev); vdev 214 drivers/usb/gadget/function/uvc_v4l2.c struct video_device *vdev = video_devdata(file); vdev 215 drivers/usb/gadget/function/uvc_v4l2.c struct uvc_device *uvc = video_get_drvdata(vdev); vdev 245 drivers/usb/gadget/function/uvc_v4l2.c struct video_device *vdev = video_devdata(file); vdev 246 drivers/usb/gadget/function/uvc_v4l2.c struct uvc_device *uvc = video_get_drvdata(vdev); vdev 279 drivers/usb/gadget/function/uvc_v4l2.c struct video_device *vdev = video_devdata(file); vdev 280 drivers/usb/gadget/function/uvc_v4l2.c struct uvc_device *uvc = video_get_drvdata(vdev); vdev 287 drivers/usb/gadget/function/uvc_v4l2.c v4l2_fh_init(&handle->vfh, vdev); vdev 300 drivers/usb/gadget/function/uvc_v4l2.c struct video_device *vdev = video_devdata(file); vdev 301 drivers/usb/gadget/function/uvc_v4l2.c struct uvc_device *uvc = video_get_drvdata(vdev); vdev 323 drivers/usb/gadget/function/uvc_v4l2.c struct video_device *vdev = video_devdata(file); vdev 324 drivers/usb/gadget/function/uvc_v4l2.c struct uvc_device *uvc = video_get_drvdata(vdev); vdev 332 drivers/usb/gadget/function/uvc_v4l2.c struct video_device *vdev = video_devdata(file); vdev 333 drivers/usb/gadget/function/uvc_v4l2.c struct uvc_device *uvc = video_get_drvdata(vdev); vdev 343 drivers/usb/gadget/function/uvc_v4l2.c struct video_device *vdev = video_devdata(file); vdev 344 drivers/usb/gadget/function/uvc_v4l2.c struct uvc_device *uvc = video_get_drvdata(vdev); vdev 938 drivers/usb/host/xhci-mem.c struct xhci_virt_device *vdev; vdev 943 drivers/usb/host/xhci-mem.c vdev = xhci->devs[slot_id]; vdev 944 drivers/usb/host/xhci-mem.c if (!vdev) vdev 947 drivers/usb/host/xhci-mem.c if (vdev->real_port == 0 || vdev 948 drivers/usb/host/xhci-mem.c vdev->real_port > HCS_MAX_PORTS(xhci->hcs_params1)) { vdev 953 drivers/usb/host/xhci-mem.c tt_list_head = &(xhci->rh_bw[vdev->real_port - 1].tts); vdev 959 drivers/usb/host/xhci-mem.c vdev = xhci->devs[i]; vdev 960 drivers/usb/host/xhci-mem.c if (vdev && (vdev->tt_info == tt_info)) vdev 486 drivers/usb/host/xhci-ring.c static u64 xhci_get_hw_deq(struct xhci_hcd *xhci, struct xhci_virt_device *vdev, vdev 493 drivers/usb/host/xhci-ring.c ep = &vdev->eps[ep_index]; vdev 499 drivers/usb/host/xhci-ring.c ep_ctx = xhci_get_ep_ctx(xhci, vdev->out_ctx, ep_index); vdev 726 drivers/usb/host/xhci-ring.c struct xhci_virt_device *vdev; vdev 741 drivers/usb/host/xhci-ring.c vdev = xhci->devs[slot_id]; vdev 742 drivers/usb/host/xhci-ring.c ep_ctx = xhci_get_ep_ctx(xhci, vdev->out_ctx, ep_index); vdev 788 drivers/usb/host/xhci-ring.c hw_deq = xhci_get_hw_deq(xhci, vdev, ep_index, vdev 1151 drivers/usb/host/xhci-ring.c struct xhci_virt_device *vdev; vdev 1156 drivers/usb/host/xhci-ring.c vdev = xhci->devs[slot_id]; vdev 1157 drivers/usb/host/xhci-ring.c ep_ctx = xhci_get_ep_ctx(xhci, vdev->out_ctx, ep_index); vdev 1279 drivers/usb/host/xhci-ring.c struct xhci_virt_device *vdev; vdev 1282 drivers/usb/host/xhci-ring.c vdev = xhci->devs[slot_id]; vdev 1283 drivers/usb/host/xhci-ring.c slot_ctx = xhci_get_slot_ctx(xhci, vdev->out_ctx); vdev 1290 drivers/usb/host/xhci-ring.c struct xhci_virt_device *vdev; vdev 1293 drivers/usb/host/xhci-ring.c vdev = xhci->devs[slot_id]; vdev 1294 drivers/usb/host/xhci-ring.c slot_ctx = xhci_get_slot_ctx(xhci, vdev->out_ctx); vdev 175 drivers/usb/host/xhci-trace.h TP_PROTO(struct xhci_virt_device *vdev), vdev 176 drivers/usb/host/xhci-trace.h TP_ARGS(vdev), vdev 178 drivers/usb/host/xhci-trace.h __field(void *, vdev) vdev 187 drivers/usb/host/xhci-trace.h __entry->vdev = vdev; vdev 188 drivers/usb/host/xhci-trace.h __entry->in_ctx = (unsigned long long) vdev->in_ctx->dma; vdev 189 drivers/usb/host/xhci-trace.h __entry->out_ctx = (unsigned long long) vdev->out_ctx->dma; vdev 190 drivers/usb/host/xhci-trace.h __entry->fake_port = (u8) vdev->fake_port; vdev 191 drivers/usb/host/xhci-trace.h __entry->real_port = (u8) vdev->real_port; vdev 192 drivers/usb/host/xhci-trace.h __entry->current_mel = (u16) vdev->current_mel; vdev 195 drivers/usb/host/xhci-trace.h __entry->vdev, __entry->in_ctx, __entry->out_ctx, vdev 201 drivers/usb/host/xhci-trace.h TP_PROTO(struct xhci_virt_device *vdev), vdev 202 drivers/usb/host/xhci-trace.h TP_ARGS(vdev) vdev 206 drivers/usb/host/xhci-trace.h TP_PROTO(struct xhci_virt_device *vdev), vdev 207 drivers/usb/host/xhci-trace.h TP_ARGS(vdev), vdev 209 drivers/usb/host/xhci-trace.h __field(void *, vdev) vdev 220 drivers/usb/host/xhci-trace.h __entry->vdev = vdev; vdev 221 drivers/usb/host/xhci-trace.h __entry->in_ctx = (unsigned long long) vdev->in_ctx->dma; vdev 222 drivers/usb/host/xhci-trace.h __entry->out_ctx = (unsigned long long) vdev->out_ctx->dma; vdev 223 drivers/usb/host/xhci-trace.h __entry->devnum = vdev->udev->devnum; vdev 224 drivers/usb/host/xhci-trace.h __entry->state = vdev->udev->state; vdev 225 drivers/usb/host/xhci-trace.h __entry->speed = vdev->udev->speed; vdev 226 drivers/usb/host/xhci-trace.h __entry->portnum = vdev->udev->portnum; vdev 227 drivers/usb/host/xhci-trace.h __entry->level = vdev->udev->level; vdev 228 drivers/usb/host/xhci-trace.h __entry->slot_id = vdev->udev->slot_id; vdev 231 drivers/usb/host/xhci-trace.h __entry->vdev, __entry->in_ctx, __entry->out_ctx, vdev 238 drivers/usb/host/xhci-trace.h TP_PROTO(struct xhci_virt_device *vdev), vdev 239 drivers/usb/host/xhci-trace.h TP_ARGS(vdev) vdev 243 drivers/usb/host/xhci-trace.h TP_PROTO(struct xhci_virt_device *vdev), vdev 244 drivers/usb/host/xhci-trace.h TP_ARGS(vdev) vdev 248 drivers/usb/host/xhci-trace.h TP_PROTO(struct xhci_virt_device *vdev), vdev 249 drivers/usb/host/xhci-trace.h TP_ARGS(vdev) vdev 253 drivers/usb/host/xhci-trace.h TP_PROTO(struct xhci_virt_device *vdev), vdev 254 drivers/usb/host/xhci-trace.h TP_ARGS(vdev) vdev 1611 drivers/usb/host/xhci.c struct xhci_virt_device *vdev; vdev 1624 drivers/usb/host/xhci.c vdev = xhci->devs[urb->dev->slot_id]; vdev 1626 drivers/usb/host/xhci.c if (!vdev || !urb_priv) vdev 1630 drivers/usb/host/xhci.c ep = &vdev->eps[ep_index]; vdev 2839 drivers/usb/host/xhci.c struct xhci_virt_device *vdev, int i) vdev 2841 drivers/usb/host/xhci.c struct xhci_virt_ep *ep = &vdev->eps[i]; vdev 3077 drivers/usb/host/xhci.c struct xhci_virt_device *vdev; vdev 3091 drivers/usb/host/xhci.c vdev = xhci->devs[udev->slot_id]; vdev 3092 drivers/usb/host/xhci.c if (!vdev) vdev 3096 drivers/usb/host/xhci.c ep = &vdev->eps[ep_index]; vdev 3132 drivers/usb/host/xhci.c struct xhci_virt_device *vdev; vdev 3145 drivers/usb/host/xhci.c vdev = xhci->devs[udev->slot_id]; vdev 3152 drivers/usb/host/xhci.c if (!udev->slot_id || !vdev) vdev 3155 drivers/usb/host/xhci.c ep = &vdev->eps[ep_index]; vdev 3219 drivers/usb/host/xhci.c xhci_setup_input_ctx_for_config_ep(xhci, cfg_cmd->in_ctx, vdev->out_ctx, vdev 3221 drivers/usb/host/xhci.c xhci_endpoint_copy(xhci, cfg_cmd->in_ctx, vdev->out_ctx, ep_index); vdev 3405 drivers/usb/host/xhci.c struct xhci_virt_device *vdev; vdev 3463 drivers/usb/host/xhci.c vdev = xhci->devs[udev->slot_id]; vdev 3469 drivers/usb/host/xhci.c vdev->eps[ep_index].ep_state |= EP_GETTING_STREAMS; vdev 3484 drivers/usb/host/xhci.c vdev->eps[ep_index].stream_info = xhci_alloc_stream_info(xhci, vdev 3488 drivers/usb/host/xhci.c if (!vdev->eps[ep_index].stream_info) vdev 3503 drivers/usb/host/xhci.c vdev->out_ctx, ep_index); vdev 3505 drivers/usb/host/xhci.c vdev->eps[ep_index].stream_info); vdev 3511 drivers/usb/host/xhci.c vdev->out_ctx, ctrl_ctx, vdev 3528 drivers/usb/host/xhci.c vdev->eps[ep_index].ep_state &= ~EP_GETTING_STREAMS; vdev 3531 drivers/usb/host/xhci.c vdev->eps[ep_index].ep_state |= EP_HAS_STREAMS; vdev 3543 drivers/usb/host/xhci.c xhci_free_stream_info(xhci, vdev->eps[ep_index].stream_info); vdev 3544 drivers/usb/host/xhci.c vdev->eps[ep_index].stream_info = NULL; vdev 3548 drivers/usb/host/xhci.c vdev->eps[ep_index].ep_state &= ~EP_GETTING_STREAMS; vdev 3549 drivers/usb/host/xhci.c vdev->eps[ep_index].ep_state &= ~EP_HAS_STREAMS; vdev 3550 drivers/usb/host/xhci.c xhci_endpoint_zero(xhci, vdev, eps[i]); vdev 3568 drivers/usb/host/xhci.c struct xhci_virt_device *vdev; vdev 3576 drivers/usb/host/xhci.c vdev = xhci->devs[udev->slot_id]; vdev 3592 drivers/usb/host/xhci.c command = vdev->eps[ep_index].stream_info->free_streams_command; vdev 3610 drivers/usb/host/xhci.c vdev->out_ctx, ep_index); vdev 3612 drivers/usb/host/xhci.c &vdev->eps[ep_index]); vdev 3615 drivers/usb/host/xhci.c vdev->out_ctx, ctrl_ctx, vdev 3634 drivers/usb/host/xhci.c xhci_free_stream_info(xhci, vdev->eps[ep_index].stream_info); vdev 3635 drivers/usb/host/xhci.c vdev->eps[ep_index].stream_info = NULL; vdev 3639 drivers/usb/host/xhci.c vdev->eps[ep_index].ep_state &= ~EP_GETTING_NO_STREAMS; vdev 3640 drivers/usb/host/xhci.c vdev->eps[ep_index].ep_state &= ~EP_HAS_STREAMS; vdev 3960 drivers/usb/host/xhci.c struct xhci_virt_device *vdev; vdev 4015 drivers/usb/host/xhci.c vdev = xhci->devs[slot_id]; vdev 4016 drivers/usb/host/xhci.c slot_ctx = xhci_get_slot_ctx(xhci, vdev->out_ctx); vdev 5012 drivers/usb/host/xhci.c struct xhci_virt_device *vdev; vdev 5024 drivers/usb/host/xhci.c vdev = xhci->devs[hdev->slot_id]; vdev 5025 drivers/usb/host/xhci.c if (!vdev) { vdev 5044 drivers/usb/host/xhci.c xhci_alloc_tt_info(xhci, vdev, hdev, tt, GFP_ATOMIC)) { vdev 5051 drivers/usb/host/xhci.c xhci_slot_copy(xhci, config_cmd->in_ctx, vdev->out_ctx); vdev 56 drivers/usb/usbip/vhci.h struct vhci_device *vdev; vdev 118 drivers/usb/usbip/vhci.h struct vhci_device vdev[VHCI_HC_PORTS]; vdev 126 drivers/usb/usbip/vhci.h void rh_port_connect(struct vhci_device *vdev, enum usb_device_speed speed); vdev 133 drivers/usb/usbip/vhci.h struct urb *pickup_urb_and_free_priv(struct vhci_device *vdev, __u32 seqnum); vdev 169 drivers/usb/usbip/vhci.h static inline struct vhci_hcd *vdev_to_vhci_hcd(struct vhci_device *vdev) vdev 171 drivers/usb/usbip/vhci.h return container_of((void *)(vdev - vdev->rhport), struct vhci_hcd, vdev); vdev 153 drivers/usb/usbip/vhci_hcd.c void rh_port_connect(struct vhci_device *vdev, enum usb_device_speed speed) vdev 155 drivers/usb/usbip/vhci_hcd.c struct vhci_hcd *vhci_hcd = vdev_to_vhci_hcd(vdev); vdev 157 drivers/usb/usbip/vhci_hcd.c int rhport = vdev->rhport; vdev 187 drivers/usb/usbip/vhci_hcd.c static void rh_port_disconnect(struct vhci_device *vdev) vdev 189 drivers/usb/usbip/vhci_hcd.c struct vhci_hcd *vhci_hcd = vdev_to_vhci_hcd(vdev); vdev 191 drivers/usb/usbip/vhci_hcd.c int rhport = vdev->rhport; vdev 456 drivers/usb/usbip/vhci_hcd.c if (vhci_hcd->vdev[rhport].ud.status == vdev 461 drivers/usb/usbip/vhci_hcd.c vhci_hcd->vdev[rhport].ud.status); vdev 467 drivers/usb/usbip/vhci_hcd.c switch (vhci_hcd->vdev[rhport].speed) { vdev 655 drivers/usb/usbip/vhci_hcd.c static void vhci_tx_urb(struct urb *urb, struct vhci_device *vdev) vdev 658 drivers/usb/usbip/vhci_hcd.c struct vhci_hcd *vhci_hcd = vdev_to_vhci_hcd(vdev); vdev 663 drivers/usb/usbip/vhci_hcd.c usbip_event_add(&vdev->ud, VDEV_EVENT_ERROR_MALLOC); vdev 667 drivers/usb/usbip/vhci_hcd.c spin_lock_irqsave(&vdev->priv_lock, flags); vdev 673 drivers/usb/usbip/vhci_hcd.c priv->vdev = vdev; vdev 678 drivers/usb/usbip/vhci_hcd.c list_add_tail(&priv->list, &vdev->priv_tx); vdev 680 drivers/usb/usbip/vhci_hcd.c wake_up(&vdev->waitq_tx); vdev 681 drivers/usb/usbip/vhci_hcd.c spin_unlock_irqrestore(&vdev->priv_lock, flags); vdev 691 drivers/usb/usbip/vhci_hcd.c struct vhci_device *vdev; vdev 698 drivers/usb/usbip/vhci_hcd.c vdev = &vhci_hcd->vdev[portnum-1]; vdev 715 drivers/usb/usbip/vhci_hcd.c spin_lock(&vdev->ud.lock); vdev 716 drivers/usb/usbip/vhci_hcd.c if (vdev->ud.status == VDEV_ST_NULL || vdev 717 drivers/usb/usbip/vhci_hcd.c vdev->ud.status == VDEV_ST_ERROR) { vdev 718 drivers/usb/usbip/vhci_hcd.c dev_err(dev, "enqueue for inactive port %d\n", vdev->rhport); vdev 719 drivers/usb/usbip/vhci_hcd.c spin_unlock(&vdev->ud.lock); vdev 723 drivers/usb/usbip/vhci_hcd.c spin_unlock(&vdev->ud.lock); vdev 753 drivers/usb/usbip/vhci_hcd.c ctrlreq->wValue, vdev->rhport); vdev 755 drivers/usb/usbip/vhci_hcd.c usb_put_dev(vdev->udev); vdev 756 drivers/usb/usbip/vhci_hcd.c vdev->udev = usb_get_dev(urb->dev); vdev 758 drivers/usb/usbip/vhci_hcd.c spin_lock(&vdev->ud.lock); vdev 759 drivers/usb/usbip/vhci_hcd.c vdev->ud.status = VDEV_ST_USED; vdev 760 drivers/usb/usbip/vhci_hcd.c spin_unlock(&vdev->ud.lock); vdev 775 drivers/usb/usbip/vhci_hcd.c usb_put_dev(vdev->udev); vdev 776 drivers/usb/usbip/vhci_hcd.c vdev->udev = usb_get_dev(urb->dev); vdev 792 drivers/usb/usbip/vhci_hcd.c vhci_tx_urb(urb, vdev); vdev 857 drivers/usb/usbip/vhci_hcd.c struct vhci_device *vdev; vdev 881 drivers/usb/usbip/vhci_hcd.c vdev = priv->vdev; vdev 883 drivers/usb/usbip/vhci_hcd.c if (!vdev->ud.tcp_socket) { vdev 885 drivers/usb/usbip/vhci_hcd.c spin_lock(&vdev->priv_lock); vdev 891 drivers/usb/usbip/vhci_hcd.c spin_unlock(&vdev->priv_lock); vdev 908 drivers/usb/usbip/vhci_hcd.c spin_lock(&vdev->priv_lock); vdev 913 drivers/usb/usbip/vhci_hcd.c spin_unlock(&vdev->priv_lock); vdev 915 drivers/usb/usbip/vhci_hcd.c usbip_event_add(&vdev->ud, VDEV_EVENT_ERROR_MALLOC); vdev 927 drivers/usb/usbip/vhci_hcd.c list_add_tail(&unlink->list, &vdev->unlink_tx); vdev 928 drivers/usb/usbip/vhci_hcd.c wake_up(&vdev->waitq_tx); vdev 930 drivers/usb/usbip/vhci_hcd.c spin_unlock(&vdev->priv_lock); vdev 939 drivers/usb/usbip/vhci_hcd.c static void vhci_device_unlink_cleanup(struct vhci_device *vdev) vdev 941 drivers/usb/usbip/vhci_hcd.c struct vhci_hcd *vhci_hcd = vdev_to_vhci_hcd(vdev); vdev 948 drivers/usb/usbip/vhci_hcd.c spin_lock(&vdev->priv_lock); vdev 950 drivers/usb/usbip/vhci_hcd.c list_for_each_entry_safe(unlink, tmp, &vdev->unlink_tx, list) { vdev 956 drivers/usb/usbip/vhci_hcd.c while (!list_empty(&vdev->unlink_rx)) { vdev 959 drivers/usb/usbip/vhci_hcd.c unlink = list_first_entry(&vdev->unlink_rx, struct vhci_unlink, vdev 965 drivers/usb/usbip/vhci_hcd.c urb = pickup_urb_and_free_priv(vdev, unlink->unlink_seqnum); vdev 980 drivers/usb/usbip/vhci_hcd.c spin_unlock(&vdev->priv_lock); vdev 986 drivers/usb/usbip/vhci_hcd.c spin_lock(&vdev->priv_lock); vdev 991 drivers/usb/usbip/vhci_hcd.c spin_unlock(&vdev->priv_lock); vdev 1002 drivers/usb/usbip/vhci_hcd.c struct vhci_device *vdev = container_of(ud, struct vhci_device, ud); vdev 1011 drivers/usb/usbip/vhci_hcd.c if (vdev->ud.tcp_rx) { vdev 1012 drivers/usb/usbip/vhci_hcd.c kthread_stop_put(vdev->ud.tcp_rx); vdev 1013 drivers/usb/usbip/vhci_hcd.c vdev->ud.tcp_rx = NULL; vdev 1015 drivers/usb/usbip/vhci_hcd.c if (vdev->ud.tcp_tx) { vdev 1016 drivers/usb/usbip/vhci_hcd.c kthread_stop_put(vdev->ud.tcp_tx); vdev 1017 drivers/usb/usbip/vhci_hcd.c vdev->ud.tcp_tx = NULL; vdev 1022 drivers/usb/usbip/vhci_hcd.c if (vdev->ud.tcp_socket) { vdev 1023 drivers/usb/usbip/vhci_hcd.c sockfd_put(vdev->ud.tcp_socket); vdev 1024 drivers/usb/usbip/vhci_hcd.c vdev->ud.tcp_socket = NULL; vdev 1025 drivers/usb/usbip/vhci_hcd.c vdev->ud.sockfd = -1; vdev 1029 drivers/usb/usbip/vhci_hcd.c vhci_device_unlink_cleanup(vdev); vdev 1051 drivers/usb/usbip/vhci_hcd.c rh_port_disconnect(vdev); vdev 1058 drivers/usb/usbip/vhci_hcd.c struct vhci_device *vdev = container_of(ud, struct vhci_device, ud); vdev 1063 drivers/usb/usbip/vhci_hcd.c vdev->speed = 0; vdev 1064 drivers/usb/usbip/vhci_hcd.c vdev->devid = 0; vdev 1066 drivers/usb/usbip/vhci_hcd.c usb_put_dev(vdev->udev); vdev 1067 drivers/usb/usbip/vhci_hcd.c vdev->udev = NULL; vdev 1088 drivers/usb/usbip/vhci_hcd.c static void vhci_device_init(struct vhci_device *vdev) vdev 1090 drivers/usb/usbip/vhci_hcd.c memset(vdev, 0, sizeof(struct vhci_device)); vdev 1092 drivers/usb/usbip/vhci_hcd.c vdev->ud.side = USBIP_VHCI; vdev 1093 drivers/usb/usbip/vhci_hcd.c vdev->ud.status = VDEV_ST_NULL; vdev 1094 drivers/usb/usbip/vhci_hcd.c spin_lock_init(&vdev->ud.lock); vdev 1096 drivers/usb/usbip/vhci_hcd.c INIT_LIST_HEAD(&vdev->priv_rx); vdev 1097 drivers/usb/usbip/vhci_hcd.c INIT_LIST_HEAD(&vdev->priv_tx); vdev 1098 drivers/usb/usbip/vhci_hcd.c INIT_LIST_HEAD(&vdev->unlink_tx); vdev 1099 drivers/usb/usbip/vhci_hcd.c INIT_LIST_HEAD(&vdev->unlink_rx); vdev 1100 drivers/usb/usbip/vhci_hcd.c spin_lock_init(&vdev->priv_lock); vdev 1102 drivers/usb/usbip/vhci_hcd.c init_waitqueue_head(&vdev->waitq_tx); vdev 1104 drivers/usb/usbip/vhci_hcd.c vdev->ud.eh_ops.shutdown = vhci_shutdown_connection; vdev 1105 drivers/usb/usbip/vhci_hcd.c vdev->ud.eh_ops.reset = vhci_device_reset; vdev 1106 drivers/usb/usbip/vhci_hcd.c vdev->ud.eh_ops.unusable = vhci_device_unusable; vdev 1108 drivers/usb/usbip/vhci_hcd.c usbip_start_eh(&vdev->ud); vdev 1173 drivers/usb/usbip/vhci_hcd.c struct vhci_device *vdev = &vhci_hcd->vdev[rhport]; vdev 1175 drivers/usb/usbip/vhci_hcd.c vhci_device_init(vdev); vdev 1176 drivers/usb/usbip/vhci_hcd.c vdev->rhport = rhport; vdev 1229 drivers/usb/usbip/vhci_hcd.c struct vhci_device *vdev = &vhci_hcd->vdev[rhport]; vdev 1231 drivers/usb/usbip/vhci_hcd.c usbip_event_add(&vdev->ud, VDEV_EVENT_REMOVED); vdev 1232 drivers/usb/usbip/vhci_hcd.c usbip_stop_eh(&vdev->ud); vdev 13 drivers/usb/usbip/vhci_rx.c struct urb *pickup_urb_and_free_priv(struct vhci_device *vdev, __u32 seqnum) vdev 19 drivers/usb/usbip/vhci_rx.c list_for_each_entry_safe(priv, tmp, &vdev->priv_rx, list) { vdev 55 drivers/usb/usbip/vhci_rx.c static void vhci_recv_ret_submit(struct vhci_device *vdev, vdev 58 drivers/usb/usbip/vhci_rx.c struct vhci_hcd *vhci_hcd = vdev_to_vhci_hcd(vdev); vdev 60 drivers/usb/usbip/vhci_rx.c struct usbip_device *ud = &vdev->ud; vdev 64 drivers/usb/usbip/vhci_rx.c spin_lock_irqsave(&vdev->priv_lock, flags); vdev 65 drivers/usb/usbip/vhci_rx.c urb = pickup_urb_and_free_priv(vdev, pdu->base.seqnum); vdev 66 drivers/usb/usbip/vhci_rx.c spin_unlock_irqrestore(&vdev->priv_lock, flags); vdev 112 drivers/usb/usbip/vhci_rx.c static struct vhci_unlink *dequeue_pending_unlink(struct vhci_device *vdev, vdev 118 drivers/usb/usbip/vhci_rx.c spin_lock_irqsave(&vdev->priv_lock, flags); vdev 120 drivers/usb/usbip/vhci_rx.c list_for_each_entry_safe(unlink, tmp, &vdev->unlink_rx, list) { vdev 127 drivers/usb/usbip/vhci_rx.c spin_unlock_irqrestore(&vdev->priv_lock, flags); vdev 132 drivers/usb/usbip/vhci_rx.c spin_unlock_irqrestore(&vdev->priv_lock, flags); vdev 137 drivers/usb/usbip/vhci_rx.c static void vhci_recv_ret_unlink(struct vhci_device *vdev, vdev 140 drivers/usb/usbip/vhci_rx.c struct vhci_hcd *vhci_hcd = vdev_to_vhci_hcd(vdev); vdev 148 drivers/usb/usbip/vhci_rx.c unlink = dequeue_pending_unlink(vdev, pdu); vdev 155 drivers/usb/usbip/vhci_rx.c spin_lock_irqsave(&vdev->priv_lock, flags); vdev 156 drivers/usb/usbip/vhci_rx.c urb = pickup_urb_and_free_priv(vdev, unlink->unlink_seqnum); vdev 157 drivers/usb/usbip/vhci_rx.c spin_unlock_irqrestore(&vdev->priv_lock, flags); vdev 184 drivers/usb/usbip/vhci_rx.c static int vhci_priv_tx_empty(struct vhci_device *vdev) vdev 189 drivers/usb/usbip/vhci_rx.c spin_lock_irqsave(&vdev->priv_lock, flags); vdev 190 drivers/usb/usbip/vhci_rx.c empty = list_empty(&vdev->priv_rx); vdev 191 drivers/usb/usbip/vhci_rx.c spin_unlock_irqrestore(&vdev->priv_lock, flags); vdev 201 drivers/usb/usbip/vhci_rx.c struct vhci_device *vdev = container_of(ud, struct vhci_device, ud); vdev 214 drivers/usb/usbip/vhci_rx.c if (vhci_priv_tx_empty(vdev)) vdev 242 drivers/usb/usbip/vhci_rx.c vhci_recv_ret_submit(vdev, &pdu); vdev 245 drivers/usb/usbip/vhci_rx.c vhci_recv_ret_unlink(vdev, &pdu); vdev 38 drivers/usb/usbip/vhci_sysfs.c static void port_show_vhci(char **out, int hub, int port, struct vhci_device *vdev) vdev 42 drivers/usb/usbip/vhci_sysfs.c port, vdev->ud.status); vdev 45 drivers/usb/usbip/vhci_sysfs.c port, vdev->ud.status); vdev 47 drivers/usb/usbip/vhci_sysfs.c if (vdev->ud.status == VDEV_ST_USED) { vdev 49 drivers/usb/usbip/vhci_sysfs.c vdev->speed, vdev->devid); vdev 51 drivers/usb/usbip/vhci_sysfs.c vdev->ud.sockfd, vdev 52 drivers/usb/usbip/vhci_sysfs.c dev_name(&vdev->udev->dev)); vdev 85 drivers/usb/usbip/vhci_sysfs.c struct vhci_device *vdev = &vhci->vhci_hcd_hs->vdev[i]; vdev 87 drivers/usb/usbip/vhci_sysfs.c spin_lock(&vdev->ud.lock); vdev 89 drivers/usb/usbip/vhci_sysfs.c pdev_nr * VHCI_PORTS + i, vdev); vdev 90 drivers/usb/usbip/vhci_sysfs.c spin_unlock(&vdev->ud.lock); vdev 94 drivers/usb/usbip/vhci_sysfs.c struct vhci_device *vdev = &vhci->vhci_hcd_ss->vdev[i]; vdev 96 drivers/usb/usbip/vhci_sysfs.c spin_lock(&vdev->ud.lock); vdev 98 drivers/usb/usbip/vhci_sysfs.c pdev_nr * VHCI_PORTS + VHCI_HC_PORTS + i, vdev); vdev 99 drivers/usb/usbip/vhci_sysfs.c spin_unlock(&vdev->ud.lock); vdev 182 drivers/usb/usbip/vhci_sysfs.c struct vhci_device *vdev = &vhci_hcd->vdev[rhport]; vdev 190 drivers/usb/usbip/vhci_sysfs.c spin_lock(&vdev->ud.lock); vdev 192 drivers/usb/usbip/vhci_sysfs.c if (vdev->ud.status == VDEV_ST_NULL) { vdev 193 drivers/usb/usbip/vhci_sysfs.c pr_err("not connected %d\n", vdev->ud.status); vdev 196 drivers/usb/usbip/vhci_sysfs.c spin_unlock(&vdev->ud.lock); vdev 203 drivers/usb/usbip/vhci_sysfs.c spin_unlock(&vdev->ud.lock); vdev 206 drivers/usb/usbip/vhci_sysfs.c usbip_event_add(&vdev->ud, VDEV_EVENT_DOWN); vdev 311 drivers/usb/usbip/vhci_sysfs.c struct vhci_device *vdev; vdev 346 drivers/usb/usbip/vhci_sysfs.c vdev = &vhci->vhci_hcd_ss->vdev[rhport]; vdev 348 drivers/usb/usbip/vhci_sysfs.c vdev = &vhci->vhci_hcd_hs->vdev[rhport]; vdev 359 drivers/usb/usbip/vhci_sysfs.c spin_lock(&vdev->ud.lock); vdev 361 drivers/usb/usbip/vhci_sysfs.c if (vdev->ud.status != VDEV_ST_NULL) { vdev 363 drivers/usb/usbip/vhci_sysfs.c spin_unlock(&vdev->ud.lock); vdev 381 drivers/usb/usbip/vhci_sysfs.c vdev->devid = devid; vdev 382 drivers/usb/usbip/vhci_sysfs.c vdev->speed = speed; vdev 383 drivers/usb/usbip/vhci_sysfs.c vdev->ud.sockfd = sockfd; vdev 384 drivers/usb/usbip/vhci_sysfs.c vdev->ud.tcp_socket = socket; vdev 385 drivers/usb/usbip/vhci_sysfs.c vdev->ud.status = VDEV_ST_NOTASSIGNED; vdev 387 drivers/usb/usbip/vhci_sysfs.c spin_unlock(&vdev->ud.lock); vdev 391 drivers/usb/usbip/vhci_sysfs.c vdev->ud.tcp_rx = kthread_get_run(vhci_rx_loop, &vdev->ud, "vhci_rx"); vdev 392 drivers/usb/usbip/vhci_sysfs.c vdev->ud.tcp_tx = kthread_get_run(vhci_tx_loop, &vdev->ud, "vhci_tx"); vdev 394 drivers/usb/usbip/vhci_sysfs.c rh_port_connect(vdev, speed); vdev 16 drivers/usb/usbip/vhci_tx.c struct vhci_device *vdev = priv->vdev; vdev 19 drivers/usb/usbip/vhci_tx.c usb_pipedevice(urb->pipe), vdev->devid); vdev 23 drivers/usb/usbip/vhci_tx.c pdup->base.devid = vdev->devid; vdev 34 drivers/usb/usbip/vhci_tx.c static struct vhci_priv *dequeue_from_priv_tx(struct vhci_device *vdev) vdev 39 drivers/usb/usbip/vhci_tx.c spin_lock_irqsave(&vdev->priv_lock, flags); vdev 41 drivers/usb/usbip/vhci_tx.c list_for_each_entry_safe(priv, tmp, &vdev->priv_tx, list) { vdev 42 drivers/usb/usbip/vhci_tx.c list_move_tail(&priv->list, &vdev->priv_rx); vdev 43 drivers/usb/usbip/vhci_tx.c spin_unlock_irqrestore(&vdev->priv_lock, flags); vdev 47 drivers/usb/usbip/vhci_tx.c spin_unlock_irqrestore(&vdev->priv_lock, flags); vdev 52 drivers/usb/usbip/vhci_tx.c static int vhci_send_cmd_submit(struct vhci_device *vdev) vdev 67 drivers/usb/usbip/vhci_tx.c while ((priv = dequeue_from_priv_tx(vdev)) != NULL) { vdev 87 drivers/usb/usbip/vhci_tx.c usbip_event_add(&vdev->ud, SDEV_EVENT_ERROR_MALLOC); vdev 128 drivers/usb/usbip/vhci_tx.c usbip_event_add(&vdev->ud, vdev 139 drivers/usb/usbip/vhci_tx.c ret = kernel_sendmsg(vdev->ud.tcp_socket, &msg, iov, iovnum, vdev 144 drivers/usb/usbip/vhci_tx.c usbip_event_add(&vdev->ud, VDEV_EVENT_ERROR_TCP); vdev 169 drivers/usb/usbip/vhci_tx.c static struct vhci_unlink *dequeue_from_unlink_tx(struct vhci_device *vdev) vdev 174 drivers/usb/usbip/vhci_tx.c spin_lock_irqsave(&vdev->priv_lock, flags); vdev 176 drivers/usb/usbip/vhci_tx.c list_for_each_entry_safe(unlink, tmp, &vdev->unlink_tx, list) { vdev 177 drivers/usb/usbip/vhci_tx.c list_move_tail(&unlink->list, &vdev->unlink_rx); vdev 178 drivers/usb/usbip/vhci_tx.c spin_unlock_irqrestore(&vdev->priv_lock, flags); vdev 182 drivers/usb/usbip/vhci_tx.c spin_unlock_irqrestore(&vdev->priv_lock, flags); vdev 187 drivers/usb/usbip/vhci_tx.c static int vhci_send_cmd_unlink(struct vhci_device *vdev) vdev 196 drivers/usb/usbip/vhci_tx.c while ((unlink = dequeue_from_unlink_tx(vdev)) != NULL) { vdev 209 drivers/usb/usbip/vhci_tx.c pdu_header.base.devid = vdev->devid; vdev 219 drivers/usb/usbip/vhci_tx.c ret = kernel_sendmsg(vdev->ud.tcp_socket, &msg, &iov, 1, txsize); vdev 223 drivers/usb/usbip/vhci_tx.c usbip_event_add(&vdev->ud, VDEV_EVENT_ERROR_TCP); vdev 238 drivers/usb/usbip/vhci_tx.c struct vhci_device *vdev = container_of(ud, struct vhci_device, ud); vdev 241 drivers/usb/usbip/vhci_tx.c if (vhci_send_cmd_submit(vdev) < 0) vdev 244 drivers/usb/usbip/vhci_tx.c if (vhci_send_cmd_unlink(vdev) < 0) vdev 247 drivers/usb/usbip/vhci_tx.c wait_event_interruptible(vdev->waitq_tx, vdev 248 drivers/usb/usbip/vhci_tx.c (!list_empty(&vdev->priv_tx) || vdev 249 drivers/usb/usbip/vhci_tx.c !list_empty(&vdev->unlink_tx) || vdev 76 drivers/vfio/pci/vfio_pci.c struct vfio_pci_device *vdev = opaque; vdev 77 drivers/vfio/pci/vfio_pci.c struct pci_dev *tmp = NULL, *pdev = vdev->pdev; vdev 110 drivers/vfio/pci/vfio_pci.c static void vfio_pci_probe_mmaps(struct vfio_pci_device *vdev) vdev 116 drivers/vfio/pci/vfio_pci.c INIT_LIST_HEAD(&vdev->dummy_resources_list); vdev 119 drivers/vfio/pci/vfio_pci.c res = vdev->pdev->resource + bar; vdev 136 drivers/vfio/pci/vfio_pci.c vdev->bar_mmap_supported[bar] = true; vdev 161 drivers/vfio/pci/vfio_pci.c &vdev->dummy_resources_list); vdev 162 drivers/vfio/pci/vfio_pci.c vdev->bar_mmap_supported[bar] = true; vdev 174 drivers/vfio/pci/vfio_pci.c vdev->bar_mmap_supported[bar] = false; vdev 178 drivers/vfio/pci/vfio_pci.c static void vfio_pci_try_bus_reset(struct vfio_pci_device *vdev); vdev 179 drivers/vfio/pci/vfio_pci.c static void vfio_pci_disable(struct vfio_pci_device *vdev); vdev 210 drivers/vfio/pci/vfio_pci.c static void vfio_pci_probe_power_state(struct vfio_pci_device *vdev) vdev 212 drivers/vfio/pci/vfio_pci.c struct pci_dev *pdev = vdev->pdev; vdev 220 drivers/vfio/pci/vfio_pci.c vdev->needs_pm_restore = !(pmcsr & PCI_PM_CTRL_NO_SOFT_RESET); vdev 230 drivers/vfio/pci/vfio_pci.c int vfio_pci_set_power_state(struct vfio_pci_device *vdev, pci_power_t state) vdev 232 drivers/vfio/pci/vfio_pci.c struct pci_dev *pdev = vdev->pdev; vdev 236 drivers/vfio/pci/vfio_pci.c if (vdev->needs_pm_restore) { vdev 251 drivers/vfio/pci/vfio_pci.c vdev->pm_save = pci_store_saved_state(pdev); vdev 253 drivers/vfio/pci/vfio_pci.c pci_load_and_free_saved_state(pdev, &vdev->pm_save); vdev 261 drivers/vfio/pci/vfio_pci.c static int vfio_pci_enable(struct vfio_pci_device *vdev) vdev 263 drivers/vfio/pci/vfio_pci.c struct pci_dev *pdev = vdev->pdev; vdev 268 drivers/vfio/pci/vfio_pci.c vfio_pci_set_power_state(vdev, PCI_D0); vdev 284 drivers/vfio/pci/vfio_pci.c vdev->reset_works = !ret; vdev 286 drivers/vfio/pci/vfio_pci.c vdev->pci_saved_state = pci_store_saved_state(pdev); vdev 287 drivers/vfio/pci/vfio_pci.c if (!vdev->pci_saved_state) vdev 293 drivers/vfio/pci/vfio_pci.c vdev->nointx = true; vdev 296 drivers/vfio/pci/vfio_pci.c vdev->pci_2_3 = pci_intx_mask_supported(pdev); vdev 300 drivers/vfio/pci/vfio_pci.c if (vdev->pci_2_3 && (cmd & PCI_COMMAND_INTX_DISABLE)) { vdev 305 drivers/vfio/pci/vfio_pci.c ret = vfio_config_init(vdev); vdev 307 drivers/vfio/pci/vfio_pci.c kfree(vdev->pci_saved_state); vdev 308 drivers/vfio/pci/vfio_pci.c vdev->pci_saved_state = NULL; vdev 321 drivers/vfio/pci/vfio_pci.c vdev->msix_bar = table & PCI_MSIX_TABLE_BIR; vdev 322 drivers/vfio/pci/vfio_pci.c vdev->msix_offset = table & PCI_MSIX_TABLE_OFFSET; vdev 323 drivers/vfio/pci/vfio_pci.c vdev->msix_size = ((flags & PCI_MSIX_FLAGS_QSIZE) + 1) * 16; vdev 325 drivers/vfio/pci/vfio_pci.c vdev->msix_bar = 0xFF; vdev 328 drivers/vfio/pci/vfio_pci.c vdev->has_vga = true; vdev 334 drivers/vfio/pci/vfio_pci.c ret = vfio_pci_igd_init(vdev); vdev 343 drivers/vfio/pci/vfio_pci.c ret = vfio_pci_nvdia_v100_nvlink2_init(vdev); vdev 352 drivers/vfio/pci/vfio_pci.c ret = vfio_pci_ibm_npu2_init(vdev); vdev 359 drivers/vfio/pci/vfio_pci.c vfio_pci_probe_mmaps(vdev); vdev 364 drivers/vfio/pci/vfio_pci.c vfio_pci_disable(vdev); vdev 368 drivers/vfio/pci/vfio_pci.c static void vfio_pci_disable(struct vfio_pci_device *vdev) vdev 370 drivers/vfio/pci/vfio_pci.c struct pci_dev *pdev = vdev->pdev; vdev 378 drivers/vfio/pci/vfio_pci.c vfio_pci_set_irqs_ioctl(vdev, VFIO_IRQ_SET_DATA_NONE | vdev 380 drivers/vfio/pci/vfio_pci.c vdev->irq_type, 0, 0, NULL); vdev 384 drivers/vfio/pci/vfio_pci.c &vdev->ioeventfds_list, next) { vdev 389 drivers/vfio/pci/vfio_pci.c vdev->ioeventfds_nr = 0; vdev 391 drivers/vfio/pci/vfio_pci.c vdev->virq_disabled = false; vdev 393 drivers/vfio/pci/vfio_pci.c for (i = 0; i < vdev->num_regions; i++) vdev 394 drivers/vfio/pci/vfio_pci.c vdev->region[i].ops->release(vdev, &vdev->region[i]); vdev 396 drivers/vfio/pci/vfio_pci.c vdev->num_regions = 0; vdev 397 drivers/vfio/pci/vfio_pci.c kfree(vdev->region); vdev 398 drivers/vfio/pci/vfio_pci.c vdev->region = NULL; /* don't krealloc a freed pointer */ vdev 400 drivers/vfio/pci/vfio_pci.c vfio_config_free(vdev); vdev 403 drivers/vfio/pci/vfio_pci.c if (!vdev->barmap[bar]) vdev 405 drivers/vfio/pci/vfio_pci.c pci_iounmap(pdev, vdev->barmap[bar]); vdev 407 drivers/vfio/pci/vfio_pci.c vdev->barmap[bar] = NULL; vdev 411 drivers/vfio/pci/vfio_pci.c &vdev->dummy_resources_list, res_next) { vdev 417 drivers/vfio/pci/vfio_pci.c vdev->needs_reset = true; vdev 425 drivers/vfio/pci/vfio_pci.c if (pci_load_and_free_saved_state(pdev, &vdev->pci_saved_state)) { vdev 428 drivers/vfio/pci/vfio_pci.c if (!vdev->reset_works) vdev 447 drivers/vfio/pci/vfio_pci.c if (vdev->reset_works && pci_cfg_access_trylock(pdev)) { vdev 450 drivers/vfio/pci/vfio_pci.c vdev->needs_reset = false; vdev 460 drivers/vfio/pci/vfio_pci.c vfio_pci_try_bus_reset(vdev); vdev 463 drivers/vfio/pci/vfio_pci.c vfio_pci_set_power_state(vdev, PCI_D3hot); vdev 468 drivers/vfio/pci/vfio_pci.c struct vfio_pci_device *vdev = device_data; vdev 470 drivers/vfio/pci/vfio_pci.c mutex_lock(&vdev->reflck->lock); vdev 472 drivers/vfio/pci/vfio_pci.c if (!(--vdev->refcnt)) { vdev 473 drivers/vfio/pci/vfio_pci.c vfio_spapr_pci_eeh_release(vdev->pdev); vdev 474 drivers/vfio/pci/vfio_pci.c vfio_pci_disable(vdev); vdev 477 drivers/vfio/pci/vfio_pci.c mutex_unlock(&vdev->reflck->lock); vdev 484 drivers/vfio/pci/vfio_pci.c struct vfio_pci_device *vdev = device_data; vdev 490 drivers/vfio/pci/vfio_pci.c mutex_lock(&vdev->reflck->lock); vdev 492 drivers/vfio/pci/vfio_pci.c if (!vdev->refcnt) { vdev 493 drivers/vfio/pci/vfio_pci.c ret = vfio_pci_enable(vdev); vdev 497 drivers/vfio/pci/vfio_pci.c vfio_spapr_pci_eeh_open(vdev->pdev); vdev 499 drivers/vfio/pci/vfio_pci.c vdev->refcnt++; vdev 501 drivers/vfio/pci/vfio_pci.c mutex_unlock(&vdev->reflck->lock); vdev 507 drivers/vfio/pci/vfio_pci.c static int vfio_pci_get_irq_count(struct vfio_pci_device *vdev, int irq_type) vdev 513 drivers/vfio/pci/vfio_pci.c vdev->nointx || vdev->pdev->is_virtfn) vdev 516 drivers/vfio/pci/vfio_pci.c pci_read_config_byte(vdev->pdev, PCI_INTERRUPT_PIN, &pin); vdev 523 drivers/vfio/pci/vfio_pci.c pos = vdev->pdev->msi_cap; vdev 525 drivers/vfio/pci/vfio_pci.c pci_read_config_word(vdev->pdev, vdev 533 drivers/vfio/pci/vfio_pci.c pos = vdev->pdev->msix_cap; vdev 535 drivers/vfio/pci/vfio_pci.c pci_read_config_word(vdev->pdev, vdev 541 drivers/vfio/pci/vfio_pci.c if (pci_is_pcie(vdev->pdev)) vdev 654 drivers/vfio/pci/vfio_pci.c static int msix_mmappable_cap(struct vfio_pci_device *vdev, vdev 665 drivers/vfio/pci/vfio_pci.c int vfio_pci_register_dev_region(struct vfio_pci_device *vdev, vdev 672 drivers/vfio/pci/vfio_pci.c region = krealloc(vdev->region, vdev 673 drivers/vfio/pci/vfio_pci.c (vdev->num_regions + 1) * sizeof(*region), vdev 678 drivers/vfio/pci/vfio_pci.c vdev->region = region; vdev 679 drivers/vfio/pci/vfio_pci.c vdev->region[vdev->num_regions].type = type; vdev 680 drivers/vfio/pci/vfio_pci.c vdev->region[vdev->num_regions].subtype = subtype; vdev 681 drivers/vfio/pci/vfio_pci.c vdev->region[vdev->num_regions].ops = ops; vdev 682 drivers/vfio/pci/vfio_pci.c vdev->region[vdev->num_regions].size = size; vdev 683 drivers/vfio/pci/vfio_pci.c vdev->region[vdev->num_regions].flags = flags; vdev 684 drivers/vfio/pci/vfio_pci.c vdev->region[vdev->num_regions].data = data; vdev 686 drivers/vfio/pci/vfio_pci.c vdev->num_regions++; vdev 694 drivers/vfio/pci/vfio_pci.c struct vfio_pci_device *vdev = device_data; vdev 710 drivers/vfio/pci/vfio_pci.c if (vdev->reset_works) vdev 713 drivers/vfio/pci/vfio_pci.c info.num_regions = VFIO_PCI_NUM_REGIONS + vdev->num_regions; vdev 720 drivers/vfio/pci/vfio_pci.c struct pci_dev *pdev = vdev->pdev; vdev 750 drivers/vfio/pci/vfio_pci.c if (vdev->bar_mmap_supported[info.index]) { vdev 752 drivers/vfio/pci/vfio_pci.c if (info.index == vdev->msix_bar) { vdev 753 drivers/vfio/pci/vfio_pci.c ret = msix_mmappable_cap(vdev, &caps); vdev 800 drivers/vfio/pci/vfio_pci.c if (!vdev->has_vga) vdev 816 drivers/vfio/pci/vfio_pci.c VFIO_PCI_NUM_REGIONS + vdev->num_regions) vdev 820 drivers/vfio/pci/vfio_pci.c vdev->num_regions); vdev 825 drivers/vfio/pci/vfio_pci.c info.size = vdev->region[i].size; vdev 826 drivers/vfio/pci/vfio_pci.c info.flags = vdev->region[i].flags; vdev 828 drivers/vfio/pci/vfio_pci.c cap_type.type = vdev->region[i].type; vdev 829 drivers/vfio/pci/vfio_pci.c cap_type.subtype = vdev->region[i].subtype; vdev 836 drivers/vfio/pci/vfio_pci.c if (vdev->region[i].ops->add_capability) { vdev 837 drivers/vfio/pci/vfio_pci.c ret = vdev->region[i].ops->add_capability(vdev, vdev 838 drivers/vfio/pci/vfio_pci.c &vdev->region[i], &caps); vdev 883 drivers/vfio/pci/vfio_pci.c if (pci_is_pcie(vdev->pdev)) vdev 892 drivers/vfio/pci/vfio_pci.c info.count = vfio_pci_get_irq_count(vdev, info.index); vdev 914 drivers/vfio/pci/vfio_pci.c max = vfio_pci_get_irq_count(vdev, hdr.index); vdev 928 drivers/vfio/pci/vfio_pci.c mutex_lock(&vdev->igate); vdev 930 drivers/vfio/pci/vfio_pci.c ret = vfio_pci_set_irqs_ioctl(vdev, hdr.flags, hdr.index, vdev 933 drivers/vfio/pci/vfio_pci.c mutex_unlock(&vdev->igate); vdev 939 drivers/vfio/pci/vfio_pci.c return vdev->reset_works ? vdev 940 drivers/vfio/pci/vfio_pci.c pci_try_reset_function(vdev->pdev) : -EINVAL; vdev 960 drivers/vfio/pci/vfio_pci.c if (!pci_probe_reset_slot(vdev->pdev->slot)) vdev 962 drivers/vfio/pci/vfio_pci.c else if (pci_probe_reset_bus(vdev->pdev->bus)) vdev 966 drivers/vfio/pci/vfio_pci.c ret = vfio_pci_for_each_slot_or_bus(vdev->pdev, vdev 990 drivers/vfio/pci/vfio_pci.c ret = vfio_pci_for_each_slot_or_bus(vdev->pdev, vdev 1032 drivers/vfio/pci/vfio_pci.c if (!pci_probe_reset_slot(vdev->pdev->slot)) vdev 1034 drivers/vfio/pci/vfio_pci.c else if (pci_probe_reset_bus(vdev->pdev->bus)) vdev 1043 drivers/vfio/pci/vfio_pci.c ret = vfio_pci_for_each_slot_or_bus(vdev->pdev, vdev 1105 drivers/vfio/pci/vfio_pci.c ret = vfio_pci_for_each_slot_or_bus(vdev->pdev, vdev 1110 drivers/vfio/pci/vfio_pci.c ret = pci_reset_bus(vdev->pdev); vdev 1138 drivers/vfio/pci/vfio_pci.c return vfio_pci_ioeventfd(vdev, ioeventfd.offset, vdev 1149 drivers/vfio/pci/vfio_pci.c struct vfio_pci_device *vdev = device_data; vdev 1151 drivers/vfio/pci/vfio_pci.c if (index >= VFIO_PCI_NUM_REGIONS + vdev->num_regions) vdev 1156 drivers/vfio/pci/vfio_pci.c return vfio_pci_config_rw(vdev, buf, count, ppos, iswrite); vdev 1161 drivers/vfio/pci/vfio_pci.c return vfio_pci_bar_rw(vdev, buf, count, ppos, false); vdev 1164 drivers/vfio/pci/vfio_pci.c return vfio_pci_bar_rw(vdev, buf, count, ppos, iswrite); vdev 1167 drivers/vfio/pci/vfio_pci.c return vfio_pci_vga_rw(vdev, buf, count, ppos, iswrite); vdev 1170 drivers/vfio/pci/vfio_pci.c return vdev->region[index].ops->rw(vdev, buf, vdev 1197 drivers/vfio/pci/vfio_pci.c struct vfio_pci_device *vdev = device_data; vdev 1198 drivers/vfio/pci/vfio_pci.c struct pci_dev *pdev = vdev->pdev; vdev 1211 drivers/vfio/pci/vfio_pci.c struct vfio_pci_region *region = vdev->region + regnum; vdev 1215 drivers/vfio/pci/vfio_pci.c return region->ops->mmap(vdev, region, vma); vdev 1220 drivers/vfio/pci/vfio_pci.c if (!vdev->bar_mmap_supported[index]) vdev 1236 drivers/vfio/pci/vfio_pci.c if (!vdev->barmap[index]) { vdev 1242 drivers/vfio/pci/vfio_pci.c vdev->barmap[index] = pci_iomap(pdev, index, 0); vdev 1243 drivers/vfio/pci/vfio_pci.c if (!vdev->barmap[index]) { vdev 1249 drivers/vfio/pci/vfio_pci.c vma->vm_private_data = vdev; vdev 1259 drivers/vfio/pci/vfio_pci.c struct vfio_pci_device *vdev = device_data; vdev 1260 drivers/vfio/pci/vfio_pci.c struct pci_dev *pdev = vdev->pdev; vdev 1262 drivers/vfio/pci/vfio_pci.c mutex_lock(&vdev->igate); vdev 1264 drivers/vfio/pci/vfio_pci.c if (vdev->req_trigger) { vdev 1269 drivers/vfio/pci/vfio_pci.c eventfd_signal(vdev->req_trigger, 1); vdev 1275 drivers/vfio/pci/vfio_pci.c mutex_unlock(&vdev->igate); vdev 1289 drivers/vfio/pci/vfio_pci.c static int vfio_pci_reflck_attach(struct vfio_pci_device *vdev); vdev 1294 drivers/vfio/pci/vfio_pci.c struct vfio_pci_device *vdev; vdev 1318 drivers/vfio/pci/vfio_pci.c vdev = kzalloc(sizeof(*vdev), GFP_KERNEL); vdev 1319 drivers/vfio/pci/vfio_pci.c if (!vdev) { vdev 1324 drivers/vfio/pci/vfio_pci.c vdev->pdev = pdev; vdev 1325 drivers/vfio/pci/vfio_pci.c vdev->irq_type = VFIO_PCI_NUM_IRQS; vdev 1326 drivers/vfio/pci/vfio_pci.c mutex_init(&vdev->igate); vdev 1327 drivers/vfio/pci/vfio_pci.c spin_lock_init(&vdev->irqlock); vdev 1328 drivers/vfio/pci/vfio_pci.c mutex_init(&vdev->ioeventfds_lock); vdev 1329 drivers/vfio/pci/vfio_pci.c INIT_LIST_HEAD(&vdev->ioeventfds_list); vdev 1331 drivers/vfio/pci/vfio_pci.c ret = vfio_add_group_dev(&pdev->dev, &vfio_pci_ops, vdev); vdev 1334 drivers/vfio/pci/vfio_pci.c kfree(vdev); vdev 1338 drivers/vfio/pci/vfio_pci.c ret = vfio_pci_reflck_attach(vdev); vdev 1342 drivers/vfio/pci/vfio_pci.c kfree(vdev); vdev 1347 drivers/vfio/pci/vfio_pci.c vga_client_register(pdev, vdev, NULL, vfio_pci_set_vga_decode); vdev 1349 drivers/vfio/pci/vfio_pci.c vfio_pci_set_vga_decode(vdev, false)); vdev 1352 drivers/vfio/pci/vfio_pci.c vfio_pci_probe_power_state(vdev); vdev 1364 drivers/vfio/pci/vfio_pci.c vfio_pci_set_power_state(vdev, PCI_D0); vdev 1365 drivers/vfio/pci/vfio_pci.c vfio_pci_set_power_state(vdev, PCI_D3hot); vdev 1373 drivers/vfio/pci/vfio_pci.c struct vfio_pci_device *vdev; vdev 1375 drivers/vfio/pci/vfio_pci.c vdev = vfio_del_group_dev(&pdev->dev); vdev 1376 drivers/vfio/pci/vfio_pci.c if (!vdev) vdev 1379 drivers/vfio/pci/vfio_pci.c vfio_pci_reflck_put(vdev->reflck); vdev 1382 drivers/vfio/pci/vfio_pci.c kfree(vdev->region); vdev 1383 drivers/vfio/pci/vfio_pci.c mutex_destroy(&vdev->ioeventfds_lock); vdev 1386 drivers/vfio/pci/vfio_pci.c vfio_pci_set_power_state(vdev, PCI_D0); vdev 1388 drivers/vfio/pci/vfio_pci.c kfree(vdev->pm_save); vdev 1389 drivers/vfio/pci/vfio_pci.c kfree(vdev); vdev 1402 drivers/vfio/pci/vfio_pci.c struct vfio_pci_device *vdev; vdev 1409 drivers/vfio/pci/vfio_pci.c vdev = vfio_device_data(device); vdev 1410 drivers/vfio/pci/vfio_pci.c if (vdev == NULL) { vdev 1415 drivers/vfio/pci/vfio_pci.c mutex_lock(&vdev->igate); vdev 1417 drivers/vfio/pci/vfio_pci.c if (vdev->err_trigger) vdev 1418 drivers/vfio/pci/vfio_pci.c eventfd_signal(vdev->err_trigger, 1); vdev 1420 drivers/vfio/pci/vfio_pci.c mutex_unlock(&vdev->igate); vdev 1464 drivers/vfio/pci/vfio_pci.c struct vfio_pci_device *vdev; vdev 1475 drivers/vfio/pci/vfio_pci.c vdev = vfio_device_data(device); vdev 1477 drivers/vfio/pci/vfio_pci.c if (vdev->reflck) { vdev 1478 drivers/vfio/pci/vfio_pci.c vfio_pci_reflck_get(vdev->reflck); vdev 1479 drivers/vfio/pci/vfio_pci.c *preflck = vdev->reflck; vdev 1488 drivers/vfio/pci/vfio_pci.c static int vfio_pci_reflck_attach(struct vfio_pci_device *vdev) vdev 1490 drivers/vfio/pci/vfio_pci.c bool slot = !pci_probe_reset_slot(vdev->pdev->slot); vdev 1494 drivers/vfio/pci/vfio_pci.c if (pci_is_root_bus(vdev->pdev->bus) || vdev 1495 drivers/vfio/pci/vfio_pci.c vfio_pci_for_each_slot_or_bus(vdev->pdev, vfio_pci_reflck_find, vdev 1496 drivers/vfio/pci/vfio_pci.c &vdev->reflck, slot) <= 0) vdev 1497 drivers/vfio/pci/vfio_pci.c vdev->reflck = vfio_pci_reflck_alloc(); vdev 1501 drivers/vfio/pci/vfio_pci.c return PTR_ERR_OR_ZERO(vdev->reflck); vdev 1529 drivers/vfio/pci/vfio_pci.c struct vfio_pci_device *vdev; vdev 1543 drivers/vfio/pci/vfio_pci.c vdev = vfio_device_data(device); vdev 1546 drivers/vfio/pci/vfio_pci.c if (vdev->refcnt) { vdev 1571 drivers/vfio/pci/vfio_pci.c static void vfio_pci_try_bus_reset(struct vfio_pci_device *vdev) vdev 1578 drivers/vfio/pci/vfio_pci.c if (!pci_probe_reset_slot(vdev->pdev->slot)) vdev 1580 drivers/vfio/pci/vfio_pci.c else if (pci_probe_reset_bus(vdev->pdev->bus)) vdev 1583 drivers/vfio/pci/vfio_pci.c if (vfio_pci_for_each_slot_or_bus(vdev->pdev, vfio_pci_count_devs, vdev 1592 drivers/vfio/pci/vfio_pci.c if (vfio_pci_for_each_slot_or_bus(vdev->pdev, vdev 1601 drivers/vfio/pci/vfio_pci.c ret = pci_reset_bus(vdev->pdev); vdev 1620 drivers/vfio/pci/vfio_pci.c if (tmp != vdev && !disable_idle_d3) vdev 111 drivers/vfio/pci/vfio_pci_config.c int (*readfn)(struct vfio_pci_device *vdev, int pos, int count, vdev 113 drivers/vfio/pci/vfio_pci_config.c int (*writefn)(struct vfio_pci_device *vdev, int pos, int count, vdev 174 drivers/vfio/pci/vfio_pci_config.c static int vfio_default_config_read(struct vfio_pci_device *vdev, int pos, vdev 180 drivers/vfio/pci/vfio_pci_config.c memcpy(val, vdev->vconfig + pos, count); vdev 186 drivers/vfio/pci/vfio_pci_config.c struct pci_dev *pdev = vdev->pdev; vdev 200 drivers/vfio/pci/vfio_pci_config.c static int vfio_default_config_write(struct vfio_pci_device *vdev, int pos, vdev 217 drivers/vfio/pci/vfio_pci_config.c memcpy(&virt_val, vdev->vconfig + pos, count); vdev 222 drivers/vfio/pci/vfio_pci_config.c memcpy(vdev->vconfig + pos, &virt_val, count); vdev 227 drivers/vfio/pci/vfio_pci_config.c struct pci_dev *pdev = vdev->pdev; vdev 247 drivers/vfio/pci/vfio_pci_config.c static int vfio_direct_config_read(struct vfio_pci_device *vdev, int pos, vdev 253 drivers/vfio/pci/vfio_pci_config.c ret = vfio_user_config_read(vdev->pdev, pos, val, count); vdev 259 drivers/vfio/pci/vfio_pci_config.c memcpy(val, vdev->vconfig + pos, count); vdev 262 drivers/vfio/pci/vfio_pci_config.c memcpy(val, vdev->vconfig + pos, vdev 265 drivers/vfio/pci/vfio_pci_config.c memcpy(val, vdev->vconfig + pos, 1); vdev 272 drivers/vfio/pci/vfio_pci_config.c static int vfio_raw_config_write(struct vfio_pci_device *vdev, int pos, vdev 278 drivers/vfio/pci/vfio_pci_config.c ret = vfio_user_config_write(vdev->pdev, pos, val, count); vdev 285 drivers/vfio/pci/vfio_pci_config.c static int vfio_raw_config_read(struct vfio_pci_device *vdev, int pos, vdev 291 drivers/vfio/pci/vfio_pci_config.c ret = vfio_user_config_read(vdev->pdev, pos, val, count); vdev 299 drivers/vfio/pci/vfio_pci_config.c static int vfio_virt_config_write(struct vfio_pci_device *vdev, int pos, vdev 303 drivers/vfio/pci/vfio_pci_config.c memcpy(vdev->vconfig + pos, &val, count); vdev 307 drivers/vfio/pci/vfio_pci_config.c static int vfio_virt_config_read(struct vfio_pci_device *vdev, int pos, vdev 311 drivers/vfio/pci/vfio_pci_config.c memcpy(val, vdev->vconfig + pos, count); vdev 402 drivers/vfio/pci/vfio_pci_config.c static void vfio_bar_restore(struct vfio_pci_device *vdev) vdev 404 drivers/vfio/pci/vfio_pci_config.c struct pci_dev *pdev = vdev->pdev; vdev 405 drivers/vfio/pci/vfio_pci_config.c u32 *rbar = vdev->rbar; vdev 419 drivers/vfio/pci/vfio_pci_config.c if (vdev->nointx) { vdev 449 drivers/vfio/pci/vfio_pci_config.c static void vfio_bar_fixup(struct vfio_pci_device *vdev) vdev 451 drivers/vfio/pci/vfio_pci_config.c struct pci_dev *pdev = vdev->pdev; vdev 456 drivers/vfio/pci/vfio_pci_config.c bar = (__le32 *)&vdev->vconfig[PCI_BASE_ADDRESS_0]; vdev 476 drivers/vfio/pci/vfio_pci_config.c bar = (__le32 *)&vdev->vconfig[PCI_ROM_ADDRESS]; vdev 495 drivers/vfio/pci/vfio_pci_config.c vdev->bardirty = false; vdev 498 drivers/vfio/pci/vfio_pci_config.c static int vfio_basic_config_read(struct vfio_pci_device *vdev, int pos, vdev 503 drivers/vfio/pci/vfio_pci_config.c vfio_bar_fixup(vdev); vdev 505 drivers/vfio/pci/vfio_pci_config.c count = vfio_default_config_read(vdev, pos, count, perm, offset, val); vdev 508 drivers/vfio/pci/vfio_pci_config.c if (offset == PCI_COMMAND && vdev->pdev->is_virtfn) { vdev 509 drivers/vfio/pci/vfio_pci_config.c u16 cmd = le16_to_cpu(*(__le16 *)&vdev->vconfig[PCI_COMMAND]); vdev 520 drivers/vfio/pci/vfio_pci_config.c static bool vfio_need_bar_restore(struct vfio_pci_device *vdev) vdev 526 drivers/vfio/pci/vfio_pci_config.c if (vdev->rbar[i]) { vdev 527 drivers/vfio/pci/vfio_pci_config.c ret = pci_user_read_config_dword(vdev->pdev, pos, &bar); vdev 528 drivers/vfio/pci/vfio_pci_config.c if (ret || vdev->rbar[i] != bar) vdev 536 drivers/vfio/pci/vfio_pci_config.c static int vfio_basic_config_write(struct vfio_pci_device *vdev, int pos, vdev 540 drivers/vfio/pci/vfio_pci_config.c struct pci_dev *pdev = vdev->pdev; vdev 545 drivers/vfio/pci/vfio_pci_config.c virt_cmd = (__le16 *)&vdev->vconfig[PCI_COMMAND]; vdev 575 drivers/vfio/pci/vfio_pci_config.c vfio_need_bar_restore(vdev)) vdev 576 drivers/vfio/pci/vfio_pci_config.c vfio_bar_restore(vdev); vdev 579 drivers/vfio/pci/vfio_pci_config.c count = vfio_default_config_write(vdev, pos, count, perm, offset, val); vdev 601 drivers/vfio/pci/vfio_pci_config.c if (virt_intx_disable && !vdev->virq_disabled) { vdev 602 drivers/vfio/pci/vfio_pci_config.c vdev->virq_disabled = true; vdev 603 drivers/vfio/pci/vfio_pci_config.c vfio_pci_intx_mask(vdev); vdev 604 drivers/vfio/pci/vfio_pci_config.c } else if (!virt_intx_disable && vdev->virq_disabled) { vdev 605 drivers/vfio/pci/vfio_pci_config.c vdev->virq_disabled = false; vdev 606 drivers/vfio/pci/vfio_pci_config.c vfio_pci_intx_unmask(vdev); vdev 611 drivers/vfio/pci/vfio_pci_config.c vdev->bardirty = true; vdev 664 drivers/vfio/pci/vfio_pci_config.c static int vfio_pm_config_write(struct vfio_pci_device *vdev, int pos, vdev 668 drivers/vfio/pci/vfio_pci_config.c count = vfio_default_config_write(vdev, pos, count, perm, offset, val); vdev 690 drivers/vfio/pci/vfio_pci_config.c vfio_pci_set_power_state(vdev, state); vdev 719 drivers/vfio/pci/vfio_pci_config.c static int vfio_vpd_config_write(struct vfio_pci_device *vdev, int pos, vdev 723 drivers/vfio/pci/vfio_pci_config.c struct pci_dev *pdev = vdev->pdev; vdev 724 drivers/vfio/pci/vfio_pci_config.c __le16 *paddr = (__le16 *)(vdev->vconfig + pos - offset + PCI_VPD_ADDR); vdev 725 drivers/vfio/pci/vfio_pci_config.c __le32 *pdata = (__le32 *)(vdev->vconfig + pos - offset + PCI_VPD_DATA); vdev 734 drivers/vfio/pci/vfio_pci_config.c count = vfio_default_config_write(vdev, pos, count, perm, offset, val); vdev 801 drivers/vfio/pci/vfio_pci_config.c static int vfio_exp_config_write(struct vfio_pci_device *vdev, int pos, vdev 805 drivers/vfio/pci/vfio_pci_config.c __le16 *ctrl = (__le16 *)(vdev->vconfig + pos - vdev 809 drivers/vfio/pci/vfio_pci_config.c count = vfio_default_config_write(vdev, pos, count, perm, offset, val); vdev 825 drivers/vfio/pci/vfio_pci_config.c ret = pci_user_read_config_dword(vdev->pdev, vdev 830 drivers/vfio/pci/vfio_pci_config.c pci_try_reset_function(vdev->pdev); vdev 849 drivers/vfio/pci/vfio_pci_config.c readrq = max(readrq, pcie_get_mps(vdev->pdev)); vdev 851 drivers/vfio/pci/vfio_pci_config.c pcie_set_readrq(vdev->pdev, readrq); vdev 882 drivers/vfio/pci/vfio_pci_config.c static int vfio_af_config_write(struct vfio_pci_device *vdev, int pos, vdev 886 drivers/vfio/pci/vfio_pci_config.c u8 *ctrl = vdev->vconfig + pos - offset + PCI_AF_CTRL; vdev 888 drivers/vfio/pci/vfio_pci_config.c count = vfio_default_config_write(vdev, pos, count, perm, offset, val); vdev 904 drivers/vfio/pci/vfio_pci_config.c ret = pci_user_read_config_byte(vdev->pdev, vdev 909 drivers/vfio/pci/vfio_pci_config.c pci_try_reset_function(vdev->pdev); vdev 1038 drivers/vfio/pci/vfio_pci_config.c static int vfio_find_cap_start(struct vfio_pci_device *vdev, int pos) vdev 1043 drivers/vfio/pci/vfio_pci_config.c cap = vdev->pci_config_map[pos]; vdev 1049 drivers/vfio/pci/vfio_pci_config.c while (pos - 1 >= base && vdev->pci_config_map[pos - 1] == cap) vdev 1055 drivers/vfio/pci/vfio_pci_config.c static int vfio_msi_config_read(struct vfio_pci_device *vdev, int pos, vdev 1064 drivers/vfio/pci/vfio_pci_config.c start = vfio_find_cap_start(vdev, pos); vdev 1066 drivers/vfio/pci/vfio_pci_config.c flags = (__le16 *)&vdev->vconfig[start]; vdev 1069 drivers/vfio/pci/vfio_pci_config.c *flags |= cpu_to_le16(vdev->msi_qmax << 1); vdev 1072 drivers/vfio/pci/vfio_pci_config.c return vfio_default_config_read(vdev, pos, count, perm, offset, val); vdev 1075 drivers/vfio/pci/vfio_pci_config.c static int vfio_msi_config_write(struct vfio_pci_device *vdev, int pos, vdev 1079 drivers/vfio/pci/vfio_pci_config.c count = vfio_default_config_write(vdev, pos, count, perm, offset, val); vdev 1089 drivers/vfio/pci/vfio_pci_config.c start = vfio_find_cap_start(vdev, pos); vdev 1091 drivers/vfio/pci/vfio_pci_config.c pflags = (__le16 *)&vdev->vconfig[start + PCI_MSI_FLAGS]; vdev 1096 drivers/vfio/pci/vfio_pci_config.c if (!is_msi(vdev)) vdev 1100 drivers/vfio/pci/vfio_pci_config.c if ((flags & PCI_MSI_FLAGS_QSIZE) >> 4 > vdev->msi_qmax) { vdev 1102 drivers/vfio/pci/vfio_pci_config.c flags |= vdev->msi_qmax << 4; vdev 1107 drivers/vfio/pci/vfio_pci_config.c ret = pci_user_write_config_word(vdev->pdev, vdev 1155 drivers/vfio/pci/vfio_pci_config.c static int vfio_msi_cap_len(struct vfio_pci_device *vdev, u8 pos) vdev 1157 drivers/vfio/pci/vfio_pci_config.c struct pci_dev *pdev = vdev->pdev; vdev 1171 drivers/vfio/pci/vfio_pci_config.c if (vdev->msi_perm) vdev 1174 drivers/vfio/pci/vfio_pci_config.c vdev->msi_perm = kmalloc(sizeof(struct perm_bits), GFP_KERNEL); vdev 1175 drivers/vfio/pci/vfio_pci_config.c if (!vdev->msi_perm) vdev 1178 drivers/vfio/pci/vfio_pci_config.c ret = init_pci_cap_msi_perm(vdev->msi_perm, len, flags); vdev 1180 drivers/vfio/pci/vfio_pci_config.c kfree(vdev->msi_perm); vdev 1188 drivers/vfio/pci/vfio_pci_config.c static int vfio_vc_cap_len(struct vfio_pci_device *vdev, u16 pos) vdev 1190 drivers/vfio/pci/vfio_pci_config.c struct pci_dev *pdev = vdev->pdev; vdev 1229 drivers/vfio/pci/vfio_pci_config.c static int vfio_cap_len(struct vfio_pci_device *vdev, u8 cap, u8 pos) vdev 1231 drivers/vfio/pci/vfio_pci_config.c struct pci_dev *pdev = vdev->pdev; vdev 1239 drivers/vfio/pci/vfio_pci_config.c return vfio_msi_cap_len(vdev, pos); vdev 1250 drivers/vfio/pci/vfio_pci_config.c vdev->extended_caps = (dword != 0); vdev 1266 drivers/vfio/pci/vfio_pci_config.c vdev->extended_caps = (dword != 0); vdev 1304 drivers/vfio/pci/vfio_pci_config.c static int vfio_ext_cap_len(struct vfio_pci_device *vdev, u16 ecap, u16 epos) vdev 1306 drivers/vfio/pci/vfio_pci_config.c struct pci_dev *pdev = vdev->pdev; vdev 1321 drivers/vfio/pci/vfio_pci_config.c return vfio_vc_cap_len(vdev, epos); vdev 1378 drivers/vfio/pci/vfio_pci_config.c static int vfio_fill_vconfig_bytes(struct vfio_pci_device *vdev, vdev 1381 drivers/vfio/pci/vfio_pci_config.c struct pci_dev *pdev = vdev->pdev; vdev 1393 drivers/vfio/pci/vfio_pci_config.c __le32 *dwordp = (__le32 *)&vdev->vconfig[offset]; vdev 1402 drivers/vfio/pci/vfio_pci_config.c __le16 *wordp = (__le16 *)&vdev->vconfig[offset]; vdev 1411 drivers/vfio/pci/vfio_pci_config.c u8 *byte = &vdev->vconfig[offset]; vdev 1425 drivers/vfio/pci/vfio_pci_config.c static int vfio_cap_init(struct vfio_pci_device *vdev) vdev 1427 drivers/vfio/pci/vfio_pci_config.c struct pci_dev *pdev = vdev->pdev; vdev 1428 drivers/vfio/pci/vfio_pci_config.c u8 *map = vdev->pci_config_map; vdev 1446 drivers/vfio/pci/vfio_pci_config.c prev = &vdev->vconfig[PCI_CAPABILITY_LIST]; vdev 1466 drivers/vfio/pci/vfio_pci_config.c len = vfio_cap_len(vdev, cap, pos); vdev 1492 drivers/vfio/pci/vfio_pci_config.c ret = vfio_fill_vconfig_bytes(vdev, pos, len); vdev 1496 drivers/vfio/pci/vfio_pci_config.c prev = &vdev->vconfig[pos + PCI_CAP_LIST_NEXT]; vdev 1503 drivers/vfio/pci/vfio_pci_config.c __le16 *vstatus = (__le16 *)&vdev->vconfig[PCI_STATUS]; vdev 1510 drivers/vfio/pci/vfio_pci_config.c static int vfio_ecap_init(struct vfio_pci_device *vdev) vdev 1512 drivers/vfio/pci/vfio_pci_config.c struct pci_dev *pdev = vdev->pdev; vdev 1513 drivers/vfio/pci/vfio_pci_config.c u8 *map = vdev->pci_config_map; vdev 1518 drivers/vfio/pci/vfio_pci_config.c if (!vdev->extended_caps) vdev 1540 drivers/vfio/pci/vfio_pci_config.c len = vfio_ext_cap_len(vdev, ecap, epos); vdev 1582 drivers/vfio/pci/vfio_pci_config.c ret = vfio_fill_vconfig_bytes(vdev, epos, len); vdev 1593 drivers/vfio/pci/vfio_pci_config.c *(__le32 *)&vdev->vconfig[epos] &= vdev 1598 drivers/vfio/pci/vfio_pci_config.c prev = (__le32 *)&vdev->vconfig[epos]; vdev 1603 drivers/vfio/pci/vfio_pci_config.c *(u32 *)&vdev->vconfig[PCI_CFG_SPACE_SIZE] = 0; vdev 1630 drivers/vfio/pci/vfio_pci_config.c int vfio_config_init(struct vfio_pci_device *vdev) vdev 1632 drivers/vfio/pci/vfio_pci_config.c struct pci_dev *pdev = vdev->pdev; vdev 1652 drivers/vfio/pci/vfio_pci_config.c vdev->pci_config_map = map; vdev 1653 drivers/vfio/pci/vfio_pci_config.c vdev->vconfig = vconfig; vdev 1659 drivers/vfio/pci/vfio_pci_config.c ret = vfio_fill_vconfig_bytes(vdev, 0, PCI_STD_HEADER_SIZEOF); vdev 1663 drivers/vfio/pci/vfio_pci_config.c vdev->bardirty = true; vdev 1671 drivers/vfio/pci/vfio_pci_config.c vdev->rbar[0] = le32_to_cpu(*(__le32 *)&vconfig[PCI_BASE_ADDRESS_0]); vdev 1672 drivers/vfio/pci/vfio_pci_config.c vdev->rbar[1] = le32_to_cpu(*(__le32 *)&vconfig[PCI_BASE_ADDRESS_1]); vdev 1673 drivers/vfio/pci/vfio_pci_config.c vdev->rbar[2] = le32_to_cpu(*(__le32 *)&vconfig[PCI_BASE_ADDRESS_2]); vdev 1674 drivers/vfio/pci/vfio_pci_config.c vdev->rbar[3] = le32_to_cpu(*(__le32 *)&vconfig[PCI_BASE_ADDRESS_3]); vdev 1675 drivers/vfio/pci/vfio_pci_config.c vdev->rbar[4] = le32_to_cpu(*(__le32 *)&vconfig[PCI_BASE_ADDRESS_4]); vdev 1676 drivers/vfio/pci/vfio_pci_config.c vdev->rbar[5] = le32_to_cpu(*(__le32 *)&vconfig[PCI_BASE_ADDRESS_5]); vdev 1677 drivers/vfio/pci/vfio_pci_config.c vdev->rbar[6] = le32_to_cpu(*(__le32 *)&vconfig[PCI_ROM_ADDRESS]); vdev 1702 drivers/vfio/pci/vfio_pci_config.c if (!IS_ENABLED(CONFIG_VFIO_PCI_INTX) || vdev->nointx) vdev 1705 drivers/vfio/pci/vfio_pci_config.c ret = vfio_cap_init(vdev); vdev 1709 drivers/vfio/pci/vfio_pci_config.c ret = vfio_ecap_init(vdev); vdev 1717 drivers/vfio/pci/vfio_pci_config.c vdev->pci_config_map = NULL; vdev 1719 drivers/vfio/pci/vfio_pci_config.c vdev->vconfig = NULL; vdev 1723 drivers/vfio/pci/vfio_pci_config.c void vfio_config_free(struct vfio_pci_device *vdev) vdev 1725 drivers/vfio/pci/vfio_pci_config.c kfree(vdev->vconfig); vdev 1726 drivers/vfio/pci/vfio_pci_config.c vdev->vconfig = NULL; vdev 1727 drivers/vfio/pci/vfio_pci_config.c kfree(vdev->pci_config_map); vdev 1728 drivers/vfio/pci/vfio_pci_config.c vdev->pci_config_map = NULL; vdev 1729 drivers/vfio/pci/vfio_pci_config.c kfree(vdev->msi_perm); vdev 1730 drivers/vfio/pci/vfio_pci_config.c vdev->msi_perm = NULL; vdev 1737 drivers/vfio/pci/vfio_pci_config.c static size_t vfio_pci_cap_remaining_dword(struct vfio_pci_device *vdev, vdev 1740 drivers/vfio/pci/vfio_pci_config.c u8 cap = vdev->pci_config_map[pos]; vdev 1743 drivers/vfio/pci/vfio_pci_config.c for (i = 1; (pos + i) % 4 && vdev->pci_config_map[pos + i] == cap; i++) vdev 1749 drivers/vfio/pci/vfio_pci_config.c static ssize_t vfio_config_do_rw(struct vfio_pci_device *vdev, char __user *buf, vdev 1752 drivers/vfio/pci/vfio_pci_config.c struct pci_dev *pdev = vdev->pdev; vdev 1767 drivers/vfio/pci/vfio_pci_config.c count = min(count, vfio_pci_cap_remaining_dword(vdev, *ppos)); vdev 1777 drivers/vfio/pci/vfio_pci_config.c cap_id = vdev->pci_config_map[*ppos]; vdev 1790 drivers/vfio/pci/vfio_pci_config.c cap_start = vfio_find_cap_start(vdev, *ppos); vdev 1797 drivers/vfio/pci/vfio_pci_config.c perm = vdev->msi_perm; vdev 1800 drivers/vfio/pci/vfio_pci_config.c cap_start = vfio_find_cap_start(vdev, *ppos); vdev 1816 drivers/vfio/pci/vfio_pci_config.c ret = perm->writefn(vdev, *ppos, count, perm, offset, val); vdev 1819 drivers/vfio/pci/vfio_pci_config.c ret = perm->readfn(vdev, *ppos, count, vdev 1832 drivers/vfio/pci/vfio_pci_config.c ssize_t vfio_pci_config_rw(struct vfio_pci_device *vdev, char __user *buf, vdev 1842 drivers/vfio/pci/vfio_pci_config.c ret = vfio_config_do_rw(vdev, buf, count, &pos, iswrite); vdev 24 drivers/vfio/pci/vfio_pci_igd.c static size_t vfio_pci_igd_rw(struct vfio_pci_device *vdev, char __user *buf, vdev 28 drivers/vfio/pci/vfio_pci_igd.c void *base = vdev->region[i].data; vdev 31 drivers/vfio/pci/vfio_pci_igd.c if (pos >= vdev->region[i].size || iswrite) vdev 34 drivers/vfio/pci/vfio_pci_igd.c count = min(count, (size_t)(vdev->region[i].size - pos)); vdev 44 drivers/vfio/pci/vfio_pci_igd.c static void vfio_pci_igd_release(struct vfio_pci_device *vdev, vdev 55 drivers/vfio/pci/vfio_pci_igd.c static int vfio_pci_igd_opregion_init(struct vfio_pci_device *vdev) vdev 57 drivers/vfio/pci/vfio_pci_igd.c __le32 *dwordp = (__le32 *)(vdev->vconfig + OPREGION_PCI_ADDR); vdev 62 drivers/vfio/pci/vfio_pci_igd.c ret = pci_read_config_dword(vdev->pdev, OPREGION_PCI_ADDR, &addr); vdev 93 drivers/vfio/pci/vfio_pci_igd.c ret = vfio_pci_register_dev_region(vdev, vdev 104 drivers/vfio/pci/vfio_pci_igd.c memset(vdev->pci_config_map + OPREGION_PCI_ADDR, vdev 110 drivers/vfio/pci/vfio_pci_igd.c static size_t vfio_pci_igd_cfg_rw(struct vfio_pci_device *vdev, vdev 115 drivers/vfio/pci/vfio_pci_igd.c struct pci_dev *pdev = vdev->region[i].data; vdev 120 drivers/vfio/pci/vfio_pci_igd.c if (pos >= vdev->region[i].size || iswrite) vdev 123 drivers/vfio/pci/vfio_pci_igd.c size = count = min(count, (size_t)(vdev->region[i].size - pos)); vdev 203 drivers/vfio/pci/vfio_pci_igd.c static void vfio_pci_igd_cfg_release(struct vfio_pci_device *vdev, vdev 216 drivers/vfio/pci/vfio_pci_igd.c static int vfio_pci_igd_cfg_init(struct vfio_pci_device *vdev) vdev 231 drivers/vfio/pci/vfio_pci_igd.c ret = vfio_pci_register_dev_region(vdev, vdev 251 drivers/vfio/pci/vfio_pci_igd.c ret = vfio_pci_register_dev_region(vdev, vdev 264 drivers/vfio/pci/vfio_pci_igd.c int vfio_pci_igd_init(struct vfio_pci_device *vdev) vdev 268 drivers/vfio/pci/vfio_pci_igd.c ret = vfio_pci_igd_opregion_init(vdev); vdev 272 drivers/vfio/pci/vfio_pci_igd.c ret = vfio_pci_igd_cfg_init(vdev); vdev 30 drivers/vfio/pci/vfio_pci_intrs.c struct vfio_pci_device *vdev = opaque; vdev 32 drivers/vfio/pci/vfio_pci_intrs.c if (likely(is_intx(vdev) && !vdev->virq_disabled)) vdev 33 drivers/vfio/pci/vfio_pci_intrs.c eventfd_signal(vdev->ctx[0].trigger, 1); vdev 36 drivers/vfio/pci/vfio_pci_intrs.c void vfio_pci_intx_mask(struct vfio_pci_device *vdev) vdev 38 drivers/vfio/pci/vfio_pci_intrs.c struct pci_dev *pdev = vdev->pdev; vdev 41 drivers/vfio/pci/vfio_pci_intrs.c spin_lock_irqsave(&vdev->irqlock, flags); vdev 49 drivers/vfio/pci/vfio_pci_intrs.c if (unlikely(!is_intx(vdev))) { vdev 50 drivers/vfio/pci/vfio_pci_intrs.c if (vdev->pci_2_3) vdev 52 drivers/vfio/pci/vfio_pci_intrs.c } else if (!vdev->ctx[0].masked) { vdev 57 drivers/vfio/pci/vfio_pci_intrs.c if (vdev->pci_2_3) vdev 62 drivers/vfio/pci/vfio_pci_intrs.c vdev->ctx[0].masked = true; vdev 65 drivers/vfio/pci/vfio_pci_intrs.c spin_unlock_irqrestore(&vdev->irqlock, flags); vdev 76 drivers/vfio/pci/vfio_pci_intrs.c struct vfio_pci_device *vdev = opaque; vdev 77 drivers/vfio/pci/vfio_pci_intrs.c struct pci_dev *pdev = vdev->pdev; vdev 81 drivers/vfio/pci/vfio_pci_intrs.c spin_lock_irqsave(&vdev->irqlock, flags); vdev 87 drivers/vfio/pci/vfio_pci_intrs.c if (unlikely(!is_intx(vdev))) { vdev 88 drivers/vfio/pci/vfio_pci_intrs.c if (vdev->pci_2_3) vdev 90 drivers/vfio/pci/vfio_pci_intrs.c } else if (vdev->ctx[0].masked && !vdev->virq_disabled) { vdev 96 drivers/vfio/pci/vfio_pci_intrs.c if (vdev->pci_2_3) { vdev 102 drivers/vfio/pci/vfio_pci_intrs.c vdev->ctx[0].masked = (ret > 0); vdev 105 drivers/vfio/pci/vfio_pci_intrs.c spin_unlock_irqrestore(&vdev->irqlock, flags); vdev 110 drivers/vfio/pci/vfio_pci_intrs.c void vfio_pci_intx_unmask(struct vfio_pci_device *vdev) vdev 112 drivers/vfio/pci/vfio_pci_intrs.c if (vfio_pci_intx_unmask_handler(vdev, NULL) > 0) vdev 113 drivers/vfio/pci/vfio_pci_intrs.c vfio_send_intx_eventfd(vdev, NULL); vdev 118 drivers/vfio/pci/vfio_pci_intrs.c struct vfio_pci_device *vdev = dev_id; vdev 122 drivers/vfio/pci/vfio_pci_intrs.c spin_lock_irqsave(&vdev->irqlock, flags); vdev 124 drivers/vfio/pci/vfio_pci_intrs.c if (!vdev->pci_2_3) { vdev 125 drivers/vfio/pci/vfio_pci_intrs.c disable_irq_nosync(vdev->pdev->irq); vdev 126 drivers/vfio/pci/vfio_pci_intrs.c vdev->ctx[0].masked = true; vdev 128 drivers/vfio/pci/vfio_pci_intrs.c } else if (!vdev->ctx[0].masked && /* may be shared */ vdev 129 drivers/vfio/pci/vfio_pci_intrs.c pci_check_and_mask_intx(vdev->pdev)) { vdev 130 drivers/vfio/pci/vfio_pci_intrs.c vdev->ctx[0].masked = true; vdev 134 drivers/vfio/pci/vfio_pci_intrs.c spin_unlock_irqrestore(&vdev->irqlock, flags); vdev 137 drivers/vfio/pci/vfio_pci_intrs.c vfio_send_intx_eventfd(vdev, NULL); vdev 142 drivers/vfio/pci/vfio_pci_intrs.c static int vfio_intx_enable(struct vfio_pci_device *vdev) vdev 144 drivers/vfio/pci/vfio_pci_intrs.c if (!is_irq_none(vdev)) vdev 147 drivers/vfio/pci/vfio_pci_intrs.c if (!vdev->pdev->irq) vdev 150 drivers/vfio/pci/vfio_pci_intrs.c vdev->ctx = kzalloc(sizeof(struct vfio_pci_irq_ctx), GFP_KERNEL); vdev 151 drivers/vfio/pci/vfio_pci_intrs.c if (!vdev->ctx) vdev 154 drivers/vfio/pci/vfio_pci_intrs.c vdev->num_ctx = 1; vdev 162 drivers/vfio/pci/vfio_pci_intrs.c vdev->ctx[0].masked = vdev->virq_disabled; vdev 163 drivers/vfio/pci/vfio_pci_intrs.c if (vdev->pci_2_3) vdev 164 drivers/vfio/pci/vfio_pci_intrs.c pci_intx(vdev->pdev, !vdev->ctx[0].masked); vdev 166 drivers/vfio/pci/vfio_pci_intrs.c vdev->irq_type = VFIO_PCI_INTX_IRQ_INDEX; vdev 171 drivers/vfio/pci/vfio_pci_intrs.c static int vfio_intx_set_signal(struct vfio_pci_device *vdev, int fd) vdev 173 drivers/vfio/pci/vfio_pci_intrs.c struct pci_dev *pdev = vdev->pdev; vdev 179 drivers/vfio/pci/vfio_pci_intrs.c if (vdev->ctx[0].trigger) { vdev 180 drivers/vfio/pci/vfio_pci_intrs.c free_irq(pdev->irq, vdev); vdev 181 drivers/vfio/pci/vfio_pci_intrs.c kfree(vdev->ctx[0].name); vdev 182 drivers/vfio/pci/vfio_pci_intrs.c eventfd_ctx_put(vdev->ctx[0].trigger); vdev 183 drivers/vfio/pci/vfio_pci_intrs.c vdev->ctx[0].trigger = NULL; vdev 189 drivers/vfio/pci/vfio_pci_intrs.c vdev->ctx[0].name = kasprintf(GFP_KERNEL, "vfio-intx(%s)", vdev 191 drivers/vfio/pci/vfio_pci_intrs.c if (!vdev->ctx[0].name) vdev 196 drivers/vfio/pci/vfio_pci_intrs.c kfree(vdev->ctx[0].name); vdev 200 drivers/vfio/pci/vfio_pci_intrs.c vdev->ctx[0].trigger = trigger; vdev 202 drivers/vfio/pci/vfio_pci_intrs.c if (!vdev->pci_2_3) vdev 206 drivers/vfio/pci/vfio_pci_intrs.c irqflags, vdev->ctx[0].name, vdev); vdev 208 drivers/vfio/pci/vfio_pci_intrs.c vdev->ctx[0].trigger = NULL; vdev 209 drivers/vfio/pci/vfio_pci_intrs.c kfree(vdev->ctx[0].name); vdev 218 drivers/vfio/pci/vfio_pci_intrs.c spin_lock_irqsave(&vdev->irqlock, flags); vdev 219 drivers/vfio/pci/vfio_pci_intrs.c if (!vdev->pci_2_3 && vdev->ctx[0].masked) vdev 221 drivers/vfio/pci/vfio_pci_intrs.c spin_unlock_irqrestore(&vdev->irqlock, flags); vdev 226 drivers/vfio/pci/vfio_pci_intrs.c static void vfio_intx_disable(struct vfio_pci_device *vdev) vdev 228 drivers/vfio/pci/vfio_pci_intrs.c vfio_virqfd_disable(&vdev->ctx[0].unmask); vdev 229 drivers/vfio/pci/vfio_pci_intrs.c vfio_virqfd_disable(&vdev->ctx[0].mask); vdev 230 drivers/vfio/pci/vfio_pci_intrs.c vfio_intx_set_signal(vdev, -1); vdev 231 drivers/vfio/pci/vfio_pci_intrs.c vdev->irq_type = VFIO_PCI_NUM_IRQS; vdev 232 drivers/vfio/pci/vfio_pci_intrs.c vdev->num_ctx = 0; vdev 233 drivers/vfio/pci/vfio_pci_intrs.c kfree(vdev->ctx); vdev 247 drivers/vfio/pci/vfio_pci_intrs.c static int vfio_msi_enable(struct vfio_pci_device *vdev, int nvec, bool msix) vdev 249 drivers/vfio/pci/vfio_pci_intrs.c struct pci_dev *pdev = vdev->pdev; vdev 253 drivers/vfio/pci/vfio_pci_intrs.c if (!is_irq_none(vdev)) vdev 256 drivers/vfio/pci/vfio_pci_intrs.c vdev->ctx = kcalloc(nvec, sizeof(struct vfio_pci_irq_ctx), GFP_KERNEL); vdev 257 drivers/vfio/pci/vfio_pci_intrs.c if (!vdev->ctx) vdev 265 drivers/vfio/pci/vfio_pci_intrs.c kfree(vdev->ctx); vdev 269 drivers/vfio/pci/vfio_pci_intrs.c vdev->num_ctx = nvec; vdev 270 drivers/vfio/pci/vfio_pci_intrs.c vdev->irq_type = msix ? VFIO_PCI_MSIX_IRQ_INDEX : vdev 278 drivers/vfio/pci/vfio_pci_intrs.c vdev->msi_qmax = fls(nvec * 2 - 1) - 1; vdev 284 drivers/vfio/pci/vfio_pci_intrs.c static int vfio_msi_set_vector_signal(struct vfio_pci_device *vdev, vdev 287 drivers/vfio/pci/vfio_pci_intrs.c struct pci_dev *pdev = vdev->pdev; vdev 291 drivers/vfio/pci/vfio_pci_intrs.c if (vector < 0 || vector >= vdev->num_ctx) vdev 296 drivers/vfio/pci/vfio_pci_intrs.c if (vdev->ctx[vector].trigger) { vdev 297 drivers/vfio/pci/vfio_pci_intrs.c irq_bypass_unregister_producer(&vdev->ctx[vector].producer); vdev 298 drivers/vfio/pci/vfio_pci_intrs.c free_irq(irq, vdev->ctx[vector].trigger); vdev 299 drivers/vfio/pci/vfio_pci_intrs.c kfree(vdev->ctx[vector].name); vdev 300 drivers/vfio/pci/vfio_pci_intrs.c eventfd_ctx_put(vdev->ctx[vector].trigger); vdev 301 drivers/vfio/pci/vfio_pci_intrs.c vdev->ctx[vector].trigger = NULL; vdev 307 drivers/vfio/pci/vfio_pci_intrs.c vdev->ctx[vector].name = kasprintf(GFP_KERNEL, "vfio-msi%s[%d](%s)", vdev 310 drivers/vfio/pci/vfio_pci_intrs.c if (!vdev->ctx[vector].name) vdev 315 drivers/vfio/pci/vfio_pci_intrs.c kfree(vdev->ctx[vector].name); vdev 334 drivers/vfio/pci/vfio_pci_intrs.c vdev->ctx[vector].name, trigger); vdev 336 drivers/vfio/pci/vfio_pci_intrs.c kfree(vdev->ctx[vector].name); vdev 341 drivers/vfio/pci/vfio_pci_intrs.c vdev->ctx[vector].producer.token = trigger; vdev 342 drivers/vfio/pci/vfio_pci_intrs.c vdev->ctx[vector].producer.irq = irq; vdev 343 drivers/vfio/pci/vfio_pci_intrs.c ret = irq_bypass_register_producer(&vdev->ctx[vector].producer); vdev 347 drivers/vfio/pci/vfio_pci_intrs.c vdev->ctx[vector].producer.token, ret); vdev 349 drivers/vfio/pci/vfio_pci_intrs.c vdev->ctx[vector].trigger = trigger; vdev 354 drivers/vfio/pci/vfio_pci_intrs.c static int vfio_msi_set_block(struct vfio_pci_device *vdev, unsigned start, vdev 359 drivers/vfio/pci/vfio_pci_intrs.c if (start >= vdev->num_ctx || start + count > vdev->num_ctx) vdev 364 drivers/vfio/pci/vfio_pci_intrs.c ret = vfio_msi_set_vector_signal(vdev, j, fd, msix); vdev 369 drivers/vfio/pci/vfio_pci_intrs.c vfio_msi_set_vector_signal(vdev, j, -1, msix); vdev 375 drivers/vfio/pci/vfio_pci_intrs.c static void vfio_msi_disable(struct vfio_pci_device *vdev, bool msix) vdev 377 drivers/vfio/pci/vfio_pci_intrs.c struct pci_dev *pdev = vdev->pdev; vdev 380 drivers/vfio/pci/vfio_pci_intrs.c for (i = 0; i < vdev->num_ctx; i++) { vdev 381 drivers/vfio/pci/vfio_pci_intrs.c vfio_virqfd_disable(&vdev->ctx[i].unmask); vdev 382 drivers/vfio/pci/vfio_pci_intrs.c vfio_virqfd_disable(&vdev->ctx[i].mask); vdev 385 drivers/vfio/pci/vfio_pci_intrs.c vfio_msi_set_block(vdev, 0, vdev->num_ctx, NULL, msix); vdev 393 drivers/vfio/pci/vfio_pci_intrs.c if (vdev->nointx) vdev 396 drivers/vfio/pci/vfio_pci_intrs.c vdev->irq_type = VFIO_PCI_NUM_IRQS; vdev 397 drivers/vfio/pci/vfio_pci_intrs.c vdev->num_ctx = 0; vdev 398 drivers/vfio/pci/vfio_pci_intrs.c kfree(vdev->ctx); vdev 404 drivers/vfio/pci/vfio_pci_intrs.c static int vfio_pci_set_intx_unmask(struct vfio_pci_device *vdev, vdev 408 drivers/vfio/pci/vfio_pci_intrs.c if (!is_intx(vdev) || start != 0 || count != 1) vdev 412 drivers/vfio/pci/vfio_pci_intrs.c vfio_pci_intx_unmask(vdev); vdev 416 drivers/vfio/pci/vfio_pci_intrs.c vfio_pci_intx_unmask(vdev); vdev 420 drivers/vfio/pci/vfio_pci_intrs.c return vfio_virqfd_enable((void *) vdev, vdev 423 drivers/vfio/pci/vfio_pci_intrs.c &vdev->ctx[0].unmask, fd); vdev 425 drivers/vfio/pci/vfio_pci_intrs.c vfio_virqfd_disable(&vdev->ctx[0].unmask); vdev 431 drivers/vfio/pci/vfio_pci_intrs.c static int vfio_pci_set_intx_mask(struct vfio_pci_device *vdev, vdev 435 drivers/vfio/pci/vfio_pci_intrs.c if (!is_intx(vdev) || start != 0 || count != 1) vdev 439 drivers/vfio/pci/vfio_pci_intrs.c vfio_pci_intx_mask(vdev); vdev 443 drivers/vfio/pci/vfio_pci_intrs.c vfio_pci_intx_mask(vdev); vdev 451 drivers/vfio/pci/vfio_pci_intrs.c static int vfio_pci_set_intx_trigger(struct vfio_pci_device *vdev, vdev 455 drivers/vfio/pci/vfio_pci_intrs.c if (is_intx(vdev) && !count && (flags & VFIO_IRQ_SET_DATA_NONE)) { vdev 456 drivers/vfio/pci/vfio_pci_intrs.c vfio_intx_disable(vdev); vdev 460 drivers/vfio/pci/vfio_pci_intrs.c if (!(is_intx(vdev) || is_irq_none(vdev)) || start != 0 || count != 1) vdev 467 drivers/vfio/pci/vfio_pci_intrs.c if (is_intx(vdev)) vdev 468 drivers/vfio/pci/vfio_pci_intrs.c return vfio_intx_set_signal(vdev, fd); vdev 470 drivers/vfio/pci/vfio_pci_intrs.c ret = vfio_intx_enable(vdev); vdev 474 drivers/vfio/pci/vfio_pci_intrs.c ret = vfio_intx_set_signal(vdev, fd); vdev 476 drivers/vfio/pci/vfio_pci_intrs.c vfio_intx_disable(vdev); vdev 481 drivers/vfio/pci/vfio_pci_intrs.c if (!is_intx(vdev)) vdev 485 drivers/vfio/pci/vfio_pci_intrs.c vfio_send_intx_eventfd(vdev, NULL); vdev 489 drivers/vfio/pci/vfio_pci_intrs.c vfio_send_intx_eventfd(vdev, NULL); vdev 494 drivers/vfio/pci/vfio_pci_intrs.c static int vfio_pci_set_msi_trigger(struct vfio_pci_device *vdev, vdev 501 drivers/vfio/pci/vfio_pci_intrs.c if (irq_is(vdev, index) && !count && (flags & VFIO_IRQ_SET_DATA_NONE)) { vdev 502 drivers/vfio/pci/vfio_pci_intrs.c vfio_msi_disable(vdev, msix); vdev 506 drivers/vfio/pci/vfio_pci_intrs.c if (!(irq_is(vdev, index) || is_irq_none(vdev))) vdev 513 drivers/vfio/pci/vfio_pci_intrs.c if (vdev->irq_type == index) vdev 514 drivers/vfio/pci/vfio_pci_intrs.c return vfio_msi_set_block(vdev, start, count, vdev 517 drivers/vfio/pci/vfio_pci_intrs.c ret = vfio_msi_enable(vdev, start + count, msix); vdev 521 drivers/vfio/pci/vfio_pci_intrs.c ret = vfio_msi_set_block(vdev, start, count, fds, msix); vdev 523 drivers/vfio/pci/vfio_pci_intrs.c vfio_msi_disable(vdev, msix); vdev 528 drivers/vfio/pci/vfio_pci_intrs.c if (!irq_is(vdev, index) || start + count > vdev->num_ctx) vdev 532 drivers/vfio/pci/vfio_pci_intrs.c if (!vdev->ctx[i].trigger) vdev 535 drivers/vfio/pci/vfio_pci_intrs.c eventfd_signal(vdev->ctx[i].trigger, 1); vdev 539 drivers/vfio/pci/vfio_pci_intrs.c eventfd_signal(vdev->ctx[i].trigger, 1); vdev 600 drivers/vfio/pci/vfio_pci_intrs.c static int vfio_pci_set_err_trigger(struct vfio_pci_device *vdev, vdev 607 drivers/vfio/pci/vfio_pci_intrs.c return vfio_pci_set_ctx_trigger_single(&vdev->err_trigger, vdev 611 drivers/vfio/pci/vfio_pci_intrs.c static int vfio_pci_set_req_trigger(struct vfio_pci_device *vdev, vdev 618 drivers/vfio/pci/vfio_pci_intrs.c return vfio_pci_set_ctx_trigger_single(&vdev->req_trigger, vdev 622 drivers/vfio/pci/vfio_pci_intrs.c int vfio_pci_set_irqs_ioctl(struct vfio_pci_device *vdev, uint32_t flags, vdev 626 drivers/vfio/pci/vfio_pci_intrs.c int (*func)(struct vfio_pci_device *vdev, unsigned index, vdev 659 drivers/vfio/pci/vfio_pci_intrs.c if (pci_is_pcie(vdev->pdev)) vdev 676 drivers/vfio/pci/vfio_pci_intrs.c return func(vdev, index, start, count, flags, data); vdev 42 drivers/vfio/pci/vfio_pci_nvlink2.c static size_t vfio_pci_nvgpu_rw(struct vfio_pci_device *vdev, vdev 46 drivers/vfio/pci/vfio_pci_nvlink2.c struct vfio_pci_nvgpu_data *data = vdev->region[i].data; vdev 52 drivers/vfio/pci/vfio_pci_nvlink2.c if (pos >= vdev->region[i].size) vdev 55 drivers/vfio/pci/vfio_pci_nvlink2.c count = min(count, (size_t)(vdev->region[i].size - pos)); vdev 92 drivers/vfio/pci/vfio_pci_nvlink2.c static void vfio_pci_nvgpu_release(struct vfio_pci_device *vdev, vdev 139 drivers/vfio/pci/vfio_pci_nvlink2.c static int vfio_pci_nvgpu_mmap(struct vfio_pci_device *vdev, vdev 168 drivers/vfio/pci/vfio_pci_nvlink2.c trace_vfio_pci_nvgpu_mmap(vdev->pdev, data->gpu_hpa, data->useraddr, vdev 174 drivers/vfio/pci/vfio_pci_nvlink2.c static int vfio_pci_nvgpu_add_capability(struct vfio_pci_device *vdev, vdev 210 drivers/vfio/pci/vfio_pci_nvlink2.c int vfio_pci_nvdia_v100_nvlink2_init(struct vfio_pci_device *vdev) vdev 225 drivers/vfio/pci/vfio_pci_nvlink2.c npu_dev = pnv_pci_get_npu_dev(vdev->pdev, 0); vdev 246 drivers/vfio/pci/vfio_pci_nvlink2.c dev_warn(&vdev->pdev->dev, "No ibm,device-tgt-addr found\n"); vdev 258 drivers/vfio/pci/vfio_pci_nvlink2.c dev_dbg(&vdev->pdev->dev, "%lx..%lx\n", data->gpu_hpa, vdev 261 drivers/vfio/pci/vfio_pci_nvlink2.c data->gpdev = vdev->pdev; vdev 278 drivers/vfio/pci/vfio_pci_nvlink2.c ret = vfio_pci_register_dev_region(vdev, vdev 307 drivers/vfio/pci/vfio_pci_nvlink2.c static size_t vfio_pci_npu2_rw(struct vfio_pci_device *vdev, vdev 311 drivers/vfio/pci/vfio_pci_nvlink2.c struct vfio_pci_npu2_data *data = vdev->region[i].data; vdev 314 drivers/vfio/pci/vfio_pci_nvlink2.c if (pos >= vdev->region[i].size) vdev 317 drivers/vfio/pci/vfio_pci_nvlink2.c count = min(count, (size_t)(vdev->region[i].size - pos)); vdev 331 drivers/vfio/pci/vfio_pci_nvlink2.c static int vfio_pci_npu2_mmap(struct vfio_pci_device *vdev, vdev 346 drivers/vfio/pci/vfio_pci_nvlink2.c trace_vfio_pci_npu2_mmap(vdev->pdev, data->mmio_atsd, vma->vm_start, vdev 352 drivers/vfio/pci/vfio_pci_nvlink2.c static void vfio_pci_npu2_release(struct vfio_pci_device *vdev, vdev 361 drivers/vfio/pci/vfio_pci_nvlink2.c static int vfio_pci_npu2_add_capability(struct vfio_pci_device *vdev, vdev 391 drivers/vfio/pci/vfio_pci_nvlink2.c int vfio_pci_ibm_npu2_init(struct vfio_pci_device *vdev) vdev 397 drivers/vfio/pci/vfio_pci_nvlink2.c struct pci_dev *npdev = vdev->pdev; vdev 408 drivers/vfio/pci/vfio_pci_nvlink2.c if (!pnv_pci_get_gpu_dev(vdev->pdev)) vdev 425 drivers/vfio/pci/vfio_pci_nvlink2.c dev_warn(&vdev->pdev->dev, "No available ATSD found\n"); vdev 430 drivers/vfio/pci/vfio_pci_nvlink2.c dev_warn(&vdev->pdev->dev, "No ibm,device-tgt-addr found\n"); vdev 435 drivers/vfio/pci/vfio_pci_nvlink2.c dev_warn(&vdev->pdev->dev, "No ibm,nvlink-speed found\n"); vdev 460 drivers/vfio/pci/vfio_pci_nvlink2.c ret = vfio_pci_register_dev_region(vdev, vdev 55 drivers/vfio/pci/vfio_pci_private.h size_t (*rw)(struct vfio_pci_device *vdev, char __user *buf, vdev 57 drivers/vfio/pci/vfio_pci_private.h void (*release)(struct vfio_pci_device *vdev, vdev 59 drivers/vfio/pci/vfio_pci_private.h int (*mmap)(struct vfio_pci_device *vdev, vdev 62 drivers/vfio/pci/vfio_pci_private.h int (*add_capability)(struct vfio_pci_device *vdev, vdev 127 drivers/vfio/pci/vfio_pci_private.h #define is_intx(vdev) (vdev->irq_type == VFIO_PCI_INTX_IRQ_INDEX) vdev 128 drivers/vfio/pci/vfio_pci_private.h #define is_msi(vdev) (vdev->irq_type == VFIO_PCI_MSI_IRQ_INDEX) vdev 129 drivers/vfio/pci/vfio_pci_private.h #define is_msix(vdev) (vdev->irq_type == VFIO_PCI_MSIX_IRQ_INDEX) vdev 130 drivers/vfio/pci/vfio_pci_private.h #define is_irq_none(vdev) (!(is_intx(vdev) || is_msi(vdev) || is_msix(vdev))) vdev 131 drivers/vfio/pci/vfio_pci_private.h #define irq_is(vdev, type) (vdev->irq_type == type) vdev 133 drivers/vfio/pci/vfio_pci_private.h extern void vfio_pci_intx_mask(struct vfio_pci_device *vdev); vdev 134 drivers/vfio/pci/vfio_pci_private.h extern void vfio_pci_intx_unmask(struct vfio_pci_device *vdev); vdev 136 drivers/vfio/pci/vfio_pci_private.h extern int vfio_pci_set_irqs_ioctl(struct vfio_pci_device *vdev, vdev 140 drivers/vfio/pci/vfio_pci_private.h extern ssize_t vfio_pci_config_rw(struct vfio_pci_device *vdev, vdev 144 drivers/vfio/pci/vfio_pci_private.h extern ssize_t vfio_pci_bar_rw(struct vfio_pci_device *vdev, char __user *buf, vdev 147 drivers/vfio/pci/vfio_pci_private.h extern ssize_t vfio_pci_vga_rw(struct vfio_pci_device *vdev, char __user *buf, vdev 150 drivers/vfio/pci/vfio_pci_private.h extern long vfio_pci_ioeventfd(struct vfio_pci_device *vdev, loff_t offset, vdev 156 drivers/vfio/pci/vfio_pci_private.h extern int vfio_config_init(struct vfio_pci_device *vdev); vdev 157 drivers/vfio/pci/vfio_pci_private.h extern void vfio_config_free(struct vfio_pci_device *vdev); vdev 159 drivers/vfio/pci/vfio_pci_private.h extern int vfio_pci_register_dev_region(struct vfio_pci_device *vdev, vdev 164 drivers/vfio/pci/vfio_pci_private.h extern int vfio_pci_set_power_state(struct vfio_pci_device *vdev, vdev 168 drivers/vfio/pci/vfio_pci_private.h extern int vfio_pci_igd_init(struct vfio_pci_device *vdev); vdev 170 drivers/vfio/pci/vfio_pci_private.h static inline int vfio_pci_igd_init(struct vfio_pci_device *vdev) vdev 176 drivers/vfio/pci/vfio_pci_private.h extern int vfio_pci_nvdia_v100_nvlink2_init(struct vfio_pci_device *vdev); vdev 177 drivers/vfio/pci/vfio_pci_private.h extern int vfio_pci_ibm_npu2_init(struct vfio_pci_device *vdev); vdev 179 drivers/vfio/pci/vfio_pci_private.h static inline int vfio_pci_nvdia_v100_nvlink2_init(struct vfio_pci_device *vdev) vdev 184 drivers/vfio/pci/vfio_pci_private.h static inline int vfio_pci_ibm_npu2_init(struct vfio_pci_device *vdev) vdev 132 drivers/vfio/pci/vfio_pci_rdwr.c static int vfio_pci_setup_barmap(struct vfio_pci_device *vdev, int bar) vdev 134 drivers/vfio/pci/vfio_pci_rdwr.c struct pci_dev *pdev = vdev->pdev; vdev 138 drivers/vfio/pci/vfio_pci_rdwr.c if (vdev->barmap[bar]) vdev 151 drivers/vfio/pci/vfio_pci_rdwr.c vdev->barmap[bar] = io; vdev 156 drivers/vfio/pci/vfio_pci_rdwr.c ssize_t vfio_pci_bar_rw(struct vfio_pci_device *vdev, char __user *buf, vdev 159 drivers/vfio/pci/vfio_pci_rdwr.c struct pci_dev *pdev = vdev->pdev; vdev 191 drivers/vfio/pci/vfio_pci_rdwr.c int ret = vfio_pci_setup_barmap(vdev, bar); vdev 195 drivers/vfio/pci/vfio_pci_rdwr.c io = vdev->barmap[bar]; vdev 198 drivers/vfio/pci/vfio_pci_rdwr.c if (bar == vdev->msix_bar) { vdev 199 drivers/vfio/pci/vfio_pci_rdwr.c x_start = vdev->msix_offset; vdev 200 drivers/vfio/pci/vfio_pci_rdwr.c x_end = vdev->msix_offset + vdev->msix_size; vdev 214 drivers/vfio/pci/vfio_pci_rdwr.c ssize_t vfio_pci_vga_rw(struct vfio_pci_device *vdev, char __user *buf, vdev 224 drivers/vfio/pci/vfio_pci_rdwr.c if (!vdev->has_vga) vdev 259 drivers/vfio/pci/vfio_pci_rdwr.c ret = vga_get_interruptible(vdev->pdev, rsrc); vdev 267 drivers/vfio/pci/vfio_pci_rdwr.c vga_put(vdev->pdev, rsrc); vdev 301 drivers/vfio/pci/vfio_pci_rdwr.c long vfio_pci_ioeventfd(struct vfio_pci_device *vdev, loff_t offset, vdev 304 drivers/vfio/pci/vfio_pci_rdwr.c struct pci_dev *pdev = vdev->pdev; vdev 317 drivers/vfio/pci/vfio_pci_rdwr.c if (bar == vdev->msix_bar && vdev 318 drivers/vfio/pci/vfio_pci_rdwr.c !(pos + count <= vdev->msix_offset || vdev 319 drivers/vfio/pci/vfio_pci_rdwr.c pos >= vdev->msix_offset + vdev->msix_size)) vdev 327 drivers/vfio/pci/vfio_pci_rdwr.c ret = vfio_pci_setup_barmap(vdev, bar); vdev 331 drivers/vfio/pci/vfio_pci_rdwr.c mutex_lock(&vdev->ioeventfds_lock); vdev 333 drivers/vfio/pci/vfio_pci_rdwr.c list_for_each_entry(ioeventfd, &vdev->ioeventfds_list, next) { vdev 339 drivers/vfio/pci/vfio_pci_rdwr.c vdev->ioeventfds_nr--; vdev 354 drivers/vfio/pci/vfio_pci_rdwr.c if (vdev->ioeventfds_nr >= VFIO_PCI_IOEVENTFD_MAX) { vdev 365 drivers/vfio/pci/vfio_pci_rdwr.c ioeventfd->addr = vdev->barmap[bar] + pos; vdev 378 drivers/vfio/pci/vfio_pci_rdwr.c list_add(&ioeventfd->next, &vdev->ioeventfds_list); vdev 379 drivers/vfio/pci/vfio_pci_rdwr.c vdev->ioeventfds_nr++; vdev 382 drivers/vfio/pci/vfio_pci_rdwr.c mutex_unlock(&vdev->ioeventfds_lock); vdev 48 drivers/vfio/platform/reset/vfio_platform_amdxgbe.c static int vfio_platform_amdxgbe_reset(struct vfio_platform_device *vdev) vdev 50 drivers/vfio/platform/reset/vfio_platform_amdxgbe.c struct vfio_platform_region *xgmac_regs = &vdev->regions[0]; vdev 51 drivers/vfio/platform/reset/vfio_platform_amdxgbe.c struct vfio_platform_region *xpcs_regs = &vdev->regions[1]; vdev 81 drivers/vfio/platform/reset/vfio_platform_amdxgbe.c dev_warn(vdev->device, "%s: XGBE PHY reset timeout\n", vdev 107 drivers/vfio/platform/reset/vfio_platform_amdxgbe.c dev_warn(vdev->device, "%s: MAC SW reset failed\n", __func__); vdev 77 drivers/vfio/platform/reset/vfio_platform_bcmflexrm.c static int vfio_platform_bcmflexrm_reset(struct vfio_platform_device *vdev) vdev 81 drivers/vfio/platform/reset/vfio_platform_bcmflexrm.c struct vfio_platform_region *reg = &vdev->regions[0]; vdev 96 drivers/vfio/platform/reset/vfio_platform_bcmflexrm.c dev_warn(vdev->device, vdev 49 drivers/vfio/platform/reset/vfio_platform_calxedaxgmac.c static int vfio_platform_calxedaxgmac_reset(struct vfio_platform_device *vdev) vdev 51 drivers/vfio/platform/reset/vfio_platform_calxedaxgmac.c struct vfio_platform_region *reg = &vdev->regions[0]; vdev 20 drivers/vfio/platform/vfio_amba.c static struct resource *get_amba_resource(struct vfio_platform_device *vdev, vdev 23 drivers/vfio/platform/vfio_amba.c struct amba_device *adev = (struct amba_device *) vdev->opaque; vdev 31 drivers/vfio/platform/vfio_amba.c static int get_amba_irq(struct vfio_platform_device *vdev, int i) vdev 33 drivers/vfio/platform/vfio_amba.c struct amba_device *adev = (struct amba_device *) vdev->opaque; vdev 45 drivers/vfio/platform/vfio_amba.c struct vfio_platform_device *vdev; vdev 48 drivers/vfio/platform/vfio_amba.c vdev = kzalloc(sizeof(*vdev), GFP_KERNEL); vdev 49 drivers/vfio/platform/vfio_amba.c if (!vdev) vdev 52 drivers/vfio/platform/vfio_amba.c vdev->name = kasprintf(GFP_KERNEL, "vfio-amba-%08x", adev->periphid); vdev 53 drivers/vfio/platform/vfio_amba.c if (!vdev->name) { vdev 54 drivers/vfio/platform/vfio_amba.c kfree(vdev); vdev 58 drivers/vfio/platform/vfio_amba.c vdev->opaque = (void *) adev; vdev 59 drivers/vfio/platform/vfio_amba.c vdev->flags = VFIO_DEVICE_FLAGS_AMBA; vdev 60 drivers/vfio/platform/vfio_amba.c vdev->get_resource = get_amba_resource; vdev 61 drivers/vfio/platform/vfio_amba.c vdev->get_irq = get_amba_irq; vdev 62 drivers/vfio/platform/vfio_amba.c vdev->parent_module = THIS_MODULE; vdev 63 drivers/vfio/platform/vfio_amba.c vdev->reset_required = false; vdev 65 drivers/vfio/platform/vfio_amba.c ret = vfio_platform_probe_common(vdev, &adev->dev); vdev 67 drivers/vfio/platform/vfio_amba.c kfree(vdev->name); vdev 68 drivers/vfio/platform/vfio_amba.c kfree(vdev); vdev 76 drivers/vfio/platform/vfio_amba.c struct vfio_platform_device *vdev; vdev 78 drivers/vfio/platform/vfio_amba.c vdev = vfio_platform_remove_common(&adev->dev); vdev 79 drivers/vfio/platform/vfio_amba.c if (vdev) { vdev 80 drivers/vfio/platform/vfio_amba.c kfree(vdev->name); vdev 81 drivers/vfio/platform/vfio_amba.c kfree(vdev); vdev 24 drivers/vfio/platform/vfio_platform.c static struct resource *get_platform_resource(struct vfio_platform_device *vdev, vdev 27 drivers/vfio/platform/vfio_platform.c struct platform_device *dev = (struct platform_device *) vdev->opaque; vdev 43 drivers/vfio/platform/vfio_platform.c static int get_platform_irq(struct vfio_platform_device *vdev, int i) vdev 45 drivers/vfio/platform/vfio_platform.c struct platform_device *pdev = (struct platform_device *) vdev->opaque; vdev 52 drivers/vfio/platform/vfio_platform.c struct vfio_platform_device *vdev; vdev 55 drivers/vfio/platform/vfio_platform.c vdev = kzalloc(sizeof(*vdev), GFP_KERNEL); vdev 56 drivers/vfio/platform/vfio_platform.c if (!vdev) vdev 59 drivers/vfio/platform/vfio_platform.c vdev->opaque = (void *) pdev; vdev 60 drivers/vfio/platform/vfio_platform.c vdev->name = pdev->name; vdev 61 drivers/vfio/platform/vfio_platform.c vdev->flags = VFIO_DEVICE_FLAGS_PLATFORM; vdev 62 drivers/vfio/platform/vfio_platform.c vdev->get_resource = get_platform_resource; vdev 63 drivers/vfio/platform/vfio_platform.c vdev->get_irq = get_platform_irq; vdev 64 drivers/vfio/platform/vfio_platform.c vdev->parent_module = THIS_MODULE; vdev 65 drivers/vfio/platform/vfio_platform.c vdev->reset_required = reset_required; vdev 67 drivers/vfio/platform/vfio_platform.c ret = vfio_platform_probe_common(vdev, &pdev->dev); vdev 69 drivers/vfio/platform/vfio_platform.c kfree(vdev); vdev 76 drivers/vfio/platform/vfio_platform.c struct vfio_platform_device *vdev; vdev 78 drivers/vfio/platform/vfio_platform.c vdev = vfio_platform_remove_common(&pdev->dev); vdev 79 drivers/vfio/platform/vfio_platform.c if (vdev) { vdev 80 drivers/vfio/platform/vfio_platform.c kfree(vdev); vdev 26 drivers/vfio/platform/vfio_platform_common.c #define VFIO_PLATFORM_IS_ACPI(vdev) ((vdev)->acpihid != NULL) vdev 50 drivers/vfio/platform/vfio_platform_common.c static int vfio_platform_acpi_probe(struct vfio_platform_device *vdev, vdev 61 drivers/vfio/platform/vfio_platform_common.c vdev->name); vdev 66 drivers/vfio/platform/vfio_platform_common.c vdev->acpihid = acpi_device_hid(adev); vdev 68 drivers/vfio/platform/vfio_platform_common.c return WARN_ON(!vdev->acpihid) ? -EINVAL : 0; vdev 71 drivers/vfio/platform/vfio_platform_common.c static int vfio_platform_acpi_call_reset(struct vfio_platform_device *vdev, vdev 76 drivers/vfio/platform/vfio_platform_common.c struct device *dev = vdev->device; vdev 93 drivers/vfio/platform/vfio_platform_common.c static bool vfio_platform_acpi_has_reset(struct vfio_platform_device *vdev) vdev 96 drivers/vfio/platform/vfio_platform_common.c struct device *dev = vdev->device; vdev 105 drivers/vfio/platform/vfio_platform_common.c static bool vfio_platform_has_reset(struct vfio_platform_device *vdev) vdev 107 drivers/vfio/platform/vfio_platform_common.c if (VFIO_PLATFORM_IS_ACPI(vdev)) vdev 108 drivers/vfio/platform/vfio_platform_common.c return vfio_platform_acpi_has_reset(vdev); vdev 110 drivers/vfio/platform/vfio_platform_common.c return vdev->of_reset ? true : false; vdev 113 drivers/vfio/platform/vfio_platform_common.c static int vfio_platform_get_reset(struct vfio_platform_device *vdev) vdev 115 drivers/vfio/platform/vfio_platform_common.c if (VFIO_PLATFORM_IS_ACPI(vdev)) vdev 116 drivers/vfio/platform/vfio_platform_common.c return vfio_platform_acpi_has_reset(vdev) ? 0 : -ENOENT; vdev 118 drivers/vfio/platform/vfio_platform_common.c vdev->of_reset = vfio_platform_lookup_reset(vdev->compat, vdev 119 drivers/vfio/platform/vfio_platform_common.c &vdev->reset_module); vdev 120 drivers/vfio/platform/vfio_platform_common.c if (!vdev->of_reset) { vdev 121 drivers/vfio/platform/vfio_platform_common.c request_module("vfio-reset:%s", vdev->compat); vdev 122 drivers/vfio/platform/vfio_platform_common.c vdev->of_reset = vfio_platform_lookup_reset(vdev->compat, vdev 123 drivers/vfio/platform/vfio_platform_common.c &vdev->reset_module); vdev 126 drivers/vfio/platform/vfio_platform_common.c return vdev->of_reset ? 0 : -ENOENT; vdev 129 drivers/vfio/platform/vfio_platform_common.c static void vfio_platform_put_reset(struct vfio_platform_device *vdev) vdev 131 drivers/vfio/platform/vfio_platform_common.c if (VFIO_PLATFORM_IS_ACPI(vdev)) vdev 134 drivers/vfio/platform/vfio_platform_common.c if (vdev->of_reset) vdev 135 drivers/vfio/platform/vfio_platform_common.c module_put(vdev->reset_module); vdev 138 drivers/vfio/platform/vfio_platform_common.c static int vfio_platform_regions_init(struct vfio_platform_device *vdev) vdev 142 drivers/vfio/platform/vfio_platform_common.c while (vdev->get_resource(vdev, cnt)) vdev 145 drivers/vfio/platform/vfio_platform_common.c vdev->regions = kcalloc(cnt, sizeof(struct vfio_platform_region), vdev 147 drivers/vfio/platform/vfio_platform_common.c if (!vdev->regions) vdev 152 drivers/vfio/platform/vfio_platform_common.c vdev->get_resource(vdev, i); vdev 157 drivers/vfio/platform/vfio_platform_common.c vdev->regions[i].addr = res->start; vdev 158 drivers/vfio/platform/vfio_platform_common.c vdev->regions[i].size = resource_size(res); vdev 159 drivers/vfio/platform/vfio_platform_common.c vdev->regions[i].flags = 0; vdev 163 drivers/vfio/platform/vfio_platform_common.c vdev->regions[i].type = VFIO_PLATFORM_REGION_TYPE_MMIO; vdev 164 drivers/vfio/platform/vfio_platform_common.c vdev->regions[i].flags |= VFIO_REGION_INFO_FLAG_READ; vdev 166 drivers/vfio/platform/vfio_platform_common.c vdev->regions[i].flags |= vdev 173 drivers/vfio/platform/vfio_platform_common.c if (!(vdev->regions[i].addr & ~PAGE_MASK) && vdev 174 drivers/vfio/platform/vfio_platform_common.c !(vdev->regions[i].size & ~PAGE_MASK)) vdev 175 drivers/vfio/platform/vfio_platform_common.c vdev->regions[i].flags |= vdev 180 drivers/vfio/platform/vfio_platform_common.c vdev->regions[i].type = VFIO_PLATFORM_REGION_TYPE_PIO; vdev 187 drivers/vfio/platform/vfio_platform_common.c vdev->num_regions = cnt; vdev 191 drivers/vfio/platform/vfio_platform_common.c kfree(vdev->regions); vdev 195 drivers/vfio/platform/vfio_platform_common.c static void vfio_platform_regions_cleanup(struct vfio_platform_device *vdev) vdev 199 drivers/vfio/platform/vfio_platform_common.c for (i = 0; i < vdev->num_regions; i++) vdev 200 drivers/vfio/platform/vfio_platform_common.c iounmap(vdev->regions[i].ioaddr); vdev 202 drivers/vfio/platform/vfio_platform_common.c vdev->num_regions = 0; vdev 203 drivers/vfio/platform/vfio_platform_common.c kfree(vdev->regions); vdev 206 drivers/vfio/platform/vfio_platform_common.c static int vfio_platform_call_reset(struct vfio_platform_device *vdev, vdev 209 drivers/vfio/platform/vfio_platform_common.c if (VFIO_PLATFORM_IS_ACPI(vdev)) { vdev 210 drivers/vfio/platform/vfio_platform_common.c dev_info(vdev->device, "reset\n"); vdev 211 drivers/vfio/platform/vfio_platform_common.c return vfio_platform_acpi_call_reset(vdev, extra_dbg); vdev 212 drivers/vfio/platform/vfio_platform_common.c } else if (vdev->of_reset) { vdev 213 drivers/vfio/platform/vfio_platform_common.c dev_info(vdev->device, "reset\n"); vdev 214 drivers/vfio/platform/vfio_platform_common.c return vdev->of_reset(vdev); vdev 217 drivers/vfio/platform/vfio_platform_common.c dev_warn(vdev->device, "no reset function found!\n"); vdev 223 drivers/vfio/platform/vfio_platform_common.c struct vfio_platform_device *vdev = device_data; vdev 227 drivers/vfio/platform/vfio_platform_common.c if (!(--vdev->refcnt)) { vdev 231 drivers/vfio/platform/vfio_platform_common.c ret = vfio_platform_call_reset(vdev, &extra_dbg); vdev 232 drivers/vfio/platform/vfio_platform_common.c if (ret && vdev->reset_required) { vdev 233 drivers/vfio/platform/vfio_platform_common.c dev_warn(vdev->device, "reset driver is required and reset call failed in release (%d) %s\n", vdev 237 drivers/vfio/platform/vfio_platform_common.c pm_runtime_put(vdev->device); vdev 238 drivers/vfio/platform/vfio_platform_common.c vfio_platform_regions_cleanup(vdev); vdev 239 drivers/vfio/platform/vfio_platform_common.c vfio_platform_irq_cleanup(vdev); vdev 244 drivers/vfio/platform/vfio_platform_common.c module_put(vdev->parent_module); vdev 249 drivers/vfio/platform/vfio_platform_common.c struct vfio_platform_device *vdev = device_data; vdev 252 drivers/vfio/platform/vfio_platform_common.c if (!try_module_get(vdev->parent_module)) vdev 257 drivers/vfio/platform/vfio_platform_common.c if (!vdev->refcnt) { vdev 260 drivers/vfio/platform/vfio_platform_common.c ret = vfio_platform_regions_init(vdev); vdev 264 drivers/vfio/platform/vfio_platform_common.c ret = vfio_platform_irq_init(vdev); vdev 268 drivers/vfio/platform/vfio_platform_common.c ret = pm_runtime_get_sync(vdev->device); vdev 272 drivers/vfio/platform/vfio_platform_common.c ret = vfio_platform_call_reset(vdev, &extra_dbg); vdev 273 drivers/vfio/platform/vfio_platform_common.c if (ret && vdev->reset_required) { vdev 274 drivers/vfio/platform/vfio_platform_common.c dev_warn(vdev->device, "reset driver is required and reset call failed in open (%d) %s\n", vdev 280 drivers/vfio/platform/vfio_platform_common.c vdev->refcnt++; vdev 286 drivers/vfio/platform/vfio_platform_common.c pm_runtime_put(vdev->device); vdev 288 drivers/vfio/platform/vfio_platform_common.c vfio_platform_irq_cleanup(vdev); vdev 290 drivers/vfio/platform/vfio_platform_common.c vfio_platform_regions_cleanup(vdev); vdev 300 drivers/vfio/platform/vfio_platform_common.c struct vfio_platform_device *vdev = device_data; vdev 314 drivers/vfio/platform/vfio_platform_common.c if (vfio_platform_has_reset(vdev)) vdev 315 drivers/vfio/platform/vfio_platform_common.c vdev->flags |= VFIO_DEVICE_FLAGS_RESET; vdev 316 drivers/vfio/platform/vfio_platform_common.c info.flags = vdev->flags; vdev 317 drivers/vfio/platform/vfio_platform_common.c info.num_regions = vdev->num_regions; vdev 318 drivers/vfio/platform/vfio_platform_common.c info.num_irqs = vdev->num_irqs; vdev 334 drivers/vfio/platform/vfio_platform_common.c if (info.index >= vdev->num_regions) vdev 339 drivers/vfio/platform/vfio_platform_common.c info.size = vdev->regions[info.index].size; vdev 340 drivers/vfio/platform/vfio_platform_common.c info.flags = vdev->regions[info.index].flags; vdev 356 drivers/vfio/platform/vfio_platform_common.c if (info.index >= vdev->num_irqs) vdev 359 drivers/vfio/platform/vfio_platform_common.c info.flags = vdev->irqs[info.index].flags; vdev 360 drivers/vfio/platform/vfio_platform_common.c info.count = vdev->irqs[info.index].count; vdev 376 drivers/vfio/platform/vfio_platform_common.c ret = vfio_set_irqs_validate_and_prepare(&hdr, vdev->num_irqs, vdev 377 drivers/vfio/platform/vfio_platform_common.c vdev->num_irqs, &data_size); vdev 388 drivers/vfio/platform/vfio_platform_common.c mutex_lock(&vdev->igate); vdev 390 drivers/vfio/platform/vfio_platform_common.c ret = vfio_platform_set_irqs_ioctl(vdev, hdr.flags, hdr.index, vdev 392 drivers/vfio/platform/vfio_platform_common.c mutex_unlock(&vdev->igate); vdev 398 drivers/vfio/platform/vfio_platform_common.c return vfio_platform_call_reset(vdev, NULL); vdev 462 drivers/vfio/platform/vfio_platform_common.c struct vfio_platform_device *vdev = device_data; vdev 466 drivers/vfio/platform/vfio_platform_common.c if (index >= vdev->num_regions) vdev 469 drivers/vfio/platform/vfio_platform_common.c if (!(vdev->regions[index].flags & VFIO_REGION_INFO_FLAG_READ)) vdev 472 drivers/vfio/platform/vfio_platform_common.c if (vdev->regions[index].type & VFIO_PLATFORM_REGION_TYPE_MMIO) vdev 473 drivers/vfio/platform/vfio_platform_common.c return vfio_platform_read_mmio(&vdev->regions[index], vdev 475 drivers/vfio/platform/vfio_platform_common.c else if (vdev->regions[index].type & VFIO_PLATFORM_REGION_TYPE_PIO) vdev 538 drivers/vfio/platform/vfio_platform_common.c struct vfio_platform_device *vdev = device_data; vdev 542 drivers/vfio/platform/vfio_platform_common.c if (index >= vdev->num_regions) vdev 545 drivers/vfio/platform/vfio_platform_common.c if (!(vdev->regions[index].flags & VFIO_REGION_INFO_FLAG_WRITE)) vdev 548 drivers/vfio/platform/vfio_platform_common.c if (vdev->regions[index].type & VFIO_PLATFORM_REGION_TYPE_MMIO) vdev 549 drivers/vfio/platform/vfio_platform_common.c return vfio_platform_write_mmio(&vdev->regions[index], vdev 551 drivers/vfio/platform/vfio_platform_common.c else if (vdev->regions[index].type & VFIO_PLATFORM_REGION_TYPE_PIO) vdev 579 drivers/vfio/platform/vfio_platform_common.c struct vfio_platform_device *vdev = device_data; vdev 588 drivers/vfio/platform/vfio_platform_common.c if (index >= vdev->num_regions) vdev 595 drivers/vfio/platform/vfio_platform_common.c if (!(vdev->regions[index].flags & VFIO_REGION_INFO_FLAG_MMAP)) vdev 598 drivers/vfio/platform/vfio_platform_common.c if (!(vdev->regions[index].flags & VFIO_REGION_INFO_FLAG_READ) vdev 602 drivers/vfio/platform/vfio_platform_common.c if (!(vdev->regions[index].flags & VFIO_REGION_INFO_FLAG_WRITE) vdev 606 drivers/vfio/platform/vfio_platform_common.c vma->vm_private_data = vdev; vdev 608 drivers/vfio/platform/vfio_platform_common.c if (vdev->regions[index].type & VFIO_PLATFORM_REGION_TYPE_MMIO) vdev 609 drivers/vfio/platform/vfio_platform_common.c return vfio_platform_mmap_mmio(vdev->regions[index], vma); vdev 611 drivers/vfio/platform/vfio_platform_common.c else if (vdev->regions[index].type & VFIO_PLATFORM_REGION_TYPE_PIO) vdev 627 drivers/vfio/platform/vfio_platform_common.c static int vfio_platform_of_probe(struct vfio_platform_device *vdev, vdev 633 drivers/vfio/platform/vfio_platform_common.c &vdev->compat); vdev 635 drivers/vfio/platform/vfio_platform_common.c dev_err(dev, "Cannot retrieve compat for %s\n", vdev->name); vdev 657 drivers/vfio/platform/vfio_platform_common.c int vfio_platform_probe_common(struct vfio_platform_device *vdev, vdev 663 drivers/vfio/platform/vfio_platform_common.c if (!vdev) vdev 666 drivers/vfio/platform/vfio_platform_common.c ret = vfio_platform_acpi_probe(vdev, dev); vdev 668 drivers/vfio/platform/vfio_platform_common.c ret = vfio_platform_of_probe(vdev, dev); vdev 673 drivers/vfio/platform/vfio_platform_common.c vdev->device = dev; vdev 675 drivers/vfio/platform/vfio_platform_common.c ret = vfio_platform_get_reset(vdev); vdev 676 drivers/vfio/platform/vfio_platform_common.c if (ret && vdev->reset_required) { vdev 678 drivers/vfio/platform/vfio_platform_common.c vdev->name); vdev 684 drivers/vfio/platform/vfio_platform_common.c dev_err(dev, "No IOMMU group for device %s\n", vdev->name); vdev 689 drivers/vfio/platform/vfio_platform_common.c ret = vfio_add_group_dev(dev, &vfio_platform_ops, vdev); vdev 693 drivers/vfio/platform/vfio_platform_common.c mutex_init(&vdev->igate); vdev 695 drivers/vfio/platform/vfio_platform_common.c pm_runtime_enable(vdev->device); vdev 701 drivers/vfio/platform/vfio_platform_common.c vfio_platform_put_reset(vdev); vdev 708 drivers/vfio/platform/vfio_platform_common.c struct vfio_platform_device *vdev; vdev 710 drivers/vfio/platform/vfio_platform_common.c vdev = vfio_del_group_dev(dev); vdev 712 drivers/vfio/platform/vfio_platform_common.c if (vdev) { vdev 713 drivers/vfio/platform/vfio_platform_common.c pm_runtime_disable(vdev->device); vdev 714 drivers/vfio/platform/vfio_platform_common.c vfio_platform_put_reset(vdev); vdev 718 drivers/vfio/platform/vfio_platform_common.c return vdev; vdev 41 drivers/vfio/platform/vfio_platform_irq.c static int vfio_platform_set_irq_mask(struct vfio_platform_device *vdev, vdev 49 drivers/vfio/platform/vfio_platform_irq.c if (!(vdev->irqs[index].flags & VFIO_IRQ_INFO_MASKABLE)) vdev 56 drivers/vfio/platform/vfio_platform_irq.c return vfio_virqfd_enable((void *) &vdev->irqs[index], vdev 59 drivers/vfio/platform/vfio_platform_irq.c &vdev->irqs[index].mask, fd); vdev 61 drivers/vfio/platform/vfio_platform_irq.c vfio_virqfd_disable(&vdev->irqs[index].mask); vdev 66 drivers/vfio/platform/vfio_platform_irq.c vfio_platform_mask(&vdev->irqs[index]); vdev 72 drivers/vfio/platform/vfio_platform_irq.c vfio_platform_mask(&vdev->irqs[index]); vdev 101 drivers/vfio/platform/vfio_platform_irq.c static int vfio_platform_set_irq_unmask(struct vfio_platform_device *vdev, vdev 109 drivers/vfio/platform/vfio_platform_irq.c if (!(vdev->irqs[index].flags & VFIO_IRQ_INFO_MASKABLE)) vdev 116 drivers/vfio/platform/vfio_platform_irq.c return vfio_virqfd_enable((void *) &vdev->irqs[index], vdev 119 drivers/vfio/platform/vfio_platform_irq.c &vdev->irqs[index].unmask, vdev 122 drivers/vfio/platform/vfio_platform_irq.c vfio_virqfd_disable(&vdev->irqs[index].unmask); vdev 127 drivers/vfio/platform/vfio_platform_irq.c vfio_platform_unmask(&vdev->irqs[index]); vdev 133 drivers/vfio/platform/vfio_platform_irq.c vfio_platform_unmask(&vdev->irqs[index]); vdev 172 drivers/vfio/platform/vfio_platform_irq.c static int vfio_set_trigger(struct vfio_platform_device *vdev, int index, vdev 175 drivers/vfio/platform/vfio_platform_irq.c struct vfio_platform_irq *irq = &vdev->irqs[index]; vdev 191 drivers/vfio/platform/vfio_platform_irq.c irq->hwirq, vdev->name); vdev 218 drivers/vfio/platform/vfio_platform_irq.c static int vfio_platform_set_irq_trigger(struct vfio_platform_device *vdev, vdev 223 drivers/vfio/platform/vfio_platform_irq.c struct vfio_platform_irq *irq = &vdev->irqs[index]; vdev 226 drivers/vfio/platform/vfio_platform_irq.c if (vdev->irqs[index].flags & VFIO_IRQ_INFO_AUTOMASKED) vdev 232 drivers/vfio/platform/vfio_platform_irq.c return vfio_set_trigger(vdev, index, -1, handler); vdev 240 drivers/vfio/platform/vfio_platform_irq.c return vfio_set_trigger(vdev, index, fd, handler); vdev 256 drivers/vfio/platform/vfio_platform_irq.c int vfio_platform_set_irqs_ioctl(struct vfio_platform_device *vdev, vdev 260 drivers/vfio/platform/vfio_platform_irq.c int (*func)(struct vfio_platform_device *vdev, unsigned index, vdev 279 drivers/vfio/platform/vfio_platform_irq.c return func(vdev, index, start, count, flags, data); vdev 282 drivers/vfio/platform/vfio_platform_irq.c int vfio_platform_irq_init(struct vfio_platform_device *vdev) vdev 286 drivers/vfio/platform/vfio_platform_irq.c while (vdev->get_irq(vdev, cnt) >= 0) vdev 289 drivers/vfio/platform/vfio_platform_irq.c vdev->irqs = kcalloc(cnt, sizeof(struct vfio_platform_irq), GFP_KERNEL); vdev 290 drivers/vfio/platform/vfio_platform_irq.c if (!vdev->irqs) vdev 294 drivers/vfio/platform/vfio_platform_irq.c int hwirq = vdev->get_irq(vdev, i); vdev 299 drivers/vfio/platform/vfio_platform_irq.c spin_lock_init(&vdev->irqs[i].lock); vdev 301 drivers/vfio/platform/vfio_platform_irq.c vdev->irqs[i].flags = VFIO_IRQ_INFO_EVENTFD; vdev 304 drivers/vfio/platform/vfio_platform_irq.c vdev->irqs[i].flags |= VFIO_IRQ_INFO_MASKABLE vdev 307 drivers/vfio/platform/vfio_platform_irq.c vdev->irqs[i].count = 1; vdev 308 drivers/vfio/platform/vfio_platform_irq.c vdev->irqs[i].hwirq = hwirq; vdev 309 drivers/vfio/platform/vfio_platform_irq.c vdev->irqs[i].masked = false; vdev 312 drivers/vfio/platform/vfio_platform_irq.c vdev->num_irqs = cnt; vdev 316 drivers/vfio/platform/vfio_platform_irq.c kfree(vdev->irqs); vdev 320 drivers/vfio/platform/vfio_platform_irq.c void vfio_platform_irq_cleanup(struct vfio_platform_device *vdev) vdev 324 drivers/vfio/platform/vfio_platform_irq.c for (i = 0; i < vdev->num_irqs; i++) vdev 325 drivers/vfio/platform/vfio_platform_irq.c vfio_set_trigger(vdev, i, -1, NULL); vdev 327 drivers/vfio/platform/vfio_platform_irq.c vdev->num_irqs = 0; vdev 328 drivers/vfio/platform/vfio_platform_irq.c kfree(vdev->irqs); vdev 65 drivers/vfio/platform/vfio_platform_private.h (*get_resource)(struct vfio_platform_device *vdev, int i); vdev 66 drivers/vfio/platform/vfio_platform_private.h int (*get_irq)(struct vfio_platform_device *vdev, int i); vdev 67 drivers/vfio/platform/vfio_platform_private.h int (*of_reset)(struct vfio_platform_device *vdev); vdev 72 drivers/vfio/platform/vfio_platform_private.h typedef int (*vfio_platform_reset_fn_t)(struct vfio_platform_device *vdev); vdev 81 drivers/vfio/platform/vfio_platform_private.h extern int vfio_platform_probe_common(struct vfio_platform_device *vdev, vdev 86 drivers/vfio/platform/vfio_platform_private.h extern int vfio_platform_irq_init(struct vfio_platform_device *vdev); vdev 87 drivers/vfio/platform/vfio_platform_private.h extern void vfio_platform_irq_cleanup(struct vfio_platform_device *vdev); vdev 89 drivers/vfio/platform/vfio_platform_private.h extern int vfio_platform_set_irqs_ioctl(struct vfio_platform_device *vdev, vdev 310 drivers/video/fbdev/via/accel.c engine = viapar->shared->vdev->engine_mmio; vdev 357 drivers/video/fbdev/via/accel.c viapar->shared->vdev->camera_fbmem_size = 3*VGA_HEIGHT*VGA_WIDTH*2; vdev 358 drivers/video/fbdev/via/accel.c viapar->fbmem_free -= viapar->shared->vdev->camera_fbmem_size; vdev 359 drivers/video/fbdev/via/accel.c viapar->fbmem_used += viapar->shared->vdev->camera_fbmem_size; vdev 360 drivers/video/fbdev/via/accel.c viapar->shared->vdev->camera_fbmem_offset = viapar->fbmem_free; vdev 369 drivers/video/fbdev/via/accel.c void __iomem *engine = viapar->shared->vdev->engine_mmio; vdev 483 drivers/video/fbdev/via/accel.c temp = readl(viapar->shared->vdev->engine_mmio + VIA_REG_CURSOR_MODE); vdev 500 drivers/video/fbdev/via/accel.c writel(temp, viapar->shared->vdev->engine_mmio + VIA_REG_CURSOR_MODE); vdev 508 drivers/video/fbdev/via/accel.c void __iomem *engine = viapar->shared->vdev->engine_mmio; vdev 435 drivers/video/fbdev/via/via-core.c static int via_pci_setup_mmio(struct viafb_dev *vdev) vdev 443 drivers/video/fbdev/via/via-core.c vdev->engine_start = pci_resource_start(vdev->pdev, 1); vdev 444 drivers/video/fbdev/via/via-core.c vdev->engine_len = pci_resource_len(vdev->pdev, 1); vdev 445 drivers/video/fbdev/via/via-core.c vdev->engine_mmio = ioremap_nocache(vdev->engine_start, vdev 446 drivers/video/fbdev/via/via-core.c vdev->engine_len); vdev 447 drivers/video/fbdev/via/via-core.c if (vdev->engine_mmio == NULL) vdev 448 drivers/video/fbdev/via/via-core.c dev_err(&vdev->pdev->dev, vdev 458 drivers/video/fbdev/via/via-core.c if (vdev->chip_type == UNICHROME_VX900) vdev 459 drivers/video/fbdev/via/via-core.c vdev->fbmem_start = pci_resource_start(vdev->pdev, 2); vdev 461 drivers/video/fbdev/via/via-core.c vdev->fbmem_start = pci_resource_start(vdev->pdev, 0); vdev 462 drivers/video/fbdev/via/via-core.c ret = vdev->fbmem_len = viafb_get_fb_size_from_pci(vdev->chip_type); vdev 467 drivers/video/fbdev/via/via-core.c for (; vdev->fbmem_len >= 8 << 20; vdev->fbmem_len /= 2) { vdev 468 drivers/video/fbdev/via/via-core.c vdev->fbmem = ioremap_wc(vdev->fbmem_start, vdev->fbmem_len); vdev 469 drivers/video/fbdev/via/via-core.c if (vdev->fbmem) vdev 473 drivers/video/fbdev/via/via-core.c if (vdev->fbmem == NULL) { vdev 479 drivers/video/fbdev/via/via-core.c iounmap(vdev->engine_mmio); vdev 483 drivers/video/fbdev/via/via-core.c static void via_pci_teardown_mmio(struct viafb_dev *vdev) vdev 485 drivers/video/fbdev/via/via-core.c iounmap(vdev->fbmem); vdev 486 drivers/video/fbdev/via/via-core.c iounmap(vdev->engine_mmio); vdev 510 drivers/video/fbdev/via/via-core.c static int via_create_subdev(struct viafb_dev *vdev, vdev 517 drivers/video/fbdev/via/via-core.c dev_err(&vdev->pdev->dev, "Unable to allocate pdev %s\n", vdev 521 drivers/video/fbdev/via/via-core.c info->platdev->dev.parent = &vdev->pdev->dev; vdev 522 drivers/video/fbdev/via/via-core.c info->platdev->dev.platform_data = vdev; vdev 525 drivers/video/fbdev/via/via-core.c dev_err(&vdev->pdev->dev, "Unable to add pdev %s\n", vdev 533 drivers/video/fbdev/via/via-core.c static int via_setup_subdevs(struct viafb_dev *vdev) vdev 543 drivers/video/fbdev/via/via-core.c via_create_subdev(vdev, viafb_subdevs + i); vdev 75 drivers/video/fbdev/via/via-gpio.c struct viafb_dev *vdev; vdev 91 drivers/video/fbdev/via/via-gpio.c spin_lock_irqsave(&cfg->vdev->reg_lock, flags); vdev 100 drivers/video/fbdev/via/via-gpio.c spin_unlock_irqrestore(&cfg->vdev->reg_lock, flags); vdev 120 drivers/video/fbdev/via/via-gpio.c spin_lock_irqsave(&cfg->vdev->reg_lock, flags); vdev 124 drivers/video/fbdev/via/via-gpio.c spin_unlock_irqrestore(&cfg->vdev->reg_lock, flags); vdev 135 drivers/video/fbdev/via/via-gpio.c spin_lock_irqsave(&cfg->vdev->reg_lock, flags); vdev 138 drivers/video/fbdev/via/via-gpio.c spin_unlock_irqrestore(&cfg->vdev->reg_lock, flags); vdev 211 drivers/video/fbdev/via/via-gpio.c struct viafb_dev *vdev = platdev->dev.platform_data; vdev 212 drivers/video/fbdev/via/via-gpio.c struct via_port_cfg *port_cfg = vdev->port_cfg; vdev 235 drivers/video/fbdev/via/via-gpio.c viafb_gpio_config.vdev = vdev; vdev 244 drivers/video/fbdev/via/via-gpio.c spin_lock_irqsave(&viafb_gpio_config.vdev->reg_lock, flags); vdev 247 drivers/video/fbdev/via/via-gpio.c spin_unlock_irqrestore(&viafb_gpio_config.vdev->reg_lock, flags); vdev 283 drivers/video/fbdev/via/via-gpio.c spin_lock_irqsave(&viafb_gpio_config.vdev->reg_lock, flags); vdev 287 drivers/video/fbdev/via/via-gpio.c spin_unlock_irqrestore(&viafb_gpio_config.vdev->reg_lock, flags); vdev 246 drivers/video/fbdev/via/viafbdev.c !ppar->shared->vdev->engine_mmio) vdev 692 drivers/video/fbdev/via/viafbdev.c if (shared->hw_bitblt(shared->vdev->engine_mmio, VIA_BITBLT_FILL, vdev 714 drivers/video/fbdev/via/viafbdev.c if (shared->hw_bitblt(shared->vdev->engine_mmio, VIA_BITBLT_COLOR, vdev 751 drivers/video/fbdev/via/viafbdev.c if (shared->hw_bitblt(shared->vdev->engine_mmio, op, vdev 761 drivers/video/fbdev/via/viafbdev.c void __iomem *engine = viapar->shared->vdev->engine_mmio; vdev 1684 drivers/video/fbdev/via/viafbdev.c if (viaparinfo->shared->vdev->engine_mmio) vdev 1728 drivers/video/fbdev/via/viafbdev.c int via_fb_pci_probe(struct viafb_dev *vdev) vdev 1744 drivers/video/fbdev/via/viafbdev.c &vdev->pdev->dev); vdev 1750 drivers/video/fbdev/via/viafbdev.c viaparinfo->shared->vdev = vdev; vdev 1764 drivers/video/fbdev/via/viafbdev.c viafb_init_chip_info(vdev->chip_type); vdev 1770 drivers/video/fbdev/via/viafbdev.c viaparinfo->fbmem = vdev->fbmem_start; vdev 1771 drivers/video/fbdev/via/viafbdev.c viaparinfo->memsize = vdev->fbmem_len; vdev 1774 drivers/video/fbdev/via/viafbdev.c viafbinfo->screen_base = vdev->fbmem; vdev 1776 drivers/video/fbdev/via/viafbdev.c viafbinfo->fix.mmio_start = vdev->engine_start; vdev 1777 drivers/video/fbdev/via/viafbdev.c viafbinfo->fix.mmio_len = vdev->engine_len; vdev 1819 drivers/video/fbdev/via/viafbdev.c &vdev->pdev->dev); vdev 36 drivers/video/fbdev/via/viafbdev.h struct viafb_dev *vdev; /* Global dev info */ vdev 91 drivers/video/fbdev/via/viafbdev.h int via_fb_pci_probe(struct viafb_dev *vdev); vdev 104 drivers/virtio/virtio.c void virtio_check_driver_offered_feature(const struct virtio_device *vdev, vdev 108 drivers/virtio/virtio.c struct virtio_driver *drv = drv_to_virtio(vdev->dev.driver); vdev 57 drivers/virtio/virtio_balloon.c struct virtio_device *vdev; vdev 134 drivers/virtio/virtio_balloon.c struct virtio_balloon *vb = vq->vdev->priv; vdev 167 drivers/virtio/virtio_balloon.c pfns[i] = cpu_to_virtio32(vb->vdev, vdev 186 drivers/virtio/virtio_balloon.c dev_info_ratelimited(&vb->vdev->dev, vdev 206 drivers/virtio/virtio_balloon.c if (!virtio_has_feature(vb->vdev, vdev 227 drivers/virtio/virtio_balloon.c if (!virtio_has_feature(vb->vdev, vdev 275 drivers/virtio/virtio_balloon.c vb->stats[idx].tag = cpu_to_virtio16(vb->vdev, tag); vdev 276 drivers/virtio/virtio_balloon.c vb->stats[idx].val = cpu_to_virtio64(vb->vdev, val); vdev 332 drivers/virtio/virtio_balloon.c struct virtio_balloon *vb = vq->vdev->priv; vdev 361 drivers/virtio/virtio_balloon.c virtio_cread(vb->vdev, struct virtio_balloon_config, num_pages, vdev 365 drivers/virtio/virtio_balloon.c if (!virtio_has_feature(vb->vdev, VIRTIO_F_VERSION_1)) vdev 395 drivers/virtio/virtio_balloon.c if (!virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_FREE_PAGE_HINT)) vdev 406 drivers/virtio/virtio_balloon.c static void virtballoon_changed(struct virtio_device *vdev) vdev 408 drivers/virtio/virtio_balloon.c struct virtio_balloon *vb = vdev->priv; vdev 425 drivers/virtio/virtio_balloon.c if (!virtio_has_feature(vb->vdev, VIRTIO_F_VERSION_1)) vdev 428 drivers/virtio/virtio_balloon.c virtio_cwrite(vb->vdev, struct virtio_balloon_config, actual, vdev 484 drivers/virtio/virtio_balloon.c if (virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_STATS_VQ)) { vdev 489 drivers/virtio/virtio_balloon.c if (virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_FREE_PAGE_HINT)) { vdev 494 drivers/virtio/virtio_balloon.c err = vb->vdev->config->find_vqs(vb->vdev, VIRTIO_BALLOON_VQ_MAX, vdev 501 drivers/virtio/virtio_balloon.c if (virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_STATS_VQ)) { vdev 516 drivers/virtio/virtio_balloon.c dev_warn(&vb->vdev->dev, "%s: add stat_vq failed\n", vdev 523 drivers/virtio/virtio_balloon.c if (virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_FREE_PAGE_HINT)) vdev 533 drivers/virtio/virtio_balloon.c virtio_cread(vb->vdev, struct virtio_balloon_config, vdev 550 drivers/virtio/virtio_balloon.c vb->cmd_id_active = virtio32_to_cpu(vb->vdev, vdev 633 drivers/virtio/virtio_balloon.c cmd_id_active = virtio32_to_cpu(vb->vdev, vb->cmd_id_active); vdev 655 drivers/virtio/virtio_balloon.c struct device *dev = &vb->vdev->dev; vdev 684 drivers/virtio/virtio_balloon.c virtio32_to_cpu(vb->vdev, vb->cmd_id_active)) { vdev 733 drivers/virtio/virtio_balloon.c if (!virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_DEFLATE_ON_OOM) && vdev 825 drivers/virtio/virtio_balloon.c if (virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_FREE_PAGE_HINT)) vdev 863 drivers/virtio/virtio_balloon.c static int virtballoon_probe(struct virtio_device *vdev) vdev 869 drivers/virtio/virtio_balloon.c if (!vdev->config->get) { vdev 870 drivers/virtio/virtio_balloon.c dev_err(&vdev->dev, "%s failure: config access disabled\n", vdev 875 drivers/virtio/virtio_balloon.c vdev->priv = vb = kzalloc(sizeof(*vb), GFP_KERNEL); vdev 886 drivers/virtio/virtio_balloon.c vb->vdev = vdev; vdev 909 drivers/virtio/virtio_balloon.c if (virtio_has_feature(vdev, VIRTIO_BALLOON_F_FREE_PAGE_HINT)) { vdev 926 drivers/virtio/virtio_balloon.c vb->cmd_id_active = cpu_to_virtio32(vb->vdev, vdev 928 drivers/virtio/virtio_balloon.c vb->cmd_id_stop = cpu_to_virtio32(vb->vdev, vdev 932 drivers/virtio/virtio_balloon.c if (virtio_has_feature(vdev, VIRTIO_BALLOON_F_PAGE_POISON)) { vdev 934 drivers/virtio/virtio_balloon.c virtio_cwrite(vb->vdev, struct virtio_balloon_config, vdev 942 drivers/virtio/virtio_balloon.c if (virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_DEFLATE_ON_OOM)) { vdev 947 drivers/virtio/virtio_balloon.c virtio_device_ready(vdev); vdev 950 drivers/virtio/virtio_balloon.c virtballoon_changed(vdev); vdev 954 drivers/virtio/virtio_balloon.c if (virtio_has_feature(vdev, VIRTIO_BALLOON_F_FREE_PAGE_HINT)) vdev 963 drivers/virtio/virtio_balloon.c vdev->config->del_vqs(vdev); vdev 978 drivers/virtio/virtio_balloon.c if (virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_FREE_PAGE_HINT)) vdev 982 drivers/virtio/virtio_balloon.c vb->vdev->config->reset(vb->vdev); vdev 984 drivers/virtio/virtio_balloon.c vb->vdev->config->del_vqs(vb->vdev); vdev 987 drivers/virtio/virtio_balloon.c static void virtballoon_remove(struct virtio_device *vdev) vdev 989 drivers/virtio/virtio_balloon.c struct virtio_balloon *vb = vdev->priv; vdev 991 drivers/virtio/virtio_balloon.c if (virtio_has_feature(vb->vdev, VIRTIO_BALLOON_F_DEFLATE_ON_OOM)) vdev 999 drivers/virtio/virtio_balloon.c if (virtio_has_feature(vdev, VIRTIO_BALLOON_F_FREE_PAGE_HINT)) { vdev 1015 drivers/virtio/virtio_balloon.c static int virtballoon_freeze(struct virtio_device *vdev) vdev 1017 drivers/virtio/virtio_balloon.c struct virtio_balloon *vb = vdev->priv; vdev 1027 drivers/virtio/virtio_balloon.c static int virtballoon_restore(struct virtio_device *vdev) vdev 1029 drivers/virtio/virtio_balloon.c struct virtio_balloon *vb = vdev->priv; vdev 1032 drivers/virtio/virtio_balloon.c ret = init_vqs(vdev->priv); vdev 1036 drivers/virtio/virtio_balloon.c virtio_device_ready(vdev); vdev 1039 drivers/virtio/virtio_balloon.c virtballoon_changed(vdev); vdev 1045 drivers/virtio/virtio_balloon.c static int virtballoon_validate(struct virtio_device *vdev) vdev 1048 drivers/virtio/virtio_balloon.c __virtio_clear_bit(vdev, VIRTIO_BALLOON_F_PAGE_POISON); vdev 1050 drivers/virtio/virtio_balloon.c __virtio_clear_bit(vdev, VIRTIO_F_IOMMU_PLATFORM); vdev 11 drivers/virtio/virtio_input.c struct virtio_device *vdev; vdev 33 drivers/virtio/virtio_input.c struct virtio_input *vi = vq->vdev->priv; vdev 91 drivers/virtio/virtio_input.c struct virtio_input *vi = vq->vdev->priv; vdev 115 drivers/virtio/virtio_input.c virtio_cwrite(vi->vdev, struct virtio_input_config, select, &select); vdev 116 drivers/virtio/virtio_input.c virtio_cwrite(vi->vdev, struct virtio_input_config, subsel, &subsel); vdev 117 drivers/virtio/virtio_input.c virtio_cread(vi->vdev, struct virtio_input_config, size, &size); vdev 142 drivers/virtio/virtio_input.c virtio_cread_bytes(vi->vdev, offsetof(struct virtio_input_config, vdev 160 drivers/virtio/virtio_input.c virtio_cread(vi->vdev, struct virtio_input_config, u.abs.min, &mi); vdev 161 drivers/virtio/virtio_input.c virtio_cread(vi->vdev, struct virtio_input_config, u.abs.max, &ma); vdev 162 drivers/virtio/virtio_input.c virtio_cread(vi->vdev, struct virtio_input_config, u.abs.res, &re); vdev 163 drivers/virtio/virtio_input.c virtio_cread(vi->vdev, struct virtio_input_config, u.abs.fuzz, &fu); vdev 164 drivers/virtio/virtio_input.c virtio_cread(vi->vdev, struct virtio_input_config, u.abs.flat, &fl); vdev 177 drivers/virtio/virtio_input.c err = virtio_find_vqs(vi->vdev, 2, vqs, cbs, names, NULL); vdev 201 drivers/virtio/virtio_input.c static int virtinput_probe(struct virtio_device *vdev) vdev 208 drivers/virtio/virtio_input.c if (!virtio_has_feature(vdev, VIRTIO_F_VERSION_1)) vdev 215 drivers/virtio/virtio_input.c vdev->priv = vi; vdev 216 drivers/virtio/virtio_input.c vi->vdev = vdev; vdev 231 drivers/virtio/virtio_input.c virtio_cread_bytes(vi->vdev, offsetof(struct virtio_input_config, vdev 235 drivers/virtio/virtio_input.c virtio_cread_bytes(vi->vdev, offsetof(struct virtio_input_config, vdev 239 drivers/virtio/virtio_input.c "virtio%d/input0", vdev->index); vdev 246 drivers/virtio/virtio_input.c virtio_cread(vi->vdev, struct virtio_input_config, vdev 248 drivers/virtio/virtio_input.c virtio_cread(vi->vdev, struct virtio_input_config, vdev 250 drivers/virtio/virtio_input.c virtio_cread(vi->vdev, struct virtio_input_config, vdev 252 drivers/virtio/virtio_input.c virtio_cread(vi->vdev, struct virtio_input_config, vdev 264 drivers/virtio/virtio_input.c vi->idev->dev.parent = &vdev->dev; vdev 293 drivers/virtio/virtio_input.c virtio_device_ready(vdev); vdev 308 drivers/virtio/virtio_input.c vdev->config->del_vqs(vdev); vdev 314 drivers/virtio/virtio_input.c static void virtinput_remove(struct virtio_device *vdev) vdev 316 drivers/virtio/virtio_input.c struct virtio_input *vi = vdev->priv; vdev 325 drivers/virtio/virtio_input.c vdev->config->reset(vdev); vdev 328 drivers/virtio/virtio_input.c vdev->config->del_vqs(vdev); vdev 333 drivers/virtio/virtio_input.c static int virtinput_freeze(struct virtio_device *vdev) vdev 335 drivers/virtio/virtio_input.c struct virtio_input *vi = vdev->priv; vdev 342 drivers/virtio/virtio_input.c vdev->config->del_vqs(vdev); vdev 346 drivers/virtio/virtio_input.c static int virtinput_restore(struct virtio_device *vdev) vdev 348 drivers/virtio/virtio_input.c struct virtio_input *vi = vdev->priv; vdev 355 drivers/virtio/virtio_input.c virtio_device_ready(vdev); vdev 81 drivers/virtio/virtio_mmio.c container_of(_plat_dev, struct virtio_mmio_device, vdev) vdev 84 drivers/virtio/virtio_mmio.c struct virtio_device vdev; vdev 107 drivers/virtio/virtio_mmio.c static u64 vm_get_features(struct virtio_device *vdev) vdev 109 drivers/virtio/virtio_mmio.c struct virtio_mmio_device *vm_dev = to_virtio_mmio_device(vdev); vdev 122 drivers/virtio/virtio_mmio.c static int vm_finalize_features(struct virtio_device *vdev) vdev 124 drivers/virtio/virtio_mmio.c struct virtio_mmio_device *vm_dev = to_virtio_mmio_device(vdev); vdev 127 drivers/virtio/virtio_mmio.c vring_transport_features(vdev); vdev 131 drivers/virtio/virtio_mmio.c !__virtio_test_bit(vdev, VIRTIO_F_VERSION_1)) { vdev 132 drivers/virtio/virtio_mmio.c dev_err(&vdev->dev, "New virtio-mmio devices (version 2) must provide VIRTIO_F_VERSION_1 feature!\n"); vdev 137 drivers/virtio/virtio_mmio.c writel((u32)(vdev->features >> 32), vdev 141 drivers/virtio/virtio_mmio.c writel((u32)vdev->features, vdev 147 drivers/virtio/virtio_mmio.c static void vm_get(struct virtio_device *vdev, unsigned offset, vdev 150 drivers/virtio/virtio_mmio.c struct virtio_mmio_device *vm_dev = to_virtio_mmio_device(vdev); vdev 189 drivers/virtio/virtio_mmio.c static void vm_set(struct virtio_device *vdev, unsigned offset, vdev 192 drivers/virtio/virtio_mmio.c struct virtio_mmio_device *vm_dev = to_virtio_mmio_device(vdev); vdev 232 drivers/virtio/virtio_mmio.c static u32 vm_generation(struct virtio_device *vdev) vdev 234 drivers/virtio/virtio_mmio.c struct virtio_mmio_device *vm_dev = to_virtio_mmio_device(vdev); vdev 242 drivers/virtio/virtio_mmio.c static u8 vm_get_status(struct virtio_device *vdev) vdev 244 drivers/virtio/virtio_mmio.c struct virtio_mmio_device *vm_dev = to_virtio_mmio_device(vdev); vdev 249 drivers/virtio/virtio_mmio.c static void vm_set_status(struct virtio_device *vdev, u8 status) vdev 251 drivers/virtio/virtio_mmio.c struct virtio_mmio_device *vm_dev = to_virtio_mmio_device(vdev); vdev 259 drivers/virtio/virtio_mmio.c static void vm_reset(struct virtio_device *vdev) vdev 261 drivers/virtio/virtio_mmio.c struct virtio_mmio_device *vm_dev = to_virtio_mmio_device(vdev); vdev 274 drivers/virtio/virtio_mmio.c struct virtio_mmio_device *vm_dev = to_virtio_mmio_device(vq->vdev); vdev 296 drivers/virtio/virtio_mmio.c virtio_config_changed(&vm_dev->vdev); vdev 314 drivers/virtio/virtio_mmio.c struct virtio_mmio_device *vm_dev = to_virtio_mmio_device(vq->vdev); vdev 337 drivers/virtio/virtio_mmio.c static void vm_del_vqs(struct virtio_device *vdev) vdev 339 drivers/virtio/virtio_mmio.c struct virtio_mmio_device *vm_dev = to_virtio_mmio_device(vdev); vdev 342 drivers/virtio/virtio_mmio.c list_for_each_entry_safe(vq, n, &vdev->vqs, list) vdev 348 drivers/virtio/virtio_mmio.c static struct virtqueue *vm_setup_vq(struct virtio_device *vdev, unsigned index, vdev 352 drivers/virtio/virtio_mmio.c struct virtio_mmio_device *vm_dev = to_virtio_mmio_device(vdev); vdev 386 drivers/virtio/virtio_mmio.c vq = vring_create_virtqueue(index, num, VIRTIO_MMIO_VRING_ALIGN, vdev, vdev 404 drivers/virtio/virtio_mmio.c dev_err(&vdev->dev, vdev 458 drivers/virtio/virtio_mmio.c static int vm_find_vqs(struct virtio_device *vdev, unsigned nvqs, vdev 465 drivers/virtio/virtio_mmio.c struct virtio_mmio_device *vm_dev = to_virtio_mmio_device(vdev); vdev 470 drivers/virtio/virtio_mmio.c dev_err(&vdev->dev, "Cannot get IRQ resource\n"); vdev 475 drivers/virtio/virtio_mmio.c dev_name(&vdev->dev), vm_dev); vdev 485 drivers/virtio/virtio_mmio.c vqs[i] = vm_setup_vq(vdev, queue_idx++, callbacks[i], names[i], vdev 488 drivers/virtio/virtio_mmio.c vm_del_vqs(vdev); vdev 496 drivers/virtio/virtio_mmio.c static const char *vm_bus_name(struct virtio_device *vdev) vdev 498 drivers/virtio/virtio_mmio.c struct virtio_mmio_device *vm_dev = to_virtio_mmio_device(vdev); vdev 520 drivers/virtio/virtio_mmio.c struct virtio_device *vdev = vdev 523 drivers/virtio/virtio_mmio.c container_of(vdev, struct virtio_mmio_device, vdev); vdev 550 drivers/virtio/virtio_mmio.c vm_dev->vdev.dev.parent = &pdev->dev; vdev 551 drivers/virtio/virtio_mmio.c vm_dev->vdev.dev.release = virtio_mmio_release_dev; vdev 552 drivers/virtio/virtio_mmio.c vm_dev->vdev.config = &virtio_mmio_config_ops; vdev 576 drivers/virtio/virtio_mmio.c vm_dev->vdev.id.device = readl(vm_dev->base + VIRTIO_MMIO_DEVICE_ID); vdev 577 drivers/virtio/virtio_mmio.c if (vm_dev->vdev.id.device == 0) { vdev 584 drivers/virtio/virtio_mmio.c vm_dev->vdev.id.vendor = readl(vm_dev->base + VIRTIO_MMIO_VENDOR_ID); vdev 607 drivers/virtio/virtio_mmio.c rc = register_virtio_device(&vm_dev->vdev); vdev 609 drivers/virtio/virtio_mmio.c put_device(&vm_dev->vdev.dev); vdev 617 drivers/virtio/virtio_mmio.c unregister_virtio_device(&vm_dev->vdev); vdev 28 drivers/virtio/virtio_pci_common.c void vp_synchronize_vectors(struct virtio_device *vdev) vdev 30 drivers/virtio/virtio_pci_common.c struct virtio_pci_device *vp_dev = to_vp_device(vdev); vdev 54 drivers/virtio/virtio_pci_common.c virtio_config_changed(&vp_dev->vdev); vdev 102 drivers/virtio/virtio_pci_common.c static int vp_request_msix_vectors(struct virtio_device *vdev, int nvectors, vdev 105 drivers/virtio/virtio_pci_common.c struct virtio_pci_device *vp_dev = to_vp_device(vdev); vdev 106 drivers/virtio/virtio_pci_common.c const char *name = dev_name(&vp_dev->vdev.dev); vdev 174 drivers/virtio/virtio_pci_common.c static struct virtqueue *vp_setup_vq(struct virtio_device *vdev, unsigned index, vdev 180 drivers/virtio/virtio_pci_common.c struct virtio_pci_device *vp_dev = to_vp_device(vdev); vdev 213 drivers/virtio/virtio_pci_common.c struct virtio_pci_device *vp_dev = to_vp_device(vq->vdev); vdev 226 drivers/virtio/virtio_pci_common.c void vp_del_vqs(struct virtio_device *vdev) vdev 228 drivers/virtio/virtio_pci_common.c struct virtio_pci_device *vp_dev = to_vp_device(vdev); vdev 232 drivers/virtio/virtio_pci_common.c list_for_each_entry_safe(vq, n, &vdev->vqs, list) { vdev 279 drivers/virtio/virtio_pci_common.c static int vp_find_vqs_msix(struct virtio_device *vdev, unsigned nvqs, vdev 285 drivers/virtio/virtio_pci_common.c struct virtio_pci_device *vp_dev = to_vp_device(vdev); vdev 304 drivers/virtio/virtio_pci_common.c err = vp_request_msix_vectors(vdev, nvectors, per_vq_vectors, vdev 323 drivers/virtio/virtio_pci_common.c vqs[i] = vp_setup_vq(vdev, queue_idx++, callbacks[i], names[i], vdev 338 drivers/virtio/virtio_pci_common.c dev_name(&vp_dev->vdev.dev), names[i]); vdev 349 drivers/virtio/virtio_pci_common.c vp_del_vqs(vdev); vdev 353 drivers/virtio/virtio_pci_common.c static int vp_find_vqs_intx(struct virtio_device *vdev, unsigned nvqs, vdev 357 drivers/virtio/virtio_pci_common.c struct virtio_pci_device *vp_dev = to_vp_device(vdev); vdev 365 drivers/virtio/virtio_pci_common.c dev_name(&vdev->dev), vp_dev); vdev 376 drivers/virtio/virtio_pci_common.c vqs[i] = vp_setup_vq(vdev, queue_idx++, callbacks[i], names[i], vdev 387 drivers/virtio/virtio_pci_common.c vp_del_vqs(vdev); vdev 392 drivers/virtio/virtio_pci_common.c int vp_find_vqs(struct virtio_device *vdev, unsigned nvqs, vdev 400 drivers/virtio/virtio_pci_common.c err = vp_find_vqs_msix(vdev, nvqs, vqs, callbacks, names, true, ctx, desc); vdev 404 drivers/virtio/virtio_pci_common.c err = vp_find_vqs_msix(vdev, nvqs, vqs, callbacks, names, false, ctx, desc); vdev 408 drivers/virtio/virtio_pci_common.c return vp_find_vqs_intx(vdev, nvqs, vqs, callbacks, names, ctx); vdev 411 drivers/virtio/virtio_pci_common.c const char *vp_bus_name(struct virtio_device *vdev) vdev 413 drivers/virtio/virtio_pci_common.c struct virtio_pci_device *vp_dev = to_vp_device(vdev); vdev 425 drivers/virtio/virtio_pci_common.c struct virtio_device *vdev = vq->vdev; vdev 426 drivers/virtio/virtio_pci_common.c struct virtio_pci_device *vp_dev = to_vp_device(vdev); vdev 447 drivers/virtio/virtio_pci_common.c const struct cpumask *vp_get_vq_affinity(struct virtio_device *vdev, int index) vdev 449 drivers/virtio/virtio_pci_common.c struct virtio_pci_device *vp_dev = to_vp_device(vdev); vdev 466 drivers/virtio/virtio_pci_common.c ret = virtio_device_freeze(&vp_dev->vdev); vdev 484 drivers/virtio/virtio_pci_common.c return virtio_device_restore(&vp_dev->vdev); vdev 503 drivers/virtio/virtio_pci_common.c struct virtio_device *vdev = dev_to_virtio(_d); vdev 504 drivers/virtio/virtio_pci_common.c struct virtio_pci_device *vp_dev = to_vp_device(vdev); vdev 524 drivers/virtio/virtio_pci_common.c vp_dev->vdev.dev.parent = &pci_dev->dev; vdev 525 drivers/virtio/virtio_pci_common.c vp_dev->vdev.dev.release = virtio_pci_release_dev; vdev 552 drivers/virtio/virtio_pci_common.c rc = register_virtio_device(&vp_dev->vdev); vdev 568 drivers/virtio/virtio_pci_common.c put_device(&vp_dev->vdev.dev); vdev 577 drivers/virtio/virtio_pci_common.c struct device *dev = get_device(&vp_dev->vdev.dev); vdev 581 drivers/virtio/virtio_pci_common.c unregister_virtio_device(&vp_dev->vdev); vdev 595 drivers/virtio/virtio_pci_common.c struct virtio_device *vdev = &vp_dev->vdev; vdev 598 drivers/virtio/virtio_pci_common.c if (!(vdev->config->get_status(vdev) & VIRTIO_CONFIG_S_DRIVER_OK)) vdev 601 drivers/virtio/virtio_pci_common.c if (!__virtio_test_bit(vdev, VIRTIO_F_SR_IOV)) vdev 44 drivers/virtio/virtio_pci_common.h struct virtio_device vdev; vdev 118 drivers/virtio/virtio_pci_common.h static struct virtio_pci_device *to_vp_device(struct virtio_device *vdev) vdev 120 drivers/virtio/virtio_pci_common.h return container_of(vdev, struct virtio_pci_device, vdev); vdev 124 drivers/virtio/virtio_pci_common.h void vp_synchronize_vectors(struct virtio_device *vdev); vdev 128 drivers/virtio/virtio_pci_common.h void vp_del_vqs(struct virtio_device *vdev); vdev 130 drivers/virtio/virtio_pci_common.h int vp_find_vqs(struct virtio_device *vdev, unsigned nvqs, vdev 134 drivers/virtio/virtio_pci_common.h const char *vp_bus_name(struct virtio_device *vdev); vdev 143 drivers/virtio/virtio_pci_common.h const struct cpumask *vp_get_vq_affinity(struct virtio_device *vdev, int index); vdev 20 drivers/virtio/virtio_pci_legacy.c static u64 vp_get_features(struct virtio_device *vdev) vdev 22 drivers/virtio/virtio_pci_legacy.c struct virtio_pci_device *vp_dev = to_vp_device(vdev); vdev 30 drivers/virtio/virtio_pci_legacy.c static int vp_finalize_features(struct virtio_device *vdev) vdev 32 drivers/virtio/virtio_pci_legacy.c struct virtio_pci_device *vp_dev = to_vp_device(vdev); vdev 35 drivers/virtio/virtio_pci_legacy.c vring_transport_features(vdev); vdev 38 drivers/virtio/virtio_pci_legacy.c BUG_ON((u32)vdev->features != vdev->features); vdev 41 drivers/virtio/virtio_pci_legacy.c iowrite32(vdev->features, vp_dev->ioaddr + VIRTIO_PCI_GUEST_FEATURES); vdev 47 drivers/virtio/virtio_pci_legacy.c static void vp_get(struct virtio_device *vdev, unsigned offset, vdev 50 drivers/virtio/virtio_pci_legacy.c struct virtio_pci_device *vp_dev = to_vp_device(vdev); vdev 63 drivers/virtio/virtio_pci_legacy.c static void vp_set(struct virtio_device *vdev, unsigned offset, vdev 66 drivers/virtio/virtio_pci_legacy.c struct virtio_pci_device *vp_dev = to_vp_device(vdev); vdev 78 drivers/virtio/virtio_pci_legacy.c static u8 vp_get_status(struct virtio_device *vdev) vdev 80 drivers/virtio/virtio_pci_legacy.c struct virtio_pci_device *vp_dev = to_vp_device(vdev); vdev 84 drivers/virtio/virtio_pci_legacy.c static void vp_set_status(struct virtio_device *vdev, u8 status) vdev 86 drivers/virtio/virtio_pci_legacy.c struct virtio_pci_device *vp_dev = to_vp_device(vdev); vdev 92 drivers/virtio/virtio_pci_legacy.c static void vp_reset(struct virtio_device *vdev) vdev 94 drivers/virtio/virtio_pci_legacy.c struct virtio_pci_device *vp_dev = to_vp_device(vdev); vdev 101 drivers/virtio/virtio_pci_legacy.c vp_synchronize_vectors(vdev); vdev 138 drivers/virtio/virtio_pci_legacy.c VIRTIO_PCI_VRING_ALIGN, &vp_dev->vdev, vdev 179 drivers/virtio/virtio_pci_legacy.c struct virtio_pci_device *vp_dev = to_vp_device(vq->vdev); vdev 257 drivers/virtio/virtio_pci_legacy.c vp_dev->vdev.id.vendor = pci_dev->subsystem_vendor; vdev 258 drivers/virtio/virtio_pci_legacy.c vp_dev->vdev.id.device = pci_dev->subsystem_device; vdev 260 drivers/virtio/virtio_pci_legacy.c vp_dev->vdev.config = &virtio_pci_config_ops; vdev 140 drivers/virtio/virtio_pci_modern.c static u64 vp_get_features(struct virtio_device *vdev) vdev 142 drivers/virtio/virtio_pci_modern.c struct virtio_pci_device *vp_dev = to_vp_device(vdev); vdev 153 drivers/virtio/virtio_pci_modern.c static void vp_transport_features(struct virtio_device *vdev, u64 features) vdev 155 drivers/virtio/virtio_pci_modern.c struct virtio_pci_device *vp_dev = to_vp_device(vdev); vdev 160 drivers/virtio/virtio_pci_modern.c __virtio_set_bit(vdev, VIRTIO_F_SR_IOV); vdev 164 drivers/virtio/virtio_pci_modern.c static int vp_finalize_features(struct virtio_device *vdev) vdev 166 drivers/virtio/virtio_pci_modern.c struct virtio_pci_device *vp_dev = to_vp_device(vdev); vdev 167 drivers/virtio/virtio_pci_modern.c u64 features = vdev->features; vdev 170 drivers/virtio/virtio_pci_modern.c vring_transport_features(vdev); vdev 173 drivers/virtio/virtio_pci_modern.c vp_transport_features(vdev, features); vdev 175 drivers/virtio/virtio_pci_modern.c if (!__virtio_test_bit(vdev, VIRTIO_F_VERSION_1)) { vdev 176 drivers/virtio/virtio_pci_modern.c dev_err(&vdev->dev, "virtio: device uses modern interface " vdev 182 drivers/virtio/virtio_pci_modern.c vp_iowrite32((u32)vdev->features, &vp_dev->common->guest_feature); vdev 184 drivers/virtio/virtio_pci_modern.c vp_iowrite32(vdev->features >> 32, &vp_dev->common->guest_feature); vdev 190 drivers/virtio/virtio_pci_modern.c static void vp_get(struct virtio_device *vdev, unsigned offset, vdev 193 drivers/virtio/virtio_pci_modern.c struct virtio_pci_device *vp_dev = to_vp_device(vdev); vdev 226 drivers/virtio/virtio_pci_modern.c static void vp_set(struct virtio_device *vdev, unsigned offset, vdev 229 drivers/virtio/virtio_pci_modern.c struct virtio_pci_device *vp_dev = to_vp_device(vdev); vdev 260 drivers/virtio/virtio_pci_modern.c static u32 vp_generation(struct virtio_device *vdev) vdev 262 drivers/virtio/virtio_pci_modern.c struct virtio_pci_device *vp_dev = to_vp_device(vdev); vdev 267 drivers/virtio/virtio_pci_modern.c static u8 vp_get_status(struct virtio_device *vdev) vdev 269 drivers/virtio/virtio_pci_modern.c struct virtio_pci_device *vp_dev = to_vp_device(vdev); vdev 273 drivers/virtio/virtio_pci_modern.c static void vp_set_status(struct virtio_device *vdev, u8 status) vdev 275 drivers/virtio/virtio_pci_modern.c struct virtio_pci_device *vp_dev = to_vp_device(vdev); vdev 281 drivers/virtio/virtio_pci_modern.c static void vp_reset(struct virtio_device *vdev) vdev 283 drivers/virtio/virtio_pci_modern.c struct virtio_pci_device *vp_dev = to_vp_device(vdev); vdev 294 drivers/virtio/virtio_pci_modern.c vp_synchronize_vectors(vdev); vdev 342 drivers/virtio/virtio_pci_modern.c SMP_CACHE_BYTES, &vp_dev->vdev, vdev 402 drivers/virtio/virtio_pci_modern.c static int vp_modern_find_vqs(struct virtio_device *vdev, unsigned nvqs, vdev 408 drivers/virtio/virtio_pci_modern.c struct virtio_pci_device *vp_dev = to_vp_device(vdev); vdev 410 drivers/virtio/virtio_pci_modern.c int rc = vp_find_vqs(vdev, nvqs, vqs, callbacks, names, ctx, desc); vdev 418 drivers/virtio/virtio_pci_modern.c list_for_each_entry(vq, &vdev->vqs, list) { vdev 429 drivers/virtio/virtio_pci_modern.c struct virtio_pci_device *vp_dev = to_vp_device(vq->vdev); vdev 598 drivers/virtio/virtio_pci_modern.c vp_dev->vdev.id.device = pci_dev->subsystem_device; vdev 601 drivers/virtio/virtio_pci_modern.c vp_dev->vdev.id.device = pci_dev->device - 0x1040; vdev 603 drivers/virtio/virtio_pci_modern.c vp_dev->vdev.id.vendor = pci_dev->subsystem_vendor; vdev 701 drivers/virtio/virtio_pci_modern.c vp_dev->vdev.config = &virtio_pci_config_ops; vdev 703 drivers/virtio/virtio_pci_modern.c vp_dev->vdev.config = &virtio_pci_config_nodev_ops; vdev 20 drivers/virtio/virtio_ring.c dev_err(&(_vq)->vq.vdev->dev, \ vdev 57 drivers/virtio/virtio_ring.c dev_err(&_vq->vq.vdev->dev, \ vdev 241 drivers/virtio/virtio_ring.c static bool vring_use_dma_api(struct virtio_device *vdev) vdev 243 drivers/virtio/virtio_ring.c if (!virtio_has_iommu_quirk(vdev)) vdev 261 drivers/virtio/virtio_ring.c size_t virtio_max_dma_size(struct virtio_device *vdev) vdev 265 drivers/virtio/virtio_ring.c if (vring_use_dma_api(vdev)) vdev 266 drivers/virtio/virtio_ring.c max_segment_size = dma_max_mapping_size(&vdev->dev); vdev 272 drivers/virtio/virtio_ring.c static void *vring_alloc_queue(struct virtio_device *vdev, size_t size, vdev 275 drivers/virtio/virtio_ring.c if (vring_use_dma_api(vdev)) { vdev 276 drivers/virtio/virtio_ring.c return dma_alloc_coherent(vdev->dev.parent, size, vdev 305 drivers/virtio/virtio_ring.c static void vring_free_queue(struct virtio_device *vdev, size_t size, vdev 308 drivers/virtio/virtio_ring.c if (vring_use_dma_api(vdev)) vdev 309 drivers/virtio/virtio_ring.c dma_free_coherent(vdev->dev.parent, size, queue, dma_handle); vdev 321 drivers/virtio/virtio_ring.c return vq->vq.vdev->dev.parent; vdev 375 drivers/virtio/virtio_ring.c flags = virtio16_to_cpu(vq->vq.vdev, desc->flags); vdev 379 drivers/virtio/virtio_ring.c virtio64_to_cpu(vq->vq.vdev, desc->addr), vdev 380 drivers/virtio/virtio_ring.c virtio32_to_cpu(vq->vq.vdev, desc->len), vdev 385 drivers/virtio/virtio_ring.c virtio64_to_cpu(vq->vq.vdev, desc->addr), vdev 386 drivers/virtio/virtio_ring.c virtio32_to_cpu(vq->vq.vdev, desc->len), vdev 411 drivers/virtio/virtio_ring.c desc[i].next = cpu_to_virtio16(_vq->vdev, i + 1); vdev 487 drivers/virtio/virtio_ring.c desc[i].flags = cpu_to_virtio16(_vq->vdev, VRING_DESC_F_NEXT); vdev 488 drivers/virtio/virtio_ring.c desc[i].addr = cpu_to_virtio64(_vq->vdev, addr); vdev 489 drivers/virtio/virtio_ring.c desc[i].len = cpu_to_virtio32(_vq->vdev, sg->length); vdev 491 drivers/virtio/virtio_ring.c i = virtio16_to_cpu(_vq->vdev, desc[i].next); vdev 500 drivers/virtio/virtio_ring.c desc[i].flags = cpu_to_virtio16(_vq->vdev, VRING_DESC_F_NEXT | VRING_DESC_F_WRITE); vdev 501 drivers/virtio/virtio_ring.c desc[i].addr = cpu_to_virtio64(_vq->vdev, addr); vdev 502 drivers/virtio/virtio_ring.c desc[i].len = cpu_to_virtio32(_vq->vdev, sg->length); vdev 504 drivers/virtio/virtio_ring.c i = virtio16_to_cpu(_vq->vdev, desc[i].next); vdev 508 drivers/virtio/virtio_ring.c desc[prev].flags &= cpu_to_virtio16(_vq->vdev, ~VRING_DESC_F_NEXT); vdev 518 drivers/virtio/virtio_ring.c vq->split.vring.desc[head].flags = cpu_to_virtio16(_vq->vdev, vdev 520 drivers/virtio/virtio_ring.c vq->split.vring.desc[head].addr = cpu_to_virtio64(_vq->vdev, vdev 523 drivers/virtio/virtio_ring.c vq->split.vring.desc[head].len = cpu_to_virtio32(_vq->vdev, vdev 532 drivers/virtio/virtio_ring.c vq->free_head = virtio16_to_cpu(_vq->vdev, vdev 547 drivers/virtio/virtio_ring.c vq->split.vring.avail->ring[avail] = cpu_to_virtio16(_vq->vdev, head); vdev 553 drivers/virtio/virtio_ring.c vq->split.vring.avail->idx = cpu_to_virtio16(_vq->vdev, vdev 579 drivers/virtio/virtio_ring.c i = virtio16_to_cpu(_vq->vdev, desc[i].next); vdev 608 drivers/virtio/virtio_ring.c needs_kick = vring_need_event(virtio16_to_cpu(_vq->vdev, vdev 613 drivers/virtio/virtio_ring.c cpu_to_virtio16(_vq->vdev, vdev 624 drivers/virtio/virtio_ring.c __virtio16 nextflag = cpu_to_virtio16(vq->vq.vdev, VRING_DESC_F_NEXT); vdev 634 drivers/virtio/virtio_ring.c i = virtio16_to_cpu(vq->vq.vdev, vq->split.vring.desc[i].next); vdev 639 drivers/virtio/virtio_ring.c vq->split.vring.desc[i].next = cpu_to_virtio16(vq->vq.vdev, vdev 655 drivers/virtio/virtio_ring.c len = virtio32_to_cpu(vq->vq.vdev, vdev 659 drivers/virtio/virtio_ring.c cpu_to_virtio16(vq->vq.vdev, VRING_DESC_F_INDIRECT))); vdev 674 drivers/virtio/virtio_ring.c return vq->last_used_idx != virtio16_to_cpu(vq->vq.vdev, vdev 704 drivers/virtio/virtio_ring.c i = virtio32_to_cpu(_vq->vdev, vdev 706 drivers/virtio/virtio_ring.c *len = virtio32_to_cpu(_vq->vdev, vdev 728 drivers/virtio/virtio_ring.c cpu_to_virtio16(_vq->vdev, vq->last_used_idx)); vdev 744 drivers/virtio/virtio_ring.c cpu_to_virtio16(_vq->vdev, vdev 765 drivers/virtio/virtio_ring.c cpu_to_virtio16(_vq->vdev, vdev 768 drivers/virtio/virtio_ring.c vring_used_event(&vq->split.vring) = cpu_to_virtio16(_vq->vdev, vdev 778 drivers/virtio/virtio_ring.c return (u16)last_used_idx != virtio16_to_cpu(_vq->vdev, vdev 798 drivers/virtio/virtio_ring.c cpu_to_virtio16(_vq->vdev, vdev 806 drivers/virtio/virtio_ring.c cpu_to_virtio16(_vq->vdev, vq->last_used_idx + bufs)); vdev 808 drivers/virtio/virtio_ring.c if (unlikely((u16)(virtio16_to_cpu(_vq->vdev, vq->split.vring.used->idx) vdev 833 drivers/virtio/virtio_ring.c vq->split.vring.avail->idx = cpu_to_virtio16(_vq->vdev, vdev 849 drivers/virtio/virtio_ring.c struct virtio_device *vdev, vdev 865 drivers/virtio/virtio_ring.c dev_warn(&vdev->dev, "Bad virtqueue length %u\n", num); vdev 871 drivers/virtio/virtio_ring.c queue = vring_alloc_queue(vdev, vring_size(num, vring_align), vdev 885 drivers/virtio/virtio_ring.c queue = vring_alloc_queue(vdev, vring_size(num, vring_align), vdev 894 drivers/virtio/virtio_ring.c vq = __vring_new_virtqueue(index, vring, vdev, weak_barriers, context, vdev 897 drivers/virtio/virtio_ring.c vring_free_queue(vdev, queue_size_in_bytes, queue, vdev 1557 drivers/virtio/virtio_ring.c struct virtio_device *vdev, vdev 1574 drivers/virtio/virtio_ring.c ring = vring_alloc_queue(vdev, ring_size_in_bytes, vdev 1582 drivers/virtio/virtio_ring.c driver = vring_alloc_queue(vdev, event_size_in_bytes, vdev 1588 drivers/virtio/virtio_ring.c device = vring_alloc_queue(vdev, event_size_in_bytes, vdev 1599 drivers/virtio/virtio_ring.c vq->vq.vdev = vdev; vdev 1610 drivers/virtio/virtio_ring.c vq->use_dma_api = vring_use_dma_api(vdev); vdev 1611 drivers/virtio/virtio_ring.c list_add_tail(&vq->vq.list, &vdev->vqs); vdev 1617 drivers/virtio/virtio_ring.c vq->indirect = virtio_has_feature(vdev, VIRTIO_RING_F_INDIRECT_DESC) && vdev 1619 drivers/virtio/virtio_ring.c vq->event = virtio_has_feature(vdev, VIRTIO_RING_F_EVENT_IDX); vdev 1621 drivers/virtio/virtio_ring.c if (virtio_has_feature(vdev, VIRTIO_F_ORDER_PLATFORM)) vdev 1679 drivers/virtio/virtio_ring.c vring_free_queue(vdev, event_size_in_bytes, device, ring_dma_addr); vdev 1681 drivers/virtio/virtio_ring.c vring_free_queue(vdev, event_size_in_bytes, driver, ring_dma_addr); vdev 1683 drivers/virtio/virtio_ring.c vring_free_queue(vdev, ring_size_in_bytes, ring, ring_dma_addr); vdev 2055 drivers/virtio/virtio_ring.c struct virtio_device *vdev, vdev 2065 drivers/virtio/virtio_ring.c if (virtio_has_feature(vdev, VIRTIO_F_RING_PACKED)) vdev 2074 drivers/virtio/virtio_ring.c vq->vq.vdev = vdev; vdev 2084 drivers/virtio/virtio_ring.c vq->use_dma_api = vring_use_dma_api(vdev); vdev 2085 drivers/virtio/virtio_ring.c list_add_tail(&vq->vq.list, &vdev->vqs); vdev 2091 drivers/virtio/virtio_ring.c vq->indirect = virtio_has_feature(vdev, VIRTIO_RING_F_INDIRECT_DESC) && vdev 2093 drivers/virtio/virtio_ring.c vq->event = virtio_has_feature(vdev, VIRTIO_RING_F_EVENT_IDX); vdev 2095 drivers/virtio/virtio_ring.c if (virtio_has_feature(vdev, VIRTIO_F_ORDER_PLATFORM)) vdev 2109 drivers/virtio/virtio_ring.c vq->split.vring.avail->flags = cpu_to_virtio16(vdev, vdev 2123 drivers/virtio/virtio_ring.c vq->split.vring.desc[i].next = cpu_to_virtio16(vdev, i + 1); vdev 2135 drivers/virtio/virtio_ring.c struct virtio_device *vdev, vdev 2144 drivers/virtio/virtio_ring.c if (virtio_has_feature(vdev, VIRTIO_F_RING_PACKED)) vdev 2146 drivers/virtio/virtio_ring.c vdev, weak_barriers, may_reduce_num, vdev 2150 drivers/virtio/virtio_ring.c vdev, weak_barriers, may_reduce_num, vdev 2159 drivers/virtio/virtio_ring.c struct virtio_device *vdev, vdev 2169 drivers/virtio/virtio_ring.c if (virtio_has_feature(vdev, VIRTIO_F_RING_PACKED)) vdev 2173 drivers/virtio/virtio_ring.c return __vring_new_virtqueue(index, vring, vdev, weak_barriers, context, vdev 2184 drivers/virtio/virtio_ring.c vring_free_queue(vq->vq.vdev, vdev 2189 drivers/virtio/virtio_ring.c vring_free_queue(vq->vq.vdev, vdev 2194 drivers/virtio/virtio_ring.c vring_free_queue(vq->vq.vdev, vdev 2202 drivers/virtio/virtio_ring.c vring_free_queue(vq->vq.vdev, vdev 2216 drivers/virtio/virtio_ring.c void vring_transport_features(struct virtio_device *vdev) vdev 2236 drivers/virtio/virtio_ring.c __virtio_clear_bit(vdev, i); vdev 34 drivers/visorbus/visorbus_main.c struct visor_device *vdev; vdev 37 drivers/visorbus/visorbus_main.c vdev = to_visor_device(dev); vdev 38 drivers/visorbus/visorbus_main.c guid = visorchannel_get_guid(vdev->visorchannel); vdev 176 drivers/visorbus/visorbus_main.c struct visor_device *vdev = to_visor_device(dev); vdev 179 drivers/visorbus/visorbus_main.c if (vdev->chipset_bus_no == id->bus_no && vdev 180 drivers/visorbus/visorbus_main.c vdev->chipset_dev_no == id->dev_no) vdev 241 drivers/visorbus/visorbus_main.c struct visor_device *vdev = to_visor_device(dev); vdev 244 drivers/visorbus/visorbus_main.c visorchannel_get_physaddr(vdev->visorchannel)); vdev 251 drivers/visorbus/visorbus_main.c struct visor_device *vdev = to_visor_device(dev); vdev 254 drivers/visorbus/visorbus_main.c visorchannel_get_nbytes(vdev->visorchannel)); vdev 261 drivers/visorbus/visorbus_main.c struct visor_device *vdev = to_visor_device(dev); vdev 264 drivers/visorbus/visorbus_main.c visorchannel_get_clientpartition(vdev->visorchannel)); vdev 271 drivers/visorbus/visorbus_main.c struct visor_device *vdev = to_visor_device(dev); vdev 275 drivers/visorbus/visorbus_main.c visorchannel_id(vdev->visorchannel, typeid)); vdev 282 drivers/visorbus/visorbus_main.c struct visor_device *vdev = to_visor_device(dev); vdev 286 drivers/visorbus/visorbus_main.c visorchannel_zoneid(vdev->visorchannel, zoneid)); vdev 329 drivers/visorbus/visorbus_main.c struct visor_device *vdev = to_visor_device(dev); vdev 330 drivers/visorbus/visorbus_main.c u64 handle = visorchannel_get_clientpartition(vdev->visorchannel); vdev 339 drivers/visorbus/visorbus_main.c struct visor_device *vdev = to_visor_device(dev); vdev 341 drivers/visorbus/visorbus_main.c return sprintf(buf, "{%pUb}\n", &vdev->partition_guid); vdev 348 drivers/visorbus/visorbus_main.c struct visor_device *vdev = to_visor_device(dev); vdev 350 drivers/visorbus/visorbus_main.c return sprintf(buf, "%s\n", vdev->name); vdev 357 drivers/visorbus/visorbus_main.c struct visor_device *vdev = to_visor_device(dev); vdev 358 drivers/visorbus/visorbus_main.c u64 addr = visorchannel_get_physaddr(vdev->visorchannel); vdev 367 drivers/visorbus/visorbus_main.c struct visor_device *vdev = to_visor_device(dev); vdev 368 drivers/visorbus/visorbus_main.c u64 nbytes = visorchannel_get_nbytes(vdev->visorchannel); vdev 377 drivers/visorbus/visorbus_main.c struct visor_device *vdev = to_visor_device(dev); vdev 380 drivers/visorbus/visorbus_main.c visorchannel_id(vdev->visorchannel, buf); vdev 444 drivers/visorbus/visorbus_main.c struct visor_device *vdev = seq->private; vdev 445 drivers/visorbus/visorbus_main.c struct visorchannel *channel = vdev->visorchannel; vdev 452 drivers/visorbus/visorbus_main.c ((vdev->name) ? (char *)(vdev->name) : ""), vdev 453 drivers/visorbus/visorbus_main.c vdev->chipset_bus_no); vdev 305 drivers/vlynq/vlynq.c struct vlynq_device *vdev = to_vlynq_device(dev); vdev 306 drivers/vlynq/vlynq.c kfree(vdev); vdev 312 drivers/vlynq/vlynq.c struct vlynq_device *vdev = to_vlynq_device(dev); vdev 317 drivers/vlynq/vlynq.c if (ids->id == vdev->dev_id) { vdev 318 drivers/vlynq/vlynq.c vdev->divisor = ids->divisor; vdev 319 drivers/vlynq/vlynq.c vlynq_set_drvdata(vdev, ids); vdev 321 drivers/vlynq/vlynq.c "device: %08x\n", vdev->dev_id); vdev 325 drivers/vlynq/vlynq.c " for VLYNQ device: %08x\n", ids->id, vdev->dev_id); vdev 333 drivers/vlynq/vlynq.c struct vlynq_device *vdev = to_vlynq_device(dev); vdev 335 drivers/vlynq/vlynq.c struct vlynq_device_id *id = vlynq_get_drvdata(vdev); vdev 339 drivers/vlynq/vlynq.c result = drv->probe(vdev, id); vdev 290 drivers/vme/vme.c struct vme_resource *vme_slave_request(struct vme_dev *vdev, u32 address, vdev 299 drivers/vme/vme.c bridge = vdev->bridge; vdev 491 drivers/vme/vme.c struct vme_resource *vme_master_request(struct vme_dev *vdev, u32 address, vdev 500 drivers/vme/vme.c bridge = vdev->bridge; vdev 869 drivers/vme/vme.c struct vme_resource *vme_dma_request(struct vme_dev *vdev, u32 route) vdev 880 drivers/vme/vme.c bridge = vdev->bridge; vdev 1342 drivers/vme/vme.c int vme_irq_request(struct vme_dev *vdev, int level, int statid, vdev 1348 drivers/vme/vme.c bridge = vdev->bridge; vdev 1393 drivers/vme/vme.c void vme_irq_free(struct vme_dev *vdev, int level, int statid) vdev 1397 drivers/vme/vme.c bridge = vdev->bridge; vdev 1440 drivers/vme/vme.c int vme_irq_generate(struct vme_dev *vdev, int level, int statid) vdev 1444 drivers/vme/vme.c bridge = vdev->bridge; vdev 1474 drivers/vme/vme.c struct vme_resource *vme_lm_request(struct vme_dev *vdev) vdev 1482 drivers/vme/vme.c bridge = vdev->bridge; vdev 1748 drivers/vme/vme.c int vme_slot_num(struct vme_dev *vdev) vdev 1752 drivers/vme/vme.c bridge = vdev->bridge; vdev 1776 drivers/vme/vme.c int vme_bus_num(struct vme_dev *vdev) vdev 1780 drivers/vme/vme.c bridge = vdev->bridge; vdev 1835 drivers/vme/vme.c struct vme_dev *vdev; vdev 1840 drivers/vme/vme.c list_for_each_entry_safe(vdev, tmp, &bridge->devices, bridge_list) { vdev 1841 drivers/vme/vme.c list_del(&vdev->drv_list); vdev 1842 drivers/vme/vme.c list_del(&vdev->bridge_list); vdev 1843 drivers/vme/vme.c device_unregister(&vdev->dev); vdev 1857 drivers/vme/vme.c struct vme_dev *vdev; vdev 1861 drivers/vme/vme.c vdev = kzalloc(sizeof(*vdev), GFP_KERNEL); vdev 1862 drivers/vme/vme.c if (!vdev) { vdev 1866 drivers/vme/vme.c vdev->num = i; vdev 1867 drivers/vme/vme.c vdev->bridge = bridge; vdev 1868 drivers/vme/vme.c vdev->dev.platform_data = drv; vdev 1869 drivers/vme/vme.c vdev->dev.release = vme_dev_release; vdev 1870 drivers/vme/vme.c vdev->dev.parent = bridge->parent; vdev 1871 drivers/vme/vme.c vdev->dev.bus = &vme_bus_type; vdev 1872 drivers/vme/vme.c dev_set_name(&vdev->dev, "%s.%u-%u", drv->name, bridge->num, vdev 1873 drivers/vme/vme.c vdev->num); vdev 1875 drivers/vme/vme.c err = device_register(&vdev->dev); vdev 1879 drivers/vme/vme.c if (vdev->dev.platform_data) { vdev 1880 drivers/vme/vme.c list_add_tail(&vdev->drv_list, &drv->devices); vdev 1881 drivers/vme/vme.c list_add_tail(&vdev->bridge_list, &bridge->devices); vdev 1883 drivers/vme/vme.c device_unregister(&vdev->dev); vdev 1888 drivers/vme/vme.c put_device(&vdev->dev); vdev 1890 drivers/vme/vme.c list_for_each_entry_safe(vdev, tmp, &drv->devices, drv_list) { vdev 1891 drivers/vme/vme.c list_del(&vdev->drv_list); vdev 1892 drivers/vme/vme.c list_del(&vdev->bridge_list); vdev 1893 drivers/vme/vme.c device_unregister(&vdev->dev); vdev 1980 drivers/vme/vme.c struct vme_dev *vdev = dev_to_vme_dev(dev); vdev 1982 drivers/vme/vme.c if (vme_drv->match && vme_drv->match(vdev)) vdev 1993 drivers/vme/vme.c struct vme_dev *vdev = dev_to_vme_dev(dev); vdev 1997 drivers/vme/vme.c return driver->probe(vdev); vdev 2005 drivers/vme/vme.c struct vme_dev *vdev = dev_to_vme_dev(dev); vdev 2009 drivers/vme/vme.c return driver->remove(vdev); vdev 63 fs/fuse/virtio_fs.c struct virtio_fs *fs = vq->vdev->priv; vdev 214 fs/fuse/virtio_fs.c static int virtio_fs_read_tag(struct virtio_device *vdev, struct virtio_fs *fs) vdev 220 fs/fuse/virtio_fs.c virtio_cread_bytes(vdev, offsetof(struct virtio_fs_config, tag), vdev 229 fs/fuse/virtio_fs.c fs->tag = devm_kmalloc(&vdev->dev, len + 1, GFP_KERNEL); vdev 348 fs/fuse/virtio_fs.c dev_dbg(&vq->vdev->dev, "%s\n", __func__); vdev 516 fs/fuse/virtio_fs.c dev_dbg(&vq->vdev->dev, "%s %s\n", __func__, fsvq->name); vdev 522 fs/fuse/virtio_fs.c static int virtio_fs_setup_vqs(struct virtio_device *vdev, vdev 531 fs/fuse/virtio_fs.c virtio_cread(vdev, struct virtio_fs_config, num_request_queues, vdev 575 fs/fuse/virtio_fs.c ret = virtio_find_vqs(vdev, fs->nvqs, vqs, callbacks, names, NULL); vdev 593 fs/fuse/virtio_fs.c static void virtio_fs_cleanup_vqs(struct virtio_device *vdev, vdev 596 fs/fuse/virtio_fs.c vdev->config->del_vqs(vdev); vdev 599 fs/fuse/virtio_fs.c static int virtio_fs_probe(struct virtio_device *vdev) vdev 608 fs/fuse/virtio_fs.c vdev->priv = fs; vdev 610 fs/fuse/virtio_fs.c ret = virtio_fs_read_tag(vdev, fs); vdev 614 fs/fuse/virtio_fs.c ret = virtio_fs_setup_vqs(vdev, fs); vdev 623 fs/fuse/virtio_fs.c virtio_device_ready(vdev); vdev 632 fs/fuse/virtio_fs.c vdev->config->reset(vdev); vdev 633 fs/fuse/virtio_fs.c virtio_fs_cleanup_vqs(vdev, fs); vdev 636 fs/fuse/virtio_fs.c vdev->priv = NULL; vdev 654 fs/fuse/virtio_fs.c static void virtio_fs_remove(struct virtio_device *vdev) vdev 656 fs/fuse/virtio_fs.c struct virtio_fs *fs = vdev->priv; vdev 663 fs/fuse/virtio_fs.c vdev->config->reset(vdev); vdev 664 fs/fuse/virtio_fs.c virtio_fs_cleanup_vqs(vdev, fs); vdev 666 fs/fuse/virtio_fs.c vdev->priv = NULL; vdev 673 fs/fuse/virtio_fs.c static int virtio_fs_freeze(struct virtio_device *vdev) vdev 680 fs/fuse/virtio_fs.c static int virtio_fs_restore(struct virtio_device *vdev) vdev 754 fs/fuse/virtio_fs.c dev_dbg(&vq->vdev->dev, "%s\n", __func__); vdev 9 include/linux/blk-mq-virtio.h struct virtio_device *vdev, int first_vec); vdev 622 include/linux/remoteproc.h static inline struct rproc_vdev *vdev_to_rvdev(struct virtio_device *vdev) vdev 624 include/linux/remoteproc.h return container_of(vdev->dev.parent, struct rproc_vdev, dev); vdev 627 include/linux/remoteproc.h static inline struct rproc *vdev_to_rproc(struct virtio_device *vdev) vdev 629 include/linux/remoteproc.h struct rproc_vdev *rvdev = vdev_to_rvdev(vdev); vdev 32 include/linux/virtio.h struct virtio_device *vdev; vdev 143 include/linux/virtio.h size_t virtio_max_dma_size(struct virtio_device *vdev); vdev 145 include/linux/virtio.h #define virtio_device_for_each_vq(vdev, vq) \ vdev 146 include/linux/virtio.h list_for_each_entry(vq, &vdev->vqs, list) vdev 71 include/linux/virtio_config.h void (*get)(struct virtio_device *vdev, unsigned offset, vdev 73 include/linux/virtio_config.h void (*set)(struct virtio_device *vdev, unsigned offset, vdev 75 include/linux/virtio_config.h u32 (*generation)(struct virtio_device *vdev); vdev 76 include/linux/virtio_config.h u8 (*get_status)(struct virtio_device *vdev); vdev 77 include/linux/virtio_config.h void (*set_status)(struct virtio_device *vdev, u8 status); vdev 78 include/linux/virtio_config.h void (*reset)(struct virtio_device *vdev); vdev 84 include/linux/virtio_config.h u64 (*get_features)(struct virtio_device *vdev); vdev 85 include/linux/virtio_config.h int (*finalize_features)(struct virtio_device *vdev); vdev 86 include/linux/virtio_config.h const char *(*bus_name)(struct virtio_device *vdev); vdev 89 include/linux/virtio_config.h const struct cpumask *(*get_vq_affinity)(struct virtio_device *vdev, vdev 94 include/linux/virtio_config.h void virtio_check_driver_offered_feature(const struct virtio_device *vdev, vdev 104 include/linux/virtio_config.h static inline bool __virtio_test_bit(const struct virtio_device *vdev, vdev 113 include/linux/virtio_config.h return vdev->features & BIT_ULL(fbit); vdev 121 include/linux/virtio_config.h static inline void __virtio_set_bit(struct virtio_device *vdev, vdev 130 include/linux/virtio_config.h vdev->features |= BIT_ULL(fbit); vdev 138 include/linux/virtio_config.h static inline void __virtio_clear_bit(struct virtio_device *vdev, vdev 147 include/linux/virtio_config.h vdev->features &= ~BIT_ULL(fbit); vdev 155 include/linux/virtio_config.h static inline bool virtio_has_feature(const struct virtio_device *vdev, vdev 159 include/linux/virtio_config.h virtio_check_driver_offered_feature(vdev, fbit); vdev 161 include/linux/virtio_config.h return __virtio_test_bit(vdev, fbit); vdev 168 include/linux/virtio_config.h static inline bool virtio_has_iommu_quirk(const struct virtio_device *vdev) vdev 174 include/linux/virtio_config.h return !virtio_has_feature(vdev, VIRTIO_F_IOMMU_PLATFORM); vdev 178 include/linux/virtio_config.h struct virtqueue *virtio_find_single_vq(struct virtio_device *vdev, vdev 184 include/linux/virtio_config.h int err = vdev->config->find_vqs(vdev, 1, &vq, callbacks, names, NULL, vdev 192 include/linux/virtio_config.h int virtio_find_vqs(struct virtio_device *vdev, unsigned nvqs, vdev 197 include/linux/virtio_config.h return vdev->config->find_vqs(vdev, nvqs, vqs, callbacks, names, NULL, desc); vdev 201 include/linux/virtio_config.h int virtio_find_vqs_ctx(struct virtio_device *vdev, unsigned nvqs, vdev 206 include/linux/virtio_config.h return vdev->config->find_vqs(vdev, nvqs, vqs, callbacks, names, ctx, vdev 228 include/linux/virtio_config.h const char *virtio_bus_name(struct virtio_device *vdev) vdev 230 include/linux/virtio_config.h if (!vdev->config->bus_name) vdev 232 include/linux/virtio_config.h return vdev->config->bus_name(vdev); vdev 247 include/linux/virtio_config.h struct virtio_device *vdev = vq->vdev; vdev 248 include/linux/virtio_config.h if (vdev->config->set_vq_affinity) vdev 249 include/linux/virtio_config.h return vdev->config->set_vq_affinity(vq, cpu_mask); vdev 253 include/linux/virtio_config.h static inline bool virtio_is_little_endian(struct virtio_device *vdev) vdev 255 include/linux/virtio_config.h return virtio_has_feature(vdev, VIRTIO_F_VERSION_1) || vdev 260 include/linux/virtio_config.h static inline u16 virtio16_to_cpu(struct virtio_device *vdev, __virtio16 val) vdev 262 include/linux/virtio_config.h return __virtio16_to_cpu(virtio_is_little_endian(vdev), val); vdev 265 include/linux/virtio_config.h static inline __virtio16 cpu_to_virtio16(struct virtio_device *vdev, u16 val) vdev 267 include/linux/virtio_config.h return __cpu_to_virtio16(virtio_is_little_endian(vdev), val); vdev 270 include/linux/virtio_config.h static inline u32 virtio32_to_cpu(struct virtio_device *vdev, __virtio32 val) vdev 272 include/linux/virtio_config.h return __virtio32_to_cpu(virtio_is_little_endian(vdev), val); vdev 275 include/linux/virtio_config.h static inline __virtio32 cpu_to_virtio32(struct virtio_device *vdev, u32 val) vdev 277 include/linux/virtio_config.h return __cpu_to_virtio32(virtio_is_little_endian(vdev), val); vdev 280 include/linux/virtio_config.h static inline u64 virtio64_to_cpu(struct virtio_device *vdev, __virtio64 val) vdev 282 include/linux/virtio_config.h return __virtio64_to_cpu(virtio_is_little_endian(vdev), val); vdev 285 include/linux/virtio_config.h static inline __virtio64 cpu_to_virtio64(struct virtio_device *vdev, u64 val) vdev 287 include/linux/virtio_config.h return __cpu_to_virtio64(virtio_is_little_endian(vdev), val); vdev 291 include/linux/virtio_config.h #define virtio_cread(vdev, structname, member, ptr) \ vdev 300 include/linux/virtio_config.h *(ptr) = virtio_cread8(vdev, \ vdev 304 include/linux/virtio_config.h *(ptr) = virtio_cread16(vdev, \ vdev 308 include/linux/virtio_config.h *(ptr) = virtio_cread32(vdev, \ vdev 312 include/linux/virtio_config.h *(ptr) = virtio_cread64(vdev, \ vdev 321 include/linux/virtio_config.h #define virtio_cwrite(vdev, structname, member, ptr) \ vdev 330 include/linux/virtio_config.h virtio_cwrite8(vdev, \ vdev 335 include/linux/virtio_config.h virtio_cwrite16(vdev, \ vdev 340 include/linux/virtio_config.h virtio_cwrite32(vdev, \ vdev 345 include/linux/virtio_config.h virtio_cwrite64(vdev, \ vdev 355 include/linux/virtio_config.h static inline void __virtio_cread_many(struct virtio_device *vdev, vdev 359 include/linux/virtio_config.h u32 old, gen = vdev->config->generation ? vdev 360 include/linux/virtio_config.h vdev->config->generation(vdev) : 0; vdev 368 include/linux/virtio_config.h vdev->config->get(vdev, offset + bytes * i, vdev 371 include/linux/virtio_config.h gen = vdev->config->generation ? vdev 372 include/linux/virtio_config.h vdev->config->generation(vdev) : 0; vdev 376 include/linux/virtio_config.h static inline void virtio_cread_bytes(struct virtio_device *vdev, vdev 380 include/linux/virtio_config.h __virtio_cread_many(vdev, offset, buf, len, 1); vdev 383 include/linux/virtio_config.h static inline u8 virtio_cread8(struct virtio_device *vdev, unsigned int offset) vdev 388 include/linux/virtio_config.h vdev->config->get(vdev, offset, &ret, sizeof(ret)); vdev 392 include/linux/virtio_config.h static inline void virtio_cwrite8(struct virtio_device *vdev, vdev 396 include/linux/virtio_config.h vdev->config->set(vdev, offset, &val, sizeof(val)); vdev 399 include/linux/virtio_config.h static inline u16 virtio_cread16(struct virtio_device *vdev, vdev 405 include/linux/virtio_config.h vdev->config->get(vdev, offset, &ret, sizeof(ret)); vdev 406 include/linux/virtio_config.h return virtio16_to_cpu(vdev, (__force __virtio16)ret); vdev 409 include/linux/virtio_config.h static inline void virtio_cwrite16(struct virtio_device *vdev, vdev 413 include/linux/virtio_config.h val = (__force u16)cpu_to_virtio16(vdev, val); vdev 414 include/linux/virtio_config.h vdev->config->set(vdev, offset, &val, sizeof(val)); vdev 417 include/linux/virtio_config.h static inline u32 virtio_cread32(struct virtio_device *vdev, vdev 423 include/linux/virtio_config.h vdev->config->get(vdev, offset, &ret, sizeof(ret)); vdev 424 include/linux/virtio_config.h return virtio32_to_cpu(vdev, (__force __virtio32)ret); vdev 427 include/linux/virtio_config.h static inline void virtio_cwrite32(struct virtio_device *vdev, vdev 431 include/linux/virtio_config.h val = (__force u32)cpu_to_virtio32(vdev, val); vdev 432 include/linux/virtio_config.h vdev->config->set(vdev, offset, &val, sizeof(val)); vdev 435 include/linux/virtio_config.h static inline u64 virtio_cread64(struct virtio_device *vdev, vdev 439 include/linux/virtio_config.h __virtio_cread_many(vdev, offset, &ret, 1, sizeof(ret)); vdev 440 include/linux/virtio_config.h return virtio64_to_cpu(vdev, (__force __virtio64)ret); vdev 443 include/linux/virtio_config.h static inline void virtio_cwrite64(struct virtio_device *vdev, vdev 447 include/linux/virtio_config.h val = (__force u64)cpu_to_virtio64(vdev, val); vdev 448 include/linux/virtio_config.h vdev->config->set(vdev, offset, &val, sizeof(val)); vdev 452 include/linux/virtio_config.h #define virtio_cread_feature(vdev, fbit, structname, member, ptr) \ vdev 455 include/linux/virtio_config.h if (!virtio_has_feature(vdev, fbit)) \ vdev 458 include/linux/virtio_config.h virtio_cread((vdev), structname, member, ptr); \ vdev 72 include/linux/virtio_ring.h struct virtio_device *vdev, vdev 83 include/linux/virtio_ring.h struct virtio_device *vdev, vdev 97 include/linux/virtio_ring.h struct virtio_device *vdev, vdev 112 include/linux/virtio_ring.h void vring_transport_features(struct virtio_device *vdev); vdev 60 include/linux/vringh.h int (*find_vrhs)(struct virtio_device *vdev, unsigned nhvrs, vdev 62 include/linux/vringh.h void (*del_vrhs)(struct virtio_device *vdev); vdev 137 include/media/drv-intf/exynos-fimc.h struct video_device vdev; vdev 147 include/media/drv-intf/exynos-fimc.h struct video_device *vdev) vdev 149 include/media/drv-intf/exynos-fimc.h return container_of(vdev, struct exynos_video_entity, vdev); vdev 40 include/media/soc_camera.h struct video_device *vdev; vdev 370 include/media/soc_camera.h return icd ? icd->vdev : NULL; vdev 378 include/media/soc_camera.h static inline struct v4l2_subdev *soc_camera_vdev_to_subdev(struct video_device *vdev) vdev 380 include/media/soc_camera.h struct soc_camera_device *icd = video_get_drvdata(vdev); vdev 434 include/media/v4l2-common.h int v4l2_g_parm_cap(struct video_device *vdev, vdev 447 include/media/v4l2-common.h int v4l2_s_parm_cap(struct video_device *vdev, vdev 1277 include/media/v4l2-ctrls.h int v4l2_g_ext_ctrls(struct v4l2_ctrl_handler *hdl, struct video_device *vdev, vdev 1292 include/media/v4l2-ctrls.h struct video_device *vdev, vdev 1309 include/media/v4l2-ctrls.h struct video_device *vdev, vdev 298 include/media/v4l2-dev.h void (*release)(struct video_device *vdev); vdev 351 include/media/v4l2-dev.h int __must_check __video_register_device(struct video_device *vdev, vdev 373 include/media/v4l2-dev.h static inline int __must_check video_register_device(struct video_device *vdev, vdev 377 include/media/v4l2-dev.h return __video_register_device(vdev, type, nr, 1, vdev->fops->owner); vdev 401 include/media/v4l2-dev.h video_register_device_no_warn(struct video_device *vdev, vdev 404 include/media/v4l2-dev.h return __video_register_device(vdev, type, nr, 0, vdev->fops->owner); vdev 414 include/media/v4l2-dev.h void video_unregister_device(struct video_device *vdev); vdev 430 include/media/v4l2-dev.h void video_device_release(struct video_device *vdev); vdev 445 include/media/v4l2-dev.h void video_device_release_empty(struct video_device *vdev); vdev 462 include/media/v4l2-dev.h static inline void v4l2_disable_ioctl(struct video_device *vdev, vdev 466 include/media/v4l2-dev.h set_bit(_IOC_NR(cmd), vdev->valid_ioctls); vdev 476 include/media/v4l2-dev.h static inline void *video_get_drvdata(struct video_device *vdev) vdev 478 include/media/v4l2-dev.h return dev_get_drvdata(&vdev->dev); vdev 487 include/media/v4l2-dev.h static inline void video_set_drvdata(struct video_device *vdev, void *data) vdev 489 include/media/v4l2-dev.h dev_set_drvdata(&vdev->dev, data); vdev 520 include/media/v4l2-dev.h static inline const char *video_device_node_name(struct video_device *vdev) vdev 522 include/media/v4l2-dev.h return dev_name(&vdev->dev); vdev 531 include/media/v4l2-dev.h static inline int video_is_registered(struct video_device *vdev) vdev 533 include/media/v4l2-dev.h return test_bit(V4L2_FL_REGISTERED, &vdev->flags); vdev 106 include/media/v4l2-event.h void v4l2_event_queue(struct video_device *vdev, const struct v4l2_event *ev); vdev 44 include/media/v4l2-fh.h struct video_device *vdev; vdev 72 include/media/v4l2-fh.h void v4l2_fh_init(struct v4l2_fh *fh, struct video_device *vdev); vdev 57 include/media/v4l2-mc.h int v4l_enable_media_source(struct video_device *vdev); vdev 71 include/media/v4l2-mc.h void v4l_disable_media_source(struct video_device *vdev); vdev 133 include/media/v4l2-mc.h static inline int v4l_enable_media_source(struct video_device *vdev) vdev 138 include/media/v4l2-mc.h static inline void v4l_disable_media_source(struct video_device *vdev) vdev 325 include/media/v4l2-mem2mem.h struct video_device *vdev, int function); vdev 334 include/media/v4l2-mem2mem.h struct video_device *vdev, int function) vdev 896 include/media/v4l2-subdev.h #define vdev_to_v4l2_subdev(vdev) \ vdev 897 include/media/v4l2-subdev.h ((struct v4l2_subdev *)video_get_drvdata(vdev)) vdev 207 include/trace/events/v4l2.h __entry->minor = owner ? owner->vdev->minor : -1; vdev 65 include/uapi/linux/mic_common.h __le64 vdev; vdev 232 net/8021q/vlan_core.c struct net_device *vdev; vdev 242 net/8021q/vlan_core.c vdev = vlan_group_get_device(&vlan_info->grp, vid_info->proto, vdev 244 net/8021q/vlan_core.c ret = action(vdev, vid_info->vid, arg); vdev 67 net/9p/trans_virtio.c struct virtio_device *vdev; vdev 127 net/9p/trans_virtio.c struct virtio_chan *chan = vq->vdev->priv; vdev 530 net/9p/trans_virtio.c struct virtio_device *vdev; vdev 533 net/9p/trans_virtio.c vdev = dev_to_virtio(dev); vdev 534 net/9p/trans_virtio.c chan = vdev->priv; vdev 552 net/9p/trans_virtio.c static int p9_virtio_probe(struct virtio_device *vdev) vdev 559 net/9p/trans_virtio.c if (!vdev->config->get) { vdev 560 net/9p/trans_virtio.c dev_err(&vdev->dev, "%s failure: config access disabled\n", vdev 572 net/9p/trans_virtio.c chan->vdev = vdev; vdev 575 net/9p/trans_virtio.c chan->vq = virtio_find_single_vq(vdev, req_done, "requests"); vdev 580 net/9p/trans_virtio.c chan->vq->vdev->priv = chan; vdev 586 net/9p/trans_virtio.c if (virtio_has_feature(vdev, VIRTIO_9P_MOUNT_TAG)) { vdev 587 net/9p/trans_virtio.c virtio_cread(vdev, struct virtio_9p_config, tag_len, &tag_len); vdev 598 net/9p/trans_virtio.c virtio_cread_bytes(vdev, offsetof(struct virtio_9p_config, tag), vdev 601 net/9p/trans_virtio.c err = sysfs_create_file(&(vdev->dev.kobj), &dev_attr_mount_tag.attr); vdev 615 net/9p/trans_virtio.c virtio_device_ready(vdev); vdev 622 net/9p/trans_virtio.c kobject_uevent(&(vdev->dev.kobj), KOBJ_CHANGE); vdev 629 net/9p/trans_virtio.c vdev->config->del_vqs(vdev); vdev 692 net/9p/trans_virtio.c static void p9_virtio_remove(struct virtio_device *vdev) vdev 694 net/9p/trans_virtio.c struct virtio_chan *chan = vdev->priv; vdev 708 net/9p/trans_virtio.c dev_emerg(&vdev->dev, vdev 717 net/9p/trans_virtio.c vdev->config->reset(vdev); vdev 718 net/9p/trans_virtio.c vdev->config->del_vqs(vdev); vdev 720 net/9p/trans_virtio.c sysfs_remove_file(&(vdev->dev.kobj), &dev_attr_mount_tag.attr); vdev 721 net/9p/trans_virtio.c kobject_uevent(&(vdev->dev.kobj), KOBJ_CHANGE); vdev 29 net/vmw_vsock/virtio_transport.c struct virtio_device *vdev; vdev 465 net/vmw_vsock/virtio_transport.c struct virtio_device *vdev = vsock->vdev; vdev 468 net/vmw_vsock/virtio_transport.c vdev->config->get(vdev, offsetof(struct virtio_vsock_config, guest_cid), vdev 518 net/vmw_vsock/virtio_transport.c struct virtio_vsock *vsock = vq->vdev->priv; vdev 527 net/vmw_vsock/virtio_transport.c struct virtio_vsock *vsock = vq->vdev->priv; vdev 536 net/vmw_vsock/virtio_transport.c struct virtio_vsock *vsock = vq->vdev->priv; vdev 589 net/vmw_vsock/virtio_transport.c static int virtio_vsock_probe(struct virtio_device *vdev) vdev 621 net/vmw_vsock/virtio_transport.c vsock->vdev = vdev; vdev 623 net/vmw_vsock/virtio_transport.c ret = virtio_find_vqs(vsock->vdev, VSOCK_VQ_MAX, vdev 662 net/vmw_vsock/virtio_transport.c vdev->priv = vsock; vdev 674 net/vmw_vsock/virtio_transport.c static void virtio_vsock_remove(struct virtio_device *vdev) vdev 676 net/vmw_vsock/virtio_transport.c struct virtio_vsock *vsock = vdev->priv; vdev 681 net/vmw_vsock/virtio_transport.c vdev->priv = NULL; vdev 706 net/vmw_vsock/virtio_transport.c vdev->config->reset(vdev); vdev 737 net/vmw_vsock/virtio_transport.c vdev->config->del_vqs(vdev); vdev 67 samples/v4l/v4l2-pci-skeleton.c struct video_device vdev; vdev 642 samples/v4l/v4l2-pci-skeleton.c skel->vdev.tvnorms = i ? 0 : SKEL_TVNORMS; vdev 760 samples/v4l/v4l2-pci-skeleton.c struct video_device *vdev; vdev 859 samples/v4l/v4l2-pci-skeleton.c vdev = &skel->vdev; vdev 860 samples/v4l/v4l2-pci-skeleton.c strlcpy(vdev->name, KBUILD_MODNAME, sizeof(vdev->name)); vdev 865 samples/v4l/v4l2-pci-skeleton.c vdev->release = video_device_release_empty; vdev 866 samples/v4l/v4l2-pci-skeleton.c vdev->fops = &skel_fops, vdev 867 samples/v4l/v4l2-pci-skeleton.c vdev->ioctl_ops = &skel_ioctl_ops, vdev 868 samples/v4l/v4l2-pci-skeleton.c vdev->device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_READWRITE | vdev 875 samples/v4l/v4l2-pci-skeleton.c vdev->lock = &skel->lock; vdev 876 samples/v4l/v4l2-pci-skeleton.c vdev->queue = q; vdev 877 samples/v4l/v4l2-pci-skeleton.c vdev->v4l2_dev = &skel->v4l2_dev; vdev 879 samples/v4l/v4l2-pci-skeleton.c vdev->tvnorms = SKEL_TVNORMS; vdev 880 samples/v4l/v4l2-pci-skeleton.c video_set_drvdata(vdev, skel); vdev 882 samples/v4l/v4l2-pci-skeleton.c ret = video_register_device(vdev, VFL_TYPE_GRABBER, -1); vdev 902 samples/v4l/v4l2-pci-skeleton.c video_unregister_device(&skel->vdev); vdev 22 tools/virtio/linux/virtio.h struct virtio_device *vdev; vdev 59 tools/virtio/linux/virtio.h struct virtio_device *vdev, vdev 13 tools/virtio/linux/virtio_config.h static inline bool __virtio_test_bit(const struct virtio_device *vdev, vdev 16 tools/virtio/linux/virtio_config.h return vdev->features & (1ULL << fbit); vdev 24 tools/virtio/linux/virtio_config.h static inline void __virtio_set_bit(struct virtio_device *vdev, vdev 27 tools/virtio/linux/virtio_config.h vdev->features |= (1ULL << fbit); vdev 35 tools/virtio/linux/virtio_config.h static inline void __virtio_clear_bit(struct virtio_device *vdev, vdev 38 tools/virtio/linux/virtio_config.h vdev->features &= ~(1ULL << fbit); vdev 48 tools/virtio/linux/virtio_config.h static inline bool virtio_has_iommu_quirk(const struct virtio_device *vdev) vdev 54 tools/virtio/linux/virtio_config.h return !virtio_has_feature(vdev, VIRTIO_F_IOMMU_PLATFORM); vdev 57 tools/virtio/linux/virtio_config.h static inline bool virtio_is_little_endian(struct virtio_device *vdev) vdev 59 tools/virtio/linux/virtio_config.h return virtio_has_feature(vdev, VIRTIO_F_VERSION_1) || vdev 64 tools/virtio/linux/virtio_config.h static inline u16 virtio16_to_cpu(struct virtio_device *vdev, __virtio16 val) vdev 66 tools/virtio/linux/virtio_config.h return __virtio16_to_cpu(virtio_is_little_endian(vdev), val); vdev 69 tools/virtio/linux/virtio_config.h static inline __virtio16 cpu_to_virtio16(struct virtio_device *vdev, u16 val) vdev 71 tools/virtio/linux/virtio_config.h return __cpu_to_virtio16(virtio_is_little_endian(vdev), val); vdev 74 tools/virtio/linux/virtio_config.h static inline u32 virtio32_to_cpu(struct virtio_device *vdev, __virtio32 val) vdev 76 tools/virtio/linux/virtio_config.h return __virtio32_to_cpu(virtio_is_little_endian(vdev), val); vdev 79 tools/virtio/linux/virtio_config.h static inline __virtio32 cpu_to_virtio32(struct virtio_device *vdev, u32 val) vdev 81 tools/virtio/linux/virtio_config.h return __cpu_to_virtio32(virtio_is_little_endian(vdev), val); vdev 84 tools/virtio/linux/virtio_config.h static inline u64 virtio64_to_cpu(struct virtio_device *vdev, __virtio64 val) vdev 86 tools/virtio/linux/virtio_config.h return __virtio64_to_cpu(virtio_is_little_endian(vdev), val); vdev 89 tools/virtio/linux/virtio_config.h static inline __virtio64 cpu_to_virtio64(struct virtio_device *vdev, u64 val) vdev 91 tools/virtio/linux/virtio_config.h return __cpu_to_virtio64(virtio_is_little_endian(vdev), val); vdev 36 tools/virtio/virtio_test.c struct virtio_device vdev; vdev 65 tools/virtio/virtio_test.c unsigned long long features = dev->vdev.features; vdev 103 tools/virtio/virtio_test.c info->vring.num, 4096, &dev->vdev, vdev 118 tools/virtio/virtio_test.c dev->vdev.features = features; vdev 65 tools/virtio/vringh_test.c struct virtio_device vdev; vdev 75 tools/virtio/vringh_test.c gvdev = container_of(vq->vdev, struct guest_virtio_device, vdev); vdev 309 tools/virtio/vringh_test.c gvdev.vdev.features = features; vdev 317 tools/virtio/vringh_test.c vq = vring_new_virtqueue(0, RINGSIZE, ALIGN, &gvdev.vdev, true, vdev 439 tools/virtio/vringh_test.c struct virtio_device vdev; vdev 455 tools/virtio/vringh_test.c vdev.features = 0; vdev 459 tools/virtio/vringh_test.c __virtio_set_bit(&vdev, VIRTIO_RING_F_INDIRECT_DESC); vdev 461 tools/virtio/vringh_test.c __virtio_set_bit(&vdev, VIRTIO_RING_F_EVENT_IDX); vdev 463 tools/virtio/vringh_test.c __virtio_set_bit(&vdev, VIRTIO_F_VERSION_1); vdev 476 tools/virtio/vringh_test.c return parallel_test(vdev.features, getrange, fast_vringh); vdev 484 tools/virtio/vringh_test.c vq = vring_new_virtqueue(0, RINGSIZE, ALIGN, &vdev, true, false, vdev 491 tools/virtio/vringh_test.c vringh_init_user(&vrh, vdev.features, RINGSIZE, true, vdev 660 tools/virtio/vringh_test.c if (__virtio_test_bit(&vdev, VIRTIO_RING_F_INDIRECT_DESC)) { vdev 666 tools/virtio/vringh_test.c __virtio_clear_bit(&vdev, VIRTIO_RING_F_INDIRECT_DESC); vdev 667 tools/virtio/vringh_test.c vq = vring_new_virtqueue(0, RINGSIZE, ALIGN, &vdev, true,