Home
last modified time | relevance | path

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

123456789

/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_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.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 …]
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_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_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 …]
/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 …]
/drivers/net/fddi/
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 …]
/drivers/net/ethernet/broadcom/bnxt/
Dbnxt.c308 bnxt_writeq(bp, (db)->db_key64 | DBR_TYPE_NQ | RING_CMP(idx), \
315 bnxt_writeq(bp, (db)->db_key64 | DBR_TYPE_NQ_ARM | RING_CMP(idx),\
318 static void bnxt_db_nq(struct bnxt *bp, struct bnxt_db_info *db, u32 idx) in bnxt_db_nq() argument
320 if (bp->flags & BNXT_FLAG_CHIP_P5) in bnxt_db_nq()
326 static void bnxt_db_nq_arm(struct bnxt *bp, struct bnxt_db_info *db, u32 idx) in bnxt_db_nq_arm() argument
328 if (bp->flags & BNXT_FLAG_CHIP_P5) in bnxt_db_nq_arm()
334 static void bnxt_db_cq(struct bnxt *bp, struct bnxt_db_info *db, u32 idx) in bnxt_db_cq() argument
336 if (bp->flags & BNXT_FLAG_CHIP_P5) in bnxt_db_cq()
337 bnxt_writeq(bp, db->db_key64 | DBR_TYPE_CQ_ARMALL | in bnxt_db_cq()
375 static void bnxt_txr_db_kick(struct bnxt *bp, struct bnxt_tx_ring_info *txr, in bnxt_txr_db_kick() argument
[all …]
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 …]
Dbnxt_sriov.c27 static int bnxt_hwrm_fwd_async_event_cmpl(struct bnxt *bp, in bnxt_hwrm_fwd_async_event_cmpl() argument
34 rc = hwrm_req_init(bp, req, HWRM_FWD_ASYNC_EVENT_CMPL); in bnxt_hwrm_fwd_async_event_cmpl()
48 rc = hwrm_req_send(bp, req); in bnxt_hwrm_fwd_async_event_cmpl()
51 netdev_err(bp->dev, "hwrm_fwd_async_event_cmpl failed. rc:%d\n", in bnxt_hwrm_fwd_async_event_cmpl()
56 static int bnxt_vf_ndo_prep(struct bnxt *bp, int vf_id) in bnxt_vf_ndo_prep() argument
58 if (!bp->pf.active_vfs) { in bnxt_vf_ndo_prep()
59 netdev_err(bp->dev, "vf ndo called though sriov is disabled\n"); in bnxt_vf_ndo_prep()
62 if (vf_id >= bp->pf.active_vfs) { in bnxt_vf_ndo_prep()
63 netdev_err(bp->dev, "Invalid VF id %d\n", vf_id); in bnxt_vf_ndo_prep()
71 struct bnxt *bp = netdev_priv(dev); in bnxt_set_vf_spoofchk() local
[all …]
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 …]
Dbnxt_devlink.c25 struct bnxt *bp = bnxt_get_bp_from_dl(dl); in bnxt_dl_flash_update() local
28 if (!BNXT_PF(bp)) { in bnxt_dl_flash_update()
35 rc = bnxt_flash_package_from_fw_obj(bp->dev, params->fw, 0); in bnxt_dl_flash_update()
47 struct bnxt *bp = devlink_health_reporter_priv(reporter); in bnxt_fw_reporter_diagnose() local
51 if (test_bit(BNXT_STATE_IN_FW_RESET, &bp->state)) in bnxt_fw_reporter_diagnose()
54 val = bnxt_fw_health_readl(bp, BNXT_FW_HEALTH_REG); in bnxt_fw_reporter_diagnose()
74 val = bnxt_fw_health_readl(bp, BNXT_FW_RESET_CNT_REG); in bnxt_fw_reporter_diagnose()
91 struct bnxt *bp = devlink_health_reporter_priv(reporter); in bnxt_fw_reset_recover() local
96 bnxt_fw_reset(bp); in bnxt_fw_reset_recover()
110 struct bnxt *bp = devlink_health_reporter_priv(reporter); in bnxt_fw_fatal_recover() local
[all …]
/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 …]
/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 …]
/drivers/net/ethernet/cadence/
Dmacb_main.c54 #define RX_RING_BYTES(bp) (macb_dma_desc_get_size(bp) \ argument
55 * (bp)->rx_ring_size)
60 #define TX_RING_BYTES(bp) (macb_dma_desc_get_size(bp) \ argument
61 * (bp)->tx_ring_size)
64 #define MACB_TX_WAKEUP_THRESH(bp) (3 * (bp)->tx_ring_size / 4) argument
127 static unsigned int macb_dma_desc_get_size(struct macb *bp) in macb_dma_desc_get_size() argument
132 switch (bp->hw_dma_cap) { in macb_dma_desc_get_size()
154 static unsigned int macb_adj_dma_desc_idx(struct macb *bp, unsigned int desc_idx) in macb_adj_dma_desc_idx() argument
157 switch (bp->hw_dma_cap) { in macb_adj_dma_desc_idx()
173 static struct macb_dma_desc_64 *macb_64b_desc(struct macb *bp, struct macb_dma_desc *desc) in macb_64b_desc() argument
[all …]
/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 …]
/drivers/net/fddi/skfp/
Dskfddi.c381 skfddi_priv *bp = &smc->os; in skfp_driver_init() local
387 bp->base_addr = dev->base_addr; in skfp_driver_init()
392 spin_lock_init(&bp->DriverLock); in skfp_driver_init()
395 bp->LocalRxBuffer = dma_alloc_coherent(&bp->pdev.dev, MAX_FRAME_SIZE, in skfp_driver_init()
396 &bp->LocalRxBufferDMA, in skfp_driver_init()
398 if (!bp->LocalRxBuffer) { in skfp_driver_init()
405 bp->SharedMemSize = mac_drv_check_space(); in skfp_driver_init()
406 pr_debug("Memory for HWM: %ld\n", bp->SharedMemSize); in skfp_driver_init()
407 if (bp->SharedMemSize > 0) { in skfp_driver_init()
408 bp->SharedMemSize += 16; // for descriptor alignment in skfp_driver_init()
[all …]
/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((const __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((const __be16 *)(bp->dev->dev_addr + 2)); in __dnet_set_hwaddr()
[all …]
/drivers/ptp/
Dptp_ocp.c143 struct ptp_ocp *bp; member
180 int (*setup)(struct ptp_ocp *bp, struct ocp_resource *r);
185 static int ptp_ocp_register_mem(struct ptp_ocp *bp, struct ocp_resource *r);
186 static int ptp_ocp_register_i2c(struct ptp_ocp *bp, struct ocp_resource *r);
187 static int ptp_ocp_register_spi(struct ptp_ocp *bp, struct ocp_resource *r);
188 static int ptp_ocp_register_serial(struct ptp_ocp *bp, struct ocp_resource *r);
189 static int ptp_ocp_register_ext(struct ptp_ocp *bp, struct ocp_resource *r);
190 static int ptp_ocp_fb_board_init(struct ptp_ocp *bp, struct ocp_resource *r);
194 #define bp_assign_entry(bp, res, val) ({ \ argument
195 uintptr_t addr = (uintptr_t)(bp) + (res)->bp_offset; \
[all …]

123456789