Lines Matching refs:opal_dev

38 	int (*fn)(struct opal_dev *dev, void *data);
41 typedef int (cont_fn)(struct opal_dev *dev);
81 struct opal_dev {
222 static int end_opal_session_error(struct opal_dev *dev);
223 static int opal_discovery0_step(struct opal_dev *dev);
334 static int opal_get_key(struct opal_dev *dev, struct opal_key *key)
455 static int opal_send_cmd(struct opal_dev *dev)
462 static int opal_recv_cmd(struct opal_dev *dev)
469 static int opal_recv_check(struct opal_dev *dev)
492 static int opal_send_recv(struct opal_dev *dev, cont_fn *cont)
508 static void check_geometry(struct opal_dev *dev, const void *data)
518 static int execute_step(struct opal_dev *dev,
532 static int execute_steps(struct opal_dev *dev,
566 static int opal_discovery0_end(struct opal_dev *dev, void *data)
670 static int opal_discovery0(struct opal_dev *dev, void *data)
683 static int opal_discovery0_step(struct opal_dev *dev)
692 static size_t remaining_size(struct opal_dev *cmd)
697 static bool can_add(int *err, struct opal_dev *cmd, size_t len)
711 static void add_token_u8(int *err, struct opal_dev *cmd, u8 tok)
719 static void add_short_atom_header(struct opal_dev *cmd, bool bytestring,
733 static void add_medium_atom_header(struct opal_dev *cmd, bool bytestring,
747 static void add_token_u64(int *err, struct opal_dev *cmd, u64 number)
769 static u8 *add_bytestring_header(int *err, struct opal_dev *cmd, size_t len)
792 static void add_token_bytestring(int *err, struct opal_dev *cmd,
836 static void set_comid(struct opal_dev *cmd, u16 comid)
846 static int cmd_finalize(struct opal_dev *cmd, u32 hsn, u32 tsn)
1169 static int parse_and_check_status(struct opal_dev *dev)
1184 static void clear_opal_cmd(struct opal_dev *dev)
1190 static int cmd_start(struct opal_dev *dev, const u8 *uid, const u8 *method)
1211 static int start_opal_session_cont(struct opal_dev *dev)
1234 static void add_suspend_info(struct opal_dev *dev,
1249 static int end_session_cont(struct opal_dev *dev)
1257 static int finalize_and_send(struct opal_dev *dev, cont_fn cont)
1272 static int generic_get_columns(struct opal_dev *dev, const u8 *table,
1303 static int generic_get_column(struct opal_dev *dev, const u8 *table,
1314 static int generic_get_table_info(struct opal_dev *dev, const u8 *table_uid,
1332 static int gen_key(struct opal_dev *dev, void *data)
1352 static int get_active_key_cont(struct opal_dev *dev)
1379 static int get_active_key(struct opal_dev *dev, void *data)
1396 static int generic_table_write_data(struct opal_dev *dev, const u64 data,
1465 static int generic_lr_enable_disable(struct opal_dev *dev,
1503 static inline int enable_global_lr(struct opal_dev *dev, u8 *uid,
1516 static int setup_locking_range(struct opal_dev *dev, void *data)
1613 static int locking_range_status(struct opal_dev *dev, void *data)
1691 static int start_generic_opal_session(struct opal_dev *dev,
1740 static int start_anybodyASP_opal_session(struct opal_dev *dev, void *data)
1746 static int start_SIDASP_opal_session(struct opal_dev *dev, void *data)
1769 static int start_admin1LSP_opal_session(struct opal_dev *dev, void *data)
1778 static int start_PSID_opal_session(struct opal_dev *dev, void *data)
1788 static int start_auth_opal_session(struct opal_dev *dev, void *data)
1834 static int revert_tper(struct opal_dev *dev, void *data)
1848 static int internal_activate_user(struct opal_dev *dev, void *data)
1876 static int revert_lsp(struct opal_dev *dev, void *data)
1896 static int erase_locking_range(struct opal_dev *dev, void *data)
1915 static int set_mbr_done(struct opal_dev *dev, void *data)
1941 static int set_mbr_enable_disable(struct opal_dev *dev, void *data)
1967 static int write_shadow_mbr(struct opal_dev *dev, void *data)
1976 struct opal_dev *dev)
1995 static int set_new_pw(struct opal_dev *dev, void *data)
2019 static int set_sid_cpin_pin(struct opal_dev *dev, void *data)
2034 struct opal_dev *dev,
2047 struct opal_dev *dev,
2057 static int set_lr_boolean_ace(struct opal_dev *dev,
2111 static int add_user_to_lr(struct opal_dev *dev, void *data)
2133 static int add_user_to_lr_ace(struct opal_dev *dev, void *data)
2154 static int lock_unlock_locking_range(struct opal_dev *dev, void *data)
2210 static int lock_unlock_locking_range_sum(struct opal_dev *dev, void *data)
2251 static int activate_lsp(struct opal_dev *dev, void *data)
2288 static int get_lsp_lifecycle(struct opal_dev *dev, void *data)
2309 static int get_msid_cpin_pin(struct opal_dev *dev, void *data)
2334 static int write_table_data(struct opal_dev *dev, void *data)
2342 static int read_table_data_cont(struct opal_dev *dev)
2370 static int read_table_data(struct opal_dev *dev, void *data)
2441 static int end_opal_session(struct opal_dev *dev, void *data)
2455 static int end_opal_session_error(struct opal_dev *dev)
2464 static inline void setup_opal_dev(struct opal_dev *dev)
2471 static int check_opal_support(struct opal_dev *dev)
2485 static void clean_opal_dev(struct opal_dev *dev)
2498 void free_opal_dev(struct opal_dev *dev)
2510 struct opal_dev *init_opal_dev(void *data, sec_send_recv *send_recv)
2512 struct opal_dev *dev;
2555 static int opal_secure_erase_locking_range(struct opal_dev *dev,
2577 static int opal_get_discv(struct opal_dev *dev, struct opal_discovery *discv)
2593 static int opal_revertlsp(struct opal_dev *dev, struct opal_revert_lsp *rev)
2613 static int opal_erase_locking_range(struct opal_dev *dev,
2634 static int opal_enable_disable_shadow_mbr(struct opal_dev *dev,
2665 static int opal_set_mbr_done(struct opal_dev *dev,
2693 static int opal_write_shadow_mbr(struct opal_dev *dev,
2717 static int opal_save(struct opal_dev *dev, struct opal_lock_unlock *lk_unlk)
2736 static int opal_add_user_to_lr(struct opal_dev *dev,
2777 static int opal_reverttper(struct opal_dev *dev, struct opal_key *opal, bool psid)
2815 static int __opal_lock_unlock(struct opal_dev *dev,
2837 static int __opal_set_mbr_done(struct opal_dev *dev, struct opal_key *key)
2849 static void opal_lock_check_for_saved_key(struct opal_dev *dev,
2887 static int opal_lock_unlock(struct opal_dev *dev,
2905 static int opal_take_ownership(struct opal_dev *dev, struct opal_key *opal)
2931 static int opal_activate_lsp(struct opal_dev *dev,
2956 static int opal_setup_locking_range(struct opal_dev *dev,
2977 static int opal_locking_range_status(struct opal_dev *dev,
3004 static int opal_set_new_pw(struct opal_dev *dev, struct opal_new_pw *opal_pw)
3033 static int opal_activate_user(struct opal_dev *dev,
3061 bool opal_unlock_from_suspend(struct opal_dev *dev)
3100 static int opal_read_table(struct opal_dev *dev,
3117 static int opal_write_table(struct opal_dev *dev,
3134 static int opal_generic_read_write_table(struct opal_dev *dev,
3165 static int opal_get_status(struct opal_dev *dev, void __user *data)
3182 static int opal_get_geometry(struct opal_dev *dev, void __user *data)
3202 int sed_ioctl(struct opal_dev *dev, unsigned int cmd, void __user *arg)