Searched refs:keys_info (Results 1 – 3 of 3) sorted by relevance
204 struct pr_keys *keys_info) in nvme_pr_read_keys() argument206 u32 rse_len, num_keys = keys_info->num_keys; in nvme_pr_read_keys()224 keys_info->generation = le32_to_cpu(rse->gen); in nvme_pr_read_keys()225 keys_info->num_keys = get_unaligned_le16(&rse->regctl); in nvme_pr_read_keys()227 num_keys = min(num_keys, keys_info->num_keys); in nvme_pr_read_keys()230 keys_info->keys[i] = in nvme_pr_read_keys()236 keys_info->keys[i] = le64_to_cpu(rs->regctl_ds[i].rkey); in nvme_pr_read_keys()
39 struct pr_keys *keys_info);
1826 static int sd_pr_read_keys(struct block_device *bdev, struct pr_keys *keys_info) in sd_pr_read_keys() argument1829 u32 num_keys = keys_info->num_keys; in sd_pr_read_keys()1841 keys_info->generation = get_unaligned_be32(&data[0]); in sd_pr_read_keys()1842 keys_info->num_keys = get_unaligned_be32(&data[4]) / 8; in sd_pr_read_keys()1845 num_copy_keys = min(num_keys, keys_info->num_keys); in sd_pr_read_keys()1848 keys_info->keys[i] = get_unaligned_be64(&data[data_offset]); in sd_pr_read_keys()