kerneltest/e32test/dma/d_dma.cpp
branchRCL_3
changeset 87 2f92ad2dc5db
parent 81 e7d2d738d3c2
child 117 5b5d147c7838
equal deleted inserted replaced
81:e7d2d738d3c2 87:2f92ad2dc5db
   438 			__ASSERT_DEBUG(0 <= channel && channel < KMaxRequests, Kern::PanicCurrentThread(KClientPanicCat, __LINE__));
   438 			__ASSERT_DEBUG(0 <= channel && channel < KMaxRequests, Kern::PanicCurrentThread(KClientPanicCat, __LINE__));
   439 			iRequests[channel]->Queue();
   439 			iRequests[channel]->Queue();
   440 			break;
   440 			break;
   441 			}
   441 			}
   442 		case 'C':
   442 		case 'C':
       
   443 			{
   443 			iChannel->CancelAll();
   444 			iChannel->CancelAll();
       
   445 			for(TInt i=0; i<KMaxRequests; ++i)
       
   446 				{
       
   447 				if(iClientRequests[i]->IsReady())
       
   448 					iClientRequests[i]->Reset();
       
   449 				}
   444 			break;
   450 			break;
       
   451 			}
   445 		default:
   452 		default:
   446 			Kern::PanicCurrentThread(KClientPanicCat, __LINE__);
   453 			Kern::PanicCurrentThread(KClientPanicCat, __LINE__);
   447 			}
   454 			}
   448 		}
   455 		}
   449 	return KErrNone;
   456 	return KErrNone;