| /drivers/s390/char/ |
| A D | tape_class.c | 52 struct tape_class_device * tcd; in register_tape_dev() local 57 if (!tcd) in register_tape_dev() 68 if (!tcd->char_device) { in register_tape_dev() 88 &tcd->class_device->kobj, in register_tape_dev() 89 tcd->mode_name in register_tape_dev() 94 return tcd; in register_tape_dev() 100 cdev_del(tcd->char_device); in register_tape_dev() 103 kfree(tcd); in register_tape_dev() 111 if (tcd != NULL && !IS_ERR(tcd)) { in unregister_tape_dev() 114 cdev_del(tcd->char_device); in unregister_tape_dev() [all …]
|
| A D | tape_class.h | 57 void unregister_tape_dev(struct device *device, struct tape_class_device *tcd);
|
| /drivers/dma/ |
| A D | mpc512x_dma.c | 501 if (!tcd) in mpc_dma_alloc_chan_resources() 517 mdesc->tcd = &tcd[i]; in mpc_dma_alloc_chan_resources() 532 mchan->tcd = tcd; in mpc_dma_alloc_chan_resources() 564 tcd = mchan->tcd; in mpc_dma_free_chan_resources() 627 tcd = mdesc->tcd; in mpc_dma_prep_memcpy() 646 tcd->soff = 4; in mpc_dma_prep_memcpy() 647 tcd->doff = 4; in mpc_dma_prep_memcpy() 737 tcd = mdesc->tcd; in mpc_dma_prep_slave_sg() 774 tcd->nbytes = tcd_nunits * tcd->ssize; in mpc_dma_prep_slave_sg() 786 tcd->citer = tcd->biter; in mpc_dma_prep_slave_sg() [all …]
|
| A D | fsl-edma-trace.h | 63 TP_PROTO(struct fsl_edma_chan *chan, void *tcd), 64 TP_ARGS(chan, tcd), 80 __entry->saddr = fsl_edma_get_tcd_to_cpu(chan, tcd, saddr), 81 __entry->soff = fsl_edma_get_tcd_to_cpu(chan, tcd, soff), 82 __entry->attr = fsl_edma_get_tcd_to_cpu(chan, tcd, attr), 84 __entry->slast = fsl_edma_get_tcd_to_cpu(chan, tcd, slast), 85 __entry->daddr = fsl_edma_get_tcd_to_cpu(chan, tcd, daddr), 86 __entry->doff = fsl_edma_get_tcd_to_cpu(chan, tcd, doff), 89 __entry->csr = fsl_edma_get_tcd_to_cpu(chan, tcd, csr), 118 TP_PROTO(struct fsl_edma_chan *chan, void *tcd), [all …]
|
| A D | fsl-edma-common.c | 228 fsl_desc->tcd[i].ptcd); in fsl_edma_free_desc() 438 edma_cp_tcd_to_reg(fsl_chan, tcd, saddr); in fsl_edma_set_tcd_regs() 441 edma_cp_tcd_to_reg(fsl_chan, tcd, attr); in fsl_edma_set_tcd_regs() 442 edma_cp_tcd_to_reg(fsl_chan, tcd, soff); in fsl_edma_set_tcd_regs() 449 edma_cp_tcd_to_reg(fsl_chan, tcd, doff); in fsl_edma_set_tcd_regs() 472 edma_cp_tcd_to_reg(fsl_chan, tcd, csr); in fsl_edma_set_tcd_regs() 555 trace_edma_fill_tcd(fsl_chan, tcd); in fsl_edma_fill_tcd() 572 GFP_NOWAIT, &fsl_desc->tcd[i].ptcd); in fsl_edma_alloc_desc() 573 if (!fsl_desc->tcd[i].vtcd) in fsl_edma_alloc_desc() 581 fsl_desc->tcd[i].ptcd); in fsl_edma_alloc_desc() [all …]
|
| A D | fsl-edma-common.h | 129 struct fsl_edma_hw_tcd tcd; member 178 void __iomem *tcd; member 204 struct fsl_edma_sw_tcd tcd[]; member 286 edma_read_tcdreg_c(chan, ((struct fsl_edma_hw_tcd64 __iomem *)chan->tcd), __name) : \ 287 edma_read_tcdreg_c(chan, ((struct fsl_edma_hw_tcd __iomem *)chan->tcd), __name) \ 301 struct fsl_edma_hw_tcd __iomem *tcd_r = (struct fsl_edma_hw_tcd __iomem *)chan->tcd; \ 312 struct fsl_edma_hw_tcd __iomem *tcd_r = (struct fsl_edma_hw_tcd __iomem *)chan->tcd; \ 324 (void __iomem *)&(container_of(((__force void *)chan->tcd),\ 325 struct fsl_edma3_ch_reg, tcd)->__name)) 329 (void __iomem *)&(container_of(((__force void *)chan->tcd),\ [all …]
|
| A D | mcf-edma-main.c | 201 mcf_chan->tcd = mcf_edma->membase + EDMA_TCD in mcf_edma_probe()
|
| A D | fsl-edma-main.c | 814 offsetof(struct fsl_edma3_ch_reg, tcd) : 0; in fsl_edma_probe() 815 fsl_chan->tcd = fsl_edma->membase in fsl_edma_probe()
|
| /drivers/clocksource/ |
| A D | clps711x-timer.c | 23 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()
|
| A D | timer-atmel-tcb.c | 162 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()
|
| /drivers/thermal/ |
| A D | thermal_core.c | 1218 struct thermal_cooling_device **ptr, *tcd; in devm_thermal_of_cooling_device_register() local 1225 tcd = __thermal_cooling_device_register(np, type, devdata, ops); in devm_thermal_of_cooling_device_register() 1226 if (IS_ERR(tcd)) { in devm_thermal_of_cooling_device_register() 1228 return tcd; in devm_thermal_of_cooling_device_register() 1231 *ptr = tcd; in devm_thermal_of_cooling_device_register() 1234 return tcd; in devm_thermal_of_cooling_device_register()
|
| /drivers/net/ethernet/meta/fbnic/ |
| A D | fbnic_txrx.c | 611 u64 tcd, int *ts_head, int *head0) in fbnic_clean_tsq() argument 639 ns = fbnic_ts40_to_ns(fbn, FIELD_GET(FBNIC_TCD_TYPE1_TS_MASK, tcd)); in fbnic_clean_tsq() 714 u64 tcd; in fbnic_clean_tcq() local 718 tcd = le64_to_cpu(*raw_tcd); in fbnic_clean_tcq() 720 switch (FIELD_GET(FBNIC_TCD_TYPE_MASK, tcd)) { in fbnic_clean_tcq() 722 if (!(tcd & FBNIC_TCD_TWQ1)) in fbnic_clean_tcq() 724 tcd); in fbnic_clean_tcq() 731 if (WARN_ON_ONCE(tcd & FBNIC_TCD_TWQ1)) in fbnic_clean_tcq() 734 fbnic_clean_tsq(nv, &qt->sub0, tcd, &ts_head, &head0); in fbnic_clean_tcq()
|
| /drivers/net/vmxnet3/ |
| A D | vmxnet3_drv.c | 350 # define VMXNET3_TCD_GET_GEN(tcd) get_bitfield32(((const __le32 *)tcd) + \ argument 353 # define VMXNET3_TCD_GET_TXIDX(tcd) get_bitfield32((const __le32 *)tcd, \ argument 368 # define VMXNET3_TCD_GET_GEN(tcd) ((tcd)->gen) argument 369 # define VMXNET3_TCD_GET_TXIDX(tcd) ((tcd)->txdIdx) argument 450 while (VMXNET3_TCD_GET_GEN(&gdesc->tcd) == tq->comp_ring.gen) { in vmxnet3_tq_tx_complete() 457 &gdesc->tcd), tq, adapter->pdev, in vmxnet3_tq_tx_complete()
|
| A D | vmxnet3_defs.h | 411 struct Vmxnet3_TxCompDesc tcd; member
|
| /drivers/thermal/tegra/ |
| A D | soctherm.c | 1671 struct thermal_cooling_device *tcd; in soctherm_init_hw_throt_cdev() local 1696 tcd = thermal_of_cooling_device_register(np_stcc, in soctherm_init_hw_throt_cdev() 1699 if (IS_ERR_OR_NULL(tcd)) { in soctherm_init_hw_throt_cdev() 1705 stc->cdev = tcd; in soctherm_init_hw_throt_cdev()
|