Lines Matching refs:opal_dev

33 	int (*fn)(struct opal_dev *dev, void *data);
36 typedef int (cont_fn)(struct opal_dev *dev);
76 struct opal_dev {
214 static int end_opal_session_error(struct opal_dev *dev);
215 static int opal_discovery0_step(struct opal_dev *dev);
320 static int opal_send_cmd(struct opal_dev *dev)
327 static int opal_recv_cmd(struct opal_dev *dev)
334 static int opal_recv_check(struct opal_dev *dev)
357 static int opal_send_recv(struct opal_dev *dev, cont_fn *cont)
373 static void check_geometry(struct opal_dev *dev, const void *data)
381 static int execute_step(struct opal_dev *dev,
395 static int execute_steps(struct opal_dev *dev,
429 static int opal_discovery0_end(struct opal_dev *dev)
510 static int opal_discovery0(struct opal_dev *dev, void *data)
523 static int opal_discovery0_step(struct opal_dev *dev)
532 static size_t remaining_size(struct opal_dev *cmd)
537 static bool can_add(int *err, struct opal_dev *cmd, size_t len)
551 static void add_token_u8(int *err, struct opal_dev *cmd, u8 tok)
559 static void add_short_atom_header(struct opal_dev *cmd, bool bytestring,
573 static void add_medium_atom_header(struct opal_dev *cmd, bool bytestring,
587 static void add_token_u64(int *err, struct opal_dev *cmd, u64 number)
609 static u8 *add_bytestring_header(int *err, struct opal_dev *cmd, size_t len)
632 static void add_token_bytestring(int *err, struct opal_dev *cmd,
676 static void set_comid(struct opal_dev *cmd, u16 comid)
686 static int cmd_finalize(struct opal_dev *cmd, u32 hsn, u32 tsn)
1005 static int parse_and_check_status(struct opal_dev *dev)
1020 static void clear_opal_cmd(struct opal_dev *dev)
1026 static int cmd_start(struct opal_dev *dev, const u8 *uid, const u8 *method)
1047 static int start_opal_session_cont(struct opal_dev *dev)
1070 static void add_suspend_info(struct opal_dev *dev,
1085 static int end_session_cont(struct opal_dev *dev)
1093 static int finalize_and_send(struct opal_dev *dev, cont_fn cont)
1112 static int generic_get_column(struct opal_dev *dev, const u8 *table,
1144 static int generic_get_table_info(struct opal_dev *dev, const u8 *table_uid,
1162 static int gen_key(struct opal_dev *dev, void *data)
1182 static int get_active_key_cont(struct opal_dev *dev)
1209 static int get_active_key(struct opal_dev *dev, void *data)
1226 static int generic_table_write_data(struct opal_dev *dev, const u64 data,
1295 static int generic_lr_enable_disable(struct opal_dev *dev,
1333 static inline int enable_global_lr(struct opal_dev *dev, u8 *uid,
1346 static int setup_locking_range(struct opal_dev *dev, void *data)
1398 static int start_generic_opal_session(struct opal_dev *dev,
1447 static int start_anybodyASP_opal_session(struct opal_dev *dev, void *data)
1453 static int start_SIDASP_opal_session(struct opal_dev *dev, void *data)
1476 static int start_admin1LSP_opal_session(struct opal_dev *dev, void *data)
1485 static int start_PSID_opal_session(struct opal_dev *dev, void *data)
1495 static int start_auth_opal_session(struct opal_dev *dev, void *data)
1541 static int revert_tper(struct opal_dev *dev, void *data)
1555 static int internal_activate_user(struct opal_dev *dev, void *data)
1583 static int erase_locking_range(struct opal_dev *dev, void *data)
1602 static int set_mbr_done(struct opal_dev *dev, void *data)
1628 static int set_mbr_enable_disable(struct opal_dev *dev, void *data)
1654 static int write_shadow_mbr(struct opal_dev *dev, void *data)
1663 struct opal_dev *dev)
1682 static int set_new_pw(struct opal_dev *dev, void *data)
1706 static int set_sid_cpin_pin(struct opal_dev *dev, void *data)
1720 static int add_user_to_lr(struct opal_dev *dev, void *data)
1788 static int lock_unlock_locking_range(struct opal_dev *dev, void *data)
1844 static int lock_unlock_locking_range_sum(struct opal_dev *dev, void *data)
1885 static int activate_lsp(struct opal_dev *dev, void *data)
1922 static int get_lsp_lifecycle(struct opal_dev *dev, void *data)
1943 static int get_msid_cpin_pin(struct opal_dev *dev, void *data)
1968 static int write_table_data(struct opal_dev *dev, void *data)
1976 static int read_table_data_cont(struct opal_dev *dev)
2004 static int read_table_data(struct opal_dev *dev, void *data)
2075 static int end_opal_session(struct opal_dev *dev, void *data)
2089 static int end_opal_session_error(struct opal_dev *dev)
2098 static inline void setup_opal_dev(struct opal_dev *dev)
2105 static int check_opal_support(struct opal_dev *dev)
2118 static void clean_opal_dev(struct opal_dev *dev)
2131 void free_opal_dev(struct opal_dev *dev)
2143 struct opal_dev *init_opal_dev(void *data, sec_send_recv *send_recv)
2145 struct opal_dev *dev;
2187 static int opal_secure_erase_locking_range(struct opal_dev *dev,
2206 static int opal_erase_locking_range(struct opal_dev *dev,
2224 static int opal_enable_disable_shadow_mbr(struct opal_dev *dev,
2252 static int opal_set_mbr_done(struct opal_dev *dev,
2277 static int opal_write_shadow_mbr(struct opal_dev *dev,
2298 static int opal_save(struct opal_dev *dev, struct opal_lock_unlock *lk_unlk)
2317 static int opal_add_user_to_lr(struct opal_dev *dev,
2354 static int opal_reverttper(struct opal_dev *dev, struct opal_key *opal, bool psid)
2388 static int __opal_lock_unlock(struct opal_dev *dev,
2410 static int __opal_set_mbr_done(struct opal_dev *dev, struct opal_key *key)
2422 static int opal_lock_unlock(struct opal_dev *dev,
2437 static int opal_take_ownership(struct opal_dev *dev, struct opal_key *opal)
2460 static int opal_activate_lsp(struct opal_dev *dev,
2482 static int opal_setup_locking_range(struct opal_dev *dev,
2500 static int opal_set_new_pw(struct opal_dev *dev, struct opal_new_pw *opal_pw)
2521 static int opal_activate_user(struct opal_dev *dev,
2546 bool opal_unlock_from_suspend(struct opal_dev *dev)
2585 static int opal_read_table(struct opal_dev *dev,
2602 static int opal_write_table(struct opal_dev *dev,
2619 static int opal_generic_read_write_table(struct opal_dev *dev,
2647 int sed_ioctl(struct opal_dev *dev, unsigned int cmd, void __user *arg)