Lines Matching refs:ret

109     int ret;  in get_path()  local
111 ret = fdt_get_path(fdt, offset, buf, len - 1); in get_path()
112 if (ret < 0) { in get_path()
113 return ret; in get_path()
123 int ret; in phandle_to_path() local
125 ret = fdt_node_offset_by_phandle(fdt, ph); in phandle_to_path()
126 if (ret < 0) { in phandle_to_path()
127 return ret; in phandle_to_path()
130 return get_path(fdt, ret, buf, len); in phandle_to_path()
161 uint32_t ret = PROM_ERROR; in vof_finddevice() local
165 return (uint32_t) ret; in vof_finddevice()
170 ret = fdt_get_phandle(fdt, offset); in vof_finddevice()
172 trace_vof_finddevice(fullnode, ret); in vof_finddevice()
173 return ret; in vof_finddevice()
180 const void *ret = fdt_getprop(fdt, nodeoff, propname, proplen); in getprop() local
182 if (ret) { in getprop()
186 return ret; in getprop()
222 uint32_t ret = 0; in vof_getprop() local
245 ret = PROM_ERROR; in vof_getprop()
252 ret = proplen; in vof_getprop()
256 prop_format(trval, sizeof(trval), prop, ret); in vof_getprop()
260 ret = PROM_ERROR; in vof_getprop()
262 trace_vof_getprop(nodeph, propname, ret, trval); in vof_getprop()
264 return ret; in vof_getprop()
270 uint32_t ret = 0; in vof_getproplen() local
283 ret = proplen; in vof_getproplen()
285 ret = PROM_ERROR; in vof_getproplen()
287 trace_vof_getproplen(nodeph, propname, ret); in vof_getproplen()
289 return ret; in vof_getproplen()
297 uint32_t ret = PROM_ERROR; in vof_setprop() local
343 ret = vallen; in vof_setprop()
346 trace_vof_setprop(nodeph, propname, trval, vallen, ret); in vof_setprop()
348 return ret; in vof_setprop()
389 uint32_t ret = 0; in vof_peer() local
399 ret = fdt_get_phandle(fdt, rc); in vof_peer()
402 return ret; in vof_peer()
407 uint32_t ret = 0; in vof_child() local
411 ret = fdt_get_phandle(fdt, rc); in vof_child()
414 return ret; in vof_child()
419 uint32_t ret = 0; in vof_parent() local
423 ret = fdt_get_phandle(fdt, rc); in vof_parent()
426 return ret; in vof_parent()
431 uint32_t ret = PROM_ERROR; in vof_do_open() local
448 ret = vof->of_instance_last; in vof_do_open()
451 trace_vof_open(path, inst ? inst->phandle : 0, ret); in vof_do_open()
453 return ret; in vof_do_open()
502 uint32_t ret = PROM_ERROR; in vof_instance_to_package() local
505 ret = ((OfInstance *)instp)->phandle; in vof_instance_to_package()
507 trace_vof_instance_to_package(ihandle, ret); in vof_instance_to_package()
509 return ret; in vof_instance_to_package()
709 uint64_t ret; in vof_claim() local
712 ret = -1; in vof_claim()
715 ret = -1; in vof_claim()
717 ret = virt; in vof_claim()
731 ret = vof->claimed_base; in vof_claim()
734 if (ret != -1) { in vof_claim()
735 vof->claimed_base = MAX(vof->claimed_base, ret + size); in vof_claim()
736 vof_claim_add(vof->claimed, ret, size); in vof_claim()
738 trace_vof_claim(virt, size, align, ret); in vof_claim()
740 return ret; in vof_claim()
745 uint32_t ret = PROM_ERROR; in vof_release() local
754 ret = 0; in vof_release()
759 trace_vof_release(virt, size, ret); in vof_release()
761 return ret; in vof_release()
774 uint32_t ret = PROM_ERROR; in vof_call_method() local
800 ret = (uint32_t)vmc->client_architecture_support(ms, first_cpu, in vof_call_method()
809 ret = 0; in vof_call_method()
817 trace_vof_method(ihandle, method, param1, ret, *ret2); in vof_call_method()
819 return ret; in vof_call_method()
825 uint32_t ret = PROM_ERROR; in vof_call_interpret() local
830 trace_vof_interpret(cmd, param1, param2, ret, *ret2); in vof_call_interpret()
832 return ret; in vof_call_interpret()
859 uint32_t ret = 0; in vof_client_handle() local
866 ret = vof_finddevice(fdt, args[0]); in vof_client_handle()
868 ret = vof_getprop(fdt, args[0], args[1], args[2], args[3]); in vof_client_handle()
870 ret = vof_getproplen(fdt, args[0], args[1]); in vof_client_handle()
872 ret = vof_setprop(ms, fdt, vof, args[0], args[1], args[2], args[3]); in vof_client_handle()
874 ret = vof_nextprop(fdt, args[0], args[1], args[2]); in vof_client_handle()
876 ret = vof_peer(fdt, args[0]); in vof_client_handle()
878 ret = vof_child(fdt, args[0]); in vof_client_handle()
880 ret = vof_parent(fdt, args[0]); in vof_client_handle()
882 ret = vof_open(fdt, vof, args[0]); in vof_client_handle()
886 ret = vof_instance_to_package(vof, args[0]); in vof_client_handle()
888 ret = vof_package_to_path(fdt, args[0], args[1], args[2]); in vof_client_handle()
890 ret = vof_instance_to_path(fdt, vof, args[0], args[1], args[2]); in vof_client_handle()
892 ret = vof_write(vof, args[0], args[1], args[2]); in vof_client_handle()
898 ret = (uint32_t)ret64; in vof_client_handle()
901 vof_release(vof, ret, args[1]); in vof_client_handle()
903 ret = PROM_ERROR; in vof_client_handle()
906 ret = vof_release(vof, args[0], args[1]); in vof_client_handle()
907 if (ret != PROM_ERROR) { in vof_client_handle()
911 ret = vof_call_method(ms, vof, args[0], args[1], args[2], args[3], in vof_client_handle()
914 ret = vof_call_interpret(args[0], args[1], args[2], rets); in vof_client_handle()
916 ret = qemu_clock_get_ms(QEMU_CLOCK_VIRTUAL); in vof_client_handle()
924 ret = -1; in vof_client_handle()
929 return ret; in vof_client_handle()
945 uint32_t rets[ARRAY_SIZE(args_be.args)] = { 0 }, ret; in vof_client_call() local
974 ret = vof_client_handle(ms, fdt, vof, service, args, nargs, rets, nret); in vof_client_call()
980 args_be.args[nargs] = cpu_to_be32(ret); in vof_client_call()