Lines Matching refs:handle
698 int IRAM_ATTR esp_intr_set_in_iram(struct intr_handle_data_t *handle, bool is_in_iram) in esp_intr_set_in_iram() argument
700 if (!handle) { in esp_intr_set_in_iram()
703 struct vector_desc_t *vd = handle->vector_desc; in esp_intr_set_in_iram()
722 int esp_intr_free(struct intr_handle_data_t *handle) in esp_intr_free() argument
726 if (!handle) { in esp_intr_free()
731 esp_intr_disable(handle); in esp_intr_free()
732 if (handle->vector_desc->flags & VECDESC_FL_SHARED) { in esp_intr_free()
734 struct shared_vector_desc_t *svd = handle->vector_desc->shared_vec_info; in esp_intr_free()
739 if (svd == handle->shared_vector_desc) { in esp_intr_free()
744 handle->vector_desc->shared_vec_info = svd->next; in esp_intr_free()
753 if (handle->vector_desc->shared_vec_info == NULL) { in esp_intr_free()
761 if ((handle->vector_desc->flags & VECDESC_FL_NONSHARED) || free_shared_vector) { in esp_intr_free()
764 set_interrupt_handler(handle->vector_desc->intno, in esp_intr_free()
766 (void *)((int)handle->vector_desc->intno)); in esp_intr_free()
772 handle->vector_desc->flags &= !(VECDESC_FL_NONSHARED | VECDESC_FL_RESERVED); in esp_intr_free()
774 non_iram_int_mask[handle->vector_desc->cpu] &= ~(1 << (handle->vector_desc->intno)); in esp_intr_free()
777 k_free(handle); in esp_intr_free()
781 int esp_intr_get_intno(struct intr_handle_data_t *handle) in esp_intr_get_intno() argument
783 return handle->vector_desc->intno; in esp_intr_get_intno()
786 int esp_intr_get_cpu(struct intr_handle_data_t *handle) in esp_intr_get_cpu() argument
788 return handle->vector_desc->cpu; in esp_intr_get_cpu()
805 int IRAM_ATTR esp_intr_enable(struct intr_handle_data_t *handle) in esp_intr_enable() argument
807 if (!handle) { in esp_intr_enable()
813 if (handle->shared_vector_desc) { in esp_intr_enable()
814 handle->shared_vector_desc->disabled = 0; in esp_intr_enable()
815 source = handle->shared_vector_desc->source; in esp_intr_enable()
817 source = handle->vector_desc->source; in esp_intr_enable()
821 intr_matrix_set(handle->vector_desc->cpu, source, handle->vector_desc->intno); in esp_intr_enable()
824 if (handle->vector_desc->cpu != esp_core_id()) { in esp_intr_enable()
827 irq_enable(handle->vector_desc->intno); in esp_intr_enable()
833 int IRAM_ATTR esp_intr_disable(struct intr_handle_data_t *handle) in esp_intr_disable() argument
835 if (!handle) { in esp_intr_disable()
842 if (handle->shared_vector_desc) { in esp_intr_disable()
843 handle->shared_vector_desc->disabled = 1; in esp_intr_disable()
844 source = handle->shared_vector_desc->source; in esp_intr_disable()
846 struct shared_vector_desc_t *svd = handle->vector_desc->shared_vec_info; in esp_intr_disable()
857 source = handle->vector_desc->source; in esp_intr_disable()
863 intr_matrix_set(handle->vector_desc->cpu, source, INT_MUX_DISABLED_INTNO); in esp_intr_disable()
867 if (handle->vector_desc->cpu != esp_core_id()) { in esp_intr_disable()
871 irq_disable(handle->vector_desc->intno); in esp_intr_disable()