Home
last modified time | relevance | path

Searched refs:ri (Results 1 – 25 of 97) sorted by relevance

1234

/linux-3.4.99/drivers/regulator/
Daat2870-regulator.c54 struct aat2870_regulator *ri = rdev_get_drvdata(rdev); in aat2870_ldo_list_voltage() local
56 return ri->voltages[selector]; in aat2870_ldo_list_voltage()
62 struct aat2870_regulator *ri = rdev_get_drvdata(rdev); in aat2870_ldo_set_voltage_sel() local
63 struct aat2870_data *aat2870 = ri->aat2870; in aat2870_ldo_set_voltage_sel()
65 return aat2870->update(aat2870, ri->voltage_addr, ri->voltage_mask, in aat2870_ldo_set_voltage_sel()
66 selector << ri->voltage_shift); in aat2870_ldo_set_voltage_sel()
71 struct aat2870_regulator *ri = rdev_get_drvdata(rdev); in aat2870_ldo_get_voltage_sel() local
72 struct aat2870_data *aat2870 = ri->aat2870; in aat2870_ldo_get_voltage_sel()
76 ret = aat2870->read(aat2870, ri->voltage_addr, &val); in aat2870_ldo_get_voltage_sel()
80 return (val & ri->voltage_mask) >> ri->voltage_shift; in aat2870_ldo_get_voltage_sel()
[all …]
Dtps6586x-regulator.c93 struct tps6586x_regulator *ri, in __tps6586x_ldo_set_voltage() argument
100 for (val = 0; val < ri->desc.n_voltages; val++) { in __tps6586x_ldo_set_voltage()
101 uV = ri->voltages[val] * 1000; in __tps6586x_ldo_set_voltage()
104 if (ri->desc.id == TPS6586X_ID_LDO_0 && val == 0) in __tps6586x_ldo_set_voltage()
112 val <<= ri->volt_shift; in __tps6586x_ldo_set_voltage()
113 mask = ((1 << ri->volt_nbits) - 1) << ri->volt_shift; in __tps6586x_ldo_set_voltage()
115 return tps6586x_update(parent, ri->volt_reg, val, mask); in __tps6586x_ldo_set_voltage()
125 struct tps6586x_regulator *ri = rdev_get_drvdata(rdev); in tps6586x_ldo_set_voltage() local
128 return __tps6586x_ldo_set_voltage(parent, ri, min_uV, max_uV, in tps6586x_ldo_set_voltage()
134 struct tps6586x_regulator *ri = rdev_get_drvdata(rdev); in tps6586x_ldo_get_voltage() local
[all …]
Dmax8925-regulator.c249 struct max8925_regulator_info *ri; in find_regulator_info() local
253 ri = &max8925_regulator_info[i]; in find_regulator_info()
254 if (ri->desc.id == id) in find_regulator_info()
255 return ri; in find_regulator_info()
264 struct max8925_regulator_info *ri; in max8925_regulator_probe() local
267 ri = find_regulator_info(pdev->id); in max8925_regulator_probe()
268 if (ri == NULL) { in max8925_regulator_probe()
272 ri->i2c = chip->i2c; in max8925_regulator_probe()
273 ri->chip = chip; in max8925_regulator_probe()
275 rdev = regulator_register(&ri->desc, &pdev->dev, in max8925_regulator_probe()
[all …]
/linux-3.4.99/fs/jffs2/
Dread.c27 struct jffs2_raw_inode *ri; in jffs2_read_dnode() local
34 ri = jffs2_alloc_raw_inode(); in jffs2_read_dnode()
35 if (!ri) in jffs2_read_dnode()
38 ret = jffs2_flash_read(c, ref_offset(fd->raw), sizeof(*ri), &readlen, (char *)ri); in jffs2_read_dnode()
40 jffs2_free_raw_inode(ri); in jffs2_read_dnode()
45 if (readlen != sizeof(*ri)) { in jffs2_read_dnode()
46 jffs2_free_raw_inode(ri); in jffs2_read_dnode()
48 ref_offset(fd->raw), sizeof(*ri), readlen); in jffs2_read_dnode()
51 crc = crc32(0, ri, sizeof(*ri)-8); in jffs2_read_dnode()
54 ref_offset(fd->raw), je32_to_cpu(ri->node_crc), in jffs2_read_dnode()
[all …]
Dfile.c142 struct jffs2_raw_inode ri; in jffs2_write_begin() local
151 ret = jffs2_reserve_space(c, sizeof(ri), &alloc_len, in jffs2_write_begin()
174 memset(&ri, 0, sizeof(ri)); in jffs2_write_begin()
176 ri.magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_write_begin()
177 ri.nodetype = cpu_to_je16(JFFS2_NODETYPE_INODE); in jffs2_write_begin()
178 ri.totlen = cpu_to_je32(sizeof(ri)); in jffs2_write_begin()
179 ri.hdr_crc = cpu_to_je32(crc32(0, &ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_write_begin()
181 ri.ino = cpu_to_je32(f->inocache->ino); in jffs2_write_begin()
182 ri.version = cpu_to_je32(++f->highest_version); in jffs2_write_begin()
183 ri.mode = cpu_to_jemode(inode->i_mode); in jffs2_write_begin()
[all …]
Dwrite.c24 uint32_t mode, struct jffs2_raw_inode *ri) in jffs2_do_new_inode() argument
42 ri->ino = cpu_to_je32(f->inocache->ino); in jffs2_do_new_inode()
44 ri->magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_do_new_inode()
45 ri->nodetype = cpu_to_je16(JFFS2_NODETYPE_INODE); in jffs2_do_new_inode()
46 ri->totlen = cpu_to_je32(PAD(sizeof(*ri))); in jffs2_do_new_inode()
47 ri->hdr_crc = cpu_to_je32(crc32(0, ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_do_new_inode()
48 ri->mode = cpu_to_jemode(mode); in jffs2_do_new_inode()
51 ri->version = cpu_to_je32(f->highest_version); in jffs2_do_new_inode()
60 struct jffs2_raw_inode *ri, const unsigned char *data, in jffs2_write_dnode() argument
72 D1(if(je32_to_cpu(ri->hdr_crc) != crc32(0, ri, sizeof(struct jffs2_unknown_node)-4)) { in jffs2_write_dnode()
[all …]
Dgc.c742 struct jffs2_raw_inode ri; in jffs2_garbage_collect_metadata() local
776 ret = jffs2_reserve_space_gc(c, sizeof(ri) + mdatalen, &alloclen, in jffs2_garbage_collect_metadata()
780 sizeof(ri) + mdatalen, ret); in jffs2_garbage_collect_metadata()
792 memset(&ri, 0, sizeof(ri)); in jffs2_garbage_collect_metadata()
793 ri.magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_garbage_collect_metadata()
794 ri.nodetype = cpu_to_je16(JFFS2_NODETYPE_INODE); in jffs2_garbage_collect_metadata()
795 ri.totlen = cpu_to_je32(sizeof(ri) + mdatalen); in jffs2_garbage_collect_metadata()
796 ri.hdr_crc = cpu_to_je32(crc32(0, &ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_garbage_collect_metadata()
798 ri.ino = cpu_to_je32(f->inocache->ino); in jffs2_garbage_collect_metadata()
799 ri.version = cpu_to_je32(++f->highest_version); in jffs2_garbage_collect_metadata()
[all …]
Dfs.c35 struct jffs2_raw_inode *ri; in jffs2_do_setattr() local
76 ri = jffs2_alloc_raw_inode(); in jffs2_do_setattr()
77 if (!ri) { in jffs2_do_setattr()
83 ret = jffs2_reserve_space(c, sizeof(*ri) + mdatalen, &alloclen, in jffs2_do_setattr()
86 jffs2_free_raw_inode(ri); in jffs2_do_setattr()
94 ri->magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_do_setattr()
95 ri->nodetype = cpu_to_je16(JFFS2_NODETYPE_INODE); in jffs2_do_setattr()
96 ri->totlen = cpu_to_je32(sizeof(*ri) + mdatalen); in jffs2_do_setattr()
97 ri->hdr_crc = cpu_to_je32(crc32(0, ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_do_setattr()
99 ri->ino = cpu_to_je32(inode->i_ino); in jffs2_do_setattr()
[all …]
Ddir.c180 struct jffs2_raw_inode *ri; in jffs2_create() local
186 ri = jffs2_alloc_raw_inode(); in jffs2_create()
187 if (!ri) in jffs2_create()
194 inode = jffs2_new_inode(dir_i, mode, ri); in jffs2_create()
198 jffs2_free_raw_inode(ri); in jffs2_create()
217 ret = jffs2_do_create(c, dir_f, f, ri, &dentry->d_name); in jffs2_create()
221 dir_i->i_mtime = dir_i->i_ctime = ITIME(je32_to_cpu(ri->ctime)); in jffs2_create()
223 jffs2_free_raw_inode(ri); in jffs2_create()
235 jffs2_free_raw_inode(ri); in jffs2_create()
302 struct jffs2_raw_inode *ri; in jffs2_symlink() local
[all …]
/linux-3.4.99/arch/powerpc/kvm/
Dbook3s_hv_builtin.c26 static void kvm_release_linear(struct kvmppc_linear_info *ri);
95 void kvm_release_rma(struct kvmppc_linear_info *ri) in kvm_release_rma() argument
97 kvm_release_linear(ri); in kvm_release_rma()
176 struct kvmppc_linear_info *ri, *ret; in kvm_alloc_linear() local
180 list_for_each_entry(ri, &free_linears, list) { in kvm_alloc_linear()
181 if (ri->type != type) in kvm_alloc_linear()
184 list_del(&ri->list); in kvm_alloc_linear()
185 atomic_inc(&ri->use_count); in kvm_alloc_linear()
186 memset(ri->base_virt, 0, ri->npages << PAGE_SHIFT); in kvm_alloc_linear()
187 ret = ri; in kvm_alloc_linear()
[all …]
/linux-3.4.99/fs/nilfs2/
Drecovery.c429 struct nilfs_recovery_info *ri) in nilfs_prepare_segment_for_recovery() argument
431 struct list_head *head = &ri->ri_used_segments; in nilfs_prepare_segment_for_recovery()
440 segnum[2] = ri->ri_segnum; in nilfs_prepare_segment_for_recovery()
441 segnum[3] = ri->ri_nextnum; in nilfs_prepare_segment_for_recovery()
477 nilfs->ns_seg_seq = ri->ri_seq + 2; in nilfs_prepare_segment_for_recovery()
581 struct nilfs_recovery_info *ri) in nilfs_do_roll_forward() argument
600 pseg_start = ri->ri_lsegs_start; in nilfs_do_roll_forward()
601 seg_seq = ri->ri_lsegs_start_seq; in nilfs_do_roll_forward()
605 while (segnum != ri->ri_segnum || pseg_start <= ri->ri_pseg_start) { in nilfs_do_roll_forward()
661 if (pseg_start == ri->ri_lsegs_end) in nilfs_do_roll_forward()
[all …]
/linux-3.4.99/drivers/message/fusion/
Dmptfc.c434 struct mptfc_rport_info *ri; in mptfc_register_dev() local
448 list_for_each_entry(ri, &ioc->fc_rports, list) { in mptfc_register_dev()
449 pn = (u64)ri->pg0.WWPN.High << 32 | (u64)ri->pg0.WWPN.Low; in mptfc_register_dev()
451 list_move_tail(&ri->list, &ioc->fc_rports); in mptfc_register_dev()
457 ri = kzalloc(sizeof(struct mptfc_rport_info), GFP_KERNEL); in mptfc_register_dev()
458 if (!ri) in mptfc_register_dev()
460 list_add_tail(&ri->list, &ioc->fc_rports); in mptfc_register_dev()
463 ri->pg0 = *pg0; /* add/update pg0 data */ in mptfc_register_dev()
464 ri->flags &= ~MPT_RPORT_INFO_FLAGS_MISSING; in mptfc_register_dev()
467 if (!(ri->flags & MPT_RPORT_INFO_FLAGS_REGISTERED)) { in mptfc_register_dev()
[all …]
/linux-3.4.99/fs/dlm/
Ddebug_fs.c362 struct rsbtbl_iter *ri = iter_ptr; in table_seq_show() local
365 switch (ri->format) { in table_seq_show()
367 rv = print_format1(ri->rsb, seq); in table_seq_show()
370 if (ri->header) { in table_seq_show()
374 ri->header = 0; in table_seq_show()
376 rv = print_format2(ri->rsb, seq); in table_seq_show()
379 if (ri->header) { in table_seq_show()
381 ri->header = 0; in table_seq_show()
383 rv = print_format3(ri->rsb, seq); in table_seq_show()
398 struct rsbtbl_iter *ri; in table_seq_start() local
[all …]
/linux-3.4.99/arch/s390/kernel/
Dkprobes.c231 void __kprobes arch_prepare_kretprobe(struct kretprobe_instance *ri, in arch_prepare_kretprobe() argument
234 ri->ret_addr = (kprobe_opcode_t *) regs->gprs[14]; in arch_prepare_kretprobe()
355 struct kretprobe_instance *ri; in trampoline_probe_handler() local
378 ri = NULL; in trampoline_probe_handler()
382 hlist_for_each_entry_safe(ri, node, tmp, head, hlist) { in trampoline_probe_handler()
383 if (ri->task != current) in trampoline_probe_handler()
387 orig_ret_address = (unsigned long) ri->ret_addr; in trampoline_probe_handler()
398 kretprobe_assert(ri, orig_ret_address, trampoline_address); in trampoline_probe_handler()
400 correct_ret_addr = ri->ret_addr; in trampoline_probe_handler()
401 hlist_for_each_entry_safe(ri, node, tmp, head, hlist) { in trampoline_probe_handler()
[all …]
/linux-3.4.99/drivers/isdn/hisax/
Dtei.c104 put_tei_msg(struct PStack *st, u_char m_id, unsigned int ri, u_char tei) in put_tei_msg() argument
119 bp[1] = ri >> 8; in put_tei_msg()
120 bp[2] = ri & 0xff; in put_tei_msg()
137 st->ma.ri = random_ri(); in tei_id_request()
140 "assign request ri %d", st->ma.ri); in tei_id_request()
141 put_tei_msg(st, ID_REQUEST, st->ma.ri, 127); in tei_id_request()
153 int ri, tei; in tei_id_assign() local
155 ri = ((unsigned int) skb->data[1] << 8) + skb->data[2]; in tei_id_assign()
159 "identity assign ri %d tei %d", ri, tei); in tei_id_assign()
161 if (ri != ost->ma.ri) { in tei_id_assign()
[all …]
/linux-3.4.99/fs/romfs/
Dsuper.c151 struct romfs_inode ri; in romfs_readdir() local
163 ret = romfs_dev_read(i->i_sb, offset, &ri, ROMFH_SIZE); in romfs_readdir()
166 offset = be32_to_cpu(ri.spec) & ROMFH_MASK; in romfs_readdir()
179 ret = romfs_dev_read(i->i_sb, offset, &ri, ROMFH_SIZE); in romfs_readdir()
194 nextfh = be32_to_cpu(ri.next); in romfs_readdir()
196 ino = be32_to_cpu(ri.spec); in romfs_readdir()
217 struct romfs_inode ri; in romfs_lookup() local
222 ret = romfs_dev_read(dir->i_sb, offset, &ri, ROMFH_SIZE); in romfs_lookup()
229 offset = be32_to_cpu(ri.spec) & ROMFH_MASK; in romfs_lookup()
238 ret = romfs_dev_read(dir->i_sb, offset, &ri, sizeof(ri)); in romfs_lookup()
[all …]
/linux-3.4.99/arch/powerpc/kernel/
Dkprobes.c151 void __kprobes arch_prepare_kretprobe(struct kretprobe_instance *ri, in arch_prepare_kretprobe() argument
154 ri->ret_addr = (kprobe_opcode_t *)regs->link; in arch_prepare_kretprobe()
311 struct kretprobe_instance *ri = NULL; in trampoline_probe_handler() local
333 hlist_for_each_entry_safe(ri, node, tmp, head, hlist) { in trampoline_probe_handler()
334 if (ri->task != current) in trampoline_probe_handler()
338 if (ri->rp && ri->rp->handler) in trampoline_probe_handler()
339 ri->rp->handler(ri, regs); in trampoline_probe_handler()
341 orig_ret_address = (unsigned long)ri->ret_addr; in trampoline_probe_handler()
342 recycle_rp_inst(ri, &empty_rp); in trampoline_probe_handler()
353 kretprobe_assert(ri, orig_ret_address, trampoline_address); in trampoline_probe_handler()
[all …]
/linux-3.4.99/arch/arm/kernel/
Dkprobes.c396 struct kretprobe_instance *ri = NULL; in trampoline_handler() local
418 hlist_for_each_entry_safe(ri, node, tmp, head, hlist) { in trampoline_handler()
419 if (ri->task != current) in trampoline_handler()
423 if (ri->rp && ri->rp->handler) { in trampoline_handler()
424 __get_cpu_var(current_kprobe) = &ri->rp->kp; in trampoline_handler()
426 ri->rp->handler(ri, regs); in trampoline_handler()
430 orig_ret_address = (unsigned long)ri->ret_addr; in trampoline_handler()
431 recycle_rp_inst(ri, &empty_rp); in trampoline_handler()
442 kretprobe_assert(ri, orig_ret_address, trampoline_address); in trampoline_handler()
445 hlist_for_each_entry_safe(ri, node, tmp, &empty_rp, hlist) { in trampoline_handler()
[all …]
/linux-3.4.99/arch/sparc/kernel/
Dkprobes.c497 void __kprobes arch_prepare_kretprobe(struct kretprobe_instance *ri, in arch_prepare_kretprobe() argument
500 ri->ret_addr = (kprobe_opcode_t *)(regs->u_regs[UREG_RETPC] + 8); in arch_prepare_kretprobe()
512 struct kretprobe_instance *ri = NULL; in trampoline_probe_handler() local
534 hlist_for_each_entry_safe(ri, node, tmp, head, hlist) { in trampoline_probe_handler()
535 if (ri->task != current) in trampoline_probe_handler()
539 if (ri->rp && ri->rp->handler) in trampoline_probe_handler()
540 ri->rp->handler(ri, regs); in trampoline_probe_handler()
542 orig_ret_address = (unsigned long)ri->ret_addr; in trampoline_probe_handler()
543 recycle_rp_inst(ri, &empty_rp); in trampoline_probe_handler()
554 kretprobe_assert(ri, orig_ret_address, trampoline_address); in trampoline_probe_handler()
[all …]
/linux-3.4.99/drivers/video/msm/
Dmddi.c126 struct reg_read_info *ri; in mddi_handle_rev_data() local
145 ri = mddi->reg_read; in mddi_handle_rev_data()
146 if (ri == 0) { in mddi_handle_rev_data()
153 if (ri->reg != rev->reg.register_address) { in mddi_handle_rev_data()
158 rev->reg.register_data_list, ri->reg); in mddi_handle_rev_data()
162 ri->status = 0; in mddi_handle_rev_data()
163 ri->result = rev->reg.register_data_list; in mddi_handle_rev_data()
164 complete(&ri->done); in mddi_handle_rev_data()
192 struct reg_read_info *ri; in mddi_handle_rev_data_avail() local
208 ri = mddi->reg_read; in mddi_handle_rev_data_avail()
[all …]
/linux-3.4.99/arch/x86/kernel/
Dkprobes.c462 arch_prepare_kretprobe(struct kretprobe_instance *ri, struct pt_regs *regs) in arch_prepare_kretprobe() argument
466 ri->ret_addr = (kprobe_opcode_t *) *sara; in arch_prepare_kretprobe()
652 struct kretprobe_instance *ri = NULL; in trampoline_handler() local
684 hlist_for_each_entry_safe(ri, node, tmp, head, hlist) { in trampoline_handler()
685 if (ri->task != current) in trampoline_handler()
689 orig_ret_address = (unsigned long)ri->ret_addr; in trampoline_handler()
700 kretprobe_assert(ri, orig_ret_address, trampoline_address); in trampoline_handler()
702 correct_ret_addr = ri->ret_addr; in trampoline_handler()
703 hlist_for_each_entry_safe(ri, node, tmp, head, hlist) { in trampoline_handler()
704 if (ri->task != current) in trampoline_handler()
[all …]
/linux-3.4.99/drivers/uwb/
Dallocator.c58 struct uwb_rsv_row_info *ri = &ai->ri; in uwb_rsv_fill_row_alloc() local
64 if (ri->avail[mas] == 1) { in uwb_rsv_fill_row_alloc()
66 if (rows > ri->used_rows) { in uwb_rsv_fill_row_alloc()
207 struct uwb_rsv_row_info *ri = &ai->ri; in get_row_descriptors() local
210 ri->free_rows = 16; in get_row_descriptors()
212 ri->avail[mas] = 1; in get_row_descriptors()
215 ri->free_rows--; in get_row_descriptors()
216 ri->avail[mas]=0; in get_row_descriptors()
279 if (n_rows <= ai->ri.free_rows) { in uwb_rsv_find_best_row_alloc()
280 ai->ri.used_rows = n_rows; in uwb_rsv_find_best_row_alloc()
/linux-3.4.99/arch/mips/kernel/
Dkprobes.c584 void __kprobes arch_prepare_kretprobe(struct kretprobe_instance *ri, in arch_prepare_kretprobe() argument
587 ri->ret_addr = (kprobe_opcode_t *) regs->regs[31]; in arch_prepare_kretprobe()
599 struct kretprobe_instance *ri = NULL; in trampoline_probe_handler() local
621 hlist_for_each_entry_safe(ri, node, tmp, head, hlist) { in trampoline_probe_handler()
622 if (ri->task != current) in trampoline_probe_handler()
626 if (ri->rp && ri->rp->handler) in trampoline_probe_handler()
627 ri->rp->handler(ri, regs); in trampoline_probe_handler()
629 orig_ret_address = (unsigned long)ri->ret_addr; in trampoline_probe_handler()
630 recycle_rp_inst(ri, &empty_rp); in trampoline_probe_handler()
641 kretprobe_assert(ri, orig_ret_address, trampoline_address); in trampoline_probe_handler()
[all …]
/linux-3.4.99/arch/sh/kernel/
Dkprobes.c206 void __kprobes arch_prepare_kretprobe(struct kretprobe_instance *ri, in arch_prepare_kretprobe() argument
209 ri->ret_addr = (kprobe_opcode_t *) regs->pr; in arch_prepare_kretprobe()
311 struct kretprobe_instance *ri = NULL; in trampoline_probe_handler() local
333 hlist_for_each_entry_safe(ri, node, tmp, head, hlist) { in trampoline_probe_handler()
334 if (ri->task != current) in trampoline_probe_handler()
338 if (ri->rp && ri->rp->handler) { in trampoline_probe_handler()
339 __get_cpu_var(current_kprobe) = &ri->rp->kp; in trampoline_probe_handler()
340 ri->rp->handler(ri, regs); in trampoline_probe_handler()
344 orig_ret_address = (unsigned long)ri->ret_addr; in trampoline_probe_handler()
345 recycle_rp_inst(ri, &empty_rp); in trampoline_probe_handler()
[all …]
/linux-3.4.99/fs/ceph/
Dsnap.c623 struct ceph_mds_snap_realm *ri; /* encoded */ in ceph_update_snap_trace() local
633 ceph_decode_need(&p, e, sizeof(*ri), bad); in ceph_update_snap_trace()
634 ri = p; in ceph_update_snap_trace()
635 p += sizeof(*ri); in ceph_update_snap_trace()
636 ceph_decode_need(&p, e, sizeof(u64)*(le32_to_cpu(ri->num_snaps) + in ceph_update_snap_trace()
637 le32_to_cpu(ri->num_prior_parent_snaps)), bad); in ceph_update_snap_trace()
639 p += sizeof(u64) * le32_to_cpu(ri->num_snaps); in ceph_update_snap_trace()
641 p += sizeof(u64) * le32_to_cpu(ri->num_prior_parent_snaps); in ceph_update_snap_trace()
643 realm = ceph_lookup_snap_realm(mdsc, le64_to_cpu(ri->ino)); in ceph_update_snap_trace()
645 realm = ceph_create_snap_realm(mdsc, le64_to_cpu(ri->ino)); in ceph_update_snap_trace()
[all …]

1234