Home
last modified time | relevance | path

Searched refs:subsys_dev (Results 1 – 13 of 13) sorted by relevance

/AliOS-Things-master/components/drivers/core/base/include/devicevfs/
A Ddevicevfs.h49 struct subsys_dev { struct
100 int aos_dev_reg(struct subsys_dev *sdev, subsys_file_ops_t *sfops, struct subsys_drv* sdrv);
113 int aos_remote_dev_reg(struct subsys_dev *sdev, subsys_file_ops_t *sfops, struct subsys_drv* sdrv);
127 int aos_devs_reg(struct subsys_dev *sdev[], int size, subsys_file_ops_t *sfops, struct subsys_drv* …
136 int aos_dev_unreg(struct subsys_dev *sdev);
146 int aos_devs_unreg(struct subsys_dev *sdev[], int size);
/AliOS-Things-master/components/drivers/peripheral/adc/src/
A Dadc_dev.c135 struct subsys_dev *g_adc_device_array[PLATFORM_ADC_NUM];
143 struct subsys_dev **ppsdev = NULL; in vfs_adc_drv_init()
155 *ppsdev = malloc(sizeof(struct subsys_dev) + node_name_len); in vfs_adc_drv_init()
170 memset(*ppsdev, 0, sizeof(struct subsys_dev) + node_name_len); in vfs_adc_drv_init()
178 *ppsdev, (*ppsdev)->node_name, (*ppsdev) + 1, sizeof(struct subsys_dev)); in vfs_adc_drv_init()
/AliOS-Things-master/components/drivers/peripheral/watchdog/src/
A Dwdg_dev.c159 struct subsys_dev *g_wdg_device_array[PLATFORM_WDG_NUM];
167 struct subsys_dev **ppsdev = NULL; in vfs_wdg_drv_init()
180 *ppsdev = malloc(sizeof(struct subsys_dev) + node_name_len); in vfs_wdg_drv_init()
195 memset(*ppsdev, 0, sizeof(struct subsys_dev) + node_name_len); in vfs_wdg_drv_init()
203 *ppsdev, (*ppsdev)->node_name, (*ppsdev) + 1, sizeof(struct subsys_dev)); in vfs_wdg_drv_init()
/AliOS-Things-master/components/drivers/peripheral/pwm/src/
A Dpwm_dev.c164 struct subsys_dev *g_pwm_device_array[PLATFORM_PWM_NUM];
172 struct subsys_dev **ppsdev = NULL; in vfs_pwm_drv_init()
185 *ppsdev = malloc(sizeof(struct subsys_dev) + node_name_len); in vfs_pwm_drv_init()
200 memset(*ppsdev, 0, sizeof(struct subsys_dev) + node_name_len); in vfs_pwm_drv_init()
208 *ppsdev, (*ppsdev)->node_name, (char *)((*ppsdev) + 1), sizeof(struct subsys_dev)); in vfs_pwm_drv_init()
/AliOS-Things-master/components/drivers/peripheral/timer/src/
A Dtimer_dev.c198 struct subsys_dev *g_timer_device_array[PLATFORM_TIMER_NUM];
206 struct subsys_dev **ppsdev = NULL; in vfs_timer_drv_init()
219 *ppsdev = malloc(sizeof(struct subsys_dev) + node_name_len); in vfs_timer_drv_init()
234 memset(*ppsdev, 0, sizeof(struct subsys_dev) + node_name_len); in vfs_timer_drv_init()
242 *ppsdev, (*ppsdev)->node_name, (*ppsdev) + 1, sizeof(struct subsys_dev)); in vfs_timer_drv_init()
/AliOS-Things-master/components/drivers/core/base/device/
A Ddevice.c83 struct subsys_dev *ppsdev = NULL; in aos_device_bridge_reg()
90 ppsdev = malloc(sizeof(struct subsys_dev) + node_name_len); in aos_device_bridge_reg()
96 memset(ppsdev, 0x0, sizeof(struct subsys_dev)+node_name_len); in aos_device_bridge_reg()
101 ppsdev, (ppsdev) + 1, (ppsdev)->node_name, sizeof(struct subsys_dev)); in aos_device_bridge_reg()
178 struct subsys_dev *ppsdev;
/AliOS-Things-master/components/drivers/peripheral/flash/src/
A Dflash_dev.c243 struct subsys_dev *g_flash_device_array[PLATFORM_FLASH_NUM];
253 struct subsys_dev **ppsdev = NULL; in vfs_flash_drv_init()
267 *ppsdev = malloc(sizeof(struct subsys_dev) + node_name_len); in vfs_flash_drv_init()
274 memset(*ppsdev, 0, sizeof(struct subsys_dev) + node_name_len); in vfs_flash_drv_init()
/AliOS-Things-master/components/drivers/peripheral/wifi/src/
A Dvfs_wifi_drv.c280 struct subsys_dev *ppsdev = NULL; in vfs_wifi_dev_register()
289 ppsdev = malloc(sizeof(struct subsys_dev) + node_name_len); in vfs_wifi_dev_register()
305 memset(ppsdev, 0x0, sizeof(struct subsys_dev)); in vfs_wifi_dev_register()
313 ppsdev, (ppsdev)->node_name, (ppsdev) + 1, sizeof(struct subsys_dev)); in vfs_wifi_dev_register()
/AliOS-Things-master/components/drivers/peripheral/i2c/src/
A Di2c_dev.c352 struct subsys_dev *g_i2c_device_array[PLATFORM_I2C_NUM];
360 struct subsys_dev **ppsdev = NULL; in vfs_i2c_drv_init()
373 *ppsdev = malloc(sizeof(struct subsys_dev) + node_name_len); in vfs_i2c_drv_init()
388 memset(*ppsdev, 0, sizeof(struct subsys_dev) + node_name_len); in vfs_i2c_drv_init()
396 *ppsdev, (*ppsdev)->node_name, (*ppsdev) + 1, sizeof(struct subsys_dev)); in vfs_i2c_drv_init()
/AliOS-Things-master/components/drivers/peripheral/spi/src/
A Dspi_dev.c495 struct subsys_dev *g_spi_device_array[PLATFORM_SPI_NUM];
517 struct subsys_dev **ppsdev = NULL; in vfs_spi_drv_init()
530 *ppsdev = malloc(sizeof(struct subsys_dev) + node_name_len); in vfs_spi_drv_init()
545 memset(*ppsdev, 0, sizeof(struct subsys_dev) + node_name_len); in vfs_spi_drv_init()
550 *ppsdev, (*ppsdev)->node_name, (*ppsdev) + 1, sizeof(struct subsys_dev)); in vfs_spi_drv_init()
/AliOS-Things-master/components/drivers/peripheral/uart/src/
A Duart_dev.c541 struct subsys_dev *g_uart_device_array[PLATFORM_UART_NUM];
561 struct subsys_dev **ppsdev = NULL; in vfs_uart_drv_init()
575 *ppsdev = malloc(sizeof(struct subsys_dev) + node_name_len); in vfs_uart_drv_init()
590 memset(*ppsdev, 0, sizeof(struct subsys_dev) + node_name_len); in vfs_uart_drv_init()
595 *ppsdev, (*ppsdev)->node_name, (*ppsdev) + 1, sizeof(struct subsys_dev)); in vfs_uart_drv_init()
/AliOS-Things-master/components/drivers/core/base/devicevfs/src/
A Ddevice_vfs_core.c30 struct subsys_dev dev;
646 struct subsys_dev *sdev = NULL; in _device_vfs_open()
717 int aos_dev_reg_with_flag (struct subsys_dev *sdev, subsys_file_ops_t *sfops, struct subsys_drv* sd… in aos_dev_reg_with_flag()
970 int aos_devs_reg(struct subsys_dev *sdev[], int size, subsys_file_ops_t *sfops, struct subsys_drv* … in aos_devs_reg()
1002 int aos_dev_unreg(struct subsys_dev *sdev) { in aos_dev_unreg()
1010 struct subsys_dev *d = NULL; in aos_dev_unreg()
1080 int aos_dev_reg(struct subsys_dev *sdev, subsys_file_ops_t *sfops, struct subsys_drv* sdrv) { in aos_dev_reg()
1095 int aos_remote_dev_reg(struct subsys_dev *sdev, subsys_file_ops_t *sfops, struct subsys_drv* sdrv) { in aos_remote_dev_reg()
1107 int aos_devs_unreg(struct subsys_dev *sdev[], int size) { in aos_devs_unreg()
/AliOS-Things-master/components/drivers/peripheral/gpio/src/
A Dgpio_dev.c280 struct subsys_dev g_gpio_device = {

Completed in 16 milliseconds