Lines Matching refs:bs
10 void *svcmgr_lookup(struct binder_state *bs, void *target, const char *name) in svcmgr_lookup() argument
21 if (binder_call(bs, &msg, &reply, target, SVC_MGR_CHECK_SERVICE)) in svcmgr_lookup()
27 binder_acquire(bs, ptr); in svcmgr_lookup()
29 binder_done(bs, &msg, &reply); in svcmgr_lookup()
34 int svcmgr_publish(struct binder_state *bs, void *target, const char *name, void *ptr) in svcmgr_publish() argument
46 if (binder_call(bs, &msg, &reply, target, SVC_MGR_ADD_SERVICE)) in svcmgr_publish()
51 binder_done(bs, &msg, &reply); in svcmgr_publish()
61 struct binder_state *bs; in main() local
64 bs = binder_open(128*1024); in main()
70 void *ptr = svcmgr_lookup(bs, svcmgr, "alt_svc_mgr"); in main()
83 ptr = svcmgr_lookup(bs, svcmgr, argv[1]); in main()
92 svcmgr_publish(bs, svcmgr, argv[1], &token); in main()