dev_dbg(g_dev_ptr,"circbuf_all_lseek, minor = 0x%x\n",minor);
switch(minor){
caseCMOSCAM_MINOR_CIRCBUF:
switch(dev_type){
caseCIRCBUF_MINOR:
returncircbuf_lseek(file,offset,orig);
caseCMOSCAM_MINOR_JPEAGHEAD:
caseJPEGHEAD_MINOR:
if(orig==SEEK_END&&offset>0){
rp=BYTE2DW(offset)&(~7);// convert to index to long, align to 32-bytes
//fp = (struct interframe_params_t *) &ccam_dma_buf_ptr[X313_BUFFSUB(rp, 8)]; //! 32 bytes before the frame pointer, may roll-over to the end of ccam_dma_buf_ptr
printk("\n========== IOCTL is not implemented in circbuf_all_ioctl, minor=0x%x, cmd=0x%x, _IOC_NR(cmd)=0x%x, arg=0x%x\n",privData->minor,(int)cmd,_IOC_NR(cmd),(int)arg);
if(rp>prev_p)nz--;// rolled through zero - make sure we'll not stuck in this loop forever
}
dev_dbg(g_dev_ptr,"LSEEK_CIRC_FIRST or LSEEK_CIRC_SCND: finish stepping back through frames, number of frames = %d, rp = 0x%x, fvld = %d, len32 = 0x%x",nf,rp,fvld,len32);
if(rp>prev_p)nz--;// rolled through zero - make sure we'll not stuck in this loop forever
}
dev_dbg(g_dev_ptr,"LSEEK_CIRC_FIRST or LSEEK_CIRC_SCND: finish stepping back through frames, number of frames = %d, rp = 0x%x, fvld = %d, len32 = 0x%x",nf,rp,fvld,len32);