Lines Matching refs:protocol
2 * core.c - contains all core device and protocol registration functions
45 * pnp_protocol_register - adds a pnp protocol to the pnp layer
46 * @protocol: pointer to the corresponding pnp_protocol structure
50 int pnp_register_protocol(struct pnp_protocol *protocol)
55 INIT_LIST_HEAD(&protocol->devices);
56 INIT_LIST_HEAD(&protocol->cards);
69 list_add_tail(&protocol->protocol_list, &pnp_protocols);
72 protocol->number = nodenum;
73 dev_set_name(&protocol->dev, "pnp%d", nodenum);
74 return device_register(&protocol->dev);
78 * pnp_protocol_unregister - removes a pnp protocol from the pnp layer
79 * @protocol: pointer to the corresponding pnp_protocol structure
81 void pnp_unregister_protocol(struct pnp_protocol *protocol)
84 list_del(&protocol->protocol_list);
86 device_unregister(&protocol->dev);
127 struct pnp_dev *pnp_alloc_dev(struct pnp_protocol *protocol, int id, char *pnpid)
138 dev->protocol = protocol;
142 dev->dev.parent = &dev->protocol->dev;
148 dev_set_name(&dev->dev, "%02x:%02x", dev->protocol->number, dev->number);
165 list_add_tail(&dev->protocol_list, &dev->protocol->devices);
167 if (dev->protocol->can_wakeup)
169 dev->protocol->can_wakeup(dev));
198 dev->protocol->name, buf, dev->active ? "active" : "disabled");