Searched refs:gl (Results 1 - 25 of 42) sorted by relevance

12

/linux-master/fs/gfs2/
H A Dglock.c57 struct gfs2_glock *gl; /* current glock struct */ member in struct:gfs2_glock_iter
61 typedef void (*glock_examiner) (struct gfs2_glock * gl);
63 static void do_xmote(struct gfs2_glock *gl, struct gfs2_holder *gh, unsigned int target);
65 static void handle_callback(struct gfs2_glock *gl, unsigned int state,
119 * @gl: the glock
121 static void wake_up_glock(struct gfs2_glock *gl) argument
123 wait_queue_head_t *wq = glock_waitqueue(&gl->gl_name);
126 __wake_up(wq, TASK_NORMAL, 1, &gl->gl_name);
131 struct gfs2_glock *gl = container_of(rcu, struct gfs2_glock, gl_rcu); local
133 kfree(gl
155 glock_blocked_by_withdraw(struct gfs2_glock *gl) argument
169 gfs2_glock_free(struct gfs2_glock *gl) argument
188 gfs2_glock_hold(struct gfs2_glock *gl) argument
202 demote_ok(const struct gfs2_glock *gl) argument
216 gfs2_glock_add_to_lru(struct gfs2_glock *gl) argument
233 gfs2_glock_remove_from_lru(struct gfs2_glock *gl) argument
251 __gfs2_glock_queue_work(struct gfs2_glock *gl, unsigned long delay) argument
264 gfs2_glock_queue_work(struct gfs2_glock *gl, unsigned long delay) argument
270 __gfs2_glock_put(struct gfs2_glock *gl) argument
291 gfs2_glock_queue_put(struct gfs2_glock *gl) argument
302 gfs2_glock_put(struct gfs2_glock *gl) argument
324 may_grant(struct gfs2_glock *gl, struct gfs2_holder *current_gh, struct gfs2_holder *gh) argument
384 do_error(struct gfs2_glock *gl, const int ret) argument
408 find_first_holder(const struct gfs2_glock *gl) argument
429 struct gfs2_glock *gl = gh->gh_gl; local
474 do_promote(struct gfs2_glock *gl) argument
508 find_first_waiter(const struct gfs2_glock *gl) argument
526 find_last_waiter(const struct gfs2_glock *gl) argument
542 state_change(struct gfs2_glock *gl, unsigned int new_state) argument
564 gfs2_set_demote(struct gfs2_glock *gl) argument
573 gfs2_demote_wake(struct gfs2_glock *gl) argument
588 finish_xmote(struct gfs2_glock *gl, unsigned int ret) argument
668 is_system_glock(struct gfs2_glock *gl) argument
755 gfs2_glock_hold(gl); variable
853 gfs2_demote_wake(gl); variable
882 glock_set_object(struct gfs2_glock *gl, void *object) argument
903 glock_clear_object(struct gfs2_glock *gl, void *object) argument
919 gfs2_inode_remember_delete(struct gfs2_glock *gl, u64 generation) argument
929 gfs2_inode_already_deleted(struct gfs2_glock *gl, u64 generation) argument
938 gfs2_glock_poke(struct gfs2_glock *gl) argument
951 gfs2_try_evict(struct gfs2_glock *gl) argument
995 gfs2_queue_try_to_evict(struct gfs2_glock *gl) argument
1005 gfs2_queue_verify_evict(struct gfs2_glock *gl) argument
1018 struct gfs2_glock *gl = container_of(dwork, struct gfs2_glock, gl_delete); local
1071 struct gfs2_glock *gl = container_of(work, struct gfs2_glock, gl_work.work); local
1120 struct gfs2_glock *gl; local
1170 struct gfs2_glock *gl, *tmp; local
1266 __gfs2_holder_init(struct gfs2_glock *gl, unsigned int state, u16 flags, struct gfs2_holder *gh, unsigned long ip) argument
1312 gfs2_glock_update_hold_time(struct gfs2_glock *gl, unsigned long start_time) argument
1434 handle_callback(struct gfs2_glock *gl, unsigned int state, unsigned long delay, bool remote) argument
1495 struct gfs2_glock *gl = gh->gh_gl; variable in typeref:struct:gfs2_glock
1574 struct gfs2_glock *gl = gh->gh_gl; local
1633 needs_demote(struct gfs2_glock *gl) argument
1641 struct gfs2_glock *gl = gh->gh_gl; local
1686 struct gfs2_glock *gl = gh->gh_gl; local
1731 struct gfs2_glock *gl = gh->gh_gl; local
1765 struct gfs2_glock *gl; local
1882 gfs2_glock_cb(struct gfs2_glock *gl, unsigned int state) argument
1914 gfs2_should_freeze(const struct gfs2_glock *gl) argument
1942 gfs2_glock_complete(struct gfs2_glock *gl, int ret) argument
1997 struct gfs2_glock *gl; variable in typeref:struct:gfs2_glock
2037 struct gfs2_glock *gl, *next; local
2094 struct gfs2_glock *gl; local
2113 gfs2_cancel_delete_work(struct gfs2_glock *gl) argument
2121 flush_delete_work(struct gfs2_glock *gl) argument
2145 thaw_glock(struct gfs2_glock *gl) argument
2161 clear_glock(struct gfs2_glock *gl) argument
2186 dump_glock(struct seq_file *seq, struct gfs2_glock *gl, bool fsid) argument
2193 dump_glock_func(struct gfs2_glock *gl) argument
2198 withdraw_dq(struct gfs2_glock *gl) argument
2307 gflags2str(char *buf, const struct gfs2_glock *gl) argument
2372 gfs2_dump_glock(struct seq_file *seq, struct gfs2_glock *gl, bool fsid) argument
2415 struct gfs2_glock *gl = iter_ptr; local
2527 struct gfs2_glock *gl = gi->gl; local
2842 struct gfs2_glock *gl; local
[all...]
H A Dglops.c34 static void gfs2_ail_error(struct gfs2_glock *gl, const struct buffer_head *bh) argument
36 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd;
44 gl->gl_name.ln_type, gl->gl_name.ln_number,
45 gfs2_glock2aspace(gl));
52 * @gl: the glock
59 static void __gfs2_ail_flush(struct gfs2_glock *gl, bool fsync, argument
62 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd;
63 struct list_head *head = &gl->gl_ail_list;
77 gfs2_ail_error(gl, b
88 gfs2_ail_empty_gl(struct gfs2_glock *gl) argument
141 gfs2_ail_flush(struct gfs2_glock *gl, bool fsync) argument
165 gfs2_rgrp_metasync(struct gfs2_glock *gl) argument
193 rgrp_go_sync(struct gfs2_glock *gl) argument
222 rgrp_go_inval(struct gfs2_glock *gl, int flags) argument
239 gfs2_rgrp_go_dump(struct seq_file *seq, const struct gfs2_glock *gl, const char *fs_id_buf) argument
248 gfs2_glock2inode(struct gfs2_glock *gl) argument
260 gfs2_glock2rgrp(struct gfs2_glock *gl) argument
285 gfs2_inode_metasync(struct gfs2_glock *gl) argument
303 inode_go_sync(struct gfs2_glock *gl) argument
358 inode_go_inval(struct gfs2_glock *gl, int flags) argument
392 inode_go_demote_ok(const struct gfs2_glock *gl) argument
502 inode_go_instantiate(struct gfs2_glock *gl) argument
514 struct gfs2_glock *gl = gh->gh_gl; local
540 inode_go_dump(struct seq_file *seq, const struct gfs2_glock *gl, const char *fs_id_buf) argument
565 freeze_go_callback(struct gfs2_glock *gl, bool remote) argument
594 freeze_go_xmote_bh(struct gfs2_glock *gl) argument
624 iopen_go_callback(struct gfs2_glock *gl, bool remote) argument
649 inode_go_free(struct gfs2_glock *gl) argument
665 nondisk_go_callback(struct gfs2_glock *gl, bool remote) argument
[all...]
H A Dglock.h127 void (*lm_put_lock) (struct gfs2_glock *gl);
128 int (*lm_lock) (struct gfs2_glock *gl, unsigned int req_state,
130 void (*lm_cancel) (struct gfs2_glock *gl);
139 static inline struct gfs2_holder *gfs2_glock_is_locked_by_me(struct gfs2_glock *gl) argument
145 spin_lock(&gl->gl_lockref.lock);
147 list_for_each_entry(gh, &gl->gl_holders, gh_list) {
155 spin_unlock(&gl->gl_lockref.lock);
160 static inline struct address_space *gfs2_glock2aspace(struct gfs2_glock *gl) argument
162 if (gl->gl_ops->go_flags & GLOF_ASPACE) {
164 container_of(gl, struc
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
[all...]
H A Dglops.h25 int gfs2_inode_metasync(struct gfs2_glock *gl);
26 void gfs2_ail_flush(struct gfs2_glock *gl, bool fsync);
H A Dlock_dlm.c60 * @gl: The glock to update
62 * This assumes that gl->gl_dstamp has been set earlier.
75 static inline void gfs2_update_reply_times(struct gfs2_glock *gl) argument
78 const unsigned gltype = gl->gl_name.ln_type;
79 unsigned index = test_bit(GLF_BLOCKING, &gl->gl_flags) ?
84 rtt = ktime_to_ns(ktime_sub(ktime_get_real(), gl->gl_dstamp));
85 lks = this_cpu_ptr(gl->gl_name.ln_sbd->sd_lkstats);
86 gfs2_update_stats(&gl->gl_stats, index, rtt); /* Local */
90 trace_gfs2_glock_lock_time(gl, rtt);
95 * @gl
102 gfs2_update_request_times(struct gfs2_glock *gl) argument
121 struct gfs2_glock *gl = arg; local
172 struct gfs2_glock *gl = arg; local
209 make_flags(struct gfs2_glock *gl, const unsigned int gfs_flags, const int req) argument
252 gdlm_lock(struct gfs2_glock *gl, unsigned int req_state, unsigned int flags) argument
288 gdlm_put_lock(struct gfs2_glock *gl) argument
330 gdlm_cancel(struct gfs2_glock *gl) argument
[all...]
H A Dtrans.h44 void gfs2_trans_add_data(struct gfs2_glock *gl, struct buffer_head *bh);
45 void gfs2_trans_add_meta(struct gfs2_glock *gl, struct buffer_head *bh);
H A Dmain.c52 struct gfs2_glock *gl = foo; local
54 spin_lock_init(&gl->gl_lockref.lock);
55 INIT_LIST_HEAD(&gl->gl_holders);
56 INIT_LIST_HEAD(&gl->gl_lru);
57 INIT_LIST_HEAD(&gl->gl_ail_list);
58 atomic_set(&gl->gl_ail_count, 0);
59 atomic_set(&gl->gl_revokes, 0);
H A Dtrace_gfs2.h92 TP_PROTO(const struct gfs2_glock *gl, unsigned int new_state),
94 TP_ARGS(gl, new_state),
108 __entry->dev = gl->gl_name.ln_sbd->sd_vfs->s_dev;
109 __entry->glnum = gl->gl_name.ln_number;
110 __entry->gltype = gl->gl_name.ln_type;
111 __entry->cur_state = glock_trace_state(gl->gl_state);
113 __entry->tgt_state = glock_trace_state(gl->gl_target);
114 __entry->dmt_state = glock_trace_state(gl->gl_demote_state);
115 __entry->flags = gl->gl_flags | (gl
[all...]
H A Dmeta_io.h53 struct buffer_head *gfs2_meta_new(struct gfs2_glock *gl, u64 blkno);
54 int gfs2_meta_read(struct gfs2_glock *gl, u64 blkno, int flags,
57 struct buffer_head *gfs2_getbuf(struct gfs2_glock *gl, u64 blkno,
75 struct buffer_head *gfs2_meta_ra(struct gfs2_glock *gl, u64 dblock, u32 extlen);
H A Dmeta_io.c107 * @gl: the glock
114 struct buffer_head *gfs2_getbuf(struct gfs2_glock *gl, u64 blkno, int create) argument
116 struct address_space *mapping = gfs2_glock2aspace(gl);
117 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd;
175 * @gl: The glock associated with this block
181 struct buffer_head *gfs2_meta_new(struct gfs2_glock *gl, u64 blkno) argument
184 bh = gfs2_getbuf(gl, blkno, CREATE);
239 * @gl: The glock covering the block
248 int gfs2_meta_read(struct gfs2_glock *gl, u64 blkno, int flags, argument
251 struct gfs2_sbd *sdp = gl
481 struct gfs2_glock *gl = ip->i_gl; local
508 gfs2_meta_ra(struct gfs2_glock *gl, u64 dblock, u32 extlen) argument
[all...]
H A Dtrans.c163 static struct gfs2_bufdata *gfs2_alloc_bufdata(struct gfs2_glock *gl, argument
170 bd->bd_gl = gl;
180 * @gl: The inode glock associated with the buffer
192 void gfs2_trans_add_data(struct gfs2_glock *gl, struct buffer_head *bh) argument
195 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd;
209 bd = gfs2_alloc_bufdata(gl, bh);
215 gfs2_assert(sdp, bd->bd_gl == gl);
229 void gfs2_trans_add_meta(struct gfs2_glock *gl, struct buffer_head *bh) argument
232 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd;
251 bd = gfs2_alloc_bufdata(gl, b
[all...]
H A Dlog.h86 void gfs2_log_flush(struct gfs2_sbd *sdp, struct gfs2_glock *gl,
94 void gfs2_glock_remove_revoke(struct gfs2_glock *gl);
H A Dincore.h38 typedef void (*gfs2_glop_bh_t) (struct gfs2_glock *gl, unsigned int ret);
218 int (*go_sync) (struct gfs2_glock *gl);
219 int (*go_xmote_bh)(struct gfs2_glock *gl);
220 void (*go_inval) (struct gfs2_glock *gl, int flags);
221 int (*go_demote_ok) (const struct gfs2_glock *gl);
222 int (*go_instantiate) (struct gfs2_glock *gl);
224 void (*go_dump)(struct seq_file *seq, const struct gfs2_glock *gl,
226 void (*go_callback)(struct gfs2_glock *gl, bool remote);
227 void (*go_free)(struct gfs2_glock *gl);
853 static inline void gfs2_glstats_inc(struct gfs2_glock *gl, in argument
858 gfs2_sbstats_inc(const struct gfs2_glock *gl, int which) argument
[all...]
H A Dsuper.c1031 struct gfs2_glock *gl = ip->i_iopen_gh.gh_gl; local
1032 if (test_bit(GLF_DEMOTE, &gl->gl_flags))
1044 struct gfs2_glock *gl = ip->i_iopen_gh.gh_gl; local
1046 gfs2_glock_hold(gl);
1047 if (!gfs2_queue_try_to_evict(gl))
1048 gfs2_glock_queue_put(gl);
1178 struct gfs2_glock *gl = ip->i_gl; local
1180 if (unlikely(!gl)) {
1186 truncate_inode_pages(gfs2_glock2aspace(gl), 0);
1189 if (atomic_read(&gl
1251 gfs2_glock_put_eventually(struct gfs2_glock *gl) argument
1516 struct gfs2_glock *gl = ip->i_iopen_gh.gh_gl; local
[all...]
H A Dlops.c73 struct gfs2_glock *gl = bd->bd_gl; local
74 struct gfs2_sbd *sdp = gl->gl_name.ln_sbd;
75 struct gfs2_rgrpd *rgd = gfs2_glock2rgrp(gl);
76 unsigned int index = bd->bd_bh->b_blocknr - gl->gl_name.ln_number;
122 struct gfs2_glock *gl = bd->bd_gl; local
123 list_add(&bd->bd_ail_gl_list, &gl->gl_ail_list);
124 atomic_inc(&gl->gl_ail_count);
784 struct gfs2_glock *gl = ip->i_gl; local
807 bh_ip = gfs2_meta_new(gl, blkno);
894 struct gfs2_glock *gl; local
1008 struct gfs2_glock *gl = ip->i_gl; local
[all...]
H A Drgrp.c720 struct gfs2_glock *gl; local
724 gl = rgd->rd_gl;
728 if (gl) {
729 if (gl->gl_state != LM_ST_UNLOCKED) {
730 gfs2_glock_cb(gl, LM_ST_UNLOCKED);
731 flush_delayed_work(&gl->gl_work);
734 glock_clear_object(gl, rgd);
735 gfs2_glock_put(gl);
1037 struct gfs2_glock *gl = ip->i_gl; local
1044 if (!gfs2_glock_is_locked_by_me(gl)) {
1199 gfs2_rgrp_go_instantiate(struct gfs2_glock *gl) argument
1846 struct gfs2_glock *gl; local
1925 const struct gfs2_glock *gl = rgd->rd_gl; local
2019 struct gfs2_glock *gl = rgd->rd_gl; local
[all...]
H A Dlog.c106 struct gfs2_glock *gl = NULL; variable in typeref:struct:gfs2_glock
135 if (gl == bd->bd_gl)
137 gl = bd->bd_gl;
772 struct gfs2_glock *gl = bd->bd_gl; local
775 if (atomic_inc_return(&gl->gl_revokes) == 1)
776 gfs2_glock_hold(gl);
781 set_bit(GLF_LFLUSH, &gl->gl_flags);
785 void gfs2_glock_remove_revoke(struct gfs2_glock *gl) argument
787 if (atomic_dec_return(&gl->gl_revokes) == 0) {
788 clear_bit(GLF_LFLUSH, &gl
1040 gfs2_log_flush(struct gfs2_sbd *sdp, struct gfs2_glock *gl, u32 flags) argument
[all...]
H A Drgrp.h34 int gfs2_rgrp_go_instantiate(struct gfs2_glock *gl);
/linux-master/drivers/target/iscsi/cxgbit/
H A Dcxgbit_main.c219 cxgbit_copy_frags(struct sk_buff *skb, const struct pkt_gl *gl, argument
226 __skb_fill_page_desc(skb, skb_frag_idx, gl->frags[0].page,
227 gl->frags[0].offset + offset,
228 gl->frags[0].size - offset);
229 for (i = 1; i < gl->nfrags; i++)
231 gl->frags[i].page,
232 gl->frags[i].offset,
233 gl->frags[i].size);
235 skb_shinfo(skb)->nr_frags += gl->nfrags;
238 get_page(gl
242 cxgbit_lro_add_packet_gl(struct sk_buff *skb, u8 op, const struct pkt_gl *gl) argument
316 cxgbit_lro_init_skb(struct cxgbit_sock *csk, u8 op, const struct pkt_gl *gl, const __be64 *rsp, struct napi_struct *napi) argument
379 cxgbit_lro_receive(struct cxgbit_sock *csk, u8 op, const __be64 *rsp, const struct pkt_gl *gl, struct t4_lro_mgr *lro_mgr, struct napi_struct *napi) argument
434 cxgbit_uld_lro_rx_handler(void *hndl, const __be64 *rsp, const struct pkt_gl *gl, struct t4_lro_mgr *lro_mgr, struct napi_struct *napi) argument
[all...]
/linux-master/drivers/net/ethernet/chelsio/cxgb4vf/
H A Dsge.c1463 * @gl: source internal packet gather list
1470 const struct pkt_gl *gl,
1476 __skb_fill_page_desc(skb, 0, gl->frags[0].page,
1477 gl->frags[0].offset + offset,
1478 gl->frags[0].size - offset);
1479 skb_shinfo(skb)->nr_frags = gl->nfrags;
1480 for (i = 1; i < gl->nfrags; i++)
1481 __skb_fill_page_desc(skb, i, gl->frags[i].page,
1482 gl->frags[i].offset,
1483 gl
1469 copy_frags(struct sk_buff *skb, const struct pkt_gl *gl, unsigned int offset) argument
1498 t4vf_pktgl_to_skb(const struct pkt_gl *gl, unsigned int skb_len, unsigned int pull_len) argument
1546 t4vf_pktgl_free(const struct pkt_gl *gl) argument
1564 do_gro(struct sge_eth_rxq *rxq, const struct pkt_gl *gl, const struct cpl_rx_pkt *pkt) argument
1611 t4vf_ethrx_handler(struct sge_rspq *rspq, const __be64 *rsp, const struct pkt_gl *gl) argument
1708 restore_rx_bufs(const struct pkt_gl *gl, struct sge_fl *fl, int frags) argument
1777 struct pkt_gl gl; local
[all...]
/linux-master/drivers/net/ethernet/chelsio/inline_crypto/chtls/
H A Dchtls_main.c339 static struct sk_buff *copy_gl_to_skb_pkt(const struct pkt_gl *gl, argument
349 skb = alloc_skb(gl->tot_len + sizeof(struct cpl_pass_accept_req)
353 __skb_put(skb, gl->tot_len + sizeof(struct cpl_pass_accept_req)
358 , gl->va + pktshift,
359 gl->tot_len - pktshift);
365 const struct pkt_gl *gl, const __be64 *rsp)
371 skb = copy_gl_to_skb_pkt(gl, rsp, cdev->lldi->sge_pktshift);
439 const struct pkt_gl *gl)
448 if (chtls_recv_packet(cdev, gl, rsp) < 0)
453 if (!gl)
364 chtls_recv_packet(struct chtls_dev *cdev, const struct pkt_gl *gl, const __be64 *rsp) argument
438 chtls_uld_rx_handler(void *handle, const __be64 *rsp, const struct pkt_gl *gl) argument
[all...]
/linux-master/arch/arm64/boot/dts/marvell/
H A DMakefile10 dtb-$(CONFIG_ARCH_MVEBU) += armada-3720-gl-mv1000.dtb
/linux-master/scripts/dtc/include-prefixes/arm64/marvell/
H A DMakefile10 dtb-$(CONFIG_ARCH_MVEBU) += armada-3720-gl-mv1000.dtb
/linux-master/drivers/infiniband/hw/cxgb4/
H A Ddevice.c1104 static inline struct sk_buff *copy_gl_to_skb_pkt(const struct pkt_gl *gl, argument
1117 skb = alloc_skb(gl->tot_len + sizeof(struct cpl_pass_accept_req) +
1122 __skb_put(skb, gl->tot_len + sizeof(struct cpl_pass_accept_req) +
1131 * the packet data from the gl
1137 gl->va + pktshift,
1138 gl->tot_len - pktshift);
1142 static inline int recv_rx_pkt(struct c4iw_dev *dev, const struct pkt_gl *gl, argument
1151 skb = copy_gl_to_skb_pkt(gl , rsp, dev->rdev.lldi.sge_pktshift);
1167 const struct pkt_gl *gl)
1174 if (gl
1166 c4iw_uld_rx_handler(void *handle, const __be64 *rsp, const struct pkt_gl *gl) argument
[all...]
/linux-master/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_uld.h483 const struct pkt_gl *gl);
487 const struct pkt_gl *gl,
524 struct sk_buff *cxgb4_pktgl_to_skb(const struct pkt_gl *gl,

Completed in 267 milliseconds

12