Lines Matching refs:scsi_lun
1249 int scsilun_to_int(struct scsi_lun *scsilun) in scsilun_to_int()
1256 lun = lun | (((scsilun->scsi_lun[i] << 8) | in scsilun_to_int()
1257 scsilun->scsi_lun[i + 1]) << (i * 8)); in scsilun_to_int()
1280 void int_to_scsilun(unsigned int lun, struct scsi_lun *scsilun) in int_to_scsilun()
1284 memset(scsilun->scsi_lun, 0, sizeof(scsilun->scsi_lun)); in int_to_scsilun()
1287 scsilun->scsi_lun[i] = (lun >> 8) & 0xFF; in int_to_scsilun()
1288 scsilun->scsi_lun[i+1] = lun & 0xFF; in int_to_scsilun()
1324 struct scsi_lun *lunp, *lun_data; in scsi_report_lun_scan()
1373 length = (max_scsi_report_luns + 1) * sizeof(struct scsi_lun); in scsi_report_lun_scan()
1440 data = (u8 *) lun_data->scsi_lun; in scsi_report_lun_scan()
1444 num_luns = (length / sizeof(struct scsi_lun)); in scsi_report_lun_scan()
1467 if (memcmp(&lunp->scsi_lun[sizeof(lun)], "\0\0\0\0", 4)) { in scsi_report_lun_scan()
1476 data = (char *)lunp->scsi_lun; in scsi_report_lun_scan()
1477 for (i = 0; i < sizeof(struct scsi_lun); i++) in scsi_report_lun_scan()