Lines Matching refs:gd
211 struct gendisk *gd; member
497 set_capacity(ace->gd, 0); in ace_fsm_dostate()
626 set_capacity(ace->gd, 0); in ace_fsm_dostate()
633 set_capacity(ace->gd, in ace_fsm_dostate()
870 static unsigned int ace_check_events(struct gendisk *gd, unsigned int clearing) in ace_check_events() argument
872 struct ace_device *ace = gd->private_data; in ace_check_events()
878 static int ace_revalidate_disk(struct gendisk *gd) in ace_revalidate_disk() argument
880 struct ace_device *ace = gd->private_data; in ace_revalidate_disk()
1001 ace->gd = alloc_disk(ACE_NUM_MINORS); in ace_setup()
1002 if (!ace->gd) in ace_setup()
1005 ace->gd->major = ace_major; in ace_setup()
1006 ace->gd->first_minor = ace->id * ACE_NUM_MINORS; in ace_setup()
1007 ace->gd->fops = &ace_fops; in ace_setup()
1008 ace->gd->queue = ace->queue; in ace_setup()
1009 ace->gd->private_data = ace; in ace_setup()
1010 snprintf(ace->gd->disk_name, 32, "xs%c", ace->id + 'a'); in ace_setup()
1058 ace_revalidate_disk(ace->gd); in ace_setup()
1061 add_disk(ace->gd); in ace_setup()
1066 put_disk(ace->gd); in ace_setup()
1079 if (ace->gd) { in ace_teardown()
1080 del_gendisk(ace->gd); in ace_teardown()
1081 put_disk(ace->gd); in ace_teardown()