Home
last modified time | relevance | path

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

/linux-2.6.39/arch/arm/mach-shmobile/
Dpm_runtime.c34 struct pm_runtime_data *prd = res; in __devres_release() local
38 if (test_bit(BIT_CLK_ENABLED, &prd->flags)) in __devres_release()
39 clk_disable(prd->clk); in __devres_release()
41 if (test_bit(BIT_ACTIVE, &prd->flags)) in __devres_release()
42 clk_put(prd->clk); in __devres_release()
51 struct pm_runtime_data *prd) in platform_pm_runtime_init() argument
53 if (prd && !test_and_set_bit(BIT_ONCE, &prd->flags)) { in platform_pm_runtime_init()
54 prd->clk = clk_get(dev, NULL); in platform_pm_runtime_init()
55 if (!IS_ERR(prd->clk)) { in platform_pm_runtime_init()
56 set_bit(BIT_ACTIVE, &prd->flags); in platform_pm_runtime_init()
[all …]
/linux-2.6.39/drivers/ata/
Dsata_inic162x.c186 __le32 prd; /* First PRD pointer */ member
218 struct inic_prd prd[LIBATA_MAX_PRD + 1]; /* + 1 for cdb */ member
443 static void inic_fill_sg(struct inic_prd *prd, struct ata_queued_cmd *qc) in inic_fill_sg() argument
456 prd->mad = cpu_to_le32(sg_dma_address(sg)); in inic_fill_sg()
457 prd->len = cpu_to_le16(sg_dma_len(sg)); in inic_fill_sg()
458 prd->flags = flags; in inic_fill_sg()
459 prd++; in inic_fill_sg()
463 prd[-1].flags |= PRD_END; in inic_fill_sg()
471 struct inic_prd *prd = pkt->prd; in inic_qc_prep() local
489 cpb->prd = cpu_to_le32(pp->pkt_dma + offsetof(struct inic_pkt, prd)); in inic_qc_prep()
[all …]
Dsata_sil.c313 struct ata_bmdma_prd *prd, *last_prd = NULL; in sil_fill_sg() local
316 prd = &ap->bmdma_prd[0]; in sil_fill_sg()
324 prd->addr = cpu_to_le32(addr); in sil_fill_sg()
325 prd->flags_len = cpu_to_le32(sg_len); in sil_fill_sg()
328 last_prd = prd; in sil_fill_sg()
329 prd++; in sil_fill_sg()
Dsata_fsl.c327 struct prde *prd = (struct prde *)&((struct command_desc *) in sata_fsl_fill_sg() local
335 VPRINTK("SATA FSL : cd = 0x%p, prd = 0x%p\n", cmd_desc, prd); in sata_fsl_fill_sg()
359 prd_ptr_to_indirect_ext = prd; in sata_fsl_fill_sg()
360 prd->dba = cpu_to_le32(indirect_ext_segment_paddr); in sata_fsl_fill_sg()
362 ++prd; in sata_fsl_fill_sg()
367 prd->dba = cpu_to_le32(sg_addr); in sata_fsl_fill_sg()
368 prd->ddc_and_ext = cpu_to_le32(data_snoop | (sg_len & ~0x03)); in sata_fsl_fill_sg()
371 ttl_dwords, prd->dba, prd->ddc_and_ext); in sata_fsl_fill_sg()
374 ++prd; in sata_fsl_fill_sg()
Dsata_qstor.c258 u8 *prd = pp->pkt + QS_CPB_BYTES; in qs_fill_sg() local
266 *(__le64 *)prd = cpu_to_le64(addr); in qs_fill_sg()
267 prd += sizeof(u64); in qs_fill_sg()
270 *(__le32 *)prd = cpu_to_le32(len); in qs_fill_sg()
271 prd += sizeof(u64); in qs_fill_sg()
Dsata_promise.c589 struct ata_bmdma_prd *prd = ap->bmdma_prd; in pdc_fill_sg() local
616 prd[idx].addr = cpu_to_le32(addr); in pdc_fill_sg()
617 prd[idx].flags_len = cpu_to_le32(len & 0xffff); in pdc_fill_sg()
626 len = le32_to_cpu(prd[idx - 1].flags_len); in pdc_fill_sg()
633 addr = le32_to_cpu(prd[idx - 1].addr); in pdc_fill_sg()
634 prd[idx - 1].flags_len = cpu_to_le32(len - SG_COUNT_ASIC_BUG); in pdc_fill_sg()
639 prd[idx].addr = cpu_to_le32(addr); in pdc_fill_sg()
640 prd[idx].flags_len = cpu_to_le32(len); in pdc_fill_sg()
646 prd[idx - 1].flags_len |= cpu_to_le32(ATA_PRD_EOT); in pdc_fill_sg()
Dlibata-sff.c2619 struct ata_bmdma_prd *prd = ap->bmdma_prd; in ata_bmdma_fill_sg() local
2641 prd[pi].addr = cpu_to_le32(addr); in ata_bmdma_fill_sg()
2642 prd[pi].flags_len = cpu_to_le32(len & 0xffff); in ata_bmdma_fill_sg()
2651 prd[pi - 1].flags_len |= cpu_to_le32(ATA_PRD_EOT); in ata_bmdma_fill_sg()
2670 struct ata_bmdma_prd *prd = ap->bmdma_prd; in ata_bmdma_fill_sg_dumb() local
2693 prd[pi].addr = cpu_to_le32(addr); in ata_bmdma_fill_sg_dumb()
2698 prd[pi].flags_len = cpu_to_le32(0x8000); in ata_bmdma_fill_sg_dumb()
2700 prd[++pi].addr = cpu_to_le32(addr + 0x8000); in ata_bmdma_fill_sg_dumb()
2702 prd[pi].flags_len = cpu_to_le32(blen); in ata_bmdma_fill_sg_dumb()
2711 prd[pi - 1].flags_len |= cpu_to_le32(ATA_PRD_EOT); in ata_bmdma_fill_sg_dumb()
Dsata_nv.c275 struct ata_bmdma_prd *prd; /* our SG list */ member
1982 pp->prd = dmam_alloc_coherent(dev, ATA_PRD_TBL_SZ * ATA_MAX_QUEUE, in nv_swncq_port_start()
1984 if (!pp->prd) in nv_swncq_port_start()
1986 memset(pp->prd, 0, ATA_PRD_TBL_SZ * ATA_MAX_QUEUE); in nv_swncq_port_start()
2014 struct ata_bmdma_prd *prd; in nv_swncq_fill_sg() local
2017 prd = pp->prd + ATA_MAX_PRD * qc->tag; in nv_swncq_fill_sg()
2033 prd[idx].addr = cpu_to_le32(addr); in nv_swncq_fill_sg()
2034 prd[idx].flags_len = cpu_to_le32(len & 0xffff); in nv_swncq_fill_sg()
2042 prd[idx - 1].flags_len |= cpu_to_le32(ATA_PRD_EOT); in nv_swncq_fill_sg()
/linux-2.6.39/drivers/net/
Dacenic.h706 static inline int tx_space (struct ace_private *ap, u32 csm, u32 prd) in tx_space() argument
708 return (csm - prd - 1) & (ACE_TX_RING_ENTRIES(ap) - 1); in tx_space()
712 #define tx_ring_full(ap, csm, prd) (tx_space(ap, csm, prd) <= TX_RESERVED) argument
Dforcedeth.c929 static inline u32 nv_descr_getlength(struct ring_desc *prd, u32 v) in nv_descr_getlength() argument
931 return le32_to_cpu(prd->flaglen) in nv_descr_getlength()
935 static inline u32 nv_descr_getlength_ex(struct ring_desc_ex *prd, u32 v) in nv_descr_getlength_ex() argument
937 return le32_to_cpu(prd->flaglen) & LEN_MASK_V2; in nv_descr_getlength_ex()
/linux-2.6.39/drivers/scsi/
Datp870u.c53 unsigned char *prd; in atp870u_intr_handle() local
382 prd = dev->id[c][target_id].prd_pos; in atp870u_intr_handle()
384 id = ((unsigned short int *)prd)[2]; in atp870u_intr_handle()
391 ((unsigned short int *)prd)[2] = (unsigned short int) in atp870u_intr_handle()
393 ((unsigned long *)prd)[0] += adrcnt; in atp870u_intr_handle()
395 dev->id[c][target_id].prd_pos = prd; in atp870u_intr_handle()
399 prd += 0x08; in atp870u_intr_handle()
401 dev->id[c][target_id].prd_pos = prd; in atp870u_intr_handle()
714 unsigned char *prd; in DEF_SCSI_QCMD() local
894 prd = dev->id[c][target_id].prd_table; in DEF_SCSI_QCMD()
[all …]
/linux-2.6.39/drivers/scsi/mvsas/
Dmv_94xx.c419 static void mvs_94xx_make_prd(struct scatterlist *scatter, int nr, void *prd) in mvs_94xx_make_prd() argument
423 struct mvs_prd *buf_prd = prd; in mvs_94xx_make_prd()
606 void mvs_94xx_fix_dma(dma_addr_t buf_dma, int buf_len, int from, void *prd) in mvs_94xx_fix_dma() argument
609 struct mvs_prd *buf_prd = prd; in mvs_94xx_fix_dma()
Dmv_64xx.c573 void mvs_64xx_make_prd(struct scatterlist *scatter, int nr, void *prd) in mvs_64xx_make_prd() argument
577 struct mvs_prd *buf_prd = prd; in mvs_64xx_make_prd()
747 void mvs_64xx_fix_dma(dma_addr_t buf_dma, int buf_len, int from, void *prd) in mvs_64xx_fix_dma() argument
750 struct mvs_prd *buf_prd = prd; in mvs_64xx_fix_dma()
Dmv_sas.h143 void (*make_prd)(struct scatterlist *scatter, int nr, void *prd);
169 void (*dma_fix)(dma_addr_t buf_dma, int buf_len, int from, void *prd);
/linux-2.6.39/drivers/scsi/pm8001/
Dpm8001_sas.h143 void (*make_prd)(struct scatterlist *scatter, int nr, void *prd);
Dpm8001_hwi.c3700 pm8001_chip_make_sg(struct scatterlist *scatter, int nr, void *prd) in pm8001_chip_make_sg() argument
3704 struct pm8001_prd *buf_prd = prd; in pm8001_chip_make_sg()
/linux-2.6.39/arch/mips/include/asm/octeon/
Dcvmx-npei-defs.h805 uint64_t prd:10; member