• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/net/bluetooth/

Lines Matching defs:conn

33 	struct hci_conn *conn = dev_get_drvdata(dev);
34 return sprintf(buf, "%s\n", link_typetostr(conn->type));
39 struct hci_conn *conn = dev_get_drvdata(dev);
41 baswap(&bdaddr, &conn->dst);
47 struct hci_conn *conn = dev_get_drvdata(dev);
50 conn->features[0], conn->features[1],
51 conn->features[2], conn->features[3],
52 conn->features[4], conn->features[5],
53 conn->features[6], conn->features[7]);
93 struct hci_conn *conn = container_of(work, struct hci_conn, work_add);
94 struct hci_dev *hdev = conn->hdev;
96 dev_set_name(&conn->dev, "%s:%d", hdev->name, conn->handle);
98 dev_set_drvdata(&conn->dev, conn);
100 if (device_add(&conn->dev) < 0) {
109 * The rfcomm tty device will possibly retain even when conn
111 * so we should move the device before conn device is destroyed.
120 struct hci_conn *conn = container_of(work, struct hci_conn, work_del);
121 struct hci_dev *hdev = conn->hdev;
123 if (!device_is_registered(&conn->dev))
129 dev = device_find_child(&conn->dev, NULL, __match_tty);
136 device_del(&conn->dev);
137 put_device(&conn->dev);
142 void hci_conn_init_sysfs(struct hci_conn *conn)
144 struct hci_dev *hdev = conn->hdev;
146 BT_DBG("conn %p", conn);
148 conn->dev.type = &bt_link;
149 conn->dev.class = bt_class;
150 conn->dev.parent = &hdev->dev;
152 device_initialize(&conn->dev);
154 INIT_WORK(&conn->work_add, add_conn);
155 INIT_WORK(&conn->work_del, del_conn);
158 void hci_conn_add_sysfs(struct hci_conn *conn)
160 BT_DBG("conn %p", conn);
162 queue_work(conn->hdev->workqueue, &conn->work_add);
165 void hci_conn_del_sysfs(struct hci_conn *conn)
167 BT_DBG("conn %p", conn);
169 queue_work(conn->hdev->workqueue, &conn->work_del);