Lines Matching refs:buf
95 prom_read(ihandle_t fd, caddr_t buf, size_t len, uint_t startblk, char devtype)
102 if ((uintptr_t)buf > (uint32_t)-1) {
103 obuf = buf;
104 buf = promplat_alloc(len);
105 if (buf == NULL)
117 ci[4] = p1275_ptr2cell(buf); /* Arg2: buffer address */
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)
153 ASSERT(buf);
162 rlen = promif_redirect(promif_redirect_arg, (uchar_t *)buf,
169 if ((uintptr_t)buf > (uint32_t)-1) {
182 obuf = buf;
183 buf = promplat_alloc(len);
184 if (buf == NULL) {
187 promplat_bcopy(obuf, buf, len);
203 if ((uintptr_t)buf > (uint32_t)-1) {
205 * If buf is small enough, use smallbuf
212 promplat_bcopy(buf, smallbuf, len);
213 buf = smallbuf;
222 ci[4] = p1275_ptr2cell(buf); /* Arg2: buffer addr */
234 promplat_free(buf, len);