Lines Matching defs:endpoint
101 rtkit_send(struct fdtbus_mbox_channel *mc, uint32_t endpoint,
107 msg.data1 = endpoint;
112 rtkit_start(struct rtkit_state *state, uint32_t endpoint)
117 reply = __SHIFTIN(endpoint, RTKIT_MGMT_STARTEP_EP_MASK);
128 uint32_t endpoint;
171 for (endpoint = 1; endpoint < 32; endpoint++) {
172 if ((state->epmap & __BIT(endpoint)) == 0)
175 switch (endpoint) {
179 error = rtkit_start(state, endpoint);
262 uint32_t endpoint;
269 endpoint = msg.data1;
270 switch (endpoint) {
287 if (endpoint >= 32 && endpoint < 64 &&
288 state->callback[endpoint - 32]) {
289 callback = state->callback[endpoint - 32];
290 arg = state->arg[endpoint - 32];
295 printf("unhandled endpoint %d\n", msg.data1);
348 rtkit_start_endpoint(struct rtkit_state *state, uint32_t endpoint,
351 if (endpoint < 32 || endpoint >= 64)
354 if ((state->epmap & __BIT(endpoint)) == 0)
357 state->callback[endpoint - 32] = callback;
358 state->arg[endpoint - 32] = arg;
359 return rtkit_start(state, endpoint);
363 rtkit_send_endpoint(struct rtkit_state *state, uint32_t endpoint,
367 return rtkit_send(state->mc, endpoint, 0, data);