/AliOS-Things-master/components/drivers/peripheral/watchdog/src/ |
A D | wdg_dev.c | 166 int node_name_len = 0; in vfs_wdg_drv_init() local 171 node_name_len = strlen(WDG_DEV_NAME_FORMAT) + 1; in vfs_wdg_drv_init() 172 ddkc_dbg("node_name_len:%d\r\n", node_name_len); 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() 201 snprintf((*ppsdev)->node_name, node_name_len, WDG_DEV_NAME_FORMAT, i); in vfs_wdg_drv_init()
|
/AliOS-Things-master/components/drivers/peripheral/adc/src/ |
A D | adc_dev.c | 142 int node_name_len = 0; in vfs_adc_drv_init() local 147 node_name_len = strlen(ADC_DEV_NAME_FORMAT) + 1; 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() 176 snprintf((*ppsdev)->node_name, node_name_len, ADC_DEV_NAME_FORMAT, i); in vfs_adc_drv_init()
|
/AliOS-Things-master/components/drivers/peripheral/pwm/src/ |
A D | pwm_dev.c | 171 int node_name_len = 0; in vfs_pwm_drv_init() local 176 node_name_len = strlen(PWM_DEV_NAME_FORMAT) + 1; in vfs_pwm_drv_init() 177 ddkc_dbg("node_name_len:%d\r\n", node_name_len); 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() 206 snprintf((*ppsdev)->node_name, node_name_len, PWM_DEV_NAME_FORMAT, i); in vfs_pwm_drv_init()
|
/AliOS-Things-master/components/drivers/peripheral/timer/src/ |
A D | timer_dev.c | 205 int node_name_len = 0; in vfs_timer_drv_init() local 210 node_name_len = strlen(TIMER_DEV_NAME_FORMAT) + 1; in vfs_timer_drv_init() 211 ddkc_dbg("node_name_len:%d\r\n", node_name_len); 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() 240 snprintf((*ppsdev)->node_name, node_name_len, TIMER_DEV_NAME_FORMAT, i); in vfs_timer_drv_init()
|
/AliOS-Things-master/components/drivers/core/base/device/ |
A D | device.c | 82 int node_name_len = 0; in aos_device_bridge_reg() local 87 node_name_len = strlen(name) + 2 + 1; // 2 for %d, 1 for '\0' in aos_device_bridge_reg() 88 LOGI(TAG, "node_name_len:%d", node_name_len); 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() 99 snprintf((ppsdev)->node_name, node_name_len, "%s", name); in aos_device_bridge_reg()
|
/AliOS-Things-master/components/drivers/peripheral/flash/src/ |
A D | flash_dev.c | 252 int node_name_len = 0; in vfs_flash_drv_init() local 257 node_name_len = strlen(FLASH_DEV_NAME_FORMAT) + 1; 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() 277 snprintf((*ppsdev)->node_name, node_name_len, FLASH_DEV_NAME_FORMAT, i); in vfs_flash_drv_init()
|
/AliOS-Things-master/components/drivers/peripheral/wifi/src/ |
A D | vfs_wifi_drv.c | 279 int node_name_len = 0; in vfs_wifi_dev_register() local 284 node_name_len = strlen(WIFI_DEV_NAME_FORMAT) + 1; in vfs_wifi_dev_register() 285 ddkc_dbg("node_name_len:%d\r\n", node_name_len); in vfs_wifi_dev_register() 289 ppsdev = malloc(sizeof(struct subsys_dev) + node_name_len); in vfs_wifi_dev_register() 311 snprintf((ppsdev)->node_name, node_name_len, WIFI_DEV_NAME_FORMAT, id); in vfs_wifi_dev_register()
|
/AliOS-Things-master/components/drivers/peripheral/i2c/src/ |
A D | i2c_dev.c | 359 int node_name_len = 0; in vfs_i2c_drv_init() local 364 node_name_len = strlen(I2C_DEV_NAME_FORMAT) + 1; in vfs_i2c_drv_init() 365 ddkc_dbg("node_name_len:%d\r\n", node_name_len); 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() 394 snprintf((*ppsdev)->node_name, node_name_len, I2C_DEV_NAME_FORMAT, i); in vfs_i2c_drv_init()
|
/AliOS-Things-master/components/drivers/peripheral/spi/src/ |
A D | spi_dev.c | 516 int node_name_len = 0; in vfs_spi_drv_init() local 521 node_name_len = strlen(SPI_DEV_NAME_FORMAT) + 1; 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() 548 snprintf((*ppsdev)->node_name, node_name_len, SPI_DEV_NAME_FORMAT, i); in vfs_spi_drv_init()
|
/AliOS-Things-master/components/drivers/peripheral/uart/src/ |
A D | uart_dev.c | 560 int node_name_len = 0; in vfs_uart_drv_init() local 565 node_name_len = strlen(UART_DEV_NAME_FORMAT) + 1; 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() 593 snprintf((*ppsdev)->node_name, node_name_len, UART_DEV_NAME_FORMAT, i); in vfs_uart_drv_init()
|