Lines Matching refs:val

142 	u16 val;
166 .val = BIT(0),
173 .val = BIT(1),
180 .val = BIT(5) | BIT(1),
187 .val = BIT(2),
194 .val = BIT(5) | BIT(2),
209 .val = BIT(0),
217 .val = BIT(2),
226 .val = BIT(3),
235 .val = BIT(4),
244 .val = BIT(5),
253 .val = BIT(2) | BIT(1),
262 .val = BIT(3) | BIT(1),
271 .val = BIT(4) | BIT(1),
280 .val = BIT(5) | BIT(1),
1607 u16 reg, void *val, u16 num_val)
1623 .buf = (u8 *)val,
1673 static int iqs7222_read_word(struct iqs7222_private *iqs7222, u16 reg, u16 *val)
1682 *val = le16_to_cpu(val_buf);
1688 u16 reg, const void *val, u16 num_val)
1706 memcpy(msg_buf + reg_len, val, val_len);
1746 static int iqs7222_write_word(struct iqs7222_private *iqs7222, u16 reg, u16 val)
1748 __le16 val_buf = cpu_to_le16(val);
1886 u16 *val;
1891 val = iqs7222_setup(iqs7222, i, 0);
1892 if (!val)
1905 val[k] = le16_to_cpu(val_buf[k]);
1910 val_buf[k] = cpu_to_le16(val[k]);
1923 val += iqs7222_max_cols[i];
2080 unsigned int val;
2114 error = fwnode_property_read_u32(reg_grp_node, name, &val);
2124 if (val < val_min || val > val_max) {
2126 fwnode_get_name(reg_grp_node), label, val);
2132 setup[reg_offset] |= (val / val_pitch << reg_shift);
2257 unsigned int val;
2274 &val);
2282 if (val >= ext_chan) {
2285 fwnode_get_name(chan_node), val);
2289 ref_setup = iqs7222->chan_setup[val];
2296 chan_setup[4] = val * 42 + 1048;
2299 &val);
2301 if (val > U16_MAX) {
2304 fwnode_get_name(chan_node), val);
2308 chan_setup[5] = val;
2396 &val);
2407 if (val > U8_MAX * 500) {
2410 fwnode_get_name(event_node), val);
2416 *setup |= (val / 500 << i * 8);
2461 unsigned int chan_sel[4], val;
2521 error = fwnode_property_read_u32(sldr_node, "azoteq,slider-size", &val);
2523 if (val > dev_desc->sldr_res) {
2525 fwnode_get_name(sldr_node), val);
2530 sldr_setup[3] = val;
2533 sldr_setup[2] |= (val / 16 <<
2549 error = fwnode_property_read_u32(sldr_node, "azoteq,top-speed", &val);
2551 if (val > (reg_offset ? U16_MAX : U8_MAX * 4)) {
2553 fwnode_get_name(sldr_node), val);
2558 sldr_setup[2] = val;
2561 sldr_setup[2] |= (val / 4);
2569 error = fwnode_property_read_u32(sldr_node, "linux,axis", &val);
2582 input_set_abs_params(iqs7222->keypad, val, 0, sldr_max, 0, 0);
2583 iqs7222->sl_axis[sldr_index] = val;
2995 u16 val = iqs7222_sl_events[j].val;
2999 (state & mask) == val);
3030 u16 val = iqs7222_tp_events[j].val;
3034 (state & mask) == val);