• Home
  • Raw
  • Download

Lines Matching refs:btio

62 	struct bt_io *btio = (struct bt_io *)bt_iodev;  in add_profile_dev()  local
69 n->base.idx = btio->next_node_id++; in add_profile_dev()
110 static void bt_possibly_switch_to_a2dp(struct bt_io *btio) in bt_possibly_switch_to_a2dp() argument
112 if (!cras_bt_device_has_a2dp(btio->device)) in bt_possibly_switch_to_a2dp()
114 cras_bt_device_set_active_profile(btio->device, in bt_possibly_switch_to_a2dp()
116 cras_bt_device_switch_profile(btio->device, &btio->base); in bt_possibly_switch_to_a2dp()
137 struct bt_io *btio = (struct bt_io *)iodev; in open_dev() local
142 if (device_using_profile(btio->device, in open_dev()
145 bt_switch_to_profile(btio->device, in open_dev()
147 cras_bt_device_switch_profile_enable_dev(btio->device, iodev); in open_dev()
158 bt_possibly_switch_to_a2dp(btio); in open_dev()
241 struct bt_io *btio = (struct bt_io *)iodev; in close_dev() local
251 btio->device, in close_dev()
255 bt_possibly_switch_to_a2dp(btio); in close_dev()
330 struct bt_io *btio = (struct bt_io *)iodev; in update_active_node() local
336 if (device_using_profile(btio->device, active->profile)) in update_active_node()
345 if (device_using_profile(btio->device, n->profile)) { in update_active_node()
475 struct bt_io *btio; in cras_bt_io_create() local
483 btio = (struct bt_io *)calloc(1, sizeof(*btio)); in cras_bt_io_create()
484 if (!btio) in cras_bt_io_create()
486 btio->device = device; in cras_bt_io_create()
488 iodev = &btio->base; in cras_bt_io_create()
527 active->base.idx = btio->next_node_id++; in cras_bt_io_create()
551 node = add_profile_dev(&btio->base, dev, profile); in cras_bt_io_create()
569 return &btio->base; in cras_bt_io_create()
572 if (btio) in cras_bt_io_create()
573 free(btio); in cras_bt_io_create()
598 struct bt_io *btio = (struct bt_io *)bt_iodev; in cras_bt_io_destroy() local
608 free(btio); in cras_bt_io_destroy()
627 struct bt_io *btio = (struct bt_io *)bt_iodev; in cras_bt_io_append() local
637 cras_bt_device_can_switch_to_a2dp(btio->device)) { in cras_bt_io_append()
638 bt_switch_to_profile(btio->device, in cras_bt_io_append()
640 cras_bt_device_switch_profile(btio->device, bt_iodev); in cras_bt_io_append()