• Home
  • Raw
  • Download

Lines Matching refs:ret

370 	int ret;  in opal_recv_check()  local
382 ret = opal_recv_cmd(dev); in opal_recv_check()
383 } while (!ret); in opal_recv_check()
385 return ret; in opal_recv_check()
390 int ret; in opal_send_recv() local
392 ret = opal_send_cmd(dev); in opal_send_recv()
393 if (ret) in opal_send_recv()
394 return ret; in opal_send_recv()
395 ret = opal_recv_cmd(dev); in opal_send_recv()
396 if (ret) in opal_send_recv()
397 return ret; in opal_send_recv()
398 ret = opal_recv_check(dev); in opal_send_recv()
399 if (ret) in opal_send_recv()
400 return ret; in opal_send_recv()
552 int ret; in opal_discovery0() local
556 ret = opal_recv_cmd(dev); in opal_discovery0()
557 if (ret) in opal_discovery0()
558 return ret; in opal_discovery0()
1135 int ret; in finalize_and_send() local
1137 ret = cmd_finalize(dev, dev->hsn, dev->tsn); in finalize_and_send()
1138 if (ret) { in finalize_and_send()
1139 pr_debug("Error finalizing command buffer: %d\n", ret); in finalize_and_send()
1140 return ret; in finalize_and_send()
1495 int ret; in start_SIDASP_opal_session() local
1501 ret = start_generic_opal_session(dev, OPAL_SID_UID, in start_SIDASP_opal_session()
1506 ret = start_generic_opal_session(dev, OPAL_SID_UID, in start_SIDASP_opal_session()
1513 return ret; in start_SIDASP_opal_session()
1889 int ret; in lock_unlock_locking_range_sum() local
1914 ret = generic_lr_enable_disable(dev, lr_buffer, 1, 1, in lock_unlock_locking_range_sum()
1917 if (ret < 0) { in lock_unlock_locking_range_sum()
1919 return ret; in lock_unlock_locking_range_sum()
2147 int ret; in check_opal_support() local
2151 ret = opal_discovery0_step(dev); in check_opal_support()
2152 if (!ret) in check_opal_support()
2156 return ret; in check_opal_support()
2238 int ret; in opal_secure_erase_locking_range() local
2242 ret = execute_steps(dev, erase_steps, ARRAY_SIZE(erase_steps)); in opal_secure_erase_locking_range()
2245 return ret; in opal_secure_erase_locking_range()
2256 int ret; in opal_erase_locking_range() local
2260 ret = execute_steps(dev, erase_steps, ARRAY_SIZE(erase_steps)); in opal_erase_locking_range()
2263 return ret; in opal_erase_locking_range()
2280 int ret; in opal_enable_disable_shadow_mbr() local
2288 ret = execute_steps(dev, mbr_steps, ARRAY_SIZE(mbr_steps)); in opal_enable_disable_shadow_mbr()
2291 return ret; in opal_enable_disable_shadow_mbr()
2305 int ret; in opal_set_mbr_done() local
2313 ret = execute_steps(dev, mbr_steps, ARRAY_SIZE(mbr_steps)); in opal_set_mbr_done()
2316 return ret; in opal_set_mbr_done()
2327 int ret; in opal_write_shadow_mbr() local
2334 ret = execute_steps(dev, mbr_steps, ARRAY_SIZE(mbr_steps)); in opal_write_shadow_mbr()
2337 return ret; in opal_write_shadow_mbr()
2367 int ret; in opal_add_user_to_lr() local
2390 ret = execute_steps(dev, steps, ARRAY_SIZE(steps)); in opal_add_user_to_lr()
2393 return ret; in opal_add_user_to_lr()
2408 int ret; in opal_reverttper() local
2413 ret = execute_steps(dev, psid_revert_steps, in opal_reverttper()
2416 ret = execute_steps(dev, revert_steps, in opal_reverttper()
2424 if (!ret) in opal_reverttper()
2427 return ret; in opal_reverttper()
2467 int ret; in opal_lock_unlock() local
2473 ret = __opal_lock_unlock(dev, lk_unlk); in opal_lock_unlock()
2476 return ret; in opal_lock_unlock()
2489 int ret; in opal_take_ownership() local
2496 ret = execute_steps(dev, owner_steps, ARRAY_SIZE(owner_steps)); in opal_take_ownership()
2499 return ret; in opal_take_ownership()
2511 int ret; in opal_activate_lsp() local
2518 ret = execute_steps(dev, active_steps, ARRAY_SIZE(active_steps)); in opal_activate_lsp()
2521 return ret; in opal_activate_lsp()
2532 int ret; in opal_setup_locking_range() local
2536 ret = execute_steps(dev, lr_steps, ARRAY_SIZE(lr_steps)); in opal_setup_locking_range()
2539 return ret; in opal_setup_locking_range()
2549 int ret; in opal_set_new_pw() local
2557 ret = execute_steps(dev, pw_steps, ARRAY_SIZE(pw_steps)); in opal_set_new_pw()
2560 return ret; in opal_set_new_pw()
2571 int ret; in opal_activate_user() local
2582 ret = execute_steps(dev, act_steps, ARRAY_SIZE(act_steps)); in opal_activate_user()
2585 return ret; in opal_activate_user()
2592 int ret = 0; in opal_unlock_from_suspend() local
2607 ret = __opal_lock_unlock(dev, &suspend->unlk); in opal_unlock_from_suspend()
2608 if (ret) { in opal_unlock_from_suspend()
2616 ret = __opal_set_mbr_done(dev, &suspend->unlk.session.opal_key); in opal_unlock_from_suspend()
2617 if (ret) in opal_unlock_from_suspend()
2635 int ret = 0; in opal_read_table() local
2638 return ret; in opal_read_table()
2652 int ret = 0; in opal_write_table() local
2655 return ret; in opal_write_table()
2664 int ret, bit_set; in opal_generic_read_write_table() local
2672 ret = opal_read_table(dev, rw_tbl); in opal_generic_read_write_table()
2675 ret = opal_write_table(dev, rw_tbl); in opal_generic_read_write_table()
2680 ret = -EINVAL; in opal_generic_read_write_table()
2686 return ret; in opal_generic_read_write_table()
2709 int ret = -ENOTTY; in sed_ioctl() local
2726 ret = opal_save(dev, p); in sed_ioctl()
2729 ret = opal_lock_unlock(dev, p); in sed_ioctl()
2732 ret = opal_take_ownership(dev, p); in sed_ioctl()
2735 ret = opal_activate_lsp(dev, p); in sed_ioctl()
2738 ret = opal_set_new_pw(dev, p); in sed_ioctl()
2741 ret = opal_activate_user(dev, p); in sed_ioctl()
2744 ret = opal_reverttper(dev, p, false); in sed_ioctl()
2747 ret = opal_setup_locking_range(dev, p); in sed_ioctl()
2750 ret = opal_add_user_to_lr(dev, p); in sed_ioctl()
2753 ret = opal_enable_disable_shadow_mbr(dev, p); in sed_ioctl()
2756 ret = opal_set_mbr_done(dev, p); in sed_ioctl()
2759 ret = opal_write_shadow_mbr(dev, p); in sed_ioctl()
2762 ret = opal_erase_locking_range(dev, p); in sed_ioctl()
2765 ret = opal_secure_erase_locking_range(dev, p); in sed_ioctl()
2768 ret = opal_reverttper(dev, p, true); in sed_ioctl()
2771 ret = opal_generic_read_write_table(dev, p); in sed_ioctl()
2774 ret = opal_get_status(dev, arg); in sed_ioctl()
2782 return ret; in sed_ioctl()