Home
last modified time | relevance | path

Searched +full:count +full:- +full:width (Results 1 – 25 of 1042) sorted by relevance

12345678910>>...42

/kernel/linux/linux-5.10/drivers/video/fbdev/core/
Dfbcon_ccw.c2 * linux/drivers/video/console/fbcon_ccw.c -- Software Rotation - 270 degrees
28 int i, j, offset = (vc->vc_font.height < 10) ? 1 : 2; in ccw_update_attr()
29 int width = (vc->vc_font.height + 7) >> 3; in ccw_update_attr() local
30 int mod = vc->vc_font.height % 8; in ccw_update_attr()
34 msk <<= (8 - mod); in ccw_update_attr()
39 for (i = 0; i < vc->vc_font.width; i++) { in ccw_update_attr()
40 for (j = 0; j < width; j++) { in ccw_update_attr()
44 if (j == width - 1) in ccw_update_attr()
47 if (msk1 && j == width - 2) in ccw_update_attr()
52 *(dst - width) |= c; in ccw_update_attr()
[all …]
Dfbcon_ud.c2 * linux/drivers/video/console/fbcon_ud.c -- Software Rotation - 180 degrees
28 int i, offset = (vc->vc_font.height < 10) ? 1 : 2; in ud_update_attr()
29 int width = (vc->vc_font.width + 7) >> 3; in ud_update_attr() local
30 unsigned int cellsize = vc->vc_font.height * width; in ud_update_attr()
33 offset = offset * width; in ud_update_attr()
49 int sx, int dy, int dx, int height, int width) in ud_bmove() argument
51 struct fbcon_ops *ops = info->fbcon_par; in ud_bmove()
53 u32 vyres = GETVYRES(ops->p, info); in ud_bmove()
54 u32 vxres = GETVXRES(ops->p, info); in ud_bmove()
56 area.sy = vyres - ((sy + height) * vc->vc_font.height); in ud_bmove()
[all …]
Dtileblit.c2 * linux/drivers/video/console/tileblit.c -- Tile Blitting Operation
21 int sx, int dy, int dx, int height, int width) in tile_bmove() argument
30 area.width = width; in tile_bmove()
32 info->tileops->fb_tilecopy(info, &area); in tile_bmove()
36 int sx, int height, int width) in tile_clear() argument
39 int bgshift = (vc->vc_hi_font_mask) ? 13 : 12; in tile_clear()
40 int fgshift = (vc->vc_hi_font_mask) ? 9 : 8; in tile_clear()
42 rect.index = vc->vc_video_erase_char & in tile_clear()
43 ((vc->vc_hi_font_mask) ? 0x1ff : 0xff); in tile_clear()
48 rect.width = width; in tile_clear()
[all …]
Dfbcon.c2 * linux/drivers/video/fbcon.c -- Low level frame buffer based console driver
27 * Hardware cursor support added by Emmanuel Marty (core@ggi-project.org)
28 * Smart redraw scrolling, arbitrary font width support, 512char font support
34 * 2001 - Documented with DocBook
35 * - Brad Douglas <brad@neruo.com>
51 * - Implement 16 plane mode (iplan2p16)
94 * - fbcon state itself is protected by the console_lock, and the code does a
97 * - access to the registered_fb array is entirely unprotected. This should use
101 * - fbcon doesn't bother with fb_lock/unlock at all. This is buggy, since it
111 FBCON_LOGO_CANSHOW = -1, /* the logo can be shown */
[all …]
Dfbcon_cw.c2 * linux/drivers/video/console/fbcon_ud.c -- Software Rotation - 90 degrees
28 int i, j, offset = (vc->vc_font.height < 10) ? 1 : 2; in cw_update_attr()
29 int width = (vc->vc_font.height + 7) >> 3; in cw_update_attr() local
32 for (i = 0; i < vc->vc_font.width; i++) { in cw_update_attr()
33 for (j = 0; j < width; j++) { in cw_update_attr()
38 c |= *(src-width); in cw_update_attr()
49 int sx, int dy, int dx, int height, int width) in cw_bmove() argument
51 struct fbcon_ops *ops = info->fbcon_par; in cw_bmove()
53 u32 vxres = GETVXRES(ops->p, info); in cw_bmove()
55 area.sx = vxres - ((sy + height) * vc->vc_font.height); in cw_bmove()
[all …]
Dbitblit.c2 * linux/drivers/video/console/bitblit.c -- BitBlitting Operation
28 int i, offset = (vc->vc_font.height < 10) ? 1 : 2; in update_attr()
29 int width = DIV_ROUND_UP(vc->vc_font.width, 8); in update_attr() local
30 unsigned int cellsize = vc->vc_font.height * width; in update_attr()
33 offset = cellsize - (offset * width); in update_attr()
47 int sx, int dy, int dx, int height, int width) in bit_bmove() argument
51 area.sx = sx * vc->vc_font.width; in bit_bmove()
52 area.sy = sy * vc->vc_font.height; in bit_bmove()
53 area.dx = dx * vc->vc_font.width; in bit_bmove()
54 area.dy = dy * vc->vc_font.height; in bit_bmove()
[all …]
/kernel/linux/linux-6.6/drivers/video/fbdev/core/
Dfbcon_ccw.c2 * linux/drivers/video/console/fbcon_ccw.c -- Software Rotation - 270 degrees
28 int i, j, offset = (vc->vc_font.height < 10) ? 1 : 2; in ccw_update_attr()
29 int width = (vc->vc_font.height + 7) >> 3; in ccw_update_attr() local
30 int mod = vc->vc_font.height % 8; in ccw_update_attr()
34 msk <<= (8 - mod); in ccw_update_attr()
39 for (i = 0; i < vc->vc_font.width; i++) { in ccw_update_attr()
40 for (j = 0; j < width; j++) { in ccw_update_attr()
44 if (j == width - 1) in ccw_update_attr()
47 if (msk1 && j == width - 2) in ccw_update_attr()
52 *(dst - width) |= c; in ccw_update_attr()
[all …]
Dfbcon.c2 * linux/drivers/video/fbcon.c -- Low level frame buffer based console driver
27 * Hardware cursor support added by Emmanuel Marty (core@ggi-project.org)
28 * Smart redraw scrolling, arbitrary font width support, 512char font support
34 * 2001 - Documented with DocBook
35 * - Brad Douglas <brad@neruo.com>
51 * - Implement 16 plane mode (iplan2p16)
86 * - fbcon state itself is protected by the console_lock, and the code does a
89 * - fbcon doesn't bother with fb_lock/unlock at all. This is buggy, since it
99 FBCON_LOGO_CANSHOW = -1, /* the logo can be shown */
100 FBCON_LOGO_DRAW = -2, /* draw the logo to a console */
[all …]
Dtileblit.c2 * linux/drivers/video/console/tileblit.c -- Tile Blitting Operation
20 int sx, int dy, int dx, int height, int width) in tile_bmove() argument
29 area.width = width; in tile_bmove()
31 info->tileops->fb_tilecopy(info, &area); in tile_bmove()
35 int sx, int height, int width, int fg, int bg) in tile_clear() argument
39 rect.index = vc->vc_video_erase_char & in tile_clear()
40 ((vc->vc_hi_font_mask) ? 0x1ff : 0xff); in tile_clear()
45 rect.width = width; in tile_clear()
49 info->tileops->fb_tilefill(info, &rect); in tile_clear()
53 const unsigned short *s, int count, int yy, int xx, in tile_putcs() argument
[all …]
Dfbcon_ud.c2 * linux/drivers/video/console/fbcon_ud.c -- Software Rotation - 180 degrees
28 int i, offset = (vc->vc_font.height < 10) ? 1 : 2; in ud_update_attr()
29 int width = (vc->vc_font.width + 7) >> 3; in ud_update_attr() local
30 unsigned int cellsize = vc->vc_font.height * width; in ud_update_attr()
33 offset = offset * width; in ud_update_attr()
49 int sx, int dy, int dx, int height, int width) in ud_bmove() argument
51 struct fbcon_ops *ops = info->fbcon_par; in ud_bmove()
53 u32 vyres = GETVYRES(ops->p, info); in ud_bmove()
54 u32 vxres = GETVXRES(ops->p, info); in ud_bmove()
56 area.sy = vyres - ((sy + height) * vc->vc_font.height); in ud_bmove()
[all …]
Dfbcon_cw.c2 * linux/drivers/video/console/fbcon_ud.c -- Software Rotation - 90 degrees
28 int i, j, offset = (vc->vc_font.height < 10) ? 1 : 2; in cw_update_attr()
29 int width = (vc->vc_font.height + 7) >> 3; in cw_update_attr() local
32 for (i = 0; i < vc->vc_font.width; i++) { in cw_update_attr()
33 for (j = 0; j < width; j++) { in cw_update_attr()
38 c |= *(src-width); in cw_update_attr()
49 int sx, int dy, int dx, int height, int width) in cw_bmove() argument
51 struct fbcon_ops *ops = info->fbcon_par; in cw_bmove()
53 u32 vxres = GETVXRES(ops->p, info); in cw_bmove()
55 area.sx = vxres - ((sy + height) * vc->vc_font.height); in cw_bmove()
[all …]
Dbitblit.c2 * linux/drivers/video/console/bitblit.c -- BitBlitting Operation
28 int i, offset = (vc->vc_font.height < 10) ? 1 : 2; in update_attr()
29 int width = DIV_ROUND_UP(vc->vc_font.width, 8); in update_attr() local
30 unsigned int cellsize = vc->vc_font.height * width; in update_attr()
33 offset = cellsize - (offset * width); in update_attr()
47 int sx, int dy, int dx, int height, int width) in bit_bmove() argument
51 area.sx = sx * vc->vc_font.width; in bit_bmove()
52 area.sy = sy * vc->vc_font.height; in bit_bmove()
53 area.dx = dx * vc->vc_font.width; in bit_bmove()
54 area.dy = dy * vc->vc_font.height; in bit_bmove()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/qxl/
Dqxl_display.c42 return head->width && head->height; in qxl_head_enabled()
46 unsigned int count) in qxl_alloc_client_monitors_config() argument
48 if (qdev->client_monitors_config && in qxl_alloc_client_monitors_config()
49 count > qdev->client_monitors_config->count) { in qxl_alloc_client_monitors_config()
50 kfree(qdev->client_monitors_config); in qxl_alloc_client_monitors_config()
51 qdev->client_monitors_config = NULL; in qxl_alloc_client_monitors_config()
53 if (!qdev->client_monitors_config) { in qxl_alloc_client_monitors_config()
54 qdev->client_monitors_config = kzalloc( in qxl_alloc_client_monitors_config()
55 struct_size(qdev->client_monitors_config, in qxl_alloc_client_monitors_config()
56 heads, count), GFP_KERNEL); in qxl_alloc_client_monitors_config()
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/qxl/
Dqxl_display.c28 #include <linux/iosys-map.h>
46 return head->width && head->height; in qxl_head_enabled()
50 unsigned int count) in qxl_alloc_client_monitors_config() argument
52 if (qdev->client_monitors_config && in qxl_alloc_client_monitors_config()
53 count > qdev->client_monitors_config->count) { in qxl_alloc_client_monitors_config()
54 kfree(qdev->client_monitors_config); in qxl_alloc_client_monitors_config()
55 qdev->client_monitors_config = NULL; in qxl_alloc_client_monitors_config()
57 if (!qdev->client_monitors_config) { in qxl_alloc_client_monitors_config()
58 qdev->client_monitors_config = kzalloc( in qxl_alloc_client_monitors_config()
59 struct_size(qdev->client_monitors_config, in qxl_alloc_client_monitors_config()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/virtio/
Dvirtgpu_display.c73 vgfb->base.obj[0] = obj; in virtio_gpu_framebuffer_init()
75 drm_helper_mode_fill_fb_struct(dev, &vgfb->base, mode_cmd); in virtio_gpu_framebuffer_init()
77 ret = drm_framebuffer_init(dev, &vgfb->base, &virtio_gpu_fb_funcs); in virtio_gpu_framebuffer_init()
79 vgfb->base.obj[0] = NULL; in virtio_gpu_framebuffer_init()
87 struct drm_device *dev = crtc->dev; in virtio_gpu_crtc_mode_set_nofb()
88 struct virtio_gpu_device *vgdev = dev->dev_private; in virtio_gpu_crtc_mode_set_nofb()
91 virtio_gpu_cmd_set_scanout(vgdev, output->index, 0, in virtio_gpu_crtc_mode_set_nofb()
92 crtc->mode.hdisplay, in virtio_gpu_crtc_mode_set_nofb()
93 crtc->mode.vdisplay, 0, 0); in virtio_gpu_crtc_mode_set_nofb()
105 struct drm_device *dev = crtc->dev; in virtio_gpu_crtc_atomic_disable()
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/virtio/
Dvirtgpu_display.c74 vgfb->base.obj[0] = obj; in virtio_gpu_framebuffer_init()
76 drm_helper_mode_fill_fb_struct(dev, &vgfb->base, mode_cmd); in virtio_gpu_framebuffer_init()
78 ret = drm_framebuffer_init(dev, &vgfb->base, &virtio_gpu_fb_funcs); in virtio_gpu_framebuffer_init()
80 vgfb->base.obj[0] = NULL; in virtio_gpu_framebuffer_init()
88 struct drm_device *dev = crtc->dev; in virtio_gpu_crtc_mode_set_nofb()
89 struct virtio_gpu_device *vgdev = dev->dev_private; in virtio_gpu_crtc_mode_set_nofb()
92 virtio_gpu_cmd_set_scanout(vgdev, output->index, 0, in virtio_gpu_crtc_mode_set_nofb()
93 crtc->mode.hdisplay, in virtio_gpu_crtc_mode_set_nofb()
94 crtc->mode.vdisplay, 0, 0); in virtio_gpu_crtc_mode_set_nofb()
106 struct drm_device *dev = crtc->dev; in virtio_gpu_crtc_atomic_disable()
[all …]
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/fm10k/
Dfm10k_common.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 2013 - 2018 Intel Corporation. */
7 * fm10k_get_bus_info_generic - Generic set PCI bus info
10 * Gets the PCI bus info (speed, width, type) then calls helper function to
17 /* Get the maximum link width and speed from PCIe config space */ in fm10k_get_bus_info_generic()
22 hw->bus_caps.width = fm10k_bus_width_pcie_x1; in fm10k_get_bus_info_generic()
25 hw->bus_caps.width = fm10k_bus_width_pcie_x2; in fm10k_get_bus_info_generic()
28 hw->bus_caps.width = fm10k_bus_width_pcie_x4; in fm10k_get_bus_info_generic()
31 hw->bus_caps.width = fm10k_bus_width_pcie_x8; in fm10k_get_bus_info_generic()
34 hw->bus_caps.width = fm10k_bus_width_unknown; in fm10k_get_bus_info_generic()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/fm10k/
Dfm10k_common.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 2013 - 2018 Intel Corporation. */
7 * fm10k_get_bus_info_generic - Generic set PCI bus info
10 * Gets the PCI bus info (speed, width, type) then calls helper function to
17 /* Get the maximum link width and speed from PCIe config space */ in fm10k_get_bus_info_generic()
22 hw->bus_caps.width = fm10k_bus_width_pcie_x1; in fm10k_get_bus_info_generic()
25 hw->bus_caps.width = fm10k_bus_width_pcie_x2; in fm10k_get_bus_info_generic()
28 hw->bus_caps.width = fm10k_bus_width_pcie_x4; in fm10k_get_bus_info_generic()
31 hw->bus_caps.width = fm10k_bus_width_pcie_x8; in fm10k_get_bus_info_generic()
34 hw->bus_caps.width = fm10k_bus_width_unknown; in fm10k_get_bus_info_generic()
[all …]
/kernel/linux/linux-6.6/samples/vfio-mdev/
Dmdpy.c1 // SPDX-License-Identifier: GPL-2.0
5 * See mdpy-defs.h for device specs
30 #include "mdpy-defs.h"
53 u32 width; member
58 .type.pretty_name = MDPY_CLASS_NAME "-" MDPY_TYPE_1,
61 .width = 640,
65 .type.pretty_name = MDPY_CLASS_NAME "-" MDPY_TYPE_2,
68 .width = 1024,
72 .type.pretty_name = MDPY_CLASS_NAME "-" MDPY_TYPE_3,
75 .width = 1920,
[all …]
/kernel/linux/linux-5.10/scripts/
Dbootgraph.pl2 # SPDX-License-Identifier: GPL-2.0-only
34 2) perl scripts/bootgraph.pl -h
37 -header Insert kernel version and date
59 my $count = 0;
70 if ($line =~ /([0-9\.]+)\] calling ([a-zA-Z0-9\_\.]+)\+/) {
79 if ($line =~ /\@ ([0-9]+)/) {
82 $count = $count + 1;
85 if ($line =~ /([0-9\.]+)\] async_waiting @ ([0-9]+)/) {
103 $count = $count + 1;
106 if ($line =~ /([0-9\.]+)\] initcall ([a-zA-Z0-9\_\.]+)\+.*returned/) {
[all …]
/kernel/linux/linux-6.6/scripts/
Dbootgraph.pl2 # SPDX-License-Identifier: GPL-2.0-only
34 2) perl scripts/bootgraph.pl -h
37 -header Insert kernel version and date
59 my $count = 0;
70 if ($line =~ /([0-9\.]+)\] calling ([a-zA-Z0-9\_\.]+)\+/) {
79 if ($line =~ /\@ ([0-9]+)/) {
82 $count = $count + 1;
85 if ($line =~ /([0-9\.]+)\] async_waiting @ ([0-9]+)/) {
103 $count = $count + 1;
106 if ($line =~ /([0-9\.]+)\] initcall ([a-zA-Z0-9\_\.]+)\+.*returned/) {
[all …]
/kernel/linux/linux-5.10/drivers/firmware/efi/
Dearlycon.c1 // SPDX-License-Identifier: GPL-2.0
33 if (!earlycon_console || !(earlycon_console->flags & CON_ENABLED)) in efi_earlycon_remap_fb()
39 return efi_fb ? 0 : -ENOMEM; in efi_earlycon_remap_fb()
46 if (efi_fb && !(earlycon_console->flags & CON_ENABLED)) in efi_earlycon_unmap_fb()
94 for (i = 0; i < height - font->height; i++) { in efi_earlycon_scroll_up()
99 src = efi_earlycon_map((i + font->height) * len, len); in efi_earlycon_scroll_up()
120 bytes = BITS_TO_BYTES(font->width); in efi_earlycon_write_char()
121 src = font->data + c * font->height * bytes + h * bytes; in efi_earlycon_write_char()
123 for (m = 0; m < font->width; m++) { in efi_earlycon_write_char()
126 if ((x >> (7 - n)) & 1) in efi_earlycon_write_char()
[all …]
/kernel/linux/linux-6.6/drivers/firmware/efi/
Dearlycon.c1 // SPDX-License-Identifier: GPL-2.0
42 return efi_fb ? 0 : -ENOMEM; in efi_earlycon_remap_fb()
105 for (i = 0; i < height - font->height; i++) { in efi_earlycon_scroll_up()
110 src = efi_earlycon_map((i + font->height) * len, len); in efi_earlycon_scroll_up()
131 bytes = BITS_TO_BYTES(font->width); in efi_earlycon_write_char()
132 src = font->data + c * font->height * bytes + h * bytes; in efi_earlycon_write_char()
134 for (m = 0; m < font->width; m++) { in efi_earlycon_write_char()
137 if ((x >> (7 - n)) & 1) in efi_earlycon_write_char()
155 len = si->lfb_linelength; in efi_earlycon_write()
158 unsigned int linemax = (si->lfb_width - efi_x) / font->width; in efi_earlycon_write()
[all …]
/kernel/linux/linux-5.10/samples/vfio-mdev/
Dmdpy.c1 // SPDX-License-Identifier: GPL-2.0
5 * See mdpy-defs.h for device specs
31 #include "mdpy-defs.h"
47 module_param_named(count, max_devices, int, 0444);
48 MODULE_PARM_DESC(count, "number of " MDPY_NAME " devices");
59 u32 width; member
63 .name = MDPY_CLASS_NAME "-" MDPY_TYPE_1,
66 .width = 640,
69 .name = MDPY_CLASS_NAME "-" MDPY_TYPE_2,
72 .width = 1024,
[all …]
/kernel/linux/linux-6.6/lib/
Doverflow_kunit.c1 // SPDX-License-Identifier: GPL-2.0 OR MIT
4 * "Running tests with kunit_tool" at Documentation/dev-tools/kunit/start.rst
5 * ./tools/testing/kunit/kunit.py run overflow [--raw_output]
37 * Clang 13 and earlier generate unwanted libcalls for 64-bit tests on
38 * 32-bit hosts.
65 {U8_MAX, 1, 0, U8_MAX-1, U8_MAX, true, false, false},
66 {U8_MAX, U8_MAX, U8_MAX-1, 0, 1, true, false, true},
68 {U8_MAX, U8_MAX-1, U8_MAX-2, 1, 2, true, false, true},
69 {U8_MAX-1, U8_MAX, U8_MAX-2, U8_MAX, 2, true, true, true},
88 {U16_MAX, 1, 0, U16_MAX-1, U16_MAX, true, false, false},
[all …]

12345678910>>...42