Home
last modified time | relevance | path

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

12345678910>>...16

/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()
60 struct xfs_buf *bp, in xfs_buf_set_flags() argument
63 WRITE_ONCE(bp->b_flags, bp->b_flags | flags); in xfs_buf_set_flags()
68 struct xfs_buf *bp, in xfs_buf_clear_flags() argument
71 WRITE_ONCE(bp->b_flags, bp in xfs_buf_clear_flags()
76 xfs_buf_set_uptodate(struct xfs_buf * bp) xfs_buf_set_uptodate() argument
91 xfs_buf_stale(struct xfs_buf * bp) xfs_buf_stale() argument
113 xfs_buf_clear_stale(struct xfs_buf * bp) xfs_buf_clear_stale() argument
123 struct xfs_buf *bp = container_of(cb, struct xfs_buf, b_rcu); xfs_buf_free_callback() local
132 xfs_buf_free(struct xfs_buf * bp) xfs_buf_free() argument
156 xfs_buf_alloc_folio(struct xfs_buf * bp,size_t size,gfp_t gfp_mask) xfs_buf_alloc_folio() argument
172 xfs_buf_alloc_kmem(struct xfs_buf * bp,size_t size,gfp_t gfp_mask) xfs_buf_alloc_kmem() argument
200 xfs_buf_alloc_vmalloc(struct xfs_buf * bp,size_t size,gfp_t gfp_mask) xfs_buf_alloc_vmalloc() argument
240 xfs_buf_alloc_backing_mem(struct xfs_buf * bp,xfs_buf_flags_t flags) xfs_buf_alloc_backing_mem() argument
303 struct xfs_buf *bp; xfs_buf_alloc() local
365 const struct xfs_buf *bp = obj; _xfs_buf_obj_cmp() local
430 xfs_buf_find_lock(struct xfs_buf * bp,xfs_buf_flags_t flags) xfs_buf_find_lock() argument
465 struct xfs_buf *bp; xfs_buf_lookup() local
495 struct xfs_buf *bp; xfs_buf_find_insert() local
556 struct xfs_buf *bp = NULL; xfs_find_get_buf() local
618 _xfs_buf_read(struct xfs_buf * bp) _xfs_buf_read() argument
639 struct xfs_buf *bp; xfs_buf_read_map() local
748 struct xfs_buf *bp; xfs_buf_readahead_map() local
803 struct xfs_buf *bp; xfs_buf_read_uncached() local
854 xfs_buf_hold(struct xfs_buf * bp) xfs_buf_hold() argument
863 xfs_buf_destroy(struct xfs_buf * bp) xfs_buf_destroy() argument
875 xfs_buf_kill(struct xfs_buf * bp) xfs_buf_kill() argument
889 xfs_buf_rele(struct xfs_buf * bp) xfs_buf_rele() argument
924 xfs_buf_trylock(struct xfs_buf * bp) xfs_buf_trylock() argument
947 xfs_buf_lock(struct xfs_buf * bp) xfs_buf_lock() argument
960 xfs_buf_unlock(struct xfs_buf * bp) xfs_buf_unlock() argument
970 xfs_buf_wait_unpin(struct xfs_buf * bp) xfs_buf_wait_unpin() argument
990 xfs_buf_ioerror_alert_ratelimited(struct xfs_buf * bp) xfs_buf_ioerror_alert_ratelimited() argument
1009 xfs_buf_ioerror_permanent(struct xfs_buf * bp,struct xfs_error_cfg * cfg) xfs_buf_ioerror_permanent() argument
1047 xfs_buf_ioend_handle_error(struct xfs_buf * bp) xfs_buf_ioend_handle_error() argument
1129 xfs_buf_ioend(struct xfs_buf * bp) xfs_buf_ioend() argument
1187 __xfs_buf_ioerror(struct xfs_buf * bp,int error,xfs_failaddr_t failaddr) __xfs_buf_ioerror() argument
1198 xfs_buf_ioerror_alert(struct xfs_buf * bp,xfs_failaddr_t func) xfs_buf_ioerror_alert() argument
1215 xfs_buf_fail(struct xfs_buf * bp) xfs_buf_fail() argument
1228 xfs_bwrite(struct xfs_buf * bp) xfs_bwrite() argument
1249 struct xfs_buf *bp = bio->bi_private; xfs_buf_bio_end_io() local
1269 xfs_buf_bio_op(struct xfs_buf * bp) xfs_buf_bio_op() argument
1286 xfs_buf_submit_bio(struct xfs_buf * bp) xfs_buf_submit_bio() argument
1328 xfs_buf_iowait(struct xfs_buf * bp) xfs_buf_iowait() argument
1346 xfs_buf_verify_write(struct xfs_buf * bp) xfs_buf_verify_write() argument
1378 xfs_buf_submit(struct xfs_buf * bp) xfs_buf_submit() argument
1449 __xfs_buf_mark_corrupt(struct xfs_buf * bp,xfs_failaddr_t fa) __xfs_buf_mark_corrupt() argument
1474 struct xfs_buf *bp = container_of(item, struct xfs_buf, b_lru); xfs_buftarg_drain_rele() local
1531 struct xfs_buf *bp; xfs_buftarg_drain() local
1566 struct xfs_buf *bp = container_of(item, struct xfs_buf, b_lru); xfs_buftarg_isolate() local
1617 struct xfs_buf *bp; xfs_buftarg_shrink_scan() local
1816 xfs_buf_list_del(struct xfs_buf * bp) xfs_buf_list_del() argument
1832 struct xfs_buf *bp; xfs_buf_delwri_cancel() local
1857 xfs_buf_delwri_queue(struct xfs_buf * bp,struct list_head * list) xfs_buf_delwri_queue() argument
1900 xfs_buf_delwri_queue_here(struct xfs_buf * bp,struct list_head * buffer_list) xfs_buf_delwri_queue_here() argument
1932 struct xfs_buf *bp = container_of(b, struct xfs_buf, b_list); xfs_buf_cmp() local
1945 xfs_buf_delwri_submit_prep(struct xfs_buf * bp) xfs_buf_delwri_submit_prep() argument
1985 struct xfs_buf *bp, *n; xfs_buf_delwri_submit_nowait() local
2025 struct xfs_buf *bp, *n; xfs_buf_delwri_submit() local
2060 xfs_buf_set_ref(struct xfs_buf * bp,int lru_ref) xfs_buf_set_ref() argument
2080 xfs_verify_magic(struct xfs_buf * bp,__be32 dmagic) xfs_verify_magic() argument
2098 xfs_verify_magic16(struct xfs_buf * bp,__be16 dmagic) xfs_verify_magic16() argument
[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/broadcom/bnx2x/
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.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_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.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_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_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 …]
H A Dbnx2x_vfpf.c26 static int bnx2x_vfpf_teardown_queue(struct bnx2x *bp, int qidx);
29 static void bnx2x_add_tlv(struct bnx2x *bp, void *tlvs_list, in bnx2x_add_tlv() argument
40 static void bnx2x_vfpf_prep(struct bnx2x *bp, struct vfpf_first_tlv *first_tlv, in bnx2x_vfpf_prep() argument
43 mutex_lock(&bp->vf2pf_mutex); in bnx2x_vfpf_prep()
49 memset(bp->vf2pf_mbox, 0, sizeof(struct bnx2x_vf_mbx_msg)); in bnx2x_vfpf_prep()
52 bnx2x_add_tlv(bp, &first_tlv->tl, 0, type, length); in bnx2x_vfpf_prep()
55 first_tlv->resp_msg_offset = sizeof(bp->vf2pf_mbox->req); in bnx2x_vfpf_prep()
59 static void bnx2x_vfpf_finalize(struct bnx2x *bp, in bnx2x_vfpf_finalize() argument
65 mutex_unlock(&bp->vf2pf_mutex); in bnx2x_vfpf_finalize()
69 static void *bnx2x_search_tlv_list(struct bnx2x *bp, void *tlvs_list, in bnx2x_search_tlv_list() argument
[all …]
H A Dbnx2x_init_ops.h22 #define BP_ILT(bp) NULL argument
26 #define BP_FUNC(bp) 0 argument
30 #define BP_PORT(bp) 0 argument
45 static int bnx2x_gunzip(struct bnx2x *bp, const u8 *zbuf, int len);
46 static void bnx2x_reg_wr_ind(struct bnx2x *bp, u32 addr, u32 val);
47 static void bnx2x_write_dmae_phys_len(struct bnx2x *bp,
51 static void bnx2x_init_str_wr(struct bnx2x *bp, u32 addr, in bnx2x_init_str_wr() argument
57 REG_WR(bp, addr + i*4, data[i]); in bnx2x_init_str_wr()
60 static void bnx2x_init_ind_wr(struct bnx2x *bp, u32 addr, in bnx2x_init_ind_wr() argument
66 bnx2x_reg_wr_ind(bp, addr + i*4, data[i]); in bnx2x_init_ind_wr()
[all …]
H A Dbnx2x_link.c220 static u32 bnx2x_bits_en(struct bnx2x *bp, u32 reg, u32 bits) in bnx2x_bits_en() argument
222 u32 val = REG_RD(bp, reg); in bnx2x_bits_en()
225 REG_WR(bp, reg, val); in bnx2x_bits_en()
229 static u32 bnx2x_bits_dis(struct bnx2x *bp, u32 reg, u32 bits) in bnx2x_bits_dis() argument
231 u32 val = REG_RD(bp, reg); in bnx2x_bits_dis()
234 REG_WR(bp, reg, val); in bnx2x_bits_dis()
251 struct bnx2x *bp = params->bp; in bnx2x_check_lfa() local
254 REG_RD(bp, params->lfa_base + in bnx2x_check_lfa()
262 REG_WR(bp, params->lfa_base + in bnx2x_check_lfa()
269 link_status = REG_RD(bp, params->shmem_base + in bnx2x_check_lfa()
[all …]
/linux/drivers/net/ethernet/cadence/
H A Dmacb_main.c64 #define MACB_TX_WAKEUP_THRESH(bp) (3 * (bp)->tx_ring_size / 4) argument
129 static unsigned int macb_dma_desc_get_size(struct macb *bp) in macb_dma_desc_get_size() argument
133 if (macb_dma64(bp)) in macb_dma_desc_get_size()
135 if (macb_dma_ptp(bp)) in macb_dma_desc_get_size()
141 static unsigned int macb_adj_dma_desc_idx(struct macb *bp, unsigned int desc_idx) in macb_adj_dma_desc_idx() argument
143 return desc_idx * (1 + macb_dma64(bp) + macb_dma_ptp(bp)); in macb_adj_dma_desc_idx()
146 static struct macb_dma_desc_64 *macb_64b_desc(struct macb *bp, struct macb_dma_desc *desc) in macb_64b_desc() argument
153 static unsigned int macb_tx_ring_wrap(struct macb *bp, unsigne argument
182 macb_rx_ring_wrap(struct macb * bp,unsigned int index) macb_rx_ring_wrap() argument
201 hw_readl_native(struct macb * bp,int offset) hw_readl_native() argument
206 hw_writel_native(struct macb * bp,int offset,u32 value) hw_writel_native() argument
211 hw_readl(struct macb * bp,int offset) hw_readl() argument
216 hw_writel(struct macb * bp,int offset,u32 value) hw_writel() argument
250 macb_set_hwaddr(struct macb * bp) macb_set_hwaddr() argument
274 macb_get_hwaddr(struct macb * bp) macb_get_hwaddr() argument
303 macb_mdio_wait_for_idle(struct macb * bp) macb_mdio_wait_for_idle() argument
313 struct macb *bp = bus->priv; macb_mdio_read_c22() local
345 struct macb *bp = bus->priv; macb_mdio_read_c45() local
390 struct macb *bp = bus->priv; macb_mdio_write_c22() local
422 struct macb *bp = bus->priv; macb_mdio_write_c45() local
463 macb_init_buffers(struct macb * bp) macb_init_buffers() argument
487 macb_set_tx_clk(struct macb * bp,int speed) macb_set_tx_clk() argument
524 struct macb *bp = container_of(pcs, struct macb, phylink_usx_pcs); macb_usx_pcs_link_up() local
539 struct macb *bp = container_of(pcs, struct macb, phylink_usx_pcs); macb_usx_pcs_get_state() local
559 struct macb *bp = container_of(pcs, struct macb, phylink_usx_pcs); macb_usx_pcs_config() local
576 struct macb *bp = container_of(pcs, struct macb, phylink_sgmii_pcs); macb_pcs_get_state() local
595 struct macb *bp = container_of(pcs, struct macb, phylink_sgmii_pcs); macb_pcs_config() local
631 macb_tx_lpi_set(struct macb * bp,bool enable) macb_tx_lpi_set() argument
649 macb_tx_all_queues_idle(struct macb * bp) macb_tx_all_queues_idle() argument
663 struct macb *bp = container_of(work, struct macb, tx_lpi_work.work); macb_tx_lpi_work_fn() local
672 macb_tx_lpi_schedule(struct macb * bp) macb_tx_lpi_schedule() argument
684 macb_tx_lpi_wake(struct macb * bp) macb_tx_lpi_wake() argument
701 struct macb *bp = netdev_priv(netdev); macb_mac_disable_tx_lpi() local
716 struct macb *bp = netdev_priv(netdev); macb_mac_enable_tx_lpi() local
736 struct macb *bp = netdev_priv(netdev); macb_mac_config() local
778 struct macb *bp = netdev_priv(netdev); macb_mac_link_down() local
802 struct macb *bp = queue->bp; gem_shuffle_tx_one_ring() local
877 gem_shuffle_tx_rings(struct macb * bp) gem_shuffle_tx_rings() argument
893 struct macb *bp = netdev_priv(netdev); macb_mac_link_up() local
956 struct macb *bp = netdev_priv(netdev); macb_mac_select_pcs() local
982 macb_phylink_connect(struct macb * bp) macb_phylink_connect() argument
1017 struct macb *bp = netdev_priv(netdev); macb_get_pcs_fixed_state() local
1025 struct macb *bp = netdev_priv(netdev); macb_mii_probe() local
1097 macb_mdiobus_register(struct macb * bp,struct device_node * mdio_np) macb_mdiobus_register() argument
1125 macb_mii_init(struct macb * bp) macb_mii_init() argument
1179 macb_update_stats(struct macb * bp) macb_update_stats() argument
1191 macb_halt_tx(struct macb * bp) macb_halt_tx() argument
1204 macb_tx_unmap(struct macb * bp,struct macb_tx_skb * tx_skb,int budget) macb_tx_unmap() argument
1222 macb_set_addr(struct macb * bp,struct macb_dma_desc * desc,dma_addr_t addr) macb_set_addr() argument
1239 macb_get_addr(struct macb * bp,struct macb_dma_desc * desc) macb_get_addr() argument
1260 struct macb *bp = queue->bp; macb_tx_error_task() local
1408 struct macb *bp = queue->bp; macb_tx_complete() local
1489 struct macb *bp = queue->bp; gem_rx_refill() local
1585 struct macb *bp = queue->bp; gem_rx() local
1677 struct macb *bp = queue->bp; macb_rx_frame() local
1760 struct macb *bp = queue->bp; macb_init_rx_ring() local
1778 struct macb *bp = queue->bp; macb_rx() local
1856 struct macb *bp = queue->bp; macb_rx_pending() local
1872 struct macb *bp = queue->bp; macb_rx_poll() local
1908 struct macb *bp = queue->bp; macb_tx_restart() local
1952 struct macb *bp = queue->bp; macb_tx_poll() local
1993 struct macb *bp = from_work(bp, work, hresp_err_bh_work); macb_hresp_error_task() local
2032 struct macb *bp = queue->bp; macb_wol_interrupt() local
2045 struct macb *bp = queue->bp; gem_wol_interrupt() local
2058 struct macb *bp = queue->bp; macb_interrupt_misc() local
2121 struct macb *bp = queue->bp; macb_interrupt() local
2187 struct macb *bp = netdev_priv(netdev); macb_poll_controller() local
2199 macb_tx_map(struct macb * bp,struct macb_queue * queue,struct sk_buff * skb,unsigned int hdrlen,u8 fcs_len) macb_tx_map() argument
2477 struct macb *bp = netdev_priv(netdev); macb_start_xmit() local
2581 macb_init_rx_buffer_size(struct macb * bp,size_t size) macb_init_rx_buffer_size() argument
2601 gem_free_rx_buffers(struct macb * bp) gem_free_rx_buffers() argument
2634 macb_free_rx_buffers(struct macb * bp) macb_free_rx_buffers() argument
2646 macb_tx_ring_size_per_queue(struct macb * bp) macb_tx_ring_size_per_queue() argument
2651 macb_rx_ring_size_per_queue(struct macb * bp) macb_rx_ring_size_per_queue() argument
2656 macb_free(struct macb * bp) macb_free() argument
2696 gem_alloc_rx_buffers(struct macb * bp) gem_alloc_rx_buffers() argument
2715 macb_alloc_rx_buffers(struct macb * bp) macb_alloc_rx_buffers() argument
2732 macb_alloc(struct macb * bp) macb_alloc() argument
2792 gem_init_rings(struct macb * bp) gem_init_rings() argument
2813 macb_init_rings(struct macb * bp) macb_init_rings() argument
2830 macb_reset_hw(struct macb * bp) macb_reset_hw() argument
2861 gem_mdc_clk_div(struct macb * bp) gem_mdc_clk_div() argument
2886 macb_mdc_clk_div(struct macb * bp) macb_mdc_clk_div() argument
2911 macb_dbw(struct macb * bp) macb_dbw() argument
2934 macb_configure_dma(struct macb * bp) macb_configure_dma() argument
2976 macb_init_hw(struct macb * bp) macb_init_hw() argument
3077 struct macb *bp = netdev_priv(netdev); macb_sethashtable() local
3095 struct macb *bp = netdev_priv(netdev); macb_set_rx_mode() local
3137 struct macb *bp = netdev_priv(netdev); macb_open() local
3204 struct macb *bp = netdev_priv(netdev); macb_close() local
3261 gem_update_stats(struct macb * bp) gem_update_stats() argument
3290 gem_get_stats(struct macb * bp,struct rtnl_link_stats64 * nstat) gem_get_stats() argument
3331 struct macb *bp = netdev_priv(netdev); gem_get_ethtool_stats() local
3342 struct macb *bp = netdev_priv(netdev); gem_get_sset_count() local
3354 struct macb *bp = netdev_priv(netdev); gem_get_ethtool_strings() local
3376 struct macb *bp = netdev_priv(netdev); macb_get_stats() local
3426 struct macb *bp = netdev_priv(netdev); macb_get_pause_stats() local
3439 struct macb *bp = netdev_priv(netdev); gem_get_pause_stats() local
3452 struct macb *bp = netdev_priv(netdev); macb_get_eth_mac_stats() local
3477 struct macb *bp = netdev_priv(netdev); gem_get_eth_mac_stats() local
3510 struct macb *bp = netdev_priv(netdev); macb_get_eth_phy_stats() local
3522 struct macb *bp = netdev_priv(netdev); gem_get_eth_phy_stats() local
3535 struct macb *bp = netdev_priv(netdev); macb_get_rmon_stats() local
3561 struct macb *bp = netdev_priv(netdev); gem_get_rmon_stats() local
3595 struct macb *bp = netdev_priv(netdev); macb_get_regs() local
3627 struct macb *bp = netdev_priv(netdev); macb_get_wol() local
3638 struct macb *bp = netdev_priv(netdev); macb_set_wol() local
3659 struct macb *bp = netdev_priv(netdev); macb_get_link_ksettings() local
3667 struct macb *bp = netdev_priv(netdev); macb_set_link_ksettings() local
3677 struct macb *bp = netdev_priv(netdev); macb_get_ringparam() local
3691 struct macb *bp = netdev_priv(netdev); macb_set_ringparam() local
3730 gem_get_tsu_rate(struct macb * bp) gem_get_tsu_rate() argument
3754 struct macb *bp = netdev_priv(netdev); gem_get_ts_info() local
3794 struct macb *bp = netdev_priv(netdev); macb_get_ts_info() local
3802 gem_enable_flow_filters(struct macb * bp,bool enable) gem_enable_flow_filters() argument
3848 gem_prog_cmp_regs(struct macb * bp,struct ethtool_rx_flow_spec * fs) gem_prog_cmp_regs() argument
3934 struct macb *bp = netdev_priv(netdev); gem_add_flow_filter() local
3989 struct macb *bp = netdev_priv(netdev); gem_del_flow_filter() local
4025 struct macb *bp = netdev_priv(netdev); gem_get_flow_entry() local
4040 struct macb *bp = netdev_priv(netdev); gem_get_all_flow_entries() local
4058 struct macb *bp = netdev_priv(netdev); gem_get_rx_ring_count() local
4066 struct macb *bp = netdev_priv(netdev); gem_get_rxnfc() local
4090 struct macb *bp = netdev_priv(netdev); gem_set_rxnfc() local
4136 struct macb *bp = netdev_priv(netdev); macb_get_eee() local
4143 struct macb *bp = netdev_priv(netdev); macb_set_eee() local
4176 struct macb *bp = netdev_priv(netdev); macb_ioctl() local
4187 struct macb *bp = netdev_priv(netdev); macb_hwtstamp_get() local
4202 struct macb *bp = netdev_priv(netdev); macb_hwtstamp_set() local
4213 macb_set_txcsum_feature(struct macb * bp,netdev_features_t features) macb_set_txcsum_feature() argument
4230 macb_set_rxcsum_feature(struct macb * bp,netdev_features_t features) macb_set_rxcsum_feature() argument
4248 macb_set_rxflow_feature(struct macb * bp,netdev_features_t features) macb_set_rxflow_feature() argument
4260 struct macb *bp = netdev_priv(netdev); macb_set_features() local
4278 macb_restore_features(struct macb * bp) macb_restore_features() argument
4304 struct macb *bp = netdev_priv(netdev); macb_taprio_setup_replace() local
4453 struct macb *bp = netdev_priv(netdev); macb_taprio_destroy() local
4479 struct macb *bp = netdev_priv(netdev); macb_setup_taprio() local
4521 struct macb *bp = netdev_priv(netdev); macb_tx_timeout() local
4550 macb_configure_caps(struct macb * bp,const struct macb_config * dt_conf) macb_configure_caps() argument
4731 struct macb *bp = netdev_priv(netdev); macb_init_dflt() local
4941 at91ether_alloc_coherent(struct macb * bp) at91ether_alloc_coherent() argument
4969 at91ether_free_coherent(struct macb * bp) at91ether_free_coherent() argument
4991 at91ether_start(struct macb * bp) at91ether_start() argument
5036 at91ether_stop(struct macb * bp) at91ether_stop() argument
5060 struct macb *bp = netdev_priv(netdev); at91ether_open() local
5096 struct macb *bp = netdev_priv(netdev); at91ether_close() local
5114 struct macb *bp = netdev_priv(netdev); at91ether_start_xmit() local
5154 struct macb *bp = netdev_priv(netdev); at91ether_rx() local
5199 struct macb *bp = netdev_priv(netdev); at91ether_interrupt() local
5300 struct macb *bp = netdev_priv(netdev); at91ether_init() local
5439 struct macb *bp = netdev_priv(netdev); init_reset_optional() local
5495 struct macb *bp = netdev_priv(netdev); eyeq5_init() local
5514 macb_alloc_tieoff(struct macb * bp) macb_alloc_tieoff() argument
5535 macb_free_tieoff(struct macb * bp) macb_free_tieoff() argument
5782 struct macb *bp; macb_probe() local
6000 struct macb *bp; macb_remove() local
6026 struct macb *bp = netdev_priv(netdev); macb_suspend() local
6141 struct macb *bp = netdev_priv(netdev); macb_resume() local
6221 struct macb *bp = netdev_priv(netdev); macb_runtime_suspend() local
6234 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()
56 first = gem_readl(bp, TN); in gem_tsu_get_time()
60 secl = gem_readl(bp, TSL); in gem_tsu_get_time()
61 sech = gem_readl(bp, TSH); in gem_tsu_get_time()
62 second = gem_readl(bp, TN); in gem_tsu_get_time()
72 ts->tv_nsec = gem_readl(bp, T in gem_tsu_get_time()
82 struct macb *bp = container_of(ptp, struct macb, ptp_clock_info); gem_tsu_set_time() local
104 gem_tsu_incr_set(struct macb * bp,struct tsu_incr * incr_spec) gem_tsu_incr_set() argument
126 struct macb *bp = container_of(ptp, struct macb, ptp_clock_info); gem_ptp_adjfine() local
161 struct macb *bp = container_of(ptp, struct macb, ptp_clock_info); gem_ptp_adjtime() local
207 gem_ptp_init_timer(struct macb * bp) gem_ptp_init_timer() argument
222 gem_ptp_init_tsu(struct macb * bp) gem_ptp_init_tsu() argument
238 gem_ptp_clear_timer(struct macb * bp) gem_ptp_clear_timer() argument
248 gem_hw_timestamp(struct macb * bp,u32 dma_desc_ts_1,u32 dma_desc_ts_2,struct timespec64 * ts) gem_hw_timestamp() argument
276 gem_ptp_rxstamp(struct macb * bp,struct sk_buff * skb,struct macb_dma_desc * desc) gem_ptp_rxstamp() argument
297 gem_ptp_txstamp(struct macb * bp,struct sk_buff * skb,struct macb_dma_desc * desc) gem_ptp_txstamp() argument
329 struct macb *bp = netdev_priv(netdev); gem_ptp_init() local
358 struct macb *bp = netdev_priv(netdev); gem_ptp_remove() local
371 gem_ptp_set_ts_mode(struct macb * bp,enum macb_bd_control tx_bd_control,enum macb_bd_control rx_bd_control) gem_ptp_set_ts_mode() argument
384 struct macb *bp = netdev_priv(netdev); gem_get_hwtst() local
393 gem_ptp_set_one_step_sync(struct macb * bp,u8 enable) gem_ptp_set_one_step_sync() argument
411 struct macb *bp = netdev_priv(netdev); gem_set_hwtst() local
[all...]
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ulp.c36 static void bnxt_auxdev_set_state(struct bnxt *bp, int idx, int state) in bnxt_auxdev_set_state() argument
38 bp->auxdev_state[idx] = state; in bnxt_auxdev_set_state()
41 static bool bnxt_auxdev_is_init(struct bnxt *bp, int idx) in bnxt_auxdev_is_init() argument
43 return (bp->auxdev_state[idx] == BNXT_ADEV_STATE_INIT); in bnxt_auxdev_is_init()
46 static bool bnxt_auxdev_is_active(struct bnxt *bp, int idx) in bnxt_auxdev_is_active() argument
48 return (bp->auxdev_state[idx] == BNXT_ADEV_STATE_ADD); in bnxt_auxdev_is_active()
57 static void bnxt_fill_msix_vecs(struct bnxt *bp, struct bnxt_msix_entry *ent) in bnxt_fill_msix_vecs() argument
59 struct bnxt_en_dev *edev = bp->edev[BNXT_AUXDEV_RDMA]; in bnxt_fill_msix_vecs()
63 netdev_warn(bp->dev, "Requested MSI-X vectors insufficient\n"); in bnxt_fill_msix_vecs()
68 ent[i].vector = bp->irq_tbl[i].vector; in bnxt_fill_msix_vecs()
[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_vfr.c28 static int hwrm_cfa_vfr_alloc(struct bnxt *bp, u16 vf_idx, in hwrm_cfa_vfr_alloc() argument
35 rc = hwrm_req_init(bp, req, HWRM_CFA_VFR_ALLOC); in hwrm_cfa_vfr_alloc()
40 resp = hwrm_req_hold(bp, req); in hwrm_cfa_vfr_alloc()
41 rc = hwrm_req_send(bp, req); in hwrm_cfa_vfr_alloc()
45 netdev_dbg(bp->dev, "tx_cfa_action=0x%x, rx_cfa_code=0x%x", in hwrm_cfa_vfr_alloc()
48 hwrm_req_drop(bp, req); in hwrm_cfa_vfr_alloc()
51 netdev_info(bp->dev, "%s error rc=%d\n", __func__, rc); in hwrm_cfa_vfr_alloc()
55 static int hwrm_cfa_vfr_free(struct bnxt *bp, u16 vf_idx) in hwrm_cfa_vfr_free() argument
60 rc = hwrm_req_init(bp, req, HWRM_CFA_VFR_FREE); in hwrm_cfa_vfr_free()
63 rc = hwrm_req_send(bp, req); in hwrm_cfa_vfr_free()
[all …]
H A Dbnxt_ethtool.c50 struct bnxt *bp = netdev_priv(dev); in bnxt_get_msglevel() local
52 return bp->msg_enable; in bnxt_get_msglevel()
57 struct bnxt *bp = netdev_priv(dev); in bnxt_set_msglevel() local
59 bp->msg_enable = value; in bnxt_set_msglevel()
67 struct bnxt *bp = netdev_priv(dev); in bnxt_get_coalesce() local
73 coal->use_adaptive_rx_coalesce = bp->flags & BNXT_FLAG_DIM; in bnxt_get_coalesce()
75 hw_coal = &bp->rx_coal; in bnxt_get_coalesce()
85 hw_coal = &bp->tx_coal; in bnxt_get_coalesce()
95 coal->stats_block_coalesce_usecs = bp->stats_coal_ticks; in bnxt_get_coalesce()
105 struct bnxt *bp = netdev_priv(dev); in bnxt_set_coalesce() local
[all …]
H A Dbnxt_ptp.c23 static int bnxt_ptp_cfg_settime(struct bnxt *bp, u64 time) in bnxt_ptp_cfg_settime() argument
28 rc = hwrm_req_init(bp, req, HWRM_FUNC_PTP_CFG); in bnxt_ptp_cfg_settime()
34 return hwrm_req_send(bp, req); in bnxt_ptp_cfg_settime()
67 if (BNXT_PTP_USE_RTC(ptp->bp)) in bnxt_ptp_settime()
68 return bnxt_ptp_cfg_settime(ptp->bp, ns); in bnxt_ptp_settime()
77 static int __bnxt_refclk_read(struct bnxt *bp, struct ptp_system_timestamp *sts, in __bnxt_refclk_read() argument
80 struct bnxt_ptp_cfg *ptp = bp->ptp_cfg; in __bnxt_refclk_read()
83 if (test_bit(BNXT_STATE_IN_FW_RESET, &bp->state)) in __bnxt_refclk_read()
86 high_before = readl(bp->bar0 + ptp->refclk_mapped_regs[1]); in __bnxt_refclk_read()
88 low = readl(bp->bar0 + ptp->refclk_mapped_regs[0]); in __bnxt_refclk_read()
[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/ptp/
H A Dptp_ocp.c278 struct ptp_ocp *bp; member
319 void (*init)(struct ptp_ocp *bp);
320 u32 (*get)(struct ptp_ocp *bp, int sma_nr);
321 int (*set_inputs)(struct ptp_ocp *bp, int sma_nr, u32 val);
322 int (*set_output)(struct ptp_ocp *bp, int sma_nr, u32 val);
428 int (*setup)(struct ptp_ocp *bp, struct ocp_resource *r);
434 static int ptp_ocp_register_mem(struct ptp_ocp *bp, struct ocp_resource *r);
435 static int ptp_ocp_register_i2c(struct ptp_ocp *bp, struct ocp_resource *r);
436 static int ptp_ocp_register_spi(struct ptp_ocp *bp, struct ocp_resource *r);
437 static int ptp_ocp_register_serial(struct ptp_ocp *bp, struct ocp_resource *r);
[all …]
/linux/drivers/net/ethernet/apple/
H A Dbmac.c223 struct bmac_data *bp = netdev_priv(dev); in bmac_enable_and_reset_chip() local
224 volatile struct dbdma_regs __iomem *rd = bp->rx_dma; in bmac_enable_and_reset_chip()
225 volatile struct dbdma_regs __iomem *td = bp->tx_dma; in bmac_enable_and_reset_chip()
232 pmac_call_feature(PMAC_FTR_BMAC_ENABLE, macio_get_of_node(bp->mdev), 0, 1); in bmac_enable_and_reset_chip()
307 struct bmac_data *bp = netdev_priv(dev); in bmac_init_registers() local
324 if (!bp->is_bmac_plus) { in bmac_init_registers()
366 for (i=0; i<4; i++) bp->hash_table_mask[i] = 0; in bmac_init_registers()
367 bmwrite(dev, BHASH3, bp->hash_table_mask[0]); /* bits 15 - 0 */ in bmac_init_registers()
368 bmwrite(dev, BHASH2, bp->hash_table_mask[1]); /* bits 31 - 16 */ in bmac_init_registers()
369 bmwrite(dev, BHASH1, bp->hash_table_mask[2]); /* bits 47 - 32 */ in bmac_init_registers()
[all …]

12345678910>>...16