| 745 | */ |
| 746 | |
| 747 | int dpni_set_offload(struct fsl_mc_io *mc_io, |
| 748 | uint32_t cmd_flags, |
| 749 | uint16_t token, |
| 750 | enum dpni_offload type, |
| 751 | uint32_t config) |
| 752 | { |
| 753 | struct mc_command cmd = { 0 }; |
| 754 | struct dpni_cmd_set_offload *cmd_params; |
| 755 | |
| 756 | cmd.header = mc_encode_cmd_header(DPNI_CMDID_SET_OFFLOAD, |
| 757 | cmd_flags, |
| 758 | token); |
| 759 | cmd_params = (struct dpni_cmd_set_offload *)cmd.params; |
| 760 | cmd_params->dpni_offload = type; |
| 761 | cmd_params->config = cpu_to_le32(config); |
| 762 | |
| 763 | return mc_send_command(mc_io, &cmd); |
| 764 | } |
| 765 | |
| 766 | /** |
| 767 | * dpni_get_offload() - Get DPNI offload configuration. |
no test coverage detected