Lines Matching refs:buf
69 struct net_buf *buf, int err) in sfunc_request_handler() argument
75 bi = (struct udc_buf_info *)net_buf_user_data(buf); in sfunc_request_handler()
77 (void *)c_data, bi->ep, buf->len, err); in sfunc_request_handler()
86 net_buf_reset(buf); in sfunc_request_handler()
91 if (usbd_ep_enqueue(c_data, buf)) { in sfunc_request_handler()
93 usbd_ep_buf_free(uds_ctx, buf); in sfunc_request_handler()
97 usbd_ep_buf_free(uds_ctx, buf); in sfunc_request_handler()
119 struct net_buf *buf = NULL; in sfunc_buf_alloc() local
129 buf = net_buf_alloc_with_data(&sfunc_pool, sfunc_buf, size, K_NO_WAIT); in sfunc_buf_alloc()
130 net_buf_reset(buf); in sfunc_buf_alloc()
131 if (!buf) { in sfunc_buf_alloc()
135 bi = udc_get_buf_info(buf); in sfunc_buf_alloc()
138 return buf; in sfunc_buf_alloc()
145 struct net_buf *buf; in sfunc_enable() local
150 buf = sfunc_buf_alloc(c_data, sfunc_get_bulk_out(c_data)); in sfunc_enable()
151 if (buf == NULL) { in sfunc_enable()
156 if (usbd_ep_enqueue(c_data, buf)) { in sfunc_enable()
158 usbd_ep_buf_free(uds_ctx, buf); in sfunc_enable()