Lines Matching refs:status

54 	uint8	status;
93 PTRACE(udi, "CSW:{'%s'; tag:%d; residue:%d; status:0x%02x}\n",
94 buf, csw->tag, csw->data_residue, csw->status);
109 status_t status = B_OK;
113 if(B_OK != (status = (*udi->usb_m->send_request)(udi->device,
118 if(status == B_DEV_STALLED){
123 "Assuming single LUN available.\n", udi->dev_num, status);
126 status = B_OK;
129 return status;
137 \return: status of operation.
145 status_t status = B_OK;
147 status = (*udi->usb_m->queue_bulk)(pipe, buffer, len, bulk_callback, udi);
148 if(status != B_OK){
149 PTRACE_ALWAYS(udi, "queue_bulk:failed:%08x\n", status);
151 status = acquire_sem_etc(udi->trans_sem, 1, B_RELATIVE_TIMEOUT, udi->trans_timeout/*LOCK_TIMEOUT*/);
152 if(status != B_OK){
153 PTRACE_ALWAYS(udi, "queue_bulk:acquire_sem_etc failed:%08x\n", status);
157 return status;
163 \param transfer_len: data transferred during operation, which is checked for status
191 if(CSW_STATUS_PHASE == csw->status){
209 \param transfer_len: data transferred during operation, which is checked for status
210 \return: success status code
217 status_t status = B_ERROR;
220 status = queue_bulk(udi, csw, CSW_LENGTH, true);
222 if(B_OK != status || B_OK != udi->status){
223 status = (*udi->usb_m->clear_feature)(udi->pipe_in, USB_FEATURE_ENDPOINT_HALT);
224 if(status != 0){
226 "status:%08x; usb_status:%08x\n", status, udi->status);
234 if(B_OK != status || B_OK != udi->status){
235 PTRACE_ALWAYS(udi, "read_status:failed 2nd try status:%08x; usb_status:%08x\n",
236 status, udi->status);
238 status = (B_OK == status) ? udi->status : status;
244 status = B_ERROR;
250 return status;
265 status_t status = B_OK;
266 status = get_max_luns(udi);
267 return status;
281 status_t status = B_ERROR;
282 status = (*udi->usb_m->send_request)(udi->device,
286 if(status != B_OK){
287 PTRACE_ALWAYS(udi, "bulk_only_reset: reset request failed: %08x\n", status);
289 if(B_OK != (status = (*udi->usb_m->clear_feature)(udi->pipe_in,
292 PTRACE_ALWAYS(udi, "bulk_only_reset: clear_feature on pipe_in failed: %08x\n", status);
294 if(B_OK != (status = (*udi->usb_m->clear_feature)(udi->pipe_out,
297 PTRACE_ALWAYS(udi, "bulk_only_reset: clear_feature on pipe_out failed: %08x\n", status);
299 PTRACE(udi, "bulk_only_reset:%08x\n", status);
300 return status;
323 status_t status = B_OK;
340 status = queue_bulk(udi, &cbw, CBW_LENGTH, false);
341 if(status != B_OK || udi->status != B_OK){
343 "status:%08x usb status:%08x\n", status, udi->status);
350 status = process_data_io(udi, sg_data, sg_count, dir);
351 if(status != B_OK && status != B_DEV_STALLED){
356 /* get status of command */
357 status = read_status(udi, &csw, transfer_len);
358 if(B_OK != status){
363 if(csw.status == CSW_STATUS_FAILED){