Lines Matching refs:temp

1326 	unsigned int		temp;
1400 temp = 0;
1401 if (!(c_temp & 0x40)) temp |= METEOR_STATUS_HCLK;
1402 if (!(c_temp & 0x10)) temp |= METEOR_STATUS_FIDT;
1403 *(u_short *)arg = temp;
1407 temp = *(unsigned long*)arg & BT848_IFORM_FORMAT;
1411 OUTB(bktr, BKTR_IFORM, (temp_iform | temp | format_params[temp].iform_xtsel));
1412 switch( temp ) {
1422 OUTB(bktr, BKTR_ADELAY, format_params[temp].adelay);
1423 OUTB(bktr, BKTR_BDELAY, format_params[temp].bdelay);
1424 bktr->format_params = temp;
1434 OUTB(bktr, BKTR_ADELAY, format_params[temp].adelay);
1435 OUTB(bktr, BKTR_BDELAY, format_params[temp].bdelay);
1436 bktr->format_params = temp;
1552 temp = (int)*(u_char *)arg;
1554 OUTB(bktr, BKTR_SAT_U_LO, (temp << 1) & 0xff);
1555 OUTB(bktr, BKTR_SAT_V_LO, (temp << 1) & 0xff);
1563 if ( temp & BIT_SEVEN_HIGH ) {
1574 temp = (INB(bktr, BKTR_SAT_V_LO) >> 1) & 0xff;
1576 temp |= BIT_SEVEN_HIGH;
1577 *(u_char *)arg = (u_char)temp;
1581 temp = (int)*(u_char *)arg & 0xff;
1582 temp <<= 1;
1583 OUTB(bktr, BKTR_CONTRAST_LO, temp & 0xff);
1587 (((temp & 0x100) >> 6 ) & BT848_E_CONTROL_CON_MSB));
1589 (((temp & 0x100) >> 6 ) & BT848_O_CONTROL_CON_MSB));
1593 temp = (int)INB(bktr, BKTR_CONTRAST_LO) & 0xff;
1594 temp |= ((int)INB(bktr, BKTR_O_CONTROL) & 0x04) << 6;
1595 *(u_char *)arg = (u_char)((temp >> 1) & 0xff);
1624 temp = bktr->flags;
1631 if (temp & METEOR_CAP_MASK)
1673 if (temp & METEOR_CAP_MASK)
1778 if ((temp=(geo->rows * geo->columns * geo->frames * 2))) {
1779 if (geo->oformat & METEOR_GEO_RGB24) temp = temp * 2;
1782 if (geo->frames > 1) temp += PAGE_SIZE;
1784 temp = btoc(temp);
1785 if ((int) temp > bktr->alloc_pages
1795 temp * PAGE_SIZE);
1802 buf = get_bktr_mem(unit, temp*PAGE_SIZE);
1811 bktr->alloc_pages = temp;
1814 bktr_name(bktr), (int)(temp*PAGE_SIZE));
1941 int temp, temp1;
1972 temp = tv_channel( bktr, (int)*(unsigned long *)arg );
1973 if ( temp < 0 ) {
1977 *(unsigned long *)arg = temp;
1996 temp = *(unsigned long *)arg;
1997 if ( (temp < CHNLSET_MIN) || (temp > CHNLSET_MAX) )
1999 bktr->tuner.chnlset = temp;
2007 temp = get_tuner_status( bktr );
2008 *(unsigned long *)arg = temp & 0xff;
2013 temp = tv_freq( bktr, (int)*(unsigned long *)arg, TV_FREQUENCY);
2015 if ( temp < 0 ) {
2019 *(unsigned long *)arg = temp;
2067 temp = INB(bktr, BKTR_E_CONTROL);
2070 temp |= (BT848_E_CONTROL_SAT_U_MSB |
2076 temp &= ~(BT848_E_CONTROL_SAT_U_MSB |
2084 OUTB(bktr, BKTR_E_CONTROL, temp);
2099 temp = INB(bktr, BKTR_E_CONTROL);
2102 temp |= BT848_E_CONTROL_SAT_V_MSB;
2106 temp &= ~BT848_E_CONTROL_SAT_V_MSB;
2111 OUTB(bktr, BKTR_E_CONTROL, temp);
2126 temp = INB(bktr, BKTR_E_CONTROL);
2129 temp |= BT848_E_CONTROL_SAT_U_MSB;
2133 temp &= ~BT848_E_CONTROL_SAT_U_MSB;
2138 OUTB(bktr, BKTR_E_CONTROL, temp);
2168 temp = INB(bktr, BKTR_E_CONTROL);
2171 temp |= BT848_E_CONTROL_CON_MSB;
2175 temp &= ~BT848_E_CONTROL_CON_MSB;
2180 OUTB(bktr, BKTR_E_CONTROL, temp);
2204 temp = bktr->audio_mux_select;
2206 temp |= AUDIO_MUTE;
2207 *(int*)arg = temp;
2277 temp=(int)*(unsigned long *)arg;
2280 printf("%s: arg=%d temp=%d\n", bktr_name(bktr),
2281 (int)*(unsigned long *)arg, temp);
2287 if(temp<8750 || temp>10800) {
2293 temp = tv_freq( bktr, temp, FM_RADIO_FREQUENCY );
2296 if(temp)
2297 printf("%s: tv_freq returned: %d\n", bktr_name(bktr), temp);
2299 if ( temp < 0 )
2301 *(unsigned long *)arg = temp;
2361 unsigned int temp;
2499 temp = status_sum;
2502 *(u_int*)arg = temp;
3448 unsigned int temp;
3462 temp = ((quad_t ) fp->htotal* (quad_t) bktr->capture_area_x_size * 4096
3465 temp = ((quad_t ) fp->htotal* (quad_t) fp->scaled_hactive * 4096
3468 /* printf("%s: HSCALE value is %d\n", bktr_name(bktr), temp); */
3469 OUTB(bktr, BKTR_E_HSCALE_LO, temp & 0xff);
3470 OUTB(bktr, BKTR_O_HSCALE_LO, temp & 0xff);
3471 OUTB(bktr, BKTR_E_HSCALE_HI, (temp >> 8) & 0xff);
3472 OUTB(bktr, BKTR_O_HSCALE_HI, (temp >> 8) & 0xff);
3475 temp = bktr->cols;
3476 /* printf("%s: HACTIVE value is %d\n", bktr_name(bktr), temp); */
3477 OUTB(bktr, BKTR_E_HACTIVE_LO, temp & 0xff);
3478 OUTB(bktr, BKTR_O_HACTIVE_LO, temp & 0xff);
3481 OUTB(bktr, BKTR_E_CROP, INB(bktr, BKTR_E_CROP) | ((temp >> 8) & 0x3));
3482 OUTB(bktr, BKTR_O_CROP, INB(bktr, BKTR_O_CROP) | ((temp >> 8) & 0x3));
3486 temp = ( (fp->hdelay* fp->scaled_hactive + bktr->capture_area_x_offset* fp->scaled_htotal)
3489 temp = (fp->hdelay * bktr->cols) / fp->hactive;
3491 temp = temp & 0x3fe;
3493 /* printf("%s: HDELAY value is %d\n", bktr_name(bktr), temp); */
3494 OUTB(bktr, BKTR_E_DELAY_LO, temp & 0xff);
3495 OUTB(bktr, BKTR_O_DELAY_LO, temp & 0xff);
3498 OUTB(bktr, BKTR_E_CROP, INB(bktr, BKTR_E_CROP) | ((temp >> 6) & 0xc));
3499 OUTB(bktr, BKTR_O_CROP, INB(bktr, BKTR_O_CROP) | ((temp >> 6) & 0xc));
3535 temp = bktr->capture_area_y_size;
3537 temp = fp->vactive;
3538 /* printf("%s: VACTIVE is %d\n", bktr_name(bktr), temp); */
3540 OUTB(bktr, BKTR_E_CROP, INB(bktr, BKTR_E_CROP) | ((temp >> 4) & 0x30));
3541 OUTB(bktr, BKTR_E_VACTIVE_LO, temp & 0xff);
3543 OUTB(bktr, BKTR_O_CROP, INB(bktr, BKTR_O_CROP) | ((temp >> 4) & 0x30));
3544 OUTB(bktr, BKTR_O_VACTIVE_LO, temp & 0xff);
3548 temp = fp->vdelay + (bktr->capture_area_y_offset);
3550 temp = fp->vdelay;
3551 /* printf("%s: VDELAY is %d\n", bktr_name(bktr), temp); */
3553 OUTB(bktr, BKTR_E_CROP, INB(bktr, BKTR_E_CROP) | ((temp >> 2) & 0xC0));
3554 OUTB(bktr, BKTR_E_VDELAY_LO, temp & 0xff);
3556 OUTB(bktr, BKTR_O_CROP, INB(bktr, BKTR_O_CROP) | ((temp >> 2) & 0xC0));
3557 OUTB(bktr, BKTR_O_VDELAY_LO, temp & 0xff);