Lines Matching refs:odi
88 struct osd_dev_info odi; member
108 return sprintf(buf, "%s\n", ould->odi.osdname); in osdname_show()
118 memcpy(buf, ould->odi.systemid, ould->odi.systemid_len); in systemid_show()
119 return ould->odi.systemid_len; in systemid_show()
278 const struct osd_dev_info *odi = find_data; in _match_odi() local
280 if (_the_same_or_null(oud->odi.systemid, oud->odi.systemid_len, in _match_odi()
281 odi->systemid, odi->systemid_len) && in _match_odi()
282 _the_same_or_null(oud->odi.osdname, oud->odi.osdname_len, in _match_odi()
283 odi->osdname, odi->osdname_len)) { in _match_odi()
285 odi->systemid_len, odi->osdname_len); in _match_odi()
297 struct osd_dev *osduld_info_lookup(const struct osd_dev_info *odi) in osduld_info_lookup() argument
299 struct device *dev = class_find_device(&osd_uld_class, NULL, odi, _match_odi); in osduld_info_lookup()
349 return &odh->oud->odi; in osduld_device_info()
353 bool osduld_device_same(struct osd_dev *od, const struct osd_dev_info *odi) in osduld_device_same() argument
359 return (oud->odi.systemid_len == odi->systemid_len) && in osduld_device_same()
360 _the_same_or_null(oud->odi.systemid, oud->odi.systemid_len, in osduld_device_same()
361 odi->systemid, odi->systemid_len) && in osduld_device_same()
362 (oud->odi.osdname_len == odi->osdname_len) && in osduld_device_same()
363 _the_same_or_null(oud->odi.osdname, oud->odi.osdname_len, in osduld_device_same()
364 odi->osdname, odi->osdname_len); in osduld_device_same()
389 if (osd_auto_detect_ver(&oud->od, caps, &oud->odi)) in __detect_osd()
401 kfree(oud->odi.osdname); in __remove()