Home
last modified time | relevance | path

Searched refs:cable_type (Results 1 - 22 of 22) sorted by relevance

/kernel/linux/linux-5.10/drivers/extcon/
H A Dextcon-max77843.c264 int adc, chg_type, cable_type, gnd_type; in max77843_muic_get_cable_type() local
274 cable_type = info->prev_cable_type; in max77843_muic_get_cable_type()
278 cable_type = info->prev_cable_type = adc; in max77843_muic_get_cable_type()
294 cable_type = info->prev_chg_type; in max77843_muic_get_cable_type()
303 cable_type = MAX77843_MUIC_CHG_GND; in max77843_muic_get_cable_type()
312 cable_type = info->prev_chg_type; in max77843_muic_get_cable_type()
316 cable_type = MAX77843_MUIC_CHG_DOCK; in max77843_muic_get_cable_type()
324 cable_type = info->prev_chg_type; in max77843_muic_get_cable_type()
328 cable_type = info->prev_chg_type = chg_type; in max77843_muic_get_cable_type()
334 cable_type in max77843_muic_get_cable_type()
410 max77843_muic_jig_handler(struct max77843_muic_info *info, int cable_type, bool attached) max77843_muic_jig_handler() argument
462 int ret, cable_type; max77843_muic_adc_handler() local
815 int cable_type; max77843_muic_probe() local
[all...]
H A Dextcon-max77693.c311 int cable_type = 0; in max77693_muic_get_cable_type() local
335 cable_type = info->prev_cable_type; in max77693_muic_get_cable_type()
340 cable_type = info->prev_cable_type = adc; in max77693_muic_get_cable_type()
359 cable_type = info->prev_cable_type_gnd; in max77693_muic_get_cable_type()
380 cable_type = ((0x1 << 8) in max77693_muic_get_cable_type()
386 info->prev_cable_type_gnd = cable_type; in max77693_muic_get_cable_type()
401 cable_type = info->prev_chg_type; in max77693_muic_get_cable_type()
411 cable_type = info->prev_chg_type = chg_type; in max77693_muic_get_cable_type()
438 cable_type = vbvolt; in max77693_muic_get_cable_type()
442 cable_type in max77693_muic_get_cable_type()
449 max77693_muic_dock_handler(struct max77693_muic_info *info, int cable_type, bool attached) max77693_muic_dock_handler() argument
617 max77693_muic_jig_handler(struct max77693_muic_info *info, int cable_type, bool attached) max77693_muic_jig_handler() argument
655 int cable_type; max77693_muic_adc_handler() local
765 int cable_type; max77693_muic_chg_handler() local
1075 int cable_type; max77693_muic_probe() local
[all...]
H A Dextcon-max14577.c256 int cable_type = 0; in max14577_muic_get_cable_type() local
277 cable_type = info->prev_cable_type; in max14577_muic_get_cable_type()
282 cable_type = info->prev_cable_type = adc; in max14577_muic_get_cable_type()
297 cable_type = info->prev_chg_type; in max14577_muic_get_cable_type()
307 cable_type = info->prev_chg_type = chg_type; in max14577_muic_get_cable_type()
313 cable_type = -EINVAL; in max14577_muic_get_cable_type()
317 return cable_type; in max14577_muic_get_cable_type()
321 int cable_type, bool attached) in max14577_muic_jig_handler()
328 attached ? "attached" : "detached", cable_type); in max14577_muic_jig_handler()
330 switch (cable_type) { in max14577_muic_jig_handler()
320 max14577_muic_jig_handler(struct max14577_muic_info *info, int cable_type, bool attached) max14577_muic_jig_handler() argument
357 int cable_type; max14577_muic_adc_handler() local
660 int cable_type; max14577_muic_probe() local
[all...]
H A Dextcon-max8997.c246 int cable_type = 0; in max8997_muic_get_cable_type() local
267 cable_type = info->prev_cable_type; in max8997_muic_get_cable_type()
272 cable_type = info->prev_cable_type = adc; in max8997_muic_get_cable_type()
286 cable_type = info->prev_chg_type; in max8997_muic_get_cable_type()
296 cable_type = info->prev_chg_type = chg_type; in max8997_muic_get_cable_type()
302 cable_type = -EINVAL; in max8997_muic_get_cable_type()
306 return cable_type; in max8997_muic_get_cable_type()
339 int cable_type, bool attached) in max8997_muic_handle_dock()
349 switch (cable_type) { in max8997_muic_handle_dock()
382 int cable_type; in max8997_muic_adc_handler() local
338 max8997_muic_handle_dock(struct max8997_muic_info *info, int cable_type, bool attached) max8997_muic_handle_dock() argument
633 int cable_type; max8997_muic_probe() local
[all...]
H A Dextcon-rt8973a.c263 int ret, cable_type; in rt8973a_muic_get_cable_type() local
271 cable_type = adc & RT8973A_REG_ADC_MASK; in rt8973a_muic_get_cable_type()
283 cable_type = RT8973A_MUIC_ADC_USB; in rt8973a_muic_get_cable_type()
285 cable_type = RT8973A_MUIC_ADC_TA; in rt8973a_muic_get_cable_type()
287 cable_type = RT8973A_MUIC_ADC_OPEN; in rt8973a_muic_get_cable_type()
293 return cable_type; in rt8973a_muic_get_cable_type()
301 int ret, cable_type; in rt8973a_muic_cable_handler() local
307 cable_type = rt8973a_muic_get_cable_type(info); in rt8973a_muic_cable_handler()
311 cable_type = prev_cable_type; in rt8973a_muic_cable_handler()
319 cable_type in rt8973a_muic_cable_handler()
[all...]
H A Dextcon-sm5502.c278 unsigned int cable_type, adc, dev_type1; in sm5502_muic_get_cable_type() local
292 cable_type = adc & SM5502_REG_ADC_MASK; in sm5502_muic_get_cable_type()
293 if (cable_type == SM5502_MUIC_ADC_GROUND) in sm5502_muic_get_cable_type()
296 switch (cable_type) { in sm5502_muic_get_cable_type()
346 cable_type = SM5502_MUIC_ADC_OPEN_USB; in sm5502_muic_get_cable_type()
349 cable_type = SM5502_MUIC_ADC_OPEN_TA; in sm5502_muic_get_cable_type()
352 cable_type = SM5502_MUIC_ADC_OPEN_USB_OTG; in sm5502_muic_get_cable_type()
367 return cable_type; in sm5502_muic_get_cable_type()
374 unsigned int cable_type = SM5502_MUIC_ADC_GROUND; in sm5502_muic_cable_handler() local
382 cable_type in sm5502_muic_cable_handler()
[all...]
/kernel/linux/linux-6.6/drivers/extcon/
H A Dextcon-max77843.c263 int adc, chg_type, cable_type, gnd_type; in max77843_muic_get_cable_type() local
273 cable_type = info->prev_cable_type; in max77843_muic_get_cable_type()
277 cable_type = info->prev_cable_type = adc; in max77843_muic_get_cable_type()
293 cable_type = info->prev_chg_type; in max77843_muic_get_cable_type()
302 cable_type = MAX77843_MUIC_CHG_GND; in max77843_muic_get_cable_type()
311 cable_type = info->prev_chg_type; in max77843_muic_get_cable_type()
315 cable_type = MAX77843_MUIC_CHG_DOCK; in max77843_muic_get_cable_type()
323 cable_type = info->prev_chg_type; in max77843_muic_get_cable_type()
327 cable_type = info->prev_chg_type = chg_type; in max77843_muic_get_cable_type()
333 cable_type in max77843_muic_get_cable_type()
409 max77843_muic_jig_handler(struct max77843_muic_info *info, int cable_type, bool attached) max77843_muic_jig_handler() argument
461 int ret, cable_type; max77843_muic_adc_handler() local
814 int cable_type; max77843_muic_probe() local
[all...]
H A Dextcon-max77693.c312 int cable_type = 0; in max77693_muic_get_cable_type() local
336 cable_type = info->prev_cable_type; in max77693_muic_get_cable_type()
341 cable_type = info->prev_cable_type = adc; in max77693_muic_get_cable_type()
360 cable_type = info->prev_cable_type_gnd; in max77693_muic_get_cable_type()
381 cable_type = ((0x1 << 8) in max77693_muic_get_cable_type()
387 info->prev_cable_type_gnd = cable_type; in max77693_muic_get_cable_type()
402 cable_type = info->prev_chg_type; in max77693_muic_get_cable_type()
412 cable_type = info->prev_chg_type = chg_type; in max77693_muic_get_cable_type()
439 cable_type = vbvolt; in max77693_muic_get_cable_type()
443 cable_type in max77693_muic_get_cable_type()
450 max77693_muic_dock_handler(struct max77693_muic_info *info, int cable_type, bool attached) max77693_muic_dock_handler() argument
618 max77693_muic_jig_handler(struct max77693_muic_info *info, int cable_type, bool attached) max77693_muic_jig_handler() argument
656 int cable_type; max77693_muic_adc_handler() local
766 int cable_type; max77693_muic_chg_handler() local
1076 int cable_type; max77693_muic_probe() local
[all...]
H A Dextcon-max14577.c257 int cable_type = 0; in max14577_muic_get_cable_type() local
278 cable_type = info->prev_cable_type; in max14577_muic_get_cable_type()
283 cable_type = info->prev_cable_type = adc; in max14577_muic_get_cable_type()
298 cable_type = info->prev_chg_type; in max14577_muic_get_cable_type()
308 cable_type = info->prev_chg_type = chg_type; in max14577_muic_get_cable_type()
314 cable_type = -EINVAL; in max14577_muic_get_cable_type()
318 return cable_type; in max14577_muic_get_cable_type()
322 int cable_type, bool attached) in max14577_muic_jig_handler()
329 attached ? "attached" : "detached", cable_type); in max14577_muic_jig_handler()
331 switch (cable_type) { in max14577_muic_jig_handler()
321 max14577_muic_jig_handler(struct max14577_muic_info *info, int cable_type, bool attached) max14577_muic_jig_handler() argument
358 int cable_type; max14577_muic_adc_handler() local
661 int cable_type; max14577_muic_probe() local
[all...]
H A Dextcon-max8997.c249 int cable_type = 0; in max8997_muic_get_cable_type() local
270 cable_type = info->prev_cable_type; in max8997_muic_get_cable_type()
275 cable_type = info->prev_cable_type = adc; in max8997_muic_get_cable_type()
289 cable_type = info->prev_chg_type; in max8997_muic_get_cable_type()
299 cable_type = info->prev_chg_type = chg_type; in max8997_muic_get_cable_type()
305 cable_type = -EINVAL; in max8997_muic_get_cable_type()
309 return cable_type; in max8997_muic_get_cable_type()
342 int cable_type, bool attached) in max8997_muic_handle_dock()
352 switch (cable_type) { in max8997_muic_handle_dock()
385 int cable_type; in max8997_muic_adc_handler() local
341 max8997_muic_handle_dock(struct max8997_muic_info *info, int cable_type, bool attached) max8997_muic_handle_dock() argument
638 int cable_type; max8997_muic_probe() local
[all...]
H A Dextcon-rt8973a.c262 int ret, cable_type; in rt8973a_muic_get_cable_type() local
270 cable_type = adc & RT8973A_REG_ADC_MASK; in rt8973a_muic_get_cable_type()
282 cable_type = RT8973A_MUIC_ADC_USB; in rt8973a_muic_get_cable_type()
284 cable_type = RT8973A_MUIC_ADC_TA; in rt8973a_muic_get_cable_type()
286 cable_type = RT8973A_MUIC_ADC_OPEN; in rt8973a_muic_get_cable_type()
292 return cable_type; in rt8973a_muic_get_cable_type()
300 int ret, cable_type; in rt8973a_muic_cable_handler() local
306 cable_type = rt8973a_muic_get_cable_type(info); in rt8973a_muic_cable_handler()
310 cable_type = prev_cable_type; in rt8973a_muic_cable_handler()
318 cable_type in rt8973a_muic_cable_handler()
[all...]
H A Dextcon-sm5502.c361 unsigned int cable_type, adc, dev_type1; in sm5502_muic_get_cable_type() local
375 cable_type = adc & SM5502_REG_ADC_MASK; in sm5502_muic_get_cable_type()
377 switch (cable_type) { in sm5502_muic_get_cable_type()
387 cable_type = SM5502_MUIC_ADC_GROUND_USB_OTG; in sm5502_muic_get_cable_type()
442 cable_type = SM5502_MUIC_ADC_OPEN_USB_OTG; in sm5502_muic_get_cable_type()
448 cable_type = SM5502_MUIC_ADC_OPEN_USB; in sm5502_muic_get_cable_type()
451 cable_type = SM5502_MUIC_ADC_OPEN_TA; in sm5502_muic_get_cable_type()
466 return cable_type; in sm5502_muic_get_cable_type()
473 unsigned int cable_type = SM5502_MUIC_ADC_GROUND; in sm5502_muic_cable_handler() local
481 cable_type in sm5502_muic_cable_handler()
[all...]
/kernel/linux/linux-5.10/drivers/video/fbdev/
H A Dpvr2fb.c173 static int cable_type = CT_VGA; variable
335 if (cable_type < 0) { in pvr2_init_cable()
338 cable_type = (fb_readw(PDTRA) >> 8) & 3; in pvr2_init_cable()
344 if (cable_type == CT_COMPOSITE) in pvr2_init_cable()
346 else if (cable_type == CT_RGB) in pvr2_init_cable()
351 return cable_type; in pvr2_init_cable()
368 cable_type = pvr2_init_cable(); in pvr2fb_set_par()
369 if (cable_type == CT_VGA && video_output != VO_VGA) in pvr2fb_set_par()
842 pvr2_get_param_name(cables, cable_type, 3), in pvr2fb_common_init()
890 if (cable_type in pvr2fb_dc_init()
[all...]
/kernel/linux/linux-6.6/drivers/video/fbdev/
H A Dpvr2fb.c174 static int cable_type = CT_VGA; variable
336 if (cable_type < 0) { in pvr2_init_cable()
339 cable_type = (fb_readw(PDTRA) >> 8) & 3; in pvr2_init_cable()
345 if (cable_type == CT_COMPOSITE) in pvr2_init_cable()
347 else if (cable_type == CT_RGB) in pvr2_init_cable()
352 return cable_type; in pvr2_init_cable()
369 cable_type = pvr2_init_cable(); in pvr2fb_set_par()
370 if (cable_type == CT_VGA && video_output != VO_VGA) in pvr2fb_set_par()
846 pvr2_get_param_name(cables, cable_type, 3), in pvr2fb_common_init()
894 if (cable_type in pvr2fb_dc_init()
[all...]
/kernel/linux/linux-5.10/drivers/net/wan/lmc/
H A Dlmc_var.h170 u32 cable_type; /* T1 */ member
H A Dlmc_media.c548 sc->ictl.cable_type = cable; in lmc_ssi_init()
/kernel/linux/linux-5.10/drivers/net/ethernet/emulex/benet/
H A Dbe_ethtool.c494 if (adapter->phy.cable_type & SFP_PLUS_COPPER_CABLE) in be_get_port_type()
500 if (adapter->phy.cable_type & QSFP_PLUS_CR4_CABLE) in be_get_port_type()
562 switch (adapter->phy.cable_type) { in convert_to_et_setting()
H A Dbe.h398 u8 cable_type; member
H A Dbe_cmds.c2422 adapter->phy.cable_type = in be_cmd_query_cable_type()
2426 adapter->phy.cable_type = in be_cmd_query_cable_type()
2430 adapter->phy.cable_type = 0; in be_cmd_query_cable_type()
/kernel/linux/linux-6.6/drivers/net/ethernet/emulex/benet/
H A 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()
H A Dbe.h397 u8 cable_type; member
H A Dbe_cmds.c2423 adapter->phy.cable_type = in be_cmd_query_cable_type()
2427 adapter->phy.cable_type = in be_cmd_query_cable_type()
2431 adapter->phy.cable_type = 0; in be_cmd_query_cable_type()

Completed in 35 milliseconds