Chiasmus (Reversed Parallel Construction) from Greek [cross arrangement] - is based on repetition of syntactical patterns, but it has a reversed order in one of the utterances. I.e.one of the sentences is inverted as compared to that of the second sentence:
Down dropped the breeze,
The sails dropped down. (Coleridge) e.g. The public wants a thing, therefore it is supplied with it, or if it is supplied with a thing, it wants it. (Thackeray).
Chiasmus is sometimes achieved by a sudden change from active voice to passive or vice versa. It brings in some new shade of meaning or additional emphasis on the second part.