Lines Matching refs:rlen
37 static int diag8_response(int cmdlen, char *response, int *rlen) in diag8_response() argument
45 ry.odd = *rlen; in diag8_response()
54 *rlen += ry.odd; in diag8_response()
56 *rlen = ry.odd; in diag8_response()
64 int __cpcmd(const char *cmd, char *response, int rlen, int *response_code) in __cpcmd() argument
77 memset(response, 0, rlen); in __cpcmd()
78 response_len = rlen; in __cpcmd()
79 rc = diag8_response(cmdlen, response, &rlen); in __cpcmd()
86 return rlen; in __cpcmd()
90 int cpcmd(const char *cmd, char *response, int rlen, int *response_code) in cpcmd() argument
97 lowbuf = kmalloc(rlen, GFP_KERNEL); in cpcmd()
103 len = __cpcmd(cmd, lowbuf, rlen, response_code); in cpcmd()
105 memcpy(response, lowbuf, rlen); in cpcmd()
109 len = __cpcmd(cmd, response, rlen, response_code); in cpcmd()