/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/linux/himedia/ |
D | base.c | 65 struct himedia_driver *pdrv = to_himedia_driver(dev->driver); in himedia_pm_prepare() local 67 if ((pdrv->ops == NULL) || (pdrv->ops->pm_prepare == NULL)) { in himedia_pm_prepare() 71 return pdrv->ops->pm_prepare(pdev); in himedia_pm_prepare() 77 struct himedia_driver *pdrv = to_himedia_driver(dev->driver); in himedia_pm_complete() local 79 if ((pdrv->ops == NULL) || (pdrv->ops->pm_complete == NULL)) { in himedia_pm_complete() 83 pdrv->ops->pm_complete(pdev); in himedia_pm_complete() 89 struct himedia_driver *pdrv = to_himedia_driver(dev->driver); in himedia_pm_suspend() local 91 if ((pdrv->ops == NULL) || (pdrv->ops->pm_suspend == NULL)) { in himedia_pm_suspend() 95 return pdrv->ops->pm_suspend(pdev); in himedia_pm_suspend() 101 struct himedia_driver *pdrv = to_himedia_driver(dev->driver); in himedia_pm_resume() local [all …]
|
D | himedia.c | 122 struct himedia_driver *pdrv = NULL; in himedia_register() local 167 pdrv = himedia_driver_register(himedia->devfs_name, himedia->owner, himedia->drvops); in himedia_register() 168 if (IS_ERR(pdrv)) { in himedia_register() 173 err = PTR_ERR(pdrv); in himedia_register() 177 himedia->driver = pdrv; in himedia_register()
|
D | base.h | 33 void himedia_driver_unregister(struct himedia_driver *pdrv);
|
/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/drv/himedia/ |
D | himedia_base.c | 104 pm_basedrv *pdrv = to_himedia_basedrv(dev->driver); in himedia_legacy_suspend_late() local 106 if (dev->driver && pdrv->suspend_late) { in himedia_legacy_suspend_late() 107 ret = pdrv->suspend_late(pdev, mesg); in himedia_legacy_suspend_late() 117 pm_basedrv *pdrv = to_himedia_basedrv(dev->driver); in himedia_legacy_resume_early() local 119 if (dev->driver && pdrv->resume_early) { in himedia_legacy_resume_early() 120 ret = pdrv->resume_early(pdev); in himedia_legacy_resume_early() 567 pm_basedrv *pdrv = to_himedia_basedrv(dev->driver); in himedia_drv_probe() local 570 return pdrv->probe(pdev); in himedia_drv_probe() 575 pm_basedrv *pdrv = to_himedia_basedrv(dev->driver); in himedia_drv_remove() local 578 return pdrv->remove(pdev); in himedia_drv_remove() [all …]
|
/device/qemu/riscv32_virt/liteos_m/board/driver/cfiflash/ |
D | cfiflash.c | 35 static uint8_t *GetCfiDrvPriv(uint32_t pdrv) in GetCfiDrvPriv() argument 38 if (pdrv >= 0 && pdrv < CFIFLASH_MAX_NUM) { in GetCfiDrvPriv() 39 ret = (uint8_t *)g_cfiDrvBase[pdrv]; in GetCfiDrvPriv() 49 static int SetCfiDrvPriv(uint32_t pdrv, uint32_t priv) in SetCfiDrvPriv() argument 51 g_cfiDrvBase[pdrv] = priv; in SetCfiDrvPriv() 157 int CfiFlashQuery(uint32_t pdrv) in CfiFlashQuery() argument 159 uint8_t *p = GetCfiDrvPriv(pdrv); in CfiFlashQuery() 206 int CfiFlashInit(uint32_t pdrv, uint32_t priv) in CfiFlashInit() argument 208 return SetCfiDrvPriv(pdrv, priv); in CfiFlashInit() 211 int32_t CfiFlashRead(uint32_t pdrv, uint32_t *buffer, uint32_t offset, uint32_t nbytes) in CfiFlashRead() argument [all …]
|
D | cfiflash_fs_hal.c | 19 static DSTATUS DiskInit(BYTE pdrv) in DiskInit() argument 21 if (CfiFlashQuery(pdrv)) { in DiskInit() 25 g_diskDrv.initialized[pdrv] = 1; in DiskInit() 29 static DSTATUS DiskStatus(BYTE pdrv) in DiskStatus() argument 31 if (g_diskDrv.initialized[pdrv] != 1) { in DiskStatus() 38 static DSTATUS DisckRead(BYTE pdrv, BYTE *buffer, DWORD startSector, UINT nSectors) in DisckRead() argument 44 return CfiFlashRead(pdrv, p, byteOffset, bytes); in DisckRead() 47 static DSTATUS DiskWrite(BYTE pdrv, const BYTE *buffer, DWORD startSector, UINT nSectors) in DiskWrite() argument 53 return CfiFlashWrite(pdrv, p, byteOffset, bytes); in DiskWrite() 56 static DSTATUS DiskIoctl(BYTE pdrv, BYTE cmd, void *buff) in DiskIoctl() argument [all …]
|
D | cfiflash.h | 34 int CfiFlashQuery(uint32_t pdrv); 35 int32_t CfiFlashRead(uint32_t pdrv, uint32_t *buffer, uint32_t offset, uint32_t nbytes); 36 int32_t CfiFlashWrite(uint32_t pdrv, const uint32_t *buffer, uint32_t offset, uint32_t nbytes); 37 int32_t CfiFlashErase(uint32_t pdrv, uint32_t offset);
|
/device/qemu/arm_mps2_an386/liteos_m/board/driver/flash/ |
D | ram_virt_flash.c | 77 INT32 virt_flash_erase(HalPartition pdrv, UINT32 offSet, UINT32 size) in virt_flash_erase() argument 82 partitionEnd = g_halPartitions[pdrv].partitionStartAddr + g_halPartitions[pdrv].partitionLength; in virt_flash_erase() 99 INT32 virt_flash_write(HalPartition pdrv, UINT32 *offSet, const VOID *buf, UINT32 bufLen) in virt_flash_write() argument 104 partitionEnd = g_halPartitions[pdrv].partitionStartAddr + g_halPartitions[pdrv].partitionLength; in virt_flash_write() 121 INT32 virt_flash_erase_write(HalPartition pdrv, UINT32 *offSet, const VOID *buf, UINT32 bufLen) in virt_flash_erase_write() argument 126 partitionEnd = g_halPartitions[pdrv].partitionStartAddr + g_halPartitions[pdrv].partitionLength; in virt_flash_erase_write() 143 INT32 virt_flash_read(HalPartition pdrv, UINT32 *offSet, VOID *buf, UINT32 bufLen) in virt_flash_read() argument 148 partitionEnd = g_halPartitions[pdrv].partitionStartAddr + g_halPartitions[pdrv].partitionLength; in virt_flash_read()
|
/device/soc/st/stm32f407zg/uniproton/board/fs/ |
D | fs_porting.c | 74 S32 VirtFlashErase(int pdrv, U32 offSet, U32 size) in VirtFlashErase() argument 79 partitionEnd = g_halPartitions[pdrv].partitionStartAddr + g_halPartitions[pdrv].partitionLength; in VirtFlashErase() 101 S32 VirtFlashWrite(int pdrv, U32 offSet, const void *buf, U32 bufLen) in VirtFlashWrite() argument 106 partitionEnd = g_halPartitions[pdrv].partitionStartAddr + g_halPartitions[pdrv].partitionLength; in VirtFlashWrite() 121 S32 VirtFlashRead(int pdrv, U32 offSet, void *buf, U32 bufLen) in VirtFlashRead() argument 126 partitionEnd = g_halPartitions[pdrv].partitionStartAddr + g_halPartitions[pdrv].partitionLength; in VirtFlashRead()
|