Home
last modified time | relevance | path

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

1234

/Linux-v5.4/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 …]
/Linux-v5.4/drivers/thermal/
Dmtk_thermal.c231 struct mtk_thermal *mt; member
528 static int raw_to_mcelsius(struct mtk_thermal *mt, int sensno, s32 raw) in raw_to_mcelsius() argument
535 tmp /= mt->conf->cali_val + mt->o_slope; in raw_to_mcelsius()
536 tmp /= 10000 + mt->adc_ge; in raw_to_mcelsius()
537 tmp *= raw - mt->vts[sensno] - 3350; in raw_to_mcelsius()
540 return mt->degc_cali * 500 - tmp; in raw_to_mcelsius()
552 struct mtk_thermal *mt = bank->mt; in mtk_thermal_get_bank() local
555 if (mt->conf->need_switch_bank) { in mtk_thermal_get_bank()
556 mutex_lock(&mt->lock); in mtk_thermal_get_bank()
558 val = readl(mt->thermal_base + PTPCORESEL); in mtk_thermal_get_bank()
[all …]
/Linux-v5.4/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-v5.4/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 …]
Delantech.c537 etd->mt[0].x = ((packet[1] & 0x0f) << 8) | packet[2]; in elantech_report_absolute_v3()
542 etd->mt[0].y = etd->y_max - in elantech_report_absolute_v3()
551 x1 = etd->mt[0].x; in elantech_report_absolute_v3()
552 y1 = etd->mt[0].y; in elantech_report_absolute_v3()
629 etd->mt[id].x = ((packet[1] & 0x0f) << 8) | packet[2]; in process_packet_head_v4()
630 etd->mt[id].y = etd->y_max - (((packet[4] & 0x0f) << 8) | packet[5]); in process_packet_head_v4()
637 input_report_abs(dev, ABS_MT_POSITION_X, etd->mt[id].x); in process_packet_head_v4()
638 input_report_abs(dev, ABS_MT_POSITION_Y, etd->mt[id].y); in process_packet_head_v4()
671 etd->mt[id].x += delta_x1 * weight; in process_packet_motion_v4()
672 etd->mt[id].y -= delta_y1 * weight; in process_packet_motion_v4()
[all …]
/Linux-v5.4/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,
/Linux-v5.4/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()
/Linux-v5.4/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()
780 if (txn->mt == SLIM_MSG_MT_CORE && in qcom_slim_ngd_xfer_msg()
800 if (txn->mt == SLIM_MSG_MT_CORE && in qcom_slim_ngd_xfer_msg()
804 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()
135 need_tid = slim_tid_txn(txn->mt, txn->mc); in slim_do_transfer()
163 txn->mt, txn->mc, txn->la, ret); in slim_do_transfer()
265 if (slim_tid_txn(txn->mt, txn->mc)) in slim_xfer_msg()
/Linux-v5.4/arch/mips/kernel/
DMakefile52 obj-$(CONFIG_MIPS_MT) += mips-mt.o
53 obj-$(CONFIG_MIPS_MT_FPAFF) += mips-mt-fpaff.o
54 obj-$(CONFIG_MIPS_MT_SMP) += smp-mt.o
62 obj-$(CONFIG_MIPS_VPE_LOADER_MT) += vpe-mt.o
65 obj-$(CONFIG_MIPS_VPE_APSP_API_MT) += rtlx-mt.o
/Linux-v5.4/Documentation/driver-api/
Dinput.rst22 .. kernel-doc:: include/linux/input/mt.h
25 .. kernel-doc:: drivers/input/input-mt.c
/Linux-v5.4/arch/arm/include/asm/
Dmpu.h70 #define PMSAv8_MAIR(attr, mt) ((attr) << ((mt) * 8)) argument
/Linux-v5.4/arch/arm/mm/
Dmm.h70 #define VM_ARM_MTYPE(mt) ((mt) << 20) argument
/Linux-v5.4/Documentation/devicetree/bindings/arm/mediatek/
Dmediatek,pericfg.txt23 The available clocks are defined in dt-bindings/clock/mt*-clk.h.
27 dt-bindings/reset/mt*-resets.h
Dmediatek,infracfg.txt26 The available clocks are defined in dt-bindings/clock/mt*-clk.h.
30 dt-bindings/reset/mt*-resets.h
/Linux-v5.4/drivers/video/fbdev/aty/
Dradeon_monitor.c74 int i, mt = MT_NONE; in radeon_parse_montype_prop() local
85 mt = MT_DFP; in radeon_parse_montype_prop()
87 mt = MT_CRT; in radeon_parse_montype_prop()
110 return mt; in radeon_parse_montype_prop()
114 return mt; in radeon_parse_montype_prop()
116 return mt; in radeon_parse_montype_prop()
145 int mt = radeon_parse_montype_prop(dp, out_EDID, 0); in radeon_probe_OF_head() local
149 if (mt == MT_DFP && rinfo->is_mobility) in radeon_probe_OF_head()
150 mt = MT_LCD; in radeon_probe_OF_head()
151 return mt; in radeon_probe_OF_head()
/Linux-v5.4/drivers/edac/
Dsynopsys_edac.c728 enum mem_type mt; in zynq_get_mtype() local
734 mt = MEM_DDR3; in zynq_get_mtype()
736 mt = MEM_DDR2; in zynq_get_mtype()
738 return mt; in zynq_get_mtype()
752 enum mem_type mt; in zynqmp_get_mtype() local
758 mt = MEM_DDR3; in zynqmp_get_mtype()
760 mt = MEM_RDDR2; in zynqmp_get_mtype()
762 mt = MEM_DDR4; in zynqmp_get_mtype()
764 mt = MEM_EMPTY; in zynqmp_get_mtype()
766 return mt; in zynqmp_get_mtype()
/Linux-v5.4/drivers/isdn/mISDN/
Dtei.c761 tei_ph_data_ind(struct teimgr *tm, u_int mt, u_char *dp, int len) in tei_ph_data_ind() argument
766 tm->tei_m.printdebug(&tm->tei_m, "tei handler mt %x", mt); in tei_ph_data_ind()
767 if (mt == ID_ASSIGNED) in tei_ph_data_ind()
769 else if (mt == ID_DENIED) in tei_ph_data_ind()
771 else if (mt == ID_CHK_REQ) in tei_ph_data_ind()
773 else if (mt == ID_REMOVE) in tei_ph_data_ind()
775 else if (mt == ID_VERIFY) in tei_ph_data_ind()
777 else if (mt == ID_CHK_RES) in tei_ph_data_ind()
882 u_char mt; in ph_data_ind() local
903 mt = skb->data[6]; in ph_data_ind()
[all …]
/Linux-v5.4/net/ipv4/
Dipconfig.c655 u8 mt = ((ic_servaddr == NONE) in ic_dhcp_init_options() local
660 pr_debug("DHCP: Sending message type %d (%s)\n", mt, d->dev->name); in ic_dhcp_init_options()
667 *e++ = mt; in ic_dhcp_init_options()
669 if (mt == DHCPREQUEST) { in ic_dhcp_init_options()
1051 int mt = 0; in ic_bootp_recv() local
1064 mt = opt[2]; in ic_bootp_recv()
1073 pr_debug("DHCP: Got message type %d (%s)\n", mt, d->dev->name); in ic_bootp_recv()
1075 switch (mt) { in ic_bootp_recv()
1111 ic_dhcp_msgtype = mt; in ic_bootp_recv()
/Linux-v5.4/drivers/net/ethernet/smsc/
Dsmc91x.h1029 const unsigned char *mt = (x); \
1030 SMC_outw(lp, mt[0] | (mt[1] << 8), ioaddr, MCAST_REG1(lp)); \
1031 SMC_outw(lp, mt[2] | (mt[3] << 8), ioaddr, MCAST_REG2(lp)); \
1032 SMC_outw(lp, mt[4] | (mt[5] << 8), ioaddr, MCAST_REG3(lp)); \
1033 SMC_outw(lp, mt[6] | (mt[7] << 8), ioaddr, MCAST_REG4(lp)); \

1234