• Home
  • Raw
  • Download

Lines Matching refs:conn

34 	struct hci_conn *conn = to_hci_conn(dev);  in show_link_type()  local
35 return sprintf(buf, "%s\n", link_typetostr(conn->type)); in show_link_type()
41 struct hci_conn *conn = to_hci_conn(dev); in show_link_address() local
42 return sprintf(buf, "%pMR\n", &conn->dst); in show_link_address()
48 struct hci_conn *conn = to_hci_conn(dev); in show_link_features() local
51 conn->features[0][0], conn->features[0][1], in show_link_features()
52 conn->features[0][2], conn->features[0][3], in show_link_features()
53 conn->features[0][4], conn->features[0][5], in show_link_features()
54 conn->features[0][6], conn->features[0][7]); in show_link_features()
82 struct hci_conn *conn = to_hci_conn(dev); in bt_link_release() local
83 kfree(conn); in bt_link_release()
102 void hci_conn_init_sysfs(struct hci_conn *conn) in hci_conn_init_sysfs() argument
104 struct hci_dev *hdev = conn->hdev; in hci_conn_init_sysfs()
106 BT_DBG("conn %p", conn); in hci_conn_init_sysfs()
108 conn->dev.type = &bt_link; in hci_conn_init_sysfs()
109 conn->dev.class = bt_class; in hci_conn_init_sysfs()
110 conn->dev.parent = &hdev->dev; in hci_conn_init_sysfs()
112 device_initialize(&conn->dev); in hci_conn_init_sysfs()
115 void hci_conn_add_sysfs(struct hci_conn *conn) in hci_conn_add_sysfs() argument
117 struct hci_dev *hdev = conn->hdev; in hci_conn_add_sysfs()
119 BT_DBG("conn %p", conn); in hci_conn_add_sysfs()
121 dev_set_name(&conn->dev, "%s:%d", hdev->name, conn->handle); in hci_conn_add_sysfs()
123 if (device_add(&conn->dev) < 0) { in hci_conn_add_sysfs()
131 void hci_conn_del_sysfs(struct hci_conn *conn) in hci_conn_del_sysfs() argument
133 struct hci_dev *hdev = conn->hdev; in hci_conn_del_sysfs()
135 if (!device_is_registered(&conn->dev)) in hci_conn_del_sysfs()
141 dev = device_find_child(&conn->dev, NULL, __match_tty); in hci_conn_del_sysfs()
148 device_del(&conn->dev); in hci_conn_del_sysfs()