/freebsd/sys/dev/al_eth/ |
H A D | al_eth.c | 270 struct al_eth_adapter *adapter; in al_attach() local 293 adapter = device_get_softc(dev); in al_attach() 294 adapter->dev = dev; in al_attach() 295 adapter->board_type = ALPINE_INTEGRATED; in al_attach() 296 snprintf(adapter->name, AL_ETH_NAME_MAX_LEN, "%s", in al_attach() 298 AL_RX_LOCK_INIT(adapter); in al_attach() 300 g_adapters[g_adapters_count] = adapter; in al_attach() 303 adapter->udma_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, in al_attach() 305 if (adapter->udma_res == NULL) { in al_attach() 306 device_printf(adapter->dev, in al_attach() [all …]
|
/freebsd/sys/dev/cxgbe/common/ |
H A D | common.h | 465 #include "adapter.h" 471 #define for_each_port(adapter, iter) \ argument 472 for (iter = 0; iter < (adapter)->params.nports; ++iter) 474 static inline int is_ftid(const struct adapter *sc, u_int tid) in is_ftid() 481 static inline int is_hpftid(const struct adapter *sc, u_int tid) in is_hpftid() 488 static inline int is_etid(const struct adapter *sc, u_int tid) in is_etid() 495 static inline int is_offload(const struct adapter *adap) in is_offload() 500 static inline int is_ethoffload(const struct adapter *adap) in is_ethoffload() 505 static inline int is_hashfilter(const struct adapter *adap) in is_hashfilter() 510 static inline int is_ktls(const struct adapter *adap) in is_ktls() [all …]
|
H A D | t4vf_hw.c | 45 int t4vf_wait_dev_ready(struct adapter *adapter) in t4vf_wait_dev_ready() argument 52 val = t4_read_reg(adapter, whoami); in t4vf_wait_dev_ready() 56 val = t4_read_reg(adapter, whoami); in t4vf_wait_dev_ready() 66 * @adapter: the adapter 72 int t4vf_fw_reset(struct adapter *adapter) in t4vf_fw_reset() argument 80 return t4vf_wr_mbox(adapter, &cmd, sizeof(cmd), NULL); in t4vf_fw_reset() 84 * t4vf_get_sge_params - retrieve adapter Scatter gather Engine parameters 85 * @adapter: the adapter 89 * needed. The SGE parameters are stored in @adapter->params.sge. 91 int t4vf_get_sge_params(struct adapter *adapter) in t4vf_get_sge_params() argument [all …]
|
H A D | t4_hw.c | 50 * @adapter: the adapter performing the operation 63 static int t4_wait_op_done_val(struct adapter *adapter, int reg, u32 mask, in t4_wait_op_done_val() argument 67 u32 val = t4_read_reg(adapter, reg); in t4_wait_op_done_val() 81 static inline int t4_wait_op_done(struct adapter *adapter, int reg, u32 mask, in t4_wait_op_done() argument 84 return t4_wait_op_done_val(adapter, reg, mask, polarity, attempts, in t4_wait_op_done() 90 * @adapter: the adapter to program 98 void t4_set_reg_field(struct adapter *adapter, unsigned int addr, u32 mask, in t4_set_reg_field() argument 101 u32 v = t4_read_reg(adapter, addr) & ~mask; in t4_set_reg_field() 103 t4_write_reg(adapter, addr, v | val); in t4_set_reg_field() 104 (void) t4_read_reg(adapter, addr); /* flush */ in t4_set_reg_field() [all …]
|
/freebsd/sys/dev/ena/ |
H A D | ena.c | 175 static int ena_reinit_netmap(struct ena_adapter *adapter); 209 struct ena_adapter *adapter = device_get_softc(dmadev); in ena_dma_alloc() local 210 device_t pdev = adapter->pdev; in ena_dma_alloc() 217 dma_space_addr = ENA_DMA_BIT_MASK(adapter->dma_width); in ena_dma_alloc() 279 ena_free_pci_resources(struct ena_adapter *adapter) in ena_free_pci_resources() argument 281 device_t pdev = adapter->pdev; in ena_free_pci_resources() 283 if (adapter->memory != NULL) { in ena_free_pci_resources() 285 PCIR_BAR(ENA_MEM_BAR), adapter->memory); in ena_free_pci_resources() 288 if (adapter->registers != NULL) { in ena_free_pci_resources() 290 PCIR_BAR(ENA_REG_BAR), adapter->registers); in ena_free_pci_resources() [all …]
|
H A D | ena_sysctl.c | 165 int ena_sysctl_allocate_customer_metrics_buffer(struct ena_adapter *adapter) in ena_sysctl_allocate_customer_metrics_buffer() argument 169 adapter->customer_metrics_array = malloc((sizeof(u64) * ENA_CUSTOMER_METRICS_ARRAY_SIZE), in ena_sysctl_allocate_customer_metrics_buffer() 171 if (unlikely(adapter->customer_metrics_array == NULL)) in ena_sysctl_allocate_customer_metrics_buffer() 177 ena_sysctl_add_nodes(struct ena_adapter *adapter) in ena_sysctl_add_nodes() argument 179 struct ena_com_dev *dev = adapter->ena_dev; in ena_sysctl_add_nodes() 182 ena_sysctl_add_customer_metrics(adapter); in ena_sysctl_add_nodes() 184 ena_sysctl_add_eni_metrics(adapter); in ena_sysctl_add_nodes() 186 if (ena_com_get_cap(adapter->ena_dev, ENA_ADMIN_ENA_SRD_INFO)) in ena_sysctl_add_nodes() 187 ena_sysctl_add_srd_info(adapter); in ena_sysctl_add_nodes() 189 ena_sysctl_add_wd(adapter); in ena_sysctl_add_nodes() [all …]
|
H A D | ena_netmap.c | 42 struct ena_adapter *adapter; member 82 ena_netmap_attach(struct ena_adapter *adapter) in ena_netmap_attach() argument 86 ena_log_nm(adapter->pdev, INFO, "netmap attach\n"); in ena_netmap_attach() 90 na.ifp = adapter->ifp; in ena_netmap_attach() 91 na.num_tx_desc = adapter->requested_tx_ring_size; in ena_netmap_attach() 92 na.num_rx_desc = adapter->requested_rx_ring_size; in ena_netmap_attach() 93 na.num_tx_rings = adapter->num_io_queues; in ena_netmap_attach() 94 na.num_rx_rings = adapter->num_io_queues; in ena_netmap_attach() 95 na.rx_buf_maxsize = adapter->buf_ring_size; in ena_netmap_attach() 104 ena_netmap_alloc_rx_slot(struct ena_adapter *adapter, struct ena_ring *rx_ring, in ena_netmap_alloc_rx_slot() argument [all …]
|
H A D | ena_rss.c | 40 * for another adapter), then it should be returned instead. 101 ena_rss_init_default(struct ena_adapter *adapter) in ena_rss_init_default() argument 103 struct ena_com_dev *ena_dev = adapter->ena_dev; in ena_rss_init_default() 104 device_t dev = adapter->pdev; in ena_rss_init_default() 115 qid = rss_get_indirection_to_bucket(i) % adapter->num_io_queues; in ena_rss_init_default() 117 qid = i % adapter->num_io_queues; in ena_rss_init_default() 150 rc = ena_rss_indir_init(adapter); in ena_rss_init_default() 161 ena_rss_configure(struct ena_adapter *adapter) in ena_rss_configure() argument 163 struct ena_com_dev *ena_dev = adapter->ena_dev; in ena_rss_configure() 168 rc = ena_rss_init_default(adapter); in ena_rss_configure() [all …]
|
H A D | ena_datapath.c | 71 struct ena_adapter *adapter = que->adapter; in ena_cleanup() local 72 if_t ifp = adapter->ifp; in ena_cleanup() 84 io_cq = &adapter->ena_dev->io_cq_queues[ena_qid]; in ena_cleanup() 93 (ENA_FLAG_ISSET(ENA_FLAG_TRIGGER_RESET, adapter)))) in ena_cleanup() 96 ena_log_io(adapter->pdev, DBG, "MSI-X TX/RX routine\n"); in ena_cleanup() 106 (ENA_FLAG_ISSET(ENA_FLAG_TRIGGER_RESET, adapter)))) in ena_cleanup() 125 if_t ifp = tx_ring->adapter->ifp; in ena_deferred_mq_start() 138 struct ena_adapter *adapter = if_getsoftc(ifp); in ena_mq_start() local 146 if (unlikely((if_getdrvflags(adapter->ifp) & IFF_DRV_RUNNING) == 0)) in ena_mq_start() 159 i = bucket_id % adapter->num_io_queues; in ena_mq_start() [all …]
|
/freebsd/sys/dev/cxgb/common/ |
H A D | cxgb_t3_hw.c | 39 * @adapter: the adapter performing the operation 52 int t3_wait_op_done_val(adapter_t *adapter, int reg, u32 mask, int polarity, in t3_wait_op_done_val() argument 56 u32 val = t3_read_reg(adapter, reg); in t3_wait_op_done_val() 72 * @adapter: the adapter to program 81 void t3_write_regs(adapter_t *adapter, const struct addr_val_pair *p, int n, in t3_write_regs() argument 85 t3_write_reg(adapter, p->reg_addr + offset, p->val); in t3_write_regs() 92 * @adapter: the adapter to program 100 void t3_set_reg_field(adapter_t *adapter, unsigned int addr, u32 mask, u32 val) in t3_set_reg_field() argument 102 u32 v = t3_read_reg(adapter, addr) & ~mask; in t3_set_reg_field() 104 t3_write_reg(adapter, addr, v | val); in t3_set_reg_field() [all …]
|
H A D | cxgb_common.h | 64 enum { /* adapter interrupt-maintained statistics */ 148 int (*read)(adapter_t *adapter, int phy_addr, int mmd_addr, 150 int (*write)(adapter_t *adapter, int phy_addr, int mmd_addr, 160 unsigned long caps; /* adapter capabilities */ 446 adapter_t *adapter; member 460 adapter_t *adapter; /* backpointer to adapter */ member 474 adapter_t *adapter; member 578 adapter_t *adapter; /* associated adapter */ member 583 int (*mdio_read)(adapter_t *adapter, int phy_addr, int mmd_addr, 585 int (*mdio_write)(adapter_t *adapter, int phy_addr, int mmd_addr, [all …]
|
/freebsd/sys/contrib/alpine-hal/eth/ |
H A D | al_hal_eth_kr.c | 209 struct al_hal_eth_adapter *adapter, in al_eth_an_lt_reg_read() argument 217 if (adapter->rev_id < AL_ETH_REV_ID_3) { in al_eth_an_lt_reg_read() 222 al_reg_write32(&adapter->mac_regs_base->kr.an_addr, reg_addr); in al_eth_an_lt_reg_read() 223 val = al_reg_read32(&adapter->mac_regs_base->kr.an_data); in al_eth_an_lt_reg_read() 225 al_reg_write32(&adapter->mac_regs_base->kr.pma_addr, reg_addr); in al_eth_an_lt_reg_read() 226 val = al_reg_read32(&adapter->mac_regs_base->kr.pma_data); in al_eth_an_lt_reg_read() 235 al_reg_write32(&adapter->mac_regs_base->gen_v3.an_lt_0_addr, in al_eth_an_lt_reg_read() 236 (uintptr_t)®s->an_lt[adapter->curr_lt_unit].addr); in al_eth_an_lt_reg_read() 237 al_reg_write32(&adapter->mac_regs_base->gen_v3.an_lt_0_data, in al_eth_an_lt_reg_read() 240 al_reg_write32(&adapter->mac_regs_base->gen_v3.an_lt_0_addr, in al_eth_an_lt_reg_read() [all …]
|
H A D | al_hal_eth_main.c | 385 static void al_eth_epe_entry_set(struct al_hal_eth_adapter *adapter, uint32_t idx, in al_eth_epe_entry_set() argument 389 al_reg_write32(&adapter->ec_regs_base->epe_p[idx].comp_data, reg_entry->data); in al_eth_epe_entry_set() 390 al_reg_write32(&adapter->ec_regs_base->epe_p[idx].comp_mask, reg_entry->mask); in al_eth_epe_entry_set() 391 al_reg_write32(&adapter->ec_regs_base->epe_p[idx].comp_ctrl, reg_entry->ctrl); in al_eth_epe_entry_set() 393 al_reg_write32(&adapter->ec_regs_base->msp_c[idx].p_comp_data, reg_entry->data); in al_eth_epe_entry_set() 394 al_reg_write32(&adapter->ec_regs_base->msp_c[idx].p_comp_mask, reg_entry->mask); in al_eth_epe_entry_set() 395 al_reg_write32(&adapter->ec_regs_base->msp_c[idx].p_comp_ctrl, reg_entry->ctrl); in al_eth_epe_entry_set() 398 al_reg_write32(&adapter->ec_regs_base->epe[0].act_table_addr, idx); in al_eth_epe_entry_set() 399 al_reg_write32(&adapter->ec_regs_base->epe[0].act_table_data_6, in al_eth_epe_entry_set() 401 al_reg_write32(&adapter->ec_regs_base->epe[0].act_table_data_2, in al_eth_epe_entry_set() [all …]
|
H A D | al_hal_eth_kr.h | 153 * @param adapter pointer to the private structure 159 struct al_hal_eth_adapter *adapter, 166 * @param adapter pointer to the private structure 172 struct al_hal_eth_adapter *adapter, 179 * @param adapter pointer to the private structure 185 struct al_hal_eth_adapter *adapter, 192 * @param adapter pointer to the private structure 198 struct al_hal_eth_adapter *adapter, 205 * @param adapter pointer to the private structure 210 al_bool al_eth_kr_receiver_frame_lock_get(struct al_hal_eth_adapter *adapter, [all …]
|
H A D | al_hal_eth.h | 78 /* PCI Adapter Device/Revision ID */ 411 /** Ethernet Adapter private data structure used by this driver */ 413 uint8_t rev_id; /**<PCI adapter revision ID */ 414 uint8_t udma_id; /**< the id of the UDMA used by this adapter */ 446 uint8_t rev_id; /**<PCI adapter revision ID */ 447 uint8_t udma_id; /**< the id of the UDMA used by this adapter */ 461 /* adapter management */ 463 * initialize the ethernet adapter's DMA 464 * - initialize the adapter data structure 468 * @param adapter pointer to the private structure [all …]
|
/freebsd/sys/dev/usb/ |
H A D | usbdevs | 838 product 3COM 3CREB96 0x00a0 Bluetooth USB Adapter 839 product 3COM 3C19250 0x03e8 3C19250 Ethernet Adapter 840 product 3COM 3CRSHEW696 0x0a01 3CRSHEW696 Wireless Adapter 874 product ABOCOM URE450 0x4000 URE450 Ethernet Adapter 875 product ABOCOM UFE1000 0x4002 UFE1000 Fast Ethernet Adapter 876 product ABOCOM DSB650TX_PNA 0x4003 1/10/100 Ethernet Adapter 899 product ACTON SPECTRAPRO 0x0100 FTDI compatible adapter 902 product ACCTON USB320_EC 0x1046 USB320-EC Ethernet Adapter 904 product ACCTON 111 0x3503 T-Sinus 111 Wireless Adapter 910 product ACCTON SS1001 0x5046 SpeedStream Ethernet Adapter [all …]
|
/freebsd/sys/dev/sume/ |
H A D | if_sume.c | 58 #include "adapter.h" 166 read_reg(struct sume_adapter *adapter, int offset) in read_reg() argument 169 return (bus_space_read_4(adapter->bt, adapter->bh, offset << 2)); in read_reg() 173 write_reg(struct sume_adapter *adapter, int offset, uint32_t val) in write_reg() argument 176 bus_space_write_4(adapter->bt, adapter->bh, offset << 2, val); in write_reg() 210 sume_rx_build_mbuf(struct sume_adapter *adapter, uint32_t len) in sume_rx_build_mbuf() argument 217 device_t dev = adapter->dev; in sume_rx_build_mbuf() 219 adapter->recv[SUME_RIFFA_CHANNEL_DATA]->buf_addr + in sume_rx_build_mbuf() 226 adapter->packets_err++; in sume_rx_build_mbuf() 227 adapter->bytes_err += len; in sume_rx_build_mbuf() [all …]
|
/freebsd/sys/compat/linuxkpi/common/include/linux/ |
H A D | i2c.h | 110 int lkpi_i2c_add_adapter(struct i2c_adapter *adapter); 111 int lkpi_i2c_del_adapter(struct i2c_adapter *adapter); 113 int lkpi_i2cbb_transfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int nmsgs); 115 #define i2c_add_adapter(adapter) lkpi_i2c_add_adapter(adapter) argument 116 #define i2c_del_adapter(adapter) lkpi_i2c_del_adapter(adapter) argument 122 do_i2c_transfer(struct i2c_adapter *adapter, struct i2c_msg *msgs, int nmsgs) in do_i2c_transfer() argument 126 retries = adapter->retries == 0 ? 1 : adapter->retries; in do_i2c_transfer() 128 if (adapter->algo != NULL && adapter->algo->master_xfer != NULL) in do_i2c_transfer() 129 ret = adapter->algo->master_xfer(adapter, msgs, nmsgs); in do_i2c_transfer() 131 ret = lkpi_i2cbb_transfer(adapter, msgs, nmsgs); in do_i2c_transfer() [all …]
|
/freebsd/share/man/man4/ |
H A D | nfe.4 | 65 utility configures the adapter to receive and transmit Jumbo Frames. 100 NVIDIA nForce MCP Networking Adapter 102 NVIDIA nForce MCP04 Networking Adapter 104 NVIDIA nForce 430 MCP12 Networking Adapter 106 NVIDIA nForce 430 MCP13 Networking Adapter 108 NVIDIA nForce MCP51 Networking Adapter 110 NVIDIA nForce MCP55 Networking Adapter 112 NVIDIA nForce MCP61 Networking Adapter 114 NVIDIA nForce MCP65 Networking Adapter 116 NVIDIA nForce MCP67 Networking Adapter [all …]
|
H A D | em.4 | 42 .Nd "Intel(R) PRO/1000 Gigabit Ethernet adapter driver" 100 documentation supplied with your Intel PRO/1000 adapter. 107 utility configures the adapter to receive and transmit Jumbo Frames. 174 Intel Gigabit ET Dual Port Server Adapter (82576) 176 Intel Gigabit VT Quad Port Server Adapter (82575) 186 Intel PRO/1000 F Server Adapter (82543) 188 Intel PRO/1000 Gigabit Server Adapter (82542) 190 Intel PRO/1000 GT Desktop Adapter (82541PI) 192 Intel PRO/1000 MF Dual Port Server Adapter (82546) 194 Intel PRO/1000 MF Server Adapter (82545) [all …]
|
/freebsd/sys/dev/hpt27xx/ |
H A D | himfuncs.h | 48 _HIM_INTERFACE(HPT_BOOL, create_adapter, (const PCI_ID *id, PCI_ADDRESS pciAddress, void *adapter, … 50 _HIM_INTERFACE(void, get_adapter_config, (void *adapter, HIM_ADAPTER_CONFIG *config)) 52 _HIM_INTERFACE(HPT_BOOL, get_meminfo, (void *adapter)) 56 _HIM_INTERFACE(void, route_irq, (void *adapter, HPT_BOOL enable)) 59 _HIM_INTERFACE(HPT_BOOL, initialize, (void *adapter)) 62 _HIM_INTERFACE(HPT_UINT, get_device_size, (void *adapter)) 65 _HIM_INTERFACE(HPT_BOOL, probe_device, (void *adapter, int index, void *devhandle, PROBE_CALLBACK d… 66 _HIM_INTERFACE(void *, get_device, (void *adapter, int index)) 80 _HIM_INTERFACE(HPT_BOOL, intr_handler, (void *adapter)) 81 _HIM_INTERFACE(HPT_BOOL, intr_control, (void * adapter, HPT_BOOL enable)) [all …]
|
/freebsd/sys/dev/hptnr/ |
H A D | himfuncs.h | 48 _HIM_INTERFACE(HPT_BOOL, create_adapter, (const PCI_ID *id, PCI_ADDRESS pciAddress, void *adapter, … 50 _HIM_INTERFACE(void, get_adapter_config, (void *adapter, HIM_ADAPTER_CONFIG *config)) 52 _HIM_INTERFACE(HPT_BOOL, get_meminfo, (void *adapter)) 56 _HIM_INTERFACE(void, route_irq, (void *adapter, HPT_BOOL enable)) 59 _HIM_INTERFACE(HPT_BOOL, initialize, (void *adapter)) 62 _HIM_INTERFACE(HPT_UINT, get_device_size, (void *adapter)) 65 _HIM_INTERFACE(HPT_BOOL, probe_device, (void *adapter, int index, void *devhandle, PROBE_CALLBACK d… 66 _HIM_INTERFACE(void *, get_device, (void *adapter, int index)) 80 _HIM_INTERFACE(HPT_BOOL, intr_handler, (void *adapter)) 81 _HIM_INTERFACE(HPT_BOOL, intr_control, (void * adapter, HPT_BOOL enable)) [all …]
|
/freebsd/sys/dev/cxgb/ |
H A D | cxgb_adapter.h | 61 struct adapter; 90 struct adapter *adapter; member 121 /* adapter flags */ 283 struct adapter *adap; 303 struct adapter { struct 304 SLIST_ENTRY(adapter) link; 407 #define MDIO_LOCK(adapter) mtx_lock(&(adapter)->mdio_lock) argument 408 #define MDIO_UNLOCK(adapter) mtx_unlock(&(adapter)->mdio_lock) argument 409 #define ELMR_LOCK(adapter) mtx_lock(&(adapter)->elmer_lock) argument 410 #define ELMR_UNLOCK(adapter) mtx_unlock(&(adapter)->elmer_lock) argument [all …]
|
/freebsd/sys/compat/linuxkpi/common/src/ |
H A D | linux_i2c.c | 50 struct i2c_adapter *adapter; member 109 lkpi_iic_add_adapter(device_t dev, struct i2c_adapter *adapter) in lkpi_iic_add_adapter() argument 114 sc->adapter = adapter; in lkpi_iic_add_adapter() 125 return (sc->adapter); in lkpi_iic_get_adapter() 167 static int i2c_check_for_quirks(struct i2c_adapter *adapter, in i2c_check_for_quirks() argument 175 dev = adapter->dev.parent->bsddev; in i2c_check_for_quirks() 176 quirks = adapter->quirks; in i2c_check_for_quirks() 285 if (sc->adapter == NULL) in lkpi_i2c_transfer() 287 ret = i2c_check_for_quirks(sc->adapter, msgs, nmsgs); in lkpi_i2c_transfer() 307 ret = i2c_transfer(sc->adapter, linux_msgs, nmsgs); in lkpi_i2c_transfer() [all …]
|
/freebsd/sys/dev/hptrr/ |
H A D | himfuncs.h | 49 _HIM_INTERFACE(HPT_BOOL, create_adapter, (const PCI_ID *id, PCI_ADDRESS pciAddress, void *adapter, … 51 _HIM_INTERFACE(void, get_adapter_config, (void *adapter, HIM_ADAPTER_CONFIG *config)) 53 _HIM_INTERFACE(HPT_BOOL, get_meminfo, (void *adapter)) 57 _HIM_INTERFACE(void, route_irq, (void *adapter, HPT_BOOL enable)) 60 _HIM_INTERFACE(HPT_BOOL, initialize, (void *adapter)) 63 _HIM_INTERFACE(HPT_UINT, get_device_size, (void *adapter)) 66 _HIM_INTERFACE(HPT_BOOL, probe_device, (void *adapter, int index, void *devhandle, PROBE_CALLBACK d… 67 _HIM_INTERFACE(void *, get_device, (void *adapter, int index)) 81 _HIM_INTERFACE(HPT_BOOL, intr_handler, (void *adapter)) 82 _HIM_INTERFACE(HPT_BOOL, intr_control, (void * adapter, HPT_BOOL enable)) [all …]
|