/third_party/libdrm/tests/modetest/ |
H A D | cursor.c | 42 #include "cursor.h" 44 struct cursor { struct 57 static struct cursor cursors[MAX_CURSORS]; 65 * the cursor 69 void (*run)(struct cursor *cursor, const struct cursor_step *step); 77 static void set_cursor(struct cursor *cursor, const struct cursor_step *step) in set_cursor() argument 83 handle = cursor->bo_handle; in set_cursor() 85 cursor in set_cursor() 90 move_cursor(struct cursor *cursor, const struct cursor_step *step) move_cursor() argument 148 struct cursor *cursor = &cursors[i]; cursor_thread_func() local 169 struct cursor *cursor = &cursors[ncursors]; cursor_init() local [all...] |
/third_party/rust/crates/clap/clap_lex/tests/ |
H A D | parsed.rs | 6 let mut cursor = raw.cursor(); in to_long_stdio() variables 7 assert_eq!(raw.next_os(&mut cursor), Some(std::ffi::OsStr::new("bin"))); in to_long_stdio() 8 let next = raw.next(&mut cursor).unwrap(); in to_long_stdio() 18 let mut cursor = raw.cursor(); in to_long_no_escape() variables 19 assert_eq!(raw.next_os(&mut cursor), Some(std::ffi::OsStr::new("bin"))); in to_long_no_escape() 20 let next = raw.next(&mut cursor).unwrap(); in to_long_no_escape() 30 let mut cursor = raw.cursor(); in to_long_no_value() variables 44 let mut cursor = raw.cursor(); to_long_with_empty_value() variables 58 let mut cursor = raw.cursor(); to_long_with_value() variables 72 let mut cursor = raw.cursor(); to_short_stdio() variables 84 let mut cursor = raw.cursor(); to_short_escape() variables 96 let mut cursor = raw.cursor(); to_short_long() variables 108 let mut cursor = raw.cursor(); to_short() variables 122 let mut cursor = raw.cursor(); is_negative_number() variables 132 let mut cursor = raw.cursor(); is_positive_number() variables 142 let mut cursor = raw.cursor(); is_not_number() variables 152 let mut cursor = raw.cursor(); is_stdio() variables 162 let mut cursor = raw.cursor(); is_not_stdio() variables 172 let mut cursor = raw.cursor(); is_escape() variables 182 let mut cursor = raw.cursor(); is_not_escape() variables [all...] |
H A D | shorts.rs | 4 let mut cursor = raw.cursor(); in iter() variables 5 assert_eq!(raw.next_os(&mut cursor), Some(std::ffi::OsStr::new("bin"))); in iter() 6 let next = raw.next(&mut cursor).unwrap(); in iter() 16 let mut cursor = raw.cursor(); in next_flag() variables 17 assert_eq!(raw.next_os(&mut cursor), Some(std::ffi::OsStr::new("bin"))); in next_flag() 18 let next = raw.next(&mut cursor).unwrap(); in next_flag() 35 let mut cursor = raw.cursor(); in next_value_os() variables 48 let mut cursor = raw.cursor(); next_flag_with_value() variables 62 let mut cursor = raw.cursor(); next_flag_with_no_value() variables 79 let mut cursor = raw.cursor(); advance_by_nothing() variables 93 let mut cursor = raw.cursor(); advance_by_something() variables 107 let mut cursor = raw.cursor(); advance_by_out_of_bounds() variables 121 let mut cursor = raw.cursor(); is_not_empty() variables 132 let mut cursor = raw.cursor(); is_partial_not_empty() variables 144 let mut cursor = raw.cursor(); is_exhausted_empty() variables 156 let mut cursor = raw.cursor(); is_number() variables 167 let mut cursor = raw.cursor(); is_not_number() variables [all...] |
H A D | lexer.rs | 4 let mut cursor = raw.cursor(); in insert() variables 6 assert_eq!(raw.next_os(&mut cursor), Some(std::ffi::OsStr::new("bin"))); in insert() 7 assert_eq!(raw.next_os(&mut cursor), Some(std::ffi::OsStr::new("a"))); in insert() 8 raw.insert(&cursor, ["1", "2", "3"]); in insert() 9 assert_eq!(raw.next_os(&mut cursor), Some(std::ffi::OsStr::new("1"))); in insert() 10 assert_eq!(raw.next_os(&mut cursor), Some(std::ffi::OsStr::new("2"))); in insert() 11 assert_eq!(raw.next_os(&mut cursor), Some(std::ffi::OsStr::new("3"))); in insert() 12 assert_eq!(raw.next_os(&mut cursor), Some(std::ffi::OsStr::new("b"))); in insert() 13 assert_eq!(raw.next_os(&mut cursor), Som in insert() 15 let mut cursor = raw.cursor(); insert() variables [all...] |
/third_party/libunwind/libunwind/src/ia64/ |
H A D | mk_Gcursor_i.c | 42 OFFSET("IP_OFF", offsetof (struct cursor, ip)); in main() 43 OFFSET("PR_OFF", offsetof (struct cursor, pr)); in main() 44 OFFSET("BSP_OFF", offsetof (struct cursor, bsp)); in main() 45 OFFSET("PSP_OFF", offsetof (struct cursor, psp)); in main() 46 OFFSET("PFS_LOC_OFF", offsetof (struct cursor, loc[IA64_REG_PFS])); in main() 47 OFFSET("RNAT_LOC_OFF", offsetof (struct cursor, loc[IA64_REG_RNAT])); in main() 48 OFFSET("UNAT_LOC_OFF", offsetof (struct cursor, loc[IA64_REG_UNAT])); in main() 49 OFFSET("LC_LOC_OFF", offsetof (struct cursor, loc[IA64_REG_LC])); in main() 50 OFFSET("FPSR_LOC_OFF", offsetof (struct cursor, loc[IA64_REG_FPSR])); in main() 51 OFFSET("B1_LOC_OFF", offsetof (struct cursor, lo in main() [all...] |
/third_party/rust/crates/bindgen/bindgen/ir/ |
H A D | function.rs | 31 /// Given a clang cursor, return the kind of function it represents, or 33 pub fn from_cursor(cursor: &clang::Cursor) -> Option<FunctionKind> { in from_cursor() 35 Some(match cursor.kind() { in from_cursor() 41 FunctionKind::Method(if cursor.method_is_virtual() { in from_cursor() 43 pure_virtual: cursor.method_is_pure_virtual(), in from_cursor() 50 if cursor.method_is_virtual() { in from_cursor() 52 pure_virtual: cursor.method_is_pure_virtual(), in from_cursor() 54 } else if cursor.method_is_static() { in from_cursor() 236 /// An ABI extracted from a clang cursor. 299 /// Get the mangled name for the cursor' [all...] |
/third_party/node/lib/internal/readline/ |
H A D | interface.js | 321 this.cursor = 0; 395 if (!preserveCursor) this.cursor = 0; 490 // cursor position 493 // First move to the bottom of the current line, based on cursor pos 512 // Move cursor to original position. 630 this[kBeforeEdit](this.line, this.cursor); 631 if (this.cursor < this.line.length) { 632 const beg = StringPrototypeSlice(this.line, 0, this.cursor); 635 this.cursor, 639 this.cursor [all...] |
/third_party/rust/crates/clap/clap_lex/src/ |
H A D | lib.rs | 58 //! let mut cursor = raw.cursor(); 59 //! raw.next(&mut cursor); // Skip the bin 60 //! while let Some(arg) = raw.next(&mut cursor) { 62 //! args.paths.extend(raw.remaining(&mut cursor).map(PathBuf::from)); 136 /// let mut cursor = raw.cursor(); 137 /// let _bin = raw.next_os(&mut cursor); 139 /// let mut paths = raw.remaining(&mut cursor).map(PathBuf::from).collect::<Vec<_>>(); 153 /// let mut cursor 177 pub fn cursor(&self) -> ArgCursor { cursor() functions [all...] |
/third_party/skia/third_party/externals/brotli/csharp/org/brotli/dec/ |
H A D | Utils.cs | 28 int cursor = 0;
in FillWithZeroes() 29 while (cursor < length)
in FillWithZeroes() 31 int step = System.Math.Min(cursor + 1024, length) - cursor;
in FillWithZeroes() 32 System.Array.Copy(ByteZeroes, 0, dest, offset + cursor, step);
in FillWithZeroes() 33 cursor += step;
in FillWithZeroes() 50 int cursor = 0;
in FillWithZeroes() 51 while (cursor < length)
in FillWithZeroes() 53 int step = System.Math.Min(cursor + 1024, length) - cursor;
in FillWithZeroes() [all...] |
/third_party/gn/src/base/ |
H A D | sha1.cc | 64 uint32_t cursor; member in base::SecureHashAlgorithm 104 cursor = 0; in Init() 124 M[cursor++] = *d++; in Update() 125 if (cursor >= 64) in Update() 132 M[cursor++] = 0x80; in Pad() 134 if (cursor > 64 - 8) { in Pad() 136 while (cursor < 64) in Pad() 137 M[cursor++] = 0; in Pad() 142 while (cursor < 64 - 8) in Pad() 143 M[cursor in Pad() [all...] |
/third_party/skia/third_party/externals/angle2/src/common/third_party/base/anglebase/ |
H A D | sha1.cc | 67 uint32_t cursor; member in angle::base::SecureHashAlgorithm 125 cursor = 0; in Init() 148 M[cursor++] = *d++; in Update() 149 if (cursor >= 64) in Update() 157 M[cursor++] = 0x80; in Pad() 159 if (cursor > 64 - 8) in Pad() 162 while (cursor < 64) in Pad() 163 M[cursor++] = 0; in Pad() 168 while (cursor < 64 - 8) in Pad() 169 M[cursor in Pad() [all...] |
/third_party/toybox/toys/pending/ |
H A D | vi.c | 16 Visual text editor. Predates the existence of standardized cursor keys, 36 size_t screen, cursor; //offsets 570 if (!TT.filesize) TT.cursor = 0; in check_cursor_bounds() 573 if (TT.cursor < 1) { in check_cursor_bounds() 574 TT.cursor = 0; in check_cursor_bounds() 576 } else if (TT.cursor >= TT.filesize-1) { in check_cursor_bounds() 577 TT.cursor = TT.filesize-1; in check_cursor_bounds() 580 if ((len = text_codepoint(buf, TT.cursor)) < 1) { in check_cursor_bounds() 581 TT.cursor--; //we are not in valid data try jump over in check_cursor_bounds() 585 else TT.cursor in check_cursor_bounds() [all...] |
/third_party/libunwind/libunwind/src/riscv/ |
H A D | Ginit_local.c | 33 unw_init_local (unw_cursor_t *cursor, ucontext_t *uc) in unw_init_local() argument 41 unw_init_local_common(unw_cursor_t *cursor, ucontext_t *uc, unsigned use_prev_instr) in unw_init_local_common() argument 43 struct cursor *c = (struct cursor *) cursor; in unw_init_local_common() 48 Debug (1, "(cursor=%p)\n", c); in unw_init_local_common() 51 c->dwarf.as_arg = cursor; in unw_init_local_common() 59 unw_init_local (unw_cursor_t *cursor, unw_context_t *uc) in unw_init_local() argument 61 return unw_init_local_common(cursor, uc, 1); in unw_init_local() 65 unw_init_local2 (unw_cursor_t *cursor, unw_context_ argument [all...] |
/third_party/libunwind/libunwind/src/x86_64/ |
H A D | Gos-linux.c | 37 struct cursor *c = (struct cursor *) dw; in tdep_fetch_frame() 54 struct cursor *c = (struct cursor *) dw; in tdep_cache_frame() 64 struct cursor *c = (struct cursor *) dw; in tdep_reuse_frame() 81 unw_is_signal_frame (unw_cursor_t *cursor) in unw_is_signal_frame() argument 83 struct cursor *c = (struct cursor *) cursor; in unw_is_signal_frame() 88 x86_64_handle_signal_frame(unw_cursor_t *cursor) x86_64_handle_signal_frame() argument 138 x86_64_sigreturn(unw_cursor_t *cursor) x86_64_sigreturn() argument [all...] |
/third_party/node/test/parallel/ |
H A D | test-readline.js | 57 assert.strictEqual(rl.cursor, 3); 80 assert.strictEqual(rl.cursor, 0); 82 assert.strictEqual(rl.cursor, 3); 105 { cursor: 4, key: key.xterm.metaf }, 106 { cursor: 7, key: key.xterm.metaf }, 107 { cursor: 8, key: key.xterm.metaf }, 108 { cursor: 11, key: key.xterm.metaf }, 109 { cursor: 12, key: key.xterm.metaf }, 110 { cursor: 15, key: key.xterm.metaf }, 111 { cursor [all...] |
/third_party/mesa3d/src/amd/compiler/ |
H A D | aco_scheduler.cpp | 199 DownwardsCursor cursor(current_idx, register_demand[current_idx]); 200 cursor.verify_invariants(register_demand); 201 return cursor; 208 MoveState::downwards_move(DownwardsCursor& cursor, bool add_to_clause) 210 aco_ptr<Instruction>& instr = block->instructions[cursor.source_idx]; 236 const int dest_insert_idx = add_to_clause ? cursor.insert_idx_clause : cursor.insert_idx; 237 RegisterDemand register_pressure = cursor.total_demand; 239 register_pressure.update(cursor.clause_demand); 255 move_element(block->instructions.begin(), cursor 161 assert(source_idx < insert_idx_clause); assert(insert_idx_clause < insert_idx); RegisterDemand reference_demand; for (int i = source_idx + 1; i < insert_idx_clause; ++i) { reference_demand.update(register_demand[i]); } assert(total_demand == reference_demand); reference_demand = {}; for (int i = insert_idx_clause; i < insert_idx; ++i) { reference_demand.update(register_demand[i]); } assert(clause_demand == reference_demand); } DownwardsCursor MoveState::downwards_init(int current_idx, bool improved_rar_, bool may_form_clauses) { improved_rar = improved_rar_; std::fill(depends_on.begin(), depends_on.end(), false); if (improved_rar) { std::fill(RAR_dependencies.begin(), RAR_dependencies.end(), false); if (may_form_clauses) std::fill(RAR_dependencies_clause.begin(), RAR_dependencies_clause.end(), false); } for (const Operand& op : current->operands) { if (op.isTemp()) { depends_on[op.tempId()] = true; if (improved_rar && op.isFirstKill()) RAR_dependencies[op.tempId()] = true; } } DownwardsCursor cursor(current_idx, register_demand[current_idx]); cursor.verify_invariants(register_demand); return cursor; } MoveResult MoveState::downwards_move(DownwardsCursor& cursor, bool add_to_clause) { aco_ptr<Instruction>& instr = block->instructions[cursor.source_idx]; for (const Definition& def : instr->definitions) if (def.isTemp() && depends_on[def.tempId()]) return move_fail_ssa; std::vector<bool>& RAR_deps = improved_rar ? (add_to_clause ? RAR_dependencies_clause : RAR_dependencies) : depends_on; for (const Operand& op : instr->operands) verify_invariants() argument 282 downwards_skip(DownwardsCursor& cursor) downwards_skip() argument [all...] |
/third_party/mesa3d/src/imgui/ |
H A D | imstb_textedit.h | 13 // insertions & deletions, plus updates to the cursor position, 88 // STB_TEXTEDIT_POSITIONTYPE small int type encoding a valid cursor position 120 // STB_TEXTEDIT_POSITIONTYPE small type that is a valid cursor position 147 // STB_TEXTEDIT_K_LEFT keyboard input to move cursor left 148 // STB_TEXTEDIT_K_RIGHT keyboard input to move cursor right 149 // STB_TEXTEDIT_K_UP keyboard input to move cursor up 150 // STB_TEXTEDIT_K_DOWN keyboard input to move cursor down 151 // STB_TEXTEDIT_K_LINESTART keyboard input to move cursor to start of line // e.g. HOME 152 // STB_TEXTEDIT_K_LINEEND keyboard input to move cursor to end of line // e.g. END 153 // STB_TEXTEDIT_K_TEXTSTART keyboard input to move cursor t 326 int cursor; global() member [all...] |
/third_party/skia/third_party/externals/imgui/ |
H A D | imstb_textedit.h | 13 // insertions & deletions, plus updates to the cursor position, 88 // STB_TEXTEDIT_POSITIONTYPE small int type encoding a valid cursor position 120 // STB_TEXTEDIT_POSITIONTYPE small type that is a valid cursor position 147 // STB_TEXTEDIT_K_LEFT keyboard input to move cursor left 148 // STB_TEXTEDIT_K_RIGHT keyboard input to move cursor right 149 // STB_TEXTEDIT_K_UP keyboard input to move cursor up 150 // STB_TEXTEDIT_K_DOWN keyboard input to move cursor down 151 // STB_TEXTEDIT_K_PGUP keyboard input to move cursor up a page 152 // STB_TEXTEDIT_K_PGDOWN keyboard input to move cursor down a page 153 // STB_TEXTEDIT_K_LINESTART keyboard input to move cursor t 324 int cursor; global() member [all...] |
/third_party/skia/third_party/externals/freetype/src/base/ |
H A D | ftstream.c | 41 stream->cursor = NULL; in FT_Stream_OpenMemory() 202 *pbytes = (FT_Byte*)stream->cursor; in FT_BASE_DEF() 205 stream->cursor = NULL; in FT_BASE_DEF() 244 FT_ASSERT( stream && stream->cursor == 0 ); in FT_BASE_DEF() 287 stream->cursor = stream->base; in FT_BASE_DEF() 288 stream->limit = FT_OFFSET( stream->cursor, count ); in FT_BASE_DEF() 305 /* set cursor */ in FT_BASE_DEF() 306 stream->cursor = stream->base + stream->pos; in FT_BASE_DEF() 307 stream->limit = stream->cursor + count; in FT_BASE_DEF() 319 /* IMPORTANT: The assertion stream->cursor ! in FT_Stream_ExitFrame() 728 FT_Byte* cursor; FT_BASE_DEF() local [all...] |
/third_party/libunwind/libunwind/src/aarch64/ |
H A D | Ginit_local.c | 32 unw_init_local (unw_cursor_t *cursor, unw_context_t *uc) in unw_init_local() argument 40 unw_init_local_common (unw_cursor_t *cursor, unw_context_t *uc, unsigned use_prev_instr) in unw_init_local_common() argument 42 struct cursor *c = (struct cursor *) cursor; in unw_init_local_common() 47 Debug (1, "(cursor=%p)\n", c); in unw_init_local_common() 58 unw_init_local (unw_cursor_t *cursor, unw_context_t *uc) in unw_init_local() argument 60 return unw_init_local_common(cursor, uc, 1); in unw_init_local() 64 unw_init_local2 (unw_cursor_t *cursor, unw_tdep_context_t *uc, int flag) in unw_init_local2() argument 68 return unw_init_local_common(cursor, u in unw_init_local2() [all...] |
/third_party/libunwind/libunwind/src/arm/ |
H A D | Ginit_local.c | 32 unw_init_local (unw_cursor_t *cursor, unw_context_t *uc) in unw_init_local() argument 40 unw_init_local_common (unw_cursor_t *cursor, unw_context_t *uc, unsigned use_prev_instr) in unw_init_local_common() argument 42 struct cursor *c = (struct cursor *) cursor; in unw_init_local_common() 47 Debug (1, "(cursor=%p)\n", c); in unw_init_local_common() 56 unw_init_local (unw_cursor_t *cursor, unw_context_t *uc) in unw_init_local() argument 58 return unw_init_local_common(cursor, uc, 1); in unw_init_local() 62 unw_init_local2 (unw_cursor_t *cursor, unw_context_t *uc, int flag) in unw_init_local2() argument 66 return unw_init_local_common(cursor, u in unw_init_local2() [all...] |
/third_party/libunwind/libunwind/src/tilegx/ |
H A D | Ginit_local.c | 32 unw_init_local (unw_cursor_t *cursor, ucontext_t *uc) in unw_init_local() argument 40 unw_init_local_common(unw_cursor_t *cursor, ucontext_t *uc, unsigned use_prev_instr) in unw_init_local_common() argument 42 struct cursor *c = (struct cursor *) cursor; in unw_init_local_common() 49 Debug (1, "(cursor=%p)\n", c); in unw_init_local_common() 58 unw_init_local (unw_cursor_t *cursor, ucontext_t *uc) in unw_init_local() argument 60 return unw_init_local_common(cursor, uc, 1); in unw_init_local() 64 unw_init_local2 (unw_cursor_t *cursor, ucontext_t *uc, int flag) in unw_init_local2() argument 68 return unw_init_local_common(cursor, u in unw_init_local2() [all...] |
/third_party/libunwind/libunwind/src/ppc/ |
H A D | Ginit_local.c | 38 unw_init_local (unw_cursor_t *cursor, ucontext_t *uc) in unw_init_local() argument 47 unw_init_local_common(unw_cursor_t *cursor, ucontext_t *uc, unsigned use_prev_instr) in unw_init_local_common() argument 49 struct cursor *c = (struct cursor *) cursor; in unw_init_local_common() 54 Debug (1, "(cursor=%p)\n", c); in unw_init_local_common() 66 unw_init_local(unw_cursor_t *cursor, ucontext_t *uc) in unw_init_local() argument 68 return unw_init_local_common(cursor, uc, 1); in unw_init_local() 72 unw_init_local2 (unw_cursor_t *cursor, ucontext_t *uc, int flag) in unw_init_local2() argument 76 return unw_init_local_common(cursor, u in unw_init_local2() [all...] |
/third_party/libunwind/libunwind/src/sh/ |
H A D | Ginit_local.c | 32 unw_init_local (unw_cursor_t *cursor, unw_context_t *uc) in unw_init_local() argument 40 unw_init_local_common (unw_cursor_t *cursor, unw_context_t *uc, unsigned use_prev_instr) in unw_init_local_common() argument 42 struct cursor *c = (struct cursor *) cursor; in unw_init_local_common() 47 Debug (1, "(cursor=%p)\n", c); in unw_init_local_common() 56 unw_init_local (unw_cursor_t *cursor, unw_context_t *uc) in unw_init_local() argument 58 return unw_init_local_common(cursor, uc, 1); in unw_init_local() 62 unw_init_local2 (unw_cursor_t *cursor, ucontext_t *uc, int flag) in unw_init_local2() argument 66 return unw_init_local_common(cursor, u in unw_init_local2() [all...] |
/third_party/libunwind/libunwind/src/x86/ |
H A D | Ginit_local.c | 32 unw_init_local (unw_cursor_t *cursor, ucontext_t *uc) in unw_init_local() argument 40 unw_init_local_common(unw_cursor_t *cursor, ucontext_t *uc, unsigned use_prev_instr) in unw_init_local_common() argument 42 struct cursor *c = (struct cursor *) cursor; in unw_init_local_common() 47 Debug (1, "(cursor=%p)\n", c); in unw_init_local_common() 57 unw_init_local (unw_cursor_t *cursor, ucontext_t *uc) in unw_init_local() argument 59 return unw_init_local_common(cursor, uc, 1); in unw_init_local() 63 unw_init_local2 (unw_cursor_t *cursor, ucontext_t *uc, int flag) in unw_init_local2() argument 67 return unw_init_local_common(cursor, u in unw_init_local2() [all...] |