Home
last modified time | relevance | path

Searched refs:SBP2_SWAP16 (Results 1 – 3 of 3) sorted by relevance

/titanic_44/usr/src/uts/common/sys/sbp2/
H A Dcommon.h38 #define SBP2_SWAP16(data) \ macro
42 (((uint32_t)SBP2_SWAP16((uint16_t)((data) & 0xffff)) << 16) | \
43 (uint32_t)SBP2_SWAP16((uint16_t)((data) >> 16)))
45 #define SBP2_SWAP16_1(data) (data) = SBP2_SWAP16(data)
49 ((uint16_t *)(data))[0] = SBP2_SWAP16(((uint16_t *)(data))[0]); \
50 ((uint16_t *)(data))[1] = SBP2_SWAP16(((uint16_t *)(data))[1]);
59 #define SBP2_SWAP16(data) (data)
/titanic_44/usr/src/uts/common/io/sbp2/
H A Dsbp2.c485 torb->to_params = SBP2_SWAP16(func | SBP2_ORB_NOTIFY | in sbp2_tgt_task_mgt_request()
487 torb->to_login_id = SBP2_SWAP16(id); in sbp2_tgt_task_mgt_request()
600 lorb->lo_params = SBP2_SWAP16(SBP2_ORB_MGT_FUNC_LOGIN | in sbp2_lun_login()
602 lorb->lo_lun = SBP2_SWAP16(lp->l_lun); in sbp2_lun_login()
603 lorb->lo_resp_len = SBP2_SWAP16(tp->t_mgt_login_resp_buf.bb_len); in sbp2_lun_login()
694 lorb->lo_params = SBP2_SWAP16(SBP2_ORB_MGT_FUNC_LOGOUT | in sbp2_lun_logout_orb()
696 lorb->lo_login_id = SBP2_SWAP16(lp->l_login_resp.lr_login_id); in sbp2_lun_logout_orb()
825 rorb->ro_params = SBP2_SWAP16(SBP2_ORB_MGT_FUNC_RECONNECT | in sbp2_ses_reconnect_orb()
827 rorb->ro_login_id = SBP2_SWAP16(lp->l_login_resp.lr_login_id); in sbp2_ses_reconnect_orb()
1183 *(uint16_t *)orb->co_data_descr = SBP2_SWAP16(nodeID); in sbp2_ses_reset_pending_tasks()
/titanic_44/usr/src/uts/common/io/1394/targets/scsa1394/
H A Dsbp2_driver.c478 pt->pt_seg_len = SBP2_SWAP16(seg->ss_len); in scsa1394_sbp2_seg2pt_default()
479 pt->pt_seg_base_hi = SBP2_SWAP16(seg->ss_baddr >> 32); in scsa1394_sbp2_seg2pt_default()
529 pt->pt_seg_len = SBP2_SWAP16(seglen); in scsa1394_sbp2_seg2pt_symbios()
530 pt->pt_seg_base_hi = SBP2_SWAP16(baddr >> 32); in scsa1394_sbp2_seg2pt_symbios()
590 orb->co_data_size = SBP2_SWAP16(cmd->sc_buf_seg[0].ss_len); in scsa1394_sbp2_cmd2orb()
597 orb->co_data_size = SBP2_SWAP16(cmd->sc_pt_cmd_size); in scsa1394_sbp2_cmd2orb()