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

1 // SPDX-License-Identifier: GPL-2.0
52 * dpdmai_open() - Open a control session for the specified object
66 * Return: '0' on Success; Error code otherwise.
80 cmd_params->dpdmai_id = cpu_to_le32(dpdmai_id); in dpdmai_open()
95 * dpdmai_close() - Close the control session of the object
103 * Return: '0' on Success; Error code otherwise.
119 * dpdmai_destroy() - Destroy the DPDMAI object and release all its resources.
125 * Return: '0' on Success; error code otherwise.
137 cmd_params->dpdmai_id = cpu_to_le32(dpdmai_id); in dpdmai_destroy()
145 * dpdmai_enable() - Enable the DPDMAI, allow sending and receiving frames.
150 * Return: '0' on Success; Error code otherwise.
166 * dpdmai_disable() - Disable the DPDMAI, stop sending and receiving frames.
171 * Return: '0' on Success; Error code otherwise.
187 * dpdmai_reset() - Reset the DPDMAI, returns the object to initial state.
192 * Return: '0' on Success; Error code otherwise.
208 * dpdmai_get_attributes() - Retrieve DPDMAI attributes.
214 * Return: '0' on Success; Error code otherwise.
234 attr->id = le32_to_cpu(rsp_params->id); in dpdmai_get_attributes()
235 attr->version.major = le16_to_cpu(rsp_params->major); in dpdmai_get_attributes()
236 attr->version.minor = le16_to_cpu(rsp_params->minor); in dpdmai_get_attributes()
237 attr->num_of_priorities = rsp_params->num_of_priorities; in dpdmai_get_attributes()
238 attr->num_of_queues = rsp_params->num_of_queues; in dpdmai_get_attributes()
245 * dpdmai_set_rx_queue() - Set Rx queue configuration
254 * Return: '0' on Success; Error code otherwise.
267 cmd_params->dest_id = cpu_to_le32(cfg->dest_cfg.dest_id); in dpdmai_set_rx_queue()
268 cmd_params->dest_priority = cfg->dest_cfg.priority; in dpdmai_set_rx_queue()
269 cmd_params->pri = priority; in dpdmai_set_rx_queue()
270 cmd_params->dest_type = cfg->dest_cfg.dest_type; in dpdmai_set_rx_queue()
271 cmd_params->user_ctx = cpu_to_le64(cfg->user_ctx); in dpdmai_set_rx_queue()
272 cmd_params->options = cpu_to_le32(cfg->options); in dpdmai_set_rx_queue()
273 cmd_params->queue_idx = queue_idx; in dpdmai_set_rx_queue()
281 * dpdmai_get_rx_queue() - Retrieve Rx queue attributes.
290 * Return: '0' on Success; Error code otherwise.
304 cmd_params->queue = priority; in dpdmai_get_rx_queue()
305 cmd_params->queue_idx = queue_idx; in dpdmai_get_rx_queue()
313 attr->dest_cfg.dest_id = le32_to_cpu(cmd_params->dest_id); in dpdmai_get_rx_queue()
314 attr->dest_cfg.priority = cmd_params->dest_priority; in dpdmai_get_rx_queue()
315 attr->dest_cfg.dest_type = FIELD_GET(DEST_TYPE_MASK, cmd_params->dest_type); in dpdmai_get_rx_queue()
316 attr->user_ctx = le64_to_cpu(cmd_params->user_ctx); in dpdmai_get_rx_queue()
317 attr->fqid = le32_to_cpu(cmd_params->fqid); in dpdmai_get_rx_queue()
324 * dpdmai_get_tx_queue() - Retrieve Tx queue attributes.
333 * Return: '0' on Success; Error code otherwise.
348 cmd_params->queue = priority; in dpdmai_get_tx_queue()
349 cmd_params->queue_idx = queue_idx; in dpdmai_get_tx_queue()
359 attr->fqid = le32_to_cpu(rsp_params->fqid); in dpdmai_get_tx_queue()
365 MODULE_DESCRIPTION("NXP DPAA2 QDMA driver");