Lines Matching refs:uioc
2963 nitioctl_t uioc; in megadev_ioctl() local
2995 memset(&uioc, 0, sizeof(nitioctl_t)); in megadev_ioctl()
2996 if( (rval = mega_m_to_n( (void __user *)arg, &uioc)) != 0 ) in megadev_ioctl()
3000 switch( uioc.opcode ) { in megadev_ioctl()
3003 if( put_user(driver_ver, (u32 __user *)uioc.uioc_uaddr) ) in megadev_ioctl()
3009 if( put_user(hba_count, (u32 __user *)uioc.uioc_uaddr) ) in megadev_ioctl()
3024 if( (adapno = GETADAP(uioc.adapno)) >= hba_count ) in megadev_ioctl()
3027 if( copy_to_user(uioc.uioc_uaddr, mcontroller+adapno, in megadev_ioctl()
3038 if( (adapno = GETADAP(uioc.adapno)) >= hba_count ) in megadev_ioctl()
3043 ustats = uioc.uioc_uaddr; in megadev_ioctl()
3085 if( (adapno = GETADAP(uioc.adapno)) >= hba_count ) in megadev_ioctl()
3094 if( uioc.uioc_rmbox[0] == FC_DEL_LOGDRV && in megadev_ioctl()
3095 uioc.uioc_rmbox[2] == OP_DEL_LOGDRV ) { in megadev_ioctl()
3107 rval = mega_del_logdrv( adapter, uioc.uioc_rmbox[3] ); in megadev_ioctl()
3123 if( uioc.uioc_rmbox[0] == MEGA_MBOXCMD_PASSTHRU64 || in megadev_ioctl()
3124 uioc.uioc_rmbox[0] == MEGA_MBOXCMD_EXTPTHRU ) { in megadev_ioctl()
3139 if( uioc.uioc_rmbox[0] == MEGA_MBOXCMD_PASSTHRU ) { in megadev_ioctl()
3154 upthru = (mega_passthru __user *)(unsigned long)MBOX(uioc)->xferaddr; in megadev_ioctl()
3203 if( pthru->dataxferlen && (uioc.flags & UIOC_WR) ) { in megadev_ioctl()
3232 if( pthru->dataxferlen && (uioc.flags & UIOC_RD) ) { in megadev_ioctl()
3267 if( uioc.xferlen ) { in megadev_ioctl()
3269 uioc.xferlen, in megadev_ioctl()
3278 uxferaddr = MBOX(uioc)->xferaddr; in megadev_ioctl()
3284 if( uioc.xferlen && (uioc.flags & UIOC_WR) ) { in megadev_ioctl()
3289 uioc.xferlen) ) { in megadev_ioctl()
3292 uioc.xferlen, data, in megadev_ioctl()
3301 memcpy(&mc, MBOX(uioc), sizeof(megacmd_t)); in megadev_ioctl()
3313 if( uioc.xferlen ) { in megadev_ioctl()
3315 uioc.xferlen, data, in megadev_ioctl()
3327 if( uioc.xferlen && (uioc.flags & UIOC_RD) ) { in megadev_ioctl()
3329 uioc.xferlen) ) { in megadev_ioctl()
3335 if( uioc.xferlen ) { in megadev_ioctl()
3336 dma_free_coherent(&pdev->dev, uioc.xferlen, in megadev_ioctl()
3375 mega_m_to_n(void __user *arg, nitioctl_t *uioc) in mega_m_to_n() argument
3403 if( copy_from_user(uioc, arg, sizeof(nitioctl_t)) ) in mega_m_to_n()
3430 uioc->opcode = GET_DRIVER_VER; in mega_m_to_n()
3431 uioc->uioc_uaddr = uioc_mimd.data; in mega_m_to_n()
3435 uioc->opcode = GET_N_ADAP; in mega_m_to_n()
3436 uioc->uioc_uaddr = uioc_mimd.data; in mega_m_to_n()
3440 uioc->opcode = GET_ADAP_INFO; in mega_m_to_n()
3441 uioc->adapno = uioc_mimd.ui.fcs.adapno; in mega_m_to_n()
3442 uioc->uioc_uaddr = uioc_mimd.data; in mega_m_to_n()
3454 uioc->opcode = MBOX_CMD; in mega_m_to_n()
3455 uioc->adapno = uioc_mimd.ui.fcs.adapno; in mega_m_to_n()
3457 memcpy(uioc->uioc_rmbox, uioc_mimd.mbox, 18); in mega_m_to_n()
3459 uioc->xferlen = uioc_mimd.ui.fcs.length; in mega_m_to_n()
3461 if( uioc_mimd.outlen ) uioc->flags = UIOC_RD; in mega_m_to_n()
3462 if( uioc_mimd.inlen ) uioc->flags |= UIOC_WR; in mega_m_to_n()
3468 uioc->opcode = MBOX_CMD; in mega_m_to_n()
3469 uioc->adapno = uioc_mimd.ui.fcs.adapno; in mega_m_to_n()
3471 memcpy(uioc->uioc_rmbox, uioc_mimd.mbox, 18); in mega_m_to_n()
3476 uioc->xferlen = uioc_mimd.outlen > uioc_mimd.inlen ? in mega_m_to_n()
3479 if( uioc_mimd.outlen ) uioc->flags = UIOC_RD; in mega_m_to_n()
3480 if( uioc_mimd.inlen ) uioc->flags |= UIOC_WR; in mega_m_to_n()