Home
last modified time | relevance | path

Searched refs:ci (Results 1 – 25 of 300) sorted by relevance

12345678910>>...12

/linux/drivers/media/dvb-frontends/
A Dcxd2099.c65 if (ci->cfg.max_i2c && len > ci->cfg.max_i2c) in read_block()
142 ci->regs[reg] = (ci->regs[reg] & (~mask)) | val; in write_regm()
144 status = regmap_write(ci->regmap, 1, ci->regs[reg]); in write_regm()
169 if (ci->cfg.max_i2c && (len + 1 > ci->cfg.max_i2c)) in write_block()
279 status = write_reg(ci, 0x15, ci->clk_reg_b); in init()
285 status = write_reg(ci, 0x17, ci->clk_reg_f); in init()
563 read_block(ci, 0x12, ci->rbuf, len); in read_data()
613 ci = kzalloc(sizeof(*ci), GFP_KERNEL); in cxd2099_probe()
620 memcpy(&ci->cfg, cfg, sizeof(ci->cfg)); in cxd2099_probe()
641 ci->en.data = ci; in cxd2099_probe()
[all …]
/linux/drivers/usb/chipidea/
A Dcore.c233 ci->hw_bank.size = ci->hw_bank.op - ci->hw_bank.abs; in hw_device_init()
252 ci->rev = ci_get_revision(ci); in hw_device_init()
256 ci->rev, ci->hw_bank.lpm, ci->hw_bank.cap, ci->hw_bank.op); in hw_device_init()
565 ret = ci_role(ci)->irq(ci); in ci_irq_handler()
575 ci_irq_handler(ci->irq, ci); in ci_irq()
583 struct ci_hdrc *ci = cbl->ci; in ci_cable_notifier() local
819 id->ci = ci; in ci_extcon_register()
830 vbus->ci = ci; in ci_extcon_register()
1042 ci->phy = ci->platdata->phy; in ci_hdrc_probe()
1153 ci->role = ci_otg_role(ci); in ci_hdrc_probe()
[all …]
A Dotg_fsm.c233 ktime_after(ci->hr_timeouts[ci->next_otg_timer], in ci_otg_add_timer()
587 if (ci->fsm.id && !(ci->driver) && in ci_otg_fsm_work()
602 if ((ci->fsm.id) || (ci->id_event) || in ci_otg_fsm_work()
793 if (ci->phy) in ci_hdrc_otg_fsm_init()
794 ci->otg.phy = ci->phy; in ci_hdrc_otg_fsm_init()
796 ci->otg.usb_phy = ci->usb_phy; in ci_hdrc_otg_fsm_init()
798 ci->otg.gadget = &ci->gadget; in ci_hdrc_otg_fsm_init()
799 ci->fsm.otg = &ci->otg; in ci_hdrc_otg_fsm_init()
801 ci->fsm.id = hw_read_otgsc(ci, OTGSC_ID) ? 1 : 0; in ci_hdrc_otg_fsm_init()
805 ci->fsm.host_req_flag = devm_kzalloc(ci->dev, 1, GFP_KERNEL); in ci_hdrc_otg_fsm_init()
[all …]
A Dotg.c133 if (!ci->is_otg) in ci_handle_vbus_change()
136 if (hw_read_otgsc(ci, OTGSC_BSV) && !ci->vbus_active) in ci_handle_vbus_change()
138 else if (!hw_read_otgsc(ci, OTGSC_BSV) && ci->vbus_active) in ci_handle_vbus_change()
174 ci_role(ci)->name, ci->roles[role]->name); in ci_handle_id_switch()
176 if (ci->vbus_active && ci->role == CI_ROLE_GADGET) in ci_handle_id_switch()
183 ci_role_stop(ci); in ci_handle_id_switch()
210 if (ci_otg_is_fsm_mode(ci) && !ci_otg_fsm_work(ci)) { in ci_otg_work()
217 if (ci->id_event) { in ci_otg_work()
229 enable_irq(ci->irq); in ci_otg_work()
241 if (!ci->wq) { in ci_hdrc_otg_init()
[all …]
A Dudc.c552 struct ci_hdrc *ci = hwep->ci; in _hardware_enqueue() local
678 struct ci_hdrc *ci = hwep->ci; in _hardware_dequeue() local
933 struct ci_hdrc *ci = hwep->ci; in _ep_queue() local
942 ci->ep0out : ci->ep0in; in _ep_queue()
1083 hwep = (ci->ep0_dir == TX) ? ci->ep0out : ci->ep0in; in isr_setup_status_phase()
1084 ci->status->context = ci; in isr_setup_status_phase()
1679 ci->platdata->notify_event(ci, in ci_hdrc_gadget_connect()
1832 hwep->ci = ci; in init_eps()
1971 ci->platdata->notify_event(ci, in ci_udc_stop()
2072 ci->gadget.irq = ci->irq; in udc_start()
[all …]
A Dhost.c91 ret = ci->platdata->notify_event(ci, in ehci_ci_reset()
110 return usb_hcd_irq(ci->irq, ci->hcd); in host_irq()
124 ci->dev, dev_name(ci->dev), NULL); in host_start()
128 dev_set_drvdata(ci->dev, ci); in host_start()
136 if (ci->phy || ci->usb_phy) { in host_start()
151 if (ci->platdata->reg_vbus && !ci_otg_is_fsm_mode(ci)) { in host_start()
192 if (ci->platdata->reg_vbus && !ci_otg_is_fsm_mode(ci) && in host_start()
207 ci->platdata->notify_event(ci, in host_stop()
213 if (ci->platdata->reg_vbus && !ci_otg_is_fsm_mode(ci) && in host_stop()
228 if (ci->role == CI_ROLE_HOST && ci->hcd) in ci_hdrc_host_destroy()
[all …]
A Ddebug.c39 if (!ci->driver) in ci_device_show()
43 (ci->driver->function ? ci->driver->function : "")); in ci_device_show()
136 &ci->ci_hw_ep[i + ci->hw_ep_max/2]; in ci_qheads_show()
192 if (!ci || !ci_otg_is_fsm_mode(ci)) in ci_otg_show()
195 fsm = &ci->fsm; in ci_otg_show()
273 if (ci->roles[role] && in ci_role_write()
282 disable_irq(ci->irq); in ci_role_write()
283 ci_role_stop(ci); in ci_role_write()
285 enable_irq(ci->irq); in ci_role_write()
309 if (!ci || ci->in_lpm) in ci_registers_show()
[all …]
A Dci.h101 struct ci_hdrc *ci; member
262 BUG_ON(ci->role >= CI_ROLE_END || !ci->roles[ci->role]); in ci_role()
263 return ci->roles[ci->role]; in ci_role()
273 if (!ci->roles[role]) in ci_role_start()
276 ret = ci->roles[role]->start(ci); in ci_role_start()
278 ci->role = role; in ci_role_start()
291 ci->roles[role]->stop(ci); in ci_role_stop()
298 else if (ci->role == CI_ROLE_GADGET && ci->vbus_active) in ci_role_to_usb_role()
391 __hw_write(ci, data, ci->hw_bank.regmap[reg]); in hw_write()
407 __hw_write(ci, val, ci->hw_bank.regmap[reg]); in hw_test_and_clear()
[all …]
A Dci_hdrc_msm.c37 struct platform_device *ci; member
102 phy_exit(ci->phy); in ci_hdrc_msm_notify_event()
117 if (!IS_ERR(ci->platdata->vbus_extcon.edev) || ci->role_switch) { in ci_hdrc_msm_notify_event()
128 phy_power_off(ci->phy); in ci_hdrc_msm_notify_event()
129 phy_exit(ci->phy); in ci_hdrc_msm_notify_event()
174 struct ci_hdrc_msm *ci; in ci_hdrc_msm_probe() local
183 ci = devm_kzalloc(&pdev->dev, sizeof(*ci), GFP_KERNEL); in ci_hdrc_msm_probe()
184 if (!ci) in ci_hdrc_msm_probe()
212 if (IS_ERR(ci->base)) in ci_hdrc_msm_probe()
262 ci->ci = plat_ci; in ci_hdrc_msm_probe()
[all …]
A Dulpi.c39 ret = ci_ulpi_wait(ci, ULPI_WAKEUP); in ci_ulpi_read()
44 ret = ci_ulpi_wait(ci, ULPI_RUN); in ci_ulpi_read()
63 return ci_ulpi_wait(ci, ULPI_RUN); in ci_ulpi_write()
66 int ci_ulpi_init(struct ci_hdrc *ci) in ci_ulpi_init() argument
75 hw_phymode_configure(ci); in ci_ulpi_init()
77 ci->ulpi_ops.read = ci_ulpi_read; in ci_ulpi_init()
79 ci->ulpi = ulpi_register_interface(ci->dev, &ci->ulpi_ops); in ci_ulpi_init()
80 if (IS_ERR(ci->ulpi)) in ci_ulpi_init()
83 return PTR_ERR_OR_ZERO(ci->ulpi); in ci_ulpi_init()
88 if (ci->ulpi) { in ci_ulpi_exit()
[all …]
A Dci_hdrc_pci.c22 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()
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()
99 return PTR_ERR(ci->ci); in ci_hdrc_pci_probe()
102 pci_set_drvdata(pdev, ci); in ci_hdrc_pci_probe()
[all …]
/linux/fs/ocfs2/
A Duptodate.c58 BUG_ON(!ci || !ci->ci_ops); in ocfs2_metadata_cache_owner()
60 return ci->ci_ops->co_owner(ci); in ocfs2_metadata_cache_owner()
65 BUG_ON(!ci || !ci->ci_ops); in ocfs2_metadata_cache_get_super()
72 BUG_ON(!ci || !ci->ci_ops); in ocfs2_metadata_cache_lock()
74 ci->ci_ops->co_cache_lock(ci); in ocfs2_metadata_cache_lock()
79 BUG_ON(!ci || !ci->ci_ops); in ocfs2_metadata_cache_unlock()
86 BUG_ON(!ci || !ci->ci_ops); in ocfs2_metadata_cache_io_lock()
88 ci->ci_ops->co_io_lock(ci); in ocfs2_metadata_cache_io_lock()
93 BUG_ON(!ci || !ci->ci_ops); in ocfs2_metadata_cache_io_unlock()
95 ci->ci_ops->co_io_unlock(ci); in ocfs2_metadata_cache_io_unlock()
[all …]
A Duptodate.h23 u64 (*co_owner)(struct ocfs2_caching_info *ci);
31 void (*co_cache_lock)(struct ocfs2_caching_info *ci);
32 void (*co_cache_unlock)(struct ocfs2_caching_info *ci);
38 void (*co_io_lock)(struct ocfs2_caching_info *ci);
39 void (*co_io_unlock)(struct ocfs2_caching_info *ci);
45 void ocfs2_metadata_cache_init(struct ocfs2_caching_info *ci,
48 void ocfs2_metadata_cache_exit(struct ocfs2_caching_info *ci);
54 int ocfs2_buffer_uptodate(struct ocfs2_caching_info *ci,
56 void ocfs2_set_buffer_uptodate(struct ocfs2_caching_info *ci,
60 void ocfs2_remove_from_cache(struct ocfs2_caching_info *ci,
[all …]
/linux/drivers/media/pci/ddbridge/
A Dddbridge-ci.c82 res = ddbreadl(ci->port->dev, CI_READDATA(ci->nr)); in read_cam_control()
124 ddbwritel(ci->port->dev, 0, CI_CONTROL(ci->nr)); in slot_shutdown()
132 u32 val = ddbreadl(ci->port->dev, CI_CONTROL(ci->nr)); in slot_ts_enable()
142 u32 val = ddbreadl(ci->port->dev, CI_CONTROL(ci->nr)); in poll_slot_status()
167 ci = kzalloc(sizeof(*ci), GFP_KERNEL); in ci_attach()
168 if (!ci) in ci_attach()
171 ci->en.data = ci; in ci_attach()
185 ci->port->creg = (ci->port->creg & ~mask) | data; in write_creg()
300 ci = kzalloc(sizeof(*ci), GFP_KERNEL); in ci_xo2_attach()
301 if (!ci) in ci_xo2_attach()
[all …]
/linux/arch/microblaze/kernel/cpu/
A Dcpuinfo-static.c27 ci->use_instr = in set_cpuinfo_static()
40 if (ci->use_instr != i) in set_cpuinfo_static()
46 ci->use_mult = in set_cpuinfo_static()
47 (ci->use_mult > 1 ? in set_cpuinfo_static()
54 ci->use_fpu = (ci->use_fpu > 1 ? in set_cpuinfo_static()
58 ci->use_exc = in set_cpuinfo_static()
109 ci->area_optimised = 0; in set_cpuinfo_static()
123 ci->ver_code = 0; in set_cpuinfo_static()
124 ci->fpga_family_code = 0; in set_cpuinfo_static()
142 if (ci->ver_code == 0x20 && ci->fpga_family_code != 0xf0) in set_cpuinfo_static()
[all …]
/linux/fs/ceph/
A Dcaps.c511 ci->i_ceph_flags, ci->i_hold_caps_max); in __cap_delay_requeue()
661 cap->ci = ci; in ceph_add_cap()
977 if (ci->i_wb_ref || ci->i_wrbuffer_ref) in __ceph_caps_used()
1107 struct ceph_inode_info *ci = cap->ci; in __ceph_remove_cap() local
1171 if (ci->i_wr_ref == 0 && ci->i_snap_realm) in __ceph_remove_cap()
1180 struct ceph_inode_info *ci = cap->ci; in ceph_remove_cap() local
1345 struct ceph_inode_info *ci = cap->ci; in __prep_cap() local
1714 &ci->vfs_inode, ci->i_head_snapc, ci->i_auth_cap); in __ceph_mark_dirty_caps()
2147 if (ci->i_dirty_caps && ci->i_auth_cap) { in try_flush_caps()
2620 &ci->vfs_inode, ci->i_wb_ref-1, ci->i_wb_ref); in ceph_take_cap_refs()
[all …]
A Dxattr.c78 ci->i_layout.stripe_unit, ci->i_layout.stripe_count, in ceph_vxattrcb_layout()
84 ci->i_layout.stripe_unit, ci->i_layout.stripe_count, in ceph_vxattrcb_layout()
221 ci->i_rfiles + ci->i_rsubdirs); in ceph_vxattrcb_dir_rentries()
272 if ((ci->i_max_files || ci->i_max_bytes) && in ceph_vxattrcb_quota_exists()
275 ci->i_snap_realm->ino == ci->i_vino.ino) in ceph_vxattrcb_quota_exists()
285 ci->i_max_bytes, ci->i_max_files); in ceph_vxattrcb_quota()
817 ci->i_xattrs.index_version = ci->i_xattrs.version; in __build_xattrs()
844 ci->i_xattrs.count, ci->i_xattrs.names_size, in __get_required_blob_size()
895 ci->i_xattrs.blob = ci->i_xattrs.prealloc_blob; in __ceph_build_xattrs_blob()
1242 if ((ci->i_max_files || ci->i_max_bytes) && in __ceph_setxattr()
[all …]
A Dinode.c451 if (!ci) in ceph_alloc_inode()
471 memset(&ci->i_dir_layout, 0, sizeof(ci->i_dir_layout)); in ceph_alloc_inode()
503 ci->i_last_rd = ci->i_last_wr = jiffies - 3600 * HZ; in ceph_alloc_inode()
540 memset(&ci->i_btime, '\0', sizeof(ci->i_btime)); in ceph_alloc_inode()
1019 ci->i_files == 0 && ci->i_subdirs == 0 && in ceph_fill_inode()
1860 ci->i_rdcache_gen, ci->i_rdcache_revoking); in ceph_do_invalidate_pages()
1861 if (ci->i_rdcache_revoking != ci->i_rdcache_gen) { in ceph_do_invalidate_pages()
1922 if (ci->i_wrbuffer_ref_head < ci->i_wrbuffer_ref) { in __ceph_do_pending_vmtruncate()
1932 WARN_ON_ONCE(ci->i_rd_ref || ci->i_wr_ref); in __ceph_do_pending_vmtruncate()
2374 if (ci->i_btime.tv_sec || ci->i_btime.tv_nsec) { in ceph_getattr()
[all …]
A Dsuper.h154 struct ceph_inode_info *ci; member
605 spin_lock(&ci->i_ceph_lock); in ceph_set_error_write()
614 spin_lock(&ci->i_ceph_lock); in ceph_clear_error_write()
710 spin_lock(&ci->i_ceph_lock); in ceph_caps_issued()
712 spin_unlock(&ci->i_ceph_lock); in ceph_caps_issued()
720 spin_lock(&ci->i_ceph_lock); in ceph_caps_issued_mask_metric()
728 return ci->i_dirty_caps | ci->i_flushing_caps; in __ceph_caps_dirty()
742 return ci->i_nr_by_mode[0]; in __ceph_is_file_opened()
1275 return ci->i_max_files || ci->i_max_bytes; in __ceph_has_any_quota()
1285 ci->i_max_bytes = max_bytes; in __ceph_update_quota()
[all …]
A Dcache.c107 struct inode* inode = &ci->vfs_inode; in ceph_fscache_inode_check_aux()
109 if (dlen != sizeof(ci->i_version) || in ceph_fscache_inode_check_aux()
113 if (*(u64 *)data != ci->i_version) in ceph_fscache_inode_check_aux()
140 if (!ci->fscache) { in ceph_fscache_register_inode_cookie()
143 &ci->i_vino, sizeof(ci->i_vino), in ceph_fscache_register_inode_cookie()
144 &ci->i_version, sizeof(ci->i_version), in ceph_fscache_register_inode_cookie()
154 if ((cookie = ci->fscache) == NULL) in ceph_fscache_unregister_inode_cookie()
157 ci->fscache = NULL; in ceph_fscache_unregister_inode_cookie()
172 if (!fscache_cookie_valid(ci->fscache)) in ceph_fscache_file_set_cookie()
178 fscache_disable_cookie(ci->fscache, &ci->i_vino, false); in ceph_fscache_file_set_cookie()
[all …]
A Dio.c26 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
62 ceph_block_o_direct(ci, inode); in ceph_start_io_read()
112 spin_lock(&ci->i_ceph_lock); in ceph_block_buffered()
113 ci->i_ceph_flags |= CEPH_I_ODIRECT; in ceph_block_buffered()
114 spin_unlock(&ci->i_ceph_lock); in ceph_block_buffered()
139 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_start_io_direct() local
[all …]
/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
A Dchip.c312 val = ci->ops->read32(ci->ctx, in brcmf_chip_sb_coredisable()
315 ci->ops->write32(ci->ctx, in brcmf_chip_sb_coredisable()
317 val = ci->ops->read32(ci->ctx, in brcmf_chip_sb_coredisable()
320 SPINWAIT((ci->ops->read32(ci->ctx, in brcmf_chip_sb_coredisable()
335 val = ci->ops->read32(ci->ctx, in brcmf_chip_sb_coredisable()
338 ci->ops->write32(ci->ctx, in brcmf_chip_sb_coredisable()
470 while (ci->ops->read32(ci->ctx, in brcmf_chip_ai_resetcore()
473 ci->ops->write32(ci->ctx, in brcmf_chip_ai_resetcore()
782 ci->pub.rambase, ci->pub.ramsize, ci->pub.ramsize, in brcmf_chip_get_raminfo()
967 regdata = ci->ops->read32(ci->ctx, in brcmf_chip_recognition()
[all …]
/linux/fs/crypto/
A Dkeysetup.c137 tfm = fscrypt_allocate_skcipher(ci->ci_mode, raw_key, ci->ci_inode); in fscrypt_prepare_key()
160 ci->ci_owns_key = true; in fscrypt_set_per_file_enc_key()
161 return fscrypt_prepare_key(&ci->ci_enc_key, raw_key, ci); in fscrypt_set_per_file_enc_key()
252 &ci->ci_dirhash_key); in fscrypt_derive_dirhash_key()
265 ci->ci_hashed_ino = (u32)siphash_1u64(ci->ci_inode->i_ino, in fscrypt_hash_inode_number()
304 if (ci->ci_inode->i_ino) in fscrypt_setup_iv_ino_lblk_32_key()
503 if (!ci) in put_crypt_info()
506 if (ci->ci_direct_key) in put_crypt_info()
511 key = ci->ci_master_key; in put_crypt_info()
530 memzero_explicit(ci, sizeof(*ci)); in put_crypt_info()
[all …]
A Dkeysetup_v1.c200 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()
235 dk->dk_mode = ci->ci_mode; in fscrypt_get_direct_key()
256 dk = fscrypt_get_direct_key(ci, raw_master_key); in setup_v1_file_key_direct()
259 ci->ci_direct_key = dk; in setup_v1_file_key_direct()
260 ci->ci_enc_key = dk->dk_key; in setup_v1_file_key_direct()
280 derived_key, ci->ci_mode->keysize); in setup_v1_file_key_derived()
305 ci->ci_policy.v1.master_key_descriptor, in fscrypt_setup_v1_file_key_via_subscribed_keyrings()
306 ci->ci_mode->keysize, &payload); in fscrypt_setup_v1_file_key_via_subscribed_keyrings()
309 ci->ci_policy.v1.master_key_descriptor, in fscrypt_setup_v1_file_key_via_subscribed_keyrings()
[all …]
/linux/fs/ksmbd/
A Dvfs_cache.c96 return ci; in ksmbd_inode_lookup_by_vfsinode()
106 if (ci) { in ksmbd_query_inode_status()
145 inode_hash(ci->m_inode->i_sb, ci->m_inode->i_ino); in ksmbd_inode_hash()
179 if (ci) in ksmbd_inode_get()
180 return ci; in ksmbd_inode_get()
183 if (!ci) in ksmbd_inode_get()
189 kfree(ci); in ksmbd_inode_get()
198 kfree(ci); in ksmbd_inode_get()
202 return ci; in ksmbd_inode_get()
208 kfree(ci); in ksmbd_inode_free()
[all …]

Completed in 90 milliseconds

12345678910>>...12