Home
last modified time | relevance | path

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

/linux/fs/xfs/
H A Dxfs_buf_mem.c58 struct xfs_buftarg *btp; in xmbuf_alloc() local
61 btp = kzalloc_flex(*btp, bt_cache, 1); 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_discard.c123 struct xfs_buftarg *btp = in xfs_discard_extents() local
128 __blkdev_issue_discard(btp->bt_bdev, in xfs_discard_extents()
/linux/include/linux/
H A Dnmi.h225 void nmi_backtrace_stall_snap(const struct cpumask *btp);
226 void nmi_backtrace_stall_check(const struct cpumask *btp);
228 static inline void nmi_backtrace_stall_snap(const struct cpumask *btp) {} in nmi_backtrace_stall_snap() argument
229 static inline void nmi_backtrace_stall_check(const struct cpumask *btp) {} in nmi_backtrace_stall_check() argument
H A Dtrace_events.h775 int bpf_probe_register(struct bpf_raw_event_map *btp, struct bpf_raw_tp_link *link);
776 int bpf_probe_unregister(struct bpf_raw_event_map *btp, struct bpf_raw_tp_link *link);
779 void bpf_put_raw_tracepoint(struct bpf_raw_event_map *btp);
806 static inline int bpf_probe_register(struct bpf_raw_event_map *btp, struct bpf_raw_tp_link *link) in bpf_probe_register() argument
810 static inline int bpf_probe_unregister(struct bpf_raw_event_map *btp, struct bpf_raw_tp_link *link) in bpf_probe_unregister() argument
818 static inline void bpf_put_raw_tracepoint(struct bpf_raw_event_map *btp) in bpf_put_raw_tracepoint() argument
H A Dbpf.h1894 struct bpf_raw_event_map *btp; member
/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()
2053 struct bpf_raw_event_map *btp = __start__bpf_raw_tp; in bpf_get_raw_tracepoint() local
2055 for (; btp < __stop__bpf_raw_tp; btp++) { in bpf_get_raw_tracepoint()
2056 if (!strcmp(btp->tp->name, name)) in bpf_get_raw_tracepoint()
2057 return btp; in bpf_get_raw_tracepoint()
2063 void bpf_put_raw_tracepoint(struct bpf_raw_event_map *btp) in bpf_put_raw_tracepoint() argument
2068 mod = __module_address((unsigned long)btp); in bpf_put_raw_tracepoint()
[all …]
/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);
/linux/fs/xfs/libxfs/
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);
/linux/kernel/bpf/
H A Dsyscall.c3784 bpf_probe_unregister(raw_tp->btp, raw_tp); in bpf_raw_tp_link_release()
3785 bpf_put_raw_tracepoint(raw_tp->btp); in bpf_raw_tp_link_release()
3805 raw_tp_link->btp->tp->name, in bpf_raw_tp_link_show_fdinfo()
3834 const char *tp_name = raw_tp_link->btp->tp->name; in bpf_raw_tp_link_fill_link_info()
4229 struct bpf_raw_event_map *btp; in bpf_raw_tp_link_attach() local
4260 btp = bpf_get_raw_tracepoint(tp_name); in bpf_raw_tp_link_attach()
4261 if (!btp) in bpf_raw_tp_link_attach()
4271 tracepoint_is_faultable(btp->tp)); in bpf_raw_tp_link_attach()
4272 link->btp = btp; in bpf_raw_tp_link_attach()
4281 err = bpf_probe_register(link->btp, link); in bpf_raw_tp_link_attach()
[all …]
H A Dverifier.c24863 struct bpf_raw_event_map *btp; in bpf_check_attach_target() local
25022 btp = bpf_get_raw_tracepoint(tname); in bpf_check_attach_target()
25023 if (!btp) in bpf_check_attach_target()
25025 fname = kallsyms_lookup((unsigned long)btp->bpf_func, NULL, NULL, NULL, in bpf_check_attach_target()
25027 bpf_put_raw_tracepoint(btp); in bpf_check_attach_target()