Lines Matching refs:mbox
47 volatile struct cmac_shm_mbox *mbox; in cmac_mbox_has_data() local
50 mbox = mbox_src_get(&mbox_size); in cmac_mbox_has_data()
52 return mbox->rd_off != mbox->wr_off; in cmac_mbox_has_data()
58 volatile struct cmac_shm_mbox *mbox; in cmac_mbox_read() local
66 mbox = mbox_src_get(&mbox_size); in cmac_mbox_read()
68 mbox_buf = (void *)mbox->data; in cmac_mbox_read()
73 rd_off = mbox->rd_off; in cmac_mbox_read()
74 wr_off = mbox->wr_off; in cmac_mbox_read()
90 mbox->rd_off = rd_off == mbox_size ? 0 : rd_off; in cmac_mbox_read()
91 } while ((mbox->rd_off != mbox->wr_off) && (rem_len > 0)); in cmac_mbox_read()
99 volatile struct cmac_shm_mbox *mbox; in cmac_mbox_write() local
107 mbox = mbox_dst_get(&mbox_size); in cmac_mbox_write()
109 mbox_buf = (void *)mbox->data; in cmac_mbox_write()
112 rd_off = mbox->rd_off; in cmac_mbox_write()
113 wr_off = mbox->wr_off; in cmac_mbox_write()
151 mbox->wr_off = wr_off == mbox_size ? 0 : wr_off; in cmac_mbox_write()