tcd 147 arch/powerpc/include/asm/paca.h struct tlb_core_data tcd; tcd 203 arch/powerpc/kernel/paca.c new_paca->tcd_ptr = &new_paca->tcd; tcd 110 arch/powerpc/kernel/setup_64.c paca_ptrs[cpu]->tcd_ptr = &paca_ptrs[first]->tcd; tcd 20 arch/powerpc/mm/nohash/book3e_hugetlbpage.c struct tlb_core_data *tcd; tcd 23 arch/powerpc/mm/nohash/book3e_hugetlbpage.c tcd = paca->tcd_ptr; tcd 24 arch/powerpc/mm/nohash/book3e_hugetlbpage.c this = tcd->esel_next; tcd 27 arch/powerpc/mm/nohash/book3e_hugetlbpage.c if (next >= tcd->esel_max) tcd 28 arch/powerpc/mm/nohash/book3e_hugetlbpage.c next = tcd->esel_first; tcd 30 arch/powerpc/mm/nohash/book3e_hugetlbpage.c tcd->esel_next = next; tcd 197 arch/powerpc/mm/nohash/fsl_booke.c get_paca()->tcd.esel_next = i; tcd 198 arch/powerpc/mm/nohash/fsl_booke.c get_paca()->tcd.esel_max = mfspr(SPRN_TLB1CFG) & TLBnCFG_N_ENTRY; tcd 199 arch/powerpc/mm/nohash/fsl_booke.c get_paca()->tcd.esel_first = i; tcd 893 drivers/char/pcmcia/synclink_cs.c static void rx_ready_async(MGSLPC_INFO *info, int tcd) tcd 901 drivers/char/pcmcia/synclink_cs.c if (tcd) { tcd 23 drivers/clocksource/clps711x-timer.c static void __iomem *tcd; tcd 27 drivers/clocksource/clps711x-timer.c return ~readw(tcd); tcd 34 drivers/clocksource/clps711x-timer.c tcd = base; tcd 36 drivers/clocksource/clps711x-timer.c clocksource_mmio_init(tcd, "clps711x-clocksource", rate, 300, 16, tcd 165 drivers/clocksource/timer-atmel-tcb.c struct tc_clkevt_device *tcd = to_tc_clkevt(d); tcd 166 drivers/clocksource/timer-atmel-tcb.c void __iomem *regs = tcd->regs; tcd 171 drivers/clocksource/timer-atmel-tcb.c clk_disable(tcd->clk); tcd 178 drivers/clocksource/timer-atmel-tcb.c struct tc_clkevt_device *tcd = to_tc_clkevt(d); tcd 179 drivers/clocksource/timer-atmel-tcb.c void __iomem *regs = tcd->regs; tcd 184 drivers/clocksource/timer-atmel-tcb.c clk_enable(tcd->clk); tcd 197 drivers/clocksource/timer-atmel-tcb.c struct tc_clkevt_device *tcd = to_tc_clkevt(d); tcd 198 drivers/clocksource/timer-atmel-tcb.c void __iomem *regs = tcd->regs; tcd 206 drivers/clocksource/timer-atmel-tcb.c clk_enable(tcd->clk); tcd 149 drivers/dma/fsl-edma-common.c dma_pool_free(fsl_desc->echan->tcd_pool, fsl_desc->tcd[i].vtcd, tcd 150 drivers/dma/fsl-edma-common.c fsl_desc->tcd[i].ptcd); tcd 278 drivers/dma/fsl-edma-common.c len += le32_to_cpu(edesc->tcd[i].vtcd->nbytes) tcd 279 drivers/dma/fsl-edma-common.c * le16_to_cpu(edesc->tcd[i].vtcd->biter); tcd 285 drivers/dma/fsl-edma-common.c cur_addr = edma_readl(fsl_chan->edma, ®s->tcd[ch].saddr); tcd 287 drivers/dma/fsl-edma-common.c cur_addr = edma_readl(fsl_chan->edma, ®s->tcd[ch].daddr); tcd 291 drivers/dma/fsl-edma-common.c size = le32_to_cpu(edesc->tcd[i].vtcd->nbytes) tcd 292 drivers/dma/fsl-edma-common.c * le16_to_cpu(edesc->tcd[i].vtcd->biter); tcd 294 drivers/dma/fsl-edma-common.c dma_addr = le32_to_cpu(edesc->tcd[i].vtcd->saddr); tcd 296 drivers/dma/fsl-edma-common.c dma_addr = le32_to_cpu(edesc->tcd[i].vtcd->daddr); tcd 341 drivers/dma/fsl-edma-common.c struct fsl_edma_hw_tcd *tcd) tcd 352 drivers/dma/fsl-edma-common.c edma_writew(edma, 0, ®s->tcd[ch].csr); tcd 353 drivers/dma/fsl-edma-common.c edma_writel(edma, le32_to_cpu(tcd->saddr), ®s->tcd[ch].saddr); tcd 354 drivers/dma/fsl-edma-common.c edma_writel(edma, le32_to_cpu(tcd->daddr), ®s->tcd[ch].daddr); tcd 356 drivers/dma/fsl-edma-common.c edma_writew(edma, le16_to_cpu(tcd->attr), ®s->tcd[ch].attr); tcd 357 drivers/dma/fsl-edma-common.c edma_writew(edma, le16_to_cpu(tcd->soff), ®s->tcd[ch].soff); tcd 359 drivers/dma/fsl-edma-common.c edma_writel(edma, le32_to_cpu(tcd->nbytes), ®s->tcd[ch].nbytes); tcd 360 drivers/dma/fsl-edma-common.c edma_writel(edma, le32_to_cpu(tcd->slast), ®s->tcd[ch].slast); tcd 362 drivers/dma/fsl-edma-common.c edma_writew(edma, le16_to_cpu(tcd->citer), ®s->tcd[ch].citer); tcd 363 drivers/dma/fsl-edma-common.c edma_writew(edma, le16_to_cpu(tcd->biter), ®s->tcd[ch].biter); tcd 364 drivers/dma/fsl-edma-common.c edma_writew(edma, le16_to_cpu(tcd->doff), ®s->tcd[ch].doff); tcd 366 drivers/dma/fsl-edma-common.c edma_writel(edma, le32_to_cpu(tcd->dlast_sga), tcd 367 drivers/dma/fsl-edma-common.c ®s->tcd[ch].dlast_sga); tcd 369 drivers/dma/fsl-edma-common.c edma_writew(edma, le16_to_cpu(tcd->csr), ®s->tcd[ch].csr); tcd 373 drivers/dma/fsl-edma-common.c void fsl_edma_fill_tcd(struct fsl_edma_hw_tcd *tcd, u32 src, u32 dst, tcd 386 drivers/dma/fsl-edma-common.c tcd->saddr = cpu_to_le32(src); tcd 387 drivers/dma/fsl-edma-common.c tcd->daddr = cpu_to_le32(dst); tcd 389 drivers/dma/fsl-edma-common.c tcd->attr = cpu_to_le16(attr); tcd 391 drivers/dma/fsl-edma-common.c tcd->soff = cpu_to_le16(soff); tcd 393 drivers/dma/fsl-edma-common.c tcd->nbytes = cpu_to_le32(nbytes); tcd 394 drivers/dma/fsl-edma-common.c tcd->slast = cpu_to_le32(slast); tcd 396 drivers/dma/fsl-edma-common.c tcd->citer = cpu_to_le16(EDMA_TCD_CITER_CITER(citer)); tcd 397 drivers/dma/fsl-edma-common.c tcd->doff = cpu_to_le16(doff); tcd 399 drivers/dma/fsl-edma-common.c tcd->dlast_sga = cpu_to_le32(dlast_sga); tcd 401 drivers/dma/fsl-edma-common.c tcd->biter = cpu_to_le16(EDMA_TCD_BITER_BITER(biter)); tcd 411 drivers/dma/fsl-edma-common.c tcd->csr = cpu_to_le16(csr); tcd 420 drivers/dma/fsl-edma-common.c fsl_desc = kzalloc(struct_size(fsl_desc, tcd, sg_len), GFP_NOWAIT); tcd 427 drivers/dma/fsl-edma-common.c fsl_desc->tcd[i].vtcd = dma_pool_alloc(fsl_chan->tcd_pool, tcd 428 drivers/dma/fsl-edma-common.c GFP_NOWAIT, &fsl_desc->tcd[i].ptcd); tcd 429 drivers/dma/fsl-edma-common.c if (!fsl_desc->tcd[i].vtcd) tcd 436 drivers/dma/fsl-edma-common.c dma_pool_free(fsl_chan->tcd_pool, fsl_desc->tcd[i].vtcd, tcd 437 drivers/dma/fsl-edma-common.c fsl_desc->tcd[i].ptcd); tcd 487 drivers/dma/fsl-edma-common.c last_sg = fsl_desc->tcd[(i + 1) % sg_len].ptcd; tcd 501 drivers/dma/fsl-edma-common.c fsl_edma_fill_tcd(fsl_desc->tcd[i].vtcd, src_addr, dst_addr, tcd 549 drivers/dma/fsl-edma-common.c last_sg = fsl_desc->tcd[(i + 1) % sg_len].ptcd; tcd 565 drivers/dma/fsl-edma-common.c last_sg = fsl_desc->tcd[(i + 1)].ptcd; tcd 566 drivers/dma/fsl-edma-common.c fsl_edma_fill_tcd(fsl_desc->tcd[i].vtcd, src_addr, tcd 572 drivers/dma/fsl-edma-common.c fsl_edma_fill_tcd(fsl_desc->tcd[i].vtcd, src_addr, tcd 591 drivers/dma/fsl-edma-common.c fsl_edma_set_tcd_regs(fsl_chan, fsl_chan->edesc->tcd[0].vtcd); tcd 705 drivers/dma/fsl-edma-common.c edma->regs.tcd = edma->membase + EDMA_TCD; tcd 106 drivers/dma/fsl-edma-common.h struct fsl_edma_hw_tcd __iomem *tcd; tcd 137 drivers/dma/fsl-edma-common.h struct fsl_edma_sw_tcd tcd[]; tcd 348 drivers/dma/fsl-edma.c edma_writew(fsl_edma, 0x0, ®s->tcd[i].csr); tcd 453 drivers/dma/fsl-edma.c edma_writew(fsl_edma, 0x0, ®s->tcd[i].csr); tcd 225 drivers/dma/mcf-edma.c iowrite32(0x0, ®s->tcd[i].csr); tcd 186 drivers/dma/mpc512x_dma.c struct mpc_dma_tcd *tcd; tcd 200 drivers/dma/mpc512x_dma.c struct mpc_dma_tcd *tcd; tcd 220 drivers/dma/mpc512x_dma.c struct mpc_dma_tcd __iomem *tcd; tcd 290 drivers/dma/mpc512x_dma.c prev->tcd->dlast_sga = mdesc->tcd_paddr; tcd 291 drivers/dma/mpc512x_dma.c prev->tcd->e_sg = 1; tcd 292 drivers/dma/mpc512x_dma.c mdesc->tcd->start = 1; tcd 297 drivers/dma/mpc512x_dma.c prev->tcd->int_maj = 1; tcd 300 drivers/dma/mpc512x_dma.c memcpy_toio(&mdma->tcd[cid], first->tcd, sizeof(struct mpc_dma_tcd)); tcd 303 drivers/dma/mpc512x_dma.c mdma->tcd[cid].e_sg = 1; tcd 491 drivers/dma/mpc512x_dma.c struct mpc_dma_tcd *tcd; tcd 498 drivers/dma/mpc512x_dma.c tcd = dma_alloc_coherent(mdma->dma.dev, tcd 501 drivers/dma/mpc512x_dma.c if (!tcd) tcd 517 drivers/dma/mpc512x_dma.c mdesc->tcd = &tcd[i]; tcd 527 drivers/dma/mpc512x_dma.c tcd, tcd_paddr); tcd 532 drivers/dma/mpc512x_dma.c mchan->tcd = tcd; tcd 549 drivers/dma/mpc512x_dma.c struct mpc_dma_tcd *tcd; tcd 564 drivers/dma/mpc512x_dma.c tcd = mchan->tcd; tcd 572 drivers/dma/mpc512x_dma.c tcd, tcd_paddr); tcd 607 drivers/dma/mpc512x_dma.c struct mpc_dma_tcd *tcd; tcd 627 drivers/dma/mpc512x_dma.c tcd = mdesc->tcd; tcd 630 drivers/dma/mpc512x_dma.c memset(tcd, 0, sizeof(struct mpc_dma_tcd)); tcd 633 drivers/dma/mpc512x_dma.c tcd->ssize = MPC_DMA_TSIZE_32; tcd 634 drivers/dma/mpc512x_dma.c tcd->dsize = MPC_DMA_TSIZE_32; tcd 635 drivers/dma/mpc512x_dma.c tcd->soff = 32; tcd 636 drivers/dma/mpc512x_dma.c tcd->doff = 32; tcd 639 drivers/dma/mpc512x_dma.c tcd->ssize = MPC_DMA_TSIZE_16; tcd 640 drivers/dma/mpc512x_dma.c tcd->dsize = MPC_DMA_TSIZE_16; tcd 641 drivers/dma/mpc512x_dma.c tcd->soff = 16; tcd 642 drivers/dma/mpc512x_dma.c tcd->doff = 16; tcd 644 drivers/dma/mpc512x_dma.c tcd->ssize = MPC_DMA_TSIZE_4; tcd 645 drivers/dma/mpc512x_dma.c tcd->dsize = MPC_DMA_TSIZE_4; tcd 646 drivers/dma/mpc512x_dma.c tcd->soff = 4; tcd 647 drivers/dma/mpc512x_dma.c tcd->doff = 4; tcd 649 drivers/dma/mpc512x_dma.c tcd->ssize = MPC_DMA_TSIZE_2; tcd 650 drivers/dma/mpc512x_dma.c tcd->dsize = MPC_DMA_TSIZE_2; tcd 651 drivers/dma/mpc512x_dma.c tcd->soff = 2; tcd 652 drivers/dma/mpc512x_dma.c tcd->doff = 2; tcd 654 drivers/dma/mpc512x_dma.c tcd->ssize = MPC_DMA_TSIZE_1; tcd 655 drivers/dma/mpc512x_dma.c tcd->dsize = MPC_DMA_TSIZE_1; tcd 656 drivers/dma/mpc512x_dma.c tcd->soff = 1; tcd 657 drivers/dma/mpc512x_dma.c tcd->doff = 1; tcd 660 drivers/dma/mpc512x_dma.c tcd->saddr = src; tcd 661 drivers/dma/mpc512x_dma.c tcd->daddr = dst; tcd 662 drivers/dma/mpc512x_dma.c tcd->nbytes = len; tcd 663 drivers/dma/mpc512x_dma.c tcd->biter = 1; tcd 664 drivers/dma/mpc512x_dma.c tcd->citer = 1; tcd 693 drivers/dma/mpc512x_dma.c struct mpc_dma_tcd *tcd; tcd 737 drivers/dma/mpc512x_dma.c tcd = mdesc->tcd; tcd 739 drivers/dma/mpc512x_dma.c memset(tcd, 0, sizeof(struct mpc_dma_tcd)); tcd 742 drivers/dma/mpc512x_dma.c tcd->saddr = per_paddr; tcd 743 drivers/dma/mpc512x_dma.c tcd->daddr = sg_dma_address(sg); tcd 748 drivers/dma/mpc512x_dma.c tcd->soff = 0; tcd 749 drivers/dma/mpc512x_dma.c tcd->doff = mchan->dwidth; tcd 751 drivers/dma/mpc512x_dma.c tcd->saddr = sg_dma_address(sg); tcd 752 drivers/dma/mpc512x_dma.c tcd->daddr = per_paddr; tcd 757 drivers/dma/mpc512x_dma.c tcd->soff = mchan->swidth; tcd 758 drivers/dma/mpc512x_dma.c tcd->doff = 0; tcd 761 drivers/dma/mpc512x_dma.c tcd->ssize = buswidth_to_dmatsize(mchan->swidth); tcd 762 drivers/dma/mpc512x_dma.c tcd->dsize = buswidth_to_dmatsize(mchan->dwidth); tcd 765 drivers/dma/mpc512x_dma.c tcd->nbytes = sg_dma_len(sg); tcd 766 drivers/dma/mpc512x_dma.c if (!IS_ALIGNED(tcd->nbytes, mchan->swidth)) tcd 770 drivers/dma/mpc512x_dma.c tcd->biter = 1; tcd 771 drivers/dma/mpc512x_dma.c tcd->citer = 1; tcd 774 drivers/dma/mpc512x_dma.c tcd->nbytes = tcd_nunits * tcd->ssize; tcd 775 drivers/dma/mpc512x_dma.c if (!IS_ALIGNED(len, tcd->nbytes)) tcd 778 drivers/dma/mpc512x_dma.c iter = len / tcd->nbytes; tcd 784 drivers/dma/mpc512x_dma.c tcd->biter = iter & 0x1ff; tcd 785 drivers/dma/mpc512x_dma.c tcd->biter_linkch = iter >> 9; tcd 786 drivers/dma/mpc512x_dma.c tcd->citer = tcd->biter; tcd 787 drivers/dma/mpc512x_dma.c tcd->citer_linkch = tcd->biter_linkch; tcd 790 drivers/dma/mpc512x_dma.c tcd->e_sg = 0; tcd 791 drivers/dma/mpc512x_dma.c tcd->d_req = 1; tcd 954 drivers/dma/mpc512x_dma.c mdma->tcd = (struct mpc_dma_tcd *)((u8 *)(mdma->regs) tcd 355 drivers/net/vmxnet3/vmxnet3_defs.h struct Vmxnet3_TxCompDesc tcd; tcd 285 drivers/net/vmxnet3/vmxnet3_drv.c # define VMXNET3_TCD_GET_GEN(tcd) get_bitfield32(((const __le32 *)tcd) + \ tcd 288 drivers/net/vmxnet3/vmxnet3_drv.c # define VMXNET3_TCD_GET_TXIDX(tcd) get_bitfield32((const __le32 *)tcd, \ tcd 303 drivers/net/vmxnet3/vmxnet3_drv.c # define VMXNET3_TCD_GET_GEN(tcd) ((tcd)->gen) tcd 304 drivers/net/vmxnet3/vmxnet3_drv.c # define VMXNET3_TCD_GET_TXIDX(tcd) ((tcd)->txdIdx) tcd 371 drivers/net/vmxnet3/vmxnet3_drv.c while (VMXNET3_TCD_GET_GEN(&gdesc->tcd) == tq->comp_ring.gen) { tcd 378 drivers/net/vmxnet3/vmxnet3_drv.c &gdesc->tcd), tq, adapter->pdev, tcd 893 drivers/power/supply/power_supply_core.c static int ps_get_max_charge_cntl_limit(struct thermal_cooling_device *tcd, tcd 900 drivers/power/supply/power_supply_core.c psy = tcd->devdata; tcd 911 drivers/power/supply/power_supply_core.c static int ps_get_cur_charge_cntl_limit(struct thermal_cooling_device *tcd, tcd 918 drivers/power/supply/power_supply_core.c psy = tcd->devdata; tcd 929 drivers/power/supply/power_supply_core.c static int ps_set_cur_charge_cntl_limit(struct thermal_cooling_device *tcd, tcd 936 drivers/power/supply/power_supply_core.c psy = tcd->devdata; tcd 958 drivers/power/supply/power_supply_core.c psy->tcd = thermal_cooling_device_register( tcd 961 drivers/power/supply/power_supply_core.c return PTR_ERR_OR_ZERO(psy->tcd); tcd 969 drivers/power/supply/power_supply_core.c if (IS_ERR_OR_NULL(psy->tcd)) tcd 971 drivers/power/supply/power_supply_core.c thermal_cooling_device_unregister(psy->tcd); tcd 49 drivers/s390/char/tape_class.c struct tape_class_device * tcd; tcd 53 drivers/s390/char/tape_class.c tcd = kzalloc(sizeof(struct tape_class_device), GFP_KERNEL); tcd 54 drivers/s390/char/tape_class.c if (!tcd) tcd 57 drivers/s390/char/tape_class.c strlcpy(tcd->device_name, device_name, TAPECLASS_NAME_LEN); tcd 58 drivers/s390/char/tape_class.c for (s = strchr(tcd->device_name, '/'); s; s = strchr(s, '/')) tcd 60 drivers/s390/char/tape_class.c strlcpy(tcd->mode_name, mode_name, TAPECLASS_NAME_LEN); tcd 61 drivers/s390/char/tape_class.c for (s = strchr(tcd->mode_name, '/'); s; s = strchr(s, '/')) tcd 64 drivers/s390/char/tape_class.c tcd->char_device = cdev_alloc(); tcd 65 drivers/s390/char/tape_class.c if (!tcd->char_device) { tcd 70 drivers/s390/char/tape_class.c tcd->char_device->owner = fops->owner; tcd 71 drivers/s390/char/tape_class.c tcd->char_device->ops = fops; tcd 73 drivers/s390/char/tape_class.c rc = cdev_add(tcd->char_device, dev, 1); tcd 77 drivers/s390/char/tape_class.c tcd->class_device = device_create(tape_class, device, tcd 78 drivers/s390/char/tape_class.c tcd->char_device->dev, NULL, tcd 79 drivers/s390/char/tape_class.c "%s", tcd->device_name); tcd 80 drivers/s390/char/tape_class.c rc = PTR_ERR_OR_ZERO(tcd->class_device); tcd 85 drivers/s390/char/tape_class.c &tcd->class_device->kobj, tcd 86 drivers/s390/char/tape_class.c tcd->mode_name tcd 91 drivers/s390/char/tape_class.c return tcd; tcd 94 drivers/s390/char/tape_class.c device_destroy(tape_class, tcd->char_device->dev); tcd 97 drivers/s390/char/tape_class.c cdev_del(tcd->char_device); tcd 100 drivers/s390/char/tape_class.c kfree(tcd); tcd 106 drivers/s390/char/tape_class.c void unregister_tape_dev(struct device *device, struct tape_class_device *tcd) tcd 108 drivers/s390/char/tape_class.c if (tcd != NULL && !IS_ERR(tcd)) { tcd 109 drivers/s390/char/tape_class.c sysfs_remove_link(&device->kobj, tcd->mode_name); tcd 110 drivers/s390/char/tape_class.c device_destroy(tape_class, tcd->char_device->dev); tcd 111 drivers/s390/char/tape_class.c cdev_del(tcd->char_device); tcd 112 drivers/s390/char/tape_class.c kfree(tcd); tcd 57 drivers/s390/char/tape_class.h void unregister_tape_dev(struct device *device, struct tape_class_device *tcd); tcd 1708 drivers/thermal/tegra/soctherm.c struct thermal_cooling_device *tcd; tcd 1734 drivers/thermal/tegra/soctherm.c tcd = thermal_of_cooling_device_register(np_stcc, tcd 1737 drivers/thermal/tegra/soctherm.c if (IS_ERR_OR_NULL(tcd)) { tcd 1743 drivers/thermal/tegra/soctherm.c stc->cdev = tcd; tcd 1084 drivers/thermal/thermal_core.c struct thermal_cooling_device **ptr, *tcd; tcd 1091 drivers/thermal/thermal_core.c tcd = __thermal_cooling_device_register(np, type, devdata, ops); tcd 1092 drivers/thermal/thermal_core.c if (IS_ERR(tcd)) { tcd 1094 drivers/thermal/thermal_core.c return tcd; tcd 1097 drivers/thermal/thermal_core.c *ptr = tcd; tcd 1100 drivers/thermal/thermal_core.c return tcd; tcd 287 include/linux/power_supply.h struct thermal_cooling_device *tcd;