Lines Matching refs:len
39 size_t len;
43 len = prom_strlen(opath) + 1; /* include terminating NUL */
44 path = promplat_alloc(len);
66 promplat_free(path, len);
95 prom_read(ihandle_t fd, caddr_t buf, size_t len, uint_t startblk, char devtype)
104 buf = promplat_alloc(len);
118 ci[5] = p1275_uint2cell(len); /* Arg3: buffer length */
128 promplat_bcopy(buf, obuf, len);
129 promplat_free(buf, len);
143 prom_write(ihandle_t fd, caddr_t buf, size_t len, uint_t startblk, char devtype)
163 len);
181 if (len > sizeof (smallbuf)) {
183 buf = promplat_alloc(len);
187 promplat_bcopy(obuf, buf, len);
211 if (len <= sizeof (smallbuf)) {
212 promplat_bcopy(buf, smallbuf, len);
223 ci[5] = p1275_size2cell(len); /* Arg3: buffer len */
227 rlen = p1275_cell2size(ci[6]); /* Res1: actual len */
234 promplat_free(buf, len);