Lines Matching refs:cmdport
368 struct cmdport { struct
379 struct cmdport port[2]; /* command ports */ argument
828 struct cmdport *cmdport = NULL; in sendcmd() local
861 cmdport = &(hwport->port[j % 2]); in sendcmd()
862 if (IS_DATF(cmdport)) { /* free pending data */ in sendcmd()
863 READ_PORT_ULONG(cmdport->data1); in sendcmd()
864 READ_PORT_ULONG(cmdport->data2); in sendcmd()
866 if (IS_CMDE(cmdport)) { in sendcmd()
868 WRITE_PORT_ULONG(cmdport->data2, parm); in sendcmd()
869 WRITE_PORT_ULONG(cmdport->data1, cmd); /* write cmd */ in sendcmd()
871 while (!IS_DATF(cmdport) && in sendcmd()
878 READ_PORT_ULONG(cmdport->data1); in sendcmd()
880 READ_PORT_ULONG(cmdport->data2); in sendcmd()
914 cif->cmdcnt, (int)((void *)&(cmdport->stat) - (void *)hwport), in sendcmd()
916 ret ? ret->retlongs[1] : 0, IS_CMDE(cmdport), IS_DATF(cmdport), in sendcmd()