Lines Matching +defs:dev +defs:id +defs:attrs
54 struct cpuid id;
59 get_cpu_id(&id);
60 ident_tail = (u16)(id.ident & SMC_ISM_IDENT_MASK);
63 snprintf(tmp, 5, "%04X", id.machine);
139 if (!vlanid) /* No valid vlan id */
186 if (!vlanid) /* No valid vlan id */
202 goto out; /* VLAN id not in table */
270 int smc_ism_attach_dmb(struct smcd_dev *dev, u64 token,
276 if (!dev->dibs->ops->attach_dmb)
281 rc = dev->dibs->ops->attach_dmb(dev->dibs, &dmb);
293 int smc_ism_detach_dmb(struct smcd_dev *dev, u64 token)
295 if (!dev->dibs->ops->detach_dmb)
298 return dev->dibs->ops->detach_dmb(dev->dibs, token);
309 struct nlattr *attrs;
319 attrs = nla_nest_start(skb, SMC_GEN_DEV_SMCD);
320 if (!attrs)
328 smc_set_pci_values(to_pci_dev(dibs->dev.parent), &smc_pci_dev);
351 nla_nest_end(skb, attrs);
358 nla_nest_cancel(skb, attrs);
504 smcd = smcd_alloc_dev(dev_name(&dibs->dev), max_dmbs);
511 if (smc_pnetid_by_dev_port(dibs->dev.parent, 0, smcd->pnetid))
539 dev_name(&dibs->dev), smcd->pnetid,
545 dev_name(&dibs->dev));
554 dev_name(&dibs->dev));
626 memcpy(ev_info.uid, lgr->id, SMC_LGR_ID_SIZE);