Lines Matching refs:mimd
235 * mraid_mm_get_adapter - Returns corresponding adapters for the mimd packet
245 mimd_t mimd;
250 if (copy_from_user(&mimd, umimd, sizeof(mimd_t))) {
255 adapno = GETADAP(mimd.ui.fcs.adapno);
280 * @old_ioctl : mimd if 1; uioc otherwise
365 mimd_t mimd;
367 if (copy_from_user(&mimd, umimd, sizeof(mimd_t)))
373 if ((mimd.mbox[0] == MBOXCMD_PASSTHRU64) ||
374 (mimd.mbox[0] == MBOXCMD_EXTPTHRU))
377 opcode = mimd.ui.fcs.opcode;
378 subopcode = mimd.ui.fcs.subopcode;
379 adapno = GETADAP(mimd.ui.fcs.adapno);
412 kioc->xferlen = mimd.ui.fcs.length;
414 kioc->user_data = mimd.ui.fcs.buffer;
419 if (mimd.outlen) kioc->data_dir = UIOC_RD;
420 if (mimd.inlen) kioc->data_dir |= UIOC_WR;
427 kioc->xferlen = (mimd.outlen > mimd.inlen) ?
428 mimd.outlen : mimd.inlen;
430 kioc->user_data = mimd.data;
435 if (mimd.outlen) kioc->data_dir = UIOC_RD;
436 if (mimd.inlen) kioc->data_dir |= UIOC_WR;
451 * This is a mailbox cmd; copy the mailbox from mimd
455 memcpy(mbox, mimd.mbox, 14);
798 * @mimd : User space MIMD packet
801 kioc_to_mimd(uioc_t *kioc, mimd_t __user *mimd)
814 if (copy_from_user(&kmimd, mimd, sizeof(mimd_t)))
863 if (copy_to_user(&mimd->mbox[17],