Lines Matching defs:adapter

148 static inline unsigned int fl_mtu_bufsize(struct adapter *adapter,
151 struct sge *s = &adapter->sge;
156 #define FL_MTU_SMALL_BUFSIZE(adapter) fl_mtu_bufsize(adapter, FL_MTU_SMALL)
157 #define FL_MTU_LARGE_BUFSIZE(adapter) fl_mtu_bufsize(adapter, FL_MTU_LARGE)
177 * XXX adapter or we use the Firmware Configuration File. We
228 * @adapter: pointer to the adapter
235 static inline bool fl_starving(const struct adapter *adapter,
238 const struct sge *s = &adapter->sge;
305 * @adap: the adapter
313 void free_tx_desc(struct adapter *adap, struct sge_txq *q,
350 * @adap: the adapter
359 static inline int reclaim_completed_tx(struct adapter *adap, struct sge_txq *q,
383 * @adap: the adapter
391 void cxgb4_reclaim_completed_tx(struct adapter *adap, struct sge_txq *q,
398 static inline int get_buf_size(struct adapter *adapter,
401 struct sge *s = &adapter->sge;
415 buf_size = FL_MTU_SMALL_BUFSIZE(adapter);
419 buf_size = FL_MTU_LARGE_BUFSIZE(adapter);
431 * @adap: the adapter
438 static void free_rx_bufs(struct adapter *adap, struct sge_fl *q, int n)
457 * @adap: the adapter
466 static void unmap_rx_buf(struct adapter *adap, struct sge_fl *q)
479 static inline void ring_fl_db(struct adapter *adap, struct sge_fl *q)
523 * @adap: the adapter
535 static unsigned int refill_fl(struct adapter *adap, struct sge_fl *q, int n,
632 static inline void __refill_fl(struct adapter *adap, struct sge_fl *fl)
1019 * @adap: the adapter
1025 inline void cxgb4_ring_tx_db(struct adapter *adap, struct sge_txq *q, int n)
1082 * the adapter out of order. This is required when some Work
1248 cxgb_fcoe_offload(struct sk_buff *skb, struct adapter *adap,
1286 struct adapter *adapter = pi->adapter;
1305 if (adapter->vxlan_port == udp_hdr(skb)->dest)
1307 else if (adapter->geneve_port == udp_hdr(skb)->dest)
1377 static inline void *write_tso_wr(struct adapter *adap, struct sk_buff *skb,
1408 * @adap: the adapter
1418 int t4_sge_eth_txq_egress_update(struct adapter *adap, struct sge_eth_txq *eq,
1518 struct adapter *adap;
1525 adap = pi->adapter;
1833 struct adapter *adapter;
1855 adapter = pi->adapter;
1858 txq = &adapter->sge.ethtxq[pi->first_qset + qidx];
1863 reclaim_completed_tx(adapter, &txq->q, -1, true);
1880 dev_err(adapter->pdev_dev,
1892 unlikely(cxgb4_map_skb(adapter->pdev_dev, skb,
1903 chip_ver = CHELSIO_CHIP_VERSION(adapter->params.chip);
1959 if (is_t4(adapter->params.chip))
1994 cntrl = hwcsum(adapter->params.chip, skb) |
2089 cxgb4_ring_tx_db(adapter, &txq->q, ndesc);
2130 void cxgb4_eosw_txq_free_desc(struct adapter *adap,
2172 static inline u8 ethofld_calc_tx_flits(struct adapter *adap,
2200 static void *write_eo_wr(struct adapter *adap, struct sge_eosw_txq *eosw_txq,
2266 struct adapter *adap = netdev2adap(dev);
2437 struct adapter *adap = netdev2adap(dev);
2487 struct adapter *adap = netdev2adap(dev);
2540 struct adapter *adap = netdev2adap(dev);
2668 struct adapter *adap = pi->adapter;
2839 * @adap: the adapter
2844 int t4_mgmt_tx(struct adapter *adap, struct sk_buff *skb)
3130 static inline int uld_send(struct adapter *adap, struct sk_buff *skb,
3157 * @adap: the adapter
3164 int t4_ofld_send(struct adapter *adap, struct sk_buff *skb)
3265 struct adapter *adap;
3287 * @adap: the adapter
3294 static int t4_crypto_send(struct adapter *adap, struct sk_buff *skb)
3398 static noinline int handle_trace_pkt(struct adapter *adap,
3423 * @adap: the adapter
3430 static void cxgb4_sgetim_to_hwtstamp(struct adapter *adap,
3446 struct adapter *adapter = rxq->rspq.adap;
3447 struct sge *s = &adapter->sge;
3469 cxgb4_sgetim_to_hwtstamp(adapter, skb_hwtstamps(skb),
3496 * @adapter: the adapter
3502 static noinline int t4_systim_to_hwstamp(struct adapter *adapter,
3530 * @adapter: the adapter
3537 static int t4_rx_hststamp(struct adapter *adapter, const __be64 *rsp,
3543 !is_t4(adapter->params.chip))) {
3544 ret = t4_systim_to_hwstamp(adapter, skb);
3556 * @adapter: the adapter
3562 static int t4_tx_hststamp(struct adapter *adapter, struct sk_buff *skb,
3567 if (!is_t4(adapter->params.chip) && adapter->ptp_tx_skb) {
3568 cxgb4_ptp_read_hwstamp(adapter, pi);
3596 struct adapter *adapter = rspq->adap;
3597 struct sge *s = &adapter->sge;
3632 if (CHELSIO_CHIP_VERSION(adapter->params.chip) <= CHELSIO_T5) {
3639 t4_sge_eth_txq_egress_update(adapter, txq, -1);
3644 struct adapter *adap = pi->adapter;
3682 struct adapter *adapter = q->adap;
3740 ret = t4_rx_hststamp(adapter, rsp, rxq, skb);
3751 if (!t4_tx_hststamp(adapter, skb, q->netdev))
3895 struct adapter *adapter = q->adap;
3896 struct sge *s = &adapter->sge;
3926 bufsz = get_buf_size(adapter, rsd);
3984 * this point and other adapter interrupts do not interfere (the latter
4159 static unsigned int process_intrq(struct adapter *adap)
4206 struct adapter *adap = cookie;
4221 struct adapter *adap = cookie;
4232 * @adap: the adapter
4237 irq_handler_t t4_intr_handler(struct adapter *adap)
4250 struct adapter *adap = from_timer(adap, t, sge.rx_timer);
4285 struct adapter *adap = from_timer(adap, t, sge.tx_timer);
4343 * @adapter: the adapter
4354 static void __iomem *bar2_address(struct adapter *adapter,
4362 ret = t4_bar2_sge_qregs(adapter, qid, qtype, 0,
4367 return adapter->bar2 + bar2_qoffset;
4373 int t4_sge_alloc_rxq(struct adapter *adap, struct sge_rspq *iq, bool fwevtq,
4566 static void init_txq(struct adapter *adap, struct sge_txq *q, unsigned int id)
4583 * @adap: the adapter
4590 int t4_sge_alloc_eth_txq(struct adapter *adap, struct sge_eth_txq *txq,
4683 int t4_sge_alloc_ctrl_txq(struct adapter *adap, struct sge_ctrl_txq *txq,
4741 int t4_sge_mod_ctrl_txq(struct adapter *adap, unsigned int eqid,
4753 static int t4_sge_alloc_ofld_txq(struct adapter *adap, struct sge_txq *q,
4809 int t4_sge_alloc_uld_txq(struct adapter *adap, struct sge_uld_txq *txq,
4832 int t4_sge_alloc_ethofld_txq(struct adapter *adap, struct sge_eohw_txq *txq,
4852 void free_txq(struct adapter *adap, struct sge_txq *q)
4864 void free_rspq_fl(struct adapter *adap, struct sge_rspq *rq,
4893 * @adap: the adapter
4899 void t4_free_ofld_rxqs(struct adapter *adap, int n, struct sge_ofld_rxq *q)
4907 void t4_sge_free_ethofld_txq(struct adapter *adap, struct sge_eohw_txq *txq)
4920 * @adap: the adapter
4924 void t4_free_sge_resources(struct adapter *adap)
5008 void t4_sge_start(struct adapter *adap)
5017 * @adap: the adapter
5023 void t4_sge_stop(struct adapter *adap)
5071 * @adap: the adapter
5077 static int t4_sge_init_soft(struct adapter *adap)
5169 * @adap: the adapter
5174 int t4_sge_init(struct adapter *adap)