Home
last modified time | relevance | path

Searched refs:bnad (Results 1 – 9 of 9) sorted by relevance

/linux-6.12.1/drivers/net/ethernet/brocade/bna/
Dbnad.c73 bnad_cq_cleanup(struct bnad *bnad, struct bna_ccb *ccb) in bnad_cq_cleanup() argument
89 bnad_tx_buff_unmap(struct bnad *bnad, in bnad_tx_buff_unmap() argument
103 dma_unmap_single(&bnad->pcidev->dev, in bnad_tx_buff_unmap()
118 dma_unmap_page(&bnad->pcidev->dev, in bnad_tx_buff_unmap()
137 bnad_txq_cleanup(struct bnad *bnad, struct bna_tcb *tcb) in bnad_txq_cleanup() argument
147 bnad_tx_buff_unmap(bnad, unmap_q, tcb->q_depth, i); in bnad_txq_cleanup()
159 bnad_txcmpl_process(struct bnad *bnad, struct bna_tcb *tcb) in bnad_txcmpl_process() argument
190 cons = bnad_tx_buff_unmap(bnad, unmap_q, q_depth, cons); in bnad_txcmpl_process()
204 bnad_tx_complete(struct bnad *bnad, struct bna_tcb *tcb) in bnad_tx_complete() argument
206 struct net_device *netdev = bnad->netdev; in bnad_tx_complete()
[all …]
Dbnad_ethtool.c282 struct bnad *bnad = netdev_priv(netdev); in bnad_get_drvinfo() local
290 spin_lock_irqsave(&bnad->bna_lock, flags); in bnad_get_drvinfo()
291 bfa_nw_ioc_get_attr(&bnad->bna.ioceth.ioc, ioc_attr); in bnad_get_drvinfo()
292 spin_unlock_irqrestore(&bnad->bna_lock, flags); in bnad_get_drvinfo()
299 strscpy(drvinfo->bus_info, pci_name(bnad->pcidev), in bnad_get_drvinfo()
315 struct bnad *bnad = netdev_priv(netdev); in bnad_get_coalesce() local
319 spin_lock_irqsave(&bnad->bna_lock, flags); in bnad_get_coalesce()
321 (bnad->cfg_flags & BNAD_CF_DIM_ENABLED) ? true : false; in bnad_get_coalesce()
322 spin_unlock_irqrestore(&bnad->bna_lock, flags); in bnad_get_coalesce()
324 coalesce->rx_coalesce_usecs = bnad->rx_coalescing_timeo * in bnad_get_coalesce()
[all …]
Dbnad_debugfs.c43 struct bnad *bnad = inode->i_private; in bnad_debugfs_open_fwtrc() local
61 spin_lock_irqsave(&bnad->bna_lock, flags); in bnad_debugfs_open_fwtrc()
62 rc = bfa_nw_ioc_debug_fwtrc(&bnad->bna.ioceth.ioc, in bnad_debugfs_open_fwtrc()
65 spin_unlock_irqrestore(&bnad->bna_lock, flags); in bnad_debugfs_open_fwtrc()
71 netdev_warn(bnad->netdev, "failed to collect fwtrc\n"); in bnad_debugfs_open_fwtrc()
83 struct bnad *bnad = inode->i_private; in bnad_debugfs_open_fwsave() local
101 spin_lock_irqsave(&bnad->bna_lock, flags); in bnad_debugfs_open_fwsave()
102 rc = bfa_nw_ioc_debug_fwsave(&bnad->bna.ioceth.ioc, in bnad_debugfs_open_fwsave()
105 spin_unlock_irqrestore(&bnad->bna_lock, flags); in bnad_debugfs_open_fwsave()
111 netdev_warn(bnad->netdev, "failed to collect fwsave\n"); in bnad_debugfs_open_fwsave()
[all …]
Dbnad.h48 struct bnad *bnad; member
95 #define BNAD_NUM_TXQ (bnad->num_tx * bnad->num_txq_per_tx)
96 #define BNAD_NUM_RXP (bnad->num_rx * bnad->num_rxp_per_rx)
117 struct bnad *bnad; member
277 struct bnad { struct
378 int bnad_mac_addr_set_locked(struct bnad *bnad, const u8 *mac_addr); argument
379 int bnad_enable_default_bcast(struct bnad *bnad);
380 void bnad_restore_vlans(struct bnad *bnad, u32 rx_id);
385 void bnad_tx_coalescing_timeo_set(struct bnad *bnad);
386 void bnad_rx_coalescing_timeo_set(struct bnad *bnad);
[all …]
Dbna_types.h30 struct bnad;
325 void (*stop_cbfn)(struct bnad *bnad);
326 struct bnad *stop_cbarg;
355 void (*mtu_cbfn)(struct bnad *);
379 void (*adminup_cbfn)(struct bnad *, enum bna_cb_status);
381 void (*link_cbfn)(struct bnad *, enum bna_link_status);
433 struct bnad *bnad; member
482 void (*tcb_setup_cbfn)(struct bnad *, struct bna_tcb *);
483 void (*tcb_destroy_cbfn)(struct bnad *, struct bna_tcb *);
484 void (*tx_stall_cbfn)(struct bnad *, struct bna_tx *);
[all …]
Dbna.h104 void (*cbfn)(struct bnad *, struct bna_rx *); \
105 struct bnad *cbarg; \
260 void bna_init(struct bna *bna, struct bnad *bnad,
308 struct bna_tx *bna_tx_create(struct bna *bna, struct bnad *bnad,
345 struct bna_rx *bna_rx_create(struct bna *bna, struct bnad *bnad,
361 void (*cbfn)(struct bnad *,
391 void (*cbfn)(struct bnad *));
404 void bnad_cb_ethport_link_status(struct bnad *bnad,
408 void bnad_cb_ioceth_ready(struct bnad *bnad);
409 void bnad_cb_ioceth_failed(struct bnad *bnad);
[all …]
Dbna_enet.c119 ethport->link_cbfn(ethport->bna->bnad, BNA_LINK_DOWN); in bna_bfi_ethport_admin_rsp()
229 bnad_cb_stats_get(bna->bnad, BNA_CB_SUCCESS, &bna->stats); in bna_bfi_stats_get_rsp()
239 ethport->link_cbfn(ethport->bna->bnad, ethport->link_status); in bna_bfi_ethport_linkup_aen()
249 ethport->link_cbfn(ethport->bna->bnad, BNA_LINK_DOWN); in bna_bfi_ethport_linkdown_aen()
397 void (*cbfn)(struct bnad *, enum bna_cb_status); \
400 cbfn((ethport)->bna->bnad, status); \
773 ethport->link_cbfn(ethport->bna->bnad, BNA_LINK_DOWN); in bna_ethport_fail()
882 void (*cbfn)(struct bnad *); \
885 cbfn((enet)->bna->bnad); \
1274 (*cbfn)(enet->bna->bnad); in bna_enet_disable()
[all …]
Dbna_tx_rx.c738 rxf->cam_fltr_cbarg = rx->bna->bnad; in bna_rx_ucast_set()
747 void (*cbfn)(struct bnad *, struct bna_rx *)) in bna_rx_mcast_add() argument
756 cbfn(rx->bna->bnad, rx); in bna_rx_mcast_add()
767 rxf->cam_fltr_cbarg = rx->bna->bnad; in bna_rx_mcast_add()
1286 (rx)->rx_stall_cbfn((rx)->bna->bnad, (rx)); \
1370 rx->rx_cleanup_cbfn(rx->bna->bnad, rx); in bna_rx_sm_stop_wait()
1407 rx->rx_post_cbfn(rx->bna->bnad, rx); in bna_rx_sm_rxf_start_wait_entry()
1424 rx->rx_cleanup_cbfn(rx->bna->bnad, rx); in bna_rx_sm_rxf_stop_wait()
1495 rx->rx_cleanup_cbfn(rx->bna->bnad, rx); in bna_rx_sm_started()
1516 rx->rx_cleanup_cbfn(rx->bna->bnad, rx); in bna_rx_sm_rxf_start_wait()
[all …]
DMakefile10 bna-objs := bnad.o bnad_ethtool.o bnad_debugfs.o bna_enet.o bna_tx_rx.o