Lines Matching refs:cur_id_size
3435 u8 cur_id_size = 0; in scsi_vpd_lun_id() local
3477 if (cur_id_size > d[3]) in scsi_vpd_lun_id()
3482 cur_id_size = d[3]; in scsi_vpd_lun_id()
3483 if (cur_id_size + 4 > id_len) in scsi_vpd_lun_id()
3484 cur_id_size = id_len - 4; in scsi_vpd_lun_id()
3488 cur_id_size, cur_id_str); in scsi_vpd_lun_id()
3492 if (cur_id_size > d[3]) in scsi_vpd_lun_id()
3496 cur_id_size == d[3]) in scsi_vpd_lun_id()
3498 cur_id_size = d[3]; in scsi_vpd_lun_id()
3501 switch (cur_id_size) { in scsi_vpd_lun_id()
3518 cur_id_size = 0; in scsi_vpd_lun_id()
3524 if (cur_id_size > d[3]) in scsi_vpd_lun_id()
3526 cur_id_size = d[3]; in scsi_vpd_lun_id()
3529 switch (cur_id_size) { in scsi_vpd_lun_id()
3541 cur_id_size = 0; in scsi_vpd_lun_id()
3547 if (cur_id_size + 4 > d[3]) in scsi_vpd_lun_id()
3550 if (cur_id_size && d[3] > id_len) in scsi_vpd_lun_id()
3552 cur_id_size = id_size = d[3]; in scsi_vpd_lun_id()
3555 if (cur_id_size >= id_len) in scsi_vpd_lun_id()
3556 cur_id_size = id_len - 1; in scsi_vpd_lun_id()
3557 memcpy(id, cur_id_str, cur_id_size); in scsi_vpd_lun_id()
3559 if (cur_id_size != id_size) in scsi_vpd_lun_id()
3560 cur_id_size = 6; in scsi_vpd_lun_id()