Home
last modified time | relevance | path

Searched refs:span (Results 1 - 25 of 166) sorted by relevance

1234567

/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/span/
H A Dspan_fontweight_test.cpp21 NAPI_START(span, ARKUI_NODE_SPAN); in TestSpanFontWeight001()
25 auto ret = nodeAPI->setAttribute(span, NODE_FONT_WEIGHT, &value_item); in TestSpanFontWeight001()
27 ASSERT_EQ(nodeAPI->getAttribute(span, NODE_FONT_WEIGHT)->value[PARAM_0].i32, ARKUI_FONT_WEIGHT_W100); in TestSpanFontWeight001()
33 NAPI_START(span, ARKUI_NODE_SPAN); in TestSpanFontWeight002()
37 auto ret = nodeAPI->setAttribute(span, NODE_FONT_WEIGHT, &value_item); in TestSpanFontWeight002()
39 ASSERT_EQ(nodeAPI->getAttribute(span, NODE_FONT_WEIGHT)->value[PARAM_0].i32, ARKUI_FONT_WEIGHT_W200); in TestSpanFontWeight002()
45 NAPI_START(span, ARKUI_NODE_SPAN); in TestSpanFontWeight003()
49 auto ret = nodeAPI->setAttribute(span, NODE_FONT_WEIGHT, &value_item); in TestSpanFontWeight003()
51 ASSERT_EQ(nodeAPI->getAttribute(span, NODE_FONT_WEIGHT)->value[PARAM_0].i32, ARKUI_FONT_WEIGHT_W300); in TestSpanFontWeight003()
57 NAPI_START(span, ARKUI_NODE_SPA in TestSpanFontWeight004()
[all...]
H A Dspan_decoration_test.cpp22 NAPI_START(span, ARKUI_NODE_SPAN); in TestSpanDecoration001()
28 auto ret = nodeAPI->setAttribute(span, NODE_TEXT_DECORATION, &decoration_item); in TestSpanDecoration001()
30 ASSERT_EQ(nodeAPI->getAttribute(span, NODE_TEXT_DECORATION)->value[PARAM_0].i32, decorationType); in TestSpanDecoration001()
31 ASSERT_EQ(nodeAPI->getAttribute(span, NODE_TEXT_DECORATION)->value[PARAM_1].u32, color); in TestSpanDecoration001()
37 NAPI_START(span, ARKUI_NODE_SPAN); in TestSpanDecoration002()
43 auto ret = nodeAPI->setAttribute(span, NODE_TEXT_DECORATION, &decoration_item); in TestSpanDecoration002()
45 ASSERT_EQ(nodeAPI->getAttribute(span, NODE_TEXT_DECORATION)->value[PARAM_0].i32, decorationType); in TestSpanDecoration002()
46 ASSERT_EQ(nodeAPI->getAttribute(span, NODE_TEXT_DECORATION)->value[PARAM_1].u32, color); in TestSpanDecoration002()
52 NAPI_START(span, ARKUI_NODE_SPAN); in TestSpanDecoration003()
58 auto ret = nodeAPI->setAttribute(span, NODE_TEXT_DECORATIO in TestSpanDecoration003()
[all...]
H A Dspan_textcase_test.cpp22 NAPI_START(span, ARKUI_NODE_SPAN); in TestSpanTextCase001()
27 auto ret = nodeAPI->setAttribute(span, NODE_TEXT_CASE, &text_case_item); in TestSpanTextCase001()
29 ASSERT_EQ(nodeAPI->getAttribute(span, NODE_TEXT_CASE)->value[PARAM_0].i32, textCase); in TestSpanTextCase001()
35 NAPI_START(span, ARKUI_NODE_SPAN); in TestSpanTextCase002()
40 auto ret = nodeAPI->setAttribute(span, NODE_TEXT_CASE, &text_case_item); in TestSpanTextCase002()
42 ASSERT_EQ(nodeAPI->getAttribute(span, NODE_TEXT_CASE)->value[PARAM_0].i32, textCase); in TestSpanTextCase002()
48 NAPI_START(span, ARKUI_NODE_SPAN); in TestSpanTextCase003()
53 auto ret = nodeAPI->setAttribute(span, NODE_TEXT_CASE, &text_case_item); in TestSpanTextCase003()
55 ASSERT_EQ(nodeAPI->getAttribute(span, NODE_TEXT_CASE)->value[PARAM_0].i32, textCase); in TestSpanTextCase003()
61 NAPI_START(span, ARKUI_NODE_SPA in TestSpanTextCase004()
[all...]
H A Dspan_fontstyle_test.cpp21 NAPI_START(span, ARKUI_NODE_SPAN); in TestSpanFontStyle001()
25 auto ret = nodeAPI->setAttribute(span, NODE_FONT_STYLE, &value_item); in TestSpanFontStyle001()
27 ASSERT_EQ(nodeAPI->getAttribute(span, NODE_FONT_STYLE)->value[PARAM_0].i32, ARKUI_FONT_STYLE_NORMAL); in TestSpanFontStyle001()
33 NAPI_START(span, ARKUI_NODE_SPAN); in TestSpanFontStyle002()
37 auto ret = nodeAPI->setAttribute(span, NODE_FONT_STYLE, &value_item); in TestSpanFontStyle002()
39 ASSERT_EQ(nodeAPI->getAttribute(span, NODE_FONT_STYLE)->value[PARAM_0].i32, ARKUI_FONT_STYLE_ITALIC); in TestSpanFontStyle002()
45 NAPI_START(span, ARKUI_NODE_SPAN); in TestSpanFontStyle003()
50 auto ret = nodeAPI->setAttribute(span, NODE_FONT_STYLE, &value_item); in TestSpanFontStyle003()
52 if (nodeAPI->getAttribute(span, NODE_FONT_STYLE) != nullptr) { in TestSpanFontStyle003()
53 ASSERT_NE(nodeAPI->getAttribute(span, NODE_FONT_STYL in TestSpanFontStyle003()
[all...]
H A Dspan_fontsize_test.cpp21 NAPI_START(span, ARKUI_NODE_SPAN); in TestSpanFontSize001()
26 auto ret = nodeAPI->setAttribute(span, NODE_FONT_SIZE, &value_item); in TestSpanFontSize001()
28 ASSERT_EQ(nodeAPI->getAttribute(span, NODE_FONT_SIZE)->value[PARAM_0].f32, fontSize); in TestSpanFontSize001()
34 NAPI_START(span, ARKUI_NODE_SPAN); in TestSpanFontSize002()
39 auto ret = nodeAPI->setAttribute(span, NODE_FONT_SIZE, &value_item); in TestSpanFontSize002()
41 if (nodeAPI->getAttribute(span, NODE_FONT_SIZE) != nullptr) { in TestSpanFontSize002()
42 ASSERT_NE(nodeAPI->getAttribute(span, NODE_FONT_SIZE)->value[PARAM_0].f32, fontSize); in TestSpanFontSize002()
49 NAPI_START(span, ARKUI_NODE_SPAN); in TestSpanFontSize003()
53 auto ret = nodeAPI->setAttribute(span, NODE_FONT_SIZE, &value_item); in TestSpanFontSize003()
55 ASSERT_EQ(nodeAPI->getAttribute(span, NODE_FONT_SIZ in TestSpanFontSize003()
[all...]
H A Dspan_lineheight_test.cpp24 NAPI_START(span, ARKUI_NODE_SPAN); in TestSpanLineHeight001()
29 auto ret = nodeAPI->setAttribute(span, NODE_TEXT_LINE_HEIGHT, &lineHeight_item); in TestSpanLineHeight001()
31 ASSERT_EQ(nodeAPI->getAttribute(span, NODE_TEXT_LINE_HEIGHT)->value[PARAM_0].f32, lineHeight); in TestSpanLineHeight001()
37 NAPI_START(span, ARKUI_NODE_SPAN); in TestSpanLineHeight002()
42 auto ret = nodeAPI->setAttribute(span, NODE_TEXT_LINE_HEIGHT, &lineHeight_item); in TestSpanLineHeight002()
44 ASSERT_EQ(nodeAPI->getAttribute(span, NODE_TEXT_LINE_HEIGHT)->value[PARAM_0].f32, lineHeight); in TestSpanLineHeight002()
50 NAPI_START(span, ARKUI_NODE_SPAN); in TestSpanLineHeight003()
55 auto ret = nodeAPI->setAttribute(span, NODE_TEXT_LINE_HEIGHT, &lineHeight_item); in TestSpanLineHeight003()
57 ASSERT_EQ(nodeAPI->getAttribute(span, NODE_TEXT_LINE_HEIGHT)->value[PARAM_0].f32, lineHeight); in TestSpanLineHeight003()
H A Dspan_letterspacing_test.cpp22 NAPI_START(span, ARKUI_NODE_SPAN); in TestSpanLetterSpacing001()
28 auto ret = nodeAPI->setAttribute(span, NODE_TEXT_LETTER_SPACING, &letterspacing_item); in TestSpanLetterSpacing001()
30 ASSERT_EQ(nodeAPI->getAttribute(span, NODE_TEXT_LETTER_SPACING)->value[PARAM_0].f32, letterSpacing); in TestSpanLetterSpacing001()
36 NAPI_START(span, ARKUI_NODE_SPAN); in TestSpanLetterSpacing002()
42 auto ret = nodeAPI->setAttribute(span, NODE_TEXT_LETTER_SPACING, &letterspacing_item); in TestSpanLetterSpacing002()
44 ASSERT_EQ(nodeAPI->getAttribute(span, NODE_TEXT_LETTER_SPACING)->value[PARAM_0].f32, letterSpacing); in TestSpanLetterSpacing002()
50 NAPI_START(span, ARKUI_NODE_SPAN); in TestSpanLetterSpacing003()
56 auto ret = nodeAPI->setAttribute(span, NODE_TEXT_LETTER_SPACING, &letterspacing_item); in TestSpanLetterSpacing003()
58 ASSERT_EQ(nodeAPI->getAttribute(span, NODE_TEXT_LETTER_SPACING)->value[PARAM_0].f32, letterSpacing); in TestSpanLetterSpacing003()
H A Dspan_fontcolor_test.cpp21 NAPI_START(span, ARKUI_NODE_SPAN); in TestSpanFontColor001()
26 auto ret = nodeAPI->setAttribute(span, NODE_FONT_COLOR, &value_item); in TestSpanFontColor001()
28 ASSERT_EQ(nodeAPI->getAttribute(span, NODE_FONT_COLOR)->value[PARAM_0].u32, colorTransparent); in TestSpanFontColor001()
34 NAPI_START(span, ARKUI_NODE_SPAN); in TestSpanFontColor002()
38 auto ret = nodeAPI->setAttribute(span, NODE_FONT_COLOR, &value_item); in TestSpanFontColor002()
40 ASSERT_EQ(nodeAPI->getAttribute(span, NODE_FONT_COLOR)->value[PARAM_0].u32, COLOR_RED); in TestSpanFontColor002()
46 NAPI_START(span, ARKUI_NODE_SPAN); in TestSpanFontColor003()
50 auto ret = nodeAPI->setAttribute(span, NODE_FONT_COLOR, &value_item); in TestSpanFontColor003()
52 ASSERT_EQ(nodeAPI->getAttribute(span, NODE_FONT_COLOR)->value[PARAM_0].u32, COLOR_WHITE); in TestSpanFontColor003()
H A Dspan_content_test.cpp22 NAPI_START(span, ARKUI_NODE_SPAN); in TestSpanContent001()
26 auto ret = nodeAPI->setAttribute(span, NODE_SPAN_CONTENT, &valueItem); in TestSpanContent001()
28 ASSERT_STREQ(nodeAPI->getAttribute(span, NODE_SPAN_CONTENT)->string, STR_TEXT); in TestSpanContent001()
/kernel/linux/linux-6.6/rust/macros/
H A Dquote.rs36 /// the given span.
42 ($span:expr => $($tt:tt)*) => {{
47 let span = $span;
48 quote_spanned!(@proc tokens span $($tt)*);
52 (@proc $v:ident $span:ident) => {};
53 (@proc $v:ident $span:ident #$id:ident $($tt:tt)*) => {
57 quote_spanned!(@proc $v $span $($tt)*);
59 (@proc $v:ident $span:ident #(#$id:ident)* $($tt:tt)*) => {
65 quote_spanned!(@proc $v $span
[all...]
H A Dpaste.rs8 let mut span = None; in concat() variables
12 Some(TokenTree::Literal(lit)) => segments.push((lit.to_string(), lit.span())), in concat()
18 segments.push((value, ident.span())); in concat()
27 // Set the overall span of concatenated token as current span in concat()
28 "span" => { in concat()
30 span.is_none(), in concat()
31 "span modifier should only appear at most once" in concat()
33 span = Some(sp); in concat()
46 TokenTree::Ident(Ident::new(&pasted, span in concat()
[all...]
/kernel/linux/linux-6.6/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_KERNE in prestera_span_init()
187 struct prestera_span *span = sw->span; prestera_span_fini() local
[all...]
/kernel/linux/linux-5.10/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 in mlxsw_sp_span_init()
807 mlxsw_sp_span_policer_id_base_set(struct mlxsw_sp_span *span, u16 policer_id) mlxsw_sp_span_policer_id_base_set() argument
841 mlxsw_sp_span_policer_id_base_unset(struct mlxsw_sp_span *span) mlxsw_sp_span_policer_id_base_unset() argument
997 mlxsw_sp_span_analyzed_port_find(struct mlxsw_sp_span *span, u8 local_port, bool ingress) mlxsw_sp_span_analyzed_port_find() argument
1015 struct mlxsw_sp_span *span = mlxsw_sp->span; mlxsw_sp_span_entry_ops() local
1027 struct mlxsw_sp_span *span; mlxsw_sp_span_respin_work() local
1111 mlxsw_sp_span_analyzed_port_create(struct mlxsw_sp_span *span, struct mlxsw_sp_port *mlxsw_sp_port, bool ingress) mlxsw_sp_span_analyzed_port_create() argument
1211 __mlxsw_sp_span_trigger_port_bind(struct mlxsw_sp_span *span, struct mlxsw_sp_span_trigger_entry * trigger_entry, bool enable) __mlxsw_sp_span_trigger_port_bind() argument
1465 struct mlxsw_sp_span *span = trigger_entry->span; mlxsw_sp_span_trigger_ops_set() local
1487 mlxsw_sp_span_trigger_entry_create(struct mlxsw_sp_span *span, enum mlxsw_sp_span_trigger trigger, struct mlxsw_sp_port *mlxsw_sp_port, const struct mlxsw_sp_span_trigger_parms *parms) mlxsw_sp_span_trigger_entry_create() argument
1522 mlxsw_sp_span_trigger_entry_destroy(struct mlxsw_sp_span *span, struct mlxsw_sp_span_trigger_entry * trigger_entry) mlxsw_sp_span_trigger_entry_destroy() argument
1532 mlxsw_sp_span_trigger_entry_find(struct mlxsw_sp_span *span, enum mlxsw_sp_span_trigger trigger, struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_span_trigger_entry_find() argument
[all...]
/kernel/linux/linux-6.6/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 in mlxsw_sp_span_init()
809 mlxsw_sp_span_policer_id_base_set(struct mlxsw_sp_span *span, u16 policer_id) mlxsw_sp_span_policer_id_base_set() argument
843 mlxsw_sp_span_policer_id_base_unset(struct mlxsw_sp_span *span) mlxsw_sp_span_policer_id_base_unset() argument
1000 mlxsw_sp_span_analyzed_port_find(struct mlxsw_sp_span *span, u16 local_port, bool ingress) mlxsw_sp_span_analyzed_port_find() argument
1018 struct mlxsw_sp_span *span = mlxsw_sp->span; mlxsw_sp_span_entry_ops() local
1030 struct mlxsw_sp_span *span; mlxsw_sp_span_respin_work() local
1115 mlxsw_sp_span_analyzed_port_create(struct mlxsw_sp_span *span, struct mlxsw_sp_port *mlxsw_sp_port, bool ingress) mlxsw_sp_span_analyzed_port_create() argument
1215 __mlxsw_sp_span_trigger_port_bind(struct mlxsw_sp_span *span, struct mlxsw_sp_span_trigger_entry * trigger_entry, bool enable) __mlxsw_sp_span_trigger_port_bind() argument
1476 struct mlxsw_sp_span *span = trigger_entry->span; mlxsw_sp_span_trigger_ops_set() local
1498 mlxsw_sp_span_trigger_entry_create(struct mlxsw_sp_span *span, enum mlxsw_sp_span_trigger trigger, struct mlxsw_sp_port *mlxsw_sp_port, const struct mlxsw_sp_span_trigger_parms *parms) mlxsw_sp_span_trigger_entry_create() argument
1533 mlxsw_sp_span_trigger_entry_destroy(struct mlxsw_sp_span *span, struct mlxsw_sp_span_trigger_entry * trigger_entry) mlxsw_sp_span_trigger_entry_destroy() argument
1543 mlxsw_sp_span_trigger_entry_find(struct mlxsw_sp_span *span, enum mlxsw_sp_span_trigger trigger, struct mlxsw_sp_port *mlxsw_sp_port) mlxsw_sp_span_trigger_entry_find() argument
[all...]
/kernel/linux/linux-5.10/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 < rai in MR_GetSpanBlock()
430 u32 span, info; mr_spanset_get_span_block() local
493 u32 info, strip_offset, span, span_offset; get_row_from_strip() local
551 u32 span, info; get_strip_from_row() local
611 u32 info, strip_offset, span, span_offset, retval; get_arm_from_strip() local
648 get_arm(struct megasas_instance *instance, u32 ld, u8 span, u64 stripe, struct MR_DRV_RAID_MAP_ALL *map) get_arm() argument
697 u8 physArm, span; mr_spanset_get_phy_params() local
798 u8 physArm, span; MR_GetPhyParams() local
909 u8 span, dataArms, arms, dataArm, logArm; mr_get_phy_params_r56_rmw() local
1223 u8 span, count; mr_update_span_set() local
1357 u8 bestArm, pd0, pd1, span, arm; megasas_get_best_arm_pd() local
[all...]
/kernel/linux/linux-6.6/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 < rai in MR_GetSpanBlock()
430 u32 span, info; mr_spanset_get_span_block() local
493 u32 info, strip_offset, span, span_offset; get_row_from_strip() local
551 u32 span, info; get_strip_from_row() local
611 u32 info, strip_offset, span, span_offset, retval; get_arm_from_strip() local
648 get_arm(struct megasas_instance *instance, u32 ld, u8 span, u64 stripe, struct MR_DRV_RAID_MAP_ALL *map) get_arm() argument
697 u8 physArm, span; mr_spanset_get_phy_params() local
798 u8 physArm, span; MR_GetPhyParams() local
909 u8 span, dataArms, arms, dataArm, logArm; mr_get_phy_params_r56_rmw() local
1223 u8 span, count; mr_update_span_set() local
1357 u8 bestArm, pd0, pd1, span, arm; megasas_get_best_arm_pd() local
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/resctrl/
H A Dcqm_test.c43 unsigned long span) in show_cache_info()
51 avg_diff = (long)abs(span - avg_llc_occu_resc); in show_cache_info()
53 diff_percent = (((float)span - avg_llc_occu_resc) / span) * 100; in show_cache_info()
69 printf("# llc_occu_exp (span): %lu\n", span); in show_cache_info()
104 show_cache_info(sum_llc_occu_resc, no_of_bits, param->span); in check_results()
155 .span = cache_size * n / count_of_bits, in cqm_resctrl_val()
161 sprintf(benchmark_cmd[1], "%lu", param.span); in cqm_resctrl_val()
42 show_cache_info(unsigned long sum_llc_occu_resc, int no_of_bits, unsigned long span) show_cache_info() argument
H A Dmbm_test.c18 show_bw_info(unsigned long *bw_imc, unsigned long *bw_resc, int span) in show_bw_info() argument
42 printf("# Span (MB): %d\n", span); in show_bw_info()
47 static int check_results(int span) in check_results() argument
79 show_bw_info(bw_imc, bw_resc, span); in check_results()
114 int mbm_bw_change(int span, int cpu_no, char *bw_report, char **benchmark_cmd) in mbm_bw_change() argument
120 .span = span, in mbm_bw_change()
138 ret = check_results(span); in mbm_bw_change()
/kernel/linux/linux-6.6/tools/testing/selftests/resctrl/
H A Dcat_test.c44 static int check_results(struct resctrl_val_param *param, size_t span) in check_results() argument
79 return show_cache_info(sum_llc_perf_miss, no_of_bits, span / 64, in check_results()
99 size_t span; in cat_perf_miss_val() local
144 span = cache_size * (count_of_bits - n) / count_of_bits; in cat_perf_miss_val()
166 span = cache_size * n / count_of_bits; in cat_perf_miss_val()
174 ret = cat_val(&param, span); in cat_perf_miss_val()
176 ret = check_results(&param, span); in cat_perf_miss_val()
H A Dcmt_test.c30 static int check_results(struct resctrl_val_param *param, size_t span, int no_of_bits) in check_results() argument
61 return show_cache_info(sum_llc_occu_resc, no_of_bits, span, in check_results()
80 size_t span; in cmt_resctrl_val() local
113 span = cache_size * n / count_of_bits; in cmt_resctrl_val()
116 /* Duplicate the command to be able to replace span in it */ in cmt_resctrl_val()
121 ret = asprintf(&span_str, "%zu", span); in cmt_resctrl_val()
134 ret = check_results(&param, span, n); in cmt_resctrl_val()
/kernel/linux/linux-6.6/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, \
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))
H A Dpages.c938 struct interval_tree_double_span_iter span; member
960 struct interval_tree_double_span_iter span; in pfn_reader_unpin() local
965 interval_tree_for_each_double_span(&span, &pages->access_itree, in pfn_reader_unpin()
967 if (span.is_used) in pfn_reader_unpin()
970 batch_unpin(&pfns->batch, pages, span.start_hole - start, in pfn_reader_unpin()
971 span.last_hole - span.start_hole + 1); in pfn_reader_unpin()
975 /* Process a single span to load it from the proper storage */
978 struct interval_tree_double_span_iter *span = &pfns->span; in pfn_reader_fill_span() local
1262 struct interval_tree_double_span_iter span; __iopt_area_unfill_domain() local
1546 struct interval_tree_double_span_iter span; iopt_pages_unfill_xarray() local
1674 struct interval_tree_double_span_iter span; iopt_pages_fill_xarray() local
[all...]
/kernel/linux/linux-6.6/drivers/iio/dac/
H A Dltc2688.c139 int ret, reg, span; in ltc2688_span_get() local
145 span = FIELD_GET(LTC2688_CH_SPAN_MSK, reg); in ltc2688_span_get()
147 if (span >= LTC2688_SPAN_RANGE_MAX) in ltc2688_span_get()
150 return span; in ltc2688_span_get()
160 int span, fs; in ltc2688_scale_get() local
162 span = ltc2688_span_get(st, c); in ltc2688_scale_get()
163 if (span < 0) in ltc2688_scale_get()
164 return span; in ltc2688_scale_get()
166 fs = ltc2688_span_helper[span][1] - ltc2688_span_helper[span][ in ltc2688_scale_get()
177 int span; ltc2688_offset_get() local
735 u32 span; ltc2688_span_lookup() local
751 int ret, span; ltc2688_channel_config() local
[all...]
/kernel/linux/linux-6.6/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) \
83 for (interval_tree_span_iter_first(span, itree, \
85 !interval_tree_span_iter_done(span); \
86 interval_tree_span_iter_next(span))
/kernel/linux/linux-6.6/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()

Completed in 16 milliseconds

1234567