Lines Matching refs:ntohl
73 if (ntohl(*pchecksum) == 0)
300 ncm->data[1] = ntohl(cmd->mode);
322 ncm->data[0] = ntohl(cmd->mode);
323 ncm->data[1] = ntohl(cmd->oem_mode);
344 ncm->data[2] = ntohl(rsp->status);
345 ncm->data[3] = ntohl(rsp->other);
346 ncm->data[4] = ntohl(rsp->oem_status);
419 ncm->data[0] = ntohl(cmd->mode);
516 ncm->data[0] = ntohl(cmd->mode);
569 ncm->data[0] = ntohl(cmd->mode);
732 mfr_id = ntohl(rsp->mfr_id);
785 ncv->fw_version = ntohl(rsp->fw_version);
788 ncv->mf_id = ntohl(rsp->mf_id);
808 nc->caps[NCSI_CAP_GENERIC].cap = ntohl(rsp->cap) &
810 nc->caps[NCSI_CAP_BC].cap = ntohl(rsp->bc_cap) &
812 nc->caps[NCSI_CAP_MC].cap = ntohl(rsp->mc_cap) &
814 nc->caps[NCSI_CAP_BUFFER].cap = ntohl(rsp->buf_cap);
815 nc->caps[NCSI_CAP_AEN].cap = ntohl(rsp->aen_cap) &
863 if (ntohl(rsp->valid_modes) & 0x1) { /* BC filter mode */
865 nc->modes[NCSI_MODE_BC].data[0] = ntohl(rsp->bc_mode);
867 if (ntohl(rsp->valid_modes) & 0x2) /* Channel enabled */
869 if (ntohl(rsp->valid_modes) & 0x4) /* Channel Tx enabled */
871 if (ntohl(rsp->valid_modes) & 0x8) /* MC filter mode */
876 nc->modes[NCSI_MODE_LINK].data[0] = ntohl(rsp->link_mode);
882 nc->modes[NCSI_MODE_AEN].data[0] = ntohl(rsp->aen_mode);
934 ncs->hnc_cnt_hi = ntohl(rsp->cnt_hi);
935 ncs->hnc_cnt_lo = ntohl(rsp->cnt_lo);
936 ncs->hnc_rx_bytes = ntohl(rsp->rx_bytes);
937 ncs->hnc_tx_bytes = ntohl(rsp->tx_bytes);
938 ncs->hnc_rx_uc_pkts = ntohl(rsp->rx_uc_pkts);
939 ncs->hnc_rx_mc_pkts = ntohl(rsp->rx_mc_pkts);
940 ncs->hnc_rx_bc_pkts = ntohl(rsp->rx_bc_pkts);
941 ncs->hnc_tx_uc_pkts = ntohl(rsp->tx_uc_pkts);
942 ncs->hnc_tx_mc_pkts = ntohl(rsp->tx_mc_pkts);
943 ncs->hnc_tx_bc_pkts = ntohl(rsp->tx_bc_pkts);
944 ncs->hnc_fcs_err = ntohl(rsp->fcs_err);
945 ncs->hnc_align_err = ntohl(rsp->align_err);
946 ncs->hnc_false_carrier = ntohl(rsp->false_carrier);
947 ncs->hnc_runt_pkts = ntohl(rsp->runt_pkts);
948 ncs->hnc_jabber_pkts = ntohl(rsp->jabber_pkts);
949 ncs->hnc_rx_pause_xon = ntohl(rsp->rx_pause_xon);
950 ncs->hnc_rx_pause_xoff = ntohl(rsp->rx_pause_xoff);
951 ncs->hnc_tx_pause_xon = ntohl(rsp->tx_pause_xon);
952 ncs->hnc_tx_pause_xoff = ntohl(rsp->tx_pause_xoff);
953 ncs->hnc_tx_s_collision = ntohl(rsp->tx_s_collision);
954 ncs->hnc_tx_m_collision = ntohl(rsp->tx_m_collision);
955 ncs->hnc_l_collision = ntohl(rsp->l_collision);
956 ncs->hnc_e_collision = ntohl(rsp->e_collision);
957 ncs->hnc_rx_ctl_frames = ntohl(rsp->rx_ctl_frames);
958 ncs->hnc_rx_64_frames = ntohl(rsp->rx_64_frames);
959 ncs->hnc_rx_127_frames = ntohl(rsp->rx_127_frames);
960 ncs->hnc_rx_255_frames = ntohl(rsp->rx_255_frames);
961 ncs->hnc_rx_511_frames = ntohl(rsp->rx_511_frames);
962 ncs->hnc_rx_1023_frames = ntohl(rsp->rx_1023_frames);
963 ncs->hnc_rx_1522_frames = ntohl(rsp->rx_1522_frames);
964 ncs->hnc_rx_9022_frames = ntohl(rsp->rx_9022_frames);
965 ncs->hnc_tx_64_frames = ntohl(rsp->tx_64_frames);
966 ncs->hnc_tx_127_frames = ntohl(rsp->tx_127_frames);
967 ncs->hnc_tx_255_frames = ntohl(rsp->tx_255_frames);
968 ncs->hnc_tx_511_frames = ntohl(rsp->tx_511_frames);
969 ncs->hnc_tx_1023_frames = ntohl(rsp->tx_1023_frames);
970 ncs->hnc_tx_1522_frames = ntohl(rsp->tx_1522_frames);
971 ncs->hnc_tx_9022_frames = ntohl(rsp->tx_9022_frames);
972 ncs->hnc_rx_valid_bytes = ntohl(rsp->rx_valid_bytes);
973 ncs->hnc_rx_runt_pkts = ntohl(rsp->rx_runt_pkts);
974 ncs->hnc_rx_jabber_pkts = ntohl(rsp->rx_jabber_pkts);
995 ncs->ncsi_rx_cmds = ntohl(rsp->rx_cmds);
996 ncs->ncsi_dropped_cmds = ntohl(rsp->dropped_cmds);
997 ncs->ncsi_cmd_type_errs = ntohl(rsp->cmd_type_errs);
998 ncs->ncsi_cmd_csum_errs = ntohl(rsp->cmd_csum_errs);
999 ncs->ncsi_rx_pkts = ntohl(rsp->rx_pkts);
1000 ncs->ncsi_tx_pkts = ntohl(rsp->tx_pkts);
1001 ncs->ncsi_tx_aen_pkts = ntohl(rsp->tx_aen_pkts);
1022 ncs->pt_tx_pkts = ntohl(rsp->tx_pkts);
1023 ncs->pt_tx_dropped = ntohl(rsp->tx_dropped);
1024 ncs->pt_tx_channel_err = ntohl(rsp->tx_channel_err);
1025 ncs->pt_tx_us_err = ntohl(rsp->tx_us_err);
1026 ncs->pt_rx_pkts = ntohl(rsp->rx_pkts);
1027 ncs->pt_rx_dropped = ntohl(rsp->rx_dropped);
1028 ncs->pt_rx_channel_err = ntohl(rsp->rx_channel_err);
1029 ncs->pt_rx_us_err = ntohl(rsp->rx_us_err);
1030 ncs->pt_rx_os_err = ntohl(rsp->rx_os_err);