Lines Matching refs:hdl
74 struct itr_handler *hdl = calloc(1, sizeof(*hdl)); in itr_alloc_add_type_prio() local
76 if (hdl) { in itr_alloc_add_type_prio()
77 hdl->it = it; in itr_alloc_add_type_prio()
78 hdl->handler = handler; in itr_alloc_add_type_prio()
79 hdl->flags = flags; in itr_alloc_add_type_prio()
80 hdl->data = data; in itr_alloc_add_type_prio()
81 itr_add_type_prio(hdl, type, prio); in itr_alloc_add_type_prio()
84 return hdl; in itr_alloc_add_type_prio()
87 void itr_free(struct itr_handler *hdl) in itr_free() argument
89 if (!hdl) in itr_free()
92 itr_chip->ops->disable(itr_chip, hdl->it); in itr_free()
94 SLIST_REMOVE(&handlers, hdl, itr_handler, link); in itr_free()
95 free(hdl); in itr_free()
100 struct itr_handler __maybe_unused *hdl = NULL; in itr_add_type_prio() local
102 SLIST_FOREACH(hdl, &handlers, link) in itr_add_type_prio()
103 if (hdl->it == h->it) in itr_add_type_prio()
104 assert((hdl->flags & ITRF_SHARED) && in itr_add_type_prio()