Lines Matching refs:mimd
238 mimd_t mimd; in mraid_mm_get_adapter() local
243 if (copy_from_user(&mimd, umimd, sizeof(mimd_t))) { in mraid_mm_get_adapter()
248 adapno = GETADAP(mimd.ui.fcs.adapno); in mraid_mm_get_adapter()
362 mimd_t mimd; in mimd_to_kioc() local
364 if (copy_from_user(&mimd, umimd, sizeof(mimd_t))) in mimd_to_kioc()
370 if ((mimd.mbox[0] == MBOXCMD_PASSTHRU64) || in mimd_to_kioc()
371 (mimd.mbox[0] == MBOXCMD_EXTPTHRU)) in mimd_to_kioc()
374 opcode = mimd.ui.fcs.opcode; in mimd_to_kioc()
375 subopcode = mimd.ui.fcs.subopcode; in mimd_to_kioc()
376 adapno = GETADAP(mimd.ui.fcs.adapno); in mimd_to_kioc()
409 kioc->xferlen = mimd.ui.fcs.length; in mimd_to_kioc()
411 kioc->user_data = mimd.ui.fcs.buffer; in mimd_to_kioc()
416 if (mimd.outlen) kioc->data_dir = UIOC_RD; in mimd_to_kioc()
417 if (mimd.inlen) kioc->data_dir |= UIOC_WR; in mimd_to_kioc()
424 kioc->xferlen = (mimd.outlen > mimd.inlen) ? in mimd_to_kioc()
425 mimd.outlen : mimd.inlen; in mimd_to_kioc()
427 kioc->user_data = mimd.data; in mimd_to_kioc()
432 if (mimd.outlen) kioc->data_dir = UIOC_RD; in mimd_to_kioc()
433 if (mimd.inlen) kioc->data_dir |= UIOC_WR; in mimd_to_kioc()
452 memcpy(mbox, mimd.mbox, 14); in mimd_to_kioc()
804 kioc_to_mimd(uioc_t *kioc, mimd_t __user *mimd) in kioc_to_mimd() argument
817 if (copy_from_user(&kmimd, mimd, sizeof(mimd_t))) in kioc_to_mimd()
866 if (copy_to_user(&mimd->mbox[17], in kioc_to_mimd()