Home
last modified time | relevance | path

Searched refs:bp (Results 1 – 25 of 470) sorted by relevance

12345678910>>...19

/kernel/linux/linux-5.10/fs/xfs/
Dxfs_buf.c55 static int __xfs_buf_submit(struct xfs_buf *bp, bool wait);
59 struct xfs_buf *bp) in xfs_buf_submit() argument
61 return __xfs_buf_submit(bp, !(bp->b_flags & XBF_ASYNC)); in xfs_buf_submit()
66 struct xfs_buf *bp) in xfs_buf_is_vmapped() argument
75 return bp->b_addr && bp->b_page_count > 1; in xfs_buf_is_vmapped()
80 struct xfs_buf *bp) in xfs_buf_vmap_len() argument
82 return (bp->b_page_count * PAGE_SIZE) - bp->b_offset; in xfs_buf_vmap_len()
100 struct xfs_buf *bp) in xfs_buf_ioacct_inc() argument
102 if (bp->b_flags & XBF_NO_IOACCT) in xfs_buf_ioacct_inc()
105 ASSERT(bp->b_flags & XBF_ASYNC); in xfs_buf_ioacct_inc()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_main.c307 static int bnx2x_set_storm_rx_mode(struct bnx2x *bp);
313 static int bnx2x_hwtstamp_ioctl(struct bnx2x *bp, struct ifreq *ifr);
315 static void __storm_memset_dma_mapping(struct bnx2x *bp, in __storm_memset_dma_mapping() argument
318 REG_WR(bp, addr, U64_LO(mapping)); in __storm_memset_dma_mapping()
319 REG_WR(bp, addr + 4, U64_HI(mapping)); in __storm_memset_dma_mapping()
322 static void storm_memset_spq_addr(struct bnx2x *bp, in storm_memset_spq_addr() argument
328 __storm_memset_dma_mapping(bp, addr, mapping); in storm_memset_spq_addr()
331 static void storm_memset_vf_to_pf(struct bnx2x *bp, u16 abs_fid, in storm_memset_vf_to_pf() argument
334 REG_WR8(bp, BAR_XSTRORM_INTMEM + XSTORM_VF_TO_PF_OFFSET(abs_fid), in storm_memset_vf_to_pf()
336 REG_WR8(bp, BAR_CSTRORM_INTMEM + CSTORM_VF_TO_PF_OFFSET(abs_fid), in storm_memset_vf_to_pf()
[all …]
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 …]
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); \
87 u32 bnx2x_send_unload_req(struct bnx2x *bp, int unload_mode);
95 void bnx2x_send_unload_done(struct bnx2x *bp, bool keep_link);
106 int bnx2x_rss(struct bnx2x *bp, struct bnx2x_rss_config_obj *rss_obj,
118 void bnx2x__init_func_obj(struct bnx2x *bp);
128 int bnx2x_setup_queue(struct bnx2x *bp, struct bnx2x_fastpath *fp,
136 int bnx2x_setup_leading(struct bnx2x *bp);
147 u32 bnx2x_fw_command(struct bnx2x *bp, u32 command, u32 param);
[all …]
Dbnx2x_cmn.c35 static void bnx2x_free_fp_mem_cnic(struct bnx2x *bp);
36 static int bnx2x_alloc_fp_mem_cnic(struct bnx2x *bp);
37 static int bnx2x_alloc_fp_mem(struct bnx2x *bp);
40 static void bnx2x_add_all_napi_cnic(struct bnx2x *bp) in bnx2x_add_all_napi_cnic() argument
45 for_each_rx_queue_cnic(bp, i) { in bnx2x_add_all_napi_cnic()
46 netif_napi_add(bp->dev, &bnx2x_fp(bp, i, napi), 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), in bnx2x_add_all_napi()
62 static int bnx2x_calc_num_queues(struct bnx2x *bp) in bnx2x_calc_num_queues() argument
[all …]
Dbnx2x_ethtool.c192 static int bnx2x_get_port_type(struct bnx2x *bp) in bnx2x_get_port_type() argument
195 u32 phy_idx = bnx2x_get_cur_phy_idx(bp); in bnx2x_get_port_type()
196 switch (bp->link_params.phy[phy_idx].media_type) { in bnx2x_get_port_type()
224 struct bnx2x *bp = netdev_priv(dev); in bnx2x_get_vf_link_ksettings() local
232 if (bp->state == BNX2X_STATE_OPEN) { in bnx2x_get_vf_link_ksettings()
234 &bp->vf_link_vars.link_report_flags)) in bnx2x_get_vf_link_ksettings()
239 cmd->base.speed = bp->vf_link_vars.line_speed; in bnx2x_get_vf_link_ksettings()
264 struct bnx2x *bp = netdev_priv(dev); in bnx2x_get_link_ksettings() local
265 int cfg_idx = bnx2x_get_link_cfg_idx(bp); in bnx2x_get_link_ksettings()
273 supported = bp->port.supported[cfg_idx] | in bnx2x_get_link_ksettings()
[all …]
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 …]
Dbnx2x_stats.c46 static inline u16 bnx2x_get_port_stats_dma_len(struct bnx2x *bp) in bnx2x_get_port_stats_dma_len() argument
51 if (SHMEM2_HAS(bp, sizeof_port_stats)) { in bnx2x_get_port_stats_dma_len()
52 u32 size = SHMEM2_RD(bp, sizeof_port_stats); in bnx2x_get_port_stats_dma_len()
68 if (bp->flags & BC_SUPPORTS_PFC_STATS) { in bnx2x_get_port_stats_dma_len()
86 static void bnx2x_dp_stats(struct bnx2x *bp) in bnx2x_dp_stats() argument
98 bp->fw_stats_req->hdr.cmd_num, in bnx2x_dp_stats()
99 bp->fw_stats_req->hdr.reserved0, in bnx2x_dp_stats()
100 bp->fw_stats_req->hdr.drv_stats_counter, in bnx2x_dp_stats()
101 bp->fw_stats_req->hdr.reserved1, in bnx2x_dp_stats()
102 bp->fw_stats_req->hdr.stats_counters_addrs.hi, in bnx2x_dp_stats()
[all …]
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 …]
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 …]
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/
Dbnx2.c244 static void bnx2_init_napi(struct bnx2 *bp);
245 static void bnx2_del_napi(struct bnx2 *bp);
247 static inline u32 bnx2_tx_avail(struct bnx2 *bp, struct bnx2_tx_ring_info *txr) in bnx2_tx_avail() argument
260 return bp->tx_ring_size - diff; in bnx2_tx_avail()
264 bnx2_reg_rd_ind(struct bnx2 *bp, u32 offset) in bnx2_reg_rd_ind() argument
269 spin_lock_irqsave(&bp->indirect_lock, flags); in bnx2_reg_rd_ind()
270 BNX2_WR(bp, BNX2_PCICFG_REG_WINDOW_ADDRESS, offset); in bnx2_reg_rd_ind()
271 val = BNX2_RD(bp, BNX2_PCICFG_REG_WINDOW); in bnx2_reg_rd_ind()
272 spin_unlock_irqrestore(&bp->indirect_lock, flags); in bnx2_reg_rd_ind()
277 bnx2_reg_wr_ind(struct bnx2 *bp, u32 offset, u32 val) in bnx2_reg_wr_ind() argument
[all …]
Db44.c164 static inline unsigned long br32(const struct b44 *bp, unsigned long reg) in br32() argument
166 return ssb_read32(bp->sdev, reg); in br32()
169 static inline void bw32(const struct b44 *bp, in bw32() argument
172 ssb_write32(bp->sdev, reg, val); in bw32()
175 static int b44_wait_bit(struct b44 *bp, unsigned long reg, in b44_wait_bit() argument
181 u32 val = br32(bp, reg); in b44_wait_bit()
191 netdev_err(bp->dev, "BUG! Timeout waiting for bit %08x of register %lx to %s\n", in b44_wait_bit()
199 static inline void __b44_cam_read(struct b44 *bp, unsigned char *data, int index) in __b44_cam_read() argument
203 bw32(bp, B44_CAM_CTRL, (CAM_CTRL_READ | in __b44_cam_read()
206 b44_wait_bit(bp, B44_CAM_CTRL, CAM_CTRL_BUSY, 100, 1); in __b44_cam_read()
[all …]
/kernel/linux/linux-5.10/drivers/net/fddi/
Ddefxx.c266 static void dfx_bus_config_check(DFX_board_t *bp);
271 static int dfx_adap_init(DFX_board_t *bp, int get_buffers);
276 static void dfx_int_pr_halt_id(DFX_board_t *bp);
277 static void dfx_int_type_0_process(DFX_board_t *bp);
284 static int dfx_ctl_update_cam(DFX_board_t *bp);
285 static int dfx_ctl_update_filters(DFX_board_t *bp);
287 static int dfx_hw_dma_cmd_req(DFX_board_t *bp);
288 static int dfx_hw_port_ctrl_req(DFX_board_t *bp, PI_UINT32 command, PI_UINT32 data_a, PI_UINT32 da…
289 static void dfx_hw_adap_reset(DFX_board_t *bp, PI_UINT32 type);
290 static int dfx_hw_adap_state_rd(DFX_board_t *bp);
[all …]
/kernel/linux/linux-5.10/drivers/sbus/char/
Dbbc_i2c.c54 static void set_device_claimage(struct bbc_i2c_bus *bp, struct platform_device *op, int val) in set_device_claimage() argument
59 if (bp->devs[i].device == op) { in set_device_claimage()
60 bp->devs[i].client_claimed = val; in set_device_claimage()
69 struct platform_device *bbc_i2c_getdev(struct bbc_i2c_bus *bp, int index) in bbc_i2c_getdev() argument
75 if (!(op = bp->devs[i].device)) in bbc_i2c_getdev()
89 struct bbc_i2c_client *bbc_i2c_attach(struct bbc_i2c_bus *bp, struct platform_device *op) in bbc_i2c_attach() argument
97 client->bp = bp; in bbc_i2c_attach()
109 claim_device(bp, op); in bbc_i2c_attach()
116 struct bbc_i2c_bus *bp = client->bp; in bbc_i2c_detach() local
119 release_device(bp, op); in bbc_i2c_detach()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/
Dbnxt.c308 static void bnxt_db_nq(struct bnxt *bp, struct bnxt_db_info *db, u32 idx) in bnxt_db_nq() argument
310 if (bp->flags & BNXT_FLAG_CHIP_P5) in bnxt_db_nq()
316 static void bnxt_db_nq_arm(struct bnxt *bp, struct bnxt_db_info *db, u32 idx) in bnxt_db_nq_arm() argument
318 if (bp->flags & BNXT_FLAG_CHIP_P5) in bnxt_db_nq_arm()
324 static void bnxt_db_cq(struct bnxt *bp, struct bnxt_db_info *db, u32 idx) in bnxt_db_cq() argument
326 if (bp->flags & BNXT_FLAG_CHIP_P5) in bnxt_db_cq()
365 static void bnxt_txr_db_kick(struct bnxt *bp, struct bnxt_tx_ring_info *txr, in bnxt_txr_db_kick() argument
368 bnxt_db_write(bp, &txr->tx_db, prod); in bnxt_txr_db_kick()
372 static bool bnxt_txr_netif_try_stop_queue(struct bnxt *bp, in bnxt_txr_netif_try_stop_queue() argument
384 if (bnxt_tx_avail(bp, txr) >= bp->tx_wake_thresh) { in bnxt_txr_netif_try_stop_queue()
[all …]
Dbnxt_dcb.c24 static int bnxt_queue_to_tc(struct bnxt *bp, u8 queue_id) in bnxt_queue_to_tc() argument
28 for (i = 0; i < bp->max_tc; i++) { in bnxt_queue_to_tc()
29 if (bp->q_info[i].queue_id == queue_id) { in bnxt_queue_to_tc()
30 for (j = 0; j < bp->max_tc; j++) { in bnxt_queue_to_tc()
31 if (bp->tc_to_qidx[j] == i) in bnxt_queue_to_tc()
39 static int bnxt_hwrm_queue_pri2cos_cfg(struct bnxt *bp, struct ieee_ets *ets) in bnxt_hwrm_queue_pri2cos_cfg() argument
45 bnxt_hwrm_cmd_hdr_init(bp, &req, HWRM_QUEUE_PRI2COS_CFG, -1, -1); in bnxt_hwrm_queue_pri2cos_cfg()
56 qidx = bp->tc_to_qidx[ets->prio_tc[i]]; in bnxt_hwrm_queue_pri2cos_cfg()
57 pri2cos[i] = bp->q_info[qidx].queue_id; in bnxt_hwrm_queue_pri2cos_cfg()
59 return hwrm_send_message(bp, &req, sizeof(req), HWRM_CMD_TIMEOUT); in bnxt_hwrm_queue_pri2cos_cfg()
[all …]
Dbnxt_sriov.c25 static int bnxt_hwrm_fwd_async_event_cmpl(struct bnxt *bp, in bnxt_hwrm_fwd_async_event_cmpl() argument
32 bnxt_hwrm_cmd_hdr_init(bp, &req, HWRM_FWD_ASYNC_EVENT_CMPL, -1, -1); in bnxt_hwrm_fwd_async_event_cmpl()
42 rc = hwrm_send_message(bp, &req, sizeof(req), HWRM_CMD_TIMEOUT); in bnxt_hwrm_fwd_async_event_cmpl()
44 netdev_err(bp->dev, "hwrm_fwd_async_event_cmpl failed. rc:%d\n", in bnxt_hwrm_fwd_async_event_cmpl()
49 static int bnxt_vf_ndo_prep(struct bnxt *bp, int vf_id) in bnxt_vf_ndo_prep() argument
51 if (!test_bit(BNXT_STATE_OPEN, &bp->state)) { in bnxt_vf_ndo_prep()
52 netdev_err(bp->dev, "vf ndo called though PF is down\n"); in bnxt_vf_ndo_prep()
55 if (!bp->pf.active_vfs) { in bnxt_vf_ndo_prep()
56 netdev_err(bp->dev, "vf ndo called though sriov is disabled\n"); in bnxt_vf_ndo_prep()
59 if (vf_id >= bp->pf.active_vfs) { in bnxt_vf_ndo_prep()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/sun/
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 …]
/kernel/linux/linux-5.10/kernel/debug/kdb/
Dkdb_bp.c40 static char *kdb_bptype(kdb_bp_t *bp) in kdb_bptype() argument
42 if (bp->bp_type < 0 || bp->bp_type > 4) in kdb_bptype()
45 return kdb_rwtypes[bp->bp_type]; in kdb_bptype()
48 static int kdb_parsebp(int argc, const char **argv, int *nextargp, kdb_bp_t *bp) in kdb_parsebp() argument
53 bp->bph_length = 1; in kdb_parsebp()
56 bp->bp_type = BP_ACCESS_WATCHPOINT; in kdb_parsebp()
58 bp->bp_type = BP_WRITE_WATCHPOINT; in kdb_parsebp()
60 bp->bp_type = BP_HARDWARE_BREAKPOINT; in kdb_parsebp()
64 bp->bph_length = 1; in kdb_parsebp()
80 bp->bph_length = len; in kdb_parsebp()
[all …]
/kernel/linux/linux-5.10/drivers/media/usb/pvrusb2/
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 …]
/kernel/linux/linux-5.10/drivers/net/ethernet/cadence/
Dmacb_main.c53 #define RX_RING_BYTES(bp) (macb_dma_desc_get_size(bp) \ argument
54 * (bp)->rx_ring_size)
59 #define TX_RING_BYTES(bp) (macb_dma_desc_get_size(bp) \ argument
60 * (bp)->tx_ring_size)
63 #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
128 switch (bp->hw_dma_cap) { in macb_dma_desc_get_size()
150 static unsigned int macb_adj_dma_desc_idx(struct macb *bp, unsigned int desc_idx) in macb_adj_dma_desc_idx() argument
153 switch (bp->hw_dma_cap) { in macb_adj_dma_desc_idx()
169 static struct macb_dma_desc_64 *macb_64b_desc(struct macb *bp, struct macb_dma_desc *desc) in macb_64b_desc() argument
[all …]
/kernel/linux/linux-5.10/kernel/events/
Dhw_breakpoint.c71 __weak int hw_breakpoint_weight(struct perf_event *bp) in hw_breakpoint_weight() argument
105 static int task_bp_pinned(int cpu, struct perf_event *bp, enum bp_type_idx type) in task_bp_pinned() argument
107 struct task_struct *tsk = bp->hw.target; in task_bp_pinned()
121 static const struct cpumask *cpumask_of_bp(struct perf_event *bp) in cpumask_of_bp() argument
123 if (bp->cpu >= 0) in cpumask_of_bp()
124 return cpumask_of(bp->cpu); in cpumask_of_bp()
133 fetch_bp_busy_slots(struct bp_busy_slots *slots, struct perf_event *bp, in fetch_bp_busy_slots() argument
136 const struct cpumask *cpumask = cpumask_of_bp(bp); in fetch_bp_busy_slots()
144 if (!bp->hw.target) in fetch_bp_busy_slots()
147 nr += task_bp_pinned(cpu, bp, type); in fetch_bp_busy_slots()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/
Ddnet.c27 static u16 dnet_readw_mac(struct dnet *bp, u16 reg) in dnet_readw_mac() argument
32 dnet_writel(bp, reg, MACREG_ADDR); in dnet_readw_mac()
39 data_read = dnet_readl(bp, MACREG_DATA); in dnet_readw_mac()
46 static void dnet_writew_mac(struct dnet *bp, u16 reg, u16 val) in dnet_writew_mac() argument
49 dnet_writel(bp, val, MACREG_DATA); in dnet_writew_mac()
52 dnet_writel(bp, reg | DNET_INTERNAL_WRITE, MACREG_ADDR); in dnet_writew_mac()
59 static void __dnet_set_hwaddr(struct dnet *bp) in __dnet_set_hwaddr() argument
63 tmp = be16_to_cpup((__be16 *)bp->dev->dev_addr); in __dnet_set_hwaddr()
64 dnet_writew_mac(bp, DNET_INTERNAL_MAC_ADDR_0_REG, tmp); in __dnet_set_hwaddr()
65 tmp = be16_to_cpup((__be16 *)(bp->dev->dev_addr + 2)); in __dnet_set_hwaddr()
[all …]
/kernel/linux/linux-5.10/drivers/net/fddi/skfp/
Dskfddi.c379 skfddi_priv *bp = &smc->os; in skfp_driver_init() local
385 bp->base_addr = dev->base_addr; in skfp_driver_init()
390 spin_lock_init(&bp->DriverLock); in skfp_driver_init()
393 bp->LocalRxBuffer = dma_alloc_coherent(&bp->pdev.dev, MAX_FRAME_SIZE, in skfp_driver_init()
394 &bp->LocalRxBufferDMA, in skfp_driver_init()
396 if (!bp->LocalRxBuffer) { in skfp_driver_init()
403 bp->SharedMemSize = mac_drv_check_space(); in skfp_driver_init()
404 pr_debug("Memory for HWM: %ld\n", bp->SharedMemSize); in skfp_driver_init()
405 if (bp->SharedMemSize > 0) { in skfp_driver_init()
406 bp->SharedMemSize += 16; // for descriptor alignment in skfp_driver_init()
[all …]
/kernel/linux/linux-5.10/fs/afs/
Dfsclient.c22 const __be32 *bp = *_bp; in xdr_decode_AFSFid() local
24 fid->vid = ntohl(*bp++); in xdr_decode_AFSFid()
25 fid->vnode = ntohl(*bp++); in xdr_decode_AFSFid()
26 fid->unique = ntohl(*bp++); in xdr_decode_AFSFid()
27 *_bp = bp; in xdr_decode_AFSFid()
33 static void xdr_dump_bad(const __be32 *bp) in xdr_dump_bad() argument
40 memcpy(x, bp, 16); in xdr_dump_bad()
41 bp += 4; in xdr_dump_bad()
46 memcpy(x, bp, 4); in xdr_dump_bad()
141 const __be32 *bp = *_bp; in xdr_decode_AFSCallBack() local
[all …]

12345678910>>...19