Lines Matching refs:icmd
1274 fct_i_cmd_t *icmd, *next_icmd;
1319 for (icmd = iport->iport_cached_cmdlist; icmd; icmd = next_icmd) {
1320 next_icmd = icmd->icmd_next;
1321 fct_free(icmd->icmd_cmd);
1483 fct_i_cmd_t *icmd;
1485 for (icmd = irp->irp_els_list; icmd; icmd = icmd->icmd_next) {
1486 uint8_t op = (ICMD_TO_ELS(icmd))->els_req_payload[0];
1489 if (icmd->icmd_flags & ICMD_IMPLICIT)
1613 fct_i_cmd_t *icmd;
1658 if ((icmd = iport->iport_cached_cmdlist) != NULL) {
1659 iport->iport_cached_cmdlist = icmd->icmd_next;
1661 cmd = icmd->icmd_cmd;
1663 icmd = NULL;
1666 if (icmd == NULL) {
1677 icmd = (fct_i_cmd_t *)cmd->cmd_fct_private;
1678 icmd->icmd_next = NULL;
1705 icmd->icmd_flags |= ICMD_IN_TRANSITION | ICMD_KNOWN_TO_FCA;
1709 icmd->icmd_start_time = ddi_get_lbolt();
1738 fct_i_cmd_t *icmd = (fct_i_cmd_t *)cmd->cmd_fct_private;
1790 atomic_and_32(&icmd->icmd_flags, ~ICMD_IN_TRANSITION);
1820 fct_i_cmd_t *icmd = (fct_i_cmd_t *)cmd->cmd_fct_private;
1824 icmd->icmd_start_time = ddi_get_lbolt();
1827 atomic_or_32(&icmd->icmd_flags, ICMD_IMPLICIT_CMD_HAS_RESOURCE);
1839 atomic_or_32(&icmd->icmd_flags, ICMD_SESSION_AFFECTING);
1840 fct_post_to_discovery_queue(iport, irp, icmd);
1852 fct_i_cmd_t *icmd = (fct_i_cmd_t *)cmd->cmd_fct_private;
1868 iport->iport_cmd_slots[cmd_slot].slot_cmd = icmd;
1876 * If icmd is not NULL, irp_lock must be held
1880 fct_i_remote_port_t *irp, fct_i_cmd_t *icmd)
1885 if (icmd) {
1886 icmd->icmd_next = NULL;
1891 *p = icmd;
1892 atomic_or_32(&icmd->icmd_flags, ICMD_IN_IRP_QUEUE);
1941 fct_i_cmd_t *icmd = (fct_i_cmd_t *)cmd->cmd_fct_private;
1954 old = new = icmd->icmd_flags;
1959 } while (atomic_cas_32(&icmd->icmd_flags, old, new) != old);
1964 if (icmd->icmd_flags & ICMD_BEING_ABORTED)
1988 fct_i_cmd_t *icmd = (fct_i_cmd_t *)cmd->cmd_fct_private;
2000 old = new = icmd->icmd_flags;
2005 } while (atomic_cas_32(&icmd->icmd_flags, old, new) != old);
2018 fct_handle_sol_els_completion(iport, icmd);
2021 atomic_or_32(&icmd->icmd_flags, ICMD_CMD_COMPLETE);
2031 fct_i_cmd_t *icmd = (fct_i_cmd_t *)cmd->cmd_fct_private;
2050 (icmd->icmd_flags & ICMD_ABTS_RECEIVED)) {
2056 if ((icmd->icmd_flags & ICMD_ABTS_RECEIVED) &&
2084 } else if ((icmd->icmd_flags & ICMD_IMPLICIT) &&
2085 (icmd->icmd_flags & ICMD_IMPLICIT_CMD_HAS_RESOURCE)) {
2121 icmd->icmd_flags = 0;
2123 icmd->icmd_next = iport->iport_cached_cmdlist;
2124 iport->iport_cached_cmdlist = icmd;
2144 fct_i_cmd_t *icmd;
2152 icmd = (fct_i_cmd_t *)cmd->cmd_fct_private;
2156 old = new = icmd->icmd_flags;
2161 } while (atomic_cas_32(&icmd->icmd_flags, old, new) != old);
2164 atomic_and_32(&icmd->icmd_flags, ~ICMD_KNOWN_TO_FCA);
2166 atomic_and_32(&icmd->icmd_flags, ~ICMD_FCA_ABORT_CALLED);
2288 fct_i_cmd_t *icmd = NULL;
2314 icmd = CMD_TO_ICMD(cmd);
2315 els = ICMD_TO_ELS(icmd);
2316 icmd->icmd_cb = icmdcb;
2332 icmd->icmd_flags |= ICMD_IMPLICIT;
2495 fct_i_cmd_t *icmd = NULL;
2533 icmd = CMD_TO_ICMD(cmd);
2534 ct = ICMD_TO_CT(icmd);
2535 icmd->icmd_cb = icmdcb;
2536 iport = ICMD_TO_IPORT(icmd);
2759 fct_i_cmd_t *icmd = (fct_i_cmd_t *)cmd->cmd_fct_private;
2762 icmd->icmd_solcmd_next = iport->iport_solcmd_queue;
2763 iport->iport_solcmd_queue = icmd;
2764 atomic_or_32(&icmd->icmd_flags, ICMD_IN_SOLCMD_QUEUE | ICMD_SOLCMD_NEW);
2807 fct_i_cmd_t *icmd = (fct_i_cmd_t *)cmd->cmd_fct_private;
2812 ASSERT(icmd->icmd_flags & ICMD_BEING_ABORTED);
2823 atomic_and_32(&icmd->icmd_flags, ~ICMD_KNOWN_TO_FCA);
2872 fct_i_cmd_t *icmd = (fct_i_cmd_t *)cmd->cmd_fct_private;
2877 old = icmd->icmd_flags;
2882 } while (atomic_cas_32(&icmd->icmd_flags, old, new) != old);
2908 fct_i_cmd_t *icmd = (fct_i_cmd_t *)cmd->cmd_fct_private;
2915 icmd->icmd_start_time = ddi_get_lbolt();
2916 icmd->icmd_flags |= ICMD_KNOWN_TO_FCA;
2999 fct_q_for_termination_lock_held(iport, icmd, FCT_ABORTED);
3022 fct_i_cmd_t *icmd = (fct_i_cmd_t *)cmd->cmd_fct_private;
3029 fct_q_for_termination_lock_held(iport, icmd, s);
3039 fct_q_for_termination_lock_held(fct_i_local_port_t *iport, fct_i_cmd_t *icmd,
3046 old = icmd->icmd_flags;
3050 } while (atomic_cas_32(&icmd->icmd_flags, old, new) != old);
3052 icmd->icmd_start_time = ddi_get_lbolt();
3053 icmd->icmd_cmd->cmd_comp_status = s;
3055 icmd->icmd_next = NULL;
3060 *ppicmd = icmd;
3075 fct_i_cmd_t *icmd;
3088 icmd = iport->iport_cmd_slots[i].slot_cmd;
3091 old = new = icmd->icmd_flags;
3101 } while (atomic_cas_32(&icmd->icmd_flags, old, new) != old);
3103 (icmd->icmd_cmd->cmd_type == FCT_CMD_FCP_XCHG)) {
3105 icmd->icmd_cmd->cmd_specific, 0, NULL);
3240 fct_i_cmd_t *icmd;
3266 while ((icmd = *ppicmd) != NULL) {
3267 cmd = icmd->icmd_cmd;
3270 if ((icmd->icmd_flags & (ICMD_KNOWN_TO_FCA |
3272 atomic_or_32(&icmd->icmd_flags, ICMD_FCA_ABORT_CALLED);
3302 atomic_and_32(&icmd->icmd_flags,
3307 atomic_and_32(&icmd->icmd_flags,
3311 } else if (icmd->icmd_flags & ICMD_IMPLICIT) {
3314 atomic_or_32(&icmd->icmd_flags, ICMD_FCA_ABORT_CALLED);
3317 if ((icmd->icmd_flags & ICMD_KNOWN_TO_FCA) == 0)
3321 if ((icmd->icmd_flags & ICMD_IN_IRP_QUEUE) == 0)
3327 ASSERT(*ppicmd == icmd);
3335 fct_handle_sol_els_completion(iport, icmd);
3336 if (icmd->icmd_flags & ICMD_IMPLICIT) {
3337 if (IS_LOGO_ELS(icmd)) {
3343 fct_sol_ct_t *ct = ICMD_TO_CT(icmd);
3346 atomic_or_32(&icmd->icmd_flags,
3374 (icmd->icmd_start_time+timeout_ticks)) &&