Searched refs:gh (Results 1 - 18 of 18) sorted by relevance

/linux-master/fs/gfs2/
H A Dglock.h141 struct gfs2_holder *gh; local
147 list_for_each_entry(gh, &gl->gl_holders, gh_list) {
148 if (!test_bit(HIF_HOLDER, &gh->gh_iflags))
150 if (gh->gh_owner_pid == pid)
153 gh = NULL;
157 return gh;
178 u16 flags, struct gfs2_holder *gh,
181 u16 flags, struct gfs2_holder *gh) {
182 __gfs2_holder_init(gl, state, flags, gh, _RET_IP_);
186 struct gfs2_holder *gh);
180 gfs2_holder_init(struct gfs2_glock *gl, unsigned int state, u16 flags, struct gfs2_holder *gh) argument
230 gfs2_glock_nq_init(struct gfs2_glock *gl, unsigned int state, u16 flags, struct gfs2_holder *gh) argument
269 gfs2_holder_mark_uninitialized(struct gfs2_holder *gh) argument
274 gfs2_holder_initialized(struct gfs2_holder *gh) argument
279 gfs2_holder_queued(struct gfs2_holder *gh) argument
[all...]
H A Dglock.c63 static void do_xmote(struct gfs2_glock *gl, struct gfs2_holder *gh, unsigned int target);
64 static void __gfs2_glock_dq(struct gfs2_holder *gh);
314 * @gh: The lock request which we wish to grant
318 * @current_gh; they are all the same as far as compatibility with the new @gh
326 struct gfs2_holder *gh)
340 return gh->gh_state == LM_ST_EXCLUSIVE &&
342 (gh->gh_flags & LM_FLAG_NODE_SCOPE);
346 return gh->gh_state == current_gh->gh_state;
353 if (gl->gl_state == gh->gh_state)
355 if (gh
324 may_grant(struct gfs2_glock *gl, struct gfs2_holder *current_gh, struct gfs2_holder *gh) argument
366 gfs2_holder_wake(struct gfs2_holder *gh) argument
386 struct gfs2_holder *gh, *tmp; local
410 struct gfs2_holder *gh; local
427 gfs2_instantiate(struct gfs2_holder *gh) argument
476 struct gfs2_holder *gh, *current_gh; local
510 struct gfs2_holder *gh; local
528 struct gfs2_holder *gh; local
591 struct gfs2_holder *gh; local
835 struct gfs2_holder *gh = NULL; variable in typeref:struct:gfs2_holder
941 struct gfs2_holder gh; local
1266 __gfs2_holder_init(struct gfs2_glock *gl, unsigned int state, u16 flags, struct gfs2_holder *gh, unsigned long ip) argument
1288 gfs2_holder_reinit(unsigned int state, u16 flags, struct gfs2_holder *gh) argument
1304 gfs2_holder_uninit(struct gfs2_holder *gh) argument
1332 gfs2_glock_holder_ready(struct gfs2_holder *gh) argument
1349 gfs2_glock_wait(struct gfs2_holder *gh) argument
1400 struct gfs2_holder *gh = &ghs[i]; local
1415 struct gfs2_holder *gh = &ghs[i]; local
1472 pid_is_meaningful(const struct gfs2_holder *gh) argument
1530 gfs2_holder_wake(gh); variable
1572 gfs2_glock_nq(struct gfs2_holder *gh) argument
1628 gfs2_glock_poll(struct gfs2_holder *gh) argument
1639 __gfs2_glock_dq(struct gfs2_holder *gh) argument
1684 gfs2_glock_dq(struct gfs2_holder *gh) argument
1729 gfs2_glock_dq_wait(struct gfs2_holder *gh) argument
1743 gfs2_glock_dq_uninit(struct gfs2_holder *gh) argument
1761 gfs2_glock_nq_num(struct gfs2_sbd *sdp, u64 number, const struct gfs2_glock_operations *glops, unsigned int state, u16 flags, struct gfs2_holder *gh) argument
1916 const struct gfs2_holder *gh; local
2283 dump_holder(struct seq_file *seq, const struct gfs2_holder *gh, const char *fs_id_buf) argument
2376 const struct gfs2_holder *gh; local
[all...]
H A Dfile.c162 struct gfs2_holder gh; local
169 gfs2_holder_init(ip->i_gl, LM_ST_SHARED, 0, &gh);
170 error = gfs2_glock_nq(&gh);
178 gfs2_glock_dq(&gh);
180 gfs2_holder_uninit(&gh);
224 struct gfs2_holder gh; local
228 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh);
273 gfs2_glock_dq_uninit(&gh);
425 struct gfs2_holder gh; local
432 gfs2_holder_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh);
554 struct gfs2_holder gh; local
809 gfs2_file_direct_read(struct kiocb *iocb, struct iov_iter *to, struct gfs2_holder *gh) argument
872 gfs2_file_direct_write(struct kiocb *iocb, struct iov_iter *from, struct gfs2_holder *gh) argument
950 struct gfs2_holder gh; local
1008 gfs2_file_buffered_write(struct kiocb *iocb, struct iov_iter *from, struct gfs2_holder *gh) argument
1102 struct gfs2_holder gh; local
1370 struct gfs2_holder gh; local
[all...]
H A Dacl.c63 struct gfs2_holder gh; local
72 LM_FLAG_ANY, &gh);
79 gfs2_glock_dq_uninit(&gh);
117 struct gfs2_holder gh; local
130 ret = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh);
151 gfs2_glock_dq_uninit(&gh);
H A Dsuper.c187 struct gfs2_holder gh; local
191 &gh);
216 gfs2_glock_dq_uninit(&gh);
276 struct gfs2_holder gh; local
281 &gh);
310 gfs2_glock_dq_uninit(&gh);
317 struct gfs2_holder gh; member in struct:lfcc
349 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, 0, &lfcc->gh);
391 gfs2_glock_dq_uninit(&lfcc->gh);
491 struct gfs2_holder gh; local
875 struct gfs2_holder *gha, *gh; local
1199 struct gfs2_holder gh; local
1263 struct gfs2_holder *gh = &ip->i_iopen_gh; local
1316 evict_should_delete(struct inode *inode, struct gfs2_holder *gh) argument
1477 struct gfs2_holder gh; local
[all...]
H A Dinode.c627 struct gfs2_holder d_gh, gh; local
651 gfs2_holder_mark_uninitialized(&gh);
766 error = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, GL_SKIP, &gh);
817 gfs2_glock_dq_uninit(&gh);
853 if (gfs2_holder_initialized(&gh))
854 gfs2_glock_dq_uninit(&gh);
892 struct gfs2_holder gh; local
905 error = gfs2_glock_nq_init(gl, LM_ST_SHARED, LM_FLAG_ANY, &gh);
913 gfs2_glock_dq_uninit(&gh);
919 gfs2_glock_dq_uninit(&gh);
952 struct gfs2_holder d_gh, gh; local
1154 struct gfs2_holder d_gh, r_gh, gh; local
2067 struct gfs2_holder gh; local
2102 struct gfs2_holder gh; local
2124 struct gfs2_holder gh; local
2143 struct gfs2_holder gh; local
2162 struct gfs2_holder *gh; local
[all...]
H A Dtrace_gfs2.h200 TP_PROTO(const struct gfs2_holder *gh),
202 TP_ARGS(gh),
212 __entry->dev = gh->gh_gl->gl_name.ln_sbd->sd_vfs->s_dev;
213 __entry->glnum = gh->gh_gl->gl_name.ln_number;
214 __entry->gltype = gh->gh_gl->gl_name.ln_type;
215 __entry->state = glock_trace_state(gh->gh_state);
227 TP_PROTO(const struct gfs2_holder *gh, int queue),
229 TP_ARGS(gh, queue),
240 __entry->dev = gh->gh_gl->gl_name.ln_sbd->sd_vfs->s_dev;
241 __entry->glnum = gh
[all...]
H A Dexport.c95 struct gfs2_holder gh; local
112 error = gfs2_glock_nq_init(dip->i_gl, LM_ST_SHARED, 0, &gh);
118 gfs2_glock_dq_uninit(&gh);
H A Dxattr.c608 struct gfs2_holder gh; local
614 ret = gfs2_glock_nq_init(ip->i_gl, LM_ST_SHARED, LM_FLAG_ANY, &gh);
618 gfs2_holder_mark_uninitialized(&gh);
621 if (gfs2_holder_initialized(&gh))
622 gfs2_glock_dq_uninit(&gh);
1234 struct gfs2_holder gh; local
1244 ret = gfs2_glock_nq_init(ip->i_gl, LM_ST_EXCLUSIVE, 0, &gh);
1252 gfs2_holder_mark_uninitialized(&gh);
1255 if (gfs2_holder_initialized(&gh))
1256 gfs2_glock_dq_uninit(&gh);
1387 struct gfs2_holder gh; local
[all...]
H A Dglops.c512 static int inode_go_held(struct gfs2_holder *gh) argument
514 struct gfs2_glock *gl = gh->gh_gl;
521 if (gh->gh_state != LM_ST_DEFERRED)
526 (gh->gh_state == LM_ST_EXCLUSIVE))
H A Drgrp.c1262 static int update_rgrp_lvb(struct gfs2_rgrpd *rgd, struct gfs2_holder *gh) argument
1266 if (!test_bit(GLF_INSTANTIATE_NEEDED, &gh->gh_gl->gl_flags))
1270 return gfs2_instantiate(gh);
1392 struct gfs2_holder gh; local
1435 LM_FLAG_NODE_SCOPE, &gh);
1449 gfs2_glock_dq_uninit(&gh);
1467 gfs2_glock_dq_uninit(&gh);
H A Dincore.h223 int (*go_held)(struct gfs2_holder *gh);
255 HIF_HOLDER = 6, /* Set for gh that "holds" the glock */
/linux-master/drivers/acpi/arm64/
H A Dgtdt.c41 struct acpi_gtdt_header *gh = platform_timer; local
43 platform_timer += gh->length;
56 struct acpi_gtdt_header *gh = platform_timer; local
58 return gh->type == ACPI_GTDT_TYPE_TIMER_BLOCK;
63 struct acpi_gtdt_header *gh = platform_timer; local
66 if (gh->type != ACPI_GTDT_TYPE_WATCHDOG)
/linux-master/drivers/net/
H A Dgeneve.c489 static int geneve_hlen(struct genevehdr *gh) argument
491 return sizeof(*gh) + gh->opt_len * 4;
500 struct genevehdr *gh, *gh2; local
507 hlen = off_gnv + sizeof(*gh);
508 gh = skb_gro_header(skb, hlen, off_gnv);
509 if (unlikely(!gh))
512 if (gh->ver != GENEVE_VER || gh->oam)
514 gh_len = geneve_hlen(gh);
557 struct genevehdr *gh; local
[all...]
/linux-master/tools/testing/selftests/net/mptcp/
H A Dpm_nl_ctl.c54 struct genlmsghdr *gh; local
62 gh = (void *)(data + off);
63 gh->cmd = cmd;
64 gh->version = version;
65 off += NLMSG_ALIGN(sizeof(*gh));
/linux-master/net/ipv4/
H A Dip_gre.c313 unsigned char *gh; local
330 gh = skb_network_header(skb) +
332 pkt_md = (struct erspan_metadata *)(gh + gre_hdr_len +
/linux-master/net/ipv6/
H A Dip6_gre.c556 unsigned char *gh; local
573 gh = skb_network_header(skb) +
575 pkt_md = (struct erspan_metadata *)(gh + gre_hdr_len +
/linux-master/kernel/trace/
H A Dtrace_events_filter.c2700 DATA_REC(YES, 1, 1, 1, 1, 1, 1, 0, 0, "gh"),

Completed in 428 milliseconds