Lines Matching defs:vendor

233 	struct ib_mad_mgmt_vendor_class_table *vendor;
295 * If class is in "new" vendor range,
441 /* "New" vendor class range */
442 vendor = port_priv->version[mad_reg_req->
443 mgmt_class_version].vendor;
444 if (vendor) {
446 vendor_class = vendor->vendor_class[vclass];
1246 /* Is there matching OUI for this vendor class ? */
1253 static int check_vendor_table(struct ib_mad_mgmt_vendor_class_table *vendor)
1258 if (vendor->vendor_class[i])
1340 struct ib_mad_mgmt_vendor_class_table *vendor = NULL;
1346 /* "New" vendor (with OUI) class */
1350 mad_reg_req->mgmt_class_version].vendor;
1352 /* Allocate mgmt vendor class table for "new" class version */
1353 vendor = kzalloc(sizeof *vendor, GFP_ATOMIC);
1354 if (!vendor)
1357 *vendor_table = vendor;
1360 /* Allocate table for this management vendor class */
1368 /* Is there matching OUI for this vendor class ? */
1425 if (vendor) {
1427 kfree(vendor);
1438 struct ib_mad_mgmt_vendor_class_table *vendor;
1481 /* normalize mgmt_class to vendor range 2 */
1483 vendor = port_priv->version[
1484 agent_priv->reg_req->mgmt_class_version].vendor;
1486 if (!vendor)
1489 vendor_class = vendor->vendor_class[mgmt_class];
1509 /* If not, release vendor class table */
1511 vendor->vendor_class[mgmt_class] = NULL;
1512 /* Any other vendor classes left ? */
1513 if (!check_vendor_table(vendor)) {
1514 kfree(vendor);
1518 vendor = NULL;
1552 struct ib_mad_mgmt_vendor_class_table *vendor;
1560 * For "newer" vendor MADs, also based on OUI
1578 vendor = port_priv->version[
1579 mad_hdr->class_version].vendor;
1580 if (!vendor)
1582 vendor_class = vendor->vendor_class[vendor_class_index(