Home
last modified time | relevance | path

Searched refs:adapter (Results 1 – 25 of 839) sorted by relevance

12345678910>>...34

/drivers/net/wireless/mwifiex/
Dcmdevt.c43 if (priv->adapter->cmd_wait_q_required) { in mwifiex_init_cmd_node()
44 cmd_node->wait_q_enabled = priv->adapter->cmd_wait_q_required; in mwifiex_init_cmd_node()
45 priv->adapter->cmd_wait_q_required = false; in mwifiex_init_cmd_node()
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 dev_err(adapter->dev, "GET_CMD_NODE: cmd node not available\n"); in mwifiex_get_cmd_node()
66 spin_unlock_irqrestore(&adapter->cmd_free_q_lock, flags); in mwifiex_get_cmd_node()
69 cmd_node = list_first_entry(&adapter->cmd_free_q, in mwifiex_get_cmd_node()
72 spin_unlock_irqrestore(&adapter->cmd_free_q_lock, flags); in mwifiex_get_cmd_node()
[all …]
Dmain.c47 struct mwifiex_adapter *adapter; in mwifiex_register() local
50 adapter = kzalloc(sizeof(struct mwifiex_adapter), GFP_KERNEL); in mwifiex_register()
51 if (!adapter) in mwifiex_register()
54 *padapter = adapter; in mwifiex_register()
55 adapter->card = card; in mwifiex_register()
58 memmove(&adapter->if_ops, if_ops, sizeof(struct mwifiex_if_ops)); in mwifiex_register()
61 if (adapter->if_ops.init_if(adapter)) in mwifiex_register()
64 adapter->priv_num = 0; in mwifiex_register()
67 adapter->priv[0] = kzalloc(sizeof(struct mwifiex_private), GFP_KERNEL); in mwifiex_register()
68 if (!adapter->priv[0]) { in mwifiex_register()
[all …]
Dinit.c36 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()
43 dev_err(adapter->dev, "%s: failed to alloc bss_prio\n", in mwifiex_add_bss_prio_tbl()
148 static int mwifiex_allocate_adapter(struct mwifiex_adapter *adapter) in mwifiex_allocate_adapter() argument
153 ret = mwifiex_alloc_cmd_buffer(adapter); in mwifiex_allocate_adapter()
155 dev_err(adapter->dev, "%s: failed to alloc cmd buffer\n", in mwifiex_allocate_adapter()
160 adapter->sleep_cfm = in mwifiex_allocate_adapter()
164 if (!adapter->sleep_cfm) { in mwifiex_allocate_adapter()
165 dev_err(adapter->dev, "%s: failed to alloc sleep cfm" in mwifiex_allocate_adapter()
169 skb_reserve(adapter->sleep_cfm, INTF_HEADER_LEN); in mwifiex_allocate_adapter()
[all …]
Dpcie.c39 static int mwifiex_pcie_enable_host_int(struct mwifiex_adapter *adapter);
58 static bool mwifiex_pcie_ok_to_access_hw(struct mwifiex_adapter *adapter) in mwifiex_pcie_ok_to_access_hw() argument
61 struct pcie_service_card *card = adapter->card; in mwifiex_pcie_ok_to_access_hw()
65 dev_dbg(adapter->dev, "info: ACCESS_HW: sleep cookie=0x%x\n", in mwifiex_pcie_ok_to_access_hw()
110 struct mwifiex_adapter *adapter; in mwifiex_pcie_remove() local
118 adapter = card->adapter; in mwifiex_pcie_remove()
119 if (!adapter || !adapter->priv_num) in mwifiex_pcie_remove()
124 if (adapter->is_suspended) in mwifiex_pcie_remove()
128 for (i = 0; i < adapter->priv_num; i++) in mwifiex_pcie_remove()
129 if ((GET_BSS_ROLE(adapter->priv[i]) == in mwifiex_pcie_remove()
[all …]
Dsdio.c112 struct mwifiex_adapter *adapter; in mwifiex_sdio_remove() local
122 adapter = card->adapter; in mwifiex_sdio_remove()
123 if (!adapter || !adapter->priv_num) in mwifiex_sdio_remove()
127 if (adapter->is_suspended) in mwifiex_sdio_remove()
128 mwifiex_sdio_resume(adapter->dev); in mwifiex_sdio_remove()
130 for (i = 0; i < adapter->priv_num; i++) in mwifiex_sdio_remove()
131 if ((GET_BSS_ROLE(adapter->priv[i]) == in mwifiex_sdio_remove()
133 adapter->priv[i]->media_connected) in mwifiex_sdio_remove()
134 mwifiex_deauthenticate(adapter->priv[i], NULL); in mwifiex_sdio_remove()
136 priv = mwifiex_get_priv(adapter, MWIFIEX_BSS_ROLE_ANY); in mwifiex_sdio_remove()
[all …]
Dsta_event.c46 struct mwifiex_adapter *adapter = priv->adapter; in mwifiex_reset_connect_state() local
51 dev_dbg(adapter->dev, "info: handles disconnect event\n"); in mwifiex_reset_connect_state()
95 dev_dbg(adapter->dev, "info: previous SSID=%s, SSID len=%u\n", in mwifiex_reset_connect_state()
98 dev_dbg(adapter->dev, "info: current SSID=%s, SSID len=%u\n", in mwifiex_reset_connect_state()
112 adapter->tx_lock_flag = false; in mwifiex_reset_connect_state()
113 adapter->pps_uapsd_mode = false; in mwifiex_reset_connect_state()
115 if (adapter->num_cmd_timeout && adapter->curr_cmd) in mwifiex_reset_connect_state()
118 dev_dbg(adapter->dev, in mwifiex_reset_connect_state()
128 mwifiex_stop_net_dev_queue(priv->netdev, adapter); in mwifiex_reset_connect_state()
189 struct mwifiex_adapter *adapter = priv->adapter; in mwifiex_process_sta_event() local
[all …]
/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_main.c73 static void netxen_schedule_work(struct netxen_adapter *adapter,
75 static void netxen_cancel_fw_work(struct netxen_adapter *adapter);
81 static void netxen_create_sysfs_entries(struct netxen_adapter *adapter);
82 static void netxen_remove_sysfs_entries(struct netxen_adapter *adapter);
83 static void netxen_create_diag_entries(struct netxen_adapter *adapter);
84 static void netxen_remove_diag_entries(struct netxen_adapter *adapter);
85 static int nx_dev_request_aer(struct netxen_adapter *adapter);
86 static int nx_decr_dev_ref_cnt(struct netxen_adapter *adapter);
87 static int netxen_can_start_firmware(struct netxen_adapter *adapter);
124 netxen_nic_update_cmd_producer(struct netxen_adapter *adapter, in netxen_nic_update_cmd_producer() argument
[all …]
Dnetxen_nic_hw.c45 static void netxen_nic_io_write_128M(struct netxen_adapter *adapter,
47 static u32 netxen_nic_io_read_128M(struct netxen_adapter *adapter,
64 #define PCI_OFFSET_FIRST_RANGE(adapter, off) \ argument
65 ((adapter)->ahw.pci_base0 + (off))
66 #define PCI_OFFSET_SECOND_RANGE(adapter, off) \ argument
67 ((adapter)->ahw.pci_base1 + (off) - SECOND_PAGE_GROUP_START)
68 #define PCI_OFFSET_THIRD_RANGE(adapter, off) \ argument
69 ((adapter)->ahw.pci_base2 + (off) - THIRD_PAGE_GROUP_START)
71 static void __iomem *pci_base_offset(struct netxen_adapter *adapter, in pci_base_offset() argument
75 return PCI_OFFSET_FIRST_RANGE(adapter, off); in pci_base_offset()
[all …]
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_lib.c38 static inline bool ixgbe_cache_ring_rss(struct ixgbe_adapter *adapter) in ixgbe_cache_ring_rss() argument
42 if (!(adapter->flags & IXGBE_FLAG_RSS_ENABLED)) in ixgbe_cache_ring_rss()
45 for (i = 0; i < adapter->num_rx_queues; i++) in ixgbe_cache_ring_rss()
46 adapter->rx_ring[i]->reg_idx = i; in ixgbe_cache_ring_rss()
47 for (i = 0; i < adapter->num_tx_queues; i++) in ixgbe_cache_ring_rss()
48 adapter->tx_ring[i]->reg_idx = i; in ixgbe_cache_ring_rss()
55 static void ixgbe_get_first_reg_idx(struct ixgbe_adapter *adapter, u8 tc, in ixgbe_get_first_reg_idx() argument
58 struct net_device *dev = adapter->netdev; in ixgbe_get_first_reg_idx()
59 struct ixgbe_hw *hw = &adapter->hw; in ixgbe_get_first_reg_idx()
115 static inline bool ixgbe_cache_ring_dcb(struct ixgbe_adapter *adapter) in ixgbe_cache_ring_dcb() argument
[all …]
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_main.c66 static void qlcnic_schedule_work(struct qlcnic_adapter *adapter,
68 static void qlcnic_cancel_fw_work(struct qlcnic_adapter *adapter);
75 static void qlcnic_create_sysfs_entries(struct qlcnic_adapter *adapter);
76 static void qlcnic_remove_sysfs_entries(struct qlcnic_adapter *adapter);
77 static void qlcnic_create_diag_entries(struct qlcnic_adapter *adapter);
78 static void qlcnic_remove_diag_entries(struct qlcnic_adapter *adapter);
80 static void qlcnic_idc_debug_info(struct qlcnic_adapter *adapter, u8 encoding);
81 static void qlcnic_clr_all_drv_state(struct qlcnic_adapter *adapter, u8);
82 static int qlcnic_can_start_firmware(struct qlcnic_adapter *adapter);
93 static void qlcnic_free_lb_filters_mem(struct qlcnic_adapter *adapter);
[all …]
/drivers/scsi/
Dvmw_pvscsi.c143 pvscsi_dev(const struct pvscsi_adapter *adapter) in pvscsi_dev() argument
145 return &(adapter->dev->dev); in pvscsi_dev()
149 pvscsi_find_context(const struct pvscsi_adapter *adapter, struct scsi_cmnd *cmd) in pvscsi_find_context() argument
153 end = &adapter->cmd_map[adapter->req_depth]; in pvscsi_find_context()
154 for (ctx = adapter->cmd_map; ctx < end; ctx++) in pvscsi_find_context()
162 pvscsi_acquire_context(struct pvscsi_adapter *adapter, struct scsi_cmnd *cmd) in pvscsi_acquire_context() argument
166 if (list_empty(&adapter->cmd_pool)) in pvscsi_acquire_context()
169 ctx = list_first_entry(&adapter->cmd_pool, struct pvscsi_ctx, list); in pvscsi_acquire_context()
176 static void pvscsi_release_context(struct pvscsi_adapter *adapter, in pvscsi_release_context() argument
180 list_add(&ctx->list, &adapter->cmd_pool); in pvscsi_release_context()
[all …]
/drivers/net/ethernet/chelsio/cxgb/
Dsubr.c62 static int t1_wait_op_done(adapter_t *adapter, int reg, u32 mask, int polarity, in t1_wait_op_done() argument
66 u32 val = readl(adapter->regs + reg) & mask; in t1_wait_op_done()
82 int __t1_tpi_write(adapter_t *adapter, u32 addr, u32 value) in __t1_tpi_write() argument
86 writel(addr, adapter->regs + A_TPI_ADDR); in __t1_tpi_write()
87 writel(value, adapter->regs + A_TPI_WR_DATA); in __t1_tpi_write()
88 writel(F_TPIWR, adapter->regs + A_TPI_CSR); in __t1_tpi_write()
90 tpi_busy = t1_wait_op_done(adapter, A_TPI_CSR, F_TPIRDY, 1, in __t1_tpi_write()
94 adapter->name, addr); in __t1_tpi_write()
98 int t1_tpi_write(adapter_t *adapter, u32 addr, u32 value) in t1_tpi_write() argument
102 spin_lock(&adapter->tpi_lock); in t1_tpi_write()
[all …]
Despi.c45 adapter_t *adapter; member
61 static int tricn_write(adapter_t *adapter, int bundle_addr, int module_addr, in tricn_write() argument
71 adapter->regs + A_ESPI_CMD_ADDR); in tricn_write()
72 writel(0, adapter->regs + A_ESPI_GOSTAT); in tricn_write()
75 busy = readl(adapter->regs + A_ESPI_GOSTAT) & F_ESPI_CMD_BUSY; in tricn_write()
79 pr_err("%s: TRICN write timed out\n", adapter->name); in tricn_write()
84 static int tricn_init(adapter_t *adapter) in tricn_init() argument
88 if (!(readl(adapter->regs + A_ESPI_RX_RESET) & F_RX_CLK_STATUS)) { in tricn_init()
89 pr_err("%s: ESPI clock not ready\n", adapter->name); in tricn_init()
93 writel(F_ESPI_RX_CORE_RST, adapter->regs + A_ESPI_RX_RESET); in tricn_init()
[all …]
/drivers/net/ethernet/intel/ixgb/
Dixgb_main.c77 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);
106 static void ixgb_restore_vlan(struct ixgb_adapter *adapter);
[all …]
/drivers/net/ethernet/intel/e1000e/
Dnetdev.c183 static void e1000e_dump(struct e1000_adapter *adapter) in e1000e_dump() argument
185 struct net_device *netdev = adapter->netdev; in e1000e_dump()
186 struct e1000_hw *hw = &adapter->hw; in e1000e_dump()
188 struct e1000_ring *tx_ring = adapter->tx_ring; in e1000e_dump()
195 struct e1000_ring *rx_ring = adapter->rx_ring; in e1000e_dump()
207 if (!netif_msg_hw(adapter)) in e1000e_dump()
212 dev_info(&adapter->pdev->dev, "Net device Info\n"); in e1000e_dump()
220 dev_info(&adapter->pdev->dev, "Register Dump\n"); in e1000e_dump()
231 dev_info(&adapter->pdev->dev, "Tx Ring Summary\n"); in e1000e_dump()
242 if (!netif_msg_tx_done(adapter)) in e1000e_dump()
[all …]
/drivers/isdn/hisax/
Dhisax_fcpcipnp.c155 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/s390/scsi/
Dzfcp_aux.c59 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()
194 struct zfcp_port *zfcp_get_port_by_wwpn(struct zfcp_adapter *adapter, in zfcp_get_port_by_wwpn() argument
200 read_lock_irqsave(&adapter->port_list_lock, flags); in zfcp_get_port_by_wwpn()
201 list_for_each_entry(port, &adapter->port_list, list) in zfcp_get_port_by_wwpn()
205 read_unlock_irqrestore(&adapter->port_list_lock, flags); in zfcp_get_port_by_wwpn()
208 read_unlock_irqrestore(&adapter->port_list_lock, flags); in zfcp_get_port_by_wwpn()
[all …]
/drivers/net/ethernet/micrel/
Dks8842.c159 #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/emulex/benet/
Dbe_main.c121 static inline bool be_is_mc(struct be_adapter *adapter) { in be_is_mc() argument
122 return (adapter->function_mode & FLEX10_MODE || in be_is_mc()
123 adapter->function_mode & VNIC_MODE || in be_is_mc()
124 adapter->function_mode & UMC_ENABLED); in be_is_mc()
127 static void be_queue_free(struct be_adapter *adapter, struct be_queue_info *q) in be_queue_free() argument
131 dma_free_coherent(&adapter->pdev->dev, mem->size, mem->va, in be_queue_free()
137 static int be_queue_alloc(struct be_adapter *adapter, struct be_queue_info *q, in be_queue_alloc() argument
146 mem->va = dma_alloc_coherent(&adapter->pdev->dev, mem->size, &mem->dma, in be_queue_alloc()
154 static void be_intr_set(struct be_adapter *adapter, bool enable) in be_intr_set() argument
158 if (adapter->eeh_err) in be_intr_set()
[all …]
/drivers/staging/slicoss/
Dslicoss.c202 static inline void slic_reg64_write(struct adapter *adapter, void __iomem *reg, in slic_reg64_write() argument
206 spin_lock_irqsave(&adapter->bit64reglock.lock, in slic_reg64_write()
207 adapter->bit64reglock.flags); in slic_reg64_write()
208 if (paddrh != adapter->curaddrupper) { in slic_reg64_write()
209 adapter->curaddrupper = paddrh; in slic_reg64_write()
215 spin_unlock_irqrestore(&adapter->bit64reglock.lock, in slic_reg64_write()
216 adapter->bit64reglock.flags); in slic_reg64_write()
283 static void slic_mcast_set_bit(struct adapter *adapter, char *address) in slic_mcast_set_bit() argument
296 adapter->mcastmask |= (u64) 1 << crcpoly; in slic_mcast_set_bit()
299 static void slic_mcast_set_mask(struct adapter *adapter) in slic_mcast_set_mask() argument
[all …]
/drivers/net/ethernet/intel/igbvf/
Dnetdev.c105 static void igbvf_receive_skb(struct igbvf_adapter *adapter, in igbvf_receive_skb() argument
112 if (test_bit(vid, adapter->active_vlans)) in igbvf_receive_skb()
118 static inline void igbvf_rx_checksum_adv(struct igbvf_adapter *adapter, in igbvf_rx_checksum_adv() argument
125 (adapter->flags & IGBVF_FLAG_RX_CSUM_DISABLED)) in igbvf_rx_checksum_adv()
132 adapter->hw_csum_err++; in igbvf_rx_checksum_adv()
140 adapter->hw_csum_good++; in igbvf_rx_checksum_adv()
151 struct igbvf_adapter *adapter = rx_ring->adapter; in igbvf_alloc_rx_buffers() local
152 struct net_device *netdev = adapter->netdev; in igbvf_alloc_rx_buffers()
153 struct pci_dev *pdev = adapter->pdev; in igbvf_alloc_rx_buffers()
163 if (adapter->rx_ps_hdr_size) in igbvf_alloc_rx_buffers()
[all …]
/drivers/net/vmxnet3/
Dvmxnet3_drv.c53 vmxnet3_write_mac_addr(struct vmxnet3_adapter *adapter, u8 *mac);
59 vmxnet3_enable_intr(struct vmxnet3_adapter *adapter, unsigned intr_idx) in vmxnet3_enable_intr() argument
61 VMXNET3_WRITE_BAR0_REG(adapter, VMXNET3_REG_IMR + intr_idx * 8, 0); in vmxnet3_enable_intr()
66 vmxnet3_disable_intr(struct vmxnet3_adapter *adapter, unsigned intr_idx) in vmxnet3_disable_intr() argument
68 VMXNET3_WRITE_BAR0_REG(adapter, VMXNET3_REG_IMR + intr_idx * 8, 1); in vmxnet3_disable_intr()
76 vmxnet3_enable_all_intrs(struct vmxnet3_adapter *adapter) in vmxnet3_enable_all_intrs() argument
80 for (i = 0; i < adapter->intr.num_intrs; i++) in vmxnet3_enable_all_intrs()
81 vmxnet3_enable_intr(adapter, i); in vmxnet3_enable_all_intrs()
82 adapter->shared->devRead.intrConf.intrCtrl &= in vmxnet3_enable_all_intrs()
88 vmxnet3_disable_all_intrs(struct vmxnet3_adapter *adapter) in vmxnet3_disable_all_intrs() argument
[all …]
/drivers/net/ethernet/intel/ixgbevf/
Dixgbevf_main.c101 static void ixgbevf_write_eitr(struct ixgbevf_adapter *adapter, int v_idx,
126 static void ixgbevf_set_ivar(struct ixgbevf_adapter *adapter, s8 direction, in ixgbevf_set_ivar() argument
130 struct ixgbe_hw *hw = &adapter->hw; in ixgbevf_set_ivar()
149 static void ixgbevf_unmap_and_free_tx_resource(struct ixgbevf_adapter *adapter, in ixgbevf_unmap_and_free_tx_resource() argument
155 dma_unmap_page(&adapter->pdev->dev, in ixgbevf_unmap_and_free_tx_resource()
160 dma_unmap_single(&adapter->pdev->dev, in ixgbevf_unmap_and_free_tx_resource()
194 static bool ixgbevf_clean_tx_irq(struct ixgbevf_adapter *adapter, in ixgbevf_clean_tx_irq() argument
197 struct net_device *netdev = adapter->netdev; in ixgbevf_clean_tx_irq()
198 struct ixgbe_hw *hw = &adapter->hw; in ixgbevf_clean_tx_irq()
234 ixgbevf_unmap_and_free_tx_resource(adapter, in ixgbevf_clean_tx_irq()
[all …]
/drivers/net/ethernet/chelsio/cxgb3/
Dt3_hw.c37 static void t3_port_intr_clear(struct adapter *adapter, int idx);
55 int t3_wait_op_done_val(struct adapter *adapter, int reg, u32 mask, in t3_wait_op_done_val() argument
59 u32 val = t3_read_reg(adapter, reg); in t3_wait_op_done_val()
84 void t3_write_regs(struct adapter *adapter, const struct addr_val_pair *p, in t3_write_regs() argument
88 t3_write_reg(adapter, p->reg_addr + offset, p->val); in t3_write_regs()
103 void t3_set_reg_field(struct adapter *adapter, unsigned int addr, u32 mask, in t3_set_reg_field() argument
106 u32 v = t3_read_reg(adapter, addr) & ~mask; in t3_set_reg_field()
108 t3_write_reg(adapter, addr, v | val); in t3_set_reg_field()
109 t3_read_reg(adapter, addr); /* flush */ in t3_set_reg_field()
124 static void t3_read_indirect(struct adapter *adap, unsigned int addr_reg, in t3_read_indirect()
[all …]
/drivers/staging/et131x/
Det131x.c609 static int eeprom_write(struct et131x_adapter *adapter, u32 addr, u8 data) in eeprom_write() argument
611 struct pci_dev *pdev = adapter->pdev; in eeprom_write()
675 && adapter->pdev->revision == 0) in eeprom_write()
741 static int eeprom_read(struct et131x_adapter *adapter, u32 addr, u8 *pdata) in eeprom_read() argument
743 struct pci_dev *pdev = adapter->pdev; in eeprom_read()
790 static int et131x_init_eeprom(struct et131x_adapter *adapter) in et131x_init_eeprom() argument
792 struct pci_dev *pdev = adapter->pdev; in et131x_init_eeprom()
827 if (eeprom_write(adapter, i, eedata[i]) < 0) in et131x_init_eeprom()
840 adapter->has_eeprom = 0; in et131x_init_eeprom()
844 adapter->has_eeprom = 1; in et131x_init_eeprom()
[all …]

12345678910>>...34