Home
last modified time | relevance | path

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

1234567891011

/Linux-v5.15/drivers/net/ethernet/mellanox/mlxsw/
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 …]
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. */
Dspectrum_matchall.c45 NL_SET_ERR_MSG(extack, "Failed to get SPAN agent"); in mlxsw_sp_mall_port_mirror_add()
63 NL_SET_ERR_MSG(extack, "Failed to bind SPAN agent"); in mlxsw_sp_mall_port_mirror_add()
428 NL_SET_ERR_MSG(extack, "Failed to get SPAN agent"); in mlxsw_sp2_mall_sample_add()
446 NL_SET_ERR_MSG(extack, "Failed to bind SPAN agent"); in mlxsw_sp2_mall_sample_add()
/Linux-v5.15/drivers/net/ethernet/marvell/prestera/
Dprestera_span.c36 list_add_tail(&entry->list, &port->sw->span->entries); in prestera_span_entry_create()
48 prestera_span_entry_find_by_id(struct prestera_span *span, u8 span_id) in prestera_span_entry_find_by_id() argument
52 list_for_each_entry(entry, &span->entries, list) { in prestera_span_entry_find_by_id()
61 prestera_span_entry_find_by_port(struct prestera_span *span, in prestera_span_entry_find_by_port() argument
66 list_for_each_entry(entry, &span->entries, list) { in prestera_span_entry_find_by_port()
81 entry = prestera_span_entry_find_by_port(sw->span, port); in prestera_span_get()
107 entry = prestera_span_entry_find_by_id(sw->span, span_id); in prestera_span_put()
219 struct prestera_span *span; in prestera_span_init() local
221 span = kzalloc(sizeof(*span), GFP_KERNEL); in prestera_span_init()
222 if (!span) in prestera_span_init()
[all …]
/Linux-v5.15/drivers/scsi/megaraid/
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 …]
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-v5.15/drivers/platform/surface/aggregator/
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 …]
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-v5.15/Documentation/scheduler/
Dsched-domains.rst10 Each scheduling domain spans a number of CPUs (stored in the ->span field).
11 A domain's span MUST be a superset of it child's span (this restriction could
12 be relaxed if the need arises), and a base domain for CPU i MUST span at least
13 i. The top domain for each CPU will generally span all CPUs in the system
16 explicitly set. A sched domain's span means "balance process load among these
22 domain's span. The group pointed to by the ->groups pointer MUST contain the CPU
58 The "base" domain will "span" the first level of the hierarchy. In the case
59 of SMT, you'll span all siblings of the physical CPU, with each group being
62 In SMP, the parent of the base domain will span all physical CPUs in the
64 of the SMP domain will span the entire machine, with each group having the
/Linux-v5.15/tools/testing/selftests/resctrl/
Dmbm_test.c18 show_bw_info(unsigned long *bw_imc, unsigned long *bw_resc, int span) in show_bw_info() argument
43 ksft_print_msg("Span (MB): %d\n", span); in show_bw_info()
50 static int check_results(int span) in check_results() argument
82 ret = show_bw_info(bw_imc, bw_resc, span); in check_results()
117 int mbm_bw_change(int span, int cpu_no, char *bw_report, char **benchmark_cmd) in mbm_bw_change() argument
123 .span = span, in mbm_bw_change()
138 ret = check_results(span); in mbm_bw_change()
Dresctrl_tests.c57 static void run_mbm_test(bool has_ben, char **benchmark_cmd, int span, in run_mbm_test() argument
71 res = mbm_bw_change(span, cpu_no, bw_report, benchmark_cmd); in run_mbm_test()
76 static void run_mba_test(bool has_ben, char **benchmark_cmd, int span, in run_mba_test() argument
89 sprintf(benchmark_cmd[1], "%d", span); in run_mba_test()
131 int c, cpu_no = 1, span = 250, argc_new = argc, i, no_of_bits = 0; in main() local
226 sprintf(benchmark_cmd[1], "%d", span); in main()
245 run_mbm_test(has_ben, benchmark_cmd, span, cpu_no, bw_report); in main()
248 run_mba_test(has_ben, benchmark_cmd, span, cpu_no, bw_report); in main()
Dresctrl.h50 * @span: Memory bytes accessed in each benchmark iteration
61 unsigned long span; member
96 int run_fill_buf(unsigned long span, int malloc_and_init_memory, int memflush,
99 int mbm_bw_change(int span, int cpu_no, char *bw_report, char **benchmark_cmd);
Dcmt_test.c73 return show_cache_info(sum_llc_occu_resc, no_of_bits, param->span, in check_results()
124 .span = cache_size * n / count_of_bits, in cmt_resctrl_val()
130 sprintf(benchmark_cmd[1], "%lu", param.span); in cmt_resctrl_val()
Dcache.c93 /* Stop counters after one span to get miss rate */ in get_llc_perf()
255 if (run_fill_buf(param->span, malloc_and_init_memory, in cat_val()
278 * @cache_span: cache span in bytes for CMT or in lines for CAT
310 ksft_print_msg("Cache span (%s): %lu\n", cmt ? "bytes" : "lines", in show_cache_info()
Dcat_test.c90 return show_cache_info(sum_llc_perf_miss, no_of_bits, param->span / 64, in check_results()
158 param.span = cache_size * (count_of_bits - n) / count_of_bits; in cat_perf_miss_val()
179 param.span = cache_size * n / count_of_bits; in cat_perf_miss_val()
/Linux-v5.15/drivers/iio/dac/
Dad5791.c68 int (*get_lin_comp) (unsigned int span);
210 static int ad5791_get_lin_comp(unsigned int span) in ad5791_get_lin_comp() argument
212 if (span <= 10000) in ad5791_get_lin_comp()
214 else if (span <= 12000) in ad5791_get_lin_comp()
216 else if (span <= 16000) in ad5791_get_lin_comp()
218 else if (span <= 19000) in ad5791_get_lin_comp()
224 static int ad5780_get_lin_comp(unsigned int span) in ad5780_get_lin_comp() argument
226 if (span <= 10000) in ad5780_get_lin_comp()
/Linux-v5.15/arch/sh/mm/
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-v5.15/Documentation/sphinx/
DrstFlatTable.py17 * *column-span*: with the role ``cspan`` a cell can be extended through
20 * *row-span*: with the role ``rspan`` a cell can be extended through
23 * *auto span* rightmost cell of a table row over the missing cells on the
25 can be changed from *auto span* to *auto fill*, which automatically inserts
77 nodelist = [colSpan(span=int(text))]
88 nodelist = [rowSpan(span=int(text))]
357 cspan = elem.get("span")
361 rspan = elem.get("span")
/Linux-v5.15/lib/
Dglob.c76 * Iterate over each span in the character class. in glob_match()
77 * A span is either a single character a, or a in glob_match()
78 * range a-b. The first span may begin with ']'. in glob_match()
/Linux-v5.15/kernel/sched/
Dtopology.c44 printk(KERN_CONT "span=%*pbl level=%s\n", in sched_domain_debug_one()
48 printk(KERN_ERR "ERROR: domain->span does not contain CPU%d\n", cpu); in sched_domain_debug_one()
92 printk(KERN_CONT " %d:{ span=%*pbl", in sched_domain_debug_one()
122 printk(KERN_ERR "ERROR: groups don't span domain->span\n"); in sched_domain_debug_one()
126 printk(KERN_ERR "ERROR: parent span is not a superset of domain->span\n"); in sched_domain_debug_one()
460 free_cpumask_var(rd->span); in free_rootdomain()
478 cpumask_clear_cpu(rq->cpu, old_rd->span); in rq_attach_root()
492 cpumask_set_cpu(rq->cpu, rd->span); in rq_attach_root()
517 if (!zalloc_cpumask_var(&rd->span, GFP_KERNEL)) in init_rootdomain()
550 free_cpumask_var(rd->span); in init_rootdomain()
[all …]
/Linux-v5.15/tools/perf/ui/gtk/
Dbrowser.c39 return "<span fgcolor='red'>"; in perf_gtk__get_percent_color()
41 return "<span fgcolor='dark green'>"; in perf_gtk__get_percent_color()
Dannotate.c52 ret += scnprintf(buf + ret, size - ret, "</span>"); in perf_gtk__get_percent()
74 const char *markup = "<span fgcolor='gray'>"; in perf_gtk__get_line()
88 ret += scnprintf(buf + ret, size - ret, "</span>"); in perf_gtk__get_line()
/Linux-v5.15/net/mac802154/
Drx.c37 __le16 span, sshort; in ieee802154_subif_frame() local
42 span = wpan_dev->pan_id; in ieee802154_subif_frame()
55 if (mac_cb(skb)->dest.pan_id != span && in ieee802154_subif_frame()
64 if (mac_cb(skb)->dest.pan_id != span && in ieee802154_subif_frame()
/Linux-v5.15/mm/
Dshuffle.c72 * the span, end_pfn - start_pfn.
99 * page_j randomly selected in the span @zone_start_pfn to in __shuffle_zone()
108 * Pick a random order aligned page in the zone span as in __shuffle_zone()
/Linux-v5.15/include/linux/sched/
Dtopology.h147 * Span of all CPUs in this domain.
153 unsigned long span[]; member
158 return to_cpumask(sd->span); in sched_domain_span()

1234567891011