/drivers/net/wireless/marvell/mwifiex/ |
D | main.c | 63 struct mwifiex_adapter *adapter; in mwifiex_register() local 66 adapter = kzalloc(sizeof(struct mwifiex_adapter), GFP_KERNEL); in mwifiex_register() 67 if (!adapter) in mwifiex_register() 70 *padapter = adapter; in mwifiex_register() 71 adapter->card = card; in mwifiex_register() 74 memmove(&adapter->if_ops, if_ops, sizeof(struct mwifiex_if_ops)); in mwifiex_register() 75 adapter->debug_mask = debug_mask; in mwifiex_register() 78 if (adapter->if_ops.init_if) in mwifiex_register() 79 if (adapter->if_ops.init_if(adapter)) in mwifiex_register() 82 adapter->priv_num = 0; in mwifiex_register() [all …]
|
D | cmdevt.c | 58 mwifiex_get_cmd_node(struct mwifiex_adapter *adapter) in mwifiex_get_cmd_node() argument 63 spin_lock_irqsave(&adapter->cmd_free_q_lock, flags); in mwifiex_get_cmd_node() 64 if (list_empty(&adapter->cmd_free_q)) { in mwifiex_get_cmd_node() 65 mwifiex_dbg(adapter, ERROR, in mwifiex_get_cmd_node() 67 spin_unlock_irqrestore(&adapter->cmd_free_q_lock, flags); in mwifiex_get_cmd_node() 70 cmd_node = list_first_entry(&adapter->cmd_free_q, in mwifiex_get_cmd_node() 73 spin_unlock_irqrestore(&adapter->cmd_free_q_lock, flags); in mwifiex_get_cmd_node() 90 mwifiex_clean_cmd_node(struct mwifiex_adapter *adapter, in mwifiex_clean_cmd_node() argument 102 adapter->if_ops.cmdrsp_complete(adapter, cmd_node->resp_skb); in mwifiex_clean_cmd_node() 114 mwifiex_insert_cmd_to_free_q(struct mwifiex_adapter *adapter, in mwifiex_insert_cmd_to_free_q() argument [all …]
|
D | init.c | 36 struct mwifiex_adapter *adapter = priv->adapter; in mwifiex_add_bss_prio_tbl() local 38 struct mwifiex_bss_prio_tbl *tbl = adapter->bss_prio_tbl; in mwifiex_add_bss_prio_tbl() 57 struct mwifiex_adapter *adapter = (struct mwifiex_adapter *)data; in wakeup_timer_fn() local 59 mwifiex_dbg(adapter, ERROR, "Firmware wakeup failed\n"); in wakeup_timer_fn() 60 adapter->hw_status = MWIFIEX_HW_STATUS_RESET; in wakeup_timer_fn() 61 mwifiex_cancel_all_pending_cmd(adapter); in wakeup_timer_fn() 63 if (adapter->if_ops.card_reset && !adapter->hs_activated) in wakeup_timer_fn() 64 adapter->if_ops.card_reset(adapter); in wakeup_timer_fn() 171 static int mwifiex_allocate_adapter(struct mwifiex_adapter *adapter) in mwifiex_allocate_adapter() argument 176 ret = mwifiex_alloc_cmd_buffer(adapter); in mwifiex_allocate_adapter() [all …]
|
D | pcie.c | 41 mwifiex_map_pci_memory(struct mwifiex_adapter *adapter, struct sk_buff *skb, in mwifiex_map_pci_memory() argument 44 struct pcie_service_card *card = adapter->card; in mwifiex_map_pci_memory() 49 mwifiex_dbg(adapter, ERROR, "failed to map pci memory!\n"); in mwifiex_map_pci_memory() 57 static void mwifiex_unmap_pci_memory(struct mwifiex_adapter *adapter, in mwifiex_unmap_pci_memory() argument 60 struct pcie_service_card *card = adapter->card; in mwifiex_unmap_pci_memory() 70 static bool mwifiex_pcie_ok_to_access_hw(struct mwifiex_adapter *adapter) in mwifiex_pcie_ok_to_access_hw() argument 73 struct pcie_service_card *card = adapter->card; in mwifiex_pcie_ok_to_access_hw() 81 mwifiex_dbg(adapter, INFO, in mwifiex_pcie_ok_to_access_hw() 102 struct mwifiex_adapter *adapter; in mwifiex_pcie_suspend() local 109 if (!card || !card->adapter) { in mwifiex_pcie_suspend() [all …]
|
/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_main.c | 66 static void qlcnic_idc_debug_info(struct qlcnic_adapter *adapter, u8 encoding); 67 static int qlcnic_can_start_firmware(struct qlcnic_adapter *adapter); 78 static void qlcnic_free_lb_filters_mem(struct qlcnic_adapter *adapter); 93 static u32 qlcnic_vlan_tx_check(struct qlcnic_adapter *adapter) in qlcnic_vlan_tx_check() argument 95 struct qlcnic_hardware_context *ahw = adapter->ahw; in qlcnic_vlan_tx_check() 97 if (adapter->pdev->device == PCI_DEVICE_ID_QLOGIC_QLE824X) in qlcnic_vlan_tx_check() 299 int qlcnic_read_mac_addr(struct qlcnic_adapter *adapter) in qlcnic_read_mac_addr() argument 301 struct net_device *netdev = adapter->netdev; in qlcnic_read_mac_addr() 302 struct pci_dev *pdev = adapter->pdev; in qlcnic_read_mac_addr() 306 ret = qlcnic_get_mac_address(adapter, mac_addr, in qlcnic_read_mac_addr() [all …]
|
D | qlcnic_83xx_init.c | 39 static int qlcnic_83xx_init_default_driver(struct qlcnic_adapter *adapter); 41 static int qlcnic_83xx_restart_hw(struct qlcnic_adapter *adapter); 133 qlcnic_83xx_idc_check_driver_presence_reg(struct qlcnic_adapter *adapter) in qlcnic_83xx_idc_check_driver_presence_reg() argument 137 val = QLCRDX(adapter->ahw, QLC_83XX_IDC_DRV_PRESENCE); in qlcnic_83xx_idc_check_driver_presence_reg() 144 static void qlcnic_83xx_idc_log_state_history(struct qlcnic_adapter *adapter) in qlcnic_83xx_idc_log_state_history() argument 147 cur = adapter->ahw->idc.curr_state; in qlcnic_83xx_idc_log_state_history() 148 prev = adapter->ahw->idc.prev_state; in qlcnic_83xx_idc_log_state_history() 150 dev_info(&adapter->pdev->dev, in qlcnic_83xx_idc_log_state_history() 152 adapter->ahw->idc.name[cur], in qlcnic_83xx_idc_log_state_history() 153 adapter->ahw->idc.name[prev]); in qlcnic_83xx_idc_log_state_history() [all …]
|
/drivers/net/ethernet/intel/i40evf/ |
D | i40evf_main.c | 29 static int i40evf_setup_all_tx_resources(struct i40evf_adapter *adapter); 30 static int i40evf_setup_all_rx_resources(struct i40evf_adapter *adapter); 87 struct i40evf_adapter *adapter = (struct i40evf_adapter *)hw->back; in i40evf_allocate_dma_mem_d() local 93 mem->va = dma_alloc_coherent(&adapter->pdev->dev, mem->size, in i40evf_allocate_dma_mem_d() 108 struct i40evf_adapter *adapter = (struct i40evf_adapter *)hw->back; in i40evf_free_dma_mem_d() local 112 dma_free_coherent(&adapter->pdev->dev, mem->size, in i40evf_free_dma_mem_d() 181 void i40evf_schedule_reset(struct i40evf_adapter *adapter) in i40evf_schedule_reset() argument 183 if (!(adapter->flags & in i40evf_schedule_reset() 185 adapter->flags |= I40EVF_FLAG_RESET_NEEDED; in i40evf_schedule_reset() 186 schedule_work(&adapter->reset_task); in i40evf_schedule_reset() [all …]
|
D | i40evf_virtchnl.c | 43 static int i40evf_send_pf_msg(struct i40evf_adapter *adapter, in i40evf_send_pf_msg() argument 46 struct i40e_hw *hw = &adapter->hw; in i40evf_send_pf_msg() 49 if (adapter->flags & I40EVF_FLAG_PF_COMMS_FAILED) in i40evf_send_pf_msg() 54 dev_err(&adapter->pdev->dev, "Unable to send opcode %d to PF, err %s, aq_err %s\n", in i40evf_send_pf_msg() 68 int i40evf_send_api_ver(struct i40evf_adapter *adapter) in i40evf_send_api_ver() argument 75 return i40evf_send_pf_msg(adapter, I40E_VIRTCHNL_OP_VERSION, (u8 *)&vvi, in i40evf_send_api_ver() 88 int i40evf_verify_api_ver(struct i40evf_adapter *adapter) in i40evf_verify_api_ver() argument 91 struct i40e_hw *hw = &adapter->hw; in i40evf_verify_api_ver() 122 dev_info(&adapter->pdev->dev, "Invalid reply type %d from PF\n", in i40evf_verify_api_ver() 129 adapter->pf_version = *pf_vvi; in i40evf_verify_api_ver() [all …]
|
/drivers/staging/slicoss/ |
D | slicoss.c | 131 static void slic_mcast_set_bit(struct adapter *adapter, char *address) in slic_mcast_set_bit() argument 149 adapter->mcastmask |= (u64)1 << crcpoly; in slic_mcast_set_bit() 152 static void slic_mcast_set_mask(struct adapter *adapter) in slic_mcast_set_mask() argument 154 if (adapter->macopts & (MAC_ALLMCAST | MAC_PROMISC)) { in slic_mcast_set_mask() 161 slic_write32(adapter, SLIC_REG_MCASTLOW, 0xFFFFFFFF); in slic_mcast_set_mask() 162 slic_write32(adapter, SLIC_REG_MCASTHIGH, 0xFFFFFFFF); in slic_mcast_set_mask() 168 slic_write32(adapter, SLIC_REG_MCASTLOW, in slic_mcast_set_mask() 169 (u32)(adapter->mcastmask & 0xFFFFFFFF)); in slic_mcast_set_mask() 170 slic_write32(adapter, SLIC_REG_MCASTHIGH, in slic_mcast_set_mask() 171 (u32)((adapter->mcastmask >> 32) & 0xFFFFFFFF)); in slic_mcast_set_mask() [all …]
|
/drivers/net/ethernet/qlogic/netxen/ |
D | netxen_nic_main.c | 71 static void netxen_schedule_work(struct netxen_adapter *adapter, 73 static void netxen_cancel_fw_work(struct netxen_adapter *adapter); 79 static void netxen_create_sysfs_entries(struct netxen_adapter *adapter); 80 static void netxen_remove_sysfs_entries(struct netxen_adapter *adapter); 81 static void netxen_create_diag_entries(struct netxen_adapter *adapter); 82 static void netxen_remove_diag_entries(struct netxen_adapter *adapter); 83 static int nx_dev_request_aer(struct netxen_adapter *adapter); 84 static int nx_decr_dev_ref_cnt(struct netxen_adapter *adapter); 85 static int netxen_can_start_firmware(struct netxen_adapter *adapter); 122 netxen_nic_update_cmd_producer(struct netxen_adapter *adapter, in netxen_nic_update_cmd_producer() argument [all …]
|
/drivers/scsi/ |
D | BusLogic.c | 141 static void blogic_announce_drvr(struct blogic_adapter *adapter) in blogic_announce_drvr() argument 143 …** BusLogic SCSI Driver Version " blogic_drvr_version " of " blogic_drvr_date " *****\n", adapter); in blogic_announce_drvr() 144 blogic_announce("Copyright 1995-1998 by Leonard N. Zubkoff " "<lnz@dandelion.com>\n", adapter); in blogic_announce_drvr() 155 struct blogic_adapter *adapter = in blogic_drvr_info() local 157 return adapter->full_model; in blogic_drvr_info() 166 static void blogic_init_ccbs(struct blogic_adapter *adapter, void *blk_pointer, in blogic_init_ccbs() argument 176 ccb->adapter = adapter; in blogic_init_ccbs() 178 if (blogic_flashpoint_type(adapter)) { in blogic_init_ccbs() 180 ccb->base_addr = adapter->fpinfo.base_addr; in blogic_init_ccbs() 182 ccb->next = adapter->free_ccbs; in blogic_init_ccbs() [all …]
|
D | vmw_pvscsi.c | 154 pvscsi_dev(const struct pvscsi_adapter *adapter) in pvscsi_dev() argument 156 return &(adapter->dev->dev); in pvscsi_dev() 160 pvscsi_find_context(const struct pvscsi_adapter *adapter, struct scsi_cmnd *cmd) in pvscsi_find_context() argument 164 end = &adapter->cmd_map[adapter->req_depth]; in pvscsi_find_context() 165 for (ctx = adapter->cmd_map; ctx < end; ctx++) in pvscsi_find_context() 173 pvscsi_acquire_context(struct pvscsi_adapter *adapter, struct scsi_cmnd *cmd) in pvscsi_acquire_context() argument 177 if (list_empty(&adapter->cmd_pool)) in pvscsi_acquire_context() 180 ctx = list_first_entry(&adapter->cmd_pool, struct pvscsi_ctx, list); in pvscsi_acquire_context() 187 static void pvscsi_release_context(struct pvscsi_adapter *adapter, in pvscsi_release_context() argument 192 list_add(&ctx->list, &adapter->cmd_pool); in pvscsi_release_context() [all …]
|
/drivers/net/ethernet/chelsio/cxgb/ |
D | subr.c | 61 static int t1_wait_op_done(adapter_t *adapter, int reg, u32 mask, int polarity, in t1_wait_op_done() argument 65 u32 val = readl(adapter->regs + reg) & mask; in t1_wait_op_done() 81 int __t1_tpi_write(adapter_t *adapter, u32 addr, u32 value) in __t1_tpi_write() argument 85 writel(addr, adapter->regs + A_TPI_ADDR); in __t1_tpi_write() 86 writel(value, adapter->regs + A_TPI_WR_DATA); in __t1_tpi_write() 87 writel(F_TPIWR, adapter->regs + A_TPI_CSR); in __t1_tpi_write() 89 tpi_busy = t1_wait_op_done(adapter, A_TPI_CSR, F_TPIRDY, 1, in __t1_tpi_write() 93 adapter->name, addr); in __t1_tpi_write() 97 int t1_tpi_write(adapter_t *adapter, u32 addr, u32 value) in t1_tpi_write() argument 101 spin_lock(&adapter->tpi_lock); in t1_tpi_write() [all …]
|
D | espi.c | 44 adapter_t *adapter; member 60 static int tricn_write(adapter_t *adapter, int bundle_addr, int module_addr, in tricn_write() argument 70 adapter->regs + A_ESPI_CMD_ADDR); in tricn_write() 71 writel(0, adapter->regs + A_ESPI_GOSTAT); in tricn_write() 74 busy = readl(adapter->regs + A_ESPI_GOSTAT) & F_ESPI_CMD_BUSY; in tricn_write() 78 pr_err("%s: TRICN write timed out\n", adapter->name); in tricn_write() 83 static int tricn_init(adapter_t *adapter) in tricn_init() argument 87 if (!(readl(adapter->regs + A_ESPI_RX_RESET) & F_RX_CLK_STATUS)) { in tricn_init() 88 pr_err("%s: ESPI clock not ready\n", adapter->name); in tricn_init() 92 writel(F_ESPI_RX_CORE_RST, adapter->regs + A_ESPI_RX_RESET); in tricn_init() [all …]
|
/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ptp.c | 179 static void ixgbe_ptp_setup_sdp_x540(struct ixgbe_adapter *adapter) in ixgbe_ptp_setup_sdp_x540() argument 181 struct ixgbe_hw *hw = &adapter->hw; in ixgbe_ptp_setup_sdp_x540() 182 int shift = adapter->hw_cc.shift; in ixgbe_ptp_setup_sdp_x540() 190 if (!(adapter->flags2 & IXGBE_FLAG2_PTP_PPS_ENABLED)) in ixgbe_ptp_setup_sdp_x540() 218 ns = timecounter_cyc2time(&adapter->hw_tc, clock_edge); in ixgbe_ptp_setup_sdp_x540() 250 struct ixgbe_adapter *adapter = in ixgbe_ptp_read_X550() local 252 struct ixgbe_hw *hw = &adapter->hw; in ixgbe_ptp_read_X550() 287 struct ixgbe_adapter *adapter = in ixgbe_ptp_read_82599() local 289 struct ixgbe_hw *hw = &adapter->hw; in ixgbe_ptp_read_82599() 315 static void ixgbe_ptp_convert_to_hwtstamp(struct ixgbe_adapter *adapter, in ixgbe_ptp_convert_to_hwtstamp() argument [all …]
|
D | ixgbe_lib.c | 42 static bool ixgbe_cache_ring_dcb_sriov(struct ixgbe_adapter *adapter) in ixgbe_cache_ring_dcb_sriov() argument 45 struct ixgbe_ring_feature *fcoe = &adapter->ring_feature[RING_F_FCOE]; in ixgbe_cache_ring_dcb_sriov() 47 struct ixgbe_ring_feature *vmdq = &adapter->ring_feature[RING_F_VMDQ]; in ixgbe_cache_ring_dcb_sriov() 50 u8 tcs = netdev_get_num_tc(adapter->netdev); in ixgbe_cache_ring_dcb_sriov() 57 if (!(adapter->flags & IXGBE_FLAG_SRIOV_ENABLED)) in ixgbe_cache_ring_dcb_sriov() 62 for (i = 0; i < adapter->num_rx_queues; i++, reg_idx++) { in ixgbe_cache_ring_dcb_sriov() 66 adapter->rx_ring[i]->reg_idx = reg_idx; in ixgbe_cache_ring_dcb_sriov() 70 for (i = 0; i < adapter->num_tx_queues; i++, reg_idx++) { in ixgbe_cache_ring_dcb_sriov() 74 adapter->tx_ring[i]->reg_idx = reg_idx; in ixgbe_cache_ring_dcb_sriov() 79 if (!(adapter->flags & IXGBE_FLAG_FCOE_ENABLED)) in ixgbe_cache_ring_dcb_sriov() [all …]
|
D | ixgbe_sriov.c | 49 static int __ixgbe_enable_sriov(struct ixgbe_adapter *adapter) in __ixgbe_enable_sriov() argument 51 struct ixgbe_hw *hw = &adapter->hw; in __ixgbe_enable_sriov() 55 adapter->flags |= IXGBE_FLAG_SRIOV_ENABLED; in __ixgbe_enable_sriov() 56 e_info(probe, "SR-IOV enabled with %d VFs\n", adapter->num_vfs); in __ixgbe_enable_sriov() 59 adapter->flags |= IXGBE_FLAG_VMDQ_ENABLED; in __ixgbe_enable_sriov() 60 if (!adapter->ring_feature[RING_F_VMDQ].limit) in __ixgbe_enable_sriov() 61 adapter->ring_feature[RING_F_VMDQ].limit = 1; in __ixgbe_enable_sriov() 62 adapter->ring_feature[RING_F_VMDQ].offset = adapter->num_vfs; in __ixgbe_enable_sriov() 65 (IXGBE_MAX_PF_MACVLANS + 1 + adapter->num_vfs); in __ixgbe_enable_sriov() 67 adapter->mv_list = mv_list = kcalloc(num_vf_macvlans, in __ixgbe_enable_sriov() [all …]
|
/drivers/net/ethernet/emulex/benet/ |
D | be_main.c | 142 static void be_queue_free(struct be_adapter *adapter, struct be_queue_info *q) in be_queue_free() argument 147 dma_free_coherent(&adapter->pdev->dev, mem->size, mem->va, in be_queue_free() 153 static int be_queue_alloc(struct be_adapter *adapter, struct be_queue_info *q, in be_queue_alloc() argument 162 mem->va = dma_zalloc_coherent(&adapter->pdev->dev, mem->size, &mem->dma, in be_queue_alloc() 169 static void be_reg_intr_set(struct be_adapter *adapter, bool enable) in be_reg_intr_set() argument 173 pci_read_config_dword(adapter->pdev, PCICFG_MEMBAR_CTRL_INT_CTRL_OFFSET, in be_reg_intr_set() 184 pci_write_config_dword(adapter->pdev, in be_reg_intr_set() 188 static void be_intr_set(struct be_adapter *adapter, bool enable) in be_intr_set() argument 193 if (lancer_chip(adapter)) in be_intr_set() 196 if (be_check_error(adapter, BE_ERROR_EEH)) in be_intr_set() [all …]
|
/drivers/s390/scsi/ |
D | zfcp_aux.c | 59 struct zfcp_adapter *adapter; in zfcp_init_device_configure() local 69 adapter = zfcp_ccw_adapter_by_cdev(cdev); in zfcp_init_device_configure() 70 if (!adapter) in zfcp_init_device_configure() 73 port = zfcp_get_port_by_wwpn(adapter, wwpn); in zfcp_init_device_configure() 82 zfcp_ccw_adapter_put(adapter); in zfcp_init_device_configure() 184 struct zfcp_port *zfcp_get_port_by_wwpn(struct zfcp_adapter *adapter, in zfcp_get_port_by_wwpn() argument 190 read_lock_irqsave(&adapter->port_list_lock, flags); in zfcp_get_port_by_wwpn() 191 list_for_each_entry(port, &adapter->port_list, list) in zfcp_get_port_by_wwpn() 195 read_unlock_irqrestore(&adapter->port_list_lock, flags); in zfcp_get_port_by_wwpn() 198 read_unlock_irqrestore(&adapter->port_list_lock, flags); in zfcp_get_port_by_wwpn() [all …]
|
/drivers/net/ethernet/intel/ixgb/ |
D | ixgb_main.c | 77 static int ixgb_sw_init(struct ixgb_adapter *adapter); 80 static void ixgb_configure_tx(struct ixgb_adapter *adapter); 81 static void ixgb_configure_rx(struct ixgb_adapter *adapter); 82 static void ixgb_setup_rctl(struct ixgb_adapter *adapter); 83 static void ixgb_clean_tx_ring(struct ixgb_adapter *adapter); 84 static void ixgb_clean_rx_ring(struct ixgb_adapter *adapter); 93 static bool ixgb_clean_tx_irq(struct ixgb_adapter *adapter); 102 static void ixgb_vlan_strip_enable(struct ixgb_adapter *adapter); 103 static void ixgb_vlan_strip_disable(struct ixgb_adapter *adapter); 108 static void ixgb_restore_vlan(struct ixgb_adapter *adapter); [all …]
|
/drivers/isdn/hisax/ |
D | hisax_fcpcipnp.c | 155 struct fritz_adapter *adapter = isac->priv; in fcpci_read_isac() local 161 spin_lock_irqsave(&adapter->hw_lock, flags); in fcpci_read_isac() 162 outb(idx, adapter->io + AVM_INDEX); in fcpci_read_isac() 163 val = inb(adapter->io + AVM_DATA + (offset & 0xf)); in fcpci_read_isac() 164 spin_unlock_irqrestore(&adapter->hw_lock, flags); in fcpci_read_isac() 173 struct fritz_adapter *adapter = isac->priv; in fcpci_write_isac() local 180 spin_lock_irqsave(&adapter->hw_lock, flags); in fcpci_write_isac() 181 outb(idx, adapter->io + AVM_INDEX); in fcpci_write_isac() 182 outb(value, adapter->io + AVM_DATA + (offset & 0xf)); in fcpci_write_isac() 183 spin_unlock_irqrestore(&adapter->hw_lock, flags); in fcpci_write_isac() [all …]
|
/drivers/net/ethernet/ibm/ |
D | ibmvnic.c | 97 static int send_subcrq(struct ibmvnic_adapter *adapter, u64 remote_handle, 110 static void send_map_query(struct ibmvnic_adapter *adapter); 164 static void init_rx_pool(struct ibmvnic_adapter *adapter, in init_rx_pool() argument 168 netdev_dbg(adapter->netdev, in init_rx_pool() 177 static int alloc_long_term_buff(struct ibmvnic_adapter *adapter, in alloc_long_term_buff() argument 180 struct device *dev = &adapter->vdev->dev; in alloc_long_term_buff() 190 ltb->map_id = adapter->map_id; in alloc_long_term_buff() 191 adapter->map_id++; in alloc_long_term_buff() 193 init_completion(&adapter->fw_done); in alloc_long_term_buff() 194 send_request_map(adapter, ltb->addr, in alloc_long_term_buff() [all …]
|
/drivers/net/ethernet/micrel/ |
D | ks8842.c | 159 #define KS8842_USE_DMA(adapter) (((adapter)->dma_tx.channel != -1) && \ argument 160 ((adapter)->dma_rx.channel != -1)) 178 static inline void ks8842_resume_dma(struct ks8842_adapter *adapter) in ks8842_resume_dma() argument 180 iowrite32(1, adapter->hw_addr + REQ_TIMB_DMA_RESUME); in ks8842_resume_dma() 183 static inline void ks8842_select_bank(struct ks8842_adapter *adapter, u16 bank) in ks8842_select_bank() argument 185 iowrite16(bank, adapter->hw_addr + REG_SELECT_BANK); in ks8842_select_bank() 188 static inline void ks8842_write8(struct ks8842_adapter *adapter, u16 bank, in ks8842_write8() argument 191 ks8842_select_bank(adapter, bank); in ks8842_write8() 192 iowrite8(value, adapter->hw_addr + offset); in ks8842_write8() 195 static inline void ks8842_write16(struct ks8842_adapter *adapter, u16 bank, in ks8842_write16() argument [all …]
|
/drivers/net/ethernet/intel/igbvf/ |
D | netdev.c | 106 static void igbvf_receive_skb(struct igbvf_adapter *adapter, in igbvf_receive_skb() argument 114 if ((adapter->flags & IGBVF_FLAG_RX_LB_VLAN_BSWAP) && in igbvf_receive_skb() 119 if (test_bit(vid, adapter->active_vlans)) in igbvf_receive_skb() 123 napi_gro_receive(&adapter->rx_ring->napi, skb); in igbvf_receive_skb() 126 static inline void igbvf_rx_checksum_adv(struct igbvf_adapter *adapter, in igbvf_rx_checksum_adv() argument 133 (adapter->flags & IGBVF_FLAG_RX_CSUM_DISABLED)) in igbvf_rx_checksum_adv() 140 adapter->hw_csum_err++; in igbvf_rx_checksum_adv() 148 adapter->hw_csum_good++; in igbvf_rx_checksum_adv() 159 struct igbvf_adapter *adapter = rx_ring->adapter; in igbvf_alloc_rx_buffers() local 160 struct net_device *netdev = adapter->netdev; in igbvf_alloc_rx_buffers() [all …]
|
/drivers/net/vmxnet3/ |
D | vmxnet3_drv.c | 49 vmxnet3_write_mac_addr(struct vmxnet3_adapter *adapter, u8 *mac); 55 vmxnet3_enable_intr(struct vmxnet3_adapter *adapter, unsigned intr_idx) in vmxnet3_enable_intr() argument 57 VMXNET3_WRITE_BAR0_REG(adapter, VMXNET3_REG_IMR + intr_idx * 8, 0); in vmxnet3_enable_intr() 62 vmxnet3_disable_intr(struct vmxnet3_adapter *adapter, unsigned intr_idx) in vmxnet3_disable_intr() argument 64 VMXNET3_WRITE_BAR0_REG(adapter, VMXNET3_REG_IMR + intr_idx * 8, 1); in vmxnet3_disable_intr() 72 vmxnet3_enable_all_intrs(struct vmxnet3_adapter *adapter) in vmxnet3_enable_all_intrs() argument 76 for (i = 0; i < adapter->intr.num_intrs; i++) in vmxnet3_enable_all_intrs() 77 vmxnet3_enable_intr(adapter, i); in vmxnet3_enable_all_intrs() 78 adapter->shared->devRead.intrConf.intrCtrl &= in vmxnet3_enable_all_intrs() 84 vmxnet3_disable_all_intrs(struct vmxnet3_adapter *adapter) in vmxnet3_disable_all_intrs() argument [all …]
|