Home
last modified time | relevance | path

Searched refs:width (Results 1 – 13 of 13) sorted by relevance

/kernel/lib/pci/
A Dpio.cpp28 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 Dgfx.cpp109 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 Dreg.h18 #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 Dgfx.h31 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 Dpio.h26 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 Dgfxconsole.cpp62 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 Dsecond_level_pt.cpp23 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 Ddisplay.h34 uint width; member
/kernel/syscalls/
A Dddk_pci.cpp461 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 Dddk.cpp129 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 Dprintf.c205 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 Dresource_dispatcher.cpp234 static void pad_field(int width) { in pad_field() argument
235 printf("\t%.*s", width, " "); in pad_field()
/kernel/platform/pc/
A Dplatform.cpp245 info.width = bootloader.fb.width; in platform_early_display_init()
268 info.width = bootloader.fb.width; in platform_ensure_display_memtype()

Completed in 52 milliseconds