Searched refs:scsi_name_len (Results 1 - 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/drivers/target/ |
H A D | target_core_spc.c | 262 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 in spc_emulate_evpd_83() [all...] |
/kernel/linux/linux-6.6/drivers/target/ |
H A D | target_core_spc.c | 290 u32 padding, scsi_name_len, scsi_target_len; in spc_emulate_evpd_83() local 397 scsi_name_len = sprintf(&buf[off], "%s,t,0x%04x", in spc_emulate_evpd_83() 399 scsi_name_len += 1 /* Include NULL terminator */; in spc_emulate_evpd_83() 408 padding = ((-scsi_name_len) & 3); in spc_emulate_evpd_83() 410 scsi_name_len += padding; in spc_emulate_evpd_83() 411 if (scsi_name_len > 256) in spc_emulate_evpd_83() 412 scsi_name_len = 256; in spc_emulate_evpd_83() 414 buf[off-1] = scsi_name_len; in spc_emulate_evpd_83() 415 off += scsi_name_len; in spc_emulate_evpd_83() 417 len += (scsi_name_len in spc_emulate_evpd_83() [all...] |
Completed in 3 milliseconds