Home
last modified time | relevance | path

Searched refs:ref_count (Results 1 – 3 of 3) sorted by relevance

/hal_espressif-3.6.0/components/usb/
Dusb_phy.c41 …uint32_t ref_count; /**< reference count used to protect p_phy_ctrl_obj … member
193 p_phy_ctrl_obj->ref_count = 0; in usb_phy_install()
225 p_phy_ctrl_obj->ref_count++; in usb_new_phy()
274 if (p_phy_ctrl_obj->ref_count == 0) { in usb_new_phy()
285 if (p_phy_ctrl_obj->ref_count == 0) { in phy_uninstall()
300 p_phy_ctrl_obj->ref_count--; in usb_del_phy()
Dusbh.c57 uint32_t ref_count; member
551 dev_obj->dynamic.ref_count++; in usbh_dev_open()
569 dev_obj->dynamic.ref_count--; in usbh_dev_close()
571 if (dev_obj->dynamic.ref_count == 0) { in usbh_dev_close()
617 if (dev_obj_cur->dynamic.ref_count == 0 && !dev_obj_cur->dynamic.flags.is_gone) { in usbh_dev_mark_all_free()
930 if (dev_obj->dynamic.ref_count == 0) { in usbh_hub_pass_event()
945 …assert(dev_obj->dynamic.ref_count == 0); //At this stage, the device should have been closed by… in usbh_hub_pass_event()
/hal_espressif-3.6.0/components/esp_eth/src/
Desp_eth.c47 atomic_int ref_count; member
190 atomic_init(&eth_driver->ref_count, 1); in esp_eth_driver_install()
247 … ESP_GOTO_ON_FALSE(atomic_compare_exchange_strong(&eth_driver->ref_count, &expected_ref_count, 0), in esp_eth_driver_uninstall()
415 atomic_fetch_add(&eth_driver->ref_count, 1); in esp_eth_increase_reference()
425 atomic_fetch_sub(&eth_driver->ref_count, 1); in esp_eth_decrease_reference()