Lines Matching refs:ops
39 extern struct bootops *ops;
52 BRD_MOUNTROOT(struct boot_fs_ops *ops, char *str)
54 return (ops->fsw_mountroot(str));
58 BRD_UNMOUNTROOT(struct boot_fs_ops *ops)
63 return (ops->fsw_unmountroot());
67 BRD_OPEN(struct boot_fs_ops *ops, char *file, int flags)
86 return (ops->fsw_open(file, flags));
90 BRD_CLOSE(struct boot_fs_ops *ops, int fd)
95 return (ops->fsw_close(fd));
99 BRD_READ(struct boot_fs_ops *ops, int fd, caddr_t buf, size_t len)
106 return (ops->fsw_read(fd, buf, len));
110 BRD_SEEK(struct boot_fs_ops *ops, int fd, off_t addr, int whence)
117 return (ops->fsw_lseek(fd, addr, whence));
121 BRD_FSTAT(struct boot_fs_ops *ops, int fd, struct bootstat *bsp)
126 return (ops->fsw_fstat(fd, bsp));
145 _kobj_printf(ops, "diskread: start = 0x%p, size = 0x%x\n",
147 _kobj_printf(ops, "reading beyond end of ramdisk\n");
166 if (BOP_GETPROPLEN(ops, "ramdisk_start") != 8 ||
167 BOP_GETPROP(ops, "ramdisk_start", (void *)&rd_start) != 0 ||
168 BOP_GETPROPLEN(ops, "ramdisk_end") != 8 ||
169 BOP_GETPROP(ops, "ramdisk_end", (void *)&rd_end) != 0) {
170 _kobj_printf(ops,
175 _kobj_printf(ops,
184 _kobj_printf(ops, "failed to mount ramdisk from boot\n");
193 _kobj_printf(ops, "boot scratch memory used: 0x%lx\n",
217 addr = BOP_ALLOC(ops, 0, size, 0);
241 _kobj_printf(ops, fmt, adx);