Lines Matching refs:total_len
456 int alloc_len, total_len;
464 total_len = sizeof(*data) + 4;
467 ctsio->kern_data_ptr = malloc(total_len, M_CTL, M_WAITOK | M_ZERO);
470 ctsio->kern_data_len = min(total_len, alloc_len);
525 int alloc_len, total_len;
552 total_len = sizeof(*data);
555 ctsio->kern_data_ptr = malloc(total_len, M_CTL, M_WAITOK | M_ZERO);
558 ctsio->kern_data_len = min(total_len, alloc_len);
595 int alloc_len, total_len;
620 total_len = sizeof(*data) + list_copy.sense_len;
623 ctsio->kern_data_ptr = malloc(total_len, M_CTL, M_WAITOK | M_ZERO);
626 ctsio->kern_data_len = min(total_len, alloc_len);
655 int alloc_len, total_len;
682 total_len = sizeof(*data) + list_copy.sense_len;
685 ctsio->kern_data_ptr = malloc(total_len, M_CTL, M_WAITOK | M_ZERO);
688 ctsio->kern_data_len = min(total_len, alloc_len);
2344 int alloc_len, total_len, token_len;
2372 total_len = sizeof(*data) + list_copy.sense_len + 4 + token_len;
2375 ctsio->kern_data_ptr = malloc(total_len, M_CTL, M_WAITOK | M_ZERO);
2378 ctsio->kern_data_len = min(total_len, alloc_len);
2428 int alloc_len, total_len, tokens, i;
2443 total_len = sizeof(*data) + tokens * 96;
2446 ctsio->kern_data_ptr = malloc(total_len, M_CTL, M_WAITOK | M_ZERO);
2449 ctsio->kern_data_len = min(total_len, alloc_len);