Home
last modified time | relevance | path

Searched full:span (Results 1 – 25 of 277) sorted by relevance

12345678910>>...12

/linux/rust/macros/
H A Dquote.rs42 /// the given span.
48 ($span:expr => $($tt:tt)*) => {{
51 let span = $span;
52 quote_spanned!(@proc tokens span $($tt)*);
56 (@proc $v:ident $span:ident) => {};
57 (@proc $v:ident $span:ident #$id:ident $($tt:tt)*) => {
59 quote_spanned!(@proc $v $span $($tt)*);
61 (@proc $v:ident $span:ident #(#$id:ident)* $($tt:tt)*) => {
65 quote_spanned!(@proc $v $span
47 let span = $span; global() localVariable
[all...]
H A Dpaste.rs3 use proc_macro::{Delimiter, Group, Ident, Spacing, Span, TokenTree};
5 fn concat_helper(tokens: &[TokenTree]) -> Vec<(String, Span)> { in concat_helper() argument
8 let mut span = None; in concat_helper() localVariable
19 segments.push((value, lit.span())); in concat_helper()
26 segments.push((value, ident.span())); in concat_helper()
35 // Set the overall span of concatenated token as current span in concat_helper()
36 "span" => { in concat_helper()
38 span.is_none(), in concat_helper()
39 "span modifier should only appear at most once" in concat_helper()
41 span = Some(sp); in concat_helper()
[all …]
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_span.c46 struct mlxsw_sp_span *span; member
77 return atomic_read(&mlxsw_sp->span->active_entries_count); in mlxsw_sp_span_occ_get()
83 struct mlxsw_sp_span *span; in mlxsw_sp_span_init() local
90 span = kzalloc(struct_size(span, entries, entries_count), GFP_KERNEL); in mlxsw_sp_span_init()
91 if (!span) in mlxsw_sp_span_init()
93 refcount_set(&span->policer_id_base_ref_count, 0); in mlxsw_sp_span_init()
94 span->entries_count = entries_count; in mlxsw_sp_span_init()
95 atomic_set(&span->active_entries_count, 0); in mlxsw_sp_span_init()
96 mutex_init(&span->analyzed_ports_lock); in mlxsw_sp_span_init()
97 INIT_LIST_HEAD(&span->analyzed_ports_list); in mlxsw_sp_span_init()
[all …]
H A Dspectrum_span.h16 /* SPAN session identifiers that correspond to MLXSW_TRAP_ID_MIRROR_SESSION<i>
17 * trap identifiers. The session identifier is an attribute of the SPAN agent,
30 struct mlxsw_sp_port *dest_port; /* NULL for unoffloaded SPAN. */
/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_span.c37 list_add_tail(&entry->list, &port->sw->span->entries); in prestera_span_entry_create()
49 prestera_span_entry_find_by_id(struct prestera_span *span, u8 span_id) in prestera_span_entry_find_by_id() argument
53 list_for_each_entry(entry, &span->entries, list) { in prestera_span_entry_find_by_id()
62 prestera_span_entry_find_by_port(struct prestera_span *span, in prestera_span_entry_find_by_port() argument
67 list_for_each_entry(entry, &span->entries, list) { in prestera_span_entry_find_by_port()
82 entry = prestera_span_entry_find_by_port(sw->span, port); in prestera_span_get()
108 entry = prestera_span_entry_find_by_id(sw->span, span_id); in prestera_span_put()
171 struct prestera_span *span; in prestera_span_init() local
173 span = kzalloc(sizeof(*span), GFP_KERNEL); in prestera_span_init()
174 if (!span) in prestera_span_init()
[all …]
/linux/drivers/scsi/megaraid/
H A Dmegaraid_sas_fp.c123 u16 MR_LdSpanArrayGet(u32 ld, u32 span, struct MR_DRV_RAID_MAP_ALL *map) in MR_LdSpanArrayGet() argument
125 return le16_to_cpu(map->raidMap.ldSpanMap[ld].spanBlock[span].span.arrayRef); in MR_LdSpanArrayGet()
148 static struct MR_LD_SPAN *MR_LdSpanPtrGet(u32 ld, u32 span, in MR_LdSpanPtrGet() argument
151 return &map->raidMap.ldSpanMap[ld].spanBlock[span].span; in MR_LdSpanPtrGet()
338 dev_err(&instance->pdev->dev, "megasas: span map %x, pDrvRaidMap->totalSize : %x\n", in MR_ValidateMapInfo()
379 u32 span, j; in MR_GetSpanBlock() local
381 for (span = 0; span < raid->spanDepth; span++, pSpanBlock++) { in MR_GetSpanBlock()
398 return span; in MR_GetSpanBlock()
408 * This routine calculates the Span block for given row using spanset.
418 * span - Span number
[all …]
H A Dmbox_defs.h595 * adap_span_40ld_t - 40LD span
607 * adap_span_8ld_t - 8LD span
645 * @span : span
649 adap_span_40ld_t span[SPAN_DEPTH_8_SPANS]; member
656 * @span : span
662 adap_span_8ld_t span[SPAN_DEPTH_8_SPANS]; member
669 * @span : span
675 adap_span_8ld_t span[SPAN_DEPTH_4_SPANS]; member
/linux/drivers/iio/dac/
H A Dltc2664.c92 /* span code of the channel */
93 u8 span; member
136 int span, fs; in ltc2664_scale_get() local
138 span = chan->span; in ltc2664_scale_get()
139 if (span < 0) in ltc2664_scale_get()
140 return span; in ltc2664_scale_get()
142 fs = span_helper[span][1] - span_helper[span][0]; in ltc2664_scale_get()
150 int span, fs; in ltc2672_scale_get() local
152 span = chan->span - 1; in ltc2672_scale_get()
153 if (span < 0) in ltc2672_scale_get()
[all …]
H A Dltc2688.c137 int ret, reg, span; in ltc2688_span_get() local
143 span = FIELD_GET(LTC2688_CH_SPAN_MSK, reg); in ltc2688_span_get()
145 if (span >= LTC2688_SPAN_RANGE_MAX) in ltc2688_span_get()
148 return span; in ltc2688_span_get()
158 int span, fs; in ltc2688_scale_get() local
160 span = ltc2688_span_get(st, c); in ltc2688_scale_get()
161 if (span < 0) in ltc2688_scale_get()
162 return span; in ltc2688_scale_get()
164 fs = ltc2688_span_helper[span][1] - ltc2688_span_helper[span][0]; in ltc2688_scale_get()
175 int span; in ltc2688_offset_get() local
[all …]
H A Dad3552r-common.c125 s32 idx, v_max, v_min, span, rem; in ad3552r_calc_gain_and_offset() local
139 * Vout = Span * (D / 65536) + Vmin in ad3552r_calc_gain_and_offset()
141 * Scale = Span / 65536 in ad3552r_calc_gain_and_offset()
142 * Offset = 65536 * Vmin / Span in ad3552r_calc_gain_and_offset()
147 span = v_max - v_min; in ad3552r_calc_gain_and_offset()
148 ch_data->scale_int = div_s64_rem(span, 65536, &rem); in ad3552r_calc_gain_and_offset()
152 ch_data->offset_int = div_s64_rem(v_min * 65536, span, &rem); in ad3552r_calc_gain_and_offset()
154 ch_data->offset_dec = div_s64(tmp, span); in ad3552r_calc_gain_and_offset()
/linux/drivers/platform/surface/aggregator/
H A Dssh_parser.c18 * @src: The span of data over which the CRC should be computed.
21 * Computes the CRC of the provided data span (@src), compares it to the CRC
39 * @src: The data span to check the start of.
47 * sshp_find_syn() - Find SSH SYN bytes in the given data span.
48 * @src: The data span to search in.
49 * @rem: The span (output) indicating the remaining data, starting with SSH
52 * Search for SSH SYN bytes in the given source span. If found, set the @rem
53 * span to the remaining data, starting with the first SYN bytes and capped by
54 * the source span length, and return %true. This function does not copy any
58 * If no SSH SYN bytes could be found, set the @rem span to the zero-length
[all …]
H A Dssh_parser.h123 * sshp_buf_span_from() - Initialize a span from the given buffer and offset.
124 * @buf: The buffer to create the span from.
125 * @offset: The offset in the buffer at which the span should start.
126 * @span: The span to initialize (output).
128 * Initializes the provided span to point to the memory at the given offset in
129 * the buffer, with the length of the span being capped by the number of bytes
138 struct ssam_span *span) in sshp_buf_span_from() argument
140 span->ptr = buf->ptr + offset; in sshp_buf_span_from()
141 span->len = buf->len - offset; in sshp_buf_span_from()
/linux/fs/netfs/
H A Diterator.c106 * Select the span of a bvec iterator we're going to use. Limit it by both maximum
107 * size and maximum number of segments. Returns the size of the span in bytes.
114 size_t len, span = 0, n = iter->count; in netfs_limit_bvec() local
133 span += len; in netfs_limit_bvec()
136 if (span >= max_size || nsegs >= max_segs) in netfs_limit_bvec()
142 return min(span, max_size); in netfs_limit_bvec()
146 * Select the span of an xarray iterator we're going to use. Limit it by both
149 * Returns the size of the span in bytes.
158 size_t span = 0, n = iter->count; in netfs_limit_xarray() local
181 span += len; in netfs_limit_xarray()
[all …]
/linux/drivers/iommu/iommufd/
H A Ddouble_span.h12 * up and reported based on the tree that provides the interval. The first span
27 /* 0 = hole, 1 = used span[0], 2 = used span[1], -1 done iteration */
46 #define interval_tree_for_each_double_span(span, itree1, itree2, first_index, \ argument
48 for (interval_tree_double_span_iter_first(span, itree1, itree2, \
50 !interval_tree_double_span_iter_done(span); \
51 interval_tree_double_span_iter_next(span))
/linux/include/linux/
H A Dinterval_tree.h39 * nodes but classifies each span as either a hole, where no nodes intersect, or
82 #define interval_tree_for_each_span(span, itree, first_index, last_index) \ argument
83 for (interval_tree_span_iter_first(span, itree, \
85 !interval_tree_span_iter_done(span); \
86 interval_tree_span_iter_next(span))
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_access_variable_array.c8 unsigned long span = 0; variable
14 span = sd->span[0]; in BPF_PROG()
/linux/tools/testing/selftests/resctrl/
H A Dcat_test.c141 * @span: Buffer size for the benchmark
159 size_t span, unsigned long current_mask) in cat_test() argument
192 buf = alloc_buffer(span, 1); in cat_test()
209 mem_flush(buf, span); in cat_test()
210 fill_cache_read(buf, span, true); in cat_test()
216 fill_cache_read(buf, span, true); in cat_test()
242 size_t span; in cat_run_test() local
278 span = cache_portion_size(cache_total_size, start_mask, full_cache_mask); in cat_run_test()
282 ret = cat_test(test, uparams, &param, span, start_mask); in cat_run_test()
/linux/arch/sh/mm/
H A Dpmb.c146 unsigned long span; in pmb_mapping_exists() local
169 span = pmbe->size; in pmb_mapping_exists()
176 span += iter->size; in pmb_mapping_exists()
181 if (size <= span) { in pmb_mapping_exists()
381 * Link adjacent entries that span multiple PMB in pmb_bolt_mapping()
640 * see if the entries span a contiguous mapping. If so, in pmb_synchronize()
657 unsigned long span, newsize; in pmb_merge() local
661 span = newsize = head->size; in pmb_merge()
665 span += tail->size; in pmb_merge()
667 if (pmb_size_valid(span)) { in pmb_merge()
[all …]
/linux/tools/sched/
H A Droot_domains_dump.py53 print(f" Span : {cpumask_to_cpulist(root_domain.span[0])}")
54 print(f" Online : {cpumask_to_cpulist(root_domain.span[0])}")
/linux/drivers/irqchip/
H A Dirq-gic-v5-its.c184 * with the device table. Span may be used to limit the second level table
193 unsigned int l1_bits, l2_bits, span, events_per_l2_table; in gicv5_its_create_itt_two_level() local
241 span = i == complete_tables ? final_span : l2_bits; in gicv5_its_create_itt_two_level()
243 itt_l2 = kcalloc(BIT(span), sizeof(*itt_l2), GFP_KERNEL); in gicv5_its_create_itt_two_level()
251 l2sz = BIT(span) * sizeof(*itt_l2); in gicv5_its_create_itt_two_level()
256 FIELD_PREP(GICV5_ITTL1E_SPAN, span) | in gicv5_its_create_itt_two_level()
386 u8 span, l2sz, l2_bits; in gicv5_its_alloc_l2_devtab() local
392 span = FIELD_GET(GICV5_DTL1E_SPAN, le64_to_cpu(l1devtab[l1_index])); in gicv5_its_alloc_l2_devtab()
398 * Span allows us to create a smaller L2 device table. in gicv5_its_alloc_l2_devtab()
401 if (span > l2_bits) in gicv5_its_alloc_l2_devtab()
[all …]
/linux/Documentation/PCI/endpoint/
H A Dpci-vntb-function.rst76 | Peer Span Space | Span Space |
82 | Span Space | Peer Span Space |
/linux/Documentation/sphinx-static/
H A Dtheme_rtd_colors.css29 span.menuselection {
33 code.kbd, code.kbd span {
/linux/Documentation/devicetree/bindings/interrupt-controller/
H A Dmsi-controller.yaml37 A list of <phandle intspec span> tuples, where "phandle" is the
39 interrupt specifier and "span" is the size of the
/linux/lib/
H A Dglob.c78 * Iterate over each span in the character class. in glob_match()
79 * A span is either a single character a, or a in glob_match()
80 * range a-b. The first span may begin with ']'. in glob_match()
/linux/kernel/sched/
H A Dtopology.c53 printk(KERN_CONT "span=%*pbl level=%s\n", in sched_domain_debug_one()
57 printk(KERN_ERR "ERROR: domain->span does not contain CPU%d\n", cpu); in sched_domain_debug_one()
101 printk(KERN_CONT " %d:{ span=%*pbl", in sched_domain_debug_one()
131 printk(KERN_ERR "ERROR: groups don't span domain->span\n"); in sched_domain_debug_one()
135 printk(KERN_ERR "ERROR: parent span is not a superset of domain->span\n"); in sched_domain_debug_one()
467 free_cpumask_var(rd->span); in free_rootdomain()
485 cpumask_clear_cpu(rq->cpu, old_rd->span); in rq_attach_root()
499 cpumask_set_cpu(rq->cpu, rd->span); in rq_attach_root()
532 if (!zalloc_cpumask_var(&rd->span, GFP_KERNEL)) in init_rootdomain()
565 free_cpumask_var(rd->span); in init_rootdomain()
[all …]

12345678910>>...12