Lines Matching +full:qdma +full:- +full:error

1 // SPDX-License-Identifier: GPL-2.0
57 * dpdmai_open() - Open a control session for the specified object
71 * Return: '0' on Success; Error code otherwise.
85 cmd_params->dpdmai_id = cpu_to_le32(dpdmai_id); in dpdmai_open()
100 * dpdmai_close() - Close the control session of the object
108 * Return: '0' on Success; Error code otherwise.
124 * dpdmai_destroy() - Destroy the DPDMAI object and release all its resources.
130 * Return: '0' on Success; error code otherwise.
142 cmd_params->dpdmai_id = cpu_to_le32(dpdmai_id); in dpdmai_destroy()
150 * dpdmai_enable() - Enable the DPDMAI, allow sending and receiving frames.
155 * Return: '0' on Success; Error code otherwise.
171 * dpdmai_disable() - Disable the DPDMAI, stop sending and receiving frames.
176 * Return: '0' on Success; Error code otherwise.
192 * dpdmai_reset() - Reset the DPDMAI, returns the object to initial state.
197 * Return: '0' on Success; Error code otherwise.
213 * dpdmai_get_attributes() - Retrieve DPDMAI attributes.
219 * Return: '0' on Success; Error code otherwise.
239 attr->id = le32_to_cpu(rsp_params->id); in dpdmai_get_attributes()
240 attr->version.major = le16_to_cpu(rsp_params->major); in dpdmai_get_attributes()
241 attr->version.minor = le16_to_cpu(rsp_params->minor); in dpdmai_get_attributes()
242 attr->num_of_priorities = rsp_params->num_of_priorities; in dpdmai_get_attributes()
243 attr->num_of_queues = rsp_params->num_of_queues; in dpdmai_get_attributes()
250 * dpdmai_set_rx_queue() - Set Rx queue configuration
259 * Return: '0' on Success; Error code otherwise.
272 cmd_params->dest_id = cpu_to_le32(cfg->dest_cfg.dest_id); in dpdmai_set_rx_queue()
273 cmd_params->dest_priority = cfg->dest_cfg.priority; in dpdmai_set_rx_queue()
274 cmd_params->pri = priority; in dpdmai_set_rx_queue()
275 cmd_params->dest_type = cfg->dest_cfg.dest_type; in dpdmai_set_rx_queue()
276 cmd_params->user_ctx = cpu_to_le64(cfg->user_ctx); in dpdmai_set_rx_queue()
277 cmd_params->options = cpu_to_le32(cfg->options); in dpdmai_set_rx_queue()
278 cmd_params->queue_idx = queue_idx; in dpdmai_set_rx_queue()
286 * dpdmai_get_rx_queue() - Retrieve Rx queue attributes.
295 * Return: '0' on Success; Error code otherwise.
309 cmd_params->queue = priority; in dpdmai_get_rx_queue()
310 cmd_params->queue_idx = queue_idx; in dpdmai_get_rx_queue()
318 attr->dest_cfg.dest_id = le32_to_cpu(cmd_params->dest_id); in dpdmai_get_rx_queue()
319 attr->dest_cfg.priority = cmd_params->dest_priority; in dpdmai_get_rx_queue()
320 attr->dest_cfg.dest_type = FIELD_GET(DEST_TYPE_MASK, cmd_params->dest_type); in dpdmai_get_rx_queue()
321 attr->user_ctx = le64_to_cpu(cmd_params->user_ctx); in dpdmai_get_rx_queue()
322 attr->fqid = le32_to_cpu(cmd_params->fqid); in dpdmai_get_rx_queue()
329 * dpdmai_get_tx_queue() - Retrieve Tx queue attributes.
338 * Return: '0' on Success; Error code otherwise.
353 cmd_params->queue = priority; in dpdmai_get_tx_queue()
354 cmd_params->queue_idx = queue_idx; in dpdmai_get_tx_queue()
364 attr->fqid = le32_to_cpu(rsp_params->fqid); in dpdmai_get_tx_queue()
370 MODULE_DESCRIPTION("NXP DPAA2 QDMA driver");