Lines Matching full:disk

5         This is the high-level driver for parallel port ATAPI disk
9 port ATAPI disk drive, but if their individual parameters are
215 static void pf_release(struct gendisk *disk, fmode_t mode);
241 struct gendisk *disk; member
251 static unsigned int pf_check_events(struct gendisk *disk,
295 struct gendisk *disk; in pf_init_units() local
297 disk = alloc_disk(1); in pf_init_units()
298 if (!disk) in pf_init_units()
301 disk->queue = blk_mq_init_sq_queue(&pf->tag_set, &pf_mq_ops, in pf_init_units()
303 if (IS_ERR(disk->queue)) { in pf_init_units()
304 disk->queue = NULL; in pf_init_units()
305 put_disk(disk); in pf_init_units()
310 disk->queue->queuedata = pf; in pf_init_units()
311 blk_queue_max_segments(disk->queue, cluster); in pf_init_units()
312 blk_queue_bounce_limit(disk->queue, BLK_BOUNCE_HIGH); in pf_init_units()
313 pf->disk = disk; in pf_init_units()
319 disk->major = major; in pf_init_units()
320 disk->first_minor = unit; in pf_init_units()
321 strcpy(disk->disk_name, pf->name); in pf_init_units()
322 disk->fops = &pf_fops; in pf_init_units()
323 disk->events = DISK_EVENT_MEDIA_CHANGE; in pf_init_units()
357 sector_t capacity = get_capacity(pf->disk); in pf_getgeo()
388 static void pf_release(struct gendisk *disk, fmode_t mode) in pf_release() argument
390 struct pf_unit *pf = disk->private_data; in pf_release()
407 static unsigned int pf_check_events(struct gendisk *disk, unsigned int clearing) in pf_check_events() argument
638 set_capacity(pf->disk, xl(buf, 0) + 1); in pf_get_capacity()
641 set_capacity(pf->disk, 0); in pf_get_capacity()
691 (unsigned long long)get_capacity(pf->disk)); in pf_identify()
740 if (!pf_probe(pf) && pf->disk) { in pf_detect()
755 if (pf->disk && !pf_probe(pf)) { in pf_detect()
765 printk("%s: No ATAPI disk detected\n", name); in pf_detect()
767 if (!pf->disk) in pf_detect()
769 blk_cleanup_queue(pf->disk->queue); in pf_detect()
770 pf->disk->queue = NULL; in pf_detect()
772 put_disk(pf->disk); in pf_detect()
1037 if (!pf->disk) in pf_init()
1039 blk_cleanup_queue(pf->disk->queue); in pf_init()
1041 put_disk(pf->disk); in pf_init()
1047 struct gendisk *disk = pf->disk; in pf_init() local
1051 disk->private_data = pf; in pf_init()
1052 add_disk(disk); in pf_init()
1063 if (!pf->disk) in pf_exit()
1067 del_gendisk(pf->disk); in pf_exit()
1069 blk_cleanup_queue(pf->disk->queue); in pf_exit()
1071 put_disk(pf->disk); in pf_exit()