Home
last modified time | relevance | path

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

123456

/Linux-v5.4/drivers/devfreq/
Ddevfreq-event.c37 int devfreq_event_enable_edev(struct devfreq_event_dev *edev) in devfreq_event_enable_edev() argument
41 if (!edev || !edev->desc) in devfreq_event_enable_edev()
44 mutex_lock(&edev->lock); in devfreq_event_enable_edev()
45 if (edev->desc->ops && edev->desc->ops->enable in devfreq_event_enable_edev()
46 && edev->enable_count == 0) { in devfreq_event_enable_edev()
47 ret = edev->desc->ops->enable(edev); in devfreq_event_enable_edev()
51 edev->enable_count++; in devfreq_event_enable_edev()
53 mutex_unlock(&edev->lock); in devfreq_event_enable_edev()
69 int devfreq_event_disable_edev(struct devfreq_event_dev *edev) in devfreq_event_disable_edev() argument
73 if (!edev || !edev->desc) in devfreq_event_disable_edev()
[all …]
/Linux-v5.4/drivers/net/ethernet/qlogic/qede/
Dqede_rdma.c48 static void _qede_rdma_dev_add(struct qede_dev *edev) in _qede_rdma_dev_add() argument
54 edev->rdma_info.exp_recovery = false; in _qede_rdma_dev_add()
55 edev->rdma_info.qedr_dev = qedr_drv->add(edev->cdev, edev->pdev, in _qede_rdma_dev_add()
56 edev->ndev); in _qede_rdma_dev_add()
59 static int qede_rdma_create_wq(struct qede_dev *edev) in qede_rdma_create_wq() argument
61 INIT_LIST_HEAD(&edev->rdma_info.rdma_event_list); in qede_rdma_create_wq()
62 edev->rdma_info.rdma_wq = create_singlethread_workqueue("rdma_wq"); in qede_rdma_create_wq()
63 if (!edev->rdma_info.rdma_wq) { in qede_rdma_create_wq()
64 DP_NOTICE(edev, "qedr: Could not create workqueue\n"); in qede_rdma_create_wq()
71 static void qede_rdma_cleanup_event(struct qede_dev *edev) in qede_rdma_cleanup_event() argument
[all …]
Dqede_main.c137 static void qede_recovery_handler(struct qede_dev *edev);
138 static void qede_get_eth_tlv_data(void *edev, void *data);
139 static void qede_get_generic_tlv_data(void *edev,
146 struct qede_dev *edev = netdev_priv(ndev); in qede_set_vf_vlan() local
149 DP_NOTICE(edev, "Illegal vlan value %d\n", vlan); in qede_set_vf_vlan()
156 DP_VERBOSE(edev, QED_MSG_IOV, "Setting Vlan 0x%04x to VF [%d]\n", in qede_set_vf_vlan()
159 return edev->ops->iov->set_vlan(edev->cdev, vlan, vf); in qede_set_vf_vlan()
164 struct qede_dev *edev = netdev_priv(ndev); in qede_set_vf_mac() local
166 DP_VERBOSE(edev, QED_MSG_IOV, in qede_set_vf_mac()
171 DP_VERBOSE(edev, QED_MSG_IOV, "MAC address isn't valid\n"); in qede_set_vf_mac()
[all …]
Dqede_dcbnl.c14 struct qede_dev *edev = netdev_priv(netdev); in qede_dcbnl_getstate() local
16 return edev->ops->dcb->getstate(edev->cdev); in qede_dcbnl_getstate()
21 struct qede_dev *edev = netdev_priv(netdev); in qede_dcbnl_setstate() local
23 return edev->ops->dcb->setstate(edev->cdev, state); in qede_dcbnl_setstate()
36 struct qede_dev *edev = netdev_priv(netdev); in qede_dcbnl_getpgtccfgtx() local
38 edev->ops->dcb->getpgtccfgtx(edev->cdev, prio, prio_type, in qede_dcbnl_getpgtccfgtx()
45 struct qede_dev *edev = netdev_priv(netdev); in qede_dcbnl_getpgbwgcfgtx() local
47 edev->ops->dcb->getpgbwgcfgtx(edev->cdev, pgid, bw_pct); in qede_dcbnl_getpgbwgcfgtx()
54 struct qede_dev *edev = netdev_priv(netdev); in qede_dcbnl_getpgtccfgrx() local
56 edev->ops->dcb->getpgtccfgrx(edev->cdev, prio, prio_type, pgid, bw_pct, in qede_dcbnl_getpgtccfgrx()
[all …]
Dqede_filter.c98 #define QEDE_ARFS_BUCKET_HEAD(edev, idx) (&(edev)->arfs->arfs_hl_head[idx]) argument
113 static void qede_configure_arfs_fltr(struct qede_dev *edev, in qede_configure_arfs_fltr() argument
117 const struct qed_eth_ops *op = edev->ops; in qede_configure_arfs_fltr()
140 DP_VERBOSE(edev, NETIF_MSG_RX_STATUS, in qede_configure_arfs_fltr()
148 op->ntuple_filter_config(edev->cdev, n, &params); in qede_configure_arfs_fltr()
152 qede_free_arfs_filter(struct qede_dev *edev, struct qede_arfs_fltr_node *fltr) in qede_free_arfs_filter() argument
157 clear_bit(fltr->sw_id, edev->arfs->arfs_fltr_bmap); in qede_free_arfs_filter()
163 qede_enqueue_fltr_and_config_searcher(struct qede_dev *edev, in qede_enqueue_fltr_and_config_searcher() argument
167 fltr->mapping = dma_map_single(&edev->pdev->dev, fltr->data, in qede_enqueue_fltr_and_config_searcher()
169 if (dma_mapping_error(&edev->pdev->dev, fltr->mapping)) { in qede_enqueue_fltr_and_config_searcher()
[all …]
Dqede_ethtool.c220 static void qede_get_strings_stats_txq(struct qede_dev *edev, in qede_get_strings_stats_txq() argument
228 QEDE_TXQ_XDP_TO_IDX(edev, txq), in qede_get_strings_stats_txq()
237 static void qede_get_strings_stats_rxq(struct qede_dev *edev, in qede_get_strings_stats_rxq() argument
249 static bool qede_is_irrelevant_stat(struct qede_dev *edev, int stat_index) in qede_is_irrelevant_stat() argument
251 return (IS_VF(edev) && QEDE_STAT_IS_PF_ONLY(stat_index)) || in qede_is_irrelevant_stat()
252 (QEDE_IS_BB(edev) && QEDE_STAT_IS_AH_ONLY(stat_index)) || in qede_is_irrelevant_stat()
253 (QEDE_IS_AH(edev) && QEDE_STAT_IS_BB_ONLY(stat_index)); in qede_is_irrelevant_stat()
256 static void qede_get_strings_stats(struct qede_dev *edev, u8 *buf) in qede_get_strings_stats() argument
262 for (i = 0; i < QEDE_QUEUE_CNT(edev); i++) { in qede_get_strings_stats()
263 fp = &edev->fp_array[i]; in qede_get_strings_stats()
[all …]
Dqede_ptp.c43 struct qede_dev *edev; member
66 struct qede_dev *edev = ptp->edev; in qede_ptp_adjfreq() local
69 __qede_lock(edev); in qede_ptp_adjfreq()
70 if (edev->state == QEDE_STATE_OPEN) { in qede_ptp_adjfreq()
72 rc = ptp->ops->adjfreq(edev->cdev, ppb); in qede_ptp_adjfreq()
75 DP_ERR(edev, "PTP adjfreq called while interface is down\n"); in qede_ptp_adjfreq()
78 __qede_unlock(edev); in qede_ptp_adjfreq()
85 struct qede_dev *edev; in qede_ptp_adjtime() local
89 edev = ptp->edev; in qede_ptp_adjtime()
91 DP_VERBOSE(edev, QED_MSG_DEBUG, "PTP adjtime called, delta = %llx\n", in qede_ptp_adjtime()
[all …]
Dqede.h203 #define IS_VF(edev) (test_bit(QEDE_FLAGS_IS_VF, &(edev)->flags)) argument
210 #define QEDE_MAX_RSS_CNT(edev) ((edev)->dev_info.num_queues) argument
211 #define QEDE_MAX_TSS_CNT(edev) ((edev)->dev_info.num_queues) argument
212 #define QEDE_IS_BB(edev) \ argument
213 ((edev)->dev_info.common.dev_type == QED_DEV_TYPE_BB)
214 #define QEDE_IS_AH(edev) \ argument
215 ((edev)->dev_info.common.dev_type == QED_DEV_TYPE_AH)
224 #define QEDE_QUEUE_CNT(edev) ((edev)->num_queues) argument
225 #define QEDE_RSS_COUNT(edev) ((edev)->num_queues - (edev)->fp_num_tx) argument
226 #define QEDE_RX_QUEUE_IDX(edev, i) (i) argument
[all …]
/Linux-v5.4/drivers/extcon/
Dextcon.c201 struct extcon_dev *edev; member
226 static int check_mutually_exclusive(struct extcon_dev *edev, u32 new_state) in check_mutually_exclusive() argument
230 if (!edev->mutually_exclusive) in check_mutually_exclusive()
233 for (i = 0; edev->mutually_exclusive[i]; i++) { in check_mutually_exclusive()
235 u32 correspondants = new_state & edev->mutually_exclusive[i]; in check_mutually_exclusive()
246 static int find_cable_index_by_id(struct extcon_dev *edev, const unsigned int id) in find_cable_index_by_id() argument
251 for (i = 0; i < edev->max_supported; i++) { in find_cable_index_by_id()
252 if (edev->supported_cable[i] == id) in find_cable_index_by_id()
275 static bool is_extcon_attached(struct extcon_dev *edev, unsigned int index) in is_extcon_attached() argument
277 return !!(edev->state & BIT(index)); in is_extcon_attached()
[all …]
Ddevres.c33 struct extcon_dev *edev; member
42 extcon_unregister_notifier(this->edev, this->id, this->nb); in devm_extcon_dev_notifier_unreg()
49 extcon_unregister_notifier_all(this->edev, this->nb); in devm_extcon_dev_notifier_all_unreg()
68 struct extcon_dev **ptr, *edev; in devm_extcon_dev_allocate() local
74 edev = extcon_dev_allocate(supported_cable); in devm_extcon_dev_allocate()
75 if (IS_ERR(edev)) { in devm_extcon_dev_allocate()
77 return edev; in devm_extcon_dev_allocate()
80 edev->dev.parent = dev; in devm_extcon_dev_allocate()
82 *ptr = edev; in devm_extcon_dev_allocate()
85 return edev; in devm_extcon_dev_allocate()
[all …]
/Linux-v5.4/drivers/watchdog/
Di6300esb.c110 static inline void esb_unlock_registers(struct esb_dev *edev) in esb_unlock_registers() argument
112 writew(ESB_UNLOCK1, ESB_RELOAD_REG(edev)); in esb_unlock_registers()
113 writew(ESB_UNLOCK2, ESB_RELOAD_REG(edev)); in esb_unlock_registers()
118 struct esb_dev *edev = to_esb_dev(wdd); in esb_timer_start() local
122 esb_unlock_registers(edev); in esb_timer_start()
123 writew(ESB_WDT_RELOAD, ESB_RELOAD_REG(edev)); in esb_timer_start()
126 pci_write_config_byte(edev->pdev, ESB_LOCK_REG, val); in esb_timer_start()
132 struct esb_dev *edev = to_esb_dev(wdd); in esb_timer_stop() local
136 esb_unlock_registers(edev); in esb_timer_stop()
137 writew(ESB_WDT_RELOAD, ESB_RELOAD_REG(edev)); in esb_timer_stop()
[all …]
/Linux-v5.4/drivers/misc/eeprom/
Deeprom_93xx46.c48 static inline bool has_quirk_single_word_read(struct eeprom_93xx46_dev *edev) in has_quirk_single_word_read() argument
50 return edev->pdata->quirks & EEPROM_93XX46_QUIRK_SINGLE_WORD_READ; in has_quirk_single_word_read()
53 static inline bool has_quirk_instruction_length(struct eeprom_93xx46_dev *edev) in has_quirk_instruction_length() argument
55 return edev->pdata->quirks & EEPROM_93XX46_QUIRK_INSTRUCTION_LENGTH; in has_quirk_instruction_length()
61 struct eeprom_93xx46_dev *edev = priv; in eeprom_93xx46_read() local
65 if (unlikely(off >= edev->size)) in eeprom_93xx46_read()
67 if ((off + count) > edev->size) in eeprom_93xx46_read()
68 count = edev->size - off; in eeprom_93xx46_read()
72 mutex_lock(&edev->lock); in eeprom_93xx46_read()
74 if (edev->pdata->prepare) in eeprom_93xx46_read()
[all …]
/Linux-v5.4/drivers/eisa/
Deisa-bus.c44 struct eisa_device *edev) in is_forced_dev() argument
49 x = (root->bus_nr << 8) | edev->slot; in is_forced_dev()
57 static void __init eisa_name_device(struct eisa_device *edev) in eisa_name_device() argument
62 if (!strcmp(edev->id.sig, eisa_table[i].id.sig)) { in eisa_name_device()
63 strlcpy(edev->pretty_name, in eisa_name_device()
65 sizeof(edev->pretty_name)); in eisa_name_device()
71 sprintf(edev->pretty_name, "EISA device %.7s", edev->id.sig); in eisa_name_device()
110 struct eisa_device *edev = to_eisa_device(dev); in eisa_bus_match() local
118 if (!strcmp(eids->sig, edev->id.sig) && in eisa_bus_match()
119 edev->state & EISA_CONFIG_ENABLED) { in eisa_bus_match()
[all …]
/Linux-v5.4/drivers/misc/
Denclosure.c46 struct enclosure_device *edev; in enclosure_find() local
49 edev = list_prepare_entry(start, &container_list, node); in enclosure_find()
51 put_device(&start->edev); in enclosure_find()
53 list_for_each_entry_continue(edev, &container_list, node) { in enclosure_find()
54 struct device *parent = edev->edev.parent; in enclosure_find()
59 get_device(&edev->edev); in enclosure_find()
61 return edev; in enclosure_find()
88 struct enclosure_device *edev; in enclosure_for_each_device() local
91 list_for_each_entry(edev, &container_list, node) { in enclosure_for_each_device()
92 error = fn(edev, data); in enclosure_for_each_device()
[all …]
/Linux-v5.4/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ulp.c27 static int bnxt_register_dev(struct bnxt_en_dev *edev, int ulp_id, in bnxt_register_dev() argument
30 struct net_device *dev = edev->net; in bnxt_register_dev()
38 ulp = &edev->ulp_tbl[ulp_id]; in bnxt_register_dev()
64 static int bnxt_unregister_dev(struct bnxt_en_dev *edev, int ulp_id) in bnxt_unregister_dev() argument
66 struct net_device *dev = edev->net; in bnxt_unregister_dev()
75 ulp = &edev->ulp_tbl[ulp_id]; in bnxt_unregister_dev()
81 edev->en_ops->bnxt_free_msix(edev, ulp_id); in bnxt_unregister_dev()
99 struct bnxt_en_dev *edev = bp->edev; in bnxt_fill_msix_vecs() local
102 num_msix = edev->ulp_tbl[BNXT_ROCE_ULP].msix_requested; in bnxt_fill_msix_vecs()
103 idx = edev->ulp_tbl[BNXT_ROCE_ULP].msix_base; in bnxt_fill_msix_vecs()
[all …]
/Linux-v5.4/drivers/firmware/
Dedd.c56 ssize_t(*show) (struct edd_device * edev, char *buf);
57 int (*test) (struct edd_device * edev);
61 static int edd_dev_is_type(struct edd_device *edev, const char *type);
62 static struct pci_dev *edd_get_pci_dev(struct edd_device *edev);
74 edd_has_mbr_signature(struct edd_device *edev) in edd_has_mbr_signature() argument
76 return edev->index < min_t(unsigned char, edd.mbr_signature_nr, EDD_MBR_SIG_MAX); in edd_has_mbr_signature()
80 edd_has_edd_info(struct edd_device *edev) in edd_has_edd_info() argument
82 return edev->index < min_t(unsigned char, edd.edd_info_nr, EDDMAXNR); in edd_has_edd_info()
86 edd_dev_get_info(struct edd_device *edev) in edd_dev_get_info() argument
88 return edev->info; in edd_dev_get_info()
[all …]
/Linux-v5.4/arch/powerpc/kernel/
Deeh_driver.c93 static bool eeh_dev_removed(struct eeh_dev *edev) in eeh_dev_removed() argument
95 return !edev || (edev->mode & EEH_DEV_REMOVED); in eeh_dev_removed()
98 static bool eeh_edev_actionable(struct eeh_dev *edev) in eeh_edev_actionable() argument
100 if (!edev->pdev) in eeh_edev_actionable()
102 if (edev->pdev->error_state == pci_channel_io_perm_failure) in eeh_edev_actionable()
104 if (eeh_dev_removed(edev)) in eeh_edev_actionable()
106 if (eeh_pe_passed(edev->pe)) in eeh_edev_actionable()
157 static void eeh_disable_irq(struct eeh_dev *edev) in eeh_disable_irq() argument
163 if (edev->pdev->msi_enabled || edev->pdev->msix_enabled) in eeh_disable_irq()
166 if (!irq_has_action(edev->pdev->irq)) in eeh_disable_irq()
[all …]
Deeh_pe.c238 struct eeh_dev *edev, *tmp; in eeh_pe_dev_traverse() local
248 eeh_pe_for_each_dev(pe, edev, tmp) in eeh_pe_dev_traverse()
249 fn(edev, flag); in eeh_pe_dev_traverse()
329 static struct eeh_pe *eeh_pe_get_parent(struct eeh_dev *edev) in eeh_pe_get_parent() argument
332 struct pci_dn *pdn = eeh_dev_to_pdn(edev); in eeh_pe_get_parent()
339 if (edev->physfn) in eeh_pe_get_parent()
340 pdn = pci_get_pdn(edev->physfn); in eeh_pe_get_parent()
367 int eeh_add_to_parent_pe(struct eeh_dev *edev) in eeh_add_to_parent_pe() argument
370 struct pci_dn *pdn = eeh_dev_to_pdn(edev); in eeh_add_to_parent_pe()
374 if (!eeh_has_flag(EEH_VALID_PE_ZERO) && !edev->pe_config_addr) { in eeh_add_to_parent_pe()
[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); \
60 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); in eeh_pe_state_show() local
63 if (!edev || !edev->pe) in eeh_pe_state_show()
66 state = eeh_ops->get_state(edev->pe, NULL); in eeh_pe_state_show()
68 state, edev->pe->state); in eeh_pe_state_show()
76 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); in eeh_pe_state_store() local
78 if (!edev || !edev->pe) in eeh_pe_state_store()
82 if (!(edev->pe->state & EEH_PE_ISOLATED)) in eeh_pe_state_store()
[all …]
/Linux-v5.4/tools/usb/usbip/libsrc/
Dusbip_host_common.c68 struct usbip_exported_device *edev = NULL; in usbip_exported_device_new() local
73 edev = calloc(1, sizeof(struct usbip_exported_device)); in usbip_exported_device_new()
75 edev->sudev = in usbip_exported_device_new()
77 if (!edev->sudev) { in usbip_exported_device_new()
82 if (hdriver->ops.read_device(edev->sudev, &edev->udev) < 0) in usbip_exported_device_new()
85 edev->status = read_attr_usbip_status(&edev->udev); in usbip_exported_device_new()
86 if (edev->status < 0) in usbip_exported_device_new()
91 edev->udev.bNumInterfaces * sizeof(struct usbip_usb_interface); in usbip_exported_device_new()
93 edev_old = edev; in usbip_exported_device_new()
94 edev = realloc(edev, size); in usbip_exported_device_new()
[all …]
/Linux-v5.4/include/linux/
Dextcon-provider.h20 extern int extcon_dev_register(struct extcon_dev *edev);
21 extern void extcon_dev_unregister(struct extcon_dev *edev);
23 struct extcon_dev *edev);
25 struct extcon_dev *edev);
29 extern void extcon_dev_free(struct extcon_dev *edev);
32 extern void devm_extcon_dev_free(struct device *dev, struct extcon_dev *edev);
35 extern int extcon_sync(struct extcon_dev *edev, unsigned int id);
41 extern int extcon_set_state(struct extcon_dev *edev, unsigned int id,
43 extern int extcon_set_state_sync(struct extcon_dev *edev, unsigned int id,
55 extern int extcon_set_property(struct extcon_dev *edev, unsigned int id,
[all …]
Ddevfreq-event.h67 int (*enable)(struct devfreq_event_dev *edev);
68 int (*disable)(struct devfreq_event_dev *edev);
69 int (*reset)(struct devfreq_event_dev *edev);
72 int (*set_event)(struct devfreq_event_dev *edev);
73 int (*get_event)(struct devfreq_event_dev *edev,
101 extern int devfreq_event_enable_edev(struct devfreq_event_dev *edev);
102 extern int devfreq_event_disable_edev(struct devfreq_event_dev *edev);
103 extern bool devfreq_event_is_enabled(struct devfreq_event_dev *edev);
104 extern int devfreq_event_set_event(struct devfreq_event_dev *edev);
105 extern int devfreq_event_get_event(struct devfreq_event_dev *edev,
[all …]
/Linux-v5.4/drivers/scsi/
Dses.c38 static bool ses_page2_supported(struct enclosure_device *edev) in ses_page2_supported() argument
40 struct ses_device *ses_dev = edev->scratch; in ses_page2_supported()
133 static int ses_set_page2_descriptor(struct enclosure_device *edev, in ses_set_page2_descriptor() argument
138 struct scsi_device *sdev = to_scsi_device(edev->edev.parent); in ses_set_page2_descriptor()
139 struct ses_device *ses_dev = edev->scratch; in ses_set_page2_descriptor()
164 static unsigned char *ses_get_page2_descriptor(struct enclosure_device *edev, in ses_get_page2_descriptor() argument
168 struct scsi_device *sdev = to_scsi_device(edev->edev.parent); in ses_get_page2_descriptor()
169 struct ses_device *ses_dev = edev->scratch; in ses_get_page2_descriptor()
193 static void ses_get_fault(struct enclosure_device *edev, in ses_get_fault() argument
198 if (!ses_page2_supported(edev)) { in ses_get_fault()
[all …]
/Linux-v5.4/drivers/input/keyboard/
Dgoldfish_events.c38 struct event_dev *edev = dev_id; in events_interrupt() local
41 type = __raw_readl(edev->addr + REG_READ); in events_interrupt()
42 code = __raw_readl(edev->addr + REG_READ); in events_interrupt()
43 value = __raw_readl(edev->addr + REG_READ); in events_interrupt()
45 input_event(edev->input, type, code, value); in events_interrupt()
46 input_sync(edev->input); in events_interrupt()
50 static void events_import_bits(struct event_dev *edev, in events_import_bits() argument
53 void __iomem *addr = edev->addr; in events_import_bits()
73 static void events_import_abs_params(struct event_dev *edev) in events_import_abs_params() argument
75 struct input_dev *input_dev = edev->input; in events_import_abs_params()
[all …]
/Linux-v5.4/drivers/infiniband/hw/efa/
Defa_com.c82 static u32 efa_com_reg_read32(struct efa_com_dev *edev, u16 offset) in efa_com_reg_read32() argument
84 struct efa_com_mmio_read *mmio_read = &edev->mmio_read; in efa_com_reg_read32()
102 writel(mmio_read_reg, edev->reg_bar + EFA_REGS_MMIO_REG_READ_OFF); in efa_com_reg_read32()
113 edev->efa_dev, in efa_com_reg_read32()
123 edev->efa_dev, in efa_com_reg_read32()
135 static int efa_com_admin_init_sq(struct efa_com_dev *edev) in efa_com_admin_init_sq() argument
137 struct efa_com_admin_queue *aq = &edev->aq; in efa_com_admin_init_sq()
155 sq->db_addr = (u32 __iomem *)(edev->reg_bar + EFA_REGS_AQ_PROD_DB_OFF); in efa_com_admin_init_sq()
160 writel(addr_low, edev->reg_bar + EFA_REGS_AQ_BASE_LO_OFF); in efa_com_admin_init_sq()
161 writel(addr_high, edev->reg_bar + EFA_REGS_AQ_BASE_HI_OFF); in efa_com_admin_init_sq()
[all …]

123456