Lines Matching full:conn
13 struct hci_conn *conn = to_hci_conn(dev); in bt_link_release() local
14 kfree(conn); in bt_link_release()
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) in hci_conn_init_sysfs() argument
34 struct hci_dev *hdev = conn->hdev; in hci_conn_init_sysfs()
36 BT_DBG("conn %p", conn); in hci_conn_init_sysfs()
38 conn->dev.type = &bt_link; in hci_conn_init_sysfs()
39 conn->dev.class = bt_class; in hci_conn_init_sysfs()
40 conn->dev.parent = &hdev->dev; in hci_conn_init_sysfs()
42 device_initialize(&conn->dev); in hci_conn_init_sysfs()
45 void hci_conn_add_sysfs(struct hci_conn *conn) in hci_conn_add_sysfs() argument
47 struct hci_dev *hdev = conn->hdev; in hci_conn_add_sysfs()
49 BT_DBG("conn %p", conn); in hci_conn_add_sysfs()
51 if (device_is_registered(&conn->dev)) in hci_conn_add_sysfs()
54 dev_set_name(&conn->dev, "%s:%d", hdev->name, conn->handle); in hci_conn_add_sysfs()
56 if (device_add(&conn->dev) < 0) { in hci_conn_add_sysfs()
64 void hci_conn_del_sysfs(struct hci_conn *conn) in hci_conn_del_sysfs() argument
66 struct hci_dev *hdev = conn->hdev; in hci_conn_del_sysfs()
68 if (!device_is_registered(&conn->dev)) in hci_conn_del_sysfs()
74 dev = device_find_child(&conn->dev, NULL, __match_tty); in hci_conn_del_sysfs()
81 device_del(&conn->dev); in hci_conn_del_sysfs()