Lines Matching refs:set
144 * format are set to the given media bus format. The new format size is stored
158 * xvip_clr_or_set - Clear or set the register with a bitmask
161 * @mask: bitmask to be set or cleared
162 * @set: boolean flag indicating whether to set or clear
164 * Clear or set the register at address @addr with a bitmask @mask depending on
165 * the boolean flag @set. When the flag @set is true, the bitmask is set in
167 * when the flag @set is false.
169 * Fox example, this function can be used to set a control with a boolean value
170 * requested by users. If the caller knows whether to set or clear in the first
174 void xvip_clr_or_set(struct xvip_device *xvip, u32 addr, u32 mask, bool set)
179 reg = set ? reg | mask : reg & ~mask;
185 * xvip_clr_and_set - Clear and set the register with a bitmask
189 * @set: bitmask to be set
191 * Clear a bit(s) of mask @clr in the register at address @addr, then set
192 * a bit(s) of mask @set in the register after.
194 void xvip_clr_and_set(struct xvip_device *xvip, u32 addr, u32 clr, u32 set)
200 reg |= set;