Lines Matching refs:ptr
91 void *ptr;
112 void svcinfo_death(struct binder_state *bs, void *ptr)
114 struct svcinfo *si = ptr;
116 if (si->ptr) {
117 binder_release(bs, si->ptr);
118 si->ptr = 0;
133 // LOGI("check_service('%s') ptr = %p\n", str8(s), si ? si->ptr : 0);
134 if (si && si->ptr) {
135 return si->ptr;
143 void *ptr, unsigned uid)
146 // LOGI("add_service('%s',%p) uid=%d\n", str8(s), ptr, uid);
148 if (!ptr || (len == 0) || (len > 127))
153 str8(s), ptr, uid);
159 if (si->ptr) {
161 str8(s), ptr, uid);
164 si->ptr = ptr;
169 str8(s), ptr, uid);
172 si->ptr = ptr;
177 si->death.ptr = si;
182 binder_acquire(bs, ptr);
183 binder_link_to_death(bs, ptr, &si->death);
195 void *ptr;
215 ptr = do_find_service(bs, s, len);
216 if (!ptr)
218 bio_put_ref(reply, ptr);
223 ptr = bio_get_ref(msg);
224 if (do_add_service(bs, s, len, ptr, txn->sender_euid))