tws_hdm.c (256281) | tws_hdm.c (275977) |
---|---|
1/* 2 * Copyright (c) 2010, LSI Corp. 3 * All rights reserved. 4 * Author : Manjunath Ranganathaiah 5 * Support: freebsdraid@lsi.com 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 17 unchanged lines hidden (view full) --- 26 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 27 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 28 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 29 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 31 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 32 * POSSIBILITY OF SUCH DAMAGE. 33 * | 1/* 2 * Copyright (c) 2010, LSI Corp. 3 * All rights reserved. 4 * Author : Manjunath Ranganathaiah 5 * Support: freebsdraid@lsi.com 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 17 unchanged lines hidden (view full) --- 26 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 27 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 28 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 29 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 31 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 32 * POSSIBILITY OF SUCH DAMAGE. 33 * |
34 * $FreeBSD: stable/10/sys/dev/tws/tws_hdm.c 247551 2013-03-01 15:48:31Z kevlo $ | 34 * $FreeBSD: stable/10/sys/dev/tws/tws_hdm.c 275977 2014-12-21 02:39:10Z smh $ |
35 */ 36 37 38#include <dev/tws/tws.h> 39#include <dev/tws/tws_services.h> 40#include <dev/tws/tws_hdm.h> 41 42 --- 113 unchanged lines hidden (view full) --- 156 bzero(&req->cmd_pkt->cmd, sizeof(struct tws_command_apache)); 157 req->data = NULL; 158 req->length = 0; 159 req->type = TWS_REQ_TYPE_INTERNAL_CMD; 160 req->flags = TWS_DIR_UNKNOWN; 161 req->error_code = TWS_REQ_RET_INVALID; 162 req->cb = NULL; 163 req->ccb_ptr = NULL; | 35 */ 36 37 38#include <dev/tws/tws.h> 39#include <dev/tws/tws_services.h> 40#include <dev/tws/tws_hdm.h> 41 42 --- 113 unchanged lines hidden (view full) --- 156 bzero(&req->cmd_pkt->cmd, sizeof(struct tws_command_apache)); 157 req->data = NULL; 158 req->length = 0; 159 req->type = TWS_REQ_TYPE_INTERNAL_CMD; 160 req->flags = TWS_DIR_UNKNOWN; 161 req->error_code = TWS_REQ_RET_INVALID; 162 req->cb = NULL; 163 req->ccb_ptr = NULL; |
164 req->thandle.callout = NULL; | 164 callout_stop(&req->timeout); |
165 req->next = req->prev = NULL; 166 req->state = TWS_REQ_STATE_BUSY; 167#endif // 0 168 169 if ( req == NULL ) { 170 TWS_TRACE_DEBUG(sc, "no requests", 0, 0); 171// device_printf(sc->tws_dev, "No requests for initConnect\n"); 172 return(FAILURE); --- 363 unchanged lines hidden --- | 165 req->next = req->prev = NULL; 166 req->state = TWS_REQ_STATE_BUSY; 167#endif // 0 168 169 if ( req == NULL ) { 170 TWS_TRACE_DEBUG(sc, "no requests", 0, 0); 171// device_printf(sc->tws_dev, "No requests for initConnect\n"); 172 return(FAILURE); --- 363 unchanged lines hidden --- |