Lines Matching refs:edi
92 * %edi = ptr to queue head structure
107 cmpl $0,8(%edi) // sniff the lockword
114 * %edi = ptr to queue head structure
126 cmpxchgl %ecx, 8(%edi) // try to take the spinlock
132 cmpxchgl %ecx, 8(%edi) // try 2nd time to take the spinlock
138 cmpxchgl %ecx, 8(%edi) // try 3rd time to take the spinlock
144 movl 4(%edi),%ecx // get ptr to last element in q
147 movl %esi,(%edi) // q empty so this is first element
152 movl %esi,4(%edi) // new element becomes last in q
153 movl $0,8(%edi) // unlock spinlock
159 * %edi = ptr to queue head structure
171 cmpxchgl %ecx, 8(%edi) // try to take the spinlock
177 cmpxchgl %ecx, 8(%edi) // try 2nd time to take the spinlock
183 cmpxchgl %ecx, 8(%edi) // try 3rd time to take the spinlock
189 movl (%edi),%eax // get ptr to first element in q
195 movl %esi,4(%edi) // clear "last" field of q head
197 movl %esi,(%edi) // update "first" field of q head
199 movl $0,8(%edi) // unlock spinlock