Lines Matching refs:rv
313 int rv = 0; in do_mbcs_sram_dmawrite() local
327 rv = -EAGAIN; in do_mbcs_sram_dmawrite()
333 rv = -ERESTARTSYS; in do_mbcs_sram_dmawrite()
337 rv = len; in do_mbcs_sram_dmawrite()
343 return rv; in do_mbcs_sram_dmawrite()
350 int rv = 0; in do_mbcs_sram_dmaread() local
363 rv = -EAGAIN; in do_mbcs_sram_dmaread()
369 rv = -ERESTARTSYS; in do_mbcs_sram_dmaread()
373 rv = len; in do_mbcs_sram_dmaread()
379 return rv; in do_mbcs_sram_dmaread()
408 int rv = 0; in mbcs_sram_read() local
414 rv = do_mbcs_sram_dmawrite(soft, hostAddr, len, off); in mbcs_sram_read()
415 if (rv < 0) in mbcs_sram_read()
419 rv = -EFAULT; in mbcs_sram_read()
424 return rv; in mbcs_sram_read()
433 int rv = 0; in mbcs_sram_write() local
440 rv = -EFAULT; in mbcs_sram_write()
444 rv = do_mbcs_sram_dmaread(soft, hostAddr, len, off); in mbcs_sram_write()
449 return rv; in mbcs_sram_write()
831 int rv; in mbcs_init() local
837 rv = register_chrdev(mbcs_major, DEVICE_NAME, &mbcs_ops); in mbcs_init()
838 if (rv < 0) { in mbcs_init()
839 DBG(KERN_ALERT "mbcs_init: can't get major number. %d\n", rv); in mbcs_init()
840 return rv; in mbcs_init()
842 mbcs_major = rv; in mbcs_init()