Lines Matching refs:alarm_cbs
47 static struct alarm_t alarm_cbs[ALARM_CBS_NUM]; variable
49 static struct alarm_t *alarm_cbs; variable
85 if ((alarm_cbs = (osi_alarm_t *)osi_malloc(sizeof(osi_alarm_t) * ALARM_CBS_NUM)) == NULL) { in osi_alarm_init()
91 memset(alarm_cbs, 0x00, sizeof(osi_alarm_t) * ALARM_CBS_NUM); in osi_alarm_init()
109 if (alarm_cbs[i].alarm_hdl != NULL) { in osi_alarm_deinit()
110 alarm_free(&alarm_cbs[i]); in osi_alarm_deinit()
115 osi_free(alarm_cbs); in osi_alarm_deinit()
116 alarm_cbs = NULL; in osi_alarm_deinit()
130 if (alarm_cbs[i].alarm_hdl == NULL) { //available in alarm_cbs_lookfor_available()
131 OSI_TRACE_DEBUG("%s %d %p\n", __func__, i, &alarm_cbs[i]); in alarm_cbs_lookfor_available()
132 return &alarm_cbs[i]; in alarm_cbs_lookfor_available()