Lines Matching full:adapter
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
429 t3_read_reg(adapter_t *adapter, uint32_t reg_addr) in t3_read_reg() argument
431 return (bus_space_read_4(adapter->bt, adapter->bh, reg_addr)); in t3_read_reg()
435 t3_write_reg(adapter_t *adapter, uint32_t reg_addr, uint32_t val) in t3_write_reg() argument
437 bus_space_write_4(adapter->bt, adapter->bh, reg_addr, val); in t3_write_reg()
441 t3_os_pci_read_config_4(adapter_t *adapter, int reg, uint32_t *val) in t3_os_pci_read_config_4() argument
443 *val = pci_read_config(adapter->dev, reg, 4); in t3_os_pci_read_config_4()
447 t3_os_pci_write_config_4(adapter_t *adapter, int reg, uint32_t val) in t3_os_pci_write_config_4() argument
449 pci_write_config(adapter->dev, reg, val, 4); in t3_os_pci_write_config_4()
453 t3_os_pci_read_config_2(adapter_t *adapter, int reg, uint16_t *val) in t3_os_pci_read_config_2() argument
455 *val = pci_read_config(adapter->dev, reg, 2); in t3_os_pci_read_config_2()
459 t3_os_pci_write_config_2(adapter_t *adapter, int reg, uint16_t val) in t3_os_pci_write_config_2() argument
461 pci_write_config(adapter->dev, reg, val, 2); in t3_os_pci_write_config_2()
472 adap2pinfo(struct adapter *adap, int idx) in adap2pinfo()
477 int t3_os_find_pci_capability(adapter_t *adapter, int cap);
478 int t3_os_pci_save_state(struct adapter *adapter);
479 int t3_os_pci_restore_state(struct adapter *adapter);
481 void t3_os_link_changed(adapter_t *adapter, int port_id, int link_status,
483 void t3_os_phymod_changed(struct adapter *adap, int port_id);
484 void t3_sge_err_intr_handler(adapter_t *adapter);
486 int t3_offload_tx(struct adapter *, struct mbuf *);
488 void t3_os_set_hw_addr(adapter_t *adapter, int port_idx, u8 hw_addr[]);
490 int t3_register_cpl_handler(struct adapter *, int, cpl_handler_t);
492 int t3_sge_alloc(struct adapter *);
493 int t3_sge_free(struct adapter *);
508 void t3_rx_eth(struct adapter *adap, struct mbuf *m, int ethpad);
544 static inline int offload_running(adapter_t *adapter) in offload_running() argument
546 return isset(&adapter->open_device_map, OFFLOAD_DEVMAP_BIT); in offload_running()
552 void t3_iterate(void (*)(struct adapter *, void *), void *);