Home
last modified time | relevance | path

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

12345678910>>...20

/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->flags & BNXT_FLAG_CHIP_P5_PLUS) in bnxt_db_cq()
[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, unsigne argument
176 macb_rx_ring_wrap(struct macb * bp,unsigned int index) macb_rx_ring_wrap() argument
195 hw_readl_native(struct macb * bp,int offset) hw_readl_native() argument
200 hw_writel_native(struct macb * bp,int offset,u32 value) hw_writel_native() argument
205 hw_readl(struct macb * bp,int offset) hw_readl() argument
210 hw_writel(struct macb * bp,int offset,u32 value) hw_writel() argument
244 macb_set_hwaddr(struct macb * bp) macb_set_hwaddr() argument
268 macb_get_hwaddr(struct macb * bp) macb_get_hwaddr() argument
297 macb_mdio_wait_for_idle(struct macb * bp) macb_mdio_wait_for_idle() argument
307 struct macb *bp = bus->priv; macb_mdio_read_c22() local
339 struct macb *bp = bus->priv; macb_mdio_read_c45() local
384 struct macb *bp = bus->priv; macb_mdio_write_c22() local
416 struct macb *bp = bus->priv; macb_mdio_write_c45() local
457 macb_init_buffers(struct macb * bp) macb_init_buffers() argument
481 macb_set_tx_clk(struct macb * bp,int speed) macb_set_tx_clk() argument
518 struct macb *bp = container_of(pcs, struct macb, phylink_usx_pcs); macb_usx_pcs_link_up() local
533 struct macb *bp = container_of(pcs, struct macb, phylink_usx_pcs); macb_usx_pcs_get_state() local
553 struct macb *bp = container_of(pcs, struct macb, phylink_usx_pcs); macb_usx_pcs_config() local
597 struct macb *bp = netdev_priv(ndev); macb_mac_config() local
655 struct macb *bp = netdev_priv(ndev); macb_mac_link_down() local
679 struct macb *bp = queue->bp; gem_shuffle_tx_one_ring() local
754 gem_shuffle_tx_rings(struct macb * bp) gem_shuffle_tx_rings() argument
770 struct macb *bp = netdev_priv(ndev); macb_mac_link_up() local
833 struct macb *bp = netdev_priv(ndev); macb_mac_select_pcs() local
857 macb_phylink_connect(struct macb * bp) macb_phylink_connect() argument
892 struct macb *bp = netdev_priv(ndev); macb_get_pcs_fixed_state() local
900 struct macb *bp = netdev_priv(dev); macb_mii_probe() local
954 macb_mdiobus_register(struct macb * bp,struct device_node * mdio_np) macb_mdiobus_register() argument
982 macb_mii_init(struct macb * bp) macb_mii_init() argument
1036 macb_update_stats(struct macb * bp) macb_update_stats() argument
1048 macb_halt_tx(struct macb * bp) macb_halt_tx() argument
1061 macb_tx_unmap(struct macb * bp,struct macb_tx_skb * tx_skb,int budget) macb_tx_unmap() argument
1079 macb_set_addr(struct macb * bp,struct macb_dma_desc * desc,dma_addr_t addr) macb_set_addr() argument
1096 macb_get_addr(struct macb * bp,struct macb_dma_desc * desc) macb_get_addr() argument
1117 struct macb *bp = queue->bp; macb_tx_error_task() local
1266 struct macb *bp = queue->bp; macb_tx_complete() local
1347 struct macb *bp = queue->bp; gem_rx_refill() local
1440 struct macb *bp = queue->bp; gem_rx() local
1536 struct macb *bp = queue->bp; macb_rx_frame() local
1612 struct macb *bp = queue->bp; macb_init_rx_ring() local
1631 struct macb *bp = queue->bp; macb_rx() local
1709 struct macb *bp = queue->bp; macb_rx_pending() local
1725 struct macb *bp = queue->bp; macb_rx_poll() local
1762 struct macb *bp = queue->bp; macb_tx_restart() local
1806 struct macb *bp = queue->bp; macb_tx_poll() local
1848 struct macb *bp = from_work(bp, work, hresp_err_bh_work); macb_hresp_error_task() local
1888 struct macb *bp = queue->bp; macb_wol_interrupt() local
1917 struct macb *bp = queue->bp; gem_wol_interrupt() local
1946 struct macb *bp = queue->bp; macb_interrupt() local
2070 struct macb *bp = netdev_priv(dev); macb_poll_controller() local
2082 macb_tx_map(struct macb * bp,struct macb_queue * queue,struct sk_buff * skb,unsigned int hdrlen) macb_tx_map() argument
2357 struct macb *bp = netdev_priv(dev); macb_start_xmit() local
2457 macb_init_rx_buffer_size(struct macb * bp,size_t size) macb_init_rx_buffer_size() argument
2477 gem_free_rx_buffers(struct macb * bp) gem_free_rx_buffers() argument
2510 macb_free_rx_buffers(struct macb * bp) macb_free_rx_buffers() argument
2522 macb_tx_ring_size_per_queue(struct macb * bp) macb_tx_ring_size_per_queue() argument
2527 macb_rx_ring_size_per_queue(struct macb * bp) macb_rx_ring_size_per_queue() argument
2532 macb_free_consistent(struct macb * bp) macb_free_consistent() argument
2561 gem_alloc_rx_buffers(struct macb * bp) gem_alloc_rx_buffers() argument
2580 macb_alloc_rx_buffers(struct macb * bp) macb_alloc_rx_buffers() argument
2597 macb_alloc_consistent(struct macb * bp) macb_alloc_consistent() argument
2659 macb_init_tieoff(struct macb * bp) macb_init_tieoff() argument
2680 gem_init_rings(struct macb * bp) gem_init_rings() argument
2703 macb_init_rings(struct macb * bp) macb_init_rings() argument
2722 macb_reset_hw(struct macb * bp) macb_reset_hw() argument
2754 gem_mdc_clk_div(struct macb * bp) gem_mdc_clk_div() argument
2779 macb_mdc_clk_div(struct macb * bp) macb_mdc_clk_div() argument
2804 macb_dbw(struct macb * bp) macb_dbw() argument
2827 macb_configure_dma(struct macb * bp) macb_configure_dma() argument
2869 macb_init_hw(struct macb * bp) macb_init_hw() argument
2970 struct macb *bp = netdev_priv(dev); macb_sethashtable() local
2988 struct macb *bp = netdev_priv(dev); macb_set_rx_mode() local
3030 struct macb *bp = netdev_priv(dev); macb_open() local
3097 struct macb *bp = netdev_priv(dev); macb_close() local
3152 gem_update_stats(struct macb * bp) gem_update_stats() argument
3181 gem_get_stats(struct macb * bp,struct rtnl_link_stats64 * nstat) gem_get_stats() argument
3222 struct macb *bp = netdev_priv(dev); gem_get_ethtool_stats() local
3233 struct macb *bp = netdev_priv(dev); gem_get_sset_count() local
3246 struct macb *bp = netdev_priv(dev); gem_get_ethtool_strings() local
3271 struct macb *bp = netdev_priv(dev); macb_get_stats() local
3321 struct macb *bp = netdev_priv(dev); macb_get_pause_stats() local
3334 struct macb *bp = netdev_priv(dev); gem_get_pause_stats() local
3347 struct macb *bp = netdev_priv(dev); macb_get_eth_mac_stats() local
3372 struct macb *bp = netdev_priv(dev); gem_get_eth_mac_stats() local
3405 struct macb *bp = netdev_priv(dev); macb_get_eth_phy_stats() local
3417 struct macb *bp = netdev_priv(dev); gem_get_eth_phy_stats() local
3430 struct macb *bp = netdev_priv(dev); macb_get_rmon_stats() local
3456 struct macb *bp = netdev_priv(dev); gem_get_rmon_stats() local
3490 struct macb *bp = netdev_priv(dev); macb_get_regs() local
3522 struct macb *bp = netdev_priv(netdev); macb_get_wol() local
3533 struct macb *bp = netdev_priv(netdev); macb_set_wol() local
3554 struct macb *bp = netdev_priv(netdev); macb_get_link_ksettings() local
3562 struct macb *bp = netdev_priv(netdev); macb_set_link_ksettings() local
3572 struct macb *bp = netdev_priv(netdev); macb_get_ringparam() local
3586 struct macb *bp = netdev_priv(netdev); macb_set_ringparam() local
3622 gem_get_tsu_rate(struct macb * bp) gem_get_tsu_rate() argument
3647 struct macb *bp = netdev_priv(dev); gem_get_ts_info() local
3687 struct macb *bp = netdev_priv(netdev); macb_get_ts_info() local
3695 gem_enable_flow_filters(struct macb * bp,bool enable) gem_enable_flow_filters() argument
3741 gem_prog_cmp_regs(struct macb * bp,struct ethtool_rx_flow_spec * fs) gem_prog_cmp_regs() argument
3827 struct macb *bp = netdev_priv(netdev); gem_add_flow_filter() local
3882 struct macb *bp = netdev_priv(netdev); gem_del_flow_filter() local
3918 struct macb *bp = netdev_priv(netdev); gem_get_flow_entry() local
3933 struct macb *bp = netdev_priv(netdev); gem_get_all_flow_entries() local
3951 struct macb *bp = netdev_priv(netdev); gem_get_rx_ring_count() local
3959 struct macb *bp = netdev_priv(netdev); gem_get_rxnfc() local
3983 struct macb *bp = netdev_priv(netdev); gem_set_rxnfc() local
4052 struct macb *bp = netdev_priv(dev); macb_ioctl() local
4063 struct macb *bp = netdev_priv(dev); macb_hwtstamp_get() local
4078 struct macb *bp = netdev_priv(dev); macb_hwtstamp_set() local
4089 macb_set_txcsum_feature(struct macb * bp,netdev_features_t features) macb_set_txcsum_feature() argument
4106 macb_set_rxcsum_feature(struct macb * bp,netdev_features_t features) macb_set_rxcsum_feature() argument
4124 macb_set_rxflow_feature(struct macb * bp,netdev_features_t features) macb_set_rxflow_feature() argument
4136 struct macb *bp = netdev_priv(netdev); macb_set_features() local
4154 macb_restore_features(struct macb * bp) macb_restore_features() argument
4180 struct macb *bp = netdev_priv(ndev); macb_taprio_setup_replace() local
4329 struct macb *bp = netdev_priv(ndev); macb_taprio_destroy() local
4355 struct macb *bp = netdev_priv(ndev); macb_setup_taprio() local
4418 macb_configure_caps(struct macb * bp,const struct macb_config * dt_conf) macb_configure_caps() argument
4589 struct macb *bp = netdev_priv(dev); macb_init() local
5107 struct macb *bp = netdev_priv(dev); at91ether_init() local
5246 struct macb *bp = netdev_priv(dev); init_reset_optional() local
5302 struct macb *bp = netdev_priv(netdev); eyeq5_init() local
5549 struct macb *bp; macb_probe() local
5750 struct macb *bp; macb_remove() local
5774 struct macb *bp = netdev_priv(netdev); macb_suspend() local
5906 struct macb *bp = netdev_priv(netdev); macb_resume() local
5999 struct macb *bp = netdev_priv(netdev); macb_runtime_suspend() local
6012 struct macb *bp = netdev_priv(netdev); macb_runtime_resume() local
[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>>...20