Lines Matching refs:s_id

184 static int sid_logged_in(struct fc_info *fi, u_int s_id);
1018 u_int type_of_frame, s_id;
1066 s_id = (u_int)ntohl(*(buff_addr + 3)) & 0x00FFFFFF;
1069 DPRINTK("type_of_frame = %x, s_id = %x, ox_id = %x", type_of_frame, s_id, received_ox_id);
1147 u_int s_id, rctl, frame_class, burst_len, transfered_len, len = 0;
1162 s_id = ntohl(*(buff_addr + 3)) & 0x00FFFFFF;
1178 if (q->d_id == s_id) {
1190 build_ODB(fi, fi->g.seq_id, s_id, burst_len, 0, mtu, ox_id, rx_id, 0, 0, frame_class << 16);
1254 …DPRINTK1("BA_ACC received from S_ID 0x%x with OX_ID = %x in response to %x", s_id, ox_id, bls_type…
1269 …DPRINTK1("BA_RJT received from S_ID 0x%x with OX_ID = %x in response to %x", s_id, ox_id, bls_type…
1282 DPRINTK1("Frame with R_CTL = %x received from S_ID 0x%x with OX_ID %x", rctl, s_id, ox_id);
1302 u_int fcp_status, fcp_rsp_info_len = 0, fcp_sense_info_len = 0, s_id;
1345 s_id = ntohl(*(buff_addr + 3)) & 0x00FFFFFF;
1455 u_int class_of_frame, type_of_frame, s_id, els_type = 0, rctl;
1471 s_id = ntohl(*(buff_addr + 3)) & 0x00FFFFFF;
1481 DPRINTK1("ABTS received from S_ID 0x%x with OX_ID = %x", s_id, received_ox_id);
1487 login_state = sid_logged_in(fi, s_id);
1490 if (s_id != fi->g.my_id) {
1492 DPRINTK1("PLOGI received from D_ID 0x%x with 0X_ID = %x", s_id, received_ox_id);
1494 tx_logi_acc(fi, ELS_ACC, s_id, received_ox_id);
1500 tx_ls_rjt(fi, s_id, received_ox_id, cmnd_code, expln_code);
1506 DPRINTK1("ELS_ACC received from D_ID 0x%x in response to ELS %x", s_id, els_type);
1510 tx_prli(fi, ELS_PRLI, s_id, OX_ID_FIRST_SEQUENCE);
1537 tx_logo(fi, s_id, OX_ID_FIRST_SEQUENCE);
1542 DPRINTK1("ELS_PDISC received from D_ID 0x%x", s_id);
1543 tx_logo(fi, s_id, received_ox_id);
1546 DPRINTK1("ELS_ADISC received from D_ID 0x%x", s_id);
1548 tx_adisc(fi, ELS_ACC, s_id, received_ox_id);
1550 tx_logo(fi, s_id, received_ox_id);
1553 DPRINTK1("ELS_PRLI received from D_ID 0x%x", s_id);
1555 tx_prli(fi, ELS_ACC, s_id, received_ox_id);
1559 tx_logo(fi, s_id, received_ox_id);
1562 DPRINTK1("ELS_PRLO received from D_ID 0x%x", s_id);
1564 tx_logo(fi, s_id, received_ox_id);
1568 tx_ls_rjt(fi, s_id, received_ox_id, CMND_NOT_SUPP, NO_EXPLN);
1571 tx_prli(fi, ELS_ACC, s_id, received_ox_id);
1577 DPRINTK1("ELS_LS_RJT received from D_ID 0x%x in response to %x", s_id, els_type);
1582 tx_logi(fi, ELS_PLOGI, s_id);
1588 DPRINTK1("ELS_LOGO received from D_ID 0x%x in response to %x", s_id, els_type);
1590 tx_acc(fi, s_id, received_ox_id);
1592 tx_logi(fi, ELS_PLOGI, s_id);
1595 DPRINTK1("ELS_RSCN received from D_ID 0x%x", s_id);
1596 tx_acc(fi, s_id, received_ox_id);
1602 DPRINTK1("ELS_FARP_REQ received from D_ID 0x%x", s_id);
1605 DPRINTK1("ELS_ABTX received from D_ID 0x%x", s_id);
1607 tx_ls_rjt(fi, s_id, received_ox_id, CMND_NOT_SUPP, NO_EXPLN);
1609 tx_logo(fi, s_id, received_ox_id);
1612 DPRINTK1("ELS_FLOGI received from D_ID 0x%x", s_id);
1626 tx_ls_rjt(fi, s_id, received_ox_id, CMND_NOT_SUPP, NO_EXPLN);
1628 tx_logo(fi, s_id, received_ox_id);
1632 DPRINTK1("ELS_ADVC received from D_ID 0x%x", s_id);
1634 tx_ls_rjt(fi, s_id, received_ox_id, CMND_NOT_SUPP, NO_EXPLN);
1636 tx_logo(fi, s_id, received_ox_id);
1639 DPRINTK1("ELS_ECHO received from D_ID 0x%x", s_id);
1641 tx_ls_rjt(fi, s_id, received_ox_id, CMND_NOT_SUPP, NO_EXPLN);
1643 tx_logo(fi, s_id, received_ox_id);
1646 DPRINTK1("ELS_ESTC received from D_ID 0x%x", s_id);
1648 tx_ls_rjt(fi, s_id, received_ox_id, CMND_NOT_SUPP, NO_EXPLN);
1650 tx_logo(fi, s_id, received_ox_id);
1653 DPRINTK1("ELS_ESTS received from D_ID 0x%x", s_id);
1655 tx_ls_rjt(fi, s_id, received_ox_id, CMND_NOT_SUPP, NO_EXPLN);
1657 tx_logo(fi, s_id, received_ox_id);
1660 DPRINTK1("ELS_RCS received from D_ID 0x%x", s_id);
1662 tx_ls_rjt(fi, s_id, received_ox_id, CMND_NOT_SUPP, NO_EXPLN);
1664 tx_logo(fi, s_id, received_ox_id);
1667 DPRINTK1("ELS_RES received from D_ID 0x%x", s_id);
1669 tx_ls_rjt(fi, s_id, received_ox_id, CMND_NOT_SUPP, NO_EXPLN);
1671 tx_logo(fi, s_id, received_ox_id);
1674 DPRINTK1("ELS_RLS received from D_ID 0x%x", s_id);
1676 tx_ls_rjt(fi, s_id, received_ox_id, CMND_NOT_SUPP, NO_EXPLN);
1678 tx_logo(fi, s_id, received_ox_id);
1681 DPRINTK1("ELS_RRQ received from D_ID 0x%x", s_id);
1683 tx_ls_rjt(fi, s_id, received_ox_id, CMND_NOT_SUPP, NO_EXPLN);
1685 tx_logo(fi, s_id, received_ox_id);
1688 DPRINTK1("ELS_RSS received from D_ID 0x%x", s_id);
1690 tx_ls_rjt(fi, s_id, received_ox_id, CMND_NOT_SUPP, NO_EXPLN);
1692 tx_logo(fi, s_id, received_ox_id);
1695 DPRINTK1("ELS_RTV received from D_ID 0x%x", s_id);
1697 tx_ls_rjt(fi, s_id, received_ox_id, CMND_NOT_SUPP, NO_EXPLN);
1699 tx_logo(fi, s_id, received_ox_id);
1702 DPRINTK1("ELS_RSI received from D_ID 0x%x", s_id);
1704 tx_ls_rjt(fi, s_id, received_ox_id, CMND_NOT_SUPP, NO_EXPLN);
1706 tx_logo(fi, s_id, received_ox_id);
1710 DPRINTK1("ELS_TEST received from D_ID 0x%x", s_id);
1713 DPRINTK1("ELS_RNC received from D_ID 0x%x", s_id);
1715 tx_ls_rjt(fi, s_id, received_ox_id, CMND_NOT_SUPP, NO_EXPLN);
1717 tx_logo(fi, s_id, received_ox_id);
1720 DPRINTK1("ELS_RVCS received from D_ID 0x%x", s_id);
1722 tx_ls_rjt(fi, s_id, received_ox_id, CMND_NOT_SUPP, NO_EXPLN);
1724 tx_logo(fi, s_id, received_ox_id);
1727 DPRINTK1("ELS_TPLS received from D_ID 0x%x", s_id);
1729 tx_ls_rjt(fi, s_id, received_ox_id, CMND_NOT_SUPP, NO_EXPLN);
1731 tx_logo(fi, s_id, received_ox_id);
1734 DPRINTK1("ELS_GAID received from D_ID 0x%x", s_id);
1736 tx_ls_rjt(fi, s_id, received_ox_id, CMND_NOT_SUPP, NO_EXPLN);
1738 tx_logo(fi, s_id, received_ox_id);
1741 DPRINTK1("ELS_FACT received from D_ID 0x%x", s_id);
1743 tx_ls_rjt(fi, s_id, received_ox_id, CMND_NOT_SUPP, NO_EXPLN);
1745 tx_logo(fi, s_id, received_ox_id);
1749 DPRINTK1("ELS_FAN received from D_ID 0x%x", s_id);
1750 tx_ls_rjt(fi, s_id, received_ox_id, CMND_NOT_SUPP, NO_EXPLN);
1753 DPRINTK1("ELS_FDACT received from D_ID 0x%x", s_id);
1755 tx_ls_rjt(fi, s_id, received_ox_id, CMND_NOT_SUPP, NO_EXPLN);
1757 tx_logo(fi, s_id, received_ox_id);
1760 DPRINTK1("ELS_NACT received from D_ID 0x%x", s_id);
1762 tx_ls_rjt(fi, s_id, received_ox_id, CMND_NOT_SUPP, NO_EXPLN);
1764 tx_logo(fi, s_id, received_ox_id);
1767 DPRINTK1("ELS_NDACT received from D_ID 0x%x", s_id);
1769 tx_ls_rjt(fi, s_id, received_ox_id, CMND_NOT_SUPP, NO_EXPLN);
1771 tx_logo(fi, s_id, received_ox_id);
1774 DPRINTK1("ELS_QoSR received from D_ID 0x%x", s_id);
1776 tx_ls_rjt(fi, s_id, received_ox_id, CMND_NOT_SUPP, NO_EXPLN);
1778 tx_logo(fi, s_id, received_ox_id);
1781 DPRINTK1("ELS_FDISC received from D_ID 0x%x", s_id);
1783 tx_ls_rjt(fi, s_id, received_ox_id, CMND_NOT_SUPP, NO_EXPLN);
1785 tx_logo(fi, s_id, received_ox_id);
1788 DPRINTK1("ELS Frame %x received from D_ID 0x%x", class_of_frame, s_id);
1790 tx_ls_rjt(fi, s_id, received_ox_id, CMND_NOT_SUPP, NO_EXPLN);
1792 tx_logo(fi, s_id, received_ox_id);
1801 DPRINTK1("FCS_ACC received from D_ID 0x%x in response to %x", s_id, els_type);
1806 DPRINTK1("FCS_REJECT received from D_ID 0x%x in response to %x", s_id, els_type);
1814 T_MSG("Frame Type %x received from %x", type_of_frame, s_id);
2505 fi->g.rfc_4.s_id = htonl(fi->g.my_id);
3354 u_int s_id;
3359 s_id = ntohl(*(base_ptr + 3)) & 0x00FFFFFF;
3364 if ((s_id != q->d_id) || (memcmp(node_name, q->node_name, NODE_NAME_LEN) != 0)) {
3386 u_int s_id;
3390 s_id = ntohl(*(base_ptr + 3)) & 0x00FFFFFF;
3395 if (s_id != q->d_id) {
3398 q->d_id = s_id;
3419 p->d_id = s_id;
3441 u_int s_id;
3443 s_id = ntohl(*(base_ptr + 3)) & 0x00FFFFFF;
3448 if (s_id == q->d_id) {
3460 DPRINTK1("ELS_LOGO received from node 0x%x which is not logged-in", s_id);
3471 tx_ls_rjt(fi, s_id, received_ox_id, LOGICAL_ERR, RECV_FIELD_SIZE);
3508 tx_ls_rjt(fi, s_id, received_ox_id, LOGICAL_ERR, NO_EXPLN);
3552 static int sid_logged_in(struct fc_info *fi, u_int s_id)
3556 if ((temp->d_id == s_id) && (temp->login == LOGIN_COMPLETED)) {
3563 if ((temp->d_id == s_id) && (temp->login != LOGIN_COMPLETED))
3573 u_int s_id;
3575 s_id = ntohl(*(buff_addr + 3)) & 0x00FFFFFF;
3578 if ((temp->d_id == s_id) && (temp->login == LOGIN_COMPLETED)) {
3620 u_int s_id;
3622 s_id = ntohl(*(buff_addr + 3)) & 0x00FFFFFF;
3630 if ((temp->d_id == s_id) && (memcmp(node_name, temp->node_name, NODE_NAME_LEN) == 0)) {