/titanic_44/usr/src/uts/common/io/comstar/port/fcoet/ |
H A D | fcoet_eth.c | 124 static int fcoet_process_unsol_flogi_req(fcoet_exchange_t *xch); 250 fcoet_exchange_t *xch = FRM2TFM(frm)->tfm_xch; in fcoet_release_sol_frame() local 258 if (xch && xch->xch_flags & XCH_FLAG_FCT_CALLED_ABORT) { in fcoet_release_sol_frame() 259 FCOET_RELE_XCHG(xch); in fcoet_release_sol_frame() 271 if (xch && xch->xch_flags & XCH_FLAG_FCT_CALLED_ABORT) { in fcoet_release_sol_frame() 272 FCOET_RELE_XCHG(xch); in fcoet_release_sol_frame() 282 if (xch && xch->xch_flags & XCH_FLAG_FCT_CALLED_ABORT) { in fcoet_release_sol_frame() 283 FCOET_RELE_XCHG(xch); in fcoet_release_sol_frame() 377 fcoet_exchange_t *xch, *xch_tmp; in fcoet_create_unsol_exchange() local 421 xch = CMD2XCH(cmd); in fcoet_create_unsol_exchange() [all …]
|
H A D | fcoet_fc.c | 221 fcoet_exchange_t *xch = CMD2XCH(cmd); in fcoet_xfer_scsi_data() local 223 ASSERT(!xch->xch_dbufs[dbuf->db_relative_offset/FCOET_MAX_DBUF_LEN]); in fcoet_xfer_scsi_data() 224 xch->xch_dbufs[dbuf->db_relative_offset/FCOET_MAX_DBUF_LEN] = dbuf; in fcoet_xfer_scsi_data() 228 xch->xch_left_data_size = in fcoet_xfer_scsi_data() 229 XCH2TASK(xch)->task_expected_xfer_length; in fcoet_xfer_scsi_data() 306 FFM_SEQ_CNT(xch->xch_sequence_no, frm); in fcoet_xfer_scsi_data() 307 atomic_inc_8(&xch->xch_sequence_no); in fcoet_xfer_scsi_data() 403 fcoet_exchange_t *xch; in fcoet_send_sol_flogi() local 414 xch = CMD2XCH(cmd); in fcoet_send_sol_flogi() 417 xch->xch_oxid = atomic_add_16_nv(&ss->ss_next_sol_oxid, 1); in fcoet_send_sol_flogi() [all …]
|
H A D | fcoet.h | 226 #define FCOET_BUSY_XCHG(xch) atomic_inc_8(&(xch)->xch_ref) argument 227 #define FCOET_RELE_XCHG(xch) atomic_dec_8(&(xch)->xch_ref) argument 265 void fcoet_init_tfm(fcoe_frame_t *frm, fcoet_exchange_t *xch);
|
H A D | fcoet_eth.h | 37 int fcoet_clear_unsol_exchange(fcoet_exchange_t *xch); 38 void fcoet_clear_sol_exchange(fcoet_exchange_t *xch);
|
H A D | fcoet_fc.h | 51 void fcoet_send_sol_abts(fcoet_exchange_t *xch);
|
H A D | fcoet.c | 996 fcoet_init_tfm(fcoe_frame_t *frm, fcoet_exchange_t *xch) in fcoet_init_tfm() argument 999 FRM2TFM(frm)->tfm_xch = xch; in fcoet_init_tfm() 1030 fcoet_exchange_t *xch = (fcoet_exchange_t *)val; in fcoet_modhash_find_cb() local 1031 FCOET_BUSY_XCHG(xch); in fcoet_modhash_find_cb()
|
/titanic_44/usr/src/uts/common/io/fibre-channel/fca/fcoei/ |
H A D | fcoei_lv.c | 76 static void fcoei_initiate_ct_req(fcoei_exchange_t *xch); 77 static void fcoei_initiate_fcp_cmd(fcoei_exchange_t *xch); 78 static void fcoei_initiate_els_req(fcoei_exchange_t *xch); 79 static void fcoei_initiate_els_resp(fcoei_exchange_t *xch); 240 fcoei_exchange_t *xch = FPKT2XCH(fpkt); in fcoei_init_pkt() local 243 xch->xch_ss = ss; in fcoei_init_pkt() 244 xch->xch_fpkt = fpkt; in fcoei_init_pkt() 245 xch->xch_flags = 0; in fcoei_init_pkt() 672 fcoei_exchange_t *xch = FPKT2XCH(fpkt); in fcoei_transport() local 675 xch->xch_start_tick = ddi_get_lbolt(); in fcoei_transport() [all …]
|
H A D | fcoei.c | 72 static void fcoei_abts_exchange(fcoei_exchange_t *xch); 873 fcoei_exchange_t *xch = NULL; in fcoei_handle_comp_xch_list() local 875 while ((xch = list_remove_head(&ss->ss_comp_xch_list)) != NULL) { in fcoei_handle_comp_xch_list() 876 fcoei_complete_xch(xch, NULL, xch->xch_fpkt->pkt_state, in fcoei_handle_comp_xch_list() 877 xch->xch_fpkt->pkt_reason); in fcoei_handle_comp_xch_list() 902 fcoei_exchange_t *xch = (fcoei_exchange_t *)val; in fcoei_xch_check() local 904 ASSERT(xch->xch_ss == arg); in fcoei_xch_check() 905 if ((xch->xch_end_tick < CURRENT_CLOCK) && in fcoei_xch_check() 906 (xch->xch_ss->ss_link_state != FC_STATE_OFFLINE)) { in fcoei_xch_check() 907 if (xch->xch_flags & XCH_FLAG_IN_SOL_HASH) { in fcoei_xch_check() [all …]
|
H A D | fcoei_eth.c | 113 static void fcoei_fill_els_fpkt_resp(fcoe_frame_t *frm, fcoei_exchange_t *xch, 215 fcoei_exchange_t *xch; in fcoei_process_unsol_xfer_rdy() local 226 FMHK(sol_oxid), (mod_hash_val_t *)&xch) != 0) { in fcoei_process_unsol_xfer_rdy() 235 xch->xch_rxid = FRM_RXID(frm); in fcoei_process_unsol_xfer_rdy() 238 ASSERT(xch->xch_resid >= rcv_buf_size); in fcoei_process_unsol_xfer_rdy() 261 bcopy(offset + (uint8_t *)xch->xch_fpkt->pkt_data, in fcoei_process_unsol_xfer_rdy() 267 FFM_OXID(xch->xch_oxid, nfrm); in fcoei_process_unsol_xfer_rdy() 268 FFM_RXID(xch->xch_rxid, nfrm); in fcoei_process_unsol_xfer_rdy() 273 fcoei_init_ifm(nfrm, xch); in fcoei_process_unsol_xfer_rdy() 278 xch->xch_ss->ss_eport->eport_tx_frame(nfrm); in fcoei_process_unsol_xfer_rdy() [all …]
|
H A D | fcoei.h | 304 #define FCOEI_INIT_SOL_ID_HASH(xch, xch_tmp) \ argument 307 if (++xch->xch_ss->ss_next_sol_oxid == 0xFFFF) { \ 308 ++xch->xch_ss->ss_next_sol_oxid; \ 310 } while (mod_hash_find(xch->xch_ss->ss_sol_oxid_hash, \ 311 (mod_hash_key_t)(intptr_t)xch->xch_ss->ss_next_sol_oxid, \ 313 xch->xch_oxid = xch->xch_ss->ss_next_sol_oxid; \ 314 xch->xch_rxid = 0xFFFF; \ 315 (void) mod_hash_insert(xch->xch_ss->ss_sol_oxid_hash, \ 316 FMHK(xch->xch_oxid), (mod_hash_val_t)xch); \ 317 xch->xch_flags |= XCH_FLAG_IN_SOL_HASH; \ [all …]
|
/titanic_44/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_xprt.c | 219 fmd_xprt_class_hash_create(fmd_xprt_class_hash_t *xch, fmd_eventq_t *eq) in fmd_xprt_class_hash_create() argument 223 xch->xch_queue = eq; in fmd_xprt_class_hash_create() 224 xch->xch_hashlen = hashlen; in fmd_xprt_class_hash_create() 225 xch->xch_hash = fmd_zalloc(sizeof (void *) * hashlen, FMD_SLEEP); in fmd_xprt_class_hash_create() 229 fmd_xprt_class_hash_destroy(fmd_xprt_class_hash_t *xch) in fmd_xprt_class_hash_destroy() argument 231 fmd_eventq_t *eq = xch->xch_queue; in fmd_xprt_class_hash_destroy() 235 for (i = 0; i < xch->xch_hashlen; i++) { in fmd_xprt_class_hash_destroy() 236 for (xcp = xch->xch_hash[i]; xcp != NULL; xcp = ncp) { in fmd_xprt_class_hash_destroy() 247 fmd_free(xch->xch_hash, sizeof (void *) * xch->xch_hashlen); in fmd_xprt_class_hash_destroy() 257 fmd_xprt_class_hash_t *xch, const char *class) in fmd_xprt_class_hash_insert() argument [all …]
|
H A D | fmd_mdb.c | 1479 fmd_xprt_class_hash_t xch; in xpc_walk_init() local 1481 if (mdb_vread(&xch, sizeof (xch), wsp->walk_addr) != sizeof (xch)) { in xpc_walk_init() 1487 return (hash_walk_init(wsp, (uintptr_t)xch.xch_hash, xch.xch_hashlen, in xpc_walk_init()
|
/titanic_44/usr/src/common/mpi/ |
H A D | mpmontg.c | 142 const mp_int *xch = b; /* switch a and b, to do fewer outer loops */ in s_mp_mul_mont() local 144 a = xch; in s_mp_mul_mont()
|
H A D | mpi.c | 848 const mp_int *xch = b; /* switch a and b, to do fewer outer loops */ in mp_mul() local 850 a = xch; in mp_mul() 3595 const mp_int *xch = a; in s_mp_add_3arg() local 3597 b = xch; in s_mp_add_3arg() 4604 int val, xch; in s_mp_tovalue() local 4607 xch = ch; in s_mp_tovalue() 4609 xch = toupper(ch); in s_mp_tovalue() 4611 if(isdigit(xch)) in s_mp_tovalue() 4612 val = xch - '0'; in s_mp_tovalue() 4613 else if(isupper(xch)) in s_mp_tovalue() [all …]
|
H A D | mp_gf2m.c | 310 const mp_int *xch = b; /* switch a and b if b longer */ in mp_bmul() local 312 a = xch; in mp_bmul()
|