Lines Matching defs:dev
13 static void bt_link_release(struct device *dev)
15 struct hci_conn *conn = to_hci_conn(dev);
29 static int __match_tty(struct device *dev, void *data)
31 return !strncmp(dev_name(dev), "rfcomm", 6);
40 conn->dev.type = &bt_link;
41 conn->dev.class = &bt_class;
42 conn->dev.parent = &hdev->dev;
44 device_initialize(&conn->dev);
53 if (device_is_registered(&conn->dev))
56 dev_set_name(&conn->dev, "%s:%d", hdev->name, conn->handle);
58 if (device_add(&conn->dev) < 0)
68 if (!device_is_registered(&conn->dev)) {
72 put_device(&conn->dev);
77 struct device *dev;
79 dev = device_find_child(&conn->dev, NULL, __match_tty);
80 if (!dev)
82 device_move(dev, NULL, DPM_ORDER_DEV_LAST);
83 put_device(dev);
86 device_unregister(&conn->dev);
89 static void bt_host_release(struct device *dev)
91 struct hci_dev *hdev = to_hci_dev(dev);
107 struct device *dev = &hdev->dev;
109 dev->type = &bt_host;
110 dev->class = &bt_class;
113 device_initialize(dev);