Lines Matching refs:ntohl

60 	if (ntohl(*pchecksum) == 0)  in ncsi_validate_rsp_pkt()
287 ncm->data[1] = ntohl(cmd->mode); in ncsi_rsp_handler_ae()
309 ncm->data[0] = ntohl(cmd->mode); in ncsi_rsp_handler_sl()
310 ncm->data[1] = ntohl(cmd->oem_mode); in ncsi_rsp_handler_sl()
331 ncm->data[2] = ntohl(rsp->status); in ncsi_rsp_handler_gls()
332 ncm->data[3] = ntohl(rsp->other); in ncsi_rsp_handler_gls()
333 ncm->data[4] = ntohl(rsp->oem_status); in ncsi_rsp_handler_gls()
406 ncm->data[0] = ntohl(cmd->mode); in ncsi_rsp_handler_ev()
503 ncm->data[0] = ntohl(cmd->mode); in ncsi_rsp_handler_ebf()
556 ncm->data[0] = ntohl(cmd->mode); in ncsi_rsp_handler_egmf()
719 mfr_id = ntohl(rsp->mfr_id); in ncsi_rsp_handler_oem()
760 ncv->version = ntohl(rsp->ncsi_version); in ncsi_rsp_handler_gvi()
763 ncv->fw_version = ntohl(rsp->fw_version); in ncsi_rsp_handler_gvi()
766 ncv->mf_id = ntohl(rsp->mf_id); in ncsi_rsp_handler_gvi()
786 nc->caps[NCSI_CAP_GENERIC].cap = ntohl(rsp->cap) & in ncsi_rsp_handler_gc()
788 nc->caps[NCSI_CAP_BC].cap = ntohl(rsp->bc_cap) & in ncsi_rsp_handler_gc()
790 nc->caps[NCSI_CAP_MC].cap = ntohl(rsp->mc_cap) & in ncsi_rsp_handler_gc()
792 nc->caps[NCSI_CAP_BUFFER].cap = ntohl(rsp->buf_cap); in ncsi_rsp_handler_gc()
793 nc->caps[NCSI_CAP_AEN].cap = ntohl(rsp->aen_cap) & in ncsi_rsp_handler_gc()
841 if (ntohl(rsp->valid_modes) & 0x1) { /* BC filter mode */ in ncsi_rsp_handler_gp()
843 nc->modes[NCSI_MODE_BC].data[0] = ntohl(rsp->bc_mode); in ncsi_rsp_handler_gp()
845 if (ntohl(rsp->valid_modes) & 0x2) /* Channel enabled */ in ncsi_rsp_handler_gp()
847 if (ntohl(rsp->valid_modes) & 0x4) /* Channel Tx enabled */ in ncsi_rsp_handler_gp()
849 if (ntohl(rsp->valid_modes) & 0x8) /* MC filter mode */ in ncsi_rsp_handler_gp()
854 nc->modes[NCSI_MODE_LINK].data[0] = ntohl(rsp->link_mode); in ncsi_rsp_handler_gp()
860 nc->modes[NCSI_MODE_AEN].data[0] = ntohl(rsp->aen_mode); in ncsi_rsp_handler_gp()
912 ncs->hnc_cnt_hi = ntohl(rsp->cnt_hi); in ncsi_rsp_handler_gcps()
913 ncs->hnc_cnt_lo = ntohl(rsp->cnt_lo); in ncsi_rsp_handler_gcps()
914 ncs->hnc_rx_bytes = ntohl(rsp->rx_bytes); in ncsi_rsp_handler_gcps()
915 ncs->hnc_tx_bytes = ntohl(rsp->tx_bytes); in ncsi_rsp_handler_gcps()
916 ncs->hnc_rx_uc_pkts = ntohl(rsp->rx_uc_pkts); in ncsi_rsp_handler_gcps()
917 ncs->hnc_rx_mc_pkts = ntohl(rsp->rx_mc_pkts); in ncsi_rsp_handler_gcps()
918 ncs->hnc_rx_bc_pkts = ntohl(rsp->rx_bc_pkts); in ncsi_rsp_handler_gcps()
919 ncs->hnc_tx_uc_pkts = ntohl(rsp->tx_uc_pkts); in ncsi_rsp_handler_gcps()
920 ncs->hnc_tx_mc_pkts = ntohl(rsp->tx_mc_pkts); in ncsi_rsp_handler_gcps()
921 ncs->hnc_tx_bc_pkts = ntohl(rsp->tx_bc_pkts); in ncsi_rsp_handler_gcps()
922 ncs->hnc_fcs_err = ntohl(rsp->fcs_err); in ncsi_rsp_handler_gcps()
923 ncs->hnc_align_err = ntohl(rsp->align_err); in ncsi_rsp_handler_gcps()
924 ncs->hnc_false_carrier = ntohl(rsp->false_carrier); in ncsi_rsp_handler_gcps()
925 ncs->hnc_runt_pkts = ntohl(rsp->runt_pkts); in ncsi_rsp_handler_gcps()
926 ncs->hnc_jabber_pkts = ntohl(rsp->jabber_pkts); in ncsi_rsp_handler_gcps()
927 ncs->hnc_rx_pause_xon = ntohl(rsp->rx_pause_xon); in ncsi_rsp_handler_gcps()
928 ncs->hnc_rx_pause_xoff = ntohl(rsp->rx_pause_xoff); in ncsi_rsp_handler_gcps()
929 ncs->hnc_tx_pause_xon = ntohl(rsp->tx_pause_xon); in ncsi_rsp_handler_gcps()
930 ncs->hnc_tx_pause_xoff = ntohl(rsp->tx_pause_xoff); in ncsi_rsp_handler_gcps()
931 ncs->hnc_tx_s_collision = ntohl(rsp->tx_s_collision); in ncsi_rsp_handler_gcps()
932 ncs->hnc_tx_m_collision = ntohl(rsp->tx_m_collision); in ncsi_rsp_handler_gcps()
933 ncs->hnc_l_collision = ntohl(rsp->l_collision); in ncsi_rsp_handler_gcps()
934 ncs->hnc_e_collision = ntohl(rsp->e_collision); in ncsi_rsp_handler_gcps()
935 ncs->hnc_rx_ctl_frames = ntohl(rsp->rx_ctl_frames); in ncsi_rsp_handler_gcps()
936 ncs->hnc_rx_64_frames = ntohl(rsp->rx_64_frames); in ncsi_rsp_handler_gcps()
937 ncs->hnc_rx_127_frames = ntohl(rsp->rx_127_frames); in ncsi_rsp_handler_gcps()
938 ncs->hnc_rx_255_frames = ntohl(rsp->rx_255_frames); in ncsi_rsp_handler_gcps()
939 ncs->hnc_rx_511_frames = ntohl(rsp->rx_511_frames); in ncsi_rsp_handler_gcps()
940 ncs->hnc_rx_1023_frames = ntohl(rsp->rx_1023_frames); in ncsi_rsp_handler_gcps()
941 ncs->hnc_rx_1522_frames = ntohl(rsp->rx_1522_frames); in ncsi_rsp_handler_gcps()
942 ncs->hnc_rx_9022_frames = ntohl(rsp->rx_9022_frames); in ncsi_rsp_handler_gcps()
943 ncs->hnc_tx_64_frames = ntohl(rsp->tx_64_frames); in ncsi_rsp_handler_gcps()
944 ncs->hnc_tx_127_frames = ntohl(rsp->tx_127_frames); in ncsi_rsp_handler_gcps()
945 ncs->hnc_tx_255_frames = ntohl(rsp->tx_255_frames); in ncsi_rsp_handler_gcps()
946 ncs->hnc_tx_511_frames = ntohl(rsp->tx_511_frames); in ncsi_rsp_handler_gcps()
947 ncs->hnc_tx_1023_frames = ntohl(rsp->tx_1023_frames); in ncsi_rsp_handler_gcps()
948 ncs->hnc_tx_1522_frames = ntohl(rsp->tx_1522_frames); in ncsi_rsp_handler_gcps()
949 ncs->hnc_tx_9022_frames = ntohl(rsp->tx_9022_frames); in ncsi_rsp_handler_gcps()
950 ncs->hnc_rx_valid_bytes = ntohl(rsp->rx_valid_bytes); in ncsi_rsp_handler_gcps()
951 ncs->hnc_rx_runt_pkts = ntohl(rsp->rx_runt_pkts); in ncsi_rsp_handler_gcps()
952 ncs->hnc_rx_jabber_pkts = ntohl(rsp->rx_jabber_pkts); in ncsi_rsp_handler_gcps()
973 ncs->ncsi_rx_cmds = ntohl(rsp->rx_cmds); in ncsi_rsp_handler_gns()
974 ncs->ncsi_dropped_cmds = ntohl(rsp->dropped_cmds); in ncsi_rsp_handler_gns()
975 ncs->ncsi_cmd_type_errs = ntohl(rsp->cmd_type_errs); in ncsi_rsp_handler_gns()
976 ncs->ncsi_cmd_csum_errs = ntohl(rsp->cmd_csum_errs); in ncsi_rsp_handler_gns()
977 ncs->ncsi_rx_pkts = ntohl(rsp->rx_pkts); in ncsi_rsp_handler_gns()
978 ncs->ncsi_tx_pkts = ntohl(rsp->tx_pkts); in ncsi_rsp_handler_gns()
979 ncs->ncsi_tx_aen_pkts = ntohl(rsp->tx_aen_pkts); in ncsi_rsp_handler_gns()
1000 ncs->pt_tx_pkts = ntohl(rsp->tx_pkts); in ncsi_rsp_handler_gnpts()
1001 ncs->pt_tx_dropped = ntohl(rsp->tx_dropped); in ncsi_rsp_handler_gnpts()
1002 ncs->pt_tx_channel_err = ntohl(rsp->tx_channel_err); in ncsi_rsp_handler_gnpts()
1003 ncs->pt_tx_us_err = ntohl(rsp->tx_us_err); in ncsi_rsp_handler_gnpts()
1004 ncs->pt_rx_pkts = ntohl(rsp->rx_pkts); in ncsi_rsp_handler_gnpts()
1005 ncs->pt_rx_dropped = ntohl(rsp->rx_dropped); in ncsi_rsp_handler_gnpts()
1006 ncs->pt_rx_channel_err = ntohl(rsp->rx_channel_err); in ncsi_rsp_handler_gnpts()
1007 ncs->pt_rx_us_err = ntohl(rsp->rx_us_err); in ncsi_rsp_handler_gnpts()
1008 ncs->pt_rx_os_err = ntohl(rsp->rx_os_err); in ncsi_rsp_handler_gnpts()