Lines Matching refs:channel
112 static int nxp_mailbox_send(const struct device *dev, uint32_t channel, const struct mbox_msg *msg) in nxp_mailbox_send() argument
117 if (channel >= MAILBOX_MAX_CHANNELS) { in nxp_mailbox_send()
123 MAILBOX_SetValueBits(cfg->base, MAILBOX_ID_OTHER_CPU, GEN0_IRQ_TRIGGER >> channel); in nxp_mailbox_send()
137 (DATA0_IRQ_TRIGGER >> channel) | (data32 & DATA_MASK)); in nxp_mailbox_send()
142 static int nxp_mailbox_register_callback(const struct device *dev, uint32_t channel, in nxp_mailbox_register_callback() argument
147 if (channel >= MAILBOX_MAX_CHANNELS) { in nxp_mailbox_register_callback()
151 data->cb[channel] = cb; in nxp_mailbox_register_callback()
152 data->user_data[channel] = user_data; in nxp_mailbox_register_callback()
170 static int nxp_mailbox_set_enabled(const struct device *dev, uint32_t channel, bool enable) in nxp_mailbox_set_enabled() argument
174 if (channel >= MAILBOX_MAX_CHANNELS) { in nxp_mailbox_set_enabled()
178 data->channel_enable[channel] = enable; in nxp_mailbox_set_enabled()