It is possible, but with terrible efficiency. You won't really be able to sparge.
Think of it this way: with an extract batch, you start with all the sugar, but in concentrated form. You can add it whenever you want during the boil, and top off as needed.
With All-grain, you start out with the sugar in diluted form, and must boil it down. Your mash + sparge will get you ~~6.5 gallons of pre-wort, with all your sugar rinsed out of the grains. If you only get 4 gallons from the mash, you have lost the chance to get all the sugars out. You'll have to start with a lot of extra grain to make up for those losses. Might as well stick to mini-mash + extract, which is not such a bad option, all things considered.
Or you can do what I do, which is collect all the mash + sparge water into two separate pots, and run two simultaneous boils. It's cumbersome, but it works.
Cheers,