Lines Matching refs:avail
66 int index, avail = -1, i = 0, j = 0; in portfolio_create() local
78 if (avail < 0 && !inst[index].obj) { in portfolio_create()
79 avail = index; in portfolio_create()
83 if (avail < 0) { in portfolio_create()
88 (void)memset(res[avail], 0, sizeof(res[avail][0]) * ARRAY_SIZE(res[avail])); in portfolio_create()
89 (void)memset(identity[avail], 0, DEFAULT_IDENTITY_BUFFER_LENGTH); in portfolio_create()
91 init_res_instance(res_inst[avail], ARRAY_SIZE(res_inst[avail])); in portfolio_create()
94 INIT_OBJ_RES_MULTI_DATA_LEN(PORTFOLIO_IDENTITY_ID, res[avail], i, res_inst[avail], j, in portfolio_create()
95 PORTFOLIO_IDENTITY_MAX, false, identity[avail], in portfolio_create()
97 INIT_OBJ_RES_EXECUTE(PORTFOLIO_GET_AUTH_DATA_ID, res[avail], i, NULL); in portfolio_create()
98 INIT_OBJ_RES_MULTI_OPTDATA(PORTFOLIO_AUTH_DATA_ID, res[avail], i, res_inst[avail], j, in portfolio_create()
100 INIT_OBJ_RES_OPTDATA(PORTFOLIO_AUTH_STATUS_ID, res[avail], i, res_inst[avail], j); in portfolio_create()
102 inst[avail].resources = res[avail]; in portfolio_create()
103 inst[avail].resource_count = i; in portfolio_create()
107 return &inst[avail]; in portfolio_create()