meye 58 drivers/media/pci/meye/meye.c static struct meye meye; meye 108 drivers/media/pci/meye/meye.c memset(meye.mchip_ptable, 0, sizeof(meye.mchip_ptable)); meye 111 drivers/media/pci/meye/meye.c if (dma_set_mask(&meye.mchip_dev->dev, DMA_BIT_MASK(32))) meye 114 drivers/media/pci/meye/meye.c meye.mchip_ptable_toc = dma_alloc_coherent(&meye.mchip_dev->dev, meye 116 drivers/media/pci/meye/meye.c &meye.mchip_dmahandle, meye 118 drivers/media/pci/meye/meye.c if (!meye.mchip_ptable_toc) { meye 119 drivers/media/pci/meye/meye.c meye.mchip_dmahandle = 0; meye 123 drivers/media/pci/meye/meye.c pt = meye.mchip_ptable_toc; meye 126 drivers/media/pci/meye/meye.c meye.mchip_ptable[i] = dma_alloc_coherent(&meye.mchip_dev->dev, meye 130 drivers/media/pci/meye/meye.c if (!meye.mchip_ptable[i]) { meye 132 drivers/media/pci/meye/meye.c pt = meye.mchip_ptable_toc; meye 135 drivers/media/pci/meye/meye.c dma_free_coherent(&meye.mchip_dev->dev, meye 137 drivers/media/pci/meye/meye.c meye.mchip_ptable[j], dma); meye 140 drivers/media/pci/meye/meye.c dma_free_coherent(&meye.mchip_dev->dev, meye 142 drivers/media/pci/meye/meye.c meye.mchip_ptable_toc, meye 143 drivers/media/pci/meye/meye.c meye.mchip_dmahandle); meye 144 drivers/media/pci/meye/meye.c meye.mchip_ptable_toc = NULL; meye 145 drivers/media/pci/meye/meye.c meye.mchip_dmahandle = 0; meye 159 drivers/media/pci/meye/meye.c pt = meye.mchip_ptable_toc; meye 162 drivers/media/pci/meye/meye.c if (meye.mchip_ptable[i]) meye 163 drivers/media/pci/meye/meye.c dma_free_coherent(&meye.mchip_dev->dev, meye 165 drivers/media/pci/meye/meye.c meye.mchip_ptable[i], dma); meye 169 drivers/media/pci/meye/meye.c if (meye.mchip_ptable_toc) meye 170 drivers/media/pci/meye/meye.c dma_free_coherent(&meye.mchip_dev->dev, meye 172 drivers/media/pci/meye/meye.c meye.mchip_ptable_toc, meye 173 drivers/media/pci/meye/meye.c meye.mchip_dmahandle); meye 175 drivers/media/pci/meye/meye.c memset(meye.mchip_ptable, 0, sizeof(meye.mchip_ptable)); meye 176 drivers/media/pci/meye/meye.c meye.mchip_ptable_toc = NULL; meye 177 drivers/media/pci/meye/meye.c meye.mchip_dmahandle = 0; meye 186 drivers/media/pci/meye/meye.c memcpy(buf + i, meye.mchip_ptable[start++], PAGE_SIZE); meye 190 drivers/media/pci/meye/meye.c memcpy(buf + i, meye.mchip_ptable[start], size % PAGE_SIZE); meye 390 drivers/media/pci/meye/meye.c return meye.params.subsample ? 320 : 640; meye 396 drivers/media/pci/meye/meye.c return meye.params.subsample ? 240 : 480; meye 407 drivers/media/pci/meye/meye.c status = readl(meye.mchip_mmregs + meye 421 drivers/media/pci/meye/meye.c status = readl(meye.mchip_mmregs + MCHIP_HIC_STATUS); meye 437 drivers/media/pci/meye/meye.c writel(v, meye.mchip_mmregs + reg); meye 444 drivers/media/pci/meye/meye.c return readl(meye.mchip_mmregs + reg); meye 459 drivers/media/pci/meye/meye.c mchip_set(MCHIP_MCC_R_SAMPLING, meye.params.subsample); meye 470 drivers/media/pci/meye/meye.c mchip_set(MCHIP_HIC_S_RATE, meye.params.framerate); meye 483 drivers/media/pci/meye/meye.c writel(tables[i], meye.mchip_mmregs + MCHIP_VRJ_TABLE_DATA); meye 485 drivers/media/pci/meye/meye.c tables = jpeg_quantisation_tables(&length, meye.params.quality); meye 487 drivers/media/pci/meye/meye.c writel(tables[i], meye.mchip_mmregs + MCHIP_VRJ_TABLE_DATA); meye 522 drivers/media/pci/meye/meye.c meye.mchip_fnum = 0; meye 528 drivers/media/pci/meye/meye.c if (!meye.mchip_dmahandle) meye 537 drivers/media/pci/meye/meye.c if (meye.mchip_dmahandle) { meye 549 drivers/media/pci/meye/meye.c meye.mchip_mode = MCHIP_HIC_MODE_NOOP; meye 576 drivers/media/pci/meye/meye.c return mchip_read(MCHIP_MM_FIR(meye.mchip_fnum)); meye 582 drivers/media/pci/meye/meye.c mchip_set(MCHIP_MM_FIR(meye.mchip_fnum), 0); meye 583 drivers/media/pci/meye/meye.c meye.mchip_fnum++; meye 584 drivers/media/pci/meye/meye.c meye.mchip_fnum %= 4; meye 650 drivers/media/pci/meye/meye.c mchip_dma_setup(meye.mchip_dmahandle); meye 695 drivers/media/pci/meye/meye.c mchip_dma_setup(meye.mchip_dmahandle); meye 697 drivers/media/pci/meye/meye.c meye.mchip_mode = MCHIP_HIC_MODE_CONT_OUT; meye 758 drivers/media/pci/meye/meye.c mchip_dma_setup(meye.mchip_dmahandle); meye 760 drivers/media/pci/meye/meye.c meye.mchip_mode = MCHIP_HIC_MODE_CONT_COMP; meye 780 drivers/media/pci/meye/meye.c if (meye.mchip_mode != MCHIP_HIC_MODE_CONT_OUT && meye 781 drivers/media/pci/meye/meye.c meye.mchip_mode != MCHIP_HIC_MODE_CONT_COMP) meye 789 drivers/media/pci/meye/meye.c if (meye.mchip_mode == MCHIP_HIC_MODE_CONT_OUT) { meye 790 drivers/media/pci/meye/meye.c if (kfifo_out_locked(&meye.grabq, (unsigned char *)&reqnr, meye 791 drivers/media/pci/meye/meye.c sizeof(int), &meye.grabq_lock) != sizeof(int)) { meye 795 drivers/media/pci/meye/meye.c mchip_cont_read_frame(v, meye.grab_fbuffer + gbufsize * reqnr, meye 797 drivers/media/pci/meye/meye.c meye.grab_buffer[reqnr].size = mchip_hsize() * mchip_vsize() * 2; meye 798 drivers/media/pci/meye/meye.c meye.grab_buffer[reqnr].state = MEYE_BUF_DONE; meye 799 drivers/media/pci/meye/meye.c meye.grab_buffer[reqnr].ts = ktime_get_ns(); meye 800 drivers/media/pci/meye/meye.c meye.grab_buffer[reqnr].sequence = sequence++; meye 801 drivers/media/pci/meye/meye.c kfifo_in_locked(&meye.doneq, (unsigned char *)&reqnr, meye 802 drivers/media/pci/meye/meye.c sizeof(int), &meye.doneq_lock); meye 803 drivers/media/pci/meye/meye.c wake_up_interruptible(&meye.proc_list); meye 806 drivers/media/pci/meye/meye.c size = mchip_comp_read_frame(v, meye.grab_temp, gbufsize); meye 811 drivers/media/pci/meye/meye.c if (kfifo_out_locked(&meye.grabq, (unsigned char *)&reqnr, meye 812 drivers/media/pci/meye/meye.c sizeof(int), &meye.grabq_lock) != sizeof(int)) { meye 816 drivers/media/pci/meye/meye.c memcpy(meye.grab_fbuffer + gbufsize * reqnr, meye.grab_temp, meye 818 drivers/media/pci/meye/meye.c meye.grab_buffer[reqnr].size = size; meye 819 drivers/media/pci/meye/meye.c meye.grab_buffer[reqnr].state = MEYE_BUF_DONE; meye 820 drivers/media/pci/meye/meye.c meye.grab_buffer[reqnr].ts = ktime_get_ns(); meye 821 drivers/media/pci/meye/meye.c meye.grab_buffer[reqnr].sequence = sequence++; meye 822 drivers/media/pci/meye/meye.c kfifo_in_locked(&meye.doneq, (unsigned char *)&reqnr, meye 823 drivers/media/pci/meye/meye.c sizeof(int), &meye.doneq_lock); meye 824 drivers/media/pci/meye/meye.c wake_up_interruptible(&meye.proc_list); meye 838 drivers/media/pci/meye/meye.c if (test_and_set_bit(0, &meye.in_use)) meye 845 drivers/media/pci/meye/meye.c clear_bit(0, &meye.in_use); meye 850 drivers/media/pci/meye/meye.c meye.grab_buffer[i].state = MEYE_BUF_UNUSED; meye 851 drivers/media/pci/meye/meye.c kfifo_reset(&meye.grabq); meye 852 drivers/media/pci/meye/meye.c kfifo_reset(&meye.doneq); meye 860 drivers/media/pci/meye/meye.c clear_bit(0, &meye.in_use); meye 866 drivers/media/pci/meye/meye.c *p = meye.params; meye 884 drivers/media/pci/meye/meye.c mutex_lock(&meye.lock); meye 886 drivers/media/pci/meye/meye.c if (meye.params.subsample != jp->subsample || meye 887 drivers/media/pci/meye/meye.c meye.params.quality != jp->quality) meye 890 drivers/media/pci/meye/meye.c meye.params = *jp; meye 892 drivers/media/pci/meye/meye.c meye.params.sharpness); meye 894 drivers/media/pci/meye/meye.c meye.params.agc); meye 896 drivers/media/pci/meye/meye.c meye.params.picture); meye 897 drivers/media/pci/meye/meye.c mutex_unlock(&meye.lock); meye 904 drivers/media/pci/meye/meye.c if (!meye.grab_fbuffer) meye 916 drivers/media/pci/meye/meye.c if (meye.grab_buffer[*nb].state != MEYE_BUF_UNUSED) meye 919 drivers/media/pci/meye/meye.c mutex_lock(&meye.lock); meye 921 drivers/media/pci/meye/meye.c if (meye.mchip_mode != MCHIP_HIC_MODE_CONT_COMP) meye 924 drivers/media/pci/meye/meye.c meye.grab_buffer[*nb].state = MEYE_BUF_USING; meye 925 drivers/media/pci/meye/meye.c kfifo_in_locked(&meye.grabq, (unsigned char *)nb, sizeof(int), meye 926 drivers/media/pci/meye/meye.c &meye.grabq_lock); meye 927 drivers/media/pci/meye/meye.c mutex_unlock(&meye.lock); meye 939 drivers/media/pci/meye/meye.c mutex_lock(&meye.lock); meye 940 drivers/media/pci/meye/meye.c switch (meye.grab_buffer[*i].state) { meye 943 drivers/media/pci/meye/meye.c mutex_unlock(&meye.lock); meye 947 drivers/media/pci/meye/meye.c mutex_unlock(&meye.lock); meye 950 drivers/media/pci/meye/meye.c if (wait_event_interruptible(meye.proc_list, meye 951 drivers/media/pci/meye/meye.c (meye.grab_buffer[*i].state != MEYE_BUF_USING))) { meye 952 drivers/media/pci/meye/meye.c mutex_unlock(&meye.lock); meye 957 drivers/media/pci/meye/meye.c meye.grab_buffer[*i].state = MEYE_BUF_UNUSED; meye 958 drivers/media/pci/meye/meye.c if (kfifo_out_locked(&meye.doneq, (unsigned char *)&unused, meye 959 drivers/media/pci/meye/meye.c sizeof(int), &meye.doneq_lock) != sizeof(int)) meye 962 drivers/media/pci/meye/meye.c *i = meye.grab_buffer[*i].size; meye 963 drivers/media/pci/meye/meye.c mutex_unlock(&meye.lock); meye 969 drivers/media/pci/meye/meye.c if (!meye.grab_fbuffer) meye 972 drivers/media/pci/meye/meye.c if (meye.grab_buffer[0].state != MEYE_BUF_UNUSED) meye 975 drivers/media/pci/meye/meye.c mutex_lock(&meye.lock); meye 976 drivers/media/pci/meye/meye.c meye.grab_buffer[0].state = MEYE_BUF_USING; meye 979 drivers/media/pci/meye/meye.c mchip_get_picture(meye.grab_fbuffer, meye 982 drivers/media/pci/meye/meye.c meye.grab_buffer[0].state = MEYE_BUF_DONE; meye 983 drivers/media/pci/meye/meye.c mutex_unlock(&meye.lock); meye 990 drivers/media/pci/meye/meye.c if (!meye.grab_fbuffer) meye 993 drivers/media/pci/meye/meye.c if (meye.grab_buffer[0].state != MEYE_BUF_UNUSED) meye 996 drivers/media/pci/meye/meye.c mutex_lock(&meye.lock); meye 997 drivers/media/pci/meye/meye.c meye.grab_buffer[0].state = MEYE_BUF_USING; meye 1002 drivers/media/pci/meye/meye.c *len = mchip_compress_frame(meye.grab_fbuffer, gbufsize); meye 1005 drivers/media/pci/meye/meye.c meye.grab_buffer[0].state = MEYE_BUF_DONE; meye 1006 drivers/media/pci/meye/meye.c mutex_unlock(&meye.lock); meye 1015 drivers/media/pci/meye/meye.c sprintf(cap->bus_info, "PCI:%s", pci_name(meye.mchip_dev)); meye 1046 drivers/media/pci/meye/meye.c mutex_lock(&meye.lock); meye 1051 drivers/media/pci/meye/meye.c meye.brightness = ctrl->val << 10; meye 1056 drivers/media/pci/meye/meye.c meye.hue = ctrl->val << 10; meye 1061 drivers/media/pci/meye/meye.c meye.contrast = ctrl->val << 10; meye 1066 drivers/media/pci/meye/meye.c meye.colour = ctrl->val << 10; meye 1071 drivers/media/pci/meye/meye.c meye.params.agc = ctrl->val; meye 1076 drivers/media/pci/meye/meye.c meye.params.sharpness = ctrl->val; meye 1081 drivers/media/pci/meye/meye.c meye.params.picture = ctrl->val; meye 1084 drivers/media/pci/meye/meye.c meye.params.quality = ctrl->val; meye 1087 drivers/media/pci/meye/meye.c meye.params.framerate = ctrl->val; meye 1090 drivers/media/pci/meye/meye.c mutex_unlock(&meye.lock); meye 1093 drivers/media/pci/meye/meye.c mutex_unlock(&meye.lock); meye 1148 drivers/media/pci/meye/meye.c switch (meye.mchip_mode) { meye 1180 drivers/media/pci/meye/meye.c mutex_lock(&meye.lock); meye 1185 drivers/media/pci/meye/meye.c meye.params.subsample = 1; meye 1189 drivers/media/pci/meye/meye.c meye.params.subsample = 0; meye 1194 drivers/media/pci/meye/meye.c meye.mchip_mode = MCHIP_HIC_MODE_CONT_OUT; meye 1197 drivers/media/pci/meye/meye.c meye.mchip_mode = MCHIP_HIC_MODE_CONT_COMP; meye 1201 drivers/media/pci/meye/meye.c mutex_unlock(&meye.lock); meye 1218 drivers/media/pci/meye/meye.c if (meye.grab_fbuffer && req->count == gbuffers) { meye 1223 drivers/media/pci/meye/meye.c mutex_lock(&meye.lock); meye 1224 drivers/media/pci/meye/meye.c if (meye.grab_fbuffer) { meye 1226 drivers/media/pci/meye/meye.c if (meye.vma_use_count[i]) { meye 1227 drivers/media/pci/meye/meye.c mutex_unlock(&meye.lock); meye 1230 drivers/media/pci/meye/meye.c rvfree(meye.grab_fbuffer, gbuffers * gbufsize); meye 1231 drivers/media/pci/meye/meye.c meye.grab_fbuffer = NULL; meye 1236 drivers/media/pci/meye/meye.c meye.grab_fbuffer = rvmalloc(gbuffers * gbufsize); meye 1238 drivers/media/pci/meye/meye.c if (!meye.grab_fbuffer) { meye 1240 drivers/media/pci/meye/meye.c mutex_unlock(&meye.lock); meye 1245 drivers/media/pci/meye/meye.c meye.vma_use_count[i] = 0; meye 1247 drivers/media/pci/meye/meye.c mutex_unlock(&meye.lock); meye 1259 drivers/media/pci/meye/meye.c buf->bytesused = meye.grab_buffer[index].size; meye 1262 drivers/media/pci/meye/meye.c if (meye.grab_buffer[index].state == MEYE_BUF_USING) meye 1265 drivers/media/pci/meye/meye.c if (meye.grab_buffer[index].state == MEYE_BUF_DONE) meye 1269 drivers/media/pci/meye/meye.c buf->timestamp = ns_to_timeval(meye.grab_buffer[index].ts); meye 1270 drivers/media/pci/meye/meye.c buf->sequence = meye.grab_buffer[index].sequence; meye 1286 drivers/media/pci/meye/meye.c if (meye.grab_buffer[buf->index].state != MEYE_BUF_UNUSED) meye 1289 drivers/media/pci/meye/meye.c mutex_lock(&meye.lock); meye 1292 drivers/media/pci/meye/meye.c meye.grab_buffer[buf->index].state = MEYE_BUF_USING; meye 1293 drivers/media/pci/meye/meye.c kfifo_in_locked(&meye.grabq, (unsigned char *)&buf->index, meye 1294 drivers/media/pci/meye/meye.c sizeof(int), &meye.grabq_lock); meye 1295 drivers/media/pci/meye/meye.c mutex_unlock(&meye.lock); meye 1307 drivers/media/pci/meye/meye.c mutex_lock(&meye.lock); meye 1309 drivers/media/pci/meye/meye.c if (kfifo_len(&meye.doneq) == 0 && file->f_flags & O_NONBLOCK) { meye 1310 drivers/media/pci/meye/meye.c mutex_unlock(&meye.lock); meye 1314 drivers/media/pci/meye/meye.c if (wait_event_interruptible(meye.proc_list, meye 1315 drivers/media/pci/meye/meye.c kfifo_len(&meye.doneq) != 0) < 0) { meye 1316 drivers/media/pci/meye/meye.c mutex_unlock(&meye.lock); meye 1320 drivers/media/pci/meye/meye.c if (!kfifo_out_locked(&meye.doneq, (unsigned char *)&reqnr, meye 1321 drivers/media/pci/meye/meye.c sizeof(int), &meye.doneq_lock)) { meye 1322 drivers/media/pci/meye/meye.c mutex_unlock(&meye.lock); meye 1326 drivers/media/pci/meye/meye.c if (meye.grab_buffer[reqnr].state != MEYE_BUF_DONE) { meye 1327 drivers/media/pci/meye/meye.c mutex_unlock(&meye.lock); meye 1332 drivers/media/pci/meye/meye.c buf->bytesused = meye.grab_buffer[reqnr].size; meye 1335 drivers/media/pci/meye/meye.c buf->timestamp = ns_to_timeval(meye.grab_buffer[reqnr].ts); meye 1336 drivers/media/pci/meye/meye.c buf->sequence = meye.grab_buffer[reqnr].sequence; meye 1340 drivers/media/pci/meye/meye.c meye.grab_buffer[reqnr].state = MEYE_BUF_UNUSED; meye 1341 drivers/media/pci/meye/meye.c mutex_unlock(&meye.lock); meye 1348 drivers/media/pci/meye/meye.c mutex_lock(&meye.lock); meye 1350 drivers/media/pci/meye/meye.c switch (meye.mchip_mode) { meye 1358 drivers/media/pci/meye/meye.c mutex_unlock(&meye.lock); meye 1362 drivers/media/pci/meye/meye.c mutex_unlock(&meye.lock); meye 1369 drivers/media/pci/meye/meye.c mutex_lock(&meye.lock); meye 1371 drivers/media/pci/meye/meye.c kfifo_reset(&meye.grabq); meye 1372 drivers/media/pci/meye/meye.c kfifo_reset(&meye.doneq); meye 1375 drivers/media/pci/meye/meye.c meye.grab_buffer[i].state = MEYE_BUF_UNUSED; meye 1377 drivers/media/pci/meye/meye.c mutex_unlock(&meye.lock); meye 1413 drivers/media/pci/meye/meye.c mutex_lock(&meye.lock); meye 1414 drivers/media/pci/meye/meye.c poll_wait(file, &meye.proc_list, wait); meye 1415 drivers/media/pci/meye/meye.c if (kfifo_len(&meye.doneq)) meye 1417 drivers/media/pci/meye/meye.c mutex_unlock(&meye.lock); meye 1424 drivers/media/pci/meye/meye.c meye.vma_use_count[idx]++; meye 1430 drivers/media/pci/meye/meye.c meye.vma_use_count[idx]--; meye 1445 drivers/media/pci/meye/meye.c mutex_lock(&meye.lock); meye 1447 drivers/media/pci/meye/meye.c mutex_unlock(&meye.lock); meye 1450 drivers/media/pci/meye/meye.c if (!meye.grab_fbuffer) { meye 1454 drivers/media/pci/meye/meye.c meye.grab_fbuffer = rvmalloc(gbuffers*gbufsize); meye 1455 drivers/media/pci/meye/meye.c if (!meye.grab_fbuffer) { meye 1457 drivers/media/pci/meye/meye.c mutex_unlock(&meye.lock); meye 1461 drivers/media/pci/meye/meye.c meye.vma_use_count[i] = 0; meye 1463 drivers/media/pci/meye/meye.c pos = (unsigned long)meye.grab_fbuffer + offset; meye 1468 drivers/media/pci/meye/meye.c mutex_unlock(&meye.lock); meye 1485 drivers/media/pci/meye/meye.c mutex_unlock(&meye.lock); meye 1535 drivers/media/pci/meye/meye.c meye.pm_mchip_mode = meye.mchip_mode; meye 1544 drivers/media/pci/meye/meye.c pci_write_config_word(meye.mchip_dev, MCHIP_PCI_SOFTRESET_SET, 1); meye 1555 drivers/media/pci/meye/meye.c switch (meye.pm_mchip_mode) { meye 1595 drivers/media/pci/meye/meye.c struct v4l2_device *v4l2_dev = &meye.v4l2_dev; meye 1599 drivers/media/pci/meye/meye.c if (meye.mchip_dev != NULL) { meye 1610 drivers/media/pci/meye/meye.c meye.mchip_dev = pcidev; meye 1612 drivers/media/pci/meye/meye.c meye.grab_temp = vmalloc(array_size(PAGE_SIZE, MCHIP_NB_PAGES_MJPEG)); meye 1613 drivers/media/pci/meye/meye.c if (!meye.grab_temp) meye 1616 drivers/media/pci/meye/meye.c spin_lock_init(&meye.grabq_lock); meye 1617 drivers/media/pci/meye/meye.c if (kfifo_alloc(&meye.grabq, sizeof(int) * MEYE_MAX_BUFNBRS, meye 1621 drivers/media/pci/meye/meye.c spin_lock_init(&meye.doneq_lock); meye 1622 drivers/media/pci/meye/meye.c if (kfifo_alloc(&meye.doneq, sizeof(int) * MEYE_MAX_BUFNBRS, meye 1626 drivers/media/pci/meye/meye.c meye.vdev = meye_template; meye 1627 drivers/media/pci/meye/meye.c meye.vdev.v4l2_dev = &meye.v4l2_dev; meye 1636 drivers/media/pci/meye/meye.c ret = pci_enable_device(meye.mchip_dev); meye 1643 drivers/media/pci/meye/meye.c mchip_adr = pci_resource_start(meye.mchip_dev,0); meye 1648 drivers/media/pci/meye/meye.c if (!request_mem_region(pci_resource_start(meye.mchip_dev, 0), meye 1649 drivers/media/pci/meye/meye.c pci_resource_len(meye.mchip_dev, 0), meye 1654 drivers/media/pci/meye/meye.c meye.mchip_mmregs = ioremap(mchip_adr, MCHIP_MM_REGS); meye 1655 drivers/media/pci/meye/meye.c if (!meye.mchip_mmregs) { meye 1660 drivers/media/pci/meye/meye.c meye.mchip_irq = pcidev->irq; meye 1661 drivers/media/pci/meye/meye.c if (request_irq(meye.mchip_irq, meye_irq, meye 1667 drivers/media/pci/meye/meye.c pci_write_config_byte(meye.mchip_dev, PCI_CACHE_LINE_SIZE, 8); meye 1668 drivers/media/pci/meye/meye.c pci_write_config_byte(meye.mchip_dev, PCI_LATENCY_TIMER, 64); meye 1670 drivers/media/pci/meye/meye.c pci_set_master(meye.mchip_dev); meye 1673 drivers/media/pci/meye/meye.c pci_write_config_word(meye.mchip_dev, MCHIP_PCI_SOFTRESET_SET, 1); meye 1687 drivers/media/pci/meye/meye.c mutex_init(&meye.lock); meye 1688 drivers/media/pci/meye/meye.c init_waitqueue_head(&meye.proc_list); meye 1690 drivers/media/pci/meye/meye.c v4l2_ctrl_handler_init(&meye.hdl, 3); meye 1691 drivers/media/pci/meye/meye.c v4l2_ctrl_new_std(&meye.hdl, &meye_ctrl_ops, meye 1693 drivers/media/pci/meye/meye.c v4l2_ctrl_new_std(&meye.hdl, &meye_ctrl_ops, meye 1695 drivers/media/pci/meye/meye.c v4l2_ctrl_new_std(&meye.hdl, &meye_ctrl_ops, meye 1697 drivers/media/pci/meye/meye.c v4l2_ctrl_new_std(&meye.hdl, &meye_ctrl_ops, meye 1699 drivers/media/pci/meye/meye.c v4l2_ctrl_new_custom(&meye.hdl, &ctrl_agc, NULL); meye 1700 drivers/media/pci/meye/meye.c v4l2_ctrl_new_std(&meye.hdl, &meye_ctrl_ops, meye 1702 drivers/media/pci/meye/meye.c v4l2_ctrl_new_custom(&meye.hdl, &ctrl_picture, NULL); meye 1703 drivers/media/pci/meye/meye.c v4l2_ctrl_new_std(&meye.hdl, &meye_ctrl_ops, meye 1705 drivers/media/pci/meye/meye.c v4l2_ctrl_new_custom(&meye.hdl, &ctrl_framerate, NULL); meye 1706 drivers/media/pci/meye/meye.c if (meye.hdl.error) { meye 1711 drivers/media/pci/meye/meye.c v4l2_ctrl_handler_setup(&meye.hdl); meye 1712 drivers/media/pci/meye/meye.c meye.vdev.ctrl_handler = &meye.hdl; meye 1714 drivers/media/pci/meye/meye.c if (video_register_device(&meye.vdev, VFL_TYPE_GRABBER, meye 1723 drivers/media/pci/meye/meye.c meye.mchip_dev->revision, mchip_adr, meye.mchip_irq); meye 1728 drivers/media/pci/meye/meye.c v4l2_ctrl_handler_free(&meye.hdl); meye 1729 drivers/media/pci/meye/meye.c free_irq(meye.mchip_irq, meye_irq); meye 1731 drivers/media/pci/meye/meye.c iounmap(meye.mchip_mmregs); meye 1733 drivers/media/pci/meye/meye.c release_mem_region(pci_resource_start(meye.mchip_dev, 0), meye 1734 drivers/media/pci/meye/meye.c pci_resource_len(meye.mchip_dev, 0)); meye 1736 drivers/media/pci/meye/meye.c pci_disable_device(meye.mchip_dev); meye 1740 drivers/media/pci/meye/meye.c kfifo_free(&meye.doneq); meye 1742 drivers/media/pci/meye/meye.c kfifo_free(&meye.grabq); meye 1744 drivers/media/pci/meye/meye.c vfree(meye.grab_temp); meye 1751 drivers/media/pci/meye/meye.c video_unregister_device(&meye.vdev); meye 1760 drivers/media/pci/meye/meye.c free_irq(meye.mchip_irq, meye_irq); meye 1762 drivers/media/pci/meye/meye.c iounmap(meye.mchip_mmregs); meye 1764 drivers/media/pci/meye/meye.c release_mem_region(pci_resource_start(meye.mchip_dev, 0), meye 1765 drivers/media/pci/meye/meye.c pci_resource_len(meye.mchip_dev, 0)); meye 1767 drivers/media/pci/meye/meye.c pci_disable_device(meye.mchip_dev); meye 1771 drivers/media/pci/meye/meye.c kfifo_free(&meye.doneq); meye 1772 drivers/media/pci/meye/meye.c kfifo_free(&meye.grabq); meye 1774 drivers/media/pci/meye/meye.c vfree(meye.grab_temp); meye 1776 drivers/media/pci/meye/meye.c if (meye.grab_fbuffer) { meye 1777 drivers/media/pci/meye/meye.c rvfree(meye.grab_fbuffer, gbuffers*gbufsize); meye 1778 drivers/media/pci/meye/meye.c meye.grab_fbuffer = NULL;