Home
last modified time | relevance | path

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

12

/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()
H A Dxfs_discard.c124 struct xfs_buftarg *btp = in xfs_discard_extents() local
129 error = __blkdev_issue_discard(btp->bt_bdev, in xfs_discard_extents()
/linux/fs/xfs/libxfs/
H A Dxfs_dir2_block.c197 struct xfs_dir2_block_tail *btp, in xfs_dir2_block_need_space() argument
216 if (btp->stale) { in xfs_dir2_block_need_space()
241 if (be16_to_cpu(dup->length) + (be32_to_cpu(btp->stale) - 1) * in xfs_dir2_block_need_space()
244 } else if ((be32_to_cpu(btp->stale) - 1) * (uint)sizeof(*blp) < len) in xfs_dir2_block_need_space()
310 struct xfs_dir2_block_tail *btp, in xfs_dir2_block_compact() argument
321 fromidx = toidx = be32_to_cpu(btp->count) - 1; in xfs_dir2_block_compact()
337 *lfloglow = toidx + 1 - (be32_to_cpu(btp->stale) - 1); in xfs_dir2_block_compact()
338 *lfloghigh -= be32_to_cpu(btp->stale) - 1; in xfs_dir2_block_compact()
339 be32_add_cpu(&btp->count, -(be32_to_cpu(btp->stale) - 1)); in xfs_dir2_block_compact()
342 (xfs_dir2_data_aoff_t)((be32_to_cpu(btp->stale) - 1) * sizeof(*blp)), in xfs_dir2_block_compact()
[all …]
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_da_format.h549 xfs_dir2_block_leaf_p(struct xfs_dir2_block_tail *btp) in xfs_dir2_block_leaf_p() argument
551 return ((struct xfs_dir2_leaf_entry *)btp) - be32_to_cpu(btp->count); in xfs_dir2_block_leaf_p()
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_leaf.c442 xfs_dir2_block_tail_t *btp; /* block's tail */ in xfs_dir2_block_to_leaf() local
479 btp = xfs_dir2_block_tail_p(args->geo, hdr); in xfs_dir2_block_to_leaf()
480 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_to_leaf()
487 leafhdr.count = be32_to_cpu(btp->count); in xfs_dir2_block_to_leaf()
488 leafhdr.stale = be32_to_cpu(btp->stale); in xfs_dir2_block_to_leaf()
497 be32_to_cpu(btp->count) * sizeof(struct xfs_dir2_leaf_entry)); in xfs_dir2_block_to_leaf()
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()
/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.h769 int bpf_probe_register(struct bpf_raw_event_map *btp, struct bpf_raw_tp_link *link);
770 int bpf_probe_unregister(struct bpf_raw_event_map *btp, struct bpf_raw_tp_link *link);
773 void bpf_put_raw_tracepoint(struct bpf_raw_event_map *btp);
800 static inline int bpf_probe_register(struct bpf_raw_event_map *btp, struct bpf_raw_tp_link *link) in bpf_probe_register() argument
804 static inline int bpf_probe_unregister(struct bpf_raw_event_map *btp, struct bpf_raw_tp_link *link) in bpf_probe_unregister() argument
812 static inline void bpf_put_raw_tracepoint(struct bpf_raw_event_map *btp) in bpf_put_raw_tracepoint() argument
/linux/arch/x86/kernel/
H A Dnmi.c641 void nmi_backtrace_stall_snap(const struct cpumask *btp) in nmi_backtrace_stall_snap() argument
646 for_each_cpu(cpu, btp) { in nmi_backtrace_stall_snap()
655 void nmi_backtrace_stall_check(const struct cpumask *btp) in nmi_backtrace_stall_check() argument
666 for_each_cpu(cpu, btp) { in nmi_backtrace_stall_check()
/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.h67 struct xfs_buftarg *btp);
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()
/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
2054 mod = __module_address((unsigned long)btp); in bpf_put_raw_tracepoint()
[all …]
/linux/kernel/bpf/
H A Dsyscall.c3753 bpf_probe_unregister(raw_tp->btp, raw_tp); in bpf_raw_tp_link_release()
3754 bpf_put_raw_tracepoint(raw_tp->btp); in bpf_raw_tp_link_release()
3774 raw_tp_link->btp->tp->name, in bpf_raw_tp_link_show_fdinfo()
3803 const char *tp_name = raw_tp_link->btp->tp->name; in bpf_raw_tp_link_fill_link_info()
4198 struct bpf_raw_event_map *btp; in bpf_raw_tp_link_attach() local
4229 btp = bpf_get_raw_tracepoint(tp_name); in bpf_raw_tp_link_attach()
4230 if (!btp) in bpf_raw_tp_link_attach()
4240 tracepoint_is_faultable(btp->tp)); in bpf_raw_tp_link_attach()
4241 link->btp = btp; in bpf_raw_tp_link_attach()
4250 err = bpf_probe_register(link->btp, link); in bpf_raw_tp_link_attach()
[all …]

12