Home
last modified time | relevance | path

Searched refs:orig (Results 1 – 25 of 118) sorted by relevance

12345

/drivers/hwtracing/coresight/
Dcoresight-sysfs.c73 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/
Decc.c529 struct nand_page_io_req *orig, *tweak; in nand_ecc_tweak_req() local
535 orig = &ctx->orig_req; in nand_ecc_tweak_req()
539 if (orig->datalen < nanddev_page_size(nand)) { in nand_ecc_tweak_req()
547 if (orig->ooblen < nanddev_per_page_oobsize(nand)) { in nand_ecc_tweak_req()
556 if (orig->type == NAND_PAGE_WRITE) { in nand_ecc_tweak_req()
558 memcpy((void *)tweak->databuf.out + orig->dataoffs, in nand_ecc_tweak_req()
559 orig->databuf.out, orig->datalen); in nand_ecc_tweak_req()
562 memcpy((void *)tweak->oobbuf.out + orig->ooboffs, in nand_ecc_tweak_req()
563 orig->oobbuf.out, orig->ooblen); in nand_ecc_tweak_req()
571 struct nand_page_io_req *orig, *tweak; in nand_ecc_restore_req() local
[all …]
/drivers/md/
Ddm-rq.c21 struct request *orig, *clone; member
83 unsigned int nr_bytes = info->orig->bi_iter.bi_size; in end_clone_bio()
119 blk_update_request(tio->orig, BLK_STS_OK, tio->completed); in end_clone_bio()
127 static void rq_end_stats(struct mapped_device *md, struct request *orig) in rq_end_stats() argument
130 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()
302 dm_complete_request(tio->orig, error); in end_clone_request()
[all …]
Ddm-io-rewind.c145 struct bio *orig = io->orig_bio; in dm_io_rewind() local
146 struct bio *new_orig = bio_alloc_clone(orig->bi_bdev, orig, in dm_io_rewind()
154 orig->bi_iter.bi_size)); in dm_io_rewind()
157 bio_chain(new_orig, orig); in dm_io_rewind()
162 atomic_dec(&orig->__bi_remaining); in dm_io_rewind()
/drivers/gpu/drm/amd/amdgpu/
Dsi.c2436 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 …]
Dcik.c1702 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 …]
Dvi.c1108 u32 data, orig; in vi_enable_aspm() local
1110 orig = data = RREG32_PCIE(ixPCIE_LC_CNTL); in vi_enable_aspm()
1117 if (orig != data) in vi_enable_aspm()
1123 u32 data, data1, orig; in vi_program_aspm() local
1134 orig = data = RREG32_PCIE(ixPCIE_LC_CNTL); in vi_program_aspm()
1138 if (orig != data) in vi_program_aspm()
1141 orig = data = RREG32_PCIE(ixPCIE_LC_N_FTS_CNTL); in vi_program_aspm()
1145 if (orig != data) in vi_program_aspm()
1148 orig = data = RREG32_PCIE(ixPCIE_LC_CNTL3); in vi_program_aspm()
1150 if (orig != data) in vi_program_aspm()
[all …]
Dgmc_v7_0.c823 u32 orig, data; in gmc_v7_0_enable_mc_ls() local
826 orig = data = RREG32(mc_cg_registers[i]); in gmc_v7_0_enable_mc_ls()
831 if (data != orig) in gmc_v7_0_enable_mc_ls()
840 u32 orig, data; in gmc_v7_0_enable_mc_mgcg() local
843 orig = data = RREG32(mc_cg_registers[i]); in gmc_v7_0_enable_mc_mgcg()
848 if (data != orig) in gmc_v7_0_enable_mc_mgcg()
856 u32 orig, data; in gmc_v7_0_enable_bif_mgls() local
858 orig = data = RREG32_PCIE(ixPCIE_CNTL2); in gmc_v7_0_enable_bif_mgls()
872 if (orig != data) in gmc_v7_0_enable_bif_mgls()
879 u32 orig, data; in gmc_v7_0_enable_hdp_mgcg() local
[all …]
Dgfx_v7_0.c3335 u32 data, orig; in gfx_v7_0_halt_rlc() local
3337 orig = data = RREG32(mmRLC_CNTL); in gfx_v7_0_halt_rlc()
3354 return orig; in gfx_v7_0_halt_rlc()
3521 u32 data, orig, tmp, tmp2; in gfx_v7_0_enable_cgcg() local
3523 orig = data = RREG32(mmRLC_CGCG_CGLS_CTRL); in gfx_v7_0_enable_cgcg()
3543 if (orig != data) in gfx_v7_0_enable_cgcg()
3555 if (orig != data) in gfx_v7_0_enable_cgcg()
3564 u32 data, orig, tmp = 0; in gfx_v7_0_enable_mgcg() local
3569 orig = data = RREG32(mmCP_MEM_SLP_CNTL); in gfx_v7_0_enable_mgcg()
3571 if (orig != data) in gfx_v7_0_enable_mgcg()
[all …]
Dcik_sdma.c879 u32 orig, data; in cik_enable_sdma_mgcg() local
885 orig = data = RREG32(mmSDMA0_CLK_CTRL + SDMA0_REGISTER_OFFSET); in cik_enable_sdma_mgcg()
887 if (data != orig) in cik_enable_sdma_mgcg()
890 orig = data = RREG32(mmSDMA0_CLK_CTRL + SDMA1_REGISTER_OFFSET); in cik_enable_sdma_mgcg()
892 if (data != orig) in cik_enable_sdma_mgcg()
900 u32 orig, data; in cik_enable_sdma_mgls() local
903 orig = data = RREG32(mmSDMA0_POWER_CNTL + SDMA0_REGISTER_OFFSET); in cik_enable_sdma_mgls()
905 if (orig != data) in cik_enable_sdma_mgls()
908 orig = data = RREG32(mmSDMA0_POWER_CNTL + SDMA1_REGISTER_OFFSET); in cik_enable_sdma_mgls()
910 if (orig != data) in cik_enable_sdma_mgls()
[all …]
/drivers/net/wireless/realtek/rtw88/
Dhci.h191 u32 orig; in rtw_read32_mask() local
194 orig = rtw_read32(rtwdev, addr); in rtw_read32_mask()
195 ret = (orig & mask) >> shift; in rtw_read32_mask()
204 u32 orig; in rtw_read16_mask() local
207 orig = rtw_read16(rtwdev, addr); in rtw_read16_mask()
208 ret = (orig & mask) >> shift; in rtw_read16_mask()
217 u32 orig; in rtw_read8_mask() local
220 orig = rtw_read8(rtwdev, addr); in rtw_read8_mask()
221 ret = (orig & mask) >> shift; in rtw_read8_mask()
230 u32 orig; in rtw_write32_mask() local
[all …]
/drivers/scsi/sym53c8xx_2/
Dsym_misc.h91 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/
Dptp_clockmatrix.h26 #define SET_U16_LSB(orig, val8) (orig = (0xff00 & (orig)) | (val8)) argument
27 #define SET_U16_MSB(orig, val8) (orig = (0x00ff & (orig)) | (val8 << 8)) argument
/drivers/target/
Dtarget_core_device.c325 struct se_dev_entry *orig, *new; in core_enable_device_list_for_node() local
346 orig = target_nacl_find_deve(nacl, mapped_lun); in core_enable_device_list_for_node()
347 if (orig && orig->se_lun) { in core_enable_device_list_for_node()
348 struct se_lun *orig_lun = orig->se_lun; in core_enable_device_list_for_node()
358 if (orig->se_lun_acl != NULL) { in core_enable_device_list_for_node()
370 hlist_del_rcu(&orig->link); in core_enable_device_list_for_node()
375 list_del(&orig->lun_link); in core_enable_device_list_for_node()
379 kref_put(&orig->pr_kref, target_pr_kref_release); in core_enable_device_list_for_node()
380 wait_for_completion(&orig->pr_comp); in core_enable_device_list_for_node()
383 kfree_rcu(orig, rcu_head); in core_enable_device_list_for_node()
[all …]
/drivers/gpu/drm/radeon/
Dsi.c5206 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 …]
Dvce_v2_0.c76 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()
Dcik.c5817 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/
Duhid.c555 struct uhid_create_req orig; in uhid_dev_create() local
557 orig = ev->u.create; in uhid_dev_create()
559 if (orig.rd_size <= 0 || orig.rd_size > HID_MAX_DESCRIPTOR_SIZE) in uhid_dev_create()
561 if (copy_from_user(&ev->u.create2.rd_data, orig.rd_data, orig.rd_size)) in uhid_dev_create()
564 memcpy(ev->u.create2.name, orig.name, sizeof(orig.name)); in uhid_dev_create()
565 memcpy(ev->u.create2.phys, orig.phys, sizeof(orig.phys)); in uhid_dev_create()
566 memcpy(ev->u.create2.uniq, orig.uniq, sizeof(orig.uniq)); in uhid_dev_create()
567 ev->u.create2.rd_size = orig.rd_size; in uhid_dev_create()
568 ev->u.create2.bus = orig.bus; in uhid_dev_create()
569 ev->u.create2.vendor = orig.vendor; in uhid_dev_create()
[all …]
/drivers/pci/pcie/
Derr.c24 static pci_ers_result_t merge_result(enum pci_ers_result orig, in merge_result() argument
31 return orig; in merge_result()
33 switch (orig) { in merge_result()
36 orig = new; in merge_result()
40 orig = PCI_ERS_RESULT_NEED_RESET; in merge_result()
46 return orig; in merge_result()
/drivers/md/persistent-data/
Ddm-transaction-manager.c268 static int __shadow_block(struct dm_transaction_manager *tm, dm_block_t orig, in __shadow_block() argument
280 r = dm_sm_dec_block(tm->sm, orig); in __shadow_block()
284 r = dm_bm_read_lock(tm->bm, orig, v, &orig_block); in __shadow_block()
308 int dm_tm_shadow_block(struct dm_transaction_manager *tm, dm_block_t orig, in dm_tm_shadow_block() argument
317 r = dm_sm_count_is_more_than_one(tm->sm, orig, inc_children); in dm_tm_shadow_block()
321 if (is_shadow(tm, orig) && !*inc_children) in dm_tm_shadow_block()
322 return dm_bm_write_lock(tm->bm, orig, v, result); in dm_tm_shadow_block()
324 r = __shadow_block(tm, orig, v, result); in dm_tm_shadow_block()
/drivers/gpu/drm/hisilicon/kirin/
Ddw_dsi_reg.h91 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/
Dgpio-amd8111.c73 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/usb/host/
Dohci-s3c2410.c107 int orig; in ohci_s3c2410_hub_status_data() local
110 orig = ohci_hub_status_data(hcd, buf); in ohci_s3c2410_hub_status_data()
113 return orig; in ohci_s3c2410_hub_status_data()
125 if (orig < 1) in ohci_s3c2410_hub_status_data()
126 orig = 1; in ohci_s3c2410_hub_status_data()
132 return orig; in ohci_s3c2410_hub_status_data()
/drivers/vdpa/vdpa_user/
Diova_domain.c136 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()
431 void *orig = alloc_pages_exact(size, flag); in vduse_domain_alloc_coherent() local
433 if (!iova || !orig) in vduse_domain_alloc_coherent()
438 virt_to_phys(orig), VHOST_MAP_RW, in vduse_domain_alloc_coherent()
447 return orig; in vduse_domain_alloc_coherent()
450 if (orig) in vduse_domain_alloc_coherent()
451 free_pages_exact(orig, size); in vduse_domain_alloc_coherent()
/drivers/thermal/broadcom/
Dbrcmstb_thermal.c208 u32 val, orig; in avs_tmon_set_trip_temp() local
219 orig = __raw_readl(priv->tmon_base + trip->reg_offs); in avs_tmon_set_trip_temp()
220 orig &= ~trip->reg_msk; in avs_tmon_set_trip_temp()
221 orig |= val; in avs_tmon_set_trip_temp()
222 __raw_writel(orig, priv->tmon_base + trip->reg_offs); in avs_tmon_set_trip_temp()

12345