Home
last modified time | relevance | path

Searched refs:tcd (Results 1 – 22 of 22) sorted by relevance

/kernel/linux/linux-5.10/drivers/s390/char/
Dtape_class.c49 struct tape_class_device * tcd; in register_tape_dev() local
53 tcd = kzalloc(sizeof(struct tape_class_device), GFP_KERNEL); in register_tape_dev()
54 if (!tcd) in register_tape_dev()
57 strlcpy(tcd->device_name, device_name, TAPECLASS_NAME_LEN); in register_tape_dev()
58 for (s = strchr(tcd->device_name, '/'); s; s = strchr(s, '/')) in register_tape_dev()
60 strlcpy(tcd->mode_name, mode_name, TAPECLASS_NAME_LEN); in register_tape_dev()
61 for (s = strchr(tcd->mode_name, '/'); s; s = strchr(s, '/')) in register_tape_dev()
64 tcd->char_device = cdev_alloc(); in register_tape_dev()
65 if (!tcd->char_device) { in register_tape_dev()
70 tcd->char_device->owner = fops->owner; in register_tape_dev()
[all …]
Dtape_class.h57 void unregister_tape_dev(struct device *device, struct tape_class_device *tcd);
/kernel/linux/linux-5.10/drivers/dma/
Dmpc512x_dma.c186 struct mpc_dma_tcd *tcd; member
200 struct mpc_dma_tcd *tcd; member
220 struct mpc_dma_tcd __iomem *tcd; member
290 prev->tcd->dlast_sga = mdesc->tcd_paddr; in mpc_dma_execute()
291 prev->tcd->e_sg = 1; in mpc_dma_execute()
292 mdesc->tcd->start = 1; in mpc_dma_execute()
297 prev->tcd->int_maj = 1; in mpc_dma_execute()
300 memcpy_toio(&mdma->tcd[cid], first->tcd, sizeof(struct mpc_dma_tcd)); in mpc_dma_execute()
303 mdma->tcd[cid].e_sg = 1; in mpc_dma_execute()
491 struct mpc_dma_tcd *tcd; in mpc_dma_alloc_chan_resources() local
[all …]
Dfsl-edma-common.c154 dma_pool_free(fsl_desc->echan->tcd_pool, fsl_desc->tcd[i].vtcd, in fsl_edma_free_desc()
155 fsl_desc->tcd[i].ptcd); in fsl_edma_free_desc()
283 len += le32_to_cpu(edesc->tcd[i].vtcd->nbytes) in fsl_edma_desc_residue()
284 * le16_to_cpu(edesc->tcd[i].vtcd->biter); in fsl_edma_desc_residue()
290 cur_addr = edma_readl(fsl_chan->edma, &regs->tcd[ch].saddr); in fsl_edma_desc_residue()
292 cur_addr = edma_readl(fsl_chan->edma, &regs->tcd[ch].daddr); in fsl_edma_desc_residue()
296 size = le32_to_cpu(edesc->tcd[i].vtcd->nbytes) in fsl_edma_desc_residue()
297 * le16_to_cpu(edesc->tcd[i].vtcd->biter); in fsl_edma_desc_residue()
299 dma_addr = le32_to_cpu(edesc->tcd[i].vtcd->saddr); in fsl_edma_desc_residue()
301 dma_addr = le32_to_cpu(edesc->tcd[i].vtcd->daddr); in fsl_edma_desc_residue()
[all …]
Dfsl-edma-common.h106 struct fsl_edma_hw_tcd __iomem *tcd; member
137 struct fsl_edma_sw_tcd tcd[]; member
Dfsl-edma.c363 edma_writew(fsl_edma, 0x0, &regs->tcd[i].csr); in fsl_edma_probe()
468 edma_writew(fsl_edma, 0x0, &regs->tcd[i].csr); in fsl_edma_resume_early()
Dmcf-edma.c232 iowrite32(0x0, &regs->tcd[i].csr); in mcf_edma_probe()
/kernel/linux/linux-5.10/arch/powerpc/mm/nohash/
Dbook3e_hugetlbpage.c20 struct tlb_core_data *tcd; in tlb1_next() local
23 tcd = paca->tcd_ptr; in tlb1_next()
24 this = tcd->esel_next; in tlb1_next()
27 if (next >= tcd->esel_max) in tlb1_next()
28 next = tcd->esel_first; in tlb1_next()
30 tcd->esel_next = next; in tlb1_next()
Dfsl_booke.c195 get_paca()->tcd.esel_next = i; in map_mem_in_cams_addr()
196 get_paca()->tcd.esel_max = mfspr(SPRN_TLB1CFG) & TLBnCFG_N_ENTRY; in map_mem_in_cams_addr()
197 get_paca()->tcd.esel_first = i; in map_mem_in_cams_addr()
/kernel/linux/linux-5.10/drivers/clocksource/
Dclps711x-timer.c23 static void __iomem *tcd; variable
27 return ~readw(tcd); in clps711x_sched_clock_read()
34 tcd = base; in clps711x_clksrc_init()
36 clocksource_mmio_init(tcd, "clps711x-clocksource", rate, 300, 16, in clps711x_clksrc_init()
Dtimer-atmel-tcb.c162 struct tc_clkevt_device *tcd = to_tc_clkevt(d); in tc_shutdown() local
163 void __iomem *regs = tcd->regs; in tc_shutdown()
168 clk_disable(tcd->clk); in tc_shutdown()
175 struct tc_clkevt_device *tcd = to_tc_clkevt(d); in tc_set_oneshot() local
176 void __iomem *regs = tcd->regs; in tc_set_oneshot()
181 clk_enable(tcd->clk); in tc_set_oneshot()
194 struct tc_clkevt_device *tcd = to_tc_clkevt(d); in tc_set_periodic() local
195 void __iomem *regs = tcd->regs; in tc_set_periodic()
203 clk_enable(tcd->clk); in tc_set_periodic()
208 writel((tcd->rate + HZ / 2) / HZ, tcaddr + ATMEL_TC_REG(2, RC)); in tc_set_periodic()
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/
D0017_linux_drivers_dma_dmabuf.patch93 + edma_readw(fsl_chan->edma, &regs->tcd[ch].csr)))
381 + struct fsl_edma3_sw_tcd tcd[];
498 + dma_pool_free(fsl_desc->echan->tcd_pool, fsl_desc->tcd[i].vtcd,
499 + fsl_desc->tcd[i].ptcd);
611 + len += le32_to_cpu(edesc->tcd[i].vtcd->nbytes)
612 + * le16_to_cpu(edesc->tcd[i].vtcd->biter);
624 + len -= edesc->curidx * le32_to_cpu(edesc->tcd[0].vtcd->nbytes)
625 + * le16_to_cpu(edesc->tcd[0].vtcd->biter);
630 + cur_addr = le32_to_cpu(edesc->tcd[i].vtcd->sda);
632 + size = le32_to_cpu(edesc->tcd[i].vtcd->nbytes)
[all …]
/kernel/linux/linux-5.10/drivers/power/supply/
Dpower_supply_core.c999 static int ps_get_max_charge_cntl_limit(struct thermal_cooling_device *tcd, in ps_get_max_charge_cntl_limit() argument
1006 psy = tcd->devdata; in ps_get_max_charge_cntl_limit()
1017 static int ps_get_cur_charge_cntl_limit(struct thermal_cooling_device *tcd, in ps_get_cur_charge_cntl_limit() argument
1024 psy = tcd->devdata; in ps_get_cur_charge_cntl_limit()
1035 static int ps_set_cur_charge_cntl_limit(struct thermal_cooling_device *tcd, in ps_set_cur_charge_cntl_limit() argument
1042 psy = tcd->devdata; in ps_set_cur_charge_cntl_limit()
1064 psy->tcd = thermal_cooling_device_register( in psy_register_cooler()
1067 return PTR_ERR_OR_ZERO(psy->tcd); in psy_register_cooler()
1075 if (IS_ERR_OR_NULL(psy->tcd)) in psy_unregister_cooler()
1077 thermal_cooling_device_unregister(psy->tcd); in psy_unregister_cooler()
/kernel/linux/linux-5.10/drivers/thermal/
Dthermal_core.c1233 struct thermal_cooling_device **ptr, *tcd; in devm_thermal_of_cooling_device_register() local
1240 tcd = __thermal_cooling_device_register(np, type, devdata, ops); in devm_thermal_of_cooling_device_register()
1241 if (IS_ERR(tcd)) { in devm_thermal_of_cooling_device_register()
1243 return tcd; in devm_thermal_of_cooling_device_register()
1246 *ptr = tcd; in devm_thermal_of_cooling_device_register()
1249 return tcd; in devm_thermal_of_cooling_device_register()
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Dpaca.h148 struct tlb_core_data tcd; member
/kernel/linux/linux-5.10/arch/powerpc/kernel/
Dpaca.c235 new_paca->tcd_ptr = &new_paca->tcd; in initialise_paca()
Dsetup_64.c106 paca_ptrs[cpu]->tcd_ptr = &paca_ptrs[first]->tcd; in setup_tlb_core_data()
/kernel/linux/linux-5.10/include/linux/
Dpower_supply.h297 struct thermal_cooling_device *tcd; member
/kernel/linux/linux-5.10/drivers/net/vmxnet3/
Dvmxnet3_drv.c285 # define VMXNET3_TCD_GET_GEN(tcd) get_bitfield32(((const __le32 *)tcd) + \ argument
288 # define VMXNET3_TCD_GET_TXIDX(tcd) get_bitfield32((const __le32 *)tcd, \ argument
303 # define VMXNET3_TCD_GET_GEN(tcd) ((tcd)->gen) argument
304 # define VMXNET3_TCD_GET_TXIDX(tcd) ((tcd)->txdIdx) argument
371 while (VMXNET3_TCD_GET_GEN(&gdesc->tcd) == tq->comp_ring.gen) { in vmxnet3_tq_tx_complete()
378 &gdesc->tcd), tq, adapter->pdev, in vmxnet3_tq_tx_complete()
Dvmxnet3_defs.h360 struct Vmxnet3_TxCompDesc tcd; member
/kernel/linux/linux-5.10/drivers/thermal/tegra/
Dsoctherm.c1714 struct thermal_cooling_device *tcd; in soctherm_init_hw_throt_cdev() local
1740 tcd = thermal_of_cooling_device_register(np_stcc, in soctherm_init_hw_throt_cdev()
1743 if (IS_ERR_OR_NULL(tcd)) { in soctherm_init_hw_throt_cdev()
1749 stc->cdev = tcd; in soctherm_init_hw_throt_cdev()
/kernel/linux/linux-5.10/drivers/char/pcmcia/
Dsynclink_cs.c893 static void rx_ready_async(MGSLPC_INFO *info, int tcd) in rx_ready_async() argument
901 if (tcd) { in rx_ready_async()