• Home
  • Raw
  • Download

Lines Matching refs:active

49 	struct bt_node *active = (struct bt_node *)iodev->active_node;  in active_profile_dev()  local
51 return active->profile_dev; in active_profile_dev()
289 struct bt_node *active = (struct bt_node *)iodev->active_node; in update_active_node() local
291 if (device_using_profile(btio->device, active->profile)) in update_active_node()
297 if (n == active) in update_active_node()
301 active->profile = n->profile; in update_active_node()
302 active->profile_dev = n->profile_dev; in update_active_node()
318 struct bt_node *active; in cras_bt_io_create() local
349 active = (struct bt_node *)calloc(1, sizeof(*active)); in cras_bt_io_create()
350 if (!active) in cras_bt_io_create()
352 active->base.dev = iodev; in cras_bt_io_create()
353 active->base.idx = btio->next_node_id++; in cras_bt_io_create()
354 active->base.type = CRAS_NODE_TYPE_BLUETOOTH; in cras_bt_io_create()
355 active->base.volume = 100; in cras_bt_io_create()
356 active->base.plugged = 1; in cras_bt_io_create()
357 active->base.stable_id = SuperFastHash( in cras_bt_io_create()
361 active->base.stable_id_new = active->base.stable_id; in cras_bt_io_create()
362 active->profile = profile; in cras_bt_io_create()
363 active->profile_dev = dev; in cras_bt_io_create()
364 gettimeofday(&active->base.plugged_time, NULL); in cras_bt_io_create()
365 strcpy(active->base.name, dev->info.name); in cras_bt_io_create()
367 if (!is_utf8_string(active->base.name)) in cras_bt_io_create()
368 strcpy(active->base.name, DEFAULT_BT_DEVICE_NAME); in cras_bt_io_create()
369 cras_iodev_add_node(iodev, &active->base); in cras_bt_io_create()
388 cras_iodev_set_active_node(iodev, &active->base); in cras_bt_io_create()
476 struct bt_node *active, *btnode; in cras_bt_io_try_remove() local
479 active = (struct bt_node *)bt_iodev->active_node; in cras_bt_io_try_remove()
481 if (active->profile_dev == dev) { in cras_bt_io_try_remove()
486 if (btnode == active || btnode->profile_dev == dev) in cras_bt_io_try_remove()
492 try_profile = active->profile; in cras_bt_io_try_remove()