Lines Matching defs:si
153 struct svcinfo *si;
155 for (si = svclist; si; si = si->next) {
156 if ((len == si->len) &&
157 !memcmp(s16, si->name, len * sizeof(uint16_t))) {
158 return si;
166 struct svcinfo *si = (struct svcinfo* ) ptr;
168 ALOGI("service '%s' died\n", str8(si->name, si->len));
169 if (si->handle) {
170 binder_release(bs, si->handle);
171 si->handle = 0;
183 struct svcinfo *si = find_svc(s, len);
185 if (!si || !si->handle) {
189 if (!si->allow_isolated) {
202 return si->handle;
210 struct svcinfo *si;
224 si = find_svc(s, len);
225 if (si) {
226 if (si->handle) {
229 svcinfo_death(bs, si);
231 si->handle = handle;
233 si = malloc(sizeof(*si) + (len + 1) * sizeof(uint16_t));
234 if (!si) {
239 si->handle = handle;
240 si->len = len;
241 memcpy(si->name, s, (len + 1) * sizeof(uint16_t));
242 si->name[len] = '\0';
243 si->death.func = (void*) svcinfo_death;
244 si->death.ptr = si;
245 si->allow_isolated = allow_isolated;
246 si->next = svclist;
247 svclist = si;
251 binder_link_to_death(bs, handle, &si->death);
260 struct svcinfo *si;
333 si = svclist;
334 while ((n-- > 0) && si)
335 si = si->next;
336 if (si) {
337 bio_put_string16(reply, si->name);