/linux/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_main.c | 306 static int bnx2x_set_storm_rx_mode(struct bnx2x *bp); 312 static int bnx2x_hwtstamp_ioctl(struct bnx2x *bp, struct ifreq *ifr); 314 static void __storm_memset_dma_mapping(struct bnx2x *bp, in __storm_memset_dma_mapping() argument 317 REG_WR(bp, addr, U64_LO(mapping)); in __storm_memset_dma_mapping() 318 REG_WR(bp, addr + 4, U64_HI(mapping)); in __storm_memset_dma_mapping() 321 static void storm_memset_spq_addr(struct bnx2x *bp, in storm_memset_spq_addr() argument 327 __storm_memset_dma_mapping(bp, addr, mapping); in storm_memset_spq_addr() 330 static void storm_memset_vf_to_pf(struct bnx2x *bp, u16 abs_fid, in storm_memset_vf_to_pf() argument 333 REG_WR8(bp, BAR_XSTRORM_INTMEM + XSTORM_VF_TO_PF_OFFSET(abs_fid), in storm_memset_vf_to_pf() 335 REG_WR8(bp, BAR_CSTRORM_INTMEM + CSTORM_VF_TO_PF_OFFSET(abs_fid), in storm_memset_vf_to_pf() [all …]
|
H A D | bnx2x.h | 53 #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 D | bnx2x_cmn.h | 39 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 …]
|
H A D | bnx2x_cmn.c | 36 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 D | bnx2x_ethtool.c | 192 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 …]
|
H A D | bnx2x_stats.c | 44 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 D | bnx2x_init_ops.h | 22 #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 D | bnx2x_sriov.c | 29 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 D | bnx2x_sriov.h | 219 #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 D | bnx2x_dcb.c | 35 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 D | bnx2x_link.c | 220 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/broadcom/ |
H A D | bnx2.c | 243 static void bnx2_init_napi(struct bnx2 *bp); 244 static void bnx2_del_napi(struct bnx2 *bp); 246 static inline u32 bnx2_tx_avail(struct bnx2 *bp, struct bnx2_tx_ring_info *txr) in bnx2_tx_avail() argument 259 return bp->tx_ring_size - diff; in bnx2_tx_avail() 263 bnx2_reg_rd_ind(struct bnx2 *bp, u32 offset) in bnx2_reg_rd_ind() argument 268 spin_lock_irqsave(&bp->indirect_lock, flags); in bnx2_reg_rd_ind() 269 BNX2_WR(bp, BNX2_PCICFG_REG_WINDOW_ADDRESS, offset); in bnx2_reg_rd_ind() 270 val = BNX2_RD(bp, BNX2_PCICFG_REG_WINDOW); in bnx2_reg_rd_ind() 271 spin_unlock_irqrestore(&bp->indirect_lock, flags); in bnx2_reg_rd_ind() 276 bnx2_reg_wr_ind(struct bnx2 *bp, u32 offset, u32 val) in bnx2_reg_wr_ind() argument [all …]
|
H A D | b44.c | 164 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_write(struct b44 *bp, in __b44_cam_write() argument 208 bw32(bp, B44_CAM_DATA_LO, val); in __b44_cam_write() 212 bw32(bp, B44_CAM_DATA_HI, val); in __b44_cam_write() [all …]
|
/linux/drivers/net/fddi/ |
H A D | defxx.c | 258 #define dfx_use_mmio bp->mmio 267 static void dfx_bus_config_check(DFX_board_t *bp); 272 static int dfx_adap_init(DFX_board_t *bp, int get_buffers); 277 static void dfx_int_pr_halt_id(DFX_board_t *bp); 278 static void dfx_int_type_0_process(DFX_board_t *bp); 285 static int dfx_ctl_update_cam(DFX_board_t *bp); 286 static int dfx_ctl_update_filters(DFX_board_t *bp); 288 static int dfx_hw_dma_cmd_req(DFX_board_t *bp); 289 static int dfx_hw_port_ctrl_req(DFX_board_t *bp, PI_UINT32 command, PI_UINT32 data_a, PI_UINT32 da… 290 static void dfx_hw_adap_reset(DFX_board_t *bp, PI_UINT32 type); [all …]
|
/linux/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt.c | 325 bnxt_writeq(bp, (db)->db_key64 | DBR_TYPE_NQ | DB_RING_IDX(db, idx),\ 329 bnxt_writeq(bp, (db)->db_key64 | DBR_TYPE_NQ_MASK | \ 336 bnxt_writeq(bp, (db)->db_key64 | DBR_TYPE_NQ_ARM | \ 339 static void bnxt_db_nq(struct bnxt *bp, struct bnxt_db_info *db, u32 idx) in bnxt_db_nq() argument 341 if (bp->flags & BNXT_FLAG_CHIP_P7) in bnxt_db_nq() 343 else if (bp->flags & BNXT_FLAG_CHIP_P5_PLUS) in bnxt_db_nq() 349 static void bnxt_db_nq_arm(struct bnxt *bp, struct bnxt_db_info *db, u32 idx) in bnxt_db_nq_arm() argument 351 if (bp->flags & BNXT_FLAG_CHIP_P5_PLUS) in bnxt_db_nq_arm() 357 static void bnxt_db_cq(struct bnxt *bp, struct bnxt_db_info *db, u32 idx) in bnxt_db_cq() argument 359 if (bp->flags & BNXT_FLAG_CHIP_P5_PLUS) in bnxt_db_cq() [all …]
|
H A D | bnxt_dcb.c | 25 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 D | bnxt_vfr.c | 28 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 …]
|
/linux/drivers/sbus/char/ |
H A D | bbc_i2c.c | 55 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() 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() 117 struct bbc_i2c_bus *bp = client->bp; in bbc_i2c_detach() local 120 release_device(bp, op); in bbc_i2c_detach() [all …]
|
/linux/drivers/net/ethernet/cadence/ |
H A D | macb_main.c | 57 #define RX_RING_BYTES(bp) (macb_dma_desc_get_size(bp) \ argument 58 * (bp)->rx_ring_size) 63 #define TX_RING_BYTES(bp) (macb_dma_desc_get_size(bp) \ argument 64 * (bp)->tx_ring_size) 67 #define MACB_TX_WAKEUP_THRESH(bp) (3 * (bp)->tx_ring_size / 4) argument 128 static unsigned int macb_dma_desc_get_size(struct macb *bp) in macb_dma_desc_get_size() argument 133 switch (bp->hw_dma_cap) { in macb_dma_desc_get_size() 155 static unsigned int macb_adj_dma_desc_idx(struct macb *bp, unsigned int desc_idx) in macb_adj_dma_desc_idx() argument 158 switch (bp->hw_dma_cap) { in macb_adj_dma_desc_idx() 174 static struct macb_dma_desc_64 *macb_64b_desc(struct macb *bp, struct macb_dma_desc *desc) in macb_64b_desc() argument [all …]
|
H A D | macb_ptp.c | 28 static struct macb_dma_desc_ptp *macb_ptp_desc(struct macb *bp, in macb_ptp_desc() argument 31 if (bp->hw_dma_cap == HW_DMA_CAP_PTP) in macb_ptp_desc() 34 if (bp->hw_dma_cap == HW_DMA_CAP_64B_PTP) in macb_ptp_desc() 44 struct macb *bp = container_of(ptp, struct macb, ptp_clock_info); in gem_tsu_get_time() local 49 spin_lock_irqsave(&bp->tsu_clk_lock, flags); in gem_tsu_get_time() 51 first = gem_readl(bp, TN); in gem_tsu_get_time() 53 secl = gem_readl(bp, TSL); in gem_tsu_get_time() 54 sech = gem_readl(bp, TSH); in gem_tsu_get_time() 55 second = gem_readl(bp, TN); in gem_tsu_get_time() 63 ts->tv_nsec = gem_readl(bp, TN); in gem_tsu_get_time() [all …]
|
/linux/drivers/net/fddi/skfp/ |
H A D | skfddi.c | 383 skfddi_priv *bp = &smc->os; in skfp_driver_init() local 389 bp->base_addr = dev->base_addr; in skfp_driver_init() 394 spin_lock_init(&bp->DriverLock); in skfp_driver_init() 397 bp->LocalRxBuffer = dma_alloc_coherent(&bp->pdev.dev, MAX_FRAME_SIZE, in skfp_driver_init() 398 &bp->LocalRxBufferDMA, in skfp_driver_init() 400 if (!bp->LocalRxBuffer) { in skfp_driver_init() 407 bp->SharedMemSize = mac_drv_check_space(); in skfp_driver_init() 408 pr_debug("Memory for HWM: %ld\n", bp->SharedMemSize); in skfp_driver_init() 409 if (bp->SharedMemSize > 0) { in skfp_driver_init() 410 bp->SharedMemSize += 16; // for descriptor alignment in skfp_driver_init() [all …]
|
/linux/fs/afs/ |
H A D | fsclient.c | 23 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 …]
|
H A D | yfsclient.c | 31 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 …]
|
/linux/kernel/events/ |
H A D | hw_breakpoint.c | 108 static inline struct mutex *get_task_bps_mutex(struct perf_event *bp) in get_task_bps_mutex() argument 110 struct task_struct *tsk = bp->hw.target; in get_task_bps_mutex() 115 static struct mutex *bp_constraints_lock(struct perf_event *bp) in bp_constraints_lock() argument 117 struct mutex *tsk_mtx = get_task_bps_mutex(bp); in bp_constraints_lock() 149 static bool bp_constraints_is_locked(struct perf_event *bp) in bp_constraints_is_locked() argument 151 struct mutex *tsk_mtx = get_task_bps_mutex(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() argument 160 struct mutex *tsk_mtx = get_task_bps_mutex(bp); in assert_bp_constraints_lock_held() 285 static inline int hw_breakpoint_weight(struct perf_event *bp) in hw_breakpoint_weight() argument 322 static int task_bp_pinned(int cpu, struct perf_event *bp, enum bp_type_idx type) in task_bp_pinned() argument [all …]
|
/linux/drivers/ptp/ |
H A D | ptp_ocp.c | 264 struct ptp_ocp *bp; member 394 int (*setup)(struct ptp_ocp *bp, struct ocp_resource *r); 400 static int ptp_ocp_register_mem(struct ptp_ocp *bp, struct ocp_resource *r); 401 static int ptp_ocp_register_i2c(struct ptp_ocp *bp, struct ocp_resource *r); 402 static int ptp_ocp_register_spi(struct ptp_ocp *bp, struct ocp_resource *r); 403 static int ptp_ocp_register_serial(struct ptp_ocp *bp, struct ocp_resource *r); 404 static int ptp_ocp_register_ext(struct ptp_ocp *bp, struct ocp_resource *r); 405 static int ptp_ocp_fb_board_init(struct ptp_ocp *bp, struct ocp_resource *r); 409 static int ptp_ocp_signal_from_perout(struct ptp_ocp *bp, int gen, 412 static int ptp_ocp_sma_store(struct ptp_ocp *bp, const char *buf, int sma_nr); [all …]
|