/drivers/video/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 | 741 struct my_timming* mt, in maven_compute_timming() argument 757 if (maven_find_exact_clocks(mt->HTotal, mt->VTotal, m) == 0) in maven_compute_timming() 760 lmargin = mt->HTotal - mt->HSyncEnd; in maven_compute_timming() 761 slen = mt->HSyncEnd - mt->HSyncStart; in maven_compute_timming() 762 hcrt = mt->HTotal - slen - mt->delay; in maven_compute_timming() 763 umargin = mt->VTotal - mt->VSyncEnd; in maven_compute_timming() 764 vslen = mt->VSyncEnd - mt->VSyncStart; in maven_compute_timming() 766 if (m->hcorr < mt->HTotal) in maven_compute_timming() 768 if (hcrt > mt->HTotal) in maven_compute_timming() 769 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 …]
|
D | matroxfb_base.c | 789 { struct my_timming mt; in matroxfb_set_par() local 793 matroxfb_var2my(var, &mt); in matroxfb_set_par() 794 mt.crtc = MATROXFB_SRC_CRTC1; in matroxfb_set_par() 797 case 0: mt.delay = 31 + 0; break; in matroxfb_set_par() 798 case 16: mt.delay = 21 + 8; break; in matroxfb_set_par() 799 case 24: mt.delay = 17 + 8; break; in matroxfb_set_par() 800 case 32: mt.delay = 16 + 8; break; in matroxfb_set_par() 801 default: mt.delay = 31 + 8; break; in matroxfb_set_par() 810 minfo->outputs[out].output->compute(minfo->outputs[out].data, &mt); in matroxfb_set_par() 814 minfo->crtc1.pixclock = mt.pixclock; in matroxfb_set_par() [all …]
|
/drivers/input/ |
D | input-mt.c | 34 if (dev->mt) in input_mt_init_slots() 37 dev->mt = kcalloc(num_slots, sizeof(struct input_mt_slot), GFP_KERNEL); in input_mt_init_slots() 38 if (!dev->mt) in input_mt_init_slots() 48 input_mt_set_value(&dev->mt[i], ABS_MT_TRACKING_ID, -1); in input_mt_init_slots() 63 kfree(dev->mt); in input_mt_destroy_slots() 64 dev->mt = NULL; in input_mt_destroy_slots() 86 struct input_mt_slot *mt; in input_mt_report_slot_state() local 89 if (!dev->mt || !active) { in input_mt_report_slot_state() 94 mt = &dev->mt[dev->slot]; in input_mt_report_slot_state() 95 id = input_mt_get_value(mt, ABS_MT_TRACKING_ID); in input_mt_report_slot_state() [all …]
|
D | Makefile | 8 input-core-y := input.o input-compat.o input-mt.o ff-core.o
|
/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() 746 int i, mt, cr; in up1tr6() local 790 mt = skb->data[3]; in up1tr6() 795 (pr == (DL_DATA | INDICATION)) ? " " : "(broadcast) ", mt); in up1tr6() 800 if (mt == MT_N1_SETUP) { in up1tr6() 814 } else if ((mt == MT_N1_REL) || (mt == MT_N1_REL_ACK) || in up1tr6() 815 (mt == MT_N1_CANC_ACK) || (mt == MT_N1_CANC_REJ) || in up1tr6() 816 (mt == MT_N1_REG_ACK) || (mt == MT_N1_REG_REJ) || in up1tr6() 817 (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 …]
|
D | l3dss1.c | 499 l3dss1_message(struct l3_process *pc, u_char mt) in l3dss1_message() argument 507 MsgHead(p, pc->callref, mt); in l3dss1_message() 512 l3dss1_message_cause(struct l3_process *pc, u_char mt, u_char cause) in l3dss1_message_cause() argument 519 MsgHead(p, pc->callref, mt); in l3dss1_message_cause() 716 u_char mt; in check_infoelements() local 729 mt = *p++; in check_infoelements() 781 mt, err_compr, err_ureg, err_len, err_seq); in check_infoelements() 796 l3dss1_check_messagetype_validity(struct l3_process *pc, int mt, void *arg) in l3dss1_check_messagetype_validity() argument 798 switch (mt) { in l3dss1_check_messagetype_validity() 823 l3_debug(pc->st, "l3dss1_check_messagetype_validity mt(%x) OK", mt); in l3dss1_check_messagetype_validity() [all …]
|
D | hfcscard.c | 101 hfcs_card_msg(struct IsdnCardState *cs, int mt, void *arg) in hfcs_card_msg() argument 107 debugl1(cs, "HFCS: card_msg %x", mt); in hfcs_card_msg() 108 switch (mt) { in hfcs_card_msg()
|
D | enternow_pci.c | 173 enpci_card_msg(struct IsdnCardState *cs, int mt, void *arg) in enpci_card_msg() argument 179 debugl1(cs, "enter:now PCI: card_msg: 0x%04X", mt); in enpci_card_msg() 181 switch (mt) { in enpci_card_msg()
|
D | nj_u.c | 102 NETjet_U_card_msg(struct IsdnCardState *cs, int mt, void *arg) in NETjet_U_card_msg() argument 106 switch (mt) { in NETjet_U_card_msg()
|
D | sportster.c | 158 Sportster_card_msg(struct IsdnCardState *cs, int mt, void *arg) in Sportster_card_msg() argument 162 switch (mt) { in Sportster_card_msg()
|
D | avm_a1p.c | 175 AVM_card_msg(struct IsdnCardState *cs, int mt, void *arg) in AVM_card_msg() argument 179 switch (mt) { in AVM_card_msg()
|
D | mic.c | 168 mic_card_msg(struct IsdnCardState *cs, int mt, void *arg) in mic_card_msg() argument 172 switch (mt) { in mic_card_msg()
|
D | nj_s.c | 122 NETjet_S_card_msg(struct IsdnCardState *cs, int mt, void *arg) in NETjet_S_card_msg() argument 126 switch (mt) { in NETjet_S_card_msg()
|
D | telespci.c | 265 TelesPCI_card_msg(struct IsdnCardState *cs, int mt, void *arg) in TelesPCI_card_msg() argument 269 switch (mt) { in TelesPCI_card_msg()
|
/drivers/input/mouse/ |
D | elantech.c | 442 etd->mt[0].x = ((packet[1] & 0x0f) << 8) | packet[2]; in elantech_report_absolute_v3() 447 etd->mt[0].y = etd->y_max - in elantech_report_absolute_v3() 456 x1 = etd->mt[0].x; in elantech_report_absolute_v3() 457 y1 = etd->mt[0].y; in elantech_report_absolute_v3() 523 etd->mt[id].x = ((packet[1] & 0x0f) << 8) | packet[2]; in process_packet_head_v4() 524 etd->mt[id].y = etd->y_max - (((packet[4] & 0x0f) << 8) | packet[5]); in process_packet_head_v4() 531 input_report_abs(dev, ABS_MT_POSITION_X, etd->mt[id].x); in process_packet_head_v4() 532 input_report_abs(dev, ABS_MT_POSITION_Y, etd->mt[id].y); in process_packet_head_v4() 565 etd->mt[id].x += delta_x1 * weight; in process_packet_motion_v4() 566 etd->mt[id].y -= delta_y1 * weight; in process_packet_motion_v4() [all …]
|
D | elantech.h | 137 struct finger_pos mt[ETP_MAX_FINGERS]; member
|
/drivers/video/aty/ |
D | radeon_monitor.c | 73 int i, mt = MT_NONE; in radeon_parse_montype_prop() local 84 mt = MT_DFP; in radeon_parse_montype_prop() 86 mt = MT_CRT; in radeon_parse_montype_prop() 109 return mt; in radeon_parse_montype_prop() 113 return mt; in radeon_parse_montype_prop() 115 return mt; in radeon_parse_montype_prop() 144 int mt = radeon_parse_montype_prop(dp, out_EDID, 0); in radeon_probe_OF_head() local 148 if (mt == MT_DFP && rinfo->is_mobility) in radeon_probe_OF_head() 149 mt = MT_LCD; in radeon_probe_OF_head() 150 return mt; in radeon_probe_OF_head()
|
/drivers/isdn/mISDN/ |
D | tei.c | 770 tei_ph_data_ind(struct teimgr *tm, u_int mt, u_char *dp, int len) in tei_ph_data_ind() argument 775 tm->tei_m.printdebug(&tm->tei_m, "tei handler mt %x", mt); in tei_ph_data_ind() 776 if (mt == ID_ASSIGNED) in tei_ph_data_ind() 778 else if (mt == ID_DENIED) in tei_ph_data_ind() 780 else if (mt == ID_CHK_REQ) in tei_ph_data_ind() 782 else if (mt == ID_REMOVE) in tei_ph_data_ind() 784 else if (mt == ID_VERIFY) in tei_ph_data_ind() 786 else if (mt == ID_CHK_RES) in tei_ph_data_ind() 878 u_char mt; in ph_data_ind() local 899 mt = skb->data[6]; in ph_data_ind() [all …]
|
/drivers/net/ethernet/smsc/ |
D | smc91x.h | 1089 const unsigned char *mt = (x); \ 1090 SMC_outw(mt[0] | (mt[1] << 8), ioaddr, MCAST_REG1(lp)); \ 1091 SMC_outw(mt[2] | (mt[3] << 8), ioaddr, MCAST_REG2(lp)); \ 1092 SMC_outw(mt[4] | (mt[5] << 8), ioaddr, MCAST_REG3(lp)); \ 1093 SMC_outw(mt[6] | (mt[7] << 8), ioaddr, MCAST_REG4(lp)); \
|