Lines Matching refs:logvol

181 static int deregister_disk(int ctlr, int logvol);
182 static int register_new_disk(int cltr,int logvol);
1361 int logvol = arg; in ida_ioctl() local
1362 return(register_new_disk(ctlr, logvol)); in ida_ioctl()
1940 static int deregister_disk(int ctlr, int logvol) in deregister_disk() argument
1953 if( h->drv[logvol].usage_count > 1) { in deregister_disk()
1957 h->drv[logvol].usage_count++; in deregister_disk()
1962 start = logvol << gdev->minor_shift; in deregister_disk()
1974 if (logvol == h->highest_lun) { in deregister_disk()
1988 h->drv[logvol].nr_blks = 0; in deregister_disk()
1989 h->drv[logvol].cylinders = 0; in deregister_disk()
1990 h->drv[logvol].blk_size = 0; in deregister_disk()
2066 static int register_new_disk(int ctlr, int logvol) in register_new_disk() argument
2080 if( (logvol < 0) || (logvol >= IDA_MAX_PART)) in register_new_disk()
2083 if(hba[ctlr]->sizes[logvol << gdev->minor_shift] != 0 ) in register_new_disk()
2104 ctlr, id_lstatus_buf, size, 0, 0, logvol); in register_new_disk()
2123 ctlr, logvol); in register_new_disk()
2129 sizeof(id_log_drv_t), 0, 0, logvol); in register_new_disk()
2137 ctlr,logvol); in register_new_disk()
2142 drv = &info_p->drv[logvol]; in register_new_disk()
2148 info_p->log_drv_map |= (1 << logvol); in register_new_disk()
2149 if (info_p->highest_lun < logvol) in register_new_disk()
2150 info_p->highest_lun = logvol; in register_new_disk()
2153 ctlr, logvol, drv->blk_size, drv->nr_blks); in register_new_disk()
2155 hba[ctlr]->drv[logvol].usage_count = 0; in register_new_disk()
2158 start = logvol<< gdev->minor_shift; in register_new_disk()
2173 grok_partitions(gdev, logvol, IDA_MAX_PART, drv->nr_blks); in register_new_disk()