Home
last modified time | relevance | path

Searched refs:kind (Results 1 – 25 of 87) sorted by relevance

1234

/drivers/hwmon/
Dlm90.c155 static int lm90_detect(struct i2c_client *client, int kind,
207 int kind; member
362 if (data->kind == adt7461) in show_temp8()
364 else if (data->kind == max6646) in show_temp8()
370 if (data->kind == lm99 && attr->index == 3) in show_temp8()
393 if (data->kind == lm99 && attr->index == 3) in set_temp8()
397 if (data->kind == adt7461) in set_temp8()
399 else if (data->kind == max6646) in set_temp8()
415 if (data->kind == adt7461) in show_temp11()
417 else if (data->kind == max6646) in show_temp11()
[all …]
Dfscpos.c92 static int fscpos_detect(struct i2c_client *client, int kind,
353 #define create_getter(kind, sub) \ argument
354 …static ssize_t sysfs_show_##kind##sub(struct device *dev, struct device_attribute *attr, char *buf…
357 return show_##kind##sub(data, buf); \
360 #define create_getter_n(kind, offset, sub) \ argument
361 …static ssize_t sysfs_show_##kind##offset##sub(struct device *dev, struct device_attribute *attr, c…
365 return show_##kind##sub(data, buf, offset); \
368 #define create_setter(kind, sub, reg) \ argument
369 …static ssize_t sysfs_set_##kind##sub (struct device *dev, struct device_attribute *attr, const cha…
374 return set_##kind##sub(client, data, buf, count, reg); \
[all …]
Dfscher.c111 static int fscher_detect(struct i2c_client *client, int kind,
169 #define sysfs_r(kind, sub, offset, reg) \ argument
170 static ssize_t show_##kind##sub (struct fscher_data *, char *, int); \
171 static ssize_t show_##kind##offset##sub (struct device *, struct device_attribute *attr, char *); \
172 static ssize_t show_##kind##offset##sub (struct device *dev, struct device_attribute *attr, char *b…
175 return show_##kind##sub(data, buf, (offset)); \
178 #define sysfs_w(kind, sub, offset, reg) \ argument
179 static ssize_t set_##kind##sub (struct i2c_client *, struct fscher_data *, const char *, size_t, in…
180 static ssize_t set_##kind##offset##sub (struct device *, struct device_attribute *attr, const char …
181 static ssize_t set_##kind##offset##sub (struct device *dev, struct device_attribute *attr, const ch…
[all …]
Dfschmd.c189 static int fschmd_detect(struct i2c_client *client, int kind,
232 int kind; member
291 if (data->kind == (fscher - 1) || data->kind >= (fschrc - 1)) in show_in_value()
331 FSCHMD_REG_TEMP_LIMIT[data->kind][index], v); in store_temp_max()
408 FSCHMD_REG_FAN_RIPPLE[data->kind][index]); in store_fan_div()
415 FSCHMD_REG_FAN_RIPPLE[data->kind][index], reg); in store_fan_div()
478 FSCHMD_REG_FAN_MIN[data->kind][index], v); in store_pwm_auto_point1_pwm()
602 int kind = data->kind + 1; /* 0-x array index -> 1-x module param */ in watchdog_set_timeout() local
605 if (timeout <= 510 || kind == fscpos || kind == fscscy) in watchdog_set_timeout()
919 static int fschmd_detect(struct i2c_client *client, int kind, in fschmd_detect() argument
[all …]
Dadm1021.c102 static int adm1021_detect(struct i2c_client *client, int kind,
258 static int adm1021_detect(struct i2c_client *client, int kind, in adm1021_detect() argument
278 if (kind < 0) { in adm1021_detect()
288 if (kind <= 0) { in adm1021_detect()
293 kind = adm1023; in adm1021_detect()
295 kind = adm1021; in adm1021_detect()
297 kind = thmc10; in adm1021_detect()
299 kind = gl523sm; in adm1021_detect()
303 kind = max1617a; in adm1021_detect()
305 kind = mc1066; in adm1021_detect()
[all …]
Dlm83.c121 static int lm83_detect(struct i2c_client *new_client, int kind,
294 static int lm83_detect(struct i2c_client *new_client, int kind, in lm83_detect() argument
314 if (kind == 0) in lm83_detect()
315 kind = lm83; in lm83_detect()
317 if (kind < 0) { /* detection */ in lm83_detect()
331 if (kind <= 0) { /* identification */ in lm83_detect()
341 kind = lm83; in lm83_detect()
344 kind = lm82; in lm83_detect()
348 if (kind <= 0) { /* identification failed */ in lm83_detect()
356 if (kind == lm83) { in lm83_detect()
[all …]
Dw83l785ts.c86 static int w83l785ts_detect(struct i2c_client *client, int kind,
149 static int w83l785ts_detect(struct i2c_client *new_client, int kind, in w83l785ts_detect() argument
168 if (kind < 0) { /* detection */ in w83l785ts_detect()
180 if (kind <= 0) { /* identification */ in w83l785ts_detect()
193 kind = w83l785ts; in w83l785ts_detect()
197 if (kind <= 0) { /* identification failed */ in w83l785ts_detect()
Dw83781d.c825 enum chips kind = data->type; in w83781d_detect_subclients() local
849 if (kind != w83783s) { in w83781d_detect_subclients()
876 if (kind == w83783s) in w83781d_detect_subclients()
955 w83781d_create_files(struct device *dev, int kind, int is_isa) in w83781d_create_files() argument
962 if (kind != w83783s) { in w83781d_create_files()
975 if (kind != as99127f && kind != w83781d && kind != w83783s) { in w83781d_create_files()
998 if (kind != w83783s) { in w83781d_create_files()
1011 if (kind != w83781d) { in w83781d_create_files()
1020 if (kind != w83781d && kind != as99127f) { in w83781d_create_files()
1028 if (kind == w83782d && !is_isa) { in w83781d_create_files()
[all …]
Dadm1029.c120 static int adm1029_detect(struct i2c_client *client, int kind,
300 static int adm1029_detect(struct i2c_client *client, int kind, in adm1029_detect() argument
319 if (kind == 0) in adm1029_detect()
320 kind = adm1029; in adm1029_detect()
328 if (kind <= 0) { /* identification */ in adm1029_detect()
341 kind = adm1029; in adm1029_detect()
351 if (kind <= 0) { /* identification failed */ in adm1029_detect()
Dthmc50.c83 static int thmc50_detect(struct i2c_client *client, int kind,
285 static int thmc50_detect(struct i2c_client *client, int kind, in thmc50_detect() argument
309 if (kind == 0) in thmc50_detect()
310 kind = thmc50; in thmc50_detect()
311 else if (kind < 0) { in thmc50_detect()
315 kind = thmc50; in thmc50_detect()
318 kind = adm1022; in thmc50_detect()
328 if (kind == adm1022) { in thmc50_detect()
Dmax1619.c91 static int max1619_detect(struct i2c_client *client, int kind,
229 static int max1619_detect(struct i2c_client *new_client, int kind, in max1619_detect() argument
248 if (kind < 0) { /* detection */ in max1619_detect()
264 if (kind <= 0) { /* identification */ in max1619_detect()
273 kind = max1619; in max1619_detect()
275 if (kind <= 0) { /* identification failed */ in max1619_detect()
Dadm9240.c135 static int adm9240_detect(struct i2c_client *client, int kind,
548 static int adm9240_detect(struct i2c_client *new_client, int kind, in adm9240_detect() argument
559 if (kind == 0) { in adm9240_detect()
560 kind = adm9240; in adm9240_detect()
563 if (kind < 0) { in adm9240_detect()
577 kind = adm9240; in adm9240_detect()
579 kind = ds1780; in adm9240_detect()
581 kind = lm81; in adm9240_detect()
597 if (kind == adm9240) { in adm9240_detect()
599 } else if (kind == ds1780) { in adm9240_detect()
[all …]
Dadm1025.c114 static int adm1025_detect(struct i2c_client *client, int kind,
412 static int adm1025_detect(struct i2c_client *client, int kind, in adm1025_detect() argument
433 if (kind < 0) { /* detection */ in adm1025_detect()
446 if (kind <= 0) { /* identification */ in adm1025_detect()
454 kind = adm1025; in adm1025_detect()
460 kind = ne1619; in adm1025_detect()
464 if (kind <= 0) { /* identification failed */ in adm1025_detect()
472 if (kind == adm1025) { in adm1025_detect()
474 } else if (kind == ne1619) { in adm1025_detect()
Df75375s.c93 int kind; member
116 static int f75375_detect(struct i2c_client *client, int kind,
632 data->kind = id->driver_data; in f75375_probe()
637 if (data->kind == f75375) { in f75375_probe()
680 static int f75375_detect(struct i2c_client *client, int kind, in f75375_detect() argument
687 if (kind < 0) { in f75375_detect()
692 kind = f75375; in f75375_detect()
694 kind = f75373; in f75375_detect()
703 if (kind == f75375) { in f75375_detect()
705 } else if (kind == f75373) { in f75375_detect()
Dads7828.c75 static int ads7828_detect(struct i2c_client *client, int kind,
190 static int ads7828_detect(struct i2c_client *client, int kind, in ads7828_detect() argument
205 if (kind < 0) { in ads7828_detect()
Dlm92.c322 static int lm92_detect(struct i2c_client *new_client, int kind, in lm92_detect() argument
333 if (kind < 0) { in lm92_detect()
342 kind = lm92; in lm92_detect()
346 kind = lm92; /* No separate prefix */ in lm92_detect()
Dgl518sm.c142 static int gl518_detect(struct i2c_client *client, int kind,
487 static int gl518_detect(struct i2c_client *client, int kind, in gl518_detect() argument
499 if (kind < 0) { in gl518_detect()
506 if (kind <= 0) { in gl518_detect()
509 kind = gl518sm_r00; in gl518_detect()
511 kind = gl518sm_r80; in gl518_detect()
513 if (kind <= 0) in gl518_detect()
Dlm78.c145 static int lm78_i2c_detect(struct i2c_client *client, int kind,
561 static int lm78_i2c_detect(struct i2c_client *client, int kind, in lm78_i2c_detect() argument
579 if (kind < 0) { in lm78_i2c_detect()
592 if (kind <= 0) { in lm78_i2c_detect()
596 kind = lm78; in lm78_i2c_detect()
598 kind = lm79; in lm78_i2c_detect()
600 if (kind == 0) in lm78_i2c_detect()
618 switch (kind) { in lm78_i2c_detect()
Dlm87.c161 static int lm87_detect(struct i2c_client *new_client, int kind,
665 static int lm87_detect(struct i2c_client *new_client, int kind, in lm87_detect() argument
675 if (kind == 0) in lm87_detect()
676 kind = lm87; in lm87_detect()
679 if (kind < 0) { in lm87_detect()
685 kind = lm87; in lm87_detect()
688 kind = adm1024; in lm87_detect()
690 if (kind < 0 in lm87_detect()
699 strlcpy(info->type, names[kind - 1], I2C_NAME_SIZE); in lm87_detect()
Dlm85.c324 static int lm85_detect(struct i2c_client *client, int kind,
1137 static int lm85_detect(struct i2c_client *client, int kind, in lm85_detect() argument
1150 if (kind < 0) { in lm85_detect()
1165 kind = any_chip; in lm85_detect()
1171 kind = lm85c; in lm85_detect()
1174 kind = lm85b; in lm85_detect()
1180 kind = adm1027; in lm85_detect()
1184 kind = adt7463; in lm85_detect()
1188 kind = adt7468; in lm85_detect()
1196 kind = emc6d100; in lm85_detect()
[all …]
/drivers/i2c/
Di2c-core.c1126 static int i2c_probe_address(struct i2c_adapter *adapter, int addr, int kind, in i2c_probe_address() argument
1143 if (kind < 0) { in i2c_probe_address()
1155 err = found_proc(adapter, addr, kind); in i2c_probe_address()
1179 int kind; in i2c_probe() local
1181 for (kind = 0; forces[kind]; kind++) { in i2c_probe()
1182 for (i = 0; forces[kind][i] != I2C_CLIENT_END; in i2c_probe()
1184 if (forces[kind][i] == adap_id in i2c_probe()
1185 || forces[kind][i] == ANY_I2C_BUS) { in i2c_probe()
1189 adap_id, forces[kind][i + 1], in i2c_probe()
1190 kind); in i2c_probe()
[all …]
/drivers/i2c/chips/
Dpcf8574.c105 static int pcf8574_detect(struct i2c_client *client, int kind, in pcf8574_detect() argument
118 if (kind <= 0) { in pcf8574_detect()
120 kind = pcf8574a; in pcf8574_detect()
122 kind = pcf8574; in pcf8574_detect()
125 if (kind == pcf8574a) in pcf8574_detect()
/drivers/ide/
Dpmac.c60 int kind; member
465 if (pmif->kind == controller_sh_ata6 || in pmac_ide_do_update_timings()
466 pmif->kind == controller_un_ata6 || in pmac_ide_do_update_timings()
467 pmif->kind == controller_k2_ata6) in pmac_ide_do_update_timings()
517 switch (pmif->kind) { in pmac_ide_set_pio_mode()
798 if (pmif->kind == controller_kl_ata4) in pmac_ide_set_dma_mode()
800 else if (pmif->kind == controller_un_ata6 in pmac_ide_set_dma_mode()
801 || pmif->kind == controller_k2_ata6) in pmac_ide_set_dma_mode()
803 else if (pmif->kind == controller_sh_ata6) in pmac_ide_set_dma_mode()
808 set_timings_mdma(drive, pmif->kind, &tl[0], &tl[1], speed); in pmac_ide_set_dma_mode()
[all …]
/drivers/input/mouse/
Dlogips2pp.c34 u8 kind; member
288 switch (model_info->kind) { in ps2pp_set_model_properties()
352 if (model_info->kind == PS2PP_KIND_TP3) { /* Touch Pad 3 */ in ps2pp_init()
393 if (model_info->kind != PS2PP_KIND_TP3) { in ps2pp_init()
/drivers/input/misc/
Dati_remote.c204 short kind; member
408 for (i = 0; ati_remote_tbl[i].kind != KIND_END; i++) { in ati_remote_event_lookup()
499 if (ati_remote_tbl[index].kind == KIND_LITERAL) { in ati_remote_input_report()
509 if (ati_remote_tbl[index].kind == KIND_FILTERED) { in ati_remote_input_report()
554 switch (ati_remote_tbl[index].kind) { in ati_remote_input_report()
578 ati_remote_tbl[index].kind); in ati_remote_input_report()
668 for (i = 0; ati_remote_tbl[i].kind != KIND_END; i++) in ati_remote_input_init()

1234