Home
last modified time | relevance | path

Searched full:bp (Results 1 – 25 of 508) sorted by relevance

12345678910>>...21

/linux/drivers/net/ethernet/broadcom/
H A Dbnx2.c243 static void bnx2_init_napi(struct bnx2 *bp);
244 static void bnx2_del_napi(struct bnx2 *bp);
246 static inline u32 bnx2_tx_avail(struct bnx2 *bp, struct bnx2_tx_ring_info *txr) in bnx2_tx_avail() argument
259 return bp->tx_ring_size - diff; in bnx2_tx_avail()
263 bnx2_reg_rd_ind(struct bnx2 *bp, u32 offset) in bnx2_reg_rd_ind() argument
268 spin_lock_irqsave(&bp->indirect_lock, flags); in bnx2_reg_rd_ind()
269 BNX2_WR(bp, BNX2_PCICFG_REG_WINDOW_ADDRESS, offset); in bnx2_reg_rd_ind()
270 val = BNX2_RD(bp, BNX2_PCICFG_REG_WINDOW); in bnx2_reg_rd_ind()
271 spin_unlock_irqrestore(&bp->indirect_lock, flags); in bnx2_reg_rd_ind()
276 bnx2_reg_wr_ind(struct bnx2 *bp, u32 offset, u32 val) in bnx2_reg_wr_ind() argument
[all …]
H A Db44.c74 #define TX_RING_GAP(BP) \ argument
75 (B44_TX_RING_SIZE - (BP)->tx_pending)
76 #define TX_BUFFS_AVAIL(BP) \ argument
77 (((BP)->tx_cons <= (BP)->tx_prod) ? \
78 (BP)->tx_cons + (BP)->tx_pending - (BP)->tx_prod : \
79 (BP)->tx_cons - (BP)->tx_prod - TX_RING_GAP(BP))
165 static inline unsigned long br32(const struct b44 *bp, unsigned long reg) in br32() argument
167 return ssb_read32(bp->sdev, reg); in br32()
170 static inline void bw32(const struct b44 *bp, in bw32() argument
173 ssb_write32(bp->sdev, reg, val); in bw32()
[all …]
/linux/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_main.c306 static int bnx2x_set_storm_rx_mode(struct bnx2x *bp);
317 static void __storm_memset_dma_mapping(struct bnx2x *bp, in __storm_memset_dma_mapping() argument
320 REG_WR(bp, addr, U64_LO(mapping)); in __storm_memset_dma_mapping()
321 REG_WR(bp, addr + 4, U64_HI(mapping)); in __storm_memset_dma_mapping()
324 static void storm_memset_spq_addr(struct bnx2x *bp, in storm_memset_spq_addr() argument
330 __storm_memset_dma_mapping(bp, addr, mapping); in storm_memset_spq_addr()
333 static void storm_memset_vf_to_pf(struct bnx2x *bp, u16 abs_fid, in storm_memset_vf_to_pf() argument
336 REG_WR8(bp, BAR_XSTRORM_INTMEM + XSTORM_VF_TO_PF_OFFSET(abs_fid), in storm_memset_vf_to_pf()
338 REG_WR8(bp, BAR_CSTRORM_INTMEM + CSTORM_VF_TO_PF_OFFSET(abs_fid), in storm_memset_vf_to_pf()
340 REG_WR8(bp, BAR_TSTRORM_INTMEM + TSTORM_VF_TO_PF_OFFSET(abs_fid), in storm_memset_vf_to_pf()
[all …]
H A Dbnx2x.h53 #define BNX2X_MIN_MSIX_VEC_CNT(bp) ((bp)->min_msix_vec_cnt) argument
94 bp->dev ? (bp->dev->name) : "?", \
99 if (unlikely(bp->msg_enable & (__mask))) \
105 if (unlikely((bp->msg_enable & (__mask)) == __mask)) \
111 if (unlikely(bp->msg_enable & (__mask))) \
118 if (unlikely(netif_msg_probe(bp))) \
121 bp->dev ? (bp->dev->name) : "?", \
130 bp->dev ? (bp->dev->name) : "?", \
140 if (unlikely(netif_msg_probe(bp))) \
141 dev_info(&bp->pdev->dev, fmt, ##__VA_ARGS__); \
[all …]
H A Dbnx2x_stats.c44 static inline u16 bnx2x_get_port_stats_dma_len(struct bnx2x *bp) in bnx2x_get_port_stats_dma_len() argument
49 if (SHMEM2_HAS(bp, sizeof_port_stats)) { in bnx2x_get_port_stats_dma_len()
50 u32 size = SHMEM2_RD(bp, sizeof_port_stats); in bnx2x_get_port_stats_dma_len()
66 if (bp->flags & BC_SUPPORTS_PFC_STATS) { in bnx2x_get_port_stats_dma_len()
84 static void bnx2x_dp_stats(struct bnx2x *bp) in bnx2x_dp_stats() argument
96 bp->fw_stats_req->hdr.cmd_num, in bnx2x_dp_stats()
97 bp->fw_stats_req->hdr.reserved0, in bnx2x_dp_stats()
98 bp->fw_stats_req->hdr.drv_stats_counter, in bnx2x_dp_stats()
99 bp->fw_stats_req->hdr.reserved1, in bnx2x_dp_stats()
100 bp->fw_stats_req->hdr.stats_counters_addrs.hi, in bnx2x_dp_stats()
[all …]
H A Dbnx2x_cmn.h39 dma_free_coherent(&bp->pdev->dev, size, (void *)x, y); \
55 void *x = dma_alloc_coherent(&bp->pdev->dev, size, y, GFP_KERNEL); \
64 void *x = dma_alloc_coherent(&bp->pdev->dev, size, y, GFP_KERNEL); \
82 * @bp: driver handle
87 u32 bnx2x_send_unload_req(struct bnx2x *bp, int unload_mode);
92 * @bp: driver handle
95 void bnx2x_send_unload_done(struct bnx2x *bp, bool keep_link);
100 * @bp: driver handle
106 int bnx2x_rss(struct bnx2x *bp, struct bnx2x_rss_config_obj *rss_obj,
112 * @bp: driver handle
[all …]
H A Dbnx2x_cmn.c36 static void bnx2x_free_fp_mem_cnic(struct bnx2x *bp);
37 static int bnx2x_alloc_fp_mem_cnic(struct bnx2x *bp);
38 static int bnx2x_alloc_fp_mem(struct bnx2x *bp);
41 static void bnx2x_add_all_napi_cnic(struct bnx2x *bp) in bnx2x_add_all_napi_cnic() argument
46 for_each_rx_queue_cnic(bp, i) { in bnx2x_add_all_napi_cnic()
47 netif_napi_add(bp->dev, &bnx2x_fp(bp, i, napi), bnx2x_poll); in bnx2x_add_all_napi_cnic()
51 static void bnx2x_add_all_napi(struct bnx2x *bp) in bnx2x_add_all_napi() argument
56 for_each_eth_queue(bp, i) { in bnx2x_add_all_napi()
57 netif_napi_add(bp->dev, &bnx2x_fp(bp, i, napi), bnx2x_poll); in bnx2x_add_all_napi()
61 static int bnx2x_calc_num_queues(struct bnx2x *bp) in bnx2x_calc_num_queues() argument
[all …]
H A Dbnx2x_sriov.c29 static int bnx2x_vf_op_prep(struct bnx2x *bp, int vfidx,
35 static void storm_memset_vf_to_pf(struct bnx2x *bp, u16 abs_fid, in storm_memset_vf_to_pf() argument
38 REG_WR8(bp, BAR_XSTRORM_INTMEM + XSTORM_VF_TO_PF_OFFSET(abs_fid), in storm_memset_vf_to_pf()
40 REG_WR8(bp, BAR_CSTRORM_INTMEM + CSTORM_VF_TO_PF_OFFSET(abs_fid), in storm_memset_vf_to_pf()
42 REG_WR8(bp, BAR_TSTRORM_INTMEM + TSTORM_VF_TO_PF_OFFSET(abs_fid), in storm_memset_vf_to_pf()
44 REG_WR8(bp, BAR_USTRORM_INTMEM + USTORM_VF_TO_PF_OFFSET(abs_fid), in storm_memset_vf_to_pf()
48 static void storm_memset_func_en(struct bnx2x *bp, u16 abs_fid, in storm_memset_func_en() argument
51 REG_WR8(bp, BAR_XSTRORM_INTMEM + XSTORM_FUNC_EN_OFFSET(abs_fid), in storm_memset_func_en()
53 REG_WR8(bp, BAR_CSTRORM_INTMEM + CSTORM_FUNC_EN_OFFSET(abs_fid), in storm_memset_func_en()
55 REG_WR8(bp, BAR_TSTRORM_INTMEM + TSTORM_FUNC_EN_OFFSET(abs_fid), in storm_memset_func_en()
[all …]
H A Dbnx2x_sriov.h219 #define BNX2X_NR_VIRTFN(bp) ((bp)->vfdb->sriov.nr_virtfn) argument
221 #define for_each_vf(bp, var) \ argument
222 for ((var) = 0; (var) < BNX2X_NR_VIRTFN(bp); (var)++)
232 #define HW_VF_HANDLE(bp, abs_vfid) \ argument
233 (u16)(BP_ABS_FUNC((bp)) | (1<<3) | ((u16)(abs_vfid) << 4))
240 #define GET_NUM_VFS_PER_PATH(bp) 64 /* use max possible value */ argument
241 #define GET_NUM_VFS_PER_PF(bp) ((bp)->vfdb ? (bp)->vfdb->sriov.total \ argument
247 void bnx2x_lock_vf_pf_channel(struct bnx2x *bp, struct bnx2x_virtf *vf,
250 void bnx2x_unlock_vf_pf_channel(struct bnx2x *bp, struct bnx2x_virtf *vf,
318 #define BP_VFDB(bp) ((bp)->vfdb) argument
[all …]
H A Dbnx2x_dcb.c35 static void bnx2x_pfc_set_pfc(struct bnx2x *bp);
36 static void bnx2x_dcbx_update_ets_params(struct bnx2x *bp);
37 static void bnx2x_dcbx_get_ets_pri_pg_tbl(struct bnx2x *bp,
40 static void bnx2x_dcbx_get_num_pg_traf_type(struct bnx2x *bp,
43 static void bnx2x_dcbx_fill_cos_params(struct bnx2x *bp,
47 static void bnx2x_dcbx_separate_pauseable_from_non(struct bnx2x *bp,
51 static void bnx2x_dcbx_fw_struct(struct bnx2x *bp,
55 static void bnx2x_read_data(struct bnx2x *bp, u32 *buff, in bnx2x_read_data() argument
60 *buff = REG_RD(bp, addr + i); in bnx2x_read_data()
63 static void bnx2x_write_data(struct bnx2x *bp, u32 *buff, in bnx2x_write_data() argument
[all …]
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt.c333 bnxt_writeq(bp, (db)->db_key64 | DBR_TYPE_NQ | DB_RING_IDX(db, idx),\
337 bnxt_writeq(bp, (db)->db_key64 | DBR_TYPE_NQ_MASK | \
344 bnxt_writeq(bp, (db)->db_key64 | DBR_TYPE_NQ_ARM | \
347 static void bnxt_db_nq(struct bnxt *bp, struct bnxt_db_info *db, u32 idx) in bnxt_db_nq() argument
349 if (bp->flags & BNXT_FLAG_CHIP_P7) in bnxt_db_nq()
351 else if (bp->flags & BNXT_FLAG_CHIP_P5_PLUS) in bnxt_db_nq()
357 static void bnxt_db_nq_arm(struct bnxt *bp, struct bnxt_db_info *db, u32 idx) in bnxt_db_nq_arm() argument
359 if (bp->flags & BNXT_FLAG_CHIP_P5_PLUS) in bnxt_db_nq_arm()
365 static void bnxt_db_cq(struct bnxt *bp, struct bnxt_db_info *db, u32 idx) in bnxt_db_cq() argument
367 if (bp in bnxt_db_cq()
374 bnxt_queue_fw_reset_work(struct bnxt * bp,unsigned long delay) bnxt_queue_fw_reset_work() argument
385 __bnxt_queue_sp_work(struct bnxt * bp) __bnxt_queue_sp_work() argument
393 bnxt_queue_sp_work(struct bnxt * bp,unsigned int event) bnxt_queue_sp_work() argument
399 bnxt_sched_reset_rxr(struct bnxt * bp,struct bnxt_rx_ring_info * rxr) bnxt_sched_reset_rxr() argument
412 bnxt_sched_reset_txr(struct bnxt * bp,struct bnxt_tx_ring_info * txr,u16 curr) bnxt_sched_reset_txr() argument
460 bnxt_txr_db_kick(struct bnxt * bp,struct bnxt_tx_ring_info * txr,u16 prod) bnxt_txr_db_kick() argument
471 struct bnxt *bp = netdev_priv(dev); bnxt_start_xmit() local
809 __bnxt_tx_int(struct bnxt * bp,struct bnxt_tx_ring_info * txr,int budget) __bnxt_tx_int() argument
889 bnxt_tx_int(struct bnxt * bp,struct bnxt_napi * bnapi,int budget) bnxt_tx_int() argument
908 __bnxt_alloc_rx_page(struct bnxt * bp,dma_addr_t * mapping,struct bnxt_rx_ring_info * rxr,unsigned int * offset,gfp_t gfp) __bnxt_alloc_rx_page() argument
929 __bnxt_alloc_rx_netmem(struct bnxt * bp,dma_addr_t * mapping,struct bnxt_rx_ring_info * rxr,unsigned int * offset,gfp_t gfp) __bnxt_alloc_rx_netmem() argument
950 __bnxt_alloc_rx_frag(struct bnxt * bp,dma_addr_t * mapping,struct bnxt_rx_ring_info * rxr,gfp_t gfp) __bnxt_alloc_rx_frag() argument
966 bnxt_alloc_rx_data(struct bnxt * bp,struct bnxt_rx_ring_info * rxr,u16 prod,gfp_t gfp) bnxt_alloc_rx_data() argument
1003 struct bnxt *bp = rxr->bnapi->bp; bnxt_reuse_rx_data() local
1030 bnxt_alloc_rx_netmem(struct bnxt * bp,struct bnxt_rx_ring_info * rxr,u16 prod,gfp_t gfp) bnxt_alloc_rx_netmem() argument
1060 bnxt_get_agg(struct bnxt * bp,struct bnxt_cp_ring_info * cpr,u16 cp_cons,u16 curr) bnxt_get_agg() argument
1072 bnxt_get_tpa_agg_p5(struct bnxt * bp,struct bnxt_rx_ring_info * rxr,u16 agg_id,u16 curr) bnxt_get_tpa_agg_p5() argument
1085 struct bnxt *bp = bnapi->bp; bnxt_reuse_rx_agg_bufs() local
1138 bnxt_rx_multi_page_skb(struct bnxt * bp,struct bnxt_rx_ring_info * rxr,u16 cons,void * data,u8 * data_ptr,dma_addr_t dma_addr,unsigned int offset_and_len) bnxt_rx_multi_page_skb() argument
1170 bnxt_rx_page_skb(struct bnxt * bp,struct bnxt_rx_ring_info * rxr,u16 cons,void * data,u8 * data_ptr,dma_addr_t dma_addr,unsigned int offset_and_len) bnxt_rx_page_skb() argument
1217 bnxt_rx_skb(struct bnxt * bp,struct bnxt_rx_ring_info * rxr,u16 cons,void * data,u8 * data_ptr,dma_addr_t dma_addr,unsigned int offset_and_len) bnxt_rx_skb() argument
1247 __bnxt_rx_agg_netmems(struct bnxt * bp,struct bnxt_cp_ring_info * cpr,u16 idx,u32 agg_bufs,bool tpa,struct sk_buff * skb,struct xdp_buff * xdp) __bnxt_rx_agg_netmems() argument
1338 bnxt_rx_agg_netmems_skb(struct bnxt * bp,struct bnxt_cp_ring_info * cpr,struct sk_buff * skb,u16 idx,u32 agg_bufs,bool tpa) bnxt_rx_agg_netmems_skb() argument
1356 bnxt_rx_agg_netmems_xdp(struct bnxt * bp,struct bnxt_cp_ring_info * cpr,struct xdp_buff * xdp,u16 idx,u32 agg_bufs,bool tpa) bnxt_rx_agg_netmems_xdp() argument
1377 bnxt_agg_bufs_valid(struct bnxt * bp,struct bnxt_cp_ring_info * cpr,u8 agg_bufs,u32 * raw_cons) bnxt_agg_bufs_valid() argument
1394 struct bnxt *bp = bnapi->bp; bnxt_copy_data() local
1448 bnxt_discard_rx(struct bnxt * bp,struct bnxt_cp_ring_info * cpr,u32 * raw_cons,void * cmp) bnxt_discard_rx() argument
1538 bnxt_tpa_start(struct bnxt * bp,struct bnxt_rx_ring_info * rxr,u8 cmp_type,struct rx_tpa_start_cmp * tpa_start,struct rx_tpa_start_cmp_ext * tpa_start1) bnxt_tpa_start() argument
1800 bnxt_gro_skb(struct bnxt * bp,struct bnxt_tpa_info * tpa_info,struct rx_tpa_end_cmp * tpa_end,struct rx_tpa_end_cmp_ext * tpa_end1,struct sk_buff * skb,struct bnxt_rx_sw_stats * rx_stats) bnxt_gro_skb() argument
1836 bnxt_get_pkt_dev(struct bnxt * bp,u16 cfa_code) bnxt_get_pkt_dev() argument
1844 bnxt_tpa_end(struct bnxt * bp,struct bnxt_cp_ring_info * cpr,u32 * raw_cons,struct rx_tpa_end_cmp * tpa_end,struct rx_tpa_end_cmp_ext * tpa_end1,u8 * event) bnxt_tpa_end() argument
1997 bnxt_tpa_agg(struct bnxt * bp,struct bnxt_rx_ring_info * rxr,struct rx_agg_cmp * rx_agg) bnxt_tpa_agg() argument
2009 bnxt_deliver_skb(struct bnxt * bp,struct bnxt_napi * bnapi,struct sk_buff * skb) bnxt_deliver_skb() argument
2023 bnxt_rx_ts_valid(struct bnxt * bp,u32 flags,struct rx_cmp_ext * rxcmp1,u32 * cmpl_ts) bnxt_rx_ts_valid() argument
2080 bnxt_rss_ext_op(struct bnxt * bp,struct rx_cmp * rxcmp) bnxt_rss_ext_op() argument
2104 bnxt_rx_pkt(struct bnxt * bp,struct bnxt_cp_ring_info * cpr,u32 * raw_cons,u8 * event) bnxt_rx_pkt() argument
2384 bnxt_force_rx_discard(struct bnxt * bp,struct bnxt_cp_ring_info * cpr,u32 * raw_cons,u8 * event) bnxt_force_rx_discard() argument
2429 bnxt_fw_health_readl(struct bnxt * bp,int reg_idx) bnxt_fw_health_readl() argument
2456 bnxt_agg_ring_id_to_grp_idx(struct bnxt * bp,u16 ring_id) bnxt_agg_ring_id_to_grp_idx() argument
2473 struct bnxt *bp = container_of(link_info, struct bnxt, link_info); bnxt_get_force_speed() local
2484 struct bnxt *bp = container_of(link_info, struct bnxt, link_info); bnxt_set_force_speed() local
2516 struct bnxt *bp = container_of(link_info, struct bnxt, link_info); bnxt_set_auto_speed() local
2528 struct bnxt *bp = container_of(link_info, struct bnxt, link_info); bnxt_force_speed_updated() local
2546 struct bnxt *bp = container_of(link_info, struct bnxt, link_info); bnxt_auto_speed_updated() local
2559 bnxt_bs_trace_avail(struct bnxt * bp,u16 type) bnxt_bs_trace_avail() argument
2568 bnxt_bs_trace_init(struct bnxt * bp,struct bnxt_ctx_mem_type * ctxm) bnxt_bs_trace_init() argument
2631 bnxt_event_error_report(struct bnxt * bp,u32 data1,u32 data2) bnxt_event_error_report() argument
2720 bnxt_async_event_process(struct bnxt * bp,struct hwrm_async_event_cmpl * cmpl) bnxt_async_event_process() argument
2946 bnxt_hwrm_handler(struct bnxt * bp,struct tx_cmp * txcmp) bnxt_hwrm_handler() argument
2985 bnxt_vnic_is_active(struct bnxt * bp) bnxt_vnic_is_active() argument
2995 struct bnxt *bp = bnapi->bp; bnxt_msix() local
3005 bnxt_has_work(struct bnxt * bp,struct bnxt_cp_ring_info * cpr) bnxt_has_work() argument
3016 __bnxt_poll_work(struct bnxt * bp,struct bnxt_cp_ring_info * cpr,int budget) __bnxt_poll_work() argument
3122 __bnxt_poll_work_done(struct bnxt * bp,struct bnxt_napi * bnapi,int budget) __bnxt_poll_work_done() argument
3142 bnxt_poll_work(struct bnxt * bp,struct bnxt_cp_ring_info * cpr,int budget) bnxt_poll_work() argument
3163 struct bnxt *bp = bnapi->bp; bnxt_poll_nitroa0() local
3239 struct bnxt *bp = bnapi->bp; bnxt_poll() local
3274 __bnxt_poll_cqs(struct bnxt * bp,struct bnxt_napi * bnapi,int budget) __bnxt_poll_cqs() argument
3291 __bnxt_poll_cqs_done(struct bnxt * bp,struct bnxt_napi * bnapi,u64 dbr_type,int budget) __bnxt_poll_cqs_done() argument
3325 struct bnxt *bp = bnapi->bp; bnxt_poll_p5() local
3405 bnxt_free_one_tx_ring_skbs(struct bnxt * bp,struct bnxt_tx_ring_info * txr,int idx) bnxt_free_one_tx_ring_skbs() argument
3468 bnxt_free_tx_skbs(struct bnxt * bp) bnxt_free_tx_skbs() argument
3488 bnxt_free_one_rx_ring(struct bnxt * bp,struct bnxt_rx_ring_info * rxr) bnxt_free_one_rx_ring() argument
3509 bnxt_free_one_rx_agg_ring(struct bnxt * bp,struct bnxt_rx_ring_info * rxr) bnxt_free_one_rx_agg_ring() argument
3529 bnxt_free_one_tpa_info_data(struct bnxt * bp,struct bnxt_rx_ring_info * rxr) bnxt_free_one_tpa_info_data() argument
3546 bnxt_free_one_rx_ring_skbs(struct bnxt * bp,struct bnxt_rx_ring_info * rxr) bnxt_free_one_rx_ring_skbs() argument
3574 bnxt_free_rx_skbs(struct bnxt * bp) bnxt_free_rx_skbs() argument
3585 bnxt_free_skbs(struct bnxt * bp) bnxt_free_skbs() argument
3608 __bnxt_copy_ring(struct bnxt * bp,struct bnxt_ring_mem_info * rmem,void * buf,size_t offset,size_t head,size_t tail) __bnxt_copy_ring() argument
3637 bnxt_free_ring(struct bnxt * bp,struct bnxt_ring_mem_info * rmem) bnxt_free_ring() argument
3670 bnxt_alloc_ring(struct bnxt * bp,struct bnxt_ring_mem_info * rmem) bnxt_alloc_ring() argument
3723 bnxt_free_one_tpa_info(struct bnxt * bp,struct bnxt_rx_ring_info * rxr) bnxt_free_one_tpa_info() argument
3740 bnxt_free_tpa_info(struct bnxt * bp) bnxt_free_tpa_info() argument
3751 bnxt_alloc_one_tpa_info(struct bnxt * bp,struct bnxt_rx_ring_info * rxr) bnxt_alloc_one_tpa_info() argument
3776 bnxt_alloc_tpa_info(struct bnxt * bp) bnxt_alloc_tpa_info() argument
3797 bnxt_free_rx_rings(struct bnxt * bp) bnxt_free_rx_rings() argument
3830 bnxt_rx_agg_ring_fill_level(struct bnxt * bp,struct bnxt_rx_ring_info * rxr) bnxt_rx_agg_ring_fill_level() argument
3845 bnxt_alloc_rx_page_pool(struct bnxt * bp,struct bnxt_rx_ring_info * rxr,int numa_node) bnxt_alloc_rx_page_pool() argument
3902 bnxt_alloc_rx_agg_bmap(struct bnxt * bp,struct bnxt_rx_ring_info * rxr) bnxt_alloc_rx_agg_bmap() argument
3915 bnxt_alloc_rx_rings(struct bnxt * bp) bnxt_alloc_rx_rings() argument
3976 bnxt_free_tx_rings(struct bnxt * bp) bnxt_free_tx_rings() argument
4000 BNXT_TC_TO_RING_BASE(bp,tc) global() argument
4003 BNXT_RING_TO_TC_OFF(bp,tx) global() argument
4006 BNXT_RING_TO_TC(bp,tx) global() argument
4009 bnxt_alloc_tx_rings(struct bnxt * bp) bnxt_alloc_tx_rings() argument
4093 bnxt_free_all_cp_arrays(struct bnxt * bp) bnxt_free_all_cp_arrays() argument
4108 bnxt_alloc_all_cp_arrays(struct bnxt * bp) bnxt_alloc_all_cp_arrays() argument
4125 bnxt_free_cp_rings(struct bnxt * bp) bnxt_free_cp_rings() argument
4162 bnxt_alloc_cp_sub_ring(struct bnxt * bp,struct bnxt_cp_ring_info * cpr) bnxt_alloc_cp_sub_ring() argument
4189 bnxt_alloc_cp_rings(struct bnxt * bp) bnxt_alloc_cp_rings() argument
4264 bnxt_init_rx_ring_struct(struct bnxt * bp,struct bnxt_rx_ring_info * rxr) bnxt_init_rx_ring_struct() argument
4289 bnxt_reset_rx_ring_struct(struct bnxt * bp,struct bnxt_rx_ring_info * rxr) bnxt_reset_rx_ring_struct() argument
4323 bnxt_init_ring_struct(struct bnxt * bp) bnxt_init_ring_struct() argument
4409 bnxt_alloc_one_rx_ring_skb(struct bnxt * bp,struct bnxt_rx_ring_info * rxr,int ring_nr) bnxt_alloc_one_rx_ring_skb() argument
4428 bnxt_alloc_one_rx_ring_netmem(struct bnxt * bp,struct bnxt_rx_ring_info * rxr,int ring_nr) bnxt_alloc_one_rx_ring_netmem() argument
4449 bnxt_alloc_one_tpa_info_data(struct bnxt * bp,struct bnxt_rx_ring_info * rxr) bnxt_alloc_one_tpa_info_data() argument
4470 bnxt_alloc_one_rx_ring(struct bnxt * bp,int ring_nr) bnxt_alloc_one_rx_ring() argument
4490 bnxt_init_one_rx_ring_rxbd(struct bnxt * bp,struct bnxt_rx_ring_info * rxr) bnxt_init_one_rx_ring_rxbd() argument
4507 bnxt_init_one_rx_agg_ring_rxbd(struct bnxt * bp,struct bnxt_rx_ring_info * rxr) bnxt_init_one_rx_agg_ring_rxbd() argument
4530 bnxt_init_one_rx_ring(struct bnxt * bp,int ring_nr) bnxt_init_one_rx_ring() argument
4550 bnxt_init_cp_rings(struct bnxt * bp) bnxt_init_cp_rings() argument
4574 bnxt_init_rx_rings(struct bnxt * bp) bnxt_init_rx_rings() argument
4595 bnxt_init_tx_rings(struct bnxt * bp) bnxt_init_tx_rings() argument
4617 bnxt_free_ring_grps(struct bnxt * bp) bnxt_free_ring_grps() argument
4623 bnxt_init_ring_grps(struct bnxt * bp,bool irq_re_init) bnxt_init_ring_grps() argument
4644 bnxt_free_vnics(struct bnxt * bp) bnxt_free_vnics() argument
4651 bnxt_alloc_vnics(struct bnxt * bp) bnxt_alloc_vnics() argument
4675 bnxt_init_vnics(struct bnxt * bp) bnxt_init_vnics() argument
4742 bnxt_set_tpa_flags(struct bnxt * bp) bnxt_set_tpa_flags() argument
4753 bnxt_init_ring_params(struct bnxt * bp) bnxt_init_ring_params() argument
4767 bnxt_set_ring_params(struct bnxt * bp) bnxt_set_ring_params() argument
4866 __bnxt_set_rx_skb_mode(struct bnxt * bp,bool page_mode) __bnxt_set_rx_skb_mode() argument
4895 bnxt_set_rx_skb_mode(struct bnxt * bp,bool page_mode) bnxt_set_rx_skb_mode() argument
4913 bnxt_free_vnic_attributes(struct bnxt * bp) bnxt_free_vnic_attributes() argument
4949 bnxt_alloc_vnic_attributes(struct bnxt * bp) bnxt_alloc_vnic_attributes() argument
5026 bnxt_free_hwrm_resources(struct bnxt * bp) bnxt_free_hwrm_resources() argument
5039 bnxt_alloc_hwrm_resources(struct bnxt * bp) bnxt_alloc_hwrm_resources() argument
5052 bnxt_free_stats_mem(struct bnxt * bp,struct bnxt_stats_mem * stats) bnxt_free_stats_mem() argument
5065 bnxt_alloc_stats_mem(struct bnxt * bp,struct bnxt_stats_mem * stats,bool alloc_masks) bnxt_alloc_stats_mem() argument
5105 bnxt_hwrm_func_qstat_ext(struct bnxt * bp,struct bnxt_stats_mem * stats) bnxt_hwrm_func_qstat_ext() argument
5137 bnxt_init_stats(struct bnxt * bp) bnxt_init_stats() argument
5208 bnxt_free_port_stats(struct bnxt * bp) bnxt_free_port_stats() argument
5218 bnxt_free_ring_stats(struct bnxt * bp) bnxt_free_ring_stats() argument
5236 bnxt_alloc_stats(struct bnxt * bp) bnxt_alloc_stats() argument
5303 bnxt_clear_ring_indices(struct bnxt * bp) bnxt_clear_ring_indices() argument
5339 bnxt_insert_usr_fltr(struct bnxt * bp,struct bnxt_filter_base * fltr) bnxt_insert_usr_fltr() argument
5349 bnxt_del_one_usr_fltr(struct bnxt * bp,struct bnxt_filter_base * fltr) bnxt_del_one_usr_fltr() argument
5355 bnxt_clear_usr_fltrs(struct bnxt * bp,bool all) bnxt_clear_usr_fltrs() argument
5366 bnxt_del_fltr(struct bnxt * bp,struct bnxt_filter_base * fltr) bnxt_del_fltr() argument
5377 bnxt_free_ntp_fltrs(struct bnxt * bp,bool all) bnxt_free_ntp_fltrs() argument
5408 bnxt_alloc_ntp_fltrs(struct bnxt * bp) bnxt_alloc_ntp_fltrs() argument
5427 bnxt_free_l2_filters(struct bnxt * bp,bool all) bnxt_free_l2_filters() argument
5446 bnxt_init_l2_fltr_tbl(struct bnxt * bp) bnxt_init_l2_fltr_tbl() argument
5455 bnxt_free_mem(struct bnxt * bp,bool irq_re_init) bnxt_free_mem() argument
5484 bnxt_alloc_mem(struct bnxt * bp,bool irq_re_init) bnxt_alloc_mem() argument
5629 bnxt_disable_int(struct bnxt * bp) bnxt_disable_int() argument
5646 bnxt_cp_num_to_irq_num(struct bnxt * bp,int n) bnxt_cp_num_to_irq_num() argument
5655 bnxt_disable_int_sync(struct bnxt * bp) bnxt_disable_int_sync() argument
5672 bnxt_enable_int(struct bnxt * bp) bnxt_enable_int() argument
5685 bnxt_hwrm_func_drv_rgtr(struct bnxt * bp,unsigned long * bmap,int bmap_size,bool async_only) bnxt_hwrm_func_drv_rgtr() argument
5786 bnxt_hwrm_func_drv_unrgtr(struct bnxt * bp) bnxt_hwrm_func_drv_unrgtr() argument
5802 bnxt_hwrm_tunnel_dst_port_free(struct bnxt * bp,u8 tunnel_type) bnxt_hwrm_tunnel_dst_port_free() argument
5849 bnxt_hwrm_tunnel_dst_port_alloc(struct bnxt * bp,__be16 port,u8 tunnel_type) bnxt_hwrm_tunnel_dst_port_alloc() argument
5897 bnxt_hwrm_cfa_l2_set_rx_mask(struct bnxt * bp,u16 vnic_id) bnxt_hwrm_cfa_l2_set_rx_mask() argument
5916 bnxt_del_l2_filter(struct bnxt * bp,struct bnxt_l2_filter * fltr) bnxt_del_l2_filter() argument
5935 __bnxt_lookup_l2_filter(struct bnxt * bp,struct bnxt_l2_key * key,u32 idx) __bnxt_lookup_l2_filter() argument
5952 bnxt_lookup_l2_filter(struct bnxt * bp,struct bnxt_l2_key * key,u32 idx) bnxt_lookup_l2_filter() argument
5966 BNXT_IPV4_4TUPLE(bp,fkeys) global() argument
5972 BNXT_IPV6_4TUPLE(bp,fkeys) global() argument
5978 bnxt_get_rss_flow_tuple_len(struct bnxt * bp,struct flow_keys * fkeys) bnxt_get_rss_flow_tuple_len() argument
6001 bnxt_toeplitz(struct bnxt * bp,struct flow_keys * fkeys,const unsigned char * key) bnxt_toeplitz() argument
6041 bnxt_lookup_l2_filter_from_key(struct bnxt * bp,struct bnxt_l2_key * key) bnxt_lookup_l2_filter_from_key() argument
6053 bnxt_init_l2_filter(struct bnxt * bp,struct bnxt_l2_filter * fltr,struct bnxt_l2_key * key,u32 idx) bnxt_init_l2_filter() argument
6079 bnxt_alloc_l2_filter(struct bnxt * bp,struct bnxt_l2_key * key,gfp_t gfp) bnxt_alloc_l2_filter() argument
6106 bnxt_alloc_new_l2_filter(struct bnxt * bp,struct bnxt_l2_key * key,u16 flags) bnxt_alloc_new_l2_filter() argument
6151 bnxt_hwrm_l2_filter_free(struct bnxt * bp,struct bnxt_l2_filter * fltr) bnxt_hwrm_l2_filter_free() argument
6177 bnxt_hwrm_l2_filter_alloc(struct bnxt * bp,struct bnxt_l2_filter * fltr) bnxt_hwrm_l2_filter_alloc() argument
6230 bnxt_hwrm_cfa_ntuple_filter_free(struct bnxt * bp,struct bnxt_ntuple_filter * fltr) bnxt_hwrm_cfa_ntuple_filter_free() argument
6275 bnxt_cfg_rfs_ring_tbl_idx(struct bnxt * bp,struct hwrm_cfa_ntuple_filter_alloc_input * req,struct bnxt_ntuple_filter * fltr) bnxt_cfg_rfs_ring_tbl_idx() argument
6314 bnxt_hwrm_cfa_ntuple_filter_alloc(struct bnxt * bp,struct bnxt_ntuple_filter * fltr) bnxt_hwrm_cfa_ntuple_filter_alloc() argument
6380 bnxt_hwrm_set_vnic_filter(struct bnxt * bp,u16 vnic_id,u16 idx,const u8 * mac_addr) bnxt_hwrm_set_vnic_filter() argument
6402 bnxt_hwrm_clear_vnic_filter(struct bnxt * bp) bnxt_hwrm_clear_vnic_filter() argument
6425 bnxt_hwrm_vnic_update_tunl_tpa(struct bnxt * bp,struct hwrm_vnic_tpa_cfg_input * req) bnxt_hwrm_vnic_update_tunl_tpa() argument
6444 bnxt_hwrm_vnic_set_tpa(struct bnxt * bp,struct bnxt_vnic_info * vnic,u32 tpa_flags) bnxt_hwrm_vnic_set_tpa() argument
6507 bnxt_cp_ring_from_grp(struct bnxt * bp,struct bnxt_ring_struct * ring) bnxt_cp_ring_from_grp() argument
6515 bnxt_cp_ring_for_rx(struct bnxt * bp,struct bnxt_rx_ring_info * rxr) bnxt_cp_ring_for_rx() argument
6523 bnxt_cp_ring_for_tx(struct bnxt * bp,struct bnxt_tx_ring_info * txr) bnxt_cp_ring_for_tx() argument
6531 bnxt_alloc_rss_indir_tbl(struct bnxt * bp) bnxt_alloc_rss_indir_tbl() argument
6549 bnxt_set_dflt_rss_indir_tbl(struct bnxt * bp,struct ethtool_rxfh_context * rss_ctx) bnxt_set_dflt_rss_indir_tbl() argument
6577 bnxt_get_max_rss_ring(struct bnxt * bp) bnxt_get_max_rss_ring() argument
6590 bnxt_get_nr_rss_ctxs(struct bnxt * bp,int rx_rings) bnxt_get_nr_rss_ctxs() argument
6606 bnxt_fill_hw_rss_tbl(struct bnxt * bp,struct bnxt_vnic_info * vnic) bnxt_fill_hw_rss_tbl() argument
6619 bnxt_fill_hw_rss_tbl_p5(struct bnxt * bp,struct bnxt_vnic_info * vnic) bnxt_fill_hw_rss_tbl_p5() argument
6647 __bnxt_hwrm_vnic_set_rss(struct bnxt * bp,struct hwrm_vnic_rss_cfg_input * req,struct bnxt_vnic_info * vnic) __bnxt_hwrm_vnic_set_rss() argument
6672 bnxt_hwrm_vnic_set_rss(struct bnxt * bp,struct bnxt_vnic_info * vnic,bool set_rss) bnxt_hwrm_vnic_set_rss() argument
6692 bnxt_hwrm_vnic_set_rss_p5(struct bnxt * bp,struct bnxt_vnic_info * vnic,bool set_rss) bnxt_hwrm_vnic_set_rss_p5() argument
6727 bnxt_hwrm_update_rss_hash_cfg(struct bnxt * bp) bnxt_hwrm_update_rss_hash_cfg() argument
6747 bnxt_hwrm_vnic_set_hds(struct bnxt * bp,struct bnxt_vnic_info * vnic) bnxt_hwrm_vnic_set_hds() argument
6772 bnxt_hwrm_vnic_ctx_free_one(struct bnxt * bp,struct bnxt_vnic_info * vnic,u16 ctx_idx) bnxt_hwrm_vnic_ctx_free_one() argument
6788 bnxt_hwrm_vnic_ctx_free(struct bnxt * bp) bnxt_hwrm_vnic_ctx_free() argument
6803 bnxt_hwrm_vnic_ctx_alloc(struct bnxt * bp,struct bnxt_vnic_info * vnic,u16 ctx_idx) bnxt_hwrm_vnic_ctx_alloc() argument
6824 bnxt_get_roce_vnic_mode(struct bnxt * bp) bnxt_get_roce_vnic_mode() argument
6831 bnxt_hwrm_vnic_cfg(struct bnxt * bp,struct bnxt_vnic_info * vnic) bnxt_hwrm_vnic_cfg() argument
6905 bnxt_hwrm_vnic_free_one(struct bnxt * bp,struct bnxt_vnic_info * vnic) bnxt_hwrm_vnic_free_one() argument
6921 bnxt_hwrm_vnic_free(struct bnxt * bp) bnxt_hwrm_vnic_free() argument
6929 bnxt_hwrm_vnic_alloc(struct bnxt * bp,struct bnxt_vnic_info * vnic,unsigned int start_rx_ring_idx,unsigned int nr_rings) bnxt_hwrm_vnic_alloc() argument
6970 bnxt_hwrm_vnic_qcaps(struct bnxt * bp) bnxt_hwrm_vnic_qcaps() argument
7035 bnxt_hwrm_ring_grp_alloc(struct bnxt * bp) bnxt_hwrm_ring_grp_alloc() argument
7070 bnxt_hwrm_ring_grp_free(struct bnxt * bp) bnxt_hwrm_ring_grp_free() argument
7094 bnxt_set_rx_ring_params_p5(struct bnxt * bp,u32 ring_type,struct hwrm_ring_alloc_input * req,struct bnxt_rx_ring_info * rxr,struct bnxt_ring_struct * ring) bnxt_set_rx_ring_params_p5() argument
7119 hwrm_ring_alloc_send_msg(struct bnxt * bp,struct bnxt_rx_ring_info * rxr,struct bnxt_ring_struct * ring,u32 ring_type,u32 map_index) hwrm_ring_alloc_send_msg() argument
7221 bnxt_hwrm_set_async_event_cr(struct bnxt * bp,int idx) bnxt_hwrm_set_async_event_cr() argument
7250 bnxt_set_db_mask(struct bnxt * bp,struct bnxt_db_info * db,u32 ring_type) bnxt_set_db_mask() argument
7274 bnxt_set_db(struct bnxt * bp,struct bnxt_db_info * db,u32 ring_type,u32 map_idx,u32 xid) bnxt_set_db() argument
7317 bnxt_hwrm_rx_ring_alloc(struct bnxt * bp,struct bnxt_rx_ring_info * rxr) bnxt_hwrm_rx_ring_alloc() argument
7336 bnxt_hwrm_rx_agg_ring_alloc(struct bnxt * bp,struct bnxt_rx_ring_info * rxr) bnxt_hwrm_rx_agg_ring_alloc() argument
7359 bnxt_hwrm_cp_ring_alloc_p5(struct bnxt * bp,struct bnxt_cp_ring_info * cpr) bnxt_hwrm_cp_ring_alloc_p5() argument
7378 bnxt_hwrm_tx_ring_alloc(struct bnxt * bp,struct bnxt_tx_ring_info * txr,u32 tx_idx) bnxt_hwrm_tx_ring_alloc() argument
7392 bnxt_hwrm_ring_alloc(struct bnxt * bp) bnxt_hwrm_ring_alloc() argument
7468 bnxt_cancel_dim(struct bnxt * bp) bnxt_cancel_dim() argument
7488 hwrm_ring_free_send_msg(struct bnxt * bp,struct bnxt_ring_struct * ring,u32 ring_type,int cmpl_ring_id) hwrm_ring_free_send_msg() argument
7521 bnxt_hwrm_tx_ring_free(struct bnxt * bp,struct bnxt_tx_ring_info * txr,bool close_path) bnxt_hwrm_tx_ring_free() argument
7538 bnxt_hwrm_rx_ring_free(struct bnxt * bp,struct bnxt_rx_ring_info * rxr,bool close_path) bnxt_hwrm_rx_ring_free() argument
7558 bnxt_hwrm_rx_agg_ring_free(struct bnxt * bp,struct bnxt_rx_ring_info * rxr,bool close_path) bnxt_hwrm_rx_agg_ring_free() argument
7582 bnxt_hwrm_cp_ring_free(struct bnxt * bp,struct bnxt_cp_ring_info * cpr) bnxt_hwrm_cp_ring_free() argument
7596 bnxt_clear_one_cp_ring(struct bnxt * bp,struct bnxt_cp_ring_info * cpr) bnxt_clear_one_cp_ring() argument
7609 bnxt_hwrm_ring_free(struct bnxt * bp,bool close_path) bnxt_hwrm_ring_free() argument
7660 bnxt_hwrm_get_rings(struct bnxt * bp) bnxt_hwrm_get_rings() argument
7720 __bnxt_hwrm_get_tx_rings(struct bnxt * bp,u16 fid,int * tx_rings) __bnxt_hwrm_get_tx_rings() argument
7746 __bnxt_hwrm_reserve_pf_rings(struct bnxt * bp,struct bnxt_hw_rings * hwr) __bnxt_hwrm_reserve_pf_rings() argument
7790 __bnxt_hwrm_reserve_vf_rings(struct bnxt * bp,struct bnxt_hw_rings * hwr) __bnxt_hwrm_reserve_vf_rings() argument
7832 bnxt_hwrm_reserve_pf_rings(struct bnxt * bp,struct bnxt_hw_rings * hwr) bnxt_hwrm_reserve_pf_rings() argument
7857 bnxt_hwrm_reserve_vf_rings(struct bnxt * bp,struct bnxt_hw_rings * hwr) bnxt_hwrm_reserve_vf_rings() argument
7878 bnxt_hwrm_reserve_rings(struct bnxt * bp,struct bnxt_hw_rings * hwr) bnxt_hwrm_reserve_rings() argument
7886 bnxt_nq_rings_in_use(struct bnxt * bp) bnxt_nq_rings_in_use() argument
7891 bnxt_cp_rings_in_use(struct bnxt * bp) bnxt_cp_rings_in_use() argument
7902 bnxt_get_func_stat_ctxs(struct bnxt * bp) bnxt_get_func_stat_ctxs() argument
7907 bnxt_get_total_rss_ctxs(struct bnxt * bp,struct bnxt_hw_rings * hwr) bnxt_get_total_rss_ctxs() argument
7928 bnxt_check_rss_tbl_no_rmgr(struct bnxt * bp) bnxt_check_rss_tbl_no_rmgr() argument
7940 bnxt_get_total_vnics(struct bnxt * bp,int rx_rings) bnxt_get_total_vnics() argument
7951 bnxt_get_total_resources(struct bnxt * bp,struct bnxt_hw_rings * hwr) bnxt_get_total_resources() argument
7967 bnxt_need_reserve_rings(struct bnxt * bp) bnxt_need_reserve_rings() argument
8007 bnxt_copy_reserved_rings(struct bnxt * bp,struct bnxt_hw_rings * hwr) bnxt_copy_reserved_rings() argument
8024 bnxt_rings_ok(struct bnxt * bp,struct bnxt_hw_rings * hwr) bnxt_rings_ok() argument
8032 __bnxt_reserve_rings(struct bnxt * bp) __bnxt_reserve_rings() argument
8156 bnxt_hwrm_check_vf_rings(struct bnxt * bp,struct bnxt_hw_rings * hwr) bnxt_hwrm_check_vf_rings() argument
8178 bnxt_hwrm_check_pf_rings(struct bnxt * bp,struct bnxt_hw_rings * hwr) bnxt_hwrm_check_pf_rings() argument
8201 bnxt_hwrm_check_rings(struct bnxt * bp,struct bnxt_hw_rings * hwr) bnxt_hwrm_check_rings() argument
8212 bnxt_hwrm_coal_params_qcaps(struct bnxt * bp) bnxt_hwrm_coal_params_qcaps() argument
8259 bnxt_usec_to_coal_tmr(struct bnxt * bp,u16 usec) bnxt_usec_to_coal_tmr() argument
8266 bnxt_hwrm_set_coal_params(struct bnxt * bp,struct bnxt_coal * hw_coal,struct hwrm_ring_cmpl_ring_cfg_aggint_params_input * req) bnxt_hwrm_set_coal_params() argument
8322 __bnxt_hwrm_set_coal_nq(struct bnxt * bp,struct bnxt_napi * bnapi,struct bnxt_coal * hw_coal) __bnxt_hwrm_set_coal_nq() argument
8350 bnxt_hwrm_set_ring_coal(struct bnxt * bp,struct bnxt_napi * bnapi) bnxt_hwrm_set_ring_coal() argument
8380 bnxt_hwrm_set_rx_coal(struct bnxt * bp,struct bnxt_napi * bnapi,struct hwrm_ring_cmpl_ring_cfg_aggint_params_input * req) bnxt_hwrm_set_rx_coal() argument
8390 bnxt_hwrm_set_tx_coal(struct bnxt * bp,struct bnxt_napi * bnapi,struct hwrm_ring_cmpl_ring_cfg_aggint_params_input * req) bnxt_hwrm_set_tx_coal() argument
8410 bnxt_hwrm_set_coal(struct bnxt * bp) bnxt_hwrm_set_coal() argument
8460 bnxt_hwrm_stat_ctx_free(struct bnxt * bp) bnxt_hwrm_stat_ctx_free() argument
8502 bnxt_hwrm_stat_ctx_alloc(struct bnxt * bp) bnxt_hwrm_stat_ctx_alloc() argument
8537 bnxt_hwrm_func_qcfg(struct bnxt * bp) bnxt_hwrm_func_qcfg() argument
8641 bnxt_alloc_all_ctx_pg_info(struct bnxt * bp,int ctx_max) bnxt_alloc_all_ctx_pg_info() argument
8669 bnxt_hwrm_func_backing_store_qcaps_v2(struct bnxt * bp) bnxt_hwrm_func_backing_store_qcaps_v2() argument
8742 bnxt_hwrm_func_backing_store_qcaps(struct bnxt * bp) bnxt_hwrm_func_backing_store_qcaps() argument
8885 bnxt_hwrm_func_backing_store_cfg(struct bnxt * bp,u32 enables) bnxt_hwrm_func_backing_store_cfg() argument
9015 bnxt_alloc_ctx_mem_blk(struct bnxt * bp,struct bnxt_ctx_pg_info * ctx_pg) bnxt_alloc_ctx_mem_blk() argument
9029 bnxt_alloc_ctx_pg_tbls(struct bnxt * bp,struct bnxt_ctx_pg_info * ctx_pg,u32 mem_size,u8 depth,struct bnxt_ctx_mem_type * ctxm) bnxt_alloc_ctx_pg_tbls() argument
9089 bnxt_copy_ctx_pg_tbls(struct bnxt * bp,struct bnxt_ctx_pg_info * ctx_pg,void * buf,size_t offset,size_t head,size_t tail) bnxt_copy_ctx_pg_tbls() argument
9119 bnxt_free_ctx_pg_tbls(struct bnxt * bp,struct bnxt_ctx_pg_info * ctx_pg) bnxt_free_ctx_pg_tbls() argument
9148 bnxt_setup_ctxm_pg_tbls(struct bnxt * bp,struct bnxt_ctx_mem_type * ctxm,u32 entries,u8 pg_lvl) bnxt_setup_ctxm_pg_tbls() argument
9174 bnxt_hwrm_func_backing_store_cfg_v2(struct bnxt * bp,struct bnxt_ctx_mem_type * ctxm,bool last) bnxt_hwrm_func_backing_store_cfg_v2() argument
9232 bnxt_backing_store_cfg_v2(struct bnxt * bp) bnxt_backing_store_cfg_v2() argument
9294 __bnxt_copy_ctx_mem(struct bnxt * bp,struct bnxt_ctx_mem_type * ctxm,void * buf,size_t offset,size_t head,size_t tail) __bnxt_copy_ctx_mem() argument
9316 bnxt_copy_ctx_mem(struct bnxt * bp,struct bnxt_ctx_mem_type * ctxm,void * buf,size_t offset) bnxt_copy_ctx_mem() argument
9324 bnxt_free_one_ctx_mem(struct bnxt * bp,struct bnxt_ctx_mem_type * ctxm,bool force) bnxt_free_one_ctx_mem() argument
9349 bnxt_free_ctx_mem(struct bnxt * bp,bool force) bnxt_free_ctx_mem() argument
9367 bnxt_alloc_ctx_mem(struct bnxt * bp) bnxt_alloc_ctx_mem() argument
9510 bnxt_hwrm_crash_dump_mem_cfg(struct bnxt * bp) bnxt_hwrm_crash_dump_mem_cfg() argument
9537 bnxt_free_crash_dump_mem(struct bnxt * bp) bnxt_free_crash_dump_mem() argument
9546 bnxt_alloc_crash_dump_mem(struct bnxt * bp) bnxt_alloc_crash_dump_mem() argument
9583 bnxt_hwrm_func_resc_qcaps(struct bnxt * bp,bool all) bnxt_hwrm_func_resc_qcaps() argument
9645 __bnxt_hwrm_ptp_qcfg(struct bnxt * bp) __bnxt_hwrm_ptp_qcfg() argument
9713 __bnxt_hwrm_func_qcaps(struct bnxt * bp) __bnxt_hwrm_func_qcaps() argument
9851 bnxt_hwrm_dbg_qcaps(struct bnxt * bp) bnxt_hwrm_dbg_qcaps() argument
9879 bnxt_hwrm_func_qcaps(struct bnxt * bp) bnxt_hwrm_func_qcaps() argument
9905 bnxt_hwrm_cfa_adv_flow_mgnt_qcaps(struct bnxt * bp) bnxt_hwrm_cfa_adv_flow_mgnt_qcaps() argument
9942 __bnxt_alloc_fw_health(struct bnxt * bp) __bnxt_alloc_fw_health() argument
9955 bnxt_alloc_fw_health(struct bnxt * bp) bnxt_alloc_fw_health() argument
9973 __bnxt_map_fw_health_reg(struct bnxt * bp,u32 reg) __bnxt_map_fw_health_reg() argument
9980 bnxt_inv_fw_health_reg(struct bnxt * bp) bnxt_inv_fw_health_reg() argument
9997 bnxt_try_map_fw_health_reg(struct bnxt * bp) bnxt_try_map_fw_health_reg() argument
10044 bnxt_map_fw_health_regs(struct bnxt * bp) bnxt_map_fw_health_regs() argument
10073 bnxt_remap_fw_health_regs(struct bnxt * bp) bnxt_remap_fw_health_regs() argument
10086 bnxt_hwrm_error_recovery_qcfg(struct bnxt * bp) bnxt_hwrm_error_recovery_qcfg() argument
10151 bnxt_hwrm_func_reset(struct bnxt * bp) bnxt_hwrm_func_reset() argument
10165 bnxt_nvm_cfg_ver_get(struct bnxt * bp) bnxt_nvm_cfg_ver_get() argument
10175 bnxt_hwrm_queue_qportcfg(struct bnxt * bp) bnxt_hwrm_queue_qportcfg() argument
10226 bnxt_hwrm_poll(struct bnxt * bp) bnxt_hwrm_poll() argument
10244 bnxt_hwrm_ver_get(struct bnxt * bp) bnxt_hwrm_ver_get() argument
10370 bnxt_hwrm_fw_set_time(struct bnxt * bp) bnxt_hwrm_fw_set_time() argument
10433 bnxt_accumulate_all_stats(struct bnxt * bp) bnxt_accumulate_all_stats() argument
10478 bnxt_hwrm_port_qstats(struct bnxt * bp,u8 flags) bnxt_hwrm_port_qstats() argument
10502 bnxt_hwrm_port_qstats_ext(struct bnxt * bp,u8 flags) bnxt_hwrm_port_qstats_ext() argument
10592 bnxt_hwrm_free_tunnel_ports(struct bnxt * bp) bnxt_hwrm_free_tunnel_ports() argument
10600 bnxt_set_tpa(struct bnxt * bp,bool set_tpa) bnxt_set_tpa() argument
10620 bnxt_hwrm_clear_vnic_rss(struct bnxt * bp) bnxt_hwrm_clear_vnic_rss() argument
10628 bnxt_clear_vnic(struct bnxt * bp) bnxt_clear_vnic() argument
10647 bnxt_hwrm_resource_free(struct bnxt * bp,bool close_path,bool irq_re_init) bnxt_hwrm_resource_free() argument
10659 bnxt_hwrm_set_br_mode(struct bnxt * bp,u16 br_mode) bnxt_hwrm_set_br_mode() argument
10682 bnxt_hwrm_set_cache_line_size(struct bnxt * bp,int size) bnxt_hwrm_set_cache_line_size() argument
10703 __bnxt_setup_vnic(struct bnxt * bp,struct bnxt_vnic_info * vnic) __bnxt_setup_vnic() argument
10758 bnxt_hwrm_vnic_update(struct bnxt * bp,struct bnxt_vnic_info * vnic,u8 valid) bnxt_hwrm_vnic_update() argument
10778 bnxt_hwrm_vnic_rss_cfg_p5(struct bnxt * bp,struct bnxt_vnic_info * vnic) bnxt_hwrm_vnic_rss_cfg_p5() argument
10795 __bnxt_setup_vnic_p5(struct bnxt * bp,struct bnxt_vnic_info * vnic) __bnxt_setup_vnic_p5() argument
10826 bnxt_setup_vnic(struct bnxt * bp,struct bnxt_vnic_info * vnic) bnxt_setup_vnic() argument
10834 bnxt_alloc_and_setup_vnic(struct bnxt * bp,struct bnxt_vnic_info * vnic,u16 start_rx_ring_idx,int rx_rings) bnxt_alloc_and_setup_vnic() argument
10849 bnxt_alloc_rfs_vnics(struct bnxt * bp) bnxt_alloc_rfs_vnics() argument
10879 bnxt_del_one_rss_ctx(struct bnxt * bp,struct bnxt_rss_ctx * rss_ctx,bool all) bnxt_del_one_rss_ctx() argument
10914 bnxt_vnic_has_rx_ring(struct bnxt * bp,struct bnxt_vnic_info * vnic,int rxr_id) bnxt_vnic_has_rx_ring() argument
10939 bnxt_set_vnic_mru_p5(struct bnxt * bp,struct bnxt_vnic_info * vnic,u16 mru,int rxr_id) bnxt_set_vnic_mru_p5() argument
10962 bnxt_set_rss_ctx_vnic_mru(struct bnxt * bp,u16 mru,int rxr_id) bnxt_set_rss_ctx_vnic_mru() argument
10980 bnxt_hwrm_realloc_rss_ctx_vnic(struct bnxt * bp) bnxt_hwrm_realloc_rss_ctx_vnic() argument
11001 bnxt_clear_rss_ctxs(struct bnxt * bp) bnxt_clear_rss_ctxs() argument
11014 bnxt_promisc_ok(struct bnxt * bp) bnxt_promisc_ok() argument
11023 bnxt_setup_nitroa0_vnic(struct bnxt * bp) bnxt_setup_nitroa0_vnic() argument
11047 bnxt_init_chip(struct bnxt * bp,bool irq_re_init) bnxt_init_chip() argument
11169 bnxt_shutdown_nic(struct bnxt * bp,bool irq_re_init) bnxt_shutdown_nic() argument
11175 bnxt_init_nic(struct bnxt * bp,bool irq_re_init) bnxt_init_nic() argument
11186 bnxt_set_real_num_queues(struct bnxt * bp) bnxt_set_real_num_queues() argument
11208 __bnxt_trim_rings(struct bnxt * bp,int * rx,int * tx,int max,bool shared) __bnxt_trim_rings() argument
11232 __bnxt_num_tx_to_cp(struct bnxt * bp,int tx,int tx_sets,int tx_xdp) __bnxt_num_tx_to_cp() argument
11237 bnxt_num_tx_to_cp(struct bnxt * bp,int tx) bnxt_num_tx_to_cp() argument
11246 bnxt_num_cp_to_tx(struct bnxt * bp,int tx_cp) bnxt_num_cp_to_tx() argument
11254 bnxt_trim_rings(struct bnxt * bp,int * rx,int * tx,int max,bool sh) bnxt_trim_rings() argument
11272 bnxt_setup_msix(struct bnxt * bp) bnxt_setup_msix() argument
11308 bnxt_change_msix(struct bnxt * bp,int total) bnxt_change_msix() argument
11332 bnxt_setup_int_mode(struct bnxt * bp) bnxt_setup_int_mode() argument
11348 bnxt_get_max_func_rss_ctxs(struct bnxt * bp) bnxt_get_max_func_rss_ctxs() argument
11353 bnxt_get_max_func_vnics(struct bnxt * bp) bnxt_get_max_func_vnics() argument
11358 bnxt_get_max_func_stat_ctxs(struct bnxt * bp) bnxt_get_max_func_stat_ctxs() argument
11363 bnxt_get_max_func_cp_rings(struct bnxt * bp) bnxt_get_max_func_cp_rings() argument
11368 bnxt_get_max_func_cp_rings_for_en(struct bnxt * bp) bnxt_get_max_func_cp_rings_for_en() argument
11378 bnxt_get_max_func_irqs(struct bnxt * bp) bnxt_get_max_func_irqs() argument
11388 bnxt_set_max_func_irqs(struct bnxt * bp,unsigned int max_irqs) bnxt_set_max_func_irqs() argument
11393 bnxt_get_avail_cp_rings_for_en(struct bnxt * bp) bnxt_get_avail_cp_rings_for_en() argument
11404 bnxt_get_avail_stat_ctxs_for_en(struct bnxt * bp) bnxt_get_avail_stat_ctxs_for_en() argument
11409 bnxt_get_avail_msix(struct bnxt * bp,int num) bnxt_get_avail_msix() argument
11422 bnxt_get_num_msix(struct bnxt * bp) bnxt_get_num_msix() argument
11430 bnxt_init_int_mode(struct bnxt * bp) bnxt_init_int_mode() argument
11487 bnxt_clear_int_mode(struct bnxt * bp) bnxt_clear_int_mode() argument
11495 bnxt_reserve_rings(struct bnxt * bp,bool irq_re_init) bnxt_reserve_rings() argument
11551 bnxt_tx_queue_stop(struct bnxt * bp,int idx) bnxt_tx_queue_stop() argument
11582 bnxt_tx_queue_start(struct bnxt * bp,int idx) bnxt_tx_queue_start() argument
11681 bnxt_register_irq_notifier(struct bnxt * bp,struct bnxt_irq * irq) bnxt_register_irq_notifier() argument
11700 bnxt_free_irq(struct bnxt * bp) bnxt_free_irq() argument
11736 bnxt_request_irq(struct bnxt * bp) bnxt_request_irq() argument
11809 bnxt_del_napi(struct bnxt * bp) bnxt_del_napi() argument
11832 bnxt_init_napi(struct bnxt * bp) bnxt_init_napi() argument
11857 bnxt_disable_napi(struct bnxt * bp) bnxt_disable_napi() argument
11878 bnxt_enable_napi(struct bnxt * bp) bnxt_enable_napi() argument
11900 bnxt_tx_disable(struct bnxt * bp) bnxt_tx_disable() argument
11919 bnxt_tx_enable(struct bnxt * bp) bnxt_tx_enable() argument
11979 bnxt_report_link(struct bnxt * bp) bnxt_report_link() argument
12055 bnxt_hwrm_phy_qcaps(struct bnxt * bp) bnxt_hwrm_phy_qcaps() argument
12116 bnxt_hwrm_mac_qcaps(struct bnxt * bp) bnxt_hwrm_mac_qcaps() argument
12145 struct bnxt *bp = container_of(link_info, struct bnxt, link_info); bnxt_support_speed_dropped() local
12171 bnxt_update_link(struct bnxt * bp,bool chng_link_state) bnxt_update_link() argument
12303 bnxt_get_port_module_status(struct bnxt * bp) bnxt_get_port_module_status() argument
12331 bnxt_hwrm_set_pause_common(struct bnxt * bp,struct hwrm_port_phy_cfg_input * req) bnxt_hwrm_set_pause_common() argument
12358 bnxt_hwrm_set_link_common(struct bnxt * bp,struct hwrm_port_phy_cfg_input * req) bnxt_hwrm_set_link_common() argument
12397 bnxt_hwrm_set_pause(struct bnxt * bp) bnxt_hwrm_set_pause() argument
12428 bnxt_hwrm_set_eee(struct bnxt * bp,struct hwrm_port_phy_cfg_input * req) bnxt_hwrm_set_eee() argument
12451 bnxt_hwrm_set_link_setting(struct bnxt * bp,bool set_pause,bool set_eee) bnxt_hwrm_set_link_setting() argument
12470 bnxt_hwrm_shutdown_link(struct bnxt * bp) bnxt_hwrm_shutdown_link() argument
12501 bnxt_fw_reset_via_optee(struct bnxt * bp) bnxt_fw_reset_via_optee() argument
12516 bnxt_try_recover_fw(struct bnxt * bp) bnxt_try_recover_fw() argument
12547 bnxt_clear_reservations(struct bnxt * bp,bool fw_reset) bnxt_clear_reservations() argument
12568 bnxt_cancel_reservations(struct bnxt * bp,bool fw_reset) bnxt_cancel_reservations() argument
12584 bnxt_hwrm_if_change(struct bnxt * bp,bool up) bnxt_hwrm_if_change() argument
12673 bnxt_hwrm_port_led_qcaps(struct bnxt * bp) bnxt_hwrm_port_led_qcaps() argument
12716 bnxt_hwrm_alloc_wol_fltr(struct bnxt * bp) bnxt_hwrm_alloc_wol_fltr() argument
12739 bnxt_hwrm_free_wol_fltr(struct bnxt * bp) bnxt_hwrm_free_wol_fltr() argument
12755 bnxt_hwrm_get_wol_fltrs(struct bnxt * bp,u16 handle) bnxt_hwrm_get_wol_fltrs() argument
12784 bnxt_get_wol_settings(struct bnxt * bp) bnxt_get_wol_settings() argument
12797 bnxt_eee_config_ok(struct bnxt * bp) bnxt_eee_config_ok() argument
12824 bnxt_update_phy_setting(struct bnxt * bp) bnxt_update_phy_setting() argument
12886 bnxt_reinit_after_abort(struct bnxt * bp) bnxt_reinit_after_abort() argument
12908 bnxt_cfg_one_usr_fltr(struct bnxt * bp,struct bnxt_filter_base * fltr) bnxt_cfg_one_usr_fltr() argument
12936 bnxt_cfg_usr_fltrs(struct bnxt * bp) bnxt_cfg_usr_fltrs() argument
12944 bnxt_set_xps_mapping(struct bnxt * bp) bnxt_set_xps_mapping() argument
12984 bnxt_tx_nr_rings(struct bnxt * bp) bnxt_tx_nr_rings() argument
12990 bnxt_tx_nr_rings_per_tc(struct bnxt * bp) bnxt_tx_nr_rings_per_tc() argument
12995 __bnxt_open_nic(struct bnxt * bp,bool irq_re_init,bool link_re_init) __bnxt_open_nic() argument
13100 bnxt_open_nic(struct bnxt * bp,bool irq_re_init,bool link_re_init) bnxt_open_nic() argument
13119 bnxt_half_open_nic(struct bnxt * bp) bnxt_half_open_nic() argument
13155 bnxt_half_close_nic(struct bnxt * bp) bnxt_half_close_nic() argument
13164 bnxt_reenable_sriov(struct bnxt * bp) bnxt_reenable_sriov() argument
13177 struct bnxt *bp = netdev_priv(dev); bnxt_open() local
13209 bnxt_drv_busy(struct bnxt * bp) bnxt_drv_busy() argument
13218 __bnxt_close_nic(struct bnxt * bp,bool irq_re_init,bool link_re_init) __bnxt_close_nic() argument
13257 bnxt_close_nic(struct bnxt * bp,bool irq_re_init,bool link_re_init) bnxt_close_nic() argument
13290 struct bnxt *bp = netdev_priv(dev); bnxt_close() local
13298 bnxt_hwrm_port_phy_read(struct bnxt * bp,u16 phy_addr,u16 reg,u16 * val) bnxt_hwrm_port_phy_read() argument
13330 bnxt_hwrm_port_phy_write(struct bnxt * bp,u16 phy_addr,u16 reg,u16 val) bnxt_hwrm_port_phy_write() argument
13361 struct bnxt *bp = netdev_priv(dev); bnxt_ioctl() local
13395 bnxt_get_ring_stats(struct bnxt * bp,struct rtnl_link_stats64 * stats) bnxt_get_ring_stats() argument
13434 bnxt_add_prev_stats(struct bnxt * bp,struct rtnl_link_stats64 * stats) bnxt_add_prev_stats() argument
13452 struct bnxt *bp = netdev_priv(dev); bnxt_get_stats64() local
13493 bnxt_get_one_ring_err_stats(struct bnxt * bp,struct bnxt_total_ring_err_stats * stats,struct bnxt_cp_ring_info * cpr) bnxt_get_one_ring_err_stats() argument
13515 bnxt_get_ring_err_stats(struct bnxt * bp,struct bnxt_total_ring_err_stats * stats) bnxt_get_ring_err_stats() argument
13524 bnxt_mc_list_updated(struct bnxt * bp,u32 * rx_mask) bnxt_mc_list_updated() argument
13558 bnxt_uc_list_updated(struct bnxt * bp) bnxt_uc_list_updated() argument
13579 struct bnxt *bp = netdev_priv(dev); bnxt_set_rx_mode() local
13616 bnxt_cfg_rx_mode(struct bnxt * bp) bnxt_cfg_rx_mode() argument
13691 bnxt_can_reserve_rings(struct bnxt * bp) bnxt_can_reserve_rings() argument
13711 bnxt_rfs_supported(struct bnxt * bp) bnxt_rfs_supported() argument
13729 bnxt_rfs_capable(struct bnxt * bp,bool new_rss_ctx) bnxt_rfs_capable() argument
13783 struct bnxt *bp = netdev_priv(dev); bnxt_fix_features() local
13815 bnxt_reinit_features(struct bnxt * bp,bool irq_re_init,bool link_re_init,u32 flags,bool update_tpa) bnxt_reinit_features() argument
13828 struct bnxt *bp = netdev_priv(dev); bnxt_set_features() local
13894 bnxt_exthdr_check(struct bnxt * bp,struct sk_buff * skb,int nw_off,u8 ** nextp) bnxt_exthdr_check() argument
13943 bnxt_udp_tunl_check(struct bnxt * bp,struct sk_buff * skb) bnxt_udp_tunl_check() argument
13971 bnxt_tunl_check(struct bnxt * bp,struct sk_buff * skb,u8 l4_proto) bnxt_tunl_check() argument
14000 struct bnxt *bp = netdev_priv(dev); bnxt_features_check() local
14023 bnxt_dbg_hwrm_rd_reg(struct bnxt * bp,u32 reg_off,u16 num_words,u32 * reg_buf) bnxt_dbg_hwrm_rd_reg() argument
14062 bnxt_dbg_hwrm_ring_info_get(struct bnxt * bp,u8 ring_type,u32 ring_id,u32 * prod,u32 * cons) bnxt_dbg_hwrm_ring_info_get() argument
14127 bnxt_dbg_dump_states(struct bnxt * bp) bnxt_dbg_dump_states() argument
14142 bnxt_hwrm_rx_ring_reset(struct bnxt * bp,int ring_nr) bnxt_hwrm_rx_ring_reset() argument
14163 bnxt_reset_task(struct bnxt * bp,bool silent) bnxt_reset_task() argument
14175 struct bnxt *bp = netdev_priv(dev); bnxt_tx_timeout() local
14181 bnxt_fw_health_check(struct bnxt * bp) bnxt_fw_health_check() argument
14220 struct bnxt *bp = timer_container_of(bp, t, timer); bnxt_timer() local
14262 bnxt_lock_sp(struct bnxt * bp) bnxt_lock_sp() argument
14274 bnxt_unlock_sp(struct bnxt * bp) bnxt_unlock_sp() argument
14281 bnxt_reset(struct bnxt * bp,bool silent) bnxt_reset() argument
14290 bnxt_rx_ring_reset(struct bnxt * bp) bnxt_rx_ring_reset() argument
14338 bnxt_fw_fatal_close(struct bnxt * bp) bnxt_fw_fatal_close() argument
14348 bnxt_fw_reset_close(struct bnxt * bp) bnxt_fw_reset_close() argument
14371 is_bnxt_fw_ok(struct bnxt * bp) is_bnxt_fw_ok() argument
14392 bnxt_force_fw_reset(struct bnxt * bp) bnxt_force_fw_reset() argument
14429 bnxt_fw_exception(struct bnxt * bp) bnxt_fw_exception() argument
14442 bnxt_get_registered_vfs(struct bnxt * bp) bnxt_get_registered_vfs() argument
14463 bnxt_fw_reset(struct bnxt * bp) bnxt_fw_reset() argument
14515 bnxt_chk_missed_irq(struct bnxt * bp) bnxt_chk_missed_irq() argument
14554 bnxt_init_ethtool_link_settings(struct bnxt * bp) bnxt_init_ethtool_link_settings() argument
14579 bnxt_fw_echo_reply(struct bnxt * bp) bnxt_fw_echo_reply() argument
14593 bnxt_ulp_restart(struct bnxt * bp) bnxt_ulp_restart() argument
14601 struct bnxt *bp = container_of(work, struct bnxt, sp_task); bnxt_sp_task() local
14712 bnxt_check_rings(struct bnxt * bp,int tx,int rx,bool sh,int tcs,int tx_xdp) bnxt_check_rings() argument
14770 bnxt_unmap_bars(struct bnxt * bp,struct pci_dev * pdev) bnxt_unmap_bars() argument
14788 bnxt_cleanup_pci(struct bnxt * bp) bnxt_cleanup_pci() argument
14796 bnxt_init_dflt_coal(struct bnxt * bp) bnxt_init_dflt_coal() argument
14831 bnxt_fw_pre_resv_vnics(struct bnxt * bp) bnxt_fw_pre_resv_vnics() argument
14844 bnxt_hwrm_pfcwd_qcaps(struct bnxt * bp) bnxt_hwrm_pfcwd_qcaps() argument
14861 bnxt_fw_init_one_p1(struct bnxt * bp) bnxt_fw_init_one_p1() argument
14892 bnxt_fw_init_one_p2(struct bnxt * bp) bnxt_fw_init_one_p2() argument
14950 bnxt_set_dflt_rss_hash_type(struct bnxt * bp) bnxt_set_dflt_rss_hash_type() argument
14966 bnxt_set_dflt_rfs(struct bnxt * bp) bnxt_set_dflt_rfs() argument
14982 bnxt_fw_init_one_p3(struct bnxt * bp) bnxt_fw_init_one_p3() argument
15001 bnxt_fw_init_one(struct bnxt * bp) bnxt_fw_init_one() argument
15026 bnxt_fw_reset_writel(struct bnxt * bp,int reg_idx) bnxt_fw_reset_writel() argument
15058 bnxt_hwrm_reset_permitted(struct bnxt * bp) bnxt_hwrm_reset_permitted() argument
15079 bnxt_reset_all(struct bnxt * bp) bnxt_reset_all() argument
15110 bnxt_fw_reset_timeout(struct bnxt * bp) bnxt_fw_reset_timeout() argument
15116 bnxt_fw_reset_abort(struct bnxt * bp,int rc) bnxt_fw_reset_abort() argument
15127 struct bnxt *bp = container_of(work, struct bnxt, fw_reset_task.work); bnxt_fw_reset_task() local
15301 struct bnxt *bp = netdev_priv(dev); bnxt_init_board() local
15388 struct bnxt *bp = netdev_priv(dev); bnxt_change_mac_addr() local
15415 struct bnxt *bp = netdev_priv(dev); bnxt_change_mtu() local
15441 struct bnxt *bp = netdev_priv(dev); bnxt_setup_mq_tc() local
15489 struct bnxt *bp = cb_priv; bnxt_setup_tc_block_cb() local
15508 struct bnxt *bp = netdev_priv(dev); bnxt_setup_tc() local
15528 bnxt_get_ntp_filter_idx(struct bnxt * bp,struct flow_keys * fkeys,const struct sk_buff * skb) bnxt_get_ntp_filter_idx() argument
15540 bnxt_insert_ntp_filter(struct bnxt * bp,struct bnxt_ntuple_filter * fltr,u32 idx) bnxt_insert_ntp_filter() argument
15604 bnxt_lookup_ntp_filter_from_idx(struct bnxt * bp,struct bnxt_ntuple_filter * fltr,u32 idx) bnxt_lookup_ntp_filter_from_idx() argument
15622 struct bnxt *bp = netdev_priv(dev); bnxt_rx_flow_steer() local
15706 bnxt_del_ntp_filter(struct bnxt * bp,struct bnxt_ntuple_filter * fltr) bnxt_del_ntp_filter() argument
15722 bnxt_cfg_ntp_filters(struct bnxt * bp) bnxt_cfg_ntp_filters() argument
15766 struct bnxt *bp = netdev_priv(netdev); bnxt_udp_tunnel_set_port() local
15782 struct bnxt *bp = netdev_priv(netdev); bnxt_udp_tunnel_unset_port() local
15818 struct bnxt *bp = netdev_priv(dev); bnxt_bridge_getlink() local
15827 struct bnxt *bp = netdev_priv(dev); bnxt_bridge_setlink() local
15856 struct bnxt *bp = netdev_priv(dev); bnxt_get_port_parent_id() local
15909 struct bnxt *bp = netdev_priv(dev); bnxt_get_queue_stats_rx() local
15937 struct bnxt *bp = netdev_priv(dev); bnxt_get_queue_stats_tx() local
15962 struct bnxt *bp = netdev_priv(dev); bnxt_get_base_stats() local
15990 struct bnxt *bp = netdev_priv(dev); bnxt_validate_qcfg() local
16012 struct bnxt *bp = netdev_priv(dev); bnxt_queue_mem_alloc() local
16098 struct bnxt *bp = netdev_priv(dev); bnxt_queue_mem_free() local
16121 bnxt_copy_rx_ring(struct bnxt * bp,struct bnxt_rx_ring_info * dst,struct bnxt_rx_ring_info * src) bnxt_copy_rx_ring() argument
16182 struct bnxt *bp = netdev_priv(dev); bnxt_queue_start() local
16261 struct bnxt *bp = netdev_priv(dev); bnxt_queue_stop() local
16325 struct bnxt *bp = netdev_priv(dev); bnxt_remove_one() local
16369 bnxt_probe_phy(struct bnxt * bp,bool fw_dflt) bnxt_probe_phy() argument
16423 _bnxt_get_max_rings(struct bnxt * bp,int * max_rx,int * max_tx,int * max_cp) _bnxt_get_max_rings() argument
16459 bnxt_get_max_rings(struct bnxt * bp,int * max_rx,int * max_tx,bool shared) bnxt_get_max_rings() argument
16472 bnxt_get_dflt_rings(struct bnxt * bp,int * max_rx,int * max_tx,bool shared) bnxt_get_dflt_rings() argument
16520 bnxt_trim_dflt_sh_rings(struct bnxt * bp) bnxt_trim_dflt_sh_rings() argument
16528 bnxt_set_dflt_rings(struct bnxt * bp,bool sh) bnxt_set_dflt_rings() argument
16592 bnxt_init_dflt_ring_mode(struct bnxt * bp) bnxt_init_dflt_ring_mode() argument
16622 bnxt_restore_pf_fw_resources(struct bnxt * bp) bnxt_restore_pf_fw_resources() argument
16647 bnxt_init_mac_addr(struct bnxt * bp) bnxt_init_mac_addr() argument
16674 bnxt_vpd_read_info(struct bnxt * bp) bnxt_vpd_read_info() argument
16708 bnxt_pcie_dsn_get(struct bnxt * bp,u8 dsn[]) bnxt_pcie_dsn_get() argument
16725 bnxt_map_db_bar(struct bnxt * bp) bnxt_map_db_bar() argument
16735 bnxt_print_device_info(struct bnxt * bp) bnxt_print_device_info() argument
16748 struct bnxt *bp; bnxt_init_one() local
17024 struct bnxt *bp; bnxt_shutdown() local
17060 struct bnxt *bp = netdev_priv(dev); bnxt_suspend() local
17081 struct bnxt *bp = netdev_priv(dev); bnxt_resume() local
17155 struct bnxt *bp = netdev_priv(netdev); bnxt_io_error_detected() local
17209 struct bnxt *bp = netdev_priv(netdev); bnxt_io_slot_reset() local
17289 struct bnxt *bp = netdev_priv(netdev); bnxt_io_resume() local
[all...]
H A Dbnxt_sriov.c28 static int bnxt_hwrm_fwd_async_event_cmpl(struct bnxt *bp, in bnxt_hwrm_fwd_async_event_cmpl() argument
35 rc = hwrm_req_init(bp, req, HWRM_FWD_ASYNC_EVENT_CMPL); in bnxt_hwrm_fwd_async_event_cmpl()
49 rc = hwrm_req_send(bp, req); in bnxt_hwrm_fwd_async_event_cmpl()
52 netdev_err(bp->dev, "hwrm_fwd_async_event_cmpl failed. rc:%d\n", in bnxt_hwrm_fwd_async_event_cmpl()
57 static int bnxt_vf_ndo_prep(struct bnxt *bp, int vf_id) in bnxt_vf_ndo_prep() argument
59 if (!bp->pf.active_vfs) { in bnxt_vf_ndo_prep()
60 netdev_err(bp->dev, "vf ndo called though sriov is disabled\n"); in bnxt_vf_ndo_prep()
63 if (vf_id >= bp->pf.active_vfs) { in bnxt_vf_ndo_prep()
64 netdev_err(bp->dev, "Invalid VF id %d\n", vf_id); in bnxt_vf_ndo_prep()
72 struct bnxt *bp = netdev_priv(dev); in bnxt_set_vf_spoofchk() local
[all …]
H A Dbnxt_ulp.c32 static void bnxt_fill_msix_vecs(struct bnxt *bp, struct bnxt_msix_entry *ent) in bnxt_fill_msix_vecs() argument
34 struct bnxt_en_dev *edev = bp->edev; in bnxt_fill_msix_vecs()
38 netdev_warn(bp->dev, "Requested MSI-X vectors insufficient\n"); in bnxt_fill_msix_vecs()
43 ent[i].vector = bp->irq_tbl[i].vector; in bnxt_fill_msix_vecs()
45 if (bp->flags & BNXT_FLAG_CHIP_P5_PLUS) in bnxt_fill_msix_vecs()
46 ent[i].db_offset = bp->db_offset; in bnxt_fill_msix_vecs()
52 int bnxt_get_ulp_msix_num(struct bnxt *bp) in bnxt_get_ulp_msix_num() argument
54 if (bp->edev) in bnxt_get_ulp_msix_num()
55 return bp->edev->ulp_num_msix_vec; in bnxt_get_ulp_msix_num()
59 void bnxt_set_ulp_msix_num(struct bnxt *bp, int num) in bnxt_set_ulp_msix_num() argument
[all …]
H A Dbnxt_dcb.c25 static int bnxt_queue_to_tc(struct bnxt *bp, u8 queue_id) in bnxt_queue_to_tc() argument
29 for (i = 0; i < bp->max_tc; i++) { in bnxt_queue_to_tc()
30 if (bp->q_info[i].queue_id == queue_id) { in bnxt_queue_to_tc()
31 for (j = 0; j < bp->max_tc; j++) { in bnxt_queue_to_tc()
32 if (bp->tc_to_qidx[j] == i) in bnxt_queue_to_tc()
40 static int bnxt_hwrm_queue_pri2cos_cfg(struct bnxt *bp, struct ieee_ets *ets) in bnxt_hwrm_queue_pri2cos_cfg() argument
46 rc = hwrm_req_init(bp, req, HWRM_QUEUE_PRI2COS_CFG); in bnxt_hwrm_queue_pri2cos_cfg()
60 qidx = bp->tc_to_qidx[ets->prio_tc[i]]; in bnxt_hwrm_queue_pri2cos_cfg()
61 pri2cos[i] = bp->q_info[qidx].queue_id; in bnxt_hwrm_queue_pri2cos_cfg()
63 return hwrm_req_send(bp, req); in bnxt_hwrm_queue_pri2cos_cfg()
[all …]
H A Dbnxt_devlink.c26 static void __bnxt_fw_recover(struct bnxt *bp) in __bnxt_fw_recover() argument
28 if (test_bit(BNXT_STATE_FW_FATAL_COND, &bp->state) || in __bnxt_fw_recover()
29 test_bit(BNXT_STATE_FW_NON_FATAL_COND, &bp->state)) in __bnxt_fw_recover()
30 bnxt_fw_reset(bp); in __bnxt_fw_recover()
32 bnxt_fw_exception(bp); in __bnxt_fw_recover()
40 struct bnxt *bp = bnxt_get_bp_from_dl(dl); in bnxt_dl_flash_update() local
44 rc = bnxt_flash_package_from_fw_obj(bp->dev, params->fw, 0, extack); in bnxt_dl_flash_update()
52 static int bnxt_hwrm_remote_dev_reset_set(struct bnxt *bp, bool remote_reset) in bnxt_hwrm_remote_dev_reset_set() argument
57 if (~bp->fw_cap & BNXT_FW_CAP_HOT_RESET_IF) in bnxt_hwrm_remote_dev_reset_set()
60 rc = bnxt_hwrm_func_cfg_short_req_init(bp, &req); in bnxt_hwrm_remote_dev_reset_set()
[all …]
/linux/fs/xfs/
H A Dxfs_buf.c50 static void xfs_buf_submit(struct xfs_buf *bp);
51 static int xfs_buf_iowait(struct xfs_buf *bp);
53 static inline bool xfs_buf_is_uncached(struct xfs_buf *bp) in xfs_buf_is_uncached() argument
55 return bp->b_rhash_key == XFS_BUF_DADDR_NULL; in xfs_buf_is_uncached()
68 struct xfs_buf *bp) in xfs_buf_stale() argument
70 ASSERT(xfs_buf_islocked(bp)); in xfs_buf_stale()
72 bp->b_flags |= XBF_STALE; in xfs_buf_stale()
79 bp->b_flags &= ~_XBF_DELWRI_Q; in xfs_buf_stale()
81 spin_lock(&bp->b_lock); in xfs_buf_stale()
82 atomic_set(&bp->b_lru_ref, 0); in xfs_buf_stale()
[all …]
/linux/drivers/sbus/char/
H A Dbbc_i2c.c55 static void set_device_claimage(struct bbc_i2c_bus *bp, struct platform_device *op, int val) in set_device_claimage() argument
60 if (bp->devs[i].device == op) { in set_device_claimage()
61 bp->devs[i].client_claimed = val; in set_device_claimage()
67 #define claim_device(BP,ECHILD) set_device_claimage(BP,ECHILD,1) argument
68 #define release_device(BP,ECHILD) set_device_claimage(BP,ECHILD,0) argument
70 struct platform_device *bbc_i2c_getdev(struct bbc_i2c_bus *bp, int index) in bbc_i2c_getdev() argument
76 if (!(op = bp->devs[i].device)) in bbc_i2c_getdev()
90 struct bbc_i2c_client *bbc_i2c_attach(struct bbc_i2c_bus *bp, struct platform_device *op) in bbc_i2c_attach() argument
98 client->bp = bp; in bbc_i2c_attach()
110 claim_device(bp, op); in bbc_i2c_attach()
[all …]
/linux/drivers/net/ethernet/cadence/
H A Dmacb_main.c62 #define MACB_TX_WAKEUP_THRESH(bp) (3 * (bp)->tx_ring_size / 4) argument
123 static unsigned int macb_dma_desc_get_size(struct macb *bp) in macb_dma_desc_get_size() argument
127 if (macb_dma64(bp)) in macb_dma_desc_get_size()
129 if (macb_dma_ptp(bp)) in macb_dma_desc_get_size()
135 static unsigned int macb_adj_dma_desc_idx(struct macb *bp, unsigned int desc_idx) in macb_adj_dma_desc_idx() argument
137 return desc_idx * (1 + macb_dma64(bp) + macb_dma_ptp(bp)); in macb_adj_dma_desc_idx()
140 static struct macb_dma_desc_64 *macb_64b_desc(struct macb *bp, struct macb_dma_desc *desc) in macb_64b_desc() argument
147 static unsigned int macb_tx_ring_wrap(struct macb *bp, unsigned int index) in macb_tx_ring_wrap() argument
149 return index & (bp->tx_ring_size - 1); in macb_tx_ring_wrap()
155 index = macb_tx_ring_wrap(queue->bp, index); in macb_tx_desc()
[all …]
H A Dmacb_ptp.c28 static struct macb_dma_desc_ptp *macb_ptp_desc(struct macb *bp, in macb_ptp_desc() argument
31 if (!macb_dma_ptp(bp)) in macb_ptp_desc()
34 if (macb_dma64(bp)) in macb_ptp_desc()
46 struct macb *bp = container_of(ptp, struct macb, ptp_clock_info); in gem_tsu_get_time() local
51 spin_lock_irqsave(&bp->tsu_clk_lock, flags); in gem_tsu_get_time()
53 first = gem_readl(bp, TN); in gem_tsu_get_time()
55 secl = gem_readl(bp, TSL); in gem_tsu_get_time()
56 sech = gem_readl(bp, TSH); in gem_tsu_get_time()
57 second = gem_readl(bp, TN); in gem_tsu_get_time()
65 ts->tv_nsec = gem_readl(bp, TN); in gem_tsu_get_time()
[all …]
/linux/drivers/net/ethernet/sun/
H A Dsunbmac.c98 static void qec_init(struct bigmac *bp) in qec_init() argument
100 struct platform_device *qec_op = bp->qec_op; in qec_init()
101 void __iomem *gregs = bp->gregs; in qec_init()
102 u8 bsizes = bp->bigmac_bursts; in qec_init()
165 static void bigmac_stop(struct bigmac *bp) in bigmac_stop() argument
167 bigmac_tx_reset(bp->bregs); in bigmac_stop()
168 bigmac_rx_reset(bp->bregs); in bigmac_stop()
171 static void bigmac_get_counters(struct bigmac *bp, void __iomem *bregs) in bigmac_get_counters() argument
173 struct net_device_stats *stats = &bp->dev->stats; in bigmac_get_counters()
193 static void bigmac_clean_rings(struct bigmac *bp) in bigmac_clean_rings() argument
[all …]
/linux/drivers/media/usb/pvrusb2/
H A Dpvrusb2-io.c22 #define BUFFER_CHECK(bp) do { \ argument
23 if ((bp)->signature != BUFFER_SIG) { \
26 (bp), __FILE__, __LINE__); \
27 pvr2_buffer_describe(bp, "BadSig"); \
32 #define BUFFER_CHECK(bp) do {} while (0) argument
99 static void pvr2_buffer_describe(struct pvr2_buffer *bp, const char *msg) in pvr2_buffer_describe() argument
105 bp, in pvr2_buffer_describe()
106 (bp ? pvr2_buffer_state_decode(bp->state) : "(invalid)"), in pvr2_buffer_describe()
107 (bp ? bp->id : 0), in pvr2_buffer_describe()
108 (bp ? bp->status : 0), in pvr2_buffer_describe()
[all …]
/linux/fs/afs/
H A Dyfsclient.c31 static __be32 *xdr_encode_u32(__be32 *bp, u32 n) in xdr_encode_u32() argument
33 *bp++ = htonl(n); in xdr_encode_u32()
34 return bp; in xdr_encode_u32()
37 static __be32 *xdr_encode_u64(__be32 *bp, u64 n) in xdr_encode_u64() argument
39 struct yfs_xdr_u64 *x = (void *)bp; in xdr_encode_u64()
42 return bp + xdr_size(x); in xdr_encode_u64()
45 static __be32 *xdr_encode_YFSFid(__be32 *bp, struct afs_fid *fid) in xdr_encode_YFSFid() argument
47 struct yfs_xdr_YFSFid *x = (void *)bp; in xdr_encode_YFSFid()
53 return bp + xdr_size(x); in xdr_encode_YFSFid()
61 static __be32 *xdr_encode_string(__be32 *bp, const char *p, unsigned int len) in xdr_encode_string() argument
[all …]
H A Dfsclient.c23 const __be32 *bp = *_bp; in xdr_decode_AFSFid() local
25 fid->vid = ntohl(*bp++); in xdr_decode_AFSFid()
26 fid->vnode = ntohl(*bp++); in xdr_decode_AFSFid()
27 fid->unique = ntohl(*bp++); in xdr_decode_AFSFid()
28 *_bp = bp; in xdr_decode_AFSFid()
34 static void xdr_dump_bad(const __be32 *bp) in xdr_dump_bad() argument
41 memcpy(x, bp, 16); in xdr_dump_bad()
42 bp += 4; in xdr_dump_bad()
47 memcpy(x, bp, 4); in xdr_dump_bad()
142 const __be32 *bp = *_bp; in xdr_decode_AFSCallBack() local
[all …]
/linux/drivers/net/fddi/
H A Ddefxx.c258 #define dfx_use_mmio bp->mmio
267 static void dfx_bus_config_check(DFX_board_t *bp);
272 static int dfx_adap_init(DFX_board_t *bp, int get_buffers);
277 static void dfx_int_pr_halt_id(DFX_board_t *bp);
278 static void dfx_int_type_0_process(DFX_board_t *bp);
285 static int dfx_ctl_update_cam(DFX_board_t *bp);
286 static int dfx_ctl_update_filters(DFX_board_t *bp);
288 static int dfx_hw_dma_cmd_req(DFX_board_t *bp);
289 static int dfx_hw_port_ctrl_req(DFX_board_t *bp, PI_UINT32 command, PI_UINT32 data_a, PI_UINT32 da…
290 static void dfx_hw_adap_reset(DFX_board_t *bp, PI_UINT32 type);
[all …]
/linux/drivers/ptp/
H A Dptp_ocp.c263 struct ptp_ocp *bp; member
399 int (*setup)(struct ptp_ocp *bp, struct ocp_resource *r);
405 static int ptp_ocp_register_mem(struct ptp_ocp *bp, struct ocp_resource *r);
406 static int ptp_ocp_register_i2c(struct ptp_ocp *bp, struct ocp_resource *r);
407 static int ptp_ocp_register_spi(struct ptp_ocp *bp, struct ocp_resource *r);
408 static int ptp_ocp_register_serial(struct ptp_ocp *bp, struct ocp_resource *r);
409 static int ptp_ocp_register_ext(struct ptp_ocp *bp, struct ocp_resource *r);
410 static int ptp_ocp_fb_board_init(struct ptp_ocp *bp, struct ocp_resource *r);
414 static int ptp_ocp_signal_from_perout(struct ptp_ocp *bp, int gen,
417 static int ptp_ocp_sma_store(struct ptp_ocp *bp, const char *buf, int sma_nr);
[all …]

12345678910>>...21