opal_dev 33 block/sed-opal.c int (*fn)(struct opal_dev *dev, void *data); opal_dev 36 block/sed-opal.c typedef int (cont_fn)(struct opal_dev *dev); opal_dev 212 block/sed-opal.c static int end_opal_session_error(struct opal_dev *dev); opal_dev 213 block/sed-opal.c static int opal_discovery0_step(struct opal_dev *dev); opal_dev 318 block/sed-opal.c static int opal_send_cmd(struct opal_dev *dev) opal_dev 325 block/sed-opal.c static int opal_recv_cmd(struct opal_dev *dev) opal_dev 332 block/sed-opal.c static int opal_recv_check(struct opal_dev *dev) opal_dev 355 block/sed-opal.c static int opal_send_recv(struct opal_dev *dev, cont_fn *cont) opal_dev 371 block/sed-opal.c static void check_geometry(struct opal_dev *dev, const void *data) opal_dev 379 block/sed-opal.c static int execute_step(struct opal_dev *dev, opal_dev 393 block/sed-opal.c static int execute_steps(struct opal_dev *dev, opal_dev 427 block/sed-opal.c static int opal_discovery0_end(struct opal_dev *dev) opal_dev 508 block/sed-opal.c static int opal_discovery0(struct opal_dev *dev, void *data) opal_dev 521 block/sed-opal.c static int opal_discovery0_step(struct opal_dev *dev) opal_dev 530 block/sed-opal.c static size_t remaining_size(struct opal_dev *cmd) opal_dev 535 block/sed-opal.c static bool can_add(int *err, struct opal_dev *cmd, size_t len) opal_dev 549 block/sed-opal.c static void add_token_u8(int *err, struct opal_dev *cmd, u8 tok) opal_dev 557 block/sed-opal.c static void add_short_atom_header(struct opal_dev *cmd, bool bytestring, opal_dev 571 block/sed-opal.c static void add_medium_atom_header(struct opal_dev *cmd, bool bytestring, opal_dev 585 block/sed-opal.c static void add_token_u64(int *err, struct opal_dev *cmd, u64 number) opal_dev 607 block/sed-opal.c static u8 *add_bytestring_header(int *err, struct opal_dev *cmd, size_t len) opal_dev 630 block/sed-opal.c static void add_token_bytestring(int *err, struct opal_dev *cmd, opal_dev 674 block/sed-opal.c static void set_comid(struct opal_dev *cmd, u16 comid) opal_dev 684 block/sed-opal.c static int cmd_finalize(struct opal_dev *cmd, u32 hsn, u32 tsn) opal_dev 1003 block/sed-opal.c static int parse_and_check_status(struct opal_dev *dev) opal_dev 1018 block/sed-opal.c static void clear_opal_cmd(struct opal_dev *dev) opal_dev 1024 block/sed-opal.c static int cmd_start(struct opal_dev *dev, const u8 *uid, const u8 *method) opal_dev 1045 block/sed-opal.c static int start_opal_session_cont(struct opal_dev *dev) opal_dev 1068 block/sed-opal.c static void add_suspend_info(struct opal_dev *dev, opal_dev 1083 block/sed-opal.c static int end_session_cont(struct opal_dev *dev) opal_dev 1091 block/sed-opal.c static int finalize_and_send(struct opal_dev *dev, cont_fn cont) opal_dev 1110 block/sed-opal.c static int generic_get_column(struct opal_dev *dev, const u8 *table, opal_dev 1142 block/sed-opal.c static int generic_get_table_info(struct opal_dev *dev, enum opal_uid table, opal_dev 1160 block/sed-opal.c static int gen_key(struct opal_dev *dev, void *data) opal_dev 1180 block/sed-opal.c static int get_active_key_cont(struct opal_dev *dev) opal_dev 1207 block/sed-opal.c static int get_active_key(struct opal_dev *dev, void *data) opal_dev 1224 block/sed-opal.c static int generic_lr_enable_disable(struct opal_dev *dev, opal_dev 1262 block/sed-opal.c static inline int enable_global_lr(struct opal_dev *dev, u8 *uid, opal_dev 1275 block/sed-opal.c static int setup_locking_range(struct opal_dev *dev, void *data) opal_dev 1327 block/sed-opal.c static int start_generic_opal_session(struct opal_dev *dev, opal_dev 1376 block/sed-opal.c static int start_anybodyASP_opal_session(struct opal_dev *dev, void *data) opal_dev 1382 block/sed-opal.c static int start_SIDASP_opal_session(struct opal_dev *dev, void *data) opal_dev 1405 block/sed-opal.c static int start_admin1LSP_opal_session(struct opal_dev *dev, void *data) opal_dev 1414 block/sed-opal.c static int start_PSID_opal_session(struct opal_dev *dev, void *data) opal_dev 1424 block/sed-opal.c static int start_auth_opal_session(struct opal_dev *dev, void *data) opal_dev 1470 block/sed-opal.c static int revert_tper(struct opal_dev *dev, void *data) opal_dev 1484 block/sed-opal.c static int internal_activate_user(struct opal_dev *dev, void *data) opal_dev 1512 block/sed-opal.c static int erase_locking_range(struct opal_dev *dev, void *data) opal_dev 1531 block/sed-opal.c static int set_mbr_done(struct opal_dev *dev, void *data) opal_dev 1557 block/sed-opal.c static int set_mbr_enable_disable(struct opal_dev *dev, void *data) opal_dev 1583 block/sed-opal.c static int write_shadow_mbr(struct opal_dev *dev, void *data) opal_dev 1651 block/sed-opal.c struct opal_dev *dev) opal_dev 1670 block/sed-opal.c static int set_new_pw(struct opal_dev *dev, void *data) opal_dev 1694 block/sed-opal.c static int set_sid_cpin_pin(struct opal_dev *dev, void *data) opal_dev 1708 block/sed-opal.c static int add_user_to_lr(struct opal_dev *dev, void *data) opal_dev 1776 block/sed-opal.c static int lock_unlock_locking_range(struct opal_dev *dev, void *data) opal_dev 1832 block/sed-opal.c static int lock_unlock_locking_range_sum(struct opal_dev *dev, void *data) opal_dev 1873 block/sed-opal.c static int activate_lsp(struct opal_dev *dev, void *data) opal_dev 1914 block/sed-opal.c static int get_lsp_lifecycle(struct opal_dev *dev, void *data) opal_dev 1935 block/sed-opal.c static int get_msid_cpin_pin(struct opal_dev *dev, void *data) opal_dev 1960 block/sed-opal.c static int end_opal_session(struct opal_dev *dev, void *data) opal_dev 1974 block/sed-opal.c static int end_opal_session_error(struct opal_dev *dev) opal_dev 1983 block/sed-opal.c static inline void setup_opal_dev(struct opal_dev *dev) opal_dev 1990 block/sed-opal.c static int check_opal_support(struct opal_dev *dev) opal_dev 2003 block/sed-opal.c static void clean_opal_dev(struct opal_dev *dev) opal_dev 2016 block/sed-opal.c void free_opal_dev(struct opal_dev *dev) opal_dev 2026 block/sed-opal.c struct opal_dev *init_opal_dev(void *data, sec_send_recv *send_recv) opal_dev 2028 block/sed-opal.c struct opal_dev *dev; opal_dev 2048 block/sed-opal.c static int opal_secure_erase_locking_range(struct opal_dev *dev, opal_dev 2067 block/sed-opal.c static int opal_erase_locking_range(struct opal_dev *dev, opal_dev 2085 block/sed-opal.c static int opal_enable_disable_shadow_mbr(struct opal_dev *dev, opal_dev 2113 block/sed-opal.c static int opal_set_mbr_done(struct opal_dev *dev, opal_dev 2138 block/sed-opal.c static int opal_write_shadow_mbr(struct opal_dev *dev, opal_dev 2159 block/sed-opal.c static int opal_save(struct opal_dev *dev, struct opal_lock_unlock *lk_unlk) opal_dev 2178 block/sed-opal.c static int opal_add_user_to_lr(struct opal_dev *dev, opal_dev 2215 block/sed-opal.c static int opal_reverttper(struct opal_dev *dev, struct opal_key *opal, bool psid) opal_dev 2249 block/sed-opal.c static int __opal_lock_unlock(struct opal_dev *dev, opal_dev 2271 block/sed-opal.c static int __opal_set_mbr_done(struct opal_dev *dev, struct opal_key *key) opal_dev 2283 block/sed-opal.c static int opal_lock_unlock(struct opal_dev *dev, opal_dev 2298 block/sed-opal.c static int opal_take_ownership(struct opal_dev *dev, struct opal_key *opal) opal_dev 2321 block/sed-opal.c static int opal_activate_lsp(struct opal_dev *dev, opal_dev 2343 block/sed-opal.c static int opal_setup_locking_range(struct opal_dev *dev, opal_dev 2361 block/sed-opal.c static int opal_set_new_pw(struct opal_dev *dev, struct opal_new_pw *opal_pw) opal_dev 2382 block/sed-opal.c static int opal_activate_user(struct opal_dev *dev, opal_dev 2407 block/sed-opal.c bool opal_unlock_from_suspend(struct opal_dev *dev) opal_dev 2446 block/sed-opal.c int sed_ioctl(struct opal_dev *dev, unsigned int cmd, void __user *arg) opal_dev 1553 drivers/nvme/host/core.c ret = sed_ioctl(ctrl->opal_dev, cmd, argp); opal_dev 207 drivers/nvme/host/nvme.h struct opal_dev *opal_dev; opal_dev 2517 drivers/nvme/host/pci.c free_opal_dev(dev->ctrl.opal_dev); opal_dev 2600 drivers/nvme/host/pci.c if (!dev->ctrl.opal_dev) opal_dev 2601 drivers/nvme/host/pci.c dev->ctrl.opal_dev = opal_dev 2604 drivers/nvme/host/pci.c opal_unlock_from_suspend(dev->ctrl.opal_dev); opal_dev 2606 drivers/nvme/host/pci.c free_opal_dev(dev->ctrl.opal_dev); opal_dev 2607 drivers/nvme/host/pci.c dev->ctrl.opal_dev = NULL; opal_dev 1490 drivers/scsi/sd.c return sed_ioctl(sdkp->opal_dev, cmd, p); opal_dev 1713 drivers/scsi/sd.c return sed_ioctl(sdkp->opal_dev, cmd, p); opal_dev 3393 drivers/scsi/sd.c sdkp->opal_dev = init_opal_dev(sdp, &sd_sec_submit); opal_dev 3394 drivers/scsi/sd.c if (sdkp->opal_dev) opal_dev 3440 drivers/scsi/sd.c free_opal_dev(sdkp->opal_dev); opal_dev 3615 drivers/scsi/sd.c opal_unlock_from_suspend(sdkp->opal_dev); opal_dev 75 drivers/scsi/sd.h struct opal_dev *opal_dev; opal_dev 16 include/linux/sed-opal.h struct opal_dev; opal_dev 22 include/linux/sed-opal.h void free_opal_dev(struct opal_dev *dev); opal_dev 23 include/linux/sed-opal.h bool opal_unlock_from_suspend(struct opal_dev *dev); opal_dev 24 include/linux/sed-opal.h struct opal_dev *init_opal_dev(void *data, sec_send_recv *send_recv); opal_dev 25 include/linux/sed-opal.h int sed_ioctl(struct opal_dev *dev, unsigned int cmd, void __user *ioctl_ptr); opal_dev 50 include/linux/sed-opal.h static inline void free_opal_dev(struct opal_dev *dev) opal_dev 59 include/linux/sed-opal.h static inline int sed_ioctl(struct opal_dev *dev, unsigned int cmd, opal_dev 64 include/linux/sed-opal.h static inline bool opal_unlock_from_suspend(struct opal_dev *dev)