/Linux-v5.10/net/nfc/nci/ |
D | core.c | 42 struct nci_conn_info *nci_get_conn_info_by_conn_id(struct nci_dev *ndev, in nci_get_conn_info_by_conn_id() argument 47 list_for_each_entry(conn_info, &ndev->conn_info_list, list) { in nci_get_conn_info_by_conn_id() 55 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 60 list_for_each_entry(conn_info, &ndev->conn_info_list, list) { in nci_get_conn_info_by_dest_type_params() 77 void nci_req_complete(struct nci_dev *ndev, int result) in nci_req_complete() argument 79 if (ndev->req_status == NCI_REQ_PEND) { in nci_req_complete() 80 ndev->req_result = result; in nci_req_complete() 81 ndev->req_status = NCI_REQ_DONE; in nci_req_complete() 82 complete(&ndev->req_completion); in nci_req_complete() 87 static void nci_req_cancel(struct nci_dev *ndev, int err) in nci_req_cancel() argument [all …]
|
D | rsp.c | 28 static void nci_core_reset_rsp_packet(struct nci_dev *ndev, struct sk_buff *skb) in nci_core_reset_rsp_packet() argument 35 ndev->nci_ver = rsp->nci_ver; in nci_core_reset_rsp_packet() 40 nci_req_complete(ndev, rsp->status); in nci_core_reset_rsp_packet() 43 static void nci_core_init_rsp_packet(struct nci_dev *ndev, struct sk_buff *skb) in nci_core_init_rsp_packet() argument 53 ndev->nfcc_features = __le32_to_cpu(rsp_1->nfcc_features); in nci_core_init_rsp_packet() 54 ndev->num_supported_rf_interfaces = rsp_1->num_supported_rf_interfaces; in nci_core_init_rsp_packet() 56 if (ndev->num_supported_rf_interfaces > in nci_core_init_rsp_packet() 58 ndev->num_supported_rf_interfaces = in nci_core_init_rsp_packet() 62 memcpy(ndev->supported_rf_interfaces, in nci_core_init_rsp_packet() 64 ndev->num_supported_rf_interfaces); in nci_core_init_rsp_packet() [all …]
|
D | ntf.c | 30 static void nci_core_conn_credits_ntf_packet(struct nci_dev *ndev, in nci_core_conn_credits_ntf_packet() argument 51 conn_info = nci_get_conn_info_by_conn_id(ndev, in nci_core_conn_credits_ntf_packet() 61 if (!skb_queue_empty(&ndev->tx_q)) in nci_core_conn_credits_ntf_packet() 62 queue_work(ndev->tx_wq, &ndev->tx_work); in nci_core_conn_credits_ntf_packet() 65 static void nci_core_generic_error_ntf_packet(struct nci_dev *ndev, in nci_core_generic_error_ntf_packet() argument 72 if (atomic_read(&ndev->state) == NCI_W4_HOST_SELECT) { in nci_core_generic_error_ntf_packet() 75 nci_req_complete(ndev, status); in nci_core_generic_error_ntf_packet() 79 static void nci_core_conn_intf_error_ntf_packet(struct nci_dev *ndev, in nci_core_conn_intf_error_ntf_packet() argument 89 if (test_bit(NCI_DATA_EXCHANGE, &ndev->flags)) in nci_core_conn_intf_error_ntf_packet() 90 nci_data_exchange_complete(ndev, NULL, ntf->conn_id, -EIO); in nci_core_conn_intf_error_ntf_packet() [all …]
|
/Linux-v5.10/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 …]
|
/Linux-v5.10/drivers/crypto/cavium/nitrox/ |
D | nitrox_isr.c | 41 static void clear_nps_core_err_intr(struct nitrox_device *ndev) in clear_nps_core_err_intr() argument 46 value = nitrox_read_csr(ndev, NPS_CORE_INT); in clear_nps_core_err_intr() 47 nitrox_write_csr(ndev, NPS_CORE_INT, value); in clear_nps_core_err_intr() 49 dev_err_ratelimited(DEV(ndev), "NSP_CORE_INT 0x%016llx\n", value); in clear_nps_core_err_intr() 52 static void clear_nps_pkt_err_intr(struct nitrox_device *ndev) in clear_nps_pkt_err_intr() argument 58 pkt_int.value = nitrox_read_csr(ndev, NPS_PKT_INT); in clear_nps_pkt_err_intr() 59 dev_err_ratelimited(DEV(ndev), "NPS_PKT_INT 0x%016llx\n", in clear_nps_pkt_err_intr() 64 value = nitrox_read_csr(ndev, offset); in clear_nps_pkt_err_intr() 65 nitrox_write_csr(ndev, offset, value); in clear_nps_pkt_err_intr() 66 dev_err_ratelimited(DEV(ndev), in clear_nps_pkt_err_intr() [all …]
|
D | nitrox_main.c | 80 static void write_to_ucd_unit(struct nitrox_device *ndev, u32 ucode_size, in write_to_ucd_unit() argument 104 nitrox_write_csr(ndev, offset, block_num); in write_to_ucd_unit() 111 nitrox_write_csr(ndev, offset, data); in write_to_ucd_unit() 119 static int nitrox_load_fw(struct nitrox_device *ndev) in nitrox_load_fw() argument 133 dev_info(DEV(ndev), "Loading firmware \"%s\"\n", fw_name); in nitrox_load_fw() 135 ret = request_firmware(&fw, fw_name, DEV(ndev)); in nitrox_load_fw() 137 dev_err(DEV(ndev), "failed to get firmware %s\n", fw_name); in nitrox_load_fw() 145 dev_err(DEV(ndev), "Invalid ucode size: %u for firmware %s\n", in nitrox_load_fw() 153 memcpy(&ndev->hw.fw_name[0][0], ucode->version, (VERSION_LEN - 2)); in nitrox_load_fw() 154 ndev->hw.fw_name[0][VERSION_LEN - 1] = '\0'; in nitrox_load_fw() [all …]
|
D | nitrox_hal.c | 14 static void emu_enable_cores(struct nitrox_device *ndev) in emu_enable_cores() argument 30 nitrox_write_csr(ndev, EMU_AE_ENABLEX(i), emu_ae.value); in emu_enable_cores() 31 nitrox_write_csr(ndev, EMU_SE_ENABLEX(i), emu_se.value); in emu_enable_cores() 39 void nitrox_config_emu_unit(struct nitrox_device *ndev) in nitrox_config_emu_unit() argument 47 emu_enable_cores(ndev); in nitrox_config_emu_unit() 58 nitrox_write_csr(ndev, offset, emu_wd_int.value); in nitrox_config_emu_unit() 60 nitrox_write_csr(ndev, offset, emu_ge_int.value); in nitrox_config_emu_unit() 64 static void reset_pkt_input_ring(struct nitrox_device *ndev, int ring) in reset_pkt_input_ring() argument 73 pkt_in_ctl.value = nitrox_read_csr(ndev, offset); in reset_pkt_input_ring() 75 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 | 33 struct nitrox_device *ndev; member 37 static inline u64 pf2vf_read_mbox(struct nitrox_device *ndev, int ring) in pf2vf_read_mbox() argument 42 return nitrox_read_csr(ndev, reg_addr); in pf2vf_read_mbox() 45 static inline void pf2vf_write_mbox(struct nitrox_device *ndev, u64 value, in pf2vf_write_mbox() argument 51 nitrox_write_csr(ndev, reg_addr, value); in pf2vf_write_mbox() 54 static void pf2vf_send_response(struct nitrox_device *ndev, in pf2vf_send_response() argument 63 msg.data = ndev->mode; in pf2vf_send_response() 70 msg.id.chipid = ndev->idx; in pf2vf_send_response() 94 pf2vf_write_mbox(ndev, msg.value, vfdev->ring); in pf2vf_send_response() 105 struct nitrox_device *ndev = pf2vf_resp->ndev; in pf2vf_resp_handler() local [all …]
|
/Linux-v5.10/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 …]
|
/Linux-v5.10/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 …]
|
/Linux-v5.10/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 …]
|
/Linux-v5.10/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_config(struct net_device *ndev) in ravb_config() argument 76 ravb_modify(ndev, CCC, CCC_OPC, CCC_OPC_CONFIG); in ravb_config() 78 error = ravb_wait(ndev, CSR, CSR_OPS, CSR_OPS_CONFIG); in ravb_config() 80 netdev_err(ndev, "failed to switch device to config mode\n"); in ravb_config() 85 static void ravb_set_rate(struct net_device *ndev) in ravb_set_rate() argument 87 struct ravb_private *priv = netdev_priv(ndev); in ravb_set_rate() [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 …]
|
/Linux-v5.10/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 …]
|
/Linux-v5.10/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 …]
|
/Linux-v5.10/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 …]
|
/Linux-v5.10/drivers/vdpa/mlx5/net/ |
D | mlx5_vnet.c | 112 struct mlx5_vdpa_net *ndev; member 143 static void free_resources(struct mlx5_vdpa_net *ndev); 144 static void init_mvqs(struct mlx5_vdpa_net *ndev); 145 static int setup_driver(struct mlx5_vdpa_net *ndev); 146 static void teardown_driver(struct mlx5_vdpa_net *ndev); 234 static int create_tis(struct mlx5_vdpa_net *ndev) in create_tis() argument 236 struct mlx5_vdpa_dev *mvdev = &ndev->mvdev; in create_tis() 242 MLX5_SET(tisc, tisc, transport_domain, ndev->res.tdn); in create_tis() 243 err = mlx5_vdpa_create_tis(mvdev, in, &ndev->res.tisn); in create_tis() 250 static void destroy_tis(struct mlx5_vdpa_net *ndev) in destroy_tis() argument [all …]
|
/Linux-v5.10/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 strlcpy(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 …]
|
/Linux-v5.10/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_mac_address(dev, ndev->dev_addr, ETH_ALEN)) 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-v5.10/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 …]
|