/openbmc/linux/drivers/regulator/ |
H A D | aat2870-regulator.c | 38 return aat2870->update(aat2870, ri->voltage_addr, ri->voltage_mask, in aat2870_ldo_set_voltage_sel() 53 return (val & ri->voltage_mask) >> ri->voltage_shift; in aat2870_ldo_get_voltage_sel() 61 return aat2870->update(aat2870, ri->enable_addr, ri->enable_mask, in aat2870_ldo_enable() 62 ri->enable_mask); in aat2870_ldo_enable() 70 return aat2870->update(aat2870, ri->enable_addr, ri->enable_mask, 0); in aat2870_ldo_disable() 131 if (ri->desc.id == id) in aat2870_get_regulator() 140 ri->enable_mask = 0x1 << ri->enable_shift; in aat2870_get_regulator() 145 ri->voltage_mask = 0xF << ri->voltage_shift; in aat2870_get_regulator() 147 return ri; in aat2870_get_regulator() 157 if (!ri) { in aat2870_regulator_probe() [all …]
|
H A D | tps65090-regulator.c | 71 ri->overcurrent_wait << CTRL_WT_BIT); in tps65090_reg_set_overcurrent_wait() 271 struct tps65090_regulator *ri, in tps65090_regulator_disable_ext_control() argument 408 struct tps65090_regulator *ri = NULL; in tps65090_regulator_probe() local 438 ri = &pmic[num]; in tps65090_regulator_probe() 439 ri->dev = &pdev->dev; in tps65090_regulator_probe() 442 ri->overcurrent_wait_valid = in tps65090_regulator_probe() 457 ri, tps_pdata); in tps65090_regulator_probe() 467 config.driver_data = ri; in tps65090_regulator_probe() 487 ri->desc->name); in tps65090_regulator_probe() 490 ri->rdev = rdev; in tps65090_regulator_probe() [all …]
|
H A D | tps6586x-regulator.c | 273 if (ri->enable_reg[0] == ri->enable_reg[1] && in tps6586x_regulator_preinit() 274 ri->enable_bit[0] == ri->enable_bit[1]) in tps6586x_regulator_preinit() 294 1 << ri->enable_bit[0]); in tps6586x_regulator_preinit() 360 ri = &table[i]; in find_regulator_info() 361 if (ri->desc.id == id) in find_regulator_info() 362 return ri; in find_regulator_info() 368 if (ri->desc.id == id) in find_regulator_info() 369 return ri; in find_regulator_info() 479 if (!ri) { in tps6586x_regulator_probe() 493 config.driver_data = ri; in tps6586x_regulator_probe() [all …]
|
/openbmc/linux/tools/net/ynl/ |
H A D | ynl-gen-c.py | 1319 if 'request' in ri.op[ri.op_mode]: 1323 if 'reply' in ri.op[ri.op_mode]: 1552 if 'reply' not in ri.op[ri.op_mode] and ri.op_mode != 'event': 1582 if 'reply' in ri.op[ri.op_mode]: 1595 if 'reply' in ri.op[ri.op_mode]: 1603 if 'reply' in ri.op[ri.op_mode]: 1615 if 'reply' in ri.op[ri.op_mode]: 1624 if 'reply' in ri.op[ri.op_mode]: 1655 if "request" in ri.op[ri.op_mode]: 1759 if 'reply' not in ri.op[ri.op_mode]: [all …]
|
/openbmc/linux/fs/jffs2/ |
H A D | read.c | 27 struct jffs2_raw_inode *ri; in jffs2_read_dnode() local 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() 46 jffs2_free_raw_inode(ri); in jffs2_read_dnode() 51 crc = crc32(0, ri, sizeof(*ri)-8); in jffs2_read_dnode() 55 crc, je32_to_cpu(ri->dsize), je32_to_cpu(ri->csize), in jffs2_read_dnode() 65 if (ri->compr == JFFS2_COMPR_ZERO && !je32_to_cpu(ri->dsize) && in jffs2_read_dnode() 67 ri->dsize = ri->csize; in jffs2_read_dnode() 90 if (ri->compr == JFFS2_COMPR_NONE && len == je32_to_cpu(ri->dsize)) { in jffs2_read_dnode() [all …]
|
H A D | file.c | 146 struct jffs2_raw_inode ri; in jffs2_write_begin() local 159 memset(&ri, 0, sizeof(ri)); 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() 172 ri.atime = ri.ctime = ri.mtime = cpu_to_je32(JFFS2_NOW()); in jffs2_write_begin() 175 ri.csize = cpu_to_je32(0); in jffs2_write_begin() 177 ri.node_crc = cpu_to_je32(crc32(0, &ri, sizeof(ri)-8)); in jffs2_write_begin() 254 struct jffs2_raw_inode *ri; in jffs2_write_end() local 281 if (!ri) { in jffs2_write_end() 295 ri->atime = ri->ctime = ri->mtime = cpu_to_je32(JFFS2_NOW()); in jffs2_write_end() [all …]
|
H A D | write.c | 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() 82 if (je32_to_cpu(ri->totlen) != sizeof(*ri) + datalen) { in jffs2_write_dnode() 106 ri->node_crc = cpu_to_je32(crc32(0, ri, sizeof(*ri)-8)); in jffs2_write_dnode() 177 (je32_to_cpu(ri->dsize)+je32_to_cpu(ri->offset) == je32_to_cpu(ri->isize)))) { in jffs2_write_dnode() 195 je32_to_cpu(ri->csize), je32_to_cpu(ri->node_crc), in jffs2_write_dnode() 196 je32_to_cpu(ri->data_crc), je32_to_cpu(ri->totlen)); in jffs2_write_dnode() 377 ri->totlen = cpu_to_je32(sizeof(*ri) + cdatalen); in jffs2_write_inode_range() 388 ri->node_crc = cpu_to_je32(crc32(0, ri, sizeof(*ri)-8)); in jffs2_write_inode_range() 463 ri->node_crc = cpu_to_je32(crc32(0, ri, sizeof(*ri)-8)); in jffs2_do_create() [all …]
|
H A D | gc.c | 812 memset(&ri, 0, sizeof(ri)); in jffs2_garbage_collect_metadata() 815 ri.totlen = cpu_to_je32(sizeof(ri) + mdatalen); in jffs2_garbage_collect_metadata() 831 ri.node_crc = cpu_to_je32(crc32(0, &ri, sizeof(ri)-8)); in jffs2_garbage_collect_metadata() 1026 memset(&ri, 0, sizeof(ri)); in jffs2_garbage_collect_hole() 1045 if (je32_to_cpu(ri.totlen) != sizeof(ri)) { in jffs2_garbage_collect_hole() 1048 je32_to_cpu(ri.totlen), sizeof(ri)); in jffs2_garbage_collect_hole() 1051 crc = crc32(0, &ri, sizeof(ri)-8); in jffs2_garbage_collect_hole() 1072 ri.totlen = cpu_to_je32(sizeof(ri)); in jffs2_garbage_collect_hole() 1099 ri.node_crc = cpu_to_je32(crc32(0, &ri, sizeof(ri)-8)); in jffs2_garbage_collect_hole() 1177 memset(&ri, 0, sizeof(ri)); in jffs2_garbage_collect_dnode() [all …]
|
H A D | fs.c | 37 struct jffs2_raw_inode *ri; in jffs2_do_setattr() local 79 if (!ri) { in jffs2_do_setattr() 88 jffs2_free_raw_inode(ri); 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() 121 ri->csize = ri->dsize = cpu_to_je32(mdatalen); in jffs2_do_setattr() 133 ri->node_crc = cpu_to_je32(crc32(0, ri, sizeof(*ri)-8)); in jffs2_do_setattr() 145 jffs2_free_raw_inode(ri); in jffs2_do_setattr() 175 jffs2_free_raw_inode(ri); in jffs2_do_setattr() 445 memset(ri, 0, sizeof(*ri)); in jffs2_new_inode() [all …]
|
H A D | dir.c | 173 if (!ri) in jffs2_create() 304 if (!ri) in jffs2_symlink() 334 ri->isize = ri->dsize = ri->csize = cpu_to_je32(inode->i_size); in jffs2_symlink() 335 ri->totlen = cpu_to_je32(sizeof(*ri) + inode->i_size); in jffs2_symlink() 340 ri->node_crc = cpu_to_je32(crc32(0, ri, sizeof(*ri)-8)); in jffs2_symlink() 464 if (!ri) in jffs2_mkdir() 500 ri->node_crc = cpu_to_je32(crc32(0, ri, sizeof(*ri)-8)); in jffs2_mkdir() 637 if (!ri) in jffs2_mknod() 669 ri->dsize = ri->csize = cpu_to_je32(devlen); in jffs2_mknod() 670 ri->totlen = cpu_to_je32(sizeof(*ri) + devlen); in jffs2_mknod() [all …]
|
/openbmc/linux/drivers/net/ethernet/microchip/vcap/ |
H A D | vcap_api.c | 1538 if (!ri->size || !ri->keyset_sw_regs || !ri->actionset_sw_regs) { in vcap_read_rule() 1570 if (!ri->size || !ri->keyset_sw_regs || !ri->actionset_sw_regs) { in vcap_write_rule() 2021 ret = ri->vctrl->ops->validate_keyset(ri->ndev, ri->admin, rule, in vcap_val_rule() 2058 ri->vctrl->ops->add_default_fields(ri->ndev, ri->admin, rule); in vcap_val_rule() 2061 ri->size = max(ri->keyset_sw, ri->actionset_sw); in vcap_val_rule() 2081 return ((addr - ri->size) / ri->size) * ri->size; in vcap_next_rule_addr() 2107 ri->sort_key = vcap_sort_key(sw_count, ri->size, ri->data.user, in vcap_insert_rule() 2169 ri->vctrl->ops->move(ri->ndev, ri->admin, move->addr, in vcap_move_rules() 2288 ri->vctrl->ops->init(ri->ndev, ri->admin, ri->addr, ri->size); in vcap_add_rule() 2590 vctrl->ops->init(ri->ndev, admin, ri->addr, ri->size); in vcap_del_rules() [all …]
|
H A D | vcap_api_debugfs.c | 161 struct vcap_admin *admin = ri->admin; in vcap_debugfs_show_keysets() 170 if (ri->state == VCAP_RS_DISABLED) in vcap_debugfs_show_keysets() 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() 216 struct vcap_admin *admin = ri->admin; in vcap_debugfs_show_rule_actionset() 227 ri->data.actionset); in vcap_debugfs_show_rule_actionset() 239 struct vcap_rule_internal *ri) in vcap_show_admin_rule() argument 245 ri->data.id, ri->addr, ri->addr + ri->size - 1, ri->size, in vcap_show_admin_rule() 246 ri->counter_id, ri->counter.value, ri->counter.sticky); in vcap_show_admin_rule() 251 switch (ri->state) { in vcap_show_admin_rule() [all …]
|
/openbmc/linux/fs/f2fs/ |
H A D | inode.c | 130 if (!F2FS_FITS_IN_INODE(ri, le16_to_cpu(ri->i_extra_isize), in f2fs_enable_inode_chksum() 162 struct f2fs_inode *ri; in f2fs_inode_chksum_verify() local 198 struct f2fs_inode *ri) in sanity_check_compress_inode() argument 395 struct f2fs_inode *ri; in do_read_inode() local 648 struct f2fs_inode *ri; in f2fs_update_inode() local 674 memset(&ri->i_ext, 0, sizeof(ri->i_ext)); in f2fs_update_inode() 685 ri->i_current_depth = in f2fs_update_inode() 688 ri->i_gc_failures = in f2fs_update_inode() 716 ri->i_crtime = in f2fs_update_inode() 718 ri->i_crtime_nsec = in f2fs_update_inode() [all …]
|
/openbmc/linux/arch/arm64/kernel/ |
H A D | pci.c | 166 struct acpi_pci_generic_root_info *ri; in pci_acpi_generic_release_info() local 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() 194 kfree(ri); in pci_acpi_scan_root() [all …]
|
/openbmc/linux/drivers/message/fusion/ |
H A D | mptfc.c | 441 pn = (u64)ri->pg0.WWPN.High << 32 | (u64)ri->pg0.WWPN.Low; in mptfc_register_dev() 450 if (!ri) in mptfc_register_dev() 463 ri->rport = rport; in mptfc_register_dev() 471 if (ri->starget) { in mptfc_register_dev() 483 pn = (u64)ri->pg0.WWPN.High << 32 | (u64)ri->pg0.WWPN.Low; in mptfc_register_dev() 484 nn = (u64)ri->pg0.WWNN.High << 32 | (u64)ri->pg0.WWNN.Low; in mptfc_register_dev() 498 kfree(ri); in mptfc_register_dev() 499 ri = NULL; in mptfc_register_dev() 575 pn = (u64)ri->pg0.WWPN.High << 32 | (u64)ri->pg0.WWPN.Low; in mptfc_dump_lun_info() 576 nn = (u64)ri->pg0.WWNN.High << 32 | (u64)ri->pg0.WWNN.Low; in mptfc_dump_lun_info() [all …]
|
/openbmc/qemu/hw/intc/ |
H A D | arm_gicv3_cpuif.c | 562 int regno = ri->opc2 & 3; in icv_ap_read() 574 int regno = ri->opc2 & 3; in icv_ap_write() 1652 bool is_eoir0 = ri->crm == 8; in icc_eoir_write() 1832 int regno = ri->opc2 & 3; in icc_ap_read() 1854 int regno = ri->opc2 & 3; in icc_ap_write() 2698 int regno = ri->opc2 & 3; in ich_ap_read() 2711 int regno = ri->opc2 & 3; in ich_ap_write() 2784 int regno = ri->opc2 | ((ri->crm & 1) << 3); in ich_lr_read() 2793 if (ri->crm >= 14) { in ich_lr_read() 2812 int regno = ri->opc2 | ((ri->crm & 1) << 3); in ich_lr_write() [all …]
|
/openbmc/linux/tools/testing/selftests/kvm/lib/s390x/ |
H A D | processor.c | 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() 91 int ri, idx; in addr_arch_gva2gpa() local 98 for (ri = 1; ri <= 4; ri++) { in addr_arch_gva2gpa() [all …]
|
/openbmc/linux/fs/nilfs2/ |
H A D | recovery.c | 428 segnum[2] = ri->ri_segnum; in nilfs_prepare_segment_for_recovery() 429 segnum[3] = ri->ri_nextnum; in nilfs_prepare_segment_for_recovery() 590 pseg_start = ri->ri_lsegs_start; in nilfs_do_roll_forward() 595 while (segnum != ri->ri_segnum || pseg_start <= ri->ri_pseg_start) { in nilfs_do_roll_forward() 764 if (ri->ri_lsegs_start == 0 || ri->ri_lsegs_end == 0) in nilfs_salvage_orphan_logs() 882 ri->ri_seq = seg_seq; in nilfs_search_super_root() 883 ri->ri_segnum = segnum; in nilfs_search_super_root() 886 ri->ri_nextnum = nextnum; in nilfs_search_super_root() 917 ri->ri_cno = cno++; in nilfs_search_super_root() 918 ri->ri_super_root = pseg_end; in nilfs_search_super_root() [all …]
|
/openbmc/qemu/target/arm/tcg/ |
H A D | op_helper.c | 771 res = ri->accessfn(env, ri, isread); in HELPER() 841 return ri; in HELPER() 891 return ri; in HELPER() 945 ri->writefn(env, ri, value); in HELPER() 948 ri->writefn(env, ri, value); in HELPER() 959 res = ri->readfn(env, ri); in HELPER() 962 res = ri->readfn(env, ri); in HELPER() 974 ri->writefn(env, ri, value); in HELPER() 977 ri->writefn(env, ri, value); in HELPER() 988 res = ri->readfn(env, ri); in HELPER() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-protocols/mdns/mdns/ |
H A D | 0001-Create-subroutine-for-cleaning-recent-interfaces.patch | 28 + 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/linux/fs/dlm/ |
H A D | debug_fs.c | 493 ri = kzalloc(sizeof(*ri), GFP_NOFS); in table_seq_start() 494 if (!ri) in table_seq_start() 520 return ri; in table_seq_start() 538 kfree(ri); in table_seq_start() 552 return ri; in table_seq_start() 576 rp = ri->rsb; in table_seq_next() 586 return ri; in table_seq_next() 603 kfree(ri); in table_seq_next() 618 return ri; in table_seq_next() 628 if (ri) { in table_seq_stop() [all …]
|
/openbmc/linux/fs/xfs/ |
H A D | xfs_refcount_item.c | 256 struct xfs_refcount_intent *ri, in xfs_trans_log_finish_refcount_update() argument 316 struct xfs_refcount_intent *ri) in xfs_refcount_update_log_item() argument 333 pmap->pe_len = ri->ri_blockcount; in xfs_refcount_update_log_item() 346 struct xfs_refcount_intent *ri; in xfs_refcount_update_create_intent() local 372 struct xfs_refcount_intent *ri) in xfs_refcount_update_get_group() argument 383 struct xfs_refcount_intent *ri) in xfs_refcount_update_put_group() argument 385 xfs_perag_intent_put(ri->ri_pag); in xfs_refcount_update_put_group() 396 struct xfs_refcount_intent *ri; in xfs_refcount_update_finish_item() local 410 xfs_refcount_update_put_group(ri); in xfs_refcount_update_finish_item() 428 struct xfs_refcount_intent *ri; in xfs_refcount_update_cancel_item() local [all …]
|
H A D | xfs_rmap_item.c | 297 struct xfs_rmap_intent *ri, in xfs_trans_log_finish_rmap_update() argument 338 struct xfs_rmap_intent *ri) in xfs_rmap_update_log_item() argument 354 map->me_owner = ri->ri_owner; in xfs_rmap_update_log_item() 358 xfs_trans_set_rmap_flags(map, ri->ri_type, ri->ri_whichfork, in xfs_rmap_update_log_item() 359 ri->ri_bmap.br_state); in xfs_rmap_update_log_item() 371 struct xfs_rmap_intent *ri; in xfs_rmap_update_create_intent() local 397 struct xfs_rmap_intent *ri) in xfs_rmap_update_get_group() argument 408 struct xfs_rmap_intent *ri) in xfs_rmap_update_put_group() argument 421 struct xfs_rmap_intent *ri; in xfs_rmap_update_finish_item() local 429 xfs_rmap_update_put_group(ri); in xfs_rmap_update_finish_item() [all …]
|
/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
H A D | common.c | 273 struct brcmf_rev_info *ri; in brcmf_c_preinit_dcmds() local 306 ri = &ifp->drvr->revinfo; in brcmf_c_preinit_dcmds() 312 strscpy(ri->chipname, "UNKNOWN", sizeof(ri->chipname)); in brcmf_c_preinit_dcmds() 317 ri->corerev = le32_to_cpu(revinfo.corerev); in brcmf_c_preinit_dcmds() 318 ri->boardid = le32_to_cpu(revinfo.boardid); in brcmf_c_preinit_dcmds() 323 ri->bus = le32_to_cpu(revinfo.bus); in brcmf_c_preinit_dcmds() 324 ri->phytype = le32_to_cpu(revinfo.phytype); in brcmf_c_preinit_dcmds() 325 ri->phyrev = le32_to_cpu(revinfo.phyrev); in brcmf_c_preinit_dcmds() 326 ri->anarev = le32_to_cpu(revinfo.anarev); in brcmf_c_preinit_dcmds() 336 ri->result = err; in brcmf_c_preinit_dcmds() [all …]
|
/openbmc/linux/drivers/clk/mmp/ |
H A D | clk-mix.c | 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() 169 mux_div |= (1 << ri->bit_fc); in _set_rate() 186 fc_req = readl(ri->reg_clk_ctrl); in _set_rate() 187 fc_req |= 1 << ri->bit_fc; in _set_rate() 188 writel(fc_req, ri->reg_clk_ctrl); in _set_rate() 189 writel(mux_div, ri->reg_clk_sel); in _set_rate() [all …]
|