Lines Matching refs:done
394 /* If disabled, we're done */
525 unsigned int done = 0;
551 done += 1;
552 if (done == count)
556 if ((addr + done) & 0x2) {
557 if ((count - done) < 2) {
558 *(u8 *)(buf + done) = fake_vmeread8(priv,
559 addr + done, aspace, cycle);
560 done += 1;
563 *(u16 *)(buf + done) = fake_vmeread16(priv,
564 addr + done, aspace, cycle);
565 done += 2;
571 count32 = (count - done) & ~0x3;
572 while (done < count32) {
573 *(u32 *)(buf + done) = fake_vmeread32(priv, addr + done,
575 done += 4;
578 count32 = (count - done) & ~0x3;
579 while (done < count32) {
580 *(u16 *)(buf + done) = fake_vmeread16(priv, addr + done,
582 done += 2;
585 count32 = (count - done);
586 while (done < count32) {
587 *(u8 *)(buf + done) = fake_vmeread8(priv, addr + done,
589 done += 1;
595 if ((count - done) & 0x2) {
596 *(u16 *)(buf + done) = fake_vmeread16(priv, addr + done,
598 done += 2;
601 if ((count - done) & 0x1) {
602 *(u8 *)(buf + done) = fake_vmeread8(priv, addr + done, aspace,
604 done += 1;
715 unsigned int done = 0;
739 done += 1;
740 if (done == count)
745 if ((addr + done) & 0x2) {
746 if ((count - done) < 2) {
747 fake_vmewrite8(bridge, (u8 *)(buf + done),
748 addr + done, aspace, cycle);
749 done += 1;
752 fake_vmewrite16(bridge, (u16 *)(buf + done),
753 addr + done, aspace, cycle);
754 done += 2;
760 count32 = (count - done) & ~0x3;
761 while (done < count32) {
762 fake_vmewrite32(bridge, (u32 *)(buf + done),
763 addr + done, aspace, cycle);
764 done += 4;
767 count32 = (count - done) & ~0x3;
768 while (done < count32) {
769 fake_vmewrite16(bridge, (u16 *)(buf + done),
770 addr + done, aspace, cycle);
771 done += 2;
774 count32 = (count - done);
775 while (done < count32) {
776 fake_vmewrite8(bridge, (u8 *)(buf + done), addr + done,
778 done += 1;
784 if ((count - done) & 0x2) {
785 fake_vmewrite16(bridge, (u16 *)(buf + done),
786 addr + done, aspace, cycle);
787 done += 2;
791 if ((count - done) & 0x1) {
792 fake_vmewrite8(bridge, (u8 *)(buf + done), addr + done, aspace,
794 done += 1;
853 * This does not enable the LM monitor - that should be done when the first