Lines Matching refs:part
107 static void part_stat_read_all(struct block_device *part, in part_stat_read_all() argument
114 struct disk_stats *ptr = per_cpu_ptr(part->bd_stats, cpu); in part_stat_read_all()
128 static unsigned int part_in_flight(struct block_device *part) in part_in_flight() argument
134 inflight += part_stat_local_read_cpu(part, in_flight[0], cpu) + in part_in_flight()
135 part_stat_local_read_cpu(part, in_flight[1], cpu); in part_in_flight()
143 static void part_in_flight_rw(struct block_device *part, in part_in_flight_rw() argument
151 inflight[0] += part_stat_local_read_cpu(part, in_flight[0], cpu); in part_in_flight_rw()
152 inflight[1] += part_stat_local_read_cpu(part, in_flight[1], cpu); in part_in_flight_rw()
343 struct block_device *part; in disk_uevent() local
347 xa_for_each(&disk->part_tbl, idx, part) { in disk_uevent()
348 if (bdev_is_partition(part) && !bdev_nr_sectors(part)) in disk_uevent()
350 if (!kobject_get_unless_zero(&part->bd_device.kobj)) in disk_uevent()
354 kobject_uevent(bdev_kobj(part), action); in disk_uevent()
355 put_device(&part->bd_device); in disk_uevent()
787 struct block_device *part; in printk_all_partitions() local
803 xa_for_each(&disk->part_tbl, idx, part) { in printk_all_partitions()
804 if (!bdev_nr_sectors(part)) in printk_all_partitions()
807 bdev_is_partition(part) ? " " : "", in printk_all_partitions()
808 bdevt_str(part->bd_dev, devt_buf), in printk_all_partitions()
809 bdev_nr_sectors(part) >> 1, part, in printk_all_partitions()
810 part->bd_meta_info ? in printk_all_partitions()
811 part->bd_meta_info->uuid : ""); in printk_all_partitions()
812 if (bdev_is_partition(part)) in printk_all_partitions()
885 struct block_device *part; in show_partition() local
892 xa_for_each(&sgp->part_tbl, idx, part) { in show_partition()
893 if (!bdev_nr_sectors(part)) in show_partition()
896 MAJOR(part->bd_dev), MINOR(part->bd_dev), in show_partition()
897 bdev_nr_sectors(part) >> 1, part); in show_partition()
1348 struct block_device *part; in part_devt() local
1352 part = xa_load(&disk->part_tbl, partno); in part_devt()
1353 if (part) in part_devt()
1354 devt = part->bd_dev; in part_devt()