Searched refs:serial_len (Results 1 – 5 of 5) sorted by relevance
/openbmc/linux/drivers/scsi/device_handler/ |
H A D | scsi_dh_emc.c | 193 unsigned char sp_len, serial_len; in parse_sp_model() local 210 serial_len = buffer[160]; in parse_sp_model() 211 if (serial_len == 0 || serial_len + 161 > len) { in parse_sp_model() 214 CLARIION_NAME, serial_len); in parse_sp_model() 218 if (sp_len == 0 || serial_len + sp_len + 161 > len) { in parse_sp_model() 224 sp_model = &buffer[serial_len + 161]; in parse_sp_model()
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_devlink.c | 333 int serial_len; in nfp_devlink_port_register() local 350 serial_len = nfp_cpp_serial(port->app->cpp, &serial); in nfp_devlink_port_register() 351 memcpy(attrs.switch_id.id, serial, serial_len); in nfp_devlink_port_register() 352 attrs.switch_id.id_len = serial_len; in nfp_devlink_port_register()
|
/openbmc/linux/drivers/nvme/host/ |
H A D | sysfs.c | 54 int serial_len = sizeof(subsys->serial); in wwid_show() local 66 while (serial_len > 0 && (subsys->serial[serial_len - 1] == ' ' || in wwid_show() 67 subsys->serial[serial_len - 1] == '\0')) in wwid_show() 68 serial_len--; in wwid_show() 74 serial_len, subsys->serial, model_len, subsys->model, in wwid_show()
|
/openbmc/linux/drivers/usb/misc/ |
H A D | usb251xb.c | 135 u8 serial_len; member 331 i2c_wb[USB251XB_ADDR_SERIAL_STRING_LEN] = hub->serial_len; in usb251xb_connect() 562 hub->serial_len = strlen(str) & 0xFF; in usb251xb_get_ofdata()
|
/openbmc/linux/drivers/usb/core/ |
H A D | hub.c | 5234 unsigned serial_len = 0; in descriptors_changed() local 5261 serial_len = strlen(udev->serial) + 1; in descriptors_changed() 5263 len = serial_len; in descriptors_changed() 5295 if (!changed && serial_len) { in descriptors_changed() 5297 buf, serial_len); in descriptors_changed() 5298 if (length + 1 != serial_len) { in descriptors_changed()
|