Lines Matching refs:chan
41 handle_t chan; member
83 close(ctx->chan); in hwrng_close_chan()
116 int rc = tipc_send_single_buf(ctx->chan, rng_data, len); in hwrng_handle_req_queue()
159 rc = tipc_recv_single_buf(ctx->chan, &req, sizeof(req)); in hwrng_chan_handle_msg()
161 TLOGE("failed (%d) to receive msg for chan %d\n", rc, ctx->chan); in hwrng_chan_handle_msg()
185 assert(ev->handle == ctx->chan); in hwrng_chan_handler()
217 handle_t chan; in hwrng_port_handler() local
225 chan = (handle_t)rc; in hwrng_port_handler()
230 TLOGE("failed to alloc state for chan %d\n", chan); in hwrng_port_handler()
231 close(chan); in hwrng_port_handler()
238 ctx->chan = chan; in hwrng_port_handler()
241 rc = set_cookie(chan, &ctx->evt_handler); in hwrng_port_handler()
243 TLOGE("failed (%d) to set_cookie on chan %d\n", rc, chan); in hwrng_port_handler()
245 close(chan); in hwrng_port_handler()