Lines Matching defs:cfg
193 * @cfg: Rx queue configuration
198 u8 queue, const struct dpseci_rx_queue_cfg *cfg)
207 cmd_params->dest_id = cpu_to_le32(cfg->dest_cfg.dest_id);
208 cmd_params->priority = cfg->dest_cfg.priority;
211 cfg->dest_cfg.dest_type);
212 cmd_params->user_ctx = cpu_to_le64(cfg->user_ctx);
213 cmd_params->options = cpu_to_le32(cfg->options);
215 cfg->order_preservation_en);
377 * @cfg: congestion notification configuration
382 u16 token, const struct dpseci_congestion_notification_cfg *cfg)
392 cmd_params->dest_id = cpu_to_le32(cfg->dest_cfg.dest_id);
393 cmd_params->notification_mode = cpu_to_le16(cfg->notification_mode);
394 cmd_params->priority = cfg->dest_cfg.priority;
396 cfg->dest_cfg.dest_type);
397 dpseci_set_field(cmd_params->options, CGN_UNITS, cfg->units);
398 cmd_params->message_iova = cpu_to_le64(cfg->message_iova);
399 cmd_params->message_ctx = cpu_to_le64(cfg->message_ctx);
400 cmd_params->threshold_entry = cpu_to_le32(cfg->threshold_entry);
401 cmd_params->threshold_exit = cpu_to_le32(cfg->threshold_exit);
412 * @cfg: congestion notification configuration
417 u16 token, struct dpseci_congestion_notification_cfg *cfg)
432 cfg->dest_cfg.dest_id = le32_to_cpu(rsp_params->dest_id);
433 cfg->notification_mode = le16_to_cpu(rsp_params->notification_mode);
434 cfg->dest_cfg.priority = rsp_params->priority;
435 cfg->dest_cfg.dest_type = dpseci_get_field(rsp_params->options,
437 cfg->units = dpseci_get_field(rsp_params->options, CGN_UNITS);
438 cfg->message_iova = le64_to_cpu(rsp_params->message_iova);
439 cfg->message_ctx = le64_to_cpu(rsp_params->message_ctx);
440 cfg->threshold_entry = le32_to_cpu(rsp_params->threshold_entry);
441 cfg->threshold_exit = le32_to_cpu(rsp_params->threshold_exit);