Lines Matching defs:conn
13 struct hci_conn *conn = to_hci_conn(dev);
14 kfree(conn);
23 * The rfcomm tty device will possibly retain even when conn
25 * so we should move the device before conn device is destroyed.
32 void hci_conn_init_sysfs(struct hci_conn *conn)
34 struct hci_dev *hdev = conn->hdev;
36 bt_dev_dbg(hdev, "conn %p", conn);
38 conn->dev.type = &bt_link;
39 conn->dev.class = bt_class;
40 conn->dev.parent = &hdev->dev;
42 device_initialize(&conn->dev);
45 void hci_conn_add_sysfs(struct hci_conn *conn)
47 struct hci_dev *hdev = conn->hdev;
49 bt_dev_dbg(hdev, "conn %p", conn);
51 if (device_is_registered(&conn->dev))
54 dev_set_name(&conn->dev, "%s:%d", hdev->name, conn->handle);
56 if (device_add(&conn->dev) < 0)
60 void hci_conn_del_sysfs(struct hci_conn *conn)
62 struct hci_dev *hdev = conn->hdev;
64 bt_dev_dbg(hdev, "conn %p", conn);
66 if (!device_is_registered(&conn->dev)) {
70 put_device(&conn->dev);
77 dev = device_find_child(&conn->dev, NULL, __match_tty);
84 device_unregister(&conn->dev);