If it's because your device doesn't support Mask Write Register, you can use the workaround described here.
It basically forces the masking to happen at a higher level, and then a whole register to be written, with the drawback that it's prone to a race condition where the register can change underneath you causing bits to be clobbered.