Home
last modified time | relevance | path

Searched refs:pdrv (Results 1 – 14 of 14) sorted by relevance

/AliOS-Things-master/components/fatfs/src/ram_disk/
A Dram_disk.c59 DSTATUS ram_disk_status(BYTE pdrv) in ram_disk_status() argument
61 if (pdrv != RAMDISK) { in ram_disk_status()
71 DSTATUS ram_disk_initialize(BYTE pdrv) in ram_disk_initialize() argument
73 if (pdrv != RAMDISK) { in ram_disk_initialize()
83 DRESULT ram_disk_read(BYTE pdrv, BYTE *buff, DWORD sector, UINT count) in ram_disk_read() argument
85 if (pdrv != RAMDISK) { in ram_disk_read()
96 DRESULT ram_disk_write(BYTE pdrv, const BYTE *buff, DWORD sector, UINT count) in ram_disk_write() argument
98 if (pdrv != RAMDISK) { in ram_disk_write()
109 DRESULT ram_disk_ioctl(BYTE pdrv, BYTE cmd, void *buff) in ram_disk_ioctl() argument
111 if (pdrv != RAMDISK) { in ram_disk_ioctl()
A Dram_disk.h52 DSTATUS ram_disk_initialize(BYTE pdrv);
53 DSTATUS ram_disk_status(BYTE pdrv);
54 DRESULT ram_disk_read(BYTE pdrv, BYTE *buff, DWORD sector, UINT count);
55 DRESULT ram_disk_write(BYTE pdrv, const BYTE *buff, DWORD sector, UINT count);
56 DRESULT ram_disk_ioctl(BYTE pdrv, BYTE cmd, void *buff);
/AliOS-Things-master/components/fatfs/src/
A Ddiskio.c12 DSTATUS ff_disk_status(BYTE pdrv) in ff_disk_status() argument
14 switch (pdrv) { in ff_disk_status()
36 DSTATUS ff_disk_initialize(BYTE pdrv) in ff_disk_initialize() argument
38 switch (pdrv) { in ff_disk_initialize()
59 DRESULT ff_disk_read(BYTE pdrv, BYTE *buff, DWORD sector, UINT count) in ff_disk_read() argument
61 switch (pdrv) { in ff_disk_read()
83 DRESULT ff_disk_write(BYTE pdrv, const BYTE *buff, DWORD sector, UINT count) in ff_disk_write() argument
85 switch (pdrv) { in ff_disk_write()
107 DRESULT ff_disk_ioctl(BYTE pdrv, BYTE cmd, void *buff) in ff_disk_ioctl() argument
109 switch (pdrv) { in ff_disk_ioctl()
A Dfatfs_vfs.c43 static int32_t get_disk_index(int32_t pdrv) in get_disk_index() argument
47 if (g_fsid[index].index == pdrv) { in get_disk_index()
59 BYTE pdrv; in translate_relative_path() local
66 for (pdrv = 0; pdrv < FF_VOLUMES; pdrv++) { in translate_relative_path()
67 prefix_len = strlen(g_fsid[pdrv].root); in translate_relative_path()
73 if (pdrv == FF_VOLUMES) { in translate_relative_path()
83 memcpy(relpath, g_fsid[pdrv].id, strlen(g_fsid[pdrv].id)); in translate_relative_path()
568 static int32_t fatfs_dev_register(int32_t pdrv) in fatfs_dev_register() argument
573 index = get_disk_index(pdrv); in fatfs_dev_register()
627 static int32_t fatfs_dev_unregister(int32_t pdrv) in fatfs_dev_unregister() argument
[all …]
A Dff.c942 disk_write(fs->pdrv, fs->win, fs->winsect, 1); in sync_fs()
3068 stat = disk_status(fs->pdrv);
3747 disk_read(fs->pdrv, fp->buf, sect, 1) != RES_OK) {
5345 BYTE fmt, sys, *buf, *pte, pdrv, part; local
5362 pdrv = LD2PD(vol); /* Physical drive */
5366 stat = disk_initialize(pdrv);
5430 disk_ioctl(pdrv, CTRL_TRIM, tbl);
5657 disk_ioctl(pdrv, CTRL_TRIM, tbl);
5791 BYTE pdrv, /* Physical drive number */ argument
5802 stat = disk_initialize(pdrv);
[all …]
/AliOS-Things-master/components/amp_adapter/platform/linux/peripheral/
A Daos_hal_uart.c66 _uart_drv_t *pdrv = &_uart_drv[0]; in aos_hal_uart_init() local
69 if (pdrv->status == _UART_STATUS_CLOSED) { in aos_hal_uart_init()
70 pdrv->status = _UART_STATUS_OPENED; in aos_hal_uart_init()
78 err_num = pthread_mutex_init(&pdrv->mutex, NULL); in aos_hal_uart_init()
91 _uart_drv_t *pdrv = &_uart_drv[uart->port]; in aos_hal_uart_finalize() local
93 pthread_mutex_destroy(&pdrv->mutex); in aos_hal_uart_finalize()
94 pdrv->status = _UART_STATUS_CLOSED; in aos_hal_uart_finalize()
102 _uart_drv_t *pdrv = &_uart_drv[uart->port]; in aos_hal_uart_send() local
104 pthread_mutex_lock(&pdrv->mutex); in aos_hal_uart_send()
110 pthread_mutex_unlock(&pdrv->mutex); in aos_hal_uart_send()
/AliOS-Things-master/components/fatfs/src/usb_disk/
A Dusb_disk.h62 extern DSTATUS USB_HostMsdInitializeDisk(BYTE pdrv);
71 extern DSTATUS USB_HostMsdGetDiskStatus(BYTE pdrv);
85 extern DRESULT USB_HostMsdReadDisk(BYTE pdrv, BYTE *buff, DWORD sector, UINT count);
99 extern DRESULT USB_HostMsdWriteDisk(BYTE pdrv, const BYTE *buff, DWORD sector, UINT count);
112 extern DRESULT USB_HostMsdIoctlDisk(BYTE pdrv, BYTE cmd, void *buff);
/AliOS-Things-master/components/fatfs/include/
A Ddiskio.h38 DSTATUS disk_initialize (BYTE pdrv);
39 DSTATUS disk_status (BYTE pdrv);
40 DRESULT disk_read (BYTE pdrv, BYTE* buff, DWORD sector, UINT count);
41 DRESULT disk_write (BYTE pdrv, const BYTE* buff, DWORD sector, UINT count);
42 DRESULT disk_ioctl (BYTE pdrv, BYTE cmd, void* buff);
A Dff.h88 BYTE pdrv; /* Physical drive number */ member
271 FRESULT f_fdisk (BYTE pdrv, const DWORD* szt, void* work); /* Divide a physical drive into some p…
/AliOS-Things-master/components/drivers/core/base/devicevfs/src/
A Ddevice_vfs_core.c32 struct u_platform_driver *pdrv; member
762 pdrv = (struct u_platform_driver *)malloc(sizeof(*pdrv)); in aos_dev_reg_with_flag()
776 memset(pdrv, 0, sizeof(*pdrv)); in aos_dev_reg_with_flag()
807 pdrv->pm = (void *)sdrv->pm; in aos_dev_reg_with_flag()
819 if (!pdrv->driver.name) { in aos_dev_reg_with_flag()
869 dev_n->pdrv = pdrv; in aos_dev_reg_with_flag()
919 if (pdrv) { in aos_dev_reg_with_flag()
920 if (pdrv->driver.name) in aos_dev_reg_with_flag()
923 free(pdrv); in aos_dev_reg_with_flag()
924 pdrv = NULL; in aos_dev_reg_with_flag()
[all …]
/AliOS-Things-master/components/py_engine/engine/extmod/
A Dvfs_fat_diskio.c56 bdev_t pdrv, /* Physical drive nmuber (0..) */ in disk_read() argument
61 fs_user_mount_t *vfs = disk_get_device(pdrv); in disk_read()
76 bdev_t pdrv, /* Physical drive nmuber (0..) */ in disk_write() argument
81 fs_user_mount_t *vfs = disk_get_device(pdrv); in disk_write()
102 bdev_t pdrv, /* Physical drive nmuber (0..) */ in disk_ioctl() argument
106 fs_user_mount_t *vfs = disk_get_device(pdrv); in disk_ioctl()
/AliOS-Things-master/components/drivers/core/base/platform/
A Du_platform_bus.c147 struct u_platform_driver *pdrv = to_u_platform_driver(drv); in u_platform_bus_match() local
149 …ddkc_dbg("dev:%p, drv:%p, pdev:%p, pdrv:%p, pdev->name:%p, drv->name:%p\r\n", dev, drv, pdev, pdrv in u_platform_bus_match()
/AliOS-Things-master/components/py_engine/engine/lib/oofatfs/
A Dff.c5395 BYTE fmt, sys, *buf, *pte, part; void *pdrv; local
5409 pdrv = fs->drv; /* Physical drive */
5413 disk_ioctl(pdrv, IOCTL_INIT, &stat);
5418 if (disk_ioctl(pdrv, GET_SECTOR_SIZE, &ss) != RES_OK) return FR_DISK_ERR;
5485 disk_ioctl(pdrv, CTRL_TRIM, tbl);
5712 disk_ioctl(pdrv, CTRL_TRIM, tbl);
5833 if (disk_ioctl(pdrv, CTRL_SYNC, 0) != RES_OK) LEAVE_MKFS(FR_DISK_ERR);
5846 void *pdrv, /* Physical drive number */ argument
5858 disk_ioctl(pdrv, IOCTL_INIT, &stat);
5861 if (disk_ioctl(pdrv, GET_SECTOR_COUNT, &sz_disk)) return FR_DISK_ERR;
[all …]
A Dff.h310 FRESULT f_fdisk (void *pdrv, const DWORD* szt, void* work); /* Divide a physical drive into…

Completed in 42 milliseconds