Lines Matching defs:sc_endpoints
206 struct umidi_endpoint *sc_endpoints;
741 err = alloc_pipe(&sc->sc_endpoints[i]);
744 free_pipe(&sc->sc_endpoints[i]);
745 kmem_free(sc->sc_endpoints, sc->sc_endpoints_len);
746 sc->sc_endpoints = sc->sc_out_ep = sc->sc_in_ep = NULL;
758 if (sc->sc_endpoints == NULL) {
765 free_pipe(&sc->sc_endpoints[i]);
766 kmem_free(sc->sc_endpoints, sc->sc_endpoints_len);
767 sc->sc_endpoints = sc->sc_out_ep = sc->sc_in_ep = NULL;
788 sc->sc_endpoints = kmem_zalloc(sc->sc_endpoints_len, KM_SLEEP);
789 sc->sc_out_ep = sc->sc_out_num_endpoints ? sc->sc_endpoints : NULL;
792 sc->sc_endpoints+sc->sc_out_num_endpoints : NULL;
864 kmem_free(sc->sc_endpoints, UMIDI_ENDPOINT_SIZE(sc));
865 sc->sc_endpoints = NULL;
962 sc->sc_endpoints = kmem_zalloc(sc->sc_endpoints_len, KM_SLEEP);
964 sc->sc_out_ep = sc->sc_endpoints;
973 sc->sc_in_ep = sc->sc_endpoints + sc->sc_out_num_endpoints;
1000 sc->sc_endpoints = p = kmem_zalloc(sc->sc_endpoints_len, KM_SLEEP);
1040 p = sc->sc_endpoints;
1062 sc->sc_out_ep = sc->sc_out_num_endpoints ? sc->sc_endpoints : NULL;
1065 sc->sc_endpoints+sc->sc_out_num_endpoints : NULL;