Lines Matching refs:uioc
2985 nitioctl_t uioc; in megadev_ioctl() local
3018 memset(&uioc, 0, sizeof(nitioctl_t)); in megadev_ioctl()
3019 if( (rval = mega_m_to_n( (void __user *)arg, &uioc)) != 0 ) in megadev_ioctl()
3023 switch( uioc.opcode ) { in megadev_ioctl()
3026 if( put_user(driver_ver, (u32 __user *)uioc.uioc_uaddr) ) in megadev_ioctl()
3032 if( put_user(hba_count, (u32 __user *)uioc.uioc_uaddr) ) in megadev_ioctl()
3047 if( (adapno = GETADAP(uioc.adapno)) >= hba_count ) in megadev_ioctl()
3050 if( copy_to_user(uioc.uioc_uaddr, mcontroller+adapno, in megadev_ioctl()
3061 if( (adapno = GETADAP(uioc.adapno)) >= hba_count ) in megadev_ioctl()
3066 ustats = uioc.uioc_uaddr; in megadev_ioctl()
3108 if( (adapno = GETADAP(uioc.adapno)) >= hba_count ) in megadev_ioctl()
3117 if( uioc.uioc_rmbox[0] == FC_DEL_LOGDRV && in megadev_ioctl()
3118 uioc.uioc_rmbox[2] == OP_DEL_LOGDRV ) { in megadev_ioctl()
3130 rval = mega_del_logdrv( adapter, uioc.uioc_rmbox[3] ); in megadev_ioctl()
3146 if( uioc.uioc_rmbox[0] == MEGA_MBOXCMD_PASSTHRU64 || in megadev_ioctl()
3147 uioc.uioc_rmbox[0] == MEGA_MBOXCMD_EXTPTHRU ) { in megadev_ioctl()
3162 if( uioc.uioc_rmbox[0] == MEGA_MBOXCMD_PASSTHRU ) { in megadev_ioctl()
3177 upthru = (mega_passthru __user *)(unsigned long)MBOX(uioc)->xferaddr; in megadev_ioctl()
3225 if( pthru->dataxferlen && (uioc.flags & UIOC_WR) ) { in megadev_ioctl()
3254 if( pthru->dataxferlen && (uioc.flags & UIOC_RD) ) { in megadev_ioctl()
3289 if( uioc.xferlen ) { in megadev_ioctl()
3291 uioc.xferlen, &data_dma_hndl); in megadev_ioctl()
3298 uxferaddr = MBOX(uioc)->xferaddr; in megadev_ioctl()
3304 if( uioc.xferlen && (uioc.flags & UIOC_WR) ) { in megadev_ioctl()
3309 uioc.xferlen) ) { in megadev_ioctl()
3312 uioc.xferlen, in megadev_ioctl()
3321 memcpy(&mc, MBOX(uioc), sizeof(megacmd_t)); in megadev_ioctl()
3333 if( uioc.xferlen ) { in megadev_ioctl()
3335 uioc.xferlen, data, in megadev_ioctl()
3347 if( uioc.xferlen && (uioc.flags & UIOC_RD) ) { in megadev_ioctl()
3349 uioc.xferlen) ) { in megadev_ioctl()
3355 if( uioc.xferlen ) { in megadev_ioctl()
3357 uioc.xferlen, data, in megadev_ioctl()
3396 mega_m_to_n(void __user *arg, nitioctl_t *uioc) in mega_m_to_n() argument
3424 if( copy_from_user(uioc, arg, sizeof(nitioctl_t)) ) in mega_m_to_n()
3451 uioc->opcode = GET_DRIVER_VER; in mega_m_to_n()
3452 uioc->uioc_uaddr = uioc_mimd.data; in mega_m_to_n()
3456 uioc->opcode = GET_N_ADAP; in mega_m_to_n()
3457 uioc->uioc_uaddr = uioc_mimd.data; in mega_m_to_n()
3461 uioc->opcode = GET_ADAP_INFO; in mega_m_to_n()
3462 uioc->adapno = uioc_mimd.ui.fcs.adapno; in mega_m_to_n()
3463 uioc->uioc_uaddr = uioc_mimd.data; in mega_m_to_n()
3475 uioc->opcode = MBOX_CMD; in mega_m_to_n()
3476 uioc->adapno = uioc_mimd.ui.fcs.adapno; in mega_m_to_n()
3478 memcpy(uioc->uioc_rmbox, uioc_mimd.mbox, 18); in mega_m_to_n()
3480 uioc->xferlen = uioc_mimd.ui.fcs.length; in mega_m_to_n()
3482 if( uioc_mimd.outlen ) uioc->flags = UIOC_RD; in mega_m_to_n()
3483 if( uioc_mimd.inlen ) uioc->flags |= UIOC_WR; in mega_m_to_n()
3489 uioc->opcode = MBOX_CMD; in mega_m_to_n()
3490 uioc->adapno = uioc_mimd.ui.fcs.adapno; in mega_m_to_n()
3492 memcpy(uioc->uioc_rmbox, uioc_mimd.mbox, 18); in mega_m_to_n()
3497 uioc->xferlen = uioc_mimd.outlen > uioc_mimd.inlen ? in mega_m_to_n()
3500 if( uioc_mimd.outlen ) uioc->flags = UIOC_RD; in mega_m_to_n()
3501 if( uioc_mimd.inlen ) uioc->flags |= UIOC_WR; in mega_m_to_n()