Lines Matching defs:reqsize
389 pmsControl(uint32_t request, user_addr_t reqaddr, uint32_t reqsize)
434 if((reqsize > (pmsMaxStates * sizeof(pmsDef))) || (reqsize < (pmsFree * sizeof(pmsDef)))) { /* Check that the size is reasonable */
441 if (reqsize != sizeof(pmsCtls)) {
445 ret = copyout(&pmsCtls, reqaddr, reqsize);
450 if (reqsize != sizeof(pmsStatsd)) { /* request size is fixed */
454 ret = copyout(&pmsStatsd, reqaddr, reqsize);
497 if(!(ndefs = (pmsDef *)kalloc(reqsize))) { /* Get memory for the whole thing */
503 ret = copyin(reqaddr, (void *)ndefs, reqsize); /* Get the new config table */
505 kfree(ndefs, reqsize); /* Free up the copied in data */
511 kret = pmsBuild(ndefs, reqsize, NULL, 0, NULL); /* Go build and replace the tables. Make sure we keep the old platform stuff */
513 kfree(ndefs, reqsize); /* Free up the copied in data */