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