Lines Matching refs:ccbq
325 if ((dev->ccbq.queue.entries > 0) && in xpt_schedule_devq()
326 (dev->ccbq.dev_openings > 0) && in xpt_schedule_devq()
327 (dev->ccbq.queue.qfrozen_cnt == 0)) { in xpt_schedule_devq()
336 CAMQ_GET_PRIO(&dev->ccbq.queue)); in xpt_schedule_devq()
2596 cam_ccbq_insert_ccb(&path->device->ccbq, start_ccb); in xpt_action_default()
2627 cam_ccbq_remove_ccb(&device->ccbq, abort_ccb); in xpt_action_default()
2734 cgds->dev_openings = dev->ccbq.dev_openings; in xpt_action_default()
2735 cgds->dev_active = dev->ccbq.dev_active; in xpt_action_default()
2736 cgds->allocated = dev->ccbq.allocated; in xpt_action_default()
2737 cgds->queued = cam_ccbq_pending_ccb_count(&dev->ccbq); in xpt_action_default()
2987 || (dev->ccbq.dev_active == 0)) { in xpt_action_default()
2998 start_ccb->crs.qfrozen_cnt = dev->ccbq.queue.qfrozen_cnt; in xpt_action_default()
3118 dev->ccbq.dev_openings--; in xpt_poll_setup()
3119 while((devq->send_openings <= 0 || dev->ccbq.dev_openings < 0) && in xpt_poll_setup()
3126 dev->ccbq.dev_openings++; in xpt_poll_setup()
3251 device->ccbq.total_openings || prio <= CAM_PRIORITY_OOB)) { in xpt_run_allocq()
3309 work_ccb = cam_ccbq_peek_ccb(&device->ccbq, CAMQ_HEAD); in xpt_run_devq()
3339 cam_ccbq_remove_ccb(&device->ccbq, work_ccb); in xpt_run_devq()
3340 cam_ccbq_send_ccb(&device->ccbq, work_ccb); in xpt_run_devq()
3429 ccb_h->pinfo.generation = ++path->device->ccbq.queue.generation; in xpt_setup_ccb_flags()
3852 cam_ccbq_release_opening(&device->ccbq); in xpt_release_ccb()
4351 dev->ccbq.queue.qfrozen_cnt, dev->ccbq.queue.qfrozen_cnt + count)); in xpt_freeze_devq_device()
4352 freeze = (dev->ccbq.queue.qfrozen_cnt += count); in xpt_freeze_devq_device()
4424 dev->ccbq.queue.qfrozen_cnt, dev->ccbq.queue.qfrozen_cnt - count)); in xpt_release_devq_device()
4425 if (count > dev->ccbq.queue.qfrozen_cnt) { in xpt_release_devq_device()
4428 count, dev->ccbq.queue.qfrozen_cnt); in xpt_release_devq_device()
4430 count = dev->ccbq.queue.qfrozen_cnt; in xpt_release_devq_device()
4432 dev->ccbq.queue.qfrozen_cnt -= count; in xpt_release_devq_device()
4433 if (dev->ccbq.queue.qfrozen_cnt == 0) { in xpt_release_devq_device()
4591 cam_ccbq_take_opening(&periph->path->device->ccbq); in xpt_get_ccb_nowait()
4612 cam_ccbq_take_opening(&periph->path->device->ccbq); in xpt_get_ccb()
4786 if (cam_ccbq_init(&device->ccbq, in xpt_alloc_device()
4862 cam_ccbq_fini(&device->ccbq); in xpt_release_device()
4887 result = cam_ccbq_resize(&dev->ccbq, newopenings); in xpt_dev_ccbq_resize()
5333 cam_ccbq_ccb_done(&dev->ccbq, (union ccb *)ccb_h); in xpt_done_process()
5336 && (dev->ccbq.dev_active == 0))) { in xpt_done_process()