/linux-5.19.10/drivers/scsi/esas2r/ |
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 …]
|
/linux-5.19.10/drivers/pwm/ |
D | pwm-stm32-lp.c | 38 unsigned long long prd, div, dty; in stm32_pwm_lp_apply() local 68 prd = div; in stm32_pwm_lp_apply() 75 div = prd >> presc; in stm32_pwm_lp_apply() 77 prd = div; in stm32_pwm_lp_apply() 80 dty = prd * state->duty_cycle; in stm32_pwm_lp_apply() 120 ret = regmap_write(priv->regmap, STM32_LPTIM_ARR, prd - 1); in stm32_pwm_lp_apply() 124 ret = regmap_write(priv->regmap, STM32_LPTIM_CMP, prd - (1 + dty)); in stm32_pwm_lp_apply() 166 u32 val, presc, prd; in stm32_pwm_lp_get_state() local 179 regmap_read(priv->regmap, STM32_LPTIM_ARR, &prd); in stm32_pwm_lp_get_state() 180 tmp = prd + 1; in stm32_pwm_lp_get_state() [all …]
|
D | pwm-stm32.c | 173 unsigned long long prd, div, dty; in stm32_pwm_capture() local 201 prd = div; in stm32_pwm_capture() 204 div = prd; in stm32_pwm_capture() 250 prd = (unsigned long long)raw_prd * (psc + 1) * NSEC_PER_SEC; in stm32_pwm_capture() 251 do_div(prd, rate); in stm32_pwm_capture() 257 if (prd >= (tmo_ms * NSEC_PER_MSEC) >> (icpsc + 2)) in stm32_pwm_capture() 306 prd = (unsigned long long)raw_prd * (psc + 1) * NSEC_PER_SEC; in stm32_pwm_capture() 307 result->period = DIV_ROUND_UP_ULL(prd, rate << icpsc); in stm32_pwm_capture() 325 unsigned long long prd, div, dty; in stm32_pwm_config() local 333 prd = div; in stm32_pwm_config() [all …]
|
D | pwm-sun4i.c | 48 #define PWM_PRD(prd) (((prd) - 1) << 16) argument 169 u32 *dty, u32 *prd, unsigned int *prsclr, in sun4i_pwm_calculate() argument 221 *prd = div; in sun4i_pwm_calculate()
|
/linux-5.19.10/drivers/ata/ |
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 …]
|
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()
|
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()
|
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()
|
D | sata_fsl.c | 444 struct prde *prd = (struct prde *)&((struct command_desc *) in sata_fsl_fill_sg() local 469 prd_ptr_to_indirect_ext = prd; in sata_fsl_fill_sg() 470 prd->dba = cpu_to_le32(indirect_ext_segment_paddr); in sata_fsl_fill_sg() 472 ++prd; in sata_fsl_fill_sg() 477 prd->dba = cpu_to_le32(sg_addr); in sata_fsl_fill_sg() 478 prd->ddc_and_ext = cpu_to_le32(data_snoop | (sg_len & ~0x03)); in sata_fsl_fill_sg() 481 ++prd; in sata_fsl_fill_sg()
|
D | libata-sff.c | 2570 struct ata_bmdma_prd *prd = ap->bmdma_prd; in ata_bmdma_fill_sg() local 2592 prd[pi].addr = cpu_to_le32(addr); in ata_bmdma_fill_sg() 2593 prd[pi].flags_len = cpu_to_le32(len & 0xffff); in ata_bmdma_fill_sg() 2601 prd[pi - 1].flags_len |= cpu_to_le32(ATA_PRD_EOT); in ata_bmdma_fill_sg() 2620 struct ata_bmdma_prd *prd = ap->bmdma_prd; in ata_bmdma_fill_sg_dumb() local 2643 prd[pi].addr = cpu_to_le32(addr); in ata_bmdma_fill_sg_dumb() 2648 prd[pi].flags_len = cpu_to_le32(0x8000); in ata_bmdma_fill_sg_dumb() 2650 prd[++pi].addr = cpu_to_le32(addr + 0x8000); in ata_bmdma_fill_sg_dumb() 2652 prd[pi].flags_len = cpu_to_le32(blen); in ata_bmdma_fill_sg_dumb() 2660 prd[pi - 1].flags_len |= cpu_to_le32(ATA_PRD_EOT); in ata_bmdma_fill_sg_dumb()
|
D | sata_rcar.c | 504 struct ata_bmdma_prd *prd = ap->bmdma_prd; in sata_rcar_bmdma_fill_sg() local 518 prd[si].addr = cpu_to_le32(addr); in sata_rcar_bmdma_fill_sg() 519 prd[si].flags_len = cpu_to_le32(sg_len); in sata_rcar_bmdma_fill_sg() 523 prd[si - 1].addr |= cpu_to_le32(SATA_RCAR_DTEND); in sata_rcar_bmdma_fill_sg()
|
D | sata_nv.c | 259 struct ata_bmdma_prd *prd; /* our SG list */ member 1933 pp->prd = dmam_alloc_coherent(dev, ATA_PRD_TBL_SZ * ATA_MAX_QUEUE, in nv_swncq_port_start() 1935 if (!pp->prd) in nv_swncq_port_start() 1966 struct ata_bmdma_prd *prd; in nv_swncq_fill_sg() local 1969 prd = pp->prd + ATA_MAX_PRD * qc->hw_tag; in nv_swncq_fill_sg() 1985 prd[idx].addr = cpu_to_le32(addr); in nv_swncq_fill_sg() 1986 prd[idx].flags_len = cpu_to_le32(len & 0xffff); in nv_swncq_fill_sg() 1994 prd[idx - 1].flags_len |= cpu_to_le32(ATA_PRD_EOT); in nv_swncq_fill_sg()
|
/linux-5.19.10/drivers/gpu/drm/bridge/ |
D | tc358768.c | 153 u32 prd; /* PLL input divider */ member 308 u32 prd, target_pll, i, max_pll, min_pll; in tc358768_calc_pll() local 333 for (prd = 0; prd < 16; ++prd) { in tc358768_calc_pll() 334 u32 divisor = (prd + 1) * (1 << frs); in tc358768_calc_pll() 350 best_prd = prd; in tc358768_calc_pll() 369 priv->prd = best_prd; in tc358768_calc_pll() 581 u32 fbd, prd, frs; in tc358768_setup_pll() local 591 prd = priv->prd; in tc358768_setup_pll() 595 clk_get_rate(priv->refclk), fbd, prd, frs); in tc358768_setup_pll() 603 tc358768_write(priv, TC358768_PLLCTL0, (prd << 12) | fbd); in tc358768_setup_pll()
|
/linux-5.19.10/Documentation/devicetree/bindings/usb/ |
D | snps,dwc3.yaml | 274 snps,rx-thr-num-pkt-prd: 277 snps,rx-max-burst-prd to a valid, non-zero value 1-16 (DWC_usb31 283 snps,rx-max-burst-prd: 286 snps,rx-thr-num-pkt-prd to a valid, non-zero value 1-16 (DWC_usb31 292 snps,tx-thr-num-pkt-prd: 295 snps,tx-max-burst-prd to a valid, non-zero value 1-16 (DWC_usb31 301 snps,tx-max-burst-prd: 304 snps,tx-thr-num-pkt-prd to a valid, non-zero value 1-16 (DWC_usb31
|
/linux-5.19.10/drivers/scsi/ |
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-5.19.10/lib/mpi/ |
D | ec.c | 1163 static void montgomery_ladder(MPI_POINT prd, MPI_POINT sum, in montgomery_ladder() argument 1169 ctx->addm(prd->x, p1->x, p1->z, ctx); in montgomery_ladder() 1172 ctx->mulm(p2->z, prd->x, p2->z, ctx); in montgomery_ladder() 1173 ctx->pow2(p1->x, prd->x, ctx); in montgomery_ladder() 1177 ctx->mulm(prd->x, p1->x, p1->z, ctx); in montgomery_ladder() 1181 ctx->mulm(prd->z, p1->z, ctx->a, ctx); /* CTX->A: (a-2)/4 */ in montgomery_ladder() 1183 ctx->addm(prd->z, p1->x, prd->z, ctx); in montgomery_ladder() 1184 ctx->mulm(prd->z, prd->z, p1->z, ctx); in montgomery_ladder() 1252 MPI_POINT q1, q2, prd, sum; in mpi_ec_mul_point() local 1281 prd = &p1_; in mpi_ec_mul_point() [all …]
|
/linux-5.19.10/drivers/net/ethernet/alteon/ |
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-5.19.10/drivers/iio/trigger/ |
D | stm32-timer-trigger.c | 121 unsigned long long prd, div; in stm32_timer_start() local 130 prd = div; in stm32_timer_start() 138 div = prd; in stm32_timer_start() 141 prd = div; in stm32_timer_start() 160 regmap_write(priv->regmap, TIM_ARR, prd - 1); in stm32_timer_start()
|
/linux-5.19.10/arch/powerpc/platforms/powernv/ |
D | Kconfig | 26 This enables the opal-prd driver, a facility to run processor
|
D | Makefile | 27 obj-$(CONFIG_OPAL_PRD) += opal-prd.o
|
/linux-5.19.10/drivers/scsi/mvsas/ |
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()
|
D | mv_sas.h | 128 void (*make_prd)(struct scatterlist *scatter, int nr, void *prd); 154 int buf_len, int from, void *prd);
|
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-5.19.10/drivers/media/i2c/ |
D | tc358743_regs.h | 83 #define SET_PLL_PRD(prd) ((((prd) - 1) << 12) &\ argument
|
/linux-5.19.10/drivers/usb/gadget/udc/ |
D | renesas_usb3.c | 298 struct renesas_usb3_prd *prd; member 1319 struct renesas_usb3_prd *cur_prd = usb3_ep->dma->prd; in usb3_dma_fill_prd() 1377 struct renesas_usb3_prd *cur_prd = usb3_ep->dma->prd; in usb3_dma_update_status() 1455 if (dma->prd) { in renesas_usb3_dma_free_prd() 1457 dma->prd, dma->prd_dma); in renesas_usb3_dma_free_prd() 1458 dma->prd = NULL; in renesas_usb3_dma_free_prd() 1475 dma->prd = dma_alloc_coherent(dev, USB3_DMA_PRD_SIZE, in renesas_usb3_dma_alloc_prd() 1477 if (!dma->prd) { in renesas_usb3_dma_alloc_prd()
|