Home
last modified time | relevance | path

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

12345678910>>...24

/linux-6.6.21/net/nfc/nci/
Dcore.c43 struct nci_conn_info *nci_get_conn_info_by_conn_id(struct nci_dev *ndev, in nci_get_conn_info_by_conn_id() argument
48 list_for_each_entry(conn_info, &ndev->conn_info_list, list) { in nci_get_conn_info_by_conn_id()
56 int nci_get_conn_info_by_dest_type_params(struct nci_dev *ndev, u8 dest_type, in nci_get_conn_info_by_dest_type_params() argument
61 list_for_each_entry(conn_info, &ndev->conn_info_list, list) { in nci_get_conn_info_by_dest_type_params()
78 void nci_req_complete(struct nci_dev *ndev, int result) in nci_req_complete() argument
80 if (ndev->req_status == NCI_REQ_PEND) { in nci_req_complete()
81 ndev->req_result = result; in nci_req_complete()
82 ndev->req_status = NCI_REQ_DONE; in nci_req_complete()
83 complete(&ndev->req_completion); in nci_req_complete()
88 static void nci_req_cancel(struct nci_dev *ndev, int err) in nci_req_cancel() argument
[all …]
Drsp.c28 static void nci_core_reset_rsp_packet(struct nci_dev *ndev, in nci_core_reset_rsp_packet() argument
38 ndev->nci_ver = rsp->nci_ver; in nci_core_reset_rsp_packet()
43 nci_req_complete(ndev, rsp->status); in nci_core_reset_rsp_packet()
47 static u8 nci_core_init_rsp_packet_v1(struct nci_dev *ndev, in nci_core_init_rsp_packet_v1() argument
58 ndev->nfcc_features = __le32_to_cpu(rsp_1->nfcc_features); in nci_core_init_rsp_packet_v1()
59 ndev->num_supported_rf_interfaces = rsp_1->num_supported_rf_interfaces; in nci_core_init_rsp_packet_v1()
61 ndev->num_supported_rf_interfaces = in nci_core_init_rsp_packet_v1()
62 min((int)ndev->num_supported_rf_interfaces, in nci_core_init_rsp_packet_v1()
65 memcpy(ndev->supported_rf_interfaces, in nci_core_init_rsp_packet_v1()
67 ndev->num_supported_rf_interfaces); in nci_core_init_rsp_packet_v1()
[all …]
Dntf.c30 static void nci_core_reset_ntf_packet(struct nci_dev *ndev, in nci_core_reset_ntf_packet() argument
36 ndev->nci_ver = ntf->nci_ver; in nci_core_reset_ntf_packet()
40 ndev->manufact_id = ntf->manufact_id; in nci_core_reset_ntf_packet()
41 ndev->manufact_specific_info = in nci_core_reset_ntf_packet()
44 nci_req_complete(ndev, NCI_STATUS_OK); in nci_core_reset_ntf_packet()
47 static void nci_core_conn_credits_ntf_packet(struct nci_dev *ndev, in nci_core_conn_credits_ntf_packet() argument
68 conn_info = nci_get_conn_info_by_conn_id(ndev, in nci_core_conn_credits_ntf_packet()
78 if (!skb_queue_empty(&ndev->tx_q)) in nci_core_conn_credits_ntf_packet()
79 queue_work(ndev->tx_wq, &ndev->tx_work); in nci_core_conn_credits_ntf_packet()
82 static void nci_core_generic_error_ntf_packet(struct nci_dev *ndev, in nci_core_generic_error_ntf_packet() argument
[all …]
/linux-6.6.21/drivers/ntb/hw/amd/
Dntb_hw_amd.c76 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 …]
/linux-6.6.21/drivers/crypto/cavium/nitrox/
Dnitrox_main.c70 static void write_to_ucd_unit(struct nitrox_device *ndev, u32 ucode_size, in write_to_ucd_unit() argument
94 nitrox_write_csr(ndev, offset, block_num); in write_to_ucd_unit()
101 nitrox_write_csr(ndev, offset, data); in write_to_ucd_unit()
109 static int nitrox_load_fw(struct nitrox_device *ndev) in nitrox_load_fw() argument
123 dev_info(DEV(ndev), "Loading firmware \"%s\"\n", fw_name); in nitrox_load_fw()
125 ret = request_firmware(&fw, fw_name, DEV(ndev)); in nitrox_load_fw()
127 dev_err(DEV(ndev), "failed to get firmware %s\n", fw_name); in nitrox_load_fw()
135 dev_err(DEV(ndev), "Invalid ucode size: %u for firmware %s\n", in nitrox_load_fw()
143 memcpy(&ndev->hw.fw_name[0][0], ucode->version, (VERSION_LEN - 2)); in nitrox_load_fw()
144 ndev->hw.fw_name[0][VERSION_LEN - 1] = '\0'; in nitrox_load_fw()
[all …]
Dnitrox_isr.c42 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 …]
Dnitrox_hal.c15 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 …]
Dnitrox_sriov.c81 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 …]
Dnitrox_lib.c27 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 …]
Dnitrox_mbx.c35 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 …]
/linux-6.6.21/drivers/ntb/hw/intel/
Dntb_hw_gen1.c143 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 …]
Dntb_hw_gen4.c19 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 …]
Dntb_hw_gen3.c61 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 …]
/linux-6.6.21/drivers/ntb/hw/idt/
Dntb_hw_idt.c299 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 …]
/linux-6.6.21/drivers/ntb/hw/epf/
Dntb_hw_epf.c99 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 …]
/linux-6.6.21/drivers/net/
Dntb_netdev.c75 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 …]
/linux-6.6.21/drivers/net/ethernet/renesas/
Dravb_main.c51 void ravb_modify(struct net_device *ndev, enum ravb_reg reg, u32 clear, in ravb_modify() argument
54 ravb_write(ndev, (ravb_read(ndev, reg) & ~clear) | set, reg); in ravb_modify()
57 int ravb_wait(struct net_device *ndev, enum ravb_reg reg, u32 mask, u32 value) in ravb_wait() argument
62 if ((ravb_read(ndev, reg) & mask) == value) in ravb_wait()
69 static int ravb_set_opmode(struct net_device *ndev, u32 opmode) in ravb_set_opmode() argument
83 ravb_modify(ndev, CCC, ccc_mask, opmode); in ravb_set_opmode()
85 error = ravb_wait(ndev, CSR, CSR_OPS, csr_ops); in ravb_set_opmode()
87 netdev_err(ndev, "failed to switch device to requested mode (%u)\n", in ravb_set_opmode()
94 static void ravb_set_rate_gbeth(struct net_device *ndev) in ravb_set_rate_gbeth() argument
96 struct ravb_private *priv = netdev_priv(ndev); in ravb_set_rate_gbeth()
[all …]
Dsh_eth.c344 static void sh_eth_rcv_snd_disable(struct net_device *ndev);
345 static struct net_device_stats *sh_eth_get_stats(struct net_device *ndev);
347 static void sh_eth_write(struct net_device *ndev, u32 data, int enum_index) in sh_eth_write() argument
349 struct sh_eth_private *mdp = netdev_priv(ndev); in sh_eth_write()
358 static u32 sh_eth_read(struct net_device *ndev, int enum_index) in sh_eth_read() argument
360 struct sh_eth_private *mdp = netdev_priv(ndev); in sh_eth_read()
369 static void sh_eth_modify(struct net_device *ndev, int enum_index, u32 clear, in sh_eth_modify() argument
372 sh_eth_write(ndev, (sh_eth_read(ndev, enum_index) & ~clear) | set, in sh_eth_modify()
413 static void sh_eth_select_mii(struct net_device *ndev) in sh_eth_select_mii() argument
415 struct sh_eth_private *mdp = netdev_priv(ndev); in sh_eth_select_mii()
[all …]
/linux-6.6.21/drivers/media/pci/netup_unidvb/
Dnetup_unidvb_core.c146 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 …]
/linux-6.6.21/drivers/net/ethernet/ezchip/
Dnps_enet.c24 static void nps_enet_clean_rx_fifo(struct net_device *ndev, u32 frame_len) in nps_enet_clean_rx_fifo() argument
26 struct nps_enet_priv *priv = netdev_priv(ndev); in nps_enet_clean_rx_fifo()
34 static void nps_enet_read_rx_fifo(struct net_device *ndev, in nps_enet_read_rx_fifo() argument
37 struct nps_enet_priv *priv = netdev_priv(ndev); in nps_enet_read_rx_fifo()
62 static u32 nps_enet_rx_handler(struct net_device *ndev) in nps_enet_rx_handler() argument
66 struct nps_enet_priv *priv = netdev_priv(ndev); in nps_enet_rx_handler()
84 ndev->stats.rx_errors++; in nps_enet_rx_handler()
90 ndev->stats.rx_crc_errors++; in nps_enet_rx_handler()
91 ndev->stats.rx_dropped++; in nps_enet_rx_handler()
97 ndev->stats.rx_length_errors++; in nps_enet_rx_handler()
[all …]
/linux-6.6.21/drivers/net/ethernet/moxa/
Dmoxart_ether.c42 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 …]
/linux-6.6.21/drivers/net/ethernet/wiznet/
Dw5300.c97 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 …]
Dw5100.c163 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 …]
/linux-6.6.21/drivers/net/ethernet/apm/xgene-v2/
Dmain.c17 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 …]
/linux-6.6.21/drivers/vdpa/mlx5/net/
Dmlx5_vnet.c118 struct mlx5_vdpa_net *ndev; member
140 static void free_resources(struct mlx5_vdpa_net *ndev);
141 static void init_mvqs(struct mlx5_vdpa_net *ndev);
143 static void teardown_driver(struct mlx5_vdpa_net *ndev);
263 static int create_tis(struct mlx5_vdpa_net *ndev) in create_tis() argument
265 struct mlx5_vdpa_dev *mvdev = &ndev->mvdev; in create_tis()
271 MLX5_SET(tisc, tisc, transport_domain, ndev->res.tdn); in create_tis()
272 err = mlx5_vdpa_create_tis(mvdev, in, &ndev->res.tisn); in create_tis()
279 static void destroy_tis(struct mlx5_vdpa_net *ndev) in destroy_tis() argument
281 mlx5_vdpa_destroy_tis(&ndev->mvdev, ndev->res.tisn); in destroy_tis()
[all …]

12345678910>>...24