/linux/Documentation/devicetree/bindings/mmc/ |
H A D | synopsys-dw-mshc-common.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/mmc/synopsys-dw-mshc-common.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - $ref: mmc-controller.yaml# 13 - Ulf Hansson <ulf.hansson@linaro.org> 20 reset-names: 23 clock-frequency: 29 fifo-depth: 31 The maximum size of the tx/rx fifo's. If this property is not [all …]
|
H A D | starfive,jh7110-mmc.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/mmc/starfive,jh7110-mmc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 14 - $ref: synopsys-dw-mshc-common.yaml# 17 - William Qiu <william.qiu@starfivetech.com> 21 const: starfive,jh7110-mmc 28 - description: biu clock 29 - description: ciu clock 31 clock-names: [all …]
|
H A D | synopsys-dw-mshc.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/mmc/synopsys-dw-mshc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Ulf Hansson <ulf.hansson@linaro.org> 16 - altr,socfpga-dw-mshc 17 - img,pistachio-dw-mshc 18 - snps,dw-mshc 33 clock-names: 35 - const: biu [all …]
|
/linux/drivers/net/wireless/intel/iwlwifi/fw/api/ |
H A D | sf.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright (C) 2012-2014 Intel Corporation 4 * Copyright (C) 2013-2015 Intel Mobile Communications GmbH 5 * Copyright (C) 2016-2017 Intel Deutschland GmbH 10 /* Smart Fifo state */ 19 /* Smart Fifo possible scenario */ 32 /* smart FIFO default values */ 39 /* SF Scenarios timers for default configuration (aligned to 32 uSec) */ 51 /* SF Scenarios timers for BSS MAC configuration (aligned to 32 uSec) */ 68 * struct iwl_sf_cfg_cmd - Smart Fifo configuration command. [all …]
|
/linux/drivers/iio/imu/st_lsm6dsx/ |
H A D | st_lsm6dsx_buffer.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * STMicroelectronics st_lsm6dsx FIFO buffer library driver 5 * Pattern FIFO: 6 * The FIFO buffer can be configured to store data from gyroscope and 8 * specific pattern based on 'FIFO data sets' (6 bytes each): 9 * - 1st data set is reserved for gyroscope data 10 * - 2nd data set is reserved for accelerometer data 11 * The FIFO pattern changes depending on the ODRs and decimation factors 12 * assigned to the FIFO data sets. The first sequence of data stored in FIFO 13 * buffer contains the data of all the enabled FIFO data sets [all …]
|
/linux/arch/powerpc/platforms/512x/ |
H A D | mpc512x_lpbfifo.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * The driver for Freescale MPC512x LocalPlus Bus FIFO 6 * Copyright (C) 2013-2015 Alexander Popov <alex.popov@linux.com>. 21 #include <linux/dma-direction.h> 22 #include <linux/dma-mapping.h> 61 * mpc512x_lpbfifo_irq - IRQ handler for LPB FIFO 76 if (!req || req->dir == MPC512X_LPBFIFO_REQ_DIR_READ) { in mpc512x_lpbfifo_irq() 81 status = in_be32(&lpbfifo.regs->status); in mpc512x_lpbfifo_irq() 84 out_be32(&lpbfifo.regs->enable, in mpc512x_lpbfifo_irq() 89 out_be32(&lpbfifo.regs->status, MPC512X_SCLPC_SUCCESS); in mpc512x_lpbfifo_irq() [all …]
|
/linux/drivers/gpu/drm/mcde/ |
H A D | mcde_display.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * (C) ST-Ericsson SA 2013 9 #include <linux/dma-buf.h> 11 #include <linux/media-bus-format.h> 31 /* TODO: implement FIFO C0 and FIFO C1 */ 80 mispp = readl(mcde->regs + MCDE_MISPP); in mcde_display_irq() 81 misovl = readl(mcde->regs + MCDE_MISOVL); in mcde_display_irq() 82 mischnl = readl(mcde->regs + MCDE_MISCHNL); in mcde_display_irq() 92 if (!mcde->dpi_output && mcde_dsi_irq(mcde->mdsi)) { in mcde_display_irq() 101 if (mcde->flow_mode == MCDE_COMMAND_ONESHOT_FLOW) { in mcde_display_irq() [all …]
|
/linux/drivers/net/usb/ |
H A D | smsc95xx.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 4 * Copyright (C) 2007-2008 SMSC 38 /* SCSRs - System Control and Status Registers */ 57 #define INT_STS_TDFU_ (0x00002000) /* TX Data FIFO Underrun */ 58 #define INT_STS_TDFO_ (0x00001000) /* TX Data FIFO Overrun */ 65 #define RX_FIFO_FLUSH_ (0x00000001) /* Receive FIFO Flush */ 71 #define TX_CFG_FIFO_FLUSH_ (0x00000001) /* Transmit FIFO Flush */ 88 /* Receive FIFO Information Register */ 90 #define RX_FIFO_INF_USED_ (0x0000FFFF) /* RX Data FIFO Used Space */ 92 /* Transmit FIFO Information Register */ [all …]
|
/linux/drivers/iio/imu/inv_icm42600/ |
H A D | inv_icm42600.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 91 /* ODR suffixed by LN or LP are Low-Noise or Low-Power mode only */ 110 /* Low-Noise mode sensor data filter (3rd order filter by default) */ 113 /* Low-Power mode sensor data filter (averaging) */ 124 #define INV_ICM42600_SENSOR_CONF_INIT {-1, -1, -1, -1} 139 * struct inv_icm42600_state - driver state variables 151 * @buffer: data transfer buffer aligned for DMA. 152 * @fifo: FIFO management structure. 168 struct inv_icm42600_fifo fifo; member 177 * struct inv_icm42600_sensor_state - sensor state variables [all …]
|
/linux/sound/soc/fsl/ |
H A D | fsl_dma.c | 1 // SPDX-License-Identifier: GPL-2.0 7 // Copyright 2007-2010 Freescale Semiconductor, Inc. 16 #include <linux/dma-mapping.h> 72 /** fsl_dma_private: p-substream DMA data 74 * Each substream has a 1-to-1 association with a DMA channel. 76 * The link[] array is first because it needs to be aligned on a 32-byte 120 * Since each link descriptor has a 32-bit byte count field, we set 121 * period_bytes_max to the largest 32-bit number. We also have no maximum 137 .period_bytes_max = (u32) -1, 139 .periods_max = (unsigned int) -1, [all …]
|
H A D | fsl_ssi.c | 1 // SPDX-License-Identifier: GPL-2.0 7 // Copyright 2007-2010 Freescale Semiconductor, Inc. 9 // Some notes why imx-pcm-fiq is used instead of DMA on some boards: 12 // sane processor vendors have a FIFO per AC97 slot, the i.MX has only 13 // one FIFO which combines all valid receive slots. We cannot even select 16 // we receive in our (PCM-) data stream. The only chance we have is to 43 #include <linux/dma/imx-dma.h> 53 #include "imx-pcm.h" 55 /* Define RX and TX to index ssi->regvals array; Can be 0 or 1 only */ 65 * order. The STX is a shift register, so all the bits need to be aligned [all …]
|
/linux/drivers/i2c/busses/ |
H A D | i2c-fsi.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * FSI-attached I2C controller algorithm 71 /* watermark register */ 189 u32 mode = I2C_MODE_ENHANCED, extended_status, watermark; in fsi_i2c_dev_init() local 193 rc = fsi_i2c_write_reg(i2c->fsi, I2C_FSI_INT_MASK, &interrupt); in fsi_i2c_dev_init() 198 rc = fsi_i2c_write_reg(i2c->fsi, I2C_FSI_MODE, &mode); in fsi_i2c_dev_init() 202 rc = fsi_i2c_read_reg(i2c->fsi, I2C_FSI_ESTAT, &extended_status); in fsi_i2c_dev_init() 206 i2c->fifo_size = FIELD_GET(I2C_ESTAT_FIFO_SZ, extended_status); in fsi_i2c_dev_init() 207 watermark = FIELD_PREP(I2C_WATERMARK_HI, in fsi_i2c_dev_init() 208 i2c->fifo_size - I2C_FIFO_HI_LVL); in fsi_i2c_dev_init() [all …]
|
/linux/drivers/net/ethernet/broadcom/ |
H A D | b44.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 17 #define B44_BIST_STAT 0x000CUL /* Built-In Self-Test Status */ 41 #define ISTAT_RFO 0x00004000 /* Receive FIFO Overflow */ 42 #define ISTAT_TFU 0x00008000 /* Transmit FIFO Underflow */ 65 #define MAC_FLOW_RX_HI_WATER 0x000000ff /* Receive FIFO HI Water Mark */ 90 #define DMATX_STAT_EDFU 0x00020000 /* Error Data FIFO Underrun */ 110 #define DMARX_STAT_EDFO 0x00020000 /* Error Data FIFO Overflow */ 113 #define B44_DMAFIFO_AD 0x0220UL /* DMA FIFO Diag Address */ 120 #define DMAFIFO_AD_SXFD 0x00080000 /* Select Transmit FIFO Data */ 121 #define DMAFIFO_AD_SXFP 0x00090000 /* Select Transmit FIFO Pointers */ [all …]
|
/linux/arch/riscv/boot/dts/starfive/ |
H A D | jh7110.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 7 /dts-v1/; 8 #include <dt-bindings/clock/starfive,jh7110-crg.h> 9 #include <dt-bindings/power/starfive,jh7110-pmu.h> 10 #include <dt-bindings/reset/starfive,jh7110-crg.h> 11 #include <dt-bindings/thermal/thermal.h> 15 #address-cells = <2>; 16 #size-cells = <2>; 19 #address-cells = <1>; 20 #size-cells = <0>; [all …]
|
/linux/drivers/tty/serial/ |
H A D | serial-tegra.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * High-speed serial driver for NVIDIA Tegra SoCs 7 * Copyright (c) 2012-2019, NVIDIA CORPORATION. All rights reserved. 16 #include <linux/dma-mapping.h> 56 * Tx fifo trigger level setting in tegra uart is in 79 * @tx_fifo_full_status: Status flag available for checking tx fifo full. 80 * @allow_txfifo_reset_fifo_mode: allow_tx fifo reset with fifo mode or not. 83 * @fifo_mode_enable_status: Is FIFO mode enabled? 159 return readl(tup->uport.membase + (reg << tup->uport.regshift)); in tegra_uart_read() 165 writel(val, tup->uport.membase + (reg << tup->uport.regshift)); in tegra_uart_write() [all …]
|
/linux/drivers/mmc/host/ |
H A D | dw_mmc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 14 #include <linux/dma-mapping.h> 38 #include <linux/mmc/slot-gpio.h> 73 ((d)->des2 = ((d)->des2 & cpu_to_le32(0x03ffe000)) | \ 78 u32 des4; /* Lower 32-bits of Buffer Address Pointer 1*/ 79 u32 des5; /* Upper 32-bits of Buffer Address Pointer 1*/ 81 u32 des6; /* Lower 32-bits of Next Descriptor Address */ 82 u32 des7; /* Upper 32-bits of Next Descriptor Address */ 97 ((d)->des1 = ((d)->des1 & cpu_to_le32(0x03ffe000)) | (cpu_to_le32((s) & 0x1fff))) 110 struct dw_mci_slot *slot = s->private; in dw_mci_req_show() [all …]
|
/linux/drivers/net/wireless/intel/iwlwifi/ |
H A D | iwl-trans.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright (C) 2005-2014, 2018-2023 Intel Corporation 4 * Copyright (C) 2013-2015 Intel Mobile Communications GmbH 5 * Copyright (C) 2016-2017 Intel Deutschland GmbH 15 #include "iwl-debug.h" 16 #include "iwl-config.h" 18 #include "iwl-op-mode.h" 22 #include "fw/api/dbg-tlv.h" 23 #include "iwl-dbg-tlv.h" 26 * DOC: Transport layer - what is it ? [all …]
|
/linux/drivers/iio/imu/ |
H A D | adis16475.c | 1 // SPDX-License-Identifier: GPL-2.0 171 struct adis16475 *st = file->private_data; in adis16475_show_firmware_revision() 177 ret = adis_read_reg_16(&st->adis, ADIS16475_REG_FIRM_REV, &rev); in adis16475_show_firmware_revision() 197 struct adis16475 *st = file->private_data; in adis16475_show_firmware_date() 203 ret = adis_read_reg_16(&st->adis, ADIS16475_REG_FIRM_Y, &year); in adis16475_show_firmware_date() 207 ret = adis_read_reg_16(&st->adis, ADIS16475_REG_FIRM_DM, &md); in adis16475_show_firmware_date() 211 len = snprintf(buf, sizeof(buf), "%.2x-%.2x-%.4x\n", md >> 8, md & 0xff, in adis16475_show_firmware_date() 230 ret = adis_read_reg_16(&st->adis, ADIS16475_REG_SERIAL_NUM, &serial); in adis16475_show_serial_number() 247 ret = adis_read_reg_16(&st->adis, ADIS16475_REG_PROD_ID, &prod_id); in adis16475_show_product_id() 264 ret = adis_read_reg_32(&st->adis, ADIS16475_REG_FLASH_CNT, in adis16475_show_flash_count() [all …]
|
/linux/drivers/spi/ |
H A D | spi-geni-qcom.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // Copyright (c) 2017-2018, The Linux foundation. All rights reserved. 6 #include <linux/dma-mapping.h> 7 #include <linux/dma/qcom-gpi-dma.h> 16 #include <linux/soc/qcom/geni-se.h> 108 struct geni_se *se = &mas->se; in spi_slv_setup() 110 writel(SPI_SLAVE_EN, se->base + SE_SPI_SLAVE_EN); in spi_slv_setup() 111 writel(GENI_IO_MUX_0_EN, se->base + GENI_OUTPUT_CTRL); in spi_slv_setup() 112 writel(START_TRIGGER, se->base + SE_GENI_CFG_SEQ_START); in spi_slv_setup() 113 dev_dbg(mas->dev, "spi slave setup done\n"); in spi_slv_setup() [all …]
|
H A D | spi-imx.c | 1 // SPDX-License-Identifier: GPL-2.0+ 2 // Copyright 2004-2007 Freescale Semiconductor, Inc. All Rights Reserved. 11 #include <linux/dma-mapping.h> 30 #include <linux/dma/imx-dma.h> 54 #define MXC_INT_TE (1 << 1) /* Transmit FIFO empty interrupt */ 118 unsigned int txfifo; /* number of words pushed in tx FIFO */ 138 return d->devtype_data->devtype == IMX27_CSPI; in is_imx27_cspi() 143 return d->devtype_data->devtype == IMX35_CSPI; in is_imx35_cspi() 148 return d->devtype_data->devtype == IMX51_ECSPI; in is_imx51_ecspi() 153 return d->devtype_data->devtype == IMX53_ECSPI; in is_imx53_ecspi() [all …]
|
/linux/drivers/net/ethernet/marvell/ |
H A D | sky2.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * of the original driver such as link fail-over and link management because 19 #include <linux/dma-mapping.h> 54 #define RX_MAX_PENDING (RX_LE_SIZE/6 - 2) 70 #define RING_NEXT(x, s) (((x)+1) & ((s)-1)) 77 static int debug = -1; /* defaults above */ 85 static int disable_msi = -1; 94 { PCI_DEVICE(PCI_VENDOR_ID_SYSKONNECT, 0x9000) }, /* SK-9Sxx */ 95 { PCI_DEVICE(PCI_VENDOR_ID_SYSKONNECT, 0x9E00) }, /* SK-9Exx */ 96 { PCI_DEVICE(PCI_VENDOR_ID_SYSKONNECT, 0x9E01) }, /* SK-9E21M */ [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/ |
H A D | dml2_core_shared.c | 1 // SPDX-License-Identifier: MIT 13 *remainder = ((dividend / divisor) - (int)(dividend / divisor) > 0); in dml2_core_shared_div_rem() 106 unsigned int SwathWidthY[], // per-pipe 107 unsigned int SwathWidthC[], // per-pipe 110 unsigned int swath_width_luma_ub[], // per-pipe 111 unsigned int swath_width_chroma_ub[]); // per-pipe 753 struct dml2_core_internal_display_mode_lib *mode_lib = in_out_params->mode_lib; in dml2_core_shared_mode_support() 754 const struct dml2_display_cfg *display_cfg = in_out_params->in_display_cfg; in dml2_core_shared_mode_support() 755 const struct dml2_mcg_min_clock_table *min_clk_table = in_out_params->min_clk_table; in dml2_core_shared_mode_support() 757 struct dml2_core_calcs_mode_support_locals *s = &mode_lib->scratch.dml_core_mode_support_locals; in dml2_core_shared_mode_support() [all …]
|
/linux/include/linux/ |
H A D | mm_types.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 18 #include <linux/page-flags-layout.h> 46 * which is guaranteed to be aligned. If you use the same storage as 47 * page->mapping, you must restore it to NULL before freeing the page. 62 * double-word aligned. Because struct slab currently just reinterprets the 63 * bits of struct page, we align all struct pages to double-word boundaries, 64 * and ensure that 'freelist' is aligned within struct slab. 79 * avoid collision and false-positive PageTail(). 85 * lruvec->lru_lock. Sometimes used as a generic list 103 /* See page-flags.h for PAGE_MAPPING_FLAGS */ [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/basics/ |
H A D | dce_calcs.c | 36 * This file is gcc-parseable HW gospel, coming straight from HW engineers. 40 * remain as-is as it provides us with a guarantee from HW that it is correct. 139 yclk[low] = vbios->low_yclk; in calculate_bandwidth() 140 yclk[mid] = vbios->mid_yclk; in calculate_bandwidth() 141 yclk[high] = vbios->high_yclk; in calculate_bandwidth() 142 sclk[s_low] = vbios->low_sclk; in calculate_bandwidth() 143 sclk[s_mid1] = vbios->mid1_sclk; in calculate_bandwidth() 144 sclk[s_mid2] = vbios->mid2_sclk; in calculate_bandwidth() 145 sclk[s_mid3] = vbios->mid3_sclk; in calculate_bandwidth() 146 sclk[s_mid4] = vbios->mid4_sclk; in calculate_bandwidth() [all …]
|
/linux/drivers/gpu/drm/radeon/ |
H A D | atombios.h | 2 * Copyright 2006-2007 Advanced Micro Devices, Inc. 214 UCHAR uaFirmWareSignature[4]; /*Signature to distinguish between Atombios and non-atombios, 397 …ONG ulPointerReturnFlag:1; // BYTE_3[7]=1 - Return the pointer to the right Data Block; BYTE_… 403 …ONG ulPointerReturnFlag:1; // BYTE_3[7]=1 - Return the pointer to the right Data Block; BYTE_… 410 …ULONG ulClock; //When returen, it's the re-calculated clock based on given Fb_div Post_Di… 504 …UCHAR ucInputFlag; //Input Flags. ucInputFlag[0] - Strobe(1)/Performance(0)… 536 #define ATOM_PLL_INPUT_FLAG_PLL_STROBE_MODE_EN 1 // 1-StrobeMode, 0-PerformanceMode 544 …bDiv; //Output:UPPER_WORD=FB_DIV_INTEGER, LOWER_WORD=FB_DIV_FRAC shl (16-FB_FRACTION_BITS) 549 … //Input : ATOM_PLL_INPUT_FLAG_PLL_STROBE_MODE_EN: 1-StrobeMode, 0-PerformanceMode 815 // Following function ENABLE sub-function will be used by driver when TMDS/HDMI/LVDS is used, disab… [all …]
|