Home
last modified time | relevance | path

Searched full:adapter (Results 1 – 25 of 2919) sorted by relevance

12345678910>>...117

/linux-6.12.1/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_main.c61 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()
160 "8400 series 10GbE Converged Network Adapter (TCP/IP Networking)" },
165 "8300 Series Dual Port 10GbE Converged Network Adapter "
171 "8300 Series Single Port 10GbE Converged Network Adapter "
177 "8300 Series Dual Port 10GbE Converged Network Adapter "
[all …]
Dqlcnic_83xx_init.c38 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 …]
Dqlcnic_83xx_vnic.c10 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 …]
Dqlcnic_83xx_hw.c267 int qlcnic_83xx_get_fw_version(struct qlcnic_adapter *adapter) in qlcnic_83xx_get_fw_version() argument
270 struct pci_dev *pdev = adapter->pdev; in qlcnic_83xx_get_fw_version()
272 fw_major = QLC_SHARED_REG_RD32(adapter, QLCNIC_FW_VERSION_MAJOR); in qlcnic_83xx_get_fw_version()
273 fw_minor = QLC_SHARED_REG_RD32(adapter, QLCNIC_FW_VERSION_MINOR); in qlcnic_83xx_get_fw_version()
274 fw_build = QLC_SHARED_REG_RD32(adapter, QLCNIC_FW_VERSION_SUB); in qlcnic_83xx_get_fw_version()
275 adapter->fw_version = QLCNIC_VERSION_CODE(fw_major, fw_minor, fw_build); in qlcnic_83xx_get_fw_version()
280 return adapter->fw_version; in qlcnic_83xx_get_fw_version()
283 static int __qlcnic_set_win_base(struct qlcnic_adapter *adapter, u32 addr) in __qlcnic_set_win_base() argument
288 base = adapter->ahw->pci_base0 + in __qlcnic_set_win_base()
289 QLC_83XX_CRB_WIN_FUNC(adapter->ahw->pci_func); in __qlcnic_set_win_base()
[all …]
/linux-6.12.1/drivers/net/wireless/marvell/mwifiex/
Dmain.c46 * - Allocate adapter structure
47 * - Save interface specific operations table in adapter
50 * - Set default adapter structure parameters
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()
70 /* Save interface specific operations in adapter */ in mwifiex_register()
[all …]
Dinit.c24 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 …]
Dcmdevt.c17 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 …]
/linux-6.12.1/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_main.c54 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.12.1/drivers/net/ethernet/intel/iavf/
Diavf_virtchnl.c11 * @adapter: adapter structure
18 static int iavf_send_pf_msg(struct iavf_adapter *adapter, in iavf_send_pf_msg() argument
21 struct iavf_hw *hw = &adapter->hw; in iavf_send_pf_msg()
24 if (adapter->flags & IAVF_FLAG_PF_COMMS_FAILED) in iavf_send_pf_msg()
29 dev_dbg(&adapter->pdev->dev, "Unable to send opcode %d to PF, status %s, aq_err %s\n", in iavf_send_pf_msg()
37 * @adapter: adapter structure
43 int iavf_send_api_ver(struct iavf_adapter *adapter) in iavf_send_api_ver() argument
50 return iavf_send_pf_msg(adapter, VIRTCHNL_OP_VERSION, (u8 *)&vvi, in iavf_send_api_ver()
91 * @adapter: adapter structure
98 int iavf_verify_api_ver(struct iavf_adapter *adapter) in iavf_verify_api_ver() argument
[all …]
Diavf_main.c15 static int iavf_setup_all_tx_resources(struct iavf_adapter *adapter);
16 static int iavf_setup_all_rx_resources(struct iavf_adapter *adapter);
18 static void iavf_init_get_resources(struct iavf_adapter *adapter);
163 * iavf_pdev_to_adapter - go from pci_dev to adapter
173 * @adapter: board private structure
175 static bool iavf_is_reset_in_progress(struct iavf_adapter *adapter) in iavf_is_reset_in_progress() argument
177 if (adapter->state == __IAVF_RESETTING || in iavf_is_reset_in_progress()
178 adapter->flags & (IAVF_FLAG_RESET_PENDING | in iavf_is_reset_in_progress()
187 * @adapter: board private structure
191 int iavf_wait_for_reset(struct iavf_adapter *adapter) in iavf_wait_for_reset() argument
[all …]
/linux-6.12.1/drivers/s390/scsi/
Dzfcp_aux.c61 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()
183 * zfcp_get_port_by_wwpn - find port in port list of adapter by wwpn
184 * @adapter: pointer to adapter to search for port
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()
[all …]
/linux-6.12.1/drivers/staging/rtl8723bs/include/
Dhal_intf.h165 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.12.1/drivers/net/ethernet/emulex/benet/
Dbe_main.c64 /* Workqueue used by all functions for defering cmd calls to the adapter */
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()
[all …]
/linux-6.12.1/drivers/net/ethernet/ibm/
Dibmvnic.c100 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.12.1/drivers/net/ethernet/microchip/
Dlan743x_main.c31 static void pci11x1x_strap_get_status(struct lan743x_adapter *adapter) in pci11x1x_strap_get_status() argument
40 ret = lan743x_hs_syslock_acquire(adapter, 100); in pci11x1x_strap_get_status()
42 netif_err(adapter, drv, adapter->netdev, in pci11x1x_strap_get_status()
47 cfg_load = lan743x_csr_read(adapter, ETH_SYS_CONFIG_LOAD_STARTED_REG); in pci11x1x_strap_get_status()
48 lan743x_hs_syslock_release(adapter); in pci11x1x_strap_get_status()
49 hw_cfg = lan743x_csr_read(adapter, HW_CFG); in pci11x1x_strap_get_status()
53 strap = lan743x_csr_read(adapter, STRAP_READ); in pci11x1x_strap_get_status()
55 adapter->is_sgmii_en = true; in pci11x1x_strap_get_status()
57 adapter->is_sgmii_en = false; in pci11x1x_strap_get_status()
59 chip_rev = lan743x_csr_read(adapter, FPGA_REV); in pci11x1x_strap_get_status()
[all …]
Dlan743x_ptp.c20 static bool lan743x_ptp_is_enabled(struct lan743x_adapter *adapter);
21 static void lan743x_ptp_enable(struct lan743x_adapter *adapter);
22 static void lan743x_ptp_disable(struct lan743x_adapter *adapter);
23 static void lan743x_ptp_reset(struct lan743x_adapter *adapter);
24 static void lan743x_ptp_clock_set(struct lan743x_adapter *adapter,
40 int lan743x_gpio_init(struct lan743x_adapter *adapter) in lan743x_gpio_init() argument
42 struct lan743x_gpio *gpio = &adapter->gpio; in lan743x_gpio_init()
50 lan743x_csr_write(adapter, GPIO_CFG0, gpio->gpio_cfg0); in lan743x_gpio_init()
51 lan743x_csr_write(adapter, GPIO_CFG1, gpio->gpio_cfg1); in lan743x_gpio_init()
52 lan743x_csr_write(adapter, GPIO_CFG2, gpio->gpio_cfg2); in lan743x_gpio_init()
[all …]
Dlan743x_ethtool.c26 #define LAN743X_CSR_READ_OP(offset) lan743x_csr_read(adapter, offset)
28 static int lan743x_otp_power_up(struct lan743x_adapter *adapter) in lan743x_otp_power_up() argument
32 reg_value = lan743x_csr_read(adapter, OTP_PWR_DN); in lan743x_otp_power_up()
37 lan743x_csr_write(adapter, OTP_PWR_DN, reg_value); in lan743x_otp_power_up()
45 static void lan743x_otp_power_down(struct lan743x_adapter *adapter) in lan743x_otp_power_down() argument
49 reg_value = lan743x_csr_read(adapter, OTP_PWR_DN); in lan743x_otp_power_down()
53 lan743x_csr_write(adapter, OTP_PWR_DN, reg_value); in lan743x_otp_power_down()
57 static void lan743x_otp_set_address(struct lan743x_adapter *adapter, in lan743x_otp_set_address() argument
60 lan743x_csr_write(adapter, OTP_ADDR_HIGH, (address >> 8) & 0x03); in lan743x_otp_set_address()
61 lan743x_csr_write(adapter, OTP_ADDR_LOW, address & 0xFF); in lan743x_otp_set_address()
[all …]
/linux-6.12.1/drivers/scsi/
DBusLogic.c81 MODULE_DESCRIPTION("BusLogic MultiMaster and FlashPoint SCSI Host Adapter driver");
136 static void blogic_announce_drvr(struct blogic_adapter *adapter) in blogic_announce_drvr() argument
138 …** BusLogic SCSI Driver Version " blogic_drvr_version " of " blogic_drvr_date " *****\n", adapter); in blogic_announce_drvr()
139 blogic_announce("Copyright 1995-1998 by Leonard N. Zubkoff <lnz@dandelion.com>\n", adapter); in blogic_announce_drvr()
144 blogic_drvr_info returns the Host Adapter Name to identify this SCSI
145 Driver and Host Adapter.
150 struct blogic_adapter *adapter = in blogic_drvr_info() local
152 return adapter->full_model; in blogic_drvr_info()
157 for Host Adapter from the blk_size bytes located at blk_pointer. The newly
158 created CCBs are added to Host Adapter's free list.
[all …]
Dvmw_pvscsi.c149 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.12.1/drivers/staging/rtl8712/
Dusb_halinit.c24 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.12.1/drivers/net/ethernet/chelsio/cxgb/
Dsubr.c41 * @adapter: the adapter performing the operation
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
[all …]
/linux-6.12.1/drivers/net/ethernet/intel/idpf/
Didpf_main.c20 struct idpf_adapter *adapter = pci_get_drvdata(pdev); in idpf_remove() local
23 set_bit(IDPF_REMOVE_IN_PROG, adapter->flags); in idpf_remove()
30 cancel_delayed_work_sync(&adapter->vc_event_task); in idpf_remove()
31 if (adapter->num_vfs) in idpf_remove()
34 idpf_vc_core_deinit(adapter); in idpf_remove()
37 adapter->dev_ops.reg_ops.trigger_reset(adapter, IDPF_HR_FUNC_RESET); in idpf_remove()
38 idpf_deinit_dflt_mbx(adapter); in idpf_remove()
40 if (!adapter->netdevs) in idpf_remove()
48 for (i = 0; i < adapter->max_vports; i++) { in idpf_remove()
49 if (!adapter->netdevs[i]) in idpf_remove()
[all …]
/linux-6.12.1/drivers/net/vmxnet3/
Dvmxnet3_drv.c50 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.12.1/drivers/net/ethernet/intel/ixgbe/
Dixgbe_lib.c10 * @adapter: board private structure to initialize
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()
[all …]
/linux-6.12.1/drivers/net/ethernet/micrel/
Dks8842.c147 #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 …]

12345678910>>...117