Searched refs:lun_data (Results 1 – 2 of 2) sorted by relevance
/linux/drivers/scsi/ |
H A D | scsi_scan.c | 1427 struct scsi_lun *lunp, *lun_data; in scsi_report_lun_scan() local 1493 lun_data = kmalloc(length, GFP_KERNEL); in scsi_report_lun_scan() 1494 if (!lun_data) { in scsi_report_lun_scan() 1529 result = scsi_execute_cmd(sdev, scsi_cmd, REQ_OP_DRV_IN, lun_data, in scsi_report_lun_scan() 1547 if (get_unaligned_be32(lun_data->scsi_lun) + in scsi_report_lun_scan() 1549 length = get_unaligned_be32(lun_data->scsi_lun) + in scsi_report_lun_scan() 1551 kfree(lun_data); in scsi_report_lun_scan() 1554 length = get_unaligned_be32(lun_data->scsi_lun); in scsi_report_lun_scan() 1565 for (lunp = &lun_data[1]; lunp <= &lun_data[num_luns]; lunp++) { in scsi_report_lun_scan() 1591 kfree(lun_data); in scsi_report_lun_scan()
|
/linux/drivers/scsi/smartpqi/ |
H A D | smartpqi_init.c | 1162 void *lun_data = NULL; in pqi_report_phys_logical_luns() local 1180 lun_data = kmalloc(lun_data_length, GFP_KERNEL); in pqi_report_phys_logical_luns() 1181 if (!lun_data) { in pqi_report_phys_logical_luns() 1187 memcpy(lun_data, report_lun_header, sizeof(*report_lun_header)); in pqi_report_phys_logical_luns() 1191 rc = pqi_report_luns(ctrl_info, cmd, lun_data, lun_data_length); in pqi_report_phys_logical_luns() 1196 get_unaligned_be32(&((struct report_lun_header *)lun_data)->list_length); in pqi_report_phys_logical_luns() 1200 kfree(lun_data); in pqi_report_phys_logical_luns() 1208 kfree(lun_data); in pqi_report_phys_logical_luns() 1209 lun_data = NULL; in pqi_report_phys_logical_luns() 1212 *buffer = lun_data; in pqi_report_phys_logical_luns()
|