/openbmc/linux/drivers/gpu/drm/bridge/adv7511/ |
H A D | adv7511.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 62 #define ADV7511_REG_GC(x) (0x4b + (x)) /* 0x4b - 0x51 */ 66 #define ADV7511_REG_AVI_INFOFRAME(x) (0x55 + (x)) /* 0x55 - 0x6f */ 70 #define ADV7511_REG_AUDIO_INFOFRAME(x) (0x73 + (x)) /* 0x73 - 0x7c */ 77 #define ADV7511_REG_AN(x) (0xb0 + (x)) /* 0xb0 - 0xb7 */ 80 #define ADV7511_REG_BKSV(x) (0xc0 + (x)) /* 0xc0 - 0xc3 */ 84 #define ADV7511_REG_BSTATUS(x) (0xca + (x)) /* 0xca - 0xcb */ 89 #define ADV7511_REG_SYNC_ADJUSTMENT(x) (0xd7 + (x)) /* 0xd7 - 0xdc */ 251 * enum adv7511_sync_polarity - Polarity for the input sync signals 252 * @ADV7511_SYNC_POLARITY_PASSTHROUGH: Sync polarity matches that of [all …]
|
/openbmc/linux/drivers/iio/imu/ |
H A D | adis16475.c | 1 // SPDX-License-Identifier: GPL-2.0 84 const struct adis16475_sync *sync; member 123 …"Allow IMU rates below the minimum advisable when external clk is used in SCALED mode (default: N)… 130 struct adis16475 *st = file->private_data; in adis16475_show_firmware_revision() 136 ret = adis_read_reg_16(&st->adis, ADIS16475_REG_FIRM_REV, &rev); in adis16475_show_firmware_revision() 156 struct adis16475 *st = file->private_data; in adis16475_show_firmware_date() 162 ret = adis_read_reg_16(&st->adis, ADIS16475_REG_FIRM_Y, &year); in adis16475_show_firmware_date() 166 ret = adis_read_reg_16(&st->adis, ADIS16475_REG_FIRM_DM, &md); in adis16475_show_firmware_date() 170 len = snprintf(buf, sizeof(buf), "%.2x-%.2x-%.4x\n", md >> 8, md & 0xff, in adis16475_show_firmware_date() 189 ret = adis_read_reg_16(&st->adis, ADIS16475_REG_SERIAL_NUM, &serial); in adis16475_show_serial_number() [all …]
|
/openbmc/linux/drivers/clk/bcm/ |
H A D | clk-kona.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 #include "clk-kona.h" 12 #include <linux/clk-provider.h> 27 /* Produces a mask of set bits covering a range of a 32-bit value */ 30 return ((1 << width) - 1) << shift; in bitfield_mask() 49 /* Convert a divider into the scaled divisor value it represents. */ 52 return (u64)reg_div + ((u64)1 << div->u.s.frac_width); in scaled_div_value() 56 * Build a scaled divider value as close as possible to the 68 combined <<= div->u.s.frac_width; in scaled_div_build() 73 /* The scaled minimum divisor representable by a divider */ [all …]
|
/openbmc/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_lvds_regs.h | 1 /* SPDX-License-Identifier: MIT */ 18 /* Selects pipe B for LVDS data. Must be set on pre-965. */ 25 /* LVDS sync polarity flags. Set to invert (i.e. negative) */ 29 /* Enable border for unscaled (or aspect-scaled) display */ 32 * Enables the A0-A2 data pairs and CLKA, containing 18 bits of color data per 54 * Controls the B0-B3 data pairs. This must be set to match the DPLL p2 55 * setting for whether we are in dual-channel mode. The B3 pair will
|
H A D | intel_sdvo_regs.h | 2 * Copyright © 2006-2007 Intel Corporation 94 * bits 4-5 of vsync offset, and 2 high bits of vsync width. 99 /* bits 6-7 of vsync offset at bits 6-7 */ 115 u8 scaled:1; member 162 * Reports which inputs are trained (managed to sync). 180 * on multi-output devices. 438 scaled for the requested HDTV format */ 550 * The high fields are bits 8:9 of the 10-bit values.
|
/openbmc/linux/Documentation/sound/cards/ |
H A D | hdspm.rst | 2 Software Interface ALSA-DSP MADI Driver 5 (translated from German, so no good English ;-), 7 2004 - winfried ritsch 11 the Controls and startup-options are ALSA-Standard and only the 19 ------------------ 21 * number of channels -- depends on transmission mode 27 scaled. (Only important for low performance boards). 29 * Single Speed -- 1..64 channels 37 * Double Speed -- 1..32 channels 40 Note: Choosing the 56-channel mode for [all …]
|
/openbmc/linux/drivers/media/pci/bt8xx/ |
H A D | bttvp.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 4 bttv - Bt848 frame grabber driver 6 bttv's *private* header file -- nobody other than bttv itself 9 (c) 2000-2002 Gerd Knorr <kraxel@bytesex.org> 19 #include <linux/i2c-algo-bit.h> 26 #include <media/v4l2-common.h> 27 #include <media/v4l2-ctrls.h> 28 #include <media/v4l2-fh.h> 29 #include <media/videobuf2-dma-sg.h> 31 #include <media/rc-core.h> [all …]
|
/openbmc/linux/net/netfilter/ipvs/ |
H A D | ip_vs_est.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 35 avgrate = avgrate*(1-W) + rate*W 37 where W = 2^(-2) 41 * Average bps is scaled by 2^5, while average pps and cps are scaled by 2^10. 43 * Netlink users can see 64-bit values but sockopt users are restricted 44 to 32-bit values for conns, packets, bps, cps and pps. 49 - cpustats counters are updated per-cpu in SoftIRQ context with BH disabled 50 - kthreads read the cpustats to update the estimators (svcs, dests, total) 51 - the states of estimators can be read (get stats) or modified (zero stats) 55 - estimators are added initially to est_temp_list and later kthread 0 [all …]
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | ptp.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 3 * Copyright (C) 2021 - 2023 Intel Corporation 7 #include "iwl-debug.h" 14 /* The scaled_ppm parameter is ppm (parts per million) with a 16-bit fractional 16 * 2^-16 ppm, and 2^16=65536 is 1 ppm. 28 if (gp2 < mvm->ptp_data.last_gp2 && in iwl_mvm_ptp_update_new_read() 29 mvm->ptp_data.last_gp2 - gp2 < IWL_PTP_WRAP_THRESHOLD_USEC) { in iwl_mvm_ptp_update_new_read() 32 gp2, mvm->ptp_data.last_gp2); in iwl_mvm_ptp_update_new_read() 36 if (gp2 < mvm->ptp_data.last_gp2) { in iwl_mvm_ptp_update_new_read() 37 mvm->ptp_data.wrap_counter++; in iwl_mvm_ptp_update_new_read() [all …]
|
/openbmc/linux/drivers/gpu/drm/gma500/ |
H A D | psb_intel_sdvo_regs.h | 2 * Copyright ? 2006-2007 Intel Corporation 83 * bits 4-5 of vsync offset, and 2 high bits of vsync width. 88 /** bits 6-7 of vsync offset at bits 6-7 */ 104 u8 scaled:1; member 151 * Reports which inputs are trained (managed to sync). 169 * on multi-output devices. 427 scaled for the requested HDTV format */ 539 * The high fields are bits 8:9 of the 10-bit values.
|
/openbmc/linux/drivers/hwmon/ |
H A D | vt1211.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * vt1211.c - driver for the VIA VT1211 Super-I/O chip integrated hardware 19 #include <linux/hwmon-sysfs.h> 20 #include <linux/hwmon-vid.h> 27 static int uch_config = -1; 31 static int int_mode = -1; 43 /* --------------------------------------------------------------------- 49 * -------- ------------ --------- -------------------------- 59 * --------------------------------------------------------------------- */ 61 /* Voltages (in) numbered 0-5 (ix) */ [all …]
|
/openbmc/linux/Documentation/userspace-api/media/v4l/ |
H A D | crop.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 6 Image Cropping, Insertion and Scaling -- the CROP API 12 <selection-api>`. The new API should be preferred in most cases, 15 equivalent in the SELECTION API. See :ref:`selection-vs-crop` for a 62 .. _crop-scale: 64 .. kernel-figure:: crop.svg 80 relative to 0H (the leading edge of the horizontal sync pulse, see 81 :ref:`vbi-hsync`). Vertically ITU-R line numbers of the first field 82 (see ITU R-525 line numbering for :ref:`525 lines <vbi-525>` and for 83 :ref:`625 lines <vbi-625>`), multiplied by two if the driver [all …]
|
/openbmc/linux/block/ |
H A D | blk-wbt.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * - Monitor latencies in a defined window of time. 7 * - If the minimum latency in the above window exceeds some target, increment 10 * - For any window where we don't have solid data on what the latencies 12 * - If latencies look good, decrement scaling step. 13 * - If we're only doing writes, allow the scaling step to go negative. This 25 #include <linux/backing-dev.h> 28 #include "blk-stat.h" 29 #include "blk-wbt.h" 30 #include "blk-rq-qos.h" [all …]
|
/openbmc/linux/Documentation/filesystems/ |
H A D | gfs2-glocks.rst | 1 .. SPDX-License-Identifier: GPL-2.0 13 2. A non-blocking bit lock, GLF_LOCK, which is used to prevent other 61 go_xmote_th Called before remote state change (e.g. to sync dirty data) 121 5. Transaction glock (via gfs2_trans_begin) for non-read operations 129 is on a per-inode basis. Locking of rgrps is on a per rgrp basis. 133 ---------------- 146 The per-glock counters are initialised to zero when the 147 glock is created. The per-glock statistics are lost when 155 Volume 1", W. Richard Stevens, sect 21.3, "Round-Trip Time Measurement", 158 not scaled, but are in units of integer nanoseconds. [all …]
|
/openbmc/linux/drivers/media/platform/verisilicon/ |
H A D | hantro_hw.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 13 #include <linux/v4l2-controls.h> 14 #include <media/v4l2-ctrls.h> 15 #include <media/v4l2-vp9.h> 16 #include <media/videobuf2-core.h> 49 * struct hantro_aux_buf - auxiliary DMA buffer for hardware data 101 * @dpb_longterm: DPB long-term 218 * @tile_r_info: per-tile information array 219 * @tile_c_info: per-tile information array 343 * struct hantro_postproc_ops - post-processor operations [all …]
|
/openbmc/linux/Documentation/admin-guide/ |
H A D | md.rst | 5 --------------------------------- 49 -1 linear mode 58 (raid-0 and raid-1 only) 78 -------------------------------------- 87 that all auto-detected arrays are assembled as partitionable. 90 ------------------------------------------- 102 mdadm --assemble --force .... 112 md-mod.start_dirty_degraded=1 116 ------------------ 119 Currently, it supports superblock formats ``0.90.0`` and the ``md-1`` format [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_ptp.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 30 * Period * [ 2 ^ ( MaxWidth - PeriodWidth ) ] 47 * +--------------+ +--------------+ 49 * *--------------+ +--------------+ 52 * +--------------+ +--------------+ 54 * *--------------+ +--------------+ 58 * 2^36 * 10^-9 / 60 = 1.14 minutes or 69 seconds 61 * 2^43 * 10^-9 / 3600 = 2.4 hours 89 * represents units of 2^-32 nanoseconds, and uses 31 bits for this, with the [all …]
|
/openbmc/linux/drivers/net/ethernet/sfc/siena/ |
H A D | ptp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright 2011-2013 Solarflare Communications Inc. 143 #define MC_NANOSECOND_MASK ((1 << MC_NANOSECOND_BITS) - 1) 144 #define MC_SECOND_MASK ((1 << (32 - MC_NANOSECOND_BITS)) - 1) 146 /* Maximum parts-per-billion adjustment that is acceptable */ 161 * struct efx_ptp_match - Matching structure, stored in sk_buff's cb area. 165 * @state: The state of the packet - whether it is ready for processing or 175 * struct efx_ptp_event_rx - A PTP receive event (from MC) 191 * struct efx_ptp_timeset - Synchronisation between host and MC 207 u32 window; /* Derived: end - start, allowing for wrap */ [all …]
|
/openbmc/linux/drivers/net/ethernet/sfc/ |
H A D | ptp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright 2011-2013 Solarflare Communications Inc. 115 #define PTP_ADDR_ETHER {0x01, 0x1b, 0x19, 0, 0, 0} /* 01-1B-19-00-00-00 */ 136 #define MC_NANOSECOND_MASK ((1 << MC_NANOSECOND_BITS) - 1) 137 #define MC_SECOND_MASK ((1 << (32 - MC_NANOSECOND_BITS)) - 1) 139 /* Maximum parts-per-billion adjustment that is acceptable */ 154 * struct efx_ptp_match - Matching structure, stored in sk_buff's cb area. 157 * @state: The state of the packet - whether it is ready for processing or 166 * struct efx_ptp_event_rx - A PTP receive event (from MC) 182 * struct efx_ptp_timeset - Synchronisation between host and MC [all …]
|
/openbmc/linux/drivers/video/fbdev/ |
H A D | fsl-diu-fb.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Authors: Hongjun Chen <hong-jun.chen@freescale.com> 22 #include <linux/dma-mapping.h> 33 #include <linux/fsl-diu-fb.h> 52 * order if increasing resolution and frequency. The 320x240-60 mode is 67 .sync = FB_SYNC_COMP_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, 81 .sync = FB_SYNC_COMP_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, 95 .sync = FB_SYNC_COMP_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, 109 .sync = FB_SYNC_COMP_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, 123 .sync = FB_SYNC_COMP_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, [all …]
|
/openbmc/linux/sound/usb/ |
H A D | endpoint.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 64 * expect the payload to carry Q10.14 / Q16.16 formatted sync information 99 if (u->urb && u->buffer_size) in release_urb_ctx() 100 usb_free_coherent(u->ep->chip->dev, u->buffer_size, in release_urb_ctx() 101 u->urb->transfer_buffer, in release_urb_ctx() 102 u->urb->transfer_dma); in release_urb_ctx() 103 usb_free_urb(u->urb); in release_urb_ctx() 104 u->urb = NULL; in release_urb_ctx() 105 u->buffer_size = 0; in release_urb_ctx() 111 case -ENODEV: in usb_error_string() [all …]
|
/openbmc/linux/drivers/gpu/drm/vc4/ |
H A D | vc4_plane.c | 1 // SPDX-License-Identifier: GPL-2.0-only 264 return state->fb && !WARN_ON(!state->crtc); in plane_enabled() 271 if (WARN_ON(!plane->state)) in vc4_plane_duplicate_state() 274 vc4_state = kmemdup(plane->state, sizeof(*vc4_state), GFP_KERNEL); in vc4_plane_duplicate_state() 278 memset(&vc4_state->lbm, 0, sizeof(vc4_state->lbm)); in vc4_plane_duplicate_state() 279 vc4_state->dlist_initialized = 0; in vc4_plane_duplicate_state() 281 __drm_atomic_helper_plane_duplicate_state(plane, &vc4_state->base); in vc4_plane_duplicate_state() 283 if (vc4_state->dlist) { in vc4_plane_duplicate_state() 284 vc4_state->dlist = kmemdup(vc4_state->dlist, in vc4_plane_duplicate_state() 285 vc4_state->dlist_count * 4, in vc4_plane_duplicate_state() [all …]
|
/openbmc/linux/drivers/media/pci/ivtv/ |
H A D | ivtv-ioctl.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 Copyright (C) 2003-2004 Kevin Thayer <nufan_wfk at yahoo.com> 5 Copyright (C) 2005-2007 Hans Verkuil <hverkuil@xs4all.nl> 9 #include "ivtv-driver.h" 10 #include "ivtv-version.h" 11 #include "ivtv-mailbox.h" 12 #include "ivtv-i2c.h" 13 #include "ivtv-queue.h" 14 #include "ivtv-fileops.h" 15 #include "ivtv-vbi.h" [all …]
|
/openbmc/linux/arch/ia64/include/asm/ |
H A D | processor.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 * Copyright (C) 1998-2004 Hewlett-Packard Co 7 * David Mosberger-Tang <davidm@hpl.hp.com> 30 * TASK_SIZE really is a mis-named. It really is the maximum user 31 * space address (plus one). On IA-64, there are five regions of 2TB 41 #define TASK_UNMAPPED_BASE (current->thread.map_base) 43 #define IA64_THREAD_FPH_VALID (__IA64_UL(1) << 0) /* floating-point high state valid? */ 49 sync at ctx sw */ 62 * (this will give enough slack to represent 10 seconds worth of time as a scaled number). 168 __u64 rv3 : 2; /* 0-1 */ [all …]
|
/openbmc/linux/drivers/gpu/drm/i2c/ |
H A D | tda998x_drv.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 #include <sound/hdmi-codec.h> 26 #include <media/cec-notifier.h> 410 .addr = priv->cec_addr, in cec_write() 416 ret = i2c_transfer(priv->hdmi->adapter, &msg, 1); in cec_write() 418 dev_err(&priv->hdmi->dev, "Error %d writing to cec:0x%x\n", in cec_write() 428 .addr = priv->cec_addr, in cec_read() 432 .addr = priv->cec_addr, in cec_read() 440 ret = i2c_transfer(priv->hdmi->adapter, msg, ARRAY_SIZE(msg)); in cec_read() 442 dev_err(&priv->hdmi->dev, "Error %d reading from cec:0x%x\n", in cec_read() [all …]
|