Lines Matching refs:rsp_params
249 struct dpni_rsp_is_enabled *rsp_params; in dpni_is_enabled() local
263 rsp_params = (struct dpni_rsp_is_enabled *)cmd.params; in dpni_is_enabled()
264 *en = dpni_get_field(rsp_params->enabled, ENABLE); in dpni_is_enabled()
346 struct dpni_rsp_get_irq_enable *rsp_params; in dpni_get_irq_enable() local
363 rsp_params = (struct dpni_rsp_get_irq_enable *)cmd.params; in dpni_get_irq_enable()
364 *en = dpni_get_field(rsp_params->enabled, ENABLE); in dpni_get_irq_enable()
427 struct dpni_rsp_get_irq_mask *rsp_params; in dpni_get_irq_mask() local
443 rsp_params = (struct dpni_rsp_get_irq_mask *)cmd.params; in dpni_get_irq_mask()
444 *mask = le32_to_cpu(rsp_params->mask); in dpni_get_irq_mask()
469 struct dpni_rsp_get_irq_status *rsp_params; in dpni_get_irq_status() local
486 rsp_params = (struct dpni_rsp_get_irq_status *)cmd.params; in dpni_get_irq_status()
487 *status = le32_to_cpu(rsp_params->status); in dpni_get_irq_status()
540 struct dpni_rsp_get_attr *rsp_params; in dpni_get_attributes() local
555 rsp_params = (struct dpni_rsp_get_attr *)cmd.params; in dpni_get_attributes()
556 attr->options = le32_to_cpu(rsp_params->options); in dpni_get_attributes()
557 attr->num_queues = rsp_params->num_queues; in dpni_get_attributes()
558 attr->num_tcs = rsp_params->num_tcs; in dpni_get_attributes()
559 attr->mac_filter_entries = rsp_params->mac_filter_entries; in dpni_get_attributes()
560 attr->vlan_filter_entries = rsp_params->vlan_filter_entries; in dpni_get_attributes()
561 attr->qos_entries = rsp_params->qos_entries; in dpni_get_attributes()
562 attr->fs_entries = le16_to_cpu(rsp_params->fs_entries); in dpni_get_attributes()
563 attr->qos_key_size = rsp_params->qos_key_size; in dpni_get_attributes()
564 attr->fs_key_size = rsp_params->fs_key_size; in dpni_get_attributes()
565 attr->wriop_version = le16_to_cpu(rsp_params->wriop_version); in dpni_get_attributes()
621 struct dpni_rsp_get_buffer_layout *rsp_params; in dpni_get_buffer_layout() local
637 rsp_params = (struct dpni_rsp_get_buffer_layout *)cmd.params; in dpni_get_buffer_layout()
638 layout->pass_timestamp = dpni_get_field(rsp_params->flags, PASS_TS); in dpni_get_buffer_layout()
639 layout->pass_parser_result = dpni_get_field(rsp_params->flags, PASS_PR); in dpni_get_buffer_layout()
640 layout->pass_frame_status = dpni_get_field(rsp_params->flags, PASS_FS); in dpni_get_buffer_layout()
641 layout->private_data_size = le16_to_cpu(rsp_params->private_data_size); in dpni_get_buffer_layout()
642 layout->data_align = le16_to_cpu(rsp_params->data_align); in dpni_get_buffer_layout()
643 layout->data_head_room = le16_to_cpu(rsp_params->head_room); in dpni_get_buffer_layout()
644 layout->data_tail_room = le16_to_cpu(rsp_params->tail_room); in dpni_get_buffer_layout()
730 struct dpni_rsp_get_offload *rsp_params; in dpni_get_offload() local
746 rsp_params = (struct dpni_rsp_get_offload *)cmd.params; in dpni_get_offload()
747 *config = le32_to_cpu(rsp_params->config); in dpni_get_offload()
772 struct dpni_rsp_get_qdid *rsp_params; in dpni_get_qdid() local
788 rsp_params = (struct dpni_rsp_get_qdid *)cmd.params; in dpni_get_qdid()
789 *qdid = le16_to_cpu(rsp_params->qdid); in dpni_get_qdid()
809 struct dpni_rsp_get_tx_data_offset *rsp_params; in dpni_get_tx_data_offset() local
823 rsp_params = (struct dpni_rsp_get_tx_data_offset *)cmd.params; in dpni_get_tx_data_offset()
824 *data_offset = le16_to_cpu(rsp_params->data_offset); in dpni_get_tx_data_offset()
873 struct dpni_cmd_link_cfg *rsp_params; in dpni_get_link_cfg() local
887 rsp_params = (struct dpni_cmd_link_cfg *)cmd.params; in dpni_get_link_cfg()
888 cfg->rate = le32_to_cpu(rsp_params->rate); in dpni_get_link_cfg()
889 cfg->options = le64_to_cpu(rsp_params->options); in dpni_get_link_cfg()
909 struct dpni_rsp_get_link_state *rsp_params; in dpni_get_link_state() local
923 rsp_params = (struct dpni_rsp_get_link_state *)cmd.params; in dpni_get_link_state()
924 state->up = dpni_get_field(rsp_params->flags, LINK_STATE); in dpni_get_link_state()
925 state->rate = le32_to_cpu(rsp_params->rate); in dpni_get_link_state()
926 state->options = le64_to_cpu(rsp_params->options); in dpni_get_link_state()
978 struct dpni_rsp_get_max_frame_length *rsp_params; in dpni_get_max_frame_length() local
992 rsp_params = (struct dpni_rsp_get_max_frame_length *)cmd.params; in dpni_get_max_frame_length()
993 *max_frame_length = le16_to_cpu(rsp_params->max_frame_length); in dpni_get_max_frame_length()
1041 struct dpni_rsp_get_multicast_promisc *rsp_params; in dpni_get_multicast_promisc() local
1055 rsp_params = (struct dpni_rsp_get_multicast_promisc *)cmd.params; in dpni_get_multicast_promisc()
1056 *en = dpni_get_field(rsp_params->enabled, ENABLE); in dpni_get_multicast_promisc()
1104 struct dpni_rsp_get_unicast_promisc *rsp_params; in dpni_get_unicast_promisc() local
1118 rsp_params = (struct dpni_rsp_get_unicast_promisc *)cmd.params; in dpni_get_unicast_promisc()
1119 *en = dpni_get_field(rsp_params->enabled, ENABLE); in dpni_get_unicast_promisc()
1169 struct dpni_rsp_get_primary_mac_addr *rsp_params; in dpni_get_primary_mac_addr() local
1183 rsp_params = (struct dpni_rsp_get_primary_mac_addr *)cmd.params; in dpni_get_primary_mac_addr()
1185 mac_addr[5 - i] = rsp_params->mac_addr[i]; in dpni_get_primary_mac_addr()
1208 struct dpni_rsp_get_port_mac_addr *rsp_params; in dpni_get_port_mac_addr() local
1222 rsp_params = (struct dpni_rsp_get_port_mac_addr *)cmd.params; in dpni_get_port_mac_addr()
1224 mac_addr[5 - i] = rsp_params->mac_addr[i]; in dpni_get_port_mac_addr()
1574 struct dpni_rsp_get_queue *rsp_params; in dpni_get_queue() local
1592 rsp_params = (struct dpni_rsp_get_queue *)cmd.params; in dpni_get_queue()
1593 queue->destination.id = le32_to_cpu(rsp_params->dest_id); in dpni_get_queue()
1594 queue->destination.priority = rsp_params->dest_prio; in dpni_get_queue()
1595 queue->destination.type = dpni_get_field(rsp_params->flags, in dpni_get_queue()
1597 queue->flc.stash_control = dpni_get_field(rsp_params->flags, in dpni_get_queue()
1599 queue->destination.hold_active = dpni_get_field(rsp_params->flags, in dpni_get_queue()
1601 queue->flc.value = le64_to_cpu(rsp_params->flc); in dpni_get_queue()
1602 queue->user_context = le64_to_cpu(rsp_params->user_context); in dpni_get_queue()
1603 qid->fqid = le32_to_cpu(rsp_params->fqid); in dpni_get_queue()
1604 qid->qdbin = le16_to_cpu(rsp_params->qdbin); in dpni_get_queue()
1628 struct dpni_rsp_get_statistics *rsp_params; in dpni_get_statistics() local
1644 rsp_params = (struct dpni_rsp_get_statistics *)cmd.params; in dpni_get_statistics()
1646 stat->raw.counter[i] = le64_to_cpu(rsp_params->counter[i]); in dpni_get_statistics()
1721 struct dpni_rsp_get_taildrop *rsp_params; in dpni_get_taildrop() local
1740 rsp_params = (struct dpni_rsp_get_taildrop *)cmd.params; in dpni_get_taildrop()
1741 taildrop->enable = dpni_get_field(rsp_params->enable, ENABLE); in dpni_get_taildrop()
1742 taildrop->units = rsp_params->units; in dpni_get_taildrop()
1743 taildrop->threshold = le32_to_cpu(rsp_params->threshold); in dpni_get_taildrop()
1762 struct dpni_rsp_get_api_version *rsp_params; in dpni_get_api_version() local
1773 rsp_params = (struct dpni_rsp_get_api_version *)cmd.params; in dpni_get_api_version()
1774 *major_ver = le16_to_cpu(rsp_params->major); in dpni_get_api_version()
1775 *minor_ver = le16_to_cpu(rsp_params->minor); in dpni_get_api_version()
2119 struct dpni_rsp_single_step_cfg *rsp_params; in dpni_get_single_step_cfg() local
2132 rsp_params = (struct dpni_rsp_single_step_cfg *)cmd.params; in dpni_get_single_step_cfg()
2133 ptp_cfg->offset = le16_to_cpu(rsp_params->offset); in dpni_get_single_step_cfg()
2134 ptp_cfg->en = dpni_get_field(le16_to_cpu(rsp_params->flags), in dpni_get_single_step_cfg()
2136 ptp_cfg->ch_update = dpni_get_field(le16_to_cpu(rsp_params->flags), in dpni_get_single_step_cfg()
2138 ptp_cfg->peer_delay = le32_to_cpu(rsp_params->peer_delay); in dpni_get_single_step_cfg()
2140 le32_to_cpu(rsp_params->ptp_onestep_reg_base); in dpni_get_single_step_cfg()