Lines Matching full:oui
182 static int is_vendor_oui(char *oui) in is_vendor_oui() argument
184 if (oui[0] || oui[1] || oui[2]) in is_vendor_oui()
197 if (!memcmp(vendor_class->oui[i], mad_reg_req->oui, 3)) { in is_vendor_method_in_use()
302 * ensure supplied OUI is not zero in ib_register_mad_agent()
304 if (!is_vendor_oui(mad_reg_req->oui)) { in ib_register_mad_agent()
306 "%s: No OUI specified for class 0x%x\n", in ib_register_mad_agent()
1249 const char *oui) in find_vendor_oui() argument
1254 /* Is there matching OUI for this vendor class ? */ in find_vendor_oui()
1255 if (!memcmp(vendor_class->oui[i], oui, 3)) in find_vendor_oui()
1356 /* "New" vendor (with OUI) class */ in add_oui_reg_req()
1378 /* Is there matching OUI for this vendor class ? */ in add_oui_reg_req()
1379 if (!memcmp((*vendor_table)->vendor_class[vclass]->oui[i], in add_oui_reg_req()
1380 mad_reg_req->oui, 3)) { in add_oui_reg_req()
1389 /* OUI slot available ? */ in add_oui_reg_req()
1391 vclass]->oui[i])) { in add_oui_reg_req()
1394 /* Allocate method table for this OUI */ in add_oui_reg_req()
1400 memcpy((*vendor_table)->vendor_class[vclass]->oui[i], in add_oui_reg_req()
1401 mad_reg_req->oui, 3); in add_oui_reg_req()
1405 dev_err(&agent_priv->agent.device->dev, "All OUI slots in use\n"); in add_oui_reg_req()
1502 index = find_vendor_oui(vendor_class, agent_priv->reg_req->oui); in remove_mad_reg_req()
1517 memset(vendor_class->oui[index], 0, 3); in remove_mad_reg_req()
1571 * For "newer" vendor MADs, also based on OUI in find_mad_agent()
1597 /* Find matching OUI */ in find_mad_agent()
1599 index = find_vendor_oui(vendor_class, vendor_mad->oui); in find_mad_agent()