Lines Matching refs:active

50 	struct bt_node *active = (struct bt_node *)iodev->active_node;  in active_profile_dev()  local
52 return active->profile_dev; in active_profile_dev()
295 struct bt_node *active = (struct bt_node *)iodev->active_node; in update_active_node() local
297 if (device_using_profile(btio->device, active->profile)) in update_active_node()
303 if (n == active) in update_active_node()
307 active->profile = n->profile; in update_active_node()
308 active->profile_dev = n->profile_dev; in update_active_node()
324 struct bt_node *active; in cras_bt_io_create() local
365 active = (struct bt_node *)calloc(1, sizeof(*active)); in cras_bt_io_create()
366 if (!active) in cras_bt_io_create()
368 active->base.dev = iodev; in cras_bt_io_create()
369 active->base.idx = btio->next_node_id++; in cras_bt_io_create()
370 active->base.type = CRAS_NODE_TYPE_BLUETOOTH; in cras_bt_io_create()
371 active->base.volume = 100; in cras_bt_io_create()
372 active->base.plugged = 1; in cras_bt_io_create()
373 active->base.stable_id = SuperFastHash( in cras_bt_io_create()
377 active->base.stable_id_new = active->base.stable_id; in cras_bt_io_create()
378 active->profile = profile; in cras_bt_io_create()
379 active->profile_dev = dev; in cras_bt_io_create()
380 gettimeofday(&active->base.plugged_time, NULL); in cras_bt_io_create()
381 strcpy(active->base.name, dev->info.name); in cras_bt_io_create()
383 if (!is_utf8_string(active->base.name)) in cras_bt_io_create()
384 strcpy(active->base.name, DEFAULT_BT_DEVICE_NAME); in cras_bt_io_create()
385 cras_iodev_add_node(iodev, &active->base); in cras_bt_io_create()
404 cras_iodev_set_active_node(iodev, &active->base); in cras_bt_io_create()
504 struct bt_node *active, *btnode; in cras_bt_io_try_remove() local
507 active = (struct bt_node *)bt_iodev->active_node; in cras_bt_io_try_remove()
509 if (active->profile_dev == dev) { in cras_bt_io_try_remove()
514 if (btnode == active || btnode->profile_dev == dev) in cras_bt_io_try_remove()
520 try_profile = active->profile; in cras_bt_io_try_remove()