/kernel/linux/linux-5.10/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 in esas2r_build_prd_iblk() [all...] |
/kernel/linux/linux-6.6/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 in esas2r_build_prd_iblk() [all...] |
/kernel/linux/linux-6.6/drivers/pwm/ |
H A 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() 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 in stm32_pwm_lp_get_state() [all...] |
H A 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() 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 in stm32_pwm_config() [all...] |
H A D | pwm-sun4i.c | 47 #define PWM_PRD(prd) (((prd) - 1) << 16) 172 u32 *dty, u32 *prd, unsigned int *prsclr, in sun4i_pwm_calculate() 224 *prd = div; in sun4i_pwm_calculate() 170 sun4i_pwm_calculate(struct sun4i_pwm_chip *sun4i_pwm, const struct pwm_state *state, u32 *dty, u32 *prd, unsigned int *prsclr, bool *bypass) sun4i_pwm_calculate() argument
|
/kernel/linux/linux-5.10/drivers/pwm/ |
H A 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 in stm32_pwm_lp_get_state() [all...] |
H A 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 in stm32_pwm_config() [all...] |
H A D | pwm-sun4i.c | 48 #define PWM_PRD(prd) (((prd) - 1) << 16) 170 u32 *dty, u32 *prd, unsigned int *prsclr, in sun4i_pwm_calculate() 222 *prd = div; in sun4i_pwm_calculate() 168 sun4i_pwm_calculate(struct sun4i_pwm_chip *sun4i_pwm, const struct pwm_state *state, u32 *dty, u32 *prd, unsigned int *prsclr, bool *bypass) sun4i_pwm_calculate() argument
|
/kernel/linux/linux-5.10/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 [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() 312 last_prd = prd; in sil_fill_sg() 313 prd++; in sil_fill_sg()
|
H A D | sata_fsl.c | 442 struct prde *prd = (struct prde *)&((struct command_desc *) in sata_fsl_fill_sg() local 450 VPRINTK("SATA FSL : cd = 0x%p, prd = 0x%p\n", cmd_desc, prd); in sata_fsl_fill_sg() 473 prd_ptr_to_indirect_ext = prd; in sata_fsl_fill_sg() 474 prd->dba = cpu_to_le32(indirect_ext_segment_paddr); in sata_fsl_fill_sg() 476 ++prd; in sata_fsl_fill_sg() 481 prd->dba = cpu_to_le32(sg_addr); in sata_fsl_fill_sg() 482 prd->ddc_and_ext = cpu_to_le32(data_snoop | (sg_len & ~0x03)); in sata_fsl_fill_sg() 485 ttl_dwords, prd->dba, prd in sata_fsl_fill_sg() [all...] |
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 | 320 /* we use the same prd table as bmdma, allocate it */ in pdc_common_port_start() 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() 607 len = le32_to_cpu(prd[idx - 1].flags_len); in pdc_fill_sg() 614 addr = le32_to_cpu(prd[idx - 1].addr); in pdc_fill_sg() 615 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[id in pdc_fill_sg() [all...] |
/kernel/linux/linux-6.6/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 [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 | 320 /* we use the same prd table as bmdma, allocate it */ in pdc_common_port_start() 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[id in pdc_fill_sg() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/bridge/ |
H A D | tc358768.c | 156 u32 prd; /* PLL input divider */ member 309 u32 prd, target_pll, i, max_pll, min_pll; in tc358768_calc_pll() local 334 for (prd = 0; prd < 16; ++prd) { in tc358768_calc_pll() 335 u32 divisor = (prd + 1) * (1 << frs); in tc358768_calc_pll() 346 pll_in = (u32)div_u64((u64)refclk, prd + 1); in tc358768_calc_pll() 355 best_prd = prd; in tc358768_calc_pll() 374 priv->prd = best_prd; in tc358768_calc_pll() 587 u32 fbd, prd, fr in tc358768_setup_pll() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/bridge/ |
H A D | tc358768.c | 156 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, fr in tc358768_setup_pll() local [all...] |
/kernel/linux/linux-5.10/drivers/scsi/ |
H A D | atp870u.c | 16 * fix prd table bug 2001/09/12 (7.1) 123 unsigned char *prd; in atp870u_intr_handle() local 403 prd = dev->id[c][target_id].prd_pos; in atp870u_intr_handle() 405 id = ((unsigned short int *)prd)[2]; in atp870u_intr_handle() 412 ((unsigned short int *)prd)[2] = (unsigned short int) in atp870u_intr_handle() 414 ((unsigned long *)prd)[0] += adrcnt; in atp870u_intr_handle() 416 dev->id[c][target_id].prd_pos = prd; in atp870u_intr_handle() 420 prd += 0x08; in atp870u_intr_handle() 422 dev->id[c][target_id].prd_pos = prd; in atp870u_intr_handle() 686 unsigned char *prd; in send_s870() local [all...] |
/kernel/linux/linux-6.6/drivers/scsi/ |
H A D | atp870u.c | 16 * fix prd table bug 2001/09/12 (7.1) 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 send_s870() local [all...] |
/kernel/linux/linux-5.10/lib/mpi/ |
H A D | ec.c | 1166 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 in montgomery_ladder() 1255 MPI_POINT q1, q2, prd, sum; mpi_ec_mul_point() local [all...] |
/kernel/linux/linux-6.6/lib/crypto/mpi/ |
H A D | ec.c | 1166 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 in montgomery_ladder() 1255 MPI_POINT q1, q2, prd, sum; mpi_ec_mul_point() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/alteon/ |
H A D | acenic.h | 705 static inline int tx_space (struct ace_private *ap, u32 csm, u32 prd) in tx_space() argument 707 return (csm - prd - 1) & (ACE_TX_RING_ENTRIES(ap) - 1); in tx_space() 711 #define tx_ring_full(ap, csm, prd) (tx_space(ap, csm, prd) <= TX_RESERVED)
|
/kernel/linux/linux-6.6/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)
|