Home
last modified time | relevance | path

Searched refs:lookahead (Results 1 – 25 of 27) sorted by relevance

12

/linux/rust/syn/
H A Dderive.rs87 let lookahead = input.lookahead1(); in parse() localVariable
88 if lookahead.peek(Token![struct]) { in parse()
107 } else if lookahead.peek(Token![enum]) { in parse()
126 } else if lookahead.peek(Token![union]) { in parse()
145 Err(lookahead.error()) in parse()
153 let mut lookahead = input.lookahead1(); localVariable
155 if lookahead.peek(Token![where]) {
157 lookahead = input.lookahead1();
160 if where_clause.is_none() && lookahead.peek(token::Paren) {
163 lookahead = input.lookahead1();
[all …]
H A Ditem.rs956 let lookahead = ahead.lookahead1(); in parse_rest_of_item() localVariable
958 let mut item = if lookahead.peek(Token![fn]) || peek_signature(&ahead, allow_safe) { in parse_rest_of_item()
967 } else if lookahead.peek(Token![extern]) { in parse_rest_of_item()
969 let lookahead = ahead.lookahead1(); in parse_rest_of_item() localVariable
970 if lookahead.peek(Token![crate]) { in parse_rest_of_item()
972 } else if lookahead.peek(token::Brace) { in parse_rest_of_item()
974 } else if lookahead.peek(LitStr) { in parse_rest_of_item()
976 let lookahead = ahead.lookahead1(); in parse_rest_of_item() localVariable
977 if lookahead.peek(token::Brace) { in parse_rest_of_item()
980 Err(lookahead.error()) in parse_rest_of_item()
[all …]
H A Dpat.rs291 let lookahead = input.lookahead1(); in parse_single() localVariable
292 if lookahead.peek(Ident) in parse_single()
299 || lookahead.peek(Token![::]) in parse_single()
300 || lookahead.peek(Token![<]) in parse_single()
306 } else if lookahead.peek(Token![_]) { in parse_single()
310 } else if input.peek(Token![-]) || lookahead.peek(Lit) || lookahead.peek(Token![const]) in parse_single()
313 } else if lookahead.peek(Token![ref]) in parse_single()
314 || lookahead.peek(Token![mut]) in parse_single()
319 } else if lookahead.peek(Token![&]) { in parse_single()
321 } else if lookahead.peek(token::Paren) { in parse_single()
[all …]
H A Dty.rs363 let mut lookahead = input.lookahead1(); in ambig_ty() localVariable
364 if lookahead.peek(Token![for]) { in ambig_ty()
366 lookahead = input.lookahead1(); in ambig_ty()
367 if !lookahead.peek(Ident) in ambig_ty()
368 && !lookahead.peek(Token![fn]) in ambig_ty()
369 && !lookahead.peek(Token![unsafe]) in ambig_ty()
370 && !lookahead.peek(Token![extern]) in ambig_ty()
371 && !lookahead.peek(Token![super]) in ambig_ty()
372 && !lookahead.peek(Token![self]) in ambig_ty()
373 && !lookahead.peek(Token![Self]) in ambig_ty()
[all …]
H A Dlookahead.rs5 use crate::sealed::lookahead::Sealed;
79 lookahead: &Lookahead1, in peek_impl()
83 if peek(lookahead.cursor) { in peek_impl()
86 lookahead.comparisons.borrow_mut().push(display()); in peek_impl()
H A Dgenerics.rs555 let lookahead = input.lookahead1(); in parse() localVariable
556 if lookahead.peek(Lifetime) { in parse()
561 } else if lookahead.peek(Ident) { in parse()
566 } else if lookahead.peek(Token![const]) { in parse()
581 return Err(lookahead.error()); in parse()
607 let lookahead = input.lookahead1(); in parse() localVariable
608 if lookahead.peek(Ident) { in parse()
613 } else if lookahead.peek(Lifetime) { in parse()
618 } else if lookahead.peek(Token![const]) { in parse()
624 Err(lookahead.error()) in parse()
[all …]
H A Dop.rs155 let lookahead = input.lookahead1(); in parse() localVariable
156 if lookahead.peek(Token![*]) { in parse()
158 } else if lookahead.peek(Token![!]) { in parse()
160 } else if lookahead.peek(Token![-]) { in parse()
163 Err(lookahead.error()) in parse()
H A Dext.rs9 use crate::sealed::lookahead;
120 impl lookahead::Sealed for private::PeekFn {}
H A Dident.rs4 use crate::lookahead;
12 pub fn Ident(marker: lookahead::TokenMarker) -> Ident {
H A Dlifetime.rs4 use crate::lookahead;
120 pub fn Lifetime(marker: lookahead::TokenMarker) -> Lifetime {
H A Dsealed.rs4 pub(crate) mod lookahead { module
H A Dparse.rs189 use crate::lookahead;
207 pub use crate::lookahead::{End, Lookahead1, Peek};
839 lookahead::new(self.scope, self.cursor()) in lookahead1()
H A Dexpr.rs2254 let lookahead = input.lookahead1(); in parse() localVariable
2255 if lookahead.peek(Token![if]) { in parse()
2258 } else if lookahead.peek(token::Brace) { in parse()
2269 return Err(lookahead.error()); in parse()
2925 let lookahead = input.lookahead1(); in parse() localVariable
2926 let dot_dot = lookahead.peek(Token![..]); in parse()
2927 let dot_dot_eq = dot_dot && lookahead.peek(Token![..=]); in parse()
2934 Err(lookahead.error()) in parse()
2942 let lookahead = input.lookahead1(); in parse_obsolete() localVariable
2943 let dot_dot = lookahead.peek(Token![..]); in parse_obsolete()
[all …]
H A Dlit.rs4 use crate::lookahead;
808 pub fn $ty(marker: lookahead::TokenMarker) -> $ty {
827 pub fn LitBool(marker: lookahead::TokenMarker) -> LitBool {
848 pub fn Lit(marker: lookahead::TokenMarker) -> Lit {
H A Dpath.rs412 let lookahead = input.lookahead1(); in const_argument() localVariable
446 Err(lookahead.error()) in const_argument()
H A Dlib.rs451 mod lookahead; module
/linux/drivers/net/wireless/ath/ath10k/
H A Dsdio.c457 /* Only read lookahead's from RX trailers in ath10k_sdio_mbox_rx_process_packets()
744 /* Copy the lookahead obtained from the HTC register table into our in ath10k_sdio_mbox_rxmsg_pending_handler()
771 * n_lookaheads depending on if the packets contain lookahead in ath10k_sdio_mbox_rxmsg_pending_handler()
931 u32 *lookahead) in ath10k_sdio_mbox_read_int_status() argument
942 *lookahead = 0; in ath10k_sdio_mbox_read_int_status()
959 * registers and the lookahead registers. in ath10k_sdio_mbox_read_int_status()
975 *lookahead = 0; in ath10k_sdio_mbox_read_int_status()
985 *lookahead = le32_to_cpu( in ath10k_sdio_mbox_read_int_status()
987 if (!*lookahead) in ath10k_sdio_mbox_read_int_status()
988 ath10k_warn(ar, "sdio mbox lookahead i in ath10k_sdio_mbox_read_int_status()
1000 u32 lookahead; ath10k_sdio_mbox_proc_pending_irqs() local
[all...]
H A Dhtc.h235 u8 lookahead[4]; member
243 u8 lookahead[4]; member
H A Dhtc.c293 /* Invalid lookahead flags are actually transmitted by in ath10k_htc_process_lookahead()
296 * the lookahead in this case in ath10k_htc_process_lookahead()
303 "htc rx lookahead found pre_valid 0x%x post_valid 0x%x\n", in ath10k_htc_process_lookahead()
307 memcpy((u8 *)next_lookaheads, report->lookahead, 4); in ath10k_htc_process_lookahead()
327 ath10k_warn(ar, "Invalid lookahead bundle count: %d\n", in ath10k_htc_process_lookahead_bundle()
337 report->lookahead, 4); in ath10k_htc_process_lookahead_bundle()
/linux/arch/sh/include/asm/
H A Dprocessor_32.h82 unsigned char lookahead; member
/linux/fs/erofs/
H A Dzmap.c102 u64 lcn, bool lookahead) in z_erofs_load_compact_lcluster()
169 if (lookahead) in z_erofs_load_compact_lcluster()
242 u64 lcn, bool lookahead) in z_erofs_load_lcluster_from_disk()
248 err = z_erofs_load_compact_lcluster(m, lcn, lookahead); in z_erofs_load_lcluster_from_disk()
96 z_erofs_load_compact_lcluster(struct z_erofs_maprecorder * m,u64 lcn,bool lookahead) z_erofs_load_compact_lcluster() argument
236 z_erofs_load_lcluster_from_disk(struct z_erofs_maprecorder * m,u64 lcn,bool lookahead) z_erofs_load_lcluster_from_disk() argument
/linux/arch/x86/include/asm/fpu/
H A Dtypes.h93 u8 lookahead; member
/linux/tools/perf/util/intel-pt-decoder/
H A Dintel-pt-decoder.h279 int (*lookahead)(void *data, intel_pt_lookahead_cb_t cb, void *cb_data); member
H A Dintel-pt-decoder.c123 int (*lookahead)(void *data, intel_pt_lookahead_cb_t cb, void *cb_data); member
320 decoder->lookahead = params->lookahead; in intel_pt_decoder_new()
4401 * intel_pt_ff_cb - fast forward lookahead callback.
4407 * Return: 1 (stop lookahead) if @buffer trace is past the fast forward
4461 err = decoder->lookahead(decoder->data, intel_pt_ff_cb, &d); in intel_pt_fast_forward()
/linux/lib/zlib_deflate/
H A Ddefutil.h136 uInt lookahead; /* number of valid bytes ahead in window */ member

12