Searched refs:num_mb (Results 1 – 1 of 1) sorted by relevance
/drivers/firmware/arm_scmi/ |
D | mailbox.c | 69 int num_mb; in mailbox_chan_available() local 76 num_mb = of_count_phandle_with_args(of_node, "mboxes", "#mbox-cells"); in mailbox_chan_available() 77 if (num_mb == 3 && idx == 1) in mailbox_chan_available() 105 int num_mb, num_sh, ret = 0; in mailbox_chan_validate() local 108 num_mb = of_count_phandle_with_args(np, "mboxes", "#mbox-cells"); in mailbox_chan_validate() 110 dev_dbg(cdev, "Found %d mboxes and %d shmems !\n", num_mb, num_sh); in mailbox_chan_validate() 113 if (num_mb <= 0 || num_sh <= 0 || num_sh > 2 || num_mb > 4 || in mailbox_chan_validate() 114 (num_mb == 1 && num_sh != 1) || (num_mb == 3 && num_sh != 2) || in mailbox_chan_validate() 115 (num_mb == 4 && num_sh != 2)) { in mailbox_chan_validate() 118 of_node_full_name(np), num_mb, num_sh); in mailbox_chan_validate() [all …]
|