Lines Matching defs:endpoint
145 rtkit_send(struct rtkit_state *state, uint32_t endpoint,
151 msg.data1 = endpoint;
219 rtkit_start(struct rtkit_state *state, uint32_t endpoint)
223 reply = ((uint64_t)endpoint << RTKIT_MGMT_STARTEP_EP_SHIFT);
233 uint32_t endpoint;
279 for (endpoint = 1; endpoint < 32; endpoint++) {
280 if ((state->epmap & (1ULL << endpoint)) == 0)
283 switch (endpoint) {
289 error = rtkit_start(state, endpoint);
296 printf("%s: skipping endpoint %d\n",
297 __func__, endpoint);
762 uint32_t endpoint;
774 endpoint = msg.data1;
775 switch (endpoint) {
802 if (endpoint >= 32 && endpoint < 64 &&
803 state->callback[endpoint - 32]) {
804 callback = state->callback[endpoint - 32];
805 arg = state->arg[endpoint - 32];
810 printf("%s: unhandled endpoint %d\n", __func__, msg.data1);
980 rtkit_start_endpoint(struct rtkit_state *state, uint32_t endpoint,
983 if (endpoint < 32 || endpoint >= 64)
986 if ((state->epmap & (1ULL << endpoint)) == 0)
989 state->callback[endpoint - 32] = callback;
990 state->arg[endpoint - 32] = arg;
991 return rtkit_start(state, endpoint);
995 rtkit_send_endpoint(struct rtkit_state *state, uint32_t endpoint,
998 return rtkit_send(state, endpoint, 0, data);