Lines Matching refs:HOST_CHECK
34 #define HOST_CHECK(cond, ret_val) ({ \ macro
362 HOST_CHECK(config != NULL, ESP_ERR_INVALID_ARG); in usb_host_install()
547 HOST_CHECK(info_ret != NULL, ESP_ERR_INVALID_ARG); in usb_host_lib_info()
615 HOST_CHECK(p_host_lib_obj, ESP_ERR_INVALID_STATE); in usb_host_client_register()
616 HOST_CHECK(client_config != NULL && client_hdl_ret != NULL, ESP_ERR_INVALID_ARG); in usb_host_client_register()
617 HOST_CHECK(client_config->max_num_event_msg > 0, ESP_ERR_INVALID_ARG); in usb_host_client_register()
620 HOST_CHECK(client_config->async.client_event_callback != NULL, ESP_ERR_INVALID_ARG); in usb_host_client_register()
668 HOST_CHECK(client_hdl != NULL, ESP_ERR_INVALID_ARG); in usb_host_client_deregister()
718 HOST_CHECK(client_hdl != NULL, ESP_ERR_INVALID_ARG); in usb_host_client_handle_events()
782 HOST_CHECK(client_hdl != NULL, ESP_ERR_INVALID_ARG); in usb_host_client_unblock()
796 HOST_CHECK(dev_addr > 0 && client_hdl != NULL && dev_hdl_ret != NULL, ESP_ERR_INVALID_ARG); in usb_host_device_open()
829 HOST_CHECK(dev_hdl != NULL && client_hdl != NULL, ESP_ERR_INVALID_ARG); in usb_host_device_close()
884 HOST_CHECK(dev_addr_list != NULL && num_dev_ret != NULL, ESP_ERR_INVALID_ARG); in usb_host_device_addr_list_fill()
894 HOST_CHECK(dev_hdl != NULL && dev_info != NULL, ESP_ERR_INVALID_ARG); in usb_host_device_info()
904 HOST_CHECK(dev_hdl != NULL && device_desc != NULL, ESP_ERR_INVALID_ARG); in usb_host_get_device_descriptor()
910 HOST_CHECK(dev_hdl != NULL && config_desc != NULL, ESP_ERR_INVALID_ARG); in usb_host_get_active_config_descriptor()
1099 HOST_CHECK(client_hdl != NULL && dev_hdl != NULL, ESP_ERR_INVALID_ARG); in usb_host_interface_claim()
1136 HOST_CHECK(client_hdl != NULL && dev_hdl != NULL, ESP_ERR_INVALID_ARG); in usb_host_interface_release()
1284 HOST_CHECK(transfer != NULL, ESP_ERR_INVALID_ARG); in usb_host_transfer_submit()
1286 HOST_CHECK(transfer->device_handle != NULL, ESP_ERR_INVALID_ARG); //Target device must be set in usb_host_transfer_submit()
1287 …HOST_CHECK((transfer->bEndpointAddress & USB_B_ENDPOINT_ADDRESS_EP_NUM_MASK) != 0, ESP_ERR_INVALID… in usb_host_transfer_submit()
1296 HOST_CHECK(transfer_check(transfer, in usb_host_transfer_submit()
1325 HOST_CHECK(client_hdl != NULL && transfer != NULL, ESP_ERR_INVALID_ARG); in usb_host_transfer_submit_control()
1327 HOST_CHECK(transfer->device_handle != NULL, ESP_ERR_INVALID_ARG); //Target device must be set in usb_host_transfer_submit_control()
1332 …HOST_CHECK(transfer_check(transfer, USB_TRANSFER_TYPE_CTRL, dev_info.bMaxPacketSize0, xfer_is_in),… in usb_host_transfer_submit_control()
1334 …HOST_CHECK((transfer->bEndpointAddress & USB_B_ENDPOINT_ADDRESS_EP_NUM_MASK) == 0, ESP_ERR_INVALID… in usb_host_transfer_submit_control()