Home
last modified time | relevance | path

Searched refs:cable_type (Results 1 – 12 of 12) sorted by relevance

/Linux-v4.19/drivers/extcon/
Dextcon-max77693.c321 int cable_type = 0; in max77693_muic_get_cable_type() local
345 cable_type = info->prev_cable_type; in max77693_muic_get_cable_type()
350 cable_type = info->prev_cable_type = adc; in max77693_muic_get_cable_type()
369 cable_type = info->prev_cable_type_gnd; in max77693_muic_get_cable_type()
390 cable_type = ((0x1 << 8) in max77693_muic_get_cable_type()
396 info->prev_cable_type_gnd = cable_type; in max77693_muic_get_cable_type()
411 cable_type = info->prev_chg_type; in max77693_muic_get_cable_type()
421 cable_type = info->prev_chg_type = chg_type; in max77693_muic_get_cable_type()
448 cable_type = vbvolt; in max77693_muic_get_cable_type()
452 cable_type = -EINVAL; in max77693_muic_get_cable_type()
[all …]
Dextcon-max14577.c266 int cable_type = 0; in max14577_muic_get_cable_type() local
287 cable_type = info->prev_cable_type; in max14577_muic_get_cable_type()
292 cable_type = info->prev_cable_type = adc; in max14577_muic_get_cable_type()
307 cable_type = info->prev_chg_type; in max14577_muic_get_cable_type()
317 cable_type = info->prev_chg_type = chg_type; in max14577_muic_get_cable_type()
323 cable_type = -EINVAL; in max14577_muic_get_cable_type()
327 return cable_type; in max14577_muic_get_cable_type()
331 int cable_type, bool attached) in max14577_muic_jig_handler() argument
338 attached ? "attached" : "detached", cable_type); in max14577_muic_jig_handler()
340 switch (cable_type) { in max14577_muic_jig_handler()
[all …]
Dextcon-max77843.c269 int adc, chg_type, cable_type, gnd_type; in max77843_muic_get_cable_type() local
279 cable_type = info->prev_cable_type; in max77843_muic_get_cable_type()
283 cable_type = info->prev_cable_type = adc; in max77843_muic_get_cable_type()
299 cable_type = info->prev_chg_type; in max77843_muic_get_cable_type()
308 cable_type = MAX77843_MUIC_CHG_GND; in max77843_muic_get_cable_type()
317 cable_type = info->prev_chg_type; in max77843_muic_get_cable_type()
321 cable_type = MAX77843_MUIC_CHG_DOCK; in max77843_muic_get_cable_type()
329 cable_type = info->prev_chg_type; in max77843_muic_get_cable_type()
333 cable_type = info->prev_chg_type = chg_type; in max77843_muic_get_cable_type()
339 cable_type = info->prev_gnd_type; in max77843_muic_get_cable_type()
[all …]
Dextcon-max8997.c256 int cable_type = 0; in max8997_muic_get_cable_type() local
277 cable_type = info->prev_cable_type; in max8997_muic_get_cable_type()
282 cable_type = info->prev_cable_type = adc; in max8997_muic_get_cable_type()
296 cable_type = info->prev_chg_type; in max8997_muic_get_cable_type()
306 cable_type = info->prev_chg_type = chg_type; in max8997_muic_get_cable_type()
312 cable_type = -EINVAL; in max8997_muic_get_cable_type()
316 return cable_type; in max8997_muic_get_cable_type()
351 int cable_type, bool attached) in max8997_muic_handle_dock() argument
361 switch (cable_type) { in max8997_muic_handle_dock()
394 int cable_type; in max8997_muic_adc_handler() local
[all …]
Dextcon-rt8973a.c267 int ret, cable_type; in rt8973a_muic_get_cable_type() local
275 cable_type = adc & RT8973A_REG_ADC_MASK; in rt8973a_muic_get_cable_type()
287 cable_type = RT8973A_MUIC_ADC_USB; in rt8973a_muic_get_cable_type()
289 cable_type = RT8973A_MUIC_ADC_TA; in rt8973a_muic_get_cable_type()
291 cable_type = RT8973A_MUIC_ADC_OPEN; in rt8973a_muic_get_cable_type()
297 return cable_type; in rt8973a_muic_get_cable_type()
305 int ret, cable_type; in rt8973a_muic_cable_handler() local
311 cable_type = rt8973a_muic_get_cable_type(info); in rt8973a_muic_cable_handler()
315 cable_type = prev_cable_type; in rt8973a_muic_cable_handler()
323 cable_type = prev_cable_type; in rt8973a_muic_cable_handler()
[all …]
Dextcon-sm5502.c279 unsigned int cable_type = -1, adc, dev_type1; in sm5502_muic_get_cable_type() local
293 cable_type = adc & SM5502_REG_ADC_MASK; in sm5502_muic_get_cable_type()
294 if (cable_type == SM5502_MUIC_ADC_GROUND) in sm5502_muic_get_cable_type()
297 switch (cable_type) { in sm5502_muic_get_cable_type()
347 cable_type = SM5502_MUIC_ADC_OPEN_USB; in sm5502_muic_get_cable_type()
350 cable_type = SM5502_MUIC_ADC_OPEN_TA; in sm5502_muic_get_cable_type()
353 cable_type = SM5502_MUIC_ADC_OPEN_USB_OTG; in sm5502_muic_get_cable_type()
368 return cable_type; in sm5502_muic_get_cable_type()
375 unsigned int cable_type = SM5502_MUIC_ADC_GROUND; in sm5502_muic_cable_handler() local
383 cable_type = sm5502_muic_get_cable_type(info); in sm5502_muic_cable_handler()
[all …]
/Linux-v4.19/drivers/video/fbdev/
Dpvr2fb.c172 static int cable_type = CT_VGA; variable
370 cable_type = pvr2_init_cable(); in pvr2fb_set_par()
371 if (cable_type == CT_VGA && video_output != VO_VGA) in pvr2fb_set_par()
655 if (cable_type < 0) { in pvr2_init_cable()
658 cable_type = (fb_readw(PDTRA) >> 8) & 3; in pvr2_init_cable()
664 if (cable_type == CT_COMPOSITE) in pvr2_init_cable()
666 else if (cable_type == CT_RGB) in pvr2_init_cable()
671 return cable_type; in pvr2_init_cable()
824 (char *)pvr2_get_param(cables, NULL, cable_type, 3), in pvr2fb_common_init()
872 if (cable_type == CT_VGA) { in pvr2fb_dc_init()
[all …]
/Linux-v4.19/drivers/net/wan/lmc/
Dlmc_var.h172 u32 cable_type; /* T1 */ member
Dlmc_media.c550 sc->ictl.cable_type = cable; in lmc_ssi_init()
/Linux-v4.19/drivers/net/ethernet/emulex/benet/
Dbe_ethtool.c498 if (adapter->phy.cable_type & SFP_PLUS_COPPER_CABLE) in be_get_port_type()
504 if (adapter->phy.cable_type & QSFP_PLUS_CR4_CABLE) in be_get_port_type()
566 switch (adapter->phy.cable_type) { in convert_to_et_setting()
Dbe.h403 u8 cable_type; member
Dbe_cmds.c2426 adapter->phy.cable_type = in be_cmd_query_cable_type()
2430 adapter->phy.cable_type = in be_cmd_query_cable_type()
2434 adapter->phy.cable_type = 0; in be_cmd_query_cable_type()