| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_vm_pt.c | 160 struct amdgpu_vm_pt_cursor *cursor) in amdgpu_vm_pt_start() argument 162 cursor->pfn = start; in amdgpu_vm_pt_start() 163 cursor->parent = NULL; in amdgpu_vm_pt_start() 164 cursor->entry = &vm->root; in amdgpu_vm_pt_start() 165 cursor->level = adev->vm_manager.root_level; in amdgpu_vm_pt_start() 179 struct amdgpu_vm_pt_cursor *cursor) in amdgpu_vm_pt_descendant() argument 183 if ((cursor->level == AMDGPU_VM_PTB) || !cursor->entry || in amdgpu_vm_pt_descendant() 184 !cursor->entry->bo) in amdgpu_vm_pt_descendant() 187 mask = amdgpu_vm_pt_entries_mask(adev, cursor->level); in amdgpu_vm_pt_descendant() 188 shift = amdgpu_vm_pt_level_shift(adev, cursor->level); in amdgpu_vm_pt_descendant() [all …]
|
| /linux/tools/verification/rvgen/rvgen/ |
| H A D | automata.py | 113 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 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 | 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 | 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 | 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/ttm/ |
| H A D | ttm_resource.c | 42 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/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/drivers/dma-buf/ |
| 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/perf/util/ |
| H A D | callchain.h | 141 * A callchain cursor is a single linked list that 150 /* Indicate valid cursor node for LBR stitch */ 163 struct callchain_cursor_node cursor; 198 struct callchain_cursor *cursor, 201 int callchain_merge(struct callchain_cursor *cursor, 204 void callchain_cursor_reset(struct callchain_cursor *cursor); 206 int callchain_cursor_append(struct callchain_cursor *cursor, u64 ip, 212 /* Close a cursor writing session. Initialize for the reader */ in callchain_cursor_commit() 213 static inline void callchain_cursor_commit(struct callchain_cursor *cursor) in callchain_cursor_commit() 215 if (cursor in callchain_cursor_commit() 161 struct callchain_cursor_node cursor; global() member 211 callchain_cursor_commit(struct callchain_cursor * cursor) callchain_cursor_commit() argument 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 D | callchain.c | 631 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...] |
| /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/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/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/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/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 …]
|
| /linux/drivers/firewire/ |
| H A D | phy-packet-definitions.h | 219 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()
|