/block/partitions/ |
D | check.h | 31 void *read_part_sector(struct parsed_partitions *state, sector_t n, Sector *p); 38 put_partition(struct parsed_partitions *p, int n, sector_t from, sector_t size) in put_partition() argument 40 if (n < p->limit) { in put_partition() 43 p->parts[n].from = from; in put_partition() 44 p->parts[n].size = size; in put_partition() 45 snprintf(tmp, sizeof(tmp), " %s%d", p->name, n); in put_partition()
|
D | aix.c | 170 struct lvname *n = NULL; in aix_partition() local 209 n = alloc_lvn(state, vgda_sector + vgda_len - 33); in aix_partition() 210 if (n) { in aix_partition() 260 n[lv_ix].name); in aix_partition() 270 char tmp[sizeof(n[i].name) + 1]; // null char in aix_partition() 272 snprintf(tmp, sizeof(tmp), "%s", n[i].name); in aix_partition() 279 kfree(n); in aix_partition()
|
D | msdos.c | 676 sector_t n = 2; in msdos_partition() local 678 n = min(size, max(sector_size, n)); in msdos_partition() 679 put_partition(state, slot, start, n); in msdos_partition() 702 int n; in msdos_partition() local 707 for (n = 0; subtypes[n].parse && id != subtypes[n].id; n++) in msdos_partition() 710 if (!subtypes[n].parse) in msdos_partition() 712 subtypes[n].parse(state, start_sect(p) * sector_size, in msdos_partition()
|
D | core.c | 719 void *read_part_sector(struct parsed_partitions *state, sector_t n, Sector *p) in read_part_sector() argument 724 if (n >= get_capacity(state->disk)) { in read_part_sector() 730 (pgoff_t)(n >> (PAGE_SHIFT - 9)), NULL); in read_part_sector() 738 ((n & ((1 << (PAGE_SHIFT - 9)) - 1)) << SECTOR_SHIFT); in read_part_sector()
|
D | efi.c | 239 sector_t n = lba * in read_lba() local 248 unsigned char *data = read_part_sector(state, n++, §); in read_lba()
|
/block/ |
D | genhd.c | 235 struct blk_major_name **n, *p; in __register_blkdev() local 278 for (n = &major_names[index]; *n; n = &(*n)->next) { in __register_blkdev() 279 if ((*n)->major == major) in __register_blkdev() 282 if (!*n) in __register_blkdev() 283 *n = p; in __register_blkdev() 301 struct blk_major_name **n; in unregister_blkdev() local 307 for (n = &major_names[index]; *n; n = &(*n)->next) in unregister_blkdev() 308 if ((*n)->major == major) in unregister_blkdev() 310 if (!*n || strcmp((*n)->name, name)) { in unregister_blkdev() 313 p = *n; in unregister_blkdev() [all …]
|
D | ioctl.c | 361 int ret, n; in blkdev_roset() local 366 if (get_user(n, (int __user *)arg)) in blkdev_roset() 369 ret = bdev->bd_disk->fops->set_read_only(bdev, n); in blkdev_roset() 373 bdev->bd_read_only = n; in blkdev_roset() 446 int ret, n; in blkdev_bszset() local 452 if (get_user(n, argp)) in blkdev_bszset() 456 return set_blocksize(bdev, n); in blkdev_bszset() 460 ret = set_blocksize(bdev, n); in blkdev_bszset()
|
D | blk-map.c | 269 unsigned int n = PAGE_SIZE - offs; in bio_map_user_iov() local 272 if (n > bytes) in bio_map_user_iov() 273 n = bytes; in bio_map_user_iov() 275 if (!bio_add_hw_page(rq->q, bio, page, n, offs, in bio_map_user_iov() 282 added += n; in bio_map_user_iov() 283 bytes -= n; in bio_map_user_iov()
|
D | elevator.c | 285 struct rb_node *n = root->rb_node; in elv_rb_find() local 288 while (n) { in elv_rb_find() 289 rq = rb_entry(n, struct request, rb_node); in elv_rb_find() 292 n = n->rb_left; in elv_rb_find() 294 n = n->rb_right; in elv_rb_find()
|
D | blk-flush.c | 218 struct request *rq, *n; in flush_end_io() local 257 list_for_each_entry_safe(rq, n, running, flush.list) { in flush_end_io()
|
D | blk-crypto-sysfs.c | 70 struct attribute *attr, int n) in blk_crypto_mode_is_visible() argument
|
D | blk-throttle.c | 649 struct rb_node *n; in throtl_rb_first() local 651 n = rb_first_cached(&parent_sq->pending_tree); in throtl_rb_first() 652 WARN_ON_ONCE(!n); in throtl_rb_first() 653 if (!n) in throtl_rb_first() 655 return rb_entry_tg(n); in throtl_rb_first() 658 static void throtl_rb_erase(struct rb_node *n, in throtl_rb_erase() argument 661 rb_erase_cached(n, &parent_sq->pending_tree); in throtl_rb_erase() 662 RB_CLEAR_NODE(n); in throtl_rb_erase()
|
D | sed-opal.c | 732 int n) in response_get_token() argument 741 if (n >= resp->num) { in response_get_token() 743 n, resp->num); in response_get_token() 747 tok = &resp->toks[n]; in response_get_token() 915 static size_t response_get_string(const struct parsed_resp *resp, int n, in response_get_string() argument 922 tok = response_get_token(resp, n); in response_get_string() 952 static u64 response_get_u64(const struct parsed_resp *resp, int n) in response_get_u64() argument 956 tok = response_get_token(resp, n); in response_get_u64()
|
D | bfq-iosched.c | 610 struct rb_node **n; in bfq_rq_pos_tree_lookup() local 620 n = &(*p)->rb_right; in bfq_rq_pos_tree_lookup() 622 n = &(*p)->rb_left; in bfq_rq_pos_tree_lookup() 625 p = n; in bfq_rq_pos_tree_lookup() 1133 struct hlist_node *n; in bfq_reset_burst_list() local 1135 hlist_for_each_entry_safe(item, n, &bfqd->burst_list, burst_list_node) in bfq_reset_burst_list() 1160 struct hlist_node *n; in bfq_add_to_burst() local 1184 hlist_for_each_entry_safe(pos, n, &bfqd->burst_list, in bfq_add_to_burst() 5128 struct hlist_node *n; in bfq_put_queue() local 5191 hlist_for_each_entry_safe(item, n, &bfqq->woken_list, in bfq_put_queue() [all …]
|
D | blk-cgroup.c | 426 struct blkcg_gq *blkg, *n; in blkg_destroy_all() local 432 list_for_each_entry_safe(blkg, n, &q->blkg_list, q_node) { in blkg_destroy_all()
|
D | blk-sysfs.c | 688 int n) in queue_attr_visible() argument
|