Lines Matching defs:si
105 struct svcinfo *si;
107 for (si = svclist; si; si = si->next) {
108 if ((len == si->len) &&
109 !memcmp(s16, si->name, len * sizeof(uint16_t))) {
110 return si;
118 struct svcinfo *si = ptr;
119 ALOGI("service '%s' died\n", str8(si->name));
120 if (si->ptr) {
121 binder_release(bs, si->ptr);
122 si->ptr = 0;
134 struct svcinfo *si;
135 si = find_svc(s, len);
137 // ALOGI("check_service('%s') ptr = %p\n", str8(s), si ? si->ptr : 0);
138 if (si && si->ptr) {
139 if (!si->allow_isolated) {
147 return si->ptr;
157 struct svcinfo *si;
170 si = find_svc(s, len);
171 if (si) {
172 if (si->ptr) {
175 svcinfo_death(bs, si);
177 si->ptr = ptr;
179 si = malloc(sizeof(*si) + (len + 1) * sizeof(uint16_t));
180 if (!si) {
185 si->ptr = ptr;
186 si->len = len;
187 memcpy(si->name, s, (len + 1) * sizeof(uint16_t));
188 si->name[len] = '\0';
189 si->death.func = svcinfo_death;
190 si->death.ptr = si;
191 si->allow_isolated = allow_isolated;
192 si->next = svclist;
193 svclist = si;
197 binder_link_to_death(bs, ptr, &si->death);
206 struct svcinfo *si;
252 si = svclist;
253 while ((n-- > 0) && si)
254 si = si->next;
255 if (si) {
256 bio_put_string16(reply, si->name);