Home
last modified time | relevance | path

Searched refs:mt (Results 1 – 25 of 95) sorted by relevance

1234

/kernel/linux/linux-5.10/drivers/input/
Dinput-mt.c41 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()
53 mt->num_slots = num_slots; in input_mt_init_slots()
54 mt->flags = flags; in input_mt_init_slots()
83 mt->red = kcalloc(n2, sizeof(*mt->red), GFP_KERNEL); in input_mt_init_slots()
84 if (!mt->red) in input_mt_init_slots()
90 input_mt_set_value(&mt->slots[i], ABS_MT_TRACKING_ID, -1); in input_mt_init_slots()
[all …]
/kernel/linux/linux-5.10/drivers/thermal/
Dmtk_thermal.c254 struct mtk_thermal *mt; member
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()
589 format_1 = mt->vts[VTS2] + 3105 - g_oe; in raw_to_mcelsius_v2()
[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 …]
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 …]
/kernel/linux/linux-5.10/mm/
Dpage_reporting.c79 int mt = get_pageblock_migratetype(page); in page_reporting_drain() local
82 __putback_isolated_page(page, order, mt); in page_reporting_drain()
110 unsigned int order, unsigned int mt, in page_reporting_cycle() argument
114 struct list_head *list = &area->free_list[mt]; in page_reporting_cycle()
226 unsigned int order, mt, leftover, offset = PAGE_REPORTING_CAPACITY; in page_reporting_process_zone() local
243 for (mt = 0; mt < MIGRATE_TYPES; mt++) { in page_reporting_process_zone()
245 if (is_migrate_isolate(mt)) in page_reporting_process_zone()
248 err = page_reporting_cycle(prdev, zone, order, mt, in page_reporting_process_zone()
/kernel/linux/linux-5.10/drivers/input/mouse/
Dalps.c496 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()
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()
539 alps_set_slot(dev, 0, f->mt[0].x, f->mt[0].y); in alps_report_semi_mt_data()
541 alps_set_slot(dev, 1, f->mt[1].x, f->mt[1].y); in alps_report_semi_mt_data()
969 static void alps_get_finger_coordinate_v7(struct input_mt_pos *mt, in alps_get_finger_coordinate_v7() argument
973 mt[0].x = ((pkt[2] & 0x80) << 4); in alps_get_finger_coordinate_v7()
[all …]
/kernel/linux/linux-5.10/net/netfilter/
Dnft_set_pipapo.c366 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()
634 goto mt; in pipapo_resize()
[all …]
Dnft_set_pipapo_avx2.c158 union nft_pipapo_map_bucket *mt, bool last) in nft_pipapo_avx2_refill() argument
171 nft_pipapo_avx2_fill(dst, mt[i].to, mt[i].n); \ in nft_pipapo_avx2_refill()
174 ret = mt[i].to; \ in nft_pipapo_avx2_refill()
246 b = nft_pipapo_avx2_refill(i_ul, &map[i_ul], fill, f->mt, last); in nft_pipapo_avx2_lookup_4b_2()
322 b = nft_pipapo_avx2_refill(i_ul, &map[i_ul], fill, f->mt, last); in nft_pipapo_avx2_lookup_4b_4()
416 b = nft_pipapo_avx2_refill(i_ul, &map[i_ul], fill, f->mt, last); in nft_pipapo_avx2_lookup_4b_8()
506 b = nft_pipapo_avx2_refill(i_ul, &map[i_ul], fill, f->mt, last); in nft_pipapo_avx2_lookup_4b_12()
641 b = nft_pipapo_avx2_refill(i_ul, &map[i_ul], fill, f->mt, last); in nft_pipapo_avx2_lookup_4b_32()
698 b = nft_pipapo_avx2_refill(i_ul, &map[i_ul], fill, f->mt, last); in nft_pipapo_avx2_lookup_8b_1()
762 b = nft_pipapo_avx2_refill(i_ul, &map[i_ul], fill, f->mt, last); in nft_pipapo_avx2_lookup_8b_2()
[all …]
/kernel/linux/linux-5.10/include/trace/events/
Dpage_ref.h25 __field(int, mt)
35 __entry->mt = get_pageblock_migratetype(page);
43 __entry->mapcount, __entry->mapping, __entry->mt,
73 __field(int, mt)
84 __entry->mt = get_pageblock_migratetype(page);
93 __entry->mapcount, __entry->mapping, __entry->mt,
/kernel/linux/linux-5.10/include/linux/input/
Dmt.h70 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/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()
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()
368 if (slim_ec_txn(txn->mt, txn->mc)) { in qcom_xfer_msg()
[all …]
Dslimbus.h129 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()
Dqcom-ngd-ctrl.c91 #define SLIM_MSG_ASM_FIRST_WORD(l, mt, mc, dt, ad) \ argument
92 ((l) | ((mt) << 5) | ((mc) << 8) | ((dt) << 15) | ((ad) << 16))
594 u8 mc, mt, len; in qcom_slim_ngd_rx() local
596 mt = SLIM_HEADER_GET_MT(buf[0]); in qcom_slim_ngd_rx()
601 mt == SLIM_MSG_MT_SRC_REFERRED_USER) in qcom_slim_ngd_rx()
606 mt == SLIM_MSG_MT_SRC_REFERRED_USER) || in qcom_slim_ngd_rx()
608 mt == SLIM_MSG_MT_SRC_REFERRED_USER)) { in qcom_slim_ngd_rx()
784 if (txn->mt == SLIM_MSG_MT_CORE && in qcom_slim_ngd_xfer_msg()
804 if (txn->mt == SLIM_MSG_MT_CORE && in qcom_slim_ngd_xfer_msg()
808 txn->mt = SLIM_MSG_MT_DEST_REFERRED_USER; in qcom_slim_ngd_xfer_msg()
[all …]
Dmessaging.c121 (txn->mt == SLIM_MSG_MT_CORE && in slim_do_transfer()
136 need_tid = slim_tid_txn(txn->mt, txn->mc); in slim_do_transfer()
164 txn->mt, txn->mc, txn->la, ret); in slim_do_transfer()
266 if (slim_tid_txn(txn->mt, txn->mc)) in slim_xfer_msg()
/kernel/linux/linux-5.10/arch/mips/kernel/
DMakefile59 obj-$(CONFIG_MIPS_MT) += mips-mt.o
60 obj-$(CONFIG_MIPS_MT_FPAFF) += mips-mt-fpaff.o
61 obj-$(CONFIG_MIPS_MT_SMP) += smp-mt.o
69 obj-$(CONFIG_MIPS_VPE_LOADER_MT) += vpe-mt.o
72 obj-$(CONFIG_MIPS_VPE_APSP_API_MT) += rtlx-mt.o
/kernel/linux/linux-5.10/arch/arm/mm/
Dmm.h64 #define VM_ARM_MTYPE(mt) ((mt) << 20) argument
/kernel/linux/linux-5.10/arch/arm/include/asm/
Dmpu.h70 #define PMSAv8_MAIR(attr, mt) ((attr) << ((mt) * 8)) argument
/kernel/linux/linux-5.10/Documentation/driver-api/
Dinput.rst22 .. kernel-doc:: include/linux/input/mt.h
25 .. kernel-doc:: drivers/input/input-mt.c
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/arm/mediatek/
Dmediatek,mipi0a.txt15 The available clocks are defined in dt-bindings/clock/mt*-clk.h.
19 The available power doamins are defined in dt-bindings/power/mt*-power.h.
Dmediatek,vcodecsys.txt14 The available clocks are defined in dt-bindings/clock/mt*-clk.h.
18 The available power doamins are defined in dt-bindings/power/mt*-power.h.
Dmediatek,infracfg.txt28 The available clocks are defined in dt-bindings/clock/mt*-clk.h.
32 dt-bindings/reset/mt*-resets.h
/kernel/linux/linux-5.10/drivers/edac/
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()
/kernel/linux/linux-5.10/drivers/media/v4l2-core/
Dv4l2-jpeg.c360 int mt; in jpeg_parse_huffman_tables() local
369 for (len -= 2; len >= 17; len -= 17 + mt) { in jpeg_parse_huffman_tables()
390 mt = 0; in jpeg_parse_huffman_tables()
398 mt += li; in jpeg_parse_huffman_tables()
401 ret = jpeg_skip(stream, mt); in jpeg_parse_huffman_tables()

1234