Lines Matching refs:ptr
31 * switch_to(n) should switch tasks to task ptr, first checking that
32 * ptr isn't the current task, in which case it does nothing.
132 #define xchg(ptr, with) \
133 ((__typeof__ (*(ptr)))__xchg ((unsigned long)(with), (ptr), sizeof (*(ptr))))
134 #define tas(ptr) (xchg ((ptr), 1))
137 __volatile__ void *ptr, int size)
145 tmp = *(unsigned char *)ptr;
146 *(unsigned char *)ptr = with;
149 tmp = *(unsigned short *)ptr;
150 *(unsigned short *)ptr = with;
153 tmp = *(unsigned long *)ptr;
154 *(unsigned long *)ptr = with;