Lines Matching full:oui
181 static int is_vendor_oui(char *oui) in is_vendor_oui() argument
183 if (oui[0] || oui[1] || oui[2]) in is_vendor_oui()
196 if (!memcmp(vendor_class->oui[i], mad_reg_req->oui, 3)) { in is_vendor_method_in_use()
301 * ensure supplied OUI is not zero in ib_register_mad_agent()
303 if (!is_vendor_oui(mad_reg_req->oui)) { in ib_register_mad_agent()
305 "%s: No OUI specified for class 0x%x\n", in ib_register_mad_agent()
1246 const char *oui) in find_vendor_oui() argument
1251 /* Is there matching OUI for this vendor class ? */ in find_vendor_oui()
1252 if (!memcmp(vendor_class->oui[i], oui, 3)) in find_vendor_oui()
1351 /* "New" vendor (with OUI) class */ in add_oui_reg_req()
1373 /* Is there matching OUI for this vendor class ? */ in add_oui_reg_req()
1374 if (!memcmp((*vendor_table)->vendor_class[vclass]->oui[i], in add_oui_reg_req()
1375 mad_reg_req->oui, 3)) { in add_oui_reg_req()
1384 /* OUI slot available ? */ in add_oui_reg_req()
1386 vclass]->oui[i])) { in add_oui_reg_req()
1389 /* Allocate method table for this OUI */ in add_oui_reg_req()
1395 memcpy((*vendor_table)->vendor_class[vclass]->oui[i], in add_oui_reg_req()
1396 mad_reg_req->oui, 3); in add_oui_reg_req()
1400 dev_err(&agent_priv->agent.device->dev, "All OUI slots in use\n"); in add_oui_reg_req()
1496 index = find_vendor_oui(vendor_class, agent_priv->reg_req->oui); in remove_mad_reg_req()
1511 memset(vendor_class->oui[index], 0, 3); in remove_mad_reg_req()
1565 * For "newer" vendor MADs, also based on OUI in find_mad_agent()
1591 /* Find matching OUI */ in find_mad_agent()
1593 index = find_vendor_oui(vendor_class, vendor_mad->oui); in find_mad_agent()