Lines Matching refs:conn
29 struct hci_conn *conn = to_hci_conn(dev); in show_link_type() local
30 return sprintf(buf, "%s\n", link_typetostr(conn->type)); in show_link_type()
36 struct hci_conn *conn = to_hci_conn(dev); in show_link_address() local
37 return sprintf(buf, "%pMR\n", &conn->dst); in show_link_address()
56 struct hci_conn *conn = to_hci_conn(dev); in bt_link_release() local
57 kfree(conn); in bt_link_release()
76 void hci_conn_init_sysfs(struct hci_conn *conn) in hci_conn_init_sysfs() argument
78 struct hci_dev *hdev = conn->hdev; in hci_conn_init_sysfs()
80 BT_DBG("conn %p", conn); in hci_conn_init_sysfs()
82 conn->dev.type = &bt_link; in hci_conn_init_sysfs()
83 conn->dev.class = bt_class; in hci_conn_init_sysfs()
84 conn->dev.parent = &hdev->dev; in hci_conn_init_sysfs()
86 device_initialize(&conn->dev); in hci_conn_init_sysfs()
89 void hci_conn_add_sysfs(struct hci_conn *conn) in hci_conn_add_sysfs() argument
91 struct hci_dev *hdev = conn->hdev; in hci_conn_add_sysfs()
93 BT_DBG("conn %p", conn); in hci_conn_add_sysfs()
95 dev_set_name(&conn->dev, "%s:%d", hdev->name, conn->handle); in hci_conn_add_sysfs()
97 if (device_add(&conn->dev) < 0) { in hci_conn_add_sysfs()
105 void hci_conn_del_sysfs(struct hci_conn *conn) in hci_conn_del_sysfs() argument
107 struct hci_dev *hdev = conn->hdev; in hci_conn_del_sysfs()
109 if (!device_is_registered(&conn->dev)) in hci_conn_del_sysfs()
115 dev = device_find_child(&conn->dev, NULL, __match_tty); in hci_conn_del_sysfs()
122 device_del(&conn->dev); in hci_conn_del_sysfs()