Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/extcon/
Dextcon-max77693.c318 int cable_type = 0; in max77693_muic_get_cable_type() local
342 cable_type = info->prev_cable_type; in max77693_muic_get_cable_type()
347 cable_type = info->prev_cable_type = adc; in max77693_muic_get_cable_type()
366 cable_type = info->prev_cable_type_gnd; in max77693_muic_get_cable_type()
387 cable_type = ((0x1 << 8) in max77693_muic_get_cable_type()
393 info->prev_cable_type_gnd = cable_type; in max77693_muic_get_cable_type()
408 cable_type = info->prev_chg_type; in max77693_muic_get_cable_type()
418 cable_type = info->prev_chg_type = chg_type; in max77693_muic_get_cable_type()
445 cable_type = vbvolt; in max77693_muic_get_cable_type()
449 cable_type = -EINVAL; in max77693_muic_get_cable_type()
[all …]
Dextcon-max14577.c265 int cable_type = 0; in max14577_muic_get_cable_type() local
286 cable_type = info->prev_cable_type; in max14577_muic_get_cable_type()
291 cable_type = info->prev_cable_type = adc; in max14577_muic_get_cable_type()
306 cable_type = info->prev_chg_type; in max14577_muic_get_cable_type()
316 cable_type = info->prev_chg_type = chg_type; in max14577_muic_get_cable_type()
322 cable_type = -EINVAL; in max14577_muic_get_cable_type()
326 return cable_type; in max14577_muic_get_cable_type()
330 int cable_type, bool attached) in max14577_muic_jig_handler() argument
337 attached ? "attached" : "detached", cable_type); in max14577_muic_jig_handler()
339 switch (cable_type) { in max14577_muic_jig_handler()
[all …]
Dextcon-max77843.c243 int adc, chg_type, cable_type, gnd_type; in max77843_muic_get_cable_type() local
253 cable_type = info->prev_cable_type; in max77843_muic_get_cable_type()
257 cable_type = info->prev_cable_type = adc; in max77843_muic_get_cable_type()
271 cable_type = info->prev_chg_type; in max77843_muic_get_cable_type()
278 cable_type = MAX77843_MUIC_CHG_GND; in max77843_muic_get_cable_type()
286 cable_type = info->prev_chg_type; in max77843_muic_get_cable_type()
290 cable_type = info->prev_chg_type = chg_type; in max77843_muic_get_cable_type()
296 cable_type = info->prev_gnd_type; in max77843_muic_get_cable_type()
317 cable_type = info->prev_gnd_type = gnd_type; in max77843_muic_get_cable_type()
322 cable_type = -EINVAL; in max77843_muic_get_cable_type()
[all …]
Dextcon-max8997.c255 int cable_type = 0; in max8997_muic_get_cable_type() local
276 cable_type = info->prev_cable_type; in max8997_muic_get_cable_type()
281 cable_type = info->prev_cable_type = adc; in max8997_muic_get_cable_type()
295 cable_type = info->prev_chg_type; in max8997_muic_get_cable_type()
305 cable_type = info->prev_chg_type = chg_type; in max8997_muic_get_cable_type()
311 cable_type = -EINVAL; in max8997_muic_get_cable_type()
315 return cable_type; in max8997_muic_get_cable_type()
348 int cable_type, bool attached) in max8997_muic_handle_dock() argument
358 switch (cable_type) { in max8997_muic_handle_dock()
391 int cable_type; in max8997_muic_adc_handler() local
[all …]
Dextcon-rt8973a.c264 int ret, cable_type; in rt8973a_muic_get_cable_type() local
272 cable_type = adc & RT8973A_REG_ADC_MASK; in rt8973a_muic_get_cable_type()
284 cable_type = RT8973A_MUIC_ADC_USB; in rt8973a_muic_get_cable_type()
286 cable_type = RT8973A_MUIC_ADC_TA; in rt8973a_muic_get_cable_type()
288 cable_type = RT8973A_MUIC_ADC_OPEN; in rt8973a_muic_get_cable_type()
294 return cable_type; in rt8973a_muic_get_cable_type()
302 int ret, cable_type; in rt8973a_muic_cable_handler() local
308 cable_type = rt8973a_muic_get_cable_type(info); in rt8973a_muic_cable_handler()
312 cable_type = prev_cable_type; in rt8973a_muic_cable_handler()
320 cable_type = prev_cable_type; in rt8973a_muic_cable_handler()
[all …]
Dextcon-sm5502.c276 unsigned int cable_type = -1, adc, dev_type1; in sm5502_muic_get_cable_type() local
290 cable_type = adc & SM5502_REG_ADC_MASK; in sm5502_muic_get_cable_type()
291 if (cable_type == SM5502_MUIC_ADC_GROUND) in sm5502_muic_get_cable_type()
294 switch (cable_type) { in sm5502_muic_get_cable_type()
344 cable_type = SM5502_MUIC_ADC_OPEN_USB; in sm5502_muic_get_cable_type()
347 cable_type = SM5502_MUIC_ADC_OPEN_TA; in sm5502_muic_get_cable_type()
350 cable_type = SM5502_MUIC_ADC_OPEN_USB_OTG; in sm5502_muic_get_cable_type()
365 return cable_type; in sm5502_muic_get_cable_type()
372 unsigned int cable_type = SM5502_MUIC_ADC_GROUND; in sm5502_muic_cable_handler() local
380 cable_type = sm5502_muic_get_cable_type(info); in sm5502_muic_cable_handler()
[all …]
/linux-4.4.14/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()
826 (char *)pvr2_get_param(cables, NULL, cable_type, 3), in pvr2fb_common_init()
874 if (cable_type == CT_VGA) { in pvr2fb_dc_init()
[all …]
/linux-4.4.14/drivers/net/wan/lmc/
Dlmc_var.h172 u32 cable_type; /* T1 */ member
Dlmc_media.c549 sc->ictl.cable_type = cable; in lmc_ssi_init()
/linux-4.4.14/drivers/net/ethernet/emulex/benet/
Dbe_ethtool.c495 if (adapter->phy.cable_type & SFP_PLUS_COPPER_CABLE) in be_get_port_type()
501 if (adapter->phy.cable_type & QSFP_PLUS_CR4_CABLE) in be_get_port_type()
563 switch (adapter->phy.cable_type) { in convert_to_et_setting()
Dbe.h415 u8 cable_type; member
Dbe_cmds.c2380 adapter->phy.cable_type = in be_cmd_query_cable_type()
2384 adapter->phy.cable_type = in be_cmd_query_cable_type()
2388 adapter->phy.cable_type = 0; in be_cmd_query_cable_type()