Searched refs:apple_mbox (Results 1 – 1 of 1) sorted by relevance
94 struct apple_mbox { struct110 static bool apple_mbox_hw_can_send(struct apple_mbox *apple_mbox) in apple_mbox_hw_can_send() argument113 readl_relaxed(apple_mbox->regs + apple_mbox->hw->a2i_control); in apple_mbox_hw_can_send()115 return !(mbox_ctrl & apple_mbox->hw->control_full); in apple_mbox_hw_can_send()118 static bool apple_mbox_hw_send_empty(struct apple_mbox *apple_mbox) in apple_mbox_hw_send_empty() argument121 readl_relaxed(apple_mbox->regs + apple_mbox->hw->a2i_control); in apple_mbox_hw_send_empty()123 return mbox_ctrl & apple_mbox->hw->control_empty; in apple_mbox_hw_send_empty()126 static int apple_mbox_hw_send(struct apple_mbox *apple_mbox, in apple_mbox_hw_send() argument129 if (!apple_mbox_hw_can_send(apple_mbox)) in apple_mbox_hw_send()132 dev_dbg(apple_mbox->dev, "> TX %016llx %08x\n", msg->msg0, msg->msg1); in apple_mbox_hw_send()[all …]