Home
last modified time | relevance | path

Searched full:ri (Results 1 – 25 of 477) sorted by relevance

12345678910>>...20

/openbmc/linux/tools/net/ynl/
H A Dynl-gen-c.py95 def _complex_member_type(self, ri): argument
101 def free(self, ri, var, ref): argument
103 ri.cw.p(f'free({var}->{ref}{self.c_name});')
105 def arg_member(self, ri): argument
106 member = self._complex_member_type(ri)
114 def struct_member(self, ri): argument
116 ri.cw.p(f"unsigned int n_{self.c_name};")
117 member = self._complex_member_type(ri)
120 ri.cw.p(f"{member} {ptr}{self.c_name};")
122 members = self.arg_member(ri)
[all …]
/openbmc/linux/drivers/regulator/
H A Daat2870-regulator.c35 struct aat2870_regulator *ri = rdev_get_drvdata(rdev); in aat2870_ldo_set_voltage_sel() local
36 struct aat2870_data *aat2870 = ri->aat2870; in aat2870_ldo_set_voltage_sel()
38 return aat2870->update(aat2870, ri->voltage_addr, ri->voltage_mask, in aat2870_ldo_set_voltage_sel()
39 selector << ri->voltage_shift); in aat2870_ldo_set_voltage_sel()
44 struct aat2870_regulator *ri = rdev_get_drvdata(rdev); in aat2870_ldo_get_voltage_sel() local
45 struct aat2870_data *aat2870 = ri->aat2870; in aat2870_ldo_get_voltage_sel()
49 ret = aat2870->read(aat2870, ri->voltage_addr, &val); in aat2870_ldo_get_voltage_sel()
53 return (val & ri->voltage_mask) >> ri->voltage_shift; in aat2870_ldo_get_voltage_sel()
58 struct aat2870_regulator *ri = rdev_get_drvdata(rdev); in aat2870_ldo_enable() local
59 struct aat2870_data *aat2870 = ri->aat2870; in aat2870_ldo_enable()
[all …]
H A Dtps65090-regulator.c59 * @ri: Overall regulator data
64 static int tps65090_reg_set_overcurrent_wait(struct tps65090_regulator *ri, in tps65090_reg_set_overcurrent_wait() argument
71 ri->overcurrent_wait << CTRL_WT_BIT); in tps65090_reg_set_overcurrent_wait()
255 struct tps65090_regulator *ri, bool enable) in tps65090_config_ext_control() argument
258 struct device *parent = ri->dev->parent; in tps65090_config_ext_control()
259 unsigned int reg_en_reg = ri->desc->enable_reg; in tps65090_config_ext_control()
266 dev_err(ri->dev, "Error in updating reg 0x%x\n", reg_en_reg); in tps65090_config_ext_control()
271 struct tps65090_regulator *ri, in tps65090_regulator_disable_ext_control() argument
275 struct device *parent = ri->dev->parent; in tps65090_regulator_disable_ext_control()
276 unsigned int reg_en_reg = ri->desc->enable_reg; in tps65090_regulator_disable_ext_control()
[all …]
/openbmc/linux/drivers/net/ethernet/microchip/vcap/
H A Dvcap_api.c446 static void vcap_encode_keyfield(struct vcap_rule_internal *ri, in vcap_encode_keyfield() argument
451 int sw_width = ri->vctrl->vcaps[ri->admin->vtype].sw_width; in vcap_encode_keyfield()
452 struct vcap_cache_data *cache = &ri->admin->cache; in vcap_encode_keyfield()
500 struct vcap_rule_internal *ri, in vcap_encode_keyfield_typegroups() argument
503 int sw_width = vctrl->vcaps[ri->admin->vtype].sw_width; in vcap_encode_keyfield_typegroups()
504 struct vcap_cache_data *cache = &ri->admin->cache; in vcap_encode_keyfield_typegroups()
536 struct vcap_rule_internal *ri = to_intrule(rule); in vcap_copy_from_client_keyfield() local
547 if (!ri->admin->w32be) { in vcap_copy_from_client_keyfield()
591 struct vcap_rule_internal *ri = to_intrule(rule); in vcap_copy_from_client_actionfield() local
602 if (!ri->admin->w32be) { in vcap_copy_from_client_actionfield()
[all …]
H A Dvcap_api_debugfs.c158 static int vcap_debugfs_show_keysets(struct vcap_rule_internal *ri, in vcap_debugfs_show_keysets() argument
161 struct vcap_admin *admin = ri->admin; in vcap_debugfs_show_keysets()
170 if (ri->state == VCAP_RS_DISABLED) in vcap_debugfs_show_keysets()
171 err = vcap_rule_get_keysets(ri, &matches); in vcap_debugfs_show_keysets()
173 err = vcap_find_keystream_keysets(ri->vctrl, admin->vtype, in vcap_debugfs_show_keysets()
186 vcap_keyset_name(ri->vctrl, matches.keysets[idx])); in vcap_debugfs_show_keysets()
191 static int vcap_debugfs_show_rule_keyset(struct vcap_rule_internal *ri, in vcap_debugfs_show_rule_keyset() argument
194 struct vcap_control *vctrl = ri->vctrl; in vcap_debugfs_show_rule_keyset()
195 struct vcap_admin *admin = ri->admin; in vcap_debugfs_show_rule_keyset()
199 vcap_debugfs_show_keysets(ri, out); in vcap_debugfs_show_rule_keyset()
[all …]
/openbmc/linux/fs/jffs2/
H A 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 …]
H A Dfile.c146 struct jffs2_raw_inode ri; in jffs2_write_begin() local
153 ret = jffs2_reserve_space(c, sizeof(ri), &alloc_len, in jffs2_write_begin()
159 memset(&ri, 0, sizeof(ri)); in jffs2_write_begin()
161 ri.magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_write_begin()
162 ri.nodetype = cpu_to_je16(JFFS2_NODETYPE_INODE); in jffs2_write_begin()
163 ri.totlen = cpu_to_je32(sizeof(ri)); in jffs2_write_begin()
164 ri.hdr_crc = cpu_to_je32(crc32(0, &ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_write_begin()
166 ri.ino = cpu_to_je32(f->inocache->ino); in jffs2_write_begin()
167 ri.version = cpu_to_je32(++f->highest_version); in jffs2_write_begin()
168 ri.mode = cpu_to_jemode(inode->i_mode); in jffs2_write_begin()
[all …]
H A 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 …]
H A Dfs.c37 struct jffs2_raw_inode *ri; in jffs2_do_setattr() local
78 ri = jffs2_alloc_raw_inode(); in jffs2_do_setattr()
79 if (!ri) { in jffs2_do_setattr()
85 ret = jffs2_reserve_space(c, sizeof(*ri) + mdatalen, &alloclen, in jffs2_do_setattr()
88 jffs2_free_raw_inode(ri); in jffs2_do_setattr()
96 ri->magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_do_setattr()
97 ri->nodetype = cpu_to_je16(JFFS2_NODETYPE_INODE); in jffs2_do_setattr()
98 ri->totlen = cpu_to_je32(sizeof(*ri) + mdatalen); in jffs2_do_setattr()
99 ri->hdr_crc = cpu_to_je32(crc32(0, ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_do_setattr()
101 ri->ino = cpu_to_je32(inode->i_ino); in jffs2_do_setattr()
[all …]
H A Ddir.c166 struct jffs2_raw_inode *ri; in jffs2_create() local
172 ri = jffs2_alloc_raw_inode(); in jffs2_create()
173 if (!ri) in jffs2_create()
180 inode = jffs2_new_inode(dir_i, mode, ri); in jffs2_create()
184 jffs2_free_raw_inode(ri); in jffs2_create()
203 ret = jffs2_do_create(c, dir_f, f, ri, &dentry->d_name); in jffs2_create()
208 ITIME(je32_to_cpu(ri->ctime))); in jffs2_create()
210 jffs2_free_raw_inode(ri); in jffs2_create()
221 jffs2_free_raw_inode(ri); in jffs2_create()
289 struct jffs2_raw_inode *ri; in jffs2_symlink() local
[all …]
H A Dgc.c762 struct jffs2_raw_inode ri; in jffs2_garbage_collect_metadata() local
796 ret = jffs2_reserve_space_gc(c, sizeof(ri) + mdatalen, &alloclen, in jffs2_garbage_collect_metadata()
800 sizeof(ri) + mdatalen, ret); in jffs2_garbage_collect_metadata()
812 memset(&ri, 0, sizeof(ri)); in jffs2_garbage_collect_metadata()
813 ri.magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_garbage_collect_metadata()
814 ri.nodetype = cpu_to_je16(JFFS2_NODETYPE_INODE); in jffs2_garbage_collect_metadata()
815 ri.totlen = cpu_to_je32(sizeof(ri) + mdatalen); in jffs2_garbage_collect_metadata()
816 ri.hdr_crc = cpu_to_je32(crc32(0, &ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_garbage_collect_metadata()
818 ri.ino = cpu_to_je32(f->inocache->ino); in jffs2_garbage_collect_metadata()
819 ri.version = cpu_to_je32(++f->highest_version); in jffs2_garbage_collect_metadata()
[all …]
/openbmc/linux/fs/f2fs/
H A Dinode.c122 struct f2fs_inode *ri = &F2FS_NODE(page)->i; in f2fs_enable_inode_chksum() local
127 if (!IS_INODE(page) || !(ri->i_inline & F2FS_EXTRA_ATTR)) in f2fs_enable_inode_chksum()
130 if (!F2FS_FITS_IN_INODE(ri, le16_to_cpu(ri->i_extra_isize), in f2fs_enable_inode_chksum()
140 struct f2fs_inode *ri = &node->i; in f2fs_inode_chksum() local
142 __le32 gen = ri->i_generation; in f2fs_inode_chksum()
152 chksum = f2fs_chksum(sbi, chksum_seed, (__u8 *)ri, offset); in f2fs_inode_chksum()
155 chksum = f2fs_chksum(sbi, chksum, (__u8 *)ri + offset, in f2fs_inode_chksum()
162 struct f2fs_inode *ri; in f2fs_inode_chksum_verify() local
176 ri = &F2FS_NODE(page)->i; in f2fs_inode_chksum_verify()
177 provided = le32_to_cpu(ri->i_inode_checksum); in f2fs_inode_chksum_verify()
[all …]
/openbmc/qemu/tcg/ppc/
H A Dtcg-target-con-set.h18 C_O0_I4(r, r, ri, ri)
25 C_O1_I2(r, rI, ri)
26 C_O1_I2(r, rI, rT)
28 C_O1_I2(r, r, ri)
30 C_O1_I2(r, r, rI)
38 C_O1_I4(r, r, r, ri, ri)
42 C_O2_I4(r, r, rI, rZM, r, r)
43 C_O2_I4(r, r, r, r, rI, rZM)
/openbmc/linux/fs/nilfs2/
H A Drecovery.c417 struct nilfs_recovery_info *ri) in nilfs_prepare_segment_for_recovery() argument
419 struct list_head *head = &ri->ri_used_segments; in nilfs_prepare_segment_for_recovery()
428 segnum[2] = ri->ri_segnum; in nilfs_prepare_segment_for_recovery()
429 segnum[3] = ri->ri_nextnum; in nilfs_prepare_segment_for_recovery()
465 nilfs->ns_seg_seq = ri->ri_seq + 2; in nilfs_prepare_segment_for_recovery()
566 * @ri: pointer to a nilfs_recovery_info
571 struct nilfs_recovery_info *ri) in nilfs_do_roll_forward() argument
590 pseg_start = ri->ri_lsegs_start; in nilfs_do_roll_forward()
591 seg_seq = ri->ri_lsegs_start_seq; in nilfs_do_roll_forward()
595 while (segnum != ri->ri_segnum || pseg_start <= ri->ri_pseg_start) { in nilfs_do_roll_forward()
[all …]
/openbmc/linux/arch/parisc/kernel/
H A Dptrace.c443 #define RI(reg) (offsetof(struct user_regs_struct,reg) / sizeof(long)) macro
448 case RI(gr[0]) ... RI(gr[31]): return regs->gr[num - RI(gr[0])]; in get_reg()
449 case RI(sr[0]) ... RI(sr[7]): return regs->sr[num - RI(sr[0])]; in get_reg()
450 case RI(iasq[0]): return regs->iasq[0]; in get_reg()
451 case RI(iasq[1]): return regs->iasq[1]; in get_reg()
452 case RI(iaoq[0]): return regs->iaoq[0]; in get_reg()
453 case RI(iaoq[1]): return regs->iaoq[1]; in get_reg()
454 case RI(sar): return regs->sar; in get_reg()
455 case RI(iir): return regs->iir; in get_reg()
456 case RI(isr): return regs->isr; in get_reg()
[all …]
/openbmc/linux/arch/arm64/kernel/
H A Dpci.c166 struct acpi_pci_generic_root_info *ri; in pci_acpi_generic_release_info() local
168 ri = container_of(ci, struct acpi_pci_generic_root_info, common); in pci_acpi_generic_release_info()
169 pci_ecam_free(ri->cfg); in pci_acpi_generic_release_info()
171 kfree(ri); in pci_acpi_generic_release_info()
177 struct acpi_pci_generic_root_info *ri; in pci_acpi_scan_root() local
182 ri = kzalloc(sizeof(*ri), GFP_KERNEL); in pci_acpi_scan_root()
183 if (!ri) in pci_acpi_scan_root()
188 kfree(ri); in pci_acpi_scan_root()
192 ri->cfg = pci_acpi_setup_ecam_mapping(root); in pci_acpi_scan_root()
193 if (!ri->cfg) { in pci_acpi_scan_root()
[all …]
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-protocols/mdns/mdns/
H A D0001-Create-subroutine-for-cleaning-recent-interfaces.patch28 + PosixNetworkInterface **ri = &gRecentInterfaces;
30 + while (*ri)
32 + PosixNetworkInterface *pi = *ri;
33 + if (utc - pi->LastSeen < 60) ri = (PosixNetworkInterface **)&pi->coreIntf.next;
34 + else { *ri = (PosixNetworkInterface *)pi->coreIntf.next; mdns_free(pi); }
47 - PosixNetworkInterface **ri = &gRecentInterfaces;
49 - while (*ri)
51 - PosixNetworkInterface *pi = *ri;
52 - if (utc - pi->LastSeen < 60) ri = (PosixNetworkInterface **)&pi->coreIntf.next;
53 - else { *ri = (PosixNetworkInterface *)pi->coreIntf.next; mdns_free(pi); }
/openbmc/qemu/tcg/s390x/
H A Dtcg-target-con-set.h17 C_O0_I2(r, ri)
25 C_O1_I2(r, 0, ri)
26 C_O1_I2(r, 0, rI)
29 C_O1_I2(r, r, ri)
31 C_O1_I2(r, r, rI)
43 C_O1_I4(r, r, ri, rI, r)
44 C_O1_I4(r, r, rC, rI, r)
49 C_N1_O1_I4(r, r, 0, 1, ri, r)
/openbmc/linux/tools/testing/selftests/kvm/lib/s390x/
H A Dprocessor.c33 * Allocate 4 pages for a region/segment table (ri < 4), or one page for
34 * a page table (ri == 4). Returns a suitable region/segment table entry
37 static uint64_t virt_alloc_region(struct kvm_vm *vm, int ri) in virt_alloc_region() argument
41 taddr = vm_phy_pages_alloc(vm, ri < 4 ? PAGES_PER_REGION : 1, in virt_alloc_region()
46 | (((4 - ri) << 2) & REGION_ENTRY_TYPE) in virt_alloc_region()
47 | ((ri < 4 ? (PAGES_PER_REGION - 1) : 0) & REGION_ENTRY_LENGTH); in virt_alloc_region()
52 int ri, idx; in virt_arch_pg_map() local
74 for (ri = 1; ri <= 4; ri++) { in virt_arch_pg_map()
75 idx = (gva >> (64 - 11 * ri)) & 0x7ffu; in virt_arch_pg_map()
77 entry[idx] = virt_alloc_region(vm, ri); in virt_arch_pg_map()
[all …]
/openbmc/qemu/tests/tcg/plugins/
H A Dmem.c103 RegionInfo *ri = (RegionInfo *) counts->data; in plugin_exit() local
108 ri->region_address, in plugin_exit()
109 ri->reads, in plugin_exit()
110 ri->writes, in plugin_exit()
111 ri->seen_all ? "true" : "false"); in plugin_exit()
132 RegionInfo *ri; in update_region_info() local
138 ri = (RegionInfo *) g_hash_table_lookup(regions, GUINT_TO_POINTER(region)); in update_region_info()
140 if (!ri) { in update_region_info()
141 ri = g_new0(RegionInfo, 1); in update_region_info()
142 ri->region_address = region; in update_region_info()
[all …]
/openbmc/linux/drivers/message/fusion/
H A Dmptfc.c426 struct mptfc_rport_info *ri; in mptfc_register_dev() local
440 list_for_each_entry(ri, &ioc->fc_rports, list) { in mptfc_register_dev()
441 pn = (u64)ri->pg0.WWPN.High << 32 | (u64)ri->pg0.WWPN.Low; in mptfc_register_dev()
443 list_move_tail(&ri->list, &ioc->fc_rports); in mptfc_register_dev()
449 ri = kzalloc(sizeof(struct mptfc_rport_info), GFP_KERNEL); in mptfc_register_dev()
450 if (!ri) in mptfc_register_dev()
452 list_add_tail(&ri->list, &ioc->fc_rports); in mptfc_register_dev()
455 ri->pg0 = *pg0; /* add/update pg0 data */ in mptfc_register_dev()
456 ri->flags &= ~MPT_RPORT_INFO_FLAGS_MISSING; in mptfc_register_dev()
459 if (!(ri->flags & MPT_RPORT_INFO_FLAGS_REGISTERED)) { in mptfc_register_dev()
[all …]
/openbmc/qemu/tcg/i386/
H A Dtcg-target-con-set.h22 C_O0_I2(ri, r)
29 C_O0_I4(r, r, ri, ri)
42 C_O1_I2(r, 0, ri)
43 C_O1_I2(r, 0, rI)
46 C_O1_I2(r, r, ri)
47 C_O1_I2(r, r, rI)
55 C_O1_I4(r, r, r, ri, ri)
/openbmc/qemu/tcg/arm/
H A Dtcg-target-con-set.h19 C_O0_I4(r, r, rI, rI)
29 C_O1_I2(r, r, rI)
32 C_O1_I2(r, r, ri)
40 C_O1_I4(r, r, r, rI, rI)
46 C_O2_I4(r, r, rI, rI, rIN, rIK)
/openbmc/linux/fs/dlm/
H A Ddebug_fs.c431 struct rsbtbl_iter *ri = iter_ptr; in table_seq_show() local
433 switch (ri->format) { in table_seq_show()
435 print_format1(ri->rsb, seq); in table_seq_show()
438 if (ri->header) { in table_seq_show()
440 ri->header = 0; in table_seq_show()
442 print_format2(ri->rsb, seq); in table_seq_show()
445 if (ri->header) { in table_seq_show()
447 ri->header = 0; in table_seq_show()
449 print_format3(ri->rsb, seq); in table_seq_show()
452 if (ri->header) { in table_seq_show()
[all …]
/openbmc/linux/drivers/clk/mmp/
H A Dclk-mix.c134 struct mmp_clk_mix_reg_info *ri = &mix->reg_info; in _set_rate() local
148 mux_div = readl(ri->reg_clk_ctrl); in _set_rate()
150 mux_div = readl(ri->reg_clk_sel); in _set_rate()
153 width = ri->width_div; in _set_rate()
154 shift = ri->shift_div; in _set_rate()
160 width = ri->width_mux; in _set_rate()
161 shift = ri->shift_mux; in _set_rate()
167 writel(mux_div, ri->reg_clk_ctrl); in _set_rate()
169 mux_div |= (1 << ri->bit_fc); in _set_rate()
170 writel(mux_div, ri->reg_clk_ctrl); in _set_rate()
[all …]

12345678910>>...20