Lines Matching refs:ioc

4784 	struct uioctl_t ioc;  local
4820 if(copy_from_user (&ioc, (char *) arg, sizeof (struct uioctl_t)))
4833 opcode = ioc.ui.fcs.opcode;
4834 subopcode = ioc.ui.fcs.subopcode;
4840 put_user (driver_ver, (u32 *) ioc.data);
4844 put_user (nadap, (int *) ioc.data);
4851 adapno = ioc.ui.fcs.adapno;
4866 ioc.data,
4874 if (copy_to_user (ioc.data,
4891 if( ioc.mbox[0] == FC_DEL_LOGDRV && ioc.mbox[2] == OP_DEL_LOGDRV ) {
4896 adapno = ioc.ui.fcs.adapno;
4904 length = ioc.ui.fcs.length;
4911 uaddr = ioc.ui.fcs.buffer;
4919 outlen = ioc.outlen;
4920 inlen = ioc.inlen;
4923 ret = verify_area(VERIFY_WRITE, (char *)ioc.ui.fcs.buffer, length);
4927 ret = verify_area(VERIFY_READ, (char *) ioc.ui.fcs.buffer, length);
4969 ioc.ui.fcs.buffer = kvaddr;
4981 scsicmd->request_buffer = (void *)&ioc;
5004 if( ioc.mbox[0] == MEGA_MBOXCMD_PASSTHRU ) {
5027 ioc.ui.fcs.buffer = uaddr;
5033 adapno = ioc.ui.fcs.adapno;
5042 uaddr = ioc.data;
5043 outlen = ioc.outlen;
5044 inlen = ioc.inlen;
5050 ret = verify_area (VERIFY_WRITE, ioc.data, outlen);
5054 ret = verify_area (VERIFY_READ, ioc.data, inlen);
5073 if( ioc.mbox[0] == FC_DEL_LOGDRV && ioc.mbox[2] == OP_DEL_LOGDRV ) {
5082 ret = mega_del_logdrv(megacfg, ioc.mbox[3]);
5121 ioc.data = kvaddr;
5124 if (ioc.mbox[0] == MEGA_MBOXCMD_PASSTHRU) {
5126 if( copy_from_user (kvaddr, uaddr, ioc.pthru.dataxferlen)){
5140 scsicmd->request_buffer = (void *) &ioc;
5151 if (ioc.mbox[0] == MEGA_MBOXCMD_PASSTHRU) {
5152 if (copy_to_user (uaddr, kvaddr, ioc.pthru.dataxferlen)) {
5169 if (ioc.mbox[0] == MEGA_MBOXCMD_PASSTHRU) {
5198 ioc.data = uaddr;
5220 struct uioctl_t *ioc = NULL; local
5233 ioc = (struct uioctl_t *) sc->request_buffer;
5235 memcpy (scb->mboxData, ioc->mbox, sizeof (scb->mboxData));
5238 mbox = (mega_mailbox *) ioc->mbox;
5243 cmd = ioc->mbox[0];
5255 memcpy (pthru, &ioc->pthru, sizeof (mega_passthru));
5265 ioc->data,
5275 ioc->data,
5283 pthru->dataxferaddr = virt_to_bus (ioc->data);
5294 if (ioc->ui.fcs.opcode == M_RD_IOCTL_CMD_NEW) {
5295 scb->buff_ptr = ioc->ui.fcs.buffer;
5296 scb->iDataSize = ioc->ui.fcs.length;
5298 scb->buff_ptr = ioc->data;