/drivers/ntb/hw/amd/ |
D | ntb_hw_amd.c | 76 static int ndev_mw_to_bar(struct amd_ntb_dev *ndev, int idx) in ndev_mw_to_bar() argument 78 if (idx < 0 || idx > ndev->mw_count) in ndev_mw_to_bar() 81 return ndev->dev_data->mw_idx << idx; in ndev_mw_to_bar() 97 struct amd_ntb_dev *ndev = ntb_ndev(ntb); in amd_ntb_mw_get_align() local 103 bar = ndev_mw_to_bar(ndev, idx); in amd_ntb_mw_get_align() 114 *size_max = pci_resource_len(ndev->ntb.pdev, bar); in amd_ntb_mw_get_align() 122 struct amd_ntb_dev *ndev = ntb_ndev(ntb); in amd_ntb_mw_set_trans() local 132 bar = ndev_mw_to_bar(ndev, idx); in amd_ntb_mw_set_trans() 142 mmio = ndev->self_mmio; in amd_ntb_mw_set_trans() 143 peer_mmio = ndev->peer_mmio; in amd_ntb_mw_set_trans() [all …]
|
/drivers/ntb/hw/intel/ |
D | ntb_hw_gen1.c | 143 static int xeon_init_isr(struct intel_ntb_dev *ndev); 145 static inline void ndev_reset_unsafe_flags(struct intel_ntb_dev *ndev) in ndev_reset_unsafe_flags() argument 147 ndev->unsafe_flags = 0; in ndev_reset_unsafe_flags() 148 ndev->unsafe_flags_ignore = 0; in ndev_reset_unsafe_flags() 151 if (ndev->hwerr_flags & NTB_HWERR_SDOORBELL_LOCKUP) in ndev_reset_unsafe_flags() 152 if (!ntb_topo_is_b2b(ndev->ntb.topo)) in ndev_reset_unsafe_flags() 153 ndev->unsafe_flags |= NTB_UNSAFE_DB; in ndev_reset_unsafe_flags() 156 if (ndev->hwerr_flags & NTB_HWERR_SB01BASE_LOCKUP) { in ndev_reset_unsafe_flags() 157 ndev->unsafe_flags |= NTB_UNSAFE_DB; in ndev_reset_unsafe_flags() 158 ndev->unsafe_flags |= NTB_UNSAFE_SPAD; in ndev_reset_unsafe_flags() [all …]
|
D | ntb_hw_gen4.c | 19 static int gen4_poll_link(struct intel_ntb_dev *ndev); 20 static int gen4_link_is_up(struct intel_ntb_dev *ndev); 49 static int gen4_poll_link(struct intel_ntb_dev *ndev) in gen4_poll_link() argument 57 iowrite16(GEN4_SLOTSTS_DLLSCS, ndev->self_mmio + GEN4_SLOTSTS); in gen4_poll_link() 58 ndev->reg->db_iowrite(ndev->db_link_mask, in gen4_poll_link() 59 ndev->self_mmio + in gen4_poll_link() 60 ndev->self_reg->db_clear); in gen4_poll_link() 62 reg_val = ioread16(ndev->self_mmio + GEN4_LINK_STATUS_OFFSET); in gen4_poll_link() 63 if (reg_val == ndev->lnk_sta) in gen4_poll_link() 66 ndev->lnk_sta = reg_val; in gen4_poll_link() [all …]
|
D | ntb_hw_gen3.c | 61 static int gen3_poll_link(struct intel_ntb_dev *ndev); 93 static int gen3_poll_link(struct intel_ntb_dev *ndev) in gen3_poll_link() argument 98 ndev->reg->db_iowrite(ndev->db_link_mask, in gen3_poll_link() 99 ndev->self_mmio + in gen3_poll_link() 100 ndev->self_reg->db_clear); in gen3_poll_link() 102 rc = pci_read_config_word(ndev->ntb.pdev, in gen3_poll_link() 107 if (reg_val == ndev->lnk_sta) in gen3_poll_link() 110 ndev->lnk_sta = reg_val; in gen3_poll_link() 115 static int gen3_init_isr(struct intel_ntb_dev *ndev) in gen3_init_isr() argument 127 iowrite8(i, ndev->self_mmio + GEN3_INTVEC_OFFSET + i); in gen3_init_isr() [all …]
|
/drivers/crypto/cavium/nitrox/ |
D | nitrox_main.c | 71 static void write_to_ucd_unit(struct nitrox_device *ndev, u32 ucode_size, in write_to_ucd_unit() argument 95 nitrox_write_csr(ndev, offset, block_num); in write_to_ucd_unit() 102 nitrox_write_csr(ndev, offset, data); in write_to_ucd_unit() 110 static int nitrox_load_fw(struct nitrox_device *ndev) in nitrox_load_fw() argument 124 dev_info(DEV(ndev), "Loading firmware \"%s\"\n", fw_name); in nitrox_load_fw() 126 ret = request_firmware(&fw, fw_name, DEV(ndev)); in nitrox_load_fw() 128 dev_err(DEV(ndev), "failed to get firmware %s\n", fw_name); in nitrox_load_fw() 136 dev_err(DEV(ndev), "Invalid ucode size: %u for firmware %s\n", in nitrox_load_fw() 144 memcpy(&ndev->hw.fw_name[0][0], ucode->version, (VERSION_LEN - 2)); in nitrox_load_fw() 145 ndev->hw.fw_name[0][VERSION_LEN - 1] = '\0'; in nitrox_load_fw() [all …]
|
D | nitrox_isr.c | 42 static void clear_nps_core_err_intr(struct nitrox_device *ndev) in clear_nps_core_err_intr() argument 47 value = nitrox_read_csr(ndev, NPS_CORE_INT); in clear_nps_core_err_intr() 48 nitrox_write_csr(ndev, NPS_CORE_INT, value); in clear_nps_core_err_intr() 50 dev_err_ratelimited(DEV(ndev), "NSP_CORE_INT 0x%016llx\n", value); in clear_nps_core_err_intr() 53 static void clear_nps_pkt_err_intr(struct nitrox_device *ndev) in clear_nps_pkt_err_intr() argument 59 pkt_int.value = nitrox_read_csr(ndev, NPS_PKT_INT); in clear_nps_pkt_err_intr() 60 dev_err_ratelimited(DEV(ndev), "NPS_PKT_INT 0x%016llx\n", in clear_nps_pkt_err_intr() 65 value = nitrox_read_csr(ndev, offset); in clear_nps_pkt_err_intr() 66 nitrox_write_csr(ndev, offset, value); in clear_nps_pkt_err_intr() 67 dev_err_ratelimited(DEV(ndev), in clear_nps_pkt_err_intr() [all …]
|
D | nitrox_hal.c | 15 static void emu_enable_cores(struct nitrox_device *ndev) in emu_enable_cores() argument 31 nitrox_write_csr(ndev, EMU_AE_ENABLEX(i), emu_ae.value); in emu_enable_cores() 32 nitrox_write_csr(ndev, EMU_SE_ENABLEX(i), emu_se.value); in emu_enable_cores() 40 void nitrox_config_emu_unit(struct nitrox_device *ndev) in nitrox_config_emu_unit() argument 48 emu_enable_cores(ndev); in nitrox_config_emu_unit() 59 nitrox_write_csr(ndev, offset, emu_wd_int.value); in nitrox_config_emu_unit() 61 nitrox_write_csr(ndev, offset, emu_ge_int.value); in nitrox_config_emu_unit() 65 static void reset_pkt_input_ring(struct nitrox_device *ndev, int ring) in reset_pkt_input_ring() argument 74 pkt_in_ctl.value = nitrox_read_csr(ndev, offset); in reset_pkt_input_ring() 76 nitrox_write_csr(ndev, offset, pkt_in_ctl.value); in reset_pkt_input_ring() [all …]
|
D | nitrox_sriov.c | 81 static void nitrox_pf_cleanup(struct nitrox_device *ndev) in nitrox_pf_cleanup() argument 84 atomic_set(&ndev->state, __NDEV_NOT_READY); in nitrox_pf_cleanup() 89 nitrox_unregister_interrupts(ndev); in nitrox_pf_cleanup() 90 nitrox_common_sw_cleanup(ndev); in nitrox_pf_cleanup() 97 static int nitrox_pf_reinit(struct nitrox_device *ndev) in nitrox_pf_reinit() argument 102 err = nitrox_common_sw_init(ndev); in nitrox_pf_reinit() 106 err = nitrox_register_interrupts(ndev); in nitrox_pf_reinit() 108 nitrox_common_sw_cleanup(ndev); in nitrox_pf_reinit() 113 nitrox_config_aqm_rings(ndev); in nitrox_pf_reinit() 116 nitrox_config_pkt_input_rings(ndev); in nitrox_pf_reinit() [all …]
|
D | nitrox_lib.c | 27 struct nitrox_device *ndev = cmdq->ndev; in nitrox_cmdq_init() local 29 cmdq->qsize = (ndev->qlen * cmdq->instr_size) + align_bytes; in nitrox_cmdq_init() 30 cmdq->unalign_base = dma_alloc_coherent(DEV(ndev), cmdq->qsize, in nitrox_cmdq_init() 62 struct nitrox_device *ndev; in nitrox_cmdq_cleanup() local 70 ndev = cmdq->ndev; in nitrox_cmdq_cleanup() 73 dma_free_coherent(DEV(ndev), cmdq->qsize, in nitrox_cmdq_cleanup() 87 static void nitrox_free_aqm_queues(struct nitrox_device *ndev) in nitrox_free_aqm_queues() argument 91 for (i = 0; i < ndev->nr_queues; i++) { in nitrox_free_aqm_queues() 92 nitrox_cmdq_cleanup(ndev->aqmq[i]); in nitrox_free_aqm_queues() 93 kfree_sensitive(ndev->aqmq[i]); in nitrox_free_aqm_queues() [all …]
|
D | nitrox_mbx.c | 35 struct nitrox_device *ndev; member 39 static inline u64 pf2vf_read_mbox(struct nitrox_device *ndev, int ring) in pf2vf_read_mbox() argument 44 return nitrox_read_csr(ndev, reg_addr); in pf2vf_read_mbox() 47 static inline void pf2vf_write_mbox(struct nitrox_device *ndev, u64 value, in pf2vf_write_mbox() argument 53 nitrox_write_csr(ndev, reg_addr, value); in pf2vf_write_mbox() 56 static void pf2vf_send_response(struct nitrox_device *ndev, in pf2vf_send_response() argument 65 msg.data = ndev->mode; in pf2vf_send_response() 72 msg.id.chipid = ndev->idx; in pf2vf_send_response() 96 pf2vf_write_mbox(ndev, msg.value, vfdev->ring); in pf2vf_send_response() 107 struct nitrox_device *ndev = pf2vf_resp->ndev; in pf2vf_resp_handler() local [all …]
|
/drivers/ntb/hw/idt/ |
D | ntb_hw_idt.c | 299 static void idt_nt_write(struct idt_ntb_dev *ndev, in idt_nt_write() argument 310 iowrite32(data, ndev->cfgspc + (ptrdiff_t)reg); in idt_nt_write() 322 static u32 idt_nt_read(struct idt_ntb_dev *ndev, const unsigned int reg) in idt_nt_read() argument 332 return ioread32(ndev->cfgspc + (ptrdiff_t)reg); in idt_nt_read() 343 static void idt_sw_write(struct idt_ntb_dev *ndev, in idt_sw_write() argument 356 spin_lock_irqsave(&ndev->gasa_lock, irqflags); in idt_sw_write() 358 iowrite32((u32)reg, ndev->cfgspc + (ptrdiff_t)IDT_NT_GASAADDR); in idt_sw_write() 360 iowrite32(data, ndev->cfgspc + (ptrdiff_t)IDT_NT_GASADATA); in idt_sw_write() 362 spin_unlock_irqrestore(&ndev->gasa_lock, irqflags); in idt_sw_write() 374 static u32 idt_sw_read(struct idt_ntb_dev *ndev, const unsigned int reg) in idt_sw_read() argument [all …]
|
/drivers/ntb/hw/epf/ |
D | ntb_hw_epf.c | 99 static int ntb_epf_send_command(struct ntb_epf_dev *ndev, u32 command, in ntb_epf_send_command() argument 107 mutex_lock(&ndev->cmd_lock); in ntb_epf_send_command() 108 writel(argument, ndev->ctrl_reg + NTB_EPF_ARGUMENT); in ntb_epf_send_command() 109 writel(command, ndev->ctrl_reg + NTB_EPF_COMMAND); in ntb_epf_send_command() 114 status = readw(ndev->ctrl_reg + NTB_EPF_CMD_STATUS); in ntb_epf_send_command() 132 writew(0, ndev->ctrl_reg + NTB_EPF_CMD_STATUS); in ntb_epf_send_command() 133 mutex_unlock(&ndev->cmd_lock); in ntb_epf_send_command() 138 static int ntb_epf_mw_to_bar(struct ntb_epf_dev *ndev, int idx) in ntb_epf_mw_to_bar() argument 140 struct device *dev = ndev->dev; in ntb_epf_mw_to_bar() 142 if (idx < 0 || idx > ndev->mw_count) { in ntb_epf_mw_to_bar() [all …]
|
/drivers/net/ethernet/renesas/ |
D | ravb_main.c | 53 void ravb_modify(struct net_device *ndev, enum ravb_reg reg, u32 clear, in ravb_modify() argument 56 ravb_write(ndev, (ravb_read(ndev, reg) & ~clear) | set, reg); in ravb_modify() 59 int ravb_wait(struct net_device *ndev, enum ravb_reg reg, u32 mask, u32 value) in ravb_wait() argument 64 if ((ravb_read(ndev, reg) & mask) == value) in ravb_wait() 71 static int ravb_set_opmode(struct net_device *ndev, u32 opmode) in ravb_set_opmode() argument 85 ravb_modify(ndev, CCC, ccc_mask, opmode); in ravb_set_opmode() 87 error = ravb_wait(ndev, CSR, CSR_OPS, csr_ops); in ravb_set_opmode() 89 netdev_err(ndev, "failed to switch device to requested mode (%u)\n", in ravb_set_opmode() 96 static void ravb_set_rate_gbeth(struct net_device *ndev) in ravb_set_rate_gbeth() argument 98 struct ravb_private *priv = netdev_priv(ndev); in ravb_set_rate_gbeth() [all …]
|
D | sh_eth.c | 346 static void sh_eth_rcv_snd_disable(struct net_device *ndev); 347 static struct net_device_stats *sh_eth_get_stats(struct net_device *ndev); 349 static void sh_eth_write(struct net_device *ndev, u32 data, int enum_index) in sh_eth_write() argument 351 struct sh_eth_private *mdp = netdev_priv(ndev); in sh_eth_write() 360 static u32 sh_eth_read(struct net_device *ndev, int enum_index) in sh_eth_read() argument 362 struct sh_eth_private *mdp = netdev_priv(ndev); in sh_eth_read() 371 static void sh_eth_modify(struct net_device *ndev, int enum_index, u32 clear, in sh_eth_modify() argument 374 sh_eth_write(ndev, (sh_eth_read(ndev, enum_index) & ~clear) | set, in sh_eth_modify() 415 static void sh_eth_select_mii(struct net_device *ndev) in sh_eth_select_mii() argument 417 struct sh_eth_private *mdp = netdev_priv(ndev); in sh_eth_select_mii() [all …]
|
/drivers/net/ |
D | ntb_netdev.c | 75 struct net_device *ndev; member 85 struct net_device *ndev = data; in ntb_netdev_event_handler() local 86 struct ntb_netdev *dev = netdev_priv(ndev); in ntb_netdev_event_handler() 88 netdev_dbg(ndev, "Event %x, Link %x\n", link_is_up, in ntb_netdev_event_handler() 93 netif_carrier_on(ndev); in ntb_netdev_event_handler() 95 netif_carrier_off(ndev); in ntb_netdev_event_handler() 102 struct net_device *ndev = qp_data; in ntb_netdev_rx_handler() local 110 netdev_dbg(ndev, "%s: %d byte payload received\n", __func__, len); in ntb_netdev_rx_handler() 113 ndev->stats.rx_errors++; in ntb_netdev_rx_handler() 114 ndev->stats.rx_length_errors++; in ntb_netdev_rx_handler() [all …]
|
/drivers/media/pci/netup_unidvb/ |
D | netup_unidvb_core.c | 146 struct netup_unidvb_dev *ndev; in netup_unidvb_tuner_ctrl() local 150 ndev = dma->ndev; in netup_unidvb_tuner_ctrl() 151 dev_dbg(&ndev->pci_dev->dev, "%s(): num %d is_dvb_tc %d\n", in netup_unidvb_tuner_ctrl() 153 reg = readb(ndev->bmmio0 + GPIO_REG_IO); in netup_unidvb_tuner_ctrl() 157 if (ndev->rev == NETUP_HW_REV_1_4) in netup_unidvb_tuner_ctrl() 164 writeb(reg, ndev->bmmio0 + GPIO_REG_IO); in netup_unidvb_tuner_ctrl() 168 static void netup_unidvb_dev_enable(struct netup_unidvb_dev *ndev) in netup_unidvb_dev_enable() argument 173 writel(AVL_IRQ_ENABLE, ndev->bmmio0 + AVL_PCIE_IENR); in netup_unidvb_dev_enable() 175 writeb(0x00, ndev->bmmio0 + GPIO_REG_IO); in netup_unidvb_dev_enable() 181 writeb(gpio_reg, ndev->bmmio0 + GPIO_REG_IO); in netup_unidvb_dev_enable() [all …]
|
/drivers/net/ethernet/ezchip/ |
D | nps_enet.c | 25 static void nps_enet_clean_rx_fifo(struct net_device *ndev, u32 frame_len) in nps_enet_clean_rx_fifo() argument 27 struct nps_enet_priv *priv = netdev_priv(ndev); in nps_enet_clean_rx_fifo() 35 static void nps_enet_read_rx_fifo(struct net_device *ndev, in nps_enet_read_rx_fifo() argument 38 struct nps_enet_priv *priv = netdev_priv(ndev); in nps_enet_read_rx_fifo() 63 static u32 nps_enet_rx_handler(struct net_device *ndev) in nps_enet_rx_handler() argument 67 struct nps_enet_priv *priv = netdev_priv(ndev); in nps_enet_rx_handler() 85 ndev->stats.rx_errors++; in nps_enet_rx_handler() 91 ndev->stats.rx_crc_errors++; in nps_enet_rx_handler() 92 ndev->stats.rx_dropped++; in nps_enet_rx_handler() 98 ndev->stats.rx_length_errors++; in nps_enet_rx_handler() [all …]
|
/drivers/net/ethernet/wiznet/ |
D | w5300.c | 97 struct net_device *ndev; member 230 struct net_device *ndev = priv->ndev; in w5300_write_macaddr() local 232 ndev->dev_addr[0] << 24 | in w5300_write_macaddr() 233 ndev->dev_addr[1] << 16 | in w5300_write_macaddr() 234 ndev->dev_addr[2] << 8 | in w5300_write_macaddr() 235 ndev->dev_addr[3]); in w5300_write_macaddr() 237 ndev->dev_addr[4] << 8 | in w5300_write_macaddr() 238 ndev->dev_addr[5]); in w5300_write_macaddr() 282 static void w5300_get_drvinfo(struct net_device *ndev, in w5300_get_drvinfo() argument 287 strscpy(info->bus_info, dev_name(ndev->dev.parent), in w5300_get_drvinfo() [all …]
|
D | w5100.c | 163 struct net_device *ndev; member 192 static inline void __iomem *w5100_mmio(struct net_device *ndev) in w5100_mmio() argument 194 struct w5100_mmio_priv *mmio_priv = w5100_mmio_priv(ndev); in w5100_mmio() 205 static inline int w5100_read_direct(struct net_device *ndev, u32 addr) in w5100_read_direct() argument 207 return ioread8(w5100_mmio(ndev) + (addr << CONFIG_WIZNET_BUS_SHIFT)); in w5100_read_direct() 210 static inline int __w5100_write_direct(struct net_device *ndev, u32 addr, in __w5100_write_direct() argument 213 iowrite8(data, w5100_mmio(ndev) + (addr << CONFIG_WIZNET_BUS_SHIFT)); in __w5100_write_direct() 218 static inline int w5100_write_direct(struct net_device *ndev, u32 addr, u8 data) in w5100_write_direct() argument 220 __w5100_write_direct(ndev, addr, data); in w5100_write_direct() 225 static int w5100_read16_direct(struct net_device *ndev, u32 addr) in w5100_read16_direct() argument [all …]
|
/drivers/net/ethernet/moxa/ |
D | moxart_ether.c | 42 static inline void moxart_emac_write(struct net_device *ndev, in moxart_emac_write() argument 45 struct moxart_mac_priv_t *priv = netdev_priv(ndev); in moxart_emac_write() 50 static void moxart_update_mac_address(struct net_device *ndev) in moxart_update_mac_address() argument 52 moxart_emac_write(ndev, REG_MAC_MS_ADDRESS, in moxart_update_mac_address() 53 ((ndev->dev_addr[0] << 8) | (ndev->dev_addr[1]))); in moxart_update_mac_address() 54 moxart_emac_write(ndev, REG_MAC_MS_ADDRESS + 4, in moxart_update_mac_address() 55 ((ndev->dev_addr[2] << 24) | in moxart_update_mac_address() 56 (ndev->dev_addr[3] << 16) | in moxart_update_mac_address() 57 (ndev->dev_addr[4] << 8) | in moxart_update_mac_address() 58 (ndev->dev_addr[5]))); in moxart_update_mac_address() [all …]
|
/drivers/net/ethernet/apm/xgene-v2/ |
D | main.c | 17 struct net_device *ndev; in xge_get_resources() local 24 ndev = pdata->ndev; in xge_get_resources() 39 if (device_get_ethdev_address(dev, ndev)) in xge_get_resources() 40 eth_hw_addr_random(ndev); in xge_get_resources() 42 memcpy(ndev->perm_addr, ndev->dev_addr, ndev->addr_len); in xge_get_resources() 64 static int xge_refill_buffers(struct net_device *ndev, u32 nbuf) in xge_refill_buffers() argument 66 struct xge_pdata *pdata = netdev_priv(ndev); in xge_refill_buffers() 82 skb = netdev_alloc_skb(ndev, len); in xge_refill_buffers() 88 netdev_err(ndev, "DMA mapping error\n"); in xge_refill_buffers() 114 static int xge_init_hw(struct net_device *ndev) in xge_init_hw() argument [all …]
|
/drivers/vdpa/mlx5/net/ |
D | mlx5_vnet.c | 128 struct mlx5_vdpa_net *ndev; member 181 static void free_resources(struct mlx5_vdpa_net *ndev); 182 static void init_mvqs(struct mlx5_vdpa_net *ndev); 184 static void teardown_driver(struct mlx5_vdpa_net *ndev); 304 static int create_tis(struct mlx5_vdpa_net *ndev) in create_tis() argument 306 struct mlx5_vdpa_dev *mvdev = &ndev->mvdev; in create_tis() 312 MLX5_SET(tisc, tisc, transport_domain, ndev->res.tdn); in create_tis() 313 err = mlx5_vdpa_create_tis(mvdev, in, &ndev->res.tisn); in create_tis() 320 static void destroy_tis(struct mlx5_vdpa_net *ndev) in destroy_tis() argument 322 mlx5_vdpa_destroy_tis(&ndev->mvdev, ndev->res.tisn); in destroy_tis() [all …]
|
/drivers/nfc/fdp/ |
D | fdp.c | 43 struct nci_dev *ndev; member 60 void (*data_pkt_counter_cb)(struct nci_dev *ndev); 82 static int fdp_nci_create_conn(struct nci_dev *ndev) in fdp_nci_create_conn() argument 84 struct fdp_nci_info *info = nci_get_drvdata(ndev); in fdp_nci_create_conn() 92 r = nci_core_conn_create(info->ndev, FDP_PATCH_CONN_DEST, 1, in fdp_nci_create_conn() 97 return nci_get_conn_info_by_dest_type_params(ndev, in fdp_nci_create_conn() 101 static inline int fdp_nci_get_versions(struct nci_dev *ndev) in fdp_nci_get_versions() argument 103 return nci_core_cmd(ndev, NCI_OP_CORE_GET_CONFIG_CMD, in fdp_nci_get_versions() 108 static inline int fdp_nci_patch_cmd(struct nci_dev *ndev, u8 type) in fdp_nci_patch_cmd() argument 110 return nci_prop_cmd(ndev, NCI_OP_PROP_PATCH_OID, sizeof(type), &type); in fdp_nci_patch_cmd() [all …]
|
/drivers/net/ethernet/socionext/ |
D | sni_ave.c | 272 struct net_device *ndev; member 296 static u32 ave_desc_read(struct net_device *ndev, enum desc_id id, int entry, in ave_desc_read() argument 299 struct ave_private *priv = netdev_priv(ndev); in ave_desc_read() 308 static u32 ave_desc_read_cmdsts(struct net_device *ndev, enum desc_id id, in ave_desc_read_cmdsts() argument 311 return ave_desc_read(ndev, id, entry, AVE_DESC_OFS_CMDSTS); in ave_desc_read_cmdsts() 314 static void ave_desc_write(struct net_device *ndev, enum desc_id id, in ave_desc_write() argument 317 struct ave_private *priv = netdev_priv(ndev); in ave_desc_write() 326 static void ave_desc_write_cmdsts(struct net_device *ndev, enum desc_id id, in ave_desc_write_cmdsts() argument 329 ave_desc_write(ndev, id, entry, AVE_DESC_OFS_CMDSTS, val); in ave_desc_write_cmdsts() 332 static void ave_desc_write_addr(struct net_device *ndev, enum desc_id id, in ave_desc_write_addr() argument [all …]
|
/drivers/net/ethernet/arc/ |
D | emac_main.c | 26 static void arc_emac_restart(struct net_device *ndev); 46 static void arc_emac_adjust_link(struct net_device *ndev) in arc_emac_adjust_link() argument 48 struct arc_emac_priv *priv = netdev_priv(ndev); in arc_emac_adjust_link() 49 struct phy_device *phy_dev = ndev->phydev; in arc_emac_adjust_link() 89 static void arc_emac_get_drvinfo(struct net_device *ndev, in arc_emac_get_drvinfo() argument 92 struct arc_emac_priv *priv = netdev_priv(ndev); in arc_emac_get_drvinfo() 110 static void arc_emac_tx_clean(struct net_device *ndev) in arc_emac_tx_clean() argument 112 struct arc_emac_priv *priv = netdev_priv(ndev); in arc_emac_tx_clean() 113 struct net_device_stats *stats = &ndev->stats; in arc_emac_tx_clean() 143 dma_unmap_single(&ndev->dev, dma_unmap_addr(tx_buff, addr), in arc_emac_tx_clean() [all …]
|