Home
last modified time | relevance | path

Searched refs:cursor (Results 1 – 25 of 164) sorted by relevance

1234567

/linux/tools/verification/rvgen/rvgen/
H A Dautomata.py113 for cursor, line in enumerate(self.__dot_lines):
117 return cursor
123 cursor = 0 # make pyright happy
125 for cursor, line in enumerate(self.__dot_lines):
138 cursor += 1 # skip initial state transition
139 if cursor == len(self.__dot_lines):
142 return cursor
151 cursor = self.__get_cursor_begin_states()
154 for line in islice(self.__dot_lines, cursor, None):
193 cursor
[all...]
/linux/scripts/
H A Dasn1_compiler.c806 struct token *cursor; in parse() local
812 cursor = type->name; in parse()
814 if (cursor[0].token_type != TOKEN_TYPE_NAME || in parse()
815 cursor[1].token_type != TOKEN_ASSIGNMENT) in parse()
817 cursor += 2; in parse()
819 type->element = parse_type(&cursor, type[1].name, NULL); in parse()
822 if (cursor != type[1].name) { in parse()
824 filename, cursor->line, cursor->content); in parse()
858 struct token *cursor = *_cursor; in parse_type() local
866 element->tag = token_to_tag[cursor->token_type]; in parse_type()
[all …]
/linux/net/ceph/
H A Dmessenger.c725 static void ceph_msg_data_bio_cursor_init(struct ceph_msg_data_cursor *cursor, in ceph_msg_data_bio_cursor_init() argument
728 struct ceph_msg_data *data = cursor->data; in ceph_msg_data_bio_cursor_init()
729 struct ceph_bio_iter *it = &cursor->bio_iter; in ceph_msg_data_bio_cursor_init()
731 cursor->resid = min_t(size_t, length, data->bio_length); in ceph_msg_data_bio_cursor_init()
733 if (cursor->resid < it->iter.bi_size) in ceph_msg_data_bio_cursor_init()
734 it->iter.bi_size = cursor->resid; in ceph_msg_data_bio_cursor_init()
736 BUG_ON(cursor->resid < bio_iter_len(it->bio, it->iter)); in ceph_msg_data_bio_cursor_init()
739 static struct page *ceph_msg_data_bio_next(struct ceph_msg_data_cursor *cursor, in ceph_msg_data_bio_next() argument
743 struct bio_vec bv = bio_iter_iovec(cursor->bio_iter.bio, in ceph_msg_data_bio_next()
744 cursor->bio_iter.iter); in ceph_msg_data_bio_next()
[all …]
/linux/rust/syn/
H A Dparse.rs268 if let Some((unexpected_span, delimiter)) = span_of_unexpected_ignoring_nones(self.cursor()) in drop()
280 Display::fmt(&self.cursor().token_stream(), f) in fmt()
286 Debug::fmt(&self.cursor().token_stream(), f) in fmt()
340 cursor: Cursor<'c>, field
356 &self.cursor in deref()
374 error::new_at(self.scope, self.cursor, message) in error()
389 cursor: Cursor, in new_parse_buffer()
395 cell: Cell::new(unsafe { mem::transmute::<Cursor, Cursor<'static>>(cursor) }), in new_parse_buffer()
447 fn span_of_unexpected_ignoring_nones(mut cursor: Cursor) -> Option<(Span, Delimiter)> { in span_of_unexpected_ignoring_nones()
448 if cursor.eof() { in span_of_unexpected_ignoring_nones()
[all …]
H A Dverbatim.rs9 let end = end.cursor(); in between()
10 let mut cursor = begin.cursor(); in between() localVariable
11 assert!(crate::buffer::same_buffer(end, cursor)); in between()
14 while cursor != end { in between()
15 let (tt, next) = cursor.token_tree().unwrap(); in between()
22 if let Some((inside, _span, after)) = cursor.group(Delimiter::None) { in between()
24 cursor = inside; in between()
32 cursor = next; in between()
H A Dlookahead.rs66 cursor: Cursor<'a>, field
70 pub(crate) fn new(scope: Span, cursor: Cursor) -> Lookahead1 { in new()
73 cursor, in new()
83 if peek(lookahead.cursor) { in peek_impl()
118 *display = match self.cursor.scope_delimiter() { in error()
129 if self.cursor.eof() { in error()
132 Error::new(self.cursor.span(), "unexpected token") in error()
137 error::new_at(self.scope, self.cursor, message) in error()
141 error::new_at(self.scope, self.cursor, message) in error()
146 error::new_at(self.scope, self.cursor, message) in error()
[all …]
H A Ddiscouraged.rs171 if !crate::buffer::same_scope(self.cursor(), fork.cursor()) { in advance_to()
201 .set(unsafe { mem::transmute::<Cursor, Cursor<'static>>(fork.cursor()) }); in advance_to()
215 self.step(|cursor| { in parse_any_delimiter()
216 if let Some((content, delimiter, span, rest)) = cursor.any_group() { in parse_any_delimiter()
218 let nested = crate::parse::advance_step_cursor(cursor, content); in parse_any_delimiter()
223 Err(cursor.error("expected any delimiter")) in parse_any_delimiter()
H A Dtoken.rs130 fn peek(cursor: Cursor) -> bool; in peek()
157 fn peek(cursor: Cursor) -> bool; in peek()
169 fn peek(cursor: Cursor) -> bool {
170 cursor.$get().is_some()
194 fn peek(cursor: Cursor) -> bool { in peek()
195 <Self as CustomToken>::peek(cursor) in peek()
290 fn peek(cursor: Cursor) -> bool {
291 parsing::peek_keyword(cursor, $token)
429 fn peek(cursor: Cursor) -> bool {
430 parsing::peek_punct(cursor, $token)
[all …]
H A Dgroup.rs85 input.step(|cursor| { in parse_delimited()
86 if let Some((content, span, rest)) = cursor.group(delimiter) { in parse_delimited()
88 let nested = crate::parse::advance_step_cursor(cursor, content); in parse_delimited()
99 Err(cursor.error(message)) in parse_delimited()
149 ($content:ident in $cursor:expr) => {
150 match $crate::__private::parse_parens(&$cursor) {
227 ($content:ident in $cursor:expr) => {
228 match $crate::__private::parse_braces(&$cursor) {
282 ($content:ident in $cursor:expr) => {
283 match $crate::__private::parse_brackets(&$cursor) {
H A Dident.rs80 input.step(|cursor| { in parse()
81 if let Some((ident, rest)) = cursor.ident() { in parse()
85 Err(cursor.error(format_args!( in parse()
91 Err(cursor.error("expected identifier")) in parse()
98 fn peek(cursor: Cursor) -> bool { in peek()
99 if let Some((ident, _rest)) = cursor.ident() { in peek()
H A Dext.rs90 input.step(|cursor| match cursor.ident() { in parse_any()
92 None => Err(cursor.error("expected ident")), in parse_any()
111 fn peek(cursor: Cursor) -> bool { in peek()
112 cursor.ident().is_some() in peek()
H A Dscan_expr.rs201 Input::Keyword(expected) => input.step(|cursor| match cursor.ident() { in scan_expr()
203 _ => Ok((false, *cursor)), in scan_expr()
205 Input::Punct(expected) => input.step(|cursor| { in scan_expr()
206 let begin = *cursor; in scan_expr()
207 let mut cursor = begin; in scan_expr() localVariable
209 match cursor.punct() { in scan_expr()
215 cursor = rest; in scan_expr()
226 && input.step(|cursor| match cursor.group(Delimiter::Brace) { in scan_expr()
228 None => Ok((false, *cursor)), in scan_expr()
231 Input::ConsumeDelimiter => input.step(|cursor| match cursor.any_group() { in scan_expr()
[all …]
/linux/drivers/gpu/drm/ttm/
H A Dttm_resource.c42 ttm_resource_cursor_clear_bulk(struct ttm_resource_cursor *cursor) in ttm_resource_cursor_clear_bulk() argument
44 lockdep_assert_held(&cursor->man->bdev->lru_lock); in ttm_resource_cursor_clear_bulk()
46 cursor->bulk = NULL; in ttm_resource_cursor_clear_bulk()
47 list_del_init(&cursor->bulk_link); in ttm_resource_cursor_clear_bulk()
52 struct ttm_resource_cursor *cursor) in ttm_resource_cursor_move_bulk_tail() argument
56 lockdep_assert_held(&cursor->man->bdev->lru_lock); in ttm_resource_cursor_move_bulk_tail()
58 if (WARN_ON_ONCE(bulk != cursor->bulk)) { in ttm_resource_cursor_move_bulk_tail()
59 list_del_init(&cursor->bulk_link); in ttm_resource_cursor_move_bulk_tail()
63 pos = &bulk->pos[cursor->mem_type][cursor->priority]; in ttm_resource_cursor_move_bulk_tail()
65 list_move(&cursor->hitch.link, &pos->last->lru.link); in ttm_resource_cursor_move_bulk_tail()
[all …]
/linux/tools/perf/util/
H A Dcallchain.h139 * A callchain cursor is a single linked list that
148 /* Indicate valid cursor node for LBR stitch */
161 struct callchain_cursor_node cursor; member
196 struct callchain_cursor *cursor,
199 int callchain_merge(struct callchain_cursor *cursor,
202 void callchain_cursor_reset(struct callchain_cursor *cursor);
204 int callchain_cursor_append(struct callchain_cursor *cursor, u64 ip,
210 /* Close a cursor writing session. Initialize for the reader */
211 static inline void callchain_cursor_commit(struct callchain_cursor *cursor) in callchain_cursor_commit() argument
213 if (cursor in callchain_cursor_commit()
221 callchain_cursor_current(struct callchain_cursor * cursor) callchain_cursor_current() argument
229 callchain_cursor_advance(struct callchain_cursor * cursor) callchain_cursor_advance() argument
[all...]
H A Dcallchain.c631 fill_node(struct callchain_node *node, struct callchain_cursor *cursor) in fill_node()
635 node->val_nr = cursor->nr - cursor->pos; in fill_node()
639 cursor_node = callchain_cursor_current(cursor); in fill_node()
696 callchain_cursor_advance(cursor); in match_chain_strings()
697 cursor_node = callchain_cursor_current(cursor); in match_chain_strings()
704 struct callchain_cursor *cursor, in match_chain_strings()
713 if (fill_node(new, cursor) < 0) {
872 struct callchain_cursor *cursor, in split_add_child()
904 if (idx_total < cursor in append_chain_children()
584 fill_node(struct callchain_node * node,struct callchain_cursor * cursor) fill_node() argument
657 add_child(struct callchain_node * parent,struct callchain_cursor * cursor,u64 period) add_child() argument
825 split_add_child(struct callchain_node * parent,struct callchain_cursor * cursor,struct callchain_list * to_split,u64 idx_parents,u64 idx_local,u64 period) split_add_child() argument
903 append_chain_children(struct callchain_node * root,struct callchain_cursor * cursor,u64 period) append_chain_children() argument
950 append_chain(struct callchain_node * root,struct callchain_cursor * cursor,u64 period) append_chain() argument
1013 callchain_append(struct callchain_root * root,struct callchain_cursor * cursor,u64 period) callchain_append() argument
1034 merge_chain_branch(struct callchain_cursor * cursor,struct callchain_node * dst,struct callchain_node * src) merge_chain_branch() argument
1082 callchain_merge(struct callchain_cursor * cursor,struct callchain_root * dst,struct callchain_root * src) callchain_merge() argument
1088 callchain_cursor_append(struct callchain_cursor * cursor,u64 ip,struct map_symbol * ms,bool branch,struct branch_flags * flags,int nr_loop_iter,u64 iter_cycles,u64 branch_from,const char * srcline) callchain_cursor_append() argument
1125 sample__resolve_callchain(struct perf_sample * sample,struct callchain_cursor * cursor,struct symbol ** parent,struct evsel * evsel,struct addr_location * al,int max_stack) sample__resolve_callchain() argument
1605 struct callchain_cursor *cursor = vcursor; callchain_cursor__delete() local
1627 struct callchain_cursor *cursor; get_tls_callchain_cursor() local
1673 callchain_cursor_reset(struct callchain_cursor * cursor) callchain_cursor_reset() argument
1813 struct callchain_cursor *cursor = get_tls_callchain_cursor(); sample__for_each_callchain_node() local
[all...]
H A Dmachine.c2136 static int append_inlines(struct callchain_cursor *cursor, struct map_symbol *ms, u64 ip, in append_inlines()
2172 ret = callchain_cursor_append(cursor, ip, &ilist_ms, in add_callchain_ip()
2176 ret = callchain_cursor_append(cursor, ip, &ilist_ms, false, in add_callchain_ip()
2190 struct callchain_cursor *cursor, in add_callchain_ip()
2233 callchain_cursor_reset(cursor); in add_callchain_ip()
2254 callchain_cursor_reset(cursor); in sample__resolve_bstack()
2270 if (append_inlines(cursor, &ms, ip, branch, flags, nr_loop_iter, in save_iterations()
2275 err = callchain_cursor_append(cursor, ip, &ms,
2371 struct callchain_cursor *cursor, in save_lbr_cursor_node()
2385 err = add_callchain_ip(thread, cursor, paren in save_lbr_cursor_node()
2093 append_inlines(struct callchain_cursor * cursor,struct map_symbol * ms,u64 ip,bool branch,struct branch_flags * flags,int nr_loop_iter,u64 iter_cycles,u64 branch_from) append_inlines() argument
2147 add_callchain_ip(struct thread * thread,struct callchain_cursor * cursor,struct symbol ** parent,struct addr_location * root_al,u8 * cpumode,u64 ip,bool branch,struct branch_flags * flags,struct iterations * iter,u64 branch_from,bool symbols) add_callchain_ip() argument
2328 lbr_callchain_add_kernel_ip(struct thread * thread,struct callchain_cursor * cursor,struct perf_sample * sample,struct symbol ** parent,struct addr_location * root_al,u64 branch_from,bool callee,int end,bool symbols) lbr_callchain_add_kernel_ip() argument
2365 save_lbr_cursor_node(struct thread * thread,struct callchain_cursor * cursor,int idx) save_lbr_cursor_node() argument
2394 lbr_callchain_add_lbr_ip(struct thread * thread,struct callchain_cursor * cursor,struct perf_sample * sample,struct symbol ** parent,struct addr_location * root_al,u64 * branch_from,bool callee,bool symbols) lbr_callchain_add_lbr_ip() argument
2508 lbr_callchain_add_stitched_lbr_ip(struct thread * thread,struct callchain_cursor * cursor) lbr_callchain_add_stitched_lbr_ip() argument
2662 resolve_lbr_callchain_sample(struct thread * thread,struct callchain_cursor * cursor,struct perf_sample * sample,struct symbol ** parent,struct addr_location * root_al,int max_stack,unsigned int max_lbr,bool symbols) resolve_lbr_callchain_sample() argument
2750 find_prev_cpumode(struct ip_callchain * chain,struct thread * thread,struct callchain_cursor * cursor,struct symbol ** parent,struct addr_location * root_al,u8 * cpumode,int ent,bool symbols) find_prev_cpumode() argument
2780 thread__resolve_callchain_sample(struct thread * thread,struct callchain_cursor * cursor,struct evsel * evsel,struct perf_sample * sample,struct symbol ** parent,struct addr_location * root_al,int max_stack,bool symbols) thread__resolve_callchain_sample() argument
2964 struct callchain_cursor *cursor = arg; unwind_entry() local
2988 thread__resolve_callchain_unwind(struct thread * thread,struct callchain_cursor * cursor,struct evsel * evsel,struct perf_sample * sample,int max_stack,bool symbols) thread__resolve_callchain_unwind() argument
3011 __thread__resolve_callchain(struct thread * thread,struct callchain_cursor * cursor,struct evsel * evsel,struct perf_sample * sample,struct symbol ** parent,struct addr_location * root_al,int max_stack,bool symbols) __thread__resolve_callchain() argument
[all...]
/linux/drivers/video/fbdev/
H A Dpmag-aa-fb.c104 static int aafb_cursor(struct fb_info *info, struct fb_cursor *cursor) in aafb_cursor() argument
108 if (cursor->image.height > BT431_CURSOR_SIZE || in aafb_cursor()
109 cursor->image.width > BT431_CURSOR_SIZE) { in aafb_cursor()
114 if (!cursor->enable) in aafb_cursor()
117 if (cursor->set & FB_CUR_SETPOS) in aafb_cursor()
119 cursor->image.dx, cursor->image.dy); in aafb_cursor()
120 if (cursor->set & FB_CUR_SETCMAP) { in aafb_cursor()
121 u8 fg = cursor->image.fg_color ? 0xf : 0x0; in aafb_cursor()
122 u8 bg = cursor->image.bg_color ? 0xf : 0x0; in aafb_cursor()
128 if (cursor->set & (FB_CUR_SETSIZE | FB_CUR_SETSHAPE | FB_CUR_SETIMAGE)) in aafb_cursor()
[all …]
/linux/drivers/accessibility/speakup/
H A DDefaultKeyAssignments12 InsKeyPad-8 say from top of screen to reading cursor.
18 InsKeyPad-4 say from left edge of line to reading cursor.
20 InsKeyPad-6 Say from reading cursor to right edge of line.
26 InsKeyPad-plus Say from reading cursor line to bottom of screen.
27 KeyPad-Minus Park reading cursor (toggle)
31 InsKeyPad-9 Move reading cursor to top of screen (insert pgup)
32 InsKeyPad-3 Move reading cursor to bottom of screen (insert pgdn)
33 InsKeyPad-7 Move reading cursor to left edge of screen (insert home)
34 InsKeyPad-1 Move reading cursor to right edge of screen (insert end)
35 ControlKeyPad-1 Move reading cursor to last character on current line.
[all …]
/linux/drivers/gpu/drm/nouveau/dispnv04/
H A Ddisp.c90 if (nv_crtc->cursor.nvbo) { in nv04_display_fini()
91 if (nv_crtc->cursor.set_offset) in nv04_display_fini()
92 nouveau_bo_unmap(nv_crtc->cursor.nvbo); in nv04_display_fini()
93 nouveau_bo_unpin(nv_crtc->cursor.nvbo); in nv04_display_fini()
144 if (!nv_crtc->cursor.nvbo) in nv04_display_init()
147 ret = nouveau_bo_pin(nv_crtc->cursor.nvbo, in nv04_display_init()
149 if (!ret && nv_crtc->cursor.set_offset) in nv04_display_init()
150 ret = nouveau_bo_map(nv_crtc->cursor.nvbo); in nv04_display_init()
175 if (!nv_crtc->cursor.nvbo) in nv04_display_init()
178 if (nv_crtc->cursor.set_offset) in nv04_display_init()
[all …]
/linux/lib/
H A Dassoc_array.c27 const struct assoc_array_ptr *cursor, *ptr, *parent; in assoc_array_subtree_iterate() local
31 cursor = root; in assoc_array_subtree_iterate()
34 if (assoc_array_ptr_is_shortcut(cursor)) { in assoc_array_subtree_iterate()
36 shortcut = assoc_array_ptr_to_shortcut(cursor); in assoc_array_subtree_iterate()
37 cursor = READ_ONCE(shortcut->next_node); /* Address dependency. */ in assoc_array_subtree_iterate()
40 node = assoc_array_ptr_to_node(cursor); in assoc_array_subtree_iterate()
79 node = assoc_array_ptr_to_node(cursor); in assoc_array_subtree_iterate()
83 cursor = ptr; in assoc_array_subtree_iterate()
97 cursor = parent; in assoc_array_subtree_iterate()
105 cursor = parent; in assoc_array_subtree_iterate()
[all …]
/linux/net/rxrpc/
H A Dpeer_event.c261 u8 cursor) in rxrpc_peer_keepalive_dispatch() argument
286 cursor, peer->debug_id, slot, &peer->srx.transport); in rxrpc_peer_keepalive_dispatch()
298 slot += cursor; in rxrpc_peer_keepalive_dispatch()
322 u8 cursor, stop; in rxrpc_peer_keepalive_worker() local
327 cursor = rxnet->peer_keepalive_cursor; in rxrpc_peer_keepalive_worker()
328 _enter("%lld,%u", base - now, cursor); in rxrpc_peer_keepalive_worker()
343 stop = cursor + ARRAY_SIZE(rxnet->peer_keepalive); in rxrpc_peer_keepalive_worker()
344 while (base <= now && (s8)(cursor - stop) < 0) { in rxrpc_peer_keepalive_worker()
345 list_splice_tail_init(&rxnet->peer_keepalive[cursor & mask], in rxrpc_peer_keepalive_worker()
348 cursor++; in rxrpc_peer_keepalive_worker()
[all …]
H A Dconn_service.c67 struct rxrpc_connection *cursor = NULL; in rxrpc_publish_service_conn() local
77 cursor = rb_entry(parent, in rxrpc_publish_service_conn()
80 if (cursor->proto.index_key < k.index_key) in rxrpc_publish_service_conn()
82 else if (cursor->proto.index_key > k.index_key) in rxrpc_publish_service_conn()
97 if (refcount_read(&cursor->ref) == 0) in rxrpc_publish_service_conn()
109 rb_replace_node_rcu(&cursor->service_node, in rxrpc_publish_service_conn()
112 clear_bit(RXRPC_CONN_IN_SERVICE_CONNS, &cursor->flags); in rxrpc_publish_service_conn()
/linux/drivers/firewire/
H A Dphy-packet-definitions.h219 const u32 *cursor; member
226 const u32 *self_id_sequence, *cursor; in self_id_sequence_enumerator_next() local
231 if (enumerator->cursor == NULL || enumerator->quadlet_count == 0) in self_id_sequence_enumerator_next()
233 cursor = enumerator->cursor; in self_id_sequence_enumerator_next()
236 quadlet = *cursor; in self_id_sequence_enumerator_next()
242 ++cursor; in self_id_sequence_enumerator_next()
244 quadlet = *cursor; in self_id_sequence_enumerator_next()
253 self_id_sequence = enumerator->cursor; in self_id_sequence_enumerator_next()
255 enumerator->cursor += count; in self_id_sequence_enumerator_next()
/linux/Documentation/admin-guide/
H A Dvga-softcursor.rst1 Software cursor for VGA
7 Linux now has some ability to manipulate cursor appearance. Normally,
8 you can set the size of hardware cursor. You can now play a few new
9 tricks: you can make your cursor look like a non-blinking red block,
11 that character and still choose whether the original hardware cursor
15 The cursor appearance is controlled by a ``<ESC>[?1;2;3c`` escape sequence
20 specifies cursor size::
27 + 16 if you want the software cursor to be applied
/linux/fs/netfs/
H A Dfscache_volume.c175 struct fscache_volume *cursor; in fscache_hash_volume() local
184 hlist_bl_for_each_entry(cursor, p, h, hash_link) { in fscache_hash_volume()
185 if (fscache_volume_same(candidate, cursor)) { in fscache_hash_volume()
186 if (!test_bit(FSCACHE_VOLUME_RELINQUISHED, &cursor->flags)) in fscache_hash_volume()
188 fscache_see_volume(cursor, fscache_volume_get_hash_collision); in fscache_hash_volume()
189 set_bit(FSCACHE_VOLUME_COLLIDED_WITH, &cursor->flags); in fscache_hash_volume()
191 collidee_debug_id = cursor->debug_id; in fscache_hash_volume()
204 fscache_see_volume(cursor, fscache_volume_collision); in fscache_hash_volume()
355 struct fscache_volume *cursor; in fscache_wake_pending_volume() local
358 hlist_bl_for_each_entry(cursor, p, h, hash_link) { in fscache_wake_pending_volume()
[all …]

1234567