Lines Matching +full:gce +full:- +full:mailbox
1 /* SPDX-License-Identifier: GPL-2.0 */
11 #include <linux/mailbox/mtk-cmdq-mailbox.h>
19 * so there are 4 * N (threads) SPRs in GCE that shares the same indexes below.
67 * cmdq_dev_get_client_reg() - parse cmdq client reg from the device
69 * @dev: device of CMDQ mailbox client
82 * cmdq_mbox_create() - create CMDQ mailbox client and channel
83 * @dev: device of CMDQ mailbox client
84 * @index: index of CMDQ mailbox channel
86 * Return: CMDQ mailbox client pointer
91 * cmdq_mbox_destroy() - destroy CMDQ mailbox client and channel
92 * @client: the CMDQ mailbox client
97 * cmdq_pkt_create() - create a CMDQ packet
98 * @client: the CMDQ mailbox client
107 * cmdq_pkt_destroy() - destroy the CMDQ packet
108 * @client: the CMDQ mailbox client
114 * cmdq_pkt_write() - append write command to the CMDQ packet
125 * cmdq_pkt_write_mask() - append write command with mask to the CMDQ packet
138 * cmdq_pkt_read_s() - append read_s command to the CMDQ packet
150 * cmdq_pkt_write_s() - append write_s command to the CMDQ packet
167 * cmdq_pkt_write_s_mask() - append write_s with mask command to the CMDQ packet
185 * cmdq_pkt_write_s_value() - append write_s command to the CMDQ packet which
198 * cmdq_pkt_write_s_mask_value() - append write_s command with mask to the CMDQ
213 * cmdq_pkt_mem_move() - append memory move command to the CMDQ packet
225 * cmdq_pkt_wfe() - append wait for event command to the CMDQ packet
235 * cmdq_pkt_acquire_event() - append acquire event command to the CMDQ packet
242 * After event is cleared by cmdq_pkt_clear_event in other GCE threads,
250 * cmdq_pkt_clear_event() - append clear event command to the CMDQ packet
259 * cmdq_pkt_set_event() - append set event command to the CMDQ packet
268 * cmdq_pkt_poll() - Append polling command to the CMDQ packet, ask GCE to
271 * All GCE hardware threads will be blocked by this
284 * cmdq_pkt_poll_mask() - Append polling command to the CMDQ packet, ask GCE to
287 * All GCE hardware threads will be blocked by this
301 * cmdq_pkt_logic_command() - Append logic command to the CMDQ packet, ask GCE to
318 * cmdq_pkt_assign() - Append logic assign command to the CMDQ packet, ask GCE
331 * cmdq_pkt_poll_addr() - Append blocking POLL command to CMDQ packet
337 * Appends a polling (POLL) command to the CMDQ packet and asks the GCE
340 * All GCE threads will be blocked by this instruction.
347 * cmdq_pkt_jump_abs() - Append jump command to the CMDQ packet, ask GCE
367 * cmdq_pkt_jump_rel() - Append jump command to the CMDQ packet, ask GCE
381 * cmdq_pkt_eoc() - Append EOC and ask GCE to generate an IRQ at end of execution
384 * Appends an End Of Code (EOC) command to the CMDQ packet and asks the GCE
399 return -ENODEV; in cmdq_dev_get_client_reg()
404 return ERR_PTR(-EINVAL); in cmdq_mbox_create()
411 return -EINVAL; in cmdq_pkt_create()
418 return -ENOENT; in cmdq_pkt_write()
424 return -ENOENT; in cmdq_pkt_write_mask()
430 return -ENOENT; in cmdq_pkt_read_s()
436 return -ENOENT; in cmdq_pkt_write_s()
442 return -ENOENT; in cmdq_pkt_write_s_mask()
448 return -ENOENT; in cmdq_pkt_write_s_value()
454 return -ENOENT; in cmdq_pkt_write_s_mask_value()
459 return -EINVAL; in cmdq_pkt_wfe()
464 return -EINVAL; in cmdq_pkt_clear_event()
469 return -EINVAL; in cmdq_pkt_set_event()
475 return -EINVAL; in cmdq_pkt_poll()
481 return -EINVAL; in cmdq_pkt_poll_mask()
486 return -EINVAL; in cmdq_pkt_assign()
491 return -EINVAL; in cmdq_pkt_poll_addr()
496 return -EINVAL; in cmdq_pkt_jump_abs()
501 return -EINVAL; in cmdq_pkt_jump()
506 return -EINVAL; in cmdq_pkt_jump_rel()
511 return -EINVAL; in cmdq_pkt_eoc()