Home
last modified time | relevance | path

Searched refs:ndev (Results 1 – 25 of 513) sorted by relevance

12345678910>>...21

/linux/net/nfc/nci/
A Dcore.c135 ndev->req_status = ndev->req_result = 0; in __nci_request()
489 if (ndev->ops->open(ndev)) { in nci_open_device()
499 rc = ndev->ops->init(ndev); in nci_open_device()
507 rc = ndev->ops->setup(ndev); in nci_open_device()
525 rc = ndev->ops->post_setup(ndev); in nci_open_device()
544 ndev->ops->close(ndev); in nci_open_device()
588 ndev->ops->close(ndev); in nci_close_device()
620 queue_work(ndev->rx_wq, &ndev->rx_work); in nci_data_timer()
1083 return ndev->ops->discover_se(ndev); in nci_discover_se()
1180 nfc_set_drvdata(ndev->nfc_dev, ndev); in nci_allocate_device()
[all …]
A Drsp.c38 ndev->nci_ver = rsp->nci_ver; in nci_core_reset_rsp_packet()
72 ndev->max_routing_table_size = in nci_core_init_rsp_packet_v1()
78 ndev->manufact_id = in nci_core_init_rsp_packet_v1()
80 ndev->manufact_specific_info = in nci_core_init_rsp_packet_v1()
115 ndev->max_routing_table_size = in nci_core_init_rsp_packet_v2()
137 ndev->nfcc_features); in nci_core_init_rsp_packet()
157 ndev->manufact_id); in nci_core_init_rsp_packet()
309 if (ndev->cur_params.id == ndev->hci_dev->nfcee_id) in nci_core_conn_create_rsp_packet()
334 ndev->cur_conn_id); in nci_core_conn_close_rsp_packet()
350 del_timer(&ndev->cmd_timer); in nci_rsp_packet()
[all …]
A Dntf.c79 queue_work(ndev->tx_wq, &ndev->tx_work); in nci_core_conn_credits_ntf_packet()
198 return ndev->ops->get_rfprotocol(ndev, rf_protocol); in nci_get_prop_rf_protocol()
304 target = &ndev->targets[ndev->n_targets]; in nci_add_new_target()
311 ndev->n_targets++; in nci_add_new_target()
314 ndev->n_targets); in nci_add_new_target()
323 ndev->n_targets = 0; in nci_clear_target_list()
384 nfc_targets_found(ndev->nfc_dev, ndev->targets, in nci_rf_discover_ntf_packet()
385 ndev->n_targets); in nci_rf_discover_ntf_packet()
469 target = &ndev->targets[ndev->n_targets]; in nci_target_auto_activated()
478 ndev->n_targets++; in nci_target_auto_activated()
[all …]
/linux/drivers/ntb/hw/amd/
A Dntb_hw_amd.c665 ntb_db_clear(&ndev->ntb, BIT(ndev->db_last_bit)); in amd_handle_db_event()
719 ndev->db_mask = ndev->db_valid_mask; in ndev_init_isr()
749 ndev->vec[i].ndev = ndev; in ndev_init_isr()
764 free_irq(ndev->msix[i].vector, &ndev->vec[i]); in ndev_init_isr()
819 ndev->db_mask = ndev->db_valid_mask; in ndev_deinit_isr()
825 free_irq(ndev->msix[i].vector, &ndev->vec[i]); in ndev_deinit_isr()
949 ndev->debugfs_dir, ndev, in ndev_init_debugfs()
1065 ndev->mw_count = ndev->dev_data->mw_count; in amd_init_ntb()
1117 ndev->ntb.topo = amd_get_topo(ndev); in amd_init_dev()
1131 ndev->db_valid_mask = BIT_ULL(ndev->db_count) - 1; in amd_init_dev()
[all …]
/linux/drivers/crypto/cavium/nitrox/
A Dnitrox_main.c286 return ndev; in nitrox_get_first_device()
291 if (!ndev) in nitrox_put_device()
443 ndev = kzalloc(sizeof(*ndev), GFP_KERNEL); in nitrox_probe()
444 if (!ndev) { in nitrox_probe()
450 ndev->pdev = pdev; in nitrox_probe()
462 ndev->node = 0; in nitrox_probe()
472 ndev->qlen = qlen; in nitrox_probe()
510 kfree(ndev); in nitrox_probe()
527 if (!ndev) in nitrox_remove()
537 ndev->hw.vendor_id, ndev->hw.device_id); in nitrox_remove()
[all …]
A Dnitrox_isr.c151 invalidate_lbc(ndev); in clear_lbc_err_intr()
207 struct nitrox_device *ndev = qvec->ndev; in nps_core_int_tasklet() local
226 struct nitrox_device *ndev = qvec->ndev; in nps_core_int_isr() local
285 kfree(ndev->qvec); in nitrox_unregister_interrupts()
286 ndev->qvec = NULL; in nitrox_unregister_interrupts()
324 if (!ndev->qvec) { in nitrox_register_interrupts()
358 qvec->ndev = ndev; in nitrox_register_interrupts()
403 kfree(ndev->qvec); in nitrox_sriov_unregister_interrupts()
404 ndev->qvec = NULL; in nitrox_sriov_unregister_interrupts()
432 qvec->ndev = ndev; in nitrox_sriov_register_interupts()
[all …]
A Dnitrox_hal.c48 emu_enable_cores(ndev); in nitrox_config_emu_unit()
130 reset_pkt_input_ring(ndev, i); in nitrox_config_pkt_input_rings()
364 reset_aqm_ring(ndev, ring); in nitrox_config_aqm_rings()
395 enable_aqm_ring(ndev, ring); in nitrox_config_aqm_rings()
418 enable_aqm_interrupts(ndev); in nitrox_config_aqm_unit()
537 invalidate_lbc(ndev); in nitrox_config_lbc_unit()
644 get_core_option(ndev->hw.se_cores, ndev->hw.ae_cores), in nitrox_get_hwinfo()
645 ndev->hw.freq, in nitrox_get_hwinfo()
646 get_feature_option(ndev->hw.zip_cores, ndev->hw.freq), in nitrox_get_hwinfo()
647 ndev->hw.revision_id); in nitrox_get_hwinfo()
[all …]
A Dnitrox_sriov.c130 nitrox_mbox_cleanup(ndev); in nitrox_sriov_cleanup()
149 nitrox_sriov_cleanup(ndev); in nitrox_sriov_init()
174 ndev->iov.num_vfs = num_vfs; in nitrox_sriov_enable()
175 ndev->iov.max_vf_queues = vf_mode_to_nr_queues(ndev->mode); in nitrox_sriov_enable()
180 nitrox_pf_cleanup(ndev); in nitrox_sriov_enable()
187 config_nps_core_vfcfg_mode(ndev, ndev->mode); in nitrox_sriov_enable()
194 ndev->iov.num_vfs = 0; in nitrox_sriov_enable()
197 nitrox_pf_reinit(ndev); in nitrox_sriov_enable()
216 ndev->iov.num_vfs = 0; in nitrox_sriov_disable()
221 nitrox_sriov_cleanup(ndev); in nitrox_sriov_disable()
[all …]
A Dnitrox_lib.c27 struct nitrox_device *ndev = cmdq->ndev; in nitrox_cmdq_init() local
70 ndev = cmdq->ndev; in nitrox_cmdq_cleanup()
94 ndev->aqmq[i] = NULL; in nitrox_free_aqm_queues()
112 cmdq->ndev = ndev; in nitrox_alloc_aqm_queues()
147 kfree(ndev->pkt_inq); in nitrox_free_pktin_queues()
148 ndev->pkt_inq = NULL; in nitrox_free_pktin_queues()
155 ndev->pkt_inq = kcalloc_node(ndev->nr_queues, in nitrox_alloc_pktin_queues()
158 if (!ndev->pkt_inq) in nitrox_alloc_pktin_queues()
166 cmdq->ndev = ndev; in nitrox_alloc_pktin_queues()
196 if (!ndev->ctx_pool) in create_crypto_dma_pool()
[all …]
A Dnitrox_mbx.c34 struct nitrox_device *ndev; member
64 msg.data = ndev->mode; in pf2vf_send_response()
106 struct nitrox_device *ndev = pf2vf_resp->ndev; in pf2vf_resp_handler() local
144 pfwork->ndev = ndev; in nitrox_pf2vf_mbox_handler()
167 pfwork->ndev = ndev; in nitrox_pf2vf_mbox_handler()
180 ndev->iov.vfdev = kcalloc(ndev->iov.num_vfs, in nitrox_mbox_init()
182 if (!ndev->iov.vfdev) in nitrox_mbox_init()
193 kfree(ndev->iov.vfdev); in nitrox_mbox_init()
207 if (ndev->iov.pf2vf_wq) in nitrox_mbox_cleanup()
210 kfree(ndev->iov.vfdev); in nitrox_mbox_cleanup()
[all …]
/linux/drivers/ntb/hw/intel/
A Dntb_hw_gen1.c336 if (ndev->reg->poll_link(ndev)) in ndev_interrupt()
375 ndev->db_mask = ndev->db_valid_mask; in ndev_init_isr()
376 ndev->reg->db_iowrite(ndev->db_mask, in ndev_init_isr()
401 ndev->vec[i].ndev = ndev; in ndev_init_isr()
472 ndev->db_mask = ndev->db_valid_mask; in ndev_deinit_isr()
473 ndev->reg->db_iowrite(ndev->db_mask, in ndev_deinit_isr()
537 if (!ndev->reg->link_is_up(ndev)) { in ndev_ntb_debugfs_read()
786 ndev->debugfs_dir, ndev, in ndev_init_debugfs()
948 if (ndev->reg->link_is_up(ndev)) { in intel_ntb_link_is_up()
1807 if (ndev->peer_mmio && ndev->peer_mmio != ndev->self_mmio) in intel_ntb_deinit_pci()
[all …]
A Dntb_hw_gen4.c58 ndev->reg->db_iowrite(ndev->db_link_mask, in gen4_poll_link()
122 ndev->peer_mmio = ndev->self_mmio; in gen4_setup_b2b_mw()
150 ndev->db_valid_mask = BIT_ULL(ndev->db_count) - 1; in gen4_init_ntb()
152 ndev->reg->db_iowrite(ndev->db_valid_mask, in gen4_init_ntb()
186 ndev->ntb.topo = gen4_ppd_topo(ndev, ppd1); in gen4_init_dev()
237 if (!ndev->reg->link_is_up(ndev)) in ndev_ntb4_debugfs_read()
269 u.v64 = ndev_db_read(ndev, mmio + ndev->self_reg->db_mask); in ndev_ntb4_debugfs_read()
336 if (idx >= ndev->b2b_idx && !ndev->b2b_off) in intel_ntb4_mw_set_trans()
457 iowrite32(ntb_ctl, ndev->self_mmio + ndev->reg->ntb_ctl); in intel_ntb4_link_enable()
491 ntb_cntl = ioread32(ndev->self_mmio + ndev->reg->ntb_ctl); in intel_ntb4_link_disable()
[all …]
A Dntb_hw_gen3.c98 ndev->reg->db_iowrite(ndev->db_link_mask, in gen3_poll_link()
168 ndev->peer_mmio = ndev->self_mmio; in gen3_setup_b2b_mw()
217 ndev->db_valid_mask = BIT_ULL(ndev->db_count) - 1; in gen3_init_ntb()
219 ndev->reg->db_iowrite(ndev->db_valid_mask, in gen3_init_ntb()
240 ndev->ntb.topo = xeon_ppd_topo(ndev, ppd); in gen3_init_dev()
288 if (!ndev->reg->link_is_up(ndev)) in ndev_ntb3_debugfs_read()
320 u.v64 = ndev_db_read(ndev, mmio + ndev->self_reg->db_mask); in ndev_ntb3_debugfs_read()
324 u.v64 = ndev_db_read(ndev, mmio + ndev->self_reg->db_bell); in ndev_ntb3_debugfs_read()
435 ntb_ctl = ioread32(ndev->self_mmio + ndev->reg->ntb_ctl); in intel_ntb3_link_enable()
439 iowrite32(ntb_ctl, ndev->self_mmio + ndev->reg->ntb_ctl); in intel_ntb3_link_enable()
[all …]
/linux/drivers/ntb/hw/idt/
A Dntb_hw_idt.c521 ndev->peers[ndev->peer_cnt].port = port; in idt_scan_ports()
522 ndev->peers[ndev->peer_cnt].part = part; in idt_scan_ports()
524 ndev->port_idx_map[port] = ndev->peer_cnt; in idt_scan_ports()
525 ndev->part_idx_map[part] = ndev->peer_cnt; in idt_scan_ports()
531 ndev->port, ndev->peer_cnt); in idt_scan_ports()
749 idt_nt_write(ndev, IDT_NT_NTMTBLADDR, ndev->part); in idt_ntb_local_link_enable()
776 idt_nt_write(ndev, IDT_NT_NTMTBLADDR, ndev->part); in idt_ntb_local_link_disable()
815 idt_nt_write(ndev, IDT_NT_NTMTBLADDR, ndev->part); in idt_ntb_local_link_is_up()
1133 ndev->mws = idt_scan_mws(ndev, ndev->port, &ndev->mw_cnt); in idt_init_mws()
1263 ndev->mws[widx].idx * ndev->mws[widx].size_max; in idt_ntb_peer_mw_get_addr()
[all …]
/linux/drivers/ntb/hw/epf/
A Dntb_hw_epf.c508 ndev->db_val = 0; in ntb_epf_db_clear()
557 ndev->db_valid_mask = BIT_ULL(ndev->db_count) - 1; in ntb_epf_init_dev()
558 ndev->mw_count = readl(ndev->ctrl_reg + NTB_EPF_MW_COUNT); in ntb_epf_init_dev()
559 ndev->spad_count = readl(ndev->ctrl_reg + NTB_EPF_SPAD_COUNT); in ntb_epf_init_dev()
596 ndev->ctrl_reg = pci_iomap(pdev, ndev->ctrl_reg_bar, 0); in ntb_epf_init_pci()
602 ndev->peer_spad_reg = pci_iomap(pdev, ndev->peer_spad_reg_bar, 0); in ntb_epf_init_pci()
608 ndev->db_reg = pci_iomap(pdev, ndev->db_reg_bar, 0); in ntb_epf_init_pci()
647 ntb_epf_send_command(ndev, CMD_TEARDOWN_DOORBELL, ndev->db_count + 1); in ntb_epf_cleanup_isr()
668 ndev = devm_kzalloc(dev, sizeof(*ndev), GFP_KERNEL); in ntb_epf_pci_probe()
669 if (!ndev) in ntb_epf_pci_probe()
[all …]
/linux/drivers/net/
A Dntb_netdev.c130 skb = netdev_alloc_skb(ndev, ndev->mtu + ETH_HLEN); in ntb_netdev_rx_handler()
184 if (!skb || !ndev) in ntb_netdev_tx_handler()
233 struct net_device *ndev = dev->ndev; in ntb_netdev_tx_timer() local
255 skb = netdev_alloc_skb(ndev, ndev->mtu + ETH_HLEN); in ntb_netdev_open()
415 if (!ndev) in ntb_netdev_probe()
421 dev->ndev = ndev; in ntb_netdev_probe()
427 ndev->hw_features = ndev->features; in ntb_netdev_probe()
431 dev_addr_set(ndev, ndev->perm_addr); in ntb_netdev_probe()
436 ndev->min_mtu = 0; in ntb_netdev_probe()
459 free_netdev(ndev); in ntb_netdev_probe()
[all …]
/linux/drivers/net/ethernet/renesas/
A Dravb_main.c57 ravb_write(ndev, (ravb_read(ndev, reg) & ~clear) | set, reg); in ravb_modify()
533 (ndev->dev_addr[0] << 24) | (ndev->dev_addr[1] << 16) | in ravb_emac_init_gbeth()
534 (ndev->dev_addr[2] << 8) | (ndev->dev_addr[3]), MAHR); in ravb_emac_init_gbeth()
535 ravb_write(ndev, (ndev->dev_addr[4] << 8) | (ndev->dev_addr[5]), MALR); in ravb_emac_init_gbeth()
1774 ndev->name, ndev); in ravb_open()
1842 free_irq(ndev->irq, ndev); in ravb_open()
1870 struct net_device *ndev = priv->ndev; in ravb_tx_timeout_work() local
2173 free_irq(ndev->irq, ndev); in ravb_close()
2593 if (!ndev) in ravb_probe()
2620 priv->ndev = ndev; in ravb_probe()
[all …]
A Dsh_eth.c1141 (ndev->dev_addr[2] << 8) | (ndev->dev_addr[3]), MAHR); in update_mac_address()
2423 mdp->cd->irq_flags, ndev->name, ndev); in sh_eth_open()
2451 free_irq(ndev->irq, ndev); in sh_eth_open()
2573 sh_eth_update_stat(ndev, &ndev->stats.tx_dropped, TROCR); in sh_eth_get_stats()
2574 sh_eth_update_stat(ndev, &ndev->stats.collisions, CDCR); in sh_eth_get_stats()
2578 sh_eth_update_stat(ndev, &ndev->stats.tx_carrier_errors, in sh_eth_get_stats()
2580 sh_eth_update_stat(ndev, &ndev->stats.tx_carrier_errors, in sh_eth_get_stats()
2583 sh_eth_update_stat(ndev, &ndev->stats.tx_carrier_errors, in sh_eth_get_stats()
2614 free_irq(ndev->irq, ndev); in sh_eth_close()
3232 if (!ndev) in sh_eth_drv_probe()
[all …]
/linux/drivers/media/pci/netup_unidvb/
A Dnetup_unidvb_core.c150 ndev = dma->ndev; in netup_unidvb_tuner_ctrl()
543 struct netup_unidvb_dev *ndev = dma->ndev; in netup_unidvb_ring_copy() local
581 struct netup_unidvb_dev *ndev = dma->ndev; in netup_unidvb_dma_worker() local
640 struct netup_unidvb_dev *ndev = dma->ndev; in netup_unidvb_dma_timeout() local
659 dma->ndev = ndev; in netup_unidvb_dma_init()
801 ndev = kzalloc(sizeof(*ndev), GFP_KERNEL); in netup_unidvb_initdev()
826 ndev->board_num = ndev->pci_bus*10 + ndev->pci_slot; in netup_unidvb_initdev()
830 __func__, ndev->board_num, ndev->pci_bus, ndev->pci_slot); in netup_unidvb_initdev()
882 ndev->bmmio0 = (u8 __iomem *)ndev->lmmio0; in netup_unidvb_initdev()
952 ndev->dma_virt, ndev->dma_phys); in netup_unidvb_initdev()
[all …]
/linux/drivers/net/ethernet/moxa/
A Dmoxart_ether.c53 ((ndev->dev_addr[0] << 8) | (ndev->dev_addr[1]))); in moxart_update_mac_address()
180 moxart_mac_reset(ndev); in moxart_mac_open()
215 struct net_device *ndev = priv->ndev; in moxart_rx_poll() local
438 if ((ndev->flags & IFF_MULTICAST) && netdev_mc_count(ndev)) { in moxart_mac_set_rx_mode()
470 if (!ndev) in moxart_mac_probe()
481 priv->ndev = ndev; in moxart_mac_probe()
538 ndev->irq = irq; in moxart_mac_probe()
547 __func__, ndev->irq, ndev->dev_addr); in moxart_mac_probe()
555 free_netdev(ndev); in moxart_mac_probe()
564 devm_free_irq(&pdev->dev, ndev->irq, ndev); in moxart_remove()
[all …]
/linux/drivers/net/ethernet/ezchip/
A Dnps_enet.c85 ndev->stats.rx_errors++; in nps_enet_rx_handler()
92 ndev->stats.rx_dropped++; in nps_enet_rx_handler()
109 ndev->stats.rx_errors++; in nps_enet_rx_handler()
121 ndev->stats.rx_packets++; in nps_enet_rx_handler()
154 ndev->stats.tx_errors++; in nps_enet_tx_handler()
164 netif_wake_queue(ndev); in nps_enet_tx_handler()
556 nps_enet_irq_handler(ndev->irq, ndev); in nps_enet_poll_controller()
557 enable_irq(ndev->irq); in nps_enet_poll_controller()
583 if (!ndev) in nps_enet_probe()
633 free_netdev(ndev); in nps_enet_probe()
[all …]
/linux/drivers/net/ethernet/wiznet/
A Dw5300.c97 struct net_device *ndev; member
230 struct net_device *ndev = priv->ndev; in w5300_write_macaddr() local
348 netif_stop_queue(ndev); in w5300_tx_timeout()
353 netif_wake_queue(ndev); in w5300_tx_timeout()
360 netif_stop_queue(ndev); in w5300_start_tx()
376 struct net_device *ndev = priv->ndev; in w5300_napi_poll() local
501 netif_stop_queue(ndev); in w5300_stop()
596 if (!ndev) in w5300_probe()
601 priv->ndev = ndev; in w5300_probe()
626 free_netdev(ndev); in w5300_probe()
[all …]
A Dw5100.c163 struct net_device *ndev; member
591 struct net_device *ndev = priv->ndev; in w5100_write_macaddr() local
772 netif_stop_queue(ndev); in w5100_restart()
777 netif_wake_queue(ndev); in w5100_restart()
795 w5100_restart(ndev); in w5100_tx_timeout()
1096 if (!ndev) in w5100_probe()
1129 priv->ndev = ndev; in w5100_probe()
1177 netdev_name(ndev), ndev); in w5100_probe()
1180 IRQF_TRIGGER_LOW, netdev_name(ndev), ndev); in w5100_probe()
1210 free_netdev(ndev); in w5100_probe()
[all …]
/linux/drivers/net/ethernet/apm/xgene-v2/
A Dmain.c17 struct net_device *ndev; in xge_get_resources() local
24 ndev = pdata->ndev; in xge_get_resources()
42 memcpy(ndev->perm_addr, ndev->dev_addr, ndev->addr_len); in xge_get_resources()
123 xge_port_init(ndev); in xge_init_hw()
414 ring->ndev = ndev; in xge_create_desc_ring()
640 if (!ndev) in xge_probe()
646 pdata->ndev = ndev; in xge_probe()
658 ndev->hw_features = ndev->features; in xge_probe()
699 ndev = pdata->ndev; in xge_remove()
703 dev_close(ndev); in xge_remove()
[all …]
/linux/drivers/vdpa/mlx5/net/
A Dmlx5_vnet.c529 struct mlx5_vdpa_net *ndev = mvq->ndev; in mlx5_vdpa_handle_completions() local
547 struct mlx5_vdpa_net *ndev = mvq->ndev; in mlx5_vdpa_cq_comp() local
1222 suspend_vq(ndev, &ndev->vqs[i]); in suspend_vqs()
1540 teardown_vq(ndev, &ndev->vqs[i]); in change_num_qps()
1546 err = setup_vq(ndev, &ndev->vqs[i]); in change_num_qps()
1558 teardown_vq(ndev, &ndev->vqs[i]); in change_num_qps()
1919 err = setup_vq(ndev, &ndev->vqs[i]); in setup_virtqueues()
1938 teardown_vq(ndev, &ndev->vqs[i]); in setup_virtqueues()
2432 mvq->ndev = ndev; in init_mvqs()
2439 mvq->ndev = ndev; in init_mvqs()
[all …]

Completed in 109 milliseconds

12345678910>>...21