Lines Matching refs:data

83  * following access. The 250us is based on experimental data. At a delay of
89 static inline void ucd90320_wait(const struct ucd9000_data *data)
91 s64 delta = ktime_us_delta(ktime_get(), data->write_time);
101 struct ucd9000_data *data = to_ucd9000_data(info);
106 ucd90320_wait(data);
113 struct ucd9000_data *data = to_ucd9000_data(info);
115 ucd90320_wait(data);
123 struct ucd9000_data *data = to_ucd9000_data(info);
126 ucd90320_wait(data);
128 data->write_time = ktime_get();
136 struct ucd9000_data *data = to_ucd9000_data(info);
139 ucd90320_wait(data);
141 data->write_time = ktime_get();
149 struct ucd9000_data *data
152 if (data->fan_data[fan][3] & 1)
156 fan_config |= (data->fan_data[fan][3] & 0x06) >> 1;
217 .data = (void *)ucd9000
221 .data = (void *)ucd90120
225 .data = (void *)ucd90124
229 .data = (void *)ucd90160
233 .data = (void *)ucd90320
237 .data = (void *)ucd9090
241 .data = (void *)ucd90910
390 struct ucd9000_data *data)
396 data->gpio.ngpio = UCD9090_NUM_GPIOS;
401 data->gpio.ngpio = UCD901XX_NUM_GPIOS;
404 data->gpio.ngpio = UCD90320_NUM_GPIOS;
407 data->gpio.ngpio = UCD90910_NUM_GPIOS;
418 data->gpio.label = client->name;
419 data->gpio.get_direction = ucd9000_gpio_get_direction;
420 data->gpio.direction_input = ucd9000_gpio_direction_input;
421 data->gpio.direction_output = ucd9000_gpio_direction_output;
422 data->gpio.get = ucd9000_gpio_get;
423 data->gpio.set = ucd9000_gpio_set;
424 data->gpio.can_sleep = true;
425 data->gpio.base = -1;
426 data->gpio.parent = &client->dev;
428 rc = devm_gpiochip_add_data(&client->dev, &data->gpio, client);
435 struct ucd9000_data *data)
451 static int ucd9000_debugfs_show_mfr_status_bit(void *data, u64 *val)
453 struct ucd9000_debugfs_entry *entry = data;
503 struct ucd9000_data *data)
514 data->debugfs = debugfs_create_dir(client->name, debugfs);
515 if (!data->debugfs)
539 debugfs_create_file(name, 0444, data->debugfs,
546 debugfs_create_file(name, 0444, data->debugfs, client,
554 struct ucd9000_data *data)
563 struct ucd9000_data *data;
602 data = devm_kzalloc(&client->dev, sizeof(struct ucd9000_data),
604 if (!data)
606 info = &data->info;
627 dev_err(&client->dev, "Failed to read configuration data\n");
662 data->fan_data[i]);
678 ucd9000_probe_gpio(client, mid, data);
684 ret = ucd9000_init_debugfs(client, mid, data);