You can do that as a TP/mileage run, but you can't use LAX, SFO, or any other stop as a stopover more than once:
8. A. i) Only one stopover permitted at any point.
For more details please check out the oneworld Circle Pacific rule sheet which may be found and downloaded from
www.oneworld.com