/Linux-v4.19/drivers/input/ |
D | input-mt.c | 44 struct input_mt *mt = dev->mt; in input_mt_init_slots() local 49 if (mt) in input_mt_init_slots() 50 return mt->num_slots != num_slots ? -EINVAL : 0; in input_mt_init_slots() 52 mt = kzalloc(struct_size(mt, slots, num_slots), GFP_KERNEL); in input_mt_init_slots() 53 if (!mt) in input_mt_init_slots() 56 mt->num_slots = num_slots; in input_mt_init_slots() 57 mt->flags = flags; in input_mt_init_slots() 86 mt->red = kcalloc(n2, sizeof(*mt->red), GFP_KERNEL); in input_mt_init_slots() 87 if (!mt->red) in input_mt_init_slots() 93 input_mt_set_value(&mt->slots[i], ABS_MT_TRACKING_ID, -1); in input_mt_init_slots() [all …]
|
/Linux-v4.19/drivers/thermal/ |
D | mtk_thermal.c | 170 struct mtk_thermal *mt; member 371 static int raw_to_mcelsius(struct mtk_thermal *mt, int sensno, s32 raw) in raw_to_mcelsius() argument 378 tmp /= 165 + mt->o_slope; in raw_to_mcelsius() 379 tmp /= 10000 + mt->adc_ge; in raw_to_mcelsius() 380 tmp *= raw - mt->vts[sensno] - 3350; in raw_to_mcelsius() 383 return mt->degc_cali * 500 - tmp; in raw_to_mcelsius() 395 struct mtk_thermal *mt = bank->mt; in mtk_thermal_get_bank() local 398 mutex_lock(&mt->lock); in mtk_thermal_get_bank() 400 val = readl(mt->thermal_base + PTPCORESEL); in mtk_thermal_get_bank() 403 writel(val, mt->thermal_base + PTPCORESEL); in mtk_thermal_get_bank() [all …]
|
/Linux-v4.19/drivers/video/fbdev/matrox/ |
D | matroxfb_g450.c | 237 struct my_timming *mt, const struct output_desc *outd) in computeRegs() argument 252 hvis = ((mt->HDisplay << 1) + 3) & ~3; in computeRegs() 265 mt->mnp = mnp; in computeRegs() 266 mt->pixclock = g450_mnp2f(minfo, mnp); in computeRegs() 270 pixclock = 1000000000U / mt->pixclock; in computeRegs() 275 do_div(piic, mt->pixclock); in computeRegs() 322 mt->interlaced = 1; in computeRegs() 324 mt->HDisplay = hvis & ~7; in computeRegs() 325 mt->HSyncStart = mt->HDisplay + 8; in computeRegs() 326 mt->HSyncEnd = (hlen & ~7) - 8; in computeRegs() [all …]
|
D | matroxfb_maven.c | 755 struct my_timming* mt, in maven_compute_timming() argument 771 if (maven_find_exact_clocks(mt->HTotal, mt->VTotal, m) == 0) in maven_compute_timming() 774 lmargin = mt->HTotal - mt->HSyncEnd; in maven_compute_timming() 775 slen = mt->HSyncEnd - mt->HSyncStart; in maven_compute_timming() 776 hcrt = mt->HTotal - slen - mt->delay; in maven_compute_timming() 777 umargin = mt->VTotal - mt->VSyncEnd; in maven_compute_timming() 778 vslen = mt->VSyncEnd - mt->VSyncStart; in maven_compute_timming() 780 if (m->hcorr < mt->HTotal) in maven_compute_timming() 782 if (hcrt > mt->HTotal) in maven_compute_timming() 783 hcrt -= mt->HTotal; in maven_compute_timming() [all …]
|
D | matroxfb_crtc2.c | 64 struct my_timming* mt, in matroxfb_dh_restore() argument 104 if (mt->interlaced) { in matroxfb_dh_restore() 106 mt->VDisplay >>= 1; in matroxfb_dh_restore() 107 mt->VSyncStart >>= 1; in matroxfb_dh_restore() 108 mt->VSyncEnd >>= 1; in matroxfb_dh_restore() 109 mt->VTotal >>= 1; in matroxfb_dh_restore() 111 if ((mt->HTotal & 7) == 2) { in matroxfb_dh_restore() 113 mt->HTotal &= ~7; in matroxfb_dh_restore() 116 mga_outl(0x3C14, ((mt->HDisplay - 8) << 16) | (mt->HTotal - 8)); in matroxfb_dh_restore() 117 mga_outl(0x3C18, ((mt->HSyncEnd - 8) << 16) | (mt->HSyncStart - 8)); in matroxfb_dh_restore() [all …]
|
D | matroxfb_misc.c | 106 void matroxfb_var2my(struct fb_var_screeninfo* var, struct my_timming* mt) { in matroxfb_var2my() argument 112 mt->pixclock = 1000000000 / pixclock; in matroxfb_var2my() 113 if (mt->pixclock < 1) mt->pixclock = 1; in matroxfb_var2my() 114 mt->mnp = -1; in matroxfb_var2my() 115 mt->dblscan = var->vmode & FB_VMODE_DOUBLE; in matroxfb_var2my() 116 mt->interlaced = var->vmode & FB_VMODE_INTERLACED; in matroxfb_var2my() 117 mt->HDisplay = var->xres; in matroxfb_var2my() 118 mt->HSyncStart = mt->HDisplay + var->right_margin; in matroxfb_var2my() 119 mt->HSyncEnd = mt->HSyncStart + var->hsync_len; in matroxfb_var2my() 120 mt->HTotal = mt->HSyncEnd + var->left_margin; in matroxfb_var2my() [all …]
|
/Linux-v4.19/drivers/input/mouse/ |
D | alps.c | 498 fields->mt[0] = fields->st; in alps_process_bitmap() 499 fields->mt[1] = corner[priv->second_touch]; in alps_process_bitmap() 519 input_mt_assign_slots(dev, slot, f->mt, n, 0); in alps_report_mt_data() 521 alps_set_slot(dev, slot[i], f->mt[i].x, f->mt[i].y); in alps_report_mt_data() 534 f->mt[0].x = f->st.x; in alps_report_semi_mt_data() 535 f->mt[0].y = f->st.y; in alps_report_semi_mt_data() 541 alps_set_slot(dev, 0, f->mt[0].x, f->mt[0].y); in alps_report_semi_mt_data() 543 alps_set_slot(dev, 1, f->mt[1].x, f->mt[1].y); in alps_report_semi_mt_data() 971 static void alps_get_finger_coordinate_v7(struct input_mt_pos *mt, in alps_get_finger_coordinate_v7() argument 975 mt[0].x = ((pkt[2] & 0x80) << 4); in alps_get_finger_coordinate_v7() [all …]
|
D | elantech.c | 494 etd->mt[0].x = ((packet[1] & 0x0f) << 8) | packet[2]; in elantech_report_absolute_v3() 499 etd->mt[0].y = etd->y_max - in elantech_report_absolute_v3() 508 x1 = etd->mt[0].x; in elantech_report_absolute_v3() 509 y1 = etd->mt[0].y; in elantech_report_absolute_v3() 586 etd->mt[id].x = ((packet[1] & 0x0f) << 8) | packet[2]; in process_packet_head_v4() 587 etd->mt[id].y = etd->y_max - (((packet[4] & 0x0f) << 8) | packet[5]); in process_packet_head_v4() 594 input_report_abs(dev, ABS_MT_POSITION_X, etd->mt[id].x); in process_packet_head_v4() 595 input_report_abs(dev, ABS_MT_POSITION_Y, etd->mt[id].y); in process_packet_head_v4() 628 etd->mt[id].x += delta_x1 * weight; in process_packet_motion_v4() 629 etd->mt[id].y -= delta_y1 * weight; in process_packet_motion_v4() [all …]
|
/Linux-v4.19/include/trace/events/ |
D | page_ref.h | 25 __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-v4.19/include/linux/input/ |
D | mt.h | 73 static inline bool input_mt_is_used(const struct input_mt *mt, in input_mt_is_used() argument 76 return slot->frame == mt->frame; in input_mt_is_used() 83 static inline int input_mt_new_trkid(struct input_mt *mt) in input_mt_new_trkid() argument 85 return mt->trkid++ & TRKID_MAX; in input_mt_new_trkid()
|
/Linux-v4.19/drivers/slimbus/ |
D | qcom-ctrl.c | 64 #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 …]
|
D | slimbus.h | 135 u8 mt; member 442 static inline bool slim_tid_txn(u8 mt, u8 mc) in slim_tid_txn() argument 444 return (mt == SLIM_MSG_MT_CORE && in slim_tid_txn() 451 static inline bool slim_ec_txn(u8 mt, u8 mc) in slim_ec_txn() argument 453 return (mt == SLIM_MSG_MT_CORE && in slim_ec_txn()
|
D | qcom-ngd-ctrl.c | 91 #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() 783 if (txn->mt == SLIM_MSG_MT_CORE && in qcom_slim_ngd_xfer_msg() 803 if (txn->mt == SLIM_MSG_MT_CORE && in qcom_slim_ngd_xfer_msg() 807 txn->mt = SLIM_MSG_MT_DEST_REFERRED_USER; in qcom_slim_ngd_xfer_msg() [all …]
|
D | messaging.c | 121 (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-v4.19/drivers/isdn/hisax/ |
D | l3_1tr6.c | 31 l3_1TR6_message(struct l3_process *pc, u_char mt, u_char pd) in l3_1TR6_message() argument 39 MsgHead(p, pc->callref, mt, pd); in l3_1TR6_message() 745 int i, mt, cr; in up1tr6() local 785 mt = skb->data[3]; in up1tr6() 790 (pr == (DL_DATA | INDICATION)) ? " " : "(broadcast) ", mt); in up1tr6() 794 if (mt == MT_N1_SETUP) { in up1tr6() 807 } else if ((mt == MT_N1_REL) || (mt == MT_N1_REL_ACK) || in up1tr6() 808 (mt == MT_N1_CANC_ACK) || (mt == MT_N1_CANC_REJ) || in up1tr6() 809 (mt == MT_N1_REG_ACK) || (mt == MT_N1_REG_REJ) || in up1tr6() 810 (mt == MT_N1_SUSP_ACK) || (mt == MT_N1_RES_REJ) || in up1tr6() [all …]
|
D | q931.c | 1192 unsigned char pd, cr_l, cr, mt; in dlogframe() local 1260 mt = *buf++; in dlogframe() 1263 if (mt_n0[i].nr == mt) in dlogframe() 1269 size, mt); in dlogframe() 1276 if (mt_n1[i].nr == mt) in dlogframe() 1282 size, mt); in dlogframe() 1361 mt = *buf++; in dlogframe() 1363 if (mtlist[i].nr == mt) in dlogframe() 1370 size, mt); in dlogframe() 1447 mt = *buf++; in dlogframe() [all …]
|
D | tei.c | 313 int mt; in tei_l1l2() local 343 mt = skb->data[3]; in tei_l1l2() 344 if (mt == ID_ASSIGNED) in tei_l1l2() 346 else if (mt == ID_DENIED) in tei_l1l2() 348 else if (mt == ID_CHK_REQ) in tei_l1l2() 350 else if (mt == ID_REMOVE) in tei_l1l2() 354 "tei handler wrong mt %x\n", mt); in tei_l1l2()
|
D | l3ni1.c | 428 l3ni1_message(struct l3_process *pc, u_char mt) in l3ni1_message() argument 436 MsgHead(p, pc->callref, mt); in l3ni1_message() 441 l3ni1_message_plus_chid(struct l3_process *pc, u_char mt) in l3ni1_message_plus_chid() argument 450 MsgHead(p, pc->callref, mt); in l3ni1_message_plus_chid() 462 l3ni1_message_cause(struct l3_process *pc, u_char mt, u_char cause) in l3ni1_message_cause() argument 469 MsgHead(p, pc->callref, mt); in l3ni1_message_cause() 666 u_char mt; in check_infoelements() local 679 mt = *p++; in check_infoelements() 731 mt, err_compr, err_ureg, err_len, err_seq); in check_infoelements() 746 l3ni1_check_messagetype_validity(struct l3_process *pc, int mt, void *arg) in l3ni1_check_messagetype_validity() argument [all …]
|
/Linux-v4.19/arch/mips/kernel/ |
D | Makefile | 53 obj-$(CONFIG_MIPS_MT) += mips-mt.o 54 obj-$(CONFIG_MIPS_MT_FPAFF) += mips-mt-fpaff.o 55 obj-$(CONFIG_MIPS_MT_SMP) += smp-mt.o 63 obj-$(CONFIG_MIPS_VPE_LOADER_MT) += vpe-mt.o 66 obj-$(CONFIG_MIPS_VPE_APSP_API_MT) += rtlx-mt.o
|
/Linux-v4.19/Documentation/driver-api/ |
D | input.rst | 22 .. kernel-doc:: include/linux/input/mt.h 25 .. kernel-doc:: drivers/input/input-mt.c
|
/Linux-v4.19/arch/arm/mm/ |
D | mm.h | 68 #define VM_ARM_MTYPE(mt) ((mt) << 20) argument
|
/Linux-v4.19/arch/arm/include/asm/ |
D | mpu.h | 70 #define PMSAv8_MAIR(attr, mt) ((attr) << ((mt) * 8)) argument
|
/Linux-v4.19/Documentation/devicetree/bindings/arm/mediatek/ |
D | mediatek,infracfg.txt | 21 The available clocks are defined in dt-bindings/clock/mt*-clk.h. 25 dt-bindings/reset/mt*-resets.h
|
D | mediatek,pericfg.txt | 20 The available clocks are defined in dt-bindings/clock/mt*-clk.h. 24 dt-bindings/reset/mt*-resets.h
|
/Linux-v4.19/drivers/edac/ |
D | synopsys_edac.c | 338 enum mem_type mt; in synps_edac_get_mtype() local 344 mt = MEM_DDR3; in synps_edac_get_mtype() 346 mt = MEM_DDR2; in synps_edac_get_mtype() 348 return mt; in synps_edac_get_mtype()
|