Searched refs:s_platform (Results 1 – 3 of 3) sorted by relevance
41 static dedic_gpio_platform_t *s_platform[SOC_CPU_CORES_NUM]; variable73 if (!s_platform[core_id]) { in dedic_gpio_build_platform()76 if (!s_platform[core_id]) { in dedic_gpio_build_platform()77 s_platform[core_id] = calloc(1, sizeof(dedic_gpio_platform_t)); in dedic_gpio_build_platform()78 if (s_platform[core_id]) { in dedic_gpio_build_platform()80 s_platform[core_id]->spinlock = (portMUX_TYPE)portMUX_INITIALIZER_UNLOCKED; in dedic_gpio_build_platform()82 …s_platform[core_id]->out_occupied_mask = UINT32_MAX & ~((1 << SOC_DEDIC_GPIO_OUT_CHANNELS_NUM) - 1… in dedic_gpio_build_platform()83 … s_platform[core_id]->in_occupied_mask = UINT32_MAX & ~((1 << SOC_DEDIC_GPIO_IN_CHANNELS_NUM) - 1); in dedic_gpio_build_platform()85 s_platform[core_id]->dev = &DEDIC_GPIO; in dedic_gpio_build_platform()94 …ESP_GOTO_ON_FALSE(s_platform[core_id], ESP_ERR_NO_MEM, err, TAG, "no mem for s_platform[%d]", core… in dedic_gpio_build_platform()[all …]
64 static etm_platform_t s_platform; variable72 _lock_acquire(&s_platform.mutex); in etm_acquire_group_handle()73 if (!s_platform.groups[group_id]) { in etm_acquire_group_handle()77 s_platform.groups[group_id] = group; // register to platform in etm_acquire_group_handle()89 group = s_platform.groups[group_id]; in etm_acquire_group_handle()93 s_platform.group_ref_counts[group_id]++; in etm_acquire_group_handle()95 _lock_release(&s_platform.mutex); in etm_acquire_group_handle()109 _lock_acquire(&s_platform.mutex); in etm_release_group_handle()110 s_platform.group_ref_counts[group_id]--; in etm_release_group_handle()111 if (s_platform.group_ref_counts[group_id] == 0) { in etm_release_group_handle()[all …]
61 static gdma_platform_t s_platform = { variable545 portENTER_CRITICAL(&s_platform.spinlock); in gdma_release_group_handle()546 s_platform.group_ref_counts[group_id]--; in gdma_release_group_handle()547 if (s_platform.group_ref_counts[group_id] == 0) { in gdma_release_group_handle()548 assert(s_platform.groups[group_id]); in gdma_release_group_handle()550 s_platform.groups[group_id] = NULL; // deregister from platfrom in gdma_release_group_handle()554 portEXIT_CRITICAL(&s_platform.spinlock); in gdma_release_group_handle()570 portENTER_CRITICAL(&s_platform.spinlock); in gdma_acquire_group_handle()571 if (!s_platform.groups[group_id]) { in gdma_acquire_group_handle()574 s_platform.groups[group_id] = group; // register to platform in gdma_acquire_group_handle()[all …]