Lines Matching refs:lscsa
36 struct spu_lscsa *lscsa;
39 lscsa = vmalloc(sizeof(struct spu_lscsa));
40 if (!lscsa)
42 memset(lscsa, 0, sizeof(struct spu_lscsa));
43 csa->lscsa = lscsa;
46 for (p = lscsa->ls; p < lscsa->ls + LS_SIZE; p += PAGE_SIZE)
57 if (csa->lscsa == NULL)
60 for (p = csa->lscsa->ls; p < csa->lscsa->ls + LS_SIZE; p += PAGE_SIZE)
63 vfree(csa->lscsa);
89 * to separate the lscsa with the actual local store image, thus
117 csa->lscsa = vmap(pgarray, n_4k, VM_USERMAP, PAGE_KERNEL);
119 if (csa->lscsa == NULL)
122 memset(csa->lscsa, 0, sizeof(struct spu_lscsa));
124 for (p = csa->lscsa->ls; p < csa->lscsa->ls + LS_SIZE; p += PAGE_SIZE)
131 pr_debug("spufs: failed to allocate lscsa 64K pages, falling back\n");
147 if (csa->lscsa == NULL)
150 for (p = csa->lscsa->ls; p < csa->lscsa->ls + LS_SIZE; p += PAGE_SIZE)
153 vunmap(csa->lscsa);
154 csa->lscsa = NULL;