• 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 refs:hdev

94 	struct hci_dev *hdev = conn->hdev;
96 dev_set_name(&conn->dev, "%s:%d", hdev->name, conn->handle);
105 hci_dev_hold(hdev);
121 struct hci_dev *hdev = conn->hdev;
139 hci_dev_put(hdev);
144 struct hci_dev *hdev = conn->hdev;
150 conn->dev.parent = &hdev->dev;
162 queue_work(conn->hdev->workqueue, &conn->work_add);
169 queue_work(conn->hdev->workqueue, &conn->work_del);
208 struct hci_dev *hdev = dev_get_drvdata(dev);
209 return sprintf(buf, "%s\n", host_bustostr(hdev->bus));
214 struct hci_dev *hdev = dev_get_drvdata(dev);
215 return sprintf(buf, "%s\n", host_typetostr(hdev->dev_type));
220 struct hci_dev *hdev = dev_get_drvdata(dev);
225 name[i] = hdev->dev_name[i];
233 struct hci_dev *hdev = dev_get_drvdata(dev);
235 hdev->dev_class[2], hdev->dev_class[1], hdev->dev_class[0]);
240 struct hci_dev *hdev = dev_get_drvdata(dev);
242 baswap(&bdaddr, &hdev->bdaddr);
248 struct hci_dev *hdev = dev_get_drvdata(dev);
251 hdev->features[0], hdev->features[1],
252 hdev->features[2], hdev->features[3],
253 hdev->features[4], hdev->features[5],
254 hdev->features[6], hdev->features[7]);
259 struct hci_dev *hdev = dev_get_drvdata(dev);
260 return sprintf(buf, "%d\n", hdev->manufacturer);
265 struct hci_dev *hdev = dev_get_drvdata(dev);
266 return sprintf(buf, "%d\n", hdev->hci_ver);
271 struct hci_dev *hdev = dev_get_drvdata(dev);
272 return sprintf(buf, "%d\n", hdev->hci_rev);
277 struct hci_dev *hdev = dev_get_drvdata(dev);
278 return sprintf(buf, "%d\n", hdev->idle_timeout);
283 struct hci_dev *hdev = dev_get_drvdata(dev);
292 hdev->idle_timeout = val;
299 struct hci_dev *hdev = dev_get_drvdata(dev);
300 return sprintf(buf, "%d\n", hdev->sniff_max_interval);
305 struct hci_dev *hdev = dev_get_drvdata(dev);
314 if (val < hdev->sniff_min_interval)
317 hdev->sniff_max_interval = val;
324 struct hci_dev *hdev = dev_get_drvdata(dev);
325 return sprintf(buf, "%d\n", hdev->sniff_min_interval);
330 struct hci_dev *hdev = dev_get_drvdata(dev);
339 if (val > hdev->sniff_max_interval)
342 hdev->sniff_min_interval = val;
403 struct hci_dev *hdev = f->private;
404 struct inquiry_cache *cache = &hdev->inq_cache;
407 hci_dev_lock_bh(hdev);
422 hci_dev_unlock_bh(hdev);
441 struct hci_dev *hdev = f->private;
444 hci_dev_lock_bh(hdev);
446 list_for_each(l, &hdev->blacklist) {
457 hci_dev_unlock_bh(hdev);
473 int hci_register_sysfs(struct hci_dev *hdev)
475 struct device *dev = &hdev->dev;
478 BT_DBG("%p name %s bus %d", hdev, hdev->name, hdev->bus);
482 dev->parent = hdev->parent;
484 dev_set_name(dev, "%s", hdev->name);
486 dev_set_drvdata(dev, hdev);
495 hdev->debugfs = debugfs_create_dir(hdev->name, bt_debugfs);
496 if (!hdev->debugfs)
499 debugfs_create_file("inquiry_cache", 0444, hdev->debugfs,
500 hdev, &inquiry_cache_fops);
502 debugfs_create_file("blacklist", 0444, hdev->debugfs,
503 hdev, &blacklist_fops);
508 void hci_unregister_sysfs(struct hci_dev *hdev)
510 BT_DBG("%p name %s bus %d", hdev, hdev->name, hdev->bus);
512 debugfs_remove_recursive(hdev->debugfs);
514 device_del(&hdev->dev);