mt 70 arch/arm/include/asm/mpu.h #define PMSAv8_MAIR(attr, mt) ((attr) << ((mt) * 8)) mt 70 arch/arm/mm/mm.h #define VM_ARM_MTYPE(mt) ((mt) << 20) mt 634 arch/mips/kernel/cpu-probe.c int isa, mt; mt 641 arch/mips/kernel/cpu-probe.c mt = config0 & MIPS_CONF_MT; mt 642 arch/mips/kernel/cpu-probe.c if (mt == MIPS_CONF_MT_TLB) mt 644 arch/mips/kernel/cpu-probe.c else if (mt == MIPS_CONF_MT_FTLB) mt 720 drivers/edac/synopsys_edac.c enum mem_type mt; mt 726 drivers/edac/synopsys_edac.c mt = MEM_DDR3; mt 728 drivers/edac/synopsys_edac.c mt = MEM_DDR2; mt 730 drivers/edac/synopsys_edac.c return mt; mt 744 drivers/edac/synopsys_edac.c enum mem_type mt; mt 750 drivers/edac/synopsys_edac.c mt = MEM_DDR3; mt 752 drivers/edac/synopsys_edac.c mt = MEM_RDDR2; mt 754 drivers/edac/synopsys_edac.c mt = MEM_DDR4; mt 756 drivers/edac/synopsys_edac.c mt = MEM_EMPTY; mt 758 drivers/edac/synopsys_edac.c return mt; mt 197 drivers/hid/hid-asus.c struct input_mt *mt = drvdat->input->mt; mt 205 drivers/hid/hid-asus.c oldid = mt->trkid; mt 208 drivers/hid/hid-asus.c for (i = 0; i < mt->num_slots; ++i) { mt 209 drivers/hid/hid-asus.c struct input_mt_slot *ps = &mt->slots[i]; mt 981 drivers/hid/hid-multitouch.c struct input_mt *mt = input->mt; mt 1013 drivers/hid/hid-multitouch.c if ((quirks & MT_QUIRK_IGNORE_DUPLICATES) && mt) { mt 1014 drivers/hid/hid-multitouch.c struct input_mt_slot *i_slot = &mt->slots[slotnum]; mt 1017 drivers/hid/hid-multitouch.c input_mt_is_used(mt, i_slot)) mt 1033 drivers/hid/hid-multitouch.c if (!active && mt && mt 1034 drivers/hid/hid-multitouch.c input_mt_is_active(&mt->slots[slotnum])) { mt 1648 drivers/hid/hid-multitouch.c struct input_mt *mt = input_dev->mt; mt 1651 drivers/hid/hid-multitouch.c if (mt) { mt 1652 drivers/hid/hid-multitouch.c for (i = 0; i < mt->num_slots; i++) { mt 1242 drivers/hid/wacom_wac.c for (i = 0; i < input->mt->num_slots; i++) { mt 1243 drivers/hid/wacom_wac.c struct input_mt_slot *ps = &input->mt->slots[i]; mt 2528 drivers/hid/wacom_wac.c bool mt = wacom_wac->features.touch_max > 1; mt 2543 drivers/hid/wacom_wac.c if (mt) { mt 2555 drivers/hid/wacom_wac.c input_report_abs(input, mt ? ABS_MT_POSITION_X : ABS_X, mt 2557 drivers/hid/wacom_wac.c input_report_abs(input, mt ? ABS_MT_POSITION_Y : ABS_Y, mt 922 drivers/input/evdev.c const struct input_mt *mt = dev->mt; mt 929 drivers/input/evdev.c if (!mt || !input_is_mt_value(code)) mt 933 drivers/input/evdev.c for (i = 0; i < mt->num_slots && i < max_slots; i++) { mt 934 drivers/input/evdev.c int value = input_mt_get_value(&mt->slots[i], code); mt 41 drivers/input/input-mt.c struct input_mt *mt = dev->mt; mt 46 drivers/input/input-mt.c if (mt) mt 47 drivers/input/input-mt.c return mt->num_slots != num_slots ? -EINVAL : 0; mt 49 drivers/input/input-mt.c mt = kzalloc(struct_size(mt, slots, num_slots), GFP_KERNEL); mt 50 drivers/input/input-mt.c if (!mt) mt 53 drivers/input/input-mt.c mt->num_slots = num_slots; mt 54 drivers/input/input-mt.c mt->flags = flags; mt 83 drivers/input/input-mt.c mt->red = kcalloc(n2, sizeof(*mt->red), GFP_KERNEL); mt 84 drivers/input/input-mt.c if (!mt->red) mt 90 drivers/input/input-mt.c input_mt_set_value(&mt->slots[i], ABS_MT_TRACKING_ID, -1); mt 93 drivers/input/input-mt.c mt->frame = 1; mt 95 drivers/input/input-mt.c dev->mt = mt; mt 98 drivers/input/input-mt.c kfree(mt); mt 112 drivers/input/input-mt.c if (dev->mt) { mt 113 drivers/input/input-mt.c kfree(dev->mt->red); mt 114 drivers/input/input-mt.c kfree(dev->mt); mt 116 drivers/input/input-mt.c dev->mt = NULL; mt 137 drivers/input/input-mt.c struct input_mt *mt = dev->mt; mt 141 drivers/input/input-mt.c if (!mt) mt 144 drivers/input/input-mt.c slot = &mt->slots[mt->slot]; mt 145 drivers/input/input-mt.c slot->frame = mt->frame; mt 154 drivers/input/input-mt.c id = input_mt_new_trkid(mt); mt 197 drivers/input/input-mt.c struct input_mt *mt = dev->mt; mt 201 drivers/input/input-mt.c if (!mt) mt 205 drivers/input/input-mt.c oldid = mt->trkid; mt 208 drivers/input/input-mt.c for (i = 0; i < mt->num_slots; ++i) { mt 209 drivers/input/input-mt.c struct input_mt_slot *ps = &mt->slots[i]; mt 258 drivers/input/input-mt.c static void __input_mt_drop_unused(struct input_dev *dev, struct input_mt *mt) mt 262 drivers/input/input-mt.c for (i = 0; i < mt->num_slots; i++) { mt 263 drivers/input/input-mt.c if (!input_mt_is_used(mt, &mt->slots[i])) { mt 278 drivers/input/input-mt.c struct input_mt *mt = dev->mt; mt 280 drivers/input/input-mt.c if (mt) { mt 281 drivers/input/input-mt.c __input_mt_drop_unused(dev, mt); mt 282 drivers/input/input-mt.c mt->frame++; mt 297 drivers/input/input-mt.c struct input_mt *mt = dev->mt; mt 300 drivers/input/input-mt.c if (!mt) mt 303 drivers/input/input-mt.c if (mt->flags & INPUT_MT_DROP_UNUSED) mt 304 drivers/input/input-mt.c __input_mt_drop_unused(dev, mt); mt 306 drivers/input/input-mt.c if ((mt->flags & INPUT_MT_POINTER) && !(mt->flags & INPUT_MT_SEMI_MT)) mt 311 drivers/input/input-mt.c mt->frame++; mt 360 drivers/input/input-mt.c static int input_mt_set_matrix(struct input_mt *mt, mt 366 drivers/input/input-mt.c int *w = mt->red; mt 369 drivers/input/input-mt.c for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { mt 380 drivers/input/input-mt.c return w - mt->red; mt 383 drivers/input/input-mt.c static void input_mt_set_slots(struct input_mt *mt, mt 387 drivers/input/input-mt.c int *w = mt->red, j; mt 392 drivers/input/input-mt.c for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { mt 398 drivers/input/input-mt.c slots[j] = s - mt->slots; mt 406 drivers/input/input-mt.c for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { mt 412 drivers/input/input-mt.c slots[j] = s - mt->slots; mt 441 drivers/input/input-mt.c struct input_mt *mt = dev->mt; mt 445 drivers/input/input-mt.c if (!mt || !mt->red) mt 447 drivers/input/input-mt.c if (num_pos > mt->num_slots) mt 452 drivers/input/input-mt.c nrc = input_mt_set_matrix(mt, pos, num_pos, mu); mt 453 drivers/input/input-mt.c find_reduced_matrix(mt->red, num_pos, nrc / num_pos, nrc, mu); mt 454 drivers/input/input-mt.c input_mt_set_slots(mt, slots, num_pos); mt 474 drivers/input/input-mt.c struct input_mt *mt = dev->mt; mt 477 drivers/input/input-mt.c if (!mt) mt 480 drivers/input/input-mt.c for (s = mt->slots; s != mt->slots + mt->num_slots; s++) mt 482 drivers/input/input-mt.c return s - mt->slots; mt 484 drivers/input/input-mt.c for (s = mt->slots; s != mt->slots + mt->num_slots; s++) mt 485 drivers/input/input-mt.c if (!input_mt_is_active(s) && !input_mt_is_used(mt, s)) { mt 487 drivers/input/input-mt.c return s - mt->slots; mt 214 drivers/input/input.c struct input_mt *mt = dev->mt; mt 223 drivers/input/input.c if (mt && *pval >= 0 && *pval < mt->num_slots) mt 224 drivers/input/input.c mt->slot = *pval; mt 233 drivers/input/input.c } else if (mt) { mt 234 drivers/input/input.c pold = &mt->slots[mt->slot].abs[code - ABS_MT_FIRST]; mt 253 drivers/input/input.c if (is_mt_event && mt && mt->slot != input_abs_get_val(dev, ABS_MT_SLOT)) { mt 254 drivers/input/input.c input_abs_set_val(dev, ABS_MT_SLOT, mt->slot); mt 388 drivers/input/input.c v->value = dev->mt->slot; mt 2038 drivers/input/input.c if (dev->mt) { mt 2039 drivers/input/input.c mt_slots = dev->mt->num_slots; mt 496 drivers/input/mouse/alps.c fields->mt[0] = fields->st; mt 497 drivers/input/mouse/alps.c fields->mt[1] = corner[priv->second_touch]; mt 517 drivers/input/mouse/alps.c input_mt_assign_slots(dev, slot, f->mt, n, 0); mt 519 drivers/input/mouse/alps.c alps_set_slot(dev, slot[i], f->mt[i].x, f->mt[i].y); mt 532 drivers/input/mouse/alps.c f->mt[0].x = f->st.x; mt 533 drivers/input/mouse/alps.c f->mt[0].y = f->st.y; mt 539 drivers/input/mouse/alps.c alps_set_slot(dev, 0, f->mt[0].x, f->mt[0].y); mt 541 drivers/input/mouse/alps.c alps_set_slot(dev, 1, f->mt[1].x, f->mt[1].y); mt 969 drivers/input/mouse/alps.c static void alps_get_finger_coordinate_v7(struct input_mt_pos *mt, mt 973 drivers/input/mouse/alps.c mt[0].x = ((pkt[2] & 0x80) << 4); mt 974 drivers/input/mouse/alps.c mt[0].x |= ((pkt[2] & 0x3F) << 5); mt 975 drivers/input/mouse/alps.c mt[0].x |= ((pkt[3] & 0x30) >> 1); mt 976 drivers/input/mouse/alps.c mt[0].x |= (pkt[3] & 0x07); mt 977 drivers/input/mouse/alps.c mt[0].y = (pkt[1] << 3) | (pkt[0] & 0x07); mt 979 drivers/input/mouse/alps.c mt[1].x = ((pkt[3] & 0x80) << 4); mt 980 drivers/input/mouse/alps.c mt[1].x |= ((pkt[4] & 0x80) << 3); mt 981 drivers/input/mouse/alps.c mt[1].x |= ((pkt[4] & 0x3F) << 4); mt 982 drivers/input/mouse/alps.c mt[1].y = ((pkt[5] & 0x80) << 3); mt 983 drivers/input/mouse/alps.c mt[1].y |= ((pkt[5] & 0x3F) << 4); mt 987 drivers/input/mouse/alps.c mt[1].x &= ~0x000F; mt 988 drivers/input/mouse/alps.c mt[1].y |= 0x000F; mt 990 drivers/input/mouse/alps.c if (mt[1].y == 0x7ff && mt[1].x == 0xff0) { mt 991 drivers/input/mouse/alps.c mt[1].x = 0; mt 997 drivers/input/mouse/alps.c mt[1].x &= ~0x003F; mt 998 drivers/input/mouse/alps.c mt[1].y &= ~0x0020; mt 999 drivers/input/mouse/alps.c mt[1].y |= ((pkt[4] & 0x02) << 4); mt 1000 drivers/input/mouse/alps.c mt[1].y |= 0x001F; mt 1004 drivers/input/mouse/alps.c mt[1].x &= ~0x003F; mt 1005 drivers/input/mouse/alps.c mt[1].x |= (pkt[0] & 0x20); mt 1006 drivers/input/mouse/alps.c mt[1].y |= 0x000F; mt 1010 drivers/input/mouse/alps.c mt[0].y = 0x7FF - mt[0].y; mt 1011 drivers/input/mouse/alps.c mt[1].y = 0x7FF - mt[1].y; mt 1014 drivers/input/mouse/alps.c static int alps_get_mt_count(struct input_mt_pos *mt) mt 1019 drivers/input/mouse/alps.c if (mt[i].x != 0 || mt[i].y != 0) mt 1059 drivers/input/mouse/alps.c alps_get_finger_coordinate_v7(f->mt, p, pkt_id); mt 1062 drivers/input/mouse/alps.c f->fingers = alps_get_mt_count(f->mt); mt 1078 drivers/input/mouse/alps.c if (f->fingers == 1 && f->mt[0].x == 0 && f->mt[0].y == 0) { mt 1079 drivers/input/mouse/alps.c f->mt[0].x = f->mt[1].x; mt 1080 drivers/input/mouse/alps.c f->mt[0].y = f->mt[1].y; mt 1081 drivers/input/mouse/alps.c f->mt[1].x = 0; mt 1082 drivers/input/mouse/alps.c f->mt[1].y = 0; mt 1127 drivers/input/mouse/alps.c alps_report_mt_data(psmouse, alps_get_mt_count(f->mt)); mt 1189 drivers/input/mouse/alps.c f->mt[0].x = SS4_1F_X_V2(p); mt 1190 drivers/input/mouse/alps.c f->mt[0].y = SS4_1F_Y_V2(p); mt 1206 drivers/input/mouse/alps.c f->mt[0].x = SS4_PLUS_BTL_MF_X_V2(p, 0); mt 1207 drivers/input/mouse/alps.c f->mt[1].x = SS4_PLUS_BTL_MF_X_V2(p, 1); mt 1209 drivers/input/mouse/alps.c f->mt[0].x = SS4_BTL_MF_X_V2(p, 0); mt 1210 drivers/input/mouse/alps.c f->mt[1].x = SS4_BTL_MF_X_V2(p, 1); mt 1212 drivers/input/mouse/alps.c f->mt[0].y = SS4_BTL_MF_Y_V2(p, 0); mt 1213 drivers/input/mouse/alps.c f->mt[1].y = SS4_BTL_MF_Y_V2(p, 1); mt 1216 drivers/input/mouse/alps.c f->mt[0].x = SS4_PLUS_STD_MF_X_V2(p, 0); mt 1217 drivers/input/mouse/alps.c f->mt[1].x = SS4_PLUS_STD_MF_X_V2(p, 1); mt 1219 drivers/input/mouse/alps.c f->mt[0].x = SS4_STD_MF_X_V2(p, 0); mt 1220 drivers/input/mouse/alps.c f->mt[1].x = SS4_STD_MF_X_V2(p, 1); mt 1222 drivers/input/mouse/alps.c f->mt[0].y = SS4_STD_MF_Y_V2(p, 0); mt 1223 drivers/input/mouse/alps.c f->mt[1].y = SS4_STD_MF_Y_V2(p, 1); mt 1240 drivers/input/mouse/alps.c f->mt[2].x = SS4_PLUS_BTL_MF_X_V2(p, 0); mt 1241 drivers/input/mouse/alps.c f->mt[3].x = SS4_PLUS_BTL_MF_X_V2(p, 1); mt 1244 drivers/input/mouse/alps.c f->mt[2].x = SS4_BTL_MF_X_V2(p, 0); mt 1245 drivers/input/mouse/alps.c f->mt[3].x = SS4_BTL_MF_X_V2(p, 1); mt 1250 drivers/input/mouse/alps.c f->mt[2].y = SS4_BTL_MF_Y_V2(p, 0); mt 1251 drivers/input/mouse/alps.c f->mt[3].y = SS4_BTL_MF_Y_V2(p, 1); mt 1254 drivers/input/mouse/alps.c f->mt[2].x = SS4_PLUS_STD_MF_X_V2(p, 0); mt 1255 drivers/input/mouse/alps.c f->mt[3].x = SS4_PLUS_STD_MF_X_V2(p, 1); mt 1258 drivers/input/mouse/alps.c f->mt[2].x = SS4_STD_MF_X_V2(p, 0); mt 1259 drivers/input/mouse/alps.c f->mt[3].x = SS4_STD_MF_X_V2(p, 1); mt 1264 drivers/input/mouse/alps.c f->mt[2].y = SS4_STD_MF_Y_V2(p, 0); mt 1265 drivers/input/mouse/alps.c f->mt[3].y = SS4_STD_MF_Y_V2(p, 1); mt 1273 drivers/input/mouse/alps.c } else if (f->mt[3].x == no_data_x && mt 1274 drivers/input/mouse/alps.c f->mt[3].y == no_data_y) { mt 1275 drivers/input/mouse/alps.c f->mt[3].x = 0; mt 1276 drivers/input/mouse/alps.c f->mt[3].y = 0; mt 239 drivers/input/mouse/alps.h struct input_mt_pos mt[MAX_TOUCHES]; mt 537 drivers/input/mouse/elantech.c etd->mt[0].x = ((packet[1] & 0x0f) << 8) | packet[2]; mt 542 drivers/input/mouse/elantech.c etd->mt[0].y = etd->y_max - mt 551 drivers/input/mouse/elantech.c x1 = etd->mt[0].x; mt 552 drivers/input/mouse/elantech.c y1 = etd->mt[0].y; mt 629 drivers/input/mouse/elantech.c etd->mt[id].x = ((packet[1] & 0x0f) << 8) | packet[2]; mt 630 drivers/input/mouse/elantech.c etd->mt[id].y = etd->y_max - (((packet[4] & 0x0f) << 8) | packet[5]); mt 637 drivers/input/mouse/elantech.c input_report_abs(dev, ABS_MT_POSITION_X, etd->mt[id].x); mt 638 drivers/input/mouse/elantech.c input_report_abs(dev, ABS_MT_POSITION_Y, etd->mt[id].y); mt 671 drivers/input/mouse/elantech.c etd->mt[id].x += delta_x1 * weight; mt 672 drivers/input/mouse/elantech.c etd->mt[id].y -= delta_y1 * weight; mt 674 drivers/input/mouse/elantech.c input_report_abs(dev, ABS_MT_POSITION_X, etd->mt[id].x); mt 675 drivers/input/mouse/elantech.c input_report_abs(dev, ABS_MT_POSITION_Y, etd->mt[id].y); mt 678 drivers/input/mouse/elantech.c etd->mt[sid].x += delta_x2 * weight; mt 679 drivers/input/mouse/elantech.c etd->mt[sid].y -= delta_y2 * weight; mt 681 drivers/input/mouse/elantech.c input_report_abs(dev, ABS_MT_POSITION_X, etd->mt[sid].x); mt 682 drivers/input/mouse/elantech.c input_report_abs(dev, ABS_MT_POSITION_Y, etd->mt[sid].y); mt 181 drivers/input/mouse/elantech.h struct finger_pos mt[ETP_MAX_FINGERS]; mt 761 drivers/isdn/mISDN/tei.c tei_ph_data_ind(struct teimgr *tm, u_int mt, u_char *dp, int len) mt 766 drivers/isdn/mISDN/tei.c tm->tei_m.printdebug(&tm->tei_m, "tei handler mt %x", mt); mt 767 drivers/isdn/mISDN/tei.c if (mt == ID_ASSIGNED) mt 769 drivers/isdn/mISDN/tei.c else if (mt == ID_DENIED) mt 771 drivers/isdn/mISDN/tei.c else if (mt == ID_CHK_REQ) mt 773 drivers/isdn/mISDN/tei.c else if (mt == ID_REMOVE) mt 775 drivers/isdn/mISDN/tei.c else if (mt == ID_VERIFY) mt 777 drivers/isdn/mISDN/tei.c else if (mt == ID_CHK_RES) mt 882 drivers/isdn/mISDN/tei.c u_char mt; mt 903 drivers/isdn/mISDN/tei.c mt = skb->data[6]; mt 904 drivers/isdn/mISDN/tei.c switch (mt) { mt 922 drivers/isdn/mISDN/tei.c if (mt == ID_REQUEST) { mt 927 drivers/isdn/mISDN/tei.c tei_ph_data_ind(l2->tm, mt, &skb->data[4], skb->len - 4); mt 782 drivers/media/usb/go7007/go7007-v4l2.c u8 *mt; mt 822 drivers/media/usb/go7007/go7007-v4l2.c mt = go->modet_map; mt 823 drivers/media/usb/go7007/go7007-v4l2.c for (y = 0; y < go->height / 16; y++, mt += go->width / 16) mt 824 drivers/media/usb/go7007/go7007-v4l2.c memcpy(mt, ctrl->p_new.p_u8 + y * (720 / 16), go->width / 16); mt 587 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c VPD_ENTRY(mt, 2); /* mem timing */ mt 1670 drivers/net/ethernet/mellanox/mlxsw/reg.h enum mlxsw_reg_svfa_mt mt, bool valid, mt 1674 drivers/net/ethernet/mellanox/mlxsw/reg.h local_port = mt == MLXSW_REG_SVFA_MT_VID_TO_FID ? 0 : local_port; mt 1677 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_svfa_mapping_table_set(payload, mt); mt 443 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c enum mlxsw_reg_svfa_mt mt = MLXSW_REG_SVFA_MT_VID_TO_FID; mt 446 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c mlxsw_reg_svfa_pack(svfa_pl, 0, mt, valid, fid_index, vid); mt 453 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c enum mlxsw_reg_svfa_mt mt = MLXSW_REG_SVFA_MT_PORT_VID_TO_FID; mt 456 drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c mlxsw_reg_svfa_pack(svfa_pl, local_port, mt, valid, fid_index, vid); mt 1029 drivers/net/ethernet/smsc/smc91x.h const unsigned char *mt = (x); \ mt 1030 drivers/net/ethernet/smsc/smc91x.h SMC_outw(lp, mt[0] | (mt[1] << 8), ioaddr, MCAST_REG1(lp)); \ mt 1031 drivers/net/ethernet/smsc/smc91x.h SMC_outw(lp, mt[2] | (mt[3] << 8), ioaddr, MCAST_REG2(lp)); \ mt 1032 drivers/net/ethernet/smsc/smc91x.h SMC_outw(lp, mt[4] | (mt[5] << 8), ioaddr, MCAST_REG3(lp)); \ mt 1033 drivers/net/ethernet/smsc/smc91x.h SMC_outw(lp, mt[6] | (mt[7] << 8), ioaddr, MCAST_REG4(lp)); \ mt 121 drivers/slimbus/messaging.c (txn->mt == SLIM_MSG_MT_CORE && mt 135 drivers/slimbus/messaging.c need_tid = slim_tid_txn(txn->mt, txn->mc); mt 163 drivers/slimbus/messaging.c txn->mt, txn->mc, txn->la, ret); mt 265 drivers/slimbus/messaging.c if (slim_tid_txn(txn->mt, txn->mc)) mt 64 drivers/slimbus/qcom-ctrl.c #define SLIM_MSG_ASM_FIRST_WORD(l, mt, mc, dt, ad) \ mt 65 drivers/slimbus/qcom-ctrl.c ((l) | ((mt) << 5) | ((mc) << 8) | ((dt) << 15) | ((ad) << 16)) mt 212 drivers/slimbus/qcom-ctrl.c u8 mc, mt, len; mt 215 drivers/slimbus/qcom-ctrl.c mt = SLIM_HEADER_GET_MT(pkt[0]); mt 223 drivers/slimbus/qcom-ctrl.c if (mt == SLIM_MSG_MT_CORE && mc == SLIM_MSG_MC_REPORT_PRESENT) { mt 251 drivers/slimbus/qcom-ctrl.c mc, mt); mt 356 drivers/slimbus/qcom-ctrl.c *head = SLIM_MSG_ASM_FIRST_WORD(txn->rl, txn->mt, mt 360 drivers/slimbus/qcom-ctrl.c *head = SLIM_MSG_ASM_FIRST_WORD(txn->rl, txn->mt, mt 365 drivers/slimbus/qcom-ctrl.c if (slim_tid_txn(txn->mt, txn->mc)) mt 368 drivers/slimbus/qcom-ctrl.c if (slim_ec_txn(txn->mt, txn->mc)) { mt 381 drivers/slimbus/qcom-ctrl.c txn->mt); mt 442 drivers/slimbus/qcom-ctrl.c u8 mc, mt; mt 448 drivers/slimbus/qcom-ctrl.c mt = SLIM_HEADER_GET_MT(buf[0]); mt 450 drivers/slimbus/qcom-ctrl.c if (mt == SLIM_MSG_MT_CORE && mt 467 drivers/slimbus/qcom-ctrl.c mc, mt); mt 91 drivers/slimbus/qcom-ngd-ctrl.c #define SLIM_MSG_ASM_FIRST_WORD(l, mt, mc, dt, ad) \ mt 92 drivers/slimbus/qcom-ngd-ctrl.c ((l) | ((mt) << 5) | ((mc) << 8) | ((dt) << 15) | ((ad) << 16)) mt 594 drivers/slimbus/qcom-ngd-ctrl.c u8 mc, mt, len; mt 596 drivers/slimbus/qcom-ngd-ctrl.c mt = SLIM_HEADER_GET_MT(buf[0]); mt 601 drivers/slimbus/qcom-ngd-ctrl.c mt == SLIM_MSG_MT_SRC_REFERRED_USER) mt 606 drivers/slimbus/qcom-ngd-ctrl.c mt == SLIM_MSG_MT_SRC_REFERRED_USER) || mt 608 drivers/slimbus/qcom-ngd-ctrl.c mt == SLIM_MSG_MT_SRC_REFERRED_USER)) { mt 780 drivers/slimbus/qcom-ngd-ctrl.c if (txn->mt == SLIM_MSG_MT_CORE && mt 800 drivers/slimbus/qcom-ngd-ctrl.c if (txn->mt == SLIM_MSG_MT_CORE && mt 804 drivers/slimbus/qcom-ngd-ctrl.c txn->mt = SLIM_MSG_MT_DEST_REFERRED_USER; mt 847 drivers/slimbus/qcom-ngd-ctrl.c *pbuf = SLIM_MSG_ASM_FIRST_WORD(txn->rl, txn->mt, txn->mc, 0, mt 851 drivers/slimbus/qcom-ngd-ctrl.c *pbuf = SLIM_MSG_ASM_FIRST_WORD(txn->rl, txn->mt, txn->mc, 1, mt 856 drivers/slimbus/qcom-ngd-ctrl.c if (slim_tid_txn(txn->mt, txn->mc)) mt 859 drivers/slimbus/qcom-ngd-ctrl.c if (slim_ec_txn(txn->mt, txn->mc)) { mt 874 drivers/slimbus/qcom-ngd-ctrl.c txn->mt); mt 882 drivers/slimbus/qcom-ngd-ctrl.c txn->mc, txn->mt); mt 907 drivers/slimbus/qcom-ngd-ctrl.c txn->mt); mt 923 drivers/slimbus/qcom-ngd-ctrl.c txn.mt = SLIM_MSG_MT_DEST_REFERRED_USER; mt 974 drivers/slimbus/qcom-ngd-ctrl.c txn.mt); mt 994 drivers/slimbus/qcom-ngd-ctrl.c txn.mt); mt 1010 drivers/slimbus/qcom-ngd-ctrl.c txn.mt = SLIM_MSG_MT_DEST_REFERRED_USER; mt 1162 drivers/slimbus/qcom-ngd-ctrl.c txn.mt = SLIM_MSG_MT_SRC_REFERRED_USER; mt 129 drivers/slimbus/slimbus.h u8 mt; mt 436 drivers/slimbus/slimbus.h static inline bool slim_tid_txn(u8 mt, u8 mc) mt 438 drivers/slimbus/slimbus.h return (mt == SLIM_MSG_MT_CORE && mt 445 drivers/slimbus/slimbus.h static inline bool slim_ec_txn(u8 mt, u8 mc) mt 447 drivers/slimbus/slimbus.h return (mt == SLIM_MSG_MT_CORE && mt 231 drivers/thermal/mtk_thermal.c struct mtk_thermal *mt; mt 528 drivers/thermal/mtk_thermal.c static int raw_to_mcelsius(struct mtk_thermal *mt, int sensno, s32 raw) mt 535 drivers/thermal/mtk_thermal.c tmp /= mt->conf->cali_val + mt->o_slope; mt 536 drivers/thermal/mtk_thermal.c tmp /= 10000 + mt->adc_ge; mt 537 drivers/thermal/mtk_thermal.c tmp *= raw - mt->vts[sensno] - 3350; mt 540 drivers/thermal/mtk_thermal.c return mt->degc_cali * 500 - tmp; mt 552 drivers/thermal/mtk_thermal.c struct mtk_thermal *mt = bank->mt; mt 555 drivers/thermal/mtk_thermal.c if (mt->conf->need_switch_bank) { mt 556 drivers/thermal/mtk_thermal.c mutex_lock(&mt->lock); mt 558 drivers/thermal/mtk_thermal.c val = readl(mt->thermal_base + PTPCORESEL); mt 561 drivers/thermal/mtk_thermal.c writel(val, mt->thermal_base + PTPCORESEL); mt 573 drivers/thermal/mtk_thermal.c struct mtk_thermal *mt = bank->mt; mt 575 drivers/thermal/mtk_thermal.c if (mt->conf->need_switch_bank) mt 576 drivers/thermal/mtk_thermal.c mutex_unlock(&mt->lock); mt 588 drivers/thermal/mtk_thermal.c struct mtk_thermal *mt = bank->mt; mt 589 drivers/thermal/mtk_thermal.c const struct mtk_thermal_data *conf = mt->conf; mt 594 drivers/thermal/mtk_thermal.c raw = readl(mt->thermal_base + mt 597 drivers/thermal/mtk_thermal.c temp = raw_to_mcelsius(mt, mt 618 drivers/thermal/mtk_thermal.c struct mtk_thermal *mt = data; mt 622 drivers/thermal/mtk_thermal.c for (i = 0; i < mt->conf->num_banks; i++) { mt 623 drivers/thermal/mtk_thermal.c struct mtk_thermal_bank *bank = &mt->banks[i]; mt 641 drivers/thermal/mtk_thermal.c static void mtk_thermal_init_bank(struct mtk_thermal *mt, int num, mt 645 drivers/thermal/mtk_thermal.c struct mtk_thermal_bank *bank = &mt->banks[num]; mt 646 drivers/thermal/mtk_thermal.c const struct mtk_thermal_data *conf = mt->conf; mt 649 drivers/thermal/mtk_thermal.c int offset = mt->conf->controller_offset[ctrl_id]; mt 650 drivers/thermal/mtk_thermal.c void __iomem *controller_base = mt->thermal_base + offset; mt 653 drivers/thermal/mtk_thermal.c bank->mt = mt; mt 736 drivers/thermal/mtk_thermal.c mt->thermal_base + mt 762 drivers/thermal/mtk_thermal.c struct mtk_thermal *mt) mt 770 drivers/thermal/mtk_thermal.c mt->adc_ge = 512; mt 771 drivers/thermal/mtk_thermal.c for (i = 0; i < mt->conf->num_sensors; i++) mt 772 drivers/thermal/mtk_thermal.c mt->vts[i] = 260; mt 773 drivers/thermal/mtk_thermal.c mt->degc_cali = 40; mt 774 drivers/thermal/mtk_thermal.c mt->o_slope = 0; mt 797 drivers/thermal/mtk_thermal.c mt->adc_ge = CALIB_BUF1_ADC_GE(buf[1]); mt 799 drivers/thermal/mtk_thermal.c for (i = 0; i < mt->conf->num_sensors; i++) { mt 800 drivers/thermal/mtk_thermal.c switch (mt->conf->vts_index[i]) { mt 802 drivers/thermal/mtk_thermal.c mt->vts[VTS1] = CALIB_BUF0_VTS_TS1(buf[0]); mt 805 drivers/thermal/mtk_thermal.c mt->vts[VTS2] = CALIB_BUF0_VTS_TS2(buf[0]); mt 808 drivers/thermal/mtk_thermal.c mt->vts[VTS3] = CALIB_BUF1_VTS_TS3(buf[1]); mt 811 drivers/thermal/mtk_thermal.c mt->vts[VTS4] = CALIB_BUF2_VTS_TS4(buf[2]); mt 814 drivers/thermal/mtk_thermal.c mt->vts[VTS5] = CALIB_BUF2_VTS_TS5(buf[2]); mt 817 drivers/thermal/mtk_thermal.c mt->vts[VTSABB] = CALIB_BUF2_VTS_TSABB(buf[2]); mt 824 drivers/thermal/mtk_thermal.c mt->degc_cali = CALIB_BUF0_DEGC_CALI(buf[0]); mt 827 drivers/thermal/mtk_thermal.c mt->o_slope = -CALIB_BUF0_O_SLOPE(buf[0]); mt 829 drivers/thermal/mtk_thermal.c mt->o_slope = CALIB_BUF0_O_SLOPE(buf[0]); mt 869 drivers/thermal/mtk_thermal.c struct mtk_thermal *mt; mt 874 drivers/thermal/mtk_thermal.c mt = devm_kzalloc(&pdev->dev, sizeof(*mt), GFP_KERNEL); mt 875 drivers/thermal/mtk_thermal.c if (!mt) mt 878 drivers/thermal/mtk_thermal.c mt->conf = of_device_get_match_data(&pdev->dev); mt 880 drivers/thermal/mtk_thermal.c mt->clk_peri_therm = devm_clk_get(&pdev->dev, "therm"); mt 881 drivers/thermal/mtk_thermal.c if (IS_ERR(mt->clk_peri_therm)) mt 882 drivers/thermal/mtk_thermal.c return PTR_ERR(mt->clk_peri_therm); mt 884 drivers/thermal/mtk_thermal.c mt->clk_auxadc = devm_clk_get(&pdev->dev, "auxadc"); mt 885 drivers/thermal/mtk_thermal.c if (IS_ERR(mt->clk_auxadc)) mt 886 drivers/thermal/mtk_thermal.c return PTR_ERR(mt->clk_auxadc); mt 889 drivers/thermal/mtk_thermal.c mt->thermal_base = devm_ioremap_resource(&pdev->dev, res); mt 890 drivers/thermal/mtk_thermal.c if (IS_ERR(mt->thermal_base)) mt 891 drivers/thermal/mtk_thermal.c return PTR_ERR(mt->thermal_base); mt 893 drivers/thermal/mtk_thermal.c ret = mtk_thermal_get_calibration_data(&pdev->dev, mt); mt 897 drivers/thermal/mtk_thermal.c mutex_init(&mt->lock); mt 899 drivers/thermal/mtk_thermal.c mt->dev = &pdev->dev; mt 935 drivers/thermal/mtk_thermal.c ret = clk_prepare_enable(mt->clk_auxadc); mt 941 drivers/thermal/mtk_thermal.c ret = clk_prepare_enable(mt->clk_peri_therm); mt 947 drivers/thermal/mtk_thermal.c for (ctrl_id = 0; ctrl_id < mt->conf->num_controller ; ctrl_id++) mt 948 drivers/thermal/mtk_thermal.c for (i = 0; i < mt->conf->num_banks; i++) mt 949 drivers/thermal/mtk_thermal.c mtk_thermal_init_bank(mt, i, apmixed_phys_base, mt 952 drivers/thermal/mtk_thermal.c platform_set_drvdata(pdev, mt); mt 954 drivers/thermal/mtk_thermal.c tzdev = devm_thermal_zone_of_sensor_register(&pdev->dev, 0, mt, mt 964 drivers/thermal/mtk_thermal.c clk_disable_unprepare(mt->clk_peri_therm); mt 966 drivers/thermal/mtk_thermal.c clk_disable_unprepare(mt->clk_auxadc); mt 973 drivers/thermal/mtk_thermal.c struct mtk_thermal *mt = platform_get_drvdata(pdev); mt 975 drivers/thermal/mtk_thermal.c clk_disable_unprepare(mt->clk_peri_therm); mt 976 drivers/thermal/mtk_thermal.c clk_disable_unprepare(mt->clk_auxadc); mt 74 drivers/video/fbdev/aty/radeon_monitor.c int i, mt = MT_NONE; mt 85 drivers/video/fbdev/aty/radeon_monitor.c mt = MT_DFP; mt 87 drivers/video/fbdev/aty/radeon_monitor.c mt = MT_CRT; mt 110 drivers/video/fbdev/aty/radeon_monitor.c return mt; mt 114 drivers/video/fbdev/aty/radeon_monitor.c return mt; mt 116 drivers/video/fbdev/aty/radeon_monitor.c return mt; mt 145 drivers/video/fbdev/aty/radeon_monitor.c int mt = radeon_parse_montype_prop(dp, out_EDID, 0); mt 149 drivers/video/fbdev/aty/radeon_monitor.c if (mt == MT_DFP && rinfo->is_mobility) mt 150 drivers/video/fbdev/aty/radeon_monitor.c mt = MT_LCD; mt 151 drivers/video/fbdev/aty/radeon_monitor.c return mt; mt 783 drivers/video/fbdev/matrox/matroxfb_base.c { struct my_timming mt; mt 787 drivers/video/fbdev/matrox/matroxfb_base.c matroxfb_var2my(var, &mt); mt 788 drivers/video/fbdev/matrox/matroxfb_base.c mt.crtc = MATROXFB_SRC_CRTC1; mt 791 drivers/video/fbdev/matrox/matroxfb_base.c case 0: mt.delay = 31 + 0; break; mt 792 drivers/video/fbdev/matrox/matroxfb_base.c case 16: mt.delay = 21 + 8; break; mt 793 drivers/video/fbdev/matrox/matroxfb_base.c case 24: mt.delay = 17 + 8; break; mt 794 drivers/video/fbdev/matrox/matroxfb_base.c case 32: mt.delay = 16 + 8; break; mt 795 drivers/video/fbdev/matrox/matroxfb_base.c default: mt.delay = 31 + 8; break; mt 804 drivers/video/fbdev/matrox/matroxfb_base.c minfo->outputs[out].output->compute(minfo->outputs[out].data, &mt); mt 808 drivers/video/fbdev/matrox/matroxfb_base.c minfo->crtc1.pixclock = mt.pixclock; mt 809 drivers/video/fbdev/matrox/matroxfb_base.c minfo->crtc1.mnp = mt.mnp; mt 810 drivers/video/fbdev/matrox/matroxfb_base.c minfo->hw_switch->init(minfo, &mt); mt 696 drivers/video/fbdev/matrox/matroxfb_base.h extern void matroxfb_var2my(struct fb_var_screeninfo* fvsi, struct my_timming* mt); mt 65 drivers/video/fbdev/matrox/matroxfb_crtc2.c struct my_timming* mt, mt 105 drivers/video/fbdev/matrox/matroxfb_crtc2.c if (mt->interlaced) { mt 107 drivers/video/fbdev/matrox/matroxfb_crtc2.c mt->VDisplay >>= 1; mt 108 drivers/video/fbdev/matrox/matroxfb_crtc2.c mt->VSyncStart >>= 1; mt 109 drivers/video/fbdev/matrox/matroxfb_crtc2.c mt->VSyncEnd >>= 1; mt 110 drivers/video/fbdev/matrox/matroxfb_crtc2.c mt->VTotal >>= 1; mt 112 drivers/video/fbdev/matrox/matroxfb_crtc2.c if ((mt->HTotal & 7) == 2) { mt 114 drivers/video/fbdev/matrox/matroxfb_crtc2.c mt->HTotal &= ~7; mt 117 drivers/video/fbdev/matrox/matroxfb_crtc2.c mga_outl(0x3C14, ((mt->HDisplay - 8) << 16) | (mt->HTotal - 8)); mt 118 drivers/video/fbdev/matrox/matroxfb_crtc2.c mga_outl(0x3C18, ((mt->HSyncEnd - 8) << 16) | (mt->HSyncStart - 8)); mt 119 drivers/video/fbdev/matrox/matroxfb_crtc2.c mga_outl(0x3C1C, ((mt->VDisplay - 1) << 16) | (mt->VTotal - 1)); mt 120 drivers/video/fbdev/matrox/matroxfb_crtc2.c mga_outl(0x3C20, ((mt->VSyncEnd - 1) << 16) | (mt->VSyncStart - 1)); mt 121 drivers/video/fbdev/matrox/matroxfb_crtc2.c mga_outl(0x3C24, ((mt->VSyncStart) << 16) | (mt->HSyncStart)); /* preload */ mt 153 drivers/video/fbdev/matrox/matroxfb_crtc2.c tmp = mt->VDisplay << 16; /* line compare */ mt 154 drivers/video/fbdev/matrox/matroxfb_crtc2.c if (mt->sync & FB_SYNC_HOR_HIGH_ACT) mt 156 drivers/video/fbdev/matrox/matroxfb_crtc2.c if (mt->sync & FB_SYNC_VERT_HIGH_ACT) mt 344 drivers/video/fbdev/matrox/matroxfb_crtc2.c struct my_timming mt; mt 349 drivers/video/fbdev/matrox/matroxfb_crtc2.c matroxfb_var2my(&m2info->fbcon.var, &mt); mt 350 drivers/video/fbdev/matrox/matroxfb_crtc2.c mt.crtc = MATROXFB_SRC_CRTC2; mt 352 drivers/video/fbdev/matrox/matroxfb_crtc2.c mt.delay = 34; mt 362 drivers/video/fbdev/matrox/matroxfb_crtc2.c minfo->outputs[out].output->compute(minfo->outputs[out].data, &mt); mt 366 drivers/video/fbdev/matrox/matroxfb_crtc2.c minfo->crtc2.pixclock = mt.pixclock; mt 367 drivers/video/fbdev/matrox/matroxfb_crtc2.c minfo->crtc2.mnp = mt.mnp; mt 370 drivers/video/fbdev/matrox/matroxfb_crtc2.c matroxfb_dh_restore(m2info, &mt, mode, pos); mt 238 drivers/video/fbdev/matrox/matroxfb_g450.c struct my_timming *mt, const struct output_desc *outd) mt 253 drivers/video/fbdev/matrox/matroxfb_g450.c hvis = ((mt->HDisplay << 1) + 3) & ~3; mt 266 drivers/video/fbdev/matrox/matroxfb_g450.c mt->mnp = mnp; mt 267 drivers/video/fbdev/matrox/matroxfb_g450.c mt->pixclock = g450_mnp2f(minfo, mnp); mt 271 drivers/video/fbdev/matrox/matroxfb_g450.c pixclock = 1000000000U / mt->pixclock; mt 276 drivers/video/fbdev/matrox/matroxfb_g450.c do_div(piic, mt->pixclock); mt 323 drivers/video/fbdev/matrox/matroxfb_g450.c mt->interlaced = 1; mt 325 drivers/video/fbdev/matrox/matroxfb_g450.c mt->HDisplay = hvis & ~7; mt 326 drivers/video/fbdev/matrox/matroxfb_g450.c mt->HSyncStart = mt->HDisplay + 8; mt 327 drivers/video/fbdev/matrox/matroxfb_g450.c mt->HSyncEnd = (hlen & ~7) - 8; mt 328 drivers/video/fbdev/matrox/matroxfb_g450.c mt->HTotal = hlen; mt 336 drivers/video/fbdev/matrox/matroxfb_g450.c vtotal = mt->VTotal; mt 337 drivers/video/fbdev/matrox/matroxfb_g450.c vsyncend = mt->VSyncEnd; mt 338 drivers/video/fbdev/matrox/matroxfb_g450.c vdisplay = mt->VDisplay; mt 354 drivers/video/fbdev/matrox/matroxfb_g450.c mt->VDisplay = vdisplay; mt 355 drivers/video/fbdev/matrox/matroxfb_g450.c mt->VSyncStart = outd->v_total - 2; mt 356 drivers/video/fbdev/matrox/matroxfb_g450.c mt->VSyncEnd = outd->v_total; mt 357 drivers/video/fbdev/matrox/matroxfb_g450.c mt->VTotal = outd->v_total; mt 521 drivers/video/fbdev/matrox/matroxfb_g450.c static int matroxfb_g450_compute(void* md, struct my_timming* mt) { mt 526 drivers/video/fbdev/matrox/matroxfb_g450.c if (mt->crtc == MATROXFB_SRC_CRTC2 && mt 548 drivers/video/fbdev/matrox/matroxfb_g450.c computeRegs(minfo, &minfo->hw.maven, mt, outd); mt 549 drivers/video/fbdev/matrox/matroxfb_g450.c } else if (mt->mnp < 0) { mt 552 drivers/video/fbdev/matrox/matroxfb_g450.c mt->mnp = matroxfb_g450_setclk(minfo, mt->pixclock, (mt->crtc == MATROXFB_SRC_CRTC1) ? M_PIXEL_PLL_C : M_VIDEO_PLL); mt 553 drivers/video/fbdev/matrox/matroxfb_g450.c mt->pixclock = g450_mnp2f(minfo, mt->mnp); mt 555 drivers/video/fbdev/matrox/matroxfb_g450.c dprintk(KERN_DEBUG "Pixclock = %u\n", mt->pixclock); mt 578 drivers/video/fbdev/matrox/matroxfb_g450.c static int g450_dvi_compute(void* md, struct my_timming* mt) { mt 581 drivers/video/fbdev/matrox/matroxfb_g450.c if (mt->mnp < 0) { mt 582 drivers/video/fbdev/matrox/matroxfb_g450.c mt->mnp = matroxfb_g450_setclk(minfo, mt->pixclock, (mt->crtc == MATROXFB_SRC_CRTC1) ? M_PIXEL_PLL_C : M_VIDEO_PLL); mt 583 drivers/video/fbdev/matrox/matroxfb_g450.c mt->pixclock = g450_mnp2f(minfo, mt->mnp); mt 756 drivers/video/fbdev/matrox/matroxfb_maven.c struct my_timming* mt, mt 772 drivers/video/fbdev/matrox/matroxfb_maven.c if (maven_find_exact_clocks(mt->HTotal, mt->VTotal, m) == 0) mt 775 drivers/video/fbdev/matrox/matroxfb_maven.c lmargin = mt->HTotal - mt->HSyncEnd; mt 776 drivers/video/fbdev/matrox/matroxfb_maven.c slen = mt->HSyncEnd - mt->HSyncStart; mt 777 drivers/video/fbdev/matrox/matroxfb_maven.c hcrt = mt->HTotal - slen - mt->delay; mt 778 drivers/video/fbdev/matrox/matroxfb_maven.c umargin = mt->VTotal - mt->VSyncEnd; mt 779 drivers/video/fbdev/matrox/matroxfb_maven.c vslen = mt->VSyncEnd - mt->VSyncStart; mt 781 drivers/video/fbdev/matrox/matroxfb_maven.c if (m->hcorr < mt->HTotal) mt 783 drivers/video/fbdev/matrox/matroxfb_maven.c if (hcrt > mt->HTotal) mt 784 drivers/video/fbdev/matrox/matroxfb_maven.c hcrt -= mt->HTotal; mt 785 drivers/video/fbdev/matrox/matroxfb_maven.c if (hcrt + 2 > mt->HTotal) mt 804 drivers/video/fbdev/matrox/matroxfb_maven.c m->regs[0xA2] = mt->VTotal - mt->VSyncStart - 1; /* stop vblanking */ mt 805 drivers/video/fbdev/matrox/matroxfb_maven.c m->regs[0xA3] = (mt->VTotal - mt->VSyncStart - 1) >> 8; mt 818 drivers/video/fbdev/matrox/matroxfb_maven.c m->regs[0xA8] = mt->VTotal - 1; mt 819 drivers/video/fbdev/matrox/matroxfb_maven.c m->regs[0xA9] = (mt->VTotal - 1) >> 8; mt 824 drivers/video/fbdev/matrox/matroxfb_maven.c m->regs[0xAC] = mt->VTotal - 2; mt 825 drivers/video/fbdev/matrox/matroxfb_maven.c m->regs[0xAD] = (mt->VTotal - 2) >> 8; mt 832 drivers/video/fbdev/matrox/matroxfb_maven.c unsigned int ibmin = 4 + lmargin + mt->HDisplay; mt 838 drivers/video/fbdev/matrox/matroxfb_maven.c if (mt->HTotal) mt 839 drivers/video/fbdev/matrox/matroxfb_maven.c hdec = 94208 / (mt->HTotal); mt 847 drivers/video/fbdev/matrox/matroxfb_maven.c hlen = 98304 - 128 - ((lmargin + mt->HDisplay - 8) * hdec); mt 888 drivers/video/fbdev/matrox/matroxfb_maven.c if (mt->VTotal) { mt 895 drivers/video/fbdev/matrox/matroxfb_maven.c b = (mt->VTotal - 1) * (m->htotal + 2) + m->hcorr + 2; mt 901 drivers/video/fbdev/matrox/matroxfb_maven.c vdec = m->vlines * 32768 / mt->VTotal; mt 907 drivers/video/fbdev/matrox/matroxfb_maven.c vlen = (vslen + umargin + mt->VDisplay) * vdec; mt 922 drivers/video/fbdev/matrox/matroxfb_maven.c DAC1064_calcclock(mt->pixclock, 450000, &a, &bv, &c); mt 931 drivers/video/fbdev/matrox/matroxfb_maven.c m->regs[0x96] = mt->HTotal; mt 932 drivers/video/fbdev/matrox/matroxfb_maven.c m->regs[0x97] = mt->HTotal >> 8; mt 937 drivers/video/fbdev/matrox/matroxfb_maven.c tmpi = mt->HSyncEnd - mt->HSyncStart; mt 941 drivers/video/fbdev/matrox/matroxfb_maven.c tmpi = mt->HTotal - mt->HSyncStart; mt 945 drivers/video/fbdev/matrox/matroxfb_maven.c tmpi += mt->HDisplay; mt 949 drivers/video/fbdev/matrox/matroxfb_maven.c tmpi = mt->HTotal + 1; mt 953 drivers/video/fbdev/matrox/matroxfb_maven.c tmpi = mt->VSyncEnd - mt->VSyncStart - 1; mt 957 drivers/video/fbdev/matrox/matroxfb_maven.c tmpi = mt->VTotal - mt->VSyncStart; mt 961 drivers/video/fbdev/matrox/matroxfb_maven.c tmpi = mt->VTotal - 1; mt 968 drivers/video/fbdev/matrox/matroxfb_maven.c tmpi = mt->HTotal - mt->delay; mt 972 drivers/video/fbdev/matrox/matroxfb_maven.c tmpi = mt->VTotal - 2; mt 1148 drivers/video/fbdev/matrox/matroxfb_maven.c static int maven_out_compute(void* md, struct my_timming* mt) { mt 1151 drivers/video/fbdev/matrox/matroxfb_maven.c return maven_compute_timming(md, mt, &minfo->hw.maven); mt 107 drivers/video/fbdev/matrox/matroxfb_misc.c void matroxfb_var2my(struct fb_var_screeninfo* var, struct my_timming* mt) { mt 113 drivers/video/fbdev/matrox/matroxfb_misc.c mt->pixclock = 1000000000 / pixclock; mt 114 drivers/video/fbdev/matrox/matroxfb_misc.c if (mt->pixclock < 1) mt->pixclock = 1; mt 115 drivers/video/fbdev/matrox/matroxfb_misc.c mt->mnp = -1; mt 116 drivers/video/fbdev/matrox/matroxfb_misc.c mt->dblscan = var->vmode & FB_VMODE_DOUBLE; mt 117 drivers/video/fbdev/matrox/matroxfb_misc.c mt->interlaced = var->vmode & FB_VMODE_INTERLACED; mt 118 drivers/video/fbdev/matrox/matroxfb_misc.c mt->HDisplay = var->xres; mt 119 drivers/video/fbdev/matrox/matroxfb_misc.c mt->HSyncStart = mt->HDisplay + var->right_margin; mt 120 drivers/video/fbdev/matrox/matroxfb_misc.c mt->HSyncEnd = mt->HSyncStart + var->hsync_len; mt 121 drivers/video/fbdev/matrox/matroxfb_misc.c mt->HTotal = mt->HSyncEnd + var->left_margin; mt 122 drivers/video/fbdev/matrox/matroxfb_misc.c mt->VDisplay = var->yres; mt 123 drivers/video/fbdev/matrox/matroxfb_misc.c mt->VSyncStart = mt->VDisplay + var->lower_margin; mt 124 drivers/video/fbdev/matrox/matroxfb_misc.c mt->VSyncEnd = mt->VSyncStart + var->vsync_len; mt 125 drivers/video/fbdev/matrox/matroxfb_misc.c mt->VTotal = mt->VSyncEnd + var->upper_margin; mt 126 drivers/video/fbdev/matrox/matroxfb_misc.c mt->sync = var->sync; mt 3667 fs/f2fs/f2fs.h static inline void set_opt_mode(struct f2fs_sb_info *sbi, unsigned int mt) mt 3672 fs/f2fs/f2fs.h switch (mt) { mt 170 include/linux/input.h struct input_mt *mt; mt 70 include/linux/input/mt.h static inline bool input_mt_is_used(const struct input_mt *mt, mt 73 include/linux/input/mt.h return slot->frame == mt->frame; mt 80 include/linux/input/mt.h static inline int input_mt_new_trkid(struct input_mt *mt) mt 82 include/linux/input/mt.h return mt->trkid++ & TRKID_MAX; mt 80 include/linux/mmzone.h static inline bool is_migrate_movable(int mt) mt 82 include/linux/mmzone.h return is_migrate_cma(mt) || mt == MIGRATE_MOVABLE; mt 166 include/net/nfc/nci.h #define nci_mt_set(hdr, mt) ((hdr)[0] |= (__u8)(((mt)&0x07)<<5)) mt 25 include/trace/events/page_ref.h __field(int, mt) mt 35 include/trace/events/page_ref.h __entry->mt = get_pageblock_migratetype(page); mt 43 include/trace/events/page_ref.h __entry->mapcount, __entry->mapping, __entry->mt, mt 73 include/trace/events/page_ref.h __field(int, mt) mt 84 include/trace/events/page_ref.h __entry->mt = get_pageblock_migratetype(page); mt 93 include/trace/events/page_ref.h __entry->mapcount, __entry->mapping, __entry->mt, mt 1825 mm/memory-failure.c int mt; mt 1849 mm/memory-failure.c mt = get_pageblock_migratetype(page); mt 1855 mm/memory-failure.c set_pageblock_migratetype(page, mt); mt 1313 mm/page_alloc.c int mt = get_pcppage_migratetype(page); mt 1315 mm/page_alloc.c VM_BUG_ON_PAGE(is_migrate_isolate(mt), page); mt 1318 mm/page_alloc.c mt = get_pageblock_migratetype(page); mt 1320 mm/page_alloc.c __free_one_page(page, page_to_pfn(page), zone, 0, mt); mt 1321 mm/page_alloc.c trace_mm_page_pcpu_drain(page, 0, mt); mt 2514 mm/page_alloc.c int mt; mt 2532 mm/page_alloc.c mt = get_pageblock_migratetype(page); mt 2533 mm/page_alloc.c if (!is_migrate_highatomic(mt) && !is_migrate_isolate(mt) mt 2534 mm/page_alloc.c && !is_migrate_cma(mt)) { mt 3141 mm/page_alloc.c int mt; mt 3146 mm/page_alloc.c mt = get_pageblock_migratetype(page); mt 3148 mm/page_alloc.c if (!is_migrate_isolate(mt)) { mt 3159 mm/page_alloc.c __mod_zone_freepage_state(zone, -(1UL << order), mt); mt 3173 mm/page_alloc.c int mt = get_pageblock_migratetype(page); mt 3174 mm/page_alloc.c if (!is_migrate_isolate(mt) && !is_migrate_cma(mt) mt 3175 mm/page_alloc.c && !is_migrate_highatomic(mt)) mt 3455 mm/page_alloc.c int mt; mt 3460 mm/page_alloc.c for (mt = 0; mt < MIGRATE_PCPTYPES; mt++) { mt 3461 mm/page_alloc.c if (!free_area_empty(area, mt)) mt 74 mm/page_isolation.c int mt = get_pageblock_migratetype(page); mt 81 mm/page_isolation.c __mod_zone_freepage_state(zone, -nr_pages, mt); mt 410 mm/page_owner.c int mt; mt 419 mm/page_owner.c mt = gfpflags_to_migratetype(gfp_mask); mt 432 mm/page_owner.c page_owner->order, migratetype_names[mt], gfp_mask, &gfp_mask); mt 655 net/ipv4/ipconfig.c u8 mt = ((ic_servaddr == NONE) mt 660 net/ipv4/ipconfig.c pr_debug("DHCP: Sending message type %d (%s)\n", mt, d->dev->name); mt 667 net/ipv4/ipconfig.c *e++ = mt; mt 669 net/ipv4/ipconfig.c if (mt == DHCPREQUEST) { mt 1051 net/ipv4/ipconfig.c int mt = 0; mt 1064 net/ipv4/ipconfig.c mt = opt[2]; mt 1073 net/ipv4/ipconfig.c pr_debug("DHCP: Got message type %d (%s)\n", mt, d->dev->name); mt 1075 net/ipv4/ipconfig.c switch (mt) { mt 1111 net/ipv4/ipconfig.c ic_dhcp_msgtype = mt; mt 1407 security/integrity/ima/ima_policy.c seq_printf(m, pt(Opt_mask), mt(mask_exec) + offset); mt 1409 security/integrity/ima/ima_policy.c seq_printf(m, pt(Opt_mask), mt(mask_write) + offset); mt 1411 security/integrity/ima/ima_policy.c seq_printf(m, pt(Opt_mask), mt(mask_read) + offset); mt 1413 security/integrity/ima/ima_policy.c seq_printf(m, pt(Opt_mask), mt(mask_append) + offset);