Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/staging/media/cxd2099/
Dcxd2099.c117 static int read_block(struct cxd *ci, u8 adr, u8 *data, u8 n) in read_block() argument
121 status = i2c_write_reg(ci->i2c, ci->cfg.adr, 0, adr); in read_block()
123 ci->lastaddress = adr; in read_block()
124 status = i2c_read(ci->i2c, ci->cfg.adr, 1, data, n); in read_block()
129 static int read_reg(struct cxd *ci, u8 reg, u8 *val) in read_reg() argument
131 return read_block(ci, reg, val, 1); in read_reg()
135 static int read_pccard(struct cxd *ci, u16 address, u8 *data, u8 n) in read_pccard() argument
140 status = i2c_write(ci->i2c, ci->cfg.adr, addr, 3); in read_pccard()
142 status = i2c_read(ci->i2c, ci->cfg.adr, 3, data, n); in read_pccard()
146 static int write_pccard(struct cxd *ci, u16 address, u8 *data, u8 n) in write_pccard() argument
[all …]
/linux-4.4.14/fs/ocfs2/
Duptodate.c72 u64 ocfs2_metadata_cache_owner(struct ocfs2_caching_info *ci) in ocfs2_metadata_cache_owner() argument
74 BUG_ON(!ci || !ci->ci_ops); in ocfs2_metadata_cache_owner()
76 return ci->ci_ops->co_owner(ci); in ocfs2_metadata_cache_owner()
79 struct super_block *ocfs2_metadata_cache_get_super(struct ocfs2_caching_info *ci) in ocfs2_metadata_cache_get_super() argument
81 BUG_ON(!ci || !ci->ci_ops); in ocfs2_metadata_cache_get_super()
83 return ci->ci_ops->co_get_super(ci); in ocfs2_metadata_cache_get_super()
86 static void ocfs2_metadata_cache_lock(struct ocfs2_caching_info *ci) in ocfs2_metadata_cache_lock() argument
88 BUG_ON(!ci || !ci->ci_ops); in ocfs2_metadata_cache_lock()
90 ci->ci_ops->co_cache_lock(ci); in ocfs2_metadata_cache_lock()
93 static void ocfs2_metadata_cache_unlock(struct ocfs2_caching_info *ci) in ocfs2_metadata_cache_unlock() argument
[all …]
Duptodate.h39 u64 (*co_owner)(struct ocfs2_caching_info *ci);
42 struct super_block *(*co_get_super)(struct ocfs2_caching_info *ci);
47 void (*co_cache_lock)(struct ocfs2_caching_info *ci);
48 void (*co_cache_unlock)(struct ocfs2_caching_info *ci);
54 void (*co_io_lock)(struct ocfs2_caching_info *ci);
55 void (*co_io_unlock)(struct ocfs2_caching_info *ci);
61 void ocfs2_metadata_cache_init(struct ocfs2_caching_info *ci,
63 void ocfs2_metadata_cache_purge(struct ocfs2_caching_info *ci);
64 void ocfs2_metadata_cache_exit(struct ocfs2_caching_info *ci);
66 u64 ocfs2_metadata_cache_owner(struct ocfs2_caching_info *ci);
[all …]
Dbuffer_head_io.c54 struct ocfs2_caching_info *ci) in ocfs2_write_block() argument
58 trace_ocfs2_write_block((unsigned long long)bh->b_blocknr, ci); in ocfs2_write_block()
72 ocfs2_metadata_cache_io_lock(ci); in ocfs2_write_block()
87 ocfs2_set_buffer_uptodate(ci, bh); in ocfs2_write_block()
96 ocfs2_metadata_cache_io_unlock(ci); in ocfs2_write_block()
176 int ocfs2_read_blocks(struct ocfs2_caching_info *ci, u64 block, int nr, in ocfs2_read_blocks() argument
184 struct super_block *sb = ocfs2_metadata_cache_get_super(ci); in ocfs2_read_blocks()
186 trace_ocfs2_read_blocks_begin(ci, (unsigned long long)block, nr, flags); in ocfs2_read_blocks()
188 BUG_ON(!ci); in ocfs2_read_blocks()
210 ocfs2_metadata_cache_io_lock(ci); in ocfs2_read_blocks()
[all …]
Djournal.h95 struct ocfs2_caching_info *ci) in ocfs2_set_ci_lock_trans() argument
98 ci->ci_last_trans = journal->j_trans_id; in ocfs2_set_ci_lock_trans()
107 static inline int ocfs2_ci_fully_checkpointed(struct ocfs2_caching_info *ci) in ocfs2_ci_fully_checkpointed() argument
111 OCFS2_SB(ocfs2_metadata_cache_get_super(ci))->journal; in ocfs2_ci_fully_checkpointed()
114 ret = time_after(journal->j_trans_id, ci->ci_last_trans); in ocfs2_ci_fully_checkpointed()
123 static inline int ocfs2_ci_is_new(struct ocfs2_caching_info *ci) in ocfs2_ci_is_new() argument
127 OCFS2_SB(ocfs2_metadata_cache_get_super(ci))->journal; in ocfs2_ci_is_new()
130 ret = !(time_after(journal->j_trans_id, ci->ci_created_trans)); in ocfs2_ci_is_new()
132 ci->ci_created_trans = 0; in ocfs2_ci_is_new()
150 struct ocfs2_caching_info *ci) in ocfs2_ci_set_new() argument
[all …]
Dbuffer_head_io.h36 struct ocfs2_caching_info *ci);
47 int ocfs2_read_blocks(struct ocfs2_caching_info *ci, u64 block, int nr,
58 static inline int ocfs2_read_block(struct ocfs2_caching_info *ci, u64 off, in ocfs2_read_block() argument
71 status = ocfs2_read_blocks(ci, off, 1, bh, 0, validate); in ocfs2_read_block()
Dalloc.h71 struct ocfs2_caching_info *ci,
74 struct ocfs2_caching_info *ci,
78 struct ocfs2_caching_info *ci,
81 struct ocfs2_caching_info *ci,
84 struct ocfs2_caching_info *ci,
92 int ocfs2_read_extent_block(struct ocfs2_caching_info *ci, u64 eb_blkno,
237 int ocfs2_find_leaf(struct ocfs2_caching_info *ci,
305 int ocfs2_find_path(struct ocfs2_caching_info *ci,
311 struct ocfs2_caching_info *ci,
314 int ocfs2_journal_access_path(struct ocfs2_caching_info *ci,
Drefcounttree.c75 cache_info_to_refcount(struct ocfs2_caching_info *ci) in cache_info_to_refcount() argument
77 return container_of(ci, struct ocfs2_refcount_tree, rf_ci); in cache_info_to_refcount()
131 static int ocfs2_read_refcount_block(struct ocfs2_caching_info *ci, in ocfs2_read_refcount_block() argument
138 rc = ocfs2_read_block(ci, rb_blkno, &tmp, in ocfs2_read_refcount_block()
148 static u64 ocfs2_refcount_cache_owner(struct ocfs2_caching_info *ci) in ocfs2_refcount_cache_owner() argument
150 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_owner()
156 ocfs2_refcount_cache_get_super(struct ocfs2_caching_info *ci) in ocfs2_refcount_cache_get_super() argument
158 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_get_super()
163 static void ocfs2_refcount_cache_lock(struct ocfs2_caching_info *ci) in ocfs2_refcount_cache_lock() argument
165 struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); in ocfs2_refcount_cache_lock()
[all …]
Djournal.c649 struct ocfs2_caching_info *ci, in __ocfs2_journal_access() argument
656 OCFS2_SB(ocfs2_metadata_cache_get_super(ci)); in __ocfs2_journal_access()
658 BUG_ON(!ci || !ci->ci_ops); in __ocfs2_journal_access()
663 (unsigned long long)ocfs2_metadata_cache_owner(ci), in __ocfs2_journal_access()
696 ocfs2_set_ci_lock_trans(osb->journal, ci); in __ocfs2_journal_access()
698 ocfs2_metadata_cache_io_lock(ci); in __ocfs2_journal_access()
715 ocfs2_metadata_cache_io_unlock(ci); in __ocfs2_journal_access()
724 int ocfs2_journal_access_di(handle_t *handle, struct ocfs2_caching_info *ci, in ocfs2_journal_access_di() argument
727 return __ocfs2_journal_access(handle, ci, bh, &di_triggers, type); in ocfs2_journal_access_di()
730 int ocfs2_journal_access_eb(handle_t *handle, struct ocfs2_caching_info *ci, in ocfs2_journal_access_eb() argument
[all …]
Dinode.c1421 static u64 ocfs2_inode_cache_owner(struct ocfs2_caching_info *ci) in ocfs2_inode_cache_owner() argument
1423 struct ocfs2_inode_info *oi = cache_info_to_inode(ci); in ocfs2_inode_cache_owner()
1428 static struct super_block *ocfs2_inode_cache_get_super(struct ocfs2_caching_info *ci) in ocfs2_inode_cache_get_super() argument
1430 struct ocfs2_inode_info *oi = cache_info_to_inode(ci); in ocfs2_inode_cache_get_super()
1435 static void ocfs2_inode_cache_lock(struct ocfs2_caching_info *ci) in ocfs2_inode_cache_lock() argument
1437 struct ocfs2_inode_info *oi = cache_info_to_inode(ci); in ocfs2_inode_cache_lock()
1442 static void ocfs2_inode_cache_unlock(struct ocfs2_caching_info *ci) in ocfs2_inode_cache_unlock() argument
1444 struct ocfs2_inode_info *oi = cache_info_to_inode(ci); in ocfs2_inode_cache_unlock()
1449 static void ocfs2_inode_cache_io_lock(struct ocfs2_caching_info *ci) in ocfs2_inode_cache_io_lock() argument
1451 struct ocfs2_inode_info *oi = cache_info_to_inode(ci); in ocfs2_inode_cache_io_lock()
[all …]
Dinode.h185 static inline struct ocfs2_inode_info *cache_info_to_inode(struct ocfs2_caching_info *ci) in cache_info_to_inode() argument
187 return container_of(ci, struct ocfs2_inode_info, ip_metadata_cache); in cache_info_to_inode()
Dextent_map.h67 int ocfs2_figure_hole_clusters(struct ocfs2_caching_info *ci,
Dalloc.c437 struct ocfs2_caching_info *ci, in __ocfs2_init_extent_tree() argument
445 et->et_ci = ci; in __ocfs2_init_extent_tree()
459 struct ocfs2_caching_info *ci, in ocfs2_init_dinode_extent_tree() argument
462 __ocfs2_init_extent_tree(et, ci, bh, ocfs2_journal_access_di, in ocfs2_init_dinode_extent_tree()
467 struct ocfs2_caching_info *ci, in ocfs2_init_xattr_tree_extent_tree() argument
470 __ocfs2_init_extent_tree(et, ci, bh, ocfs2_journal_access_xb, in ocfs2_init_xattr_tree_extent_tree()
475 struct ocfs2_caching_info *ci, in ocfs2_init_xattr_value_extent_tree() argument
478 __ocfs2_init_extent_tree(et, ci, vb->vb_bh, vb->vb_access, vb, in ocfs2_init_xattr_value_extent_tree()
483 struct ocfs2_caching_info *ci, in ocfs2_init_dx_root_extent_tree() argument
486 __ocfs2_init_extent_tree(et, ci, bh, ocfs2_journal_access_dr, in ocfs2_init_dx_root_extent_tree()
[all …]
Drefcounttree.h109 struct ocfs2_caching_info *ci,
Docfs2_trace.h2688 TP_PROTO(unsigned long long block, void *ci),
2689 TP_ARGS(block, ci),
2692 __field(void *, ci)
2696 __entry->ci = ci;
2698 TP_printk("%llu %p", __entry->block, __entry->ci)
2702 TP_PROTO(void *ci, unsigned long long block,
2704 TP_ARGS(ci, block, nr, flags),
2706 __field(void *, ci)
2712 __entry->ci = ci;
2717 TP_printk("%p %llu %u %d", __entry->ci, __entry->block,
Docfs2.h96 struct super_block *ocfs2_metadata_cache_get_super(struct ocfs2_caching_info *ci);
473 struct ocfs2_caching_info *ci,
Dextent_map.c357 int ocfs2_figure_hole_clusters(struct ocfs2_caching_info *ci, in ocfs2_figure_hole_clusters() argument
379 ret = ocfs2_read_extent_block(ci, in ocfs2_figure_hole_clusters()
Ddlmglue.c3638 static int ocfs2_ci_checkpointed(struct ocfs2_caching_info *ci, in ocfs2_ci_checkpointed() argument
3642 int checkpointed = ocfs2_ci_fully_checkpointed(ci); in ocfs2_ci_checkpointed()
3650 ocfs2_start_checkpoint(OCFS2_SB(ocfs2_metadata_cache_get_super(ci))); in ocfs2_ci_checkpointed()
/linux-4.4.14/drivers/usb/chipidea/
Dotg_fsm.c39 struct ci_hdrc *ci = dev_get_drvdata(dev); in get_a_bus_req() local
43 t = scnprintf(next, size, "%d\n", ci->fsm.a_bus_req); in get_a_bus_req()
54 struct ci_hdrc *ci = dev_get_drvdata(dev); in set_a_bus_req() local
59 mutex_lock(&ci->fsm.lock); in set_a_bus_req()
61 ci->fsm.a_bus_req = 0; in set_a_bus_req()
64 if (ci->fsm.a_bus_drop) { in set_a_bus_req()
65 mutex_unlock(&ci->fsm.lock); in set_a_bus_req()
68 ci->fsm.a_bus_req = 1; in set_a_bus_req()
71 ci_otg_queue_work(ci); in set_a_bus_req()
72 mutex_unlock(&ci->fsm.lock); in set_a_bus_req()
[all …]
Dcore.c127 static void hw_alloc_regmap(struct ci_hdrc *ci, bool is_lpm) in hw_alloc_regmap() argument
132 ci->hw_bank.regmap[i] = in hw_alloc_regmap()
133 (i <= CAP_LAST ? ci->hw_bank.cap : ci->hw_bank.op) + in hw_alloc_regmap()
137 ci->hw_bank.regmap[i] = ci->hw_bank.op + in hw_alloc_regmap()
145 static enum ci_revision ci_get_revision(struct ci_hdrc *ci) in ci_get_revision() argument
147 int ver = hw_read_id_reg(ci, ID_ID, VERSION) >> __ffs(VERSION); in ci_get_revision()
151 rev = hw_read_id_reg(ci, ID_ID, REVISION) in ci_get_revision()
168 u32 hw_read_intr_enable(struct ci_hdrc *ci) in hw_read_intr_enable() argument
170 return hw_read(ci, OP_USBINTR, ~0); in hw_read_intr_enable()
180 u32 hw_read_intr_status(struct ci_hdrc *ci) in hw_read_intr_status() argument
[all …]
Dotg.c31 u32 hw_read_otgsc(struct ci_hdrc *ci, u32 mask) in hw_read_otgsc() argument
34 u32 val = hw_read(ci, OP_OTGSC, mask); in hw_read_otgsc()
40 cable = &ci->platdata->vbus_extcon; in hw_read_otgsc()
55 cable = &ci->platdata->id_extcon; in hw_read_otgsc()
78 void hw_write_otgsc(struct ci_hdrc *ci, u32 mask, u32 data) in hw_write_otgsc() argument
80 hw_write(ci, OP_OTGSC, mask | OTGSC_INT_STATUS_BITS, data); in hw_write_otgsc()
87 enum ci_role ci_otg_role(struct ci_hdrc *ci) in ci_otg_role() argument
89 enum ci_role role = hw_read_otgsc(ci, OTGSC_ID) in ci_otg_role()
96 void ci_handle_vbus_change(struct ci_hdrc *ci) in ci_handle_vbus_change() argument
98 if (!ci->is_otg) in ci_handle_vbus_change()
[all …]
Dudc.c66 static inline int ep_to_bit(struct ci_hdrc *ci, int n) in ep_to_bit() argument
68 int fill = 16 - ci->hw_ep_max / 2; in ep_to_bit()
70 if (n >= ci->hw_ep_max / 2) in ep_to_bit()
82 static int hw_device_state(struct ci_hdrc *ci, u32 dma) in hw_device_state() argument
85 hw_write(ci, OP_ENDPTLISTADDR, ~0, dma); in hw_device_state()
87 hw_write(ci, OP_USBINTR, ~0, in hw_device_state()
90 hw_write(ci, OP_USBINTR, ~0, 0); in hw_device_state()
102 static int hw_ep_flush(struct ci_hdrc *ci, int num, int dir) in hw_ep_flush() argument
108 hw_write(ci, OP_ENDPTFLUSH, ~0, BIT(n)); in hw_ep_flush()
109 while (hw_read(ci, OP_ENDPTFLUSH, BIT(n))) in hw_ep_flush()
[all …]
Dhost.c47 struct ci_hdrc *ci = dev_get_drvdata(dev); in ehci_ci_portpower() local
69 if (enable && (ci->platdata->phy_mode == USBPHY_INTERFACE_MODE_HSIC)) { in ehci_ci_portpower()
74 hw_port_test_set(ci, 5); in ehci_ci_portpower()
75 hw_port_test_set(ci, 0); in ehci_ci_portpower()
83 struct ci_hdrc *ci = dev_get_drvdata(dev); in ehci_ci_reset() local
90 ci_platform_configure(ci); in ehci_ci_reset()
101 static irqreturn_t host_irq(struct ci_hdrc *ci) in host_irq() argument
103 return usb_hcd_irq(ci->irq, ci->hcd); in host_irq()
106 static int host_start(struct ci_hdrc *ci) in host_start() argument
116 hcd = usb_create_hcd(&ci_ehci_hc_driver, ci->dev, dev_name(ci->dev)); in host_start()
[all …]
Ddebug.c26 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()
66 struct ci_hdrc *ci = s->private; in ci_port_test_show() local
70 pm_runtime_get_sync(ci->dev); in ci_port_test_show()
71 spin_lock_irqsave(&ci->lock, flags); in ci_port_test_show()
72 mode = hw_port_test_get(ci); in ci_port_test_show()
73 spin_unlock_irqrestore(&ci->lock, flags); in ci_port_test_show()
[all …]
Dci.h99 struct ci_hdrc *ci; member
253 static inline struct ci_role_driver *ci_role(struct ci_hdrc *ci) in ci_role() argument
255 BUG_ON(ci->role >= CI_ROLE_END || !ci->roles[ci->role]); in ci_role()
256 return ci->roles[ci->role]; in ci_role()
259 static inline int ci_role_start(struct ci_hdrc *ci, enum ci_role role) in ci_role_start() argument
266 if (!ci->roles[role]) in ci_role_start()
269 ret = ci->roles[role]->start(ci); in ci_role_start()
271 ci->role = role; in ci_role_start()
275 static inline void ci_role_stop(struct ci_hdrc *ci) in ci_role_stop() argument
277 enum ci_role role = ci->role; in ci_role_stop()
[all …]
Dci_hdrc_pci.c25 struct platform_device *ci; member
61 struct ci_hdrc_pci *ci; in ci_hdrc_pci_probe() local
70 ci = devm_kzalloc(&pdev->dev, sizeof(*ci), GFP_KERNEL); in ci_hdrc_pci_probe()
71 if (!ci) in ci_hdrc_pci_probe()
87 ci->phy = usb_phy_generic_register(); in ci_hdrc_pci_probe()
88 if (!ci->phy) in ci_hdrc_pci_probe()
98 ci->ci = ci_hdrc_add_device(&pdev->dev, res, nres, platdata); in ci_hdrc_pci_probe()
99 if (IS_ERR(ci->ci)) { in ci_hdrc_pci_probe()
101 usb_phy_generic_unregister(ci->phy); in ci_hdrc_pci_probe()
102 return PTR_ERR(ci->ci); in ci_hdrc_pci_probe()
[all …]
Dotg.h14 u32 hw_read_otgsc(struct ci_hdrc *ci, u32 mask);
15 void hw_write_otgsc(struct ci_hdrc *ci, u32 mask, u32 data);
16 int ci_hdrc_otg_init(struct ci_hdrc *ci);
17 void ci_hdrc_otg_destroy(struct ci_hdrc *ci);
18 enum ci_role ci_otg_role(struct ci_hdrc *ci);
19 void ci_handle_vbus_change(struct ci_hdrc *ci);
20 static inline void ci_otg_queue_work(struct ci_hdrc *ci) in ci_otg_queue_work() argument
22 disable_irq_nosync(ci->irq); in ci_otg_queue_work()
23 queue_work(ci->wq, &ci->work); in ci_otg_queue_work()
Dotg_fsm.h67 int ci_hdrc_otg_fsm_init(struct ci_hdrc *ci);
68 int ci_otg_fsm_work(struct ci_hdrc *ci);
69 irqreturn_t ci_otg_fsm_irq(struct ci_hdrc *ci);
70 void ci_hdrc_otg_fsm_start(struct ci_hdrc *ci);
71 void ci_hdrc_otg_fsm_remove(struct ci_hdrc *ci);
75 static inline int ci_hdrc_otg_fsm_init(struct ci_hdrc *ci) in ci_hdrc_otg_fsm_init() argument
80 static inline int ci_otg_fsm_work(struct ci_hdrc *ci) in ci_otg_fsm_work() argument
85 static inline irqreturn_t ci_otg_fsm_irq(struct ci_hdrc *ci) in ci_otg_fsm_irq() argument
90 static inline void ci_hdrc_otg_fsm_start(struct ci_hdrc *ci) in ci_hdrc_otg_fsm_start() argument
95 static inline void ci_hdrc_otg_fsm_remove(struct ci_hdrc *ci) in ci_hdrc_otg_fsm_remove() argument
Ddebug.h17 int dbg_create_files(struct ci_hdrc *ci);
18 void dbg_remove_files(struct ci_hdrc *ci);
20 static inline int dbg_create_files(struct ci_hdrc *ci) in dbg_create_files() argument
25 static inline void dbg_remove_files(struct ci_hdrc *ci) in dbg_remove_files() argument
Dhost.h6 int ci_hdrc_host_init(struct ci_hdrc *ci);
7 void ci_hdrc_host_destroy(struct ci_hdrc *ci);
12 static inline int ci_hdrc_host_init(struct ci_hdrc *ci) in ci_hdrc_host_init() argument
17 static inline void ci_hdrc_host_destroy(struct ci_hdrc *ci) in ci_hdrc_host_destroy() argument
Dci_hdrc_msm.c18 #define MSM_USB_BASE (ci->hw_bank.abs)
20 static void ci_hdrc_msm_notify_event(struct ci_hdrc *ci, unsigned event) in ci_hdrc_msm_notify_event() argument
22 struct device *dev = ci->gadget.dev.parent; in ci_hdrc_msm_notify_event()
29 usb_phy_init(ci->usb_phy); in ci_hdrc_msm_notify_event()
37 usb_phy_notify_disconnect(ci->usb_phy, USB_SPEED_UNKNOWN); in ci_hdrc_msm_notify_event()
Dudc.h86 int ci_hdrc_gadget_init(struct ci_hdrc *ci);
87 void ci_hdrc_gadget_destroy(struct ci_hdrc *ci);
91 static inline int ci_hdrc_gadget_init(struct ci_hdrc *ci) in ci_hdrc_gadget_init() argument
96 static inline void ci_hdrc_gadget_destroy(struct ci_hdrc *ci) in ci_hdrc_gadget_destroy() argument
DKconfig10 When compiled dynamically, the module will be called ci-hdrc.ko.
/linux-4.4.14/arch/microblaze/kernel/cpu/
Dcpuinfo-static.c23 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 …]
Dcpuinfo-pvr-full.c23 #define CI(c, p) { ci->c = PVR_##p(pvr); }
33 void set_cpuinfo_pvr_full(struct cpuinfo *ci, struct device_node *cpu) in set_cpuinfo_pvr_full() argument
40 if (!ci->ver_code) { in set_cpuinfo_pvr_full()
47 if (ci->use_instr != temp) in set_cpuinfo_pvr_full()
49 ci->use_instr = temp; in set_cpuinfo_pvr_full()
52 if (ci->use_mult != temp) in set_cpuinfo_pvr_full()
54 ci->use_mult = temp; in set_cpuinfo_pvr_full()
57 if (ci->use_fpu != temp) in set_cpuinfo_pvr_full()
59 ci->use_fpu = temp; in set_cpuinfo_pvr_full()
61 ci->use_exc = PVR_OPCODE_0x0_ILLEGAL(pvr) | in set_cpuinfo_pvr_full()
[all …]
/linux-4.4.14/fs/ceph/
Dcaps.c310 static struct ceph_cap *__get_cap_for_mds(struct ceph_inode_info *ci, int mds) in __get_cap_for_mds() argument
313 struct rb_node *n = ci->i_caps.rb_node; in __get_cap_for_mds()
327 struct ceph_cap *ceph_get_cap_for_mds(struct ceph_inode_info *ci, int mds) in ceph_get_cap_for_mds() argument
331 spin_lock(&ci->i_ceph_lock); in ceph_get_cap_for_mds()
332 cap = __get_cap_for_mds(ci, mds); in ceph_get_cap_for_mds()
333 spin_unlock(&ci->i_ceph_lock); in ceph_get_cap_for_mds()
340 static int __ceph_get_cap_mds(struct ceph_inode_info *ci) in __ceph_get_cap_mds() argument
347 for (p = rb_first(&ci->i_caps); p; p = rb_next(p)) { in __ceph_get_cap_mds()
360 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_get_cap_mds() local
362 spin_lock(&ci->i_ceph_lock); in ceph_get_cap_mds()
[all …]
Dxattr.c16 static int __remove_xattr(struct ceph_inode_info *ci,
48 size_t (*getxattr_cb)(struct ceph_inode_info *ci, char *val,
51 bool (*exists_cb)(struct ceph_inode_info *ci);
56 static bool ceph_vxattrcb_layout_exists(struct ceph_inode_info *ci) in ceph_vxattrcb_layout_exists() argument
59 char *p = (char *)&ci->i_layout; in ceph_vxattrcb_layout_exists()
61 for (s = 0; s < sizeof(ci->i_layout); s++, p++) in ceph_vxattrcb_layout_exists()
67 static size_t ceph_vxattrcb_layout(struct ceph_inode_info *ci, char *val, in ceph_vxattrcb_layout() argument
71 struct ceph_fs_client *fsc = ceph_sb_to_client(ci->vfs_inode.i_sb); in ceph_vxattrcb_layout()
73 s64 pool = ceph_file_layout_pg_pool(ci->i_layout); in ceph_vxattrcb_layout()
77 dout("ceph_vxattrcb_layout %p\n", &ci->vfs_inode); in ceph_vxattrcb_layout()
[all …]
Dcache.c88 const struct ceph_inode_info* ci = cookie_netfs_data; in ceph_fscache_inode_get_key() local
92 klen = sizeof(ci->i_vino); in ceph_fscache_inode_get_key()
96 memcpy(buffer, &ci->i_vino, klen); in ceph_fscache_inode_get_key()
104 const struct ceph_inode_info* ci = cookie_netfs_data; in ceph_fscache_inode_get_aux() local
105 const struct inode* inode = &ci->vfs_inode; in ceph_fscache_inode_get_aux()
119 const struct ceph_inode_info* ci = cookie_netfs_data; in ceph_fscache_inode_get_attr() local
120 const struct inode* inode = &ci->vfs_inode; in ceph_fscache_inode_get_attr()
129 struct ceph_inode_info* ci = cookie_netfs_data; in ceph_fscache_inode_check_aux() local
130 struct inode* inode = &ci->vfs_inode; in ceph_fscache_inode_check_aux()
142 dout("ceph inode 0x%p cached okay", ci); in ceph_fscache_inode_check_aux()
[all …]
Dinode.c76 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_get_snapdir() local
86 ci->i_snap_caps = CEPH_CAP_PIN; /* so we can open */ in ceph_get_snapdir()
87 ci->i_rbytes = 0; in ceph_get_snapdir()
115 static struct ceph_inode_frag *__get_or_create_frag(struct ceph_inode_info *ci, in __get_or_create_frag() argument
123 p = &ci->i_fragtree.rb_node; in __get_or_create_frag()
139 "frag %x\n", &ci->vfs_inode, in __get_or_create_frag()
140 ceph_vinop(&ci->vfs_inode), f); in __get_or_create_frag()
149 rb_insert_color(&frag->node, &ci->i_fragtree); in __get_or_create_frag()
152 ceph_vinop(&ci->vfs_inode), f); in __get_or_create_frag()
159 struct ceph_inode_frag *__ceph_find_frag(struct ceph_inode_info *ci, u32 f) in __ceph_find_frag() argument
[all …]
Dsuper.h121 struct ceph_inode_info *ci; member
157 struct ceph_inode_info *ci; member
448 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_ino_compare() local
449 return ci->i_vino.ino == pvino->ino && in ceph_ino_compare()
450 ci->i_vino.snap == pvino->snap; in ceph_ino_compare()
473 static inline void __ceph_dir_set_complete(struct ceph_inode_info *ci, in __ceph_dir_set_complete() argument
478 atomic64_set(&ci->i_complete_seq[0], release_count); in __ceph_dir_set_complete()
479 atomic64_set(&ci->i_complete_seq[1], ordered_count); in __ceph_dir_set_complete()
482 static inline void __ceph_dir_clear_complete(struct ceph_inode_info *ci) in __ceph_dir_clear_complete() argument
484 atomic64_inc(&ci->i_release_count); in __ceph_dir_clear_complete()
[all …]
Dcache.h37 void ceph_fscache_inode_init(struct ceph_inode_info *ci);
39 struct ceph_inode_info* ci);
40 void ceph_fscache_unregister_inode_cookie(struct ceph_inode_info* ci);
53 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_fscache_update_objectsize() local
54 fscache_attr_changed(ci->fscache); in ceph_fscache_update_objectsize()
65 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_fscache_uncache_page() local
66 return fscache_uncache_page(ci->fscache, page); in ceph_fscache_uncache_page()
72 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_release_fscache_page() local
73 return fscache_maybe_release_page(ci->fscache, page, gfp); in ceph_release_fscache_page()
79 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_fscache_readpage_cancel() local
[all …]
Daddr.c73 struct ceph_inode_info *ci; in ceph_set_page_dirty() local
88 ci = ceph_inode(inode); in ceph_set_page_dirty()
91 spin_lock(&ci->i_ceph_lock); in ceph_set_page_dirty()
92 BUG_ON(ci->i_wr_ref == 0); // caller should hold Fw reference in ceph_set_page_dirty()
93 if (__ceph_have_pending_cap_snap(ci)) { in ceph_set_page_dirty()
95 list_last_entry(&ci->i_cap_snaps, in ceph_set_page_dirty()
101 BUG_ON(!ci->i_head_snapc); in ceph_set_page_dirty()
102 snapc = ceph_get_snap_context(ci->i_head_snapc); in ceph_set_page_dirty()
103 ++ci->i_wrbuffer_ref_head; in ceph_set_page_dirty()
105 if (ci->i_wrbuffer_ref == 0) in ceph_set_page_dirty()
[all …]
Dsnap.c455 void ceph_queue_cap_snap(struct ceph_inode_info *ci) in ceph_queue_cap_snap() argument
457 struct inode *inode = &ci->vfs_inode; in ceph_queue_cap_snap()
468 spin_lock(&ci->i_ceph_lock); in ceph_queue_cap_snap()
469 used = __ceph_caps_used(ci); in ceph_queue_cap_snap()
470 dirty = __ceph_caps_dirty(ci); in ceph_queue_cap_snap()
472 old_snapc = ci->i_head_snapc; in ceph_queue_cap_snap()
473 new_snapc = ci->i_snap_realm->cached_context; in ceph_queue_cap_snap()
483 if (__ceph_have_pending_cap_snap(ci)) { in ceph_queue_cap_snap()
491 if (ci->i_wrbuffer_ref_head == 0 && in ceph_queue_cap_snap()
512 ci->i_wrbuffer_ref_head == 0) { in ceph_queue_cap_snap()
[all …]
Dfile.c140 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_init_file() local
154 ceph_fscache_register_inode_cookie(mdsc->fsc, ci); in ceph_init_file()
202 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_open() local
231 spin_lock(&ci->i_ceph_lock); in ceph_open()
232 __ceph_get_fmode(ci, fmode); in ceph_open()
233 spin_unlock(&ci->i_ceph_lock); in ceph_open()
242 spin_lock(&ci->i_ceph_lock); in ceph_open()
243 if (__ceph_is_any_real_caps(ci) && in ceph_open()
244 (((fmode & CEPH_FILE_MODE_WR) == 0) || ci->i_auth_cap)) { in ceph_open()
245 int mds_wanted = __ceph_caps_mds_wanted(ci); in ceph_open()
[all …]
Dioctl.c18 struct ceph_inode_info *ci = ceph_inode(file_inode(file)); in ceph_ioctl_get_layout() local
24 l.stripe_unit = ceph_file_layout_su(ci->i_layout); in ceph_ioctl_get_layout()
25 l.stripe_count = ceph_file_layout_stripe_count(ci->i_layout); in ceph_ioctl_get_layout()
26 l.object_size = ceph_file_layout_object_size(ci->i_layout); in ceph_ioctl_get_layout()
27 l.data_pool = le32_to_cpu(ci->i_layout.fl_pg_pool); in ceph_ioctl_get_layout()
69 struct ceph_inode_info *ci = ceph_inode(file_inode(file)); in ceph_ioctl_set_layout() local
85 nl.stripe_count = ceph_file_layout_stripe_count(ci->i_layout); in ceph_ioctl_set_layout()
89 nl.stripe_unit = ceph_file_layout_su(ci->i_layout); in ceph_ioctl_set_layout()
93 nl.object_size = ceph_file_layout_object_size(ci->i_layout); in ceph_ioctl_set_layout()
97 nl.data_pool = ceph_file_layout_pg_pool(ci->i_layout); in ceph_ioctl_set_layout()
[all …]
Ddir.c258 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_readdir() local
293 spin_lock(&ci->i_ceph_lock); in ceph_readdir()
297 __ceph_dir_is_complete_ordered(ci) && in ceph_readdir()
298 __ceph_caps_issued_mask(ci, CEPH_CAP_FILE_SHARED, 1)) { in ceph_readdir()
299 u32 shared_gen = ci->i_shared_gen; in ceph_readdir()
300 spin_unlock(&ci->i_ceph_lock); in ceph_readdir()
307 spin_unlock(&ci->i_ceph_lock); in ceph_readdir()
465 if (atomic64_read(&ci->i_release_count) == fi->dir_release_count) { in ceph_readdir()
466 spin_lock(&ci->i_ceph_lock); in ceph_readdir()
467 if (fi->dir_ordered_count == atomic64_read(&ci->i_ordered_count)) { in ceph_readdir()
[all …]
Dmds_client.c664 struct ceph_inode_info *ci = ceph_inode(req->r_unsafe_dir); in __unregister_request() local
665 spin_lock(&ci->i_unsafe_lock); in __unregister_request()
667 spin_unlock(&ci->i_unsafe_lock); in __unregister_request()
670 struct ceph_inode_info *ci = ceph_inode(req->r_target_inode); in __unregister_request() local
671 spin_lock(&ci->i_unsafe_lock); in __unregister_request()
673 spin_unlock(&ci->i_unsafe_lock); in __unregister_request()
711 struct ceph_inode_info *ci; in __choose_mds() local
766 ci = ceph_inode(inode); in __choose_mds()
772 ceph_choose_frag(ci, hash, &frag, &found); in __choose_mds()
808 spin_lock(&ci->i_ceph_lock); in __choose_mds()
[all …]
Dacl.c35 struct ceph_inode_info *ci = ceph_inode(inode); in ceph_set_cached_acl() local
37 spin_lock(&ci->i_ceph_lock); in ceph_set_cached_acl()
38 if (__ceph_caps_issued_mask(ci, CEPH_CAP_XATTR_SHARED, 0)) in ceph_set_cached_acl()
40 spin_unlock(&ci->i_ceph_lock); in ceph_set_cached_acl()
Dsuper.c631 struct ceph_inode_info *ci = foo; in ceph_inode_init_once() local
632 inode_init_once(&ci->vfs_inode); in ceph_inode_init_once()
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/
Dchip.c248 static void brcmf_chip_sb_corerev(struct brcmf_chip_priv *ci, in brcmf_chip_sb_corerev() argument
253 regdata = ci->ops->read32(ci->ctx, CORE_SB(core->base, sbidhigh)); in brcmf_chip_sb_corerev()
259 struct brcmf_chip_priv *ci; in brcmf_chip_sb_iscoreup() local
263 ci = core->chip; in brcmf_chip_sb_iscoreup()
265 regdata = ci->ops->read32(ci->ctx, address); in brcmf_chip_sb_iscoreup()
273 struct brcmf_chip_priv *ci; in brcmf_chip_ai_iscoreup() local
277 ci = core->chip; in brcmf_chip_ai_iscoreup()
278 regdata = ci->ops->read32(ci->ctx, core->wrapbase + BCMA_IOCTL); in brcmf_chip_ai_iscoreup()
281 regdata = ci->ops->read32(ci->ctx, core->wrapbase + BCMA_RESET_CTL); in brcmf_chip_ai_iscoreup()
290 struct brcmf_chip_priv *ci; in brcmf_chip_sb_coredisable() local
[all …]
Dpcie.c265 struct brcmf_chip *ci; member
398 void __iomem *addr = devinfo->tcm + devinfo->ci->rambase + mem_offset; in brcmf_pcie_read_ram32()
408 void __iomem *addr = devinfo->tcm + devinfo->ci->rambase + mem_offset; in brcmf_pcie_write_ram32()
507 core = brcmf_chip_get_core(devinfo->ci, coreid); in brcmf_pcie_select_core()
544 if (!devinfo->ci) in brcmf_pcie_reset_device()
565 core = brcmf_chip_get_core(devinfo->ci, BCMA_CORE_PCIE2); in brcmf_pcie_reset_device()
600 if (devinfo->ci->chip == BRCM_CC_43602_CHIP_ID) { in brcmf_pcie_enter_download_state()
620 if (devinfo->ci->chip == BRCM_CC_43602_CHIP_ID) { in brcmf_pcie_exit_download_state()
621 core = brcmf_chip_get_core(devinfo->ci, BCMA_CORE_INTERNAL_MEM); in brcmf_pcie_exit_download_state()
625 return !brcmf_chip_set_active(devinfo->ci, resetintr); in brcmf_pcie_exit_download_state()
[all …]
Dsdio.c435 struct brcmf_chip *ci; /* Chip info struct */ member
690 static int brcmf_sdio_get_fwnames(struct brcmf_chip *ci, in brcmf_sdio_get_fwnames() argument
697 if (brcmf_fwname_data[i].chipid == ci->chip && in brcmf_sdio_get_fwnames()
698 brcmf_fwname_data[i].revmsk & BIT(ci->chiprev)) in brcmf_sdio_get_fwnames()
703 brcmf_err("Unknown chipid %d [%d]\n", ci->chip, ci->chiprev); in brcmf_sdio_get_fwnames()
756 core = brcmf_chip_get_core(bus->ci, BCMA_CORE_SDIO_DEV); in r_sdreg32()
767 core = brcmf_chip_get_core(bus->ci, BCMA_CORE_SDIO_DEV); in w_sdreg32()
1093 shaddr = bus->ci->rambase + bus->ci->ramsize - 4; in brcmf_sdio_readshared()
1094 if (!bus->ci->rambase && brcmf_chip_sr_capable(bus->ci)) in brcmf_sdio_readshared()
1095 shaddr -= bus->ci->srsize; in brcmf_sdio_readshared()
[all …]
Dchip.h90 void brcmf_chip_set_passive(struct brcmf_chip *ci);
91 bool brcmf_chip_set_active(struct brcmf_chip *ci, u32 rstvec);
/linux-4.4.14/net/sched/
Dact_connmark.c101 struct tcf_connmark_info *ci; in tcf_connmark_init() local
115 ret = tcf_hash_create(parm->index, est, a, sizeof(*ci), in tcf_connmark_init()
120 ci = to_connmark(a); in tcf_connmark_init()
121 ci->tcf_action = parm->action; in tcf_connmark_init()
122 ci->net = net; in tcf_connmark_init()
123 ci->zone = parm->zone; in tcf_connmark_init()
128 ci = to_connmark(a); in tcf_connmark_init()
135 ci->tcf_action = parm->action; in tcf_connmark_init()
136 ci->zone = parm->zone; in tcf_connmark_init()
146 struct tcf_connmark_info *ci = a->priv; in tcf_connmark_dump() local
[all …]
/linux-4.4.14/arch/x86/pci/
Dacpi.c180 static int setup_mcfg_map(struct acpi_pci_root_info *ci) in setup_mcfg_map() argument
184 struct acpi_pci_root *root = ci->root; in setup_mcfg_map()
185 struct device *dev = &ci->bridge->dev; in setup_mcfg_map()
187 info = container_of(ci, struct pci_root_info, common); in setup_mcfg_map()
214 static void teardown_mcfg_map(struct acpi_pci_root_info *ci) in teardown_mcfg_map() argument
218 info = container_of(ci, struct pci_root_info, common); in teardown_mcfg_map()
226 static int setup_mcfg_map(struct acpi_pci_root_info *ci) in setup_mcfg_map() argument
231 static void teardown_mcfg_map(struct acpi_pci_root_info *ci) in teardown_mcfg_map() argument
254 static int pci_acpi_root_init_info(struct acpi_pci_root_info *ci) in pci_acpi_root_init_info() argument
256 return setup_mcfg_map(ci); in pci_acpi_root_init_info()
[all …]
/linux-4.4.14/drivers/video/fbdev/matrox/
Dg450_pll.c300 static void g450_addcache(struct matrox_pll_cache* ci, unsigned int mnp_key, unsigned int mnp_value… in g450_addcache() argument
301 if (++ci->valid > ARRAY_SIZE(ci->data)) { in g450_addcache()
302 ci->valid = ARRAY_SIZE(ci->data); in g450_addcache()
304 memmove(ci->data + 1, ci->data, (ci->valid - 1) * sizeof(*ci->data)); in g450_addcache()
305 ci->data[0].mnp_key = mnp_key & G450_MNP_FREQBITS; in g450_addcache()
306 ci->data[0].mnp_value = mnp_value; in g450_addcache()
310 struct matrox_pll_cache *ci, unsigned int mnp_key) in g450_checkcache() argument
315 for (i = 0; i < ci->valid; i++) { in g450_checkcache()
316 if (ci->data[i].mnp_key == mnp_key) { in g450_checkcache()
319 mnp = ci->data[i].mnp_value; in g450_checkcache()
[all …]
/linux-4.4.14/drivers/net/arcnet/
Dcom20020-pci.c71 struct com20020_pci_card_info *ci; in led_tx_set() local
76 ci = priv->ci; in led_tx_set()
78 outb(!!value, priv->misc + ci->leds[card->index].green); in led_tx_set()
86 struct com20020_pci_card_info *ci; in led_recon_set() local
91 ci = priv->ci; in led_recon_set()
93 outb(!!value, priv->misc + ci->leds[card->index].red); in led_recon_set()
101 struct com20020_pci_card_info *ci; in com20020pci_probe() local
117 ci = (struct com20020_pci_card_info *)id->driver_data; in com20020pci_probe()
118 priv->ci = ci; in com20020pci_probe()
119 mm = &ci->misc_map; in com20020pci_probe()
[all …]
Dcom20020.h65 struct com20020_pci_card_info *ci; member
/linux-4.4.14/drivers/uwb/
Dallocator.c28 struct uwb_rsv_col_info *ci = ai->ci; in uwb_rsv_fill_column_alloc() local
31 for (col = ci->csi.start_col; col < UWB_NUM_ZONES; col += ci->csi.interval) { in uwb_rsv_fill_column_alloc()
33 safe_mas = ci->csi.safe_mas_per_col; in uwb_rsv_fill_column_alloc()
34 unsafe_mas = ci->csi.unsafe_mas_per_col; in uwb_rsv_fill_column_alloc()
140 struct uwb_rsv_col_info *ci = ai->ci; in uwb_rsv_find_best_column_set() local
141 struct uwb_rsv_col_set_info *csi = &ci->csi; in uwb_rsv_find_best_column_set()
162 if (ci[col].max_avail_safe >= num_safe_mas && in uwb_rsv_find_best_column_set()
163 ci[col].max_avail_unsafe >= n_mas) { in uwb_rsv_find_best_column_set()
164 if (ci[col].highest_mas[n_mas] > max_mas_in_set) in uwb_rsv_find_best_column_set()
165 max_mas_in_set = ci[col].highest_mas[n_mas]; in uwb_rsv_find_best_column_set()
[all …]
Duwb-internal.h162 struct uwb_rsv_col_info ci[UWB_NUM_ZONES]; member
/linux-4.4.14/fs/f2fs/
Dcrypto_key.c90 static void f2fs_free_crypt_info(struct f2fs_crypt_info *ci) in f2fs_free_crypt_info() argument
92 if (!ci) in f2fs_free_crypt_info()
95 key_put(ci->ci_keyring_key); in f2fs_free_crypt_info()
96 crypto_free_ablkcipher(ci->ci_ctfm); in f2fs_free_crypt_info()
97 kmem_cache_free(f2fs_crypt_info_cachep, ci); in f2fs_free_crypt_info()
100 void f2fs_free_encryption_info(struct inode *inode, struct f2fs_crypt_info *ci) in f2fs_free_encryption_info() argument
105 if (ci == NULL) in f2fs_free_encryption_info()
106 ci = ACCESS_ONCE(fi->i_crypt_info); in f2fs_free_encryption_info()
107 if (ci == NULL) in f2fs_free_encryption_info()
109 prev = cmpxchg(&fi->i_crypt_info, ci, NULL); in f2fs_free_encryption_info()
[all …]
Dcrypto_fname.c75 struct f2fs_crypt_info *ci = F2FS_I(inode)->i_crypt_info; in f2fs_fname_encrypt() local
76 struct crypto_ablkcipher *tfm = ci->ci_ctfm; in f2fs_fname_encrypt()
80 int padding = 4 << (ci->ci_flags & F2FS_POLICY_FLAGS_PAD_MASK); in f2fs_fname_encrypt()
154 struct f2fs_crypt_info *ci = F2FS_I(inode)->i_crypt_info; in f2fs_fname_decrypt() local
155 struct crypto_ablkcipher *tfm = ci->ci_ctfm; in f2fs_fname_decrypt()
273 struct f2fs_crypt_info *ci = F2FS_I(inode)->i_crypt_info; in f2fs_fname_crypto_alloc_buffer() local
275 if (ci) in f2fs_fname_crypto_alloc_buffer()
276 padding = 4 << (ci->ci_flags & F2FS_POLICY_FLAGS_PAD_MASK); in f2fs_fname_crypto_alloc_buffer()
351 struct f2fs_crypt_info *ci = F2FS_I(inode)->i_crypt_info; in f2fs_fname_usr_to_disk() local
360 if (ci) { in f2fs_fname_usr_to_disk()
[all …]
Dcrypto_policy.c187 struct f2fs_crypt_info *ci; in f2fs_inherit_context() local
194 ci = F2FS_I(parent)->i_crypt_info; in f2fs_inherit_context()
195 BUG_ON(ci == NULL); in f2fs_inherit_context()
199 ctx.contents_encryption_mode = ci->ci_data_mode; in f2fs_inherit_context()
200 ctx.filenames_encryption_mode = ci->ci_filename_mode; in f2fs_inherit_context()
201 ctx.flags = ci->ci_flags; in f2fs_inherit_context()
202 memcpy(ctx.master_key_descriptor, ci->ci_master_key, in f2fs_inherit_context()
Dcrypto.c112 struct f2fs_crypt_info *ci = F2FS_I(inode)->i_crypt_info; in f2fs_get_crypto_ctx() local
114 if (ci == NULL) in f2fs_get_crypto_ctx()
334 struct f2fs_crypt_info *ci = F2FS_I(inode)->i_crypt_info; in f2fs_page_crypto() local
335 struct crypto_ablkcipher *tfm = ci->ci_ctfm; in f2fs_page_crypto()
Df2fs.h2175 struct f2fs_crypt_info *ci = F2FS_I(inode)->i_crypt_info; in f2fs_get_encryption_info() local
2177 if (!ci || in f2fs_get_encryption_info()
2178 (ci->ci_keyring_key && in f2fs_get_encryption_info()
2179 (ci->ci_keyring_key->flags & ((1 << KEY_FLAG_INVALIDATED) | in f2fs_get_encryption_info()
/linux-4.4.14/fs/ext4/
Dcrypto_key.c86 void ext4_free_crypt_info(struct ext4_crypt_info *ci) in ext4_free_crypt_info() argument
88 if (!ci) in ext4_free_crypt_info()
91 if (ci->ci_keyring_key) in ext4_free_crypt_info()
92 key_put(ci->ci_keyring_key); in ext4_free_crypt_info()
93 crypto_free_ablkcipher(ci->ci_ctfm); in ext4_free_crypt_info()
94 kmem_cache_free(ext4_crypt_info_cachep, ci); in ext4_free_crypt_info()
98 struct ext4_crypt_info *ci) in ext4_free_encryption_info() argument
103 if (ci == NULL) in ext4_free_encryption_info()
104 ci = ACCESS_ONCE(ei->i_crypt_info); in ext4_free_encryption_info()
105 if (ci == NULL) in ext4_free_encryption_info()
[all …]
Dcrypto_fname.c70 struct ext4_crypt_info *ci = EXT4_I(inode)->i_crypt_info; in ext4_fname_encrypt() local
71 struct crypto_ablkcipher *tfm = ci->ci_ctfm; in ext4_fname_encrypt()
75 int padding = 4 << (ci->ci_flags & EXT4_POLICY_FLAGS_PAD_MASK); in ext4_fname_encrypt()
151 struct ext4_crypt_info *ci = EXT4_I(inode)->i_crypt_info; in ext4_fname_decrypt() local
152 struct crypto_ablkcipher *tfm = ci->ci_ctfm; in ext4_fname_decrypt()
264 struct ext4_crypt_info *ci = EXT4_I(inode)->i_crypt_info; in ext4_fname_encrypted_size() local
267 if (ci) in ext4_fname_encrypted_size()
268 padding = 4 << (ci->ci_flags & EXT4_POLICY_FLAGS_PAD_MASK); in ext4_fname_encrypted_size()
373 struct ext4_crypt_info *ci = EXT4_I(inode)->i_crypt_info; in ext4_fname_usr_to_disk() local
385 if (ci) { in ext4_fname_usr_to_disk()
[all …]
Dcrypto_policy.c193 struct ext4_crypt_info *ci; in ext4_inherit_context() local
199 ci = EXT4_I(parent)->i_crypt_info; in ext4_inherit_context()
200 if (ci == NULL) in ext4_inherit_context()
213 ctx.contents_encryption_mode = ci->ci_data_mode; in ext4_inherit_context()
214 ctx.filenames_encryption_mode = ci->ci_filename_mode; in ext4_inherit_context()
215 ctx.flags = ci->ci_flags; in ext4_inherit_context()
216 memcpy(ctx.master_key_descriptor, ci->ci_master_key, in ext4_inherit_context()
Dcrypto.c101 struct ext4_crypt_info *ci = EXT4_I(inode)->i_crypt_info; in ext4_get_crypto_ctx() local
103 if (ci == NULL) in ext4_get_crypto_ctx()
267 struct ext4_crypt_info *ci = EXT4_I(inode)->i_crypt_info; in ext4_page_crypto() local
268 struct crypto_ablkcipher *tfm = ci->ci_ctfm; in ext4_page_crypto()
Dext4.h2330 void ext4_free_crypt_info(struct ext4_crypt_info *ci);
2331 void ext4_free_encryption_info(struct inode *inode, struct ext4_crypt_info *ci);
2339 struct ext4_crypt_info *ci = EXT4_I(inode)->i_crypt_info; in ext4_get_encryption_info() local
2341 if (!ci || in ext4_get_encryption_info()
2342 (ci->ci_keyring_key && in ext4_get_encryption_info()
2343 (ci->ci_keyring_key->flags & ((1 << KEY_FLAG_INVALIDATED) | in ext4_get_encryption_info()
/linux-4.4.14/fs/ubifs/
Dorphan.c826 struct check_info *ci = priv; in dbg_orphan_check() local
831 if (inum != ci->last_ino) { in dbg_orphan_check()
836 ci->last_ino = inum; in dbg_orphan_check()
837 ci->tot_inos += 1; in dbg_orphan_check()
838 err = ubifs_tnc_read_node(c, zbr, ci->node); in dbg_orphan_check()
843 if (ci->node->nlink == 0) in dbg_orphan_check()
845 if (!dbg_find_check_orphan(&ci->root, inum) && in dbg_orphan_check()
849 ci->missing += 1; in dbg_orphan_check()
852 ci->leaf_cnt += 1; in dbg_orphan_check()
856 static int dbg_read_orphans(struct check_info *ci, struct ubifs_scan_leb *sleb) in dbg_read_orphans() argument
[all …]
/linux-4.4.14/arch/s390/kernel/
Dcache.c48 struct cache_info ci[CACHE_MAX_LEVEL]; member
92 static inline enum cache_type get_cache_type(struct cache_info *ci, int level) in get_cache_type() argument
96 ci += level; in get_cache_type()
97 if (ci->scope != CACHE_SCOPE_SHARED && ci->scope != CACHE_SCOPE_PRIVATE) in get_cache_type()
99 return cache_type_map[ci->type]; in get_cache_type()
147 ctype = get_cache_type(&ct.ci[0], level); in init_cache_level()
173 pvt = (ct.ci[level].scope == CACHE_SCOPE_PRIVATE) ? 1 : 0; in populate_cache_leaves()
174 ctype = get_cache_type(&ct.ci[0], level); in populate_cache_leaves()
Dperf_event.c174 struct cpumf_ctr_info ci; in sl_print_counter() local
176 memset(&ci, 0, sizeof(ci)); in sl_print_counter()
177 if (qctri(&ci)) in sl_print_counter()
181 "authorization=%04x\n", ci.cfvn, ci.csvn, ci.auth_ctl); in sl_print_counter()
/linux-4.4.14/net/bluetooth/cmtp/
Dcore.c76 static void __cmtp_copy_session(struct cmtp_session *session, struct cmtp_conninfo *ci) in __cmtp_copy_session() argument
79 memset(ci, 0, sizeof(*ci)); in __cmtp_copy_session()
80 bacpy(&ci->bdaddr, &session->bdaddr); in __cmtp_copy_session()
82 ci->flags = session->flags & valid_flags; in __cmtp_copy_session()
83 ci->state = session->state; in __cmtp_copy_session()
85 ci->num = session->num; in __cmtp_copy_session()
453 struct cmtp_conninfo ci; in cmtp_get_connlist() local
455 __cmtp_copy_session(session, &ci); in cmtp_get_connlist()
457 if (copy_to_user(req->ci, &ci, sizeof(ci))) { in cmtp_get_connlist()
465 req->ci++; in cmtp_get_connlist()
[all …]
Dsock.c71 struct cmtp_conninfo ci; in cmtp_sock_ioctl() local
127 if (copy_from_user(&ci, argp, sizeof(ci))) in cmtp_sock_ioctl()
130 err = cmtp_get_conninfo(&ci); in cmtp_sock_ioctl()
131 if (!err && copy_to_user(argp, &ci, sizeof(ci))) in cmtp_sock_ioctl()
152 cl.ci = compat_ptr(uci); in cmtp_sock_compat_ioctl()
Dcmtp.h58 struct cmtp_conninfo __user *ci; member
64 int cmtp_get_conninfo(struct cmtp_conninfo *ci);
/linux-4.4.14/drivers/scsi/bfa/
Dbfa_hw_cb.c53 bfa_hwcb_rspq_ack_msix(struct bfa_s *bfa, int rspq, u32 ci) in bfa_hwcb_rspq_ack_msix() argument
58 if (bfa_rspq_ci(bfa, rspq) == ci) in bfa_hwcb_rspq_ack_msix()
61 bfa_rspq_ci(bfa, rspq) = ci; in bfa_hwcb_rspq_ack_msix()
62 writel(ci, bfa->iocfc.bfa_regs.rme_q_ci[rspq]); in bfa_hwcb_rspq_ack_msix()
67 bfa_hwcb_rspq_ack(struct bfa_s *bfa, int rspq, u32 ci) in bfa_hwcb_rspq_ack() argument
69 if (bfa_rspq_ci(bfa, rspq) == ci) in bfa_hwcb_rspq_ack()
72 bfa_rspq_ci(bfa, rspq) = ci; in bfa_hwcb_rspq_ack()
73 writel(ci, bfa->iocfc.bfa_regs.rme_q_ci[rspq]); in bfa_hwcb_rspq_ack()
Dbfa_hw_ct.c74 bfa_hwct_rspq_ack(struct bfa_s *bfa, int rspq, u32 ci) in bfa_hwct_rspq_ack() argument
81 bfa_rspq_ci(bfa, rspq) = ci; in bfa_hwct_rspq_ack()
82 writel(ci, bfa->iocfc.bfa_regs.rme_q_ci[rspq]); in bfa_hwct_rspq_ack()
92 bfa_hwct2_rspq_ack(struct bfa_s *bfa, int rspq, u32 ci) in bfa_hwct2_rspq_ack() argument
94 bfa_rspq_ci(bfa, rspq) = ci; in bfa_hwct2_rspq_ack()
95 writel(ci, bfa->iocfc.bfa_regs.rme_q_ci[rspq]); in bfa_hwct2_rspq_ack()
Dbfa.h187 void (*hw_rspq_ack)(struct bfa_s *bfa, int rspq, u32 ci);
321 void bfa_hwcb_rspq_ack(struct bfa_s *bfa, int rspq, u32 ci);
334 void bfa_hwct_rspq_ack(struct bfa_s *bfa, int rspq, u32 ci);
335 void bfa_hwct2_rspq_ack(struct bfa_s *bfa, int rspq, u32 ci);
Dbfi.h545 #define BFI_MSGQ_FULL(_q) (((_q->pi + 1) % _q->q_depth) == _q->ci)
546 #define BFI_MSGQ_EMPTY(_q) (_q->pi == _q->ci)
547 #define BFI_MSGQ_UPDATE_CI(_q) (_q->ci = (_q->ci + 1) % _q->q_depth)
551 #define BFI_MSGQ_FREE_CNT(_q) ((_q->ci - _q->pi - 1) & (_q->q_depth - 1))
Dbfa_core.c719 u32 pi, ci; in bfa_isr_rspq() local
723 ci = bfa_rspq_ci(bfa, qid); in bfa_isr_rspq()
726 ret = (ci != pi); in bfa_isr_rspq()
728 while (ci != pi) { in bfa_isr_rspq()
729 m = bfa_rspq_elem(bfa, qid, ci); in bfa_isr_rspq()
733 CQ_INCR(ci, bfa->iocfc.cfg.drvcfg.num_rspq_elems); in bfa_isr_rspq()
739 bfa_isr_rspq_ack(bfa, qid, ci); in bfa_isr_rspq()
/linux-4.4.14/drivers/net/can/sja1000/
Dplx_pci.c512 struct plx_pci_card_info *ci; in plx_pci_add_card() local
517 ci = (struct plx_pci_card_info *)ent->driver_data; in plx_pci_add_card()
525 ci->name, PCI_SLOT(pdev->devfn)); in plx_pci_add_card()
539 addr = pci_iomap(pdev, ci->conf_map.bar, ci->conf_map.size); in plx_pci_add_card()
543 "(BAR%d)\n", ci->conf_map.bar); in plx_pci_add_card()
546 card->conf_addr = addr + ci->conf_map.offset; in plx_pci_add_card()
548 ci->reset_func(pdev); in plx_pci_add_card()
549 card->reset_func = ci->reset_func; in plx_pci_add_card()
552 for (i = 0; i < ci->channel_count; i++) { in plx_pci_add_card()
553 struct plx_pci_channel_map *cm = &ci->chan_map_tbl[i]; in plx_pci_add_card()
[all …]
/linux-4.4.14/drivers/net/ethernet/broadcom/
Dbgmac.c829 struct bcma_chipinfo *ci = &bgmac->core->bus->chipinfo; in bgmac_phy_init() local
833 if (ci->id == BCMA_CHIP_ID_BCM5356) { in bgmac_phy_init()
842 if ((ci->id == BCMA_CHIP_ID_BCM5357 && ci->pkg != 10) || in bgmac_phy_init()
843 (ci->id == BCMA_CHIP_ID_BCM4749 && ci->pkg != 10) || in bgmac_phy_init()
844 (ci->id == BCMA_CHIP_ID_BCM53572 && ci->pkg != 9)) { in bgmac_phy_init()
985 struct bcma_chipinfo *ci = &core->bus->chipinfo; in bgmac_miiconfig() local
988 if (ci->id == BCMA_CHIP_ID_BCM4707 || in bgmac_miiconfig()
989 ci->id == BCMA_CHIP_ID_BCM53018) { in bgmac_miiconfig()
1012 struct bcma_chipinfo *ci = &bus->chipinfo; in bgmac_chip_reset() local
1036 if ((ci->id == BCMA_CHIP_ID_BCM5357 && ci->pkg == BCMA_PKG_ID_BCM47186) || in bgmac_chip_reset()
[all …]
/linux-4.4.14/drivers/firewire/
Dcore-device.c47 void fw_csr_iterator_init(struct fw_csr_iterator *ci, const u32 *p) in fw_csr_iterator_init() argument
49 ci->p = p + 1; in fw_csr_iterator_init()
50 ci->end = ci->p + (p[0] >> 16); in fw_csr_iterator_init()
54 int fw_csr_iterator_next(struct fw_csr_iterator *ci, int *key, int *value) in fw_csr_iterator_next() argument
56 *key = *ci->p >> 24; in fw_csr_iterator_next()
57 *value = *ci->p & 0xffffff; in fw_csr_iterator_next()
59 return ci->p++ < ci->end; in fw_csr_iterator_next()
65 struct fw_csr_iterator ci; in search_leaf() local
68 fw_csr_iterator_init(&ci, directory); in search_leaf()
69 while (fw_csr_iterator_next(&ci, &key, &value)) { in search_leaf()
[all …]
Dsbp2.c1019 struct fw_csr_iterator ci; in sbp2_scan_logical_unit_dir() local
1022 fw_csr_iterator_init(&ci, directory); in sbp2_scan_logical_unit_dir()
1023 while (fw_csr_iterator_next(&ci, &key, &value)) in sbp2_scan_logical_unit_dir()
1033 struct fw_csr_iterator ci; in sbp2_scan_unit_dir() local
1036 fw_csr_iterator_init(&ci, directory); in sbp2_scan_unit_dir()
1037 while (fw_csr_iterator_next(&ci, &key, &value)) { in sbp2_scan_unit_dir()
1068 sbp2_get_unit_unique_id(tgt, ci.p - 1 + value); in sbp2_scan_unit_dir()
1073 if (sbp2_scan_logical_unit_dir(tgt, ci.p - 1 + value) < 0) in sbp2_scan_unit_dir()
/linux-4.4.14/drivers/media/usb/dvb-usb-v2/
Danysee.c1168 static int anysee_ci_read_attribute_mem(struct dvb_ca_en50221 *ci, int slot, in anysee_ci_read_attribute_mem() argument
1171 struct dvb_usb_device *d = ci->data; in anysee_ci_read_attribute_mem()
1183 static int anysee_ci_write_attribute_mem(struct dvb_ca_en50221 *ci, int slot, in anysee_ci_write_attribute_mem() argument
1186 struct dvb_usb_device *d = ci->data; in anysee_ci_write_attribute_mem()
1197 static int anysee_ci_read_cam_control(struct dvb_ca_en50221 *ci, int slot, in anysee_ci_read_cam_control() argument
1200 struct dvb_usb_device *d = ci->data; in anysee_ci_read_cam_control()
1212 static int anysee_ci_write_cam_control(struct dvb_ca_en50221 *ci, int slot, in anysee_ci_write_cam_control() argument
1215 struct dvb_usb_device *d = ci->data; in anysee_ci_write_cam_control()
1226 static int anysee_ci_slot_reset(struct dvb_ca_en50221 *ci, int slot) in anysee_ci_slot_reset() argument
1228 struct dvb_usb_device *d = ci->data; in anysee_ci_slot_reset()
[all …]
Danysee.h64 struct dvb_ca_en50221 ci; member
/linux-4.4.14/drivers/net/ppp/
Dppp_mppe.h33 #define MPPE_OPTS_TO_CI(opts, ci) \ argument
35 u_char *ptr = ci; /* u_char[4] */ \
55 #define MPPE_CI_TO_OPTS(ci, opts) \ argument
57 u_char *ptr = ci; /* u_char[4] */ \
/linux-4.4.14/net/bluetooth/bnep/
Dsock.c57 struct bnep_conninfo ci; in bnep_sock_ioctl() local
115 if (copy_from_user(&ci, argp, sizeof(ci))) in bnep_sock_ioctl()
118 err = bnep_get_conninfo(&ci); in bnep_sock_ioctl()
119 if (!err && copy_to_user(argp, &ci, sizeof(ci))) in bnep_sock_ioctl()
149 cl.ci = compat_ptr(uci); in bnep_sock_compat_ioctl()
Dcore.c674 static void __bnep_copy_ci(struct bnep_conninfo *ci, struct bnep_session *s) in __bnep_copy_ci() argument
678 memset(ci, 0, sizeof(*ci)); in __bnep_copy_ci()
679 memcpy(ci->dst, s->eh.h_source, ETH_ALEN); in __bnep_copy_ci()
680 strcpy(ci->device, s->dev->name); in __bnep_copy_ci()
681 ci->flags = s->flags & valid_flags; in __bnep_copy_ci()
682 ci->state = s->state; in __bnep_copy_ci()
683 ci->role = s->role; in __bnep_copy_ci()
694 struct bnep_conninfo ci; in bnep_get_connlist() local
696 __bnep_copy_ci(&ci, s); in bnep_get_connlist()
698 if (copy_to_user(req->ci, &ci, sizeof(ci))) { in bnep_get_connlist()
[all …]
Dbnep.h141 struct bnep_conninfo __user *ci; member
152 int bnep_get_conninfo(struct bnep_conninfo *ci);
/linux-4.4.14/fs/nilfs2/
Dcpfile.c424 struct nilfs_cpinfo *ci) in nilfs_cpfile_checkpoint_to_cpinfo() argument
426 ci->ci_flags = le32_to_cpu(cp->cp_flags); in nilfs_cpfile_checkpoint_to_cpinfo()
427 ci->ci_cno = le64_to_cpu(cp->cp_cno); in nilfs_cpfile_checkpoint_to_cpinfo()
428 ci->ci_create = le64_to_cpu(cp->cp_create); in nilfs_cpfile_checkpoint_to_cpinfo()
429 ci->ci_nblk_inc = le64_to_cpu(cp->cp_nblk_inc); in nilfs_cpfile_checkpoint_to_cpinfo()
430 ci->ci_inodes_count = le64_to_cpu(cp->cp_inodes_count); in nilfs_cpfile_checkpoint_to_cpinfo()
431 ci->ci_blocks_count = le64_to_cpu(cp->cp_blocks_count); in nilfs_cpfile_checkpoint_to_cpinfo()
432 ci->ci_next = le64_to_cpu(cp->cp_snapshot_list.ssl_next); in nilfs_cpfile_checkpoint_to_cpinfo()
439 struct nilfs_cpinfo *ci = buf; in nilfs_cpfile_do_get_cpinfo() local
466 ci); in nilfs_cpfile_do_get_cpinfo()
[all …]
/linux-4.4.14/drivers/atm/
Datmtcp.c158 struct atm_cirange ci; in atmtcp_v_ioctl() local
164 if (copy_from_user(&ci, arg,sizeof(ci))) return -EFAULT; in atmtcp_v_ioctl()
165 if (ci.vpi_bits == ATM_CI_MAX) ci.vpi_bits = MAX_VPI_BITS; in atmtcp_v_ioctl()
166 if (ci.vci_bits == ATM_CI_MAX) ci.vci_bits = MAX_VCI_BITS; in atmtcp_v_ioctl()
167 if (ci.vpi_bits > MAX_VPI_BITS || ci.vpi_bits < 0 || in atmtcp_v_ioctl()
168 ci.vci_bits > MAX_VCI_BITS || ci.vci_bits < 0) return -EINVAL; in atmtcp_v_ioctl()
177 if ((vcc->vpi >> ci.vpi_bits) || in atmtcp_v_ioctl()
178 (vcc->vci >> ci.vci_bits)) { in atmtcp_v_ioctl()
185 dev->ci_range = ci; in atmtcp_v_ioctl()
Deni.c2020 struct atm_cirange ci; in eni_ioctl() local
2022 if (copy_from_user(&ci, arg,sizeof(struct atm_cirange))) in eni_ioctl()
2024 if ((ci.vpi_bits == 0 || ci.vpi_bits == ATM_CI_MAX) && in eni_ioctl()
2025 (ci.vci_bits == NR_VCI_LD || ci.vpi_bits == ATM_CI_MAX)) in eni_ioctl()
/linux-4.4.14/drivers/isdn/hardware/mISDN/
DmISDNinfineon.c110 const struct inf_cinfo *ci; member
407 switch (hw->ci->typ) { in enable_hwirq()
451 switch (hw->ci->typ) { in disable_hwirq()
504 switch (hw->ci->typ) { in reset_inf()
612 if (!hw->ci->irqfunc) in init_irq()
614 ret = request_irq(hw->irq, hw->ci->irqfunc, IRQF_SHARED, hw->name, hw); in init_irq()
670 if (hw->ci->cfg_mode) { in setup_io()
671 hw->cfg.start = pci_resource_start(hw->pdev, hw->ci->cfg_bar); in setup_io()
672 hw->cfg.size = pci_resource_len(hw->pdev, hw->ci->cfg_bar); in setup_io()
673 if (hw->ci->cfg_mode == AM_MEMIO) { in setup_io()
[all …]
Dhfcmulti.c4533 int pt, ci, i = 0; in release_port() local
4537 ci = dch->slot; in release_port()
4538 pt = hc->chan[ci].port; in release_port()
4557 hc->chan[ci].dch = NULL; in release_port()
4599 ~(1 << hc->chan[ci].port); in release_port()
4603 if (hc->chan[ci - 2].bch) { in release_port()
4607 __func__, hc->chan[ci - 2].port + 1, in release_port()
4608 ci - 2); in release_port()
4609 pb = hc->chan[ci - 2].bch; in release_port()
4610 hc->chan[ci - 2].bch = NULL; in release_port()
[all …]
/linux-4.4.14/drivers/md/
Ddm.c1541 static struct dm_target_io *alloc_tio(struct clone_info *ci, in alloc_tio() argument
1548 clone = bio_alloc_bioset(GFP_NOIO, 0, ci->md->bs); in alloc_tio()
1551 tio->io = ci->io; in alloc_tio()
1558 static void __clone_and_map_simple_bio(struct clone_info *ci, in __clone_and_map_simple_bio() argument
1562 struct dm_target_io *tio = alloc_tio(ci, ti, target_bio_nr); in __clone_and_map_simple_bio()
1567 __bio_clone_fast(clone, ci->bio); in __clone_and_map_simple_bio()
1569 bio_setup_sector(clone, ci->sector, *len); in __clone_and_map_simple_bio()
1574 static void __send_duplicate_bios(struct clone_info *ci, struct dm_target *ti, in __send_duplicate_bios() argument
1580 __clone_and_map_simple_bio(ci, ti, target_bio_nr, len); in __send_duplicate_bios()
1583 static int __send_empty_flush(struct clone_info *ci) in __send_empty_flush() argument
[all …]
/linux-4.4.14/net/bluetooth/hidp/
Dsock.c55 struct hidp_conninfo ci; in hidp_sock_ioctl() local
112 if (copy_from_user(&ci, argp, sizeof(ci))) in hidp_sock_ioctl()
115 err = hidp_get_conninfo(&ci); in hidp_sock_ioctl()
116 if (!err && copy_to_user(argp, &ci, sizeof(ci))) in hidp_sock_ioctl()
153 cl.ci = compat_ptr(uci); in hidp_sock_compat_ioctl()
Dcore.c71 static void hidp_copy_session(struct hidp_session *session, struct hidp_conninfo *ci) in hidp_copy_session() argument
74 memset(ci, 0, sizeof(*ci)); in hidp_copy_session()
75 bacpy(&ci->bdaddr, &session->bdaddr); in hidp_copy_session()
77 ci->flags = session->flags & valid_flags; in hidp_copy_session()
78 ci->state = BT_CONNECTED; in hidp_copy_session()
81 ci->vendor = session->input->id.vendor; in hidp_copy_session()
82 ci->product = session->input->id.product; in hidp_copy_session()
83 ci->version = session->input->id.version; in hidp_copy_session()
85 strlcpy(ci->name, session->input->name, 128); in hidp_copy_session()
87 strlcpy(ci->name, "HID Boot Device", 128); in hidp_copy_session()
[all …]
Dhidp.h122 struct hidp_conninfo __user *ci; member
128 int hidp_get_conninfo(struct hidp_conninfo *ci);
/linux-4.4.14/drivers/mfd/
Dstmpe.c40 ret = stmpe->ci->read_byte(stmpe, reg); in __stmpe_reg_read()
55 ret = stmpe->ci->write_byte(stmpe, reg, val); in __stmpe_reg_write()
81 ret = stmpe->ci->read_block(stmpe, reg, length, values); in __stmpe_block_read()
99 ret = stmpe->ci->write_block(stmpe, reg, length, values); in __stmpe_block_write()
1153 int stmpe_probe(struct stmpe_client_info *ci, enum stmpe_partnum partnum) in stmpe_probe() argument
1155 struct stmpe_platform_data *pdata = dev_get_platdata(ci->dev); in stmpe_probe()
1156 struct device_node *np = ci->dev->of_node; in stmpe_probe()
1164 pdata = devm_kzalloc(ci->dev, sizeof(*pdata), GFP_KERNEL); in stmpe_probe()
1171 ci->irq = -1; in stmpe_probe()
1174 stmpe = devm_kzalloc(ci->dev, sizeof(struct stmpe), GFP_KERNEL); in stmpe_probe()
[all …]
Dstmpe.h100 int stmpe_probe(struct stmpe_client_info *ci, enum stmpe_partnum partnum);
Drtsx_pcr.c269 ptr += pcr->ci; in rtsx_pci_add_cmd()
270 if (pcr->ci < (HOST_CMDS_BUF_LEN / 4)) { in rtsx_pci_add_cmd()
273 pcr->ci++; in rtsx_pci_add_cmd()
285 val |= (u32)(pcr->ci * 4) & 0x00FFFFFF; in rtsx_pci_send_cmd_no_wait()
309 val |= (u32)(pcr->ci * 4) & 0x00FFFFFF; in rtsx_pci_send_cmd()
/linux-4.4.14/include/linux/mlx4/
Dcq.h145 u32 ci; in mlx4_cq_arm() local
148 ci = cq->cons_index & 0xffffff; in mlx4_cq_arm()
150 *cq->arm_db = cpu_to_be32(sn << 28 | cmd | ci); in mlx4_cq_arm()
159 doorbell[1] = cpu_to_be32(ci); in mlx4_cq_arm()
/linux-4.4.14/include/linux/mlx5/
Dcq.h145 u32 ci; in mlx5_cq_arm() local
148 ci = cons_index & 0xffffff; in mlx5_cq_arm()
150 *cq->arm_db = cpu_to_be32(sn << 28 | cmd | ci); in mlx5_cq_arm()
157 doorbell[0] = cpu_to_be32(sn << 28 | cmd | ci); in mlx5_cq_arm()
/linux-4.4.14/arch/m32r/kernel/
Dsmpboot.c548 struct cpuinfo_m32r *ci = cpu_data + cpu_id; in smp_store_cpu_info() local
550 *ci = boot_cpu_data; in smp_store_cpu_info()
551 ci->loops_per_jiffy = loops_per_jiffy; in smp_store_cpu_info()
556 struct cpuinfo_m32r *ci = &cpu_data[cpu_id]; in show_cpu_info() local
564 PRINT_CLOCK("CPU", (int)ci->cpu_clock); in show_cpu_info()
565 PRINT_CLOCK(", Bus", (int)ci->bus_clock); in show_cpu_info()
566 printk(", loops_per_jiffy[%ld]\n", ci->loops_per_jiffy); in show_cpu_info()
/linux-4.4.14/tools/perf/util/
Dhelp.c54 size_t ci, cj, ei; in exclude_cmds() local
57 ci = cj = ei = 0; in exclude_cmds()
58 while (ci < cmds->cnt && ei < excludes->cnt) { in exclude_cmds()
59 cmp = strcmp(cmds->names[ci]->name, excludes->names[ei]->name); in exclude_cmds()
61 cmds->names[cj++] = cmds->names[ci++]; in exclude_cmds()
63 ci++, ei++; in exclude_cmds()
68 while (ci < cmds->cnt) in exclude_cmds()
69 cmds->names[cj++] = cmds->names[ci++]; in exclude_cmds()
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/
Dphy-ctxt.c150 cmd->ci.band = (chandef->chan->band == IEEE80211_BAND_2GHZ ? in iwl_mvm_phy_ctxt_cmd_data()
153 cmd->ci.channel = chandef->chan->hw_value; in iwl_mvm_phy_ctxt_cmd_data()
154 cmd->ci.width = iwl_mvm_get_channel_width(chandef); in iwl_mvm_phy_ctxt_cmd_data()
155 cmd->ci.ctrl_pos = iwl_mvm_get_ctrl_pos(chandef); in iwl_mvm_phy_ctxt_cmd_data()
Dtdls.c447 cmd.ci.band = (chandef->chan->band == IEEE80211_BAND_2GHZ ? in iwl_mvm_tdls_config_channel_switch()
449 cmd.ci.channel = chandef->chan->hw_value; in iwl_mvm_tdls_config_channel_switch()
450 cmd.ci.width = iwl_mvm_get_channel_width(chandef); in iwl_mvm_tdls_config_channel_switch()
451 cmd.ci.ctrl_pos = iwl_mvm_get_ctrl_pos(chandef); in iwl_mvm_tdls_config_channel_switch()
Dfw-api.h1012 struct iwl_fw_channel_info ci; member
1661 struct iwl_fw_channel_info ci; member
/linux-4.4.14/drivers/s390/cio/
Dchsc_sch.c651 struct chsc_conf_info *ci; in chsc_ioctl_conf_info() local
671 ci = kzalloc(sizeof(*ci), GFP_KERNEL); in chsc_ioctl_conf_info()
672 if (!ci) { in chsc_ioctl_conf_info()
676 if (copy_from_user(ci, user_ci, sizeof(*ci))) { in chsc_ioctl_conf_info()
682 sci_area->m = ci->id.m; in chsc_ioctl_conf_info()
683 sci_area->fmt1 = ci->fmt; in chsc_ioctl_conf_info()
684 sci_area->cssid = ci->id.cssid; in chsc_ioctl_conf_info()
685 sci_area->ssid = ci->id.ssid; in chsc_ioctl_conf_info()
698 memcpy(&ci->scid, &sci_area->response, sci_area->response.length); in chsc_ioctl_conf_info()
699 if (copy_to_user(user_ci, ci, sizeof(*ci))) in chsc_ioctl_conf_info()
[all …]
/linux-4.4.14/net/bluetooth/
Dhci_conn.c1412 struct hci_conn_info *ci; in hci_get_conn_list() local
1419 if (!req.conn_num || req.conn_num > (PAGE_SIZE * 2) / sizeof(*ci)) in hci_get_conn_list()
1422 size = sizeof(req) + req.conn_num * sizeof(*ci); in hci_get_conn_list()
1434 ci = cl->conn_info; in hci_get_conn_list()
1438 bacpy(&(ci + n)->bdaddr, &c->dst); in hci_get_conn_list()
1439 (ci + n)->handle = c->handle; in hci_get_conn_list()
1440 (ci + n)->type = c->type; in hci_get_conn_list()
1441 (ci + n)->out = c->out; in hci_get_conn_list()
1442 (ci + n)->state = c->state; in hci_get_conn_list()
1443 (ci + n)->link_mode = get_link_mode(c); in hci_get_conn_list()
[all …]
/linux-4.4.14/include/linux/usb/
Dchipidea.h26 struct ci_hdrc *ci; member
61 void (*notify_event) (struct ci_hdrc *ci, unsigned event);
/linux-4.4.14/sound/aoa/soundbus/i2sbus/
Dpcm.c882 struct codec_info *ci, void *data) in i2sbus_attach_codec() argument
899 if (!ci->transfers || !ci->transfers->formats in i2sbus_attach_codec()
900 || !ci->transfers->rates || !ci->usable) in i2sbus_attach_codec()
905 if (ci->bus_factor != 32 && ci->bus_factor != 64) in i2sbus_attach_codec()
912 if (cii->codec->sysclock_factor != ci->sysclock_factor) { in i2sbus_attach_codec()
917 if (cii->codec->bus_factor != ci->bus_factor) { in i2sbus_attach_codec()
924 tmp = ci->transfers; in i2sbus_attach_codec()
941 cii->codec = ci; in i2sbus_attach_codec()
957 if (!try_module_get(ci->owner)) { in i2sbus_attach_codec()
1037 module_put(ci->owner); in i2sbus_attach_codec()
Di2sbus.h99 struct codec_info *ci, void *data);
/linux-4.4.14/arch/ia64/pci/
Dpci.c234 static int pci_acpi_root_prepare_resources(struct acpi_pci_root_info *ci) in pci_acpi_root_prepare_resources() argument
236 struct device *dev = &ci->bridge->dev; in pci_acpi_root_prepare_resources()
242 status = acpi_pci_probe_root_resources(ci); in pci_acpi_root_prepare_resources()
244 info = container_of(ci, struct pci_root_info, common); in pci_acpi_root_prepare_resources()
245 resource_list_for_each_entry_safe(entry, tmp, &ci->resources) { in pci_acpi_root_prepare_resources()
271 static void pci_acpi_root_release_info(struct acpi_pci_root_info *ci) in pci_acpi_root_release_info() argument
276 info = container_of(ci, struct pci_root_info, common); in pci_acpi_root_release_info()
/linux-4.4.14/drivers/crypto/nx/
Dnx-842-powernv.c50 unsigned int ci; member
529 unsigned int ct, ci; in nx842_powernv_probe() local
548 ci = be32_to_cpu(*(unsigned int *)ci_prop->value); in nx842_powernv_probe()
556 coproc->ci = ci; in nx842_powernv_probe()
560 pr_info("coprocessor found on chip %d, CT %d CI %d\n", chip_id, ct, ci); in nx842_powernv_probe()
/linux-4.4.14/arch/microblaze/include/asm/
Dcpuinfo.h96 void set_cpuinfo_static(struct cpuinfo *ci, struct device_node *cpu);
97 void set_cpuinfo_pvr_full(struct cpuinfo *ci, struct device_node *cpu);
/linux-4.4.14/drivers/bcma/
Ddriver_pcie2.c161 struct bcma_chipinfo *ci = &bus->chipinfo; in bcma_core_pcie2_init() local
178 if (ci->id == BCMA_CHIP_ID_BCM4360 && ci->rev > 3) in bcma_core_pcie2_init()
/linux-4.4.14/drivers/usb/storage/
Duas.c179 struct uas_cmd_info *ci = (void *)&cmnd->SCp; in uas_log_cmd_state() local
185 (ci->state & SUBMIT_STATUS_URB) ? " s-st" : "", in uas_log_cmd_state()
186 (ci->state & ALLOC_DATA_IN_URB) ? " a-in" : "", in uas_log_cmd_state()
187 (ci->state & SUBMIT_DATA_IN_URB) ? " s-in" : "", in uas_log_cmd_state()
188 (ci->state & ALLOC_DATA_OUT_URB) ? " a-out" : "", in uas_log_cmd_state()
189 (ci->state & SUBMIT_DATA_OUT_URB) ? " s-out" : "", in uas_log_cmd_state()
190 (ci->state & ALLOC_CMD_URB) ? " a-cmd" : "", in uas_log_cmd_state()
191 (ci->state & SUBMIT_CMD_URB) ? " s-cmd" : "", in uas_log_cmd_state()
192 (ci->state & COMMAND_INFLIGHT) ? " CMD" : "", in uas_log_cmd_state()
193 (ci->state & DATA_IN_URB_INFLIGHT) ? " IN" : "", in uas_log_cmd_state()
[all …]
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/
Den_txrx.c38 u32 ci = mlx5_cqwq_get_ci(wq); in mlx5e_get_cqe() local
39 struct mlx5_cqe64 *cqe = mlx5_cqwq_get_wqe(wq, ci); in mlx5e_get_cqe()
Den_tx.c356 u16 ci; in mlx5e_poll_tx_cq() local
361 ci = sqcc & sq->wq.sz_m1; in mlx5e_poll_tx_cq()
362 skb = sq->skb[ci]; in mlx5e_poll_tx_cq()
/linux-4.4.14/arch/mn10300/kernel/
Dsmp.c727 struct mn10300_cpuinfo *ci = &cpu_data[cpu]; in smp_store_cpu_info() local
729 *ci = boot_cpu_data; in smp_store_cpu_info()
730 ci->loops_per_jiffy = loops_per_jiffy; in smp_store_cpu_info()
731 ci->type = CPUREV; in smp_store_cpu_info()
823 struct mn10300_cpuinfo *ci = &cpu_data[cpu]; in smp_show_cpu_info() local
830 ci->loops_per_jiffy / (500000 / HZ), in smp_show_cpu_info()
831 (ci->loops_per_jiffy / (5000 / HZ)) % 100); in smp_show_cpu_info()
/linux-4.4.14/drivers/scsi/
Dstex.c1517 const struct st_card_info *ci = NULL; in stex_probe() local
1562 ci = &stex_card_info[hba->cardtype]; in stex_probe()
1563 sts_offset = scratch_offset = (ci->rq_count+1) * ci->rq_size; in stex_probe()
1565 sts_offset += (ci->sts_count+1) * sizeof(u32); in stex_probe()
1566 cp_offset = sts_offset + (ci->sts_count+1) * sizeof(struct status_msg); in stex_probe()
1596 hba->ccb = kcalloc(ci->rq_count, sizeof(struct st_ccb), GFP_KERNEL); in stex_probe()
1608 hba->rq_count = ci->rq_count; in stex_probe()
1609 hba->rq_size = ci->rq_size; in stex_probe()
1610 hba->sts_count = ci->sts_count; in stex_probe()
1611 hba->alloc_rq = ci->alloc_rq; in stex_probe()
[all …]
/linux-4.4.14/drivers/scsi/esas2r/
Desas2r_ioctl.c342 union atto_ioctl_csmi *ci, in csmi_ioctl_tunnel() argument
363 rq->aux_req_cx = ci; in csmi_ioctl_tunnel()
394 struct atto_csmi *ci = (struct atto_csmi *)context; in csmi_ioctl_callback() local
404 if (ci->control_code == CSMI_CC_GET_DEV_ADDR) { in csmi_ioctl_callback()
405 struct atto_csmi_get_dev_addr *gda = &ci->data.dev_addr; in csmi_ioctl_callback()
410 } else if (ci->control_code == CSMI_CC_TASK_MGT) { in csmi_ioctl_callback()
411 struct atto_csmi_task_mgmt *tm = &ci->data.tsk_mgt; in csmi_ioctl_callback()
427 switch (ci->control_code) { in csmi_ioctl_callback()
515 ci->control_code, in csmi_ioctl_callback()
586 ci->control_code, in csmi_ioctl_callback()
[all …]
Desas2r_main.c1489 struct atto_vda_cfg_init *ci; in esas2r_nuxi_cfg_data() local
1496 ci = (struct atto_vda_cfg_init *)data; in esas2r_nuxi_cfg_data()
1498 ci->date_time.year = le16_to_cpu(ci->date_time.year); in esas2r_nuxi_cfg_data()
1499 ci->sgl_page_size = le32_to_cpu(ci->sgl_page_size); in esas2r_nuxi_cfg_data()
1500 ci->vda_version = le32_to_cpu(ci->vda_version); in esas2r_nuxi_cfg_data()
1501 ci->epoch_time = le32_to_cpu(ci->epoch_time); in esas2r_nuxi_cfg_data()
1502 ci->ioctl_tunnel = le32_to_cpu(ci->ioctl_tunnel); in esas2r_nuxi_cfg_data()
1503 ci->num_targets_backend = le32_to_cpu(ci->num_targets_backend); in esas2r_nuxi_cfg_data()
Desas2r_init.c1222 struct atto_vda_cfg_init *ci; in esas2r_format_init_msg() local
1238 ci = (struct atto_vda_cfg_init *)&rq->vrq->cfg.data.init; in esas2r_format_init_msg()
1239 ci->sgl_page_size = cpu_to_le32(sgl_page_size); in esas2r_format_init_msg()
1240 ci->epoch_time = cpu_to_le32(now.tv_sec); in esas2r_format_init_msg()
1293 ci = (struct atto_vda_cfg_init *)rq->data_buf; in esas2r_format_init_msg()
1296 le32_to_cpu(ci->num_targets_backend); in esas2r_format_init_msg()
1298 le32_to_cpu(ci->ioctl_tunnel); in esas2r_format_init_msg()
/linux-4.4.14/Documentation/RCU/
Dtrace.txt59 …0!c=30455 g=30456 cnq=1/0:1 dt=126535/140000000000000/0 df=2002 of=4 ql=0/0 qs=N... b=10 ci=74572 …
60 …1!c=30719 g=30720 cnq=1/0:0 dt=132007/140000000000000/0 df=1874 of=10 ql=0/0 qs=N... b=10 ci=12320…
61 …2!c=30150 g=30151 cnq=1/1:1 dt=138537/140000000000000/0 df=1707 of=8 ql=0/0 qs=N... b=10 ci=80132 …
62 …3 c=31249 g=31250 cnq=1/1:0 dt=107255/140000000000000/0 df=1749 of=6 ql=0/450 qs=NRW. b=10 ci=1517…
63 …4!c=29502 g=29503 cnq=1/0:1 dt=83647/140000000000000/0 df=965 of=5 ql=0/0 qs=N... b=10 ci=65643 nc…
64 …5 c=31201 g=31202 cnq=1/0:1 dt=70422/0/0 df=535 of=7 ql=0/0 qs=.... b=10 ci=58500 nci=0 co=764 ca=…
65 …6!c=30253 g=30254 cnq=1/0:1 dt=95363/140000000000000/0 df=780 of=5 ql=0/0 qs=N... b=10 ci=100607 n…
66 …7 c=31178 g=31178 cnq=1/0:0 dt=91536/0/0 df=547 of=4 ql=0/0 qs=.... b=10 ci=109819 nci=0 co=1115 c…
170 o "ci" is the number of RCU callbacks that have been invoked for
171 this CPU. Note that ci+nci+ql is the number of callbacks that have
[all …]
/linux-4.4.14/drivers/media/pci/ngene/
Dngene-core.c1321 dev->ci.en) in ngene_buffer_config()
1487 if (!dev->ci.en && (io & NGENE_IO_TSOUT)) in init_channel()
1509 if (dev->ci.en && (io & NGENE_IO_TSOUT)) { in init_channel()
1510 dvb_ca_en50221_init(adapter, dev->ci.en, 0, 1); in init_channel()
1582 struct ngene_ci *ci = &dev->ci; in cxd_attach() local
1584 ci->en = cxd2099_attach(&cxd_cfg, dev, &dev->channel[0].i2c_adapter); in cxd_attach()
1585 ci->dev = dev; in cxd_attach()
1591 struct ngene_ci *ci = &dev->ci; in cxd_detach() local
1593 dvb_ca_en50221_release(ci->en); in cxd_detach()
1594 kfree(ci->en); in cxd_detach()
[all …]
Dngene-dvb.c139 if (dev->ci.en && chan->number == 2) { in tsin_exchange()
Dngene.h814 struct ngene_ci ci; member
/linux-4.4.14/sound/aoa/codecs/
Donyx.c865 struct codec_info *ci = &onyx_codec_info; in onyx_init_codec() local
901 ci = onyx->codec_info; in onyx_init_codec()
902 *ci = onyx_codec_info; in onyx_init_codec()
903 ci->transfers++; in onyx_init_codec()
912 ci = onyx->codec_info; in onyx_init_codec()
915 *ci = onyx_codec_info; in onyx_init_codec()
916 ci->transfers[1].formats = 0; in onyx_init_codec()
921 ci, onyx)) { in onyx_init_codec()
/linux-4.4.14/drivers/media/firewire/
DMakefile3 firedtv-y += firedtv-avc.o firedtv-ci.o firedtv-dvb.o firedtv-fe.o firedtv-fw.o
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmsmac/phy/
Dphy_n.c20522 const struct chan_info_nphy_2055 *ci) in wlc_phy_chanspec_radio2055_setup() argument
20525 write_radio_reg(pi, RADIO_2055_PLL_REF, ci->RF_pll_ref); in wlc_phy_chanspec_radio2055_setup()
20526 write_radio_reg(pi, RADIO_2055_RF_PLL_MOD0, ci->RF_rf_pll_mod0); in wlc_phy_chanspec_radio2055_setup()
20527 write_radio_reg(pi, RADIO_2055_RF_PLL_MOD1, ci->RF_rf_pll_mod1); in wlc_phy_chanspec_radio2055_setup()
20528 write_radio_reg(pi, RADIO_2055_VCO_CAP_TAIL, ci->RF_vco_cap_tail); in wlc_phy_chanspec_radio2055_setup()
20532 write_radio_reg(pi, RADIO_2055_VCO_CAL1, ci->RF_vco_cal1); in wlc_phy_chanspec_radio2055_setup()
20533 write_radio_reg(pi, RADIO_2055_VCO_CAL2, ci->RF_vco_cal2); in wlc_phy_chanspec_radio2055_setup()
20534 write_radio_reg(pi, RADIO_2055_PLL_LF_C1, ci->RF_pll_lf_c1); in wlc_phy_chanspec_radio2055_setup()
20535 write_radio_reg(pi, RADIO_2055_PLL_LF_R1, ci->RF_pll_lf_r1); in wlc_phy_chanspec_radio2055_setup()
20539 write_radio_reg(pi, RADIO_2055_PLL_LF_C2, ci->RF_pll_lf_c2); in wlc_phy_chanspec_radio2055_setup()
[all …]
Dphy_lcn.c1677 const struct chan_info_2064_lcnphy *ci; in wlc_lcnphy_radio_2064_channel_tune_4313() local
1688 ci = &chan_info_2064_lcnphy[0]; in wlc_lcnphy_radio_2064_channel_tune_4313()
1710 ci = &chan_info_2064_lcnphy[i]; in wlc_lcnphy_radio_2064_channel_tune_4313()
1713 write_radio_reg(pi, RADIO_2064_REG02A, ci->logen_buftune); in wlc_lcnphy_radio_2064_channel_tune_4313()
1715 mod_radio_reg(pi, RADIO_2064_REG030, 0x3, ci->logen_rccr_tx); in wlc_lcnphy_radio_2064_channel_tune_4313()
1717 mod_radio_reg(pi, RADIO_2064_REG091, 0x3, ci->txrf_mix_tune_ctrl); in wlc_lcnphy_radio_2064_channel_tune_4313()
1719 mod_radio_reg(pi, RADIO_2064_REG038, 0xf, ci->pa_input_tune_g); in wlc_lcnphy_radio_2064_channel_tune_4313()
1722 (ci->logen_rccr_rx) << 2); in wlc_lcnphy_radio_2064_channel_tune_4313()
1724 mod_radio_reg(pi, RADIO_2064_REG05E, 0xf, ci->pa_rxrf_lna1_freq_tune); in wlc_lcnphy_radio_2064_channel_tune_4313()
1727 (ci->pa_rxrf_lna2_freq_tune) << 4); in wlc_lcnphy_radio_2064_channel_tune_4313()
[all …]
/linux-4.4.14/drivers/net/ethernet/brocade/bna/
Dbfa_msgq.c650 int ci; in bfa_msgq_rsp_copy() local
653 ci = rspq->consumer_index; in bfa_msgq_rsp_copy()
655 src += (ci * BFI_MSGQ_RSP_ENTRY_SIZE); in bfa_msgq_rsp_copy()
664 BFA_MSGQ_INDX_ADD(ci, 1, rspq->depth); in bfa_msgq_rsp_copy()
666 src += (ci * BFI_MSGQ_RSP_ENTRY_SIZE); in bfa_msgq_rsp_copy()
Dbnad.c530 u32 ci, vec; in bnad_cq_drop_packet() local
533 for (vec = 0, ci = sop_ci; vec < nvecs; vec++) { in bnad_cq_drop_packet()
534 unmap = &unmap_q->unmap[ci]; in bnad_cq_drop_packet()
535 BNA_QE_INDX_INC(ci, rcb->q_depth); in bnad_cq_drop_packet()
549 u32 ci, vec, len, totlen = 0; in bnad_cq_setup_skb_frags() local
560 for (vec = 1, ci = sop_ci; vec <= nvecs; vec++) { in bnad_cq_setup_skb_frags()
561 unmap = &unmap_q->unmap[ci]; in bnad_cq_setup_skb_frags()
562 BNA_QE_INDX_INC(ci, rcb->q_depth); in bnad_cq_setup_skb_frags()
/linux-4.4.14/drivers/video/console/
Dnewport_con.c72 int xend, int yend, int ci) in newport_render_background() argument
79 npregs->set.colori = ci; in newport_render_background()
135 int yend, int ci) in newport_clear_screen() argument
145 npregs->set.colori = ci; in newport_clear_screen()
150 static inline void newport_clear_lines(int ystart, int yend, int ci) in newport_clear_lines() argument
154 newport_clear_screen(0, ystart, 1280 + 63, yend, ci); in newport_clear_lines()
/linux-4.4.14/drivers/infiniband/hw/mthca/
Dmthca_eq.c173 static inline void tavor_set_eq_ci(struct mthca_dev *dev, struct mthca_eq *eq, u32 ci) in tavor_set_eq_ci() argument
184 mthca_write64(MTHCA_EQ_DB_SET_CI | eq->eqn, ci & (eq->nent - 1), in tavor_set_eq_ci()
189 static inline void arbel_set_eq_ci(struct mthca_dev *dev, struct mthca_eq *eq, u32 ci) in arbel_set_eq_ci() argument
193 __raw_writel((__force u32) cpu_to_be32(ci), in arbel_set_eq_ci()
199 static inline void set_eq_ci(struct mthca_dev *dev, struct mthca_eq *eq, u32 ci) in set_eq_ci() argument
202 arbel_set_eq_ci(dev, eq, ci); in set_eq_ci()
204 tavor_set_eq_ci(dev, eq, ci); in set_eq_ci()
/linux-4.4.14/drivers/media/pci/ttpci/
DMakefile16 obj-$(CONFIG_DVB_BUDGET_CI) += budget-ci.o
DKconfig113 module will be called budget-ci.
/linux-4.4.14/drivers/parisc/
Dccio-dma.c561 register unsigned long ci; /* coherent index */ in ccio_io_pdir_entry() local
587 asm volatile ("extrd,u %1,15,4,%0" : "=r" (ci) : "r" (pa)); in ccio_io_pdir_entry()
589 asm volatile ("depd %1,35,4,%0" : "+r" (pa) : "r" (ci)); in ccio_io_pdir_entry()
598 asm volatile ("lci %%r0(%%sr1, %1), %0" : "=r" (ci) : "r" (vba)); in ccio_io_pdir_entry()
599 asm volatile ("extru %1,19,12,%0" : "+r" (ci) : "r" (ci)); in ccio_io_pdir_entry()
600 asm volatile ("depw %1,15,12,%0" : "+r" (pa) : "r" (ci)); in ccio_io_pdir_entry()
Dsba_iommu.c571 register unsigned ci; /* coherent index */ in sba_io_pdir_entry() local
577 asm("lci 0(%%sr1, %1), %0" : "=r" (ci) : "r" (vba)); in sba_io_pdir_entry()
578 pa |= (ci >> PAGE_SHIFT) & 0xff; /* move CI (8 bits) into lowest byte */ in sba_io_pdir_entry()
/linux-4.4.14/drivers/scsi/megaraid/
Dmegaraid_sas_base.c3869 struct MR_PD_LIST *ci; in megasas_get_pd_list() local
3882 ci = pci_alloc_consistent(instance->pdev, in megasas_get_pd_list()
3885 if (!ci) { in megasas_get_pd_list()
3891 memset(ci, 0, sizeof(*ci)); in megasas_get_pd_list()
3917 pd_addr = ci->addr; in megasas_get_pd_list()
3920 (le32_to_cpu(ci->count) < in megasas_get_pd_list()
3926 for (pd_index = 0; pd_index < le32_to_cpu(ci->count); pd_index++) { in megasas_get_pd_list()
3942 ci, ci_h); in megasas_get_pd_list()
3964 struct MR_LD_LIST *ci; in megasas_get_ld_list() local
3977 ci = pci_alloc_consistent(instance->pdev, in megasas_get_ld_list()
[all …]
Dmegaraid_sas_fusion.c826 void *ci; in megasas_get_ld_map_info() local
849 ci = (void *) fusion->ld_map[(instance->map_id & 1)]; in megasas_get_ld_map_info()
852 if (!ci) { in megasas_get_ld_map_info()
858 memset(ci, 0, fusion->max_map_sz); in megasas_get_ld_map_info()
918 struct MR_LD_TARGET_SYNC *ci = NULL; in megasas_sync_map_info() local
949 ci = (struct MR_LD_TARGET_SYNC *) in megasas_sync_map_info()
951 memset(ci, 0, fusion->max_map_sz); in megasas_sync_map_info()
955 ld_sync = (struct MR_LD_TARGET_SYNC *)ci; in megasas_sync_map_info()
/linux-4.4.14/drivers/media/pci/cx23885/
DMakefile8 obj-$(CONFIG_MEDIA_ALTERA_CI) += altera-ci.o
DKconfig60 module will be called altera-ci
/linux-4.4.14/drivers/staging/rts5208/
Drtsx_transport.h42 #define rtsx_init_cmd(chip) ((chip)->ci = 0)
Drtsx_transport.c216 if (chip->ci < (HOST_CMDS_BUF_LEN / 4)) in rtsx_add_cmd()
217 cb[(chip->ci)++] = cpu_to_le32(val); in rtsx_add_cmd()
228 val |= (u32)(chip->ci * 4) & 0x00FFFFFF; in rtsx_send_cmd_no_wait()
261 val |= (u32)(chip->ci * 4) & 0x00FFFFFF; in rtsx_send_cmd()
Drtsx_chip.h700 int ci; /* Command Index */ member
/linux-4.4.14/net/ipv4/
Ddevinet.c810 struct ifa_cacheinfo *ci; in rtm_to_ifaddr() local
812 ci = nla_data(tb[IFA_CACHEINFO]); in rtm_to_ifaddr()
813 if (!ci->ifa_valid || ci->ifa_prefered > ci->ifa_valid) { in rtm_to_ifaddr()
817 *pvalid_lft = ci->ifa_valid; in rtm_to_ifaddr()
818 *pprefered_lft = ci->ifa_prefered; in rtm_to_ifaddr()
1497 struct ifa_cacheinfo ci; in put_cacheinfo() local
1499 ci.cstamp = cstamp_delta(cstamp); in put_cacheinfo()
1500 ci.tstamp = cstamp_delta(tstamp); in put_cacheinfo()
1501 ci.ifa_prefered = preferred; in put_cacheinfo()
1502 ci.ifa_valid = valid; in put_cacheinfo()
[all …]
/linux-4.4.14/drivers/media/rc/keymaps/
DMakefile20 rc-budget-ci-old.o \
100 rc-twinhan-dtv-cab-ci.o \
/linux-4.4.14/drivers/ata/
Dsata_sil24.c1021 const struct sil24_cerr_info *ci = NULL; in sil24_error_intr() local
1065 ci = &sil24_cerr_db[cerr]; in sil24_error_intr()
1067 if (ci && ci->desc) { in sil24_error_intr()
1068 err_mask |= ci->err_mask; in sil24_error_intr()
1069 action |= ci->action; in sil24_error_intr()
1072 ata_ehi_push_desc(ehi, "%s", ci->desc); in sil24_error_intr()
/linux-4.4.14/net/bridge/
Dbr_fdb.c635 struct nda_cacheinfo ci; in fdb_fill_info() local
656 ci.ndm_used = jiffies_to_clock_t(now - fdb->used); in fdb_fill_info()
657 ci.ndm_confirmed = 0; in fdb_fill_info()
658 ci.ndm_updated = jiffies_to_clock_t(now - fdb->updated); in fdb_fill_info()
659 ci.ndm_refcnt = 0; in fdb_fill_info()
660 if (nla_put(skb, NDA_CACHEINFO, sizeof(ci), &ci)) in fdb_fill_info()
/linux-4.4.14/drivers/media/pci/netup_unidvb/
Dnetup_unidvb_ci.c204 state = &dev->ci[num]; in netup_unidvb_ci_register()
245 state = &dev->ci[num]; in netup_unidvb_ci_unregister()
Dnetup_unidvb.h120 struct netup_ci_state ci[2]; member
/linux-4.4.14/Documentation/devicetree/bindings/clock/
Dnvidia,tegra124-dfll.txt42 - nvidia,ci: Numeric value, see the field DFLL_PARAMS_CI_PARAM in the TRM.
75 nvidia,ci = <0>;
/linux-4.4.14/net/rxrpc/
Dar-key.c827 struct crypto_blkcipher *ci; in rxrpc_preparse_s() local
836 ci = crypto_alloc_blkcipher("pcbc(des)", 0, CRYPTO_ALG_ASYNC); in rxrpc_preparse_s()
837 if (IS_ERR(ci)) { in rxrpc_preparse_s()
838 _leave(" = %ld", PTR_ERR(ci)); in rxrpc_preparse_s()
839 return PTR_ERR(ci); in rxrpc_preparse_s()
842 if (crypto_blkcipher_setkey(ci, prep->data, 8) < 0) in rxrpc_preparse_s()
845 prep->payload.data[0] = ci; in rxrpc_preparse_s()
Drxkad.c64 struct crypto_blkcipher *ci; in rxkad_init_connection_security() local
73 ci = crypto_alloc_blkcipher("pcbc(fcrypt)", 0, CRYPTO_ALG_ASYNC); in rxkad_init_connection_security()
74 if (IS_ERR(ci)) { in rxkad_init_connection_security()
76 ret = PTR_ERR(ci); in rxkad_init_connection_security()
80 if (crypto_blkcipher_setkey(ci, token->kad->session_key, in rxkad_init_connection_security()
102 conn->cipher = ci; in rxkad_init_connection_security()
/linux-4.4.14/include/linux/mfd/
Dstmpe.h94 struct stmpe_client_info *ci; member
Drtsx_pci.h851 #define rtsx_pci_init_cmd(pcr) ((pcr)->ci = 0)
896 int ci; member
/linux-4.4.14/drivers/gpu/drm/vmwgfx/
Dvmwgfx_binding.h192 const struct vmw_ctx_bindinfo *ci,
/linux-4.4.14/sound/aoa/soundbus/
Dsoundbus.h165 struct codec_info *ci, void *data);
/linux-4.4.14/include/linux/
Dfirewire.h73 void fw_csr_iterator_init(struct fw_csr_iterator *ci, const u32 *p);
74 int fw_csr_iterator_next(struct fw_csr_iterator *ci, int *key, int *value);
/linux-4.4.14/arch/arm/boot/dts/
Dqcom-apq8064.dtsi454 compatible = "qcom,usb-otg-ci";
469 compatible = "qcom,usb-otg-ci";
484 compatible = "qcom,usb-otg-ci";
499 compatible = "qcom,ci-hdrc";
Dtegra124.dtsi725 nvidia,ci = <0>;
/linux-4.4.14/arch/powerpc/platforms/powernv/
Deeh-powernv.c1189 data->ci.ciPort); in pnv_eeh_get_and_dump_hub_diag()
1191 if (data->ci.ciPortStatus || data->ci.ciPortLdcp) in pnv_eeh_get_and_dump_hub_diag()
1193 be64_to_cpu(data->ci.ciPortStatus), in pnv_eeh_get_and_dump_hub_diag()
1194 be64_to_cpu(data->ci.ciPortLdcp)); in pnv_eeh_get_and_dump_hub_diag()
/linux-4.4.14/net/ipv6/
Daddrconf.c4210 struct ifa_cacheinfo *ci; in inet6_rtm_newaddr() local
4212 ci = nla_data(tb[IFA_CACHEINFO]); in inet6_rtm_newaddr()
4213 valid_lft = ci->ifa_valid; in inet6_rtm_newaddr()
4214 preferred_lft = ci->ifa_prefered; in inet6_rtm_newaddr()
4268 struct ifa_cacheinfo ci; in put_cacheinfo() local
4270 ci.cstamp = cstamp_delta(cstamp); in put_cacheinfo()
4271 ci.tstamp = cstamp_delta(tstamp); in put_cacheinfo()
4272 ci.ifa_prefered = preferred; in put_cacheinfo()
4273 ci.ifa_valid = valid; in put_cacheinfo()
4275 return nla_put(skb, IFA_CACHEINFO, sizeof(ci), &ci); in put_cacheinfo()
[all …]
/linux-4.4.14/Documentation/dvb/
Dreadme.txt34 "ci.txt"
Dbt8xx.txt58 Please also see Documentation/dvb/ci.txt.
/linux-4.4.14/drivers/cpufreq/
Dcpufreq.c326 static void adjust_jiffies(unsigned long val, struct cpufreq_freqs *ci) in adjust_jiffies() argument
332 if (ci->flags & CPUFREQ_CONST_LOOPS) in adjust_jiffies()
337 l_p_j_ref_freq = ci->old; in adjust_jiffies()
341 if (val == CPUFREQ_POSTCHANGE && ci->old != ci->new) { in adjust_jiffies()
343 ci->new); in adjust_jiffies()
345 loops_per_jiffy, ci->new); in adjust_jiffies()
/linux-4.4.14/drivers/target/
Dtarget_core_alua.c1625 struct config_item *ci; in core_alua_get_lu_gp_by_name() local
1631 ci = &lu_gp->lu_gp_group.cg_item; in core_alua_get_lu_gp_by_name()
1632 if (!strcmp(config_item_name(ci), name)) { in core_alua_get_lu_gp_by_name()
1850 struct config_item *ci; in core_alua_get_tg_pt_gp_by_name() local
1857 ci = &tg_pt_gp->tg_pt_gp_group.cg_item; in core_alua_get_tg_pt_gp_by_name()
1858 if (!strcmp(config_item_name(ci), name)) { in core_alua_get_tg_pt_gp_by_name()
/linux-4.4.14/drivers/iio/adc/
Dmax1363.c301 const struct max1363_chip_info *ci) in max1363_match_mode() argument
305 for (i = 0; i < ci->num_modes; i++) in max1363_match_mode()
307 max1363_mode_table[ci->mode_list[i]]. in max1363_match_mode()
310 return &max1363_mode_table[ci->mode_list[i]]; in max1363_match_mode()
/linux-4.4.14/Documentation/devicetree/bindings/usb/
Dmsm-hsusb.txt22 "qcom,usb-otg-ci" for chipsets with ChipIdea 45nm PHY
Dci-hdrc-usb2.txt7 "qcom,ci-hdrc"
/linux-4.4.14/drivers/clk/tegra/
Dclk-dfll.c293 u32 ci; member
1263 (td->ci << DFLL_PARAMS_CI_PARAM_SHIFT) | in dfll_set_default_params()
1586 ok &= read_dt_param(td, "nvidia,ci", &td->ci); in dfll_fetch_common_params()
/linux-4.4.14/net/core/
Dneighbour.c2152 struct nda_cacheinfo ci; in neigh_fill_info() local
2183 ci.ndm_used = jiffies_to_clock_t(now - neigh->used); in neigh_fill_info()
2184 ci.ndm_confirmed = jiffies_to_clock_t(now - neigh->confirmed); in neigh_fill_info()
2185 ci.ndm_updated = jiffies_to_clock_t(now - neigh->updated); in neigh_fill_info()
2186 ci.ndm_refcnt = atomic_read(&neigh->refcnt) - 1; in neigh_fill_info()
2190 nla_put(skb, NDA_CACHEINFO, sizeof(ci), &ci)) in neigh_fill_info()
Drtnetlink.c712 struct rta_cacheinfo ci = { in rtnl_put_cacheinfo() local
725 ci.rta_expires = (expires > 0) ? clock : -clock; in rtnl_put_cacheinfo()
727 return nla_put(skb, RTA_CACHEINFO, sizeof(ci), &ci); in rtnl_put_cacheinfo()
/linux-4.4.14/drivers/net/
Dvxlan.c278 struct nda_cacheinfo ci; in vxlan_fdb_info() local
324 ci.ndm_used = jiffies_to_clock_t(now - fdb->used); in vxlan_fdb_info()
325 ci.ndm_confirmed = 0; in vxlan_fdb_info()
326 ci.ndm_updated = jiffies_to_clock_t(now - fdb->updated); in vxlan_fdb_info()
327 ci.ndm_refcnt = 0; in vxlan_fdb_info()
329 if (nla_put(skb, NDA_CACHEINFO, sizeof(ci), &ci)) in vxlan_fdb_info()
/linux-4.4.14/arch/ia64/kernel/
Dmca_drv.c673 if (psp->us || psp->ci == 0) in recover_from_processor_error()
/linux-4.4.14/drivers/gpu/drm/radeon/
Dradeon_atombios.c939 ATOM_CONNECTOR_INFO_I2C ci = in radeon_get_atom_connector_info_from_supported_devices_table() local
954 supported_devices_connector_convert[ci.sucConnectorInfo. in radeon_get_atom_connector_info_from_supported_devices_table()
962 dac = ci.sucConnectorInfo.sbfAccess.bfAssociatedDAC; in radeon_get_atom_connector_info_from_supported_devices_table()
965 ci.sucI2cId.ucAccess; in radeon_get_atom_connector_info_from_supported_devices_table()
2041 struct _ATOM_PPLIB_CI_CLOCK_INFO ci; member
2488 sclk = le16_to_cpu(clock_info->ci.usEngineClockLow); in radeon_atombios_parse_pplib_clock_info()
2489 sclk |= clock_info->ci.ucEngineClockHigh << 16; in radeon_atombios_parse_pplib_clock_info()
2490 mclk = le16_to_cpu(clock_info->ci.usMemoryClockLow); in radeon_atombios_parse_pplib_clock_info()
2491 mclk |= clock_info->ci.ucMemoryClockHigh << 16; in radeon_atombios_parse_pplib_clock_info()
Dci_dpm.c5408 struct _ATOM_PPLIB_CI_CLOCK_INFO ci; member
5449 pl->sclk = le16_to_cpu(clock_info->ci.usEngineClockLow); in ci_parse_pplib_clock_info()
5450 pl->sclk |= clock_info->ci.ucEngineClockHigh << 16; in ci_parse_pplib_clock_info()
5451 pl->mclk = le16_to_cpu(clock_info->ci.usMemoryClockLow); in ci_parse_pplib_clock_info()
5452 pl->mclk |= clock_info->ci.ucMemoryClockHigh << 16; in ci_parse_pplib_clock_info()
5457 clock_info->ci.ucPCIEGen); in ci_parse_pplib_clock_info()
5460 le16_to_cpu(clock_info->ci.usPCIELane)); in ci_parse_pplib_clock_info()
5588 sclk = le16_to_cpu(clock_info->ci.usEngineClockLow); in ci_parse_power_table()
5589 sclk |= clock_info->ci.ucEngineClockHigh << 16; in ci_parse_power_table()
5590 mclk = le16_to_cpu(clock_info->ci.usMemoryClockLow); in ci_parse_power_table()
[all …]
/linux-4.4.14/arch/powerpc/include/asm/
Dopal-api.h605 }ci; member
/linux-4.4.14/drivers/scsi/lpfc/
Dlpfc_hw.h2094 uint32_t ci:1; member
2104 uint32_t ci:1;
2203 uint32_t ci:1; member
2213 uint32_t ci:1;
Dlpfc_mbox.c365 mb->un.varCfgLnk.ci = 1; in lpfc_config_link()
/linux-4.4.14/fs/isofs/
Dinode.c206 const struct qstr *name, int ms, int ci) in isofs_dentry_cmp_common() argument
220 if (ci) { in isofs_dentry_cmp_common()
/linux-4.4.14/arch/ia64/include/asm/
Dpal.h406 ci : 1, /* MC isolated */ member
704 #define pmci_proc_machine_check_isolated pme_processor.ci
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
Dci_dpm.c5554 struct _ATOM_PPLIB_CI_CLOCK_INFO ci; member
5595 pl->sclk = le16_to_cpu(clock_info->ci.usEngineClockLow); in ci_parse_pplib_clock_info()
5596 pl->sclk |= clock_info->ci.ucEngineClockHigh << 16; in ci_parse_pplib_clock_info()
5597 pl->mclk = le16_to_cpu(clock_info->ci.usMemoryClockLow); in ci_parse_pplib_clock_info()
5598 pl->mclk |= clock_info->ci.ucMemoryClockHigh << 16; in ci_parse_pplib_clock_info()
5603 clock_info->ci.ucPCIEGen); in ci_parse_pplib_clock_info()
5606 le16_to_cpu(clock_info->ci.usPCIELane)); in ci_parse_pplib_clock_info()
5734 sclk = le16_to_cpu(clock_info->ci.usEngineClockLow); in ci_parse_power_table()
5735 sclk |= clock_info->ci.ucEngineClockHigh << 16; in ci_parse_power_table()
5736 mclk = le16_to_cpu(clock_info->ci.usMemoryClockLow); in ci_parse_power_table()
[all …]
Damdgpu.h2274 …ne amdgpu_display_add_connector(adev, ci, sd, ct, ib, coi, h, r) (adev)->mode_info.funcs->add_conn… argument
/linux-4.4.14/drivers/net/wireless/ath/ath10k/
Dwmi-tlv.c2267 struct wmi_channel *ci; in ath10k_wmi_tlv_op_gen_scan_chan_list() local
2275 chans_len = arg->n_channels * (sizeof(*tlv) + sizeof(*ci)); in ath10k_wmi_tlv_op_gen_scan_chan_list()
2303 tlv->len = __cpu_to_le16(sizeof(*ci)); in ath10k_wmi_tlv_op_gen_scan_chan_list()
2304 ci = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_scan_chan_list()
2306 ath10k_wmi_put_wmi_channel(ci, ch); in ath10k_wmi_tlv_op_gen_scan_chan_list()
2309 chans += sizeof(*ci); in ath10k_wmi_tlv_op_gen_scan_chan_list()
Dwmi.c6230 struct wmi_channel *ci; in ath10k_wmi_op_gen_scan_chan_list() local
6245 ci = &cmd->chan_info[i]; in ath10k_wmi_op_gen_scan_chan_list()
6247 ath10k_wmi_put_wmi_channel(ci, ch); in ath10k_wmi_op_gen_scan_chan_list()
/linux-4.4.14/arch/arm64/boot/dts/qcom/
Dmsm8916.dtsi312 compatible = "qcom,ci-hdrc";
/linux-4.4.14/Documentation/DocBook/
Dfilesystems.xml.db20 API-d-add-ci
/linux-4.4.14/drivers/usb/core/
Ddevio.c1206 struct usbdevfs_connectinfo ci = { in proc_connectinfo() local
1211 if (copy_to_user(arg, &ci, sizeof(ci))) in proc_connectinfo()
/linux-4.4.14/drivers/staging/fwserial/
Dfwserial.c2065 struct fw_csr_iterator ci; in fwserial_add_peer() local
2089 fw_csr_iterator_init(&ci, unit->directory); in fwserial_add_peer()
2090 while (fw_csr_iterator_next(&ci, &key, &val)) { in fwserial_add_peer()
/linux-4.4.14/Documentation/filesystems/
Dcoda.txt194 22.. SSeerrvviicciinngg CCooddaa ffiilleessyysstteemm ccaallllss
/linux-4.4.14/Documentation/
Dkernel-parameters.txt3335 [[,]b[ios] | a[cpi] | k[bd] | t[riple] | e[fi] | p[ci]] \