Searched refs:refcnt (Results 1 – 5 of 5) sorted by relevance
62 if ((disk != NULL) && (disk->refcnt == 0U)) { in disk_access_init()68 disk->refcnt++; in disk_access_init()71 } else if ((disk != NULL) && (disk->refcnt < UINT16_MAX)) { in disk_access_init()73 disk->refcnt++; in disk_access_init()130 if (disk->refcnt == 0U) { in disk_access_ioctl()133 disk->refcnt++; in disk_access_ioctl()135 } else if (disk->refcnt < UINT16_MAX) { in disk_access_ioctl()136 disk->refcnt++; in disk_access_ioctl()145 disk->refcnt = 0U; in disk_access_ioctl()148 } else if (disk->refcnt == 1U) { in disk_access_ioctl()[all …]
24 data->refcnt = 0; in regulator_common_data_init()88 data->refcnt++; in regulator_common_init()99 data->refcnt++; in regulator_common_init()126 data->refcnt++; in regulator_enable()128 if (data->refcnt == 1) { in regulator_enable()131 data->refcnt--; in regulator_enable()156 enabled = data->refcnt != 0; in regulator_is_enabled()186 if (data->refcnt > 0) { in regulator_disable()187 data->refcnt--; in regulator_disable()189 if (data->refcnt == 0) { in regulator_disable()[all …]
285 uint8_t refcnt; member353 if (disp->refcnt == UINT8_MAX) { in _irqstr_disp_get_unlocked()358 if (!disp->refcnt) { in _irqstr_disp_get_unlocked()368 disp->refcnt++; in _irqstr_disp_get_unlocked()371 disp->irq, disp->refcnt); in _irqstr_disp_get_unlocked()378 if (!disp->refcnt) { in _irqstr_disp_put_unlocked()383 disp->refcnt--; in _irqstr_disp_put_unlocked()385 if (!disp->refcnt) { in _irqstr_disp_put_unlocked()396 disp->irq, disp->refcnt); in _irqstr_disp_put_unlocked()
99 uint16_t refcnt; member
243 int refcnt; member