Lines Matching refs:bufstat
154 tifiocstate_t bufstat; in _tnfctl_prbk_buffer_alloc() local
158 if (ioctl(hdl->kfd, TIFIOCGSTATE, &bufstat) < 0) { in _tnfctl_prbk_buffer_alloc()
161 if (bufstat.buffer_state != TIFIOCBUF_NONE) { in _tnfctl_prbk_buffer_alloc()
189 tifiocstate_t bufstat; in _tnfctl_prbk_buffer_dealloc() local
193 if (ioctl(hdl->kfd, TIFIOCGSTATE, &bufstat) < 0) { in _tnfctl_prbk_buffer_dealloc()
196 if (bufstat.buffer_state == TIFIOCBUF_NONE) { in _tnfctl_prbk_buffer_dealloc()
200 if (bufstat.buffer_state == TIFIOCBUF_OK && !bufstat.trace_stopped) { in _tnfctl_prbk_buffer_dealloc()
327 tifiocstate_t bufstat; in prbk_get_buf_attrs() local
329 if (ioctl(hdl->kfd, TIFIOCGSTATE, &bufstat) < 0) { in prbk_get_buf_attrs()
334 hdl->trace_buf_size = bufstat.buffer_size; in prbk_get_buf_attrs()
335 if (bufstat.buffer_state == TIFIOCBUF_NONE) in prbk_get_buf_attrs()
337 else if (bufstat.buffer_state == TIFIOCBUF_BROKEN) in prbk_get_buf_attrs()