| /linux/net/mac80211/tests/ | 
| H A D | tpe.c | 1 // SPDX-License-Identifier: GPL-2.0-only35 		.c.width = NL80211_CHAN_WIDTH_20,
 43 		.c.width = NL80211_CHAN_WIDTH_40,
 52 		.c.width = NL80211_CHAN_WIDTH_80P80,
 61 		.c.width = NL80211_CHAN_WIDTH_320,
 69 		.c.width = NL80211_CHAN_WIDTH_320,
 77 		.c.width = NL80211_CHAN_WIDTH_320,
 85 		.c.width = NL80211_CHAN_WIDTH_320,
 94 		.c.width = NL80211_CHAN_WIDTH_80P80,
 104 		.c.width = NL80211_CHAN_WIDTH_80P80,
 [all …]
 
 | 
| /linux/drivers/gpu/drm/qxl/ | 
| H A D | qxl_display.c | 28 #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 …]
 
 | 
| /linux/drivers/video/fbdev/core/ | 
| H A D | fbcon.c | 2  *  linux/drivers/video/fbcon.c -- Low level frame buffer based console driver27  *  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)
 89  * - fbcon state itself is protected by the console_lock, and the code does a
 92  * - fbcon doesn't bother with fb_lock/unlock at all. This is buggy, since it
 102 	FBCON_LOGO_CANSHOW	= -1,	/* the logo can be shown */
 103 	FBCON_LOGO_DRAW		= -2,	/* draw the logo to a console */
 [all …]
 
 | 
| H A D | bitblit.c | 2  *  linux/drivers/video/console/bitblit.c -- BitBlitting Operation28 	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 …]
 
 | 
| /linux/samples/vfio-mdev/ | 
| H A D | mdpy.c | 1 // SPDX-License-Identifier: GPL-2.05  * See mdpy-defs.h for device specs
 30 #include "mdpy-defs.h"
 54 	u32 width;  member
 59 		.type.pretty_name	= MDPY_CLASS_NAME "-" MDPY_TYPE_1,
 62 		.width	= 640,
 66 		.type.pretty_name	= MDPY_CLASS_NAME "-" MDPY_TYPE_2,
 69 		.width	= 1024,
 73 		.type.pretty_name	= MDPY_CLASS_NAME "-" MDPY_TYPE_3,
 76 		.width	= 1920,
 [all …]
 
 | 
| /linux/scripts/ | 
| H A D | bootgraph.pl | 2 # SPDX-License-Identifier: GPL-2.0-only34 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 …]
 
 | 
| /linux/drivers/firmware/efi/ | 
| H A D | earlycon.c | 1 // SPDX-License-Identifier: GPL-2.042 	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 …]
 
 | 
| /linux/drivers/pwm/ | 
| H A D | pwm-dwc-core.c | 1 // SPDX-License-Identifier: GPL-2.05  * Copyright (C) 2018-2020 Intel Corporation
 22 #include "pwm-dwc.h"
 48 	 * Calculate width of low and high period in terms of input clock  in __dwc_pwm_configure_timer()
 52 	tmp = DIV_ROUND_CLOSEST_ULL(state->duty_cycle, dwc->clk_ns);  in __dwc_pwm_configure_timer()
 54 		return -ERANGE;  in __dwc_pwm_configure_timer()
 55 	low = tmp - 1;  in __dwc_pwm_configure_timer()
 57 	tmp = DIV_ROUND_CLOSEST_ULL(state->period - state->duty_cycle,  in __dwc_pwm_configure_timer()
 58 				    dwc->clk_ns);  in __dwc_pwm_configure_timer()
 60 		return -ERANGE;  in __dwc_pwm_configure_timer()
 [all …]
 
 | 
| /linux/drivers/staging/media/meson/vdec/ | 
| H A D | codec_vp9.c | 1 // SPDX-License-Identifier: GPL-2.0+7 #include <media/v4l2-mem2mem.h>
 8 #include <media/videobuf2-dma-contig.h>
 104 #define NONE           -1
 112  * Defines, declarations, sub-functions for vp9 de-block loop
 114  * - struct segmentation is for loop filter only (removed something)
 115  * - function "vp9_loop_filter_init" and "vp9_loop_filter_frame_init" will
 117  * - vp9_loop_filter_init run once before decoding start
 118  * - vp9_loop_filter_frame_init run before every frame decoding start
 119  * - set video format to VP9 is in vp9_loop_filter_init
 [all …]
 
 | 
| /linux/drivers/media/i2c/cx25840/ | 
| H A D | cx25840-ir.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later13 #include <media/drv-intf/cx25840.h>
 14 #include <media/rc-core.h>
 16 #include "cx25840-core.h"
 117 	return state ? state->ir_state : NULL;  in to_ir_state()
 135 		d--;  in count_to_clock_divider()
 160  * Note the largest count value of 0xffff corresponds to:
 179 static inline unsigned int lpf_count_to_ns(unsigned int count)  in lpf_count_to_ns()  argument
 182 	return DIV_ROUND_CLOSEST(count * 1000,  in lpf_count_to_ns()
 186 static inline unsigned int lpf_count_to_us(unsigned int count)  in lpf_count_to_us()  argument
 [all …]
 
 | 
| /linux/drivers/media/usb/stk1160/ | 
| H A D | stk1160-v4l.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later6  * <elezegarcia--a.t--gmail.com>
 10  *	<rmthomas--a.t--sciolus.org>
 19 #include <media/v4l2-device.h>
 20 #include <media/v4l2-common.h>
 21 #include <media/v4l2-ioctl.h>
 22 #include <media/v4l2-fh.h>
 23 #include <media/v4l2-event.h>
 24 #include <media/videobuf2-vmalloc.h>
 29 #include "stk1160-reg.h"
 [all …]
 
 | 
| /linux/drivers/video/console/ | 
| H A D | sticon.c | 2  *  linux/drivers/video/console/sticon.c - console driver using HP's STI firmware5  *	Copyright (C) 2002-2020 Helge Deller <deller@gmx.de>
 28  *			   Emmanuel Marty (core@ggi-project.org)
 59 #define STI_DEF_FONT	sticon_sti->font
 62 #define FNTREFCOUNT(fd)	(fd->refcount)
 63 #define FNTCRC(fd)	(fd->crc)
 74 static void sticon_putcs(struct vc_data *conp, const u16 *s, unsigned int count,  in sticon_putcs()  argument
 80     if (conp->vc_mode != KD_TEXT)  in sticon_putcs()
 83     while (count--) {  in sticon_putcs()
 85 		 font_data[conp->vc_num]);  in sticon_putcs()
 [all …]
 
 | 
| /linux/drivers/media/platform/ti/omap/ | 
| H A D | omap_vout_vrfb.c | 17 #include <media/v4l2-device.h>31 		unsigned int *count, int startindex)  in omap_vout_allocate_vrfb_buffers()  argument
 35 	for (i = 0; i < *count; i++) {  in omap_vout_allocate_vrfb_buffers()
 36 		if (!vout->smsshado_virt_addr[i]) {  in omap_vout_allocate_vrfb_buffers()
 37 			vout->smsshado_virt_addr[i] =  in omap_vout_allocate_vrfb_buffers()
 38 				omap_vout_alloc_buffer(vout->smsshado_size,  in omap_vout_allocate_vrfb_buffers()
 39 						&vout->smsshado_phy_addr[i]);  in omap_vout_allocate_vrfb_buffers()
 41 		if (!vout->smsshado_virt_addr[i] && startindex != -1) {  in omap_vout_allocate_vrfb_buffers()
 42 			if (vout->vq.memory == V4L2_MEMORY_MMAP && i >= startindex)  in omap_vout_allocate_vrfb_buffers()
 45 		if (!vout->smsshado_virt_addr[i]) {  in omap_vout_allocate_vrfb_buffers()
 [all …]
 
 | 
| /linux/tools/testing/selftests/drivers/net/mlxsw/ | 
| H A D | port_scale.sh | 2 # SPDX-License-Identifier: GPL-2.05 # to its width and checks that eventually the number of physical ports equals
 10 declare -a unsplit
 33 	# with its width. For example:
 35 	# $netdev1-2 are splittable netdevs in the device, and
 36 	# $count1-2 are the netdevs width respectively.
 37 	while read netdev count <<<$(
 38 		devlink -j port show |
 39 		jq -r '.[][] | select(.splittable==true) | "\(.netdev) \(.lanes)"'
 41 		[[ ! -z $netdev ]]
 [all …]
 
 | 
| /linux/drivers/net/ethernet/mscc/ | 
| H A D | ocelot_vcap.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)25 	VCAP_CMD_MOVE_UP = 2, /* Move <count> up */
 26 	VCAP_CMD_MOVE_DOWN = 3, /* Move <count> down */
 30 #define VCAP_ENTRY_WIDTH 12 /* Max entry width (32bit words) */
 31 #define VCAP_COUNTER_WIDTH 4 /* Max counter width (32bit words) */
 40 	u32 tg_sw; /* Current type-group */
 45 	u32 tg_value; /* Current type-group value */
 46 	u32 tg_mask; /* Current type-group mask */
 52 	return ocelot_target_read(ocelot, vcap->target, VCAP_CORE_UPDATE_CTRL);  in vcap_read_update_ctrl()
 62 	if ((sel & VCAP_SEL_ENTRY) && ix >= vcap->entry_count)  in vcap_cmd()
 [all …]
 
 | 
| /linux/drivers/hwtracing/stm/ | 
| H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.043 	ret = sprintf(buf, "%u %u\n", stm->data->sw_start, stm->data->sw_end);  in masters_show()
 57 	ret = sprintf(buf, "%u\n", stm->data->sw_nchannels);  in channels_show()
 71 	ret = sprintf(buf, "%u\n", stm->data->hw_override);  in hw_override_show()
 93  * stm_find_device() - find stm device by name
 117 	if (!try_module_get(stm->owner)) {  in stm_find_device()
 127  * stm_put_device() - drop references on the stm device
 135 	module_put(stm->owner);  in stm_put_device()
 136 	put_device(&stm->dev);  in stm_put_device()
 140  * Internally we only care about software-writable masters here, that is the
 [all …]
 
 | 
| /linux/drivers/media/pci/cx23885/ | 
| H A D | cx23888-ir.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later11 #include "cx23888-ir.h"
 16 #include <media/v4l2-device.h>
 17 #include <media/rc-core.h>
 174 		d--;  in count_to_clock_divider()
 199  * Note the largest count value of 0xffff corresponds to:
 218 static inline unsigned int lpf_count_to_ns(unsigned int count)  in lpf_count_to_ns()  argument
 221 	return DIV_ROUND_CLOSEST(count * 1000,  in lpf_count_to_ns()
 225 static inline unsigned int lpf_count_to_us(unsigned int count)  in lpf_count_to_us()  argument
 228 	return DIV_ROUND_CLOSEST(count, CX23888_IR_REFCLK_FREQ / 1000000);  in lpf_count_to_us()
 [all …]
 
 | 
| /linux/Documentation/devicetree/bindings/timer/ | 
| H A D | xlnx,xps-timer.yaml | 1 # SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause3 ---
 4 $id: http://devicetree.org/schemas/timer/xlnx,xps-timer.yaml#
 5 $schema: http://devicetree.org/meta-schemas/core.yaml#
 10   - Sean Anderson <sean.anderson@seco.com>
 15       const: xlnx,xps-timer-1.00.a
 20   clock-names:
 29   '#pwm-cells': true
 31   xlnx,count-width:
 36       The width of the counter(s), in bits.
 [all …]
 
 | 
| /linux/Documentation/devicetree/bindings/csky/ | 
| H A D | pmu.txt | 2 C-SKY Performance Monitor Units5 C-SKY Performance Monitor is designed for ck807/ck810/ck860 SMP soc and
 6 it could count cpu's events for helping analysis performance issues.
 16 	- compatible
 19 		Definition: must be "csky,csky-pmu"
 20 	- interrupts
 24 	- count-width
 27 		Definition: the width of pmu counter
 30 ---------
 31 #include <dt-bindings/interrupt-controller/irq.h>
 [all …]
 
 | 
| /linux/drivers/video/fbdev/i810/ | 
| H A D | i810_accel.c | 1 /*-*- linux-c -*-2  *  linux/drivers/video/i810_accel.c -- Hardware Acceleration
 26 	i810_writel(par->cur_tail, par->iring.virtual, n);   \
 27         par->cur_tail += 4;                                  \
 28         par->cur_tail &= RING_SIZE_MASK;                     \
 51  * wait_for_space - check ring buffer free space
 61 	struct i810fb_par *par = info->par;  in wait_for_space()
 62 	u32 head, count = WAIT_COUNT, tail;  in wait_for_space()  local
 63 	u8 __iomem *mmio = par->mmio_start_virtual;  in wait_for_space()
 65 	tail = par->cur_tail;  in wait_for_space()
 [all …]
 
 | 
| /linux/drivers/video/fbdev/nvidia/ | 
| H A D | nv_accel.c | 3 |*       Copyright 1993-2003 NVIDIA, Corporation.  All rights reserved.      *|7 |*     hereby granted a nonexclusive,  royalty-free copyright license to     *|
 10 |*     Any use of this source code must include,  in the user documenta-     *|
 14 |*       Copyright 1993-2003 NVIDIA, Corporation.  All rights reserved.      *|
 18 |*     WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.  NVIDIA, CORPOR-     *|
 20 |*     INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGE-     *|
 22 |*     NVIDIA, CORPORATION  BE LIABLE FOR ANY SPECIAL,  INDIRECT,  INCI-     *|
 23 |*     DENTAL, OR CONSEQUENTIAL DAMAGES,  OR ANY DAMAGES  WHATSOEVER RE-     *|
 32 |*     48 C.F.R. 12.212 (SEPT 1995)  and is provided to the U.S. Govern-     *|
 34 |*     12.212 and  48 C.F.R. 227.7202-1 through  227.7202-4 (JUNE 1995),     *|
 [all …]
 
 | 
| /linux/drivers/media/pci/ivtv/ | 
| H A D | ivtvfb.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later18     Portions (c) 1998 Gerd Knorr <kraxel@goldbach.in-berlin.de>
 29 #include "ivtv-driver.h"
 30 #include "ivtv-cards.h"
 31 #include "ivtv-i2c.h"
 32 #include "ivtv-udma.h"
 33 #include "ivtv-mailbox.h"
 34 #include "ivtv-firmware.h"
 44 static int ivtvfb_card_id = -1;
 65 		 "Only use framebuffer of the specified ivtv card (0-31)\n"
 [all …]
 
 | 
| /linux/Documentation/userspace-api/media/v4l/ | 
| H A D | dev-decoder.rst | 1 .. SPDX-License-Identifier: GPL-2.06 Memory-to-Memory Stateful Video Decoder Interface
 9 A stateful video decoder takes complete chunks of the bytestream (e.g. Annex-B
 34 5. Single-planar API (see :ref:`planar-apis`) and applicable structures may be
 35    used interchangeably with multi-planar API, unless specified otherwise,
 44 .. _decoder-glossary:
 72 coded width
 73    width for given coded resolution.
 79    Good at sub-partitioning the picture into variable sized structures.
 103    Instantaneous Decoder Refresh; a type of a keyframe in an H.264/HEVC-encoded
 [all …]
 
 | 
| /linux/drivers/media/pci/bt8xx/ | 
| H A D | bttv-risc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later4     bttv-risc.c  --  interfaces to other kernel modules
 7 	- memory management
 8 	- generation
 10     (c) 2000-2003 Gerd Knorr <kraxel@bytesex.org>
 25 #include <media/v4l2-ioctl.h>
 31 /* ---------------------------------------------------------- */
 54 	if ((rc = btcx_riscmem_alloc(btv->c.pci,risc,instructions)) < 0)  in bttv_risc_packed()
 58 	rp = risc->cpu;  in bttv_risc_packed()
 62 	while (skip_lines-- > 0) {  in bttv_risc_packed()
 [all …]
 
 | 
| /linux/drivers/acpi/acpica/ | 
| H A D | utprint.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.04  * Module Name: utprint - Formatted printing routines
 6  * Copyright (C) 2000 - 2025, Intel Corp.
 25 acpi_ut_bound_string_length(const char *string, acpi_size count);
 32 				   u8 base, s32 width, s32 precision, u8 type);
 40  * PARAMETERS:  string              - String with boundary
 41  *              count               - Boundary of the string
 43  * RETURN:      Length of the string. Less than or equal to Count.
 50 acpi_ut_bound_string_length(const char *string, acpi_size count)  in acpi_ut_bound_string_length()  argument
 54 	while (*string && count) {  in acpi_ut_bound_string_length()
 [all …]
 
 |