Lines Matching refs:params

591 	struct ethernet_req_params params;  in change_mac_when_up()  local
594 memcpy(params.mac_address.addr, mac_addr_change, 6); in change_mac_when_up()
599 &params, sizeof(struct ethernet_req_params)); in change_mac_when_up()
608 struct ethernet_req_params params; in change_mac_when_down() local
611 memcpy(params.mac_address.addr, mac_addr_change, 6); in change_mac_when_down()
616 &params, sizeof(struct ethernet_req_params)); in change_mac_when_down()
637 struct ethernet_req_params params; in change_auto_neg() local
640 params.auto_negotiation = is_auto_neg; in change_auto_neg()
643 &params, sizeof(struct ethernet_req_params)); in change_auto_neg()
651 struct ethernet_req_params params; in change_to_same_auto_neg() local
654 params.auto_negotiation = is_auto_neg; in change_to_same_auto_neg()
657 &params, sizeof(struct ethernet_req_params)); in change_to_same_auto_neg()
673 struct ethernet_req_params params = { 0 }; in change_link_10bt() local
676 params.l.link_10bt = true; in change_link_10bt()
679 &params, sizeof(struct ethernet_req_params)); in change_link_10bt()
687 struct ethernet_req_params params = { 0 }; in change_link_100bt() local
690 params.l.link_100bt = true; in change_link_100bt()
693 &params, sizeof(struct ethernet_req_params)); in change_link_100bt()
701 struct ethernet_req_params params = { 0 }; in change_same_link_100bt() local
704 params.l.link_100bt = true; in change_same_link_100bt()
707 &params, sizeof(struct ethernet_req_params)); in change_same_link_100bt()
715 struct ethernet_req_params params = { 0 }; in change_unsupported_link_1000bt() local
718 params.l.link_1000bt = true; in change_unsupported_link_1000bt()
721 &params, sizeof(struct ethernet_req_params)); in change_unsupported_link_1000bt()
737 struct ethernet_req_params params; in change_duplex() local
740 params.full_duplex = is_full_duplex; in change_duplex()
743 &params, sizeof(struct ethernet_req_params)); in change_duplex()
751 struct ethernet_req_params params; in change_same_duplex() local
754 params.full_duplex = is_full_duplex; in change_same_duplex()
757 &params, sizeof(struct ethernet_req_params)); in change_same_duplex()
774 struct ethernet_req_params params; in ZTEST() local
782 &params, sizeof(struct ethernet_req_params)); in ZTEST()
786 available_priority_queues = params.priority_queues_num; in ZTEST()
796 params.qav_param.queue_id = i; in ZTEST()
799 params.qav_param.type = ETHERNET_QAV_PARAM_TYPE_STATUS; in ZTEST()
800 params.qav_param.enabled = false; in ZTEST()
803 &params, sizeof(struct ethernet_req_params)); in ZTEST()
808 params.qav_param.enabled = true; in ZTEST()
812 &params, sizeof(struct ethernet_req_params)); in ZTEST()
816 zassert_equal(false, params.qav_param.enabled, in ZTEST()
820 params.qav_param.enabled = true; in ZTEST()
823 &params, sizeof(struct ethernet_req_params)); in ZTEST()
828 params.qav_param.enabled = false; in ZTEST()
832 &params, sizeof(struct ethernet_req_params)); in ZTEST()
836 zassert_equal(true, params.qav_param.enabled, in ZTEST()
840 params.qav_param.type = in ZTEST()
842 params.qav_param.delta_bandwidth = 10U; in ZTEST()
845 &params, sizeof(struct ethernet_req_params)); in ZTEST()
850 params.qav_param.delta_bandwidth = 0U; in ZTEST()
853 &params, sizeof(struct ethernet_req_params)); in ZTEST()
856 zassert_equal(params.qav_param.delta_bandwidth, 10, in ZTEST()
860 params.qav_param.type = ETHERNET_QAV_PARAM_TYPE_IDLE_SLOPE; in ZTEST()
861 params.qav_param.idle_slope = 10U; in ZTEST()
864 &params, sizeof(struct ethernet_req_params)); in ZTEST()
869 params.qav_param.idle_slope = 0U; in ZTEST()
872 &params, sizeof(struct ethernet_req_params)); in ZTEST()
875 zassert_equal(params.qav_param.idle_slope, 10, in ZTEST()
879 params.qav_param.type = in ZTEST()
883 &params, sizeof(struct ethernet_req_params)); in ZTEST()
886 zassert_equal(params.qav_param.oper_idle_slope, 10, in ZTEST()
890 params.qav_param.type = in ZTEST()
892 params.qav_param.delta_bandwidth = -10; in ZTEST()
895 &params, sizeof(struct ethernet_req_params)); in ZTEST()
900 params.qav_param.delta_bandwidth = 101U; in ZTEST()
903 &params, sizeof(struct ethernet_req_params)); in ZTEST()
910 params.qav_param.queue_id = 0; in ZTEST()
911 params.qav_param.type = ETHERNET_QAV_PARAM_TYPE_OPER_IDLE_SLOPE; in ZTEST()
914 &params, sizeof(struct ethernet_req_params)); in ZTEST()
918 params.qav_param.queue_id = 0; in ZTEST()
919 params.qav_param.type = ETHERNET_QAV_PARAM_TYPE_TRAFFIC_CLASS; in ZTEST()
922 &params, sizeof(struct ethernet_req_params)); in ZTEST()
927 params.qav_param.type = ETHERNET_QAV_PARAM_TYPE_DELTA_BANDWIDTH; in ZTEST()
928 params.qav_param.queue_id = available_priority_queues; in ZTEST()
929 params.qav_param.delta_bandwidth = 10U; in ZTEST()
932 &params, sizeof(struct ethernet_req_params)); in ZTEST()
936 params.qav_param.type = ETHERNET_QAV_PARAM_TYPE_IDLE_SLOPE; in ZTEST()
937 params.qav_param.idle_slope = 10U; in ZTEST()
940 &params, sizeof(struct ethernet_req_params)); in ZTEST()
950 struct ethernet_req_params params; in ZTEST() local
959 &params, sizeof(struct ethernet_req_params)); in ZTEST()
963 available_ports = params.ports_num; in ZTEST()
972 params.qbv_param.port_id = i; in ZTEST()
975 params.qbv_param.type = ETHERNET_QBV_PARAM_TYPE_STATUS; in ZTEST()
976 params.qbv_param.state = ETHERNET_QBV_STATE_TYPE_ADMIN; in ZTEST()
977 params.qbv_param.enabled = false; in ZTEST()
980 &params, sizeof(struct ethernet_req_params)); in ZTEST()
985 params.qbv_param.enabled = true; in ZTEST()
989 &params, sizeof(struct ethernet_req_params)); in ZTEST()
993 zassert_equal(false, params.qbv_param.enabled, in ZTEST()
997 params.qbv_param.enabled = true; in ZTEST()
1000 &params, sizeof(struct ethernet_req_params)); in ZTEST()
1005 params.qbv_param.enabled = false; in ZTEST()
1009 &params, sizeof(struct ethernet_req_params)); in ZTEST()
1013 zassert_equal(true, params.qbv_param.enabled, in ZTEST()
1018 params.qbv_param.type = ETHERNET_QBV_PARAM_TYPE_TIME; in ZTEST()
1020 params.qbv_param.base_time.second = 10ULL; in ZTEST()
1021 params.qbv_param.base_time.fract_nsecond = 20ULL; in ZTEST()
1022 params.qbv_param.cycle_time.second = 30ULL; in ZTEST()
1023 params.qbv_param.cycle_time.nanosecond = 20; in ZTEST()
1024 params.qbv_param.extension_time = 40; in ZTEST()
1028 &params, sizeof(struct ethernet_req_params)); in ZTEST()
1033 params.qbv_param.base_time.second = 0ULL; in ZTEST()
1034 params.qbv_param.base_time.fract_nsecond = 0ULL; in ZTEST()
1035 params.qbv_param.cycle_time.second = 0ULL; in ZTEST()
1036 params.qbv_param.cycle_time.nanosecond = 0; in ZTEST()
1037 params.qbv_param.extension_time = 0; in ZTEST()
1041 &params, sizeof(struct ethernet_req_params)); in ZTEST()
1044 zassert_equal(params.qbv_param.base_time.second, 10ULL, in ZTEST()
1046 zassert_equal(params.qbv_param.base_time.fract_nsecond, 20ULL, in ZTEST()
1051 zassert_true(params.qbv_param.cycle_time.second == cycle_time.second && in ZTEST()
1052 params.qbv_param.cycle_time.nanosecond == cycle_time.nanosecond, in ZTEST()
1055 zassert_equal(params.qbv_param.extension_time, 40, in ZTEST()
1058 params.qbv_param.type = in ZTEST()
1060 params.qbv_param.gate_control.gate_status[0] = true; in ZTEST()
1061 params.qbv_param.gate_control.gate_status[1] = false; in ZTEST()
1064 &params, sizeof(struct ethernet_req_params)); in ZTEST()
1072 &params, sizeof(struct ethernet_req_params)); in ZTEST()
1076 params.qbv_param.type = in ZTEST()
1078 params.qbv_param.gate_control_list_len = 1; in ZTEST()
1081 &params, sizeof(struct ethernet_req_params)); in ZTEST()
1087 params.qbv_param.gate_control_list_len = 0; in ZTEST()
1090 &params, sizeof(struct ethernet_req_params)); in ZTEST()
1095 zassert_equal(params.qbv_param.gate_control_list_len, 1, in ZTEST()
1100 params.qbv_param.state = ETHERNET_QBV_STATE_TYPE_OPER; in ZTEST()
1101 params.qbv_param.type = ETHERNET_QBV_PARAM_TYPE_TIME; in ZTEST()
1102 params.qbv_param.extension_time = 50; in ZTEST()
1105 &params, sizeof(struct ethernet_req_params)); in ZTEST()
1110 params.qbv_param.state = ETHERNET_QBV_STATE_TYPE_ADMIN; in ZTEST()
1111 params.qbv_param.type = ETHERNET_QBV_PARAM_TYPE_TIME; in ZTEST()
1112 params.qbv_param.base_time.fract_nsecond = 1000000000; in ZTEST()
1113 params.qbv_param.cycle_time.nanosecond = 1000000000; in ZTEST()
1116 &params, sizeof(struct ethernet_req_params)); in ZTEST()
1127 struct ethernet_req_params params; in ZTEST() local
1135 &params, sizeof(struct ethernet_req_params)); in ZTEST()
1139 available_ports = params.ports_num; in ZTEST()
1148 params.qbu_param.port_id = i; in ZTEST()
1151 params.qbu_param.type = ETHERNET_QBU_PARAM_TYPE_STATUS; in ZTEST()
1152 params.qbu_param.enabled = false; in ZTEST()
1155 &params, sizeof(struct ethernet_req_params)); in ZTEST()
1161 params.qbu_param.enabled = true; in ZTEST()
1165 &params, sizeof(struct ethernet_req_params)); in ZTEST()
1169 zassert_equal(false, params.qbu_param.enabled, in ZTEST()
1173 params.qbu_param.enabled = true; in ZTEST()
1176 &params, sizeof(struct ethernet_req_params)); in ZTEST()
1181 params.qbu_param.enabled = false; in ZTEST()
1185 &params, sizeof(struct ethernet_req_params)); in ZTEST()
1189 zassert_equal(true, params.qbu_param.enabled, in ZTEST()
1194 params.qbu_param.type = ETHERNET_QBU_PARAM_TYPE_RELEASE_ADVANCE; in ZTEST()
1195 params.qbu_param.release_advance = 10; in ZTEST()
1198 &params, sizeof(struct ethernet_req_params)); in ZTEST()
1204 params.qbu_param.release_advance = 0; in ZTEST()
1207 &params, sizeof(struct ethernet_req_params)); in ZTEST()
1211 zassert_equal(params.qbu_param.release_advance, 10, in ZTEST()
1215 params.qbu_param.type = ETHERNET_QBU_PARAM_TYPE_HOLD_ADVANCE; in ZTEST()
1216 params.qbu_param.hold_advance = 20; in ZTEST()
1219 &params, sizeof(struct ethernet_req_params)); in ZTEST()
1224 params.qbu_param.hold_advance = 0; in ZTEST()
1227 &params, sizeof(struct ethernet_req_params)); in ZTEST()
1230 zassert_equal(params.qbu_param.hold_advance, 20, in ZTEST()
1233 params.qbu_param.type = in ZTEST()
1235 params.qbu_param.link_partner_status = true; in ZTEST()
1238 &params, sizeof(struct ethernet_req_params)); in ZTEST()
1244 params.qbu_param.link_partner_status = false; in ZTEST()
1247 &params, sizeof(struct ethernet_req_params)); in ZTEST()
1251 zassert_equal(params.qbu_param.link_partner_status, false, in ZTEST()
1254 params.qbu_param.type = in ZTEST()
1256 params.qbu_param.additional_fragment_size = 2; in ZTEST()
1259 &params, sizeof(struct ethernet_req_params)); in ZTEST()
1265 params.qbu_param.additional_fragment_size = 1; in ZTEST()
1268 &params, sizeof(struct ethernet_req_params)); in ZTEST()
1272 zassert_equal(params.qbu_param.additional_fragment_size, 2, in ZTEST()
1275 params.qbu_param.type = in ZTEST()
1279 j < ARRAY_SIZE(params.qbu_param.frame_preempt_statuses); in ZTEST()
1283 params.qbu_param.frame_preempt_statuses[j] = in ZTEST()
1290 &params, sizeof(struct ethernet_req_params)); in ZTEST()
1297 j < ARRAY_SIZE(params.qbu_param.frame_preempt_statuses); in ZTEST()
1299 params.qbu_param.frame_preempt_statuses[j] = in ZTEST()
1306 &params, sizeof(struct ethernet_req_params)); in ZTEST()
1312 j < ARRAY_SIZE(params.qbu_param.frame_preempt_statuses); in ZTEST()
1315 params.qbu_param.frame_preempt_statuses[j], in ZTEST()
1328 struct ethernet_req_params params; in ZTEST() local
1336 &params, sizeof(struct ethernet_req_params)); in ZTEST()
1340 available_priority_queues = params.priority_queues_num; in ZTEST()
1351 params.txtime_param.queue_id = 0; in ZTEST()
1352 params.txtime_param.type = ETHERNET_TXTIME_PARAM_TYPE_ENABLE_QUEUES; in ZTEST()
1353 params.txtime_param.enable_txtime = false; in ZTEST()
1355 &params, sizeof(struct ethernet_req_params)); in ZTEST()
1364 params.txtime_param.queue_id = i; in ZTEST()
1367 params.txtime_param.type = ETHERNET_TXTIME_PARAM_TYPE_ENABLE_QUEUES; in ZTEST()
1368 params.txtime_param.enable_txtime = false; in ZTEST()
1371 &params, sizeof(struct ethernet_req_params)); in ZTEST()
1377 params.txtime_param.enable_txtime = true; in ZTEST()
1380 &params, sizeof(struct ethernet_req_params)); in ZTEST()
1384 zassert_equal(false, params.txtime_param.enable_txtime, in ZTEST()
1388 params.txtime_param.enable_txtime = true; in ZTEST()
1390 &params, sizeof(struct ethernet_req_params)); in ZTEST()
1395 params.txtime_param.enable_txtime = false; in ZTEST()
1398 &params, sizeof(struct ethernet_req_params)); in ZTEST()
1402 zassert_equal(true, params.txtime_param.enable_txtime, in ZTEST()
1410 struct ethernet_req_params params; in change_promisc_mode() local
1413 params.promisc_mode = mode; in change_promisc_mode()
1416 &params, sizeof(struct ethernet_req_params)); in change_promisc_mode()
1434 struct ethernet_req_params params; in change_to_same_promisc_mode() local
1437 params.promisc_mode = true; in change_to_same_promisc_mode()
1440 &params, sizeof(struct ethernet_req_params)); in change_to_same_promisc_mode()