Home
last modified time | relevance | path

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

12345678910>>...23

/kernel/linux/linux-6.6/lib/
Dtest_maple_tree.c19 #define mt_dump(mt, fmt) do {} while (0) argument
20 #define mt_validate(mt) do {} while (0) argument
57 static int __init mtree_insert_index(struct maple_tree *mt, in mtree_insert_index() argument
60 return mtree_insert(mt, index, xa_mk_value(index & LONG_MAX), gfp); in mtree_insert_index()
63 static void __init mtree_erase_index(struct maple_tree *mt, unsigned long index) in mtree_erase_index() argument
65 MT_BUG_ON(mt, mtree_erase(mt, index) != xa_mk_value(index & LONG_MAX)); in mtree_erase_index()
66 MT_BUG_ON(mt, mtree_load(mt, index) != NULL); in mtree_erase_index()
69 static int __init mtree_test_insert(struct maple_tree *mt, unsigned long index, in mtree_test_insert() argument
72 return mtree_insert(mt, index, ptr, GFP_KERNEL); in mtree_test_insert()
75 static int __init mtree_test_store_range(struct maple_tree *mt, in mtree_test_store_range() argument
[all …]
Dmaple_tree.c378 static inline bool mt_is_alloc(struct maple_tree *mt) in mt_is_alloc() argument
380 return (mt->ma_flags & MT_FLAGS_ALLOC_RANGE); in mt_is_alloc()
779 * @mt: The maple node type
783 static inline void __rcu **ma_slots(struct maple_node *mn, enum maple_type mt) in ma_slots() argument
785 switch (mt) { in ma_slots()
797 static inline bool mt_write_locked(const struct maple_tree *mt) in mt_write_locked() argument
799 return mt_external_lock(mt) ? mt_write_lock_is_held(mt) : in mt_write_locked()
800 lockdep_is_held(&mt->ma_lock); in mt_write_locked()
803 static inline bool mt_locked(const struct maple_tree *mt) in mt_locked() argument
805 return mt_external_lock(mt) ? mt_lock_is_held(mt) : in mt_locked()
[all …]
/kernel/linux/linux-6.6/drivers/input/
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
42 struct input_mt *mt = dev->mt; in input_mt_init_slots() local
47 if (mt) in input_mt_init_slots()
48 return mt->num_slots != num_slots ? -EINVAL : 0; in input_mt_init_slots()
53 mt = kzalloc(struct_size(mt, slots, num_slots), GFP_KERNEL); in input_mt_init_slots()
54 if (!mt) in input_mt_init_slots()
[all …]
/kernel/linux/linux-5.10/drivers/input/
Dinput-mt.c8 #include <linux/input/mt.h>
24 * input_mt_init_slots() - initialize MT input slots
25 * @dev: input device supporting MT events and finger tracking
27 * @flags: mt tasks to handle in core
29 * This function allocates all necessary memory for MT slot handling
41 struct input_mt *mt = dev->mt; in input_mt_init_slots() local
46 if (mt) in input_mt_init_slots()
47 return mt->num_slots != num_slots ? -EINVAL : 0; in input_mt_init_slots()
49 mt = kzalloc(struct_size(mt, slots, num_slots), GFP_KERNEL); in input_mt_init_slots()
50 if (!mt) in input_mt_init_slots()
[all …]
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/vcap/
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 …]
/kernel/linux/linux-6.6/drivers/thermal/mediatek/
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 …]
/kernel/linux/linux-5.10/drivers/thermal/
Dmtk_thermal.c254 struct mtk_thermal *mt; member
552 * @mt: The thermal controller
559 static int raw_to_mcelsius_v1(struct mtk_thermal *mt, int sensno, s32 raw) in raw_to_mcelsius_v1() argument
566 tmp /= mt->conf->cali_val + mt->o_slope; in raw_to_mcelsius_v1()
567 tmp /= 10000 + mt->adc_ge; in raw_to_mcelsius_v1()
568 tmp *= raw - mt->vts[sensno] - 3350; in raw_to_mcelsius_v1()
571 return mt->degc_cali * 500 - tmp; in raw_to_mcelsius_v1()
574 static int raw_to_mcelsius_v2(struct mtk_thermal *mt, int sensno, s32 raw) in raw_to_mcelsius_v2() argument
587 g_gain = 10000 + (((mt->adc_ge - 512) * 10000) >> 12); in raw_to_mcelsius_v2()
588 g_oe = mt->adc_oe - 512; in raw_to_mcelsius_v2()
[all …]
/kernel/linux/linux-6.6/arch/sh/lib/
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 …]
/kernel/linux/linux-5.10/arch/sh/lib/
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 …]
/kernel/linux/linux-6.6/include/linux/
Dmaple_tree.h185 #define mt_lock_is_held(mt) \ argument
186 (!(mt)->ma_external_lock || lock_is_held((mt)->ma_external_lock))
188 #define mt_write_lock_is_held(mt) \ argument
189 (!(mt)->ma_external_lock || \
190 lock_is_held_type((mt)->ma_external_lock, 0))
192 #define mt_set_external_lock(mt, lock) \ argument
193 (mt)->ma_external_lock = &(lock)->dep_map
195 #define mt_on_stack(mt) (mt).ma_external_lock = NULL argument
198 #define mt_lock_is_held(mt) 1 argument
199 #define mt_write_lock_is_held(mt) 1 argument
[all …]
/kernel/linux/linux-6.6/include/trace/events/
Dmmap.h47 TP_PROTO(struct maple_tree *mt, unsigned long start,
50 TP_ARGS(mt, start, end),
53 __field(struct maple_tree *, mt)
59 __entry->mt = mt;
65 __entry->mt,
72 TP_PROTO(struct maple_tree *mt, struct vm_area_struct *vma),
74 TP_ARGS(mt, vma),
77 __field(struct maple_tree *, mt)
84 __entry->mt = mt;
91 __entry->mt, __entry->vma,
[all …]
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,
/kernel/linux/linux-6.6/drivers/base/regmap/
Dregcache-maple.c19 struct maple_tree *mt = map->cache; in regcache_maple_read() local
20 MA_STATE(mas, mt, reg, reg); in regcache_maple_read()
41 struct maple_tree *mt = map->cache; in regcache_maple_write() local
42 MA_STATE(mas, mt, reg, reg); in regcache_maple_write()
110 struct maple_tree *mt = map->cache; in regcache_maple_drop() local
111 MA_STATE(mas, mt, min, max); in regcache_maple_drop()
242 struct maple_tree *mt = map->cache; in regcache_maple_sync() local
244 MA_STATE(mas, mt, min, max); in regcache_maple_sync()
296 struct maple_tree *mt = map->cache; in regcache_maple_exit() local
297 MA_STATE(mas, mt, 0, UINT_MAX); in regcache_maple_exit()
[all …]
/kernel/linux/linux-5.10/drivers/video/fbdev/matrox/
Dmatroxfb_g450.c238 struct my_timming *mt, const struct output_desc *outd) in computeRegs() argument
253 hvis = ((mt->HDisplay << 1) + 3) & ~3; in computeRegs()
266 mt->mnp = mnp; in computeRegs()
267 mt->pixclock = g450_mnp2f(minfo, mnp); in computeRegs()
271 pixclock = 1000000000U / mt->pixclock; in computeRegs()
276 do_div(piic, mt->pixclock); in computeRegs()
323 mt->interlaced = 1; in computeRegs()
325 mt->HDisplay = hvis & ~7; in computeRegs()
326 mt->HSyncStart = mt->HDisplay + 8; in computeRegs()
327 mt->HSyncEnd = (hlen & ~7) - 8; in computeRegs()
[all …]
Dmatroxfb_maven.c756 struct my_timming* mt, in maven_compute_timming() argument
772 if (maven_find_exact_clocks(mt->HTotal, mt->VTotal, m) == 0) in maven_compute_timming()
775 lmargin = mt->HTotal - mt->HSyncEnd; in maven_compute_timming()
776 slen = mt->HSyncEnd - mt->HSyncStart; in maven_compute_timming()
777 hcrt = mt->HTotal - slen - mt->delay; in maven_compute_timming()
778 umargin = mt->VTotal - mt->VSyncEnd; in maven_compute_timming()
779 vslen = mt->VSyncEnd - mt->VSyncStart; in maven_compute_timming()
781 if (m->hcorr < mt->HTotal) in maven_compute_timming()
783 if (hcrt > mt->HTotal) in maven_compute_timming()
784 hcrt -= mt->HTotal; in maven_compute_timming()
[all …]
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 …]
/kernel/linux/linux-6.6/drivers/video/fbdev/matrox/
Dmatroxfb_g450.c238 struct my_timming *mt, const struct output_desc *outd) in computeRegs() argument
253 hvis = ((mt->HDisplay << 1) + 3) & ~3; in computeRegs()
266 mt->mnp = mnp; in computeRegs()
267 mt->pixclock = g450_mnp2f(minfo, mnp); in computeRegs()
271 pixclock = 1000000000U / mt->pixclock; in computeRegs()
276 do_div(piic, mt->pixclock); in computeRegs()
323 mt->interlaced = 1; in computeRegs()
325 mt->HDisplay = hvis & ~7; in computeRegs()
326 mt->HSyncStart = mt->HDisplay + 8; in computeRegs()
327 mt->HSyncEnd = (hlen & ~7) - 8; in computeRegs()
[all …]
Dmatroxfb_maven.c756 struct my_timming* mt, in maven_compute_timming() argument
772 if (maven_find_exact_clocks(mt->HTotal, mt->VTotal, m) == 0) in maven_compute_timming()
775 lmargin = mt->HTotal - mt->HSyncEnd; in maven_compute_timming()
776 slen = mt->HSyncEnd - mt->HSyncStart; in maven_compute_timming()
777 hcrt = mt->HTotal - slen - mt->delay; in maven_compute_timming()
778 umargin = mt->VTotal - mt->VSyncEnd; in maven_compute_timming()
779 vslen = mt->VSyncEnd - mt->VSyncStart; in maven_compute_timming()
781 if (m->hcorr < mt->HTotal) in maven_compute_timming()
783 if (hcrt > mt->HTotal) in maven_compute_timming()
784 hcrt -= mt->HTotal; in maven_compute_timming()
[all …]
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 …]
/kernel/linux/linux-6.6/drivers/iio/light/
Drohm-bu27034.c672 * => 115.7400832 * ch1 / gain1 / mt -
673 * 68.1982976 * ch0 / gain0 / mt +
674 * 0.00012213 * 25600 * (ch1 / gain1 / mt) * 25600 *
675 * (ch1 /gain1 / mt) / (25600 * ch0 / gain0 / mt)
677 * A = 0.00012213 * 25600 * (ch1 /gain1 / mt) * 25600 *
678 * (ch1 /gain1 / mt) / (25600 * ch0 / gain0 / mt)
679 * => 0.00012213 * 25600 * (ch1 /gain1 / mt) *
680 * (ch1 /gain1 / mt) / (ch0 / gain0 / mt)
681 * => 0.00012213 * 25600 * (ch1 / gain1) * (ch1 /gain1 / mt) /
683 * => 0.00012213 * 25600 * (ch1 / gain1) * (ch1 /gain1 / mt) *
[all …]
/kernel/linux/linux-6.6/include/linux/input/
Dmt.h19 #define INPUT_MT_SEMI_MT 0x0010 /* semi-mt device, finger count handled manually */
22 * struct input_mt_slot - represents the state of an input MT slot
35 * @trkid: stores MT tracking ID for the next contact
36 * @num_slots: number of MT slots the device uses
37 * @slot: MT slot currently being transmitted
70 static inline bool input_mt_is_used(const struct input_mt *mt, in input_mt_is_used() argument
73 return slot->frame == mt->frame; in input_mt_is_used()
80 static inline int input_mt_new_trkid(struct input_mt *mt) in input_mt_new_trkid() argument
82 return mt->trkid++ & TRKID_MAX; in input_mt_new_trkid()
/kernel/linux/linux-5.10/include/linux/input/
Dmt.h19 #define INPUT_MT_SEMI_MT 0x0010 /* semi-mt device, finger count handled manually */
22 * struct input_mt_slot - represents the state of an input MT slot
35 * @trkid: stores MT tracking ID for the next contact
36 * @num_slots: number of MT slots the device uses
37 * @slot: MT slot currently being transmitted
70 static inline bool input_mt_is_used(const struct input_mt *mt, in input_mt_is_used() argument
73 return slot->frame == mt->frame; in input_mt_is_used()
80 static inline int input_mt_new_trkid(struct input_mt *mt) in input_mt_new_trkid() argument
82 return mt->trkid++ & TRKID_MAX; in input_mt_new_trkid()
/kernel/linux/linux-5.10/include/trace/events/
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,
/kernel/linux/linux-6.6/scripts/gdb/linux/
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)
/kernel/linux/linux-6.6/drivers/input/mouse/
Dalps.c17 #include <linux/input/mt.h>
383 * Process bitmap data from semi-mt protocols. Returns the number of
389 * These points are returned in fields->mt when the return value
496 fields->mt[0] = fields->st; in alps_process_bitmap()
497 fields->mt[1] = corner[priv->second_touch]; in alps_process_bitmap()
517 input_mt_assign_slots(dev, slot, f->mt, n, 0); in alps_report_mt_data()
519 alps_set_slot(dev, slot[i], f->mt[i].x, f->mt[i].y); in alps_report_mt_data()
530 /* Use st data when we don't have mt data */ in alps_report_semi_mt_data()
532 f->mt[0].x = f->st.x; in alps_report_semi_mt_data()
533 f->mt[0].y = f->st.y; in alps_report_semi_mt_data()
[all …]

12345678910>>...23