/drivers/input/ |
D | input-mt.c | 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() 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 …]
|
D | input.c | 225 struct input_mt *mt = dev->mt; in input_handle_abs_event() local 234 if (mt && *pval >= 0 && *pval < mt->num_slots) in input_handle_abs_event() 235 mt->slot = *pval; in input_handle_abs_event() 244 } else if (mt) { in input_handle_abs_event() 245 pold = &mt->slots[mt->slot].abs[code - ABS_MT_FIRST]; in input_handle_abs_event() 264 if (is_mt_event && mt && mt->slot != input_abs_get_val(dev, ABS_MT_SLOT)) { in input_handle_abs_event() 265 input_abs_set_val(dev, ABS_MT_SLOT, mt->slot); in input_handle_abs_event() 399 v->value = dev->mt->slot; in input_handle_event() 2055 if (dev->mt) { in input_estimate_events_per_packet() 2056 mt_slots = dev->mt->num_slots; in input_estimate_events_per_packet()
|
D | Makefile | 9 input-core-y := input.o input-compat.o input-mt.o input-poller.o ff-core.o
|
/drivers/thermal/ |
D | mtk_thermal.c | 254 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 …]
|
/drivers/video/fbdev/matrox/ |
D | matroxfb_g450.c | 238 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 …]
|
D | matroxfb_maven.c | 756 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 …]
|
D | matroxfb_crtc2.c | 65 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 …]
|
D | matroxfb_misc.c | 107 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 …]
|
D | matroxfb_base.c | 783 { struct my_timming mt; in matroxfb_set_par() local 787 matroxfb_var2my(var, &mt); in matroxfb_set_par() 788 mt.crtc = MATROXFB_SRC_CRTC1; in matroxfb_set_par() 791 case 0: mt.delay = 31 + 0; break; in matroxfb_set_par() 792 case 16: mt.delay = 21 + 8; break; in matroxfb_set_par() 793 case 24: mt.delay = 17 + 8; break; in matroxfb_set_par() 794 case 32: mt.delay = 16 + 8; break; in matroxfb_set_par() 795 default: mt.delay = 31 + 8; break; in matroxfb_set_par() 804 minfo->outputs[out].output->compute(minfo->outputs[out].data, &mt); in matroxfb_set_par() 808 minfo->crtc1.pixclock = mt.pixclock; in matroxfb_set_par() [all …]
|
/drivers/input/mouse/ |
D | alps.c | 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() 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 …]
|
D | elantech.c | 591 etd->mt[0].x = ((packet[1] & 0x0f) << 8) | packet[2]; in elantech_report_absolute_v3() 596 etd->mt[0].y = etd->y_max - in elantech_report_absolute_v3() 605 x1 = etd->mt[0].x; in elantech_report_absolute_v3() 606 y1 = etd->mt[0].y; in elantech_report_absolute_v3() 684 etd->mt[id].x = ((packet[1] & 0x0f) << 8) | packet[2]; in process_packet_head_v4() 685 etd->mt[id].y = etd->y_max - (((packet[4] & 0x0f) << 8) | packet[5]); in process_packet_head_v4() 692 input_report_abs(dev, ABS_MT_POSITION_X, etd->mt[id].x); in process_packet_head_v4() 693 input_report_abs(dev, ABS_MT_POSITION_Y, etd->mt[id].y); in process_packet_head_v4() 726 etd->mt[id].x += delta_x1 * weight; in process_packet_motion_v4() 727 etd->mt[id].y -= delta_y1 * weight; in process_packet_motion_v4() [all …]
|
D | elantech.h | 185 struct finger_pos mt[ETP_MAX_FINGERS]; member
|
/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 | 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() 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 …]
|
D | slimbus.h | 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()
|
D | messaging.c | 121 (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()
|
/drivers/edac/ |
D | dmc520_edac.c | 294 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()
|
D | synopsys_edac.c | 726 enum mem_type mt; in zynq_get_mtype() local 732 mt = MEM_DDR3; in zynq_get_mtype() 734 mt = MEM_DDR2; in zynq_get_mtype() 736 return mt; in zynq_get_mtype() 750 enum mem_type mt; in zynqmp_get_mtype() local 756 mt = MEM_DDR3; in zynqmp_get_mtype() 758 mt = MEM_RDDR2; in zynqmp_get_mtype() 760 mt = MEM_DDR4; in zynqmp_get_mtype() 762 mt = MEM_EMPTY; in zynqmp_get_mtype() 764 return mt; in zynqmp_get_mtype()
|
/drivers/media/v4l2-core/ |
D | v4l2-jpeg.c | 360 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()
|
/drivers/video/fbdev/aty/ |
D | radeon_monitor.c | 74 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()
|
/drivers/isdn/mISDN/ |
D | tei.c | 761 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 …]
|
/drivers/net/ethernet/smsc/ |
D | smc91x.h | 1029 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)); \
|
/drivers/hid/ |
D | hid-multitouch.c | 980 struct input_mt *mt = input->mt; in mt_process_slot() local 1012 if ((quirks & MT_QUIRK_IGNORE_DUPLICATES) && mt) { in mt_process_slot() 1013 struct input_mt_slot *i_slot = &mt->slots[slotnum]; in mt_process_slot() 1016 input_mt_is_used(mt, i_slot)) in mt_process_slot() 1032 if (!active && mt && in mt_process_slot() 1033 input_mt_is_active(&mt->slots[slotnum])) { in mt_process_slot() 1640 struct input_mt *mt = input_dev->mt; in mt_release_contacts() local 1643 if (mt) { in mt_release_contacts() 1644 for (i = 0; i < mt->num_slots; i++) { in mt_release_contacts()
|
D | hid-asus.c | 218 struct input_mt *mt = drvdat->input->mt; in asus_report_tool_width() local 226 oldid = mt->trkid; in asus_report_tool_width() 229 for (i = 0; i < mt->num_slots; ++i) { in asus_report_tool_width() 230 struct input_mt_slot *ps = &mt->slots[i]; in asus_report_tool_width()
|
/drivers/perf/hisilicon/ |
D | hisi_uncore_pmu.c | 375 bool mt = mpidr & MPIDR_MT_BITMASK; in hisi_read_sccl_and_ccl_id() local 378 if (mt && read_cpuid_part_number() == HISI_CPU_PART_TSV110) { in hisi_read_sccl_and_ccl_id() 381 } else if (mt) { in hisi_read_sccl_and_ccl_id()
|