| /linux/drivers/dma-buf/ |
| H A D | dma-resv.c | 367 static void dma_resv_iter_restart_unlocked(struct dma_resv_iter *cursor) in dma_resv_iter_restart_unlocked() argument 369 cursor->index = 0; in dma_resv_iter_restart_unlocked() 370 cursor->num_fences = 0; in dma_resv_iter_restart_unlocked() 371 cursor->fences = dma_resv_fences_list(cursor->obj); in dma_resv_iter_restart_unlocked() 372 if (cursor->fences) in dma_resv_iter_restart_unlocked() 373 cursor->num_fences = cursor->fences->num_fences; in dma_resv_iter_restart_unlocked() 374 cursor->is_restarted = true; in dma_resv_iter_restart_unlocked() 378 static void dma_resv_iter_walk_unlocked(struct dma_resv_iter *cursor) in dma_resv_iter_walk_unlocked() argument 380 if (!cursor->fences) in dma_resv_iter_walk_unlocked() 385 dma_fence_put(cursor->fence); in dma_resv_iter_walk_unlocked() [all …]
|
| H A D | dma-fence-unwrap.c | 19 __dma_fence_unwrap_array(struct dma_fence_unwrap *cursor) in __dma_fence_unwrap_array() argument 21 cursor->array = dma_fence_chain_contained(cursor->chain); in __dma_fence_unwrap_array() 22 cursor->index = 0; in __dma_fence_unwrap_array() 23 return dma_fence_array_first(cursor->array); in __dma_fence_unwrap_array() 35 struct dma_fence_unwrap *cursor) in dma_fence_unwrap_first() argument 37 cursor->chain = dma_fence_get(head); in dma_fence_unwrap_first() 38 return __dma_fence_unwrap_array(cursor); in dma_fence_unwrap_first() 49 struct dma_fence *dma_fence_unwrap_next(struct dma_fence_unwrap *cursor) in dma_fence_unwrap_next() argument 53 ++cursor->index; in dma_fence_unwrap_next() 54 tmp = dma_fence_array_next(cursor->array, cursor->index); in dma_fence_unwrap_next() [all …]
|
| /linux/tools/verification/rvgen/rvgen/ |
| H A D | automata.py | 44 cursor = 0 55 line = dot_lines[cursor].split() 60 cursor += 1 64 cursor = 0 65 while self.__dot_lines[cursor].split()[0] != "{node": 66 cursor += 1 67 return cursor 70 cursor = 0 71 while self.__dot_lines[cursor].split()[0] != "{node": 72 cursor [all...] |
| /linux/scripts/ |
| H A D | asn1_compiler.c | 806 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 D | messenger.c | 725 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 D | parse.rs | 268 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 D | lookahead.rs | 66 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 D | verbatim.rs | 9 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 D | token.rs | 130 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 D | group.rs | 85 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 D | discouraged.rs | 171 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 D | scan_expr.rs | 201 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/staging/sm750fb/ |
| H A D | sm750_cursor.c | 22 writel((data), cursor->mmio + (addr)) 47 void sm750_hw_cursor_enable(struct lynx_cursor *cursor) in sm750_hw_cursor_enable() argument 51 reg = (cursor->offset & HWC_ADDRESS_ADDRESS_MASK) | HWC_ADDRESS_ENABLE; in sm750_hw_cursor_enable() 55 void sm750_hw_cursor_disable(struct lynx_cursor *cursor) in sm750_hw_cursor_disable() argument 60 void sm750_hw_cursor_set_size(struct lynx_cursor *cursor, int w, int h) in sm750_hw_cursor_set_size() argument 62 cursor->w = w; in sm750_hw_cursor_set_size() 63 cursor->h = h; in sm750_hw_cursor_set_size() 66 void sm750_hw_cursor_set_pos(struct lynx_cursor *cursor, int x, int y) in sm750_hw_cursor_set_pos() argument 75 void sm750_hw_cursor_set_color(struct lynx_cursor *cursor, u32 fg, u32 bg) in sm750_hw_cursor_set_color() argument 84 void sm750_hw_cursor_set_data(struct lynx_cursor *cursor, u16 rop, in sm750_hw_cursor_set_data() argument [all …]
|
| H A D | sm750_cursor.h | 6 void sm750_hw_cursor_enable(struct lynx_cursor *cursor); 7 void sm750_hw_cursor_disable(struct lynx_cursor *cursor); 8 void sm750_hw_cursor_set_size(struct lynx_cursor *cursor, int w, int h); 9 void sm750_hw_cursor_set_pos(struct lynx_cursor *cursor, int x, int y); 10 void sm750_hw_cursor_set_color(struct lynx_cursor *cursor, u32 fg, u32 bg); 11 void sm750_hw_cursor_set_data(struct lynx_cursor *cursor, u16 rop, 13 void sm750_hw_cursor_set_data2(struct lynx_cursor *cursor, u16 rop,
|
| /linux/drivers/gpu/drm/vmwgfx/ |
| H A D | vmwgfx_cursor_plane.c | 27 SVGAFifoCmdDefineAlphaCursor cursor; member 64 cmd->cursor.id = 0; in vmw_send_define_cursor_cmd() 65 cmd->cursor.width = width; in vmw_send_define_cursor_cmd() 66 cmd->cursor.height = height; in vmw_send_define_cursor_cmd() 67 cmd->cursor.hotspotX = hotspotX; in vmw_send_define_cursor_cmd() 68 cmd->cursor.hotspotY = hotspotY; in vmw_send_define_cursor_cmd() 78 s32 hotspot_x = vps->cursor.legacy.hotspot_x + vps->base.hotspot_x; in vmw_cursor_plane_update_legacy() 79 s32 hotspot_y = vps->cursor.legacy.hotspot_y + vps->base.hotspot_y; in vmw_cursor_plane_update_legacy() 84 if (vps->cursor.legacy.id != surface->snooper.id) { in vmw_cursor_plane_update_legacy() 88 vps->cursor.legacy.id = surface->snooper.id; in vmw_cursor_plane_update_legacy() [all …]
|
| /linux/tools/perf/util/ |
| H A D | callchain.h | 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, 211 static inline void callchain_cursor_commit(struct callchain_cursor *cursor) in callchain_cursor_commit() argument 213 if (cursor == NULL) in callchain_cursor_commit() 215 cursor->curr = cursor->first; in callchain_cursor_commit() 216 cursor->pos = 0; in callchain_cursor_commit() 221 callchain_cursor_current(struct callchain_cursor *cursor) in callchain_cursor_current() argument [all …]
|
| H A D | callchain.c | 584 fill_node(struct callchain_node *node, struct callchain_cursor *cursor) in fill_node() argument 588 node->val_nr = cursor->nr - cursor->pos; in fill_node() 592 cursor_node = callchain_cursor_current(cursor); in fill_node() 649 callchain_cursor_advance(cursor); in fill_node() 650 cursor_node = callchain_cursor_current(cursor); in fill_node() 657 struct callchain_cursor *cursor, in add_child() argument 666 if (fill_node(new, cursor) < 0) { in add_child() 825 struct callchain_cursor *cursor, in split_add_child() argument 857 if (idx_total < cursor->nr) { in split_add_child() 868 node = callchain_cursor_current(cursor); in split_add_child() [all …]
|
| /linux/drivers/video/fbdev/ |
| H A D | pmag-aa-fb.c | 104 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/firmware/google/ |
| H A D | memconsole-coreboot.c | 23 u32 cursor; member 42 u32 cursor = cbmem_console->cursor & CURSOR_MASK; in memconsole_coreboot_read() local 43 u32 flags = cbmem_console->cursor & ~CURSOR_MASK; in memconsole_coreboot_read() 53 if (cursor > size) /* Shouldn't really happen, but... */ in memconsole_coreboot_read() 54 cursor = 0; in memconsole_coreboot_read() 55 seg[0] = (struct seg){.phys = cursor, .len = size - cursor}; in memconsole_coreboot_read() 56 seg[1] = (struct seg){.phys = 0, .len = cursor}; in memconsole_coreboot_read() 58 seg[0] = (struct seg){.phys = 0, .len = min(cursor, size)}; in memconsole_coreboot_read()
|
| /linux/drivers/video/fbdev/core/ |
| H A D | bitblit.c | 263 struct fb_cursor cursor; in bit_cursor() local 272 cursor.set = 0; in bit_cursor() 284 cursor.set |= FB_CUR_SETIMAGE; in bit_cursor() 304 cursor.set |= FB_CUR_SETCMAP; in bit_cursor() 312 cursor.set |= FB_CUR_SETPOS; in bit_cursor() 320 cursor.set |= FB_CUR_SETSIZE; in bit_cursor() 325 par->cursor_state.hot.x = cursor.hot.y = 0; in bit_cursor() 326 cursor.set |= FB_CUR_SETHOT; in bit_cursor() 329 if (cursor.set & FB_CUR_SETSIZE || in bit_cursor() 344 cursor.set |= FB_CUR_SETSHAPE; in bit_cursor() [all …]
|
| /linux/crypto/asymmetric_keys/ |
| H A D | verify_pefile.c | 32 size_t cursor, datalen = pelen; in pefile_parse_binary() local 45 cursor = sizeof(*mz); in pefile_parse_binary() 47 chkaddr(cursor, mz->peaddr, sizeof(*pe)); in pefile_parse_binary() 51 cursor = mz->peaddr + sizeof(*pe); in pefile_parse_binary() 53 chkaddr(0, cursor, sizeof(pe32->magic)); in pefile_parse_binary() 54 pe32 = pebuf + cursor; in pefile_parse_binary() 55 pe64 = pebuf + cursor; in pefile_parse_binary() 59 chkaddr(0, cursor, sizeof(*pe32)); in pefile_parse_binary() 63 cursor += sizeof(*pe32); in pefile_parse_binary() 68 chkaddr(0, cursor, sizeof(*pe64)); in pefile_parse_binary() [all …]
|
| /linux/lib/ |
| H A D | assoc_array.c | 27 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/drivers/accessibility/speakup/ |
| H A D | DefaultKeyAssignments | 12 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 D | disp.c | 90 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/net/rxrpc/ |
| H A D | peer_event.c | 261 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 …]
|