Lines Matching refs:cntl_num

179 static void cciss_getgeometry(int cntl_num);
2909 static void cciss_getgeometry(int cntl_num) in cciss_getgeometry() argument
2941 return_code = sendcmd(CISS_INQUIRY, cntl_num, inq_buff, in cciss_getgeometry()
2944 hba[cntl_num]->firm_ver[0] = inq_buff->data_byte[32]; in cciss_getgeometry()
2945 hba[cntl_num]->firm_ver[1] = inq_buff->data_byte[33]; in cciss_getgeometry()
2946 hba[cntl_num]->firm_ver[2] = inq_buff->data_byte[34]; in cciss_getgeometry()
2947 hba[cntl_num]->firm_ver[3] = inq_buff->data_byte[35]; in cciss_getgeometry()
2953 return_code = sendcmd(CISS_REPORT_LOG, cntl_num, ld_buff, in cciss_getgeometry()
2967 hba[cntl_num]->num_luns = listlength / 8; /* 8 bytes pre entry */ in cciss_getgeometry()
2968 if (hba[cntl_num]->num_luns > CISS_MAX_LUN) { in cciss_getgeometry()
2971 hba[cntl_num]->num_luns = CISS_MAX_LUN; in cciss_getgeometry()
2976 ld_buff->LUNListLength[3], hba[cntl_num]->num_luns); in cciss_getgeometry()
2979 hba[cntl_num]->highest_lun = hba[cntl_num]->num_luns-1; in cciss_getgeometry()
2980 for(i=0; i< hba[cntl_num]->num_luns; i++) { in cciss_getgeometry()
2985 hba[cntl_num]->drv[i].LunID = lunid; in cciss_getgeometry()
2990 ld_buff->LUN[i][3], hba[cntl_num]->drv[i].LunID); in cciss_getgeometry()
2994 return_code = sendcmd(CCISS_READ_CAPACITY, cntl_num, size_buff, in cciss_getgeometry()
3025 return_code = sendcmd(CISS_INQUIRY, cntl_num, inq_buff, in cciss_getgeometry()
3031 hba[cntl_num]->drv[i].block_size = block_size; in cciss_getgeometry()
3032 hba[cntl_num]->drv[i].nr_blocks = total_size; in cciss_getgeometry()
3033 hba[cntl_num]->drv[i].heads = 255; in cciss_getgeometry()
3034 hba[cntl_num]->drv[i].sectors = 32; /* Sectors */ in cciss_getgeometry()
3036 hba[cntl_num]->drv[i].cylinders = total_size in cciss_getgeometry()
3040 hba[cntl_num]->drv[i].block_size = block_size; in cciss_getgeometry()
3041 hba[cntl_num]->drv[i].nr_blocks = total_size; in cciss_getgeometry()
3042 hba[cntl_num]->drv[i].heads = in cciss_getgeometry()
3044 hba[cntl_num]->drv[i].sectors = in cciss_getgeometry()
3046 hba[cntl_num]->drv[i].cylinders = in cciss_getgeometry()
3048 hba[cntl_num]->drv[i].cylinders += in cciss_getgeometry()
3050 hba[cntl_num]->drv[i].raid_level = in cciss_getgeometry()
3057 hba[cntl_num]->drv[i].block_size = block_size; in cciss_getgeometry()
3058 hba[cntl_num]->drv[i].nr_blocks = total_size; in cciss_getgeometry()
3059 hba[cntl_num]->drv[i].heads = 255; in cciss_getgeometry()
3060 hba[cntl_num]->drv[i].sectors = 32; /* Sectors */ in cciss_getgeometry()
3062 hba[cntl_num]->drv[i].cylinders = total_size / 255 / 32; in cciss_getgeometry()
3064 if (hba[cntl_num]->drv[i].raid_level > 5) in cciss_getgeometry()
3065 hba[cntl_num]->drv[i].raid_level = RAID_UNKNOWN; in cciss_getgeometry()
3067 hba[cntl_num]->drv[i].heads, in cciss_getgeometry()
3068 hba[cntl_num]->drv[i].sectors, in cciss_getgeometry()
3069 hba[cntl_num]->drv[i].cylinders, in cciss_getgeometry()
3070 raid_label[hba[cntl_num]->drv[i].raid_level]); in cciss_getgeometry()