Lines Matching refs:value
717 int value; in hex32_arg() local
722 value = hex_to_bin(c); in hex32_arg()
723 if (value >= 0) in hex32_arg()
724 *num |= value; in hex32_arg()
864 unsigned long value = 0; in pktgen_if_write() local
914 len = num_arg(&user_buffer[i], 10, &value); in pktgen_if_write()
919 if (value < 14 + 20 + 8) in pktgen_if_write()
920 value = 14 + 20 + 8; in pktgen_if_write()
921 if (value != pkt_dev->min_pkt_size) { in pktgen_if_write()
922 pkt_dev->min_pkt_size = value; in pktgen_if_write()
923 pkt_dev->cur_pkt_size = value; in pktgen_if_write()
931 len = num_arg(&user_buffer[i], 10, &value); in pktgen_if_write()
936 if (value < 14 + 20 + 8) in pktgen_if_write()
937 value = 14 + 20 + 8; in pktgen_if_write()
938 if (value != pkt_dev->max_pkt_size) { in pktgen_if_write()
939 pkt_dev->max_pkt_size = value; in pktgen_if_write()
940 pkt_dev->cur_pkt_size = value; in pktgen_if_write()
950 len = num_arg(&user_buffer[i], 10, &value); in pktgen_if_write()
955 if (value < 14 + 20 + 8) in pktgen_if_write()
956 value = 14 + 20 + 8; in pktgen_if_write()
957 if (value != pkt_dev->min_pkt_size) { in pktgen_if_write()
958 pkt_dev->min_pkt_size = value; in pktgen_if_write()
959 pkt_dev->max_pkt_size = value; in pktgen_if_write()
960 pkt_dev->cur_pkt_size = value; in pktgen_if_write()
967 len = num_arg(&user_buffer[i], 10, &value); in pktgen_if_write()
972 debug = value; in pktgen_if_write()
978 len = num_arg(&user_buffer[i], 10, &value); in pktgen_if_write()
983 pkt_dev->nfrags = value; in pktgen_if_write()
988 len = num_arg(&user_buffer[i], 10, &value); in pktgen_if_write()
993 if (value == 0x7FFFFFFF) in pktgen_if_write()
996 pkt_dev->delay = (u64)value; in pktgen_if_write()
1003 len = num_arg(&user_buffer[i], 10, &value); in pktgen_if_write()
1008 if (!value) in pktgen_if_write()
1010 pkt_dev->delay = pkt_dev->min_pkt_size*8*NSEC_PER_USEC/value; in pktgen_if_write()
1014 sprintf(pg_result, "OK: rate=%lu", value); in pktgen_if_write()
1018 len = num_arg(&user_buffer[i], 10, &value); in pktgen_if_write()
1023 if (!value) in pktgen_if_write()
1025 pkt_dev->delay = NSEC_PER_SEC/value; in pktgen_if_write()
1029 sprintf(pg_result, "OK: rate=%lu", value); in pktgen_if_write()
1033 len = num_arg(&user_buffer[i], 10, &value); in pktgen_if_write()
1038 if (value != pkt_dev->udp_src_min) { in pktgen_if_write()
1039 pkt_dev->udp_src_min = value; in pktgen_if_write()
1040 pkt_dev->cur_udp_src = value; in pktgen_if_write()
1046 len = num_arg(&user_buffer[i], 10, &value); in pktgen_if_write()
1051 if (value != pkt_dev->udp_dst_min) { in pktgen_if_write()
1052 pkt_dev->udp_dst_min = value; in pktgen_if_write()
1053 pkt_dev->cur_udp_dst = value; in pktgen_if_write()
1059 len = num_arg(&user_buffer[i], 10, &value); in pktgen_if_write()
1064 if (value != pkt_dev->udp_src_max) { in pktgen_if_write()
1065 pkt_dev->udp_src_max = value; in pktgen_if_write()
1066 pkt_dev->cur_udp_src = value; in pktgen_if_write()
1072 len = num_arg(&user_buffer[i], 10, &value); in pktgen_if_write()
1077 if (value != pkt_dev->udp_dst_max) { in pktgen_if_write()
1078 pkt_dev->udp_dst_max = value; in pktgen_if_write()
1079 pkt_dev->cur_udp_dst = value; in pktgen_if_write()
1085 len = num_arg(&user_buffer[i], 10, &value); in pktgen_if_write()
1088 if ((value > 0) && in pktgen_if_write()
1093 pkt_dev->clone_skb = value; in pktgen_if_write()
1099 len = num_arg(&user_buffer[i], 10, &value); in pktgen_if_write()
1104 pkt_dev->count = value; in pktgen_if_write()
1110 len = num_arg(&user_buffer[i], 10, &value); in pktgen_if_write()
1115 if (pkt_dev->src_mac_count != value) { in pktgen_if_write()
1116 pkt_dev->src_mac_count = value; in pktgen_if_write()
1124 len = num_arg(&user_buffer[i], 10, &value); in pktgen_if_write()
1129 if (pkt_dev->dst_mac_count != value) { in pktgen_if_write()
1130 pkt_dev->dst_mac_count = value; in pktgen_if_write()
1138 len = num_arg(&user_buffer[i], 10, &value); in pktgen_if_write()
1143 if ((value > 1) && in pktgen_if_write()
1148 pkt_dev->burst = value < 1 ? 1 : value; in pktgen_if_write()
1153 len = num_arg(&user_buffer[i], 10, &value); in pktgen_if_write()
1159 if (node_possible(value)) { in pktgen_if_write()
1160 pkt_dev->node = value; in pktgen_if_write()
1463 len = num_arg(&user_buffer[i], 10, &value); in pktgen_if_write()
1468 if (value > MAX_CFLOWS) in pktgen_if_write()
1469 value = MAX_CFLOWS; in pktgen_if_write()
1471 pkt_dev->cflows = value; in pktgen_if_write()
1477 len = num_arg(&user_buffer[i], 10, &value); in pktgen_if_write()
1482 pkt_dev->spi = value; in pktgen_if_write()
1488 len = num_arg(&user_buffer[i], 10, &value); in pktgen_if_write()
1493 pkt_dev->lflow = value; in pktgen_if_write()
1499 len = num_arg(&user_buffer[i], 5, &value); in pktgen_if_write()
1504 pkt_dev->queue_map_min = value; in pktgen_if_write()
1510 len = num_arg(&user_buffer[i], 5, &value); in pktgen_if_write()
1515 pkt_dev->queue_map_max = value; in pktgen_if_write()
1544 len = num_arg(&user_buffer[i], 4, &value); in pktgen_if_write()
1549 if (value <= 4095) { in pktgen_if_write()
1550 pkt_dev->vlan_id = value; /* turn on VLAN */ in pktgen_if_write()
1571 len = num_arg(&user_buffer[i], 1, &value); in pktgen_if_write()
1576 if ((value <= 7) && (pkt_dev->vlan_id != 0xffff)) { in pktgen_if_write()
1577 pkt_dev->vlan_p = value; in pktgen_if_write()
1586 len = num_arg(&user_buffer[i], 1, &value); in pktgen_if_write()
1591 if ((value <= 1) && (pkt_dev->vlan_id != 0xffff)) { in pktgen_if_write()
1592 pkt_dev->vlan_cfi = value; in pktgen_if_write()
1601 len = num_arg(&user_buffer[i], 4, &value); in pktgen_if_write()
1606 if ((value <= 4095) && ((pkt_dev->vlan_id != 0xffff))) { in pktgen_if_write()
1607 pkt_dev->svlan_id = value; /* turn on SVLAN */ in pktgen_if_write()
1628 len = num_arg(&user_buffer[i], 1, &value); in pktgen_if_write()
1633 if ((value <= 7) && (pkt_dev->svlan_id != 0xffff)) { in pktgen_if_write()
1634 pkt_dev->svlan_p = value; in pktgen_if_write()
1643 len = num_arg(&user_buffer[i], 1, &value); in pktgen_if_write()
1648 if ((value <= 1) && (pkt_dev->svlan_id != 0xffff)) { in pktgen_if_write()
1649 pkt_dev->svlan_cfi = value; in pktgen_if_write()
1690 len = num_arg(&user_buffer[i], 9, &value); in pktgen_if_write()
1695 pkt_dev->skb_priority = value; in pktgen_if_write()