Lines Matching defs:camq
57 struct camq *
60 struct camq *camq;
62 camq = (struct camq *)malloc(sizeof(*camq), M_CAMQ, M_NOWAIT);
63 if (camq != NULL) {
64 if (camq_init(camq, size) != 0) {
65 free(camq, M_CAMQ);
66 camq = NULL;
69 return (camq);
73 camq_init(struct camq *camq, int size)
75 bzero(camq, sizeof(*camq));
76 camq->array_size = size;
77 if (camq->array_size != 0) {
78 camq->queue_array = (cam_pinfo**)malloc(size*sizeof(cam_pinfo*),
80 if (camq->queue_array == NULL) {
88 camq->queue_array--;
94 * Free a camq structure. This should only be called if a controller
96 * obtained a camq structure. The XPT should ensure that the queue
100 camq_free(struct camq *queue)
109 camq_fini(struct camq *queue)
122 camq_resize(struct camq *queue, int new_size)
157 camq_insert(struct camq *queue, cam_pinfo *new_entry)
177 camq_remove(struct camq *queue, int index)
204 camq_change_priority(struct camq *queue, int index, u_int32_t new_priority)
256 cam_devq_resize(struct cam_devq *camq, int devices)
260 retval = camq_resize(&camq->send_queue, devices);