/AliOS-Things-master/components/drivers/core/base/include/devicevfs/ |
A D | devicevfs.h | 49 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 D | adc_dev.c | 135 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 D | wdg_dev.c | 159 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 D | pwm_dev.c | 164 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 D | timer_dev.c | 198 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 D | device.c | 83 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 D | flash_dev.c | 243 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 D | vfs_wifi_drv.c | 280 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 D | i2c_dev.c | 352 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 D | spi_dev.c | 495 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 D | uart_dev.c | 541 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 D | device_vfs_core.c | 30 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 D | gpio_dev.c | 280 struct subsys_dev g_gpio_device = {
|