Lines Matching refs:fnic_priv

481 	fnic_priv(sc)->state = FNIC_IOREQ_NOT_INITED;  in fnic_queuecommand()
482 fnic_priv(sc)->flags = FNIC_NO_FLAGS; in fnic_queuecommand()
497 mqtag, sc, 0, sc->cmnd[0], sg_count, fnic_priv(sc)->state); in fnic_queuecommand()
541 fnic_priv(sc)->state = FNIC_IOREQ_CMD_PENDING; in fnic_queuecommand()
542 fnic_priv(sc)->io_req = io_req; in fnic_queuecommand()
543 fnic_priv(sc)->flags |= FNIC_IO_INITIALIZED; in fnic_queuecommand()
567 io_req = fnic_priv(sc)->io_req; in fnic_queuecommand()
568 fnic_priv(sc)->io_req = NULL; in fnic_queuecommand()
571 fnic_priv(sc)->state = FNIC_IOREQ_CMD_COMPLETE; in fnic_queuecommand()
588 fnic_priv(sc)->flags |= FNIC_IO_ISSUED; in fnic_queuecommand()
875 io_req = fnic_priv(sc)->io_req; in fnic_fcpio_icmnd_cmpl_handler()
886 fnic_priv(sc)->flags |= FNIC_IO_REQ_NULL; in fnic_fcpio_icmnd_cmpl_handler()
903 if (fnic_priv(sc)->state == FNIC_IOREQ_ABTS_PENDING) { in fnic_fcpio_icmnd_cmpl_handler()
909 fnic_priv(sc)->flags |= FNIC_IO_DONE; in fnic_fcpio_icmnd_cmpl_handler()
910 fnic_priv(sc)->flags |= FNIC_IO_ABTS_PENDING; in fnic_fcpio_icmnd_cmpl_handler()
913 fnic_priv(sc)->flags |= FNIC_IO_ABORTED; in fnic_fcpio_icmnd_cmpl_handler()
927 fnic_priv(sc)->state = FNIC_IOREQ_CMD_COMPLETE; in fnic_fcpio_icmnd_cmpl_handler()
998 fnic_priv(sc)->io_req = NULL; in fnic_fcpio_icmnd_cmpl_handler()
1000 fnic_priv(sc)->flags |= FNIC_IO_DONE; in fnic_fcpio_icmnd_cmpl_handler()
1149 io_req = fnic_priv(sc)->io_req; in fnic_fcpio_itmf_cmpl_handler()
1154 fnic_priv(sc)->flags |= FNIC_IO_ABT_TERM_REQ_NULL; in fnic_fcpio_itmf_cmpl_handler()
1170 fnic_priv(sc)->state = FNIC_IOREQ_ABTS_COMPLETE; in fnic_fcpio_itmf_cmpl_handler()
1171 fnic_priv(sc)->abts_status = hdr_status; in fnic_fcpio_itmf_cmpl_handler()
1172 fnic_priv(sc)->flags |= FNIC_DEV_RST_DONE; in fnic_fcpio_itmf_cmpl_handler()
1186 if (fnic_priv(sc)->flags & FNIC_IO_ABTS_ISSUED) in fnic_fcpio_itmf_cmpl_handler()
1198 if (fnic_priv(sc)->flags & FNIC_IO_ABTS_ISSUED) in fnic_fcpio_itmf_cmpl_handler()
1205 if (fnic_priv(sc)->flags & FNIC_IO_ABTS_ISSUED) in fnic_fcpio_itmf_cmpl_handler()
1212 if (fnic_priv(sc)->state != FNIC_IOREQ_ABTS_PENDING) { in fnic_fcpio_itmf_cmpl_handler()
1218 fnic_priv(sc)->flags |= FNIC_IO_ABT_TERM_DONE; in fnic_fcpio_itmf_cmpl_handler()
1219 fnic_priv(sc)->abts_status = hdr_status; in fnic_fcpio_itmf_cmpl_handler()
1223 fnic_priv(sc)->abts_status = FCPIO_SUCCESS; in fnic_fcpio_itmf_cmpl_handler()
1225 if (!(fnic_priv(sc)->flags & (FNIC_IO_ABORTED | FNIC_IO_DONE))) in fnic_fcpio_itmf_cmpl_handler()
1249 fnic_priv(sc)->io_req = NULL; in fnic_fcpio_itmf_cmpl_handler()
1280 fnic_priv(sc)->lr_status = hdr_status; in fnic_fcpio_itmf_cmpl_handler()
1281 if (fnic_priv(sc)->state == FNIC_IOREQ_ABTS_PENDING) { in fnic_fcpio_itmf_cmpl_handler()
1283 fnic_priv(sc)->flags |= FNIC_DEV_RST_ABTS_PENDING; in fnic_fcpio_itmf_cmpl_handler()
1294 if (fnic_priv(sc)->flags & FNIC_DEV_RST_TIMED_OUT) { in fnic_fcpio_itmf_cmpl_handler()
1308 fnic_priv(sc)->state = FNIC_IOREQ_CMD_COMPLETE; in fnic_fcpio_itmf_cmpl_handler()
1309 fnic_priv(sc)->flags |= FNIC_DEV_RST_DONE; in fnic_fcpio_itmf_cmpl_handler()
1321 __func__, hwq, id, fnic_ioreq_state_to_str(fnic_priv(sc)->state)); in fnic_fcpio_itmf_cmpl_handler()
1432 io_req = fnic_priv(sc)->io_req; in fnic_cleanup_io_iter()
1437 hwq, mqtag, tag, fnic_priv(sc)->flags); in fnic_cleanup_io_iter()
1441 if ((fnic_priv(sc)->flags & FNIC_DEVICE_RESET) && in fnic_cleanup_io_iter()
1442 !(fnic_priv(sc)->flags & FNIC_DEV_RST_DONE)) { in fnic_cleanup_io_iter()
1447 fnic_priv(sc)->flags |= FNIC_DEV_RST_DONE; in fnic_cleanup_io_iter()
1454 } else if (fnic_priv(sc)->flags & FNIC_DEVICE_RESET) { in fnic_cleanup_io_iter()
1459 fnic_priv(sc)->io_req = NULL; in fnic_cleanup_io_iter()
1527 io_req = fnic_priv(sc)->io_req; in fnic_wq_copy_cleanup_handler()
1536 fnic_priv(sc)->io_req = NULL; in fnic_wq_copy_cleanup_handler()
1634 io_req = fnic_priv(sc)->io_req; in fnic_rport_abort_io_iter()
1641 if ((fnic_priv(sc)->flags & FNIC_DEVICE_RESET) && in fnic_rport_abort_io_iter()
1642 !(fnic_priv(sc)->flags & FNIC_DEV_RST_ISSUED)) { in fnic_rport_abort_io_iter()
1645 hwq, abt_tag, fnic_priv(sc)->flags); in fnic_rport_abort_io_iter()
1654 if (fnic_priv(sc)->state == FNIC_IOREQ_ABTS_PENDING) { in fnic_rport_abort_io_iter()
1662 fnic_ioreq_state_to_str(fnic_priv(sc)->state)); in fnic_rport_abort_io_iter()
1665 if (!(fnic_priv(sc)->flags & FNIC_IO_ISSUED)) { in fnic_rport_abort_io_iter()
1670 sc, abt_tag, fnic_priv(sc)->flags, fnic_priv(sc)->state); in fnic_rport_abort_io_iter()
1672 old_ioreq_state = fnic_priv(sc)->state; in fnic_rport_abort_io_iter()
1673 fnic_priv(sc)->state = FNIC_IOREQ_ABTS_PENDING; in fnic_rport_abort_io_iter()
1674 fnic_priv(sc)->abts_status = FCPIO_INVALID_CODE; in fnic_rport_abort_io_iter()
1675 if (fnic_priv(sc)->flags & FNIC_DEVICE_RESET) { in fnic_rport_abort_io_iter()
1703 hwq, abt_tag, fnic_priv(sc)->flags); in fnic_rport_abort_io_iter()
1704 if (fnic_priv(sc)->state == FNIC_IOREQ_ABTS_PENDING) in fnic_rport_abort_io_iter()
1705 fnic_priv(sc)->state = old_ioreq_state; in fnic_rport_abort_io_iter()
1709 if (fnic_priv(sc)->flags & FNIC_DEVICE_RESET) in fnic_rport_abort_io_iter()
1710 fnic_priv(sc)->flags |= FNIC_DEV_RST_TERM_ISSUED; in fnic_rport_abort_io_iter()
1712 fnic_priv(sc)->flags |= FNIC_IO_INTERNAL_TERM_ISSUED; in fnic_rport_abort_io_iter()
1822 fnic_priv(sc)->flags = FNIC_NO_FLAGS; in fnic_abort_cmd()
1844 io_req = fnic_priv(sc)->io_req; in fnic_abort_cmd()
1852 if (fnic_priv(sc)->state == FNIC_IOREQ_ABTS_PENDING) { in fnic_abort_cmd()
1882 old_ioreq_state = fnic_priv(sc)->state; in fnic_abort_cmd()
1883 fnic_priv(sc)->state = FNIC_IOREQ_ABTS_PENDING; in fnic_abort_cmd()
1884 fnic_priv(sc)->abts_status = FCPIO_INVALID_CODE; in fnic_abort_cmd()
1906 if (fnic_priv(sc)->state == FNIC_IOREQ_ABTS_PENDING) in fnic_abort_cmd()
1907 fnic_priv(sc)->state = old_ioreq_state; in fnic_abort_cmd()
1908 io_req = fnic_priv(sc)->io_req; in fnic_abort_cmd()
1916 fnic_priv(sc)->flags |= FNIC_IO_ABTS_ISSUED; in fnic_abort_cmd()
1919 fnic_priv(sc)->flags |= FNIC_IO_TERM_ISSUED; in fnic_abort_cmd()
1937 io_req = fnic_priv(sc)->io_req; in fnic_abort_cmd()
1941 fnic_priv(sc)->flags |= FNIC_IO_ABT_TERM_REQ_NULL; in fnic_abort_cmd()
1948 if (fnic_priv(sc)->abts_status == FCPIO_INVALID_CODE) { in fnic_abort_cmd()
1955 fnic_priv(sc)->flags |= FNIC_IO_ABT_TERM_TIMED_OUT; in fnic_abort_cmd()
1962 if (!(fnic_priv(sc)->flags & (FNIC_IO_ABORTED | FNIC_IO_DONE))) { in fnic_abort_cmd()
1971 fnic_priv(sc)->state = FNIC_IOREQ_ABTS_COMPLETE; in fnic_abort_cmd()
1979 if (fnic_priv(sc)->abts_status == FCPIO_SUCCESS || in fnic_abort_cmd()
1980 (fnic_priv(sc)->abts_status == FCPIO_ABORTED)) { in fnic_abort_cmd()
1981 fnic_priv(sc)->io_req = NULL; in fnic_abort_cmd()
2107 io_req = fnic_priv(sc)->io_req; in fnic_pending_aborts_iter()
2119 fnic_ioreq_state_to_str(fnic_priv(sc)->state)); in fnic_pending_aborts_iter()
2121 if (fnic_priv(sc)->state == FNIC_IOREQ_ABTS_PENDING) { in fnic_pending_aborts_iter()
2125 if ((fnic_priv(sc)->flags & FNIC_DEVICE_RESET) && in fnic_pending_aborts_iter()
2126 (!(fnic_priv(sc)->flags & FNIC_DEV_RST_ISSUED))) { in fnic_pending_aborts_iter()
2136 __func__, fnic_ioreq_state_to_str(fnic_priv(sc)->state)); in fnic_pending_aborts_iter()
2137 old_ioreq_state = fnic_priv(sc)->state; in fnic_pending_aborts_iter()
2145 fnic_priv(sc)->state = FNIC_IOREQ_ABTS_PENDING; in fnic_pending_aborts_iter()
2149 if (fnic_priv(sc)->flags & FNIC_DEVICE_RESET) { in fnic_pending_aborts_iter()
2154 fnic_priv(sc)->abts_status = FCPIO_INVALID_CODE; in fnic_pending_aborts_iter()
2165 io_req = fnic_priv(sc)->io_req; in fnic_pending_aborts_iter()
2168 if (fnic_priv(sc)->state == FNIC_IOREQ_ABTS_PENDING) in fnic_pending_aborts_iter()
2169 fnic_priv(sc)->state = old_ioreq_state; in fnic_pending_aborts_iter()
2178 if (fnic_priv(sc)->flags & FNIC_DEVICE_RESET) in fnic_pending_aborts_iter()
2179 fnic_priv(sc)->flags |= FNIC_DEV_RST_TERM_ISSUED; in fnic_pending_aborts_iter()
2182 fnic_priv(sc)->flags |= FNIC_IO_INTERNAL_TERM_ISSUED; in fnic_pending_aborts_iter()
2189 io_req = fnic_priv(sc)->io_req; in fnic_pending_aborts_iter()
2192 fnic_priv(sc)->flags |= FNIC_IO_ABT_TERM_REQ_NULL; in fnic_pending_aborts_iter()
2199 if (fnic_priv(sc)->abts_status == FCPIO_INVALID_CODE) { in fnic_pending_aborts_iter()
2201 fnic_priv(sc)->flags |= FNIC_IO_ABT_TERM_DONE; in fnic_pending_aborts_iter()
2205 fnic_priv(sc)->state = FNIC_IOREQ_ABTS_COMPLETE; in fnic_pending_aborts_iter()
2209 fnic_priv(sc)->io_req = NULL; in fnic_pending_aborts_iter()
2309 fnic_priv(sc)->flags); in fnic_device_reset()
2320 fnic_priv(sc)->flags = FNIC_DEVICE_RESET; in fnic_device_reset()
2339 io_req = fnic_priv(sc)->io_req; in fnic_device_reset()
2354 fnic_priv(sc)->io_req = io_req; in fnic_device_reset()
2365 fnic_priv(sc)->state = FNIC_IOREQ_CMD_PENDING; in fnic_device_reset()
2366 fnic_priv(sc)->lr_status = FCPIO_INVALID_CODE; in fnic_device_reset()
2377 io_req = fnic_priv(sc)->io_req; in fnic_device_reset()
2383 fnic_priv(sc)->flags |= FNIC_DEV_RST_ISSUED; in fnic_device_reset()
2394 io_req = fnic_priv(sc)->io_req; in fnic_device_reset()
2403 status = fnic_priv(sc)->lr_status; in fnic_device_reset()
2413 fnic_priv(sc)->flags |= FNIC_DEV_RST_TIMED_OUT; in fnic_device_reset()
2422 if (fnic_priv(sc)->flags & FNIC_DEV_RST_TERM_ISSUED) { in fnic_device_reset()
2435 fnic_priv(sc)->flags |= FNIC_DEV_RST_TERM_ISSUED; in fnic_device_reset()
2436 fnic_priv(sc)->state = FNIC_IOREQ_ABTS_PENDING; in fnic_device_reset()
2447 if (!(fnic_priv(sc)->flags & FNIC_DEV_RST_DONE)) { in fnic_device_reset()
2453 io_req = fnic_priv(sc)->io_req; in fnic_device_reset()
2468 io_req = fnic_priv(sc)->io_req; in fnic_device_reset()
2481 io_req = fnic_priv(sc)->io_req; in fnic_device_reset()
2490 io_req = fnic_priv(sc)->io_req; in fnic_device_reset()
2497 fnic_priv(sc)->io_req = NULL; in fnic_device_reset()
2764 io_req = fnic_priv(sc)->io_req; in fnic_abts_pending_iter()
2777 fnic_ioreq_state_to_str(fnic_priv(sc)->state)); in fnic_abts_pending_iter()
2778 cmd_state = fnic_priv(sc)->state; in fnic_abts_pending_iter()