Home
last modified time | relevance | path

Searched refs:prd (Results 1 – 25 of 33) sorted by relevance

12

/linux-6.6.21/drivers/scsi/esas2r/
Desas2r_io.c409 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-6.6.21/drivers/pwm/
Dpwm-stm32-lp.c38 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()
165 u32 val, presc, prd; in stm32_pwm_lp_get_state() local
178 regmap_read(priv->regmap, STM32_LPTIM_ARR, &prd); in stm32_pwm_lp_get_state()
179 tmp = prd + 1; in stm32_pwm_lp_get_state()
[all …]
Dpwm-stm32.c173 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()
254 prd = (unsigned long long)raw_prd * (psc + 1) * NSEC_PER_SEC; in stm32_pwm_capture()
255 do_div(prd, rate); in stm32_pwm_capture()
261 if (prd >= (tmo_ms * NSEC_PER_MSEC) >> (icpsc + 2)) in stm32_pwm_capture()
310 prd = (unsigned long long)raw_prd * (psc + 1) * NSEC_PER_SEC; in stm32_pwm_capture()
311 result->period = DIV_ROUND_UP_ULL(prd, rate << icpsc); in stm32_pwm_capture()
329 unsigned long long prd, div, dty; in stm32_pwm_config() local
337 prd = div; in stm32_pwm_config()
[all …]
Dpwm-sun4i.c47 #define PWM_PRD(prd) (((prd) - 1) << 16) argument
172 u32 *dty, u32 *prd, unsigned int *prsclr, in sun4i_pwm_calculate() argument
224 *prd = div; in sun4i_pwm_calculate()
/linux-6.6.21/drivers/ata/
Dsata_inic162x.c197 __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 …]
Dsata_sil.c297 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()
Dsata_qstor.c241 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()
Dsata_promise.c570 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()
Dsata_fsl.c444 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()
Dlibata-sff.c2500 struct ata_bmdma_prd *prd = ap->bmdma_prd; in ata_bmdma_fill_sg() local
2522 prd[pi].addr = cpu_to_le32(addr); in ata_bmdma_fill_sg()
2523 prd[pi].flags_len = cpu_to_le32(len & 0xffff); in ata_bmdma_fill_sg()
2531 prd[pi - 1].flags_len |= cpu_to_le32(ATA_PRD_EOT); in ata_bmdma_fill_sg()
2550 struct ata_bmdma_prd *prd = ap->bmdma_prd; in ata_bmdma_fill_sg_dumb() local
2573 prd[pi].addr = cpu_to_le32(addr); in ata_bmdma_fill_sg_dumb()
2578 prd[pi].flags_len = cpu_to_le32(0x8000); in ata_bmdma_fill_sg_dumb()
2580 prd[++pi].addr = cpu_to_le32(addr + 0x8000); in ata_bmdma_fill_sg_dumb()
2582 prd[pi].flags_len = cpu_to_le32(blen); in ata_bmdma_fill_sg_dumb()
2590 prd[pi - 1].flags_len |= cpu_to_le32(ATA_PRD_EOT); in ata_bmdma_fill_sg_dumb()
Dsata_rcar.c504 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()
Dsata_nv.c259 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-6.6.21/drivers/gpu/drm/bridge/
Dtc358768.c156 u32 prd; /* PLL input divider */ member
315 u32 prd, target_pll, i, max_pll, min_pll; in tc358768_calc_pll() local
340 for (prd = 0; prd < 16; ++prd) { in tc358768_calc_pll()
341 u32 divisor = (prd + 1) * (1 << frs); in tc358768_calc_pll()
352 pll_in = (u32)div_u64((u64)refclk, prd + 1); in tc358768_calc_pll()
361 best_prd = prd; in tc358768_calc_pll()
380 priv->prd = best_prd; in tc358768_calc_pll()
593 u32 fbd, prd, frs; in tc358768_setup_pll() local
603 prd = priv->prd; in tc358768_setup_pll()
607 clk_get_rate(priv->refclk), fbd, prd, frs); in tc358768_setup_pll()
[all …]
/linux-6.6.21/drivers/scsi/
Datp870u.c124 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-6.6.21/Documentation/devicetree/bindings/usb/
Dsnps,dwc3.yaml313 snps,rx-thr-num-pkt-prd:
316 snps,rx-max-burst-prd to a valid, non-zero value 1-16 (DWC_usb31
322 snps,rx-max-burst-prd:
325 snps,rx-thr-num-pkt-prd to a valid, non-zero value 1-16 (DWC_usb31
331 snps,tx-thr-num-pkt-prd:
334 snps,tx-max-burst-prd to a valid, non-zero value 1-16 (DWC_usb31
340 snps,tx-max-burst-prd:
343 snps,tx-thr-num-pkt-prd to a valid, non-zero value 1-16 (DWC_usb31
/linux-6.6.21/lib/crypto/mpi/
Dec.c1166 static void montgomery_ladder(MPI_POINT prd, MPI_POINT sum, in montgomery_ladder() argument
1172 ctx->addm(prd->x, p1->x, p1->z, ctx); in montgomery_ladder()
1175 ctx->mulm(p2->z, prd->x, p2->z, ctx); in montgomery_ladder()
1176 ctx->pow2(p1->x, prd->x, ctx); in montgomery_ladder()
1180 ctx->mulm(prd->x, p1->x, p1->z, ctx); in montgomery_ladder()
1184 ctx->mulm(prd->z, p1->z, ctx->a, ctx); /* CTX->A: (a-2)/4 */ in montgomery_ladder()
1186 ctx->addm(prd->z, p1->x, prd->z, ctx); in montgomery_ladder()
1187 ctx->mulm(prd->z, prd->z, p1->z, ctx); in montgomery_ladder()
1255 MPI_POINT q1, q2, prd, sum; in mpi_ec_mul_point() local
1284 prd = &p1_; in mpi_ec_mul_point()
[all …]
/linux-6.6.21/drivers/net/ethernet/alteon/
Dacenic.h704 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-6.6.21/drivers/iio/trigger/
Dstm32-timer-trigger.c121 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-6.6.21/arch/powerpc/platforms/powernv/
DKconfig26 This enables the opal-prd driver, a facility to run processor
DMakefile27 obj-$(CONFIG_OPAL_PRD) += opal-prd.o
/linux-6.6.21/drivers/scsi/mvsas/
Dmv_64xx.c551 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()
Dmv_sas.h128 void (*make_prd)(struct scatterlist *scatter, int nr, void *prd);
154 int buf_len, int from, void *prd);
Dmv_94xx.c783 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-6.6.21/drivers/media/i2c/
Dtc358743_regs.h83 #define SET_PLL_PRD(prd) ((((prd) - 1) << 12) &\ argument
/linux-6.6.21/drivers/usb/gadget/udc/
Drenesas_usb3.c302 struct renesas_usb3_prd *prd; member
1377 struct renesas_usb3_prd *cur_prd = usb3_ep->dma->prd; in usb3_dma_fill_prd()
1435 struct renesas_usb3_prd *cur_prd = usb3_ep->dma->prd; in usb3_dma_update_status()
1513 if (dma->prd) { in renesas_usb3_dma_free_prd()
1515 dma->prd, dma->prd_dma); in renesas_usb3_dma_free_prd()
1516 dma->prd = NULL; in renesas_usb3_dma_free_prd()
1533 dma->prd = dma_alloc_coherent(dev, USB3_DMA_PRD_SIZE, in renesas_usb3_dma_alloc_prd()
1535 if (!dma->prd) { in renesas_usb3_dma_alloc_prd()

12