Home
last modified time | relevance | path

Searched refs:edev (Results 1 – 70 of 70) sorted by relevance

/linux-4.1.27/drivers/devfreq/
Ddevfreq-event.c40 int devfreq_event_enable_edev(struct devfreq_event_dev *edev) in devfreq_event_enable_edev() argument
44 if (!edev || !edev->desc) in devfreq_event_enable_edev()
47 mutex_lock(&edev->lock); in devfreq_event_enable_edev()
48 if (edev->desc->ops && edev->desc->ops->enable in devfreq_event_enable_edev()
49 && edev->enable_count == 0) { in devfreq_event_enable_edev()
50 ret = edev->desc->ops->enable(edev); in devfreq_event_enable_edev()
54 edev->enable_count++; in devfreq_event_enable_edev()
56 mutex_unlock(&edev->lock); in devfreq_event_enable_edev()
72 int devfreq_event_disable_edev(struct devfreq_event_dev *edev) in devfreq_event_disable_edev() argument
76 if (!edev || !edev->desc) in devfreq_event_disable_edev()
[all …]
/linux-4.1.27/drivers/extcon/
Dextcon.c85 static int check_mutually_exclusive(struct extcon_dev *edev, u32 new_state) in check_mutually_exclusive() argument
89 if (!edev->mutually_exclusive) in check_mutually_exclusive()
92 for (i = 0; edev->mutually_exclusive[i]; i++) { in check_mutually_exclusive()
94 u32 correspondants = new_state & edev->mutually_exclusive[i]; in check_mutually_exclusive()
109 struct extcon_dev *edev = dev_get_drvdata(dev); in state_show() local
111 if (edev->print_state) { in state_show()
112 int ret = edev->print_state(edev, buf); in state_show()
119 if (edev->max_supported == 0) in state_show()
120 return sprintf(buf, "%u\n", edev->state); in state_show()
123 if (!edev->supported_cable[i]) in state_show()
[all …]
Dextcon-palmas.c60 extcon_set_cable_state(palmas_usb->edev, "USB", true); in palmas_vbus_irq_handler()
69 extcon_set_cable_state(palmas_usb->edev, "USB", false); in palmas_vbus_irq_handler()
96 extcon_set_cable_state(palmas_usb->edev, "USB-HOST", true); in palmas_id_irq_handler()
104 extcon_set_cable_state(palmas_usb->edev, "USB-HOST", false); in palmas_id_irq_handler()
109 extcon_set_cable_state(palmas_usb->edev, "USB-HOST", false); in palmas_id_irq_handler()
114 extcon_set_cable_state(palmas_usb->edev, "USB-HOST", true); in palmas_id_irq_handler()
190 palmas_usb->edev = devm_extcon_dev_allocate(&pdev->dev, in palmas_usb_probe()
192 if (IS_ERR(palmas_usb->edev)) { in palmas_usb_probe()
196 palmas_usb->edev->name = kstrdup(node->name, GFP_KERNEL); in palmas_usb_probe()
197 palmas_usb->edev->mutually_exclusive = mutually_exclusive; in palmas_usb_probe()
[all …]
Dextcon-gpio.c35 struct extcon_dev *edev; member
56 extcon_set_state(data->edev, state); in gpio_extcon_work()
68 static ssize_t extcon_gpio_print_state(struct extcon_dev *edev, char *buf) in extcon_gpio_print_state() argument
70 struct device *dev = edev->dev.parent; in extcon_gpio_print_state()
74 if (extcon_get_state(edev)) in extcon_gpio_print_state()
102 extcon_data->edev = devm_extcon_dev_allocate(&pdev->dev, NULL); in gpio_extcon_probe()
103 if (IS_ERR(extcon_data->edev)) { in gpio_extcon_probe()
107 extcon_data->edev->name = pdata->name; in gpio_extcon_probe()
115 extcon_data->edev->print_state = extcon_gpio_print_state; in gpio_extcon_probe()
130 ret = devm_extcon_dev_register(&pdev->dev, extcon_data->edev); in gpio_extcon_probe()
Dextcon-usb-gpio.c32 struct extcon_dev *edev; member
70 extcon_set_cable_state(info->edev, in usb_extcon_detect_cable()
73 extcon_set_cable_state(info->edev, in usb_extcon_detect_cable()
82 extcon_set_cable_state(info->edev, in usb_extcon_detect_cable()
85 extcon_set_cable_state(info->edev, in usb_extcon_detect_cable()
122 info->edev = devm_extcon_dev_allocate(dev, usb_extcon_cable); in usb_extcon_probe()
123 if (IS_ERR(info->edev)) { in usb_extcon_probe()
128 ret = devm_extcon_dev_register(dev, info->edev); in usb_extcon_probe()
Dextcon-adc-jack.c42 struct extcon_dev *edev; member
67 dev_err(&data->edev->dev, "read channel() error: %d\n", ret); in adc_jack_handler()
83 extcon_set_state(data->edev, state); in adc_jack_handler()
110 data->edev = devm_extcon_dev_allocate(&pdev->dev, pdata->cable_names); in adc_jack_probe()
111 if (IS_ERR(data->edev)) { in adc_jack_probe()
115 data->edev->name = pdata->name; in adc_jack_probe()
118 for (i = 0; data->edev->supported_cable[i]; i++) in adc_jack_probe()
149 err = devm_extcon_dev_register(&pdev->dev, data->edev); in adc_jack_probe()
Dextcon-max77693.c77 struct extcon_dev *edev; member
532 extcon_set_cable_state(info->edev, "Dock-Smart", attached); in max77693_muic_dock_handler()
533 extcon_set_cable_state(info->edev, "MHL", attached); in max77693_muic_dock_handler()
541 extcon_set_cable_state(info->edev, "USB", false); in max77693_muic_dock_handler()
553 extcon_set_cable_state(info->edev, dock_name, attached); in max77693_muic_dock_handler()
618 extcon_set_cable_state(info->edev, "USB-Host", attached); in max77693_muic_adc_ground_handler()
625 extcon_set_cable_state(info->edev, in max77693_muic_adc_ground_handler()
631 extcon_set_cable_state(info->edev, "MHL", attached); in max77693_muic_adc_ground_handler()
684 extcon_set_cable_state(info->edev, cable_name, attached); in max77693_muic_jig_handler()
838 extcon_set_cable_state(info->edev, "MHL-TA", attached); in max77693_muic_chg_handler()
[all …]
Dextcon-max8997.c120 struct extcon_dev *edev; member
350 extcon_set_cable_state(info->edev, "USB-Host", attached); in max8997_muic_handle_usb()
353 extcon_set_cable_state(info->edev, "USB", attached); in max8997_muic_handle_usb()
377 extcon_set_cable_state(info->edev, "Dock-desk", attached); in max8997_muic_handle_dock()
380 extcon_set_cable_state(info->edev, "Dock-card", attached); in max8997_muic_handle_dock()
403 extcon_set_cable_state(info->edev, "JIG", attached); in max8997_muic_handle_jig_uart()
425 extcon_set_cable_state(info->edev, "MHL", attached); in max8997_muic_adc_handler()
508 extcon_set_cable_state(info->edev, in max8997_muic_chg_handler()
512 extcon_set_cable_state(info->edev, "TA", attached); in max8997_muic_chg_handler()
515 extcon_set_cable_state(info->edev, "Slow-charger", attached); in max8997_muic_chg_handler()
[all …]
Dextcon-max77843.c36 struct extcon_dev *edev; member
365 extcon_set_cable_state(info->edev, "USB-HOST", attached); in max77843_muic_adc_gnd_handler()
373 extcon_set_cable_state(info->edev, "MHL", attached); in max77843_muic_adc_gnd_handler()
397 extcon_set_cable_state(info->edev, "JIG-USB-OFF", attached); in max77843_muic_jig_handler()
403 extcon_set_cable_state(info->edev, "JIG-USB-ON", attached); in max77843_muic_jig_handler()
409 extcon_set_cable_state(info->edev, "JIG-UART-OFF", attached); in max77843_muic_jig_handler()
508 extcon_set_cable_state(info->edev, "USB", attached); in max77843_muic_chg_handler()
515 extcon_set_cable_state(info->edev, in max77843_muic_chg_handler()
523 extcon_set_cable_state(info->edev, "TA", attached); in max77843_muic_chg_handler()
530 extcon_set_cable_state(info->edev, "SLOW-CHAREGER", attached); in max77843_muic_chg_handler()
[all …]
Dextcon-max14577.c82 struct extcon_dev *edev; member
385 extcon_set_cable_state(info->edev, cable_name, attached); in max14577_muic_jig_handler()
482 extcon_set_cable_state(info->edev, "USB", attached); in max14577_muic_chg_handler()
485 extcon_set_cable_state(info->edev, "TA", attached); in max14577_muic_chg_handler()
488 extcon_set_cable_state(info->edev, in max14577_muic_chg_handler()
492 extcon_set_cable_state(info->edev, "Slow-charger", attached); in max14577_muic_chg_handler()
495 extcon_set_cable_state(info->edev, "Fast-charger", attached); in max14577_muic_chg_handler()
516 if (!info->edev) in max14577_muic_irq_work()
738 info->edev = devm_extcon_dev_allocate(&pdev->dev, in max14577_muic_probe()
740 if (IS_ERR(info->edev)) { in max14577_muic_probe()
[all …]
Dextcon-sm5502.c42 struct extcon_dev *edev; member
380 const char **cable_names = info->edev->supported_cable; in sm5502_muic_cable_handler()
425 extcon_set_cable_state(info->edev, cable_names[idx], attached); in sm5502_muic_cable_handler()
436 if (!info->edev) in sm5502_muic_irq_work()
621 info->edev = devm_extcon_dev_allocate(info->dev, sm5502_extcon_cable); in sm5022_muic_i2c_probe()
622 if (IS_ERR(info->edev)) { in sm5022_muic_i2c_probe()
626 info->edev->name = np->name; in sm5022_muic_i2c_probe()
629 ret = devm_extcon_dev_register(info->dev, info->edev); in sm5022_muic_i2c_probe()
Dextcon-rt8973a.c44 struct extcon_dev *edev; member
316 const char **cable_names = info->edev->supported_cable; in rt8973a_muic_cable_handler()
424 extcon_set_cable_state(info->edev, cable_names[idx], attached); in rt8973a_muic_cable_handler()
435 if (!info->edev) in rt8973a_muic_irq_work()
641 info->edev = devm_extcon_dev_allocate(info->dev, rt8973a_extcon_cable); in rt8973a_muic_i2c_probe()
642 if (IS_ERR(info->edev)) { in rt8973a_muic_i2c_probe()
646 info->edev->name = np->name; in rt8973a_muic_i2c_probe()
649 ret = devm_extcon_dev_register(info->dev, info->edev); in rt8973a_muic_i2c_probe()
Dextcon-arizona.c99 struct extcon_dev *edev; member
576 ret = extcon_get_cable_state_(info->edev, ARIZONA_CABLE_MECHANICAL); in arizona_hpdet_irq()
611 ret = extcon_set_cable_state_(info->edev, report, true); in arizona_hpdet_irq()
694 ret = extcon_set_cable_state_(info->edev, in arizona_identify_headphone()
752 ret = extcon_set_cable_state_(info->edev, in arizona_start_hpdet_acc_id()
792 ret = extcon_get_cable_state_(info->edev, ARIZONA_CABLE_MECHANICAL); in arizona_micd_detect()
840 ret = extcon_set_cable_state_(info->edev, in arizona_micd_detect()
1032 ret = extcon_set_cable_state_(info->edev, in arizona_jackdet()
1071 ret = extcon_update_state(info->edev, 0xffffffff, 0); in arizona_jackdet()
1183 info->edev = devm_extcon_dev_allocate(&pdev->dev, arizona_cable); in arizona_extcon_probe()
[all …]
/linux-4.1.27/drivers/eisa/
Deisa-bus.c45 struct eisa_device *edev) in is_forced_dev() argument
50 x = (root->bus_nr << 8) | edev->slot; in is_forced_dev()
58 static void __init eisa_name_device(struct eisa_device *edev) in eisa_name_device() argument
63 if (!strcmp(edev->id.sig, eisa_table[i].id.sig)) { in eisa_name_device()
64 strlcpy(edev->pretty_name, in eisa_name_device()
66 sizeof(edev->pretty_name)); in eisa_name_device()
72 sprintf(edev->pretty_name, "EISA device %.7s", edev->id.sig); in eisa_name_device()
111 struct eisa_device *edev = to_eisa_device(dev); in eisa_bus_match() local
119 if (!strcmp(eids->sig, edev->id.sig) && in eisa_bus_match()
120 edev->state & EISA_CONFIG_ENABLED) { in eisa_bus_match()
[all …]
/linux-4.1.27/drivers/misc/eeprom/
Deeprom_93xx46.c41 struct eeprom_93xx46_dev *edev; in eeprom_93xx46_bin_read() local
49 edev = dev_get_drvdata(dev); in eeprom_93xx46_bin_read()
51 if (unlikely(off >= edev->bin.size)) in eeprom_93xx46_bin_read()
53 if ((off + count) > edev->bin.size) in eeprom_93xx46_bin_read()
54 count = edev->bin.size - off; in eeprom_93xx46_bin_read()
58 cmd_addr = OP_READ << edev->addrlen; in eeprom_93xx46_bin_read()
60 if (edev->addrlen == 7) { in eeprom_93xx46_bin_read()
68 dev_dbg(&edev->spi->dev, "read cmd 0x%x, %d Hz\n", in eeprom_93xx46_bin_read()
69 cmd_addr, edev->spi->max_speed_hz); in eeprom_93xx46_bin_read()
84 mutex_lock(&edev->lock); in eeprom_93xx46_bin_read()
[all …]
/linux-4.1.27/drivers/misc/
Denclosure.c57 struct enclosure_device *edev; in enclosure_find() local
60 edev = list_prepare_entry(start, &container_list, node); in enclosure_find()
62 put_device(&start->edev); in enclosure_find()
64 list_for_each_entry_continue(edev, &container_list, node) { in enclosure_find()
65 struct device *parent = edev->edev.parent; in enclosure_find()
70 get_device(&edev->edev); in enclosure_find()
72 return edev; in enclosure_find()
99 struct enclosure_device *edev; in enclosure_for_each_device() local
102 list_for_each_entry(edev, &container_list, node) { in enclosure_for_each_device()
103 error = fn(edev, data); in enclosure_for_each_device()
[all …]
/linux-4.1.27/drivers/firmware/
Dedd.c65 ssize_t(*show) (struct edd_device * edev, char *buf);
66 int (*test) (struct edd_device * edev);
70 static int edd_dev_is_type(struct edd_device *edev, const char *type);
71 static struct pci_dev *edd_get_pci_dev(struct edd_device *edev);
83 edd_has_mbr_signature(struct edd_device *edev) in edd_has_mbr_signature() argument
85 return edev->index < min_t(unsigned char, edd.mbr_signature_nr, EDD_MBR_SIG_MAX); in edd_has_mbr_signature()
89 edd_has_edd_info(struct edd_device *edev) in edd_has_edd_info() argument
91 return edev->index < min_t(unsigned char, edd.edd_info_nr, EDDMAXNR); in edd_has_edd_info()
95 edd_dev_get_info(struct edd_device *edev) in edd_dev_get_info() argument
97 return edev->info; in edd_dev_get_info()
[all …]
/linux-4.1.27/tools/usb/usbip/libsrc/
Dusbip_host_driver.c71 struct usbip_exported_device *edev = NULL; in usbip_exported_device_new() local
76 edev = calloc(1, sizeof(struct usbip_exported_device)); in usbip_exported_device_new()
78 edev->sudev = udev_device_new_from_syspath(udev_context, sdevpath); in usbip_exported_device_new()
79 if (!edev->sudev) { in usbip_exported_device_new()
84 read_usb_device(edev->sudev, &edev->udev); in usbip_exported_device_new()
86 edev->status = read_attr_usbip_status(&edev->udev); in usbip_exported_device_new()
87 if (edev->status < 0) in usbip_exported_device_new()
92 edev->udev.bNumInterfaces * sizeof(struct usbip_usb_interface); in usbip_exported_device_new()
94 edev_old = edev; in usbip_exported_device_new()
95 edev = realloc(edev, size); in usbip_exported_device_new()
[all …]
Dusbip_host_driver.h46 int usbip_host_export_device(struct usbip_exported_device *edev, int sockfd);
/linux-4.1.27/arch/powerpc/kernel/
Deeh_pe.c202 struct eeh_dev *edev, *tmp; in eeh_pe_dev_traverse() local
213 eeh_pe_for_each_dev(pe, edev, tmp) { in eeh_pe_dev_traverse()
214 ret = fn(edev, flag); in eeh_pe_dev_traverse()
236 struct eeh_dev *edev = (struct eeh_dev *)flag; in __eeh_pe_get() local
247 if (edev->pe_config_addr == pe->addr) in __eeh_pe_get()
250 if (edev->pe_config_addr && in __eeh_pe_get()
251 (edev->pe_config_addr == pe->addr)) in __eeh_pe_get()
256 if (edev->config_addr && in __eeh_pe_get()
257 (edev->config_addr == pe->config_addr)) in __eeh_pe_get()
274 struct eeh_pe *eeh_pe_get(struct eeh_dev *edev) in eeh_pe_get() argument
[all …]
Deeh_sysfs.c44 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); \
46 if (!edev) \
49 return sprintf(buf, _format "\n", edev->_memb); \
61 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); in eeh_pe_state_show() local
64 if (!edev || !edev->pe) in eeh_pe_state_show()
67 state = eeh_ops->get_state(edev->pe, NULL); in eeh_pe_state_show()
69 state, edev->pe->state); in eeh_pe_state_show()
77 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); in eeh_pe_state_store() local
79 if (!edev || !edev->pe) in eeh_pe_state_store()
83 if (!(edev->pe->state & EEH_PE_ISOLATED)) in eeh_pe_state_store()
[all …]
Deeh.c165 static size_t eeh_dump_dev_log(struct eeh_dev *edev, char *buf, size_t len) in eeh_dump_dev_log() argument
167 struct pci_dn *pdn = eeh_dev_to_pdn(edev); in eeh_dump_dev_log()
174 edev->phb->global_number, pdn->busno, in eeh_dump_dev_log()
177 edev->phb->global_number, pdn->busno, in eeh_dump_dev_log()
189 if (edev->mode & EEH_DEV_BRIDGE) { in eeh_dump_dev_log()
200 cap = edev->pcix_cap; in eeh_dump_dev_log()
212 cap = edev->pcie_cap; in eeh_dump_dev_log()
239 cap = edev->aer_cap; in eeh_dump_dev_log()
270 struct eeh_dev *edev, *tmp; in eeh_dump_pe_log() local
280 eeh_pe_for_each_dev(pe, edev, tmp) in eeh_dump_pe_log()
[all …]
Deeh_driver.c98 struct eeh_dev *edev = pci_dev_to_eeh_dev(dev); in eeh_disable_irq() local
110 edev->mode |= EEH_DEV_IRQ_DISABLED; in eeh_disable_irq()
123 struct eeh_dev *edev = pci_dev_to_eeh_dev(dev); in eeh_enable_irq() local
125 if ((edev->mode) & EEH_DEV_IRQ_DISABLED) { in eeh_enable_irq()
126 edev->mode &= ~EEH_DEV_IRQ_DISABLED; in eeh_enable_irq()
152 static bool eeh_dev_removed(struct eeh_dev *edev) in eeh_dev_removed() argument
155 if (!edev || (edev->mode & EEH_DEV_REMOVED)) in eeh_dev_removed()
163 struct eeh_dev *edev = data; in eeh_dev_save_state() local
166 if (!edev) in eeh_dev_save_state()
176 if (edev->pe && (edev->pe->state & EEH_PE_CFG_RESTRICTED)) in eeh_dev_save_state()
[all …]
Deeh_dev.c55 struct eeh_dev *edev; in eeh_dev_init() local
58 edev = kzalloc(sizeof(*edev), GFP_KERNEL); in eeh_dev_init()
59 if (!edev) { in eeh_dev_init()
66 pdn->edev = edev; in eeh_dev_init()
67 edev->pdn = pdn; in eeh_dev_init()
68 edev->phb = phb; in eeh_dev_init()
69 INIT_LIST_HEAD(&edev->list); in eeh_dev_init()
Deeh_cache.c53 struct eeh_dev *edev; member
76 return piar->edev; in __eeh_addr_cache_get_device()
94 struct eeh_dev *edev; in eeh_addr_cache_get_dev() local
98 edev = __eeh_addr_cache_get_device(addr); in eeh_addr_cache_get_dev()
100 return edev; in eeh_addr_cache_get_dev()
157 piar->edev = pci_dev_to_eeh_dev(dev); in eeh_addr_cache_insert()
175 struct eeh_dev *edev; in __eeh_addr_cache_insert_dev() local
185 edev = pdn_to_eeh_dev(pdn); in __eeh_addr_cache_insert_dev()
186 if (!edev) { in __eeh_addr_cache_insert_dev()
193 if (!edev->pe) { in __eeh_addr_cache_insert_dev()
[all …]
Drtas_pci.c69 if (pdn->edev && pdn->edev->pe && in rtas_read_config()
70 (pdn->edev->pe->state & EEH_PE_CFG_BLOCKED)) in rtas_read_config()
132 if (pdn->edev && pdn->edev->pe && in rtas_write_config()
133 (pdn->edev->pe->state & EEH_PE_CFG_BLOCKED)) in rtas_write_config()
Dpci_of_scan.c311 struct eeh_dev *edev = pdn_to_eeh_dev(PCI_DN(dn)); in of_scan_pci_dev() local
332 if (edev && (edev->mode & EEH_DEV_REMOVED)) in of_scan_pci_dev()
/linux-4.1.27/include/linux/
Dextcon.h120 ssize_t (*print_name)(struct extcon_dev *edev, char *buf);
121 ssize_t (*print_state)(struct extcon_dev *edev, char *buf);
151 struct extcon_dev *edev; member
176 struct extcon_dev *edev; member
186 extern int extcon_dev_register(struct extcon_dev *edev);
187 extern void extcon_dev_unregister(struct extcon_dev *edev);
189 struct extcon_dev *edev);
191 struct extcon_dev *edev);
198 extern void extcon_dev_free(struct extcon_dev *edev);
201 extern void devm_extcon_dev_free(struct device *dev, struct extcon_dev *edev);
[all …]
Ddevfreq-event.h70 int (*enable)(struct devfreq_event_dev *edev);
71 int (*disable)(struct devfreq_event_dev *edev);
72 int (*reset)(struct devfreq_event_dev *edev);
75 int (*set_event)(struct devfreq_event_dev *edev);
76 int (*get_event)(struct devfreq_event_dev *edev,
98 extern int devfreq_event_enable_edev(struct devfreq_event_dev *edev);
99 extern int devfreq_event_disable_edev(struct devfreq_event_dev *edev);
100 extern bool devfreq_event_is_enabled(struct devfreq_event_dev *edev);
101 extern int devfreq_event_set_event(struct devfreq_event_dev *edev);
102 extern int devfreq_event_get_event(struct devfreq_event_dev *edev,
[all …]
Deisa.h79 static inline void *eisa_get_drvdata (struct eisa_device *edev) in eisa_get_drvdata() argument
81 return dev_get_drvdata(&edev->dev); in eisa_get_drvdata()
84 static inline void eisa_set_drvdata (struct eisa_device *edev, void *data) in eisa_set_drvdata() argument
86 dev_set_drvdata(&edev->dev, data); in eisa_set_drvdata()
Denclosure.h108 struct device edev; member
117 return container_of(dev, struct enclosure_device, edev); in to_enclosure_device()
Dpci.h1893 return pdev->dev.archdata.edev; in pci_dev_to_eeh_dev()
/linux-4.1.27/drivers/input/keyboard/
Dgoldfish_events.c46 struct event_dev *edev = dev_id; in events_interrupt() local
49 type = __raw_readl(edev->addr + REG_READ); in events_interrupt()
50 code = __raw_readl(edev->addr + REG_READ); in events_interrupt()
51 value = __raw_readl(edev->addr + REG_READ); in events_interrupt()
53 input_event(edev->input, type, code, value); in events_interrupt()
54 input_sync(edev->input); in events_interrupt()
58 static void events_import_bits(struct event_dev *edev, in events_import_bits() argument
61 void __iomem *addr = edev->addr; in events_import_bits()
81 static void events_import_abs_params(struct event_dev *edev) in events_import_abs_params() argument
83 struct input_dev *input_dev = edev->input; in events_import_abs_params()
[all …]
/linux-4.1.27/drivers/scsi/
Dses.c122 static int ses_set_page2_descriptor(struct enclosure_device *edev, in ses_set_page2_descriptor() argument
127 struct scsi_device *sdev = to_scsi_device(edev->edev.parent); in ses_set_page2_descriptor()
128 struct ses_device *ses_dev = edev->scratch; in ses_set_page2_descriptor()
153 static unsigned char *ses_get_page2_descriptor(struct enclosure_device *edev, in ses_get_page2_descriptor() argument
157 struct scsi_device *sdev = to_scsi_device(edev->edev.parent); in ses_get_page2_descriptor()
158 struct ses_device *ses_dev = edev->scratch; in ses_get_page2_descriptor()
181 static void ses_get_fault(struct enclosure_device *edev, in ses_get_fault() argument
186 desc = ses_get_page2_descriptor(edev, ecomp); in ses_get_fault()
191 static int ses_set_fault(struct enclosure_device *edev, in ses_set_fault() argument
198 desc_ptr = ses_get_page2_descriptor(edev, ecomp); in ses_set_fault()
[all …]
Daha1740.c73 struct eisa_device *edev; member
114 shpnt->io_port, shpnt->irq, host->edev->slot, in aha1740_show_info()
219 struct eisa_device *edev; in aha1740_intr_handle() local
226 edev = HOSTDATA(host)->edev; in aha1740_intr_handle()
258 dma_free_coherent (&edev->dev, in aha1740_intr_handle()
384 SCpnt->host_scribble = dma_alloc_coherent (&host->edev->dev, in aha1740_queuecommand_lck()
558 struct eisa_device *edev = to_eisa_device (dev); in aha1740_probe() local
562 slotbase = edev->base_addr + EISA_VENDOR_ID_OFFSET; in aha1740_probe()
575 edev->slot, slotbase, irq_level, irq_type ? "edge" : "level"); in aha1740_probe()
589 host->edev = edev; in aha1740_probe()
[all …]
Dsim710.c182 struct eisa_device *edev = to_eisa_device(dev); in sim710_eisa_probe() local
183 unsigned long io_addr = edev->base_addr; in sim710_eisa_probe()
190 if(strcmp(edev->id.sig, "HWP0C80") == 0) { in sim710_eisa_probe()
Dscsi_transport_sas.c1346 struct sas_expander_device *edev = rphy_to_expander_device(rphy); \
1348 return snprintf(buf, 20, format_string, cast edev->field); \
1438 struct sas_expander_device *edev = rphy_to_expander_device(rphy); in sas_expander_release() local
1444 kfree(edev); in sas_expander_release()
1450 struct sas_end_device *edev = rphy_to_end_device(rphy); in sas_end_device_release() local
1456 kfree(edev); in sas_end_device_release()
Dadvansys.c12063 static unsigned int advansys_eisa_irq_no(struct eisa_device *edev) in advansys_eisa_irq_no() argument
12065 unsigned short cfg_lsw = inw(edev->base_addr + 0xc86); in advansys_eisa_irq_no()
12076 struct eisa_device *edev = to_eisa_device(dev); in advansys_eisa_probe() local
12083 ioport = edev->base_addr + 0xc30; in advansys_eisa_probe()
12109 irq = advansys_eisa_irq_no(edev); in advansys_eisa_probe()
/linux-4.1.27/Documentation/extcon/
Dporting-android-switch-class28 => extcon_dev_register(edev)
29 : type change (sdev->edev)
30 : remove second param('dev'). if edev has parent device, should store
31 'dev' to 'edev.dev.parent' before registering extcon device
33 => extcon_dev_unregister(edev)
34 : no change but type change (sdev->edev)
36 => extcon_get_state(edev)
37 : no change but type change (sdev->edev) and (return: int->u32)
39 => extcon_set_state(edev, state)
40 : no change but type change (sdev->edev) and (state: int->u32)
[all …]
/linux-4.1.27/drivers/devfreq/event/
Dexynos-ppmu.c32 struct devfreq_event_dev **edev; member
88 static int exynos_ppmu_find_ppmu_id(struct devfreq_event_dev *edev) in exynos_ppmu_find_ppmu_id() argument
93 if (!strcmp(edev->desc->name, ppmu_events[i].name)) in exynos_ppmu_find_ppmu_id()
99 static int exynos_ppmu_disable(struct devfreq_event_dev *edev) in exynos_ppmu_disable() argument
101 struct exynos_ppmu *info = devfreq_event_get_drvdata(edev); in exynos_ppmu_disable()
120 static int exynos_ppmu_set_event(struct devfreq_event_dev *edev) in exynos_ppmu_set_event() argument
122 struct exynos_ppmu *info = devfreq_event_get_drvdata(edev); in exynos_ppmu_set_event()
123 int id = exynos_ppmu_find_ppmu_id(edev); in exynos_ppmu_set_event()
151 static int exynos_ppmu_get_event(struct devfreq_event_dev *edev, in exynos_ppmu_get_event() argument
154 struct exynos_ppmu *info = devfreq_event_get_drvdata(edev); in exynos_ppmu_get_event()
[all …]
/linux-4.1.27/arch/powerpc/platforms/pseries/
Deeh_pseries.c163 struct eeh_dev *edev = pdn_to_eeh_dev(pdn); in pseries_eeh_find_ecap() local
168 if (!edev || !edev->pcie_cap) in pseries_eeh_find_ecap()
201 struct eeh_dev *edev; in pseries_eeh_probe() local
208 edev = pdn_to_eeh_dev(pdn); in pseries_eeh_probe()
209 if (!edev || edev->pe) in pseries_eeh_probe()
225 edev->class_code = pdn->class_code; in pseries_eeh_probe()
226 edev->pcix_cap = pseries_eeh_find_cap(pdn, PCI_CAP_ID_PCIX); in pseries_eeh_probe()
227 edev->pcie_cap = pseries_eeh_find_cap(pdn, PCI_CAP_ID_EXP); in pseries_eeh_probe()
228 edev->aer_cap = pseries_eeh_find_ecap(pdn, PCI_EXT_CAP_ID_ERR); in pseries_eeh_probe()
229 edev->mode &= 0xFFFFFF00; in pseries_eeh_probe()
[all …]
Dmsi.c199 struct eeh_dev *edev; in find_pe_dn() local
208 edev = pdn_to_eeh_dev(PCI_DN(dn)); in find_pe_dn()
209 if (edev->pe) in find_pe_dn()
210 edev = list_first_entry(&edev->pe->edevs, struct eeh_dev, list); in find_pe_dn()
211 pdn = eeh_dev_to_pdn(edev); in find_pe_dn()
Diommu.c828 struct eeh_dev *edev; in query_ddw() local
839 edev = pci_dev_to_eeh_dev(dev); in query_ddw()
840 cfg_addr = edev->config_addr; in query_ddw()
841 if (edev->pe_config_addr) in query_ddw()
842 cfg_addr = edev->pe_config_addr; in query_ddw()
843 buid = edev->phb->buid; in query_ddw()
857 struct eeh_dev *edev; in create_ddw() local
868 edev = pci_dev_to_eeh_dev(dev); in create_ddw()
869 cfg_addr = edev->config_addr; in create_ddw()
870 if (edev->pe_config_addr) in create_ddw()
[all …]
/linux-4.1.27/arch/powerpc/platforms/powernv/
Deeh-powernv.c125 struct eeh_dev *edev; in pnv_eeh_ei_write() local
147 edev = kzalloc(sizeof(*edev), GFP_KERNEL); in pnv_eeh_ei_write()
148 if (!edev) in pnv_eeh_ei_write()
150 edev->phb = hose; in pnv_eeh_ei_write()
151 edev->pe_config_addr = pe_no; in pnv_eeh_ei_write()
152 pe = eeh_pe_get(edev); in pnv_eeh_ei_write()
153 kfree(edev); in pnv_eeh_ei_write()
335 struct eeh_dev *edev = pdn_to_eeh_dev(pdn); in pnv_eeh_find_ecap() local
339 if (!edev || !edev->pcie_cap) in pnv_eeh_find_ecap()
382 struct eeh_dev *edev = pdn_to_eeh_dev(pdn); in pnv_eeh_probe() local
[all …]
Dpci.c492 struct eeh_dev *edev = NULL; in pnv_pci_cfg_check() local
500 edev = pdn->edev; in pnv_pci_cfg_check()
501 if (edev) { in pnv_pci_cfg_check()
502 if (edev->pe && in pnv_pci_cfg_check()
503 (edev->pe->state & EEH_PE_CFG_BLOCKED)) in pnv_pci_cfg_check()
506 if (edev->mode & EEH_DEV_REMOVED) in pnv_pci_cfg_check()
537 if (phb->flags & PNV_PHB_FLAG_EEH && pdn->edev) { in pnv_pci_read_config()
539 eeh_dev_check_failure(pdn->edev)) in pnv_pci_read_config()
/linux-4.1.27/arch/powerpc/include/asm/
Deeh.h103 #define eeh_pe_for_each_dev(pe, edev, tmp) \ argument
104 list_for_each_entry_safe(edev, tmp, &pe->edevs, list)
145 static inline struct pci_dn *eeh_dev_to_pdn(struct eeh_dev *edev) in eeh_dev_to_pdn() argument
147 return edev ? edev->pdn : NULL; in eeh_dev_to_pdn()
150 static inline struct pci_dev *eeh_dev_to_pci_dev(struct eeh_dev *edev) in eeh_dev_to_pci_dev() argument
152 return edev ? edev->pdev : NULL; in eeh_dev_to_pci_dev()
155 static inline struct eeh_pe *eeh_dev_to_pe(struct eeh_dev* edev) in eeh_dev_to_pe() argument
157 return edev ? edev->pe : NULL; in eeh_dev_to_pe()
263 struct eeh_pe *eeh_pe_get(struct eeh_dev *edev);
264 int eeh_add_to_parent_pe(struct eeh_dev *edev);
[all …]
Ddevice.h44 struct eeh_dev *edev; member
Dpci-bridge.h194 struct eeh_dev *edev; /* eeh device */ member
236 return pdn ? pdn->edev : NULL; in pdn_to_eeh_dev()
Dppc-pci.h59 void eeh_save_bars(struct eeh_dev *edev);
/linux-4.1.27/tools/usb/usbip/src/
Dusbipd.c94 struct usbip_exported_device *edev; in recv_request_import() local
111 edev = list_entry(i, struct usbip_exported_device, node); in recv_request_import()
112 if (!strncmp(req.busid, edev->udev.busid, SYSFS_BUS_ID_SIZE)) { in recv_request_import()
124 rc = usbip_host_export_device(edev, sockfd); in recv_request_import()
144 memcpy(&pdu_udev, &edev->udev, sizeof(pdu_udev)); in recv_request_import()
160 struct usbip_exported_device *edev; in send_reply_devlist() local
188 edev = list_entry(j, struct usbip_exported_device, node); in send_reply_devlist()
189 dump_usb_device(&edev->udev); in send_reply_devlist()
190 memcpy(&pdu_udev, &edev->udev, sizeof(pdu_udev)); in send_reply_devlist()
199 for (i = 0; i < edev->udev.bNumInterfaces; i++) { in send_reply_devlist()
[all …]
/linux-4.1.27/drivers/usb/dwc3/
Ddwc3-omap.c447 struct extcon_dev *edev; in dwc3_omap_extcon_register() local
450 edev = extcon_get_edev_by_phandle(omap->dev, 0); in dwc3_omap_extcon_register()
451 if (IS_ERR(edev)) { in dwc3_omap_extcon_register()
458 edev->name, "USB", in dwc3_omap_extcon_register()
465 edev->name, "USB-HOST", in dwc3_omap_extcon_register()
470 if (extcon_get_cable_state(edev, "USB") == true) in dwc3_omap_extcon_register()
472 if (extcon_get_cable_state(edev, "USB-HOST") == true) in dwc3_omap_extcon_register()
568 if (omap->extcon_vbus_dev.edev) in dwc3_omap_probe()
570 if (omap->extcon_id_dev.edev) in dwc3_omap_probe()
589 if (omap->extcon_vbus_dev.edev) in dwc3_omap_remove()
[all …]
/linux-4.1.27/drivers/scsi/aic7xxx/
Daic7770_osm.c80 struct eisa_device *edev = to_eisa_device(dev); in aic7770_probe() local
81 u_int eisaBase = edev->base_addr+AHC_EISA_SLOT_OFFSET; in aic7770_probe()
94 error = aic7770_config(ahc, aic7770_ident_table + edev->id.driver_data, in aic7770_probe()
/linux-4.1.27/fs/exofs/
Dsys.c172 int exofs_sysfs_odev_add(struct exofs_dev *edev, struct exofs_sb_info *sbi) in exofs_sysfs_odev_add() argument
180 d_kobj = &edev->ed_kobj; in exofs_sysfs_odev_add()
183 &sbi->s_kobj, "dev%u", edev->did); in exofs_sysfs_odev_add()
186 "device dev%u\n", edev->did); in exofs_sysfs_odev_add()
Dexofs.h189 int exofs_sysfs_odev_add(struct exofs_dev *edev,
/linux-4.1.27/drivers/net/hamradio/
Dbpqether.c501 static int bpq_new_device(struct net_device *edev) in bpq_new_device() argument
514 dev_hold(edev); in bpq_new_device()
515 bpq->ethdev = edev; in bpq_new_device()
531 dev_put(edev); in bpq_new_device()
/linux-4.1.27/drivers/usb/renesas_usbhs/
Dcommon.c390 if (priv->edev) { in usbhsc_hotplug()
391 cable = extcon_get_cable_state(priv->edev, "USB-HOST"); in usbhsc_hotplug()
548 priv->edev = extcon_get_edev_by_phandle(&pdev->dev, 0); in usbhs_probe()
549 if (IS_ERR(priv->edev)) in usbhs_probe()
550 return PTR_ERR(priv->edev); in usbhs_probe()
Dcommon.h260 struct extcon_dev *edev; member
/linux-4.1.27/drivers/pci/pcie/aer/
Daer_inject.c325 struct pcie_device *edev; in aer_inject() local
458 if (find_aer_device(rpdev, &edev)) { in aer_inject()
459 if (!get_service_data(edev)) { in aer_inject()
464 aer_irq(-1, edev); in aer_inject()
/linux-4.1.27/drivers/scsi/libsas/
Dsas_expander.c522 struct sas_expander_device *edev = rphy_to_expander_device(rphy); in ex_assign_manuf_info() local
524 memcpy(edev->vendor_id, mi_resp + 12, SAS_EXPANDER_VENDOR_ID_LEN); in ex_assign_manuf_info()
525 memcpy(edev->product_id, mi_resp + 20, SAS_EXPANDER_PRODUCT_ID_LEN); in ex_assign_manuf_info()
526 memcpy(edev->product_rev, mi_resp + 36, in ex_assign_manuf_info()
530 memcpy(edev->component_vendor_id, mi_resp + 40, in ex_assign_manuf_info()
532 edev->component_id = mi_resp[48] << 8 | mi_resp[49]; in ex_assign_manuf_info()
533 edev->component_revision_id = mi_resp[50]; in ex_assign_manuf_info()
913 struct sas_expander_device *edev; in sas_ex_discover_expander() local
950 edev = rphy_to_expander_device(rphy); in sas_ex_discover_expander()
960 edev->level = parent_ex->level + 1; in sas_ex_discover_expander()
[all …]
/linux-4.1.27/drivers/net/ethernet/3com/
D3c59x.c913 struct eisa_device *edev; in vortex_eisa_probe() local
915 edev = to_eisa_device(device); in vortex_eisa_probe()
917 if (!request_region(edev->base_addr, VORTEX_TOTAL_SIZE, DRV_NAME)) in vortex_eisa_probe()
920 ioaddr = ioport_map(edev->base_addr, VORTEX_TOTAL_SIZE); in vortex_eisa_probe()
923 edev->id.driver_data, vortex_cards_found)) { in vortex_eisa_probe()
924 release_region(edev->base_addr, VORTEX_TOTAL_SIZE); in vortex_eisa_probe()
935 struct eisa_device *edev; in vortex_eisa_remove() local
940 edev = to_eisa_device(device); in vortex_eisa_remove()
941 dev = eisa_get_drvdata(edev); in vortex_eisa_remove()
953 release_region(edev->base_addr, VORTEX_TOTAL_SIZE); in vortex_eisa_remove()
[all …]
D3c509.c571 struct eisa_device *edev; in el3_eisa_probe() local
575 edev = to_eisa_device (device); in el3_eisa_probe()
576 ioaddr = edev->base_addr; in el3_eisa_probe()
602 eisa_set_drvdata (edev, dev); in el3_eisa_probe()
606 eisa_set_drvdata (edev, NULL); in el3_eisa_probe()
/linux-4.1.27/drivers/scsi/mpt3sas/
Dmpt3sas_transport.c294 u64 sas_address, struct sas_expander_device *edev) in _transport_expander_report_manufacture() argument
427 strncpy(edev->vendor_id, manufacture_reply->vendor_id, in _transport_expander_report_manufacture()
429 strncpy(edev->product_id, manufacture_reply->product_id, in _transport_expander_report_manufacture()
431 strncpy(edev->product_rev, manufacture_reply->product_rev, in _transport_expander_report_manufacture()
433 edev->level = manufacture_reply->sas_format & 1; in _transport_expander_report_manufacture()
434 if (edev->level) { in _transport_expander_report_manufacture()
435 strncpy(edev->component_vendor_id, in _transport_expander_report_manufacture()
439 edev->component_id = tmp[0] << 8 | tmp[1]; in _transport_expander_report_manufacture()
440 edev->component_revision_id = in _transport_expander_report_manufacture()
/linux-4.1.27/drivers/scsi/mpt2sas/
Dmpt2sas_transport.c290 u64 sas_address, struct sas_expander_device *edev) in _transport_expander_report_manufacture() argument
437 strncpy(edev->vendor_id, manufacture_reply->vendor_id, in _transport_expander_report_manufacture()
439 strncpy(edev->product_id, manufacture_reply->product_id, in _transport_expander_report_manufacture()
441 strncpy(edev->product_rev, manufacture_reply->product_rev, in _transport_expander_report_manufacture()
443 edev->level = manufacture_reply->sas_format & 1; in _transport_expander_report_manufacture()
444 if (edev->level) { in _transport_expander_report_manufacture()
445 strncpy(edev->component_vendor_id, in _transport_expander_report_manufacture()
449 edev->component_id = tmp[0] << 8 | tmp[1]; in _transport_expander_report_manufacture()
450 edev->component_revision_id = in _transport_expander_report_manufacture()
/linux-4.1.27/drivers/staging/olpc_dcon/
Dolpc_dcon.c632 goto edev; in dcon_probe()
664 edev: in dcon_probe()
/linux-4.1.27/Documentation/
Deisa.txt144 void eisa_set_drvdata (struct eisa_device *edev, void *data);
148 void *eisa_get_drvdata (struct eisa_device *edev):
/linux-4.1.27/drivers/message/fusion/
Dmptsas.c2836 u64 sas_address, struct sas_expander_device *edev) in mptsas_exp_repmanufacture_info() argument
2943 strncpy(edev->vendor_id, manufacture_reply->vendor_id, in mptsas_exp_repmanufacture_info()
2945 strncpy(edev->product_id, manufacture_reply->product_id, in mptsas_exp_repmanufacture_info()
2947 strncpy(edev->product_rev, manufacture_reply->product_rev, in mptsas_exp_repmanufacture_info()
2949 edev->level = manufacture_reply->sas_format; in mptsas_exp_repmanufacture_info()
2951 strncpy(edev->component_vendor_id, in mptsas_exp_repmanufacture_info()
2955 edev->component_id = tmp[0] << 8 | tmp[1]; in mptsas_exp_repmanufacture_info()
2956 edev->component_revision_id = in mptsas_exp_repmanufacture_info()
/linux-4.1.27/drivers/net/ethernet/dec/tulip/
Dde4x5.c1995 struct eisa_device *edev; in de4x5_eisa_probe() local
2004 edev = to_eisa_device (gendev); in de4x5_eisa_probe()
2005 iobase = edev->base_addr; in de4x5_eisa_probe()
3882 struct eisa_device *edev; in EISA_signature() local
3885 edev = to_eisa_device (device); in EISA_signature()
3886 i = edev->id.driver_data; in EISA_signature()
/linux-4.1.27/drivers/net/ethernet/hp/
Dhp100.c2849 struct eisa_device *edev = to_eisa_device(gendev); in hp100_eisa_probe() local
2855 SET_NETDEV_DEV(dev, &edev->dev); in hp100_eisa_probe()
2857 err = hp100_probe1(dev, edev->base_addr + 0xC38, HP100_BUS_EISA, NULL); in hp100_eisa_probe()
/linux-4.1.27/drivers/power/
Dcharger-manager.c1833 if (cable->extcon_dev.edev) in charger_manager_probe()
/linux-4.1.27/include/linux/mfd/
Dpalmas.h547 struct extcon_dev *edev; member