vblk 538 block/partitions/ldm.c static struct vblk * ldm_get_disk_objid (const struct ldmdb *ldb) vblk 545 block/partitions/ldm.c struct vblk *v = list_entry (item, struct vblk, list); vblk 546 block/partitions/ldm.c if (uuid_equal(&v->vblk.disk.disk_id, &ldb->ph.disk_id)) vblk 574 block/partitions/ldm.c struct vblk *vb; vblk 575 block/partitions/ldm.c struct vblk *disk; vblk 591 block/partitions/ldm.c vb = list_entry (item, struct vblk, list); vblk 592 block/partitions/ldm.c part = &vb->vblk.part; vblk 720 block/partitions/ldm.c static bool ldm_parse_cmp3 (const u8 *buffer, int buflen, struct vblk *vb) vblk 749 block/partitions/ldm.c comp = &vb->vblk.comp; vblk 771 block/partitions/ldm.c static int ldm_parse_dgr3 (const u8 *buffer, int buflen, struct vblk *vb) vblk 798 block/partitions/ldm.c dgrp = &vb->vblk.dgrp; vblk 815 block/partitions/ldm.c static bool ldm_parse_dgr4 (const u8 *buffer, int buflen, struct vblk *vb) vblk 856 block/partitions/ldm.c static bool ldm_parse_dsk3 (const u8 *buffer, int buflen, struct vblk *vb) vblk 875 block/partitions/ldm.c disk = &vb->vblk.disk; vblk 895 block/partitions/ldm.c static bool ldm_parse_dsk4 (const u8 *buffer, int buflen, struct vblk *vb) vblk 912 block/partitions/ldm.c disk = &vb->vblk.disk; vblk 928 block/partitions/ldm.c static bool ldm_parse_prt3(const u8 *buffer, int buflen, struct vblk *vb) vblk 980 block/partitions/ldm.c part = &vb->vblk.part; vblk 1004 block/partitions/ldm.c static bool ldm_parse_vol5(const u8 *buffer, int buflen, struct vblk *vb) vblk 1085 block/partitions/ldm.c volu = &vb->vblk.volu; vblk 1113 block/partitions/ldm.c static bool ldm_parse_vblk (const u8 *buf, int len, struct vblk *vb) vblk 1167 block/partitions/ldm.c struct vblk *vb; vblk 1202 block/partitions/ldm.c struct vblk *v = list_entry (item, struct vblk, list); vblk 1203 block/partitions/ldm.c if ((v->vblk.part.disk_id == vb->vblk.part.disk_id) && vblk 1204 block/partitions/ldm.c (v->vblk.part.start > vb->vblk.part.start)) { vblk 1419 block/partitions/ldm.c kfree (list_entry (item, struct vblk, list)); vblk 181 block/partitions/ldm.h } vblk; vblk 135 drivers/block/virtio_blk.c struct virtio_blk *vblk = req->q->queuedata; vblk 138 drivers/block/virtio_blk.c sreq->resid_len = virtio32_to_cpu(vblk->vdev, vbr->in_hdr.residual); vblk 139 drivers/block/virtio_blk.c sreq->sense_len = virtio32_to_cpu(vblk->vdev, vbr->in_hdr.sense_len); vblk 140 drivers/block/virtio_blk.c sreq->result = virtio32_to_cpu(vblk->vdev, vbr->in_hdr.errors); vblk 147 drivers/block/virtio_blk.c struct virtio_blk *vblk = disk->private_data; vblk 152 drivers/block/virtio_blk.c if (!virtio_has_feature(vblk->vdev, VIRTIO_BLK_F_SCSI)) vblk 247 drivers/block/virtio_blk.c struct virtio_blk *vblk = vq->vdev->priv; vblk 254 drivers/block/virtio_blk.c spin_lock_irqsave(&vblk->vqs[qid].lock, flags); vblk 257 drivers/block/virtio_blk.c while ((vbr = virtqueue_get_buf(vblk->vqs[qid].vq, &len)) != NULL) { vblk 269 drivers/block/virtio_blk.c blk_mq_start_stopped_hw_queues(vblk->disk->queue, true); vblk 270 drivers/block/virtio_blk.c spin_unlock_irqrestore(&vblk->vqs[qid].lock, flags); vblk 275 drivers/block/virtio_blk.c struct virtio_blk *vblk = hctx->queue->queuedata; vblk 276 drivers/block/virtio_blk.c struct virtio_blk_vq *vq = &vblk->vqs[hctx->queue_num]; vblk 290 drivers/block/virtio_blk.c struct virtio_blk *vblk = hctx->queue->queuedata; vblk 301 drivers/block/virtio_blk.c BUG_ON(req->nr_phys_segments + 2 > vblk->sg_elems); vblk 330 drivers/block/virtio_blk.c vbr->out_hdr.type = cpu_to_virtio32(vblk->vdev, type); vblk 332 drivers/block/virtio_blk.c 0 : cpu_to_virtio64(vblk->vdev, blk_rq_pos(req)); vblk 333 drivers/block/virtio_blk.c vbr->out_hdr.ioprio = cpu_to_virtio32(vblk->vdev, req_get_ioprio(req)); vblk 346 drivers/block/virtio_blk.c vbr->out_hdr.type |= cpu_to_virtio32(vblk->vdev, VIRTIO_BLK_T_OUT); vblk 348 drivers/block/virtio_blk.c vbr->out_hdr.type |= cpu_to_virtio32(vblk->vdev, VIRTIO_BLK_T_IN); vblk 351 drivers/block/virtio_blk.c spin_lock_irqsave(&vblk->vqs[qid].lock, flags); vblk 353 drivers/block/virtio_blk.c err = virtblk_add_req_scsi(vblk->vqs[qid].vq, vbr, vbr->sg, num); vblk 355 drivers/block/virtio_blk.c err = virtblk_add_req(vblk->vqs[qid].vq, vbr, vbr->sg, num); vblk 357 drivers/block/virtio_blk.c virtqueue_kick(vblk->vqs[qid].vq); vblk 363 drivers/block/virtio_blk.c spin_unlock_irqrestore(&vblk->vqs[qid].lock, flags); vblk 374 drivers/block/virtio_blk.c if (bd->last && virtqueue_kick_prepare(vblk->vqs[qid].vq)) vblk 376 drivers/block/virtio_blk.c spin_unlock_irqrestore(&vblk->vqs[qid].lock, flags); vblk 379 drivers/block/virtio_blk.c virtqueue_notify(vblk->vqs[qid].vq); vblk 387 drivers/block/virtio_blk.c struct virtio_blk *vblk = disk->private_data; vblk 388 drivers/block/virtio_blk.c struct request_queue *q = vblk->disk->queue; vblk 400 drivers/block/virtio_blk.c blk_execute_rq(vblk->disk->queue, vblk->disk, req, false); vblk 407 drivers/block/virtio_blk.c static void virtblk_get(struct virtio_blk *vblk) vblk 409 drivers/block/virtio_blk.c refcount_inc(&vblk->refs); vblk 412 drivers/block/virtio_blk.c static void virtblk_put(struct virtio_blk *vblk) vblk 414 drivers/block/virtio_blk.c if (refcount_dec_and_test(&vblk->refs)) { vblk 415 drivers/block/virtio_blk.c ida_simple_remove(&vd_index_ida, vblk->index); vblk 416 drivers/block/virtio_blk.c mutex_destroy(&vblk->vdev_mutex); vblk 417 drivers/block/virtio_blk.c kfree(vblk); vblk 423 drivers/block/virtio_blk.c struct virtio_blk *vblk = bd->bd_disk->private_data; vblk 426 drivers/block/virtio_blk.c mutex_lock(&vblk->vdev_mutex); vblk 428 drivers/block/virtio_blk.c if (vblk->vdev) vblk 429 drivers/block/virtio_blk.c virtblk_get(vblk); vblk 433 drivers/block/virtio_blk.c mutex_unlock(&vblk->vdev_mutex); vblk 439 drivers/block/virtio_blk.c struct virtio_blk *vblk = disk->private_data; vblk 441 drivers/block/virtio_blk.c virtblk_put(vblk); vblk 447 drivers/block/virtio_blk.c struct virtio_blk *vblk = bd->bd_disk->private_data; vblk 450 drivers/block/virtio_blk.c mutex_lock(&vblk->vdev_mutex); vblk 452 drivers/block/virtio_blk.c if (!vblk->vdev) { vblk 458 drivers/block/virtio_blk.c if (virtio_has_feature(vblk->vdev, VIRTIO_BLK_F_GEOMETRY)) { vblk 459 drivers/block/virtio_blk.c virtio_cread(vblk->vdev, struct virtio_blk_config, vblk 461 drivers/block/virtio_blk.c virtio_cread(vblk->vdev, struct virtio_blk_config, vblk 463 drivers/block/virtio_blk.c virtio_cread(vblk->vdev, struct virtio_blk_config, vblk 472 drivers/block/virtio_blk.c mutex_unlock(&vblk->vdev_mutex); vblk 517 drivers/block/virtio_blk.c static void virtblk_update_capacity(struct virtio_blk *vblk, bool resize) vblk 519 drivers/block/virtio_blk.c struct virtio_device *vdev = vblk->vdev; vblk 520 drivers/block/virtio_blk.c struct request_queue *q = vblk->disk->queue; vblk 544 drivers/block/virtio_blk.c vblk->disk->disk_name, vblk 551 drivers/block/virtio_blk.c set_capacity(vblk->disk, capacity); vblk 556 drivers/block/virtio_blk.c struct virtio_blk *vblk = vblk 560 drivers/block/virtio_blk.c virtblk_update_capacity(vblk, true); vblk 561 drivers/block/virtio_blk.c revalidate_disk(vblk->disk); vblk 562 drivers/block/virtio_blk.c kobject_uevent_env(&disk_to_dev(vblk->disk)->kobj, KOBJ_CHANGE, envp); vblk 567 drivers/block/virtio_blk.c struct virtio_blk *vblk = vdev->priv; vblk 569 drivers/block/virtio_blk.c queue_work(virtblk_wq, &vblk->config_work); vblk 572 drivers/block/virtio_blk.c static int init_vq(struct virtio_blk *vblk) vblk 580 drivers/block/virtio_blk.c struct virtio_device *vdev = vblk->vdev; vblk 591 drivers/block/virtio_blk.c vblk->vqs = kmalloc_array(num_vqs, sizeof(*vblk->vqs), GFP_KERNEL); vblk 592 drivers/block/virtio_blk.c if (!vblk->vqs) vblk 605 drivers/block/virtio_blk.c snprintf(vblk->vqs[i].name, VQ_NAME_LEN, "req.%d", i); vblk 606 drivers/block/virtio_blk.c names[i] = vblk->vqs[i].name; vblk 615 drivers/block/virtio_blk.c spin_lock_init(&vblk->vqs[i].lock); vblk 616 drivers/block/virtio_blk.c vblk->vqs[i].vq = vqs[i]; vblk 618 drivers/block/virtio_blk.c vblk->num_vqs = num_vqs; vblk 625 drivers/block/virtio_blk.c kfree(vblk->vqs); vblk 679 drivers/block/virtio_blk.c struct virtio_blk *vblk = vdev->priv; vblk 681 drivers/block/virtio_blk.c blk_queue_write_cache(vblk->disk->queue, writeback, false); vblk 682 drivers/block/virtio_blk.c revalidate_disk(vblk->disk); vblk 694 drivers/block/virtio_blk.c struct virtio_blk *vblk = disk->private_data; vblk 695 drivers/block/virtio_blk.c struct virtio_device *vdev = vblk->vdev; vblk 698 drivers/block/virtio_blk.c BUG_ON(!virtio_has_feature(vblk->vdev, VIRTIO_BLK_F_CONFIG_WCE)); vblk 712 drivers/block/virtio_blk.c struct virtio_blk *vblk = disk->private_data; vblk 713 drivers/block/virtio_blk.c u8 writeback = virtblk_get_cache_mode(vblk->vdev); vblk 732 drivers/block/virtio_blk.c struct virtio_blk *vblk = disk->private_data; vblk 733 drivers/block/virtio_blk.c struct virtio_device *vdev = vblk->vdev; vblk 755 drivers/block/virtio_blk.c struct virtio_blk *vblk = set->driver_data; vblk 761 drivers/block/virtio_blk.c sg_init_table(vbr->sg, vblk->sg_elems); vblk 767 drivers/block/virtio_blk.c struct virtio_blk *vblk = set->driver_data; vblk 770 drivers/block/virtio_blk.c vblk->vdev, 0); vblk 798 drivers/block/virtio_blk.c struct virtio_blk *vblk; vblk 829 drivers/block/virtio_blk.c vdev->priv = vblk = kmalloc(sizeof(*vblk), GFP_KERNEL); vblk 830 drivers/block/virtio_blk.c if (!vblk) { vblk 836 drivers/block/virtio_blk.c refcount_set(&vblk->refs, 1); vblk 837 drivers/block/virtio_blk.c mutex_init(&vblk->vdev_mutex); vblk 839 drivers/block/virtio_blk.c vblk->vdev = vdev; vblk 840 drivers/block/virtio_blk.c vblk->sg_elems = sg_elems; vblk 842 drivers/block/virtio_blk.c INIT_WORK(&vblk->config_work, virtblk_config_changed_work); vblk 844 drivers/block/virtio_blk.c err = init_vq(vblk); vblk 849 drivers/block/virtio_blk.c vblk->disk = alloc_disk(1 << PART_BITS); vblk 850 drivers/block/virtio_blk.c if (!vblk->disk) { vblk 857 drivers/block/virtio_blk.c virtblk_queue_depth = vblk->vqs[0].vq->num_free; vblk 863 drivers/block/virtio_blk.c memset(&vblk->tag_set, 0, sizeof(vblk->tag_set)); vblk 864 drivers/block/virtio_blk.c vblk->tag_set.ops = &virtio_mq_ops; vblk 865 drivers/block/virtio_blk.c vblk->tag_set.queue_depth = virtblk_queue_depth; vblk 866 drivers/block/virtio_blk.c vblk->tag_set.numa_node = NUMA_NO_NODE; vblk 867 drivers/block/virtio_blk.c vblk->tag_set.flags = BLK_MQ_F_SHOULD_MERGE; vblk 868 drivers/block/virtio_blk.c vblk->tag_set.cmd_size = vblk 871 drivers/block/virtio_blk.c vblk->tag_set.driver_data = vblk; vblk 872 drivers/block/virtio_blk.c vblk->tag_set.nr_hw_queues = vblk->num_vqs; vblk 874 drivers/block/virtio_blk.c err = blk_mq_alloc_tag_set(&vblk->tag_set); vblk 878 drivers/block/virtio_blk.c q = blk_mq_init_queue(&vblk->tag_set); vblk 883 drivers/block/virtio_blk.c vblk->disk->queue = q; vblk 885 drivers/block/virtio_blk.c q->queuedata = vblk; vblk 887 drivers/block/virtio_blk.c virtblk_name_format("vd", index, vblk->disk->disk_name, DISK_NAME_LEN); vblk 889 drivers/block/virtio_blk.c vblk->disk->major = major; vblk 890 drivers/block/virtio_blk.c vblk->disk->first_minor = index_to_minor(index); vblk 891 drivers/block/virtio_blk.c vblk->disk->private_data = vblk; vblk 892 drivers/block/virtio_blk.c vblk->disk->fops = &virtblk_fops; vblk 893 drivers/block/virtio_blk.c vblk->disk->flags |= GENHD_FL_EXT_DEVT; vblk 894 drivers/block/virtio_blk.c vblk->index = index; vblk 901 drivers/block/virtio_blk.c set_disk_ro(vblk->disk, 1); vblk 904 drivers/block/virtio_blk.c blk_queue_max_segments(q, vblk->sg_elems-2); vblk 981 drivers/block/virtio_blk.c virtblk_update_capacity(vblk, false); vblk 984 drivers/block/virtio_blk.c device_add_disk(&vdev->dev, vblk->disk, virtblk_attr_groups); vblk 988 drivers/block/virtio_blk.c blk_mq_free_tag_set(&vblk->tag_set); vblk 990 drivers/block/virtio_blk.c put_disk(vblk->disk); vblk 994 drivers/block/virtio_blk.c kfree(vblk); vblk 1003 drivers/block/virtio_blk.c struct virtio_blk *vblk = vdev->priv; vblk 1006 drivers/block/virtio_blk.c flush_work(&vblk->config_work); vblk 1008 drivers/block/virtio_blk.c del_gendisk(vblk->disk); vblk 1009 drivers/block/virtio_blk.c blk_cleanup_queue(vblk->disk->queue); vblk 1011 drivers/block/virtio_blk.c blk_mq_free_tag_set(&vblk->tag_set); vblk 1013 drivers/block/virtio_blk.c mutex_lock(&vblk->vdev_mutex); vblk 1019 drivers/block/virtio_blk.c vblk->vdev = NULL; vblk 1021 drivers/block/virtio_blk.c put_disk(vblk->disk); vblk 1023 drivers/block/virtio_blk.c kfree(vblk->vqs); vblk 1025 drivers/block/virtio_blk.c mutex_unlock(&vblk->vdev_mutex); vblk 1027 drivers/block/virtio_blk.c virtblk_put(vblk); vblk 1033 drivers/block/virtio_blk.c struct virtio_blk *vblk = vdev->priv; vblk 1039 drivers/block/virtio_blk.c flush_work(&vblk->config_work); vblk 1041 drivers/block/virtio_blk.c blk_mq_quiesce_queue(vblk->disk->queue); vblk 1049 drivers/block/virtio_blk.c struct virtio_blk *vblk = vdev->priv; vblk 1058 drivers/block/virtio_blk.c blk_mq_unquiesce_queue(vblk->disk->queue); vblk 536 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c u16 hbp = 0, hfp = 0, hsa = 0, hblk = 0, vblk = 0; vblk 596 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c vblk = 0; vblk 600 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c bytes = max_t(size_t, max(max(hfp, hblk), max(hsa, hbp)), vblk); vblk 663 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c sun6i_dsi_build_blk0_pkt(device->channel, vblk)); vblk 665 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c sun6i_dsi_build_blk1_pkt(0, buffer, vblk));