Home
last modified time | relevance | path

Searched full:jd (Results 1 – 25 of 142) sorted by relevance

123456

/kernel/linux/linux-4.19/tools/perf/util/
Djitdump.c107 jit_close(struct jit_buf_desc *jd) in jit_close() argument
109 if (!(jd && jd->in)) in jit_close()
111 funlockfile(jd->in); in jit_close()
112 fclose(jd->in); in jit_close()
113 jd->in = NULL; in jit_close()
132 jit_open(struct jit_buf_desc *jd, const char *name) in jit_open() argument
140 jd->in = fopen(name, "r"); in jit_open()
141 if (!jd->in) in jit_open()
153 flockfile(jd->in); in jit_open()
155 ret = fread(buf, sizeof(header), 1, jd->in); in jit_open()
[all …]
/kernel/linux/linux-5.10/tools/perf/util/
Djitdump.c109 jit_close(struct jit_buf_desc *jd) in jit_close() argument
111 if (!(jd && jd->in)) in jit_close()
113 funlockfile(jd->in); in jit_close()
114 fclose(jd->in); in jit_close()
115 jd->in = NULL; in jit_close()
134 jit_open(struct jit_buf_desc *jd, const char *name) in jit_open() argument
142 jd->in = fopen(name, "r"); in jit_open()
143 if (!jd->in) in jit_open()
155 flockfile(jd->in); in jit_open()
157 ret = fread(buf, sizeof(header), 1, jd->in); in jit_open()
[all …]
/kernel/linux/linux-4.19/fs/gfs2/
Drecovery.c35 int gfs2_replay_read_block(struct gfs2_jdesc *jd, unsigned int blk, in gfs2_replay_read_block() argument
38 struct gfs2_inode *ip = GFS2_I(jd->jd_inode); in gfs2_replay_read_block()
58 int gfs2_revoke_add(struct gfs2_jdesc *jd, u64 blkno, unsigned int where) in gfs2_revoke_add() argument
60 struct list_head *head = &jd->jd_revoke_list; in gfs2_revoke_add()
87 int gfs2_revoke_check(struct gfs2_jdesc *jd, u64 blkno, unsigned int where) in gfs2_revoke_check() argument
93 list_for_each_entry(rr, &jd->jd_revoke_list, rr_list) { in gfs2_revoke_check()
103 wrap = (rr->rr_where < jd->jd_replay_tail); in gfs2_revoke_check()
104 a = (jd->jd_replay_tail < where); in gfs2_revoke_check()
111 void gfs2_revoke_clean(struct gfs2_jdesc *jd) in gfs2_revoke_clean() argument
113 struct list_head *head = &jd->jd_revoke_list; in gfs2_revoke_clean()
[all …]
Dlops.c516 static void buf_lo_before_scan(struct gfs2_jdesc *jd, in buf_lo_before_scan() argument
522 jd->jd_found_blocks = 0; in buf_lo_before_scan()
523 jd->jd_replayed_blocks = 0; in buf_lo_before_scan()
526 static int buf_lo_scan_elements(struct gfs2_jdesc *jd, unsigned int start, in buf_lo_scan_elements() argument
530 struct gfs2_inode *ip = GFS2_I(jd->jd_inode); in buf_lo_scan_elements()
531 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in buf_lo_scan_elements()
541 gfs2_replay_incr_blk(jd, &start); in buf_lo_scan_elements()
543 for (; blks; gfs2_replay_incr_blk(jd, &start), blks--) { in buf_lo_scan_elements()
546 jd->jd_found_blocks++; in buf_lo_scan_elements()
548 if (gfs2_revoke_check(jd, blkno, start)) in buf_lo_scan_elements()
[all …]
Drecovery.h17 static inline void gfs2_replay_incr_blk(struct gfs2_jdesc *jd, unsigned int *blk) in gfs2_replay_incr_blk() argument
19 if (++*blk == jd->jd_blocks) in gfs2_replay_incr_blk()
23 extern int gfs2_replay_read_block(struct gfs2_jdesc *jd, unsigned int blk,
26 extern int gfs2_revoke_add(struct gfs2_jdesc *jd, u64 blkno, unsigned int where);
27 extern int gfs2_revoke_check(struct gfs2_jdesc *jd, u64 blkno, unsigned int where);
28 extern void gfs2_revoke_clean(struct gfs2_jdesc *jd);
30 extern int gfs2_find_jhead(struct gfs2_jdesc *jd,
Dlops.h70 static inline void lops_before_scan(struct gfs2_jdesc *jd, in lops_before_scan() argument
77 gfs2_log_ops[x]->lo_before_scan(jd, head, pass); in lops_before_scan()
80 static inline int lops_scan_elements(struct gfs2_jdesc *jd, unsigned int start, in lops_scan_elements() argument
88 error = gfs2_log_ops[x]->lo_scan_elements(jd, start, in lops_scan_elements()
97 static inline void lops_after_scan(struct gfs2_jdesc *jd, int error, in lops_after_scan() argument
103 gfs2_log_ops[x]->lo_after_scan(jd, error, pass); in lops_after_scan()
Dsuper.c310 struct gfs2_jdesc *jd; in gfs2_jindex_free() local
319 jd = list_entry(list.next, struct gfs2_jdesc, jd_list); in gfs2_jindex_free()
320 gfs2_free_journal_extents(jd); in gfs2_jindex_free()
321 list_del(&jd->jd_list); in gfs2_jindex_free()
322 iput(jd->jd_inode); in gfs2_jindex_free()
323 kfree(jd); in gfs2_jindex_free()
329 struct gfs2_jdesc *jd; in jdesc_find_i() local
332 list_for_each_entry(jd, head, jd_list) { in jdesc_find_i()
333 if (jd->jd_jid == jid) { in jdesc_find_i()
340 jd = NULL; in jdesc_find_i()
[all …]
Dops_fstype.c541 struct gfs2_jdesc *jd; in gfs2_jindex_hold() local
568 jd = kzalloc(sizeof(struct gfs2_jdesc), GFP_KERNEL); in gfs2_jindex_hold()
569 if (!jd) in gfs2_jindex_hold()
572 INIT_LIST_HEAD(&jd->extent_list); in gfs2_jindex_hold()
573 INIT_LIST_HEAD(&jd->jd_revoke_list); in gfs2_jindex_hold()
575 INIT_WORK(&jd->jd_work, gfs2_recover_func); in gfs2_jindex_hold()
576 jd->jd_inode = gfs2_lookupi(sdp->sd_jindex, &name, 1); in gfs2_jindex_hold()
577 if (!jd->jd_inode || IS_ERR(jd->jd_inode)) { in gfs2_jindex_hold()
578 if (!jd->jd_inode) in gfs2_jindex_hold()
581 error = PTR_ERR(jd->jd_inode); in gfs2_jindex_hold()
[all …]
/kernel/linux/linux-5.10/fs/gfs2/
Drecovery.c32 int gfs2_replay_read_block(struct gfs2_jdesc *jd, unsigned int blk, in gfs2_replay_read_block() argument
35 struct gfs2_inode *ip = GFS2_I(jd->jd_inode); in gfs2_replay_read_block()
55 int gfs2_revoke_add(struct gfs2_jdesc *jd, u64 blkno, unsigned int where) in gfs2_revoke_add() argument
57 struct list_head *head = &jd->jd_revoke_list; in gfs2_revoke_add()
84 int gfs2_revoke_check(struct gfs2_jdesc *jd, u64 blkno, unsigned int where) in gfs2_revoke_check() argument
90 list_for_each_entry(rr, &jd->jd_revoke_list, rr_list) { in gfs2_revoke_check()
100 wrap = (rr->rr_where < jd->jd_replay_tail); in gfs2_revoke_check()
101 a = (jd->jd_replay_tail < where); in gfs2_revoke_check()
108 void gfs2_revoke_clean(struct gfs2_jdesc *jd) in gfs2_revoke_clean() argument
110 struct list_head *head = &jd->jd_revoke_list; in gfs2_revoke_clean()
[all …]
Dlops.c142 u64 gfs2_log_bmap(struct gfs2_jdesc *jd, unsigned int lblock) in gfs2_log_bmap() argument
146 list_for_each_entry(je, &jd->extent_list, list) { in gfs2_log_bmap()
412 * @jd: The journal descriptor
418 static bool gfs2_jhead_pg_srch(struct gfs2_jdesc *jd, in gfs2_jhead_pg_srch() argument
422 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in gfs2_jhead_pg_srch()
444 * @jd: The journal descriptor
461 static void gfs2_jhead_process_page(struct gfs2_jdesc *jd, unsigned long index, in gfs2_jhead_process_page() argument
467 page = find_get_page(jd->jd_inode->i_mapping, index); in gfs2_jhead_process_page()
474 *done = gfs2_jhead_pg_srch(jd, head, page); in gfs2_jhead_process_page()
496 * @jd: The journal descriptor
[all …]
Drecovery.h14 static inline void gfs2_replay_incr_blk(struct gfs2_jdesc *jd, u32 *blk) in gfs2_replay_incr_blk() argument
16 if (++*blk == jd->jd_blocks) in gfs2_replay_incr_blk()
20 extern int gfs2_replay_read_block(struct gfs2_jdesc *jd, unsigned int blk,
23 extern int gfs2_revoke_add(struct gfs2_jdesc *jd, u64 blkno, unsigned int where);
24 extern int gfs2_revoke_check(struct gfs2_jdesc *jd, u64 blkno, unsigned int where);
25 extern void gfs2_revoke_clean(struct gfs2_jdesc *jd);
Dlops.h22 extern u64 gfs2_log_bmap(struct gfs2_jdesc *jd, unsigned int lbn);
28 extern int gfs2_find_jhead(struct gfs2_jdesc *jd,
64 static inline void lops_before_scan(struct gfs2_jdesc *jd, in lops_before_scan() argument
71 gfs2_log_ops[x]->lo_before_scan(jd, head, pass); in lops_before_scan()
74 static inline int lops_scan_elements(struct gfs2_jdesc *jd, u32 start, in lops_scan_elements() argument
82 error = gfs2_log_ops[x]->lo_scan_elements(jd, start, in lops_scan_elements()
91 static inline void lops_after_scan(struct gfs2_jdesc *jd, int error, in lops_after_scan() argument
97 gfs2_log_ops[x]->lo_after_scan(jd, error, pass); in lops_after_scan()
Dsuper.c62 struct gfs2_jdesc *jd; in gfs2_jindex_free() local
72 jd = list_first_entry(&list, struct gfs2_jdesc, jd_list); in gfs2_jindex_free()
73 gfs2_free_journal_extents(jd); in gfs2_jindex_free()
74 list_del(&jd->jd_list); in gfs2_jindex_free()
75 iput(jd->jd_inode); in gfs2_jindex_free()
76 jd->jd_inode = NULL; in gfs2_jindex_free()
77 kfree(jd); in gfs2_jindex_free()
83 struct gfs2_jdesc *jd; in jdesc_find_i() local
86 list_for_each_entry(jd, head, jd_list) { in jdesc_find_i()
87 if (jd->jd_jid == jid) { in jdesc_find_i()
[all …]
Dops_fstype.c553 struct gfs2_jdesc *jd; in gfs2_jindex_hold() local
582 jd = kzalloc(sizeof(struct gfs2_jdesc), GFP_KERNEL); in gfs2_jindex_hold()
583 if (!jd) in gfs2_jindex_hold()
586 INIT_LIST_HEAD(&jd->extent_list); in gfs2_jindex_hold()
587 INIT_LIST_HEAD(&jd->jd_revoke_list); in gfs2_jindex_hold()
589 INIT_WORK(&jd->jd_work, gfs2_recover_func); in gfs2_jindex_hold()
590 jd->jd_inode = gfs2_lookupi(sdp->sd_jindex, &name, 1); in gfs2_jindex_hold()
591 if (IS_ERR_OR_NULL(jd->jd_inode)) { in gfs2_jindex_hold()
592 if (!jd->jd_inode) in gfs2_jindex_hold()
595 error = PTR_ERR(jd->jd_inode); in gfs2_jindex_hold()
[all …]
/kernel/linux/linux-4.19/Documentation/devicetree/bindings/sound/
Drt5645.txt16 a GPIO spec for the external headphone detect pin. If jd-mode = 0,
17 we will get the JD status by getting the value of hp-detect-gpios.
35 -- realtek,jd-mode : The JD mode of rt5645/rt5650
36 0 : rt5645/rt5650 JD function is not used
70 realtek,en-jd-func = "true";
71 realtek,jd-mode = <3>;
Drt5682.txt24 - realtek,jd-src
25 0: No JD is used
26 1: using JD1 as JD source
49 realtek,jd-src = <1>;
Drt5668.txt24 - realtek,jd-src
25 0: No JD is used
26 1: using JD1 as JD source
49 realtek,jd-src = <1>;
Drt5665.txt31 - realtek,jd-src
32 0: No JD is used
33 1: using JD1 as JD source
Drt5659.txt37 - realtek,jd-src
38 0: No JD is used
39 1: using JD3 as JD source
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/sound/
Drt5645.txt20 a GPIO spec for the external headphone detect pin. If jd-mode = 0,
21 we will get the JD status by getting the value of hp-detect-gpios.
39 -- realtek,jd-mode : The JD mode of rt5645/rt5650
40 0 : rt5645/rt5650 JD function is not used
74 realtek,en-jd-func = "true";
75 realtek,jd-mode = <3>;
Drt5668.txt24 - realtek,jd-src
25 0: No JD is used
26 1: using JD1 as JD source
49 realtek,jd-src = <1>;
Drt5682.txt24 - realtek,jd-src
25 0: No JD is used
26 1: using JD1 as JD source
66 realtek,jd-src = <1>;
Drt5665.txt31 - realtek,jd-src
32 0: No JD is used
33 1: using JD1 as JD source
Drt5659.txt37 - realtek,jd-src
38 0: No JD is used
39 1: using JD3 as JD source
/kernel/linux/linux-4.19/drivers/hid/
Dhid-plantronics.c4 * Copyright (c) 2014 JD Cole <jd.cole@plantronics.com>
172 MODULE_AUTHOR("JD Cole <jd.cole@plantronics.com>");

123456