Lines Matching refs:g_dbgfs
22156 dhd_dbgfs_t g_dbgfs; variable
22179 if (pos >= g_dbgfs.size || !count) in dhd_dbg_state_read()
22181 if (count > g_dbgfs.size - pos) in dhd_dbg_state_read()
22182 count = g_dbgfs.size - pos; in dhd_dbg_state_read()
22186 tmp = dhd_readregl(g_dbgfs.dhdp->bus, file->f_pos & (~3)); in dhd_dbg_state_read()
22208 if (pos >= g_dbgfs.size || !count) in dhd_debugfs_write()
22210 if (count > g_dbgfs.size - pos) in dhd_debugfs_write()
22211 count = g_dbgfs.size - pos; in dhd_debugfs_write()
22219 dhd_writeregl(g_dbgfs.dhdp->bus, file->f_pos & (~3), buf); in dhd_debugfs_write()
22237 pos = g_dbgfs.size - off; in dhd_debugfs_lseek()
22239 return (pos < 0 || pos > g_dbgfs.size) ? -EINVAL : (file->f_pos = pos); in dhd_debugfs_lseek()
22251 if (g_dbgfs.debugfs_dir) { in dhd_dbgfs_create()
22252 g_dbgfs.debugfs_mem = debugfs_create_file("mem", 0644, g_dbgfs.debugfs_dir, in dhd_dbgfs_create()
22259 g_dbgfs.dhdp = dhdp; in dhd_dbgfs_init()
22260 g_dbgfs.size = 0x20000000; /* Allow access to various cores regs */ in dhd_dbgfs_init()
22262 g_dbgfs.debugfs_dir = debugfs_create_dir("dhd", 0); in dhd_dbgfs_init()
22263 if (IS_ERR(g_dbgfs.debugfs_dir)) { in dhd_dbgfs_init()
22264 g_dbgfs.debugfs_dir = NULL; in dhd_dbgfs_init()
22275 debugfs_remove(g_dbgfs.debugfs_mem); in dhd_dbgfs_remove()
22276 debugfs_remove(g_dbgfs.debugfs_dir); in dhd_dbgfs_remove()
22278 bzero((unsigned char *) &g_dbgfs, sizeof(g_dbgfs)); in dhd_dbgfs_remove()