Lines Matching full:im

92 	const struct icl_module *im;  in sysctl_kern_icl_offloads()  local
100 TAILQ_FOREACH(im, &sc->sc_modules, im_next) { in sysctl_kern_icl_offloads()
101 if (im->im_iser != iser) in sysctl_kern_icl_offloads()
103 if (im != TAILQ_FIRST(&sc->sc_modules)) in sysctl_kern_icl_offloads()
105 sbuf_printf(&sb, "%s", im->im_name); in sysctl_kern_icl_offloads()
119 struct icl_module *im, *im_max; in icl_find() local
129 TAILQ_FOREACH(im, &sc->sc_modules, im_next) { in icl_find()
130 if (im->im_iser != iser) in icl_find()
133 im->im_priority > im_max->im_priority) in icl_find()
134 im_max = im; in icl_find()
143 TAILQ_FOREACH(im, &sc->sc_modules, im_next) { in icl_find()
144 if (strcasecmp(im->im_name, name) != 0) in icl_find()
147 if (!im->im_iser && iser && !quiet) { in icl_find()
151 if (im->im_iser && !iser && !quiet) { in icl_find()
156 return (im); in icl_find()
168 struct icl_module *im; in icl_new_conn() local
172 im = icl_find(offload, iser, false); in icl_new_conn()
173 if (im == NULL) { in icl_new_conn()
178 ic = im->im_new_conn(name, lock); in icl_new_conn()
188 struct icl_module *im; in icl_limits() local
193 im = icl_find(offload, iser, false); in icl_limits()
194 if (im == NULL) { in icl_limits()
199 error = im->im_limits(idl, socket); in icl_limits()
237 struct icl_module *im; in icl_register() local
240 im = icl_find(offload, iser, true); in icl_register()
241 if (im != NULL) { in icl_register()
247 im = malloc(sizeof(*im), M_ICL, M_ZERO | M_WAITOK); in icl_register()
248 im->im_name = strdup(offload, M_ICL); in icl_register()
249 im->im_iser = iser; in icl_register()
250 im->im_priority = priority; in icl_register()
251 im->im_limits = limits; in icl_register()
252 im->im_new_conn = new_conn; in icl_register()
254 TAILQ_INSERT_HEAD(&sc->sc_modules, im, im_next); in icl_register()
264 struct icl_module *im; in icl_unregister() local
267 im = icl_find(offload, rdma, true); in icl_unregister()
268 if (im == NULL) { in icl_unregister()
274 TAILQ_REMOVE(&sc->sc_modules, im, im_next); in icl_unregister()
277 free(im->im_name, M_ICL); in icl_unregister()
278 free(im, M_ICL); in icl_unregister()