Home
last modified time | relevance | path

Searched refs:values (Results 1 – 25 of 85) sorted by relevance

1234

/linux-4.19.296/drivers/auxdisplay/
Dhd44780.c65 int values[10]; /* for DATA[0-7], RS, RW */ in hd44780_write_gpio8() local
69 values[PIN_DATA0 + i] = !!(val & BIT(i)); in hd44780_write_gpio8()
70 values[PIN_CTRL_RS] = rs; in hd44780_write_gpio8()
73 values[PIN_CTRL_RW] = 0; in hd44780_write_gpio8()
78 gpiod_set_array_value_cansleep(n, &hd->pins[PIN_DATA0], values); in hd44780_write_gpio8()
86 int values[10]; /* for DATA[0-7], RS, RW, but DATA[0-3] is unused */ in hd44780_write_gpio4() local
91 values[PIN_DATA0 + i] = !!(val & BIT(i)); in hd44780_write_gpio4()
92 values[PIN_CTRL_RS] = rs; in hd44780_write_gpio4()
95 values[PIN_CTRL_RW] = 0; in hd44780_write_gpio4()
101 &values[PIN_DATA4]); in hd44780_write_gpio4()
[all …]
/linux-4.19.296/drivers/i2c/muxes/
Di2c-mux-gpio.c25 int *values; member
33 mux->values[i] = (val >> i) & 1; in i2c_mux_gpio_set()
36 mux->gpios, mux->values); in i2c_mux_gpio_set()
70 unsigned *values, *gpios; in i2c_mux_gpio_probe_dt() local
91 values = devm_kcalloc(&pdev->dev, in i2c_mux_gpio_probe_dt()
92 mux->data.n_values, sizeof(*mux->data.values), in i2c_mux_gpio_probe_dt()
94 if (!values) { in i2c_mux_gpio_probe_dt()
100 of_property_read_u32(child, "reg", values + i); in i2c_mux_gpio_probe_dt()
103 mux->data.values = values; in i2c_mux_gpio_probe_dt()
186 mux->data.n_gpios * sizeof(*mux->values), 0, in i2c_mux_gpio_probe()
[all …]
Di2c-mux-reg.c90 unsigned *values; in i2c_mux_reg_probe_dt() local
127 values = devm_kcalloc(&pdev->dev, in i2c_mux_reg_probe_dt()
128 mux->data.n_values, sizeof(*mux->data.values), in i2c_mux_reg_probe_dt()
130 if (!values) in i2c_mux_reg_probe_dt()
134 of_property_read_u32(child, "reg", values + i); in i2c_mux_reg_probe_dt()
137 mux->data.values = values; in i2c_mux_reg_probe_dt()
227 ret = i2c_mux_add_adapter(muxc, nr, mux->data.values[i], class); in i2c_mux_reg_probe()
/linux-4.19.296/drivers/char/
Dtb0219.c103 uint16_t values; in get_gpio_input_pin() local
105 values = tb0219_read(TB0219_GPIO_INPUT); in get_gpio_input_pin()
106 if (values & (1 << pin)) in get_gpio_input_pin()
114 uint16_t values; in get_gpio_output_pin() local
116 values = tb0219_read(TB0219_GPIO_OUTPUT); in get_gpio_output_pin()
117 if (values & (1 << pin)) in get_gpio_output_pin()
125 uint16_t values; in get_dip_switch() local
127 values = tb0219_read(TB0219_DIP_SWITCH); in get_dip_switch()
128 if (values & (1 << pin)) in get_dip_switch()
/linux-4.19.296/include/linux/
Dhmm.h150 const uint64_t *values; member
167 if (pfn == range->values[HMM_PFN_NONE]) in hmm_pfn_to_page()
169 if (pfn == range->values[HMM_PFN_ERROR]) in hmm_pfn_to_page()
171 if (pfn == range->values[HMM_PFN_SPECIAL]) in hmm_pfn_to_page()
187 if (pfn == range->values[HMM_PFN_NONE]) in hmm_pfn_to_pfn()
189 if (pfn == range->values[HMM_PFN_ERROR]) in hmm_pfn_to_pfn()
191 if (pfn == range->values[HMM_PFN_SPECIAL]) in hmm_pfn_to_pfn()
/linux-4.19.296/drivers/char/agp/
Dvia-agp.c27 struct aper_size_info_8 *values; in via_fetch_size() local
29 values = A_SIZE_8(agp_bridge->driver->aperture_sizes); in via_fetch_size()
32 if (temp == values[i].size_value) { in via_fetch_size()
34 agp_bridge->current_size = (void *) (values + i); in via_fetch_size()
36 return values[i].size; in via_fetch_size()
109 struct aper_size_info_16 *values; in via_fetch_size_agp3() local
111 values = A_SIZE_16(agp_bridge->driver->aperture_sizes); in via_fetch_size_agp3()
116 if (temp == values[i].size_value) { in via_fetch_size_agp3()
118 agp_bridge->current_size = (void *) (values + i); in via_fetch_size_agp3()
120 return values[i].size; in via_fetch_size_agp3()
Di460-agp.c108 struct aper_size_info_8 *values; in i460_fetch_size() local
124 values = A_SIZE_8(agp_bridge->driver->aperture_sizes); in i460_fetch_size()
153 values[i].num_entries = (values[i].size << 8) >> (I460_IO_PAGE_SHIFT - 12); in i460_fetch_size()
154 values[i].page_order = ilog2((sizeof(u32)*values[i].num_entries) >> PAGE_SHIFT); in i460_fetch_size()
159 if ((temp & I460_AGPSIZ_MASK) == values[i].size_value) { in i460_fetch_size()
160 agp_bridge->previous_size = agp_bridge->current_size = (void *) (values + i); in i460_fetch_size()
162 return values[i].size; in i460_fetch_size()
Dsis-agp.c27 struct aper_size_info_8 *values; in sis_fetch_size() local
30 values = A_SIZE_8(agp_bridge->driver->aperture_sizes); in sis_fetch_size()
32 if ((temp_size == values[i].size_value) || in sis_fetch_size()
34 (values[i].size_value & ~(0x07)))) { in sis_fetch_size()
36 agp_bridge->current_size = (void *) (values + i); in sis_fetch_size()
39 return values[i].size; in sis_fetch_size()
Dali-agp.c25 struct aper_size_info_32 *values; in ali_fetch_size() local
29 values = A_SIZE_32(agp_bridge->driver->aperture_sizes); in ali_fetch_size()
32 if (temp == values[i].size_value) { in ali_fetch_size()
34 agp_bridge->current_size = (void *) (values + i); in ali_fetch_size()
36 return values[i].size; in ali_fetch_size()
Dintel-agp.c21 struct aper_size_info_16 *values; in intel_fetch_size() local
24 values = A_SIZE_16(agp_bridge->driver->aperture_sizes); in intel_fetch_size()
27 if (temp == values[i].size_value) { in intel_fetch_size()
28 agp_bridge->previous_size = agp_bridge->current_size = (void *) (values + i); in intel_fetch_size()
30 return values[i].size; in intel_fetch_size()
40 struct aper_size_info_8 *values; in __intel_8xx_fetch_size() local
42 values = A_SIZE_8(agp_bridge->driver->aperture_sizes); in __intel_8xx_fetch_size()
45 if (temp == values[i].size_value) { in __intel_8xx_fetch_size()
47 agp_bridge->current_size = (void *) (values + i); in __intel_8xx_fetch_size()
49 return values[i].size; in __intel_8xx_fetch_size()
Defficeon-agp.c92 struct aper_size_info_lvl2 *values; in efficeon_fetch_size() local
95 values = A_SIZE_LVL2(agp_bridge->driver->aperture_sizes); in efficeon_fetch_size()
98 if (temp == values[i].size_value) { in efficeon_fetch_size()
100 agp_bridge->current_size = (void *) (values + i); in efficeon_fetch_size()
102 return values[i].size; in efficeon_fetch_size()
Dnvidia-agp.c42 struct aper_size_info_8 *values; in nvidia_fetch_size() local
46 values = A_SIZE_8(agp_bridge->driver->aperture_sizes); in nvidia_fetch_size()
49 if (size_value == values[i].size_value) { in nvidia_fetch_size()
51 agp_bridge->current_size = (void *) (values + i); in nvidia_fetch_size()
53 return values[i].size; in nvidia_fetch_size()
Dati-agp.c150 struct aper_size_info_lvl2 *values; in ati_fetch_size() local
158 values = A_SIZE_LVL2(agp_bridge->driver->aperture_sizes); in ati_fetch_size()
160 if (temp == values[i].size_value) { in ati_fetch_size()
162 agp_bridge->current_size = (void *) (values + i); in ati_fetch_size()
165 return values[i].size; in ati_fetch_size()
/linux-4.19.296/drivers/bus/
Dts-nbus.c114 int values[8]; in ts_nbus_reset_bus() local
117 values[i] = 0; in ts_nbus_reset_bus()
119 gpiod_set_array_value_cansleep(8, ts_nbus->data->desc, values); in ts_nbus_reset_bus()
161 int values[8]; in ts_nbus_write_byte() local
165 values[i] = 1; in ts_nbus_write_byte()
167 values[i] = 0; in ts_nbus_write_byte()
169 gpiod_set_array_value_cansleep(8, gpios->desc, values); in ts_nbus_write_byte()
/linux-4.19.296/drivers/i2c/
Di2c-core-smbus.c218 u8 *values) in i2c_smbus_read_block_data() argument
229 memcpy(values, &data.block[1], data.block[0]); in i2c_smbus_read_block_data()
245 u8 length, const u8 *values) in i2c_smbus_write_block_data() argument
252 memcpy(&data.block[1], values, length); in i2c_smbus_write_block_data()
261 u8 length, u8 *values) in i2c_smbus_read_i2c_block_data() argument
275 memcpy(values, &data.block[1], data.block[0]); in i2c_smbus_read_i2c_block_data()
281 u8 length, const u8 *values) in i2c_smbus_write_i2c_block_data() argument
288 memcpy(data.block + 1, values, length); in i2c_smbus_write_i2c_block_data()
623 u8 command, u8 length, u8 *values) in i2c_smbus_read_i2c_block_data_or_emulated() argument
632 return i2c_smbus_read_i2c_block_data(client, command, length, values); in i2c_smbus_read_i2c_block_data_or_emulated()
[all …]
/linux-4.19.296/drivers/base/
Dproperty.c144 u8 *values, size_t nval) in pset_prop_read_u8_array() argument
147 size_t length = nval * sizeof(*values); in pset_prop_read_u8_array()
153 memcpy(values, pointer, length); in pset_prop_read_u8_array()
159 u16 *values, size_t nval) in pset_prop_read_u16_array() argument
162 size_t length = nval * sizeof(*values); in pset_prop_read_u16_array()
168 memcpy(values, pointer, length); in pset_prop_read_u16_array()
174 u32 *values, size_t nval) in pset_prop_read_u32_array() argument
177 size_t length = nval * sizeof(*values); in pset_prop_read_u32_array()
183 memcpy(values, pointer, length); in pset_prop_read_u32_array()
189 u64 *values, size_t nval) in pset_prop_read_u64_array() argument
[all …]
/linux-4.19.296/drivers/gpio/
Dgpio-max3191x.c318 int i, *values; in gpiod_set_array_single_value_cansleep() local
320 values = kmalloc_array(ndescs, sizeof(*values), GFP_KERNEL); in gpiod_set_array_single_value_cansleep()
321 if (!values) in gpiod_set_array_single_value_cansleep()
325 values[i] = value; in gpiod_set_array_single_value_cansleep()
327 gpiod_set_array_value_cansleep(ndescs, desc, values); in gpiod_set_array_single_value_cansleep()
328 kfree(values); in gpiod_set_array_single_value_cansleep()
/linux-4.19.296/drivers/iio/pressure/
Dhp206c.c97 u8 values[3]; in hp206c_read_20bit() local
99 ret = i2c_smbus_read_i2c_block_data(client, cmd, 3, values); in hp206c_read_20bit()
104 return ((values[0] & 0xF) << 16) | (values[1] << 8) | (values[2]); in hp206c_read_20bit()
/linux-4.19.296/drivers/iio/magnetometer/
Dbmc150_magn.c434 __le16 values[AXIS_XYZR_MAX]; in bmc150_magn_read_xyz() local
440 values, sizeof(values)); in bmc150_magn_read_xyz()
444 raw_x = (s16)le16_to_cpu(values[AXIS_X]) >> BMC150_MAGN_SHIFT_XY_L; in bmc150_magn_read_xyz()
445 raw_y = (s16)le16_to_cpu(values[AXIS_Y]) >> BMC150_MAGN_SHIFT_XY_L; in bmc150_magn_read_xyz()
446 raw_z = (s16)le16_to_cpu(values[AXIS_Z]) >> BMC150_MAGN_SHIFT_Z_L; in bmc150_magn_read_xyz()
447 rhall = le16_to_cpu(values[RHALL]) >> BMC150_MAGN_SHIFT_RHALL_L; in bmc150_magn_read_xyz()
467 s32 values[AXIS_XYZ_MAX]; in bmc150_magn_read_raw() local
481 ret = bmc150_magn_read_xyz(data, values); in bmc150_magn_read_raw()
487 *val = values[chan->scan_index]; in bmc150_magn_read_raw()
/linux-4.19.296/include/linux/mfd/
Dtc3589x.h129 u8 *values);
131 const u8 *values);
Dstmpe.h131 u8 *values);
133 const u8 *values);
/linux-4.19.296/drivers/hid/
Dhid-sensor-custom.c313 u8 values[HID_CUSTOM_MAX_FEATURE_BYTES]; in show_value() local
321 sizeof(values), values); in show_value()
329 "%d ", values[i]); in show_value()
334 value = (u64) *(u16 *)&values[i]; in show_value()
338 value = (u64) *(u32 *)&values[i]; in show_value()
342 value = *(u64 *)&values[i]; in show_value()
346 value = (u64) values[i]; in show_value()
/linux-4.19.296/include/linux/platform_data/
Di2c-mux-gpio.h34 const unsigned *values; member
Di2c-mux-reg.h33 const unsigned int *values; member
/linux-4.19.296/drivers/nvmem/
DKconfig98 This is a simple drive to dump specified values of Rockchip SoC
131 This is a simple driver to dump specified values of UniPhier SoC
152 This is a driver to retrieve specific values from the eFuse found on
162 This is a driver to retrieve specific values from the eFuse found on
189 This is a simple driver to dump specified values of Spreadtrum

1234