Lines Matching refs:rpc
1196 struct rpc {
1325 struct rpc *rpc, *tmp;
1332 list_for_each_entry_safe(rpc, tmp, &calls, list) {
1333 rpc->result = rpc->fn0 ? rpc->fn0(era->md) : rpc->fn1(era->md, rpc->arg);
1340 list_for_each_entry_safe(rpc, tmp, &calls, list)
1341 rpc->result = r;
1344 list_for_each_entry_safe(rpc, tmp, &calls, list)
1345 complete(&rpc->complete);
1376 * Make an rpc call to the worker to change the metadata.
1378 static int perform_rpc(struct era *era, struct rpc *rpc)
1380 rpc->result = 0;
1381 init_completion(&rpc->complete);
1384 list_add(&rpc->list, &era->rpc_calls);
1388 wait_for_completion(&rpc->complete);
1390 return rpc->result;
1395 struct rpc rpc;
1397 rpc.fn0 = fn;
1398 rpc.fn1 = NULL;
1400 return perform_rpc(era, &rpc);
1406 struct rpc rpc;
1408 rpc.fn0 = NULL;
1409 rpc.fn1 = fn;
1410 rpc.arg = arg;
1412 return perform_rpc(era, &rpc);