Lines Matching defs:ctx
23 static uint32_t dev_get_prop(bpctx_t* ctx, uint32_t id) {
24 const zx_device_prop_t* props = ctx->props;
25 const zx_device_prop_t* end = ctx->end;
37 return ctx->protocol_id;
39 return ctx->autobind;
46 static bool is_bindable(bpctx_t* ctx) {
47 const zx_bind_inst_t* ip = ctx->binding;
48 const zx_bind_inst_t* end = ip + (ctx->binding_size / sizeof(zx_bind_inst_t));
60 pval = dev_get_prop(ctx, pid);
93 printf("devmgr: driver '%s' illegal bindinst 0x%08x\n", ctx->name, inst);
114 printf("devmgr: driver '%s' illegal GOTO\n", ctx->name);
128 printf("devmgr: driver '%s' illegal bindinst 0x%08x\n", ctx->name, inst);
147 bpctx_t ctx;
148 ctx.props = props;
149 ctx.end = props + prop_count;
150 ctx.protocol_id = protocol_id;
151 ctx.binding = drv->binding;
152 ctx.binding_size = drv->binding_size;
153 ctx.name = drv->name;
154 ctx.autobind = autobind ? 1 : 0;
155 return is_bindable(&ctx);