Searched refs:mxlen (Results 1 – 2 of 2) sorted by relevance
/external/sg3_utils/src/ |
D | sg_vpd_common.c | 199 vpd_fetch_page(int sg_fd, uint8_t * rp, int page, int mxlen, bool qt, in vpd_fetch_page() argument 206 if (vb && (len > mxlen)) in vpd_fetch_page() 208 "file (%d)\n", len , mxlen); in vpd_fetch_page() 210 *rlenp = (len < mxlen) ? len : mxlen; in vpd_fetch_page() 213 if (mxlen > MX_ALLOC_LEN) { in vpd_fetch_page() 214 pr2serr("--maxlen=LEN too long: %d > %d\n", mxlen, MX_ALLOC_LEN); in vpd_fetch_page() 217 n = (mxlen > 0) ? mxlen : DEF_ALLOC_LEN; in vpd_fetch_page() 244 if (mxlen < 0) in vpd_fetch_page() 252 } else if (mxlen) { in vpd_fetch_page()
|
D | sg_vpd_common.h | 275 int vpd_fetch_page(int sg_fd, uint8_t * rp, int page, int mxlen,
|