Searched refs:cable_type (Results 1 – 12 of 12) sorted by relevance
/linux-4.1.27/drivers/extcon/ |
D | extcon-max77693.c | 343 int cable_type = 0; in max77693_muic_get_cable_type() local 367 cable_type = info->prev_cable_type; in max77693_muic_get_cable_type() 372 cable_type = info->prev_cable_type = adc; in max77693_muic_get_cable_type() 391 cable_type = info->prev_cable_type_gnd; in max77693_muic_get_cable_type() 412 cable_type = ((0x1 << 8) in max77693_muic_get_cable_type() 418 info->prev_cable_type_gnd = cable_type; in max77693_muic_get_cable_type() 433 cable_type = info->prev_chg_type; in max77693_muic_get_cable_type() 443 cable_type = info->prev_chg_type = chg_type; in max77693_muic_get_cable_type() 470 cable_type = vbvolt; in max77693_muic_get_cable_type() 474 cable_type = -EINVAL; in max77693_muic_get_cable_type() [all …]
|
D | extcon-max77843.c | 262 int adc, chg_type, cable_type, gnd_type; in max77843_muic_get_cable_type() local 272 cable_type = info->prev_cable_type; in max77843_muic_get_cable_type() 276 cable_type = info->prev_cable_type = adc; in max77843_muic_get_cable_type() 290 cable_type = info->prev_chg_type; in max77843_muic_get_cable_type() 297 cable_type = MAX77843_MUIC_CHG_GND; in max77843_muic_get_cable_type() 305 cable_type = info->prev_chg_type; in max77843_muic_get_cable_type() 309 cable_type = info->prev_chg_type = chg_type; in max77843_muic_get_cable_type() 315 cable_type = info->prev_gnd_type; in max77843_muic_get_cable_type() 336 cable_type = info->prev_gnd_type = gnd_type; in max77843_muic_get_cable_type() 341 cable_type = -EINVAL; in max77843_muic_get_cable_type() [all …]
|
D | extcon-max14577.c | 284 int cable_type = 0; in max14577_muic_get_cable_type() local 305 cable_type = info->prev_cable_type; in max14577_muic_get_cable_type() 310 cable_type = info->prev_cable_type = adc; in max14577_muic_get_cable_type() 325 cable_type = info->prev_chg_type; in max14577_muic_get_cable_type() 335 cable_type = info->prev_chg_type = chg_type; in max14577_muic_get_cable_type() 341 cable_type = -EINVAL; in max14577_muic_get_cable_type() 345 return cable_type; in max14577_muic_get_cable_type() 349 int cable_type, bool attached) in max14577_muic_jig_handler() argument 357 attached ? "attached" : "detached", cable_type); in max14577_muic_jig_handler() 359 switch (cable_type) { in max14577_muic_jig_handler() [all …]
|
D | extcon-rt8973a.c | 279 int ret, cable_type; in rt8973a_muic_get_cable_type() local 287 cable_type = adc & RT8973A_REG_ADC_MASK; in rt8973a_muic_get_cable_type() 299 cable_type = RT8973A_MUIC_ADC_USB; in rt8973a_muic_get_cable_type() 301 cable_type = RT8973A_MUIC_ADC_TA; in rt8973a_muic_get_cable_type() 303 cable_type = RT8973A_MUIC_ADC_OPEN; in rt8973a_muic_get_cable_type() 309 return cable_type; in rt8973a_muic_get_cable_type() 318 int ret, idx = 0, cable_type; in rt8973a_muic_cable_handler() local 326 cable_type = rt8973a_muic_get_cable_type(info); in rt8973a_muic_cable_handler() 330 cable_type = prev_cable_type; in rt8973a_muic_cable_handler() 338 cable_type = prev_cable_type; in rt8973a_muic_cable_handler() [all …]
|
D | extcon-max8997.c | 272 int cable_type = 0; in max8997_muic_get_cable_type() local 293 cable_type = info->prev_cable_type; in max8997_muic_get_cable_type() 298 cable_type = info->prev_cable_type = adc; in max8997_muic_get_cable_type() 312 cable_type = info->prev_chg_type; in max8997_muic_get_cable_type() 322 cable_type = info->prev_chg_type = chg_type; in max8997_muic_get_cable_type() 328 cable_type = -EINVAL; in max8997_muic_get_cable_type() 332 return cable_type; in max8997_muic_get_cable_type() 365 int cable_type, bool attached) in max8997_muic_handle_dock() argument 375 switch (cable_type) { in max8997_muic_handle_dock() 410 int cable_type; in max8997_muic_adc_handler() local [all …]
|
D | extcon-sm5502.c | 284 unsigned int cable_type = -1, adc, dev_type1; in sm5502_muic_get_cable_type() local 298 cable_type = adc & SM5502_REG_ADC_MASK; in sm5502_muic_get_cable_type() 299 if (cable_type == SM5502_MUIC_ADC_GROUND) in sm5502_muic_get_cable_type() 302 switch (cable_type) { in sm5502_muic_get_cable_type() 352 cable_type = SM5502_MUIC_ADC_OPEN_USB; in sm5502_muic_get_cable_type() 355 cable_type = SM5502_MUIC_ADC_OPEN_TA; in sm5502_muic_get_cable_type() 358 cable_type = SM5502_MUIC_ADC_OPEN_USB_OTG; in sm5502_muic_get_cable_type() 373 return cable_type; in sm5502_muic_get_cable_type() 381 unsigned int cable_type = SM5502_MUIC_ADC_GROUND; in sm5502_muic_cable_handler() local 392 cable_type = sm5502_muic_get_cable_type(info); in sm5502_muic_cable_handler() [all …]
|
/linux-4.1.27/drivers/video/fbdev/ |
D | pvr2fb.c | 172 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.1.27/drivers/net/wan/lmc/ |
D | lmc_var.h | 172 u32 cable_type; /* T1 */ member
|
D | lmc_media.c | 549 sc->ictl.cable_type = cable; in lmc_ssi_init()
|
/linux-4.1.27/drivers/net/ethernet/emulex/benet/ |
D | be_ethtool.c | 489 if (adapter->phy.cable_type & SFP_PLUS_COPPER_CABLE) in be_get_port_type() 495 if (adapter->phy.cable_type & QSFP_PLUS_CR4_CABLE) in be_get_port_type() 557 switch (adapter->phy.cable_type) { in convert_to_et_setting()
|
D | be.h | 408 u8 cable_type; member
|
D | be_cmds.c | 2335 adapter->phy.cable_type = in be_cmd_query_cable_type() 2339 adapter->phy.cable_type = in be_cmd_query_cable_type() 2343 adapter->phy.cable_type = 0; in be_cmd_query_cable_type()
|