Lines Matching refs:SubCmd
97 } SubCmd;
1226 if (copy_from_user(&SubCmd, argp, sizeof(struct SubCmdStruct))) {
1230 rio_dprintk(RIO_DEBUG_CTRL, "RIO_MEM_DUMP host %d rup %d addr %x\n", SubCmd.Host, SubCmd.Rup, SubCmd.Addr);
1232 if (SubCmd.Rup >= MAX_RUP + LINKS_PER_UNIT) {
1237 if (SubCmd.Host >= p->RIONumHosts) {
1242 port = p->RIOHosts[SubCmd.Host].UnixRups[SubCmd.Rup].BaseSysPort;
1287 if (copy_from_user(&SubCmd, argp, sizeof(struct SubCmdStruct))) {
1291 rio_dprintk(RIO_DEBUG_CTRL, "RIO_READ_REGISTER host %d rup %d port %d reg %x\n", SubCmd.Host, SubCmd.Rup, SubCmd.Port, SubCmd.Addr);
1293 if (SubCmd.Port > 511) {
1294 rio_dprintk(RIO_DEBUG_CTRL, "Baud rate mapping: Bad port number %d\n", SubCmd.Port);
1299 if (SubCmd.Rup >= MAX_RUP + LINKS_PER_UNIT) {
1304 if (SubCmd.Host >= p->RIONumHosts) {
1309 port = p->RIOHosts[SubCmd.Host].UnixRups[SubCmd.Rup].BaseSysPort + SubCmd.Port;
1438 "(addr 0x%x)\n", CmdBlkP, (int) SubCmd.Addr);
1440 PktCmdP->SubAddr = SubCmd.Addr;
1448 "command blk %p\n", (int) SubCmd.Addr, CmdBlkP);
1450 PktCmdP->SubAddr = SubCmd.Addr;