Lines Matching refs:conn
15 struct hci_conn *conn = to_hci_conn(dev);
16 kfree(conn);
25 * The rfcomm tty device will possibly retain even when conn
27 * so we should move the device before conn device is destroyed.
34 void hci_conn_init_sysfs(struct hci_conn *conn)
36 struct hci_dev *hdev = conn->hdev;
38 bt_dev_dbg(hdev, "conn %p", conn);
40 conn->dev.type = &bt_link;
41 conn->dev.class = &bt_class;
42 conn->dev.parent = &hdev->dev;
44 device_initialize(&conn->dev);
47 void hci_conn_add_sysfs(struct hci_conn *conn)
49 struct hci_dev *hdev = conn->hdev;
51 bt_dev_dbg(hdev, "conn %p", conn);
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)
62 void hci_conn_del_sysfs(struct hci_conn *conn)
64 struct hci_dev *hdev = conn->hdev;
66 bt_dev_dbg(hdev, "conn %p", conn);
68 if (!device_is_registered(&conn->dev)) {
72 put_device(&conn->dev);
79 dev = device_find_child(&conn->dev, NULL, __match_tty);
86 device_unregister(&conn->dev);