Lines Matching refs:logvol
175 static int deregister_disk(int ctlr, int logvol);
177 static int cciss_rescan_disk(int cltr, int logvol);
1277 static int deregister_disk(int ctlr, int logvol) in deregister_disk() argument
1289 if (h->drv[logvol].usage_count > 1 || h->busy_configuring) { in deregister_disk()
1298 start = logvol << gdev->minor_shift; in deregister_disk()
1310 if (logvol == h->highest_lun) { in deregister_disk()
1324 h->drv[logvol].nr_blocks = 0; in deregister_disk()
1325 h->drv[logvol].block_size = 0; in deregister_disk()
1326 h->drv[logvol].cylinders = 0; in deregister_disk()
1327 h->drv[logvol].LunID = 0; in deregister_disk()
1547 int logvol; in register_new_disk() local
1692 logvol = free_index; in register_new_disk()
1693 hba[ctlr]->drv[logvol].LunID = lunid; in register_new_disk()
1695 if (hba[ctlr]->highest_lun < logvol) in register_new_disk()
1696 hba[ctlr]->highest_lun = logvol; in register_new_disk()
1701 logvol, 0, TYPE_CMD); in register_new_disk()
1732 sizeof(InquiryData_struct), 1, logvol ,0xC1, TYPE_CMD); in register_new_disk()
1739 hba[ctlr]->drv[logvol].block_size = block_size; in register_new_disk()
1740 hba[ctlr]->drv[logvol].nr_blocks = total_size; in register_new_disk()
1741 hba[ctlr]->drv[logvol].heads = 255; in register_new_disk()
1742 hba[ctlr]->drv[logvol].sectors = 32; /* secs/trk */ in register_new_disk()
1743 hba[ctlr]->drv[logvol].cylinders = total_size / 255 /32; in register_new_disk()
1744 hba[ctlr]->drv[logvol].raid_level = RAID_UNKNOWN; in register_new_disk()
1746 hba[ctlr]->drv[logvol].block_size = block_size; in register_new_disk()
1747 hba[ctlr]->drv[logvol].nr_blocks = total_size; in register_new_disk()
1748 hba[ctlr]->drv[logvol].heads = inq_buff->data_byte[6]; in register_new_disk()
1749 hba[ctlr]->drv[logvol].sectors = inq_buff->data_byte[7]; in register_new_disk()
1750 hba[ctlr]->drv[logvol].cylinders = in register_new_disk()
1752 hba[ctlr]->drv[logvol].cylinders += in register_new_disk()
1754 hba[ctlr]->drv[logvol].raid_level = in register_new_disk()
1762 hba[ctlr]->drv[logvol].block_size = block_size; in register_new_disk()
1763 hba[ctlr]->drv[logvol].nr_blocks = total_size; in register_new_disk()
1764 hba[ctlr]->drv[logvol].heads = 255; in register_new_disk()
1765 hba[ctlr]->drv[logvol].sectors = 32; /* Sectors per track */ in register_new_disk()
1766 hba[ctlr]->drv[logvol].cylinders = total_size / 255 / 32; in register_new_disk()
1768 if (hba[ctlr]->drv[logvol].raid_level > 5) in register_new_disk()
1769 hba[ctlr]->drv[logvol].raid_level = RAID_UNKNOWN; in register_new_disk()
1771 hba[ctlr]->drv[logvol].heads, in register_new_disk()
1772 hba[ctlr]->drv[logvol].sectors, in register_new_disk()
1773 hba[ctlr]->drv[logvol].cylinders, in register_new_disk()
1774 raid_label[hba[ctlr]->drv[logvol].raid_level]); in register_new_disk()
1780 if (logvol != opened_vol) in register_new_disk()
1781 hba[ctlr]->drv[logvol].usage_count = 0; in register_new_disk()
1784 start = logvol<< gdev->minor_shift; in register_new_disk()
1802 grok_partitions(gdev, logvol, MAX_PART, in register_new_disk()
1803 hba[ctlr]->drv[logvol].nr_blocks); in register_new_disk()
1808 return logvol; in register_new_disk()
1811 static int cciss_rescan_disk(int ctlr, int logvol) in cciss_rescan_disk() argument
1823 if (hba[ctlr]->sizes[logvol << NWD_SHIFT] != 0) { in cciss_rescan_disk()
1840 sizeof( ReadCapdata_struct), 1, logvol, 0, in cciss_rescan_disk()
1870 sizeof(InquiryData_struct), 1, logvol ,0xC1, TYPE_CMD); in cciss_rescan_disk()
1876 hba[ctlr]->drv[logvol].nr_blocks = total_size; in cciss_rescan_disk()
1877 hba[ctlr]->drv[logvol].heads = 255; in cciss_rescan_disk()
1878 hba[ctlr]->drv[logvol].sectors = 32; /* Sectors/track */ in cciss_rescan_disk()
1879 hba[ctlr]->drv[logvol].cylinders = total_size / 255 /32; in cciss_rescan_disk()
1881 hba[ctlr]->drv[logvol].nr_blocks = total_size; in cciss_rescan_disk()
1882 hba[ctlr]->drv[logvol].heads = inq_buff->data_byte[6]; in cciss_rescan_disk()
1883 hba[ctlr]->drv[logvol].sectors = inq_buff->data_byte[7]; in cciss_rescan_disk()
1884 hba[ctlr]->drv[logvol].cylinders = in cciss_rescan_disk()
1886 hba[ctlr]->drv[logvol].cylinders += in cciss_rescan_disk()
1893 hba[ctlr]->drv[logvol].nr_blocks = total_size; in cciss_rescan_disk()
1894 hba[ctlr]->drv[logvol].heads = 255; in cciss_rescan_disk()
1895 hba[ctlr]->drv[logvol].sectors = 32; /* Sectors / track */ in cciss_rescan_disk()
1896 hba[ctlr]->drv[logvol].cylinders = total_size / 255 /32; in cciss_rescan_disk()
1900 hba[ctlr]->drv[logvol].heads, in cciss_rescan_disk()
1901 hba[ctlr]->drv[logvol].sectors, in cciss_rescan_disk()
1902 hba[ctlr]->drv[logvol].cylinders); in cciss_rescan_disk()
1904 start = logvol<< gdev->minor_shift; in cciss_rescan_disk()
1919 grok_partitions(gdev, logvol, MAX_PART, in cciss_rescan_disk()
1920 hba[ctlr]->drv[logvol].nr_blocks ); in cciss_rescan_disk()