Lines Matching refs:retval

290 	int retval = 0;  in shpc_wait_cmd()  local
300 retval = -EIO; in shpc_wait_cmd()
303 retval = -EINTR; in shpc_wait_cmd()
307 return retval; in shpc_wait_cmd()
314 int retval = 0; in shpc_write_cmd() local
322 retval = -EBUSY; in shpc_write_cmd()
338 retval = shpc_wait_cmd(slot->ctrl); in shpc_write_cmd()
339 if (retval) in shpc_write_cmd()
346 retval = -EIO; in shpc_write_cmd()
350 return retval; in shpc_write_cmd()
355 int retval = 0; in hpc_check_cmd_status() local
360 retval = 0; in hpc_check_cmd_status()
363 retval = SWITCH_OPEN; in hpc_check_cmd_status()
367 retval = INVALID_CMD; in hpc_check_cmd_status()
371 retval = INVALID_SPEED_MODE; in hpc_check_cmd_status()
375 retval = cmd_status; in hpc_check_cmd_status()
378 return retval; in hpc_check_cmd_status()
463 int retval = 0; in hpc_get_adapter_speed() local
469 retval = hpc_get_prog_int(slot, &pi); in hpc_get_adapter_speed()
470 if (retval) in hpc_get_adapter_speed()
471 return retval; in hpc_get_adapter_speed()
506 retval = -ENODEV; in hpc_get_adapter_speed()
511 return retval; in hpc_get_adapter_speed()
516 int retval = 0; in hpc_get_mode1_ECC_cap() local
524 retval = -1; in hpc_get_mode1_ECC_cap()
528 return retval; in hpc_get_mode1_ECC_cap()
619 int retval; in hpc_power_on_slot() local
621 retval = shpc_write_cmd(slot, slot->hp_slot, SET_SLOT_PWR); in hpc_power_on_slot()
622 if (retval) in hpc_power_on_slot()
625 return retval; in hpc_power_on_slot()
630 int retval; in hpc_slot_enable() local
633 retval = shpc_write_cmd(slot, slot->hp_slot, in hpc_slot_enable()
635 if (retval) in hpc_slot_enable()
638 return retval; in hpc_slot_enable()
643 int retval; in hpc_slot_disable() local
646 retval = shpc_write_cmd(slot, slot->hp_slot, in hpc_slot_disable()
648 if (retval) in hpc_slot_disable()
651 return retval; in hpc_slot_disable()
656 int retval = 0; in shpc_get_cur_bus_speed() local
664 retval = -ENODEV; in shpc_get_cur_bus_speed()
712 retval = -ENODEV; in shpc_get_cur_bus_speed()
719 return retval; in shpc_get_cur_bus_speed()
725 int retval; in hpc_set_bus_speed_mode() local
780 retval = shpc_write_cmd(slot, 0, cmd); in hpc_set_bus_speed_mode()
781 if (retval) in hpc_set_bus_speed_mode()
786 return retval; in hpc_set_bus_speed_mode()
870 int retval = 0; in shpc_get_max_bus_speed() local
904 retval = -ENODEV; in shpc_get_max_bus_speed()
910 return retval; in shpc_get_max_bus_speed()