Lines Matching refs:alloc_len

2070 	u32 alloc_len, n;  in resp_inquiry()  local
2074 alloc_len = get_unaligned_be16(cmd + 3); in resp_inquiry()
2188 len = min_t(u32, get_unaligned_be16(arr + 2) + 4, alloc_len); in resp_inquiry()
2226 min_t(u32, alloc_len, SDEBUG_LONG_INQ_SZ)); in resp_inquiry()
2241 u32 alloc_len = cmd[4]; in resp_requests() local
2286 return fill_from_dev_buffer(scp, arr, min_t(u32, len, alloc_len)); in resp_requests()
2376 u32 alloc_len; in resp_readcap16() local
2378 alloc_len = get_unaligned_be32(cmd + 10); in resp_readcap16()
2412 min_t(u32, alloc_len, SDEBUG_READCAP16_ARR_SZ)); in resp_readcap16()
2500 u32 alloc_len, a_len; in resp_rsup_opcodes() local
2512 alloc_len = get_unaligned_be32(cmd + 6); in resp_rsup_opcodes()
2513 if (alloc_len < 4 || alloc_len > 0xffff) { in resp_rsup_opcodes()
2517 if (alloc_len > 8192) in resp_rsup_opcodes()
2520 a_len = alloc_len; in resp_rsup_opcodes()
2640 len = (offset < alloc_len) ? offset : alloc_len; in resp_rsup_opcodes()
2650 u32 alloc_len, len; in resp_rsup_tmfs() local
2656 alloc_len = get_unaligned_be32(cmd + 6); in resp_rsup_tmfs()
2657 if (alloc_len < 4) { in resp_rsup_tmfs()
2669 len = (len < alloc_len) ? len : alloc_len; in resp_rsup_tmfs()
2965 u32 alloc_len, offset, len; in resp_mode_sense() local
2989 alloc_len = msense_6 ? cmd[4] : get_unaligned_be16(cmd + 7); in resp_mode_sense()
3159 return fill_from_dev_buffer(scp, arr, min_t(u32, alloc_len, offset)); in resp_mode_sense()
3347 u32 alloc_len, len, n; in resp_log_sense() local
3360 alloc_len = get_unaligned_be16(cmd + 7); in resp_log_sense()
3438 len = min_t(u32, get_unaligned_be16(arr + 2) + 4, alloc_len); in resp_log_sense()
5554 u32 alloc_len, mapped, num; in resp_get_lba_status() local
5559 alloc_len = get_unaligned_be32(cmd + 10); in resp_get_lba_status()
5561 if (alloc_len < 24) in resp_get_lba_status()
5596 u32 alloc_len, offset; in resp_get_stream_status() local
5601 alloc_len = get_unaligned_be32(cmd + 10); in resp_get_stream_status()
5603 if (alloc_len < 8) { in resp_get_stream_status()
5621 offset + 8 <= min_t(u32, alloc_len, sizeof(arr)) && in resp_get_stream_status()
5633 return fill_from_dev_buffer(scp, arr, min(offset, alloc_len)); in resp_get_stream_status()
5728 unsigned int alloc_len; in resp_report_luns() local
5744 alloc_len = get_unaligned_be32(cmd + 6); in resp_report_luns()
5746 if (alloc_len < 4) { in resp_report_luns()
5747 pr_err("alloc len too small %d\n", alloc_len); in resp_report_luns()
5901 u32 alloc_len, rep_opts, rep_len; in resp_report_zones() local
5914 alloc_len = get_unaligned_be32(cmd + 10); in resp_report_zones()
5915 if (alloc_len == 0) in resp_report_zones()
5925 rep_max_zones = (alloc_len - 64) >> ilog2(RZONES_DESC_HD); in resp_report_zones()
5927 arr = kzalloc(alloc_len, GFP_ATOMIC | __GFP_NOWARN); in resp_report_zones()
6029 ret = fill_from_dev_buffer(scp, arr, min_t(u32, alloc_len, rep_len)); in resp_report_zones()