Lines Matching refs:qbv_param
241 port_id = config->qbv_param.port_id; in eth_fake_set_config()
242 qbv_param_type = config->qbv_param.type; in eth_fake_set_config()
251 config->qbv_param.enabled; in eth_fake_set_config()
255 &config->qbv_param.cycle_time, in eth_fake_set_config()
258 config->qbv_param.extension_time; in eth_fake_set_config()
260 &config->qbv_param.base_time, in eth_fake_set_config()
265 config->qbv_param.gate_control.gate_status[0]; in eth_fake_set_config()
267 config->qbv_param.gate_control.gate_status[1]; in eth_fake_set_config()
271 config->qbv_param.gate_control_list_len; in eth_fake_set_config()
404 port_id = config->qbv_param.port_id; in eth_fake_get_config()
405 qbv_param_type = config->qbv_param.type; in eth_fake_get_config()
413 config->qbv_param.enabled = in eth_fake_get_config()
417 memcpy(&config->qbv_param.base_time, in eth_fake_get_config()
419 sizeof(config->qbv_param.base_time)); in eth_fake_get_config()
420 memcpy(&config->qbv_param.cycle_time, in eth_fake_get_config()
422 sizeof(config->qbv_param.cycle_time)); in eth_fake_get_config()
423 config->qbv_param.extension_time = in eth_fake_get_config()
427 config->qbv_param.gate_control_list_len = in eth_fake_get_config()
431 memcpy(&config->qbv_param.gate_control, in eth_fake_get_config()
433 sizeof(config->qbv_param.gate_control)); in eth_fake_get_config()
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()
985 params.qbv_param.enabled = true; in ZTEST()
993 zassert_equal(false, params.qbv_param.enabled, in ZTEST()
997 params.qbv_param.enabled = true; in ZTEST()
1005 params.qbv_param.enabled = false; 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()
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()
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()
1076 params.qbv_param.type = in ZTEST()
1078 params.qbv_param.gate_control_list_len = 1; in ZTEST()
1087 params.qbv_param.gate_control_list_len = 0; 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()
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()