Home
last modified time | relevance | path

Searched refs:bp (Results 1 – 200 of 335) sorted by relevance

12

/linux-4.1.27/fs/xfs/
Dxfs_buf.c48 # define XB_SET_OWNER(bp) ((bp)->b_last_holder = current->pid) argument
49 # define XB_CLEAR_OWNER(bp) ((bp)->b_last_holder = -1) argument
50 # define XB_GET_OWNER(bp) ((bp)->b_last_holder) argument
52 # define XB_SET_OWNER(bp) do { } while (0) argument
53 # define XB_CLEAR_OWNER(bp) do { } while (0) argument
54 # define XB_GET_OWNER(bp) do { } while (0) argument
63 struct xfs_buf *bp) in xfs_buf_is_vmapped() argument
72 return bp->b_addr && bp->b_page_count > 1; in xfs_buf_is_vmapped()
77 struct xfs_buf *bp) in xfs_buf_vmap_len() argument
79 return (bp->b_page_count * PAGE_SIZE) - bp->b_offset; in xfs_buf_vmap_len()
[all …]
Dxfs_trans_buf.c77 struct xfs_buf *bp, in _xfs_trans_bjoin() argument
82 ASSERT(bp->b_transp == NULL); in _xfs_trans_bjoin()
89 xfs_buf_item_init(bp, tp->t_mountp); in _xfs_trans_bjoin()
90 bip = bp->b_fspriv; in _xfs_trans_bjoin()
111 bp->b_transp = tp; in _xfs_trans_bjoin()
118 struct xfs_buf *bp) in xfs_trans_bjoin() argument
120 _xfs_trans_bjoin(tp, bp, 0); in xfs_trans_bjoin()
121 trace_xfs_trans_bjoin(bp->b_fspriv); in xfs_trans_bjoin()
141 xfs_buf_t *bp; in xfs_trans_get_buf_map() local
153 bp = xfs_trans_buf_item_match(tp, target, map, nmaps); in xfs_trans_get_buf_map()
[all …]
Dxfs_buf.h268 void xfs_buf_set_empty(struct xfs_buf *bp, size_t numblks);
269 int xfs_buf_associate_memory(struct xfs_buf *bp, void *mem, size_t length);
276 void xfs_buf_hold(struct xfs_buf *bp);
286 #define xfs_buf_islocked(bp) \ argument
287 ((bp)->b_sema.count <= 0)
290 extern int xfs_bwrite(struct xfs_buf *bp);
291 extern void xfs_buf_ioend(struct xfs_buf *bp);
294 extern void xfs_buf_submit(struct xfs_buf *bp);
295 extern int xfs_buf_submit_wait(struct xfs_buf *bp);
298 #define xfs_buf_zero(bp, off, len) \ argument
[all …]
Dxfs_buf_item.c41 STATIC void xfs_buf_do_callbacks(struct xfs_buf *bp);
68 struct xfs_buf *bp = bip->bli_buf; in xfs_buf_item_size_segment() local
102 } else if (xfs_buf_offset(bp, next_bit * XFS_BLF_CHUNK) != in xfs_buf_item_size_segment()
103 (xfs_buf_offset(bp, last_bit * XFS_BLF_CHUNK) + in xfs_buf_item_size_segment()
189 struct xfs_buf *bp, in xfs_buf_item_copy_iovec() argument
196 xfs_buf_offset(bp, offset), in xfs_buf_item_copy_iovec()
202 struct xfs_buf *bp, in xfs_buf_item_straddle() argument
207 return xfs_buf_offset(bp, offset + (next_bit << XFS_BLF_SHIFT)) != in xfs_buf_item_straddle()
208 (xfs_buf_offset(bp, offset + (last_bit << XFS_BLF_SHIFT)) + in xfs_buf_item_straddle()
220 struct xfs_buf *bp = bip->bli_buf; in xfs_buf_item_format_segment() local
[all …]
Dxfs_fsops.c127 struct xfs_buf *bp; in xfs_growfs_get_hdr_buf() local
129 bp = xfs_buf_get_uncached(mp->m_ddev_targp, numblks, flags); in xfs_growfs_get_hdr_buf()
130 if (!bp) in xfs_growfs_get_hdr_buf()
133 xfs_buf_zero(bp, 0, BBTOB(bp->b_length)); in xfs_growfs_get_hdr_buf()
134 bp->b_bn = blkno; in xfs_growfs_get_hdr_buf()
135 bp->b_maps[0].bm_bn = blkno; in xfs_growfs_get_hdr_buf()
136 bp->b_ops = ops; in xfs_growfs_get_hdr_buf()
138 return bp; in xfs_growfs_get_hdr_buf()
153 xfs_buf_t *bp; in xfs_growfs_data_private() local
175 XFS_FSS_TO_BB(mp, 1), 0, &bp, NULL); in xfs_growfs_data_private()
[all …]
Dxfs_attr_inactive.c54 struct xfs_buf *bp; in xfs_attr3_leaf_freextent() local
91 bp = xfs_trans_get_buf(*trans, in xfs_attr3_leaf_freextent()
94 if (!bp) in xfs_attr3_leaf_freextent()
96 xfs_trans_binval(*trans, bp); in xfs_attr3_leaf_freextent()
122 struct xfs_buf *bp) in xfs_attr3_leaf_inactive() argument
135 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_attr3_leaf_inactive()
137 leaf = bp->b_addr; in xfs_attr3_leaf_inactive()
158 xfs_trans_brelse(*trans, bp); in xfs_attr3_leaf_inactive()
185 xfs_trans_brelse(*trans, bp); /* unlock for trans. in freextent() */ in xfs_attr3_leaf_inactive()
211 struct xfs_buf *bp, in xfs_attr3_node_inactive() argument
[all …]
Dxfs_log_recover.c104 struct xfs_buf *bp; in xlog_get_bp() local
133 bp = xfs_buf_get_uncached(log->l_mp->m_logdev_targp, nbblks, 0); in xlog_get_bp()
134 if (bp) in xlog_get_bp()
135 xfs_buf_unlock(bp); in xlog_get_bp()
136 return bp; in xlog_get_bp()
141 xfs_buf_t *bp) in xlog_put_bp() argument
143 xfs_buf_free(bp); in xlog_put_bp()
155 struct xfs_buf *bp) in xlog_align() argument
159 ASSERT(offset + nbblks <= bp->b_length); in xlog_align()
160 return bp->b_addr + BBTOB(offset); in xlog_align()
[all …]
Dxfs_attr_list.c228 struct xfs_buf *bp; in xfs_attr_node_list() local
242 bp = NULL; in xfs_attr_node_list()
245 &bp, XFS_ATTR_FORK); in xfs_attr_node_list()
248 if (bp) { in xfs_attr_node_list()
251 node = bp->b_addr; in xfs_attr_node_list()
256 xfs_trans_brelse(NULL, bp); in xfs_attr_node_list()
257 bp = NULL; in xfs_attr_node_list()
261 leaf = bp->b_addr; in xfs_attr_node_list()
268 xfs_trans_brelse(NULL, bp); in xfs_attr_node_list()
269 bp = NULL; in xfs_attr_node_list()
[all …]
Dxfs_dquot.c231 xfs_buf_t *bp) in xfs_qm_init_dquot_blk() argument
238 ASSERT(xfs_buf_islocked(bp)); in xfs_qm_init_dquot_blk()
240 d = bp->b_addr; in xfs_qm_init_dquot_blk()
260 xfs_trans_dquot_buf(tp, bp, in xfs_qm_init_dquot_blk()
264 xfs_trans_log_buf(tp, bp, 0, BBTOB(q->qi_dqchunklen) - 1); in xfs_qm_init_dquot_blk()
310 xfs_buf_t *bp; in xfs_qm_dqalloc() local
350 bp = xfs_trans_get_buf(tp, mp->m_ddev_targp, in xfs_qm_dqalloc()
354 if (!bp) { in xfs_qm_dqalloc()
358 bp->b_ops = &xfs_dquot_buf_ops; in xfs_qm_dqalloc()
365 dqp->dq_flags & XFS_DQ_ALLTYPES, bp); in xfs_qm_dqalloc()
[all …]
Dxfs_symlink.c52 struct xfs_buf *bp; in xfs_readlink_bmap() local
73 bp = xfs_buf_read(mp->m_ddev_targp, d, BTOBB(byte_cnt), 0, in xfs_readlink_bmap()
75 if (!bp) in xfs_readlink_bmap()
77 error = bp->b_error; in xfs_readlink_bmap()
79 xfs_buf_ioerror_alert(bp, __func__); in xfs_readlink_bmap()
80 xfs_buf_relse(bp); in xfs_readlink_bmap()
91 cur_chunk = bp->b_addr; in xfs_readlink_bmap()
94 byte_cnt, bp)) { in xfs_readlink_bmap()
99 xfs_buf_relse(bp); in xfs_readlink_bmap()
112 xfs_buf_relse(bp); in xfs_readlink_bmap()
[all …]
Dxfs_dir2_readdir.c164 struct xfs_buf *bp; /* buffer for block */ in xfs_dir2_block_getdents() local
181 error = xfs_dir3_block_read(NULL, dp, &bp); in xfs_dir2_block_getdents()
190 hdr = bp->b_addr; in xfs_dir2_block_getdents()
191 xfs_dir3_data_check(dp, bp); in xfs_dir2_block_getdents()
238 xfs_trans_brelse(NULL, bp); in xfs_dir2_block_getdents()
249 xfs_trans_brelse(NULL, bp); in xfs_dir2_block_getdents()
276 struct xfs_buf *bp = *bpp; in xfs_dir2_leaf_readbuf() local
290 if (bp) { in xfs_dir2_leaf_readbuf()
291 xfs_trans_brelse(NULL, bp); in xfs_dir2_leaf_readbuf()
292 bp = NULL; in xfs_dir2_leaf_readbuf()
[all …]
Dxfs_log.c1167 xlog_iodone(xfs_buf_t *bp) in xlog_iodone() argument
1169 struct xlog_in_core *iclog = bp->b_fspriv; in xlog_iodone()
1176 if (XFS_TEST_ERROR(bp->b_error, l->l_mp, in xlog_iodone()
1178 xfs_buf_ioerror_alert(bp, __func__); in xlog_iodone()
1179 xfs_buf_stale(bp); in xlog_iodone()
1192 ASSERT(XFS_BUF_ISASYNC(bp)); in xlog_iodone()
1201 xfs_buf_unlock(bp); in xlog_iodone()
1333 xfs_buf_t *bp; in xlog_alloc_log() local
1397 bp = xfs_buf_alloc(mp->m_logdev_targp, XFS_BUF_DADDR_NULL, in xlog_alloc_log()
1399 if (!bp) in xlog_alloc_log()
[all …]
Dxfs_mount.c264 struct xfs_buf *bp; in xfs_readsb() local
290 BTOBB(sector_size), 0, &bp, buf_ops); in xfs_readsb()
303 xfs_sb_from_disk(sbp, XFS_BUF_TO_SBP(bp)); in xfs_readsb()
332 xfs_buf_relse(bp); in xfs_readsb()
341 bp->b_ops = &xfs_sb_buf_ops; in xfs_readsb()
343 mp->m_sb_bp = bp; in xfs_readsb()
344 xfs_buf_unlock(bp); in xfs_readsb()
348 xfs_buf_relse(bp); in xfs_readsb()
529 struct xfs_buf *bp; in xfs_check_sizes() local
540 XFS_FSS_TO_BB(mp, 1), 0, &bp, NULL); in xfs_check_sizes()
[all …]
Dxfs_error.c163 struct xfs_buf *bp) in xfs_verifier_error() argument
165 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_verifier_error()
168 bp->b_error == -EFSBADCRC ? "CRC error" : "corruption", in xfs_verifier_error()
169 __return_address, bp->b_bn); in xfs_verifier_error()
175 xfs_hex_dump(xfs_buf_offset(bp, 0), 64); in xfs_verifier_error()
Dxfs_rtalloc.c116 xfs_buf_t *bp; /* summary buffer */ in xfs_rtcopy_summary() local
122 bp = NULL; in xfs_rtcopy_summary()
127 error = xfs_rtget_summary(omp, tp, log, bbno, &bp, in xfs_rtcopy_summary()
134 &bp, &sumbno); in xfs_rtcopy_summary()
138 &bp, &sumbno); in xfs_rtcopy_summary()
768 xfs_buf_t *bp; /* temporary buffer for zeroing */ in xfs_growfs_rt_alloc() local
849 bp = xfs_trans_get_buf(tp, mp->m_ddev_targp, d, in xfs_growfs_rt_alloc()
851 if (bp == NULL) { in xfs_growfs_rt_alloc()
857 memset(bp->b_addr, 0, mp->m_sb.sb_blocksize); in xfs_growfs_rt_alloc()
858 xfs_trans_log_buf(tp, bp, 0, mp->m_sb.sb_blocksize - 1); in xfs_growfs_rt_alloc()
[all …]
Dxfs_qm.c152 struct xfs_buf *bp = NULL; in xfs_qm_dqpurge() local
159 error = xfs_qm_dqflush(dqp, &bp); in xfs_qm_dqpurge()
164 error = xfs_bwrite(bp); in xfs_qm_dqpurge()
165 xfs_buf_relse(bp); in xfs_qm_dqpurge()
470 struct xfs_buf *bp = NULL; in xfs_qm_dquot_isolate() local
478 error = xfs_qm_dqflush(dqp, &bp); in xfs_qm_dquot_isolate()
485 xfs_buf_delwri_queue(bp, &isol->buffers); in xfs_qm_dquot_isolate()
486 xfs_buf_relse(bp); in xfs_qm_dquot_isolate()
813 xfs_buf_t *bp, in xfs_qm_reset_dqcounts() argument
820 trace_xfs_reset_dqcounts(bp, _RET_IP_); in xfs_qm_reset_dqcounts()
[all …]
Dxfs_inode.c2248 xfs_buf_t *bp; in xfs_ifree_cluster() local
2271 bp = xfs_trans_get_buf(tp, mp->m_ddev_targp, blkno, in xfs_ifree_cluster()
2275 if (!bp) in xfs_ifree_cluster()
2287 bp->b_ops = &xfs_inode_buf_ops; in xfs_ifree_cluster()
2296 lip = bp->b_fspriv; in xfs_ifree_cluster()
2385 xfs_buf_attach_iodone(bp, xfs_istale_done, in xfs_ifree_cluster()
2392 xfs_trans_stale_inode_buf(tp, bp); in xfs_ifree_cluster()
2393 xfs_trans_binval(tp, bp); in xfs_ifree_cluster()
3197 xfs_buf_t *bp) in xfs_iflush_cluster() argument
3279 error = xfs_iflush_int(iq, bp); in xfs_iflush_cluster()
[all …]
Dxfs_inode_item.c413 struct xfs_buf *bp = NULL; in xfs_inode_item_push() local
455 error = xfs_iflush(ip, &bp); in xfs_inode_item_push()
457 if (!xfs_buf_delwri_queue(bp, buffer_list)) in xfs_inode_item_push()
459 xfs_buf_relse(bp); in xfs_inode_item_push()
598 struct xfs_buf *bp, in xfs_iflush_done() argument
612 blip = bp->b_fspriv; in xfs_iflush_done()
624 bp->b_fspriv = next; in xfs_iflush_done()
738 struct xfs_buf *bp, in xfs_istale_done() argument
Dxfs_dquot_item.c147 struct xfs_buf *bp = NULL; in xfs_qm_dquot_logitem_push() local
178 error = xfs_qm_dqflush(dqp, &bp); in xfs_qm_dquot_logitem_push()
183 if (!xfs_buf_delwri_queue(bp, buffer_list)) in xfs_qm_dquot_logitem_push()
185 xfs_buf_relse(bp); in xfs_qm_dquot_logitem_push()
Dxfs_trace.h309 TP_PROTO(struct xfs_buf *bp, unsigned long caller_ip),
310 TP_ARGS(bp, caller_ip),
322 __entry->dev = bp->b_target->bt_dev;
323 __entry->bno = bp->b_bn;
324 __entry->nblks = bp->b_length;
325 __entry->hold = atomic_read(&bp->b_hold);
326 __entry->pincount = atomic_read(&bp->b_pin_count);
327 __entry->lockval = bp->b_sema.count;
328 __entry->flags = bp->b_flags;
345 TP_PROTO(struct xfs_buf *bp, unsigned long caller_ip), \
[all …]
Dxfs_bmap_util.c327 xfs_buf_t *bp, *nbp; in xfs_bmap_count_tree() local
335 error = xfs_btree_read_bufl(mp, tp, bno, 0, &bp, XFS_BMAP_BTREE_REF, in xfs_bmap_count_tree()
340 block = XFS_BUF_TO_BLOCK(bp); in xfs_bmap_count_tree()
362 xfs_trans_brelse(tp, bp); in xfs_bmap_count_tree()
367 xfs_trans_brelse(tp, bp); in xfs_bmap_count_tree()
374 xfs_trans_brelse(tp, bp); in xfs_bmap_count_tree()
378 error = xfs_btree_read_bufl(mp, tp, bno, 0, &bp, in xfs_bmap_count_tree()
384 block = XFS_BUF_TO_BLOCK(bp); in xfs_bmap_count_tree()
1106 xfs_buf_t *bp; in xfs_zero_remaining_bytes() local
1149 0, &bp, NULL); in xfs_zero_remaining_bytes()
[all …]
/linux-4.1.27/drivers/net/ethernet/broadcom/
Dbnx2.c249 static void bnx2_init_napi(struct bnx2 *bp);
250 static void bnx2_del_napi(struct bnx2 *bp);
252 static inline u32 bnx2_tx_avail(struct bnx2 *bp, struct bnx2_tx_ring_info *txr) in bnx2_tx_avail() argument
268 return bp->tx_ring_size - diff; in bnx2_tx_avail()
272 bnx2_reg_rd_ind(struct bnx2 *bp, u32 offset) in bnx2_reg_rd_ind() argument
276 spin_lock_bh(&bp->indirect_lock); in bnx2_reg_rd_ind()
277 BNX2_WR(bp, BNX2_PCICFG_REG_WINDOW_ADDRESS, offset); in bnx2_reg_rd_ind()
278 val = BNX2_RD(bp, BNX2_PCICFG_REG_WINDOW); in bnx2_reg_rd_ind()
279 spin_unlock_bh(&bp->indirect_lock); in bnx2_reg_rd_ind()
284 bnx2_reg_wr_ind(struct bnx2 *bp, u32 offset, u32 val) in bnx2_reg_wr_ind() argument
[all …]
Db44.c166 static inline unsigned long br32(const struct b44 *bp, unsigned long reg) in br32() argument
168 return ssb_read32(bp->sdev, reg); in br32()
171 static inline void bw32(const struct b44 *bp, in bw32() argument
174 ssb_write32(bp->sdev, reg, val); in bw32()
177 static int b44_wait_bit(struct b44 *bp, unsigned long reg, in b44_wait_bit() argument
183 u32 val = br32(bp, reg); in b44_wait_bit()
193 netdev_err(bp->dev, "BUG! Timeout waiting for bit %08x of register %lx to %s\n", in b44_wait_bit()
201 static inline void __b44_cam_read(struct b44 *bp, unsigned char *data, int index) in __b44_cam_read() argument
205 bw32(bp, B44_CAM_CTRL, (CAM_CTRL_READ | in __b44_cam_read()
208 b44_wait_bit(bp, B44_CAM_CTRL, CAM_CTRL_BUSY, 100, 1); in __b44_cam_read()
[all …]
Dcnic.h368 #define BNX2X_CHIP_IS_E2_PLUS(bp) (CHIP_IS_E2(bp) || CHIP_IS_E3(bp)) argument
405 #define BNX2X_HW_CID(bp, x) ((BP_PORT(bp) << 23) | \ argument
406 (BP_VN(bp) << 17) | (x))
410 #define BNX2X_CL_QZONE_ID(bp, cli) \ argument
411 (BNX2X_CHIP_IS_E2_PLUS(bp) ? cli : \
412 cli + (BP_PORT(bp) * ETH_MAX_RX_CLIENTS_E1H))
416 (CHIP_IS_E1H(bp) ? MAX_STAT_COUNTER_ID_E1H : \
417 ((BNX2X_CHIP_IS_E2_PLUS(bp)) ? MAX_STAT_COUNTER_ID_E2 : \
422 (BNX2X_CHIP_IS_E2_PLUS(bp) && !NO_FCOE(bp))
Dbnx2_fw.h22 .bp = BNX2_COM_CPU_HW_BREAKPOINT,
38 .bp = BNX2_CP_CPU_HW_BREAKPOINT,
54 .bp = BNX2_RXP_CPU_HW_BREAKPOINT,
70 .bp = BNX2_TPAT_CPU_HW_BREAKPOINT,
86 .bp = BNX2_TXP_CPU_HW_BREAKPOINT,
Dcnic.c1182 struct bnx2x *bp = netdev_priv(dev->netdev); in cnic_alloc_bnx2x_context() local
1200 if (!CHIP_IS_E1(bp)) in cnic_alloc_bnx2x_context()
1230 struct bnx2x *bp = netdev_priv(dev->netdev); in cnic_alloc_bnx2x_resc() local
1240 if (BNX2X_CHIP_IS_E2_PLUS(bp)) { in cnic_alloc_bnx2x_resc()
1288 if (CNIC_SUPPORTS_FCOE(bp)) { in cnic_alloc_bnx2x_resc()
1382 struct bnx2x *bp = netdev_priv(dev->netdev); in cnic_submit_kwqe_16() local
1390 BNX2X_HW_CID(bp, cid))); in cnic_submit_kwqe_16()
1393 type_16 |= (bp->pfid << SPE_HDR_FUNCTION_ID_SHIFT) & in cnic_submit_kwqe_16()
1431 struct bnx2x *bp = netdev_priv(dev->netdev); in cnic_bnx2x_set_tcp_options() local
1443 XSTORM_ISCSI_TCP_VARS_FLAGS_OFFSET(bp->pfid), xstorm_flags); in cnic_bnx2x_set_tcp_options()
[all …]
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_main.c288 static int bnx2x_set_storm_rx_mode(struct bnx2x *bp);
294 static int bnx2x_hwtstamp_ioctl(struct bnx2x *bp, struct ifreq *ifr);
296 static void __storm_memset_dma_mapping(struct bnx2x *bp, in __storm_memset_dma_mapping() argument
299 REG_WR(bp, addr, U64_LO(mapping)); in __storm_memset_dma_mapping()
300 REG_WR(bp, addr + 4, U64_HI(mapping)); in __storm_memset_dma_mapping()
303 static void storm_memset_spq_addr(struct bnx2x *bp, in storm_memset_spq_addr() argument
309 __storm_memset_dma_mapping(bp, addr, mapping); in storm_memset_spq_addr()
312 static void storm_memset_vf_to_pf(struct bnx2x *bp, u16 abs_fid, in storm_memset_vf_to_pf() argument
315 REG_WR8(bp, BAR_XSTRORM_INTMEM + XSTORM_VF_TO_PF_OFFSET(abs_fid), in storm_memset_vf_to_pf()
317 REG_WR8(bp, BAR_CSTRORM_INTMEM + CSTORM_VF_TO_PF_OFFSET(abs_fid), in storm_memset_vf_to_pf()
[all …]
Dbnx2x.h45 #define BNX2X_MIN_MSIX_VEC_CNT(bp) ((bp)->min_msix_vec_cnt) argument
86 bp->dev ? (bp->dev->name) : "?", \
91 if (unlikely(bp->msg_enable & (__mask))) \
97 if (unlikely((bp->msg_enable & (__mask)) == __mask)) \
103 if (unlikely(bp->msg_enable & (__mask))) \
110 if (unlikely(netif_msg_probe(bp))) \
113 bp->dev ? (bp->dev->name) : "?", \
122 bp->dev ? (bp->dev->name) : "?", \
132 if (unlikely(netif_msg_probe(bp))) \
133 dev_info(&bp->pdev->dev, fmt, ##__VA_ARGS__); \
[all …]
Dbnx2x_cmn.h37 dma_free_coherent(&bp->pdev->dev, size, (void *)x, y); \
53 void *x = dma_zalloc_coherent(&bp->pdev->dev, size, y, GFP_KERNEL); \
62 void *x = dma_alloc_coherent(&bp->pdev->dev, size, y, GFP_KERNEL); \
85 u32 bnx2x_send_unload_req(struct bnx2x *bp, int unload_mode);
93 void bnx2x_send_unload_done(struct bnx2x *bp, bool keep_link);
104 int bnx2x_rss(struct bnx2x *bp, struct bnx2x_rss_config_obj *rss_obj,
116 void bnx2x__init_func_obj(struct bnx2x *bp);
126 int bnx2x_setup_queue(struct bnx2x *bp, struct bnx2x_fastpath *fp,
134 int bnx2x_setup_leading(struct bnx2x *bp);
145 u32 bnx2x_fw_command(struct bnx2x *bp, u32 command, u32 param);
[all …]
Dbnx2x_cmn.c34 static void bnx2x_free_fp_mem_cnic(struct bnx2x *bp);
35 static int bnx2x_alloc_fp_mem_cnic(struct bnx2x *bp);
36 static int bnx2x_alloc_fp_mem(struct bnx2x *bp);
39 static void bnx2x_add_all_napi_cnic(struct bnx2x *bp) in bnx2x_add_all_napi_cnic() argument
44 for_each_rx_queue_cnic(bp, i) { in bnx2x_add_all_napi_cnic()
45 netif_napi_add(bp->dev, &bnx2x_fp(bp, i, napi), in bnx2x_add_all_napi_cnic()
47 napi_hash_add(&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()
[all …]
Dbnx2x_ethtool.c190 static int bnx2x_get_port_type(struct bnx2x *bp) in bnx2x_get_port_type() argument
193 u32 phy_idx = bnx2x_get_cur_phy_idx(bp); in bnx2x_get_port_type()
194 switch (bp->link_params.phy[phy_idx].media_type) { in bnx2x_get_port_type()
222 struct bnx2x *bp = netdev_priv(dev); in bnx2x_get_vf_settings() local
224 if (bp->state == BNX2X_STATE_OPEN) { in bnx2x_get_vf_settings()
226 &bp->vf_link_vars.link_report_flags)) in bnx2x_get_vf_settings()
231 ethtool_cmd_speed_set(cmd, bp->vf_link_vars.line_speed); in bnx2x_get_vf_settings()
258 struct bnx2x *bp = netdev_priv(dev); in bnx2x_get_settings() local
259 int cfg_idx = bnx2x_get_link_cfg_idx(bp); in bnx2x_get_settings()
262 cmd->supported = bp->port.supported[cfg_idx] | in bnx2x_get_settings()
[all …]
Dbnx2x_init_ops.h20 #define BP_ILT(bp) NULL argument
24 #define BP_FUNC(bp) 0 argument
28 #define BP_PORT(bp) 0 argument
43 static int bnx2x_gunzip(struct bnx2x *bp, const u8 *zbuf, int len);
44 static void bnx2x_reg_wr_ind(struct bnx2x *bp, u32 addr, u32 val);
45 static void bnx2x_write_dmae_phys_len(struct bnx2x *bp,
49 static void bnx2x_init_str_wr(struct bnx2x *bp, u32 addr, in bnx2x_init_str_wr() argument
55 REG_WR(bp, addr + i*4, data[i]); in bnx2x_init_str_wr()
58 static void bnx2x_init_ind_wr(struct bnx2x *bp, u32 addr, in bnx2x_init_ind_wr() argument
64 bnx2x_reg_wr_ind(bp, addr + i*4, data[i]); in bnx2x_init_ind_wr()
[all …]
Dbnx2x_stats.c42 static inline u16 bnx2x_get_port_stats_dma_len(struct bnx2x *bp) in bnx2x_get_port_stats_dma_len() argument
47 if (SHMEM2_HAS(bp, sizeof_port_stats)) { in bnx2x_get_port_stats_dma_len()
48 u32 size = SHMEM2_RD(bp, sizeof_port_stats); in bnx2x_get_port_stats_dma_len()
64 if (bp->flags & BC_SUPPORTS_PFC_STATS) { in bnx2x_get_port_stats_dma_len()
82 static void bnx2x_dp_stats(struct bnx2x *bp) in bnx2x_dp_stats() argument
94 bp->fw_stats_req->hdr.cmd_num, in bnx2x_dp_stats()
95 bp->fw_stats_req->hdr.reserved0, in bnx2x_dp_stats()
96 bp->fw_stats_req->hdr.drv_stats_counter, in bnx2x_dp_stats()
97 bp->fw_stats_req->hdr.reserved1, in bnx2x_dp_stats()
98 bp->fw_stats_req->hdr.stats_counters_addrs.hi, in bnx2x_dp_stats()
[all …]
Dbnx2x_sriov.h212 #define BNX2X_NR_VIRTFN(bp) ((bp)->vfdb->sriov.nr_virtfn) argument
214 #define for_each_vf(bp, var) \ argument
215 for ((var) = 0; (var) < BNX2X_NR_VIRTFN(bp); (var)++)
225 #define HW_VF_HANDLE(bp, abs_vfid) \ argument
226 (u16)(BP_ABS_FUNC((bp)) | (1<<3) | ((u16)(abs_vfid) << 4))
234 void bnx2x_lock_vf_pf_channel(struct bnx2x *bp, struct bnx2x_virtf *vf,
237 void bnx2x_unlock_vf_pf_channel(struct bnx2x *bp, struct bnx2x_virtf *vf,
301 #define BP_VFDB(bp) ((bp)->vfdb) argument
304 #define BP_VF(bp, idx) ((BP_VFDB(bp) && (bp)->vfdb->vfs) ? \ argument
305 &((bp)->vfdb->vfs[idx]) : NULL)
[all …]
Dbnx2x_sriov.c27 static int bnx2x_vf_op_prep(struct bnx2x *bp, int vfidx,
33 static void storm_memset_vf_to_pf(struct bnx2x *bp, u16 abs_fid, in storm_memset_vf_to_pf() argument
36 REG_WR8(bp, BAR_XSTRORM_INTMEM + XSTORM_VF_TO_PF_OFFSET(abs_fid), in storm_memset_vf_to_pf()
38 REG_WR8(bp, BAR_CSTRORM_INTMEM + CSTORM_VF_TO_PF_OFFSET(abs_fid), in storm_memset_vf_to_pf()
40 REG_WR8(bp, BAR_TSTRORM_INTMEM + TSTORM_VF_TO_PF_OFFSET(abs_fid), in storm_memset_vf_to_pf()
42 REG_WR8(bp, BAR_USTRORM_INTMEM + USTORM_VF_TO_PF_OFFSET(abs_fid), in storm_memset_vf_to_pf()
46 static void storm_memset_func_en(struct bnx2x *bp, u16 abs_fid, in storm_memset_func_en() argument
49 REG_WR8(bp, BAR_XSTRORM_INTMEM + XSTORM_FUNC_EN_OFFSET(abs_fid), in storm_memset_func_en()
51 REG_WR8(bp, BAR_CSTRORM_INTMEM + CSTORM_FUNC_EN_OFFSET(abs_fid), in storm_memset_func_en()
53 REG_WR8(bp, BAR_TSTRORM_INTMEM + TSTORM_FUNC_EN_OFFSET(abs_fid), in storm_memset_func_en()
[all …]
Dbnx2x_dcb.c33 static void bnx2x_pfc_set_pfc(struct bnx2x *bp);
34 static void bnx2x_dcbx_update_ets_params(struct bnx2x *bp);
35 static void bnx2x_dcbx_get_ets_pri_pg_tbl(struct bnx2x *bp,
38 static void bnx2x_dcbx_get_num_pg_traf_type(struct bnx2x *bp,
41 static void bnx2x_dcbx_fill_cos_params(struct bnx2x *bp,
45 static void bnx2x_dcbx_separate_pauseable_from_non(struct bnx2x *bp,
49 static void bnx2x_dcbx_fw_struct(struct bnx2x *bp,
53 static void bnx2x_read_data(struct bnx2x *bp, u32 *buff, in bnx2x_read_data() argument
58 *buff = REG_RD(bp, addr + i); in bnx2x_read_data()
61 static void bnx2x_write_data(struct bnx2x *bp, u32 *buff, in bnx2x_write_data() argument
[all …]
Dbnx2x_link.c224 static u32 bnx2x_bits_en(struct bnx2x *bp, u32 reg, u32 bits) in bnx2x_bits_en() argument
226 u32 val = REG_RD(bp, reg); in bnx2x_bits_en()
229 REG_WR(bp, reg, val); in bnx2x_bits_en()
233 static u32 bnx2x_bits_dis(struct bnx2x *bp, u32 reg, u32 bits) in bnx2x_bits_dis() argument
235 u32 val = REG_RD(bp, reg); in bnx2x_bits_dis()
238 REG_WR(bp, reg, val); in bnx2x_bits_dis()
255 struct bnx2x *bp = params->bp; in bnx2x_check_lfa() local
258 REG_RD(bp, params->lfa_base + in bnx2x_check_lfa()
266 REG_WR(bp, params->lfa_base + in bnx2x_check_lfa()
273 link_status = REG_RD(bp, params->shmem_base + in bnx2x_check_lfa()
[all …]
Dbnx2x_vfpf.c24 static int bnx2x_vfpf_teardown_queue(struct bnx2x *bp, int qidx);
27 static void bnx2x_add_tlv(struct bnx2x *bp, void *tlvs_list, in bnx2x_add_tlv() argument
38 static void bnx2x_vfpf_prep(struct bnx2x *bp, struct vfpf_first_tlv *first_tlv, in bnx2x_vfpf_prep() argument
41 mutex_lock(&bp->vf2pf_mutex); in bnx2x_vfpf_prep()
47 memset(bp->vf2pf_mbox, 0, sizeof(struct bnx2x_vf_mbx_msg)); in bnx2x_vfpf_prep()
50 bnx2x_add_tlv(bp, &first_tlv->tl, 0, type, length); in bnx2x_vfpf_prep()
53 first_tlv->resp_msg_offset = sizeof(bp->vf2pf_mbox->req); in bnx2x_vfpf_prep()
57 static void bnx2x_vfpf_finalize(struct bnx2x *bp, in bnx2x_vfpf_finalize() argument
63 mutex_unlock(&bp->vf2pf_mutex); in bnx2x_vfpf_finalize()
67 static void *bnx2x_search_tlv_list(struct bnx2x *bp, void *tlvs_list, in bnx2x_search_tlv_list() argument
[all …]
Dbnx2x_dcb.h71 #define BNX2X_IS_ETS_ENABLED(bp) ((bp)->dcb_state == BNX2X_DCB_STATE_ON &&\ argument
72 (bp)->dcbx_port_params.ets.enabled)
153 #define DCBX_PFC_PRI_NON_PAUSE_MASK(bp) \ argument
154 ((bp)->dcbx_port_params.pfc.priority_non_pauseable_mask)
155 #define DCBX_PFC_PRI_PAUSE_MASK(bp) \ argument
156 ((u8)~DCBX_PFC_PRI_NON_PAUSE_MASK(bp))
157 #define DCBX_PFC_PRI_GET_PAUSE(bp, pg_pri) \ argument
158 ((pg_pri) & (DCBX_PFC_PRI_PAUSE_MASK(bp)))
159 #define DCBX_PFC_PRI_GET_NON_PAUSE(bp, pg_pri) \ argument
160 (DCBX_PFC_PRI_NON_PAUSE_MASK(bp) & (pg_pri))
[all …]
Dbnx2x_sp.h91 int (*wait_comp)(struct bnx2x *bp,
168 typedef int (*exe_q_validate)(struct bnx2x *bp,
172 typedef int (*exe_q_remove)(struct bnx2x *bp,
179 typedef int (*exe_q_optimize)(struct bnx2x *bp,
182 typedef int (*exe_q_execute)(struct bnx2x *bp,
324 int (*get_n_elements)(struct bnx2x *bp,
334 int (*check_add)(struct bnx2x *bp,
344 (*check_del)(struct bnx2x *bp,
353 bool (*check_move)(struct bnx2x *bp,
370 void (*set_one_rule)(struct bnx2x *bp,
[all …]
Dbnx2x_sp.c46 static inline void bnx2x_exe_queue_init(struct bnx2x *bp, in bnx2x_exe_queue_init() argument
77 static inline void bnx2x_exe_queue_free_elem(struct bnx2x *bp, in bnx2x_exe_queue_free_elem() argument
109 static inline int bnx2x_exe_queue_add(struct bnx2x *bp, in bnx2x_exe_queue_add() argument
120 rc = o->optimize(bp, o->owner, elem); in bnx2x_exe_queue_add()
125 rc = o->validate(bp, o->owner, elem); in bnx2x_exe_queue_add()
140 bnx2x_exe_queue_free_elem(bp, elem); in bnx2x_exe_queue_add()
148 struct bnx2x *bp, in __bnx2x_exe_queue_reset_pending() argument
158 bnx2x_exe_queue_free_elem(bp, elem); in __bnx2x_exe_queue_reset_pending()
171 static inline int bnx2x_exe_queue_step(struct bnx2x *bp, in bnx2x_exe_queue_step() argument
189 __bnx2x_exe_queue_reset_pending(bp, o); in bnx2x_exe_queue_step()
[all …]
Dbnx2x_init.h205 static inline void bnx2x_map_q_cos(struct bnx2x *bp, u32 q_num, u32 new_cos) in bnx2x_map_q_cos() argument
208 u32 curr_cos = REG_RD(bp, QM_REG_QVOQIDX_0 + q_num * 4); in bnx2x_map_q_cos()
216 if (INIT_MODE_FLAGS(bp) & MODE_PORT4) { in bnx2x_map_q_cos()
218 if (BP_PORT(bp)) { in bnx2x_map_q_cos()
227 BNX2X_PF_Q_NUM(q_num, BP_PORT(bp), vnic); in bnx2x_map_q_cos()
231 REG_WR(bp, BNX2X_Q_VOQ_REG_ADDR(pf_q_num), new_cos); in bnx2x_map_q_cos()
235 reg_bit_map = REG_RD(bp, reg_addr); in bnx2x_map_q_cos()
236 REG_WR(bp, reg_addr, reg_bit_map & (~q_bit_map)); in bnx2x_map_q_cos()
240 reg_bit_map = REG_RD(bp, reg_addr); in bnx2x_map_q_cos()
241 REG_WR(bp, reg_addr, reg_bit_map | q_bit_map); in bnx2x_map_q_cos()
[all …]
Dbnx2x_link.h319 struct bnx2x *bp; member
425 int bnx2x_common_init_phy(struct bnx2x *bp, u32 shmem_base_path[],
429 void bnx2x_ext_phy_hw_reset(struct bnx2x *bp, u8 port);
432 void bnx2x_sfx7101_sp_sw_reset(struct bnx2x *bp, struct bnx2x_phy *phy);
448 u8 bnx2x_fan_failure_det_req(struct bnx2x *bp, u32 shmem_base,
538 void bnx2x_init_mod_abs_int(struct bnx2x *bp, struct link_vars *vars,
Dbnx2x_stats.h539 void bnx2x_memset_stats(struct bnx2x *bp);
540 void bnx2x_stats_init(struct bnx2x *bp);
541 void bnx2x_stats_handle(struct bnx2x *bp, enum bnx2x_stats_event event);
542 int bnx2x_stats_safe_exec(struct bnx2x *bp,
551 void bnx2x_save_statistics(struct bnx2x *bp);
553 void bnx2x_afex_collect_stats(struct bnx2x *bp, void *void_afex_stats,
/linux-4.1.27/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 …]
/linux-4.1.27/drivers/sbus/char/
Dbbc_i2c.c53 static void set_device_claimage(struct bbc_i2c_bus *bp, struct platform_device *op, int val) in set_device_claimage() argument
58 if (bp->devs[i].device == op) { in set_device_claimage()
59 bp->devs[i].client_claimed = val; in set_device_claimage()
68 struct platform_device *bbc_i2c_getdev(struct bbc_i2c_bus *bp, int index) in bbc_i2c_getdev() argument
74 if (!(op = bp->devs[i].device)) in bbc_i2c_getdev()
88 struct bbc_i2c_client *bbc_i2c_attach(struct bbc_i2c_bus *bp, struct platform_device *op) in bbc_i2c_attach() argument
96 client->bp = bp; in bbc_i2c_attach()
108 claim_device(bp, op); in bbc_i2c_attach()
115 struct bbc_i2c_bus *bp = client->bp; in bbc_i2c_detach() local
118 release_device(bp, op); in bbc_i2c_detach()
[all …]
Dbbc_envctrl.c445 static void attach_one_temp(struct bbc_i2c_bus *bp, struct platform_device *op, in attach_one_temp() argument
457 tp->client = bbc_i2c_attach(bp, op); in attach_one_temp()
467 list_add(&tp->bp_list, &bp->temps); in attach_one_temp()
493 static void attach_one_fan(struct bbc_i2c_bus *bp, struct platform_device *op, in attach_one_fan() argument
505 fp->client = bbc_i2c_attach(bp, op); in attach_one_fan()
514 list_add(&fp->bp_list, &bp->fans); in attach_one_fan()
537 static void destroy_all_temps(struct bbc_i2c_bus *bp) in destroy_all_temps() argument
541 list_for_each_entry_safe(tp, tpos, &bp->temps, bp_list) { in destroy_all_temps()
554 static void destroy_all_fans(struct bbc_i2c_bus *bp) in destroy_all_fans() argument
558 list_for_each_entry_safe(fp, fpos, &bp->fans, bp_list) { in destroy_all_fans()
[all …]
Dbbc_i2c.h9 struct bbc_i2c_bus *bp; member
76 extern struct bbc_i2c_client *bbc_i2c_attach(struct bbc_i2c_bus *bp, struct platform_device *);
/linux-4.1.27/drivers/net/ethernet/sun/
Dsunbmac.c97 static void qec_init(struct bigmac *bp) in qec_init() argument
99 struct platform_device *qec_op = bp->qec_op; in qec_init()
100 void __iomem *gregs = bp->gregs; in qec_init()
101 u8 bsizes = bp->bigmac_bursts; in qec_init()
164 static void bigmac_stop(struct bigmac *bp) in bigmac_stop() argument
166 bigmac_tx_reset(bp->bregs); in bigmac_stop()
167 bigmac_rx_reset(bp->bregs); in bigmac_stop()
170 static void bigmac_get_counters(struct bigmac *bp, void __iomem *bregs) in bigmac_get_counters() argument
172 struct net_device_stats *stats = &bp->enet_stats; in bigmac_get_counters()
192 static void bigmac_clean_rings(struct bigmac *bp) in bigmac_clean_rings() argument
[all …]
Dsunbmac.h258 #define TX_BUFFS_AVAIL(bp) \ argument
259 (((bp)->tx_old <= (bp)->tx_new) ? \
260 (bp)->tx_old + (TX_RING_SIZE - 1) - (bp)->tx_new : \
261 (bp)->tx_old - (bp)->tx_new - 1)
/linux-4.1.27/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 …]
Dkdb_debugger.c56 kdb_bp_t *bp; in kdb_stub() local
78 for (i = 0, bp = kdb_breakpoints; i < KDB_MAXBPT; i++, bp++) { in kdb_stub()
79 if ((bp->bp_enabled) && (bp->bp_addr == addr)) { in kdb_stub()
88 for (i = 0, bp = kdb_breakpoints; i < KDB_MAXBPT; i++, bp++) { in kdb_stub()
89 if (bp->bp_free) in kdb_stub()
91 if (bp->bp_addr == addr) { in kdb_stub()
92 bp->bp_delay = 1; in kdb_stub()
93 bp->bp_delayed = 1; in kdb_stub()
/linux-4.1.27/drivers/media/usb/pvrusb2/
Dpvrusb2-io.c36 #define BUFFER_CHECK(bp) do { \ argument
37 if ((bp)->signature != BUFFER_SIG) { \
40 (bp),__FILE__,__LINE__); \
41 pvr2_buffer_describe(bp,"BadSig"); \
46 #define BUFFER_CHECK(bp) do {} while(0) argument
113 static void pvr2_buffer_describe(struct pvr2_buffer *bp,const char *msg) in pvr2_buffer_describe() argument
120 bp, in pvr2_buffer_describe()
121 (bp ? pvr2_buffer_state_decode(bp->state) : "(invalid)"), in pvr2_buffer_describe()
122 (bp ? bp->id : 0), in pvr2_buffer_describe()
123 (bp ? bp->status : 0), in pvr2_buffer_describe()
[all …]
Dpvrusb2-dvb.c38 struct pvr2_buffer *bp; in pvr2_dvb_feed_func() local
52 bp = pvr2_stream_get_ready_buffer(stream); in pvr2_dvb_feed_func()
53 if (bp != NULL) { in pvr2_dvb_feed_func()
54 count = pvr2_buffer_get_count(bp); in pvr2_dvb_feed_func()
59 pvr2_buffer_get_id(bp)], in pvr2_dvb_feed_func()
62 ret = pvr2_buffer_get_status(bp); in pvr2_dvb_feed_func()
65 ret = pvr2_buffer_queue(bp); in pvr2_dvb_feed_func()
147 struct pvr2_buffer *bp; in pvr2_dvb_stream_do_start() local
171 bp = pvr2_stream_get_buffer(stream, idx); in pvr2_dvb_stream_do_start()
172 pvr2_buffer_set_buffer(bp, in pvr2_dvb_stream_do_start()
[all …]
Dpvrusb2-ioread.c163 struct pvr2_buffer *bp; in pvr2_ioread_start() local
168 while ((bp = pvr2_stream_get_idle_buffer(cp->stream)) != NULL) { in pvr2_ioread_start()
169 stat = pvr2_buffer_queue(bp); in pvr2_ioread_start()
206 struct pvr2_buffer *bp; in pvr2_ioread_setup() local
231 bp = pvr2_stream_get_buffer(sp,idx); in pvr2_ioread_setup()
232 pvr2_buffer_set_buffer(bp, in pvr2_ioread_setup()
/linux-4.1.27/drivers/net/ethernet/cadence/
Dmacb.c95 static struct macb_dma_desc *macb_rx_desc(struct macb *bp, unsigned int index) in macb_rx_desc() argument
97 return &bp->rx_ring[macb_rx_ring_wrap(index)]; in macb_rx_desc()
100 static void *macb_rx_buffer(struct macb *bp, unsigned int index) in macb_rx_buffer() argument
102 return bp->rx_buffers + bp->rx_buffer_size * macb_rx_ring_wrap(index); in macb_rx_buffer()
105 static void macb_set_hwaddr(struct macb *bp) in macb_set_hwaddr() argument
110 bottom = cpu_to_le32(*((u32 *)bp->dev->dev_addr)); in macb_set_hwaddr()
111 macb_or_gem_writel(bp, SA1B, bottom); in macb_set_hwaddr()
112 top = cpu_to_le16(*((u16 *)(bp->dev->dev_addr + 4))); in macb_set_hwaddr()
113 macb_or_gem_writel(bp, SA1T, top); in macb_set_hwaddr()
116 macb_or_gem_writel(bp, SA2B, 0); in macb_set_hwaddr()
[all …]
Dmacb.h439 readl_relaxed((queue)->bp->regs + (queue)->reg)
441 writel_relaxed((value), (queue)->bp->regs + (queue)->reg)
749 int (*mog_alloc_rx_buffers)(struct macb *bp);
750 void (*mog_free_rx_buffers)(struct macb *bp);
751 void (*mog_init_rings)(struct macb *bp);
752 int (*mog_rx)(struct macb *bp, int budget);
764 struct macb *bp; member
832 static inline bool macb_is_gem(struct macb *bp) in macb_is_gem() argument
834 return !!(bp->caps & MACB_CAPS_MACB_IS_GEM); in macb_is_gem()
/linux-4.1.27/kernel/events/
Dhw_breakpoint.c83 __weak int hw_breakpoint_weight(struct perf_event *bp) in hw_breakpoint_weight() argument
88 static inline enum bp_type_idx find_slot_idx(struct perf_event *bp) in find_slot_idx() argument
90 if (bp->attr.bp_type & HW_BREAKPOINT_RW) in find_slot_idx()
117 static int task_bp_pinned(int cpu, struct perf_event *bp, enum bp_type_idx type) in task_bp_pinned() argument
119 struct task_struct *tsk = bp->hw.target; in task_bp_pinned()
133 static const struct cpumask *cpumask_of_bp(struct perf_event *bp) in cpumask_of_bp() argument
135 if (bp->cpu >= 0) in cpumask_of_bp()
136 return cpumask_of(bp->cpu); in cpumask_of_bp()
145 fetch_bp_busy_slots(struct bp_busy_slots *slots, struct perf_event *bp, in fetch_bp_busy_slots() argument
148 const struct cpumask *cpumask = cpumask_of_bp(bp); in fetch_bp_busy_slots()
[all …]
/linux-4.1.27/drivers/net/ethernet/
Ddnet.c30 static u16 dnet_readw_mac(struct dnet *bp, u16 reg) in dnet_readw_mac() argument
35 dnet_writel(bp, reg, MACREG_ADDR); in dnet_readw_mac()
42 data_read = dnet_readl(bp, MACREG_DATA); in dnet_readw_mac()
49 static void dnet_writew_mac(struct dnet *bp, u16 reg, u16 val) in dnet_writew_mac() argument
52 dnet_writel(bp, val, MACREG_DATA); in dnet_writew_mac()
55 dnet_writel(bp, reg | DNET_INTERNAL_WRITE, MACREG_ADDR); in dnet_writew_mac()
62 static void __dnet_set_hwaddr(struct dnet *bp) in __dnet_set_hwaddr() argument
66 tmp = be16_to_cpup((__be16 *)bp->dev->dev_addr); in __dnet_set_hwaddr()
67 dnet_writew_mac(bp, DNET_INTERNAL_MAC_ADDR_0_REG, tmp); in __dnet_set_hwaddr()
68 tmp = be16_to_cpup((__be16 *)(bp->dev->dev_addr + 2)); in __dnet_set_hwaddr()
[all …]
/linux-4.1.27/drivers/net/fddi/skfp/
Dskfddi.c384 skfddi_priv *bp = &smc->os; in skfp_driver_init() local
390 bp->base_addr = dev->base_addr; in skfp_driver_init()
395 spin_lock_init(&bp->DriverLock); in skfp_driver_init()
398 bp->LocalRxBuffer = pci_alloc_consistent(&bp->pdev, MAX_FRAME_SIZE, &bp->LocalRxBufferDMA); in skfp_driver_init()
399 if (!bp->LocalRxBuffer) { in skfp_driver_init()
406 bp->SharedMemSize = mac_drv_check_space(); in skfp_driver_init()
407 pr_debug("Memory for HWM: %ld\n", bp->SharedMemSize); in skfp_driver_init()
408 if (bp->SharedMemSize > 0) { in skfp_driver_init()
409 bp->SharedMemSize += 16; // for descriptor alignment in skfp_driver_init()
411 bp->SharedMemAddr = pci_alloc_consistent(&bp->pdev, in skfp_driver_init()
[all …]
/linux-4.1.27/fs/afs/
Dfsclient.c24 const __be32 *bp = *_bp; in xdr_decode_AFSFid() local
26 fid->vid = ntohl(*bp++); in xdr_decode_AFSFid()
27 fid->vnode = ntohl(*bp++); in xdr_decode_AFSFid()
28 fid->unique = ntohl(*bp++); in xdr_decode_AFSFid()
29 *_bp = bp; in xdr_decode_AFSFid()
41 const __be32 *bp = *_bp; in xdr_decode_AFSFetchStatus() local
50 u32 x = ntohl(*bp++); \ in xdr_decode_AFSFetchStatus()
55 status->if_version = ntohl(*bp++); in xdr_decode_AFSFetchStatus()
58 size = ntohl(*bp++); in xdr_decode_AFSFetchStatus()
59 data_version = ntohl(*bp++); in xdr_decode_AFSFetchStatus()
[all …]
Dvlclient.c65 __be32 *bp; in afs_deliver_vl_get_entry_by_xxx() local
80 bp = call->buffer; in afs_deliver_vl_get_entry_by_xxx()
83 entry->name[loop] = ntohl(*bp++); in afs_deliver_vl_get_entry_by_xxx()
85 bp++; /* final NUL */ in afs_deliver_vl_get_entry_by_xxx()
87 bp++; /* type */ in afs_deliver_vl_get_entry_by_xxx()
88 entry->nservers = ntohl(*bp++); in afs_deliver_vl_get_entry_by_xxx()
91 entry->servers[loop].s_addr = *bp++; in afs_deliver_vl_get_entry_by_xxx()
93 bp += 8; /* partition IDs */ in afs_deliver_vl_get_entry_by_xxx()
96 tmp = ntohl(*bp++); in afs_deliver_vl_get_entry_by_xxx()
106 entry->vid[0] = ntohl(*bp++); in afs_deliver_vl_get_entry_by_xxx()
[all …]
Dcmservice.c177 __be32 *bp; in afs_deliver_cb_callback() local
227 bp = call->buffer; in afs_deliver_cb_callback()
229 cb->fid.vid = ntohl(*bp++); in afs_deliver_cb_callback()
230 cb->fid.vnode = ntohl(*bp++); in afs_deliver_cb_callback()
231 cb->fid.unique = ntohl(*bp++); in afs_deliver_cb_callback()
269 bp = call->buffer; in afs_deliver_cb_callback()
271 cb->version = ntohl(*bp++); in afs_deliver_cb_callback()
272 cb->expiry = ntohl(*bp++); in afs_deliver_cb_callback()
273 cb->type = ntohl(*bp++); in afs_deliver_cb_callback()
/linux-4.1.27/arch/powerpc/kernel/
Dhw_breakpoint.c63 int arch_install_hw_breakpoint(struct perf_event *bp) in arch_install_hw_breakpoint() argument
65 struct arch_hw_breakpoint *info = counter_arch_bp(bp); in arch_install_hw_breakpoint()
68 *slot = bp; in arch_install_hw_breakpoint()
74 if (current->thread.last_hit_ubp != bp) in arch_install_hw_breakpoint()
89 void arch_uninstall_hw_breakpoint(struct perf_event *bp) in arch_uninstall_hw_breakpoint() argument
93 if (*slot != bp) { in arch_uninstall_hw_breakpoint()
106 void arch_unregister_hw_breakpoint(struct perf_event *bp) in arch_unregister_hw_breakpoint() argument
113 if (bp->ctx && bp->ctx->task) in arch_unregister_hw_breakpoint()
114 bp->ctx->task->thread.last_hit_ubp = NULL; in arch_unregister_hw_breakpoint()
120 int arch_check_bp_in_kernelspace(struct perf_event *bp) in arch_check_bp_in_kernelspace() argument
[all …]
Dptrace.c918 void ptrace_triggered(struct perf_event *bp, in ptrace_triggered() argument
929 attr = bp->attr; in ptrace_triggered()
931 modify_user_hw_breakpoint(bp, &attr); in ptrace_triggered()
941 struct perf_event *bp; in ptrace_set_debugreg() local
979 bp = thread->ptrace_bps[0]; in ptrace_set_debugreg()
981 if (bp) { in ptrace_set_debugreg()
982 unregister_hw_breakpoint(bp); in ptrace_set_debugreg()
987 if (bp) { in ptrace_set_debugreg()
988 attr = bp->attr; in ptrace_set_debugreg()
995 ret = modify_user_hw_breakpoint(bp, &attr); in ptrace_set_debugreg()
[all …]
/linux-4.1.27/drivers/net/ethernet/apple/
Dbmac.c228 struct bmac_data *bp = netdev_priv(dev); in bmac_enable_and_reset_chip() local
229 volatile struct dbdma_regs __iomem *rd = bp->rx_dma; in bmac_enable_and_reset_chip()
230 volatile struct dbdma_regs __iomem *td = bp->tx_dma; in bmac_enable_and_reset_chip()
237 pmac_call_feature(PMAC_FTR_BMAC_ENABLE, macio_get_of_node(bp->mdev), 0, 1); in bmac_enable_and_reset_chip()
312 struct bmac_data *bp = netdev_priv(dev); in bmac_init_registers() local
329 if (!bp->is_bmac_plus) { in bmac_init_registers()
371 for (i=0; i<4; i++) bp->hash_table_mask[i] = 0; in bmac_init_registers()
372 bmwrite(dev, BHASH3, bp->hash_table_mask[0]); /* bits 15 - 0 */ in bmac_init_registers()
373 bmwrite(dev, BHASH2, bp->hash_table_mask[1]); /* bits 31 - 16 */ in bmac_init_registers()
374 bmwrite(dev, BHASH1, bp->hash_table_mask[2]); /* bits 47 - 32 */ in bmac_init_registers()
[all …]
/linux-4.1.27/fs/xfs/libxfs/
Dxfs_symlink_remote.c56 struct xfs_buf *bp) in xfs_symlink_hdr_set() argument
58 struct xfs_dsymlink_hdr *dsl = bp->b_addr; in xfs_symlink_hdr_set()
68 dsl->sl_blkno = cpu_to_be64(bp->b_bn); in xfs_symlink_hdr_set()
69 bp->b_ops = &xfs_symlink_buf_ops; in xfs_symlink_hdr_set()
84 struct xfs_buf *bp) in xfs_symlink_hdr_ok() argument
86 struct xfs_dsymlink_hdr *dsl = bp->b_addr; in xfs_symlink_hdr_ok()
101 struct xfs_buf *bp) in xfs_symlink_verify() argument
103 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_symlink_verify()
104 struct xfs_dsymlink_hdr *dsl = bp->b_addr; in xfs_symlink_verify()
112 if (bp->b_bn != be64_to_cpu(dsl->sl_blkno)) in xfs_symlink_verify()
[all …]
Dxfs_rtbitmap.c56 xfs_buf_t *bp; /* block buffer, result */ in xfs_rtbuf_get() local
71 mp->m_bsize, 0, &bp, NULL); in xfs_rtbuf_get()
74 *bpp = bp; in xfs_rtbuf_get()
93 xfs_buf_t *bp; /* buf for the block */ in xfs_rtfind_back() local
108 error = xfs_rtbuf_get(mp, tp, block, 0, &bp); in xfs_rtfind_back()
112 bufp = bp->b_addr; in xfs_rtfind_back()
145 xfs_trans_brelse(tp, bp); in xfs_rtfind_back()
159 xfs_trans_brelse(tp, bp); in xfs_rtfind_back()
160 error = xfs_rtbuf_get(mp, tp, --block, 0, &bp); in xfs_rtfind_back()
164 bufp = bp->b_addr; in xfs_rtfind_back()
[all …]
Dxfs_dquot_buf.c177 struct xfs_buf *bp) in xfs_dquot_buf_verify_crc() argument
179 struct xfs_dqblk *d = (struct xfs_dqblk *)bp->b_addr; in xfs_dquot_buf_verify_crc()
195 XFS_BB_TO_FSB(mp, bp->b_length)); in xfs_dquot_buf_verify_crc()
210 struct xfs_buf *bp, in xfs_dquot_buf_verify() argument
213 struct xfs_dqblk *d = (struct xfs_dqblk *)bp->b_addr; in xfs_dquot_buf_verify()
226 ndquots = xfs_calc_dquots_per_chunk(bp->b_length); in xfs_dquot_buf_verify()
253 struct xfs_buf *bp) in xfs_dquot_buf_read_verify() argument
255 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_dquot_buf_read_verify()
257 if (!xfs_dquot_buf_verify_crc(mp, bp)) in xfs_dquot_buf_read_verify()
258 xfs_buf_ioerror(bp, -EFSBADCRC); in xfs_dquot_buf_read_verify()
[all …]
Dxfs_dir2_node.c40 static int xfs_dir2_leafn_add(struct xfs_buf *bp, xfs_da_args_t *args,
45 static int xfs_dir2_leafn_remove(xfs_da_args_t *args, struct xfs_buf *bp,
55 #define xfs_dir3_leaf_check(dp, bp) \ argument
57 if (!xfs_dir3_leafn_check((dp), (bp))) \
64 struct xfs_buf *bp) in xfs_dir3_leafn_check() argument
66 struct xfs_dir2_leaf *leaf = bp->b_addr; in xfs_dir3_leafn_check()
72 struct xfs_dir3_leaf_hdr *leaf3 = bp->b_addr; in xfs_dir3_leafn_check()
73 if (be64_to_cpu(leaf3->info.blkno) != bp->b_bn) in xfs_dir3_leafn_check()
81 #define xfs_dir3_leaf_check(dp, bp) argument
86 struct xfs_buf *bp) in xfs_dir3_free_verify() argument
[all …]
Dxfs_dir2_block.c41 static void xfs_dir2_block_log_leaf(xfs_trans_t *tp, struct xfs_buf *bp,
43 static void xfs_dir2_block_log_tail(xfs_trans_t *tp, struct xfs_buf *bp);
62 struct xfs_buf *bp) in xfs_dir3_block_verify() argument
64 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_dir3_block_verify()
65 struct xfs_dir3_blk_hdr *hdr3 = bp->b_addr; in xfs_dir3_block_verify()
72 if (be64_to_cpu(hdr3->blkno) != bp->b_bn) in xfs_dir3_block_verify()
78 if (__xfs_dir3_data_check(NULL, bp)) in xfs_dir3_block_verify()
85 struct xfs_buf *bp) in xfs_dir3_block_read_verify() argument
87 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_dir3_block_read_verify()
90 !xfs_buf_verify_cksum(bp, XFS_DIR3_DATA_CRC_OFF)) in xfs_dir3_block_read_verify()
[all …]
Dxfs_da_btree.c113 state->altpath.blk[i].bp = NULL; in xfs_da_state_kill_altpath()
132 struct xfs_buf *bp) in xfs_da3_node_verify() argument
134 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_da3_node_verify()
135 struct xfs_da_intnode *hdr = bp->b_addr; in xfs_da3_node_verify()
144 struct xfs_da3_node_hdr *hdr3 = bp->b_addr; in xfs_da3_node_verify()
151 if (be64_to_cpu(hdr3->info.blkno) != bp->b_bn) in xfs_da3_node_verify()
179 struct xfs_buf *bp) in xfs_da3_node_write_verify() argument
181 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_da3_node_write_verify()
182 struct xfs_buf_log_item *bip = bp->b_fspriv; in xfs_da3_node_write_verify()
183 struct xfs_da3_node_hdr *hdr3 = bp->b_addr; in xfs_da3_node_write_verify()
[all …]
Dxfs_attr_remote.c120 struct xfs_buf *bp) in xfs_attr3_rmt_read_verify() argument
122 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_attr3_rmt_read_verify()
132 ptr = bp->b_addr; in xfs_attr3_rmt_read_verify()
133 bno = bp->b_bn; in xfs_attr3_rmt_read_verify()
134 len = BBTOB(bp->b_length); in xfs_attr3_rmt_read_verify()
139 xfs_buf_ioerror(bp, -EFSBADCRC); in xfs_attr3_rmt_read_verify()
143 xfs_buf_ioerror(bp, -EFSCORRUPTED); in xfs_attr3_rmt_read_verify()
151 if (bp->b_error) in xfs_attr3_rmt_read_verify()
152 xfs_verifier_error(bp); in xfs_attr3_rmt_read_verify()
159 struct xfs_buf *bp) in xfs_attr3_rmt_write_verify() argument
[all …]
Dxfs_dir2_data.c43 struct xfs_buf *bp) /* data block's buffer */ in __xfs_dir3_data_check() argument
66 mp = bp->b_target->bt_mount; in __xfs_dir3_data_check()
75 hdr = bp->b_addr; in __xfs_dir3_data_check()
215 struct xfs_buf *bp) in xfs_dir3_data_verify() argument
217 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_dir3_data_verify()
218 struct xfs_dir3_blk_hdr *hdr3 = bp->b_addr; in xfs_dir3_data_verify()
225 if (be64_to_cpu(hdr3->blkno) != bp->b_bn) in xfs_dir3_data_verify()
231 if (__xfs_dir3_data_check(NULL, bp)) in xfs_dir3_data_verify()
243 struct xfs_buf *bp) in xfs_dir3_data_reada_verify() argument
245 struct xfs_dir2_data_hdr *hdr = bp->b_addr; in xfs_dir3_data_reada_verify()
[all …]
Dxfs_ialloc_btree.c126 struct xfs_buf *bp) in xfs_inobt_free_block() argument
131 fsbno = XFS_DADDR_TO_FSB(cur->bc_mp, XFS_BUF_ADDR(bp)); in xfs_inobt_free_block()
136 xfs_trans_binval(cur->bc_tp, bp); in xfs_inobt_free_block()
211 struct xfs_buf *bp) in xfs_inobt_verify() argument
213 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_inobt_verify()
214 struct xfs_btree_block *block = XFS_BUF_TO_BLOCK(bp); in xfs_inobt_verify()
215 struct xfs_perag *pag = bp->b_pag; in xfs_inobt_verify()
235 if (block->bb_u.s.bb_blkno != cpu_to_be64(bp->b_bn)) in xfs_inobt_verify()
270 struct xfs_buf *bp) in xfs_inobt_read_verify() argument
272 if (!xfs_btree_sblock_verify_crc(bp)) in xfs_inobt_read_verify()
[all …]
Dxfs_inode_buf.c40 xfs_buf_t *bp) in xfs_inobp_check() argument
49 dip = (xfs_dinode_t *)xfs_buf_offset(bp, in xfs_inobp_check()
54 i, (long long)bp->b_bn); in xfs_inobp_check()
77 struct xfs_buf *bp, in xfs_inode_buf_verify() argument
80 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_inode_buf_verify()
87 ni = XFS_BB_TO_FSB(mp, bp->b_length) * mp->m_sb.sb_inopblock; in xfs_inode_buf_verify()
92 dip = (struct xfs_dinode *)xfs_buf_offset(bp, in xfs_inode_buf_verify()
100 bp->b_flags &= ~XBF_DONE; in xfs_inode_buf_verify()
101 xfs_buf_ioerror(bp, -EIO); in xfs_inode_buf_verify()
105 xfs_buf_ioerror(bp, -EFSCORRUPTED); in xfs_inode_buf_verify()
[all …]
Dxfs_btree.c59 struct xfs_buf *bp) /* buffer for block, if any */ in xfs_btree_check_lblock() argument
70 bp ? bp->b_bn : XFS_BUF_DADDR_NULL); in xfs_btree_check_lblock()
90 if (bp) in xfs_btree_check_lblock()
91 trace_xfs_btree_corrupt(bp, _RET_IP_); in xfs_btree_check_lblock()
103 struct xfs_buf *bp) /* buffer containing block */ in xfs_btree_check_sblock() argument
120 bp ? bp->b_bn : XFS_BUF_DADDR_NULL); in xfs_btree_check_sblock()
138 if (bp) in xfs_btree_check_sblock()
139 trace_xfs_btree_corrupt(bp, _RET_IP_); in xfs_btree_check_sblock()
154 struct xfs_buf *bp) /* buffer containing block, if any */ in xfs_btree_check_block() argument
157 return xfs_btree_check_lblock(cur, block, level, bp); in xfs_btree_check_block()
[all …]
Dxfs_dir2_leaf.c43 struct xfs_buf *bp, int first, int last);
45 struct xfs_buf *bp);
52 #define xfs_dir3_leaf_check(dp, bp) \ argument
54 if (!xfs_dir3_leaf1_check((dp), (bp))) \
61 struct xfs_buf *bp) in xfs_dir3_leaf1_check() argument
63 struct xfs_dir2_leaf *leaf = bp->b_addr; in xfs_dir3_leaf1_check()
69 struct xfs_dir3_leaf_hdr *leaf3 = bp->b_addr; in xfs_dir3_leaf1_check()
70 if (be64_to_cpu(leaf3->info.blkno) != bp->b_bn) in xfs_dir3_leaf1_check()
78 #define xfs_dir3_leaf_check(dp, bp) argument
146 struct xfs_buf *bp, in xfs_dir3_leaf_verify() argument
[all …]
Dxfs_attr.c573 struct xfs_buf *bp; in xfs_attr_leaf_addname() local
583 error = xfs_attr3_leaf_read(args->trans, args->dp, args->blkno, -1, &bp); in xfs_attr_leaf_addname()
591 retval = xfs_attr3_leaf_lookup_int(bp, args); in xfs_attr_leaf_addname()
593 xfs_trans_brelse(args->trans, bp); in xfs_attr_leaf_addname()
597 xfs_trans_brelse(args->trans, bp); in xfs_attr_leaf_addname()
625 retval = xfs_attr3_leaf_add(bp, args); in xfs_attr_leaf_addname()
722 -1, &bp); in xfs_attr_leaf_addname()
726 xfs_attr3_leaf_remove(bp, args); in xfs_attr_leaf_addname()
731 if ((forkoff = xfs_attr_shortform_allfit(bp, dp))) { in xfs_attr_leaf_addname()
733 error = xfs_attr3_leaf_to_shortform(bp, args, forkoff); in xfs_attr_leaf_addname()
[all …]
Dxfs_attr_leaf.c251 struct xfs_buf *bp) in xfs_attr3_leaf_verify() argument
253 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_attr3_leaf_verify()
254 struct xfs_attr_leafblock *leaf = bp->b_addr; in xfs_attr3_leaf_verify()
260 struct xfs_da3_node_hdr *hdr3 = bp->b_addr; in xfs_attr3_leaf_verify()
267 if (be64_to_cpu(hdr3->info.blkno) != bp->b_bn) in xfs_attr3_leaf_verify()
284 struct xfs_buf *bp) in xfs_attr3_leaf_write_verify() argument
286 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_attr3_leaf_write_verify()
287 struct xfs_buf_log_item *bip = bp->b_fspriv; in xfs_attr3_leaf_write_verify()
288 struct xfs_attr3_leaf_hdr *hdr3 = bp->b_addr; in xfs_attr3_leaf_write_verify()
290 if (!xfs_attr3_leaf_verify(bp)) { in xfs_attr3_leaf_write_verify()
[all …]
Dxfs_alloc_btree.c106 struct xfs_buf *bp) in xfs_allocbt_free_block() argument
113 bno = xfs_daddr_to_agbno(cur->bc_mp, XFS_BUF_ADDR(bp)); in xfs_allocbt_free_block()
122 xfs_trans_binval(cur->bc_tp, bp); in xfs_allocbt_free_block()
274 struct xfs_buf *bp) in xfs_allocbt_verify() argument
276 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_allocbt_verify()
277 struct xfs_btree_block *block = XFS_BUF_TO_BLOCK(bp); in xfs_allocbt_verify()
278 struct xfs_perag *pag = bp->b_pag; in xfs_allocbt_verify()
300 if (block->bb_u.s.bb_blkno != cpu_to_be64(bp->b_bn)) in xfs_allocbt_verify()
318 if (block->bb_u.s.bb_blkno != cpu_to_be64(bp->b_bn)) in xfs_allocbt_verify()
354 struct xfs_buf *bp) in xfs_allocbt_read_verify() argument
[all …]
Dxfs_dir2_priv.h43 #define xfs_dir3_data_check(dp,bp) __xfs_dir3_data_check(dp, bp); argument
45 #define xfs_dir3_data_check(dp,bp) argument
48 extern int __xfs_dir3_data_check(struct xfs_inode *dp, struct xfs_buf *bp);
68 struct xfs_dir3_icleaf_hdr *leafhdr, struct xfs_buf *bp);
75 struct xfs_buf *bp, int first, int last);
77 struct xfs_buf *bp);
98 struct xfs_buf *bp, int *count);
99 extern int xfs_dir2_leafn_lookup_int(struct xfs_buf *bp,
122 extern int xfs_dir2_block_to_sf(struct xfs_da_args *args, struct xfs_buf *bp,
Dxfs_sb.c526 struct xfs_buf *bp, in xfs_sb_verify() argument
529 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_sb_verify()
536 __xfs_sb_from_disk(&sb, XFS_BUF_TO_SBP(bp), false); in xfs_sb_verify()
542 return xfs_mount_validate_sb(mp, &sb, bp->b_bn == XFS_SB_DADDR, in xfs_sb_verify()
560 struct xfs_buf *bp) in xfs_sb_read_verify() argument
562 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_sb_read_verify()
563 struct xfs_dsb *dsb = XFS_BUF_TO_SBP(bp); in xfs_sb_read_verify()
575 if (!xfs_buf_verify_cksum(bp, XFS_SB_CRC_OFF)) { in xfs_sb_read_verify()
577 if (bp->b_bn == XFS_SB_DADDR || in xfs_sb_read_verify()
584 error = xfs_sb_verify(bp, true); in xfs_sb_read_verify()
[all …]
Dxfs_attr_leaf.h54 int xfs_attr_shortform_allfit(struct xfs_buf *bp, struct xfs_inode *dp);
62 int xfs_attr3_leaf_to_shortform(struct xfs_buf *bp,
76 int xfs_attr3_leaf_getvalue(struct xfs_buf *bp, struct xfs_da_args *args);
81 int xfs_attr3_leaf_list_int(struct xfs_buf *bp,
96 xfs_dahash_t xfs_attr_leaf_lasthash(struct xfs_buf *bp, int *count);
Dxfs_bmap_btree.c521 struct xfs_buf *bp) in xfs_bmbt_free_block() argument
526 xfs_fsblock_t fsbno = XFS_DADDR_TO_FSB(mp, XFS_BUF_ADDR(bp)); in xfs_bmbt_free_block()
533 xfs_trans_binval(tp, bp); in xfs_bmbt_free_block()
640 struct xfs_buf *bp) in xfs_bmbt_verify() argument
642 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_bmbt_verify()
643 struct xfs_btree_block *block = XFS_BUF_TO_BLOCK(bp); in xfs_bmbt_verify()
652 if (be64_to_cpu(block->bb_u.l.bb_blkno) != bp->b_bn) in xfs_bmbt_verify()
695 struct xfs_buf *bp) in xfs_bmbt_read_verify() argument
697 if (!xfs_btree_lblock_verify_crc(bp)) in xfs_bmbt_read_verify()
698 xfs_buf_ioerror(bp, -EFSBADCRC); in xfs_bmbt_read_verify()
[all …]
Dxfs_alloc.c447 struct xfs_buf *bp) in xfs_agfl_verify() argument
449 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_agfl_verify()
450 struct xfs_agfl *agfl = XFS_BUF_TO_AGFL(bp); in xfs_agfl_verify()
463 if (bp->b_pag && be32_to_cpu(agfl->agfl_seqno) != bp->b_pag->pag_agno) in xfs_agfl_verify()
476 struct xfs_buf *bp) in xfs_agfl_read_verify() argument
478 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_agfl_read_verify()
489 if (!xfs_buf_verify_cksum(bp, XFS_AGFL_CRC_OFF)) in xfs_agfl_read_verify()
490 xfs_buf_ioerror(bp, -EFSBADCRC); in xfs_agfl_read_verify()
491 else if (!xfs_agfl_verify(bp)) in xfs_agfl_read_verify()
492 xfs_buf_ioerror(bp, -EFSCORRUPTED); in xfs_agfl_read_verify()
[all …]
Dxfs_ialloc.c1979 xfs_buf_t *bp, /* allocation group header buffer */ in xfs_ialloc_log_agi() argument
2004 agi = XFS_BUF_TO_AGI(bp); in xfs_ialloc_log_agi()
2008 xfs_trans_buf_set_type(tp, bp, XFS_BLFT_AGI_BUF); in xfs_ialloc_log_agi()
2018 xfs_trans_log_buf(tp, bp, first, last); in xfs_ialloc_log_agi()
2029 xfs_trans_log_buf(tp, bp, first, last); in xfs_ialloc_log_agi()
2049 struct xfs_buf *bp) in xfs_agi_verify() argument
2051 struct xfs_mount *mp = bp->b_target->bt_mount; in xfs_agi_verify()
2052 struct xfs_agi *agi = XFS_BUF_TO_AGI(bp); in xfs_agi_verify()
2073 if (bp->b_pag && be32_to_cpu(agi->agi_seqno) != bp->b_pag->pag_agno) in xfs_agi_verify()
2082 struct xfs_buf *bp) in xfs_agi_read_verify() argument
[all …]
Dxfs_dir2.h158 struct xfs_buf *bp);
163 struct xfs_buf *bp, struct xfs_dir2_data_entry *dep);
165 struct xfs_buf *bp);
167 struct xfs_buf *bp, struct xfs_dir2_data_unused *dup);
169 struct xfs_buf *bp, xfs_dir2_data_aoff_t offset,
172 struct xfs_buf *bp, struct xfs_dir2_data_unused *dup,
Dxfs_shared.h238 uint32_t size, struct xfs_buf *bp);
240 uint32_t size, struct xfs_buf *bp);
241 void xfs_symlink_local_to_remote(struct xfs_trans *tp, struct xfs_buf *bp,
Dxfs_btree.h136 int (*free_block)(struct xfs_btree_cur *cur, struct xfs_buf *bp);
242 #define XFS_BUF_TO_BLOCK(bp) ((struct xfs_btree_block *)((bp)->b_addr)) argument
253 struct xfs_buf *bp); /* buffer containing block, if any */
367 struct xfs_buf *bp,
Dxfs_format.h523 #define XFS_BUF_TO_SBP(bp) ((xfs_dsb_t *)((bp)->b_addr)) argument
656 #define XFS_BUF_TO_AGF(bp) ((xfs_agf_t *)((bp)->b_addr)) argument
724 #define XFS_BUF_TO_AGI(bp) ((xfs_agi_t *)((bp)->b_addr)) argument
732 #define XFS_BUF_TO_AGFL(bp) ((xfs_agfl_t *)((bp)->b_addr)) argument
734 #define XFS_BUF_TO_AGFL_BNO(mp, bp) \ argument
736 &(XFS_BUF_TO_AGFL(bp)->agfl_bno[0]) : \
737 (__be32 *)(bp)->b_addr)
1065 #define XFS_SUMPTR(mp,bp,so) \ argument
1066 ((xfs_suminfo_t *)((bp)->b_addr + \
Dxfs_da_btree.h115 struct xfs_buf *bp; /* buffer containing block */ member
199 struct xfs_buf **bp, int whichfork);
/linux-4.1.27/drivers/power/
Dapm_power.c47 struct find_bat_param *bp = (struct find_bat_param *)data; in __find_main_battery() local
49 bp->bat = dev_get_drvdata(dev); in __find_main_battery()
51 if (bp->bat->desc->use_for_apm) { in __find_main_battery()
53 bp->main = bp->bat; in __find_main_battery()
57 if (!PSY_PROP(bp->bat, CHARGE_FULL_DESIGN, &bp->full) || in __find_main_battery()
58 !PSY_PROP(bp->bat, CHARGE_FULL, &bp->full)) { in __find_main_battery()
59 if (bp->full.intval > bp->max_charge) { in __find_main_battery()
60 bp->max_charge_bat = bp->bat; in __find_main_battery()
61 bp->max_charge = bp->full.intval; in __find_main_battery()
63 } else if (!PSY_PROP(bp->bat, ENERGY_FULL_DESIGN, &bp->full) || in __find_main_battery()
[all …]
/linux-4.1.27/fs/jfs/
Djfs_logmgr.c188 static void lbmFree(struct lbuf * bp);
189 static void lbmfree(struct lbuf * bp);
191 static void lbmWrite(struct jfs_log * log, struct lbuf * bp, int flag, int cant_block);
192 static void lbmDirectWrite(struct jfs_log * log, struct lbuf * bp, int flag);
193 static int lbmIOWait(struct lbuf * bp, int flag);
195 static void lbmStartIO(struct lbuf * bp);
361 struct lbuf *bp; /* dst log page buffer */ in lmWriteRecord() local
380 bp = (struct lbuf *) log->bp; in lmWriteRecord()
381 lp = (struct logpage *) bp->l_ldata; in lmWriteRecord()
431 bp = log->bp; in lmWriteRecord()
[all …]
/linux-4.1.27/include/linux/
Dhw_breakpoint.h31 static inline unsigned long hw_breakpoint_addr(struct perf_event *bp) in hw_breakpoint_addr() argument
33 return bp->attr.bp_addr; in hw_breakpoint_addr()
36 static inline int hw_breakpoint_type(struct perf_event *bp) in hw_breakpoint_type() argument
38 return bp->attr.bp_type; in hw_breakpoint_type()
41 static inline unsigned long hw_breakpoint_len(struct perf_event *bp) in hw_breakpoint_len() argument
43 return bp->attr.bp_len; in hw_breakpoint_len()
54 modify_user_hw_breakpoint(struct perf_event *bp, struct perf_event_attr *attr);
70 extern int register_perf_hw_breakpoint(struct perf_event *bp);
71 extern int __register_perf_hw_breakpoint(struct perf_event *bp);
72 extern void unregister_hw_breakpoint(struct perf_event *bp);
[all …]
/linux-4.1.27/arch/tile/lib/
Dcpumask.c25 int bitmap_parselist_crop(const char *bp, unsigned long *maskp, int nmaskbits) in bitmap_parselist_crop() argument
31 if (!isdigit(*bp)) in bitmap_parselist_crop()
33 a = simple_strtoul(bp, (char **)&bp, 10); in bitmap_parselist_crop()
35 if (*bp == '-') { in bitmap_parselist_crop()
36 bp++; in bitmap_parselist_crop()
37 if (!isdigit(*bp)) in bitmap_parselist_crop()
39 b = simple_strtoul(bp, (char **)&bp, 10); in bitmap_parselist_crop()
49 if (*bp == ',') in bitmap_parselist_crop()
50 bp++; in bitmap_parselist_crop()
51 } while (*bp != '\0' && *bp != '\n'); in bitmap_parselist_crop()
/linux-4.1.27/arch/x86/kernel/
Dhw_breakpoint.c104 int arch_install_hw_breakpoint(struct perf_event *bp) in arch_install_hw_breakpoint() argument
106 struct arch_hw_breakpoint *info = counter_arch_bp(bp); in arch_install_hw_breakpoint()
114 *slot = bp; in arch_install_hw_breakpoint()
144 void arch_uninstall_hw_breakpoint(struct perf_event *bp) in arch_uninstall_hw_breakpoint() argument
146 struct arch_hw_breakpoint *info = counter_arch_bp(bp); in arch_uninstall_hw_breakpoint()
153 if (*slot == bp) { in arch_uninstall_hw_breakpoint()
173 int arch_check_bp_in_kernelspace(struct perf_event *bp) in arch_check_bp_in_kernelspace() argument
177 struct arch_hw_breakpoint *info = counter_arch_bp(bp); in arch_check_bp_in_kernelspace()
180 len = bp->attr.bp_len; in arch_check_bp_in_kernelspace()
231 static int arch_build_bp_info(struct perf_event *bp) in arch_build_bp_info() argument
[all …]
Ddumpstack.c97 unsigned long *stack, unsigned long bp, in print_context_stack() argument
101 struct stack_frame *frame = (struct stack_frame *)bp; in print_context_stack()
108 if ((unsigned long) stack == bp + sizeof(long)) { in print_context_stack()
111 bp = (unsigned long) frame; in print_context_stack()
119 return bp; in print_context_stack()
125 unsigned long *stack, unsigned long bp, in print_context_stack_bp() argument
129 struct stack_frame *frame = (struct stack_frame *)bp; in print_context_stack_bp()
171 unsigned long *stack, unsigned long bp, char *log_lvl) in show_trace_log_lvl() argument
174 dump_trace(task, regs, stack, bp, &print_trace_ops, log_lvl); in show_trace_log_lvl()
178 unsigned long *stack, unsigned long bp) in show_trace() argument
[all …]
Ddumpstack_64.c152 unsigned long *stack, unsigned long bp, in dump_trace() argument
175 if (!bp) in dump_trace()
176 bp = stack_frame(task, regs); in dump_trace()
205 bp = ops->walk_stack(tinfo, stack, bp, ops, in dump_trace()
221 bp = ops->walk_stack(tinfo, stack, bp, in dump_trace()
243 bp = ops->walk_stack(tinfo, stack, bp, ops, data, NULL, &graph); in dump_trace()
250 unsigned long *sp, unsigned long bp, char *log_lvl) in show_stack_log_lvl() argument
297 show_trace_log_lvl(task, regs, sp, bp, log_lvl); in show_stack_log_lvl()
Dkgdb.c61 { "bp", 4, offsetof(struct pt_regs, bp) },
77 { "bp", 8, offsetof(struct pt_regs, bp) },
210 struct perf_event *bp; in kgdb_correct_hw_break() local
224 bp = *per_cpu_ptr(breakinfo[breakno].pev, cpu); in kgdb_correct_hw_break()
225 info = counter_arch_bp(bp); in kgdb_correct_hw_break()
226 if (bp->attr.disabled != 1) in kgdb_correct_hw_break()
228 bp->attr.bp_addr = breakinfo[breakno].addr; in kgdb_correct_hw_break()
229 bp->attr.bp_len = breakinfo[breakno].len; in kgdb_correct_hw_break()
230 bp->attr.bp_type = breakinfo[breakno].type; in kgdb_correct_hw_break()
234 val = arch_install_hw_breakpoint(bp); in kgdb_correct_hw_break()
[all …]
Ddumpstack_32.c42 unsigned long *stack, unsigned long bp, in dump_trace() argument
60 if (!bp) in dump_trace()
61 bp = stack_frame(task, regs); in dump_trace()
72 bp = ops->walk_stack(context, stack, bp, ops, data, in dump_trace()
95 unsigned long *sp, unsigned long bp, char *log_lvl) in show_stack_log_lvl() argument
120 show_trace_log_lvl(task, regs, sp, bp, log_lvl); in show_stack_log_lvl()
Dprocess_32.c94 regs->si, regs->di, regs->bp, sp); in __show_regs()
152 childregs->bp = arg; in copy_thread()
334 unsigned long bp, sp, ip; in get_wchan() local
344 bp = *(unsigned long *) sp; in get_wchan()
346 if (bp < stack_page || bp > top_ebp+stack_page) in get_wchan()
348 ip = *(unsigned long *) (bp+4); in get_wchan()
351 bp = *(unsigned long *) bp; in get_wchan()
Dptrace.c80 REG_OFFSET_NAME(bp),
558 static void ptrace_triggered(struct perf_event *bp, in ptrace_triggered() argument
570 if (thread->ptrace_bps[i] == bp) in ptrace_triggered()
582 static unsigned long ptrace_get_dr7(struct perf_event *bp[]) in ptrace_get_dr7() argument
589 if (bp[i] && !bp[i]->attr.disabled) { in ptrace_get_dr7()
590 info = counter_arch_bp(bp[i]); in ptrace_get_dr7()
631 static int ptrace_modify_breakpoint(struct perf_event *bp, int len, int type, in ptrace_modify_breakpoint() argument
634 struct perf_event_attr attr = bp->attr; in ptrace_modify_breakpoint()
641 return modify_user_hw_breakpoint(bp, &attr); in ptrace_modify_breakpoint()
662 struct perf_event *bp = thread->ptrace_bps[i]; in ptrace_write_dr7() local
[all …]
Dasm-offsets_64.c43 ENTRY(bp); in main()
58 ENTRY(bp); in main()
Dasm-offsets_32.c26 OFFSET(IA32_SIGCONTEXT_bp, sigcontext, bp); in foo()
49 OFFSET(PT_EBP, pt_regs, bp); in foo()
Dperf_regs.c25 PT_REGS_OFFSET(PERF_REG_X86_BP, bp),
157 regs_user_copy->bp = -1; in perf_get_regs_user()
Dprocess.c129 unsigned long *bp = t->io_bitmap_ptr; in exit_thread() local
131 if (bp) { in exit_thread()
142 kfree(bp); in exit_thread()
/linux-4.1.27/arch/x86/include/asm/
Dstacktrace.h19 unsigned long bp,
27 unsigned long *stack, unsigned long bp,
33 unsigned long *stack, unsigned long bp,
47 unsigned long *stack, unsigned long bp,
52 #define get_bp(bp) asm("movl %%ebp, %0" : "=r" (bp) :) argument
55 #define get_bp(bp) asm("movq %%rbp, %0" : "=r" (bp) :) argument
62 unsigned long bp; in stack_frame() local
65 return regs->bp; in stack_frame()
69 get_bp(bp); in stack_frame()
70 return bp; in stack_frame()
[all …]
Dhw_breakpoint.h54 extern int arch_check_bp_in_kernelspace(struct perf_event *bp);
55 extern int arch_validate_hwbkpt_settings(struct perf_event *bp);
60 int arch_install_hw_breakpoint(struct perf_event *bp);
61 void arch_uninstall_hw_breakpoint(struct perf_event *bp);
62 void hw_breakpoint_pmu_read(struct perf_event *bp);
63 void hw_breakpoint_pmu_unthrottle(struct perf_event *bp);
66 arch_fill_perf_breakpoint(struct perf_event *bp);
Dframe.h11 __ASM_SIZE(push,_cfi) %__ASM_REG(bp)
12 CFI_REL_OFFSET __ASM_REG(bp), 0
13 __ASM_SIZE(mov) %__ASM_REG(sp), %__ASM_REG(bp)
16 __ASM_SIZE(pop,_cfi) %__ASM_REG(bp)
17 CFI_RESTORE __ASM_REG(bp)
Dsigcontext.h14 unsigned long bp; member
51 unsigned long bp; member
Dptrace.h17 unsigned long bp; member
42 unsigned long bp; member
154 #define GET_FP(regs) ((regs)->bp)
Da.out-core.h47 dump->regs.bp = regs->bp; in aout_dump_thread()
Dkexec.h105 asm volatile("movl %%ebp,%0" : "=m"(newregs->bp)); in crash_setup_regs()
119 asm volatile("movq %%rbp,%0" : "=m"(newregs->bp)); in crash_setup_regs()
Delf.h111 _r->si = 0; _r->di = 0; _r->bp = 0; \
127 pr_reg[5] = regs->bp; \
212 (pr_reg)[4] = (regs)->bp; \
Dsyscall.h126 *args++ = regs->bp; in syscall_get_arguments()
187 regs->bp = *args++; in syscall_set_arguments()
Dkdebug.h28 unsigned long *sp, unsigned long bp);
/linux-4.1.27/arch/powerpc/sysdev/
Dgrackle.c30 static inline void grackle_set_stg(struct pci_controller* bp, int enable) in grackle_set_stg() argument
34 out_be32(bp->cfg_addr, GRACKLE_CFA(0, 0, 0xa8)); in grackle_set_stg()
35 val = in_le32(bp->cfg_data); in grackle_set_stg()
38 out_be32(bp->cfg_addr, GRACKLE_CFA(0, 0, 0xa8)); in grackle_set_stg()
39 out_le32(bp->cfg_data, val); in grackle_set_stg()
40 (void)in_le32(bp->cfg_data); in grackle_set_stg()
43 static inline void grackle_set_loop_snoop(struct pci_controller *bp, int enable) in grackle_set_loop_snoop() argument
47 out_be32(bp->cfg_addr, GRACKLE_CFA(0, 0, 0xa8)); in grackle_set_loop_snoop()
48 val = in_le32(bp->cfg_data); in grackle_set_loop_snoop()
51 out_be32(bp->cfg_addr, GRACKLE_CFA(0, 0, 0xa8)); in grackle_set_loop_snoop()
[all …]
Dcpm2.c121 u32 __iomem *bp; in __cpm2_setbrg() local
127 bp = cpm2_map_size(im_brgc1, 16); in __cpm2_setbrg()
129 bp = cpm2_map_size(im_brgc5, 16); in __cpm2_setbrg()
132 bp += brg; in __cpm2_setbrg()
138 out_be32(bp, val); in __cpm2_setbrg()
139 cpm2_unmap(bp); in __cpm2_setbrg()
/linux-4.1.27/arch/sh/kernel/
Dhw_breakpoint.c49 int arch_install_hw_breakpoint(struct perf_event *bp) in arch_install_hw_breakpoint() argument
51 struct arch_hw_breakpoint *info = counter_arch_bp(bp); in arch_install_hw_breakpoint()
58 *slot = bp; in arch_install_hw_breakpoint()
81 void arch_uninstall_hw_breakpoint(struct perf_event *bp) in arch_uninstall_hw_breakpoint() argument
83 struct arch_hw_breakpoint *info = counter_arch_bp(bp); in arch_uninstall_hw_breakpoint()
89 if (*slot == bp) { in arch_uninstall_hw_breakpoint()
126 int arch_check_bp_in_kernelspace(struct perf_event *bp) in arch_check_bp_in_kernelspace() argument
130 struct arch_hw_breakpoint *info = counter_arch_bp(bp); in arch_check_bp_in_kernelspace()
176 static int arch_build_bp_info(struct perf_event *bp) in arch_build_bp_info() argument
178 struct arch_hw_breakpoint *info = counter_arch_bp(bp); in arch_build_bp_info()
[all …]
Dptrace_32.c65 void ptrace_triggered(struct perf_event *bp, in ptrace_triggered() argument
74 attr = bp->attr; in ptrace_triggered()
76 modify_user_hw_breakpoint(bp, &attr); in ptrace_triggered()
82 struct perf_event *bp; in set_single_step() local
85 bp = thread->ptrace_bps[0]; in set_single_step()
86 if (!bp) { in set_single_step()
93 bp = register_user_hw_breakpoint(&attr, ptrace_triggered, in set_single_step()
95 if (IS_ERR(bp)) in set_single_step()
96 return PTR_ERR(bp); in set_single_step()
98 thread->ptrace_bps[0] = bp; in set_single_step()
[all …]
/linux-4.1.27/net/sctp/
Dbind_addr.c125 void sctp_bind_addr_init(struct sctp_bind_addr *bp, __u16 port) in sctp_bind_addr_init() argument
127 INIT_LIST_HEAD(&bp->address_list); in sctp_bind_addr_init()
128 bp->port = port; in sctp_bind_addr_init()
132 static void sctp_bind_addr_clean(struct sctp_bind_addr *bp) in sctp_bind_addr_clean() argument
137 list_for_each_entry_safe(addr, temp, &bp->address_list, list) { in sctp_bind_addr_clean()
145 void sctp_bind_addr_free(struct sctp_bind_addr *bp) in sctp_bind_addr_free() argument
148 sctp_bind_addr_clean(bp); in sctp_bind_addr_free()
152 int sctp_add_bind_addr(struct sctp_bind_addr *bp, union sctp_addr *new, in sctp_add_bind_addr() argument
168 addr->a.v4.sin_port = htons(bp->port); in sctp_add_bind_addr()
178 list_add_tail_rcu(&addr->list, &bp->address_list); in sctp_add_bind_addr()
[all …]
/linux-4.1.27/drivers/input/joystick/
Dtwidjoy.c106 struct twidjoy_button_spec *bp; in twidjoy_process_packet() local
111 for (bp = twidjoy_buttons; bp->bitmask; bp++) { in twidjoy_process_packet()
112 int value = (button_bits & (bp->bitmask << bp->bitshift)) >> bp->bitshift; in twidjoy_process_packet()
115 for (i = 0; i < bp->bitmask; i++) in twidjoy_process_packet()
116 input_report_key(dev, bp->buttons[i], i+1 == value); in twidjoy_process_packet()
183 struct twidjoy_button_spec *bp; in twidjoy_connect() local
209 for (bp = twidjoy_buttons; bp->bitmask; bp++) in twidjoy_connect()
210 for (i = 0; i < bp->bitmask; i++) in twidjoy_connect()
211 set_bit(bp->buttons[i], input_dev->keybit); in twidjoy_connect()
/linux-4.1.27/arch/sparc/kernel/
Dchmc.c486 static int chmc_bank_match(struct chmc_bank_info *bp, unsigned long phys_addr) in chmc_bank_match() argument
492 if (bp->valid == 0) in chmc_bank_match()
496 upper_bits ^= bp->um; /* What bits are different? */ in chmc_bank_match()
498 upper_bits |= bp->uk; /* What bits don't matter for matching? */ in chmc_bank_match()
505 lower_bits ^= bp->lm; /* What bits are different? */ in chmc_bank_match()
507 lower_bits |= bp->lk; /* What bits don't matter for matching? */ in chmc_bank_match()
526 struct chmc_bank_info *bp; in chmc_find_bank() local
528 bp = &p->logical_banks[bank_no]; in chmc_find_bank()
529 if (chmc_bank_match(bp, phys_addr)) in chmc_find_bank()
530 return bp; in chmc_find_bank()
[all …]
/linux-4.1.27/net/ax25/
Dax25_ip.c106 unsigned char *bp = skb->data; in ax25_ip_xmit() local
115 dst = (ax25_address *)(bp + 1); in ax25_ip_xmit()
116 src = (ax25_address *)(bp + 8); in ax25_ip_xmit()
133 if (bp[16] == AX25_P_IP) { in ax25_ip_xmit()
169 bp = ourskb->data; in ax25_ip_xmit()
170 dst_c = *(ax25_address *)(bp + 1); in ax25_ip_xmit()
171 src_c = *(ax25_address *)(bp + 8); in ax25_ip_xmit()
188 bp[7] &= ~AX25_CBIT; in ax25_ip_xmit()
189 bp[7] &= ~AX25_EBIT; in ax25_ip_xmit()
190 bp[7] |= AX25_SSSID_SPARE; in ax25_ip_xmit()
[all …]
/linux-4.1.27/arch/cris/arch-v32/kernel/
Dkgdb.c875 int S, bp, trig_bits = 0, rw_bits = 0; in stub_is_stopped() local
890 for (bp = 0; bp < 6; bp++) { in stub_is_stopped()
893 int bitpos_trig = 1 + bp * 2; in stub_is_stopped()
895 int bitpos_config = 2 + bp * 4; in stub_is_stopped()
910 trig_mask |= (1 << bp); in stub_is_stopped()
912 if (reg.eda >= bp_d_regs[bp * 2] && in stub_is_stopped()
913 reg.eda <= bp_d_regs[bp * 2 + 1]) { in stub_is_stopped()
921 if (bp < 6) { in stub_is_stopped()
925 for (bp = 0; bp < 6; bp++) { in stub_is_stopped()
927 int bitpos_config = 2 + bp * 4; in stub_is_stopped()
[all …]
Dptrace.c339 int bp; in deconfigure_bp() local
345 for (bp = 0; bp < 6; bp++) { in deconfigure_bp()
348 put_debugreg(pid, PT_BP + 3 + (bp * 2), 0); in deconfigure_bp()
349 put_debugreg(pid, PT_BP + 4 + (bp * 2), 0); in deconfigure_bp()
352 tmp = get_debugreg(pid, PT_BP_CTRL) & ~(3 << (2 + (bp * 4))); in deconfigure_bp()
/linux-4.1.27/fs/freevxfs/
Dvxfs_olt.c80 struct buffer_head *bp; in vxfs_read_olt() local
85 bp = sb_bread(sbp, vxfs_oblock(sbp, infp->vsi_oltext, bsize)); in vxfs_read_olt()
86 if (!bp || !bp->b_data) in vxfs_read_olt()
89 op = (struct vxfs_olt *)bp->b_data; in vxfs_read_olt()
105 oaddr = bp->b_data + op->olt_size; in vxfs_read_olt()
106 eaddr = bp->b_data + (infp->vsi_oltsize * sbp->s_blocksize); in vxfs_read_olt()
124 brelse(bp); in vxfs_read_olt()
128 brelse(bp); in vxfs_read_olt()
Dvxfs_subr.c104 struct buffer_head *bp; in vxfs_bread() local
108 bp = sb_bread(ip->i_sb, pblock); in vxfs_bread()
110 return (bp); in vxfs_bread()
130 struct buffer_head *bp, int create) in vxfs_getblk() argument
136 map_bh(bp, ip->i_sb, pblock); in vxfs_getblk()
Dvxfs_bmap.c130 struct buffer_head *bp = NULL; in vxfs_bmap_indir() local
138 bp = sb_bread(ip->i_sb, in vxfs_bmap_indir()
140 if (!bp || !buffer_mapped(bp)) in vxfs_bmap_indir()
143 typ = ((struct vxfs_typed *)bp->b_data) + in vxfs_bmap_indir()
148 brelse(bp); in vxfs_bmap_indir()
179 brelse(bp); in vxfs_bmap_indir()
185 brelse(bp); in vxfs_bmap_indir()
Dvxfs_super.c152 struct buffer_head *bp = NULL; in vxfs_fill_super() local
171 bp = sb_bread(sbp, 1); in vxfs_fill_super()
172 if (!bp || !buffer_mapped(bp)) { in vxfs_fill_super()
180 rsbp = (struct vxfs_sb *)bp->b_data; in vxfs_fill_super()
202 infp->vsi_bp = bp; in vxfs_fill_super()
240 brelse(bp); in vxfs_fill_super()
Dvxfs_fshead.c78 struct buffer_head *bp; in vxfs_getfsh() local
80 bp = vxfs_bread(ip, which); in vxfs_getfsh()
81 if (bp) { in vxfs_getfsh()
86 memcpy(fhp, bp->b_data, sizeof(*fhp)); in vxfs_getfsh()
88 put_bh(bp); in vxfs_getfsh()
92 brelse(bp); in vxfs_getfsh()
Dvxfs_inode.c90 struct buffer_head *bp; in vxfs_blkiget() local
95 bp = sb_bread(sbp, block); in vxfs_blkiget()
97 if (bp && buffer_mapped(bp)) { in vxfs_blkiget()
103 dip = (struct vxfs_dinode *)(bp->b_data + offset); in vxfs_blkiget()
108 brelse(bp); in vxfs_blkiget()
114 brelse(bp); in vxfs_blkiget()
/linux-4.1.27/arch/powerpc/xmon/
Dxmon.c108 #define BP_NUM(bp) ((bp) - bpts + 1) argument
405 struct bpt *bp; in xmon_core() local
418 bp = in_breakpoint_table(regs->nip, &offset); in xmon_core()
419 if (bp != NULL) { in xmon_core()
420 regs->nip = bp->address + offset; in xmon_core()
421 atomic_dec(&bp->ref_count); in xmon_core()
452 bp = NULL; in xmon_core()
454 bp = at_breakpoint(regs->nip); in xmon_core()
455 if (bp || unrecoverable_excp(regs)) in xmon_core()
461 if (bp) { in xmon_core()
[all …]
/linux-4.1.27/arch/arm/kernel/
Dhw_breakpoint.c334 int arch_install_hw_breakpoint(struct perf_event *bp) in arch_install_hw_breakpoint() argument
336 struct arch_hw_breakpoint *info = counter_arch_bp(bp); in arch_install_hw_breakpoint()
362 *slot = bp; in arch_install_hw_breakpoint()
391 void arch_uninstall_hw_breakpoint(struct perf_event *bp) in arch_uninstall_hw_breakpoint() argument
393 struct arch_hw_breakpoint *info = counter_arch_bp(bp); in arch_uninstall_hw_breakpoint()
413 if (*slot == bp) { in arch_uninstall_hw_breakpoint()
460 int arch_check_bp_in_kernelspace(struct perf_event *bp) in arch_check_bp_in_kernelspace() argument
464 struct arch_hw_breakpoint *info = counter_arch_bp(bp); in arch_check_bp_in_kernelspace()
522 static int arch_build_bp_info(struct perf_event *bp) in arch_build_bp_info() argument
524 struct arch_hw_breakpoint *info = counter_arch_bp(bp); in arch_build_bp_info()
[all …]
Dptrace.c385 static void ptrace_hbptriggered(struct perf_event *bp, in ptrace_hbptriggered() argument
389 struct arch_hw_breakpoint *bkpt = counter_arch_bp(bp); in ptrace_hbptriggered()
395 if (current->thread.debug.hbp[i] == bp) in ptrace_hbptriggered()
477 struct perf_event *bp; in ptrace_gethbpregs() local
489 bp = tsk->thread.debug.hbp[idx]; in ptrace_gethbpregs()
490 if (!bp) { in ptrace_gethbpregs()
495 arch_ctrl = counter_arch_bp(bp)->ctrl; in ptrace_gethbpregs()
505 reg = bp->attr.bp_addr; in ptrace_gethbpregs()
523 struct perf_event *bp; in ptrace_sethbpregs() local
545 bp = tsk->thread.debug.hbp[idx]; in ptrace_sethbpregs()
[all …]
/linux-4.1.27/drivers/staging/speakup/
Dselection.c55 char *bp, *obp; in speakup_set_selection() local
102 bp = kmalloc((sel_end-sel_start)/2+1, GFP_ATOMIC); in speakup_set_selection()
103 if (!bp) { in speakup_set_selection()
108 sel_buffer = bp; in speakup_set_selection()
110 obp = bp; in speakup_set_selection()
112 *bp = sel_pos(i); in speakup_set_selection()
113 if (!ishardspace(*bp++)) in speakup_set_selection()
114 obp = bp; in speakup_set_selection()
118 if (obp != bp) { in speakup_set_selection()
119 bp = obp; in speakup_set_selection()
[all …]
/linux-4.1.27/drivers/isdn/mISDN/
Dcore.c129 char *bp = buf; in channelmap_show() local
133 *bp++ = test_channelmap(i, mdev->channelmap) ? '1' : '0'; in channelmap_show()
135 return bp - buf; in channelmap_show()
286 struct Bprotocol *bp; in get_all_Bprotocols() local
290 list_for_each_entry(bp, &Bprotocols, list) in get_all_Bprotocols()
291 m |= bp->Bprotocols; in get_all_Bprotocols()
299 struct Bprotocol *bp; in get_Bprotocol4mask() local
302 list_for_each_entry(bp, &Bprotocols, list) in get_Bprotocol4mask()
303 if (bp->Bprotocols & m) { in get_Bprotocol4mask()
305 return bp; in get_Bprotocol4mask()
[all …]
/linux-4.1.27/drivers/mtd/nand/
Dnand_ecc.c162 const uint32_t *bp = (uint32_t *)buf; in __nand_calculate_ecc() local
195 cur = *bp++; in __nand_calculate_ecc()
198 cur = *bp++; in __nand_calculate_ecc()
201 cur = *bp++; in __nand_calculate_ecc()
204 cur = *bp++; in __nand_calculate_ecc()
208 cur = *bp++; in __nand_calculate_ecc()
212 cur = *bp++; in __nand_calculate_ecc()
215 cur = *bp++; in __nand_calculate_ecc()
218 cur = *bp++; in __nand_calculate_ecc()
222 cur = *bp++; in __nand_calculate_ecc()
[all …]
/linux-4.1.27/lib/mpi/
Dmpi-pow.c41 mpi_ptr_t rp, ep, mp, bp; in mpi_powm() local
91 bp = bp_marker = mpi_alloc_limb_space(bsize + 1); in mpi_powm()
92 if (!bp) in mpi_powm()
94 MPN_COPY(bp, base->d, bsize); in mpi_powm()
97 mpihelp_divrem(bp + msize, 0, bp, bsize, mp, msize); in mpi_powm()
101 MPN_NORMALIZE(bp, bsize); in mpi_powm()
103 bp = base->d; in mpi_powm()
115 if (rp == ep || rp == mp || rp == bp) { in mpi_powm()
126 if (rp == bp) { in mpi_powm()
129 bp = bp_marker = mpi_alloc_limb_space(bsize); in mpi_powm()
[all …]
/linux-4.1.27/arch/arm64/kernel/
Dhw_breakpoint.c194 struct perf_event *bp, in hw_breakpoint_slot_setup() argument
205 *slot = bp; in hw_breakpoint_slot_setup()
210 if (*slot == bp) { in hw_breakpoint_slot_setup()
216 if (*slot == bp) in hw_breakpoint_slot_setup()
227 static int hw_breakpoint_control(struct perf_event *bp, in hw_breakpoint_control() argument
230 struct arch_hw_breakpoint *info = counter_arch_bp(bp); in hw_breakpoint_control()
253 i = hw_breakpoint_slot_setup(slots, max_slots, bp, ops); in hw_breakpoint_control()
293 int arch_install_hw_breakpoint(struct perf_event *bp) in arch_install_hw_breakpoint() argument
295 return hw_breakpoint_control(bp, HW_BREAKPOINT_INSTALL); in arch_install_hw_breakpoint()
298 void arch_uninstall_hw_breakpoint(struct perf_event *bp) in arch_uninstall_hw_breakpoint() argument
[all …]
Dptrace.c73 static void ptrace_hbptriggered(struct perf_event *bp, in ptrace_hbptriggered() argument
77 struct arch_hw_breakpoint *bkpt = counter_arch_bp(bp); in ptrace_hbptriggered()
92 if (current->thread.debug.hbp_break[i] == bp) { in ptrace_hbptriggered()
99 if (current->thread.debug.hbp_watch[i] == bp) { in ptrace_hbptriggered()
143 struct perf_event *bp = ERR_PTR(-EINVAL); in ptrace_hbp_get_event() local
148 bp = tsk->thread.debug.hbp_break[idx]; in ptrace_hbp_get_event()
152 bp = tsk->thread.debug.hbp_watch[idx]; in ptrace_hbp_get_event()
156 return bp; in ptrace_hbp_get_event()
162 struct perf_event *bp) in ptrace_hbp_set_event() argument
169 tsk->thread.debug.hbp_break[idx] = bp; in ptrace_hbp_set_event()
[all …]
Ddebug-monitors.c333 bool bp = false; in aarch32_break_handler() local
347 bp = thumb_instr == AARCH32_BREAK_THUMB2_HI; in aarch32_break_handler()
349 bp = thumb_instr == AARCH32_BREAK_THUMB; in aarch32_break_handler()
355 bp = (arm_instr & ~0xf0000000) == AARCH32_BREAK_ARM; in aarch32_break_handler()
358 if (!bp) in aarch32_break_handler()
/linux-4.1.27/arch/m68k/include/asm/
Dio_no.h57 unsigned char *bp = (unsigned char *) buf; in io_outsb() local
59 *ap = *bp++; in io_outsb()
65 unsigned short *bp = (unsigned short *) buf; in io_outsw() local
67 *ap = _swapw(*bp++); in io_outsw()
73 unsigned int *bp = (unsigned int *) buf; in io_outsl() local
75 *ap = _swapl(*bp++); in io_outsl()
81 unsigned char *bp = (unsigned char *) buf; in io_insb() local
83 *bp++ = *ap; in io_insb()
89 unsigned short *bp = (unsigned short *) buf; in io_insw() local
91 *bp++ = _swapw(*ap); in io_insw()
[all …]
/linux-4.1.27/arch/sh/include/asm/
Dhw_breakpoint.h56 extern int arch_check_bp_in_kernelspace(struct perf_event *bp);
57 extern int arch_validate_hwbkpt_settings(struct perf_event *bp);
61 int arch_install_hw_breakpoint(struct perf_event *bp);
62 void arch_uninstall_hw_breakpoint(struct perf_event *bp);
63 void hw_breakpoint_pmu_read(struct perf_event *bp);
65 extern void arch_fill_perf_breakpoint(struct perf_event *bp);
/linux-4.1.27/drivers/tty/vt/
Dselection.c163 char *bp, *obp; in set_selection() local
298 bp = kmalloc(((sel_end-sel_start)/2+1)*multiplier, GFP_KERNEL); in set_selection()
299 if (!bp) { in set_selection()
305 sel_buffer = bp; in set_selection()
307 obp = bp; in set_selection()
311 bp += store_utf8(c, bp); in set_selection()
313 *bp++ = c; in set_selection()
315 obp = bp; in set_selection()
319 if (obp != bp) { in set_selection()
320 bp = obp; in set_selection()
[all …]
/linux-4.1.27/arch/powerpc/include/asm/
Dhw_breakpoint.h63 extern int arch_check_bp_in_kernelspace(struct perf_event *bp);
64 extern int arch_validate_hwbkpt_settings(struct perf_event *bp);
67 int arch_install_hw_breakpoint(struct perf_event *bp);
68 void arch_uninstall_hw_breakpoint(struct perf_event *bp);
69 void hw_breakpoint_pmu_read(struct perf_event *bp);
73 extern void ptrace_triggered(struct perf_event *bp,
/linux-4.1.27/arch/ia64/hp/sim/boot/
Dfw-emu.c241 struct ia64_boot_param *bp; in sys_fw_init() local
268 bp = (void *) cp; cp += sizeof(*bp); in sys_fw_init()
360 bp->efi_systab = __pa(&fw_mem); in sys_fw_init()
361 bp->efi_memmap = __pa(efi_memmap); in sys_fw_init()
362 bp->efi_memmap_size = NUM_MEM_DESCS*sizeof(efi_memory_desc_t); in sys_fw_init()
363 bp->efi_memdesc_size = sizeof(efi_memory_desc_t); in sys_fw_init()
364 bp->efi_memdesc_version = 1; in sys_fw_init()
365 bp->command_line = __pa(cmd_line); in sys_fw_init()
366 bp->console_info.num_cols = 80; in sys_fw_init()
367 bp->console_info.num_rows = 25; in sys_fw_init()
[all …]
Dbootloader.c36 extern void jmp_to_kernel (unsigned long bp, unsigned long e_entry);
66 register struct ia64_boot_param *bp; in start_bootloader() local
165 bp = sys_fw_init(args, arglen); in start_bootloader()
170 jmp_to_kernel((unsigned long) bp, e_entry); in start_bootloader()
/linux-4.1.27/drivers/net/ethernet/intel/i40e/
Di40e_hmc.c94 sd_entry->u.bp.addr = mem; in i40e_add_sd_table_entry()
95 sd_entry->u.bp.sd_pd_index = sd_index; in i40e_add_sd_table_entry()
105 I40E_INC_BP_REFCNT(&sd_entry->u.bp); in i40e_add_sd_table_entry()
165 pd_entry->bp.addr = mem; in i40e_add_pd_table_entry()
166 pd_entry->bp.sd_pd_index = pd_index; in i40e_add_pd_table_entry()
167 pd_entry->bp.entry_type = I40E_SD_TYPE_PAGED; in i40e_add_pd_table_entry()
181 I40E_INC_BP_REFCNT(&pd_entry->bp); in i40e_add_pd_table_entry()
230 I40E_DEC_BP_REFCNT(&pd_entry->bp); in i40e_remove_pd_bp()
231 if (pd_entry->bp.ref_cnt) in i40e_remove_pd_bp()
243 ret_code = i40e_free_dma_mem(hw, &(pd_entry->bp.addr)); in i40e_remove_pd_bp()
[all …]
Di40e_hmc.h63 struct i40e_hmc_bp bp; member
83 struct i40e_hmc_bp bp; member
108 #define I40E_INC_BP_REFCNT(bp) ((bp)->ref_cnt++) argument
112 #define I40E_DEC_BP_REFCNT(bp) ((bp)->ref_cnt--) argument
/linux-4.1.27/arch/um/kernel/
Dstacktrace.c24 unsigned long *sp, bp, addr; in dump_trace() local
28 bp = get_frame_pointer(tsk, segv_regs); in dump_trace()
31 frame = (struct stack_frame *)bp; in dump_trace()
36 if ((unsigned long) sp == bp + sizeof(long)) { in dump_trace()
38 bp = (unsigned long)frame; in dump_trace()
/linux-4.1.27/drivers/net/ethernet/dec/tulip/
Deeprom.c304 unsigned char *bp = leaf->leafdata; in tulip_parse_eeprom() local
307 bp[0], bp[1], bp[2 + bp[1]*2], in tulip_parse_eeprom()
308 bp[5 + bp[2 + bp[1]*2]*2], in tulip_parse_eeprom()
309 bp[4 + bp[2 + bp[1]*2]*2]); in tulip_parse_eeprom()
/linux-4.1.27/Documentation/spi/
Dspidev_fdx.c19 unsigned char buf[32], *bp; in do_read() local
42 bp = buf + 2; in do_read()
44 printf(" %02x", *bp++); in do_read()
51 unsigned char buf[32], *bp; in do_msg() local
74 for (bp = buf; len; len--) in do_msg()
75 printf(" %02x", *bp++); in do_msg()
/linux-4.1.27/drivers/media/tuners/
Dtda827x.c98 u8 bp; member
105 { .lomax = 62000000, .spd = 3, .bs = 2, .bp = 0, .cp = 0, .gc3 = 3, .div1p5 = 1},
106 { .lomax = 66000000, .spd = 3, .bs = 3, .bp = 0, .cp = 0, .gc3 = 3, .div1p5 = 1},
107 { .lomax = 76000000, .spd = 3, .bs = 1, .bp = 0, .cp = 0, .gc3 = 3, .div1p5 = 0},
108 { .lomax = 84000000, .spd = 3, .bs = 2, .bp = 0, .cp = 0, .gc3 = 3, .div1p5 = 0},
109 { .lomax = 93000000, .spd = 3, .bs = 2, .bp = 0, .cp = 0, .gc3 = 1, .div1p5 = 0},
110 { .lomax = 98000000, .spd = 3, .bs = 3, .bp = 0, .cp = 0, .gc3 = 1, .div1p5 = 0},
111 { .lomax = 109000000, .spd = 3, .bs = 3, .bp = 1, .cp = 0, .gc3 = 1, .div1p5 = 0},
112 { .lomax = 123000000, .spd = 2, .bs = 2, .bp = 1, .cp = 0, .gc3 = 1, .div1p5 = 1},
113 { .lomax = 133000000, .spd = 2, .bs = 3, .bp = 1, .cp = 0, .gc3 = 1, .div1p5 = 1},
[all …]
/linux-4.1.27/net/sunrpc/
Dcache.c747 char *bp = crq->buf; in cache_request() local
750 detail->cache_request(detail, crq->item, &bp, &len); in cache_request()
1069 char *bp = *bpp; in qword_add() local
1075 ret = string_escape_str(str, bp, len, ESCAPE_OCTAL, "\\ \n\t"); in qword_add()
1077 bp += len; in qword_add()
1080 bp += ret; in qword_add()
1082 *bp++ = ' '; in qword_add()
1085 *bpp = bp; in qword_add()
1092 char *bp = *bpp; in qword_addhex() local
1098 *bp++ = '\\'; in qword_addhex()
[all …]
/linux-4.1.27/arch/arm64/include/asm/
Dhw_breakpoint.h111 extern int arch_check_bp_in_kernelspace(struct perf_event *bp);
112 extern int arch_validate_hwbkpt_settings(struct perf_event *bp);
116 extern int arch_install_hw_breakpoint(struct perf_event *bp);
117 extern void arch_uninstall_hw_breakpoint(struct perf_event *bp);
118 extern void hw_breakpoint_pmu_read(struct perf_event *bp);
/linux-4.1.27/net/bridge/netfilter/
Debt_among.c83 const __be32 *bp; in get_ip_dst() local
91 bp = skb_header_pointer(skb, sizeof(struct arphdr) + in get_ip_dst()
94 if (bp == NULL) in get_ip_dst()
96 *addr = *bp; in get_ip_dst()
114 const __be32 *bp; in get_ip_src() local
122 bp = skb_header_pointer(skb, sizeof(struct arphdr) + in get_ip_src()
124 if (bp == NULL) in get_ip_src()
126 *addr = *bp; in get_ip_src()
/linux-4.1.27/arch/arm/include/asm/
Dhw_breakpoint.h120 extern int arch_check_bp_in_kernelspace(struct perf_event *bp);
121 extern int arch_validate_hwbkpt_settings(struct perf_event *bp);
129 int arch_install_hw_breakpoint(struct perf_event *bp);
130 void arch_uninstall_hw_breakpoint(struct perf_event *bp);
131 void hw_breakpoint_pmu_read(struct perf_event *bp);
/linux-4.1.27/arch/x86/um/asm/
Dprocessor_64.h38 #define current_bp() ({ unsigned long bp; __asm__("movq %%rbp, %0" : "=r" (bp) : ); bp; })
Dprocessor_32.h59 #define current_bp() ({ unsigned long bp; __asm__("movl %%ebp, %0" : "=r" (bp) : ); bp; })
/linux-4.1.27/drivers/net/ethernet/intel/i40evf/
Di40e_hmc.h63 struct i40e_hmc_bp bp; member
83 struct i40e_hmc_bp bp; member
108 #define I40E_INC_BP_REFCNT(bp) ((bp)->ref_cnt++) argument
112 #define I40E_DEC_BP_REFCNT(bp) ((bp)->ref_cnt--) argument
/linux-4.1.27/arch/m68k/68360/
Dcommproc.c292 volatile uint *bp; in m360_cpm_setbrg() local
297 bp = (volatile uint *)(&pquicc->brgc[0].l); in m360_cpm_setbrg()
298 bp += brg; in m360_cpm_setbrg()
299 *bp = ((BRG_UART_CLK / rate - 1) << 1) | CPM_BRG_EN; in m360_cpm_setbrg()
/linux-4.1.27/drivers/scsi/
Dwd33c93.c2061 char *bp; in wd33c93_write_info() local
2082 for (bp = buf; *bp; ) { in wd33c93_write_info()
2083 while (',' == *bp || ' ' == *bp) in wd33c93_write_info()
2084 ++bp; in wd33c93_write_info()
2085 if (!strncmp(bp, "debug:", 6)) { in wd33c93_write_info()
2086 hd->args = simple_strtoul(bp+6, &bp, 0) & DB_MASK; in wd33c93_write_info()
2087 } else if (!strncmp(bp, "disconnect:", 11)) { in wd33c93_write_info()
2088 x = simple_strtoul(bp+11, &bp, 0); in wd33c93_write_info()
2092 } else if (!strncmp(bp, "period:", 7)) { in wd33c93_write_info()
2093 x = simple_strtoul(bp+7, &bp, 0); in wd33c93_write_info()
[all …]
Din2000.c2174 char *bp; in in2000_write_info() local
2181 bp = buf; in in2000_write_info()
2182 if (!strncmp(bp, "debug:", 6)) { in in2000_write_info()
2183 bp += 6; in in2000_write_info()
2184 hd->args = simple_strtoul(bp, NULL, 0) & DB_MASK; in in2000_write_info()
2185 } else if (!strncmp(bp, "disconnect:", 11)) { in in2000_write_info()
2186 bp += 11; in in2000_write_info()
2187 x = simple_strtoul(bp, NULL, 0); in in2000_write_info()
2191 } else if (!strncmp(bp, "period:", 7)) { in in2000_write_info()
2192 bp += 7; in in2000_write_info()
[all …]
/linux-4.1.27/drivers/md/
Ddm-bufio.h49 struct dm_buffer **bp);
56 struct dm_buffer **bp);
63 struct dm_buffer **bp);
Dbitmap.c63 if (bitmap->bp[page].hijacked) /* it's hijacked, don't try to alloc */ in bitmap_checkpage()
66 if (bitmap->bp[page].map) /* page is already allocated, just return */ in bitmap_checkpage()
95 if (!bitmap->bp[page].map) in bitmap_checkpage()
96 bitmap->bp[page].hijacked = 1; in bitmap_checkpage()
97 } else if (bitmap->bp[page].map || in bitmap_checkpage()
98 bitmap->bp[page].hijacked) { in bitmap_checkpage()
106 bitmap->bp[page].map = mappage; in bitmap_checkpage()
119 if (bitmap->bp[page].count) /* page is still busy */ in bitmap_checkfree()
124 if (bitmap->bp[page].hijacked) { /* page was hijacked, undo this now */ in bitmap_checkfree()
125 bitmap->bp[page].hijacked = 0; in bitmap_checkfree()
[all …]
/linux-4.1.27/sound/pci/emu10k1/
Demu10k1_callback.c225 struct best_voice *bp; in lookup_voices() local
246 bp = best + V_FREE; in lookup_voices()
248 bp = best + V_OFF; in lookup_voices()
252 bp = best + V_RELEASED; in lookup_voices()
256 bp = best + V_OFF; in lookup_voices()
262 bp = best + V_PLAYING; in lookup_voices()
267 if (bp != best + V_OFF && bp != best + V_FREE && in lookup_voices()
271 bp = best + V_OFF; in lookup_voices()
274 if (vp->time < bp->time) { in lookup_voices()
275 bp->time = vp->time; in lookup_voices()
[all …]
/linux-4.1.27/drivers/parport/
Dieee1284_ops.c734 unsigned char *bp = (unsigned char *) buffer; in parport_ieee1284_epp_write_data() local
746 for (; len > 0; len--, bp++) { in parport_ieee1284_epp_write_data()
748 parport_write_data (port, *bp); in parport_ieee1284_epp_write_data()
778 unsigned char *bp = (unsigned char *) buffer; in parport_ieee1284_epp_read_data() local
789 for (; len > 0; len--, bp++) { in parport_ieee1284_epp_read_data()
799 *bp = parport_read_data (port); in parport_ieee1284_epp_read_data()
822 unsigned char *bp = (unsigned char *) buffer; in parport_ieee1284_epp_write_addr() local
834 for (; len > 0; len--, bp++) { in parport_ieee1284_epp_write_addr()
836 parport_write_data (port, *bp); in parport_ieee1284_epp_write_addr()
866 unsigned char *bp = (unsigned char *) buffer; in parport_ieee1284_epp_read_addr() local
[all …]
/linux-4.1.27/arch/frv/include/asm/
Dio.h55 const uint8_t *bp = buf; in io_outsb() local
58 __builtin_write8((volatile void __iomem *) __ioaddr, *bp++); in io_outsb()
64 const uint16_t *bp = buf; in io_outsw() local
67 __builtin_write16((volatile void __iomem *) __ioaddr, (*bp++)); in io_outsw()
84 uint8_t *bp = buf; in io_insb() local
87 *bp++ = __builtin_read8((volatile void __iomem *) addr); in io_insb()
92 uint16_t *bp = buf; in io_insw() local
95 *bp++ = __builtin_read16((volatile void __iomem *) addr); in io_insw()
/linux-4.1.27/Documentation/mtd/
Dnand_ecc.txt192 const unsigned char *bp = buf;
206 cur = *bp++;
301 const unsigned long *bp = (unsigned long *)buf;
315 cur = *bp++;
455 cur = *bp++;
463 cur = *bp++;
520 cur = *bp++; tmppar = cur; rp4 ^= cur;
521 cur = *bp++; tmppar ^= cur; rp6 ^= tmppar;
522 cur = *bp++; tmppar ^= cur; rp4 ^= cur;
523 cur = *bp++; tmppar ^= cur; rp8 ^= tmppar;
[all …]
/linux-4.1.27/drivers/scsi/libfc/
Dfc_frame.c38 const u8 *bp; in fc_frame_crc_check() local
44 bp = (const u8 *) fr_hdr(fp); in fc_frame_crc_check()
45 crc = ~crc32(~0, bp, len); in fc_frame_crc_check()
Dfc_disc.c396 char *bp; in fc_disc_gpn_ft_parse() local
409 bp = buf; in fc_disc_gpn_ft_parse()
411 np = (struct fc_gpn_ft_resp *)bp; in fc_disc_gpn_ft_parse()
422 memcpy((char *)np + tlen, bp, plen); in fc_disc_gpn_ft_parse()
428 bp -= tlen; in fc_disc_gpn_ft_parse()
467 bp += sizeof(*np); in fc_disc_gpn_ft_parse()
468 np = (struct fc_gpn_ft_resp *)bp; in fc_disc_gpn_ft_parse()
/linux-4.1.27/drivers/firmware/
Ddmi_scan.c40 const u8 *bp = ((u8 *) dm) + dm->length; in dmi_string_nosave() local
44 while (s > 0 && *bp) { in dmi_string_nosave()
45 bp += strlen(bp) + 1; in dmi_string_nosave()
49 if (*bp != 0) { in dmi_string_nosave()
50 size_t len = strlen(bp)+1; in dmi_string_nosave()
53 if (!memcmp(bp, dmi_empty_string, cmp_len)) in dmi_string_nosave()
55 return bp; in dmi_string_nosave()
64 const char *bp = dmi_string_nosave(dm, s); in dmi_string() local
68 if (bp == dmi_empty_string) in dmi_string()
71 len = strlen(bp) + 1; in dmi_string()
[all …]
/linux-4.1.27/drivers/tty/serial/
Dmpsc.c790 u8 *bp, *bp_p; in mpsc_init_rings() local
836 bp = pi->rxb; in mpsc_init_rings()
852 bp += MPSC_RXBE_SIZE; in mpsc_init_rings()
860 bp = pi->txb; in mpsc_init_rings()
871 bp += MPSC_TXBE_SIZE; in mpsc_init_rings()
943 u8 *bp; in mpsc_rx_intr() local
983 bp = pi->rxb + (pi->rxr_posn * MPSC_RXBE_SIZE); in mpsc_rx_intr()
984 dma_cache_sync(pi->port.dev, (void *)bp, MPSC_RXBE_SIZE, in mpsc_rx_intr()
988 invalidate_dcache_range((ulong)bp, in mpsc_rx_intr()
989 (ulong)bp + MPSC_RXBE_SIZE); in mpsc_rx_intr()
[all …]
/linux-4.1.27/drivers/isdn/hisax/
Dtei.c107 u_char *bp; in put_tei_msg() local
113 bp = skb_put(skb, 3); in put_tei_msg()
114 bp[0] = (TEI_SAPI << 2); in put_tei_msg()
115 bp[1] = (GROUP_TEI << 1) | 0x1; in put_tei_msg()
116 bp[2] = UI; in put_tei_msg()
117 bp = skb_put(skb, 5); in put_tei_msg()
118 bp[0] = TEI_ENTITY_ID; in put_tei_msg()
119 bp[1] = ri >> 8; in put_tei_msg()
120 bp[2] = ri & 0xff; in put_tei_msg()
121 bp[3] = m_id; in put_tei_msg()
[all …]
/linux-4.1.27/drivers/pcmcia/
Dm32r_pcc.c153 unsigned char *bp = (unsigned char *)buf; in pcc_iorw() local
163 writeb(*bp++, addr); in pcc_iorw()
168 *bp++ = readb(addr); in pcc_iorw()
173 unsigned short *bp = (unsigned short *)buf; in pcc_iorw() local
185 unsigned char *cp = (unsigned char *)bp; in pcc_iorw()
189 bp++; in pcc_iorw()
192 writew(*bp++, addr); in pcc_iorw()
199 unsigned char *cp = (unsigned char *)bp; in pcc_iorw()
204 bp++; in pcc_iorw()
207 *bp++ = readw(addr); in pcc_iorw()
Dm32r_cfc.c108 unsigned char *bp = (unsigned char *)buf; in pcc_ioread_byte() local
125 *bp++ = readb(addr); in pcc_ioread_byte()
133 unsigned short *bp = (unsigned short *)buf; in pcc_ioread_word() local
156 *bp++ = readw(addr); in pcc_ioread_word()
164 unsigned char *bp = (unsigned char *)buf; in pcc_iowrite_byte() local
181 writeb(*bp++, addr); in pcc_iowrite_byte()
189 unsigned short *bp = (unsigned short *)buf; in pcc_iowrite_word() local
218 writew(*bp++, addr); in pcc_iowrite_word()
/linux-4.1.27/Documentation/filesystems/
Dxfs-self-describing-metadata.txt223 struct xfs_buf *bp)
225 struct xfs_mount *mp = bp->b_target->bt_mount;
228 !xfs_verify_cksum(bp->b_addr, BBTOB(bp->b_length),
230 !xfs_foo_verify(bp)) {
231 XFS_CORRUPTION_ERROR(__func__, XFS_ERRLEVEL_LOW, mp, bp->b_addr);
232 xfs_buf_ioerror(bp, EFSCORRUPTED);
246 struct xfs_buf *bp)
248 struct xfs_mount *mp = bp->b_target->bt_mount;
249 struct xfs_ondisk_hdr *hdr = bp->b_addr;
257 if (bp->b_bn != be64_to_cpu(hdr->blkno))
[all …]
/linux-4.1.27/sound/isa/sb/
Demu8000_callback.c173 struct best *bp; in get_voice() local
192 bp = best + OFF; in get_voice()
195 bp = best + RELEASED; in get_voice()
198 bp = best + OFF; in get_voice()
201 bp = best + PLAYING; in get_voice()
210 bp = best + OFF; in get_voice()
213 if (vp->time < bp->time) { in get_voice()
214 bp->time = vp->time; in get_voice()
215 bp->voice = i; in get_voice()
/linux-4.1.27/drivers/mfd/
Dpm8921-core.c68 static int pm8xxx_read_block_irq(struct pm_irq_chip *chip, unsigned int bp, in pm8xxx_read_block_irq() argument
74 rc = regmap_write(chip->regmap, SSBI_REG_ADDR_IRQ_BLK_SEL, bp); in pm8xxx_read_block_irq()
76 pr_err("Failed Selecting Block %d rc=%d\n", bp, rc); in pm8xxx_read_block_irq()
89 pm8xxx_config_irq(struct pm_irq_chip *chip, unsigned int bp, unsigned int cp) in pm8xxx_config_irq() argument
94 rc = regmap_write(chip->regmap, SSBI_REG_ADDR_IRQ_BLK_SEL, bp); in pm8xxx_config_irq()
96 pr_err("Failed Selecting Block %d rc=%d\n", bp, rc); in pm8xxx_config_irq()
Dipaq-micro.c38 int i, bp; in ipaq_micro_trigger_tx() local
42 bp = 0; in ipaq_micro_trigger_tx()
43 tx->buf[bp++] = CHAR_SOF; in ipaq_micro_trigger_tx()
46 tx->buf[bp++] = checksum; in ipaq_micro_trigger_tx()
49 tx->buf[bp++] = msg->tx_data[i]; in ipaq_micro_trigger_tx()
53 tx->buf[bp++] = checksum; in ipaq_micro_trigger_tx()
54 tx->len = bp; in ipaq_micro_trigger_tx()
/linux-4.1.27/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
DEventClass.py57 flags, ip, ax, bx, cx, dx, si, di, bp, sp = struct.unpack('QQQQQQQQQQ', tmp_buf)
66 self.bp = bp
/linux-4.1.27/drivers/spi/
Dspi-tle62x0.c103 char *bp = buf; in tle62x0_status_show() local
125 bp += sprintf(bp, "%s ", decode_fault(fault >> (ptr * 2))); in tle62x0_status_show()
128 *bp++ = '\n'; in tle62x0_status_show()
131 return bp - buf; in tle62x0_status_show()
/linux-4.1.27/sound/drivers/opl3/
Dopl3_midi.c165 struct best *bp; in opl3_get_voice() local
182 bp = best; in opl3_get_voice()
194 bp++; in opl3_get_voice()
200 bp++; in opl3_get_voice()
208 bp++; in opl3_get_voice()
211 bp++; in opl3_get_voice()
214 bp++; in opl3_get_voice()
216 if (voice_time < bp->time) { in opl3_get_voice()
217 bp->time = voice_time; in opl3_get_voice()
218 bp->voice = i; in opl3_get_voice()
/linux-4.1.27/drivers/rtc/
Drtc-ds1305.c216 u8 *bp = buf; in ds1305_set_time() local
225 *bp++ = DS1305_WRITE | DS1305_SEC; in ds1305_set_time()
227 *bp++ = bin2bcd(time->tm_sec); in ds1305_set_time()
228 *bp++ = bin2bcd(time->tm_min); in ds1305_set_time()
229 *bp++ = hour2bcd(ds1305->hr12, time->tm_hour); in ds1305_set_time()
230 *bp++ = (time->tm_wday < 7) ? (time->tm_wday + 1) : 1; in ds1305_set_time()
231 *bp++ = bin2bcd(time->tm_mday); in ds1305_set_time()
232 *bp++ = bin2bcd(time->tm_mon + 1); in ds1305_set_time()
233 *bp++ = bin2bcd(time->tm_year - 100); in ds1305_set_time()
/linux-4.1.27/drivers/infiniband/hw/qib/
Dqib_twsi.c360 u8 *bp = buffer; in qib_twsi_blk_rd() local
413 *bp++ = rd_byte(dd, !len); in qib_twsi_blk_rd()
438 const u8 *bp = buffer; in qib_twsi_blk_wr() local
466 if (qib_twsi_wr(dd, *bp++, 0)) in qib_twsi_blk_wr()
/linux-4.1.27/drivers/net/ethernet/cirrus/
Dcs89x0.c420 unsigned char *bp = lp->rx_dma_ptr; in dma_rx() local
422 status = bp[0] + (bp[1] << 8); in dma_rx()
423 length = bp[2] + (bp[3] << 8); in dma_rx()
424 bp += 4; in dma_rx()
427 dev->name, (unsigned long)bp, status, length); in dma_rx()
441 bp += (length + 3) & ~3; in dma_rx()
442 if (bp >= lp->end_dma_buff) in dma_rx()
443 bp -= lp->dmasize * 1024; in dma_rx()
444 lp->rx_dma_ptr = bp; in dma_rx()
449 if (bp + length > lp->end_dma_buff) { in dma_rx()
[all …]
/linux-4.1.27/arch/ia64/sn/kernel/
Dsetup.c320 u8 *bp; in sn_scan_pcdp() local
334 for (bp = (u8 *)&pcdp->uart[pcdp->num_type0]; in sn_scan_pcdp()
335 bp < (u8 *)pcdp + pcdp->length; in sn_scan_pcdp()
336 bp += device.length) { in sn_scan_pcdp()
337 memcpy(&device, bp, sizeof(device)); in sn_scan_pcdp()
344 memcpy(&if_pci, bp+sizeof(device), sizeof(if_pci)); in sn_scan_pcdp()
/linux-4.1.27/scripts/gdb/linux/
Dsymbols.py139 for bp in gdb.breakpoints():
140 saved_states.append({'breakpoint': bp, 'enabled': bp.enabled})
/linux-4.1.27/scripts/dtc/
Dtreesource.c170 const char *bp = val.val; in write_propval_bytes() local
175 while (m && (m->offset == (bp-val.val))) { in write_propval_bytes()
181 fprintf(f, "%02hhx", *bp++); in write_propval_bytes()
182 if ((const void *)bp >= propend) in write_propval_bytes()
/linux-4.1.27/arch/x86/math-emu/
Dget_address.c36 offsetof(struct pt_regs, bp),
352 address += FPU_info->regs->bp + FPU_info->regs->si; in FPU_get_address_16()
357 address += FPU_info->regs->bp + FPU_info->regs->di; in FPU_get_address_16()
368 address += FPU_info->regs->bp; in FPU_get_address_16()
/linux-4.1.27/fs/hpfs/
Dhpfs.h417 static inline bool bp_internal(struct bplus_header *bp) in bp_internal() argument
419 return bp->flags & BP_internal; in bp_internal()
422 static inline bool bp_fnode_parent(struct bplus_header *bp) in bp_fnode_parent() argument
424 return bp->flags & BP_fnode_parent; in bp_fnode_parent()
/linux-4.1.27/drivers/net/wireless/ath/ath9k/
Dar9002_phy.c298 int bp = 0; in ar9002_hw_spur_mitigate() local
299 for (bp = 0; bp < 30; bp++) { in ar9002_hw_spur_mitigate()
301 pilot_mask = pilot_mask | 0x1 << bp; in ar9002_hw_spur_mitigate()
302 chan_mask = chan_mask | 0x1 << bp; in ar9002_hw_spur_mitigate()
/linux-4.1.27/arch/powerpc/platforms/powermac/
Dpci.c455 static void __init init_bandit(struct pci_controller *bp) in init_bandit() argument
461 out_le32(bp->cfg_addr, (1UL << BANDIT_DEVNUM) + PCI_VENDOR_ID); in init_bandit()
463 vendev = in_le32(bp->cfg_data); in init_bandit()
467 out_le32(bp->cfg_addr, in init_bandit()
470 rev = in_8(bp->cfg_data); in init_bandit()
480 out_le32(bp->cfg_addr, (1UL << BANDIT_DEVNUM) + BANDIT_MAGIC); in init_bandit()
482 magic = in_le32(bp->cfg_data); in init_bandit()
487 out_le32(bp->cfg_data, magic); in init_bandit()
/linux-4.1.27/Documentation/devicetree/bindings/arm/
Dmarvell,kirkwood.txt50 "marvell,db-88f6281-bp"
51 "marvell,db-88f6282-bp"
/linux-4.1.27/arch/arm/mach-mv78xx0/
DMakefile2 obj-$(CONFIG_MACH_DB78X00_BP) += db78x00-bp-setup.o
/linux-4.1.27/arch/blackfin/lib/
Dstrcpy.S32 if cc jump 1b (bp);
Dstrcmp.S36 if cc jump 1b (bp); /* no, keep going */
/linux-4.1.27/include/net/sctp/
Dcommand.h134 struct sctp_bind_addr *bp; member
175 SCTP_ARG_CONSTRUCTOR(BA, struct sctp_bind_addr *, bp) in SCTP_ARG_CONSTRUCTOR()

12