Lines Matching defs:set
146 * format are set to the given media bus format. The new format size is stored
160 * xvip_clr_or_set - Clear or set the register with a bitmask
163 * @mask: bitmask to be set or cleared
164 * @set: boolean flag indicating whether to set or clear
166 * Clear or set the register at address @addr with a bitmask @mask depending on
167 * the boolean flag @set. When the flag @set is true, the bitmask is set in
169 * when the flag @set is false.
171 * Fox example, this function can be used to set a control with a boolean value
172 * requested by users. If the caller knows whether to set or clear in the first
176 void xvip_clr_or_set(struct xvip_device *xvip, u32 addr, u32 mask, bool set)
181 reg = set ? reg | mask : reg & ~mask;
187 * xvip_clr_and_set - Clear and set the register with a bitmask
191 * @set: bitmask to be set
193 * Clear a bit(s) of mask @clr in the register at address @addr, then set
194 * a bit(s) of mask @set in the register after.
196 void xvip_clr_and_set(struct xvip_device *xvip, u32 addr, u32 clr, u32 set)
202 reg |= set;