Lines Matching refs:core

20 	struct vpu_core *core = container_of(rx, struct vpu_core, rx);  in vpu_mbox_rx_callback()  local
22 vpu_isr(core, *(u32 *)msg); in vpu_mbox_rx_callback()
56 int vpu_mbox_init(struct vpu_core *core) in vpu_mbox_init() argument
58 scnprintf(core->tx_type.name, sizeof(core->tx_type.name) - 1, "tx0"); in vpu_mbox_init()
59 core->tx_type.block = true; in vpu_mbox_init()
61 scnprintf(core->tx_data.name, sizeof(core->tx_data.name) - 1, "tx1"); in vpu_mbox_init()
62 core->tx_data.block = false; in vpu_mbox_init()
64 scnprintf(core->rx.name, sizeof(core->rx.name) - 1, "rx"); in vpu_mbox_init()
65 core->rx.block = true; in vpu_mbox_init()
70 int vpu_mbox_request(struct vpu_core *core) in vpu_mbox_request() argument
74 ret = vpu_mbox_request_channel(core->dev, &core->tx_type); in vpu_mbox_request()
77 ret = vpu_mbox_request_channel(core->dev, &core->tx_data); in vpu_mbox_request()
80 ret = vpu_mbox_request_channel(core->dev, &core->rx); in vpu_mbox_request()
84 dev_dbg(core->dev, "%s request mbox\n", vpu_core_type_desc(core->type)); in vpu_mbox_request()
87 vpu_mbox_free(core); in vpu_mbox_request()
91 void vpu_mbox_free(struct vpu_core *core) in vpu_mbox_free() argument
93 mbox_free_channel(core->tx_type.ch); in vpu_mbox_free()
94 mbox_free_channel(core->tx_data.ch); in vpu_mbox_free()
95 mbox_free_channel(core->rx.ch); in vpu_mbox_free()
96 core->tx_type.ch = NULL; in vpu_mbox_free()
97 core->tx_data.ch = NULL; in vpu_mbox_free()
98 core->rx.ch = NULL; in vpu_mbox_free()
99 dev_dbg(core->dev, "%s free mbox\n", vpu_core_type_desc(core->type)); in vpu_mbox_free()
102 void vpu_mbox_send_type(struct vpu_core *core, u32 type) in vpu_mbox_send_type() argument
104 mbox_send_message(core->tx_type.ch, &type); in vpu_mbox_send_type()
107 void vpu_mbox_send_msg(struct vpu_core *core, u32 type, u32 data) in vpu_mbox_send_msg() argument
109 mbox_send_message(core->tx_data.ch, &data); in vpu_mbox_send_msg()
110 mbox_send_message(core->tx_type.ch, &type); in vpu_mbox_send_msg()