Lines Matching refs:trwptr
167 struct trw_trw *trwptr; in tirdwropen() local
177 trwptr = kmem_alloc(sizeof (struct trw_trw), KM_SLEEP); in tirdwropen()
180 trwptr->trw_flags = 0; in tirdwropen()
181 trwptr->trw_rdq = q; in tirdwropen()
182 q->q_ptr = (caddr_t)trwptr; in tirdwropen()
183 WR(q)->q_ptr = (caddr_t)trwptr; in tirdwropen()
194 kmem_free(trwptr, sizeof (struct trw_trw)); in tirdwropen()
212 struct trw_trw *trwptr; in tirdwrclose() local
217 trwptr = (struct trw_trw *)q->q_ptr; in tirdwrclose()
219 ASSERT(trwptr != NULL); in tirdwrclose()
224 if ((trwptr->trw_flags & ORDREL) && !(trwptr->trw_flags & FATAL)) in tirdwrclose()
233 kmem_free(trwptr, sizeof (struct trw_trw)); in tirdwrclose()
248 struct trw_trw *trwptr; in tirdwrrput() local
251 trwptr = (struct trw_trw *)q->q_ptr; in tirdwrrput()
253 ASSERT(trwptr != NULL); in tirdwrrput()
255 if ((trwptr->trw_flags & FATAL) && !(trwptr->trw_flags & WAITACK)) { in tirdwrrput()
297 trwptr->trw_flags |= ORDREL; in tirdwrrput()
304 trwptr->trw_flags |= DISCON; in tirdwrrput()
305 trwptr->trw_flags &= ~ORDREL; in tirdwrrput()
331 struct trw_trw *trwptr; in tirdwrwput() local
333 trwptr = (struct trw_trw *)q->q_ptr; in tirdwrwput()
335 ASSERT(trwptr != NULL); in tirdwrwput()
337 if (trwptr->trw_flags & FATAL) { in tirdwrwput()
362 struct trw_trw *trwptr; in send_fatal() local
364 trwptr = (struct trw_trw *)q->q_ptr; in send_fatal()
366 trwptr->trw_flags |= FATAL; in send_fatal()