Home
last modified time | relevance | path

Searched refs:new_conf (Results 1 – 8 of 8) sorted by relevance

/linux/drivers/usb/typec/mux/ !
H A Dpi3usb30532.c31 static int pi3usb30532_set_conf(struct pi3usb30532 *pi, u8 new_conf) in pi3usb30532_set_conf() argument
35 if (pi->conf == new_conf) in pi3usb30532_set_conf()
38 ret = i2c_smbus_write_byte_data(pi->client, PI3USB30532_CONF, new_conf); in pi3usb30532_set_conf()
44 pi->conf = new_conf; in pi3usb30532_set_conf()
52 u8 new_conf; in pi3usb30532_sw_set() local
56 new_conf = pi->conf; in pi3usb30532_sw_set()
60 new_conf = PI3USB30532_CONF_OPEN; in pi3usb30532_sw_set()
63 new_conf &= ~PI3USB30532_CONF_SWAP; in pi3usb30532_sw_set()
66 new_conf |= PI3USB30532_CONF_SWAP; in pi3usb30532_sw_set()
70 ret = pi3usb30532_set_conf(pi, new_conf); in pi3usb30532_sw_set()
80 u8 new_conf; pi3usb30532_mux_set() local
[all...]
/linux/drivers/hwmon/ !
H A Dds620.c68 u16 conf, new_conf; in ds620_init_client() local
70 new_conf = conf = in ds620_init_client()
74 new_conf &= ~DS620_REG_CONFIG_1SHOT; in ds620_init_client()
76 new_conf |= DS620_REG_CONFIG_PO2; in ds620_init_client()
79 new_conf &= ~DS620_REG_CONFIG_PO1; /* PO_LOW */ in ds620_init_client()
81 new_conf |= DS620_REG_CONFIG_PO1; /* PO_HIGH */ in ds620_init_client()
83 new_conf &= ~DS620_REG_CONFIG_PO2; /* always low */ in ds620_init_client()
85 new_conf |= DS620_REG_CONFIG_R1 | DS620_REG_CONFIG_R0; in ds620_init_client()
87 if (conf != new_conf) in ds620_init_client()
88 i2c_smbus_write_word_swapped(client, DS620_REG_CONF, new_conf); in ds620_init_client()
172 u16 conf, new_conf; alarm_show() local
[all...]
H A Dds1621.c144 u8 conf, new_conf, sreg, resol; in ds1621_init_client() local
146 new_conf = conf = i2c_smbus_read_byte_data(client, DS1621_REG_CONF); in ds1621_init_client()
148 new_conf &= ~DS1621_REG_CONFIG_1SHOT; in ds1621_init_client()
152 new_conf &= ~DS1621_REG_CONFIG_POLARITY; in ds1621_init_client()
154 new_conf |= DS1621_REG_CONFIG_POLARITY; in ds1621_init_client()
156 if (conf != new_conf) in ds1621_init_client()
157 i2c_smbus_write_byte_data(client, DS1621_REG_CONF, new_conf); in ds1621_init_client()
168 resol = (new_conf & DS1621_REG_CONFIG_RESOL) >> in ds1621_init_client()
189 u8 new_conf; in ds1621_update_client() local
206 new_conf in ds1621_update_client()
[all...]
/linux/drivers/media/platform/ti/omap3isp/ !
H A Dispstat.h49 * new_conf->buf_size value must be changed to the exact buffer size
52 int (*validate_params)(struct ispstat *stat, void *new_conf);
61 void (*set_params)(struct ispstat *stat, void *new_conf);
127 int omap3isp_stat_config(struct ispstat *stat, void *new_conf);
H A Disph3a_aewb.c112 static int h3a_aewb_validate_params(struct ispstat *aewb, void *new_conf) in h3a_aewb_validate_params() argument
114 struct omap3isp_h3a_aewb_config *user_cfg = new_conf; in h3a_aewb_validate_params()
174 * @new_conf: Pointer to AE and AWB parameters struct.
179 static void h3a_aewb_set_params(struct ispstat *aewb, void *new_conf) in h3a_aewb_set_params() argument
181 struct omap3isp_h3a_aewb_config *user_cfg = new_conf; in h3a_aewb_set_params()
H A Disph3a_af.c153 static int h3a_af_validate_params(struct ispstat *af, void *new_conf) in h3a_af_validate_params() argument
155 struct omap3isp_h3a_af_config *user_cfg = new_conf; in h3a_af_validate_params()
227 static void h3a_af_set_params(struct ispstat *af, void *new_conf) in h3a_af_set_params() argument
229 struct omap3isp_h3a_af_config *user_cfg = new_conf; in h3a_af_set_params()
H A Disphist.c300 * @new_conf: Pointer to user configuration structure.
304 static int hist_validate_params(struct ispstat *hist, void *new_conf) in hist_validate_params() argument
306 struct omap3isp_hist_config *user_cfg = new_conf; in hist_validate_params()
402 * @new_conf: Pointer to user configuration structure.
404 static void hist_set_params(struct ispstat *hist, void *new_conf) in hist_set_params() argument
406 struct omap3isp_hist_config *user_cfg = new_conf; in hist_set_params()
H A Dispstat.c530 * @new_conf: Pointer to config structure.
532 * Returns 0 if successful, -EINVAL if new_conf pointer is NULL, -ENOMEM if
536 int omap3isp_stat_config(struct ispstat *stat, void *new_conf) in omap3isp_stat_config() argument
540 struct ispstat_generic_config *user_cfg = new_conf; in omap3isp_stat_config()
549 ret = stat->ops->validate_params(stat, new_conf); in omap3isp_stat_config()
600 stat->ops->set_params(stat, new_conf); in omap3isp_stat_config()