Lines Matching refs:buff
405 char buff[33]; /* 32B data and the last character '\0' */ in __lb_other_process() local
447 snprintf(buff + i % 16 * 2, 3, /* tailing \0*/ in __lb_other_process()
450 pr_info("%s\n", buff); in __lb_other_process()
897 char *buff = (char *)data; in hns_get_strings() local
906 memcpy(buff, hns_nic_test_strs[MAC_INTERNALLOOP_MAC], in hns_get_strings()
908 buff += ETH_GSTRING_LEN; in hns_get_strings()
910 memcpy(buff, hns_nic_test_strs[MAC_INTERNALLOOP_SERDES], in hns_get_strings()
912 buff += ETH_GSTRING_LEN; in hns_get_strings()
914 memcpy(buff, hns_nic_test_strs[MAC_INTERNALLOOP_PHY], in hns_get_strings()
918 snprintf(buff, ETH_GSTRING_LEN, "rx_packets"); in hns_get_strings()
919 buff = buff + ETH_GSTRING_LEN; in hns_get_strings()
920 snprintf(buff, ETH_GSTRING_LEN, "tx_packets"); in hns_get_strings()
921 buff = buff + ETH_GSTRING_LEN; in hns_get_strings()
922 snprintf(buff, ETH_GSTRING_LEN, "rx_bytes"); in hns_get_strings()
923 buff = buff + ETH_GSTRING_LEN; in hns_get_strings()
924 snprintf(buff, ETH_GSTRING_LEN, "tx_bytes"); in hns_get_strings()
925 buff = buff + ETH_GSTRING_LEN; in hns_get_strings()
926 snprintf(buff, ETH_GSTRING_LEN, "rx_errors"); in hns_get_strings()
927 buff = buff + ETH_GSTRING_LEN; in hns_get_strings()
928 snprintf(buff, ETH_GSTRING_LEN, "tx_errors"); in hns_get_strings()
929 buff = buff + ETH_GSTRING_LEN; in hns_get_strings()
930 snprintf(buff, ETH_GSTRING_LEN, "rx_dropped"); in hns_get_strings()
931 buff = buff + ETH_GSTRING_LEN; in hns_get_strings()
932 snprintf(buff, ETH_GSTRING_LEN, "tx_dropped"); in hns_get_strings()
933 buff = buff + ETH_GSTRING_LEN; in hns_get_strings()
934 snprintf(buff, ETH_GSTRING_LEN, "multicast"); in hns_get_strings()
935 buff = buff + ETH_GSTRING_LEN; in hns_get_strings()
936 snprintf(buff, ETH_GSTRING_LEN, "collisions"); in hns_get_strings()
937 buff = buff + ETH_GSTRING_LEN; in hns_get_strings()
938 snprintf(buff, ETH_GSTRING_LEN, "rx_over_errors"); in hns_get_strings()
939 buff = buff + ETH_GSTRING_LEN; in hns_get_strings()
940 snprintf(buff, ETH_GSTRING_LEN, "rx_crc_errors"); in hns_get_strings()
941 buff = buff + ETH_GSTRING_LEN; in hns_get_strings()
942 snprintf(buff, ETH_GSTRING_LEN, "rx_frame_errors"); in hns_get_strings()
943 buff = buff + ETH_GSTRING_LEN; in hns_get_strings()
944 snprintf(buff, ETH_GSTRING_LEN, "rx_fifo_errors"); in hns_get_strings()
945 buff = buff + ETH_GSTRING_LEN; in hns_get_strings()
946 snprintf(buff, ETH_GSTRING_LEN, "rx_missed_errors"); in hns_get_strings()
947 buff = buff + ETH_GSTRING_LEN; in hns_get_strings()
948 snprintf(buff, ETH_GSTRING_LEN, "tx_aborted_errors"); in hns_get_strings()
949 buff = buff + ETH_GSTRING_LEN; in hns_get_strings()
950 snprintf(buff, ETH_GSTRING_LEN, "tx_carrier_errors"); in hns_get_strings()
951 buff = buff + ETH_GSTRING_LEN; in hns_get_strings()
952 snprintf(buff, ETH_GSTRING_LEN, "tx_fifo_errors"); in hns_get_strings()
953 buff = buff + ETH_GSTRING_LEN; in hns_get_strings()
954 snprintf(buff, ETH_GSTRING_LEN, "tx_heartbeat_errors"); in hns_get_strings()
955 buff = buff + ETH_GSTRING_LEN; in hns_get_strings()
956 snprintf(buff, ETH_GSTRING_LEN, "rx_length_errors"); in hns_get_strings()
957 buff = buff + ETH_GSTRING_LEN; in hns_get_strings()
958 snprintf(buff, ETH_GSTRING_LEN, "tx_window_errors"); in hns_get_strings()
959 buff = buff + ETH_GSTRING_LEN; in hns_get_strings()
960 snprintf(buff, ETH_GSTRING_LEN, "rx_compressed"); in hns_get_strings()
961 buff = buff + ETH_GSTRING_LEN; in hns_get_strings()
962 snprintf(buff, ETH_GSTRING_LEN, "tx_compressed"); in hns_get_strings()
963 buff = buff + ETH_GSTRING_LEN; in hns_get_strings()
964 snprintf(buff, ETH_GSTRING_LEN, "netdev_rx_dropped"); in hns_get_strings()
965 buff = buff + ETH_GSTRING_LEN; in hns_get_strings()
966 snprintf(buff, ETH_GSTRING_LEN, "netdev_tx_dropped"); in hns_get_strings()
967 buff = buff + ETH_GSTRING_LEN; in hns_get_strings()
969 snprintf(buff, ETH_GSTRING_LEN, "netdev_tx_timeout"); in hns_get_strings()
970 buff = buff + ETH_GSTRING_LEN; in hns_get_strings()
972 h->dev->ops->get_strings(h, stringset, (u8 *)buff); in hns_get_strings()