Lines Matching defs:__smdr
55 struct cvmx_shmem_smdr *__smdr = NULL;
62 if (__smdr == NULL) { \
80 uint64_t nbase_64 = CAST64(__smdr->break64);
90 __smdr->break64 = nbase + size;
136 * Initialize __smdr pointer, if SMDR exits already. If not, create a new
142 size_t smdr_size = sizeof(*__smdr);
145 __smdr = (struct cvmx_shmem_smdr *) cvmx_bootmem_alloc_named(smdr_size, 0x10000, smdr_name);
147 if (__smdr)
148 __smdr_new (__smdr);
155 __smdr = (struct cvmx_shmem_smdr *)
158 cvmx_spinlock_lock (&__smdr->lock);
165 __smdr = NULL;
167 cvmx_spinlock_unlock (&__smdr->lock);
171 if (!__smdr)
174 return __smdr;
196 d = &__smdr->shmd[i];
288 * @return cvmx_shmem_smdr* pointer to __smdr
321 cvmx_spinlock_lock(&__smdr->lock);
375 cvmx_spinlock_unlock(&__smdr->lock);
387 cvmx_spinlock_unlock(&__smdr->lock);
424 cvmx_spinlock_unlock(&__smdr->lock);
743 cvmx_spinlock_lock(&__smdr->lock);
745 cvmx_spinlock_unlock(&__smdr->lock);