prd 1283 arch/mips/include/asm/octeon/cvmx-npei-defs.h uint64_t prd:10; prd 1285 arch/mips/include/asm/octeon/cvmx-npei-defs.h uint64_t prd:10; prd 2578 drivers/ata/libata-sff.c struct ata_bmdma_prd *prd = ap->bmdma_prd; prd 2600 drivers/ata/libata-sff.c prd[pi].addr = cpu_to_le32(addr); prd 2601 drivers/ata/libata-sff.c prd[pi].flags_len = cpu_to_le32(len & 0xffff); prd 2610 drivers/ata/libata-sff.c prd[pi - 1].flags_len |= cpu_to_le32(ATA_PRD_EOT); prd 2629 drivers/ata/libata-sff.c struct ata_bmdma_prd *prd = ap->bmdma_prd; prd 2652 drivers/ata/libata-sff.c prd[pi].addr = cpu_to_le32(addr); prd 2657 drivers/ata/libata-sff.c prd[pi].flags_len = cpu_to_le32(0x8000); prd 2659 drivers/ata/libata-sff.c prd[++pi].addr = cpu_to_le32(addr + 0x8000); prd 2661 drivers/ata/libata-sff.c prd[pi].flags_len = cpu_to_le32(blen); prd 2670 drivers/ata/libata-sff.c prd[pi - 1].flags_len |= cpu_to_le32(ATA_PRD_EOT); prd 442 drivers/ata/sata_fsl.c struct prde *prd = (struct prde *)&((struct command_desc *) prd 450 drivers/ata/sata_fsl.c VPRINTK("SATA FSL : cd = 0x%p, prd = 0x%p\n", cmd_desc, prd); prd 473 drivers/ata/sata_fsl.c prd_ptr_to_indirect_ext = prd; prd 474 drivers/ata/sata_fsl.c prd->dba = cpu_to_le32(indirect_ext_segment_paddr); prd 476 drivers/ata/sata_fsl.c ++prd; prd 481 drivers/ata/sata_fsl.c prd->dba = cpu_to_le32(sg_addr); prd 482 drivers/ata/sata_fsl.c prd->ddc_and_ext = cpu_to_le32(data_snoop | (sg_len & ~0x03)); prd 485 drivers/ata/sata_fsl.c ttl_dwords, prd->dba, prd->ddc_and_ext); prd 488 drivers/ata/sata_fsl.c ++prd; prd 197 drivers/ata/sata_inic162x.c __le32 prd; /* First PRD pointer */ prd 229 drivers/ata/sata_inic162x.c struct inic_prd prd[LIBATA_MAX_PRD + 1]; /* + 1 for cdb */ prd 458 drivers/ata/sata_inic162x.c static void inic_fill_sg(struct inic_prd *prd, struct ata_queued_cmd *qc) prd 471 drivers/ata/sata_inic162x.c prd->mad = cpu_to_le32(sg_dma_address(sg)); prd 472 drivers/ata/sata_inic162x.c prd->len = cpu_to_le16(sg_dma_len(sg)); prd 473 drivers/ata/sata_inic162x.c prd->flags = flags; prd 474 drivers/ata/sata_inic162x.c prd++; prd 478 drivers/ata/sata_inic162x.c prd[-1].flags |= PRD_END; prd 486 drivers/ata/sata_inic162x.c struct inic_prd *prd = pkt->prd; prd 504 drivers/ata/sata_inic162x.c cpb->prd = cpu_to_le32(pp->pkt_dma + offsetof(struct inic_pkt, prd)); prd 527 drivers/ata/sata_inic162x.c prd->mad = cpu_to_le32(pp->pkt_dma + prd 529 drivers/ata/sata_inic162x.c prd->len = cpu_to_le16(cdb_len); prd 530 drivers/ata/sata_inic162x.c prd->flags = PRD_CDB | PRD_WRITE; prd 532 drivers/ata/sata_inic162x.c prd->flags |= PRD_END; prd 533 drivers/ata/sata_inic162x.c prd++; prd 538 drivers/ata/sata_inic162x.c inic_fill_sg(prd, qc); prd 258 drivers/ata/sata_nv.c struct ata_bmdma_prd *prd; /* our SG list */ prd 1940 drivers/ata/sata_nv.c pp->prd = dmam_alloc_coherent(dev, ATA_PRD_TBL_SZ * ATA_MAX_QUEUE, prd 1942 drivers/ata/sata_nv.c if (!pp->prd) prd 1971 drivers/ata/sata_nv.c struct ata_bmdma_prd *prd; prd 1974 drivers/ata/sata_nv.c prd = pp->prd + ATA_MAX_PRD * qc->hw_tag; prd 1990 drivers/ata/sata_nv.c prd[idx].addr = cpu_to_le32(addr); prd 1991 drivers/ata/sata_nv.c prd[idx].flags_len = cpu_to_le32(len & 0xffff); prd 1999 drivers/ata/sata_nv.c prd[idx - 1].flags_len |= cpu_to_le32(ATA_PRD_EOT); prd 576 drivers/ata/sata_promise.c struct ata_bmdma_prd *prd = ap->bmdma_prd; prd 603 drivers/ata/sata_promise.c prd[idx].addr = cpu_to_le32(addr); prd 604 drivers/ata/sata_promise.c prd[idx].flags_len = cpu_to_le32(len & 0xffff); prd 613 drivers/ata/sata_promise.c len = le32_to_cpu(prd[idx - 1].flags_len); prd 620 drivers/ata/sata_promise.c addr = le32_to_cpu(prd[idx - 1].addr); prd 621 drivers/ata/sata_promise.c prd[idx - 1].flags_len = cpu_to_le32(len - SG_COUNT_ASIC_BUG); prd 626 drivers/ata/sata_promise.c prd[idx].addr = cpu_to_le32(addr); prd 627 drivers/ata/sata_promise.c prd[idx].flags_len = cpu_to_le32(len); prd 633 drivers/ata/sata_promise.c prd[idx - 1].flags_len |= cpu_to_le32(ATA_PRD_EOT); prd 241 drivers/ata/sata_qstor.c u8 *prd = pp->pkt + QS_CPB_BYTES; prd 249 drivers/ata/sata_qstor.c *(__le64 *)prd = cpu_to_le64(addr); prd 250 drivers/ata/sata_qstor.c prd += sizeof(u64); prd 253 drivers/ata/sata_qstor.c *(__le32 *)prd = cpu_to_le32(len); prd 254 drivers/ata/sata_qstor.c prd += sizeof(u64); prd 530 drivers/ata/sata_rcar.c struct ata_bmdma_prd *prd = ap->bmdma_prd; prd 544 drivers/ata/sata_rcar.c prd[si].addr = cpu_to_le32(addr); prd 545 drivers/ata/sata_rcar.c prd[si].flags_len = cpu_to_le32(sg_len); prd 550 drivers/ata/sata_rcar.c prd[si - 1].addr |= cpu_to_le32(SATA_RCAR_DTEND); prd 297 drivers/ata/sata_sil.c struct ata_bmdma_prd *prd, *last_prd = NULL; prd 300 drivers/ata/sata_sil.c prd = &ap->bmdma_prd[0]; prd 308 drivers/ata/sata_sil.c prd->addr = cpu_to_le32(addr); prd 309 drivers/ata/sata_sil.c prd->flags_len = cpu_to_le32(sg_len); prd 312 drivers/ata/sata_sil.c last_prd = prd; prd 313 drivers/ata/sata_sil.c prd++; prd 107 drivers/iio/trigger/stm32-timer-trigger.c unsigned long long prd, div; prd 116 drivers/iio/trigger/stm32-timer-trigger.c prd = div; prd 124 drivers/iio/trigger/stm32-timer-trigger.c div = prd; prd 127 drivers/iio/trigger/stm32-timer-trigger.c prd = div; prd 144 drivers/iio/trigger/stm32-timer-trigger.c regmap_write(priv->regmap, TIM_ARR, prd - 1); prd 759 drivers/input/joydev.c #define ACCEL_DEV(vnd, prd) \ prd 765 drivers/input/joydev.c .product = (prd), \ prd 83 drivers/media/i2c/tc358743_regs.h #define SET_PLL_PRD(prd) ((((prd) - 1) << 12) &\ prd 704 drivers/net/ethernet/alteon/acenic.h static inline int tx_space (struct ace_private *ap, u32 csm, u32 prd) prd 706 drivers/net/ethernet/alteon/acenic.h return (csm - prd - 1) & (ACE_TX_RING_ENTRIES(ap) - 1); prd 710 drivers/net/ethernet/alteon/acenic.h #define tx_ring_full(ap, csm, prd) (tx_space(ap, csm, prd) <= TX_RESERVED) prd 950 drivers/net/ethernet/nvidia/forcedeth.c static inline u32 nv_descr_getlength(struct ring_desc *prd, u32 v) prd 952 drivers/net/ethernet/nvidia/forcedeth.c return le32_to_cpu(prd->flaglen) prd 956 drivers/net/ethernet/nvidia/forcedeth.c static inline u32 nv_descr_getlength_ex(struct ring_desc_ex *prd, u32 v) prd 958 drivers/net/ethernet/nvidia/forcedeth.c return le32_to_cpu(prd->flaglen) & LEN_MASK_V2; prd 38 drivers/pwm/pwm-stm32-lp.c unsigned long long prd, div, dty; prd 68 drivers/pwm/pwm-stm32-lp.c prd = div; prd 75 drivers/pwm/pwm-stm32-lp.c div = prd >> presc; prd 77 drivers/pwm/pwm-stm32-lp.c prd = div; prd 80 drivers/pwm/pwm-stm32-lp.c dty = prd * state->duty_cycle; prd 120 drivers/pwm/pwm-stm32-lp.c ret = regmap_write(priv->regmap, STM32_LPTIM_ARR, prd - 1); prd 124 drivers/pwm/pwm-stm32-lp.c ret = regmap_write(priv->regmap, STM32_LPTIM_CMP, prd - (1 + dty)); prd 166 drivers/pwm/pwm-stm32-lp.c u32 val, presc, prd; prd 179 drivers/pwm/pwm-stm32-lp.c regmap_read(priv->regmap, STM32_LPTIM_ARR, &prd); prd 180 drivers/pwm/pwm-stm32-lp.c tmp = prd + 1; prd 185 drivers/pwm/pwm-stm32-lp.c tmp = prd - val; prd 170 drivers/pwm/pwm-stm32.c unsigned long long prd, div, dty; prd 198 drivers/pwm/pwm-stm32.c prd = div; prd 201 drivers/pwm/pwm-stm32.c div = prd; prd 247 drivers/pwm/pwm-stm32.c prd = (unsigned long long)raw_prd * (psc + 1) * NSEC_PER_SEC; prd 248 drivers/pwm/pwm-stm32.c do_div(prd, rate); prd 254 drivers/pwm/pwm-stm32.c if (prd >= (tmo_ms * NSEC_PER_MSEC) >> (icpsc + 2)) prd 303 drivers/pwm/pwm-stm32.c prd = (unsigned long long)raw_prd * (psc + 1) * NSEC_PER_SEC; prd 304 drivers/pwm/pwm-stm32.c result->period = DIV_ROUND_UP_ULL(prd, rate << icpsc); prd 322 drivers/pwm/pwm-stm32.c unsigned long long prd, div, dty; prd 330 drivers/pwm/pwm-stm32.c prd = div; prd 334 drivers/pwm/pwm-stm32.c div = prd; prd 338 drivers/pwm/pwm-stm32.c prd = div; prd 353 drivers/pwm/pwm-stm32.c if ((psc != prescaler) || (arr != prd - 1)) prd 358 drivers/pwm/pwm-stm32.c regmap_write(priv->regmap, TIM_ARR, prd - 1); prd 362 drivers/pwm/pwm-stm32.c dty = prd * duty_ns; prd 43 drivers/pwm/pwm-sun4i.c #define PWM_PRD(prd) (((prd) - 1) << 16) prd 149 drivers/pwm/pwm-sun4i.c u32 *dty, u32 *prd, unsigned int *prsclr) prd 189 drivers/pwm/pwm-sun4i.c *prd = div; prd 123 drivers/scsi/atp870u.c unsigned char *prd; prd 403 drivers/scsi/atp870u.c prd = dev->id[c][target_id].prd_pos; prd 405 drivers/scsi/atp870u.c id = ((unsigned short int *)prd)[2]; prd 412 drivers/scsi/atp870u.c ((unsigned short int *)prd)[2] = (unsigned short int) prd 414 drivers/scsi/atp870u.c ((unsigned long *)prd)[0] += adrcnt; prd 416 drivers/scsi/atp870u.c dev->id[c][target_id].prd_pos = prd; prd 420 drivers/scsi/atp870u.c prd += 0x08; prd 422 drivers/scsi/atp870u.c dev->id[c][target_id].prd_pos = prd; prd 686 drivers/scsi/atp870u.c unsigned char *prd; prd 843 drivers/scsi/atp870u.c prd = dev->id[c][target_id].prd_table; prd 844 drivers/scsi/atp870u.c dev->id[c][target_id].prd_pos = prd; prd 861 drivers/scsi/atp870u.c (((u16 *) (prd))[i + 3]) = 0x0000; prd 862 drivers/scsi/atp870u.c (((u16 *) (prd))[i + 2]) = 0x0000; prd 863 drivers/scsi/atp870u.c (((u32 *) (prd))[i >> 1]) = cpu_to_le32(bttl); prd 868 drivers/scsi/atp870u.c (((u32 *) (prd))[i >> 1]) = cpu_to_le32(bttl); prd 869 drivers/scsi/atp870u.c (((u16 *) (prd))[i + 2]) = cpu_to_le16(l); prd 870 drivers/scsi/atp870u.c (((u16 *) (prd))[i + 3]) = 0; prd 873 drivers/scsi/atp870u.c (((u16 *) (prd))[i - 1]) = cpu_to_le16(0x8000); prd 875 drivers/scsi/atp870u.c printk("prd %4x %4x %4x %4x\n",(((unsigned short int *)prd)[0]),(((unsigned short int *)prd)[1]),(((unsigned short int *)prd)[2]),(((unsigned short int *)prd)[3])); prd 1076 drivers/scsi/esas2r/atvda.h struct atto_physical_region_description prd[1]; prd 618 drivers/scsi/esas2r/esas2r.h } prd; prd 409 drivers/scsi/esas2r/esas2r_io.c if (sgc->sge.prd.sge_cnt == 0) { prd 418 drivers/scsi/esas2r/esas2r_io.c sgc->sge.prd.curr->ctl_len = cpu_to_le32( prd 420 drivers/scsi/esas2r/esas2r_io.c sgc->sge.prd.curr->address = cpu_to_le64(addr); prd 432 drivers/scsi/esas2r/esas2r_io.c if (sgc->sge.prd.chain) { prd 439 drivers/scsi/esas2r/esas2r_io.c sgc->sge.prd.chain->ctl_len |= cpu_to_le32( prd 440 drivers/scsi/esas2r/esas2r_io.c sgc->sge.prd.sgl_max_cnt); prd 467 drivers/scsi/esas2r/esas2r_io.c sgc->sge.prd.chain = sgc->sge.prd.curr; prd 469 drivers/scsi/esas2r/esas2r_io.c sgc->sge.prd.chain->ctl_len = cpu_to_le32(PRD_CHAIN); prd 470 drivers/scsi/esas2r/esas2r_io.c sgc->sge.prd.chain->address = prd 478 drivers/scsi/esas2r/esas2r_io.c sgc->sge.prd.curr = prd 482 drivers/scsi/esas2r/esas2r_io.c sgc->sge.prd.sge_cnt = sgc->sge.prd.sgl_max_cnt - 1; prd 485 drivers/scsi/esas2r/esas2r_io.c sgc->sge.prd.sge_cnt--; prd 487 drivers/scsi/esas2r/esas2r_io.c sgc->sge.prd.curr->ctl_len = cpu_to_le32(PRD_DATA | len); prd 488 drivers/scsi/esas2r/esas2r_io.c sgc->sge.prd.curr->address = cpu_to_le64(addr); prd 492 drivers/scsi/esas2r/esas2r_io.c sgc->sge.prd.curr++; prd 513 drivers/scsi/esas2r/esas2r_io.c if (sgc->sge.prd.chain) { prd 514 drivers/scsi/esas2r/esas2r_io.c sgc->sge.prd.chain->ctl_len |= prd 515 drivers/scsi/esas2r/esas2r_io.c cpu_to_le32(sgc->sge.prd.sgl_max_cnt prd 516 drivers/scsi/esas2r/esas2r_io.c - sgc->sge.prd.sge_cnt prd 616 drivers/scsi/esas2r/esas2r_io.c sgc->sge.prd.sgl_max_cnt = sgl_page_size / prd 623 drivers/scsi/esas2r/esas2r_io.c sgc->sge.prd.sge_cnt = 0; prd 624 drivers/scsi/esas2r/esas2r_io.c sgc->sge.prd.chain = NULL; prd 625 drivers/scsi/esas2r/esas2r_io.c sgc->sge.prd.curr = curr_iblk_chn; prd 551 drivers/scsi/mvsas/mv_64xx.c static void mvs_64xx_make_prd(struct scatterlist *scatter, int nr, void *prd) prd 555 drivers/scsi/mvsas/mv_64xx.c struct mvs_prd *buf_prd = prd; prd 725 drivers/scsi/mvsas/mv_64xx.c int buf_len, int from, void *prd) prd 728 drivers/scsi/mvsas/mv_64xx.c struct mvs_prd *buf_prd = prd; prd 783 drivers/scsi/mvsas/mv_94xx.c static void mvs_94xx_make_prd(struct scatterlist *scatter, int nr, void *prd) prd 787 drivers/scsi/mvsas/mv_94xx.c struct mvs_prd *buf_prd = prd; prd 987 drivers/scsi/mvsas/mv_94xx.c int buf_len, int from, void *prd) prd 990 drivers/scsi/mvsas/mv_94xx.c struct mvs_prd *buf_prd = prd; prd 128 drivers/scsi/mvsas/mv_sas.h void (*make_prd)(struct scatterlist *scatter, int nr, void *prd); prd 154 drivers/scsi/mvsas/mv_sas.h int buf_len, int from, void *prd); prd 4212 drivers/scsi/pm8001/pm8001_hwi.c pm8001_chip_make_sg(struct scatterlist *scatter, int nr, void *prd) prd 4216 drivers/scsi/pm8001/pm8001_hwi.c struct pm8001_prd *buf_prd = prd; prd 203 drivers/scsi/pm8001/pm8001_sas.h void (*make_prd)(struct scatterlist *scatter, int nr, void *prd); prd 689 drivers/scsi/pm8001/pm8001_sas.h void pm8001_chip_make_sg(struct scatterlist *scatter, int nr, void *prd); prd 298 drivers/usb/gadget/udc/renesas_usb3.c struct renesas_usb3_prd *prd; prd 1304 drivers/usb/gadget/udc/renesas_usb3.c struct renesas_usb3_prd *cur_prd = usb3_ep->dma->prd; prd 1362 drivers/usb/gadget/udc/renesas_usb3.c struct renesas_usb3_prd *cur_prd = usb3_ep->dma->prd; prd 1440 drivers/usb/gadget/udc/renesas_usb3.c if (dma->prd) { prd 1442 drivers/usb/gadget/udc/renesas_usb3.c dma->prd, dma->prd_dma); prd 1443 drivers/usb/gadget/udc/renesas_usb3.c dma->prd = NULL; prd 1460 drivers/usb/gadget/udc/renesas_usb3.c dma->prd = dma_alloc_coherent(dev, USB3_DMA_PRD_SIZE, prd 1462 drivers/usb/gadget/udc/renesas_usb3.c if (!dma->prd) {