/linux-6.1.9/drivers/regulator/ |
D | aat2870-regulator.c | 35 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 …]
|
D | tps65090-regulator.c | 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() 286 dev_err(ri->dev, "Error in set reg 0x%x\n", reg_en_reg); in tps65090_regulator_disable_ext_control() [all …]
|
D | tps6586x-regulator.c | 268 struct tps6586x_regulator *ri) in tps6586x_regulator_preinit() argument 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() 277 ret = tps6586x_read(parent, ri->enable_reg[0], &val1); in tps6586x_regulator_preinit() 281 ret = tps6586x_read(parent, ri->enable_reg[1], &val2); in tps6586x_regulator_preinit() 285 if (!(val2 & (1 << ri->enable_bit[1]))) in tps6586x_regulator_preinit() 292 if (!(val1 & (1 << ri->enable_bit[0]))) { in tps6586x_regulator_preinit() 293 ret = tps6586x_set_bits(parent, ri->enable_reg[0], in tps6586x_regulator_preinit() 294 1 << ri->enable_bit[0]); in tps6586x_regulator_preinit() 299 return tps6586x_clr_bits(parent, ri->enable_reg[1], in tps6586x_regulator_preinit() [all …]
|
D | da903x-regulator.c | 419 struct da903x_regulator_info *ri; in find_regulator_info() local 423 ri = &da903x_regulator_info[i]; in find_regulator_info() 424 if (ri->desc.id == id) in find_regulator_info() 425 return ri; in find_regulator_info() 432 struct da903x_regulator_info *ri = NULL; in da903x_regulator_probe() local 436 ri = find_regulator_info(pdev->id); in da903x_regulator_probe() 437 if (ri == NULL) { in da903x_regulator_probe() 443 if (ri->desc.id == DA9034_ID_LDO12) { in da903x_regulator_probe() 444 ri->desc.ops = &da9034_regulator_ldo12_ops; in da903x_regulator_probe() 445 ri->desc.n_voltages = 16; in da903x_regulator_probe() [all …]
|
D | rc5t583-regulator.c | 106 struct rc5t583_regulator_info *ri; in rc5t583_regulator_probe() local 116 ri = &rc5t583_reg_info[id]; in rc5t583_regulator_probe() 118 if (ri->deepsleep_id == RC5T583_DS_NONE) in rc5t583_regulator_probe() 122 ri->deepsleep_id, in rc5t583_regulator_probe() 136 config.driver_data = ri; in rc5t583_regulator_probe() 139 rdev = devm_regulator_register(&pdev->dev, &ri->desc, &config); in rc5t583_regulator_probe() 142 ri->desc.name); in rc5t583_regulator_probe()
|
/linux-6.1.9/fs/jffs2/ |
D | read.c | 27 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 …]
|
D | file.c | 147 struct jffs2_raw_inode ri; in jffs2_write_begin() local 154 ret = jffs2_reserve_space(c, sizeof(ri), &alloc_len, in jffs2_write_begin() 160 memset(&ri, 0, sizeof(ri)); in jffs2_write_begin() 162 ri.magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_write_begin() 163 ri.nodetype = cpu_to_je16(JFFS2_NODETYPE_INODE); in jffs2_write_begin() 164 ri.totlen = cpu_to_je32(sizeof(ri)); in jffs2_write_begin() 165 ri.hdr_crc = cpu_to_je32(crc32(0, &ri, sizeof(struct jffs2_unknown_node)-4)); in jffs2_write_begin() 167 ri.ino = cpu_to_je32(f->inocache->ino); in jffs2_write_begin() 168 ri.version = cpu_to_je32(++f->highest_version); in jffs2_write_begin() 169 ri.mode = cpu_to_jemode(inode->i_mode); in jffs2_write_begin() [all …]
|
D | write.c | 24 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 …]
|
D | gc.c | 762 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 …]
|
D | fs.c | 37 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 …]
|
D | dir.c | 166 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() 207 dir_i->i_mtime = dir_i->i_ctime = ITIME(je32_to_cpu(ri->ctime)); in jffs2_create() 209 jffs2_free_raw_inode(ri); in jffs2_create() 220 jffs2_free_raw_inode(ri); in jffs2_create() 288 struct jffs2_raw_inode *ri; in jffs2_symlink() local [all …]
|
/linux-6.1.9/fs/f2fs/ |
D | inode.c | 62 static void __get_inode_rdev(struct inode *inode, struct f2fs_inode *ri) in __get_inode_rdev() argument 68 if (ri->i_addr[extra_size]) in __get_inode_rdev() 70 le32_to_cpu(ri->i_addr[extra_size])); in __get_inode_rdev() 73 le32_to_cpu(ri->i_addr[extra_size + 1])); in __get_inode_rdev() 78 struct f2fs_inode *ri) in __written_first_block() argument 80 block_t addr = le32_to_cpu(ri->i_addr[offset_in_addr(ri)]); in __written_first_block() 91 static void __set_inode_rdev(struct inode *inode, struct f2fs_inode *ri) in __set_inode_rdev() argument 97 ri->i_addr[extra_size] = in __set_inode_rdev() 99 ri->i_addr[extra_size + 1] = 0; in __set_inode_rdev() 101 ri->i_addr[extra_size] = 0; in __set_inode_rdev() [all …]
|
/linux-6.1.9/arch/arm64/kernel/ |
D | pci.c | 168 struct acpi_pci_generic_root_info *ri; in pci_acpi_generic_release_info() local 170 ri = container_of(ci, struct acpi_pci_generic_root_info, common); in pci_acpi_generic_release_info() 171 pci_ecam_free(ri->cfg); in pci_acpi_generic_release_info() 173 kfree(ri); in pci_acpi_generic_release_info() 179 struct acpi_pci_generic_root_info *ri; in pci_acpi_scan_root() local 184 ri = kzalloc(sizeof(*ri), GFP_KERNEL); in pci_acpi_scan_root() 185 if (!ri) in pci_acpi_scan_root() 190 kfree(ri); in pci_acpi_scan_root() 194 ri->cfg = pci_acpi_setup_ecam_mapping(root); in pci_acpi_scan_root() 195 if (!ri->cfg) { in pci_acpi_scan_root() [all …]
|
/linux-6.1.9/fs/nilfs2/ |
D | recovery.c | 417 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() 570 struct nilfs_recovery_info *ri) in nilfs_do_roll_forward() argument 589 pseg_start = ri->ri_lsegs_start; in nilfs_do_roll_forward() 590 seg_seq = ri->ri_lsegs_start_seq; in nilfs_do_roll_forward() 594 while (segnum != ri->ri_segnum || pseg_start <= ri->ri_pseg_start) { in nilfs_do_roll_forward() 650 if (pseg_start == ri->ri_lsegs_end) in nilfs_do_roll_forward() [all …]
|
/linux-6.1.9/drivers/message/fusion/ |
D | mptfc.c | 426 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 …]
|
/linux-6.1.9/tools/testing/selftests/kvm/lib/s390x/ |
D | processor.c | 36 static uint64_t virt_alloc_region(struct kvm_vm *vm, int ri) in virt_alloc_region() argument 40 taddr = vm_phy_pages_alloc(vm, ri < 4 ? PAGES_PER_REGION : 1, in virt_alloc_region() 45 | (((4 - ri) << 2) & REGION_ENTRY_TYPE) in virt_alloc_region() 46 | ((ri < 4 ? (PAGES_PER_REGION - 1) : 0) & REGION_ENTRY_LENGTH); in virt_alloc_region() 51 int ri, idx; in virt_arch_pg_map() local 73 for (ri = 1; ri <= 4; ri++) { in virt_arch_pg_map() 74 idx = (gva >> (64 - 11 * ri)) & 0x7ffu; in virt_arch_pg_map() 76 entry[idx] = virt_alloc_region(vm, ri); in virt_arch_pg_map() 90 int ri, idx; in addr_arch_gva2gpa() local 97 for (ri = 1; ri <= 4; ri++) { in addr_arch_gva2gpa() [all …]
|
/linux-6.1.9/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | common.c | 217 struct brcmf_rev_info *ri; in brcmf_c_preinit_dcmds() local 250 ri = &ifp->drvr->revinfo; in brcmf_c_preinit_dcmds() 256 strscpy(ri->chipname, "UNKNOWN", sizeof(ri->chipname)); in brcmf_c_preinit_dcmds() 258 ri->vendorid = le32_to_cpu(revinfo.vendorid); in brcmf_c_preinit_dcmds() 259 ri->deviceid = le32_to_cpu(revinfo.deviceid); in brcmf_c_preinit_dcmds() 260 ri->radiorev = le32_to_cpu(revinfo.radiorev); in brcmf_c_preinit_dcmds() 261 ri->corerev = le32_to_cpu(revinfo.corerev); in brcmf_c_preinit_dcmds() 262 ri->boardid = le32_to_cpu(revinfo.boardid); in brcmf_c_preinit_dcmds() 263 ri->boardvendor = le32_to_cpu(revinfo.boardvendor); in brcmf_c_preinit_dcmds() 264 ri->boardrev = le32_to_cpu(revinfo.boardrev); in brcmf_c_preinit_dcmds() [all …]
|
/linux-6.1.9/fs/dlm/ |
D | debug_fs.c | 384 struct rsbtbl_iter *ri = iter_ptr; in table_seq_show() local 386 switch (ri->format) { in table_seq_show() 388 print_format1(ri->rsb, seq); in table_seq_show() 391 if (ri->header) { in table_seq_show() 393 ri->header = 0; in table_seq_show() 395 print_format2(ri->rsb, seq); in table_seq_show() 398 if (ri->header) { in table_seq_show() 400 ri->header = 0; in table_seq_show() 402 print_format3(ri->rsb, seq); in table_seq_show() 405 if (ri->header) { in table_seq_show() [all …]
|
/linux-6.1.9/drivers/clk/mmp/ |
D | clk-mix.c | 134 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 …]
|
/linux-6.1.9/fs/romfs/ |
D | super.c | 155 struct romfs_inode ri; in romfs_readdir() local 166 ret = romfs_dev_read(i->i_sb, offset, &ri, ROMFH_SIZE); in romfs_readdir() 169 offset = be32_to_cpu(ri.spec) & ROMFH_MASK; in romfs_readdir() 182 ret = romfs_dev_read(i->i_sb, offset, &ri, ROMFH_SIZE); in romfs_readdir() 197 nextfh = be32_to_cpu(ri.next); in romfs_readdir() 199 ino = be32_to_cpu(ri.spec); in romfs_readdir() 218 struct romfs_inode ri; in romfs_lookup() local 223 ret = romfs_dev_read(dir->i_sb, offset, &ri, ROMFH_SIZE); in romfs_lookup() 230 offset = be32_to_cpu(ri.spec) & ROMFH_MASK; in romfs_lookup() 239 ret = romfs_dev_read(dir->i_sb, offset, &ri, sizeof(ri)); in romfs_lookup() [all …]
|
/linux-6.1.9/kernel/events/ |
D | uprobes.c | 1703 static struct return_instance *free_ret_instance(struct return_instance *ri) in free_ret_instance() argument 1705 struct return_instance *next = ri->next; in free_ret_instance() 1706 put_uprobe(ri->uprobe); in free_ret_instance() 1707 kfree(ri); in free_ret_instance() 1718 struct return_instance *ri; in uprobe_free_utask() local 1726 ri = utask->return_instances; in uprobe_free_utask() 1727 while (ri) in uprobe_free_utask() 1728 ri = free_ret_instance(ri); in uprobe_free_utask() 1849 struct return_instance *ri = utask->return_instances; in cleanup_return_instances() local 1852 while (ri && !arch_uretprobe_is_alive(ri, ctx, regs)) { in cleanup_return_instances() [all …]
|
/linux-6.1.9/samples/kprobes/ |
D | kretprobe_example.c | 39 static int entry_handler(struct kretprobe_instance *ri, struct pt_regs *regs) in entry_handler() argument 46 data = (struct my_data *)ri->data; in entry_handler() 57 static int ret_handler(struct kretprobe_instance *ri, struct pt_regs *regs) in ret_handler() argument 60 struct my_data *data = (struct my_data *)ri->data; in ret_handler()
|
/linux-6.1.9/fs/xfs/scrub/ |
D | repair.c | 680 struct xrep_findroot *ri, in xrep_findroot_block() argument 686 struct xfs_mount *mp = ri->sc->mp; in xrep_findroot_block() 693 daddr = XFS_AGB_TO_DADDR(mp, ri->sc->sa.pag->pag_agno, agbno); in xrep_findroot_block() 702 error = xfs_agfl_walk(mp, ri->agf, ri->agfl_bp, in xrep_findroot_block() 728 error = xfs_trans_read_buf(mp, ri->sc->tp, mp->m_ddev_targp, daddr, in xrep_findroot_block() 822 trace_xrep_findroot_block(mp, ri->sc->sa.pag->pag_agno, agbno, in xrep_findroot_block() 825 xfs_trans_brelse(ri->sc->tp, bp); in xrep_findroot_block() 839 struct xrep_findroot *ri = priv; in xrep_findroot_rmap() local 852 for (fab = ri->btree_info; fab->buf_ops; fab++) { in xrep_findroot_rmap() 855 error = xrep_findroot_block(ri, fab, in xrep_findroot_rmap() [all …]
|
/linux-6.1.9/drivers/isdn/mISDN/ |
D | tei.c | 432 put_tei_msg(struct manager *mgr, u_char m_id, unsigned int ri, int tei) in put_tei_msg() argument 443 bp[4] = ri >> 8; in put_tei_msg() 444 bp[5] = ri & 0xff; in put_tei_msg() 466 tm->ri = random_ri(); in tei_id_request() 469 "assign request ri %d", tm->ri); in tei_id_request() 470 put_tei_msg(tm->mgr, ID_REQUEST, tm->ri, GROUP_TEI); in tei_id_request() 482 int ri, tei; in tei_id_assign() local 484 ri = ((unsigned int) *dp++ << 8); in tei_id_assign() 485 ri += *dp++; in tei_id_assign() 490 ri, tei); in tei_id_assign() [all …]
|
/linux-6.1.9/arch/ia64/kernel/ |
D | traps.c | 178 (void __user *) (regs->cr_iip + ia64_psr(regs)->ri), in ia64_bad_break() 290 if (!fp_fault && (ia64_psr(regs)->ri == 0)) in handle_fpu_swa() 323 current->comm, task_pid_nr(current), regs->cr_iip + ia64_psr(regs)->ri, isr); in handle_fpu_swa() 355 (void __user *) (regs->cr_iip + ia64_psr(regs)->ri), in handle_fpu_swa() 375 (void __user *) (regs->cr_iip + ia64_psr(regs)->ri), in handle_fpu_swa() 410 (void __user *) (regs.cr_iip + ia64_psr(®s)->ri), in ia64_illegal_op_fault() 443 iip = regs.cr_iip + ia64_psr(®s)->ri; in ia64_fault() 455 regs.cr_iip + ia64_psr(®s)->ri, regs.pr); in ia64_fault() 483 + ia64_psr(®s)->ri); in ia64_fault() 521 ia64_psr(®s)->ri = 0; in ia64_fault()
|