Home
last modified time | relevance | path

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

12

/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 …]
Datvda.h1076 struct atto_physical_region_description prd[1]; member
/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()
/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_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()
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()
/drivers/gpu/drm/bridge/
Dtc358768.c157 u32 prd; /* PLL input divider */ member
317 u32 prd, target_pll, i, max_pll, min_pll; in tc358768_calc_pll() local
342 for (prd = 0; prd < 16; ++prd) { in tc358768_calc_pll()
343 u32 divisor = (prd + 1) * (1 << frs); in tc358768_calc_pll()
354 pll_in = (u32)div_u64((u64)refclk, prd + 1); in tc358768_calc_pll()
363 best_prd = prd; in tc358768_calc_pll()
382 priv->prd = best_prd; in tc358768_calc_pll()
596 u32 fbd, prd, frs; in tc358768_setup_pll() local
606 prd = priv->prd; in tc358768_setup_pll()
610 clk_get_rate(priv->refclk), fbd, prd, frs); in tc358768_setup_pll()
[all …]
/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 …]
/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
/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()
/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()
/drivers/media/i2c/
Dtc358743_regs.h83 #define SET_PLL_PRD(prd) ((((prd) - 1) << 12) &\ argument
/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()
/drivers/scsi/pm8001/
Dpm8001_sas.h188 void (*make_prd)(struct scatterlist *scatter, int nr, void *prd);
684 void pm8001_chip_make_sg(struct scatterlist *scatter, int nr, void *prd);
/drivers/input/
Djoydev.c767 #define ACCEL_DEV(vnd, prd) \ argument
773 .product = (prd), \
/drivers/ufs/core/
Dufshcd.c2484 struct ufshcd_sg_entry *prd; in ufshcd_sgl_to_prdt() local
2496 prd = lrbp->ucd_prdt_ptr; in ufshcd_sgl_to_prdt()
2510 prd->size = cpu_to_le32(len - 1); in ufshcd_sgl_to_prdt()
2511 prd->addr = cpu_to_le64(sg->dma_address); in ufshcd_sgl_to_prdt()
2512 prd->reserved = 0; in ufshcd_sgl_to_prdt()
2513 prd = (void *)prd + ufshcd_sg_entry_size(hba); in ufshcd_sgl_to_prdt()

12