Lines Matching refs:alloc_len

1573 	u32 alloc_len, n;  in resp_inquiry()  local
1577 alloc_len = get_unaligned_be16(cmd + 3); in resp_inquiry()
1689 len = min_t(u32, get_unaligned_be16(arr + 2) + 4, alloc_len); in resp_inquiry()
1727 min_t(u32, alloc_len, SDEBUG_LONG_INQ_SZ)); in resp_inquiry()
1742 u32 alloc_len = cmd[4]; in resp_requests() local
1787 return fill_from_dev_buffer(scp, arr, min_t(u32, len, alloc_len)); in resp_requests()
1869 u32 alloc_len; in resp_readcap16() local
1871 alloc_len = get_unaligned_be32(cmd + 10); in resp_readcap16()
1905 min_t(u32, alloc_len, SDEBUG_READCAP16_ARR_SZ)); in resp_readcap16()
1993 u32 alloc_len, a_len; in resp_rsup_opcodes() local
2004 alloc_len = get_unaligned_be32(cmd + 6); in resp_rsup_opcodes()
2005 if (alloc_len < 4 || alloc_len > 0xffff) { in resp_rsup_opcodes()
2009 if (alloc_len > 8192) in resp_rsup_opcodes()
2012 a_len = alloc_len; in resp_rsup_opcodes()
2132 len = (offset < alloc_len) ? offset : alloc_len; in resp_rsup_opcodes()
2142 u32 alloc_len, len; in resp_rsup_tmfs() local
2148 alloc_len = get_unaligned_be32(cmd + 6); in resp_rsup_tmfs()
2149 if (alloc_len < 4) { in resp_rsup_tmfs()
2161 len = (len < alloc_len) ? len : alloc_len; in resp_rsup_tmfs()
2332 u32 alloc_len, offset, len; in resp_mode_sense() local
2352 alloc_len = msense_6 ? cmd[4] : get_unaligned_be16(cmd + 7); in resp_mode_sense()
2489 return fill_from_dev_buffer(scp, arr, min_t(u32, alloc_len, offset)); in resp_mode_sense()
2617 u32 alloc_len, len, n; in resp_log_sense() local
2630 alloc_len = get_unaligned_be16(cmd + 7); in resp_log_sense()
2708 len = min_t(u32, get_unaligned_be16(arr + 2) + 4, alloc_len); in resp_log_sense()
4170 u32 alloc_len, mapped, num; in resp_get_lba_status() local
4175 alloc_len = get_unaligned_be32(cmd + 10); in resp_get_lba_status()
4177 if (alloc_len < 24) in resp_get_lba_status()
4296 unsigned int alloc_len; in resp_report_luns() local
4312 alloc_len = get_unaligned_be32(cmd + 6); in resp_report_luns()
4314 if (alloc_len < 4) { in resp_report_luns()
4315 pr_err("alloc len too small %d\n", alloc_len); in resp_report_luns()
4469 u32 alloc_len, rep_opts, rep_len; in resp_report_zones() local
4482 alloc_len = get_unaligned_be32(cmd + 10); in resp_report_zones()
4483 if (alloc_len == 0) in resp_report_zones()
4493 rep_max_zones = (alloc_len - 64) >> ilog2(RZONES_DESC_HD); in resp_report_zones()
4495 arr = kzalloc(alloc_len, GFP_ATOMIC | __GFP_NOWARN); in resp_report_zones()
4597 ret = fill_from_dev_buffer(scp, arr, min_t(u32, alloc_len, rep_len)); in resp_report_zones()