Home
last modified time | relevance | path

Searched full:mt (Results 1 – 25 of 197) sorted by relevance

12345678

/linux/lib/
H A Dtest_maple_tree.c19 #define mt_dump(mt, fmt) do {} while (0) argument
20 #define mt_validate(mt) do {} while (0) argument
63 static int __init mtree_insert_index(struct maple_tree *mt, in mtree_insert_index() argument
66 return mtree_insert(mt, index, xa_mk_value(index & LONG_MAX), gfp); in mtree_insert_index()
69 static void __init mtree_erase_index(struct maple_tree *mt, unsigned long index) in mtree_erase_index() argument
71 MT_BUG_ON(mt, mtree_erase(mt, index) != xa_mk_value(index & LONG_MAX)); in mtree_erase_index()
72 MT_BUG_ON(mt, mtree_load(mt, index) != NULL); in mtree_erase_index()
75 static int __init mtree_test_insert(struct maple_tree *mt, unsigned long index, in mtree_test_insert() argument
78 return mtree_insert(mt, index, ptr, GFP_KERNEL); in mtree_test_insert()
81 static int __init mtree_test_store_range(struct maple_tree *mt, in mtree_test_store_range() argument
[all …]
H A Dregion_alloc_benchmark.c128 struct maple_tree mt = MTREE_INIT(mt, MT_FLAGS_ALLOC_RANGE); in benchmark_maple_tree() local
136 ret = mtree_alloc_range(&mt, &idx, xa_mk_value(cnt + 1), in benchmark_maple_tree()
151 mtree_erase(&mt, reg_idx[idx]); in benchmark_maple_tree()
154 WARN_ON(!mtree_empty(&mt)); in benchmark_maple_tree()
157 sz = sizeof(mt) + DIV_ROUND_UP(cnt, MAPLE_ARANGE64_SLOTS) * sizeof(struct maple_node); in benchmark_maple_tree()
161 mtree_destroy(&mt); in benchmark_maple_tree()
/linux/drivers/input/
H A Dinput-mt.c8 #include <linux/input/mt.h>
25 * input_mt_init_slots() - initialize MT input slots
26 * @dev: input device supporting MT events and finger tracking
28 * @flags: mt tasks to handle in core
30 * This function allocates all necessary memory for MT slot handling
45 if (dev->mt) in input_mt_init_slots()
46 return dev->mt->num_slots != num_slots ? -EINVAL : 0; in input_mt_init_slots()
52 struct input_mt *mt __free(kfree) = in input_mt_init_slots()
53 kzalloc_flex(*mt, slots, num_slots); in input_mt_init_slots()
54 if (!mt) in input_mt_init_slots()
[all …]
/linux/drivers/net/ethernet/microchip/vcap/
H A Dvcap_tc.c68 struct flow_match_ipv4_addrs mt; in vcap_tc_flower_handler_ipv4_usage() local
70 flow_rule_match_ipv4_addrs(st->frule, &mt); in vcap_tc_flower_handler_ipv4_usage()
71 if (mt.mask->src) { in vcap_tc_flower_handler_ipv4_usage()
74 be32_to_cpu(mt.key->src), in vcap_tc_flower_handler_ipv4_usage()
75 be32_to_cpu(mt.mask->src)); in vcap_tc_flower_handler_ipv4_usage()
79 if (mt.mask->dst) { in vcap_tc_flower_handler_ipv4_usage()
82 be32_to_cpu(mt.key->dst), in vcap_tc_flower_handler_ipv4_usage()
83 be32_to_cpu(mt.mask->dst)); in vcap_tc_flower_handler_ipv4_usage()
104 struct flow_match_ipv6_addrs mt; in vcap_tc_flower_handler_ipv6_usage() local
108 flow_rule_match_ipv6_addrs(st->frule, &mt); in vcap_tc_flower_handler_ipv6_usage()
[all …]
/linux/drivers/thermal/mediatek/
H A Dauxadc_thermal.c307 struct mtk_thermal *mt; member
350 int (*raw_to_mcelsius)(struct mtk_thermal *mt, int sensno, s32 raw);
705 * @mt: The thermal controller
712 static int raw_to_mcelsius_v1(struct mtk_thermal *mt, int sensno, s32 raw) in raw_to_mcelsius_v1() argument
719 tmp /= mt->conf->cali_val + mt->o_slope; in raw_to_mcelsius_v1()
720 tmp /= 10000 + mt->adc_ge; in raw_to_mcelsius_v1()
721 tmp *= raw - mt->vts[sensno] - 3350; in raw_to_mcelsius_v1()
724 return mt->degc_cali * 500 - tmp; in raw_to_mcelsius_v1()
727 static int raw_to_mcelsius_v2(struct mtk_thermal *mt, int sensno, s32 raw) in raw_to_mcelsius_v2() argument
740 g_gain = 10000 + (((mt->adc_ge - 512) * 10000) >> 12); in raw_to_mcelsius_v2()
[all …]
/linux/arch/sh/lib/
H A Dmemcpy-sh4.S31 mov r4,r2 ! 5 MT (0 cycles latency)
41 mov r7, r3 ! 5 MT (latency=0) ! RQPO
43 cmp/hi r2,r0 ! 57 MT
46 mov r1,r6 ! 5 MT (latency=0)
50 mov r1, r7 ! 5 MT (latency=0)
58 mov r7,r3 ! 5 MT (latency=0) ! OPQR
60 cmp/hi r2,r0 ! 57 MT
64 mov r1,r6 ! 5 MT (latency=0)
67 mov r1,r7 ! 5 MT (latency=0)
77 cmp/eq r4,r0 ! 54 MT
[all …]
/linux/include/linux/
H A Dmaple_tree.h168 enum maple_type mt; member
175 enum maple_type mt; member
231 #define mt_lock_is_held(mt) \ argument
232 (!(mt)->ma_external_lock || lock_is_held((mt)->ma_external_lock))
234 #define mt_write_lock_is_held(mt) \ argument
235 (!(mt)->ma_external_lock || \
236 lock_is_held_type((mt)->ma_external_lock, 0))
238 #define mt_set_external_lock(mt, lock) \ argument
239 (mt)->ma_external_lock = &(lock)->dep_map
241 #define mt_on_stack(mt) (mt).ma_external_lock = NULL argument
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
H A Dmatcher.c472 struct mlx5hws_match_template *mt = matcher->mt; in hws_matcher_create_rtc() local
484 rtc_attr.is_frst_jumbo = mlx5hws_matcher_mt_is_jumbo(mt); in hws_matcher_create_rtc()
493 /* The first mt is used since all share the same definer */ in hws_matcher_create_rtc()
494 rtc_attr.match_definer_0 = mlx5hws_definer_get_id(mt->definer); in hws_matcher_create_rtc()
506 mlx5hws_definer_get_id(mt->definer); in hws_matcher_create_rtc()
631 bool is_jumbo = mlx5hws_matcher_mt_is_jumbo(matcher->mt); in hws_matcher_bind_at()
664 for (i = 0; i < matcher->mt->fc_sz; i++) { in hws_matcher_set_ip_version_match()
665 switch (matcher->mt->fc[i].fname) { in hws_matcher_set_ip_version_match()
693 ret = mlx5hws_definer_mt_init(ctx, matcher->mt); in hws_matcher_bind_mt()
738 mlx5hws_definer_mt_uninit(ctx, matcher->mt); in hws_matcher_bind_mt()
[all …]
H A Ddefiner.c1746 struct mlx5hws_match_template *mt, in hws_definer_conv_match_params_to_hl() argument
1760 if (mt->match_criteria_enable & MLX5HWS_DEFINER_MATCH_CRITERIA_MISC6) { in hws_definer_conv_match_params_to_hl()
1766 if (mt->match_criteria_enable & MLX5HWS_DEFINER_MATCH_CRITERIA_OUTER) { in hws_definer_conv_match_params_to_hl()
1767 ret = hws_definer_conv_outer(&cd, mt->match_param); in hws_definer_conv_match_params_to_hl()
1772 if (mt->match_criteria_enable & MLX5HWS_DEFINER_MATCH_CRITERIA_INNER) { in hws_definer_conv_match_params_to_hl()
1773 ret = hws_definer_conv_inner(&cd, mt->match_param); in hws_definer_conv_match_params_to_hl()
1778 if (mt->match_criteria_enable & MLX5HWS_DEFINER_MATCH_CRITERIA_MISC) { in hws_definer_conv_match_params_to_hl()
1779 ret = hws_definer_conv_misc(&cd, mt->match_param); in hws_definer_conv_match_params_to_hl()
1784 if (mt->match_criteria_enable & MLX5HWS_DEFINER_MATCH_CRITERIA_MISC2) { in hws_definer_conv_match_params_to_hl()
1785 ret = hws_definer_conv_misc2(&cd, mt->match_param); in hws_definer_conv_match_params_to_hl()
[all …]
H A Drule.c55 struct mlx5hws_match_template *mt, in hws_rule_init_dep_wqe() argument
165 struct mlx5hws_match_template *mt = rule->matcher->mt; in hws_rule_save_delete_info() local
166 bool is_jumbo = mlx5hws_matcher_mt_is_jumbo(mt); in hws_rule_save_delete_info()
293 struct mlx5hws_match_template *mt = &rule->matcher->mt[mt_idx]; in hws_rule_create_hws() local
294 bool is_jumbo = mlx5hws_matcher_mt_is_jumbo(mt); in hws_rule_create_hws()
323 hws_rule_init_dep_wqe(dep_wqe, rule, mt, attr); in hws_rule_create_hws()
367 mlx5hws_definer_create_tag(match_param, mt->fc, mt->fc_sz, in hws_rule_create_hws()
448 bool is_jumbo = mlx5hws_matcher_mt_is_jumbo(rule->matcher->mt); in hws_rule_destroy_hws()
574 bool is_jumbo = mlx5hws_matcher_mt_is_jumbo(rule->matcher->mt); in mlx5hws_rule_move_hws_remove()
611 bool is_jumbo = mlx5hws_matcher_mt_is_jumbo(rule->matcher->mt); in mlx5hws_rule_move_hws_add()
H A Dmatcher.h64 struct mlx5hws_match_template *mt; member
86 mlx5hws_matcher_mt_is_jumbo(struct mlx5hws_match_template *mt) in mlx5hws_matcher_mt_is_jumbo() argument
88 return mlx5hws_definer_is_jumbo(mt->definer); in mlx5hws_matcher_mt_is_jumbo()
H A Ddebug.c51 struct mlx5hws_match_template *mt = &matcher->mt[i]; in hws_debug_dump_matcher_match_template() local
55 HWS_PTR_TO_ID(mt), in hws_debug_dump_matcher_match_template()
57 mt->fc_sz, in hws_debug_dump_matcher_match_template()
61 ret = hws_debug_dump_matcher_template_definer(f, mt, mt->definer, type); in hws_debug_dump_matcher_match_template()
/linux/include/trace/events/
H A Dpage_ref.h25 __field(int, mt)
35 __entry->mt = get_pageblock_migratetype(page);
39 TP_printk("pfn=0x%lx flags=%s count=%d mapcount=%d mapping=%p mt=%d val=%d",
43 __entry->mapcount, __entry->mapping, __entry->mt,
73 __field(int, mt)
84 __entry->mt = get_pageblock_migratetype(page);
89 TP_printk("pfn=0x%lx flags=%s count=%d mapcount=%d mapping=%p mt=%d val=%d ret=%d",
93 __entry->mapcount, __entry->mapping, __entry->mt,
/linux/drivers/video/fbdev/matrox/
H A Dmatroxfb_crtc2.c65 struct my_timming* mt, in matroxfb_dh_restore() argument
105 if (mt->interlaced) { in matroxfb_dh_restore()
107 mt->VDisplay >>= 1; in matroxfb_dh_restore()
108 mt->VSyncStart >>= 1; in matroxfb_dh_restore()
109 mt->VSyncEnd >>= 1; in matroxfb_dh_restore()
110 mt->VTotal >>= 1; in matroxfb_dh_restore()
112 if ((mt->HTotal & 7) == 2) { in matroxfb_dh_restore()
114 mt->HTotal &= ~7; in matroxfb_dh_restore()
117 mga_outl(0x3C14, ((mt->HDisplay - 8) << 16) | (mt->HTotal - 8)); in matroxfb_dh_restore()
118 mga_outl(0x3C18, ((mt->HSyncEnd - 8) << 16) | (mt->HSyncStart - 8)); in matroxfb_dh_restore()
[all …]
/linux/scripts/gdb/linux/
H A Dmapletree.py35 def __init__(self, mt, first, end): argument
36 if mt.type == maple_tree_root_type.get_type().pointer():
37 self.tree = mt.dereference()
38 elif mt.type != maple_tree_root_type.get_type():
40 .format(maple_tree_root_type.get_type().pointer(), mt.type))
41 self.tree = mt
194 def mt_slot(mt, slots, offset): argument
227 def mtree_load(mt, index): argument
230 mas = Mas(mt, index, index)
/linux/Documentation/devicetree/bindings/clock/
H A Dmediatek,infracfg.yaml14 to the system. The clock values can be found in <dt-bindings/clock/mt*-clk.h>
15 and <dt-bindings/clock/mediatek,mt*-infracfg.h>, and reset values in
16 <dt-bindings/reset/mt*-reset.h>, <dt-bindings/reset/mt*-resets.h> and
17 <dt-bindings/reset/mediatek,mt*-infracfg.h>.
/linux/tools/testing/radix-tree/
H A Dmaple.c24 #define RCU_MT_BUG_ON(test, y) {if (y) { test->stop = true; } MT_BUG_ON(test->mt, y); }
27 struct maple_tree *mt; member
45 struct maple_tree *mt; member
64 static noinline void __init check_erase(struct maple_tree *mt, unsigned long index, in check_erase() argument
67 MT_BUG_ON(mt, mtree_test_erase(mt, index) != ptr); in check_erase()
70 #define erase_check_load(mt, i) check_load(mt, set[i], entry[i%2]) argument
71 #define erase_check_insert(mt, i) check_insert(mt, set[i], entry[i%2]) argument
72 #define erase_check_erase(mt, i) check_erase(mt, set[i], entry[i%2]) argument
74 static noinline void __init check_erase_testset(struct maple_tree *mt) in check_erase_testset() argument
92 void *entry[2] = { ptr, mt }; in check_erase_testset()
[all …]
/linux/drivers/gpu/drm/imagination/
H A Dpvr_rogue_cr_defs_client.h64 * X1 MacroTile boundary, left tile X for second column of macrotiles (16MT mode) - 32 pixels across
70 * X2 MacroTile boundary, left tile X for third(16MT) column of macrotiles - 32 pixels across tile
75 * X3 MacroTile boundary, left tile X for fourth column of macrotiles (16MT) - 32 pixels across tile
85 * X1 MacroTile boundary, ltop tile Y for second column of macrotiles (16MT mode) - 32 pixels tile
91 * X2 MacroTile boundary, top tile Y for third(16MT) column of macrotiles - 32 pixels tile height
96 * X3 MacroTile boundary, top tile Y for fourth column of macrotiles (16MT) - 32 pixels tile height
/linux/net/netfilter/
H A Dnft_set_pipapo.c353 * @mt: Mapping table containing bit set specifiers
366 const union nft_pipapo_map_bucket *mt, bool match_only) in pipapo_refill() argument
391 bitmap_set(dst, mt[i].to, mt[i].n); in pipapo_refill()
465 b = pipapo_refill(res_map, f->bsize, f->rules, fill_map, f->mt, in pipapo_get_slow()
478 e = f->mt[b].e; in pipapo_get_slow()
624 union nft_pipapo_map_bucket *new_mt = NULL, *old_mt = f->mt; in pipapo_realloc_mt()
668 f->mt = new_mt; in pipapo_realloc_mt()
729 goto mt; in pipapo_resize()
760 mt: in pipapo_resize()
1182 f->mt[map[i].to + j].to = map[i + 1].to;
[all …]
/linux/arch/mips/kernel/
H A DMakefile58 obj-$(CONFIG_MIPS_MT) += mips-mt.o
59 obj-$(CONFIG_MIPS_MT_FPAFF) += mips-mt-fpaff.o
60 obj-$(CONFIG_MIPS_MT_SMP) += smp-mt.o
66 obj-$(CONFIG_MIPS_VPE_LOADER_MT) += vpe-mt.o
68 obj-$(CONFIG_MIPS_VPE_APSP_API_MT) += rtlx-mt.o
/linux/rust/helpers/
H A Dmaple_tree.c5 __rust_helper void rust_helper_mt_init_flags(struct maple_tree *mt, in rust_helper_mt_init_flags() argument
8 mt_init_flags(mt, flags); in rust_helper_mt_init_flags()
/linux/drivers/slimbus/
H A Dslimbus.h25 * BYTE 0: MT[7:5] RL[4:0]
115 * @mt: Header field. Message type.
116 * @mc: Header field. LSB is message code for type mt.
129 u8 mt; member
436 static inline bool slim_tid_txn(u8 mt, u8 mc) in slim_tid_txn() argument
438 return (mt == SLIM_MSG_MT_CORE && in slim_tid_txn()
445 static inline bool slim_ec_txn(u8 mt, u8 mc) in slim_ec_txn() argument
447 return (mt == SLIM_MSG_MT_CORE && in slim_ec_txn()
/linux/Documentation/input/
H A Dmulti-touch-protocol.rst4 Multi-touch (MT) Protocol
16 document describes the multi-touch (MT) protocol which allows kernel
26 MT protocol type A is obsolete, all kernel drivers have been
35 applications, the MT protocol can be implemented on top of the ST protocol
72 end. Upon receiving an MT event, one simply updates the appropriate
194 Linux MT Win8
343 better to the MT protocol than others. To simplify and unify the mapping,
/linux/drivers/edac/
H A Ddmc520_edac.c294 enum mem_type mt = MEM_UNKNOWN; in dmc520_get_mtype() local
303 mt = MEM_DDR3; in dmc520_get_mtype()
307 mt = MEM_DDR4; in dmc520_get_mtype()
311 return mt; in dmc520_get_mtype()
450 enum mem_type mt; in dmc520_init_csrow() local
455 mt = dmc520_get_mtype(pvt); in dmc520_init_csrow()
466 dimm->mtype = mt; in dmc520_init_csrow()
/linux/Documentation/driver-api/
H A Dinput.rst22 .. kernel-doc:: include/linux/input/mt.h
25 .. kernel-doc:: drivers/input/input-mt.c

12345678