• Home
  • Raw
  • Download

Lines Matching refs:p

201 	struct hd_struct *p = dev_to_part(dev);  in part_partition_show()  local
203 return sprintf(buf, "%d\n", p->partno); in part_partition_show()
209 struct hd_struct *p = dev_to_part(dev); in part_start_show() local
211 return sprintf(buf, "%llu\n",(unsigned long long)p->start_sect); in part_start_show()
217 struct hd_struct *p = dev_to_part(dev); in part_size_show() local
218 return sprintf(buf, "%llu\n",(unsigned long long)p->nr_sects); in part_size_show()
224 struct hd_struct *p = dev_to_part(dev); in part_stat_show() local
228 part_round_stats(cpu, p); in part_stat_show()
235 part_stat_read(p, ios[READ]), in part_stat_show()
236 part_stat_read(p, merges[READ]), in part_stat_show()
237 (unsigned long long)part_stat_read(p, sectors[READ]), in part_stat_show()
238 jiffies_to_msecs(part_stat_read(p, ticks[READ])), in part_stat_show()
239 part_stat_read(p, ios[WRITE]), in part_stat_show()
240 part_stat_read(p, merges[WRITE]), in part_stat_show()
241 (unsigned long long)part_stat_read(p, sectors[WRITE]), in part_stat_show()
242 jiffies_to_msecs(part_stat_read(p, ticks[WRITE])), in part_stat_show()
243 p->in_flight, in part_stat_show()
244 jiffies_to_msecs(part_stat_read(p, io_ticks)), in part_stat_show()
245 jiffies_to_msecs(part_stat_read(p, time_in_queue))); in part_stat_show()
252 struct hd_struct *p = dev_to_part(dev); in part_fail_show() local
254 return sprintf(buf, "%d\n", p->make_it_fail); in part_fail_show()
261 struct hd_struct *p = dev_to_part(dev); in part_fail_store() local
265 p->make_it_fail = (i == 0) ? 0 : 1; in part_fail_store()
302 struct hd_struct *p = dev_to_part(dev); in part_release() local
303 free_part_stats(p); in part_release()
304 kfree(p); in part_release()
365 struct hd_struct *p; in add_partition() local
381 p = kzalloc(sizeof(*p), GFP_KERNEL); in add_partition()
382 if (!p) in add_partition()
385 if (!init_part_stats(p)) { in add_partition()
389 pdev = part_to_dev(p); in add_partition()
391 p->start_sect = start; in add_partition()
392 p->nr_sects = len; in add_partition()
393 p->partno = partno; in add_partition()
394 p->policy = get_disk_ro(disk); in add_partition()
407 err = blk_alloc_devt(p, &devt); in add_partition()
419 p->holder_dir = kobject_create_and_add("holders", &pdev->kobj); in add_partition()
420 if (!p->holder_dir) in add_partition()
431 INIT_RCU_HEAD(&p->rcu_head); in add_partition()
432 rcu_assign_pointer(ptbl->part[partno], p); in add_partition()
438 return p; in add_partition()
441 free_part_stats(p); in add_partition()
443 kfree(p); in add_partition()
446 kobject_put(p->holder_dir); in add_partition()
518 int p, highest, res; in rescan_partitions() local
547 for (p = 1, highest = 0; p < state->limit; p++) in rescan_partitions()
548 if (state->parts[p].size) in rescan_partitions()
549 highest = p; in rescan_partitions()
554 for (p = 1; p < state->limit; p++) { in rescan_partitions()
555 sector_t size = state->parts[p].size; in rescan_partitions()
556 sector_t from = state->parts[p].from; in rescan_partitions()
562 disk->disk_name, p, (unsigned long long) from); in rescan_partitions()
574 disk->disk_name, p, (unsigned long long) size); in rescan_partitions()
577 part = add_partition(disk, p, from, size, in rescan_partitions()
578 state->parts[p].flags); in rescan_partitions()
581 disk->disk_name, p, -PTR_ERR(part)); in rescan_partitions()
585 if (state->parts[p].flags & ADDPART_FLAG_RAID) in rescan_partitions()
593 unsigned char *read_dev_sector(struct block_device *bdev, sector_t n, Sector *p) in read_dev_sector() argument
603 p->v = page; in read_dev_sector()
608 p->v = NULL; in read_dev_sector()