| /linux/fs/xfs/scrub/ |
| H A D | dqiterate.c | 27 struct xchk_dqiter *cursor, in xchk_dqiter_init() argument 31 cursor->sc = sc; in xchk_dqiter_init() 32 cursor->bmap.br_startoff = NULLFILEOFF; in xchk_dqiter_init() 33 cursor->dqtype = dqtype & XFS_DQTYPE_REC_MASK; in xchk_dqiter_init() 34 cursor->quota_ip = xfs_quota_inode(sc->mp, cursor->dqtype); in xchk_dqiter_init() 35 cursor->id = 0; in xchk_dqiter_init() 44 struct xchk_dqiter *cursor) in xchk_dquot_iter_revalidate_bmap() argument 46 struct xfs_quotainfo *qi = cursor->sc->mp->m_quotainfo; in xchk_dquot_iter_revalidate_bmap() 47 struct xfs_ifork *ifp = xfs_ifork_ptr(cursor->quota_ip, in xchk_dquot_iter_revalidate_bmap() 50 xfs_dqid_t this_id = cursor->id; in xchk_dquot_iter_revalidate_bmap() [all …]
|
| /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 …]
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_vm_pt.c | 159 struct amdgpu_vm_pt_cursor *cursor) in amdgpu_vm_pt_start() argument 161 cursor->pfn = start; in amdgpu_vm_pt_start() 162 cursor->parent = NULL; in amdgpu_vm_pt_start() 163 cursor->entry = &vm->root; in amdgpu_vm_pt_start() 164 cursor->level = adev->vm_manager.root_level; in amdgpu_vm_pt_start() 178 struct amdgpu_vm_pt_cursor *cursor) in amdgpu_vm_pt_descendant() argument 182 if ((cursor->level == AMDGPU_VM_PTB) || !cursor->entry || in amdgpu_vm_pt_descendant() 183 !cursor->entry->bo) in amdgpu_vm_pt_descendant() 186 mask = amdgpu_vm_pt_entries_mask(adev, cursor->level); in amdgpu_vm_pt_descendant() 187 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 | 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 += 1 [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 in ceph_msg_data_bio_next() 751 ceph_msg_data_bio_advance(struct ceph_msg_data_cursor * cursor,size_t bytes) ceph_msg_data_bio_advance() argument 781 ceph_msg_data_bvecs_cursor_init(struct ceph_msg_data_cursor * cursor,size_t length) ceph_msg_data_bvecs_cursor_init() argument 794 ceph_msg_data_bvecs_next(struct ceph_msg_data_cursor * cursor,size_t * page_offset,size_t * length) ceph_msg_data_bvecs_next() argument 806 ceph_msg_data_bvecs_advance(struct ceph_msg_data_cursor * cursor,size_t bytes) ceph_msg_data_bvecs_advance() argument 832 ceph_msg_data_pages_cursor_init(struct ceph_msg_data_cursor * cursor,size_t length) ceph_msg_data_pages_cursor_init() argument 853 ceph_msg_data_pages_next(struct ceph_msg_data_cursor * cursor,size_t * page_offset,size_t * length) ceph_msg_data_pages_next() argument 868 ceph_msg_data_pages_advance(struct ceph_msg_data_cursor * cursor,size_t bytes) ceph_msg_data_pages_advance() argument 897 ceph_msg_data_pagelist_cursor_init(struct ceph_msg_data_cursor * cursor,size_t length) ceph_msg_data_pagelist_cursor_init() argument 921 ceph_msg_data_pagelist_next(struct ceph_msg_data_cursor * cursor,size_t * page_offset,size_t * length) ceph_msg_data_pagelist_next() argument 941 ceph_msg_data_pagelist_advance(struct ceph_msg_data_cursor * cursor,size_t bytes) ceph_msg_data_pagelist_advance() argument 973 ceph_msg_data_iter_cursor_init(struct ceph_msg_data_cursor * cursor,size_t length) ceph_msg_data_iter_cursor_init() argument 984 ceph_msg_data_iter_next(struct ceph_msg_data_cursor * cursor,size_t * page_offset,size_t * length) ceph_msg_data_iter_next() argument 1013 ceph_msg_data_iter_advance(struct ceph_msg_data_cursor * cursor,size_t bytes) ceph_msg_data_iter_advance() argument 1037 __ceph_msg_data_cursor_init(struct ceph_msg_data_cursor * cursor) __ceph_msg_data_cursor_init() argument 1067 ceph_msg_data_cursor_init(struct ceph_msg_data_cursor * cursor,struct ceph_msg * msg,size_t length) ceph_msg_data_cursor_init() argument 1086 ceph_msg_data_next(struct ceph_msg_data_cursor * cursor,size_t * page_offset,size_t * length) ceph_msg_data_next() argument 1127 ceph_msg_data_advance(struct ceph_msg_data_cursor * cursor,size_t bytes) ceph_msg_data_advance() argument [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/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()
|
| /linux/fs/xfs/ |
| H A D | xfs_attr_list.c | 43 #define XFS_ISRESET_CURSOR(cursor) \ argument 44 (!((cursor)->initted) && !((cursor)->hashval) && \ 45 !((cursor)->blkno) && !((cursor)->offset)) 57 struct xfs_attrlist_cursor_kern *cursor = &context->cursor; in xfs_attr_shortform_list() local 81 (XFS_ISRESET_CURSOR(cursor) && in xfs_attr_shortform_list() 164 cursor->initted = 1; in xfs_attr_shortform_list() 165 cursor->blkno = 0; in xfs_attr_shortform_list() 167 if (sbp->hash == cursor->hashval) { in xfs_attr_shortform_list() 168 if (cursor->offset == count) { in xfs_attr_shortform_list() 172 } else if (sbp->hash > cursor->hashval) { in xfs_attr_shortform_list() [all …]
|
| /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/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 | 583 fill_node(struct callchain_node *node, struct callchain_cursor *cursor) in fill_node() argument 587 node->val_nr = cursor->nr - cursor->pos; in fill_node() 591 cursor_node = callchain_cursor_current(cursor); in fill_node() 648 callchain_cursor_advance(cursor); in fill_node() 649 cursor_node = callchain_cursor_current(cursor); in fill_node() 656 struct callchain_cursor *cursor, in add_child() argument 665 if (fill_node(new, cursor) < 0) { in add_child() 824 struct callchain_cursor *cursor, in split_add_child() argument 856 if (idx_total < cursor->nr) { in split_add_child() 867 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/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 …]
|