Home
last modified time | relevance | path

Searched refs:btp (Results 1 – 24 of 24) sorted by relevance

/linux/fs/xfs/
H A Dxfs_buf_mem.c58 struct xfs_buftarg *btp; in xmbuf_alloc() local
61 btp = kzalloc(struct_size(btp, bt_cache, 1), GFP_KERNEL); in xmbuf_alloc()
62 if (!btp) in xmbuf_alloc()
84 error = xfs_buf_cache_init(btp->bt_cache); in xmbuf_alloc()
89 btp->bt_mount = mp; in xmbuf_alloc()
90 btp->bt_dev = (dev_t)-1U; in xmbuf_alloc()
91 btp->bt_bdev = NULL; /* in-memory buftargs have no bdev */ in xmbuf_alloc()
92 btp->bt_file = file; in xmbuf_alloc()
93 btp->bt_meta_sectorsize = XMBUF_BLOCKSIZE; in xmbuf_alloc()
94 btp->bt_meta_sectormask = XMBUF_BLOCKSIZE - 1; in xmbuf_alloc()
[all …]
H A Dxfs_buf.c387 struct xfs_buftarg *btp, in xfs_buf_map_verify() argument
391 ASSERT(!(BBTOB(map->bm_len) < btp->bt_meta_sectorsize)); in xfs_buf_map_verify()
392 ASSERT(!(BBTOB(map->bm_bn) & (xfs_off_t)btp->bt_meta_sectormask)); in xfs_buf_map_verify()
398 if (map->bm_bn < 0 || map->bm_bn >= btp->bt_nr_sectors) { in xfs_buf_map_verify()
399 xfs_alert(btp->bt_mount, in xfs_buf_map_verify()
401 __func__, map->bm_bn, btp->bt_nr_sectors); in xfs_buf_map_verify()
489 struct xfs_buftarg *btp, in xfs_buf_find_insert() argument
502 error = xfs_buf_alloc(btp, map, nmaps, flags, &new_bp); in xfs_buf_find_insert()
542 struct xfs_buftarg *btp, in xfs_buftarg_get_pag() argument
545 struct xfs_mount *mp = btp->bt_mount; in xfs_buftarg_get_pag()
[all …]
H A Dxfs_buf_mem.h13 static inline bool xfs_buftarg_is_mem(const struct xfs_buftarg *btp) in xfs_buftarg_is_mem() argument
15 return btp->bt_bdev == NULL; in xfs_buftarg_is_mem()
20 void xmbuf_free(struct xfs_buftarg *btp);
22 bool xmbuf_verify_daddr(struct xfs_buftarg *btp, xfs_daddr_t daddr);
H A Dxfs_buf.h377 int xfs_configure_buftarg(struct xfs_buftarg *btp, unsigned int sectorsize,
387 int xfs_init_buftarg(struct xfs_buftarg *btp, size_t logical_sectorsize,
389 void xfs_destroy_buftarg(struct xfs_buftarg *btp);
H A Dxfs_notify_failure.c161 struct xfs_buftarg *btp, in xfs_dax_translate_range() argument
167 u64 dev_start = btp->bt_dax_part_off; in xfs_dax_translate_range()
168 u64 dev_len = BBTOB(btp->bt_nr_sectors); in xfs_dax_translate_range()
H A Dxfs_mount.c693 struct xfs_buftarg *btp = xfs_group_type_buftarg(mp, type); in xfs_calc_group_awu_max() local
697 if (btp && btp->bt_awu_min > 0) in xfs_calc_group_awu_max()
/linux/include/linux/
H A Dnmi.h224 void nmi_backtrace_stall_snap(const struct cpumask *btp);
225 void nmi_backtrace_stall_check(const struct cpumask *btp);
227 static inline void nmi_backtrace_stall_snap(const struct cpumask *btp) {} in nmi_backtrace_stall_snap() argument
228 static inline void nmi_backtrace_stall_check(const struct cpumask *btp) {} in nmi_backtrace_stall_check() argument
H A Dtrace_events.h770 int bpf_probe_register(struct bpf_raw_event_map *btp, struct bpf_raw_tp_link *link);
771 int bpf_probe_unregister(struct bpf_raw_event_map *btp, struct bpf_raw_tp_link *link);
774 void bpf_put_raw_tracepoint(struct bpf_raw_event_map *btp);
801 static inline int bpf_probe_register(struct bpf_raw_event_map *btp, struct bpf_raw_tp_link *link) in bpf_probe_register() argument
805 static inline int bpf_probe_unregister(struct bpf_raw_event_map *btp, struct bpf_raw_tp_link *link) in bpf_probe_unregister() argument
813 static inline void bpf_put_raw_tracepoint(struct bpf_raw_event_map *btp) in bpf_put_raw_tracepoint() argument
/linux/fs/xfs/libxfs/
H A Dxfs_dir2_data.c105 xfs_dir2_block_tail_t *btp=NULL; /* block tail */ in __xfs_dir3_data_check() local
133 btp = xfs_dir2_block_tail_p(geo, hdr); in __xfs_dir3_data_check()
134 lep = xfs_dir2_block_leaf_p(btp); in __xfs_dir3_data_check()
136 if (be32_to_cpu(btp->count) >= in __xfs_dir3_data_check()
261 for (i = 0; i < be32_to_cpu(btp->count); i++) { in __xfs_dir3_data_check()
266 if (i >= be32_to_cpu(btp->count)) in __xfs_dir3_data_check()
278 for (i = stale = 0; i < be32_to_cpu(btp->count); i++) { in __xfs_dir3_data_check()
286 if (count != be32_to_cpu(btp->count) - be32_to_cpu(btp->stale)) in __xfs_dir3_data_check()
288 if (stale != be32_to_cpu(btp->stale)) in __xfs_dir3_data_check()
H A Dxfs_btree_mem.c117 struct xfs_buftarg *btp, in xfbtree_init() argument
135 xfbt->target = btp; in xfbtree_init()
H A Dxfs_btree_mem.h66 struct xfs_buftarg *btp, const struct xfs_btree_ops *ops);
H A Dxfs_rmap_btree.h70 struct xfs_buftarg *btp, xfs_agnumber_t agno);
H A Dxfs_rtrmap_btree.h208 struct xfs_buftarg *btp, xfs_rgnumber_t rgno);
H A Dxfs_dir2_sf.c174 xfs_dir2_block_tail_t *btp; /* tail area of the block */ in xfs_dir2_block_sfsize() local
198 btp = xfs_dir2_block_tail_p(geo, hdr); in xfs_dir2_block_sfsize()
199 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_sfsize()
204 for (i = 0; i < be32_to_cpu(btp->count); i++) { in xfs_dir2_block_sfsize()
H A Dxfs_rmap_btree.c645 struct xfs_buftarg *btp, in xfs_rmapbt_mem_init() argument
649 return xfbtree_init(mp, xfbt, btp, &xfs_rmapbt_mem_ops); in xfs_rmapbt_mem_init()
H A Dxfs_btree.c88 struct xfs_buftarg *btp, in xfs_btree_check_memblock_siblings() argument
100 if (!xmbuf_verify_daddr(btp, xfbno_to_daddr(sibling))) in xfs_btree_check_memblock_siblings()
205 struct xfs_buftarg *btp = cur->bc_mem.xfbtree->target; in __xfs_btree_check_memblock() local
214 fa = xfs_btree_check_memblock_siblings(btp, bno, in __xfs_btree_check_memblock()
217 fa = xfs_btree_check_memblock_siblings(btp, bno, in __xfs_btree_check_memblock()
987 struct xfs_buftarg *btp = cur->bc_mem.xfbtree->target; in xfs_btree_readahead_memblock() local
993 xfs_buf_readahead(btp, xfbno_to_daddr(left), XFBNO_BBSIZE, in xfs_btree_readahead_memblock()
999 xfs_buf_readahead(btp, xfbno_to_daddr(right), XFBNO_BBSIZE, in xfs_btree_readahead_memblock()
4884 struct xfs_buftarg *btp = bp->b_target; in xfs_btree_memblock_verify() local
4896 fa = xfs_btree_check_memblock_siblings(btp, bno, in xfs_btree_memblock_verify()
[all …]
H A Dxfs_rtrmap_btree.c633 struct xfs_buftarg *btp, in xfs_rtrmapbt_mem_init() argument
637 return xfbtree_init(mp, xfbt, btp, &xfs_rtrmapbt_mem_ops); in xfs_rtrmapbt_mem_init()
/linux/fs/xfs/scrub/
H A Drcbag.h13 int rcbag_init(struct xfs_mount *mp, struct xfs_buftarg *btp,
H A Drcbag.c33 struct xfs_buftarg *btp, in rcbag_init() argument
46 error = rcbagbt_mem_init(mp, &bag->xfbtree, btp); in rcbag_init()
H A Drcbag_btree.c215 struct xfs_buftarg *btp) in rcbagbt_mem_init() argument
218 return xfbtree_init(mp, xfbt, btp, &rcbagbt_mem_ops); in rcbagbt_mem_init()
H A Drcbag_btree.h67 struct xfs_buftarg *btp);
/linux/kernel/trace/
H A Dbpf_trace.c57 struct bpf_raw_event_map *btp, *ret = NULL; in bpf_get_raw_tracepoint_module() local
64 btp = &btm->module->bpf_raw_events[i]; in bpf_get_raw_tracepoint_module()
65 if (!strcmp(btp->tp->name, name)) { in bpf_get_raw_tracepoint_module()
67 ret = btp; in bpf_get_raw_tracepoint_module()
2039 struct bpf_raw_event_map *btp = __start__bpf_raw_tp; in bpf_get_raw_tracepoint() local
2041 for (; btp < __stop__bpf_raw_tp; btp++) { in bpf_get_raw_tracepoint()
2042 if (!strcmp(btp->tp->name, name)) in bpf_get_raw_tracepoint()
2043 return btp; in bpf_get_raw_tracepoint()
2049 void bpf_put_raw_tracepoint(struct bpf_raw_event_map *btp) in bpf_put_raw_tracepoint() argument
2128 bpf_probe_register(struct bpf_raw_event_map * btp,struct bpf_raw_tp_link * link) bpf_probe_register() argument
2146 bpf_probe_unregister(struct bpf_raw_event_map * btp,struct bpf_raw_tp_link * link) bpf_probe_unregister() argument
[all...]
/linux/kernel/bpf/
H A Dsyscall.c3768 bpf_probe_unregister(raw_tp->btp, raw_tp); in bpf_raw_tp_link_release()
3769 bpf_put_raw_tracepoint(raw_tp->btp); in bpf_raw_tp_link_release()
3789 raw_tp_link->btp->tp->name, in bpf_raw_tp_link_show_fdinfo()
3818 const char *tp_name = raw_tp_link->btp->tp->name; in bpf_raw_tp_link_fill_link_info()
4213 struct bpf_raw_event_map *btp; in bpf_raw_tp_link_attach() local
4244 btp = bpf_get_raw_tracepoint(tp_name); in bpf_raw_tp_link_attach()
4245 if (!btp) in bpf_raw_tp_link_attach()
4255 tracepoint_is_faultable(btp->tp)); in bpf_raw_tp_link_attach()
4256 link->btp = btp; in bpf_raw_tp_link_attach()
4265 err = bpf_probe_register(link->btp, link); in bpf_raw_tp_link_attach()
[all …]
H A Dverifier.c24139 struct bpf_raw_event_map *btp; in bpf_check_attach_target() local
24297 btp = bpf_get_raw_tracepoint(tname); in bpf_check_attach_target()
24298 if (!btp) in bpf_check_attach_target()
24300 fname = kallsyms_lookup((unsigned long)btp->bpf_func, NULL, NULL, NULL, in bpf_check_attach_target()
24302 bpf_put_raw_tracepoint(btp); in bpf_check_attach_target()