Lines Matching refs:chan
89 static int lender_lend(handle_t chan, enum lender_command cmd) { in lender_lend() argument
115 return send_msg(chan, &msg); in lender_lend()
131 static int lender_read_bss(handle_t chan, struct lender_region* region) { in lender_read_bss() argument
136 int rc = tipc_send1(chan, &bss_page[region->offset], region->size); in lender_read_bss()
144 static int lender_write_bss(handle_t chan, in lender_write_bss() argument
153 return tipc_send1(chan, NULL, 0); in lender_write_bss()
157 handle_t chan, in lender_on_message() argument
164 int rc = tipc_recv2(chan, sizeof(msg), &msg, sizeof(msg), data, in lender_on_message()
174 rc = lender_lend(chan, msg.cmd); in lender_on_message()
183 rc = lender_read_bss(chan, &msg.region); in lender_on_message()
192 rc = lender_write_bss(chan, &msg.region, data); in lender_on_message()