Searched refs:cable_index (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/include/linux/
H A Dextcon.h144 * @cable_index: Index of this cable in the edev
152 int cable_index; member in struct:extcon_cable
168 * @cable_index: the target cable.
175 int cable_index; member in struct:extcon_specific_cable_nb
220 * or cable_index, which is retrieved by extcon_find_cable_index
224 extern int extcon_get_cable_state_(struct extcon_dev *edev, int cable_index);
225 extern int extcon_set_cable_state_(struct extcon_dev *edev, int cable_index,
317 int cable_index) extcon_get_cable_state_()
323 int cable_index, bool cable_state) extcon_set_cable_state_()
316 extcon_get_cable_state_(struct extcon_dev *edev, int cable_index) extcon_get_cable_state_() argument
322 extcon_set_cable_state_(struct extcon_dev *edev, int cable_index, bool cable_state) extcon_set_cable_state_() argument
/linux-4.1.27/drivers/extcon/
H A Dextcon.c177 cable->edev->supported_cable[cable->cable_index]); cable_name_show()
188 cable->cable_index)); cable_state_show()
291 * Note that accessing a cable state based on cable_index is faster than
293 * Thus, when get/set_cable_state is repeatedly used, using cable_index
405 if ((val & (1 << obj->cable_index)) != _call_per_cable()
406 (edev->state & (1 << obj->cable_index))) { _call_per_cable()
411 if (val & (1 << obj->cable_index)) _call_per_cable()
459 obj->cable_index = extcon_find_cable_index(obj->edev, extcon_register_interest()
461 if (obj->cable_index < 0) extcon_register_interest()
462 return obj->cable_index; extcon_register_interest()
765 cable->cable_index = index; extcon_dev_register()

Completed in 106 milliseconds