Home
last modified time | relevance | path

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

12345678910>>...12

/Linux-v6.1/lib/
Dtest_maple_tree.c34 int mtree_insert_index(struct maple_tree *mt, unsigned long index, gfp_t gfp) in mtree_insert_index() argument
36 return mtree_insert(mt, index, xa_mk_value(index & LONG_MAX), gfp); in mtree_insert_index()
39 static void mtree_erase_index(struct maple_tree *mt, unsigned long index) in mtree_erase_index() argument
41 MT_BUG_ON(mt, mtree_erase(mt, index) != xa_mk_value(index & LONG_MAX)); in mtree_erase_index()
42 MT_BUG_ON(mt, mtree_load(mt, index) != NULL); in mtree_erase_index()
45 static int mtree_test_insert(struct maple_tree *mt, unsigned long index, in mtree_test_insert() argument
48 return mtree_insert(mt, index, ptr, GFP_KERNEL); in mtree_test_insert()
51 static int mtree_test_store_range(struct maple_tree *mt, unsigned long start, in mtree_test_store_range() argument
54 return mtree_store_range(mt, start, end, ptr, GFP_KERNEL); in mtree_test_store_range()
57 static int mtree_test_store(struct maple_tree *mt, unsigned long start, in mtree_test_store() argument
[all …]
Dmaple_tree.c351 static inline bool mt_is_alloc(struct maple_tree *mt) in mt_is_alloc() argument
353 return (mt->ma_flags & MT_FLAGS_ALLOC_RANGE); in mt_is_alloc()
426 struct maple_tree *mt) in mte_parent_enum() argument
439 if (mt_is_alloc(mt)) in mte_parent_enum()
780 * @mt: The maple node type
784 static inline void __rcu **ma_slots(struct maple_node *mn, enum maple_type mt) in ma_slots() argument
786 switch (mt) { in ma_slots()
798 static inline bool mt_locked(const struct maple_tree *mt) in mt_locked() argument
800 return mt_external_lock(mt) ? mt_lock_is_held(mt) : in mt_locked()
801 lockdep_is_held(&mt->ma_lock); in mt_locked()
[all …]
/Linux-v6.1/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()
50 mt = kzalloc(struct_size(mt, slots, num_slots), GFP_KERNEL); in input_mt_init_slots()
51 if (!mt) in input_mt_init_slots()
[all …]
/Linux-v6.1/drivers/thermal/
Dmtk_thermal.c256 struct mtk_thermal *mt; member
554 * @mt: The thermal controller
561 static int raw_to_mcelsius_v1(struct mtk_thermal *mt, int sensno, s32 raw) in raw_to_mcelsius_v1() argument
568 tmp /= mt->conf->cali_val + mt->o_slope; in raw_to_mcelsius_v1()
569 tmp /= 10000 + mt->adc_ge; in raw_to_mcelsius_v1()
570 tmp *= raw - mt->vts[sensno] - 3350; in raw_to_mcelsius_v1()
573 return mt->degc_cali * 500 - tmp; in raw_to_mcelsius_v1()
576 static int raw_to_mcelsius_v2(struct mtk_thermal *mt, int sensno, s32 raw) in raw_to_mcelsius_v2() argument
589 g_gain = 10000 + (((mt->adc_ge - 512) * 10000) >> 12); in raw_to_mcelsius_v2()
590 g_oe = mt->adc_oe - 512; in raw_to_mcelsius_v2()
[all …]
/Linux-v6.1/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 …]
/Linux-v6.1/include/linux/
Dmaple_tree.h188 #define mt_lock_is_held(mt) lock_is_held(mt->ma_external_lock) argument
189 #define mt_set_external_lock(mt, lock) \ argument
190 (mt)->ma_external_lock = &(lock)->dep_map
193 #define mt_lock_is_held(mt) 1 argument
194 #define mt_set_external_lock(mt, lock) do { } while (0) argument
251 #define mtree_lock(mt) spin_lock((&(mt)->ma_lock)) argument
252 #define mtree_unlock(mt) spin_unlock((&(mt)->ma_lock)) argument
304 void *mtree_load(struct maple_tree *mt, unsigned long index);
306 int mtree_insert(struct maple_tree *mt, unsigned long index,
308 int mtree_insert_range(struct maple_tree *mt, unsigned long first,
[all …]
/Linux-v6.1/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,
/Linux-v6.1/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 …]
Dmatroxfb_misc.c107 void matroxfb_var2my(struct fb_var_screeninfo* var, struct my_timming* mt) { in matroxfb_var2my() argument
113 mt->pixclock = 1000000000 / pixclock; in matroxfb_var2my()
114 if (mt->pixclock < 1) mt->pixclock = 1; in matroxfb_var2my()
115 mt->mnp = -1; in matroxfb_var2my()
116 mt->dblscan = var->vmode & FB_VMODE_DOUBLE; in matroxfb_var2my()
117 mt->interlaced = var->vmode & FB_VMODE_INTERLACED; in matroxfb_var2my()
118 mt->HDisplay = var->xres; in matroxfb_var2my()
119 mt->HSyncStart = mt->HDisplay + var->right_margin; in matroxfb_var2my()
120 mt->HSyncEnd = mt->HSyncStart + var->hsync_len; in matroxfb_var2my()
121 mt->HTotal = mt->HSyncEnd + var->left_margin; in matroxfb_var2my()
[all …]
/Linux-v6.1/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()
/Linux-v6.1/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 …]
Dalps.h12 #include <linux/input/mt.h>
217 * @x_map: Bitmap of active X positions for MT.
218 * @y_map: Bitmap of active Y positions for MT.
219 * @fingers: Number of fingers for MT.
222 * @mt: position for MT.
239 struct input_mt_pos mt[MAX_TOUCHES]; member
273 * @x_bits: Number of X bits in the MT bitmap.
274 * @y_bits: Number of Y bits in the MT bitmap.
/Linux-v6.1/mm/
Dpage_reporting.c84 int mt = get_pageblock_migratetype(page); in page_reporting_drain() local
87 __putback_isolated_page(page, order, mt); in page_reporting_drain()
115 unsigned int order, unsigned int mt, in page_reporting_cycle() argument
119 struct list_head *list = &area->free_list[mt]; in page_reporting_cycle()
231 unsigned int order, mt, leftover, offset = PAGE_REPORTING_CAPACITY; in page_reporting_process_zone() local
246 /* Process each free list starting from lowest order/mt */ in page_reporting_process_zone()
248 for (mt = 0; mt < MIGRATE_TYPES; mt++) { in page_reporting_process_zone()
250 if (is_migrate_isolate(mt)) in page_reporting_process_zone()
253 err = page_reporting_cycle(prdev, zone, order, mt, in page_reporting_process_zone()
/Linux-v6.1/tools/testing/radix-tree/
Dmaple.c28 #define RCU_MT_BUG_ON(test, y) {if (y) { test->stop = true; } MT_BUG_ON(test->mt, y); }
31 struct maple_tree *mt; member
61 static noinline void check_new_node(struct maple_tree *mt) in check_new_node() argument
69 MA_STATE(mas, mt, 0, 0); in check_new_node()
72 mtree_lock(mt); in check_new_node()
77 MT_BUG_ON(mt, mas_alloc_req(&mas) != 3); in check_new_node()
79 MT_BUG_ON(mt, mas.node != MA_ERROR(-ENOMEM)); in check_new_node()
80 MT_BUG_ON(mt, !mas_nomem(&mas, GFP_KERNEL)); in check_new_node()
82 MT_BUG_ON(mt, mas_allocated(&mas) != 3); in check_new_node()
84 MT_BUG_ON(mt, not_empty(mn)); in check_new_node()
[all …]
/Linux-v6.1/drivers/slimbus/
Dqcom-ctrl.c64 #define SLIM_MSG_ASM_FIRST_WORD(l, mt, mc, dt, ad) \ argument
65 ((l) | ((mt) << 5) | ((mc) << 8) | ((dt) << 15) | ((ad) << 16))
212 u8 mc, mt, len; in qcom_slim_handle_rx_irq() local
215 mt = SLIM_HEADER_GET_MT(pkt[0]); in qcom_slim_handle_rx_irq()
223 if (mt == SLIM_MSG_MT_CORE && mc == SLIM_MSG_MC_REPORT_PRESENT) { in qcom_slim_handle_rx_irq()
250 dev_err(ctrl->dev, "unsupported MC,%x MT:%x\n", in qcom_slim_handle_rx_irq()
251 mc, mt); in qcom_slim_handle_rx_irq()
356 *head = SLIM_MSG_ASM_FIRST_WORD(txn->rl, txn->mt, in qcom_xfer_msg()
360 *head = SLIM_MSG_ASM_FIRST_WORD(txn->rl, txn->mt, in qcom_xfer_msg()
365 if (slim_tid_txn(txn->mt, txn->mc)) in qcom_xfer_msg()
[all …]
Dqcom-ngd-ctrl.c95 #define SLIM_MSG_ASM_FIRST_WORD(l, mt, mc, dt, ad) \ argument
96 ((l) | ((mt) << 5) | ((mc) << 8) | ((dt) << 15) | ((ad) << 16))
605 u8 mc, mt, len; in qcom_slim_ngd_rx() local
607 mt = SLIM_HEADER_GET_MT(buf[0]); in qcom_slim_ngd_rx()
612 mt == SLIM_MSG_MT_SRC_REFERRED_USER) in qcom_slim_ngd_rx()
617 mt == SLIM_MSG_MT_SRC_REFERRED_USER) || in qcom_slim_ngd_rx()
619 mt == SLIM_MSG_MT_SRC_REFERRED_USER)) { in qcom_slim_ngd_rx()
793 if (txn->mt == SLIM_MSG_MT_CORE && in qcom_slim_ngd_xfer_msg()
813 if (txn->mt == SLIM_MSG_MT_CORE && in qcom_slim_ngd_xfer_msg()
817 txn->mt = SLIM_MSG_MT_DEST_REFERRED_USER; in qcom_slim_ngd_xfer_msg()
[all …]
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-v6.1/net/netfilter/
Dnft_set_pipapo.c354 * @mt: Mapping table containing bit set specifiers
366 union nft_pipapo_map_bucket *mt, bool match_only) in pipapo_refill() argument
390 bitmap_set(dst, mt[i].to, mt[i].n); in pipapo_refill()
460 b = pipapo_refill(res_map, f->bsize, f->rules, fill_map, f->mt, in nft_pipapo_lookup()
470 *ext = &f->mt[b].e->ext; in nft_pipapo_lookup()
563 b = pipapo_refill(res_map, f->bsize, f->rules, fill_map, f->mt, in pipapo_get()
569 if (nft_set_elem_expired(&f->mt[b].e->ext) || in pipapo_get()
571 !nft_set_elem_active(&f->mt[b].e->ext, genmask))) in pipapo_get()
574 ret = f->mt[b].e; in pipapo_get()
623 union nft_pipapo_map_bucket *new_mt, *old_mt = f->mt; in pipapo_resize()
[all …]
/Linux-v6.1/arch/mips/kernel/
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
68 obj-$(CONFIG_MIPS_VPE_LOADER_MT) += vpe-mt.o
71 obj-$(CONFIG_MIPS_VPE_APSP_API_MT) += rtlx-mt.o
Dcps-vec.S49 * Set dest to non-zero if the core supports the MT ASE, else zero. If
50 * MT is not supported then branch to nomt.
229 /* Check that the core implements the MT ASE */
234 .set mt define
316 /* Calculate this VPEs ID. If the core doesn't support MT use 0 */
386 /* If the core doesn't support MT then return */
392 .set mt define
423 .set mt define
453 * CONFIG3 must exist to be running MT startup - just read it.
/Linux-v6.1/Documentation/devicetree/bindings/arm/mediatek/
Dmediatek,infracfg.yaml14 to the system. The clock values can be found in <dt-bindings/clock/mt*-clk.h>,
15 and reset values in <dt-bindings/reset/mt*-reset.h> and
16 <dt-bindings/reset/mt*-resets.h>.
/Linux-v6.1/Documentation/core-api/
Dworkqueue.rst31 In the original wq implementation, a multi threaded (MT) wq had one
33 thread system-wide. A single MT wq needed to keep around the same
34 number of workers as the number of CPUs. The kernel grew a lot of MT
39 Although MT wq wasted a lot of resource, the level of concurrency
41 MT wq albeit less severe on MT. Each wq maintained its own separate
42 worker pool. An MT wq could provide only one execution context per CPU
51 MT wq don't provide much better concurrency, users which require

12345678910>>...12