| /kernel/lib/pci/ |
| A D | pio.cpp | 28 static constexpr uint32_t WidthMask(size_t width) { in WidthMask() argument 29 return (width == 32) ? 0xffffffff : (1u << width) - 1u; in WidthMask() 32 zx_status_t PioCfgRead(uint32_t addr, uint32_t* val, size_t width) { in PioCfgRead() argument 36 if (shift + width > 32) { in PioCfgRead() 42 uint32_t width_mask = WidthMask(width); in PioCfgRead() 54 zx_status_t PioCfgWrite(uint32_t addr, uint32_t val, size_t width) { in PioCfgWrite() argument 58 if (shift + width > 32) { in PioCfgWrite() 62 uint32_t width_mask = WidthMask(width); in PioCfgWrite() 81 zx_status_t PioCfgRead(uint32_t addr, uint32_t* val, size_t width) { 86 uint32_t* val, size_t width) { [all …]
|
| /kernel/lib/gfx/ |
| A D | gfx.cpp | 109 if (x + width > surface->width) in gfx_copyrect() 110 width = surface->width - x; in gfx_copyrect() 111 if (x2 + width > surface->width) in gfx_copyrect() 112 width = surface->width - x2; in gfx_copyrect() 137 if (x + width > surface->width) in gfx_fillrect() 138 width = surface->width - x; in gfx_fillrect() 331 uint width = source->width; in gfx_surface_blend() local 332 if (destx + width > target->width) in gfx_surface_blend() 333 width = target->width - destx; in gfx_surface_blend() 444 if (unlikely(x > (surface->width - font->width))) { in gfx_putchar() [all …]
|
| /kernel/include/ |
| A D | reg.h | 18 #define RMWREG64(addr, startbit, width, val) *REG64(addr) = (*REG64(addr) & ~(((1<<(width)) - 1) <<… argument 19 #define RMWREG32(addr, startbit, width, val) *REG32(addr) = (*REG32(addr) & ~(((1<<(width)) - 1) <<… argument 20 #define RMWREG16(addr, startbit, width, val) *REG16(addr) = (*REG16(addr) & ~(((1<<(width)) - 1) <<… argument 21 #define RMWREG8(addr, startbit, width, val) *REG8(addr) = (*REG8(addr) & ~(((1<<(width)) - 1) << (s… argument
|
| /kernel/lib/gfx/include/lib/ |
| A D | gfx.h | 31 unsigned width; member 48 uint width; member 57 … void (*copyrect)(struct gfx_surface*, uint x, uint y, uint width, uint height, uint x2, uint y2); 58 void (*fillrect)(struct gfx_surface*, uint x, uint y, uint width, uint height, uint color); 69 void gfx_copyrect(gfx_surface* surface, uint x, uint y, uint width, uint height, uint x2, uint y2); 72 void gfx_fillrect(gfx_surface* surface, uint x, uint y, uint width, uint height, uint color); 94 surface->fillrect(surface, 0, 0, surface->width, surface->height, color); in gfx_clear() 99 gfx_surface* gfx_create_surface(void* ptr, uint width, uint height, uint stride, gfx_format format,… 100 zx_status_t gfx_init_surface(gfx_surface* surface, void* ptr, uint width, uint height, uint stride,…
|
| /kernel/lib/pci/include/lib/pci/ |
| A D | pio.h | 26 zx_status_t PioCfgRead(uint32_t addr, uint32_t* val, size_t width); 28 uint32_t* val, size_t width); 31 zx_status_t PioCfgWrite(uint32_t addr, uint32_t val, size_t width); 33 uint32_t val, size_t width);
|
| /kernel/lib/gfxconsole/ |
| A D | gfxconsole.cpp | 62 gfxconsole.x * font->width, gfxconsole.y * font->height, in draw_char() 128 gfx_copyrect(gfxconsole.surface, 0, font->height, gfxconsole.surface->width, in gfxconsole_putc() 134 gfxconsole.surface->width, font->height, gfxconsole.back_color); in gfxconsole_putc() 193 gfxconsole.columns = surface->width / font->width; in gfxconsole_setup() 214 gfx_fillrect(gfxconsole.surface, 0, 0, gfxconsole.surface->width, gfxconsole.surface->height, in gfxconsole_clear() 288 if ((hw.format == hw_surface.format) && (hw.width == hw_surface.width) && in gfxconsole_bind_display() 307 if (gfx_init_surface(&sw_surface, raw_sw_fb, hw_surface.width, in gfxconsole_bind_display()
|
| /kernel/dev/iommu/intel/ |
| A D | second_level_pt.cpp | 23 uint width; in compute_vaddr_mask() local 25 case PD_L: width = 30; break; in compute_vaddr_mask() 26 case PDP_L: width = 39; break; in compute_vaddr_mask() 27 case PML4_L: width = 48; break; in compute_vaddr_mask() 33 return ((1ull << width) - 1) & ~(PAGE_SIZE - 1); in compute_vaddr_mask()
|
| /kernel/include/dev/ |
| A D | display.h | 34 uint width; member
|
| /kernel/syscalls/ |
| A D | ddk_pci.cpp | 461 zx_status_t sys_pci_config_read(zx_handle_t handle, uint16_t offset, size_t width, in sys_pci_config_read() argument 476 if (out_val.get() == nullptr || offset + width > cfg_size) { in sys_pci_config_read() 484 switch (width) { in sys_pci_config_read() 498 zx_status_t sys_pci_config_write(zx_handle_t handle, uint16_t offset, size_t width, uint32_t val) { in sys_pci_config_write() argument 513 if (offset < ZX_PCI_STANDARD_CONFIG_HDR_SIZE || offset + width > cfg_size) { in sys_pci_config_write() 518 switch (width) { in sys_pci_config_write() 539 … uint8_t offset, user_inout_ptr<uint32_t> val, size_t width, bool write) { in sys_pci_cfg_pio_rw() argument 549 status = Pci::PioCfgWrite(bus, dev, func, offset, val_, width); in sys_pci_cfg_pio_rw() 551 status = Pci::PioCfgRead(bus, dev, func, offset, &val_, width); in sys_pci_cfg_pio_rw() 776 zx_status_t sys_pci_config_read(zx_handle_t handle, uint16_t offset, size_t width, in sys_pci_config_read() argument [all …]
|
| A D | ddk.cpp | 129 user_out_ptr<uint32_t> width, user_out_ptr<uint32_t> height, in sys_framebuffer_get_info() argument 140 status = width.copy_to_user(bootloader.fb.width); in sys_framebuffer_get_info() 156 …_t hrsrc, zx_handle_t vmo_handle, uint32_t len, uint32_t format, uint32_t width, uint32_t height, … in sys_framebuffer_set_range() argument 181 di.width = width; in sys_framebuffer_set_range()
|
| /kernel/lib/libc/ |
| A D | printf.c | 205 int width = va_arg(ap, int); in PRINTF_DECL() local 206 if (width < 0) { in PRINTF_DECL() 208 width = -width; in PRINTF_DECL() 210 format_num = width; in PRINTF_DECL()
|
| /kernel/object/ |
| A D | resource_dispatcher.cpp | 234 static void pad_field(int width) { in pad_field() argument 235 printf("\t%.*s", width, " "); in pad_field()
|
| /kernel/platform/pc/ |
| A D | platform.cpp | 245 info.width = bootloader.fb.width; in platform_early_display_init() 268 info.width = bootloader.fb.width; in platform_ensure_display_memtype()
|