/drivers/hwtracing/coresight/ |
D | coresight-sysfs.c | 73 if (!info->orig || !info->target || in coresight_add_sysfs_link() 76 if (!info->orig->has_conns_grp || !info->target->has_conns_grp) in coresight_add_sysfs_link() 80 ret = sysfs_add_link_to_group(&info->orig->dev.kobj, in coresight_add_sysfs_link() 90 &info->orig->dev.kobj, in coresight_add_sysfs_link() 95 sysfs_remove_link_from_group(&info->orig->dev.kobj, in coresight_add_sysfs_link() 99 info->orig->nr_links++; in coresight_add_sysfs_link() 111 if (!info->orig || !info->target || in coresight_remove_sysfs_link() 115 sysfs_remove_link_from_group(&info->orig->dev.kobj, in coresight_remove_sysfs_link() 123 info->orig->nr_links--; in coresight_remove_sysfs_link() 143 int coresight_make_links(struct coresight_device *orig, in coresight_make_links() argument [all …]
|
/drivers/mtd/nand/ |
D | ecc.c | 523 struct nand_page_io_req *orig, *tweak; in nand_ecc_tweak_req() local 529 orig = &ctx->orig_req; in nand_ecc_tweak_req() 533 if (orig->datalen < nanddev_page_size(nand)) { in nand_ecc_tweak_req() 541 if (orig->ooblen < nanddev_per_page_oobsize(nand)) { in nand_ecc_tweak_req() 550 if (orig->type == NAND_PAGE_WRITE) { in nand_ecc_tweak_req() 552 memcpy((void *)tweak->databuf.out + orig->dataoffs, in nand_ecc_tweak_req() 553 orig->databuf.out, orig->datalen); in nand_ecc_tweak_req() 556 memcpy((void *)tweak->oobbuf.out + orig->ooboffs, in nand_ecc_tweak_req() 557 orig->oobbuf.out, orig->ooblen); in nand_ecc_tweak_req() 565 struct nand_page_io_req *orig, *tweak; in nand_ecc_restore_req() local [all …]
|
/drivers/gpu/drm/amd/amdgpu/ |
D | si.c | 2436 u32 data, orig; in si_program_aspm() local 2445 orig = data = RREG32_PCIE_PORT(PCIE_LC_N_FTS_CNTL); in si_program_aspm() 2448 if (orig != data) in si_program_aspm() 2451 orig = data = RREG32_PCIE_PORT(PCIE_LC_CNTL3); in si_program_aspm() 2453 if (orig != data) in si_program_aspm() 2456 orig = data = RREG32_PCIE(PCIE_P_CNTL); in si_program_aspm() 2458 if (orig != data) in si_program_aspm() 2461 orig = data = RREG32_PCIE_PORT(PCIE_LC_CNTL); in si_program_aspm() 2470 if (orig != data) in si_program_aspm() 2476 orig = data = si_pif_phy0_rreg(adev,PB0_PIF_PWRDOWN_0); in si_program_aspm() [all …]
|
D | cik.c | 1702 u32 data, orig; in cik_program_aspm() local 1716 orig = data = RREG32_PCIE(ixPCIE_LC_N_FTS_CNTL); in cik_program_aspm() 1720 if (orig != data) in cik_program_aspm() 1723 orig = data = RREG32_PCIE(ixPCIE_LC_CNTL3); in cik_program_aspm() 1725 if (orig != data) in cik_program_aspm() 1728 orig = data = RREG32_PCIE(ixPCIE_P_CNTL); in cik_program_aspm() 1730 if (orig != data) in cik_program_aspm() 1733 orig = data = RREG32_PCIE(ixPCIE_LC_CNTL); in cik_program_aspm() 1743 if (orig != data) in cik_program_aspm() 1749 orig = data = RREG32_PCIE(ixPB0_PIF_PWRDOWN_0); in cik_program_aspm() [all …]
|
D | vi.c | 1131 u32 data, orig; in vi_enable_aspm() local 1133 orig = data = RREG32_PCIE(ixPCIE_LC_CNTL); in vi_enable_aspm() 1140 if (orig != data) in vi_enable_aspm() 1146 u32 data, data1, orig; in vi_program_aspm() local 1157 orig = data = RREG32_PCIE(ixPCIE_LC_CNTL); in vi_program_aspm() 1161 if (orig != data) in vi_program_aspm() 1164 orig = data = RREG32_PCIE(ixPCIE_LC_N_FTS_CNTL); in vi_program_aspm() 1168 if (orig != data) in vi_program_aspm() 1171 orig = data = RREG32_PCIE(ixPCIE_LC_CNTL3); in vi_program_aspm() 1173 if (orig != data) in vi_program_aspm() [all …]
|
D | gmc_v7_0.c | 837 u32 orig, data; in gmc_v7_0_enable_mc_ls() local 840 orig = data = RREG32(mc_cg_registers[i]); in gmc_v7_0_enable_mc_ls() 845 if (data != orig) in gmc_v7_0_enable_mc_ls() 854 u32 orig, data; in gmc_v7_0_enable_mc_mgcg() local 857 orig = data = RREG32(mc_cg_registers[i]); in gmc_v7_0_enable_mc_mgcg() 862 if (data != orig) in gmc_v7_0_enable_mc_mgcg() 870 u32 orig, data; in gmc_v7_0_enable_bif_mgls() local 872 orig = data = RREG32_PCIE(ixPCIE_CNTL2); in gmc_v7_0_enable_bif_mgls() 886 if (orig != data) in gmc_v7_0_enable_bif_mgls() 893 u32 orig, data; in gmc_v7_0_enable_hdp_mgcg() local [all …]
|
/drivers/net/wireless/realtek/rtw88/ |
D | hci.h | 194 u32 orig; in rtw_read32_mask() local 197 orig = rtw_read32(rtwdev, addr); in rtw_read32_mask() 198 ret = (orig & mask) >> shift; in rtw_read32_mask() 207 u32 orig; in rtw_read16_mask() local 210 orig = rtw_read16(rtwdev, addr); in rtw_read16_mask() 211 ret = (orig & mask) >> shift; in rtw_read16_mask() 220 u32 orig; in rtw_read8_mask() local 223 orig = rtw_read8(rtwdev, addr); in rtw_read8_mask() 224 ret = (orig & mask) >> shift; in rtw_read8_mask() 233 u32 orig; in rtw_write32_mask() local [all …]
|
/drivers/md/ |
D | dm-rq.c | 21 struct request *orig, *clone; member 84 unsigned int nr_bytes = info->orig->bi_iter.bi_size; in end_clone_bio() 120 blk_update_request(tio->orig, BLK_STS_OK, tio->completed); in end_clone_bio() 128 static void rq_end_stats(struct mapped_device *md, struct request *orig) in rq_end_stats() argument 131 struct dm_rq_target_io *tio = tio_from_request(orig); in rq_end_stats() 133 dm_stats_account_io(&md->stats, rq_data_dir(orig), in rq_end_stats() 134 blk_rq_pos(orig), tio->n_sectors, true, in rq_end_stats() 161 struct request *rq = tio->orig; in dm_end_request() 191 struct request *rq = tio->orig; in dm_requeue_original_request() 304 dm_complete_request(tio->orig, error); in end_clone_request() [all …]
|
/drivers/scsi/sym53c8xx_2/ |
D | sym_misc.h | 91 static inline void sym_que_move(struct sym_quehead *orig, in sym_que_move() argument 96 first = orig->flink; in sym_que_move() 97 if (first != orig) { in sym_que_move() 100 last = orig->blink; in sym_que_move() 103 orig->flink = orig; in sym_que_move() 104 orig->blink = orig; in sym_que_move()
|
/drivers/ptp/ |
D | ptp_clockmatrix.h | 24 #define SET_U16_LSB(orig, val8) (orig = (0xff00 & (orig)) | (val8)) argument 25 #define SET_U16_MSB(orig, val8) (orig = (0x00ff & (orig)) | (val8 << 8)) argument
|
/drivers/target/ |
D | target_core_device.c | 309 struct se_dev_entry *orig, *new; in core_enable_device_list_for_node() local 330 orig = target_nacl_find_deve(nacl, mapped_lun); in core_enable_device_list_for_node() 331 if (orig && orig->se_lun) { in core_enable_device_list_for_node() 332 struct se_lun *orig_lun = rcu_dereference_check(orig->se_lun, in core_enable_device_list_for_node() 343 if (orig->se_lun_acl != NULL) { in core_enable_device_list_for_node() 355 hlist_del_rcu(&orig->link); in core_enable_device_list_for_node() 360 list_del(&orig->lun_link); in core_enable_device_list_for_node() 364 kref_put(&orig->pr_kref, target_pr_kref_release); in core_enable_device_list_for_node() 365 wait_for_completion(&orig->pr_comp); in core_enable_device_list_for_node() 368 kfree_rcu(orig, rcu_head); in core_enable_device_list_for_node() [all …]
|
/drivers/gpu/drm/radeon/ |
D | si.c | 5206 u32 data, orig; in si_halt_rlc() local 5208 orig = data = RREG32(RLC_CNTL); in si_halt_rlc() 5217 return orig; in si_halt_rlc() 5231 u32 data, orig; in si_enable_dma_pg() local 5233 orig = data = RREG32(DMA_PG); in si_enable_dma_pg() 5238 if (orig != data) in si_enable_dma_pg() 5357 u32 data, orig, tmp; in si_enable_cgcg() local 5359 orig = data = RREG32(RLC_CGCG_CGLS_CTRL); in si_enable_cgcg() 5390 if (orig != data) in si_enable_cgcg() 5397 u32 data, orig, tmp = 0; in si_enable_mgcg() local [all …]
|
D | vce_v2_0.c | 76 u32 orig, tmp; in vce_v2_0_set_dyn_cg() local 88 orig = tmp = RREG32(VCE_UENC_CLOCK_GATING); in vce_v2_0_set_dyn_cg() 91 if (tmp != orig) in vce_v2_0_set_dyn_cg() 94 orig = tmp = RREG32(VCE_UENC_REG_CLOCK_GATING); in vce_v2_0_set_dyn_cg() 96 if (tmp != orig) in vce_v2_0_set_dyn_cg()
|
D | cik.c | 5817 u32 data, orig; in cik_halt_rlc() local 5819 orig = data = RREG32(RLC_CNTL); in cik_halt_rlc() 5836 return orig; in cik_halt_rlc() 5992 u32 data, orig, tmp, tmp2; in cik_enable_cgcg() local 5994 orig = data = RREG32(RLC_CGCG_CGLS_CTRL); in cik_enable_cgcg() 6021 if (orig != data) in cik_enable_cgcg() 6028 u32 data, orig, tmp = 0; in cik_enable_mgcg() local 6033 orig = data = RREG32(CP_MEM_SLP_CNTL); in cik_enable_mgcg() 6035 if (orig != data) in cik_enable_mgcg() 6040 orig = data = RREG32(RLC_CGTT_MGCG_OVERRIDE); in cik_enable_mgcg() [all …]
|
/drivers/hid/ |
D | uhid.c | 556 struct uhid_create_req orig; in uhid_dev_create() local 558 orig = ev->u.create; in uhid_dev_create() 560 if (orig.rd_size <= 0 || orig.rd_size > HID_MAX_DESCRIPTOR_SIZE) in uhid_dev_create() 562 if (copy_from_user(&ev->u.create2.rd_data, orig.rd_data, orig.rd_size)) in uhid_dev_create() 565 memcpy(ev->u.create2.name, orig.name, sizeof(orig.name)); in uhid_dev_create() 566 memcpy(ev->u.create2.phys, orig.phys, sizeof(orig.phys)); in uhid_dev_create() 567 memcpy(ev->u.create2.uniq, orig.uniq, sizeof(orig.uniq)); in uhid_dev_create() 568 ev->u.create2.rd_size = orig.rd_size; in uhid_dev_create() 569 ev->u.create2.bus = orig.bus; in uhid_dev_create() 570 ev->u.create2.vendor = orig.vendor; in uhid_dev_create() [all …]
|
/drivers/pci/pcie/ |
D | err.c | 23 static pci_ers_result_t merge_result(enum pci_ers_result orig, in merge_result() argument 30 return orig; in merge_result() 32 switch (orig) { in merge_result() 35 orig = new; in merge_result() 39 orig = PCI_ERS_RESULT_NEED_RESET; in merge_result() 45 return orig; in merge_result()
|
/drivers/md/persistent-data/ |
D | dm-transaction-manager.c | 263 static int __shadow_block(struct dm_transaction_manager *tm, dm_block_t orig, in __shadow_block() argument 275 r = dm_sm_dec_block(tm->sm, orig); in __shadow_block() 279 r = dm_bm_read_lock(tm->bm, orig, v, &orig_block); in __shadow_block() 303 int dm_tm_shadow_block(struct dm_transaction_manager *tm, dm_block_t orig, in dm_tm_shadow_block() argument 312 r = dm_sm_count_is_more_than_one(tm->sm, orig, inc_children); in dm_tm_shadow_block() 316 if (is_shadow(tm, orig) && !*inc_children) in dm_tm_shadow_block() 317 return dm_bm_write_lock(tm->bm, orig, v, result); in dm_tm_shadow_block() 319 r = __shadow_block(tm, orig, v, result); in dm_tm_shadow_block()
|
/drivers/gpu/drm/hisilicon/kirin/ |
D | dw_dsi_reg.h | 91 u32 tmp, orig; in dw_update_bits() local 93 orig = readl(addr); in dw_update_bits() 94 tmp = orig & ~(mask << bit_start); in dw_update_bits()
|
/drivers/gpio/ |
D | gpio-amd8111.c | 73 u8 orig[32]; member 80 agp->orig[offset] = ioread8(agp->pm + AMD_REG_GPIO(offset)) & in amd_gpio_request() 83 dev_dbg(&agp->pdev->dev, "Requested gpio %d, data %x\n", offset, agp->orig[offset]); in amd_gpio_request() 92 dev_dbg(&agp->pdev->dev, "Freed gpio %d, data %x\n", offset, agp->orig[offset]); in amd_gpio_free() 94 iowrite8(agp->orig[offset], agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_free()
|
/drivers/vdpa/vdpa_user/ |
D | iova_domain.c | 136 static void do_bounce(phys_addr_t orig, void *addr, size_t size, in do_bounce() argument 139 unsigned long pfn = PFN_DOWN(orig); in do_bounce() 140 unsigned int offset = offset_in_page(orig); in do_bounce() 365 void *orig = alloc_pages_exact(size, flag); in vduse_domain_alloc_coherent() local 367 if (!iova || !orig) in vduse_domain_alloc_coherent() 372 virt_to_phys(orig), VHOST_MAP_RW, in vduse_domain_alloc_coherent() 381 return orig; in vduse_domain_alloc_coherent() 384 if (orig) in vduse_domain_alloc_coherent() 385 free_pages_exact(orig, size); in vduse_domain_alloc_coherent()
|
/drivers/usb/host/ |
D | ohci-s3c2410.c | 109 int orig; in ohci_s3c2410_hub_status_data() local 112 orig = ohci_hub_status_data(hcd, buf); in ohci_s3c2410_hub_status_data() 115 return orig; in ohci_s3c2410_hub_status_data() 127 if (orig < 1) in ohci_s3c2410_hub_status_data() 128 orig = 1; in ohci_s3c2410_hub_status_data() 134 return orig; in ohci_s3c2410_hub_status_data()
|
/drivers/gpu/drm/mgag200/ |
D | mgag200_mm.c | 39 int orig; in mgag200_probe_vram() local 45 orig = ioread16(mem); in mgag200_probe_vram() 73 iowrite16(orig, mem); in mgag200_probe_vram()
|
/drivers/clk/mediatek/ |
D | clk-mux.c | 87 u32 val, orig; in mtk_clk_mux_set_parent_setclr_lock() local 95 regmap_read(mux->regmap, mux->data->mux_ofs, &orig); in mtk_clk_mux_set_parent_setclr_lock() 96 val = (orig & ~(mask << mux->data->mux_shift)) in mtk_clk_mux_set_parent_setclr_lock() 99 if (val != orig) { in mtk_clk_mux_set_parent_setclr_lock()
|
/drivers/net/ethernet/mediatek/ |
D | mtk_ppe_debugfs.c | 107 ai.src_port = &entry->ipv4.orig.src_port; in mtk_ppe_debugfs_foe_show() 108 ai.dest_port = &entry->ipv4.orig.dest_port; in mtk_ppe_debugfs_foe_show() 111 ai.src = &entry->ipv4.orig.src_ip; in mtk_ppe_debugfs_foe_show() 112 ai.dest = &entry->ipv4.orig.dest_ip; in mtk_ppe_debugfs_foe_show()
|
/drivers/thermal/broadcom/ |
D | brcmstb_thermal.c | 210 u32 val, orig; in avs_tmon_set_trip_temp() local 221 orig = __raw_readl(priv->tmon_base + trip->reg_offs); in avs_tmon_set_trip_temp() 222 orig &= ~trip->reg_msk; in avs_tmon_set_trip_temp() 223 orig |= val; in avs_tmon_set_trip_temp() 224 __raw_writel(orig, priv->tmon_base + trip->reg_offs); in avs_tmon_set_trip_temp()
|