Lines Matching refs:result
56 struct comm_str *result; in comm_str__get() local
58 if (RC_CHK_GET(result, cs)) in comm_str__get()
61 return result; in comm_str__get()
81 struct comm_str *result = NULL; in comm_str__new() local
85 if (ADD_RC_CHK(result, cs)) { in comm_str__new()
86 refcount_set(comm_str__refcnt(result), 1); in comm_str__new()
89 return result; in comm_str__new()
125 struct comm_str **result; in __comm_strs__find() local
127 result = bsearch(str, comm_strs->strs, comm_strs->num_strs, sizeof(struct comm_str *), in __comm_strs__find()
130 if (!result) in __comm_strs__find()
133 return comm_str__get(*result); in __comm_strs__find()
139 struct comm_str *result; in comm_strs__findnew() local
145 result = __comm_strs__find(comm_strs, str); in comm_strs__findnew()
147 if (result) in comm_strs__findnew()
148 return result; in comm_strs__findnew()
151 result = __comm_strs__find(comm_strs, str); in comm_strs__findnew()
152 if (!result) { in comm_strs__findnew()
166 result = comm_str__new(str); in comm_strs__findnew()
167 if (result) { in comm_strs__findnew()
185 comm_strs->strs[insert] = result; in comm_strs__findnew()
189 return comm_str__get(result); in comm_strs__findnew()