Home
last modified time | relevance | path

Searched refs:msc_obj (Results 1 – 3 of 3) sorted by relevance

/hal_espressif-3.6.0/components/usb/test/usb_host/
Dmsc_client_async_dconn.c63 msc_client_obj_t *msc_obj = (msc_client_obj_t *)transfer->context; in msc_reset_cbw_transfer_cb() local
67 switch (msc_obj->cur_stage) { in msc_reset_cbw_transfer_cb()
69 msc_obj->next_stage = TEST_STAGE_MSC_CBW; in msc_reset_cbw_transfer_cb()
72 msc_obj->next_stage = TEST_STAGE_MSC_DATA_DCONN; in msc_reset_cbw_transfer_cb()
89 msc_client_obj_t *msc_obj = (msc_client_obj_t *)transfer->context; in msc_data_transfer_cb() local
90 msc_obj->event_count++; in msc_data_transfer_cb()
92 if (msc_obj->event_count >= msc_obj->num_data_transfers + 1) { in msc_data_transfer_cb()
93 msc_obj->next_stage = TEST_STAGE_DEV_CLOSE; in msc_data_transfer_cb()
99 msc_client_obj_t *msc_obj = (msc_client_obj_t *)arg; in msc_client_event_cb() local
102 TEST_ASSERT_EQUAL(TEST_STAGE_WAIT_CONN, msc_obj->cur_stage); in msc_client_event_cb()
[all …]
Dmsc_client_async_seq.c61 msc_client_obj_t *msc_obj = (msc_client_obj_t *)transfer->context; in msc_transfer_cb() local
62 switch (msc_obj->cur_stage) { in msc_transfer_cb()
67 msc_obj->next_stage = TEST_STAGE_MSC_CBW; in msc_transfer_cb()
74 msc_obj->next_stage = TEST_STAGE_MSC_DATA; in msc_transfer_cb()
80 …TEST_ASSERT_EQUAL(MOCK_MSC_SCSI_SECTOR_SIZE * msc_obj->test_param.num_sectors_per_xfer, transfer->… in msc_transfer_cb()
81 msc_obj->next_stage = TEST_STAGE_MSC_CSW; in msc_transfer_cb()
87 …e, mock_msc_scsi_check_csw((mock_msc_bulk_csw_t *)transfer->data_buffer, msc_obj->test_param.msc_s… in msc_transfer_cb()
88 msc_obj->num_sectors_read += msc_obj->test_param.num_sectors_per_xfer; in msc_transfer_cb()
89 if (msc_obj->num_sectors_read < msc_obj->test_param.num_sectors_to_read) { in msc_transfer_cb()
90 msc_obj->next_stage = TEST_STAGE_MSC_CBW; in msc_transfer_cb()
[all …]
Dmsc_client_async_enum.c56 msc_client_obj_t *msc_obj = (msc_client_obj_t *)arg; in msc_client_event_cb() local
59 TEST_ASSERT_EQUAL(TEST_STAGE_WAIT_CONN, msc_obj->cur_stage); in msc_client_event_cb()
60 msc_obj->next_stage = TEST_STAGE_DEV_OPEN; in msc_client_event_cb()
61 msc_obj->dev_addr_to_open = event_msg->new_dev.address; in msc_client_event_cb()
72 msc_client_obj_t msc_obj; in msc_client_async_enum_task() local
73 msc_obj.cur_stage = TEST_STAGE_WAIT_CONN; in msc_client_async_enum_task()
74 msc_obj.next_stage = TEST_STAGE_WAIT_CONN; in msc_client_async_enum_task()
75 msc_obj.client_hdl = NULL; in msc_client_async_enum_task()
76 msc_obj.dev_addr_to_open = 0; in msc_client_async_enum_task()
77 msc_obj.dev_hdl = NULL; in msc_client_async_enum_task()
[all …]