Lines Matching defs:new_ccb
496 union ccb *new_ccb;
500 new_ccb = (union ccb *)malloc(sizeof(*new_ccb), M_CTLFE,
502 if (new_ccb == NULL) {
508 free(new_ccb, M_CTLFE);
516 free(new_ccb, M_CTLFE);
522 new_ccb->ccb_h.io_ptr = new_io;
523 LIST_INSERT_HEAD(&softc->atio_list, &new_ccb->ccb_h, periph_links.le);
525 xpt_setup_ccb(&new_ccb->ccb_h, periph->path, CAM_PRIORITY_NONE);
526 new_ccb->ccb_h.func_code = XPT_ACCEPT_TARGET_IO;
527 new_ccb->ccb_h.cbfcnp = ctlfedone;
528 new_ccb->ccb_h.flags |= CAM_UNLOCKED;
529 xpt_action(new_ccb);
530 status = new_ccb->ccb_h.status;
534 free(new_ccb, M_CTLFE);
553 union ccb *new_ccb;
556 new_ccb = (union ccb *)malloc(sizeof(*new_ccb), M_CTLFE,
558 if (new_ccb == NULL) {
564 free(new_ccb, M_CTLFE);
569 new_ccb->ccb_h.io_ptr = new_io;
570 LIST_INSERT_HEAD(&softc->inot_list, &new_ccb->ccb_h, periph_links.le);
572 xpt_setup_ccb(&new_ccb->ccb_h, periph->path, CAM_PRIORITY_NONE);
573 new_ccb->ccb_h.func_code = XPT_IMMEDIATE_NOTIFY;
574 new_ccb->ccb_h.cbfcnp = ctlfedone;
575 new_ccb->ccb_h.flags |= CAM_UNLOCKED;
576 xpt_action(new_ccb);
577 status = new_ccb->ccb_h.status;