Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/scsi/esas2r/
H A 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 …]
/openbmc/linux/drivers/pwm/
H A 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
182 regmap_read(priv->regmap, STM32_LPTIM_ARR, &prd); in stm32_pwm_lp_get_state()
183 tmp = prd + 1; in stm32_pwm_lp_get_state()
[all …]
H A 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 …]
H A 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()
/openbmc/qemu/hw/ide/
H A Dpci.c229 } prd; in bmdma_prepare_buf() local
242 pci_dma_read(pci_dev, bm->cur_addr, &prd, 8); in bmdma_prepare_buf()
244 prd.addr = le32_to_cpu(prd.addr); in bmdma_prepare_buf()
245 prd.size = le32_to_cpu(prd.size); in bmdma_prepare_buf()
246 len = prd.size & 0xfffe; in bmdma_prepare_buf()
250 bm->cur_prd_addr = prd.addr; in bmdma_prepare_buf()
251 bm->cur_prd_last = (prd.size & 0x80000000); in bmdma_prepare_buf()
281 } prd; in bmdma_rw_buf() local
293 pci_dma_read(pci_dev, bm->cur_addr, &prd, 8); in bmdma_rw_buf()
295 prd.addr = le32_to_cpu(prd.addr); in bmdma_rw_buf()
[all …]
/openbmc/linux/drivers/ata/
H A 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 …]
H A 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()
H A 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()
H A 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()
H A 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()
H A Dlibata-sff.c2502 struct ata_bmdma_prd *prd = ap->bmdma_prd; in ata_bmdma_fill_sg() local
2524 prd[pi].addr = cpu_to_le32(addr); in ata_bmdma_fill_sg()
2525 prd[pi].flags_len = cpu_to_le32(len & 0xffff); in ata_bmdma_fill_sg()
2533 prd[pi - 1].flags_len |= cpu_to_le32(ATA_PRD_EOT); in ata_bmdma_fill_sg()
2552 struct ata_bmdma_prd *prd = ap->bmdma_prd; in ata_bmdma_fill_sg_dumb() local
2575 prd[pi].addr = cpu_to_le32(addr); in ata_bmdma_fill_sg_dumb()
2580 prd[pi].flags_len = cpu_to_le32(0x8000); in ata_bmdma_fill_sg_dumb()
2582 prd[++pi].addr = cpu_to_le32(addr + 0x8000); in ata_bmdma_fill_sg_dumb()
2584 prd[pi].flags_len = cpu_to_le32(blen); in ata_bmdma_fill_sg_dumb()
2592 prd[pi - 1].flags_len |= cpu_to_le32(ATA_PRD_EOT); in ata_bmdma_fill_sg_dumb()
/openbmc/u-boot/cmd/
H A Dmii.c123 const MII_reg_desc_t *prd,
147 const MII_reg_desc_t *prd, in dump_reg() argument
155 prd->regno, regval, prd->name); in dump_reg()
165 prd->regno); in dump_reg()
167 if (special_field(prd->regno, pdesc, regval)) { in dump_reg()
/openbmc/linux/drivers/gpu/drm/bridge/
H A Dtc358768.c160 u32 prd; /* PLL input divider */ member
335 u32 prd, target_pll, i, max_pll, min_pll; in tc358768_calc_pll() local
360 for (prd = 0; prd < 16; ++prd) { in tc358768_calc_pll()
361 u32 divisor = (prd + 1) * (1 << frs); in tc358768_calc_pll()
372 pll_in = (u32)div_u64((u64)refclk, prd + 1); in tc358768_calc_pll()
381 best_prd = prd; in tc358768_calc_pll()
400 priv->prd = best_prd; in tc358768_calc_pll()
613 u32 fbd, prd, frs; in tc358768_setup_pll() local
623 prd = priv->prd; in tc358768_setup_pll()
627 clk_get_rate(priv->refclk), fbd, prd, frs); in tc358768_setup_pll()
[all …]
/openbmc/openbmc-test-automation/lib/
H A Dos_utils_config.robot57 [Documentation] Check whether opal-prd.service is running on OS.
58 ${output} ${stderr}= Execute Command systemctl status opal-prd.service
63 ... msg=Error: opal-prd.service is not installed.
H A Dos_utils_install.robot94 [Documentation] Download and install opal prd tool.
97 OS Execute Command sudo apt-get install opal-prd
103 # Verify opal prd installation working.
/openbmc/linux/drivers/scsi/
H A 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 …]
/openbmc/linux/lib/crypto/mpi/
H A 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 …]
/openbmc/openbmc-test-automation/docs/
H A Dopenbmc_test_tools.md72 ## The opal-prd Tool:
74 opal-prd is a tool used by the Energy Scale and RAS tests. It should be
77 opal-prd may be installed on Ubuntu with: `apt install opal-prd` and on RedHat
78 with: `yum install opal-prd`
/openbmc/linux/drivers/net/ethernet/alteon/
H A 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
/openbmc/linux/drivers/iio/trigger/
H A 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()
/openbmc/linux/arch/powerpc/platforms/powernv/
H A DKconfig26 This enables the opal-prd driver, a facility to run processor
/openbmc/openbmc-test-automation/redfish/extended/
H A Dtest_power_capping.robot43 Tool Exist opal-prd
57 ${output} ${stderr} ${rc}= OS Execute Command opal-prd occ disable
63 ${output} ${stderr} ${rc}= OS Execute Command opal-prd occ enable
/openbmc/qemu/tests/qtest/libqos/
H A Dahci.c1190 PRD prd; in ahci_command_commit() local
1223 prd.dba = cpu_to_le64(cmd->buffer + (cmd->prd_size * i)); in ahci_command_commit()
1224 prd.res = 0; in ahci_command_commit()
1227 prd.dbc = cpu_to_le32(cmd->prd_size - 1); in ahci_command_commit()
1231 prd.dbc = cpu_to_le32(remaining - 1); in ahci_command_commit()
1234 prd.dbc |= cpu_to_le32(0x80000000); /* Request DPS Interrupt */ in ahci_command_commit()
1238 &prd, sizeof(PRD)); in ahci_command_commit()
/openbmc/linux/drivers/scsi/mvsas/
H A 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()
/openbmc/openbmc-test-automation/lib/ras/
H A Dhost_utils.robot161 ${cmd}= Catenate systemctl list-unit-files | grep opal-prd
166 # opal-prd.service enabled
172 OS Execute Command service opal-prd start

12