Home
last modified time | relevance | path

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

/drivers/target/
Dtarget_core_spc.c262 u32 padding, scsi_name_len, scsi_target_len; in spc_emulate_evpd_83() local
369 scsi_name_len = sprintf(&buf[off], "%s,t,0x%04x", in spc_emulate_evpd_83()
371 scsi_name_len += 1 /* Include NULL terminator */; in spc_emulate_evpd_83()
380 padding = ((-scsi_name_len) & 3); in spc_emulate_evpd_83()
382 scsi_name_len += padding; in spc_emulate_evpd_83()
383 if (scsi_name_len > 256) in spc_emulate_evpd_83()
384 scsi_name_len = 256; in spc_emulate_evpd_83()
386 buf[off-1] = scsi_name_len; in spc_emulate_evpd_83()
387 off += scsi_name_len; in spc_emulate_evpd_83()
389 len += (scsi_name_len + 4); in spc_emulate_evpd_83()