Searched refs:model_len (Results 1 – 2 of 2) sorted by relevance
590 int i, model_len; in myrs_get_config() local603 model_len = sizeof(info->ctlr_name); in myrs_get_config()604 if (model_len > sizeof(model)-1) in myrs_get_config()605 model_len = sizeof(model)-1; in myrs_get_config()606 memcpy(model, info->ctlr_name, model_len); in myrs_get_config()607 model_len--; in myrs_get_config()608 while (model[model_len] == ' ' || model[model_len] == '\0') in myrs_get_config()609 model_len--; in myrs_get_config()610 model[++model_len] = '\0'; in myrs_get_config()
3412 int model_len = sizeof(subsys->model); in wwid_show() local3426 while (model_len > 0 && (subsys->model[model_len - 1] == ' ' || in wwid_show()3427 subsys->model[model_len - 1] == '\0')) in wwid_show()3428 model_len--; in wwid_show()3431 serial_len, subsys->serial, model_len, subsys->model, in wwid_show()