| /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> 28 /* Produces a mask of set bits covering a range of a 32-bit value */ 31 return ((1 << width) - 1) << shift; in bitfield_mask() 50 /* Convert a divider into the scaled divisor value it represents. */ 53 return (u64)reg_div + ((u64)1 << div->u.s.frac_width); in scaled_div_value() 56 /* The scaled minimum divisor representable by a divider */ 61 return (u64)div->u.fixed; in scaled_div_min() 66 /* The scaled maximum divisor representable by a divider */ [all …]
|
| /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
|
| /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 …]
|
| /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 …]
|
| /linux/net/netfilter/ipvs/ |
| H A D | ip_vs_est.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 36 avgrate = avgrate*(1-W) + rate*W 38 where W = 2^(-2) 42 * Average bps is scaled by 2^5, while average pps and cps are scaled by 2^10. 44 * Netlink users can see 64-bi [all...] |
| /linux/drivers/net/wireless/intel/iwlwifi/mld/ |
| H A D | ptp.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 7 #include "iwl-debug.h" 12 /* The scaled_ppm parameter is ppm (parts per million) with a 16-bit fractional 14 * 2^-16 ppm, and 2^16=65536 is 1 ppm. 24 *gp2 = iwl_read_prph(mld->trans, mld->trans->mac_cfg->base->gp2_reg_addr); in iwl_mld_get_systime() 27 return -EINVAL; in iwl_mld_get_systime() 35 mld->ptp_data.last_gp2, gp2); in iwl_mld_ptp_update_new_read() 40 if (gp2 < mld->ptp_data.last_gp2) { in iwl_mld_ptp_update_new_read() 41 if (mld->ptp_data.last_gp2 - gp2 < in iwl_mld_ptp_update_new_read() 45 gp2, mld->ptp_data.last_gp2); in iwl_mld_ptp_update_new_read() [all …]
|
| /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, 2025 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 …]
|
| /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.
|
| /linux/kernel/time/ |
| H A D | ntp.c | 1 // SPDX-License-Identifier: GPL-2.0 27 * struct ntp_data - Structure holding all NTP related state 35 * @time_maxerror: Maximum error in microseconds holding the NTP sync distance 38 * @time_freq: Frequency offset scaled nsecs/secs 41 * @ntp_tick_adj: Constant boot-param configurable NTP tick adjustment (upscaled) 50 * @pps_freq: PPS frequency offset in scaled ns/s 51 * @pps_stabil: PPS current stability in scaled ns/s 91 [ 0 ... TIMEKEEPERS_MAX - 1 ] = { 111 * The following variables are used when a pulse-per-second (PPS) signal 130 if (ntpdata->time_status & STA_PPSTIME && ntpdata->time_status & STA_PPSSIGNAL) in ntp_offset_chunk() [all …]
|
| /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 …]
|
| /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 …]
|
| /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 …]
|
| /linux/drivers/net/ethernet/intel/idpf/ |
| H A D | idpf_ptp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * idpf_ptp_get_access - Determine the access type of the PTP features 18 if (adapter->ptp->caps & direct) in idpf_ptp_get_access() 20 else if (adapter->ptp->caps & mailbox) in idpf_ptp_get_access() 27 * idpf_ptp_get_features_access - Determine the access type of PTP features 35 struct idpf_ptp *ptp = adapter->ptp; in idpf_ptp_get_features_access() 41 ptp->get_dev_clk_time_access = idpf_ptp_get_access(adapter, in idpf_ptp_get_features_access() 48 ptp->get_cross_tstamp_access = idpf_ptp_get_access(adapter, in idpf_ptp_get_features_access() 55 ptp->set_dev_clk_time_access = idpf_ptp_get_access(adapter, in idpf_ptp_get_features_access() 62 ptp->adj_dev_clk_time_access = idpf_ptp_get_access(adapter, in idpf_ptp_get_features_access() [all …]
|
| /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> 58 * struct hantro_aux_buf - auxiliary DMA buffer for hardware data 110 * @dpb_longterm: DPB long-term 229 * @tile_r_info: per-tile information array 230 * @tile_c_info: per-tile information array 354 * struct hantro_postproc_ops - post-processor operations [all …]
|
| /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 …]
|
| /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 …]
|
| /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. 116 /* 01-1B-19-00-00-00 */ 142 #define MC_NANOSECOND_MASK ((1 << MC_NANOSECOND_BITS) - 1) 143 #define MC_SECOND_MASK ((1 << (32 - MC_NANOSECOND_BITS)) - 1) 145 /* Maximum parts-per-billion adjustment that is acceptable */ 160 * struct efx_ptp_match - Matching structure, stored in sk_buff's cb area. 163 * @state: The state of the packet - whether it is ready for processing or 172 * struct efx_ptp_event_rx - A PTP receive event (from MC) 188 * struct efx_ptp_timeset - Synchronisation between host and MC [all …]
|
| /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@kernel.org> 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 …]
|
| /linux/drivers/gpu/drm/bridge/ |
| H A D | tda998x_drv.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 #include <sound/hdmi-codec.h> 25 #include <media/cec-notifier.h> 27 #include <dt-bindings/display/tda998x.h> 411 .addr = priv->cec_addr, in cec_write() 417 ret = i2c_transfer(priv->hdmi->adapter, &msg, 1); in cec_write() 419 dev_err(&priv->hdmi->dev, "Error %d writing to cec:0x%x\n", in cec_write() 429 .addr = priv->cec_addr, in cec_read() 433 .addr = priv->cec_addr, in cec_read() 441 ret = i2c_transfer(priv->hdmi->adapter, msg, ARRAY_SIZE(msg)); in cec_read() [all …]
|
| /linux/drivers/iio/imu/ |
| H A D | adis16550.c | 1 // SPDX-License-Identifier: GPL-2.0 66 /* max of 4000 SPS in scale sync */ 140 /* Calculate crc4 over four-bit nibbles, starting at the MSbit */ in spi_crc4() 141 for (i = bits - 4; i >= 0; i -= 4) in spi_crc4() 159 dev_err(&adis->spi->dev, in adis16550_spi_validate() 162 return -EIO; in adis16550_spi_validate() 166 dev_err(&adis->spi->dev, in adis16550_spi_validate() 168 return -EIO; in adis16550_spi_validate() 201 struct spi_device *spi = adis->spi; in adis16550_spi_xfer() 205 .tx_buf = &st->din[0], in adis16550_spi_xfer() [all …]
|
| /linux/drivers/video/fbdev/ |
| H A D | pm2fb.c | 8 * Copyright (c) 1998-2000 Ilario Nardinocchi (nardinoc@CS.UniBO.IT) 14 * I have a Creative Graphics Blaster Exxtreme card - pm2fb on x86. I 16 * hopefully other big-endian) devices now work, thanks to a lot of 71 * support on TVP4010 and similar where there is no RAMDAC - see 72 * comment in set_video) always request +ve sync regardless of what 74 * fixed-frequency monitor which absolutely has to have -ve sync. So 75 * these flags allow the user to specify that requests for +ve sync 76 * should be silently turned in -ve sync. 128 .height = -1, 129 .width = -1, [all …]
|
| H A D | atmel_lcdfb.c | 13 #include <linux/dma-mapping.h> 69 #define lcdc_readl(sinfo, reg) __raw_readl((sinfo)->mmio+(reg)) 70 #define lcdc_writel(sinfo, reg, val) __raw_writel((val), (sinfo)->mmio+(reg)) 107 /* some bl->props field just changed */ 140 if (sinfo->backlight) in init_backlight() 146 bl = backlight_device_register("backlight", &sinfo->pdev->dev, sinfo, in init_backlight() 149 dev_err(&sinfo->pdev->dev, "error %ld on backlight register\n", in init_backlight() 153 sinfo->backlight = bl; in init_backlight() 155 bl->props.power = BACKLIGHT_POWER_ON; in init_backlight() 156 bl->props.brightness = atmel_bl_get_brightness(bl); in init_backlight() [all …]
|
| /linux/net/batman-adv/ |
| H A D | types.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 36 * typedef batadv_dat_addr_t - type used for all DHT addresses 47 * enum batadv_dhcp_recipient - dhcp destination 61 * BATADV_TT_REMOTE_MASK - bitmask selecting the flags that are sent over the 67 * BATADV_TT_SYNC_MASK - bitmask of the flags that need to be kept in sync 73 * struct batadv_hard_iface_bat_iv - per hard-interfac [all...] |
| /linux/drivers/net/wireless/ath/ath10k/ |
| H A D | htt.h | 1 /* SPDX-License-Identifier: ISC */ 3 * Copyright (c) 2005-2011 Atheros Communications Inc. 4 * Copyright (c) 2011-2017 Qualcomm Atheros, Inc. 6 * Copyright (c) 2021, 2023-2024 Qualcomm Innovation Center, Inc. All rights reserved. 29 /* bits 5-23 currently reserved */ 34 enum htt_h2t_msg_type { /* host-to-target */ 57 u8 pad[sizeof(u32) - sizeof(struct htt_cmd_hdr)]; 74 * but the host shall use the bit-mast + bit-shift defs, to be endian- 176 * htt_data_tx_desc - used for data tx path 179 * ext_tid: for qos-data frames (0-15), see %HTT_DATA_TX_EXT_TID_ [all …]
|
| /linux/mm/ |
| H A D | compaction.c | 1 // SPDX-License-Identifier: GPL-2.0 9 * Copyright IBM Corp. 2007-2010 Mel Gorman <mel@csn.ul.ie> 17 #include <linux/backing-dev.h> 20 #include <linux/page-isolation.h> 46 * order == -1 is expected when compacting proactively via 53 return order == -1; in is_via_compact_memory() 71 * Page order with-respect-to which proactive compaction 80 #define COMPACTION_HPAGE_ORDER (PMD_SHIFT - PAGE_SHIFT) 102 list_del(&page->lru); in release_free_list() 128 zone->compact_considered = 0; in defer_compaction() [all …]
|