Lines Matching refs:cmd_params
101 struct dpni_cmd_open *cmd_params; in dpni_open() local
109 cmd_params = (struct dpni_cmd_open *)cmd.params; in dpni_open()
110 cmd_params->dpni_id = cpu_to_le32(dpni_id); in dpni_open()
167 struct dpni_cmd_set_pools *cmd_params; in dpni_set_pools() local
174 cmd_params = (struct dpni_cmd_set_pools *)cmd.params; in dpni_set_pools()
175 cmd_params->num_dpbp = cfg->num_dpbp; in dpni_set_pools()
176 cmd_params->pool_options = cfg->pool_options; in dpni_set_pools()
178 cmd_params->pool[i].dpbp_id = in dpni_set_pools()
180 cmd_params->pool[i].priority_mask = in dpni_set_pools()
182 cmd_params->buffer_size[i] = in dpni_set_pools()
184 cmd_params->backup_pool_mask |= in dpni_set_pools()
318 struct dpni_cmd_set_irq_enable *cmd_params; in dpni_set_irq_enable() local
324 cmd_params = (struct dpni_cmd_set_irq_enable *)cmd.params; in dpni_set_irq_enable()
325 dpni_set_field(cmd_params->enable, ENABLE, en); in dpni_set_irq_enable()
326 cmd_params->irq_index = irq_index; in dpni_set_irq_enable()
349 struct dpni_cmd_get_irq_enable *cmd_params; in dpni_get_irq_enable() local
358 cmd_params = (struct dpni_cmd_get_irq_enable *)cmd.params; in dpni_get_irq_enable()
359 cmd_params->irq_index = irq_index; in dpni_get_irq_enable()
396 struct dpni_cmd_set_irq_mask *cmd_params; in dpni_set_irq_mask() local
402 cmd_params = (struct dpni_cmd_set_irq_mask *)cmd.params; in dpni_set_irq_mask()
403 cmd_params->mask = cpu_to_le32(mask); in dpni_set_irq_mask()
404 cmd_params->irq_index = irq_index; in dpni_set_irq_mask()
430 struct dpni_cmd_get_irq_mask *cmd_params; in dpni_get_irq_mask() local
438 cmd_params = (struct dpni_cmd_get_irq_mask *)cmd.params; in dpni_get_irq_mask()
439 cmd_params->irq_index = irq_index; in dpni_get_irq_mask()
472 struct dpni_cmd_get_irq_status *cmd_params; in dpni_get_irq_status() local
480 cmd_params = (struct dpni_cmd_get_irq_status *)cmd.params; in dpni_get_irq_status()
481 cmd_params->status = cpu_to_le32(*status); in dpni_get_irq_status()
482 cmd_params->irq_index = irq_index; in dpni_get_irq_status()
515 struct dpni_cmd_clear_irq_status *cmd_params; in dpni_clear_irq_status() local
521 cmd_params = (struct dpni_cmd_clear_irq_status *)cmd.params; in dpni_clear_irq_status()
522 cmd_params->irq_index = irq_index; in dpni_clear_irq_status()
523 cmd_params->status = cpu_to_le32(status); in dpni_clear_irq_status()
592 struct dpni_cmd_set_errors_behavior *cmd_params; in dpni_set_errors_behavior() local
598 cmd_params = (struct dpni_cmd_set_errors_behavior *)cmd.params; in dpni_set_errors_behavior()
599 cmd_params->errors = cpu_to_le32(cfg->errors); in dpni_set_errors_behavior()
600 dpni_set_field(cmd_params->flags, ERROR_ACTION, cfg->error_action); in dpni_set_errors_behavior()
601 dpni_set_field(cmd_params->flags, FRAME_ANN, cfg->set_frame_annotation); in dpni_set_errors_behavior()
624 struct dpni_cmd_get_buffer_layout *cmd_params; in dpni_get_buffer_layout() local
632 cmd_params = (struct dpni_cmd_get_buffer_layout *)cmd.params; in dpni_get_buffer_layout()
633 cmd_params->qtype = qtype; in dpni_get_buffer_layout()
672 struct dpni_cmd_set_buffer_layout *cmd_params; in dpni_set_buffer_layout() local
678 cmd_params = (struct dpni_cmd_set_buffer_layout *)cmd.params; in dpni_set_buffer_layout()
679 cmd_params->qtype = qtype; in dpni_set_buffer_layout()
680 cmd_params->options = cpu_to_le16(layout->options); in dpni_set_buffer_layout()
681 dpni_set_field(cmd_params->flags, PASS_TS, layout->pass_timestamp); in dpni_set_buffer_layout()
682 dpni_set_field(cmd_params->flags, PASS_PR, layout->pass_parser_result); in dpni_set_buffer_layout()
683 dpni_set_field(cmd_params->flags, PASS_FS, layout->pass_frame_status); in dpni_set_buffer_layout()
684 cmd_params->private_data_size = cpu_to_le16(layout->private_data_size); in dpni_set_buffer_layout()
685 cmd_params->data_align = cpu_to_le16(layout->data_align); in dpni_set_buffer_layout()
686 cmd_params->head_room = cpu_to_le16(layout->data_head_room); in dpni_set_buffer_layout()
687 cmd_params->tail_room = cpu_to_le16(layout->data_tail_room); in dpni_set_buffer_layout()
714 struct dpni_cmd_set_offload *cmd_params; in dpni_set_offload() local
719 cmd_params = (struct dpni_cmd_set_offload *)cmd.params; in dpni_set_offload()
720 cmd_params->dpni_offload = type; in dpni_set_offload()
721 cmd_params->config = cpu_to_le32(config); in dpni_set_offload()
733 struct dpni_cmd_get_offload *cmd_params; in dpni_get_offload() local
741 cmd_params = (struct dpni_cmd_get_offload *)cmd.params; in dpni_get_offload()
742 cmd_params->dpni_offload = type; in dpni_get_offload()
775 struct dpni_cmd_get_qdid *cmd_params; in dpni_get_qdid() local
783 cmd_params = (struct dpni_cmd_get_qdid *)cmd.params; in dpni_get_qdid()
784 cmd_params->qtype = qtype; in dpni_get_qdid()
848 struct dpni_cmd_link_cfg *cmd_params; in dpni_set_link_cfg() local
854 cmd_params = (struct dpni_cmd_link_cfg *)cmd.params; in dpni_set_link_cfg()
855 cmd_params->rate = cpu_to_le32(cfg->rate); in dpni_set_link_cfg()
856 cmd_params->options = cpu_to_le64(cfg->options); in dpni_set_link_cfg()
952 struct dpni_cmd_set_max_frame_length *cmd_params; in dpni_set_max_frame_length() local
958 cmd_params = (struct dpni_cmd_set_max_frame_length *)cmd.params; in dpni_set_max_frame_length()
959 cmd_params->max_frame_length = cpu_to_le16(max_frame_length); in dpni_set_max_frame_length()
1017 struct dpni_cmd_set_multicast_promisc *cmd_params; in dpni_set_multicast_promisc() local
1023 cmd_params = (struct dpni_cmd_set_multicast_promisc *)cmd.params; in dpni_set_multicast_promisc()
1024 dpni_set_field(cmd_params->enable, ENABLE, en); in dpni_set_multicast_promisc()
1080 struct dpni_cmd_set_unicast_promisc *cmd_params; in dpni_set_unicast_promisc() local
1086 cmd_params = (struct dpni_cmd_set_unicast_promisc *)cmd.params; in dpni_set_unicast_promisc()
1087 dpni_set_field(cmd_params->enable, ENABLE, en); in dpni_set_unicast_promisc()
1143 struct dpni_cmd_set_primary_mac_addr *cmd_params; in dpni_set_primary_mac_addr() local
1150 cmd_params = (struct dpni_cmd_set_primary_mac_addr *)cmd.params; in dpni_set_primary_mac_addr()
1152 cmd_params->mac_addr[i] = mac_addr[5 - i]; in dpni_set_primary_mac_addr()
1247 struct dpni_cmd_enable_vlan_filter *cmd_params; in dpni_enable_vlan_filter() local
1254 cmd_params = (struct dpni_cmd_enable_vlan_filter *)cmd.params; in dpni_enable_vlan_filter()
1255 dpni_set_field(cmd_params->en, ENABLE, en); in dpni_enable_vlan_filter()
1283 struct dpni_cmd_vlan_id *cmd_params; in dpni_add_vlan_id() local
1290 cmd_params = (struct dpni_cmd_vlan_id *)cmd.params; in dpni_add_vlan_id()
1291 cmd_params->flags = flags; in dpni_add_vlan_id()
1292 cmd_params->tc_id = tc_id; in dpni_add_vlan_id()
1293 cmd_params->flow_id = flow_id; in dpni_add_vlan_id()
1294 cmd_params->vlan_id = cpu_to_le16(vlan_id); in dpni_add_vlan_id()
1312 struct dpni_cmd_vlan_id *cmd_params; in dpni_remove_vlan_id() local
1319 cmd_params = (struct dpni_cmd_vlan_id *)cmd.params; in dpni_remove_vlan_id()
1320 cmd_params->vlan_id = cpu_to_le16(vlan_id); in dpni_remove_vlan_id()
1341 struct dpni_cmd_add_mac_addr *cmd_params; in dpni_add_mac_addr() local
1348 cmd_params = (struct dpni_cmd_add_mac_addr *)cmd.params; in dpni_add_mac_addr()
1350 cmd_params->mac_addr[i] = mac_addr[5 - i]; in dpni_add_mac_addr()
1371 struct dpni_cmd_remove_mac_addr *cmd_params; in dpni_remove_mac_addr() local
1378 cmd_params = (struct dpni_cmd_remove_mac_addr *)cmd.params; in dpni_remove_mac_addr()
1380 cmd_params->mac_addr[i] = mac_addr[5 - i]; in dpni_remove_mac_addr()
1405 struct dpni_cmd_clear_mac_filters *cmd_params; in dpni_clear_mac_filters() local
1411 cmd_params = (struct dpni_cmd_clear_mac_filters *)cmd.params; in dpni_clear_mac_filters()
1412 dpni_set_field(cmd_params->flags, UNICAST_FILTERS, unicast); in dpni_clear_mac_filters()
1413 dpni_set_field(cmd_params->flags, MULTICAST_FILTERS, multicast); in dpni_clear_mac_filters()
1439 struct dpni_cmd_set_rx_tc_dist *cmd_params; in dpni_set_rx_tc_dist() local
1445 cmd_params = (struct dpni_cmd_set_rx_tc_dist *)cmd.params; in dpni_set_rx_tc_dist()
1446 cmd_params->dist_size = cpu_to_le16(cfg->dist_size); in dpni_set_rx_tc_dist()
1447 cmd_params->tc_id = tc_id; in dpni_set_rx_tc_dist()
1448 dpni_set_field(cmd_params->flags, DIST_MODE, cfg->dist_mode); in dpni_set_rx_tc_dist()
1449 dpni_set_field(cmd_params->flags, MISS_ACTION, cfg->fs_cfg.miss_action); in dpni_set_rx_tc_dist()
1450 cmd_params->default_flow_id = cpu_to_le16(cfg->fs_cfg.default_flow_id); in dpni_set_rx_tc_dist()
1451 cmd_params->key_cfg_iova = cpu_to_le64(cfg->key_cfg_iova); in dpni_set_rx_tc_dist()
1477 struct dpni_cmd_set_congestion_notification *cmd_params; in dpni_set_congestion_notification() local
1485 cmd_params = (struct dpni_cmd_set_congestion_notification *)cmd.params; in dpni_set_congestion_notification()
1486 cmd_params->qtype = qtype; in dpni_set_congestion_notification()
1487 cmd_params->tc = tc_id; in dpni_set_congestion_notification()
1488 cmd_params->dest_id = cpu_to_le32(cfg->dest_cfg.dest_id); in dpni_set_congestion_notification()
1489 cmd_params->notification_mode = cpu_to_le16(cfg->notification_mode); in dpni_set_congestion_notification()
1490 cmd_params->dest_priority = cfg->dest_cfg.priority; in dpni_set_congestion_notification()
1491 dpni_set_field(cmd_params->type_units, DEST_TYPE, in dpni_set_congestion_notification()
1493 dpni_set_field(cmd_params->type_units, CONG_UNITS, cfg->units); in dpni_set_congestion_notification()
1494 cmd_params->message_iova = cpu_to_le64(cfg->message_iova); in dpni_set_congestion_notification()
1495 cmd_params->message_ctx = cpu_to_le64(cfg->message_ctx); in dpni_set_congestion_notification()
1496 cmd_params->threshold_entry = cpu_to_le32(cfg->threshold_entry); in dpni_set_congestion_notification()
1497 cmd_params->threshold_exit = cpu_to_le32(cfg->threshold_exit); in dpni_set_congestion_notification()
1529 struct dpni_cmd_set_queue *cmd_params; in dpni_set_queue() local
1535 cmd_params = (struct dpni_cmd_set_queue *)cmd.params; in dpni_set_queue()
1536 cmd_params->qtype = qtype; in dpni_set_queue()
1537 cmd_params->tc = tc; in dpni_set_queue()
1538 cmd_params->index = index; in dpni_set_queue()
1539 cmd_params->options = options; in dpni_set_queue()
1540 cmd_params->dest_id = cpu_to_le32(queue->destination.id); in dpni_set_queue()
1541 cmd_params->dest_prio = queue->destination.priority; in dpni_set_queue()
1542 dpni_set_field(cmd_params->flags, DEST_TYPE, queue->destination.type); in dpni_set_queue()
1543 dpni_set_field(cmd_params->flags, STASH_CTRL, queue->flc.stash_control); in dpni_set_queue()
1544 dpni_set_field(cmd_params->flags, HOLD_ACTIVE, in dpni_set_queue()
1546 cmd_params->flc = cpu_to_le64(queue->flc.value); in dpni_set_queue()
1547 cmd_params->user_context = cpu_to_le64(queue->user_context); in dpni_set_queue()
1577 struct dpni_cmd_get_queue *cmd_params; in dpni_get_queue() local
1585 cmd_params = (struct dpni_cmd_get_queue *)cmd.params; in dpni_get_queue()
1586 cmd_params->qtype = qtype; in dpni_get_queue()
1587 cmd_params->tc = tc; in dpni_get_queue()
1588 cmd_params->index = index; in dpni_get_queue()
1631 struct dpni_cmd_get_statistics *cmd_params; in dpni_get_statistics() local
1639 cmd_params = (struct dpni_cmd_get_statistics *)cmd.params; in dpni_get_statistics()
1640 cmd_params->page_number = page; in dpni_get_statistics()
1680 struct dpni_cmd_set_taildrop *cmd_params; in dpni_set_taildrop() local
1686 cmd_params = (struct dpni_cmd_set_taildrop *)cmd.params; in dpni_set_taildrop()
1687 cmd_params->congestion_point = cg_point; in dpni_set_taildrop()
1688 cmd_params->qtype = qtype; in dpni_set_taildrop()
1689 cmd_params->tc = tc; in dpni_set_taildrop()
1690 cmd_params->index = index; in dpni_set_taildrop()
1691 dpni_set_field(cmd_params->enable, ENABLE, taildrop->enable); in dpni_set_taildrop()
1692 cmd_params->units = taildrop->units; in dpni_set_taildrop()
1693 cmd_params->threshold = cpu_to_le32(taildrop->threshold); in dpni_set_taildrop()
1724 struct dpni_cmd_get_taildrop *cmd_params; in dpni_get_taildrop() local
1732 cmd_params = (struct dpni_cmd_get_taildrop *)cmd.params; in dpni_get_taildrop()
1733 cmd_params->congestion_point = cg_point; in dpni_get_taildrop()
1734 cmd_params->qtype = qtype; in dpni_get_taildrop()
1735 cmd_params->tc = tc; in dpni_get_taildrop()
1736 cmd_params->index = index; in dpni_get_taildrop()
1810 struct dpni_cmd_set_rx_fs_dist *cmd_params; in dpni_set_rx_fs_dist() local
1817 cmd_params = (struct dpni_cmd_set_rx_fs_dist *)cmd.params; in dpni_set_rx_fs_dist()
1818 cmd_params->dist_size = cpu_to_le16(cfg->dist_size); in dpni_set_rx_fs_dist()
1819 dpni_set_field(cmd_params->enable, RX_FS_DIST_ENABLE, cfg->enable); in dpni_set_rx_fs_dist()
1820 cmd_params->tc = cfg->tc; in dpni_set_rx_fs_dist()
1821 cmd_params->miss_flow_id = cpu_to_le16(cfg->fs_miss_flow_id); in dpni_set_rx_fs_dist()
1822 cmd_params->key_cfg_iova = cpu_to_le64(cfg->key_cfg_iova); in dpni_set_rx_fs_dist()
1845 struct dpni_cmd_set_rx_hash_dist *cmd_params; in dpni_set_rx_hash_dist() local
1852 cmd_params = (struct dpni_cmd_set_rx_hash_dist *)cmd.params; in dpni_set_rx_hash_dist()
1853 cmd_params->dist_size = cpu_to_le16(cfg->dist_size); in dpni_set_rx_hash_dist()
1854 dpni_set_field(cmd_params->enable, RX_HASH_DIST_ENABLE, cfg->enable); in dpni_set_rx_hash_dist()
1855 cmd_params->tc = cfg->tc; in dpni_set_rx_hash_dist()
1856 cmd_params->key_cfg_iova = cpu_to_le64(cfg->key_cfg_iova); in dpni_set_rx_hash_dist()
1885 struct dpni_cmd_add_fs_entry *cmd_params; in dpni_add_fs_entry() local
1892 cmd_params = (struct dpni_cmd_add_fs_entry *)cmd.params; in dpni_add_fs_entry()
1893 cmd_params->tc_id = tc_id; in dpni_add_fs_entry()
1894 cmd_params->key_size = cfg->key_size; in dpni_add_fs_entry()
1895 cmd_params->index = cpu_to_le16(index); in dpni_add_fs_entry()
1896 cmd_params->key_iova = cpu_to_le64(cfg->key_iova); in dpni_add_fs_entry()
1897 cmd_params->mask_iova = cpu_to_le64(cfg->mask_iova); in dpni_add_fs_entry()
1898 cmd_params->options = cpu_to_le16(action->options); in dpni_add_fs_entry()
1899 cmd_params->flow_id = cpu_to_le16(action->flow_id); in dpni_add_fs_entry()
1900 cmd_params->flc = cpu_to_le64(action->flc); in dpni_add_fs_entry()
1923 struct dpni_cmd_remove_fs_entry *cmd_params; in dpni_remove_fs_entry() local
1930 cmd_params = (struct dpni_cmd_remove_fs_entry *)cmd.params; in dpni_remove_fs_entry()
1931 cmd_params->tc_id = tc_id; in dpni_remove_fs_entry()
1932 cmd_params->key_size = cfg->key_size; in dpni_remove_fs_entry()
1933 cmd_params->key_iova = cpu_to_le64(cfg->key_iova); in dpni_remove_fs_entry()
1934 cmd_params->mask_iova = cpu_to_le64(cfg->mask_iova); in dpni_remove_fs_entry()
1960 struct dpni_cmd_set_qos_table *cmd_params; in dpni_set_qos_table() local
1967 cmd_params = (struct dpni_cmd_set_qos_table *)cmd.params; in dpni_set_qos_table()
1968 cmd_params->default_tc = cfg->default_tc; in dpni_set_qos_table()
1969 cmd_params->key_cfg_iova = cpu_to_le64(cfg->key_cfg_iova); in dpni_set_qos_table()
1970 dpni_set_field(cmd_params->discard_on_miss, DISCARD_ON_MISS, in dpni_set_qos_table()
1997 struct dpni_cmd_add_qos_entry *cmd_params; in dpni_add_qos_entry() local
2004 cmd_params = (struct dpni_cmd_add_qos_entry *)cmd.params; in dpni_add_qos_entry()
2005 cmd_params->tc_id = tc_id; in dpni_add_qos_entry()
2006 cmd_params->key_size = cfg->key_size; in dpni_add_qos_entry()
2007 cmd_params->index = cpu_to_le16(index); in dpni_add_qos_entry()
2008 cmd_params->key_iova = cpu_to_le64(cfg->key_iova); in dpni_add_qos_entry()
2009 cmd_params->mask_iova = cpu_to_le64(cfg->mask_iova); in dpni_add_qos_entry()
2029 struct dpni_cmd_remove_qos_entry *cmd_params; in dpni_remove_qos_entry() local
2036 cmd_params = (struct dpni_cmd_remove_qos_entry *)cmd.params; in dpni_remove_qos_entry()
2037 cmd_params->key_size = cfg->key_size; in dpni_remove_qos_entry()
2038 cmd_params->key_iova = cpu_to_le64(cfg->key_iova); in dpni_remove_qos_entry()
2039 cmd_params->mask_iova = cpu_to_le64(cfg->mask_iova); in dpni_remove_qos_entry()
2089 struct dpni_cmd_set_tx_shaping *cmd_params; in dpni_set_tx_shaping() local
2096 cmd_params = (struct dpni_cmd_set_tx_shaping *)cmd.params; in dpni_set_tx_shaping()
2097 cmd_params->tx_cr_max_burst_size = cpu_to_le16(tx_cr_shaper->max_burst_size); in dpni_set_tx_shaping()
2098 cmd_params->tx_er_max_burst_size = cpu_to_le16(tx_er_shaper->max_burst_size); in dpni_set_tx_shaping()
2099 cmd_params->tx_cr_rate_limit = cpu_to_le32(tx_cr_shaper->rate_limit); in dpni_set_tx_shaping()
2100 cmd_params->tx_er_rate_limit = cpu_to_le32(tx_er_shaper->rate_limit); in dpni_set_tx_shaping()
2101 dpni_set_field(cmd_params->coupled, COUPLED, coupled); in dpni_set_tx_shaping()
2167 struct dpni_cmd_single_step_cfg *cmd_params; in dpni_set_single_step_cfg() local
2174 cmd_params = (struct dpni_cmd_single_step_cfg *)cmd.params; in dpni_set_single_step_cfg()
2175 cmd_params->offset = cpu_to_le16(ptp_cfg->offset); in dpni_set_single_step_cfg()
2176 cmd_params->peer_delay = cpu_to_le32(ptp_cfg->peer_delay); in dpni_set_single_step_cfg()
2178 flags = le16_to_cpu(cmd_params->flags); in dpni_set_single_step_cfg()
2181 cmd_params->flags = cpu_to_le16(flags); in dpni_set_single_step_cfg()