Lines Matching refs:reg_w
49 static void reg_w(struct sd *sd, u16 index, u16 value);
92 /* We don't use reg_w here, as that would cause all writes when
157 reg_w(sd, 0x39, 0x0010); /* JPEG clock enable */
162 reg_w(sd, 0x40 + i, a);
163 reg_w(sd, 0x60 + i, b);
165 reg_w(sd, 0x39, 0x0012); /* JPEG encoder enable */
342 reg_w(sd, 0x00, 0xff00); /* power-down */
343 reg_w(sd, 0x00, 0xbf17); /* reset everything */
344 reg_w(sd, 0x00, 0xbf10); /* normal operation */
345 reg_w(sd, 0x01, 0x0010); /* serial bus, SDS high */
346 reg_w(sd, 0x01, 0x0000); /* serial bus, SDS low */
347 reg_w(sd, 0x01, 0x0010); /* ..high 'beep-beep' */
348 reg_w(sd, 0x01, 0x0030); /* Set sda scl to FSB mode */
363 reg_w(sd, 0x00, 0xff00); /* power off */
364 reg_w(sd, 0x00, 0xbf10); /* power on */
366 reg_w(sd, 0x03, 0x405d); /* DRAM timings */
367 reg_w(sd, 0x04, 0x0030); /* SDRAM timings */
369 reg_w(sd, 0x20, y0 & 0xffff); /* Y buf.0, low */
370 reg_w(sd, 0x21, y0 >> 16); /* Y buf.0, high */
371 reg_w(sd, 0x24, u0 & 0xffff); /* U buf.0, low */
372 reg_w(sd, 0x25, u0 >> 16); /* U buf.0, high */
373 reg_w(sd, 0x28, v0 & 0xffff); /* V buf.0, low */
374 reg_w(sd, 0x29, v0 >> 16); /* V buf.0, high */
376 reg_w(sd, 0x22, y1 & 0xffff); /* Y buf.1, low */
377 reg_w(sd, 0x23, y1 >> 16); /* Y buf.1, high */
378 reg_w(sd, 0x26, u1 & 0xffff); /* U buf.1, low */
379 reg_w(sd, 0x27, u1 >> 16); /* U buf.1, high */
380 reg_w(sd, 0x2a, v1 & 0xffff); /* V buf.1, low */
381 reg_w(sd, 0x2b, v1 >> 16); /* V buf.1, high */
383 reg_w(sd, 0x32, y1 & 0xffff); /* JPEG buf 0 low */
384 reg_w(sd, 0x33, y1 >> 16); /* JPEG buf 0 high */
386 reg_w(sd, 0x34, y1 & 0xffff); /* JPEG buf 1 low */
387 reg_w(sd, 0x35, y1 >> 16); /* JPEG bug 1 high */
389 reg_w(sd, 0x36, 0x0000);/* JPEG restart interval */
390 reg_w(sd, 0x37, 0x0804);/*JPEG VLE FIFO threshold*/
391 reg_w(sd, 0x38, 0x0000);/* disable hw up-scaling */
392 reg_w(sd, 0x3f, 0x0000); /* JPEG/MCTL test data */
444 reg_w(sd, 0x10, start_cropx + x);
445 reg_w(sd, 0x11, start_cropy + y);
446 reg_w(sd, 0x12, start_cropx + x + cw);
447 reg_w(sd, 0x13, start_cropy + y + ch);
456 reg_w(sd, 0x14, sd->gspca_dev.pixfmt.width);
457 reg_w(sd, 0x15, sd->gspca_dev.pixfmt.height);
460 reg_w(sd, 0x30, sd->gspca_dev.pixfmt.width);
461 reg_w(sd, 0x31, sd->gspca_dev.pixfmt.height);
466 reg_w(sd, 0x2c, sd->gspca_dev.pixfmt.width / 2);
467 reg_w(sd, 0x2d, sd->gspca_dev.pixfmt.width / 4);
469 reg_w(sd, 0x2c, sd->gspca_dev.pixfmt.width);
471 reg_w(sd, 0x00, 0xbf17); /* reset everything */
472 reg_w(sd, 0x00, 0xbf10); /* normal operation */
476 reg_w(sd, 0x3d, val & 0xffff); /* low bits */
477 reg_w(sd, 0x3e, val >> 16); /* high bits */
518 reg_w(sd, 0x16, val);
526 reg_w(sd, 0x39, 0x0000); /* disable JPEG encoder */
527 reg_w(sd, 0x16, 0x0000); /* stop video capture */