Home
last modified time | relevance | path

Searched refs:part0 (Results 1 – 9 of 9) sorted by relevance

/linux-3.4.99/include/linux/
Dgenhd.h20 #define dev_to_disk(device) container_of((device), struct gendisk, part0.__dev)
22 #define disk_to_dev(disk) (&(disk)->part0.__dev)
177 struct hd_struct part0; member
357 __part_stat_add((cpu), &part_to_disk((part))->part0, \
372 atomic_inc(&part_to_disk(part)->part0.in_flight[rw]); in part_inc_in_flight()
379 atomic_dec(&part_to_disk(part)->part0.in_flight[rw]); in part_dec_in_flight()
414 return disk->part0.policy; in get_disk_ro()
432 return disk->part0.nr_sects; in get_capacity()
436 disk->part0.nr_sects = size; in set_capacity()
/linux-3.4.99/block/
Dgenhd.c232 return &disk->part0; in disk_map_sector_rcu()
536 disk->part0.holder_dir = kobject_create_and_add("holders", &ddev->kobj); in register_disk()
593 retval = blk_alloc_devt(&disk->part0, &devt); in add_disk()
656 part_stat_set_all(&disk->part0, 0); in del_gendisk()
657 disk->part0.stamp = 0; in del_gendisk()
659 kobject_put(disk->part0.holder_dir); in del_gendisk()
764 bool is_part0 = part == &disk->part0; in printk_all_partitions()
1107 free_part_stats(&disk->part0); in disk_release()
1108 free_part_info(&disk->part0); in disk_release()
1260 if (!init_part_stats(&disk->part0)) { in alloc_disk_node()
[all …]
Dblk-core.c84 part = &rq->rq_disk->part0; in drive_stat_acct()
1119 part_round_stats_single(cpu, &part_to_disk(part)->part0, now); in part_round_stats()
1562 should_fail_request(&part_to_disk(part)->part0, in generic_make_request_checks()
1789 should_fail_request(&rq->rq_disk->part0, blk_rq_bytes(rq))) in blk_insert_cloned_request()
/linux-3.4.99/drivers/block/drbd/
Ddrbd_req.c40 part_round_stats(cpu, &mdev->vdisk->part0); in _drbd_start_io_acct()
41 part_stat_inc(cpu, &mdev->vdisk->part0, ios[rw]); in _drbd_start_io_acct()
42 part_stat_add(cpu, &mdev->vdisk->part0, sectors[rw], bio_sectors(bio)); in _drbd_start_io_acct()
43 part_inc_in_flight(&mdev->vdisk->part0, rw); in _drbd_start_io_acct()
54 part_stat_add(cpu, &mdev->vdisk->part0, ticks[rw], duration); in _drbd_end_io_acct()
55 part_round_stats(cpu, &mdev->vdisk->part0); in _drbd_end_io_acct()
56 part_dec_in_flight(&mdev->vdisk->part0, rw); in _drbd_end_io_acct()
Ddrbd_receiver.c1907 curr_events = (int)part_stat_read(&disk->part0, sectors[0]) + in drbd_rs_should_slow_down()
1908 (int)part_stat_read(&disk->part0, sectors[1]) - in drbd_rs_should_slow_down()
/linux-3.4.99/drivers/md/
Ddm.c495 part_round_stats(cpu, &dm_disk(md)->part0); in start_io_acct()
497 atomic_set(&dm_disk(md)->part0.in_flight[rw], in start_io_acct()
510 part_round_stats(cpu, &dm_disk(md)->part0); in end_io_acct()
511 part_stat_add(cpu, &dm_disk(md)->part0, ticks[rw], duration); in end_io_acct()
519 atomic_set(&dm_disk(md)->part0.in_flight[rw], pending); in end_io_acct()
1422 part_stat_inc(cpu, &dm_disk(md)->part0, ios[rw]); in _dm_request()
1423 part_stat_add(cpu, &dm_disk(md)->part0, sectors[rw], bio_sectors(bio)); in _dm_request()
Dmd.c377 part_stat_inc(cpu, &mddev->gendisk->part0, ios[rw]); in md_make_request()
378 part_stat_add(cpu, &mddev->gendisk->part0, sectors[rw], sectors); in md_make_request()
6918 curr_events = (int)part_stat_read(&disk->part0, sectors[0]) + in is_mddev_idle()
6919 (int)part_stat_read(&disk->part0, sectors[1]) - in is_mddev_idle()
/linux-3.4.99/drivers/net/ethernet/chelsio/cxgb4vf/
Dsge.c928 unsigned int part0 = (u8 *)tq->stat - (u8 *)sgl->sge, part1; in write_sgl() local
930 if (likely(part0)) in write_sgl()
931 memcpy(sgl->sge, buf, part0); in write_sgl()
933 memcpy(tq->desc, (u8 *)buf + part0, part1); in write_sgl()
/linux-3.4.99/drivers/net/ethernet/chelsio/cxgb4/
Dsge.c747 unsigned int part0 = (u8 *)q->stat - (u8 *)sgl->sge, part1; in write_sgl() local
749 if (likely(part0)) in write_sgl()
750 memcpy(sgl->sge, buf, part0); in write_sgl()
752 memcpy(q->desc, (u8 *)buf + part0, part1); in write_sgl()