Lines Matching refs:params

32 	struct ethernet_req_params *params = (struct ethernet_req_params *)data;  in ethernet_set_config()  local
56 config.auto_negotiation = params->auto_negotiation; in ethernet_set_config()
59 if (params->l.link_10bt) { in ethernet_set_config()
66 } else if (params->l.link_100bt) { in ethernet_set_config()
73 } else if (params->l.link_1000bt) { in ethernet_set_config()
90 config.full_duplex = params->full_duplex; in ethernet_set_config()
114 memcpy(&config.mac_address, &params->mac_address, in ethernet_set_config()
123 switch (params->qav_param.type) { in ethernet_set_config()
125 if (params->qav_param.delta_bandwidth > 100) { in ethernet_set_config()
138 memcpy(&config.qav_param, &params->qav_param, in ethernet_set_config()
147 if (params->qbv_param.state == ETHERNET_QBV_STATE_TYPE_OPER) { in ethernet_set_config()
152 if (params->qbv_param.type == ETHERNET_QBV_PARAM_TYPE_TIME && in ethernet_set_config()
153 (params->qbv_param.cycle_time.nanosecond >= 1000000000 || in ethernet_set_config()
154 params->qbv_param.base_time.fract_nsecond >= 1000000000)) { in ethernet_set_config()
158 memcpy(&config.qbv_param, &params->qbv_param, in ethernet_set_config()
166 if (params->qbu_param.type == in ethernet_set_config()
174 memcpy(&config.qbu_param, &params->qbu_param, in ethernet_set_config()
186 memcpy(&config.txtime_param, &params->txtime_param, in ethernet_set_config()
194 config.promisc_mode = params->promisc_mode; in ethernet_set_config()
201 memcpy(&config.t1s_param, &params->t1s_param, in ethernet_set_config()
209 config.txinjection_mode = params->txinjection_mode; in ethernet_set_config()
216 memcpy(&config.filter, &params->filter, sizeof(struct ethernet_filter)); in ethernet_set_config()
265 struct ethernet_req_params *params = (struct ethernet_req_params *)data; in ethernet_get_config() local
296 params->priority_queues_num = config.priority_queues_num; in ethernet_get_config()
302 config.qav_param.queue_id = params->qav_param.queue_id; in ethernet_get_config()
303 config.qav_param.type = params->qav_param.type; in ethernet_get_config()
314 params->qav_param.delta_bandwidth = in ethernet_get_config()
318 params->qav_param.idle_slope = in ethernet_get_config()
322 params->qav_param.oper_idle_slope = in ethernet_get_config()
326 params->qav_param.traffic_class = in ethernet_get_config()
330 params->qav_param.enabled = config.qav_param.enabled; in ethernet_get_config()
342 params->ports_num = config.ports_num; in ethernet_get_config()
349 config.qbv_param.port_id = params->qbv_param.port_id; in ethernet_get_config()
350 config.qbv_param.type = params->qbv_param.type; in ethernet_get_config()
351 config.qbv_param.state = params->qbv_param.state; in ethernet_get_config()
356 params->qbv_param.gate_control.row; in ethernet_get_config()
368 params->qbv_param.enabled = config.qbv_param.enabled; in ethernet_get_config()
371 memcpy(&params->qbv_param.cycle_time, in ethernet_get_config()
373 sizeof(params->qbv_param.cycle_time)); in ethernet_get_config()
374 memcpy(&params->qbv_param.base_time, in ethernet_get_config()
376 sizeof(params->qbv_param.base_time)); in ethernet_get_config()
377 params->qbv_param.extension_time = in ethernet_get_config()
381 params->qbv_param.gate_control_list_len = in ethernet_get_config()
385 memcpy(&params->qbv_param.gate_control, in ethernet_get_config()
387 sizeof(params->qbv_param.gate_control)); in ethernet_get_config()
396 config.qbu_param.port_id = params->qbu_param.port_id; in ethernet_get_config()
397 config.qbu_param.type = params->qbu_param.type; in ethernet_get_config()
408 params->qbu_param.enabled = config.qbu_param.enabled; in ethernet_get_config()
411 params->qbu_param.release_advance = in ethernet_get_config()
415 params->qbu_param.hold_advance = in ethernet_get_config()
419 params->qbu_param.link_partner_status = in ethernet_get_config()
423 params->qbu_param.additional_fragment_size = in ethernet_get_config()
427 memcpy(&params->qbu_param.frame_preempt_statuses, in ethernet_get_config()
429 sizeof(params->qbu_param.frame_preempt_statuses)); in ethernet_get_config()
438 config.txtime_param.queue_id = params->txtime_param.queue_id; in ethernet_get_config()
439 config.txtime_param.type = params->txtime_param.type; in ethernet_get_config()
450 params->txtime_param.enable_txtime = in ethernet_get_config()
466 params->txinjection_mode = config.txinjection_mode; in ethernet_get_config()