Lines Matching refs:mem_needed
403 int doio_pat_fill(char *addr, int mem_needed, char *Pattern,
2086 int mem_needed; in do_listio() local
2116 mem_needed = in do_listio()
2120 if ((rval = alloc_mem(mem_needed + wtob(1))) < 0) { in do_listio()
2138 (*Data_Fill) (Memptr, mem_needed, Pattern, Pattern_Length, 0); in do_listio()
2140 memmove(addr, Memptr, mem_needed); in do_listio()
2204 lio_req.li_buf = addr + mem_needed - lio->r_nbytes; in do_listio()
2279 moffset = addr + mem_needed - lio->r_nbytes; in do_listio()
3059 int rval, mem_needed, i; in do_rw() local
3130 mem_needed = (*sy->sy_buffer) (req, 0, 0, NULL, NULL); in do_rw()
3132 mem_needed = nbytes; in do_rw()
3137 alloc_mem(mem_needed + wtob(1) * 2 + in do_rw()
3146 if ((rval = alloc_mem(mem_needed + wtob(1) * 2 + fdc->c_memalign)) < 0) { in do_rw()
3151 if ((rval = alloc_mem(mem_needed + wtob(1) * 2)) < 0) { in do_rw()
3174 if (sswrite((long)Memptr, Sdsptr, btoc(mem_needed)) == in do_rw()
3179 btoc(mem_needed), SYSERR, errno); in do_rw()
3232 (*Data_Fill) (Memptr, mem_needed, Pattern, in do_rw()
3235 memmove(addr, Memptr, mem_needed); in do_rw()
3424 if (s->rval != mem_needed) { in do_rw()
3637 doio_pat_fill(char *addr, int mem_needed, char *Pattern, int Pattern_Length, in doio_pat_fill() argument
3640 return pattern_fill(addr, mem_needed, Pattern, Pattern_Length, 0); in doio_pat_fill()