Home
last modified time | relevance | path

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

1234

/drivers/hwmon/
Dfschmd.c277 enum chips kind; member
341 if (data->kind == fscher || data->kind >= fschrc) in show_in_value()
386 FSCHMD_REG_TEMP_LIMIT[data->kind][index], v); in store_temp_max()
475 FSCHMD_REG_FAN_RIPPLE[data->kind][index]); in store_fan_div()
482 FSCHMD_REG_FAN_RIPPLE[data->kind][index], reg); in store_fan_div()
524 if (val || data->kind == fscsyl) in show_pwm_auto_point1_pwm()
543 if (v || data->kind == fscsyl) { in store_pwm_auto_point1_pwm()
551 FSCHMD_REG_FAN_MIN[data->kind][index], v); in store_pwm_auto_point1_pwm()
716 int kind = data->kind + 1; /* 0-x array index -> 1-x module param */ in watchdog_set_timeout() local
719 if (timeout <= 510 || kind == fscpos || kind == fscscy) in watchdog_set_timeout()
[all …]
Dlm90.c468 int kind; member
570 if (data->kind == max6696) { in lm90_select_remote_channel()
673 if (data->kind == max6696) { in lm90_update_limits()
757 if (data->kind == max6696) { in lm90_update_device()
967 if (data->kind == adt7461 || data->kind == tmp451) in lm90_get_temp11()
969 else if (data->kind == max6646) in lm90_get_temp11()
975 if (data->kind == lm99 && index <= 2) in lm90_get_temp11()
998 if (data->kind == lm99 && index <= 2) in lm90_set_temp11()
1001 if (data->kind == adt7461 || data->kind == tmp451) in lm90_set_temp11()
1003 else if (data->kind == max6646) in lm90_set_temp11()
[all …]
Dtmp401.c154 enum chips kind; member
194 int num_regs = data->kind == tmp411 ? 6 : 4; in tmp401_update_device_reg16()
195 int num_sensors = data->kind == tmp432 ? 3 : 2; in tmp401_update_device_reg16()
201 regaddr = data->kind == tmp432 ? in tmp401_update_device_reg16()
232 if (data->kind != tmp432) { in tmp401_update_device()
353 regaddr = data->kind == tmp432 ? TMP432_TEMP_MSB_WRITE[nr][index] in store_temp()
645 enum chips kind; in tmp401_detect() local
663 kind = tmp401; in tmp401_detect()
668 kind = tmp411; in tmp401_detect()
673 kind = tmp411; in tmp401_detect()
[all …]
Dtmp421.c227 enum chips kind; in tmp421_detect() local
252 kind = tmp421; in tmp421_detect()
257 kind = tmp422; in tmp421_detect()
262 kind = tmp423; in tmp421_detect()
265 kind = tmp441; in tmp421_detect()
270 kind = tmp442; in tmp421_detect()
276 strlcpy(info->type, tmp421_id[kind].name, I2C_NAME_SIZE); in tmp421_detect()
278 names[kind], client->addr); in tmp421_detect()
Dw83627ehf.c521 enum kinds kind; member
684 if (sio_data->kind == nct6776) in w83627ehf_write_fan_div_common()
686 else if (sio_data->kind == nct6775) in w83627ehf_write_fan_div_common()
735 if (sio_data->kind == nct6776) in w83627ehf_update_fan_div_common()
737 else if (sio_data->kind == nct6775) in w83627ehf_update_fan_div_common()
792 if (sio_data->kind == nct6775 || sio_data->kind == nct6776) in w83627ehf_update_pwm_common()
846 && (reg >= 0xff || (sio_data->kind == nct6775 in w83627ehf_update_device()
1415 if (sio_data->kind == nct6776 && nr && val != 1) in show_pwm_reg()
1471 if (sio_data->kind == nct6776 && val == 4) in store_pwm_enable()
1476 if (sio_data->kind == nct6775 || sio_data->kind == nct6776) { in store_pwm_enable()
[all …]
Dds1621.c127 enum chips kind; /* device type */ member
172 switch (data->kind) { in ds1621_init_client()
348 if (data->kind == ds1621 || data->kind == ds1625) in ds1621_attribute_visible()
373 data->kind = id->driver_data; in ds1621_probe()
Dlm63.c159 enum chips kind; member
290 if (data->kind == lm96163) in lm63_update_device()
951 && (data->kind == lm64 || in lm63_attribute_mode()
952 (data->kind == lm96163 && (data->config & 0x02)))) in lm63_attribute_mode()
1045 if (data->kind == lm64) in lm63_init_client()
1053 switch (data->kind) { in lm63_init_client()
1077 if (data->kind == lm96163) { in lm63_init_client()
1091 if (data->kind == lm63) in lm63_init_client()
1120 data->kind = (enum chips)of_device_get_match_data(&client->dev); in lm63_probe()
1122 data->kind = id->driver_data; in lm63_probe()
[all …]
Dnct6775.c918 enum kinds kind; member
1067 enum kinds kind; member
1203 switch (data->kind) { in is_word_sized()
1343 if (data->kind == nct6775) in nct6775_write_fan_div_common()
1362 if (data->kind == nct6775) in nct6775_update_fan_div_common()
1572 switch (data->kind) { in nct6775_update_pwm_limits()
2098 if (nr == 5 && data->kind != nct6775) in nct6775_fan_is_visible()
2535 if (val == sf3 && data->kind != nct6775) in store_pwm_enable()
2976 if (data->kind != nct6775 && !val) in store_auto_pwm()
2978 if (data->kind != nct6779 && val) in store_auto_pwm()
[all …]
Df75375s.c100 int kind; member
184 if (data->kind == f75387) in f75375_write_pwm()
233 if (data->kind == f75387) in f75375_update_device()
334 if (data->kind == f75387 && duty_mode_enabled(data->pwm_enable[nr])) in set_fan_target()
385 if (data->kind == f75387) { in set_pwm_enable_direct()
478 if (data->kind == f75373 && val == 0) in set_pwm_mode()
482 if (data->kind == f75387) { in set_pwm_mode()
779 if (data->kind == f75387) { in f75375_init()
849 data->kind = id->driver_data; in f75375_probe()
855 if (data->kind != f75373) { in f75375_probe()
Dw83781d.c867 enum chips kind = data->type; in w83781d_detect_subclients() local
892 if (kind != w83783s) { in w83781d_detect_subclients()
1032 w83781d_create_files(struct device *dev, int kind, int is_isa) in w83781d_create_files() argument
1040 if (kind != w83783s) { in w83781d_create_files()
1045 if (kind != as99127f && kind != w83781d && kind != w83783s) { in w83781d_create_files()
1050 if (kind != w83783s) { in w83781d_create_files()
1055 if (kind != w83781d) { in w83781d_create_files()
1064 if (kind != w83781d && kind != as99127f) { in w83781d_create_files()
1069 if (kind == w83782d && !is_isa) { in w83781d_create_files()
1075 if (kind != as99127f && kind != w83781d) { in w83781d_create_files()
[all …]
Dlm75.c277 enum lm75_type kind; in lm75_probe() local
280 kind = (enum lm75_type)of_device_get_match_data(&client->dev); in lm75_probe()
282 kind = id->driver_data; in lm75_probe()
304 switch (kind) { in lm75_probe()
/drivers/staging/comedi/drivers/
Dserial2002.c61 enum { is_invalid, is_digital, is_channel } kind; member
246 result.kind = is_invalid; in serial2002_read()
263 result.kind = is_digital; in serial2002_read()
267 result.kind = is_digital; in serial2002_read()
273 result.kind = is_channel; in serial2002_read()
284 if (data.kind == is_digital) { in serial2002_write()
317 short int kind; member
327 int kind) in serial2002_setup_subdevice() argument
334 if (cfg[j].kind == kind) in serial2002_setup_subdevice()
348 if (kind == 1 || kind == 2) { in serial2002_setup_subdevice()
[all …]
/drivers/gpu/drm/nouveau/nvkm/engine/dma/
Dusernv50.c78 u32 user, part, comp, kind; in nv50_dmaobj_new() local
98 args->v0.kind); in nv50_dmaobj_new()
102 kind = args->v0.kind; in nv50_dmaobj_new()
109 kind = NV50_DMA_V0_KIND_PITCH; in nv50_dmaobj_new()
114 kind = NV50_DMA_V0_KIND_VM; in nv50_dmaobj_new()
119 if (user > 2 || part > 2 || comp > 3 || kind > 0x7f) in nv50_dmaobj_new()
121 dmaobj->flags0 = (comp << 29) | (kind << 22) | (user << 20) | in nv50_dmaobj_new()
Dusergf119.c76 u32 kind, page; in gf119_dmaobj_new() local
95 args->v0.version, args->v0.page, args->v0.kind); in gf119_dmaobj_new()
96 kind = args->v0.kind; in gf119_dmaobj_new()
101 kind = GF119_DMA_V0_KIND_PITCH; in gf119_dmaobj_new()
104 kind = GF119_DMA_V0_KIND_VM; in gf119_dmaobj_new()
112 dmaobj->flags0 = (kind << 20) | (page << 6); in gf119_dmaobj_new()
Dusergf100.c78 u32 kind, user, unkn; in gf100_dmaobj_new() local
97 args->v0.version, args->v0.priv, args->v0.kind); in gf100_dmaobj_new()
98 kind = args->v0.kind; in gf100_dmaobj_new()
104 kind = GF100_DMA_V0_KIND_PITCH; in gf100_dmaobj_new()
108 kind = GF100_DMA_V0_KIND_VM; in gf100_dmaobj_new()
117 dmaobj->flags0 |= (kind << 22) | (user << 20) | oclass->base.oclass; in gf100_dmaobj_new()
/drivers/ata/
Dpata_macio.c227 int kind; member
373 if (priv->kind == controller_sh_ata6 || in pata_macio_apply_timings()
374 priv->kind == controller_un_ata6 || in pata_macio_apply_timings()
375 priv->kind == controller_k2_ata6) { in pata_macio_apply_timings()
446 switch(priv->kind) { in pata_macio_default_timings()
477 if (priv->kind == controller_kl_ata4 || in pata_macio_cable_detect()
478 priv->kind == controller_un_ata6 || in pata_macio_cable_detect()
479 priv->kind == controller_k2_ata6 || in pata_macio_cable_detect()
480 priv->kind == controller_sh_ata6) { in pata_macio_cable_detect()
603 if (priv->kind == controller_kl_ata4 && in pata_macio_bmdma_setup()
[all …]
/drivers/net/ethernet/tile/
Dtilegx.c362 static bool tile_net_provide_buffer(int instance, int kind) in tile_net_provide_buffer() argument
365 gxio_mpipe_buffer_size_enum_t bse = buffer_size_enums[kind]; in tile_net_provide_buffer()
386 gxio_mpipe_push_buffer(&md->context, md->first_buffer_stack + kind, in tile_net_provide_buffer()
430 int instance, kind; in tile_net_provide_needed_buffers() local
433 for (kind = 0; kind < MAX_KINDS; kind++) { in tile_net_provide_needed_buffers()
434 while (info->mpipe[instance].num_needed_buffers[kind] in tile_net_provide_needed_buffers()
436 if (!tile_net_provide_buffer(instance, kind)) { in tile_net_provide_needed_buffers()
443 num_needed_buffers[kind]--; in tile_net_provide_needed_buffers()
1004 int kind, size_t num_buffers) in create_buffer_stack() argument
1010 int stack_idx = md->first_buffer_stack + kind; in create_buffer_stack()
[all …]
/drivers/ide/
Dpmac.c58 int kind; member
456 if (pmif->kind == controller_sh_ata6 || in pmac_ide_do_update_timings()
457 pmif->kind == controller_un_ata6 || in pmac_ide_do_update_timings()
458 pmif->kind == controller_k2_ata6) in pmac_ide_do_update_timings()
513 switch (pmif->kind) { in pmac_ide_set_pio_mode()
794 if (pmif->kind == controller_kl_ata4) in pmac_ide_set_dma_mode()
796 else if (pmif->kind == controller_un_ata6 in pmac_ide_set_dma_mode()
797 || pmif->kind == controller_k2_ata6) in pmac_ide_set_dma_mode()
799 else if (pmif->kind == controller_sh_ata6) in pmac_ide_set_dma_mode()
804 set_timings_mdma(drive, pmif->kind, &tl[0], &tl[1], speed); in pmac_ide_set_dma_mode()
[all …]
/drivers/gpu/drm/nouveau/include/nvif/
Dcl0002.h41 __u8 kind; member
53 __u8 kind; member
64 __u8 kind; member
/drivers/gpu/drm/nouveau/dispnv04/
Dtvnv17.c297 if (tv_norm->kind == CTV_ENC_MODE) in nv17_tv_get_modes()
308 if (tv_norm->kind == CTV_ENC_MODE) { in nv17_tv_mode_valid()
353 if (tv_norm->kind == CTV_ENC_MODE) in nv17_tv_mode_fixup()
378 if (tv_norm->kind == CTV_ENC_MODE) { in nv17_tv_dpms()
415 if (tv_norm->kind == CTV_ENC_MODE) { in nv17_tv_prepare()
432 if (tv_norm->kind == CTV_ENC_MODE) in nv17_tv_prepare()
441 if (tv_norm->kind == CTV_ENC_MODE) { in nv17_tv_prepare()
475 if (tv_norm->kind == TV_ENC_MODE) { in nv17_tv_mode_set()
580 if (get_tv_norm(encoder)->kind == TV_ENC_MODE) { in nv17_tv_commit()
700 if (tv_norm->kind == CTV_ENC_MODE) in nv17_tv_set_property()
[all …]
/drivers/infiniband/hw/hfi1/
Defivar.c151 int read_hfi1_efi_var(struct hfi1_devdata *dd, const char *kind, in read_hfi1_efi_var() argument
165 snprintf(name, sizeof(name), "%s-%s", prefix_name, kind); in read_hfi1_efi_var()
177 snprintf(name, sizeof(name), "%s-%s", prefix_name, kind); in read_hfi1_efi_var()
/drivers/media/rc/
Dati_remote.c284 unsigned char kind; member
557 for (i = 0; ati_remote_tbl[i].kind != KIND_END; i++) { in ati_remote_input_report()
566 if (index >= 0 && ati_remote_tbl[index].kind == KIND_LITERAL) { in ati_remote_input_report()
576 } else if (index < 0 || ati_remote_tbl[index].kind == KIND_FILTERED) { in ati_remote_input_report()
633 } else if (ati_remote_tbl[index].kind == KIND_ACCEL) { in ati_remote_input_report()
651 ati_remote_tbl[index].kind); in ati_remote_input_report()
742 for (i = 0; ati_remote_tbl[i].kind != KIND_END; i++) in ati_remote_input_init()
743 if (ati_remote_tbl[i].kind == KIND_LITERAL || in ati_remote_input_init()
744 ati_remote_tbl[i].kind == KIND_FILTERED) in ati_remote_input_init()
/drivers/input/mouse/
Dlogips2pp.c34 u8 kind; member
291 switch (model_info->kind) { in ps2pp_set_model_properties()
357 if (model_info->kind == PS2PP_KIND_TP3) { /* Touch Pad 3 */ in ps2pp_detect()
401 if (model_info->kind != PS2PP_KIND_TP3) { in ps2pp_detect()
/drivers/net/team/
Dteam.c416 static struct team_mode_item *__find_mode(const char *kind) in __find_mode() argument
421 if (strcmp(mitem->mode->kind, kind) == 0) in __find_mode()
442 if (!is_good_mode_name(mode->kind) || in team_mode_register()
451 if (__find_mode(mode->kind)) { in team_mode_register()
469 mitem = __find_mode(mode->kind); in team_mode_unregister()
478 static const struct team_mode *team_mode_get(const char *kind) in team_mode_get() argument
484 mitem = __find_mode(kind); in team_mode_get()
487 request_module("team-mode-%s", kind); in team_mode_get()
489 mitem = __find_mode(kind); in team_mode_get()
520 .kind = "*NOMODE*",
[all …]
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_benchmark.c64 char *kind) in amdgpu_benchmark_log_results() argument
69 kind, n, size >> 10, sdomain, ddomain, time, in amdgpu_benchmark_log_results()

1234