/kernel/linux/linux-5.10/drivers/media/dvb-frontends/ |
D | cxd2099.c | 62 static int read_block(struct cxd *ci, u8 adr, u8 *data, u16 n) in read_block() argument 66 if (ci->lastaddress != adr) in read_block() 67 status = regmap_write(ci->regmap, 0, adr); in read_block() 69 ci->lastaddress = adr; in read_block() 74 if (ci->cfg.max_i2c && len > ci->cfg.max_i2c) in read_block() 75 len = ci->cfg.max_i2c; in read_block() 76 status = regmap_raw_read(ci->regmap, 1, data, len); in read_block() 86 static int read_reg(struct cxd *ci, u8 reg, u8 *val) in read_reg() argument 88 return read_block(ci, reg, val, 1); in read_reg() 91 static int read_pccard(struct cxd *ci, u16 address, u8 *data, u8 n) in read_pccard() argument [all …]
|
/kernel/linux/linux-5.10/drivers/usb/chipidea/ |
D | core.c | 98 static void hw_alloc_regmap(struct ci_hdrc *ci, bool is_lpm) in hw_alloc_regmap() argument 103 ci->hw_bank.regmap[i] = in hw_alloc_regmap() 104 (i <= CAP_LAST ? ci->hw_bank.cap : ci->hw_bank.op) + in hw_alloc_regmap() 108 ci->hw_bank.regmap[i] = ci->hw_bank.op + in hw_alloc_regmap() 116 static enum ci_revision ci_get_revision(struct ci_hdrc *ci) in ci_get_revision() argument 118 int ver = hw_read_id_reg(ci, ID_ID, VERSION) >> __ffs(VERSION); in ci_get_revision() 122 rev = hw_read_id_reg(ci, ID_ID, REVISION) in ci_get_revision() 139 u32 hw_read_intr_enable(struct ci_hdrc *ci) in hw_read_intr_enable() argument 141 return hw_read(ci, OP_USBINTR, ~0); in hw_read_intr_enable() 151 u32 hw_read_intr_status(struct ci_hdrc *ci) in hw_read_intr_status() argument [all …]
|
D | otg_fsm.c | 36 struct ci_hdrc *ci = dev_get_drvdata(dev); in a_bus_req_show() local 40 t = scnprintf(next, size, "%d\n", ci->fsm.a_bus_req); in a_bus_req_show() 51 struct ci_hdrc *ci = dev_get_drvdata(dev); in a_bus_req_store() local 56 mutex_lock(&ci->fsm.lock); in a_bus_req_store() 58 ci->fsm.a_bus_req = 0; in a_bus_req_store() 61 if (ci->fsm.a_bus_drop) { in a_bus_req_store() 62 mutex_unlock(&ci->fsm.lock); in a_bus_req_store() 65 ci->fsm.a_bus_req = 1; in a_bus_req_store() 66 if (ci->fsm.otg->state == OTG_STATE_A_PERIPHERAL) { in a_bus_req_store() 67 ci->gadget.host_request_flag = 1; in a_bus_req_store() [all …]
|
D | otg.c | 29 u32 hw_read_otgsc(struct ci_hdrc *ci, u32 mask) in hw_read_otgsc() argument 32 u32 val = hw_read(ci, OP_OTGSC, mask); in hw_read_otgsc() 38 cable = &ci->platdata->vbus_extcon; in hw_read_otgsc() 39 if (!IS_ERR(cable->edev) || ci->role_switch) { in hw_read_otgsc() 56 cable = &ci->platdata->id_extcon; in hw_read_otgsc() 57 if (!IS_ERR(cable->edev) || ci->role_switch) { in hw_read_otgsc() 83 void hw_write_otgsc(struct ci_hdrc *ci, u32 mask, u32 data) in hw_write_otgsc() argument 87 cable = &ci->platdata->vbus_extcon; in hw_write_otgsc() 88 if (!IS_ERR(cable->edev) || ci->role_switch) { in hw_write_otgsc() 101 cable = &ci->platdata->id_extcon; in hw_write_otgsc() [all …]
|
D | udc.c | 63 static inline int ep_to_bit(struct ci_hdrc *ci, int n) in ep_to_bit() argument 65 int fill = 16 - ci->hw_ep_max / 2; in ep_to_bit() 67 if (n >= ci->hw_ep_max / 2) in ep_to_bit() 80 static int hw_device_state(struct ci_hdrc *ci, u32 dma) in hw_device_state() argument 83 hw_write(ci, OP_ENDPTLISTADDR, ~0, dma); in hw_device_state() 85 hw_write(ci, OP_USBINTR, ~0, in hw_device_state() 88 hw_write(ci, OP_USBINTR, ~0, 0); in hw_device_state() 101 static int hw_ep_flush(struct ci_hdrc *ci, int num, int dir) in hw_ep_flush() argument 107 hw_write(ci, OP_ENDPTFLUSH, ~0, BIT(n)); in hw_ep_flush() 108 while (hw_read(ci, OP_ENDPTFLUSH, BIT(n))) in hw_ep_flush() [all …]
|
D | host.c | 37 struct ci_hdrc *ci = dev_get_drvdata(dev); in ehci_ci_portpower() local 60 if (enable && (ci->platdata->phy_mode == USBPHY_INTERFACE_MODE_HSIC)) { in ehci_ci_portpower() 65 hw_port_test_set(ci, 5); in ehci_ci_portpower() 66 hw_port_test_set(ci, 0); in ehci_ci_portpower() 74 struct ci_hdrc *ci = dev_get_drvdata(dev); in ehci_ci_reset() local 84 if (ci->platdata->notify_event) { in ehci_ci_reset() 85 ret = ci->platdata->notify_event(ci, in ehci_ci_reset() 91 ci_platform_configure(ci); in ehci_ci_reset() 102 static irqreturn_t host_irq(struct ci_hdrc *ci) in host_irq() argument 104 return usb_hcd_irq(ci->irq, ci->hcd); in host_irq() [all …]
|
D | debug.c | 26 struct ci_hdrc *ci = s->private; in ci_device_show() local 27 struct usb_gadget *gadget = &ci->gadget; in ci_device_show() 39 if (!ci->driver) in ci_device_show() 43 (ci->driver->function ? ci->driver->function : "")); in ci_device_show() 44 seq_printf(s, "gadget max speed = %d\n", ci->driver->max_speed); in ci_device_show() 55 struct ci_hdrc *ci = s->private; in ci_port_test_show() local 59 pm_runtime_get_sync(ci->dev); in ci_port_test_show() 60 spin_lock_irqsave(&ci->lock, flags); in ci_port_test_show() 61 mode = hw_port_test_get(ci); in ci_port_test_show() 62 spin_unlock_irqrestore(&ci->lock, flags); in ci_port_test_show() [all …]
|
D | ulpi.c | 19 static int ci_ulpi_wait(struct ci_hdrc *ci, u32 mask) in ci_ulpi_wait() argument 24 if (!hw_read(ci, OP_ULPI_VIEWPORT, mask)) in ci_ulpi_wait() 35 struct ci_hdrc *ci = dev_get_drvdata(dev); in ci_ulpi_read() local 38 hw_write(ci, OP_ULPI_VIEWPORT, 0xffffffff, ULPI_WRITE | ULPI_WAKEUP); in ci_ulpi_read() 39 ret = ci_ulpi_wait(ci, ULPI_WAKEUP); in ci_ulpi_read() 43 hw_write(ci, OP_ULPI_VIEWPORT, 0xffffffff, ULPI_RUN | ULPI_ADDR(addr)); in ci_ulpi_read() 44 ret = ci_ulpi_wait(ci, ULPI_RUN); in ci_ulpi_read() 48 return hw_read(ci, OP_ULPI_VIEWPORT, GENMASK(15, 8)) >> 8; in ci_ulpi_read() 53 struct ci_hdrc *ci = dev_get_drvdata(dev); in ci_ulpi_write() local 56 hw_write(ci, OP_ULPI_VIEWPORT, 0xffffffff, ULPI_WRITE | ULPI_WAKEUP); in ci_ulpi_write() [all …]
|
D | ci.h | 101 struct ci_hdrc *ci; member 262 static inline struct ci_role_driver *ci_role(struct ci_hdrc *ci) in ci_role() argument 264 BUG_ON(ci->role >= CI_ROLE_END || !ci->roles[ci->role]); in ci_role() 265 return ci->roles[ci->role]; in ci_role() 268 static inline int ci_role_start(struct ci_hdrc *ci, enum ci_role role) in ci_role_start() argument 275 if (!ci->roles[role]) in ci_role_start() 278 ret = ci->roles[role]->start(ci); in ci_role_start() 280 ci->role = role; in ci_role_start() 284 static inline void ci_role_stop(struct ci_hdrc *ci) in ci_role_stop() argument 286 enum ci_role role = ci->role; in ci_role_stop() [all …]
|
D | ci_hdrc_msm.c | 37 struct platform_device *ci; member 79 static int ci_hdrc_msm_notify_event(struct ci_hdrc *ci, unsigned event) in ci_hdrc_msm_notify_event() argument 81 struct device *dev = ci->dev->parent; in ci_hdrc_msm_notify_event() 89 hw_phymode_configure(ci); in ci_hdrc_msm_notify_event() 96 ret = phy_init(ci->phy); in ci_hdrc_msm_notify_event() 100 ret = phy_power_on(ci->phy); in ci_hdrc_msm_notify_event() 102 phy_exit(ci->phy); in ci_hdrc_msm_notify_event() 107 hw_write_id_reg(ci, HS_PHY_AHB_MODE, 0xffffffff, 0x8); in ci_hdrc_msm_notify_event() 110 hw_write_id_reg(ci, HS_PHY_GENCONFIG, in ci_hdrc_msm_notify_event() 114 hw_write_id_reg(ci, HS_PHY_GENCONFIG_2, in ci_hdrc_msm_notify_event() [all …]
|
D | ci_hdrc_pci.c | 22 struct platform_device *ci; member 58 struct ci_hdrc_pci *ci; in ci_hdrc_pci_probe() local 67 ci = devm_kzalloc(&pdev->dev, sizeof(*ci), GFP_KERNEL); in ci_hdrc_pci_probe() 68 if (!ci) in ci_hdrc_pci_probe() 84 ci->phy = usb_phy_generic_register(); in ci_hdrc_pci_probe() 85 if (IS_ERR(ci->phy)) in ci_hdrc_pci_probe() 86 return PTR_ERR(ci->phy); in ci_hdrc_pci_probe() 95 ci->ci = ci_hdrc_add_device(&pdev->dev, res, nres, platdata); in ci_hdrc_pci_probe() 96 if (IS_ERR(ci->ci)) { in ci_hdrc_pci_probe() 98 usb_phy_generic_unregister(ci->phy); in ci_hdrc_pci_probe() [all …]
|
/kernel/linux/linux-5.10/fs/ocfs2/ |
D | uptodate.c | 58 u64 ocfs2_metadata_cache_owner(struct ocfs2_caching_info *ci) in ocfs2_metadata_cache_owner() argument 60 BUG_ON(!ci || !ci->ci_ops); in ocfs2_metadata_cache_owner() 62 return ci->ci_ops->co_owner(ci); in ocfs2_metadata_cache_owner() 65 struct super_block *ocfs2_metadata_cache_get_super(struct ocfs2_caching_info *ci) in ocfs2_metadata_cache_get_super() argument 67 BUG_ON(!ci || !ci->ci_ops); in ocfs2_metadata_cache_get_super() 69 return ci->ci_ops->co_get_super(ci); in ocfs2_metadata_cache_get_super() 72 static void ocfs2_metadata_cache_lock(struct ocfs2_caching_info *ci) in ocfs2_metadata_cache_lock() argument 74 BUG_ON(!ci || !ci->ci_ops); in ocfs2_metadata_cache_lock() 76 ci->ci_ops->co_cache_lock(ci); in ocfs2_metadata_cache_lock() 79 static void ocfs2_metadata_cache_unlock(struct ocfs2_caching_info *ci) in ocfs2_metadata_cache_unlock() argument [all …]
|
D | uptodate.h | 25 u64 (*co_owner)(struct ocfs2_caching_info *ci); 28 struct super_block *(*co_get_super)(struct ocfs2_caching_info *ci); 33 void (*co_cache_lock)(struct ocfs2_caching_info *ci); 34 void (*co_cache_unlock)(struct ocfs2_caching_info *ci); 40 void (*co_io_lock)(struct ocfs2_caching_info *ci); 41 void (*co_io_unlock)(struct ocfs2_caching_info *ci); 47 void ocfs2_metadata_cache_init(struct ocfs2_caching_info *ci, 49 void ocfs2_metadata_cache_purge(struct ocfs2_caching_info *ci); 50 void ocfs2_metadata_cache_exit(struct ocfs2_caching_info *ci); 52 u64 ocfs2_metadata_cache_owner(struct ocfs2_caching_info *ci); [all …]
|
/kernel/linux/linux-5.10/arch/microblaze/kernel/cpu/ |
D | cpuinfo-static.c | 23 void __init set_cpuinfo_static(struct cpuinfo *ci, struct device_node *cpu) in set_cpuinfo_static() argument 27 ci->use_instr = in set_cpuinfo_static() 40 if (ci->use_instr != i) in set_cpuinfo_static() 43 ci->use_mult = fcpu(cpu, "xlnx,use-hw-mul"); in set_cpuinfo_static() 44 if (ci->use_mult != CONFIG_XILINX_MICROBLAZE0_USE_HW_MUL) in set_cpuinfo_static() 46 ci->use_mult = in set_cpuinfo_static() 47 (ci->use_mult > 1 ? in set_cpuinfo_static() 49 (ci->use_mult == 1 ? PVR0_USE_HW_MUL_MASK : 0)); in set_cpuinfo_static() 51 ci->use_fpu = fcpu(cpu, "xlnx,use-fpu"); in set_cpuinfo_static() 52 if (ci->use_fpu != CONFIG_XILINX_MICROBLAZE0_USE_FPU) in set_cpuinfo_static() [all …]
|
/kernel/linux/linux-5.10/drivers/media/pci/ddbridge/ |
D | ddbridge-ci.c | 29 static int wait_ci_ready(struct ddb_ci *ci) in wait_ci_ready() argument 35 if (ddbreadl(ci->port->dev, in wait_ci_ready() 36 CI_CONTROL(ci->nr)) & CI_READY) in wait_ci_ready() 48 struct ddb_ci *ci = ca->data; in read_attribute_mem() local 53 ddbwritel(ci->port->dev, CI_READ_CMD | (1 << 16) | address, in read_attribute_mem() 54 CI_DO_READ_ATTRIBUTES(ci->nr)); in read_attribute_mem() 55 wait_ci_ready(ci); in read_attribute_mem() 56 val = 0xff & ddbreadl(ci->port->dev, CI_BUFFER(ci->nr) + off); in read_attribute_mem() 63 struct ddb_ci *ci = ca->data; in write_attribute_mem() local 65 ddbwritel(ci->port->dev, CI_WRITE_CMD | (value << 16) | address, in write_attribute_mem() [all …]
|
/kernel/linux/linux-5.10/fs/ceph/ |
D | caps.c | 48 struct ceph_inode_info *ci, 433 static struct ceph_cap *__get_cap_for_mds(struct ceph_inode_info *ci, int mds) in __get_cap_for_mds() argument 436 struct rb_node *n = ci->i_caps.rb_node; in __get_cap_for_mds() 450 struct ceph_cap *ceph_get_cap_for_mds(struct ceph_inode_info *ci, int mds) in ceph_get_cap_for_mds() argument 454 spin_lock(&ci->i_ceph_lock); in ceph_get_cap_for_mds() 455 cap = __get_cap_for_mds(ci, mds); in ceph_get_cap_for_mds() 456 spin_unlock(&ci->i_ceph_lock); in ceph_get_cap_for_mds() 463 static void __insert_cap_node(struct ceph_inode_info *ci, in __insert_cap_node() argument 466 struct rb_node **p = &ci->i_caps.rb_node; in __insert_cap_node() 482 rb_insert_color(&new->ci_node, &ci->i_caps); in __insert_cap_node() [all …]
|
D | xattr.c | 18 static int __remove_xattr(struct ceph_inode_info *ci, 36 ssize_t (*getxattr_cb)(struct ceph_inode_info *ci, char *val, 38 bool (*exists_cb)(struct ceph_inode_info *ci); 48 static bool ceph_vxattrcb_layout_exists(struct ceph_inode_info *ci) in ceph_vxattrcb_layout_exists() argument 50 struct ceph_file_layout *fl = &ci->i_layout; in ceph_vxattrcb_layout_exists() 56 static ssize_t ceph_vxattrcb_layout(struct ceph_inode_info *ci, char *val, in ceph_vxattrcb_layout() argument 59 struct ceph_fs_client *fsc = ceph_sb_to_client(ci->vfs_inode.i_sb); in ceph_vxattrcb_layout() 62 s64 pool = ci->i_layout.pool_id; in ceph_vxattrcb_layout() 69 pool_ns = ceph_try_get_string(ci->i_layout.pool_ns); in ceph_vxattrcb_layout() 71 dout("ceph_vxattrcb_layout %p\n", &ci->vfs_inode); in ceph_vxattrcb_layout() [all …]
|
D | inode.c | 44 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_set_ino_cb() local 47 ci->i_vino = *(struct ceph_vino *)data; in ceph_set_ino_cb() 48 inode->i_ino = ceph_vino_to_ino_t(ci->i_vino); in ceph_set_ino_cb() 82 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_get_snapdir() local 93 ci->i_rbytes = 0; in ceph_get_snapdir() 94 ci->i_btime = ceph_inode(parent)->i_btime; in ceph_get_snapdir() 99 ci->i_snap_caps = CEPH_CAP_PIN; /* so we can open */ in ceph_get_snapdir() 127 static struct ceph_inode_frag *__get_or_create_frag(struct ceph_inode_info *ci, in __get_or_create_frag() argument 135 p = &ci->i_fragtree.rb_node; in __get_or_create_frag() 158 rb_insert_color(&frag->node, &ci->i_fragtree); in __get_or_create_frag() [all …]
|
D | cache.c | 113 struct ceph_inode_info* ci = cookie_netfs_data; in ceph_fscache_inode_check_aux() local 114 struct inode* inode = &ci->vfs_inode; in ceph_fscache_inode_check_aux() 121 aux.version = ci->i_version; in ceph_fscache_inode_check_aux() 128 dout("ceph inode 0x%p cached okay\n", ci); in ceph_fscache_inode_check_aux() 140 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_fscache_register_inode_cookie() local 153 if (!ci->fscache) { in ceph_fscache_register_inode_cookie() 155 aux.version = ci->i_version; in ceph_fscache_register_inode_cookie() 158 ci->fscache = fscache_acquire_cookie(fsc->fscache, in ceph_fscache_register_inode_cookie() 160 &ci->i_vino, sizeof(ci->i_vino), in ceph_fscache_register_inode_cookie() 162 ci, i_size_read(inode), false); in ceph_fscache_register_inode_cookie() [all …]
|
D | cache.h | 23 void ceph_fscache_unregister_inode_cookie(struct ceph_inode_info* ci); 25 void ceph_fscache_revalidate_cookie(struct ceph_inode_info *ci); 35 static inline void ceph_fscache_inode_init(struct ceph_inode_info *ci) in ceph_fscache_inode_init() argument 37 ci->fscache = NULL; in ceph_fscache_inode_init() 38 ci->i_fscache_gen = 0; in ceph_fscache_inode_init() 49 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_fscache_uncache_page() local 50 return fscache_uncache_page(ci->fscache, page); in ceph_fscache_uncache_page() 56 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_release_fscache_page() local 57 return fscache_maybe_release_page(ci->fscache, page, gfp); in ceph_release_fscache_page() 63 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_fscache_readpage_cancel() local [all …]
|
D | io.c | 22 static void ceph_block_o_direct(struct ceph_inode_info *ci, struct inode *inode) in ceph_block_o_direct() argument 26 if (READ_ONCE(ci->i_ceph_flags) & CEPH_I_ODIRECT) { in ceph_block_o_direct() 27 spin_lock(&ci->i_ceph_lock); in ceph_block_o_direct() 28 ci->i_ceph_flags &= ~CEPH_I_ODIRECT; in ceph_block_o_direct() 29 spin_unlock(&ci->i_ceph_lock); in ceph_block_o_direct() 53 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_start_io_read() local 57 if (!(READ_ONCE(ci->i_ceph_flags) & CEPH_I_ODIRECT)) in ceph_start_io_read() 62 ceph_block_o_direct(ci, inode); in ceph_start_io_read() 107 static void ceph_block_buffered(struct ceph_inode_info *ci, struct inode *inode) in ceph_block_buffered() argument 111 if (!(READ_ONCE(ci->i_ceph_flags) & CEPH_I_ODIRECT)) { in ceph_block_buffered() [all …]
|
D | super.h | 152 struct ceph_inode_info *ci; member 526 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_ino_compare() local 527 return ci->i_vino.ino == pvino->ino && in ceph_ino_compare() 528 ci->i_vino.snap == pvino->snap; in ceph_ino_compare() 599 static inline void ceph_set_error_write(struct ceph_inode_info *ci) in ceph_set_error_write() argument 601 if (!(READ_ONCE(ci->i_ceph_flags) & CEPH_I_ERROR_WRITE)) { in ceph_set_error_write() 602 spin_lock(&ci->i_ceph_lock); in ceph_set_error_write() 603 ci->i_ceph_flags |= CEPH_I_ERROR_WRITE; in ceph_set_error_write() 604 spin_unlock(&ci->i_ceph_lock); in ceph_set_error_write() 608 static inline void ceph_clear_error_write(struct ceph_inode_info *ci) in ceph_clear_error_write() argument [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | chip.c | 238 static void brcmf_chip_sb_corerev(struct brcmf_chip_priv *ci, in brcmf_chip_sb_corerev() argument 243 regdata = ci->ops->read32(ci->ctx, CORE_SB(core->base, sbidhigh)); in brcmf_chip_sb_corerev() 249 struct brcmf_chip_priv *ci; in brcmf_chip_sb_iscoreup() local 253 ci = core->chip; in brcmf_chip_sb_iscoreup() 255 regdata = ci->ops->read32(ci->ctx, address); in brcmf_chip_sb_iscoreup() 263 struct brcmf_chip_priv *ci; in brcmf_chip_ai_iscoreup() local 267 ci = core->chip; in brcmf_chip_ai_iscoreup() 268 regdata = ci->ops->read32(ci->ctx, core->wrapbase + BCMA_IOCTL); in brcmf_chip_ai_iscoreup() 271 regdata = ci->ops->read32(ci->ctx, core->wrapbase + BCMA_RESET_CTL); in brcmf_chip_ai_iscoreup() 280 struct brcmf_chip_priv *ci; in brcmf_chip_sb_coredisable() local [all …]
|
/kernel/linux/linux-5.10/fs/crypto/ |
D | keysetup.c | 128 const u8 *raw_key, const struct fscrypt_info *ci) in fscrypt_prepare_key() argument 132 if (fscrypt_using_inline_encryption(ci)) in fscrypt_prepare_key() 133 return fscrypt_prepare_inline_crypt_key(prep_key, raw_key, ci); in fscrypt_prepare_key() 135 tfm = fscrypt_allocate_skcipher(ci->ci_mode, raw_key, ci->ci_inode); in fscrypt_prepare_key() 157 int fscrypt_set_per_file_enc_key(struct fscrypt_info *ci, const u8 *raw_key) in fscrypt_set_per_file_enc_key() argument 159 ci->ci_owns_key = true; in fscrypt_set_per_file_enc_key() 160 return fscrypt_prepare_key(&ci->ci_enc_key, raw_key, ci); in fscrypt_set_per_file_enc_key() 163 static int setup_per_mode_enc_key(struct fscrypt_info *ci, in setup_per_mode_enc_key() argument 168 const struct inode *inode = ci->ci_inode; in setup_per_mode_enc_key() 170 struct fscrypt_mode *mode = ci->ci_mode; in setup_per_mode_enc_key() [all …]
|
D | keysetup_v1.c | 180 const u8 *raw_key, const struct fscrypt_info *ci) in find_or_insert_direct_key() argument 192 memcpy(&hash_key, ci->ci_policy.v1.master_key_descriptor, in find_or_insert_direct_key() 197 if (memcmp(ci->ci_policy.v1.master_key_descriptor, in find_or_insert_direct_key() 200 if (ci->ci_mode != dk->dk_mode) in find_or_insert_direct_key() 202 if (!fscrypt_is_key_prepared(&dk->dk_key, ci)) in find_or_insert_direct_key() 204 if (crypto_memneq(raw_key, dk->dk_raw, ci->ci_mode->keysize)) in find_or_insert_direct_key() 220 fscrypt_get_direct_key(const struct fscrypt_info *ci, const u8 *raw_key) in fscrypt_get_direct_key() argument 226 dk = find_or_insert_direct_key(NULL, raw_key, ci); in fscrypt_get_direct_key() 235 dk->dk_mode = ci->ci_mode; in fscrypt_get_direct_key() 236 err = fscrypt_prepare_key(&dk->dk_key, raw_key, ci); in fscrypt_get_direct_key() [all …]
|