Home
last modified time | relevance | path

Searched defs:bp (Results 1 – 25 of 183) sorted by relevance

12345678

/linux/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_sriov.c35 static void storm_memset_vf_to_pf(struct bnx2x *bp, u16 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()
61 int bnx2x_vf_idx_by_abs_fid(struct bnx2x *bp, u16 abs_vfid) in bnx2x_vf_idx_by_abs_fid()
72 struct bnx2x_virtf *bnx2x_vf_by_abs_fid(struct bnx2x *bp, u16 abs_vfid) in bnx2x_vf_by_abs_fid()
78 static void bnx2x_vf_igu_ack_sb(struct bnx2x *bp, struct bnx2x_virtf *vf, in bnx2x_vf_igu_ack_sb()
111 static bool bnx2x_validate_vf_sp_objs(struct bnx2x *bp, in bnx2x_validate_vf_sp_objs()
126 void bnx2x_vfop_qctor_dump_tx(struct bnx2x *bp, struct bnx2x_virtf *vf, in bnx2x_vfop_qctor_dump_tx()
142 void bnx2x_vfop_qctor_dump_rx(struct bnx2x *bp, struct bnx2x_virtf *vf, in bnx2x_vfop_qctor_dump_rx()
166 void bnx2x_vfop_qctor_prep(struct bnx2x *bp, in bnx2x_vfop_qctor_prep()
234 static int bnx2x_vf_queue_create(struct bnx2x *bp, in bnx2x_vf_queue_create()
[all …]
H A Dbnx2x_dcb.c55 static void bnx2x_read_data(struct bnx2x *bp, u32 *buff, in bnx2x_read_data()
63 static void bnx2x_write_data(struct bnx2x *bp, u32 *buff, in bnx2x_write_data()
71 static void bnx2x_pfc_set(struct bnx2x *bp) in bnx2x_pfc_set()
116 static void bnx2x_pfc_clear(struct bnx2x *bp) in bnx2x_pfc_clear()
126 static void bnx2x_dump_dcbx_drv_param(struct bnx2x *bp, in bnx2x_dump_dcbx_drv_param()
172 static void bnx2x_dcbx_get_ap_priority(struct bnx2x *bp, in bnx2x_dcbx_get_ap_priority()
193 static void bnx2x_dcbx_get_ap_feature(struct bnx2x *bp, in bnx2x_dcbx_get_ap_feature()
274 static void bnx2x_dcbx_get_ets_feature(struct bnx2x *bp, in bnx2x_dcbx_get_ets_feature()
326 static void bnx2x_dcbx_get_pfc_feature(struct bnx2x *bp, in bnx2x_dcbx_get_pfc_feature()
348 static void bnx2x_dcbx_map_nw(struct bnx2x *bp) in bnx2x_dcbx_map_nw()
[all …]
H A Dbnx2x_vfpf.c29 static void bnx2x_add_tlv(struct bnx2x *bp, void *tlvs_list, in bnx2x_add_tlv()
40 static void bnx2x_vfpf_prep(struct bnx2x *bp, struct vfpf_first_tlv *first_tlv, in bnx2x_vfpf_prep()
59 static void bnx2x_vfpf_finalize(struct bnx2x *bp, in bnx2x_vfpf_finalize()
69 static void *bnx2x_search_tlv_list(struct bnx2x *bp, void *tlvs_list, in bnx2x_search_tlv_list()
93 static void bnx2x_dp_tlv_list(struct bnx2x *bp, void *tlvs_list) in bnx2x_dp_tlv_list()
141 static int bnx2x_send_msg2pf(struct bnx2x *bp, u8 *done, dma_addr_t msg_mapping) in bnx2x_send_msg2pf()
194 static int bnx2x_get_vf_id(struct bnx2x *bp, u32 *vf_id) in bnx2x_get_vf_id()
223 int bnx2x_vfpf_acquire(struct bnx2x *bp, u8 tx_count, u8 rx_count) in bnx2x_vfpf_acquire()
395 int bnx2x_vfpf_release(struct bnx2x *bp) in bnx2x_vfpf_release()
442 int bnx2x_vfpf_init(struct bnx2x *bp) in bnx2x_vfpf_init()
[all …]
H A Dbnx2x_cmn.h505 static inline void bnx2x_update_rx_prod(struct bnx2x *bp, in bnx2x_update_rx_prod()
636 static inline void bnx2x_igu_ack_sb_gen(struct bnx2x *bp, u8 igu_sb_id, in bnx2x_igu_ack_sb_gen()
656 static inline void bnx2x_hc_ack_sb(struct bnx2x *bp, u8 sb_id, in bnx2x_hc_ack_sb()
676 static inline void bnx2x_ack_sb(struct bnx2x *bp, u8 igu_sb_id, u8 storm, in bnx2x_ack_sb()
696 static inline u16 bnx2x_hc_ack_int(struct bnx2x *bp) in bnx2x_hc_ack_int()
706 static inline u16 bnx2x_igu_ack_int(struct bnx2x *bp) in bnx2x_igu_ack_int()
718 static inline u16 bnx2x_ack_int(struct bnx2x *bp) in bnx2x_ack_int()
734 static inline u16 bnx2x_tx_avail(struct bnx2x *bp, in bnx2x_tx_avail()
793 static inline void bnx2x_tx_disable(struct bnx2x *bp) in bnx2x_tx_disable()
799 static inline void bnx2x_free_rx_sge(struct bnx2x *bp, in bnx2x_free_rx_sge()
[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()
84 static void bnx2x_dp_stats(struct bnx2x *bp) in bnx2x_dp_stats()
126 static void bnx2x_storm_stats_post(struct bnx2x *bp) in bnx2x_storm_stats_post()
152 static void bnx2x_hw_stats_post(struct bnx2x *bp) in bnx2x_hw_stats_post()
197 static void bnx2x_stats_comp(struct bnx2x *bp) in bnx2x_stats_comp()
218 static void bnx2x_stats_pmf_update(struct bnx2x *bp) in bnx2x_stats_pmf_update()
265 static void bnx2x_port_stats_init(struct bnx2x *bp) in bnx2x_port_stats_init()
487 static void bnx2x_func_stats_init(struct bnx2x *bp) in bnx2x_func_stats_init()
516 static void bnx2x_stats_start(struct bnx2x *bp) in bnx2x_stats_start()
530 static void bnx2x_stats_pmf_start(struct bnx2x *bp) in bnx2x_stats_pmf_start()
[all …]
H A Dbnx2x_sp.c50 static inline void bnx2x_exe_queue_init(struct bnx2x *bp, in bnx2x_exe_queue_init()
81 static inline void bnx2x_exe_queue_free_elem(struct bnx2x *bp, in bnx2x_exe_queue_free_elem()
113 static inline int bnx2x_exe_queue_add(struct bnx2x *bp, in bnx2x_exe_queue_add()
152 struct bnx2x *bp, in __bnx2x_exe_queue_reset_pending()
175 static inline int bnx2x_exe_queue_step(struct bnx2x *bp, in bnx2x_exe_queue_step()
251 struct bnx2x *bp) in bnx2x_exe_queue_alloc_elem()
285 static inline int bnx2x_state_wait(struct bnx2x *bp, int state, in bnx2x_state_wait()
320 static int bnx2x_raw_wait(struct bnx2x *bp, struct bnx2x_raw_obj *raw) in bnx2x_raw_wait()
432 static int __bnx2x_vlan_mac_h_write_trylock(struct bnx2x *bp, in __bnx2x_vlan_mac_h_write_trylock()
453 static void __bnx2x_vlan_mac_h_exec_pending(struct bnx2x *bp, in __bnx2x_vlan_mac_h_exec_pending()
[all …]
H A Dbnx2x_link.c220 static u32 bnx2x_bits_en(struct bnx2x *bp, u32 reg, u32 bits) in bnx2x_bits_en()
229 static u32 bnx2x_bits_dis(struct bnx2x *bp, u32 reg, u32 bits) in bnx2x_bits_dis()
251 struct bnx2x *bp = params->bp; in bnx2x_check_lfa() local
368 static void bnx2x_get_epio(struct bnx2x *bp, u32 epio_pin, u32 *en) in bnx2x_get_epio()
385 static void bnx2x_set_epio(struct bnx2x *bp, u32 epio_pin, u32 en) in bnx2x_set_epio()
410 static void bnx2x_set_cfg_pin(struct bnx2x *bp, u32 pin_cfg, u32 val) in bnx2x_set_cfg_pin()
423 static u32 bnx2x_get_cfg_pin(struct bnx2x *bp, u32 pin_cfg, u32 *val) in bnx2x_get_cfg_pin()
443 struct bnx2x *bp = params->bp; in bnx2x_ets_e2e3a0_disabled() local
534 struct bnx2x *bp = params->bp; in bnx2x_ets_e3b0_set_credit_upper_bound_nig() local
572 struct bnx2x *bp = params->bp; in bnx2x_ets_e3b0_nig_disabled() local
[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
51 static void bnx2x_init_str_wr(struct bnx2x *bp, u32 addr, in bnx2x_init_str_wr()
60 static void bnx2x_init_ind_wr(struct bnx2x *bp, u32 addr, in bnx2x_init_ind_wr()
69 static void bnx2x_write_big_buf(struct bnx2x *bp, u32 addr, u32 len, in bnx2x_write_big_buf()
84 static void bnx2x_init_fill(struct bnx2x *bp, u32 addr, int fill, in bnx2x_init_fill()
100 static void bnx2x_write_big_buf_wb(struct bnx2x *bp, u32 addr, u32 len) in bnx2x_write_big_buf_wb()
114 static void bnx2x_init_wr_64(struct bnx2x *bp, u32 addr, in bnx2x_init_wr_64()
153 static const u8 *bnx2x_sel_blob(struct bnx2x *bp, u32 addr, in bnx2x_sel_blob()
[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
232 #define HW_VF_HANDLE(bp, abs_vfid) \ argument
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
318 #define BP_VFDB(bp) ((bp)->vfdb) argument
321 #define BP_VF(bp, idx) ((BP_VFDB(bp) && (bp)->vfdb->vfs) ? \ argument
323 #define bnx2x_vf(bp, idx, var) ((bp)->vfdb->vfs[idx].var) argument
330 #define BP_VF_CXT_PAGE(bp, i) (&(bp)->vfdb->context[i]) argument
335 #define BP_VF_MBX_DMA(bp) (&((bp)->vfdb->mbx_dma)) argument
[all …]
H A Dbnx2x.h53 #define BNX2X_MIN_MSIX_VEC_CNT(bp) ((bp)->min_msix_vec_cnt) argument
169 #define REG_ADDR(bp, offset) ((bp->regview) + (offset)) argument
171 #define REG_RD(bp, offset) readl(REG_ADDR(bp, offset)) argument
172 #define REG_RD8(bp, offset) readb(REG_ADDR(bp, offset)) argument
173 #define REG_RD16(bp, offset) readw(REG_ADDR(bp, offset)) argument
175 #define REG_WR_RELAXED(bp, offset, val) \ argument
178 #define REG_WR16_RELAXED(bp, offset, val) \ argument
181 #define REG_WR(bp, offset, val) writel((u32)val, REG_ADDR(bp, offset)) argument
182 #define REG_WR8(bp, offset, val) writeb((u8)val, REG_ADDR(bp, offset)) argument
183 #define REG_WR16(bp, offset, val) writew((u16)val, REG_ADDR(bp, offset)) argument
[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()
41 static bool bnxt_auxdev_is_init(struct bnxt *bp, int idx) in bnxt_auxdev_is_init()
46 static bool bnxt_auxdev_is_active(struct bnxt *bp, int idx) 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()
77 int bnxt_get_ulp_msix_num(struct bnxt *bp) in bnxt_get_ulp_msix_num()
86 void bnxt_set_ulp_msix_num(struct bnxt *bp, int num) in bnxt_set_ulp_msix_num()
94 int bnxt_get_ulp_msix_num_in_use(struct bnxt *bp) in bnxt_get_ulp_msix_num_in_use()
103 int bnxt_get_ulp_stat_ctxs(struct bnxt *bp) in bnxt_get_ulp_stat_ctxs()
112 void bnxt_set_ulp_stat_ctxs(struct bnxt *bp, int num_ulp_ctx) in bnxt_set_ulp_stat_ctxs()
120 int bnxt_get_ulp_stat_ctxs_in_use(struct bnxt *bp) in bnxt_get_ulp_stat_ctxs_in_use()
[all …]
H A Dbnxt_dcb.c25 static int bnxt_queue_to_tc(struct bnxt *bp, u8 queue_id) 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()
66 static int bnxt_hwrm_queue_pri2cos_qcfg(struct bnxt *bp, struct ieee_ets *ets) in bnxt_hwrm_queue_pri2cos_qcfg()
96 static int bnxt_hwrm_queue_cos2bw_cfg(struct bnxt *bp, struct ieee_ets *ets, in bnxt_hwrm_queue_cos2bw_cfg()
145 static int bnxt_hwrm_queue_cos2bw_qcfg(struct bnxt *bp, struct ieee_ets *ets) in bnxt_hwrm_queue_cos2bw_qcfg()
193 static int bnxt_queue_remap(struct bnxt *bp, unsigned int lltc_mask) in bnxt_queue_remap()
249 static int bnxt_hwrm_queue_pfc_cfg(struct bnxt *bp, struct ieee_pfc *pfc) in bnxt_hwrm_queue_pfc_cfg()
297 static int bnxt_hwrm_queue_pfc_qcfg(struct bnxt *bp, struct ieee_pfc *pfc) in bnxt_hwrm_queue_pfc_qcfg()
321 static int bnxt_hwrm_set_dcbx_app(struct bnxt *bp, struct dcb_app *app, in bnxt_hwrm_set_dcbx_app()
414 static int bnxt_hwrm_queue_dscp_qcaps(struct bnxt *bp) in bnxt_hwrm_queue_dscp_qcaps()
[all …]
H A Dbnxt_hwrm.c61 int __hwrm_req_init(struct bnxt *bp, void **req, u16 req_type, u32 req_len) in __hwrm_req_init()
98 static struct bnxt_hwrm_ctx *__hwrm_ctx(struct bnxt *bp, u8 *req_addr) in __hwrm_ctx()
135 void hwrm_req_timeout(struct bnxt *bp, void *req, unsigned int timeout) in hwrm_req_timeout()
158 void hwrm_req_alloc_flags(struct bnxt *bp, void *req, gfp_t gfp) in hwrm_req_alloc_flags()
192 int hwrm_req_replace(struct bnxt *bp, void *req, void *new_req, u32 len) in hwrm_req_replace()
245 void hwrm_req_flags(struct bnxt *bp, void *req, enum bnxt_hwrm_ctx_flags flags) in hwrm_req_flags()
278 void *hwrm_req_hold(struct bnxt *bp, void *req) in hwrm_req_hold()
298 static void __hwrm_ctx_drop(struct bnxt *bp, struct bnxt_hwrm_ctx *ctx) in __hwrm_ctx_drop()
330 void hwrm_req_drop(struct bnxt *bp, void *req) in hwrm_req_drop()
370 __hwrm_acquire_token(struct bnxt *bp, enum bnxt_hwrm_chnl dst) in __hwrm_acquire_token()
[all …]
H A Dbnxt_ptp.c23 static int bnxt_ptp_cfg_settime(struct bnxt *bp, u64 time) in bnxt_ptp_cfg_settime()
77 static int __bnxt_refclk_read(struct bnxt *bp, struct ptp_system_timestamp *sts, in __bnxt_refclk_read()
101 static int bnxt_refclk_read(struct bnxt *bp, struct ptp_system_timestamp *sts, in bnxt_refclk_read()
115 static int bnxt_refclk_read_low(struct bnxt *bp, struct ptp_system_timestamp *sts, in bnxt_refclk_read_low()
137 static void bnxt_ptp_get_current_time(struct bnxt *bp) in bnxt_ptp_get_current_time()
147 static int bnxt_hwrm_port_ts_query(struct bnxt *bp, u32 flags, u64 *ts, in bnxt_hwrm_port_ts_query()
202 void bnxt_ptp_update_current_time(struct bnxt *bp) in bnxt_ptp_update_current_time()
247 static int bnxt_ptp_adjfine_rtc(struct bnxt *bp, long scaled_ppm) in bnxt_ptp_adjfine_rtc()
270 struct bnxt *bp = ptp->bp; in bnxt_ptp_adjfine() local
283 void bnxt_ptp_pps_event(struct bnxt *bp, u32 data1, u32 data2) in bnxt_ptp_pps_event()
[all …]
H A Dbnxt_vfr.h29 struct bnxt *bp = vf_rep->bp; in bnxt_vf_rep_get_fid() local
41 static inline int bnxt_vf_reps_create(struct bnxt *bp) in bnxt_vf_reps_create()
46 static inline void bnxt_vf_reps_close(struct bnxt *bp) in bnxt_vf_reps_close()
50 static inline void bnxt_vf_reps_open(struct bnxt *bp) in bnxt_vf_reps_open()
54 static inline void bnxt_vf_rep_rx(struct bnxt *bp, struct sk_buff *skb) in bnxt_vf_rep_rx()
58 static inline struct net_device *bnxt_get_vf_rep(struct bnxt *bp, u16 cfa_code) in bnxt_get_vf_rep()
73 static inline int bnxt_vf_reps_alloc(struct bnxt *bp) in bnxt_vf_reps_alloc()
78 static inline void bnxt_vf_reps_free(struct bnxt *bp) in bnxt_vf_reps_free()
H A Dbnxt_vfr.c28 static int hwrm_cfa_vfr_alloc(struct bnxt *bp, u16 vf_idx, in hwrm_cfa_vfr_alloc()
55 static int hwrm_cfa_vfr_free(struct bnxt *bp, u16 vf_idx) in hwrm_cfa_vfr_free()
70 static int bnxt_hwrm_vfr_qcfg(struct bnxt *bp, struct bnxt_vf_rep *vf_rep, in bnxt_hwrm_vfr_qcfg()
99 struct bnxt *bp = vf_rep->bp; in bnxt_vf_rep_open() local
153 struct bnxt *bp = vf_rep->bp; in bnxt_vf_rep_setup_tc_block_cb() local
186 struct net_device *bnxt_get_vf_rep(struct bnxt *bp, u16 cfa_code) in bnxt_get_vf_rep()
198 void bnxt_vf_rep_rx(struct bnxt *bp, struct sk_buff *skb) in bnxt_vf_rep_rx()
262 void bnxt_vf_reps_close(struct bnxt *bp) in bnxt_vf_reps_close()
282 void bnxt_vf_reps_open(struct bnxt *bp) in bnxt_vf_reps_open()
296 static void __bnxt_free_one_vf_rep(struct bnxt *bp, struct bnxt_vf_rep *vf_rep) in __bnxt_free_one_vf_rep()
[all …]
H A Dbnxt_tc.c50 struct bnxt *bp; in bnxt_flow_get_dst_fid() local
67 static int bnxt_tc_parse_redir(struct bnxt *bp, in bnxt_tc_parse_redir()
83 static int bnxt_tc_parse_vlan(struct bnxt *bp, in bnxt_tc_parse_vlan()
102 static int bnxt_tc_parse_tunnel_set(struct bnxt *bp, in bnxt_tc_parse_tunnel_set()
183 bnxt_tc_parse_pedit(struct bnxt *bp, struct bnxt_tc_actions *actions, in bnxt_tc_parse_pedit()
281 static int bnxt_tc_parse_actions(struct bnxt *bp, in bnxt_tc_parse_actions()
368 static int bnxt_tc_parse_flow(struct bnxt *bp, in bnxt_tc_parse_flow()
507 static int bnxt_hwrm_cfa_flow_free(struct bnxt *bp, in bnxt_hwrm_cfa_flow_free()
589 static int bnxt_hwrm_cfa_flow_alloc(struct bnxt *bp, struct bnxt_tc_flow *flow, in bnxt_hwrm_cfa_flow_alloc()
793 static int hwrm_cfa_decap_filter_alloc(struct bnxt *bp, in hwrm_cfa_decap_filter_alloc()
[all …]
/linux/drivers/net/ethernet/cadence/
H A Dmacb_ptp.c28 static struct macb_dma_desc_ptp *macb_ptp_desc(struct macb *bp, in macb_ptp_desc()
46 struct macb *bp = container_of(ptp, struct macb, ptp_clock_info); in gem_tsu_get_time() local
82 struct macb *bp = container_of(ptp, struct macb, ptp_clock_info); in gem_tsu_set_time() local
104 static int gem_tsu_incr_set(struct macb *bp, struct tsu_incr *incr_spec) in gem_tsu_incr_set()
126 struct macb *bp = container_of(ptp, struct macb, ptp_clock_info); in gem_ptp_adjfine() local
161 struct macb *bp = container_of(ptp, struct macb, ptp_clock_info); in gem_ptp_adjtime() local
207 static void gem_ptp_init_timer(struct macb *bp) in gem_ptp_init_timer()
222 static void gem_ptp_init_tsu(struct macb *bp) in gem_ptp_init_tsu()
238 static void gem_ptp_clear_timer(struct macb *bp) in gem_ptp_clear_timer()
248 static int gem_hw_timestamp(struct macb *bp, u32 dma_desc_ts_1, in gem_hw_timestamp()
[all …]
/linux/fs/afs/
H A Dyfsclient.c31 static __be32 *xdr_encode_u32(__be32 *bp, u32 n) in xdr_encode_u32()
37 static __be32 *xdr_encode_u64(__be32 *bp, u64 n) in xdr_encode_u64()
45 static __be32 *xdr_encode_YFSFid(__be32 *bp, struct afs_fid *fid) in xdr_encode_YFSFid()
61 static __be32 *xdr_encode_string(__be32 *bp, const char *p, unsigned int len) in xdr_encode_string()
75 static __be32 *xdr_encode_name(__be32 *bp, const struct qstr *p) in xdr_encode_name()
86 static __be32 *xdr_encode_YFSStoreStatus(__be32 *bp, mode_t *mode, in xdr_encode_YFSStoreStatus()
138 static void yfs_check_req(struct afs_call *call, __be32 *bp) in yfs_check_req()
153 static void xdr_dump_bad(const __be32 *bp) in xdr_dump_bad()
265 static __be32 *xdr_encode_YFS_StoreStatus(__be32 *bp, struct iattr *attr) in xdr_encode_YFS_StoreStatus()
334 const __be32 *bp; in yfs_deliver_status_and_volsync() local
[all …]
H A Dfsclient.c23 const __be32 *bp = *_bp; in xdr_decode_AFSFid() local
34 static void xdr_dump_bad(const __be32 *bp) in xdr_dump_bad()
142 const __be32 *bp = *_bp; in xdr_decode_AFSCallBack() local
157 const __be32 *bp = *_bp; in xdr_decode_AFSVolSync() local
177 __be32 *bp = *_bp; in xdr_encode_AFS_StoreStatus() local
216 const __be32 *bp = *_bp; in xdr_decode_AFSFetchVolumeStatus() local
242 const __be32 *bp; in afs_deliver_fs_fetch_status() local
276 __be32 *bp; in afs_fs_fetch_status() local
306 const __be32 *bp; in afs_deliver_fs_fetch_data() local
434 __be32 *bp; in afs_fs_fetch_data64() local
[all …]
/linux/drivers/net/ethernet/sun/
H A Dsunbmac.c98 static void qec_init(struct bigmac *bp) in qec_init()
165 static void bigmac_stop(struct bigmac *bp) in bigmac_stop()
171 static void bigmac_get_counters(struct bigmac *bp, void __iomem *bregs) in bigmac_get_counters()
193 static void bigmac_clean_rings(struct bigmac *bp) in bigmac_clean_rings()
212 static void bigmac_init_rings(struct bigmac *bp, bool non_blocking) in bigmac_init_rings()
268 static void write_tcvr_bit(struct bigmac *bp, void __iomem *tregs, int bit) in write_tcvr_bit()
291 static int read_tcvr_bit(struct bigmac *bp, void __iomem *tregs) in read_tcvr_bit()
314 static int read_tcvr_bit2(struct bigmac *bp, void __iomem *tregs) in read_tcvr_bit2()
336 static void put_tcvr_byte(struct bigmac *bp, in put_tcvr_byte()
348 static void bigmac_tcvr_write(struct bigmac *bp, void __iomem *tregs, in bigmac_tcvr_write()
[all …]
/linux/kernel/events/
H A Dhw_breakpoint.c108 static inline struct mutex *get_task_bps_mutex(struct perf_event *bp) in get_task_bps_mutex()
115 static struct mutex *bp_constraints_lock(struct perf_event *bp) in bp_constraints_lock()
149 static bool bp_constraints_is_locked(struct perf_event *bp) in bp_constraints_is_locked()
158 static inline void assert_bp_constraints_lock_held(struct perf_event *bp) in assert_bp_constraints_lock_held()
286 static inline int hw_breakpoint_weight(struct perf_event *bp) in hw_breakpoint_weight()
323 static int task_bp_pinned(int cpu, struct perf_event *bp, enum bp_type_idx type) in task_bp_pinned()
359 static const struct cpumask *cpumask_of_bp(struct perf_event *bp) in cpumask_of_bp()
371 max_bp_pinned_slots(struct perf_event *bp, enum bp_type_idx type) in max_bp_pinned_slots()
410 toggle_bp_slot(struct perf_event *bp, bool enable, enum bp_type_idx type, int weight) in toggle_bp_slot()
573 static int __reserve_bp_slot(struct perf_event *bp, u64 bp_type) in __reserve_bp_slot()
[all …]
/linux/include/linux/
H A Dhw_breakpoint.h42 static inline unsigned long hw_breakpoint_addr(struct perf_event *bp) in hw_breakpoint_addr()
47 static inline int hw_breakpoint_type(struct perf_event *bp) in hw_breakpoint_type()
52 static inline unsigned long hw_breakpoint_len(struct perf_event *bp) in hw_breakpoint_len()
96 static inline struct arch_hw_breakpoint *counter_arch_bp(struct perf_event *bp) in counter_arch_bp()
111 modify_user_hw_breakpoint(struct perf_event *bp, in modify_user_hw_breakpoint()
114 modify_user_hw_breakpoint_check(struct perf_event *bp, struct perf_event_attr *attr, in modify_user_hw_breakpoint_check()
127 register_perf_hw_breakpoint(struct perf_event *bp) { return -ENOSYS; } in register_perf_hw_breakpoint()
128 static inline void unregister_hw_breakpoint(struct perf_event *bp) { } in unregister_hw_breakpoint()
134 reserve_bp_slot(struct perf_event *bp) {return -ENOSYS; } in reserve_bp_slot()
135 static inline void release_bp_slot(struct perf_event *bp) { } in release_bp_slot()
[all …]
/linux/arch/xtensa/kernel/
H A Dhw_breakpoint.c51 int hw_breakpoint_arch_parse(struct perf_event *bp, in hw_breakpoint_arch_parse()
135 struct perf_event *bp) in alloc_slot()
148 static void set_ibreak_regs(int reg, struct perf_event *bp) in set_ibreak_regs()
158 static void set_dbreak_regs(int reg, struct perf_event *bp) in set_dbreak_regs()
172 int arch_install_hw_breakpoint(struct perf_event *bp) in arch_install_hw_breakpoint()
194 struct perf_event *bp) in free_slot()
207 void arch_uninstall_hw_breakpoint(struct perf_event *bp) in arch_uninstall_hw_breakpoint()
230 void hw_breakpoint_pmu_read(struct perf_event *bp) in hw_breakpoint_pmu_read()
269 struct perf_event *bp = this_cpu_ptr(wp_on_reg)[i]; in restore_dbreak() local
281 struct perf_event **bp = this_cpu_ptr(bp_on_reg); in check_hw_breakpoint() local
[all …]
/linux/drivers/media/usb/pvrusb2/
H A Dpvrusb2-io.c22 #define BUFFER_CHECK(bp) do { \ argument
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()
115 static void pvr2_buffer_remove(struct pvr2_buffer *bp) in pvr2_buffer_remove()
149 static void pvr2_buffer_set_none(struct pvr2_buffer *bp) in pvr2_buffer_set_none()
165 static int pvr2_buffer_set_ready(struct pvr2_buffer *bp) in pvr2_buffer_set_ready()
192 static void pvr2_buffer_set_idle(struct pvr2_buffer *bp) in pvr2_buffer_set_idle()
216 static void pvr2_buffer_set_queued(struct pvr2_buffer *bp) in pvr2_buffer_set_queued()
240 static void pvr2_buffer_wipe(struct pvr2_buffer *bp) in pvr2_buffer_wipe()
247 static int pvr2_buffer_init(struct pvr2_buffer *bp, in pvr2_buffer_init()
[all …]

12345678