Lines Matching refs:cr

146 static int	ciss_start(struct ciss_request *cr);
153 static int _ciss_report_request(struct ciss_request *cr, int *command_status, int *scsi_status, con…
154 static int ciss_synch_request(struct ciss_request *cr, int timeout);
155 static int ciss_poll_request(struct ciss_request *cr, int timeout);
156 static int ciss_wait_request(struct ciss_request *cr, int timeout);
158 static int ciss_abort_request(struct ciss_request *cr);
163 static void ciss_preen_command(struct ciss_request *cr);
164 static void ciss_release_request(struct ciss_request *cr);
172 static int ciss_map_request(struct ciss_request *cr);
175 static void ciss_unmap_request(struct ciss_request *cr);
185 static void ciss_cam_complete(struct ciss_request *cr);
191 static void ciss_nop_complete(struct ciss_request *cr);
194 static void ciss_notify_complete(struct ciss_request *cr);
203 static void ciss_print_request(struct ciss_request *cr);
1060 struct ciss_request *cr; in ciss_flush_adapter() local
1066 cr = NULL; in ciss_flush_adapter()
1078 if ((error = ciss_get_bmic_request(sc, &cr, CISS_BMIC_FLUSH_CACHE, in ciss_flush_adapter()
1085 if ((error = ciss_synch_request(cr, 60 * 1000)) != 0) { in ciss_flush_adapter()
1093 ciss_report_request(cr, &command_status, NULL); in ciss_flush_adapter()
1107 if (cr != NULL) in ciss_flush_adapter()
1108 ciss_release_request(cr); in ciss_flush_adapter()
1115 struct ciss_request *cr = NULL; in ciss_soft_reset() local
1124 if ((error = ciss_get_request(sc, &cr)) != 0) in ciss_soft_reset()
1127 if ((error = ciss_get_bmic_request(sc, &cr, CISS_BMIC_SOFT_RESET, in ciss_soft_reset()
1131 cc = cr->cr_cc; in ciss_soft_reset()
1134 if ((error = ciss_synch_request(cr, 60 * 1000)) != 0) in ciss_soft_reset()
1137 ciss_release_request(cr); in ciss_soft_reset()
1143 if (cr != NULL) in ciss_soft_reset()
1144 ciss_release_request(cr); in ciss_soft_reset()
1157 struct ciss_request *cr; in ciss_init_requests() local
1201 cr = &sc->ciss_request[i]; in ciss_init_requests()
1202 cr->cr_sc = sc; in ciss_init_requests()
1203 cr->cr_tag = i; in ciss_init_requests()
1204 cr->cr_cc = (struct ciss_command *)((uintptr_t)sc->ciss_command + in ciss_init_requests()
1206 cr->cr_ccphys = sc->ciss_command_phys + CISS_COMMAND_ALLOC_SIZE * i; in ciss_init_requests()
1207 bus_dmamap_create(sc->ciss_buffer_dmat, 0, &cr->cr_datamap); in ciss_init_requests()
1208 ciss_enqueue_free(cr); in ciss_init_requests()
1228 struct ciss_request *cr; in ciss_identify_adapter() local
1233 cr = NULL; in ciss_identify_adapter()
1238 if ((error = ciss_get_bmic_request(sc, &cr, CISS_BMIC_ID_CTLR, in ciss_identify_adapter()
1246 if ((error = ciss_synch_request(cr, 60 * 1000)) != 0) { in ciss_identify_adapter()
1254 ciss_report_request(cr, &command_status, NULL); in ciss_identify_adapter()
1345 if (cr != NULL) in ciss_identify_adapter()
1346 ciss_release_request(cr); in ciss_identify_adapter()
1356 struct ciss_request *cr; in ciss_report_luns() local
1366 cr = NULL; in ciss_report_luns()
1372 if ((error = ciss_get_request(sc, &cr)) != 0) in ciss_report_luns()
1384 cc = cr->cr_cc; in ciss_report_luns()
1385 cr->cr_data = cll; in ciss_report_luns()
1386 cr->cr_length = report_size; in ciss_report_luns()
1387 cr->cr_flags = CISS_REQ_DATAIN; in ciss_report_luns()
1408 if ((error = ciss_synch_request(cr, 60 * 1000)) != 0) { in ciss_report_luns()
1416 ciss_report_request(cr, &command_status, NULL); in ciss_report_luns()
1431 ciss_release_request(cr); in ciss_report_luns()
1432 cr = NULL; in ciss_report_luns()
1435 if (cr != NULL) in ciss_report_luns()
1436 ciss_release_request(cr); in ciss_report_luns()
1703 struct ciss_request *cr; in ciss_inquiry_logical() local
1709 cr = NULL; in ciss_inquiry_logical()
1713 if ((error = ciss_get_request(sc, &cr)) != 0) in ciss_inquiry_logical()
1716 cc = cr->cr_cc; in ciss_inquiry_logical()
1717 cr->cr_data = &ld->cl_geometry; in ciss_inquiry_logical()
1718 cr->cr_length = sizeof(ld->cl_geometry); in ciss_inquiry_logical()
1719 cr->cr_flags = CISS_REQ_DATAIN; in ciss_inquiry_logical()
1734 if ((error = ciss_synch_request(cr, 60 * 1000)) != 0) { in ciss_inquiry_logical()
1739 ciss_report_request(cr, &command_status, NULL); in ciss_inquiry_logical()
1754 if (cr != NULL) in ciss_inquiry_logical()
1755 ciss_release_request(cr); in ciss_inquiry_logical()
1764 struct ciss_request *cr; in ciss_identify_logical() local
1771 cr = NULL; in ciss_identify_logical()
1776 if ((error = ciss_get_bmic_request(sc, &cr, CISS_BMIC_ID_LDRIVE, in ciss_identify_logical()
1780 cc = cr->cr_cc; in ciss_identify_logical()
1788 if ((error = ciss_synch_request(cr, 60 * 1000)) != 0) { in ciss_identify_logical()
1796 ciss_report_request(cr, &command_status, NULL); in ciss_identify_logical()
1809 ciss_release_request(cr); in ciss_identify_logical()
1810 cr = NULL; in ciss_identify_logical()
1850 if (cr != NULL) in ciss_identify_logical()
1851 ciss_release_request(cr); in ciss_identify_logical()
1864 struct ciss_request *cr; in ciss_get_ldrive_status() local
1872 if ((error = ciss_get_bmic_request(sc, &cr, CISS_BMIC_ID_LSTATUS, in ciss_get_ldrive_status()
1876 cc = cr->cr_cc; in ciss_get_ldrive_status()
1884 if ((error = ciss_synch_request(cr, 60 * 1000)) != 0) { in ciss_get_ldrive_status()
1892 ciss_report_request(cr, &command_status, NULL); in ciss_get_ldrive_status()
1915 if (cr != NULL) in ciss_get_ldrive_status()
1916 ciss_release_request(cr); in ciss_get_ldrive_status()
1950 struct ciss_request *cr; in ciss_accept_media() local
1963 if ((error = ciss_get_bmic_request(sc, &cr, CISS_BMIC_ACCEPT_MEDIA, in ciss_accept_media()
1966 cc = cr->cr_cc; in ciss_accept_media()
1974 if ((error = ciss_synch_request(cr, 60 * 1000)) != 0) { in ciss_accept_media()
1982 ciss_report_request(cr, &command_status, NULL); in ciss_accept_media()
1988 ciss_printf(cr->cr_sc, "error accepting media into failed logical drive (%s)\n", in ciss_accept_media()
1994 if (cr != NULL) in ciss_accept_media()
1995 ciss_release_request(cr); in ciss_accept_media()
2005 struct ciss_request *cr; in ciss_free() local
2069 while ((cr = ciss_dequeue_free(sc)) != NULL) in ciss_free()
2070 bus_dmamap_destroy(sc->ciss_buffer_dmat, cr->cr_datamap); in ciss_free()
2129 ciss_start(struct ciss_request *cr) in ciss_start() argument
2133 debug(2, "post command %d tag %d ", cr->cr_tag, cr->cr_cc->header.host_tag); in ciss_start()
2138 if ((error = ciss_map_request(cr))) in ciss_start()
2142 ciss_print_request(cr); in ciss_start()
2165 struct ciss_request *cr; in ciss_done() local
2186 cr = &(sc->ciss_request[index]); in ciss_done()
2187 cc = cr->cr_cc; in ciss_done()
2189 ciss_enqueue_complete(cr, qh); in ciss_done()
2197 struct ciss_request *cr; in ciss_perf_done() local
2215 cr = &(sc->ciss_request[index]); in ciss_perf_done()
2216 cc = cr->cr_cc; in ciss_perf_done()
2218 ciss_enqueue_complete(cr, qh); in ciss_perf_done()
2289 struct ciss_request *cr; in ciss_complete() local
2298 if ((cr = ciss_dequeue_complete(sc, qh)) == NULL) in ciss_complete()
2300 ciss_unmap_request(cr); in ciss_complete()
2302 if ((cr->cr_flags & CISS_REQ_BUSY) == 0) in ciss_complete()
2304 cr->cr_flags &= ~CISS_REQ_BUSY; in ciss_complete()
2309 if (cr->cr_complete != NULL) { in ciss_complete()
2310 cr->cr_complete(cr); in ciss_complete()
2317 if (cr->cr_flags & CISS_REQ_SLEEP) { in ciss_complete()
2318 cr->cr_flags &= ~CISS_REQ_SLEEP; in ciss_complete()
2319 wakeup(cr); in ciss_complete()
2326 if (cr->cr_flags & CISS_REQ_POLL) { in ciss_complete()
2327 cr->cr_flags &= ~CISS_REQ_POLL; in ciss_complete()
2336 ciss_enqueue_free(cr); in ciss_complete()
2345 _ciss_report_request(struct ciss_request *cr, int *command_status, int *scsi_status, const char *fu… in _ciss_report_request() argument
2352 cc = cr->cr_cc; in _ciss_report_request()
2394 ciss_printf(cr->cr_sc, "command status 0x%x (%s) scsi status 0x%x (opcode 0x%02x)\n", in _ciss_report_request()
2400 ciss_printf(cr->cr_sc, "invalid command, offense size %d at %d, value 0x%x, function %s\n", in _ciss_report_request()
2408 ciss_print_request(cr); in _ciss_report_request()
2420 ciss_synch_request(struct ciss_request *cr, int timeout) in ciss_synch_request() argument
2422 if (cr->cr_sc->ciss_flags & CISS_FLAG_RUNNING) { in ciss_synch_request()
2423 return(ciss_wait_request(cr, timeout)); in ciss_synch_request()
2425 return(ciss_poll_request(cr, timeout)); in ciss_synch_request()
2435 ciss_poll_request(struct ciss_request *cr, int timeout) in ciss_poll_request() argument
2444 sc = cr->cr_sc; in ciss_poll_request()
2445 cr->cr_flags |= CISS_REQ_POLL; in ciss_poll_request()
2446 if ((error = ciss_start(cr)) != 0) in ciss_poll_request()
2455 if (!(cr->cr_flags & CISS_REQ_POLL)) in ciss_poll_request()
2469 ciss_wait_request(struct ciss_request *cr, int timeout) in ciss_wait_request() argument
2475 cr->cr_flags |= CISS_REQ_SLEEP; in ciss_wait_request()
2476 if ((error = ciss_start(cr)) != 0) in ciss_wait_request()
2479 while ((cr->cr_flags & CISS_REQ_SLEEP) && (error != EWOULDBLOCK)) { in ciss_wait_request()
2480 error = msleep_sbt(cr, &cr->cr_sc->ciss_mtx, PRIBIO, "cissREQ", in ciss_wait_request()
2494 struct ciss_request *cr;
2502 if ((error = ciss_get_request(ar->cr_sc, &cr)) != 0)
2506 cc = cr->cr_cc;
2526 error = ciss_synch_request(cr, 35 * 1000);
2528 error = ciss_report_request(cr, NULL, NULL);
2529 ciss_release_request(cr);
2541 struct ciss_request *cr; in ciss_get_request() local
2548 if ((cr = ciss_dequeue_free(sc)) == NULL) in ciss_get_request()
2551 cr->cr_data = NULL; in ciss_get_request()
2552 cr->cr_flags = 0; in ciss_get_request()
2553 cr->cr_complete = NULL; in ciss_get_request()
2554 cr->cr_private = NULL; in ciss_get_request()
2555 cr->cr_sg_tag = CISS_SG_MAX; /* Backstop to prevent accidents */ in ciss_get_request()
2557 ciss_preen_command(cr); in ciss_get_request()
2558 *crp = cr; in ciss_get_request()
2563 ciss_preen_command(struct ciss_request *cr) in ciss_preen_command() argument
2574 cc = cr->cr_cc; in ciss_preen_command()
2577 cc->header.host_tag = cr->cr_tag << 2; in ciss_preen_command()
2580 cmdphys = cr->cr_ccphys; in ciss_preen_command()
2589 ciss_release_request(struct ciss_request *cr) in ciss_release_request() argument
2595 ciss_requeue_free(cr); in ciss_release_request()
2606 struct ciss_request *cr; in ciss_get_bmic_request() local
2615 cr = NULL; in ciss_get_bmic_request()
2621 if ((error = ciss_get_request(sc, &cr)) != 0) in ciss_get_bmic_request()
2643 cr->cr_data = buf; in ciss_get_bmic_request()
2644 cr->cr_length = bufsize; in ciss_get_bmic_request()
2646 cr->cr_flags = CISS_REQ_DATAIN; in ciss_get_bmic_request()
2648 cc = cr->cr_cc; in ciss_get_bmic_request()
2666 if (cr != NULL) in ciss_get_bmic_request()
2667 ciss_release_request(cr); in ciss_get_bmic_request()
2669 *crp = cr; in ciss_get_bmic_request()
2682 struct ciss_request *cr; in ciss_user_command() local
2689 cr = NULL; in ciss_user_command()
2694 while (ciss_get_request(sc, &cr) != 0) in ciss_user_command()
2696 cc = cr->cr_cc; in ciss_user_command()
2702 cr->cr_length = ioc->buf_size; in ciss_user_command()
2704 if ((cr->cr_data = malloc(ioc->buf_size, CISS_MALLOC_CLASS, M_NOWAIT)) == NULL) { in ciss_user_command()
2708 if ((error = copyin(ioc->buf, cr->cr_data, ioc->buf_size))) { in ciss_user_command()
2726 if ((error = ciss_synch_request(cr, 60 * 1000))) { in ciss_user_command()
2744 (error = copyout(cr->cr_data, ioc->buf, ioc->buf_size))) { in ciss_user_command()
2756 if ((cr != NULL) && (cr->cr_data != NULL)) in ciss_user_command()
2757 free(cr->cr_data, CISS_MALLOC_CLASS); in ciss_user_command()
2758 if (cr != NULL) in ciss_user_command()
2759 ciss_release_request(cr); in ciss_user_command()
2768 ciss_map_request(struct ciss_request *cr) in ciss_map_request() argument
2775 sc = cr->cr_sc; in ciss_map_request()
2778 if (cr->cr_flags & CISS_REQ_MAPPED) in ciss_map_request()
2781 cr->cr_flags |= CISS_REQ_MAPPED; in ciss_map_request()
2786 if (cr->cr_data != NULL) { in ciss_map_request()
2787 if (cr->cr_flags & CISS_REQ_CCB) in ciss_map_request()
2789 cr->cr_datamap, cr->cr_data, in ciss_map_request()
2790 ciss_request_map_helper, cr, 0); in ciss_map_request()
2792 error = bus_dmamap_load(sc->ciss_buffer_dmat, cr->cr_datamap, in ciss_map_request()
2793 cr->cr_data, cr->cr_length, in ciss_map_request()
2794 ciss_request_map_helper, cr, 0); in ciss_map_request()
2801 cr->cr_sg_tag = CISS_SG_NONE; in ciss_map_request()
2802 cr->cr_flags |= CISS_REQ_BUSY; in ciss_map_request()
2804 CISS_TL_PERF_POST_CMD(sc, cr); in ciss_map_request()
2806 CISS_TL_SIMPLE_POST_CMD(sc, cr->cr_ccphys); in ciss_map_request()
2816 struct ciss_request *cr; in ciss_request_map_helper() local
2822 cr = (struct ciss_request *)arg; in ciss_request_map_helper()
2823 sc = cr->cr_sc; in ciss_request_map_helper()
2824 cc = cr->cr_cc; in ciss_request_map_helper()
2835 if (cr->cr_flags & CISS_REQ_DATAIN) in ciss_request_map_helper()
2836 bus_dmamap_sync(sc->ciss_buffer_dmat, cr->cr_datamap, BUS_DMASYNC_PREREAD); in ciss_request_map_helper()
2837 if (cr->cr_flags & CISS_REQ_DATAOUT) in ciss_request_map_helper()
2838 bus_dmamap_sync(sc->ciss_buffer_dmat, cr->cr_datamap, BUS_DMASYNC_PREWRITE); in ciss_request_map_helper()
2841 cr->cr_sg_tag = CISS_SG_NONE; in ciss_request_map_helper()
2843 cr->cr_sg_tag = CISS_SG_1; in ciss_request_map_helper()
2845 cr->cr_sg_tag = CISS_SG_2; in ciss_request_map_helper()
2847 cr->cr_sg_tag = CISS_SG_4; in ciss_request_map_helper()
2849 cr->cr_sg_tag = CISS_SG_8; in ciss_request_map_helper()
2851 cr->cr_sg_tag = CISS_SG_16; in ciss_request_map_helper()
2853 cr->cr_sg_tag = CISS_SG_32; in ciss_request_map_helper()
2855 cr->cr_sg_tag = CISS_SG_MAX; in ciss_request_map_helper()
2860 cr->cr_flags |= CISS_REQ_BUSY; in ciss_request_map_helper()
2862 CISS_TL_PERF_POST_CMD(sc, cr); in ciss_request_map_helper()
2864 CISS_TL_SIMPLE_POST_CMD(sc, cr->cr_ccphys); in ciss_request_map_helper()
2871 ciss_unmap_request(struct ciss_request *cr) in ciss_unmap_request() argument
2877 sc = cr->cr_sc; in ciss_unmap_request()
2880 if ((cr->cr_flags & CISS_REQ_MAPPED) == 0) in ciss_unmap_request()
2886 if (cr->cr_data == NULL) in ciss_unmap_request()
2889 if (cr->cr_flags & CISS_REQ_DATAIN) in ciss_unmap_request()
2890 bus_dmamap_sync(sc->ciss_buffer_dmat, cr->cr_datamap, BUS_DMASYNC_POSTREAD); in ciss_unmap_request()
2891 if (cr->cr_flags & CISS_REQ_DATAOUT) in ciss_unmap_request()
2892 bus_dmamap_sync(sc->ciss_buffer_dmat, cr->cr_datamap, BUS_DMASYNC_POSTWRITE); in ciss_unmap_request()
2894 bus_dmamap_unload(sc->ciss_buffer_dmat, cr->cr_datamap); in ciss_unmap_request()
2896 cr->cr_flags &= ~CISS_REQ_MAPPED; in ciss_unmap_request()
3159 struct ciss_request *cr; in ciss_cam_action_io() local
3190 if ((error = ciss_get_request(sc, &cr)) != 0) { in ciss_cam_action_io()
3200 cc = cr->cr_cc; in ciss_cam_action_io()
3201 cr->cr_data = csio; in ciss_cam_action_io()
3202 cr->cr_length = csio->dxfer_len; in ciss_cam_action_io()
3203 cr->cr_complete = ciss_cam_complete; in ciss_cam_action_io()
3204 cr->cr_private = csio; in ciss_cam_action_io()
3219 cr->cr_flags = CISS_REQ_DATAOUT | CISS_REQ_CCB; in ciss_cam_action_io()
3222 cr->cr_flags = CISS_REQ_DATAIN | CISS_REQ_CCB; in ciss_cam_action_io()
3225 cr->cr_data = NULL; in ciss_cam_action_io()
3226 cr->cr_flags = 0; in ciss_cam_action_io()
3243 if ((error = ciss_start(cr)) != 0) { in ciss_cam_action_io()
3250 ciss_release_request(cr); in ciss_cam_action_io()
3346 ciss_cam_complete(struct ciss_request *cr) in ciss_cam_complete() argument
3357 sc = cr->cr_sc; in ciss_cam_complete()
3358 cc = cr->cr_cc; in ciss_cam_complete()
3360 csio = (struct ccb_scsiio *)cr->cr_private; in ciss_cam_complete()
3365 ciss_report_request(cr, &command_status, &scsi_status); in ciss_cam_complete()
3397 ciss_release_request(cr); in ciss_cam_complete()
3495 struct ciss_request *cr = NULL; in ciss_periodic() local
3524 if (ciss_nop_message_heartbeat != 0 && (error = ciss_get_request(sc, &cr)) == 0) { in ciss_periodic()
3525 cc = cr->cr_cc; in ciss_periodic()
3526 cr->cr_complete = ciss_nop_complete; in ciss_periodic()
3534 if ((error = ciss_start(cr)) != 0) { in ciss_periodic()
3555 ciss_nop_complete(struct ciss_request *cr) in ciss_nop_complete() argument
3560 sc = cr->cr_sc; in ciss_nop_complete()
3561 if (ciss_report_request(cr, NULL, NULL) != 0) { in ciss_nop_complete()
3568 ciss_release_request(cr); in ciss_nop_complete()
3581 struct ciss_request *cr; in ciss_disable_adapter() local
3592 cr = &sc->ciss_request[i]; in ciss_disable_adapter()
3593 if ((cr->cr_flags & CISS_REQ_BUSY) == 0) in ciss_disable_adapter()
3596 cc = cr->cr_cc; in ciss_disable_adapter()
3599 ciss_enqueue_complete(cr, &qh); in ciss_disable_adapter()
3603 if ((cr = ciss_dequeue_complete(sc, &qh)) == NULL) in ciss_disable_adapter()
3609 if (cr->cr_complete != NULL) { in ciss_disable_adapter()
3610 cr->cr_complete(cr); in ciss_disable_adapter()
3617 if (cr->cr_flags & CISS_REQ_SLEEP) { in ciss_disable_adapter()
3618 cr->cr_flags &= ~CISS_REQ_SLEEP; in ciss_disable_adapter()
3619 wakeup(cr); in ciss_disable_adapter()
3635 struct ciss_request *cr; in ciss_notify_event() local
3642 cr = sc->ciss_periodic_notify; in ciss_notify_event()
3645 if (cr == NULL) { in ciss_notify_event()
3646 if ((error = ciss_get_request(sc, &cr)) != 0) { in ciss_notify_event()
3650 sc->ciss_periodic_notify = cr; in ciss_notify_event()
3651 cr->cr_complete = ciss_notify_complete; in ciss_notify_event()
3652 debug(1, "acquired request %d", cr->cr_tag); in ciss_notify_event()
3660 if (cr->cr_data == NULL) { in ciss_notify_event()
3661 if ((cr->cr_data = malloc(CISS_NOTIFY_DATA_SIZE, CISS_MALLOC_CLASS, M_NOWAIT)) == NULL) { in ciss_notify_event()
3666 cr->cr_length = CISS_NOTIFY_DATA_SIZE; in ciss_notify_event()
3670 ciss_preen_command(cr); in ciss_notify_event()
3673 cc = cr->cr_cc; in ciss_notify_event()
3685 bzero(cr->cr_data, CISS_NOTIFY_DATA_SIZE); in ciss_notify_event()
3699 error = ciss_start(cr); in ciss_notify_event()
3703 if (cr != NULL) { in ciss_notify_event()
3704 if (cr->cr_data != NULL) in ciss_notify_event()
3705 free(cr->cr_data, CISS_MALLOC_CLASS); in ciss_notify_event()
3706 ciss_release_request(cr); in ciss_notify_event()
3718 ciss_notify_complete(struct ciss_request *cr) in ciss_notify_complete() argument
3726 cn = (struct ciss_notify *)cr->cr_data; in ciss_notify_complete()
3727 sc = cr->cr_sc; in ciss_notify_complete()
3732 ciss_report_request(cr, &command_status, &scsi_status); in ciss_notify_complete()
3744 ciss_release_request(cr); in ciss_notify_complete()
3767 ciss_release_request(cr); in ciss_notify_complete()
3772 ciss_enqueue_notify(cr); in ciss_notify_complete()
3798 struct ciss_request *cr; in ciss_notify_abort() local
3805 cr = NULL; in ciss_notify_abort()
3813 if ((error = ciss_get_request(sc, &cr))) in ciss_notify_abort()
3817 if ((cr->cr_data = malloc(CISS_NOTIFY_DATA_SIZE, CISS_MALLOC_CLASS, M_NOWAIT)) == NULL) { in ciss_notify_abort()
3822 cr->cr_length = CISS_NOTIFY_DATA_SIZE; in ciss_notify_abort()
3825 cc = cr->cr_cc; in ciss_notify_abort()
3841 ciss_print_request(cr); in ciss_notify_abort()
3847 if ((error = ciss_synch_request(cr, 60 * 1000)) != 0) { in ciss_notify_abort()
3855 ciss_report_request(cr, &command_status, &scsi_status); in ciss_notify_abort()
3906 if (cr != NULL) { in ciss_notify_abort()
3907 if (cr->cr_data != NULL) in ciss_notify_abort()
3908 free(cr->cr_data, CISS_MALLOC_CLASS); in ciss_notify_abort()
3909 ciss_release_request(cr); in ciss_notify_abort()
3922 struct ciss_request *cr; in ciss_notify_abort_bmic() local
3927 cr = NULL; in ciss_notify_abort_bmic()
3939 if ((error = ciss_get_bmic_request(sc, &cr, CISS_COMMAND_ABORT_NOTIFY, in ciss_notify_abort_bmic()
3946 if ((error = ciss_synch_request(cr, 60 * 1000)) != 0) { in ciss_notify_abort_bmic()
3954 ciss_report_request(cr, &command_status, NULL); in ciss_notify_abort_bmic()
3966 if (cr != NULL) in ciss_notify_abort_bmic()
3967 ciss_release_request(cr); in ciss_notify_abort_bmic()
4193 struct ciss_request *cr; in ciss_notify_thread() local
4208 cr = ciss_dequeue_notify(sc); in ciss_notify_thread()
4210 if (cr == NULL) { in ciss_notify_thread()
4224 cn = (struct ciss_notify *)cr->cr_data; in ciss_notify_thread()
4238 ciss_release_request(cr); in ciss_notify_thread()
4280 ciss_print_request(struct ciss_request *cr) in ciss_print_request() argument
4286 sc = cr->cr_sc; in ciss_print_request()
4287 cc = cr->cr_cc; in ciss_print_request()
4289 ciss_printf(sc, "REQUEST @ %p\n", cr); in ciss_print_request()
4291 cr->cr_data, cr->cr_length, cr->cr_tag, cr->cr_flags, in ciss_print_request()
4636 union ciss_statrequest *cr = (union ciss_statrequest *)addr; in ciss_ioctl() local
4638 switch (cr->cs_item) { in ciss_ioctl()
4641 bcopy(&sc->ciss_qstat[cr->cs_item], &cr->cs_qstat, in ciss_ioctl()