Lines Matching refs:rsp_params
247 struct dpni_rsp_is_enabled *rsp_params; in dpni_is_enabled() local
261 rsp_params = (struct dpni_rsp_is_enabled *)cmd.params; in dpni_is_enabled()
262 *en = dpni_get_field(rsp_params->enabled, ENABLE); in dpni_is_enabled()
344 struct dpni_rsp_get_irq_enable *rsp_params; in dpni_get_irq_enable() local
361 rsp_params = (struct dpni_rsp_get_irq_enable *)cmd.params; in dpni_get_irq_enable()
362 *en = dpni_get_field(rsp_params->enabled, ENABLE); in dpni_get_irq_enable()
425 struct dpni_rsp_get_irq_mask *rsp_params; in dpni_get_irq_mask() local
441 rsp_params = (struct dpni_rsp_get_irq_mask *)cmd.params; in dpni_get_irq_mask()
442 *mask = le32_to_cpu(rsp_params->mask); in dpni_get_irq_mask()
467 struct dpni_rsp_get_irq_status *rsp_params; in dpni_get_irq_status() local
484 rsp_params = (struct dpni_rsp_get_irq_status *)cmd.params; in dpni_get_irq_status()
485 *status = le32_to_cpu(rsp_params->status); in dpni_get_irq_status()
538 struct dpni_rsp_get_attr *rsp_params; in dpni_get_attributes() local
553 rsp_params = (struct dpni_rsp_get_attr *)cmd.params; in dpni_get_attributes()
554 attr->options = le32_to_cpu(rsp_params->options); in dpni_get_attributes()
555 attr->num_queues = rsp_params->num_queues; in dpni_get_attributes()
556 attr->num_tcs = rsp_params->num_tcs; in dpni_get_attributes()
557 attr->mac_filter_entries = rsp_params->mac_filter_entries; in dpni_get_attributes()
558 attr->vlan_filter_entries = rsp_params->vlan_filter_entries; in dpni_get_attributes()
559 attr->qos_entries = rsp_params->qos_entries; in dpni_get_attributes()
560 attr->fs_entries = le16_to_cpu(rsp_params->fs_entries); in dpni_get_attributes()
561 attr->qos_key_size = rsp_params->qos_key_size; in dpni_get_attributes()
562 attr->fs_key_size = rsp_params->fs_key_size; in dpni_get_attributes()
563 attr->wriop_version = le16_to_cpu(rsp_params->wriop_version); in dpni_get_attributes()
619 struct dpni_rsp_get_buffer_layout *rsp_params; in dpni_get_buffer_layout() local
635 rsp_params = (struct dpni_rsp_get_buffer_layout *)cmd.params; in dpni_get_buffer_layout()
636 layout->pass_timestamp = dpni_get_field(rsp_params->flags, PASS_TS); in dpni_get_buffer_layout()
637 layout->pass_parser_result = dpni_get_field(rsp_params->flags, PASS_PR); in dpni_get_buffer_layout()
638 layout->pass_frame_status = dpni_get_field(rsp_params->flags, PASS_FS); in dpni_get_buffer_layout()
639 layout->private_data_size = le16_to_cpu(rsp_params->private_data_size); in dpni_get_buffer_layout()
640 layout->data_align = le16_to_cpu(rsp_params->data_align); in dpni_get_buffer_layout()
641 layout->data_head_room = le16_to_cpu(rsp_params->head_room); in dpni_get_buffer_layout()
642 layout->data_tail_room = le16_to_cpu(rsp_params->tail_room); in dpni_get_buffer_layout()
728 struct dpni_rsp_get_offload *rsp_params; in dpni_get_offload() local
744 rsp_params = (struct dpni_rsp_get_offload *)cmd.params; in dpni_get_offload()
745 *config = le32_to_cpu(rsp_params->config); in dpni_get_offload()
770 struct dpni_rsp_get_qdid *rsp_params; in dpni_get_qdid() local
786 rsp_params = (struct dpni_rsp_get_qdid *)cmd.params; in dpni_get_qdid()
787 *qdid = le16_to_cpu(rsp_params->qdid); in dpni_get_qdid()
807 struct dpni_rsp_get_tx_data_offset *rsp_params; in dpni_get_tx_data_offset() local
821 rsp_params = (struct dpni_rsp_get_tx_data_offset *)cmd.params; in dpni_get_tx_data_offset()
822 *data_offset = le16_to_cpu(rsp_params->data_offset); in dpni_get_tx_data_offset()
871 struct dpni_cmd_link_cfg *rsp_params; in dpni_get_link_cfg() local
885 rsp_params = (struct dpni_cmd_link_cfg *)cmd.params; in dpni_get_link_cfg()
886 cfg->rate = le32_to_cpu(rsp_params->rate); in dpni_get_link_cfg()
887 cfg->options = le64_to_cpu(rsp_params->options); in dpni_get_link_cfg()
907 struct dpni_rsp_get_link_state *rsp_params; in dpni_get_link_state() local
921 rsp_params = (struct dpni_rsp_get_link_state *)cmd.params; in dpni_get_link_state()
922 state->up = dpni_get_field(rsp_params->flags, LINK_STATE); in dpni_get_link_state()
923 state->rate = le32_to_cpu(rsp_params->rate); in dpni_get_link_state()
924 state->options = le64_to_cpu(rsp_params->options); in dpni_get_link_state()
976 struct dpni_rsp_get_max_frame_length *rsp_params; in dpni_get_max_frame_length() local
990 rsp_params = (struct dpni_rsp_get_max_frame_length *)cmd.params; in dpni_get_max_frame_length()
991 *max_frame_length = le16_to_cpu(rsp_params->max_frame_length); in dpni_get_max_frame_length()
1039 struct dpni_rsp_get_multicast_promisc *rsp_params; in dpni_get_multicast_promisc() local
1053 rsp_params = (struct dpni_rsp_get_multicast_promisc *)cmd.params; in dpni_get_multicast_promisc()
1054 *en = dpni_get_field(rsp_params->enabled, ENABLE); in dpni_get_multicast_promisc()
1102 struct dpni_rsp_get_unicast_promisc *rsp_params; in dpni_get_unicast_promisc() local
1116 rsp_params = (struct dpni_rsp_get_unicast_promisc *)cmd.params; in dpni_get_unicast_promisc()
1117 *en = dpni_get_field(rsp_params->enabled, ENABLE); in dpni_get_unicast_promisc()
1167 struct dpni_rsp_get_primary_mac_addr *rsp_params; in dpni_get_primary_mac_addr() local
1181 rsp_params = (struct dpni_rsp_get_primary_mac_addr *)cmd.params; in dpni_get_primary_mac_addr()
1183 mac_addr[5 - i] = rsp_params->mac_addr[i]; in dpni_get_primary_mac_addr()
1206 struct dpni_rsp_get_port_mac_addr *rsp_params; in dpni_get_port_mac_addr() local
1220 rsp_params = (struct dpni_rsp_get_port_mac_addr *)cmd.params; in dpni_get_port_mac_addr()
1222 mac_addr[5 - i] = rsp_params->mac_addr[i]; in dpni_get_port_mac_addr()
1479 struct dpni_rsp_get_queue *rsp_params; in dpni_get_queue() local
1497 rsp_params = (struct dpni_rsp_get_queue *)cmd.params; in dpni_get_queue()
1498 queue->destination.id = le32_to_cpu(rsp_params->dest_id); in dpni_get_queue()
1499 queue->destination.priority = rsp_params->dest_prio; in dpni_get_queue()
1500 queue->destination.type = dpni_get_field(rsp_params->flags, in dpni_get_queue()
1502 queue->flc.stash_control = dpni_get_field(rsp_params->flags, in dpni_get_queue()
1504 queue->destination.hold_active = dpni_get_field(rsp_params->flags, in dpni_get_queue()
1506 queue->flc.value = le64_to_cpu(rsp_params->flc); in dpni_get_queue()
1507 queue->user_context = le64_to_cpu(rsp_params->user_context); in dpni_get_queue()
1508 qid->fqid = le32_to_cpu(rsp_params->fqid); in dpni_get_queue()
1509 qid->qdbin = le16_to_cpu(rsp_params->qdbin); in dpni_get_queue()
1533 struct dpni_rsp_get_statistics *rsp_params; in dpni_get_statistics() local
1549 rsp_params = (struct dpni_rsp_get_statistics *)cmd.params; in dpni_get_statistics()
1551 stat->raw.counter[i] = le64_to_cpu(rsp_params->counter[i]); in dpni_get_statistics()
1626 struct dpni_rsp_get_taildrop *rsp_params; in dpni_get_taildrop() local
1645 rsp_params = (struct dpni_rsp_get_taildrop *)cmd.params; in dpni_get_taildrop()
1646 taildrop->enable = dpni_get_field(rsp_params->enable, ENABLE); in dpni_get_taildrop()
1647 taildrop->units = rsp_params->units; in dpni_get_taildrop()
1648 taildrop->threshold = le32_to_cpu(rsp_params->threshold); in dpni_get_taildrop()
1667 struct dpni_rsp_get_api_version *rsp_params; in dpni_get_api_version() local
1678 rsp_params = (struct dpni_rsp_get_api_version *)cmd.params; in dpni_get_api_version()
1679 *major_ver = le16_to_cpu(rsp_params->major); in dpni_get_api_version()
1680 *minor_ver = le16_to_cpu(rsp_params->minor); in dpni_get_api_version()
2020 struct dpni_rsp_single_step_cfg *rsp_params; in dpni_get_single_step_cfg() local
2033 rsp_params = (struct dpni_rsp_single_step_cfg *)cmd.params; in dpni_get_single_step_cfg()
2034 ptp_cfg->offset = le16_to_cpu(rsp_params->offset); in dpni_get_single_step_cfg()
2035 ptp_cfg->en = dpni_get_field(le16_to_cpu(rsp_params->flags), in dpni_get_single_step_cfg()
2037 ptp_cfg->ch_update = dpni_get_field(le16_to_cpu(rsp_params->flags), in dpni_get_single_step_cfg()
2039 ptp_cfg->peer_delay = le32_to_cpu(rsp_params->peer_delay); in dpni_get_single_step_cfg()