/linux/drivers/scsi/esas2r/ |
H A D | esas2r_io.c | 409 if (sgc->sge.prd.sge_cnt == 0) { in esas2r_build_prd_iblk() 418 sgc->sge.prd.curr->ctl_len = cpu_to_le32( in esas2r_build_prd_iblk() 420 sgc->sge.prd.curr->address = cpu_to_le64(addr); in esas2r_build_prd_iblk() 432 if (sgc->sge.prd.chain) { in esas2r_build_prd_iblk() 439 sgc->sge.prd.chain->ctl_len |= cpu_to_le32( in esas2r_build_prd_iblk() 440 sgc->sge.prd.sgl_max_cnt); in esas2r_build_prd_iblk() 467 sgc->sge.prd.chain = sgc->sge.prd.curr; in esas2r_build_prd_iblk() 469 sgc->sge.prd.chain->ctl_len = cpu_to_le32(PRD_CHAIN); in esas2r_build_prd_iblk() 470 sgc->sge.prd.chain->address = in esas2r_build_prd_iblk() 478 sgc->sge.prd.curr = in esas2r_build_prd_iblk() [all …]
|
H A D | atvda.h | 1076 struct atto_physical_region_description prd[1]; member
|
/linux/drivers/pwm/ |
H A D | pwm-stm32-lp.c | 37 unsigned long long prd, div, dty; in stm32_pwm_lp_apply() local 67 prd = div; in stm32_pwm_lp_apply() 74 div = prd >> presc; in stm32_pwm_lp_apply() 76 prd = div; in stm32_pwm_lp_apply() 79 dty = prd * state->duty_cycle; in stm32_pwm_lp_apply() 119 ret = regmap_write(priv->regmap, STM32_LPTIM_ARR, prd - 1); in stm32_pwm_lp_apply() 123 ret = regmap_write(priv->regmap, STM32_LPTIM_CMP, prd - (1 + dty)); in stm32_pwm_lp_apply() 164 u32 val, presc, prd; in stm32_pwm_lp_get_state() local 177 regmap_read(priv->regmap, STM32_LPTIM_ARR, &prd); in stm32_pwm_lp_get_state() 178 tmp = prd + 1; in stm32_pwm_lp_get_state() [all …]
|
H A D | pwm-stm32.c | 543 unsigned long long prd, div, dty; in stm32_pwm_capture() local 571 prd = div; in stm32_pwm_capture() 574 div = prd; in stm32_pwm_capture() 624 prd = (unsigned long long)raw_prd * (psc + 1) * NSEC_PER_SEC; in stm32_pwm_capture() 625 do_div(prd, rate); in stm32_pwm_capture() 631 if (prd >= (tmo_ms * NSEC_PER_MSEC) >> (icpsc + 2)) in stm32_pwm_capture() 680 prd = (unsigned long long)raw_prd * (psc + 1) * NSEC_PER_SEC; in stm32_pwm_capture() 681 result->period = DIV_ROUND_UP_ULL(prd, rate << icpsc); in stm32_pwm_capture()
|
H A D | pwm-sun4i.c | 47 #define PWM_PRD(prd) (((prd) - 1) << 16) argument 171 u32 *dty, u32 *prd, unsigned int *prsclr, in sun4i_pwm_calculate() argument 223 *prd = div; in sun4i_pwm_calculate()
|
/linux/drivers/ata/ |
H A D | sata_inic162x.c | 197 __le32 prd; /* First PRD pointer */ member 229 struct inic_prd prd[LIBATA_MAX_PRD + 1]; /* + 1 for cdb */ member 458 static void inic_fill_sg(struct inic_prd *prd, struct ata_queued_cmd *qc) in inic_fill_sg() argument 471 prd->mad = cpu_to_le32(sg_dma_address(sg)); in inic_fill_sg() 472 prd->len = cpu_to_le16(sg_dma_len(sg)); in inic_fill_sg() 473 prd->flags = flags; in inic_fill_sg() 474 prd++; in inic_fill_sg() 478 prd[-1].flags |= PRD_END; in inic_fill_sg() 486 struct inic_prd *prd = pkt->prd; in inic_qc_prep() local 502 cpb->prd = cpu_to_le32(pp->pkt_dma + offsetof(struct inic_pkt, prd)); in inic_qc_prep() [all …]
|
H A D | sata_sil.c | 297 struct ata_bmdma_prd *prd, *last_prd = NULL; in sil_fill_sg() local 300 prd = &ap->bmdma_prd[0]; in sil_fill_sg() 308 prd->addr = cpu_to_le32(addr); in sil_fill_sg() 309 prd->flags_len = cpu_to_le32(sg_len); in sil_fill_sg() 311 last_prd = prd; in sil_fill_sg() 312 prd++; in sil_fill_sg()
|
H A D | sata_qstor.c | 241 u8 *prd = pp->pkt + QS_CPB_BYTES; in qs_fill_sg() local 249 *(__le64 *)prd = cpu_to_le64(addr); in qs_fill_sg() 250 prd += sizeof(u64); in qs_fill_sg() 253 *(__le32 *)prd = cpu_to_le32(len); in qs_fill_sg() 254 prd += sizeof(u64); in qs_fill_sg()
|
H A D | sata_promise.c | 570 struct ata_bmdma_prd *prd = ap->bmdma_prd; in pdc_fill_sg() local 597 prd[idx].addr = cpu_to_le32(addr); in pdc_fill_sg() 598 prd[idx].flags_len = cpu_to_le32(len & 0xffff); in pdc_fill_sg() 608 len = le32_to_cpu(prd[idx - 1].flags_len); in pdc_fill_sg() 613 addr = le32_to_cpu(prd[idx - 1].addr); in pdc_fill_sg() 614 prd[idx - 1].flags_len = cpu_to_le32(len - SG_COUNT_ASIC_BUG); in pdc_fill_sg() 620 prd[idx].addr = cpu_to_le32(addr); in pdc_fill_sg() 621 prd[idx].flags_len = cpu_to_le32(len); in pdc_fill_sg() 627 prd[idx - 1].flags_len |= cpu_to_le32(ATA_PRD_EOT); in pdc_fill_sg()
|
H A D | libata-sff.c | 2499 struct ata_bmdma_prd *prd = ap->bmdma_prd; in ata_bmdma_fill_sg() local 2521 prd[pi].addr = cpu_to_le32(addr); in ata_bmdma_fill_sg() 2522 prd[pi].flags_len = cpu_to_le32(len & 0xffff); in ata_bmdma_fill_sg() 2530 prd[pi - 1].flags_len |= cpu_to_le32(ATA_PRD_EOT); in ata_bmdma_fill_sg() 2549 struct ata_bmdma_prd *prd = ap->bmdma_prd; in ata_bmdma_fill_sg_dumb() local 2572 prd[pi].addr = cpu_to_le32(addr); in ata_bmdma_fill_sg_dumb() 2577 prd[pi].flags_len = cpu_to_le32(0x8000); in ata_bmdma_fill_sg_dumb() 2579 prd[++pi].addr = cpu_to_le32(addr + 0x8000); in ata_bmdma_fill_sg_dumb() 2581 prd[pi].flags_len = cpu_to_le32(blen); in ata_bmdma_fill_sg_dumb() 2589 prd[pi - 1].flags_len |= cpu_to_le32(ATA_PRD_EOT); in ata_bmdma_fill_sg_dumb()
|
H A D | sata_nv.c | 259 struct ata_bmdma_prd *prd; /* our SG list */ member 1937 pp->prd = dmam_alloc_coherent(dev, ATA_PRD_TBL_SZ * ATA_MAX_QUEUE, in nv_swncq_port_start() 1939 if (!pp->prd) in nv_swncq_port_start() 1970 struct ata_bmdma_prd *prd; in nv_swncq_fill_sg() local 1973 prd = pp->prd + ATA_MAX_PRD * qc->hw_tag; in nv_swncq_fill_sg() 1989 prd[idx].addr = cpu_to_le32(addr); in nv_swncq_fill_sg() 1990 prd[idx].flags_len = cpu_to_le32(len & 0xffff); in nv_swncq_fill_sg() 1998 prd[idx - 1].flags_len |= cpu_to_le32(ATA_PRD_EOT); in nv_swncq_fill_sg()
|
/linux/drivers/scsi/ |
H A D | atp870u.c | 124 unsigned char *prd; in atp870u_intr_handle() local 433 prd = dev->id[c][target_id].prd_pos; in atp870u_intr_handle() 435 id = ((unsigned short int *)prd)[2]; in atp870u_intr_handle() 442 ((unsigned short int *)prd)[2] = in atp870u_intr_handle() 444 ((unsigned long *)prd)[0] += adrcnt; in atp870u_intr_handle() 446 dev->id[c][target_id].prd_pos = prd; in atp870u_intr_handle() 450 prd += 0x08; in atp870u_intr_handle() 452 dev->id[c][target_id].prd_pos = prd; in atp870u_intr_handle() 715 unsigned char *prd; in DEF_SCSI_QCMD() local 874 prd = dev->id[c][target_id].prd_table; in DEF_SCSI_QCMD() [all …]
|
/linux/drivers/net/ethernet/alteon/ |
H A D | acenic.h | 704 static inline int tx_space (struct ace_private *ap, u32 csm, u32 prd) in tx_space() argument 706 return (csm - prd - 1) & (ACE_TX_RING_ENTRIES(ap) - 1); in tx_space() 710 #define tx_ring_full(ap, csm, prd) (tx_space(ap, csm, prd) <= TX_RESERVED) argument
|
/linux/arch/powerpc/platforms/powernv/ |
H A D | Kconfig | 26 This enables the opal-prd driver, a facility to run processor
|
H A D | Makefile | 27 obj-$(CONFIG_OPAL_PRD) += opal-prd.o
|
/linux/drivers/scsi/mvsas/ |
H A D | mv_64xx.c | 551 static void mvs_64xx_make_prd(struct scatterlist *scatter, int nr, void *prd) in mvs_64xx_make_prd() argument 555 struct mvs_prd *buf_prd = prd; in mvs_64xx_make_prd() 725 int buf_len, int from, void *prd) in mvs_64xx_fix_dma() argument 728 struct mvs_prd *buf_prd = prd; in mvs_64xx_fix_dma()
|
H A D | mv_sas.h | 128 void (*make_prd)(struct scatterlist *scatter, int nr, void *prd); 154 int buf_len, int from, void *prd);
|
H A D | mv_94xx.c | 783 static void mvs_94xx_make_prd(struct scatterlist *scatter, int nr, void *prd) in mvs_94xx_make_prd() argument 787 struct mvs_prd *buf_prd = prd; in mvs_94xx_make_prd() 987 int buf_len, int from, void *prd) in mvs_94xx_fix_dma() argument 990 struct mvs_prd *buf_prd = prd; in mvs_94xx_fix_dma()
|
/linux/drivers/media/i2c/ |
H A D | tc358743_regs.h | 83 #define SET_PLL_PRD(prd) ((((prd) - 1) << 12) &\ argument
|
/linux/drivers/ufs/host/ |
H A D | ufs-exynos.c | 1381 struct fmp_sg_entry *prd = &fmp_prdt[i]; in exynos_ufs_fmp_fill_prdt() local 1385 if (prd->base.size != cpu_to_le32(DATA_UNIT_SIZE - 1)) { in exynos_ufs_fmp_fill_prdt() 1392 prd->base.size |= cpu_to_le32((FMP_ALGO_MODE_AES_XTS << 28) | in exynos_ufs_fmp_fill_prdt() 1396 prd->file_iv[0] = cpu_to_be64(dun_hi); in exynos_ufs_fmp_fill_prdt() 1397 prd->file_iv[1] = cpu_to_be64(dun_lo); in exynos_ufs_fmp_fill_prdt() 1401 prd->file_enckey[j] = fmp_key_word(enckey, j); in exynos_ufs_fmp_fill_prdt() 1402 prd->file_twkey[j] = fmp_key_word(twkey, j); in exynos_ufs_fmp_fill_prdt()
|
/linux/drivers/input/ |
H A D | joydev.c | 766 #define ACCEL_DEV(vnd, prd) \ argument 772 .product = (prd), \
|
/linux/drivers/ufs/core/ |
H A D | ufshcd.c | 2588 struct ufshcd_sg_entry *prd; in ufshcd_sgl_to_prdt() local 2600 prd = lrbp->ucd_prdt_ptr; in ufshcd_sgl_to_prdt() 2614 prd->size = cpu_to_le32(len - 1); in ufshcd_sgl_to_prdt() 2615 prd->addr = cpu_to_le64(sg->dma_address); in ufshcd_sgl_to_prdt() 2616 prd->reserved = 0; in ufshcd_sgl_to_prdt() 2617 prd = (void *)prd + ufshcd_sg_entry_size(hba); in ufshcd_sgl_to_prdt()
|
/linux/drivers/net/ethernet/nvidia/ |
H A D | forcedeth.c | 950 static inline u32 nv_descr_getlength(struct ring_desc *prd, u32 v) in nv_descr_getlength() argument 952 return le32_to_cpu(prd->flaglen) in nv_descr_getlength() 956 static inline u32 nv_descr_getlength_ex(struct ring_desc_ex *prd, u32 v) in nv_descr_getlength_ex() argument 958 return le32_to_cpu(prd->flaglen) & LEN_MASK_V2; in nv_descr_getlength_ex()
|
/linux/arch/mips/include/asm/octeon/ |
H A D | cvmx-npei-defs.h | 1283 uint64_t prd:10; member 1285 uint64_t prd:10;
|
/linux/drivers/scsi/pm8001/ |
H A D | pm8001_hwi.c | 3889 pm8001_chip_make_sg(struct scatterlist *scatter, int nr, void *prd) in pm8001_chip_make_sg() argument 3893 struct pm8001_prd *buf_prd = prd; in pm8001_chip_make_sg()
|