Home
last modified time | relevance | path

Searched refs:part (Results 1 – 18 of 18) sorted by relevance

/block/partitions/
Dmac.c16 extern void note_bootable_part(dev_t dev, int part, int goodness);
41 struct mac_partition *part; in mac_partition() local
59 if (partoffset + sizeof(*part) > datasize) in mac_partition()
61 part = (struct mac_partition *) (data + partoffset); in mac_partition()
62 if (be16_to_cpu(part->signature) != MAC_PARTITION_MAGIC) { in mac_partition()
66 blocks_in_map = be32_to_cpu(part->map_count); in mac_partition()
82 part = (struct mac_partition *) (data + pos%512); in mac_partition()
83 if (be16_to_cpu(part->signature) != MAC_PARTITION_MAGIC) in mac_partition()
86 be32_to_cpu(part->start_block) * (secsize/512), in mac_partition()
87 be32_to_cpu(part->block_count) * (secsize/512)); in mac_partition()
[all …]
Dcore.c259 struct block_device *part = dev_to_bdev(dev); in part_uevent() local
261 add_uevent_var(env, "PARTN=%u", part->bd_partno); in part_uevent()
262 if (part->bd_meta_info && part->bd_meta_info->volname[0]) in part_uevent()
263 add_uevent_var(env, "PARTNAME=%s", part->bd_meta_info->volname); in part_uevent()
274 static void delete_partition(struct block_device *part) in delete_partition() argument
276 lockdep_assert_held(&part->bd_disk->open_mutex); in delete_partition()
278 fsync_bdev(part); in delete_partition()
279 __invalidate_device(part, true); in delete_partition()
281 xa_erase(&part->bd_disk->part_tbl, part->bd_partno); in delete_partition()
282 kobject_put(part->bd_holder_dir); in delete_partition()
[all …]
Datari.c59 if (!VALID_PARTITION(&rs->part[0], hd_size) && in atari_partition()
60 !VALID_PARTITION(&rs->part[1], hd_size) && in atari_partition()
61 !VALID_PARTITION(&rs->part[2], hd_size) && in atari_partition()
62 !VALID_PARTITION(&rs->part[3], hd_size)) { in atari_partition()
72 pi = &rs->part[0]; in atari_partition()
74 for (slot = 1; pi < &rs->part[4] && slot < state->limit; slot++, pi++) { in atari_partition()
103 if (!(xrs->part[0].flg & 1)) { in atari_partition()
110 partsect + be32_to_cpu(xrs->part[0].st), in atari_partition()
111 be32_to_cpu(xrs->part[0].siz)); in atari_partition()
113 if (!(xrs->part[1].flg & 1)) { in atari_partition()
[all …]
Dacorn.c65 struct riscix_part part[8]; member
86 int part; in riscix_partition() local
91 for (part = 0; part < 8; part++) { in riscix_partition()
92 if (rr->part[part].one && in riscix_partition()
93 memcmp(rr->part[part].name, "All\0", 4)) { in riscix_partition()
95 le32_to_cpu(rr->part[part].start), in riscix_partition()
96 le32_to_cpu(rr->part[part].length)); in riscix_partition()
98 strlcat(state->pp_buf, rr->part[part].name, PAGE_SIZE); in riscix_partition()
Damiga.c46 int part, res = 0; in amiga_partition() local
93 for (part = 1; (s32) blk>0 && part<=16; part++, put_dev_sector(sect)) { in amiga_partition()
97 state->disk->disk_name, blk, part); in amiga_partition()
144 state->disk->disk_name, part); in amiga_partition()
165 state->disk->disk_name, part, in amiga_partition()
171 state->disk->disk_name, part, in amiga_partition()
Dldm.c576 struct vblk_part *part; in ldm_create_data_partitions() local
592 part = &vb->vblk.part; in ldm_create_data_partitions()
594 if (part->disk_id != disk->obj_id) in ldm_create_data_partitions()
598 part->start, part->size); in ldm_create_data_partitions()
924 struct vblk_part *part; in ldm_parse_prt3() local
971 part = &vb->vblk.part; in ldm_parse_prt3()
972 part->start = get_unaligned_be64(buffer + 0x24 + r_name); in ldm_parse_prt3()
973 part->volume_offset = get_unaligned_be64(buffer + 0x2C + r_name); in ldm_parse_prt3()
974 part->size = ldm_get_vnum(buffer + 0x34 + r_name); in ldm_parse_prt3()
975 part->parent_id = ldm_get_vnum(buffer + 0x34 + r_size); in ldm_parse_prt3()
[all …]
Defi.c140 static inline int pmbr_part_valid(gpt_mbr_record *part) in pmbr_part_valid() argument
142 if (part->os_type != EFI_PMBR_OSTYPE_EFI_GPT) in pmbr_part_valid()
146 if (le32_to_cpu(part->starting_lba) != GPT_PRIMARY_PARTITION_TABLE_LBA) in pmbr_part_valid()
175 int i, part = 0, ret = 0; /* invalid by default */ in is_pmbr_valid() local
183 part = i; in is_pmbr_valid()
215 sz = le32_to_cpu(mbr->partition_record[part].size_in_lba); in is_pmbr_valid()
Datari.h31 struct partition_info part[4]; member
Dldm.h175 struct vblk_part part; member
/block/
Dgenhd.c107 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()
[all …]
Dbdev.c705 static int blkdev_get_part(struct block_device *part, fmode_t mode) in blkdev_get_part() argument
707 struct gendisk *disk = part->bd_disk; in blkdev_get_part()
710 if (atomic_read(&part->bd_openers)) in blkdev_get_part()
713 ret = blkdev_get_whole(bdev_whole(part), mode); in blkdev_get_part()
718 if (!bdev_nr_sectors(part)) in blkdev_get_part()
722 set_init_blocksize(part); in blkdev_get_part()
724 atomic_inc(&part->bd_openers); in blkdev_get_part()
728 blkdev_put_whole(bdev_whole(part), mode); in blkdev_get_part()
732 static void blkdev_put_part(struct block_device *part, fmode_t mode) in blkdev_put_part() argument
734 struct block_device *whole = bdev_whole(part); in blkdev_put_part()
[all …]
Dblk-core.c481 bool should_fail_request(struct block_device *part, unsigned int bytes) in should_fail_request() argument
483 return part->bd_make_it_fail && should_fail(&fail_make_request, bytes); in should_fail_request()
940 void update_io_ticks(struct block_device *part, unsigned long now, bool end) in update_io_ticks() argument
944 stamp = READ_ONCE(part->bd_stamp); in update_io_ticks()
946 if (likely(try_cmpxchg(&part->bd_stamp, &stamp, now))) in update_io_ticks()
947 __part_stat_add(part, io_ticks, end ? now - stamp : 1); in update_io_ticks()
949 if (part->bd_partno) { in update_io_ticks()
950 part = bdev_whole(part); in update_io_ticks()
Dblk-flush.c148 struct block_device *part = rq->q->disk->part0; in blk_account_io_flush() local
151 part_stat_inc(part, ios[STAT_FLUSH]); in blk_account_io_flush()
152 part_stat_add(part, nsecs[STAT_FLUSH], in blk_account_io_flush()
Dblk-mq.c128 struct block_device *part; member
136 if (rq->part && blk_do_io_stat(rq) && in blk_mq_check_inflight()
137 (!mi->part->bd_partno || rq->part == mi->part) && in blk_mq_check_inflight()
145 struct block_device *part) in blk_mq_in_flight() argument
147 struct mq_inflight mi = { .part = part }; in blk_mq_in_flight()
154 void blk_mq_in_flight_rw(struct request_queue *q, struct block_device *part, in blk_mq_in_flight_rw() argument
157 struct mq_inflight mi = { .part = part }; in blk_mq_in_flight_rw()
336 rq->part = NULL; in blk_rq_init()
373 rq->part = NULL; in blk_mq_rq_ctx_init()
773 if (req->part && blk_do_io_stat(req)) { in blk_account_io_completion()
[all …]
Dblk.h376 void update_io_ticks(struct block_device *part, unsigned long now, bool end);
491 bool should_fail_request(struct block_device *part, unsigned int bytes);
493 static inline bool should_fail_request(struct block_device *part, in should_fail_request() argument
Dblk-mq.h190 struct block_device *part);
191 void blk_mq_in_flight_rw(struct request_queue *q, struct block_device *part,
Dblk-settings.c954 struct block_device *part; in disk_has_partitions() local
958 xa_for_each(&disk->part_tbl, idx, part) { in disk_has_partitions()
959 if (bdev_is_partition(part)) { in disk_has_partitions()
Dblk-merge.c781 part_stat_inc(req->part, merges[op_stat_group(req_op(req))]); in blk_account_io_merge_request()
963 part_stat_inc(req->part, merges[op_stat_group(req_op(req))]); in blk_account_io_merge_bio()