Lines Matching refs:ldev_num
146 static void myrs_report_progress(struct myrs_hba *cs, unsigned short ldev_num, in myrs_report_progress() argument
152 ldev_num, msg, in myrs_report_progress()
221 unsigned short ldev_num, struct myrs_ldev_info *ldev_info) in myrs_get_ldev_info() argument
244 mbox->ldev_info.ldev.ldev_num = ldev_num; in myrs_get_ldev_info()
250 "Sending GetLogicalDeviceInfoValid for ldev %d\n", ldev_num); in myrs_get_ldev_info()
257 unsigned short ldev_num = ldev_info->ldev_num; in myrs_get_ldev_info() local
268 ldev_num, name ? name : "Invalid"); in myrs_get_ldev_info()
275 ldev_num, new->soft_errs, in myrs_get_ldev_info()
279 myrs_report_progress(cs, ldev_num, in myrs_get_ldev_info()
283 myrs_report_progress(cs, ldev_num, in myrs_get_ldev_info()
287 myrs_report_progress(cs, ldev_num, in myrs_get_ldev_info()
291 myrs_report_progress(cs, ldev_num, in myrs_get_ldev_info()
297 ldev_num, in myrs_get_ldev_info()
980 unsigned short ldev_num; in raid_state_store() local
1008 ldev_num = pdev_devmap->ldev_num; in raid_state_store()
1018 ldev_num = ldev_info->ldev_num; in raid_state_store()
1030 mbox->set_devstate.ldev.ldev_num = ldev_num; in raid_state_store()
1088 unsigned short ldev_num; in rebuild_show() local
1095 ldev_num = ldev_info->ldev_num; in rebuild_show()
1096 status = myrs_get_ldev_info(cs, ldev_num, ldev_info); in rebuild_show()
1119 unsigned short ldev_num; in rebuild_store() local
1129 ldev_num = ldev_info->ldev_num; in rebuild_store()
1135 status = myrs_get_ldev_info(cs, ldev_num, ldev_info); in rebuild_store()
1163 mbox->ldev_info.ldev.ldev_num = ldev_num; in rebuild_store()
1166 mbox->ldev_info.ldev.ldev_num = ldev_num; in rebuild_store()
1193 unsigned short ldev_num; in consistency_check_show() local
1202 ldev_num = ldev_info->ldev_num; in consistency_check_show()
1203 status = myrs_get_ldev_info(cs, ldev_num, ldev_info); in consistency_check_show()
1220 unsigned short ldev_num; in consistency_check_store() local
1230 ldev_num = ldev_info->ldev_num; in consistency_check_store()
1236 status = myrs_get_ldev_info(cs, ldev_num, ldev_info); in consistency_check_store()
1265 mbox->cc.ldev.ldev_num = ldev_num; in consistency_check_store()
1270 mbox->cc.ldev.ldev_num = ldev_num; in consistency_check_store()
1784 unsigned short ldev_num; in myrs_translate_ldev() local
1788 ldev_num = sdev->id + chan_offset * sdev->host->max_id; in myrs_translate_ldev()
1790 return ldev_num; in myrs_translate_ldev()
1803 unsigned short ldev_num; in myrs_slave_alloc() local
1808 ldev_num = myrs_translate_ldev(cs, sdev); in myrs_slave_alloc()
1814 status = myrs_get_ldev_info(cs, ldev_num, ldev_info); in myrs_slave_alloc()
1824 ldev_info->lun, ldev_info->ldev_num); in myrs_slave_alloc()
1990 unsigned short ldev_num = ldev_info->ldev_num; in myrs_get_resync() local
1992 status = myrs_get_ldev_info(cs, ldev_num, ldev_info); in myrs_get_resync()
2151 int ldev_num; in myrs_monitor() local
2158 ldev_num = ldev_info->ldev_num; in myrs_monitor()
2159 myrs_get_ldev_info(cs, ldev_num, ldev_info); in myrs_monitor()