/linux-6.6.21/drivers/net/wireless/marvell/mwifiex/ |
D | main.c | 59 struct mwifiex_adapter *adapter; in mwifiex_register() local 62 adapter = kzalloc(sizeof(struct mwifiex_adapter), GFP_KERNEL); in mwifiex_register() 63 if (!adapter) in mwifiex_register() 66 *padapter = adapter; in mwifiex_register() 67 adapter->dev = dev; in mwifiex_register() 68 adapter->card = card; in mwifiex_register() 71 memmove(&adapter->if_ops, if_ops, sizeof(struct mwifiex_if_ops)); in mwifiex_register() 72 adapter->debug_mask = debug_mask; in mwifiex_register() 75 if (adapter->if_ops.init_if) in mwifiex_register() 76 if (adapter->if_ops.init_if(adapter)) in mwifiex_register() [all …]
|
D | cmdevt.c | 17 static void mwifiex_cancel_pending_ioctl(struct mwifiex_adapter *adapter); 49 mwifiex_get_cmd_node(struct mwifiex_adapter *adapter) in mwifiex_get_cmd_node() argument 53 spin_lock_bh(&adapter->cmd_free_q_lock); in mwifiex_get_cmd_node() 54 if (list_empty(&adapter->cmd_free_q)) { in mwifiex_get_cmd_node() 55 mwifiex_dbg(adapter, ERROR, in mwifiex_get_cmd_node() 57 spin_unlock_bh(&adapter->cmd_free_q_lock); in mwifiex_get_cmd_node() 60 cmd_node = list_first_entry(&adapter->cmd_free_q, in mwifiex_get_cmd_node() 63 spin_unlock_bh(&adapter->cmd_free_q_lock); in mwifiex_get_cmd_node() 80 mwifiex_clean_cmd_node(struct mwifiex_adapter *adapter, in mwifiex_clean_cmd_node() argument 92 adapter->if_ops.cmdrsp_complete(adapter, cmd_node->resp_skb); in mwifiex_clean_cmd_node() [all …]
|
D | init.c | 24 struct mwifiex_adapter *adapter = priv->adapter; in mwifiex_add_bss_prio_tbl() local 26 struct mwifiex_bss_prio_tbl *tbl = adapter->bss_prio_tbl; in mwifiex_add_bss_prio_tbl() 44 struct mwifiex_adapter *adapter = from_timer(adapter, t, wakeup_timer); in wakeup_timer_fn() local 46 mwifiex_dbg(adapter, ERROR, "Firmware wakeup failed\n"); in wakeup_timer_fn() 47 adapter->hw_status = MWIFIEX_HW_STATUS_RESET; in wakeup_timer_fn() 48 mwifiex_cancel_all_pending_cmd(adapter); in wakeup_timer_fn() 50 if (adapter->if_ops.card_reset) in wakeup_timer_fn() 51 adapter->if_ops.card_reset(adapter); in wakeup_timer_fn() 56 struct mwifiex_adapter *adapter = in fw_dump_work() local 59 mwifiex_upload_device_dump(adapter); in fw_dump_work() [all …]
|
D | pcie.c | 192 static int mwifiex_pcie_delete_rxbd_ring(struct mwifiex_adapter *adapter); 193 static int mwifiex_pcie_delete_evtbd_ring(struct mwifiex_adapter *adapter); 196 mwifiex_map_pci_memory(struct mwifiex_adapter *adapter, struct sk_buff *skb, in mwifiex_map_pci_memory() argument 199 struct pcie_service_card *card = adapter->card; in mwifiex_map_pci_memory() 204 mwifiex_dbg(adapter, ERROR, "failed to map pci memory!\n"); in mwifiex_map_pci_memory() 212 static void mwifiex_unmap_pci_memory(struct mwifiex_adapter *adapter, in mwifiex_unmap_pci_memory() argument 215 struct pcie_service_card *card = adapter->card; in mwifiex_unmap_pci_memory() 225 static int mwifiex_write_reg(struct mwifiex_adapter *adapter, int reg, u32 data) in mwifiex_write_reg() argument 227 struct pcie_service_card *card = adapter->card; in mwifiex_write_reg() 236 static int mwifiex_read_reg(struct mwifiex_adapter *adapter, int reg, u32 *data) in mwifiex_read_reg() argument [all …]
|
/linux-6.6.21/drivers/net/ethernet/intel/iavf/ |
D | iavf_main.c | 14 static int iavf_setup_all_tx_resources(struct iavf_adapter *adapter); 15 static int iavf_setup_all_rx_resources(struct iavf_adapter *adapter); 17 static void iavf_init_get_resources(struct iavf_adapter *adapter); 173 static bool iavf_is_reset_in_progress(struct iavf_adapter *adapter) in iavf_is_reset_in_progress() argument 175 if (adapter->state == __IAVF_RESETTING || in iavf_is_reset_in_progress() 176 adapter->flags & (IAVF_FLAG_RESET_PENDING | in iavf_is_reset_in_progress() 189 int iavf_wait_for_reset(struct iavf_adapter *adapter) in iavf_wait_for_reset() argument 191 int ret = wait_event_interruptible_timeout(adapter->reset_waitqueue, in iavf_wait_for_reset() 192 !iavf_is_reset_in_progress(adapter), in iavf_wait_for_reset() 219 struct iavf_adapter *adapter = (struct iavf_adapter *)hw->back; in iavf_allocate_dma_mem_d() local [all …]
|
D | iavf_virtchnl.c | 17 static int iavf_send_pf_msg(struct iavf_adapter *adapter, in iavf_send_pf_msg() argument 20 struct iavf_hw *hw = &adapter->hw; in iavf_send_pf_msg() 23 if (adapter->flags & IAVF_FLAG_PF_COMMS_FAILED) in iavf_send_pf_msg() 28 dev_dbg(&adapter->pdev->dev, "Unable to send opcode %d to PF, status %s, aq_err %s\n", in iavf_send_pf_msg() 42 int iavf_send_api_ver(struct iavf_adapter *adapter) in iavf_send_api_ver() argument 49 return iavf_send_pf_msg(adapter, VIRTCHNL_OP_VERSION, (u8 *)&vvi, in iavf_send_api_ver() 97 int iavf_verify_api_ver(struct iavf_adapter *adapter) in iavf_verify_api_ver() argument 107 err = iavf_poll_virtchnl_msg(&adapter->hw, &event, VIRTCHNL_OP_VERSION); in iavf_verify_api_ver() 111 adapter->pf_version = *pf_vvi; in iavf_verify_api_ver() 132 int iavf_send_vf_config_msg(struct iavf_adapter *adapter) in iavf_send_vf_config_msg() argument [all …]
|
/linux-6.6.21/drivers/staging/rtl8712/ |
D | usb_halinit.c | 24 u8 r8712_usb_hal_bus_init(struct _adapter *adapter) in r8712_usb_hal_bus_init() argument 29 struct registry_priv *registrypriv = &adapter->registrypriv; in r8712_usb_hal_bus_init() 34 r8712_write8(adapter, SYS_CLKR, val8); in r8712_usb_hal_bus_init() 35 val8 = r8712_read8(adapter, SPS1_CTRL); in r8712_usb_hal_bus_init() 38 r8712_write8(adapter, SPS1_CTRL, val8); in r8712_usb_hal_bus_init() 39 val8 = r8712_read8(adapter, AFE_MISC); in r8712_usb_hal_bus_init() 42 r8712_write8(adapter, AFE_MISC, val8); in r8712_usb_hal_bus_init() 43 val8 = r8712_read8(adapter, LDOA15_CTRL); in r8712_usb_hal_bus_init() 46 r8712_write8(adapter, LDOA15_CTRL, val8); in r8712_usb_hal_bus_init() 47 val8 = r8712_read8(adapter, SPS1_CTRL); in r8712_usb_hal_bus_init() [all …]
|
/linux-6.6.21/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_main.c | 61 static void qlcnic_idc_debug_info(struct qlcnic_adapter *adapter, u8 encoding); 62 static int qlcnic_can_start_firmware(struct qlcnic_adapter *adapter); 73 static void qlcnic_free_lb_filters_mem(struct qlcnic_adapter *adapter); 88 static u32 qlcnic_vlan_tx_check(struct qlcnic_adapter *adapter) in qlcnic_vlan_tx_check() argument 90 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_vlan_tx_check() 92 if (adapter->pdev->device == PCI_DEVICE_ID_QLOGIC_QLE824X) in qlcnic_vlan_tx_check() 294 int qlcnic_read_mac_addr(struct qlcnic_adapter *adapter) in qlcnic_read_mac_addr() argument 296 struct net_device *netdev = adapter->netdev; in qlcnic_read_mac_addr() 297 struct pci_dev *pdev = adapter->pdev; in qlcnic_read_mac_addr() 301 ret = qlcnic_get_mac_address(adapter, mac_addr, in qlcnic_read_mac_addr() [all …]
|
D | qlcnic_83xx_init.c | 38 static int qlcnic_83xx_init_default_driver(struct qlcnic_adapter *adapter); 40 static int qlcnic_83xx_restart_hw(struct qlcnic_adapter *adapter); 132 qlcnic_83xx_idc_check_driver_presence_reg(struct qlcnic_adapter *adapter) in qlcnic_83xx_idc_check_driver_presence_reg() argument 136 val = QLCRDX(adapter->ahw, QLC_83XX_IDC_DRV_PRESENCE); in qlcnic_83xx_idc_check_driver_presence_reg() 143 static void qlcnic_83xx_idc_log_state_history(struct qlcnic_adapter *adapter) in qlcnic_83xx_idc_log_state_history() argument 146 cur = adapter->ahw->idc.curr_state; in qlcnic_83xx_idc_log_state_history() 147 prev = adapter->ahw->idc.prev_state; in qlcnic_83xx_idc_log_state_history() 149 dev_info(&adapter->pdev->dev, in qlcnic_83xx_idc_log_state_history() 151 adapter->ahw->idc.name[cur], in qlcnic_83xx_idc_log_state_history() 152 adapter->ahw->idc.name[prev]); in qlcnic_83xx_idc_log_state_history() [all …]
|
D | qlcnic_83xx_vnic.c | 10 static int qlcnic_83xx_enable_vnic_mode(struct qlcnic_adapter *adapter, int lock) in qlcnic_83xx_enable_vnic_mode() argument 13 if (qlcnic_83xx_lock_driver(adapter)) in qlcnic_83xx_enable_vnic_mode() 16 QLCWRX(adapter->ahw, QLC_83XX_VNIC_STATE, QLCNIC_DEV_NPAR_OPER); in qlcnic_83xx_enable_vnic_mode() 18 qlcnic_83xx_unlock_driver(adapter); in qlcnic_83xx_enable_vnic_mode() 23 int qlcnic_83xx_disable_vnic_mode(struct qlcnic_adapter *adapter, int lock) in qlcnic_83xx_disable_vnic_mode() argument 25 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_83xx_disable_vnic_mode() 28 if (qlcnic_83xx_lock_driver(adapter)) in qlcnic_83xx_disable_vnic_mode() 32 QLCWRX(adapter->ahw, QLC_83XX_VNIC_STATE, QLCNIC_DEV_NPAR_NON_OPER); in qlcnic_83xx_disable_vnic_mode() 36 qlcnic_83xx_unlock_driver(adapter); in qlcnic_83xx_disable_vnic_mode() 41 int qlcnic_83xx_set_vnic_opmode(struct qlcnic_adapter *adapter) in qlcnic_83xx_set_vnic_opmode() argument [all …]
|
/linux-6.6.21/drivers/scsi/ |
D | BusLogic.c | 135 static void blogic_announce_drvr(struct blogic_adapter *adapter) in blogic_announce_drvr() argument 137 …** BusLogic SCSI Driver Version " blogic_drvr_version " of " blogic_drvr_date " *****\n", adapter); in blogic_announce_drvr() 138 blogic_announce("Copyright 1995-1998 by Leonard N. Zubkoff <lnz@dandelion.com>\n", adapter); in blogic_announce_drvr() 149 struct blogic_adapter *adapter = in blogic_drvr_info() local 151 return adapter->full_model; in blogic_drvr_info() 160 static void blogic_init_ccbs(struct blogic_adapter *adapter, void *blk_pointer, in blogic_init_ccbs() argument 170 ccb->adapter = adapter; in blogic_init_ccbs() 172 if (blogic_flashpoint_type(adapter)) { in blogic_init_ccbs() 174 ccb->base_addr = adapter->fpinfo.base_addr; in blogic_init_ccbs() 176 ccb->next = adapter->free_ccbs; in blogic_init_ccbs() [all …]
|
D | vmw_pvscsi.c | 149 pvscsi_dev(const struct pvscsi_adapter *adapter) in pvscsi_dev() argument 151 return &(adapter->dev->dev); in pvscsi_dev() 155 pvscsi_find_context(const struct pvscsi_adapter *adapter, struct scsi_cmnd *cmd) in pvscsi_find_context() argument 159 end = &adapter->cmd_map[adapter->req_depth]; in pvscsi_find_context() 160 for (ctx = adapter->cmd_map; ctx < end; ctx++) in pvscsi_find_context() 168 pvscsi_acquire_context(struct pvscsi_adapter *adapter, struct scsi_cmnd *cmd) in pvscsi_acquire_context() argument 172 if (list_empty(&adapter->cmd_pool)) in pvscsi_acquire_context() 175 ctx = list_first_entry(&adapter->cmd_pool, struct pvscsi_ctx, list); in pvscsi_acquire_context() 182 static void pvscsi_release_context(struct pvscsi_adapter *adapter, in pvscsi_release_context() argument 187 list_add(&ctx->list, &adapter->cmd_pool); in pvscsi_release_context() [all …]
|
/linux-6.6.21/drivers/net/ethernet/ibm/ |
D | ibmvnic.c | 100 static int reset_sub_crq_queues(struct ibmvnic_adapter *adapter); 101 static inline void reinit_init_done(struct ibmvnic_adapter *adapter); 102 static void send_query_map(struct ibmvnic_adapter *adapter); 105 static int send_login(struct ibmvnic_adapter *adapter); 106 static void send_query_cap(struct ibmvnic_adapter *adapter); 108 static int init_sub_crq_irqs(struct ibmvnic_adapter *adapter); 112 static int init_crq_queue(struct ibmvnic_adapter *adapter); 113 static int send_query_phys_parms(struct ibmvnic_adapter *adapter); 114 static void ibmvnic_tx_scrq_clean_buffer(struct ibmvnic_adapter *adapter, 116 static void free_long_term_buff(struct ibmvnic_adapter *adapter, [all …]
|
/linux-6.6.21/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_lib.c | 17 static bool ixgbe_cache_ring_dcb_sriov(struct ixgbe_adapter *adapter) in ixgbe_cache_ring_dcb_sriov() argument 20 struct ixgbe_ring_feature *fcoe = &adapter->ring_feature[RING_F_FCOE]; in ixgbe_cache_ring_dcb_sriov() 22 struct ixgbe_ring_feature *vmdq = &adapter->ring_feature[RING_F_VMDQ]; in ixgbe_cache_ring_dcb_sriov() 25 u8 tcs = adapter->hw_tcs; in ixgbe_cache_ring_dcb_sriov() 32 if (!(adapter->flags & IXGBE_FLAG_SRIOV_ENABLED)) in ixgbe_cache_ring_dcb_sriov() 37 for (i = 0, pool = 0; i < adapter->num_rx_queues; i++, reg_idx++) { in ixgbe_cache_ring_dcb_sriov() 43 adapter->rx_ring[i]->reg_idx = reg_idx; in ixgbe_cache_ring_dcb_sriov() 44 adapter->rx_ring[i]->netdev = pool ? NULL : adapter->netdev; in ixgbe_cache_ring_dcb_sriov() 48 for (i = 0; i < adapter->num_tx_queues; i++, reg_idx++) { in ixgbe_cache_ring_dcb_sriov() 52 adapter->tx_ring[i]->reg_idx = reg_idx; in ixgbe_cache_ring_dcb_sriov() [all …]
|
D | ixgbe_ptp.c | 160 static void ixgbe_ptp_setup_sdp_X540(struct ixgbe_adapter *adapter) in ixgbe_ptp_setup_sdp_X540() argument 162 struct cyclecounter *cc = &adapter->hw_cc; in ixgbe_ptp_setup_sdp_X540() 163 struct ixgbe_hw *hw = &adapter->hw; in ixgbe_ptp_setup_sdp_X540() 172 if (!(adapter->flags2 & IXGBE_FLAG2_PTP_PPS_ENABLED)) in ixgbe_ptp_setup_sdp_X540() 198 spin_lock_irqsave(&adapter->tmreg_lock, flags); in ixgbe_ptp_setup_sdp_X540() 199 ns = timecounter_read(&adapter->hw_tc); in ixgbe_ptp_setup_sdp_X540() 200 clock_edge = adapter->hw_tc.cycle_last; in ixgbe_ptp_setup_sdp_X540() 201 spin_unlock_irqrestore(&adapter->tmreg_lock, flags); in ixgbe_ptp_setup_sdp_X540() 239 static void ixgbe_ptp_setup_sdp_X550(struct ixgbe_adapter *adapter) in ixgbe_ptp_setup_sdp_X550() argument 242 struct cyclecounter *cc = &adapter->hw_cc; in ixgbe_ptp_setup_sdp_X550() [all …]
|
/linux-6.6.21/drivers/net/ethernet/qlogic/netxen/ |
D | netxen_nic_main.c | 54 static void netxen_schedule_work(struct netxen_adapter *adapter, 56 static void netxen_cancel_fw_work(struct netxen_adapter *adapter); 59 static void netxen_create_sysfs_entries(struct netxen_adapter *adapter); 60 static void netxen_remove_sysfs_entries(struct netxen_adapter *adapter); 61 static void netxen_create_diag_entries(struct netxen_adapter *adapter); 62 static void netxen_remove_diag_entries(struct netxen_adapter *adapter); 63 static int nx_dev_request_aer(struct netxen_adapter *adapter); 64 static int nx_decr_dev_ref_cnt(struct netxen_adapter *adapter); 65 static int netxen_can_start_firmware(struct netxen_adapter *adapter); 102 netxen_nic_update_cmd_producer(struct netxen_adapter *adapter, in netxen_nic_update_cmd_producer() argument [all …]
|
/linux-6.6.21/drivers/net/ethernet/emulex/benet/ |
D | be_main.c | 144 static void be_queue_free(struct be_adapter *adapter, struct be_queue_info *q) in be_queue_free() argument 149 dma_free_coherent(&adapter->pdev->dev, mem->size, mem->va, in be_queue_free() 155 static int be_queue_alloc(struct be_adapter *adapter, struct be_queue_info *q, in be_queue_alloc() argument 164 mem->va = dma_alloc_coherent(&adapter->pdev->dev, mem->size, in be_queue_alloc() 171 static void be_reg_intr_set(struct be_adapter *adapter, bool enable) in be_reg_intr_set() argument 175 pci_read_config_dword(adapter->pdev, PCICFG_MEMBAR_CTRL_INT_CTRL_OFFSET, in be_reg_intr_set() 186 pci_write_config_dword(adapter->pdev, in be_reg_intr_set() 190 static void be_intr_set(struct be_adapter *adapter, bool enable) in be_intr_set() argument 195 if (lancer_chip(adapter)) in be_intr_set() 198 if (be_check_error(adapter, BE_ERROR_EEH)) in be_intr_set() [all …]
|
/linux-6.6.21/drivers/s390/scsi/ |
D | zfcp_aux.c | 61 struct zfcp_adapter *adapter; in zfcp_init_device_configure() local 71 adapter = zfcp_ccw_adapter_by_cdev(cdev); in zfcp_init_device_configure() 72 if (!adapter) in zfcp_init_device_configure() 75 port = zfcp_get_port_by_wwpn(adapter, wwpn); in zfcp_init_device_configure() 84 zfcp_ccw_adapter_put(adapter); in zfcp_init_device_configure() 189 struct zfcp_port *zfcp_get_port_by_wwpn(struct zfcp_adapter *adapter, in zfcp_get_port_by_wwpn() argument 195 read_lock_irqsave(&adapter->port_list_lock, flags); in zfcp_get_port_by_wwpn() 196 list_for_each_entry(port, &adapter->port_list, list) in zfcp_get_port_by_wwpn() 200 read_unlock_irqrestore(&adapter->port_list_lock, flags); in zfcp_get_port_by_wwpn() 203 read_unlock_irqrestore(&adapter->port_list_lock, flags); in zfcp_get_port_by_wwpn() [all …]
|
/linux-6.6.21/drivers/net/ethernet/chelsio/cxgb/ |
D | subr.c | 52 static int t1_wait_op_done(adapter_t *adapter, int reg, u32 mask, int polarity, in t1_wait_op_done() argument 56 u32 val = readl(adapter->regs + reg) & mask; in t1_wait_op_done() 72 int __t1_tpi_write(adapter_t *adapter, u32 addr, u32 value) in __t1_tpi_write() argument 76 writel(addr, adapter->regs + A_TPI_ADDR); in __t1_tpi_write() 77 writel(value, adapter->regs + A_TPI_WR_DATA); in __t1_tpi_write() 78 writel(F_TPIWR, adapter->regs + A_TPI_CSR); in __t1_tpi_write() 80 tpi_busy = t1_wait_op_done(adapter, A_TPI_CSR, F_TPIRDY, 1, in __t1_tpi_write() 84 adapter->name, addr); in __t1_tpi_write() 88 int t1_tpi_write(adapter_t *adapter, u32 addr, u32 value) in t1_tpi_write() argument 92 spin_lock(&adapter->tpi_lock); in t1_tpi_write() [all …]
|
D | espi.c | 35 adapter_t *adapter; member 51 static int tricn_write(adapter_t *adapter, int bundle_addr, int module_addr, in tricn_write() argument 61 adapter->regs + A_ESPI_CMD_ADDR); in tricn_write() 62 writel(0, adapter->regs + A_ESPI_GOSTAT); in tricn_write() 65 busy = readl(adapter->regs + A_ESPI_GOSTAT) & F_ESPI_CMD_BUSY; in tricn_write() 69 pr_err("%s: TRICN write timed out\n", adapter->name); in tricn_write() 74 static int tricn_init(adapter_t *adapter) in tricn_init() argument 78 if (!(readl(adapter->regs + A_ESPI_RX_RESET) & F_RX_CLK_STATUS)) { in tricn_init() 79 pr_err("%s: ESPI clock not ready\n", adapter->name); in tricn_init() 83 writel(F_ESPI_RX_CORE_RST, adapter->regs + A_ESPI_RX_RESET); in tricn_init() [all …]
|
/linux-6.6.21/drivers/net/ethernet/micrel/ |
D | ks8842.c | 147 #define KS8842_USE_DMA(adapter) (((adapter)->dma_tx.channel != -1) && \ argument 148 ((adapter)->dma_rx.channel != -1)) 166 static inline void ks8842_resume_dma(struct ks8842_adapter *adapter) in ks8842_resume_dma() argument 168 iowrite32(1, adapter->hw_addr + REQ_TIMB_DMA_RESUME); in ks8842_resume_dma() 171 static inline void ks8842_select_bank(struct ks8842_adapter *adapter, u16 bank) in ks8842_select_bank() argument 173 iowrite16(bank, adapter->hw_addr + REG_SELECT_BANK); in ks8842_select_bank() 176 static inline void ks8842_write8(struct ks8842_adapter *adapter, u16 bank, in ks8842_write8() argument 179 ks8842_select_bank(adapter, bank); in ks8842_write8() 180 iowrite8(value, adapter->hw_addr + offset); in ks8842_write8() 183 static inline void ks8842_write16(struct ks8842_adapter *adapter, u16 bank, in ks8842_write16() argument [all …]
|
/linux-6.6.21/drivers/staging/rtl8723bs/include/ |
D | hal_intf.h | 165 u32 (*hal_power_on)(struct adapter *padapter); 166 void (*hal_power_off)(struct adapter *padapter); 167 u32 (*hal_init)(struct adapter *padapter); 168 u32 (*hal_deinit)(struct adapter *padapter); 170 void (*free_hal_data)(struct adapter *padapter); 172 u32 (*inirp_init)(struct adapter *padapter); 173 u32 (*inirp_deinit)(struct adapter *padapter); 174 void (*irp_reset)(struct adapter *padapter); 176 s32 (*init_xmit_priv)(struct adapter *padapter); 177 void (*free_xmit_priv)(struct adapter *padapter); [all …]
|
/linux-6.6.21/drivers/net/vmxnet3/ |
D | vmxnet3_drv.c | 50 vmxnet3_write_mac_addr(struct vmxnet3_adapter *adapter, const u8 *mac); 56 vmxnet3_enable_intr(struct vmxnet3_adapter *adapter, unsigned intr_idx) in vmxnet3_enable_intr() argument 58 VMXNET3_WRITE_BAR0_REG(adapter, VMXNET3_REG_IMR + intr_idx * 8, 0); in vmxnet3_enable_intr() 63 vmxnet3_disable_intr(struct vmxnet3_adapter *adapter, unsigned intr_idx) in vmxnet3_disable_intr() argument 65 VMXNET3_WRITE_BAR0_REG(adapter, VMXNET3_REG_IMR + intr_idx * 8, 1); in vmxnet3_disable_intr() 73 vmxnet3_enable_all_intrs(struct vmxnet3_adapter *adapter) in vmxnet3_enable_all_intrs() argument 77 for (i = 0; i < adapter->intr.num_intrs; i++) in vmxnet3_enable_all_intrs() 78 vmxnet3_enable_intr(adapter, i); in vmxnet3_enable_all_intrs() 79 if (!VMXNET3_VERSION_GE_6(adapter) || in vmxnet3_enable_all_intrs() 80 !adapter->queuesExtEnabled) { in vmxnet3_enable_all_intrs() [all …]
|
/linux-6.6.21/drivers/net/ethernet/chelsio/cxgb3/ |
D | t3_hw.c | 38 static void t3_port_intr_clear(struct adapter *adapter, int idx); 56 int t3_wait_op_done_val(struct adapter *adapter, int reg, u32 mask, in t3_wait_op_done_val() argument 60 u32 val = t3_read_reg(adapter, reg); in t3_wait_op_done_val() 85 void t3_write_regs(struct adapter *adapter, const struct addr_val_pair *p, in t3_write_regs() argument 89 t3_write_reg(adapter, p->reg_addr + offset, p->val); in t3_write_regs() 104 void t3_set_reg_field(struct adapter *adapter, unsigned int addr, u32 mask, in t3_set_reg_field() argument 107 u32 v = t3_read_reg(adapter, addr) & ~mask; in t3_set_reg_field() 109 t3_write_reg(adapter, addr, v | val); in t3_set_reg_field() 110 t3_read_reg(adapter, addr); /* flush */ in t3_set_reg_field() 125 static void t3_read_indirect(struct adapter *adap, unsigned int addr_reg, in t3_read_indirect() [all …]
|
/linux-6.6.21/drivers/net/ethernet/intel/igbvf/ |
D | netdev.c | 83 static void igbvf_receive_skb(struct igbvf_adapter *adapter, in igbvf_receive_skb() argument 91 if ((adapter->flags & IGBVF_FLAG_RX_LB_VLAN_BSWAP) && in igbvf_receive_skb() 96 if (test_bit(vid, adapter->active_vlans)) in igbvf_receive_skb() 100 napi_gro_receive(&adapter->rx_ring->napi, skb); in igbvf_receive_skb() 103 static inline void igbvf_rx_checksum_adv(struct igbvf_adapter *adapter, in igbvf_rx_checksum_adv() argument 110 (adapter->flags & IGBVF_FLAG_RX_CSUM_DISABLED)) in igbvf_rx_checksum_adv() 117 adapter->hw_csum_err++; in igbvf_rx_checksum_adv() 125 adapter->hw_csum_good++; in igbvf_rx_checksum_adv() 136 struct igbvf_adapter *adapter = rx_ring->adapter; in igbvf_alloc_rx_buffers() local 137 struct net_device *netdev = adapter->netdev; in igbvf_alloc_rx_buffers() [all …]
|