Lines Matching full:chat

88 	UsbChat *chat;  member
279 if (!fixture->chat || !fixture->chat->submit) in handle_ioctl_cb()
282 buflen = fixture->chat->buffer_length; in handle_ioctl_cb()
283 if (fixture->chat->type == USBDEVFS_URB_TYPE_CONTROL) in handle_ioctl_cb()
290 if (fixture->chat->type == urb->type && in handle_ioctl_cb()
291 fixture->chat->endpoint == urb->endpoint && in handle_ioctl_cb()
292 fixture->chat->buffer_length == urb->buffer_length && in handle_ioctl_cb()
293 …(fixture->chat->buffer == NULL || memcmp (fixture->chat->buffer, urb_buffer->data, buflen) == 0)) { in handle_ioctl_cb()
296 if (fixture->chat->reaps) in handle_ioctl_cb()
297 fixture->chat->reaps->submit_urb = urb_data; in handle_ioctl_cb()
299 if (fixture->chat->status) in handle_ioctl_cb()
300 umockdev_ioctl_client_complete(client, -1, -fixture->chat->status); in handle_ioctl_cb()
304 if (fixture->chat->next) in handle_ioctl_cb()
305 fixture->chat = fixture->chat->next; in handle_ioctl_cb()
307 fixture->chat += 1; in handle_ioctl_cb()
311 /* chat message didn't match, don't accept it */ in handle_ioctl_cb()
319 fixture->chat->type, fixture->chat->endpoint, in handle_ioctl_cb()
320 fixture->chat->actual_length, fixture->chat->buffer_length); in handle_ioctl_cb()
321 if (fixture->chat->buffer) in handle_ioctl_cb()
322 dump_buffer(fixture->chat->buffer, buflen); in handle_ioctl_cb()
345 if (fixture->chat && fixture->chat->reap) { in handle_ioctl_cb()
346 GList *l = g_list_find(fixture->flying_urbs, fixture->chat->submit_urb); in handle_ioctl_cb()
351 urb_data = fixture->chat->submit_urb; in handle_ioctl_cb()
353 urb->actual_length = fixture->chat->actual_length; in handle_ioctl_cb()
356 if (fixture->chat->buffer) in handle_ioctl_cb()
357 memcpy(urb->buffer, fixture->chat->buffer, fixture->chat->actual_length); in handle_ioctl_cb()
358 urb->status = fixture->chat->status; in handle_ioctl_cb()
362 if (fixture->chat->next) in handle_ioctl_cb()
363 fixture->chat = fixture->chat->next; in handle_ioctl_cb()
365 fixture->chat += 1; in handle_ioctl_cb()
590 UsbChat chat[] = { in test_close_flying() local
603 fixture->chat = chat; in test_close_flying()
613 (unsigned char*) chat[0].buffer, in test_close_flying()
614 chat[0].buffer_length, in test_close_flying()
637 UsbChat chat[] = { in test_close_cancelled() local
650 fixture->chat = chat; in test_close_cancelled()
660 (unsigned char*) chat[0].buffer, in test_close_cancelled()
661 chat[0].buffer_length, in test_close_cancelled()
683 UsbChat chat[] = { in test_ctx_destroy() local
696 fixture->chat = chat; in test_ctx_destroy()
706 (unsigned char*) chat[0].buffer, in test_ctx_destroy()
707 chat[0].buffer_length, in test_ctx_destroy()
735 UsbChat chat[] = { in test_get_string_descriptor() local
738 .reaps = &chat[1], in test_get_string_descriptor()
749 .reaps = &chat[3], in test_get_string_descriptor()
760 .reaps = &chat[5], in test_get_string_descriptor()
778 fixture->chat = chat; in test_get_string_descriptor()
783 /* The chat allows us to fetch the descriptor */ in test_get_string_descriptor()
809 UsbChat chat[] = { in test_timeout() local
825 fixture->chat = chat; in test_timeout()
834 (unsigned char*) chat[0].buffer, in test_timeout()
835 chat[0].buffer_length, in test_timeout()
919 c = fixture->chat = g_new0(UsbChat, G_N_ELEMENTS(data.transfers) * 2 + 1); in test_threaded_submit()