Home
last modified time | relevance | path

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

123456

/linux/drivers/net/ethernet/qlogic/qede/
A Dqede_main.c234 if (!edev->ops || !edev->ops->common) in qede_netdev_event()
236 edev->ops->common->set_name(edev->cdev, edev->ndev->name); in qede_netdev_event()
309 edev->ops->get_vport_stats(edev->cdev, &stats); in qede_fill_by_demand_stats()
623 edev, edev, true); in qede_setup_tc_offload()
1376 edev->fp_num_tx = edev->req_num_tx; in qede_set_num_queues()
1377 edev->fp_num_rx = edev->req_num_rx; in qede_set_num_queues()
1744 fp->edev = edev; in qede_init_fp()
1931 rc = edev->ops->common->get_fp_int(edev->cdev, &edev->int_info); in qede_setup_irqs()
2315 edev->ops->fastpath_stop(edev->cdev); in qede_unload()
2586 rc = __qede_probe(edev->pdev, edev->dp_module, edev->dp_level, in qede_recovery_handler()
[all …]
A Dqede_rdma.c30 edev->rdma_info.qedr_dev = qedr_drv->add(edev->cdev, edev->pdev, in _qede_rdma_dev_add()
31 edev->ndev); in _qede_rdma_dev_add()
104 _qede_rdma_dev_add(edev); in qede_rdma_dev_add()
185 struct qede_dev *edev; in qede_rdma_register_driver() local
200 ndev = edev->ndev; in qede_rdma_register_driver()
215 struct qede_dev *edev; in qede_rdma_unregister_driver() local
220 if (edev->rdma_info.qedr_dev && !edev->rdma_info.exp_recovery) in qede_rdma_unregister_driver()
263 DP_NOTICE(edev, in qede_rdma_get_free_event_node()
278 struct qede_dev *edev; in qede_rdma_handle_event() local
282 edev = event_node->ptr; in qede_rdma_handle_event()
[all …]
A Dqede_ethtool.c557 if (!edev->ops || !edev->ops->common->can_link_change(edev->cdev)) { in qede_set_link_ksettings()
602 edev->ops->common->set_link(edev->cdev, &params); in qede_set_link_ksettings()
710 edev->ops->common->update_msglvl(edev->cdev, in qede_set_msglevel()
720 if (!edev->ops || !edev->ops->common->can_link_change(edev->cdev)) { in qede_nway_reset()
960 if (!edev->ops || !edev->ops->common->can_link_change(edev->cdev)) { in qede_set_pauseparam()
1000 if (edev->ops && edev->ops->common) in qede_get_regs()
1008 if (edev->ops && edev->ops->common) in qede_get_regs_len()
1117 if ((edev->req_queues - edev->req_num_tx) != QEDE_RSS_COUNT(edev)) { in qede_set_channels()
1903 if (!edev->ops || !edev->ops->common->can_link_change(edev->cdev)) { in qede_set_fecparam()
2045 if (!edev->ops || !edev->ops->common) { in qede_get_dump_flag()
[all …]
A Dqede_dcbnl.c17 return edev->ops->dcb->getstate(edev->cdev); in qede_dcbnl_getstate()
24 return edev->ops->dcb->setstate(edev->cdev, state); in qede_dcbnl_setstate()
39 edev->ops->dcb->getpgtccfgtx(edev->cdev, prio, prio_type, in qede_dcbnl_getpgtccfgtx()
48 edev->ops->dcb->getpgbwgcfgtx(edev->cdev, pgid, bw_pct); in qede_dcbnl_getpgbwgcfgtx()
74 edev->ops->dcb->getpfccfg(edev->cdev, prio, setting); in qede_dcbnl_getpfccfg()
82 edev->ops->dcb->setpfccfg(edev->cdev, prio, setting); in qede_dcbnl_setpfccfg()
89 return edev->ops->dcb->getcap(edev->cdev, capid, cap); in qede_dcbnl_getcap()
103 return edev->ops->dcb->getpfcstate(edev->cdev); in qede_dcbnl_getpfcstate()
117 return edev->ops->dcb->getdcbx(edev->cdev); in qede_dcbnl_getdcbx()
158 return edev->ops->dcb->setall(edev->cdev); in qede_dcbnl_setall()
[all …]
A Dqede_filter.c157 edev->ops->configure_arfs_searcher(edev->cdev, in qede_enqueue_fltr_and_config_searcher()
181 edev->ops->configure_arfs_searcher(edev->cdev, mode); in qede_dequeue_fltr_and_config_searcher()
317 edev->arfs = vzalloc(sizeof(*edev->arfs)); in qede_alloc_arfs()
578 if (edev->rss_ind_table[i] >= QEDE_RSS_COUNT(edev)) { in qede_fill_rss_params()
629 return edev->ops->filter_config_ucast(edev->cdev, &ucast); in qede_set_ucast_rx_mac()
663 rc = edev->ops->vport_update(edev->cdev, params); in qede_config_accept_any_vlan()
918 if (edev->xdp_prog || edev->ndev->mtu > PAGE_SIZE || in qede_fix_features()
979 rc = edev->ops->tunn_config(edev->cdev, &tunn_params); in qede_udp_tunnel_sync()
1089 if (!edev->ops->check_mac(edev->cdev, addr->sa_data)) { in qede_set_mac_addr()
1111 if (IS_VF(edev) && edev->ops->req_bulletin_update_mac) in qede_set_mac_addr()
[all …]
A Dqede_ptp.c41 struct qede_dev *edev = ptp->edev; in qede_ptp_adjfreq() local
44 __qede_lock(edev); in qede_ptp_adjfreq()
64 edev = ptp->edev; in qede_ptp_adjtime()
83 edev = ptp->edev; in qede_ptp_gettime()
104 edev = ptp->edev; in qede_ptp_settime()
127 edev = ptp->edev; in qede_ptp_ancillary_feature_enable()
144 edev = ptp->edev; in qede_ptp_task()
189 edev = ptp->edev; in qede_ptp_read_cc()
446 ptp->edev = edev; in qede_ptp_enable()
510 DP_ERR(edev, in qede_ptp_tx_ts()
[all …]
A Dqede.h179 &(edev)->flags)
186 #define QEDE_MAX_RSS_CNT(edev) ((edev)->dev_info.num_queues) argument
187 #define QEDE_MAX_TSS_CNT(edev) ((edev)->dev_info.num_queues) argument
203 #define QEDE_QUEUE_CNT(edev) ((edev)->num_queues) argument
204 #define QEDE_RSS_COUNT(edev) ((edev)->num_queues - (edev)->fp_num_tx) argument
206 #define QEDE_TSS_COUNT(edev) ((edev)->num_queues - (edev)->fp_num_rx) argument
414 #define QEDE_TXQ_IDX_TO_XDP(edev, idx) ((idx) + QEDE_MAX_TSS_CNT(edev)) argument
415 #define QEDE_NDEV_TXQ_ID_TO_FP_ID(edev, idx) ((edev)->fp_num_rx + \ argument
418 #define QEDE_TXQ_TO_NDEV_TXQ_ID(edev, txq) ((QEDE_TSS_COUNT(edev) * \ argument
421 (&((edev)->fp_array[QEDE_NDEV_TXQ_ID_TO_FP_ID(edev, idx)].txq \
[all …]
/linux/drivers/devfreq/
A Ddevfreq-event.c41 if (!edev || !edev->desc) in devfreq_event_enable_edev()
47 ret = edev->desc->ops->enable(edev); in devfreq_event_enable_edev()
73 if (!edev || !edev->desc) in devfreq_event_disable_edev()
85 ret = edev->desc->ops->disable(edev); in devfreq_event_disable_edev()
110 if (!edev || !edev->desc) in devfreq_event_is_enabled()
135 if (!edev || !edev->desc) in devfreq_event_set_event()
165 if (!edev || !edev->desc) in devfreq_event_get_event()
197 if (!edev || !edev->desc) in devfreq_event_reset_event()
337 dev_set_drvdata(&edev->dev, edev); in devfreq_event_add_edev()
444 if (!edev || !edev->desc) in name_show()
[all …]
/linux/drivers/extcon/
A Dextcon.c420 if (!edev) in extcon_sync()
1048 edev = kzalloc(sizeof(*edev), GFP_KERNEL); in extcon_dev_allocate()
1093 if (!edev || !edev->supported_cable) in extcon_dev_register()
1108 edev->name = dev_name(edev->dev.parent); in extcon_dev_register()
1121 edev->cables = kcalloc(edev->max_supported, in extcon_dev_register()
1142 cable->edev = edev; in extcon_dev_register()
1206 edev->attr_g_muex.attrs = edev->attrs_muex; in extcon_dev_register()
1230 edev->dev.type = &edev->extcon_dev_type; in extcon_dev_register()
1240 edev->nh = devm_kcalloc(&edev->dev, edev->max_supported, in extcon_dev_register()
1253 dev_set_drvdata(&edev->dev, edev); in extcon_dev_register()
[all …]
A Ddevres.c33 struct extcon_dev *edev; member
68 struct extcon_dev **ptr, *edev; in devm_extcon_dev_allocate() local
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()
133 *ptr = edev; in devm_extcon_dev_register()
189 ptr->edev = edev; in devm_extcon_register_notifier()
245 ptr->edev = edev; in devm_extcon_register_notifier_all()
[all …]
/linux/drivers/misc/eeprom/
A Deeprom_93xx46.c101 edev->pdata->prepare(edev); in eeprom_93xx46_read()
158 edev->pdata->finish(edev); in eeprom_93xx46_read()
200 edev->pdata->prepare(edev); in eeprom_93xx46_ew()
210 edev->pdata->finish(edev); in eeprom_93xx46_ew()
290 edev->pdata->prepare(edev); in eeprom_93xx46_write()
302 edev->pdata->finish(edev); in eeprom_93xx46_write()
346 edev->pdata->prepare(edev); in eeprom_93xx46_eral()
512 edev->addrlen = ilog2(edev->size); in eeprom_93xx46_probe()
514 edev->addrlen = ilog2(edev->size) - 1; in eeprom_93xx46_probe()
535 edev->nvmem_config.priv = edev; in eeprom_93xx46_probe()
[all …]
/linux/drivers/watchdog/
A Di6300esb.c229 edev->base = pci_ioremap_bar(edev->pdev, 0); in esb_getdevice()
230 if (edev->base == NULL) { in esb_getdevice()
237 dev_set_drvdata(&edev->pdev->dev, edev); in esb_getdevice()
286 esb_timer_set_heartbeat(&edev->wdd, edev->wdd.timeout); in esb_initdevice()
292 struct esb_dev *edev; in esb_probe() local
295 edev = devm_kzalloc(&pdev->dev, sizeof(*edev), GFP_KERNEL); in esb_probe()
296 if (!edev) in esb_probe()
300 edev->pdev = pdev; in esb_probe()
314 esb_initdevice(edev); in esb_probe()
326 iounmap(edev->base); in esb_probe()
[all …]
/linux/drivers/eisa/
A Deisa-bus.c205 edev->dev.dma_mask = &edev->dma_mask; in eisa_init_device()
206 edev->dev.coherent_dma_mask = edev->dma_mask; in eisa_init_device()
211 edev->res[i].name = edev->pretty_name; in eisa_init_device()
213 edev->res[i].name = edev->id.sig; in eisa_init_device()
269 edev->res[i].start = edev->res[i].end = 0; in eisa_request_resources()
277 edev->res[i].end = edev->res[i].start + 0xff; in eisa_request_resources()
283 edev->res[i].end = edev->res[i].start + 3; in eisa_request_resources()
305 if (edev->res[i].start || edev->res[i].end) in eisa_release_resources()
320 edev = kzalloc(sizeof(*edev), GFP_KERNEL); in eisa_probe()
321 if (!edev) in eisa_probe()
[all …]
/linux/drivers/misc/
A Denclosure.c59 get_device(&edev->edev); in enclosure_find()
129 edev->edev.class = &enclosure_class; in enclosure_register()
130 edev->edev.parent = get_device(dev); in enclosure_register()
132 dev_set_name(&edev->edev, "%s", name); in enclosure_register()
133 err = device_register(&edev->edev); in enclosure_register()
150 put_device(edev->edev.parent); in enclosure_register()
177 device_unregister(&edev->edev); in enclosure_unregister()
483 edev->cb->get_fault(edev, ecomp); in get_component_fault()
507 edev->cb->get_status(edev, ecomp); in get_component_status()
541 edev->cb->get_active(edev, ecomp); in get_component_active()
[all …]
/linux/drivers/net/ethernet/broadcom/bnxt/
A Dbnxt_ulp.c100 struct bnxt_en_dev *edev = bp->edev; in bnxt_fill_msix_vecs() local
206 struct bnxt_en_dev *edev = bp->edev; in bnxt_get_ulp_msix_num() local
216 struct bnxt_en_dev *edev = bp->edev; in bnxt_get_ulp_msix_base() local
227 struct bnxt_en_dev *edev = bp->edev; in bnxt_get_ulp_stat_ctxs() local
283 struct bnxt_en_dev *edev = bp->edev; in bnxt_ulp_stop() local
303 struct bnxt_en_dev *edev = bp->edev; in bnxt_ulp_start() local
327 struct bnxt_en_dev *edev = bp->edev; in bnxt_ulp_sriov_cfg() local
352 struct bnxt_en_dev *edev = bp->edev; in bnxt_ulp_shutdown() local
371 struct bnxt_en_dev *edev = bp->edev; in bnxt_ulp_irq_stop() local
483 edev = bp->edev; in bnxt_ulp_probe()
[all …]
/linux/drivers/firmware/
A Dedd.c127 if (!edev) in edd_show_host_bus()
173 if (!edev) in edd_show_interface()
237 if (!edev) in edd_show_raw_data()
259 if (!edev) in edd_show_version()
282 if (!edev) in edd_show_extensions()
308 if (!edev) in edd_show_info_flags()
338 if (!edev) in edd_show_legacy_max_cylinder()
353 if (!edev) in edd_show_legacy_max_head()
368 if (!edev) in edd_show_legacy_sectors_per_track()
383 if (!edev) in edd_show_default_cylinders()
[all …]
/linux/arch/powerpc/kernel/
A Deeh_driver.c79 return !edev || (edev->mode & EEH_DEV_REMOVED); in eeh_dev_removed()
84 if (!edev->pdev) in eeh_edev_actionable()
147 if (edev->pdev->msi_enabled || edev->pdev->msix_enabled) in eeh_disable_irq()
197 if (!edev) in eeh_dev_save_state()
207 if (edev->pe && (edev->pe->state & EEH_PE_CFG_RESTRICTED)) in eeh_dev_save_state()
293 !eeh_dev_removed(edev), !eeh_pe_passed(edev->pe));
384 if (!edev) in eeh_dev_restore_state()
393 if (edev->pe && (edev->pe->state & EEH_PE_CFG_RESTRICTED)) { in eeh_dev_restore_state()
394 if (list_is_last(&edev->entry, &edev->pe->edevs)) in eeh_dev_restore_state()
480 pci_iov_add_virtfn(edev->physfn, edev->vf_index); in eeh_add_virt_device()
[all …]
A Deeh_pe.c249 fn(edev, flag); in eeh_pe_dev_traverse()
321 edev->pe = pe; in eeh_pe_tree_insert()
339 edev->pe = pe; in eeh_pe_tree_insert()
386 edev->pe = pe; in eeh_pe_tree_insert()
415 edev->pe = NULL; in eeh_pe_tree_remove()
710 eeh_ops->write_config(edev, i*4, 4, edev->config_space[i]); in eeh_restore_bridge_bars()
712 eeh_ops->write_config(edev, 14*4, 4, edev->config_space[14]); in eeh_restore_bridge_bars()
720 eeh_ops->write_config(edev, 15*4, 4, edev->config_space[15]); in eeh_restore_bridge_bars()
736 eeh_ops->write_config(edev, i*4, 4, edev->config_space[i]); in eeh_restore_device_bars()
738 eeh_ops->write_config(edev, 12*4, 4, edev->config_space[12]); in eeh_restore_device_bars()
[all …]
A Deeh_sysfs.c47 if (!edev || !edev->pe) in eeh_pe_state_show()
52 state, edev->pe->state); in eeh_pe_state_show()
62 if (!edev || !edev->pe) in eeh_pe_state_store()
69 if (eeh_unfreeze_pe(edev->pe)) in eeh_pe_state_store()
86 if (!edev || !edev->pe) in eeh_notify_resume_show()
99 if (!edev || !edev->pe || !eeh_ops->notify_resume) in eeh_notify_resume_store()
144 if (edev && (edev->mode & EEH_DEV_SYSFS)) in eeh_sysfs_add_device()
154 else if (edev) in eeh_sysfs_add_device()
155 edev->mode |= EEH_DEV_SYSFS; in eeh_sysfs_add_device()
162 if (!edev) { in eeh_sysfs_remove_device()
[all …]
/linux/tools/usb/usbip/libsrc/
A Dusbip_host_common.c75 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()
94 edev = realloc(edev, size); in usbip_exported_device_new()
95 if (!edev) { in usbip_exported_device_new()
105 hdriver->ops.read_interface(&edev->udev, i, &edev->uinf[i]); in usbip_exported_device_new()
108 return edev; in usbip_exported_device_new()
112 if (edev) in usbip_exported_device_new()
113 free(edev); in usbip_exported_device_new()
142 if (!edev) { in refresh_exported_devices()
[all …]
/linux/drivers/scsi/
A Dses.c152 struct scsi_device *sdev = to_scsi_device(edev->edev.parent); in ses_set_page2_descriptor()
182 struct scsi_device *sdev = to_scsi_device(edev->edev.parent); in ses_get_page2_descriptor()
423 if (!scsi_is_sdev_device(edev->edev.parent))
426 sdev = to_scsi_device(edev->edev.parent);
431 sed->edev = edev;
578 edev, in ses_enclosure_data_process()
804 prev = edev; in ses_intf_remove_component()
808 if (edev) in ses_intf_remove_component()
809 put_device(&edev->edev); in ses_intf_remove_component()
819 if (!edev) in ses_intf_remove_enclosure()
[all …]
/linux/include/linux/
A Dextcon-provider.h20 int extcon_dev_register(struct extcon_dev *edev);
21 void extcon_dev_unregister(struct extcon_dev *edev);
23 struct extcon_dev *edev);
25 struct extcon_dev *edev);
29 void extcon_dev_free(struct extcon_dev *edev);
35 int extcon_sync(struct extcon_dev *edev, unsigned int id);
41 int extcon_set_state(struct extcon_dev *edev, unsigned int id,
61 int extcon_set_property_capability(struct extcon_dev *edev,
65 static inline int extcon_dev_register(struct extcon_dev *edev) in extcon_dev_register() argument
73 struct extcon_dev *edev) in devm_extcon_dev_register() argument
[all …]
A 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);
104 extern int devfreq_event_set_event(struct devfreq_event_dev *edev);
105 extern int devfreq_event_get_event(struct devfreq_event_dev *edev,
120 struct devfreq_event_dev *edev);
123 return edev->desc->driver_data; in devfreq_event_get_drvdata()
[all …]
/linux/drivers/input/keyboard/
A Dgoldfish_events.c38 struct event_dev *edev = dev_id; in events_interrupt() local
46 input_sync(edev->input); in events_interrupt()
53 void __iomem *addr = edev->addr; in events_import_bits()
76 void __iomem *addr = edev->addr; in events_import_abs_params()
105 struct event_dev *edev; in events_probe() local
131 if (!edev) in events_probe()
138 edev->input = input_dev; in events_probe()
139 edev->addr = addr; in events_probe()
140 edev->irq = irq; in events_probe()
143 edev->name[i] = __raw_readb(edev->addr + REG_DATA + i); in events_probe()
[all …]
/linux/drivers/infiniband/hw/efa/
A Defa_com.c102 edev->efa_dev, in efa_com_reg_read32()
112 edev->efa_dev, in efa_com_reg_read32()
238 writel(edev->aenq.cc, edev->reg_bar + EFA_REGS_AENQ_CONS_DB_OFF); in efa_com_admin_init_aenq()
733 ibdev_err(edev->efa_dev, in efa_com_admin_init()
740 aq->dmadev = edev->dmadev; in efa_com_admin_init()
746 efa_com_stats_init(edev); in efa_com_admin_init()
951 ibdev_err(edev->efa_dev, in efa_com_validate_version()
957 edev->efa_dev, in efa_com_validate_version()
979 ibdev_err(edev->efa_dev, in efa_com_validate_version()
1050 ibdev_err(edev->efa_dev, in efa_com_dev_reset()
[all …]

Completed in 99 milliseconds

123456