/drivers/media/pci/zoran/ |
D | zoran_device.c | 56 static void zr36057_init_vfe(struct zoran *zr) in zr36057_init_vfe() argument 84 void GPIO(struct zoran *zr, int bit, unsigned int value) in GPIO() argument 106 int post_office_wait(struct zoran *zr) in post_office_wait() argument 114 if ((por & ZR36057_POR_PO_TIME) && !zr->card.gws_not_connected) { in post_office_wait() 116 pci_info(zr->pci_dev, "pop timeout %08x\n", por); in post_office_wait() 123 int post_office_write(struct zoran *zr, unsigned int guest, in post_office_write() argument 133 return post_office_wait(zr); in post_office_write() 136 int post_office_read(struct zoran *zr, unsigned int guest, unsigned int reg) in post_office_read() argument 142 if (post_office_wait(zr) < 0) in post_office_read() 152 void jpeg_codec_sleep(struct zoran *zr, int sleep) in jpeg_codec_sleep() argument [all …]
|
D | zoran_card.c | 100 struct zoran *zr = (struct zoran *)codec->master_data->data; in zr36060_read() local 103 if (post_office_wait(zr) || post_office_write(zr, 0, 1, reg >> 8) || in zr36060_read() 104 post_office_write(zr, 0, 2, reg & 0xff)) in zr36060_read() 107 data = post_office_read(zr, 0, 3) & 0xff; in zr36060_read() 113 struct zoran *zr = (struct zoran *)codec->master_data->data; in zr36060_write() local 115 if (post_office_wait(zr) || post_office_write(zr, 0, 1, reg >> 8) || in zr36060_write() 116 post_office_write(zr, 0, 2, reg & 0xff)) in zr36060_write() 119 post_office_write(zr, 0, 3, val & 0xff); in zr36060_write() 125 struct zoran *zr = (struct zoran *)codec->master_data->data; in zr36050_read() local 128 if (post_office_wait(zr) || post_office_write(zr, 1, 0, reg >> 2)) // reg. HIGHBYTES in zr36050_read() [all …]
|
D | zoran_driver.c | 165 static int zoran_v4l_set_format(struct zoran *zr, int width, int height, in zoran_v4l_set_format() argument 174 pci_dbg(zr->pci_dev, "%s - wrong frame size (%dx%d)\n", __func__, width, height); in zoran_v4l_set_format() 180 zr->buffer_size = height * width * bpp; in zoran_v4l_set_format() 183 if (height * width * bpp > zr->buffer_size) { in zoran_v4l_set_format() 184 pci_dbg(zr->pci_dev, "%s - video buffer size (%d kB) is too small\n", in zoran_v4l_set_format() 185 __func__, zr->buffer_size >> 10); in zoran_v4l_set_format() 192 pci_dbg(zr->pci_dev, "%s - wrong frame alignment\n", __func__); in zoran_v4l_set_format() 196 zr->v4l_settings.width = width; in zoran_v4l_set_format() 197 zr->v4l_settings.height = height; in zoran_v4l_set_format() 198 zr->v4l_settings.format = format; in zoran_v4l_set_format() [all …]
|
D | zoran_device.h | 16 void GPIO(struct zoran *zr, int bit, unsigned int value); 19 int post_office_wait(struct zoran *zr); 20 int post_office_write(struct zoran *zr, unsigned int guest, unsigned int reg, 22 int post_office_read(struct zoran *zr, unsigned int guest, unsigned int reg); 24 void jpeg_codec_sleep(struct zoran *zr, int sleep); 25 int jpeg_codec_reset(struct zoran *zr); 28 void zr36057_overlay(struct zoran *zr, int on); 30 void zr36057_set_memgrab(struct zoran *zr, int mode); 31 int wait_grab_pending(struct zoran *zr); 34 void print_interrupts(struct zoran *zr); [all …]
|
D | videocodec.c | 40 struct zoran *zr; in videocodec_attach() local 50 zr = videocodec_master_to_zoran(master); in videocodec_attach() 52 zrdev_dbg(zr, "%s: '%s', flags %lx, magic %lx\n", __func__, in videocodec_attach() 56 zrdev_err(zr, "%s: no device available\n", __func__); in videocodec_attach() 64 zrdev_dbg(zr, "%s: try '%s'\n", __func__, h->codec->name); in videocodec_attach() 75 zrdev_dbg(zr, "%s: '%s'\n", __func__, codec->name); in videocodec_attach() 84 zrdev_dbg(zr, "videocodec: first element\n"); in videocodec_attach() 89 zrdev_dbg(zr, "videocodec: in after '%s'\n", in videocodec_attach() 101 zrdev_err(zr, "%s: no codec found!\n", __func__); in videocodec_attach() 112 struct zoran *zr; in videocodec_detach() local [all …]
|
D | zr36016.c | 36 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36016_read() local 42 zrdev_err(zr, "%s: invalid I/O setup, nothing read!\n", ptr->name); in zr36016_read() 44 zrdev_dbg(zr, "%s: reading from 0x%04x: %02x\n", ptr->name, reg, value); in zr36016_read() 51 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36016_write() local 53 zrdev_dbg(zr, "%s: writing 0x%02x to 0x%04x\n", ptr->name, value, reg); in zr36016_write() 59 zrdev_err(zr, "%s: invalid I/O setup, nothing written!\n", ptr->name); in zr36016_write() 71 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36016_readi() local 78 zrdev_err(zr, "%s: invalid I/O setup, nothing read (i)!\n", ptr->name); in zr36016_readi() 81 zrdev_dbg(zr, "%s: reading indirect from 0x%04x: %02x\n", in zr36016_readi() 88 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36016_writei() local [all …]
|
D | zr36050.c | 43 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36050_read() local 50 zrdev_err(zr, "%s: invalid I/O setup, nothing read!\n", ptr->name); in zr36050_read() 52 zrdev_dbg(zr, "%s: reading from 0x%04x: %02x\n", ptr->name, reg, value); in zr36050_read() 59 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36050_write() local 61 zrdev_dbg(zr, "%s: writing 0x%02x to 0x%04x\n", ptr->name, value, reg); in zr36050_write() 67 zrdev_err(zr, "%s: invalid I/O setup, nothing written!\n", in zr36050_write() 99 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36050_wait_end() local 105 zrdev_err(zr, in zr36050_wait_end() 120 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36050_basic_test() local 126 zrdev_err(zr, in zr36050_basic_test() [all …]
|
D | zoran.h | 49 #define ZR_DEVNAME(zr) ((zr)->name) argument 51 #define BUZ_MAX_WIDTH (zr->timing->wa) 52 #define BUZ_MAX_HEIGHT (zr->timing->ha) 160 struct zoran *zr; member 196 void (*init)(struct zoran *zr); 305 #define btwrite(dat, adr) writel((dat), zr->zr36057_mem + (adr)) 306 #define btread(adr) readl(zr->zr36057_mem + (adr)) 317 #define zrdev_dbg(zr, format, args...) \ argument 318 pci_dbg((zr)->pci_dev, format, ##args) \ 320 #define zrdev_err(zr, format, args...) \ argument [all …]
|
D | zr36060.c | 44 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36060_read() local 50 zrdev_err(zr, "%s: invalid I/O setup, nothing read!\n", ptr->name); in zr36060_read() 57 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36060_write() local 59 zrdev_dbg(zr, "0x%02x @0x%04x\n", value, reg); in zr36060_write() 65 zrdev_err(zr, "%s: invalid I/O setup, nothing written!\n", ptr->name); in zr36060_write() 97 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36060_wait_end() local 103 zrdev_dbg(zr, in zr36060_wait_end() 114 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36060_basic_test() local 118 zrdev_err(zr, "%s: attach failed, can't connect to jpeg processor!\n", ptr->name); in zr36060_basic_test() 124 zrdev_err(zr, "%s: attach failed, jpeg processor failed (end flag)!\n", ptr->name); in zr36060_basic_test() [all …]
|
D | zoran_card.h | 22 int zoran_check_jpg_settings(struct zoran *zr, 24 void zoran_open_init_params(struct zoran *zr);
|
D | videocodec.h | 313 struct zoran *zr = master->data; in videocodec_master_to_zoran() local 315 return zr; in videocodec_master_to_zoran()
|