Lines Matching refs:tpg_instances
35 static struct tpg_instance tpg_instances[TPG_INSTANCES]; variable
1330 if (tpg_instances[i].func_inst && !tpg_instances[i].tpg) in usbg_make_tpg()
1335 opts = container_of(tpg_instances[i].func_inst, struct f_tcm_opts, in usbg_make_tpg()
1373 tpg_instances[i].tpg = tpg; in usbg_make_tpg()
1374 tpg->fi = tpg_instances[i].func_inst; in usbg_make_tpg()
1411 if (tpg_instances[i].tpg == tpg) in usbg_drop_tpg()
1414 tpg_instances[i].tpg = NULL; in usbg_drop_tpg()
1415 opts = container_of(tpg_instances[i].func_inst, in usbg_drop_tpg()
2134 if (tpg_instances[i].func_inst == f) in tcm_free_inst()
2137 tpg_instances[i].func_inst = NULL; in tcm_free_inst()
2210 if (!tpg_instances[i].func_inst) in tcm_alloc_inst()
2218 tpg_instances[i].func_inst = &opts->func_inst; in tcm_alloc_inst()
2252 if (tpg_instances[i].func_inst == fi) in tcm_alloc()
2273 fu->tpg = tpg_instances[i].tpg; in tcm_alloc()