Home
last modified time | relevance | path

Searched refs:lun_data (Results 1 – 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/drivers/scsi/
Dscsi_scan.c1298 struct scsi_lun *lunp, *lun_data; in scsi_report_lun_scan() local
1340 lun_data = kmalloc(length, GFP_KERNEL | in scsi_report_lun_scan()
1342 if (!lun_data) { in scsi_report_lun_scan()
1378 lun_data, length, &sshdr, in scsi_report_lun_scan()
1405 if (get_unaligned_be32(lun_data->scsi_lun) + in scsi_report_lun_scan()
1407 length = get_unaligned_be32(lun_data->scsi_lun) + in scsi_report_lun_scan()
1409 kfree(lun_data); in scsi_report_lun_scan()
1412 length = get_unaligned_be32(lun_data->scsi_lun); in scsi_report_lun_scan()
1423 for (lunp = &lun_data[1]; lunp <= &lun_data[num_luns]; lunp++) { in scsi_report_lun_scan()
1449 kfree(lun_data); in scsi_report_lun_scan()
/kernel/linux/linux-5.10/drivers/scsi/smartpqi/
Dsmartpqi_init.c920 void *lun_data = NULL; in pqi_report_phys_logical_luns() local
939 lun_data = kmalloc(lun_data_length, GFP_KERNEL); in pqi_report_phys_logical_luns()
940 if (!lun_data) { in pqi_report_phys_logical_luns()
946 memcpy(lun_data, report_lun_header, sizeof(*report_lun_header)); in pqi_report_phys_logical_luns()
950 rc = pqi_report_luns(ctrl_info, cmd, lun_data, lun_data_length); in pqi_report_phys_logical_luns()
955 &((struct report_lun_header *)lun_data)->list_length); in pqi_report_phys_logical_luns()
959 kfree(lun_data); in pqi_report_phys_logical_luns()
967 kfree(lun_data); in pqi_report_phys_logical_luns()
968 lun_data = NULL; in pqi_report_phys_logical_luns()
971 *buffer = lun_data; in pqi_report_phys_logical_luns()