Lines Matching refs:descr
536 struct targbh_cmd_desc *descr;
541 descr = (struct targbh_cmd_desc*)atio->ccb_h.ccb_descr;
545 targbhfreedescr(descr);
579 descr->data_resid = 0;
580 descr->data_increment = 0;
581 descr->status = SCSI_STATUS_CHECK_COND;
590 descr->data = &no_lun_inq_data;
591 descr->data_resid = MIN(sizeof(no_lun_inq_data),
593 descr->data_increment = descr->data_resid;
594 descr->timeout = 5 * 1000;
595 descr->status = SCSI_STATUS_OK;
606 descr->data = &no_lun_sense_data;
607 descr->data_resid = request_sense_size;
608 descr->data_resid = MIN(descr->data_resid,
610 descr->data_increment = descr->data_resid;
611 descr->timeout = 5 * 1000;
612 descr->status = SCSI_STATUS_OK;
624 descr->data_resid = 0;
625 descr->data_increment = 0;
626 descr->timeout = 5 * 1000;
627 descr->status = SCSI_STATUS_CHECK_COND;
740 struct targbh_cmd_desc* descr;
743 descr = (struct targbh_cmd_desc *)malloc(sizeof(*descr),
745 if (descr == NULL)
748 bzero(descr, sizeof(*descr));
751 descr->backing_store = malloc(MAX_BUF_SIZE, M_SCSIBH, M_NOWAIT);
752 if (descr->backing_store == NULL) {
753 free(descr, M_SCSIBH);
756 descr->max_size = MAX_BUF_SIZE;
757 return (descr);
761 targbhfreedescr(struct targbh_cmd_desc *descr)
763 free(descr->backing_store, M_SCSIBH);
764 free(descr, M_SCSIBH);