Lines Matching full:oui

176 static int is_vendor_oui(char *oui)  in is_vendor_oui()  argument
178 if (oui[0] || oui[1] || oui[2]) in is_vendor_oui()
191 if (!memcmp(vendor_class->oui[i], mad_reg_req->oui, 3)) { in is_vendor_method_in_use()
296 * ensure supplied OUI is not zero in ib_register_mad_agent()
298 if (!is_vendor_oui(mad_reg_req->oui)) { in ib_register_mad_agent()
300 "%s: No OUI specified for class 0x%x\n", in ib_register_mad_agent()
1241 const char *oui) in find_vendor_oui() argument
1246 /* Is there matching OUI for this vendor class ? */ in find_vendor_oui()
1247 if (!memcmp(vendor_class->oui[i], oui, 3)) in find_vendor_oui()
1346 /* "New" vendor (with OUI) class */ in add_oui_reg_req()
1368 /* Is there matching OUI for this vendor class ? */ in add_oui_reg_req()
1369 if (!memcmp((*vendor_table)->vendor_class[vclass]->oui[i], in add_oui_reg_req()
1370 mad_reg_req->oui, 3)) { in add_oui_reg_req()
1379 /* OUI slot available ? */ in add_oui_reg_req()
1381 vclass]->oui[i])) { in add_oui_reg_req()
1384 /* Allocate method table for this OUI */ in add_oui_reg_req()
1390 memcpy((*vendor_table)->vendor_class[vclass]->oui[i], in add_oui_reg_req()
1391 mad_reg_req->oui, 3); in add_oui_reg_req()
1395 dev_err(&agent_priv->agent.device->dev, "All OUI slots in use\n"); in add_oui_reg_req()
1491 index = find_vendor_oui(vendor_class, agent_priv->reg_req->oui); in remove_mad_reg_req()
1506 memset(vendor_class->oui[index], 0, 3); in remove_mad_reg_req()
1560 * For "newer" vendor MADs, also based on OUI in find_mad_agent()
1586 /* Find matching OUI */ in find_mad_agent()
1588 index = find_vendor_oui(vendor_class, vendor_mad->oui); in find_mad_agent()