Lines Matching full:mbox

223 mbox_store_device_id(uint8_t *mbox, uint16_t device_id)  in mbox_store_device_id()  argument
226 mbox[0] = device_id & 0xff; in mbox_store_device_id()
227 mbox[1] = device_id >> 8; in mbox_store_device_id()
231 mbox_store_pdref(uint8_t *mbox, union mfi_pd_ref *ref) in mbox_store_pdref() argument
234 mbox[0] = ref->v.device_id & 0xff; in mbox_store_pdref()
235 mbox[1] = ref->v.device_id >> 8; in mbox_store_pdref()
236 mbox[2] = ref->v.seq_num & 0xff; in mbox_store_pdref()
237 mbox[3] = ref->v.seq_num >> 8; in mbox_store_pdref()
275 uint8_t mbox[2]; in mfi_pd_get_info() local
277 mbox_store_device_id(&mbox[0], device_id); in mfi_pd_get_info()
279 sizeof(struct mfi_pd_info), mbox, 2, statusp)); in mfi_pd_get_info()
376 uint8_t mbox[6]; in drive_set_state() local
407 mbox_store_pdref(&mbox[0], &info.ref); in drive_set_state()
408 mbox[4] = new_state & 0xff; in drive_set_state()
409 mbox[5] = new_state >> 8; in drive_set_state()
410 if (mfi_dcmd_command(fd, MFI_DCMD_PD_STATE_SET, NULL, 0, mbox, 6, in drive_set_state()
485 uint8_t mbox[4]; in start_rebuild() local
523 mbox_store_pdref(&mbox[0], &info.ref); in start_rebuild()
524 if (mfi_dcmd_command(fd, MFI_DCMD_PD_REBUILD_START, NULL, 0, mbox, 4, in start_rebuild()
542 uint8_t mbox[4]; in abort_rebuild() local
580 mbox_store_pdref(&mbox[0], &info.ref); in abort_rebuild()
581 if (mfi_dcmd_command(fd, MFI_DCMD_PD_REBUILD_ABORT, NULL, 0, mbox, 4, in abort_rebuild()
652 uint8_t mbox[4]; in drive_clear() local
694 mbox_store_pdref(&mbox[0], &info.ref); in drive_clear()
695 if (mfi_dcmd_command(fd, opcode, NULL, 0, mbox, 4, NULL) < 0) { in drive_clear()
715 uint8_t mbox[4]; in drive_locate() local
747 mbox_store_device_id(&mbox[0], device_id); in drive_locate()
748 mbox[2] = 0; in drive_locate()
749 mbox[3] = 0; in drive_locate()
750 if (mfi_dcmd_command(fd, opcode, NULL, 0, mbox, 4, NULL) < 0) { in drive_locate()