Lines Matching refs:alloc_len
941 int alloc_len;
945 alloc_len = sizeof (struct scsi_inquiry);
946 if ((*inq_buf = (struct scsi_inquiry *)calloc(1, alloc_len)) == NULL) {
956 sizeof (scsi_inq_req), *inq_buf, alloc_len, &sensebuf,
990 int alloc_len;
994 alloc_len = sizeof (struct report_lun_resp);
995 if ((*resp_buf = (report_lun_resp_t *)calloc(1, alloc_len)) == NULL) {
1008 sizeof (scsi_rl_req), *resp_buf, alloc_len, sensebuf,
1011 FORMG5COUNT(&scsi_rl_req, alloc_len);
1021 alloc_len = (*resp_buf)->num_lun + REPORT_LUN_HDR_SIZE;
1023 if ((*resp_buf = (report_lun_resp_t *)calloc(1, alloc_len))
1028 (void) memset((char *)*resp_buf, 0, alloc_len);
1029 FORMG5COUNT(&scsi_rl_req, alloc_len);
1032 fscsi.scsi_buflen = alloc_len;