Lines Matching full:shm
117 mqe = (void *)((u8 *)gsp->shm.msgq.ptr + 0x1000 + rptr * 0x1000); in r535_gsp_msgq_wait()
139 mqe = (void *)((u8 *)gsp->shm.msgq.ptr + 0x1000 + 0 * 0x1000); in r535_gsp_msgq_wait()
199 cqe = (void *)((u8 *)gsp->shm.cmdq.ptr + 0x1000 + wptr * 0x1000); in r535_gsp_cmdq_push()
1984 gsp->shm.cmdq.size = 0x40000; in r535_gsp_shared_init()
1985 gsp->shm.msgq.size = 0x40000; in r535_gsp_shared_init()
1987 gsp->shm.ptes.nr = (gsp->shm.cmdq.size + gsp->shm.msgq.size) >> GSP_PAGE_SHIFT; in r535_gsp_shared_init()
1988 gsp->shm.ptes.nr += DIV_ROUND_UP(gsp->shm.ptes.nr * sizeof(u64), GSP_PAGE_SIZE); in r535_gsp_shared_init()
1989 gsp->shm.ptes.size = ALIGN(gsp->shm.ptes.nr * sizeof(u64), GSP_PAGE_SIZE); in r535_gsp_shared_init()
1991 ret = nvkm_gsp_mem_ctor(gsp, gsp->shm.ptes.size + in r535_gsp_shared_init()
1992 gsp->shm.cmdq.size + in r535_gsp_shared_init()
1993 gsp->shm.msgq.size, in r535_gsp_shared_init()
1994 &gsp->shm.mem); in r535_gsp_shared_init()
1998 gsp->shm.ptes.ptr = gsp->shm.mem.data; in r535_gsp_shared_init()
1999 gsp->shm.cmdq.ptr = (u8 *)gsp->shm.ptes.ptr + gsp->shm.ptes.size; in r535_gsp_shared_init()
2000 gsp->shm.msgq.ptr = (u8 *)gsp->shm.cmdq.ptr + gsp->shm.cmdq.size; in r535_gsp_shared_init()
2002 for (i = 0; i < gsp->shm.ptes.nr; i++) in r535_gsp_shared_init()
2003 gsp->shm.ptes.ptr[i] = gsp->shm.mem.addr + (i << GSP_PAGE_SHIFT); in r535_gsp_shared_init()
2005 cmdq = gsp->shm.cmdq.ptr; in r535_gsp_shared_init()
2007 cmdq->tx.size = gsp->shm.cmdq.size; in r535_gsp_shared_init()
2015 msgq = gsp->shm.msgq.ptr; in r535_gsp_shared_init()
2043 args->messageQueueInitArguments.sharedMemPhysAddr = gsp->shm.mem.addr; in r535_gsp_rmargs_init()
2044 args->messageQueueInitArguments.pageTableEntryCount = gsp->shm.ptes.nr; in r535_gsp_rmargs_init()
2046 (u8 *)gsp->shm.cmdq.ptr - (u8 *)gsp->shm.mem.data; in r535_gsp_rmargs_init()
2048 (u8 *)gsp->shm.msgq.ptr - (u8 *)gsp->shm.mem.data; in r535_gsp_rmargs_init()
2514 nvkm_gsp_mem_dtor(gsp, &gsp->shm.mem); in r535_gsp_dtor()