Lines Matching refs:alloc_len
1565 int alloc_len, n, ret; in resp_inquiry() local
1568 alloc_len = get_unaligned_be16(cmd + 3); in resp_inquiry()
1679 len = min(get_unaligned_be16(arr + 2) + 4, alloc_len); in resp_inquiry()
1717 min_t(int, alloc_len, SDEBUG_LONG_INQ_SZ)); in resp_inquiry()
1732 int alloc_len = cmd[4]; in resp_requests() local
1777 return fill_from_dev_buffer(scp, arr, min_t(int, len, alloc_len)); in resp_requests()
1859 int alloc_len; in resp_readcap16() local
1861 alloc_len = get_unaligned_be32(cmd + 10); in resp_readcap16()
1888 min_t(int, alloc_len, SDEBUG_READCAP16_ARR_SZ)); in resp_readcap16()
1975 u32 alloc_len, a_len; in resp_rsup_opcodes() local
1986 alloc_len = get_unaligned_be32(cmd + 6); in resp_rsup_opcodes()
1987 if (alloc_len < 4 || alloc_len > 0xffff) { in resp_rsup_opcodes()
1991 if (alloc_len > 8192) in resp_rsup_opcodes()
1994 a_len = alloc_len; in resp_rsup_opcodes()
2114 len = (offset < alloc_len) ? offset : alloc_len; in resp_rsup_opcodes()
2124 u32 alloc_len, len; in resp_rsup_tmfs() local
2130 alloc_len = get_unaligned_be32(cmd + 6); in resp_rsup_tmfs()
2131 if (alloc_len < 4) { in resp_rsup_tmfs()
2143 len = (len < alloc_len) ? len : alloc_len; in resp_rsup_tmfs()
2314 int alloc_len, offset, len, target_dev_id; in resp_mode_sense() local
2333 alloc_len = msense_6 ? cmd[4] : get_unaligned_be16(cmd + 7); in resp_mode_sense()
2470 return fill_from_dev_buffer(scp, arr, min_t(int, alloc_len, offset)); in resp_mode_sense()
2585 int ppc, sp, pcode, subpcode, alloc_len, len, n; in resp_log_sense() local
2598 alloc_len = get_unaligned_be16(cmd + 7); in resp_log_sense()
2655 len = min_t(int, get_unaligned_be16(arr + 2) + 4, alloc_len); in resp_log_sense()
4010 u32 alloc_len, mapped, num; in resp_get_lba_status() local
4015 alloc_len = get_unaligned_be32(cmd + 10); in resp_get_lba_status()
4017 if (alloc_len < 24) in resp_get_lba_status()
4137 unsigned int alloc_len; in resp_report_luns() local
4153 alloc_len = get_unaligned_be32(cmd + 6); in resp_report_luns()
4155 if (alloc_len < 4) { in resp_report_luns()
4156 pr_err("alloc len too small %d\n", alloc_len); in resp_report_luns()
4309 u32 alloc_len, rep_opts, rep_len; in resp_report_zones() local
4323 alloc_len = get_unaligned_be32(cmd + 10); in resp_report_zones()
4333 rep_max_zones = min((alloc_len - 64) >> ilog2(RZONES_DESC_HD), in resp_report_zones()
4336 arr = kcalloc(RZONES_DESC_HD, alloc_len, GFP_ATOMIC); in resp_report_zones()
4428 ret = fill_from_dev_buffer(scp, arr, min_t(int, alloc_len, rep_len)); in resp_report_zones()