| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/spi/ |
| D | spi-xilinx.txt | 2 ------------------------------------------------- 5 - compatible : Should be "xlnx,xps-spi-2.00.a", "xlnx,xps-spi-2.00.b" or "xlnx,axi-quad-spi-1.00.a" 6 - reg : Physical base address and size of SPI registers map. 7 - interrupts : Property with a value describing the interrupt 11 - xlnx,num-ss-bits : Number of chip selects used. 12 - xlnx,num-transfer-bits : Number of bits per transfer. This will be 8 if not specified 16 compatible = "xlnx,xps-spi-2.00.a"; 17 interrupt-parent = <&intc>; 20 xlnx,num-ss-bits = <0x1>; 21 xlnx,num-transfer-bits = <32>;
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/spi/ |
| D | spi-xilinx.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/spi/spi-xilinx.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Michal Simek <michal.simek@amd.com> 13 - $ref: spi-controller.yaml# 18 - xlnx,xps-spi-2.00.a 19 - xlnx,xps-spi-2.00.b 20 - xlnx,axi-quad-spi-1.00.a 28 xlnx,num-ss-bits: [all …]
|
| /kernel/linux/linux-5.10/drivers/spi/ |
| D | spi-topcliff-pch.c | 1 // SPDX-License-Identifier: GPL-2.0-only 79 #define MASK_SPBRR_SPBR_BITS ((1 << 10) - 1) 123 * struct pch_spi_data - Holds the SPI channel specific details 130 * @transfer_complete: Status of SPI Transfer 135 * @bpw_len: Length of data to be transferred in bits per 137 * @transfer_active: Flag showing active transfer 139 * transfer 141 * transfer 150 * @cur_trans: The current transfer that this SPI driver is 191 * struct pch_spi_board_data - Holds the SPI device specific details [all …]
|
| /kernel/linux/linux-6.6/drivers/spi/ |
| D | spi-topcliff-pch.c | 1 // SPDX-License-Identifier: GPL-2.0-only 79 #define MASK_SPBRR_SPBR_BITS ((1 << 10) - 1) 124 * struct pch_spi_data - Holds the SPI channel specific details 131 * @transfer_complete: Status of SPI Transfer 136 * @bpw_len: Length of data to be transferred in bits per 138 * @transfer_active: Flag showing active transfer 140 * transfer 142 * transfer 151 * @cur_trans: The current transfer that this SPI driver is 192 * struct pch_spi_board_data - Holds the SPI device specific details [all …]
|
| /kernel/linux/linux-6.6/sound/core/ |
| D | pcm_lib.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Abramo Bagnara <abramo@alsa-project.org> 43 delta = new_ptr - ptr; in update_silence_vars() 47 delta += runtime->boundary; in update_silence_vars() 48 if ((snd_pcm_uframes_t)delta < runtime->silence_filled) in update_silence_vars() 49 runtime->silence_filled -= delta; in update_silence_vars() 51 runtime->silence_filled = 0; in update_silence_vars() 52 runtime->silence_start = new_ptr; in update_silence_vars() 57 * runtime->silence_start: starting pointer to silence area 58 * runtime->silence_filled: size filled with silence [all …]
|
| /kernel/linux/linux-5.10/sound/core/ |
| D | pcm_lib.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Abramo Bagnara <abramo@alsa-project.org> 38 * runtime->silence_start: starting pointer to silence area 39 * runtime->silence_filled: size filled with silence 40 * runtime->silence_threshold: threshold from application 41 * runtime->silence_size: maximal size from application 43 * when runtime->silence_size >= runtime->boundary - fill processed area with silence immediately 47 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_playback_silence() 48 snd_pcm_uframes_t frames, ofs, transfer; in snd_pcm_playback_silence() local 51 if (runtime->silence_size < runtime->boundary) { in snd_pcm_playback_silence() [all …]
|
| /kernel/linux/linux-5.10/drivers/media/common/saa7146/ |
| D | saa7146_i2c.c | 1 // SPDX-License-Identifier: GPL-2.0 4 #include <media/drv-intf/saa7146_vv.h> 8 /* DEB_I2C("'%s'\n", adapter->name); */ in saa7146_i2c_func() 16 /* this function returns the status-register of our i2c-device */ 24 /* this function runs through the i2c-messages and prepares the data to be 26 to understand this. it returns the number of u32s to send, or -1 28 static int saa7146_i2c_msg_prepare(const struct i2c_msg *m, int num, __le32 *op) in saa7146_i2c_msg_prepare() argument 35 for(i = 0; i < num; i++) { in saa7146_i2c_msg_prepare() 41 mem = 1 + ((mem-1) / 3); in saa7146_i2c_msg_prepare() 47 /* DEB_I2C("cannot prepare i2c-message\n"); */ in saa7146_i2c_msg_prepare() [all …]
|
| /kernel/linux/linux-6.6/drivers/media/common/saa7146/ |
| D | saa7146_i2c.c | 1 // SPDX-License-Identifier: GPL-2.0 4 #include <media/drv-intf/saa7146_vv.h> 8 /* DEB_I2C("'%s'\n", adapter->name); */ in saa7146_i2c_func() 16 /* this function returns the status-register of our i2c-device */ 24 /* this function runs through the i2c-messages and prepares the data to be 26 to understand this. it returns the number of u32s to send, or -1 28 static int saa7146_i2c_msg_prepare(const struct i2c_msg *m, int num, __le32 *op) in saa7146_i2c_msg_prepare() argument 35 for(i = 0; i < num; i++) { in saa7146_i2c_msg_prepare() 41 mem = 1 + ((mem-1) / 3); in saa7146_i2c_msg_prepare() 47 /* DEB_I2C("cannot prepare i2c-message\n"); */ in saa7146_i2c_msg_prepare() [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/sun4i/ |
| D | sun4i_hdmi_i2c.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (C) 2016 Maxime Ripard <maxime.ripard@free-electrons.com> 28 * 1 byte takes 9 clock cycles (8 bits + 1 ACK) = 90 us for 100 kHz in fifo_transfer() 41 (hdmi->variant->ddc_fifo_thres_incl ? 0 : 1); in fifo_transfer() 44 * Limit transfer length by FIFO threshold or FIFO size. in fifo_transfer() 49 /* Wait until error, FIFO request bit set or transfer complete */ in fifo_transfer() 50 if (regmap_field_read_poll_timeout(hdmi->field_ddc_int_status, reg, in fifo_transfer() 53 return -ETIMEDOUT; in fifo_transfer() 56 return -EIO; in fifo_transfer() 59 ioread8_rep(hdmi->base + hdmi->variant->ddc_fifo_reg, buf, len); in fifo_transfer() [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/sun4i/ |
| D | sun4i_hdmi_i2c.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (C) 2016 Maxime Ripard <maxime.ripard@free-electrons.com> 28 * 1 byte takes 9 clock cycles (8 bits + 1 ACK) = 90 us for 100 kHz in fifo_transfer() 41 (hdmi->variant->ddc_fifo_thres_incl ? 0 : 1); in fifo_transfer() 44 * Limit transfer length by FIFO threshold or FIFO size. in fifo_transfer() 49 /* Wait until error, FIFO request bit set or transfer complete */ in fifo_transfer() 50 if (regmap_field_read_poll_timeout(hdmi->field_ddc_int_status, reg, in fifo_transfer() 53 return -ETIMEDOUT; in fifo_transfer() 56 return -EIO; in fifo_transfer() 59 readsb(hdmi->base + hdmi->variant->ddc_fifo_reg, buf, len); in fifo_transfer() [all …]
|
| /kernel/linux/linux-5.10/drivers/usb/gadget/udc/bdc/ |
| D | bdc.h | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * bdc.h - header for the BRCM BDC USB3.0 device controller 18 #include <linux/dma-mapping.h> 46 /* Num of bds per table */ 49 /* Num of tables in bd list for control,bulk and Int ep */ 52 /* Num of tables in bd list for Isoch ep */ 223 /* Control transfer BD specific fields */ 242 /* Transfer BD fields */ 252 /* One BD can transfer max 65536 bytes */ 274 /* On disconnect, preserve these bits and clear rest */ [all …]
|
| /kernel/linux/linux-6.6/drivers/usb/gadget/udc/bdc/ |
| D | bdc.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * bdc.h - header for the BRCM BDC USB3.0 device controller 18 #include <linux/dma-mapping.h> 46 /* Num of bds per table */ 49 /* Num of tables in bd list for control,bulk and Int ep */ 52 /* Num of tables in bd list for Isoch ep */ 223 /* Control transfer BD specific fields */ 242 /* Transfer BD fields */ 252 /* One BD can transfer max 65536 bytes */ 274 /* On disconnect, preserve these bits and clear rest */ [all …]
|
| /kernel/linux/linux-5.10/drivers/i2c/busses/ |
| D | i2c-stm32f4.c | 1 // SPDX-License-Identifier: GPL-2.0 13 * This driver is based on i2c-st.c 31 #include "i2c-stm32.h" 97 * struct stm32f4_i2c_msg - client specific data 98 * @addr: 8-bit slave addr, including r/w bit 101 * @result: result of the transfer 113 * struct stm32f4_i2c_dev - private data of the controller 121 * @msg: I2C transfer information 146 void __iomem *reg = i2c_dev->base + STM32F4_I2C_CR2; in stm32f4_i2c_disable_irq() 156 i2c_dev->parent_rate = clk_get_rate(i2c_dev->clk); in stm32f4_i2c_set_periph_clk_freq() [all …]
|
| D | i2c-synquacer.c | 1 // SPDX-License-Identifier: GPL-2.0 36 #define SYNQUACER_I2C_BSR_FBT BIT(0) // First Byte Transfer 39 #define SYNQUACER_I2C_BSR_TRX BIT(3) // Transfer/Receive 70 DIV_ROUND_UP(DIV_ROUND_UP((rate), I2C_MAX_STANDARD_MODE_FREQ) - 2, 2) 73 DIV_ROUND_UP((DIV_ROUND_UP((rate), I2C_MAX_FAST_MODE_FREQ) - 2) * 2, 3) 76 /* calculate the value of CS bits in CCR register on standard mode */ 78 ((SYNQUACER_I2C_CLK_MASTER_STD(rate) - 65) \ 81 /* calculate the value of CS bits in CSR register on standard mode */ 84 /* calculate the value of CS bits in CCR register on fast mode */ 86 ((SYNQUACER_I2C_CLK_MASTER_FAST(rate) - 1) \ [all …]
|
| D | i2c-brcmstb.c | 32 * data register whereas STB SoCs use 4 byte per data register transfer, 63 /* Condition mask used for non combined transfer */ 69 /* BSC data transfer direction */ 72 /* BSC data transfer direction combined format */ 186 __bsc_readl(_dev->base + offsetof(struct bsc_regs, _reg)) 189 __bsc_writel(_val, _dev->base + offsetof(struct bsc_regs, _reg)) 193 return (N_DATA_REGS * dev->data_regsz); in brcmstb_i2c_get_xfersz() 198 return dev->data_regsz; in brcmstb_i2c_get_data_regsz() 207 dev->bsc_regmap->ctl_reg |= BSC_CTL_REG_INT_EN_MASK; in brcmstb_i2c_enable_disable_irq() 210 dev->bsc_regmap->ctl_reg &= ~BSC_CTL_REG_INT_EN_MASK; in brcmstb_i2c_enable_disable_irq() [all …]
|
| D | i2c-axxia.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * maximum 255 bytes at a time. If a larger transfer is attempted, error code 8 * (-EINVAL) is returned. 84 #define SLV_ADDR_DEC_SA1M BIT(3) /* 10-bit addressing for addr_1 enabled */ 86 #define SLV_ADDR_DEC_SA2M BIT(5) /* 10-bit addressing for addr_2 enabled */ 106 #define SLV_STATUS_WTC BIT(1) /* Write transfer complete */ 121 * axxia_i2c_dev - I2C device context 124 * @msg_r: pointer to current read message (sequence transfer) 133 * @last: a flag indicating is this is last message in transfer 156 int_en = readl(idev->base + MST_INT_ENABLE); in i2c_int_disable() [all …]
|
| /kernel/linux/linux-6.6/drivers/i2c/busses/ |
| D | i2c-stm32f4.c | 1 // SPDX-License-Identifier: GPL-2.0 13 * This driver is based on i2c-st.c 31 #include "i2c-stm32.h" 97 * struct stm32f4_i2c_msg - client specific data 98 * @addr: 8-bit slave addr, including r/w bit 101 * @result: result of the transfer 113 * struct stm32f4_i2c_dev - private data of the controller 121 * @msg: I2C transfer information 146 void __iomem *reg = i2c_dev->base + STM32F4_I2C_CR2; in stm32f4_i2c_disable_irq() 156 i2c_dev->parent_rate = clk_get_rate(i2c_dev->clk); in stm32f4_i2c_set_periph_clk_freq() [all …]
|
| D | i2c-synquacer.c | 1 // SPDX-License-Identifier: GPL-2.0 36 #define SYNQUACER_I2C_BSR_FBT BIT(0) // First Byte Transfer 39 #define SYNQUACER_I2C_BSR_TRX BIT(3) // Transfer/Receive 70 DIV_ROUND_UP(DIV_ROUND_UP((rate), I2C_MAX_STANDARD_MODE_FREQ) - 2, 2) 73 DIV_ROUND_UP((DIV_ROUND_UP((rate), I2C_MAX_FAST_MODE_FREQ) - 2) * 2, 3) 76 /* calculate the value of CS bits in CCR register on standard mode */ 78 ((SYNQUACER_I2C_CLK_MASTER_STD(rate) - 65) \ 81 /* calculate the value of CS bits in CSR register on standard mode */ 84 /* calculate the value of CS bits in CCR register on fast mode */ 86 ((SYNQUACER_I2C_CLK_MASTER_FAST(rate) - 1) \ [all …]
|
| D | i2c-brcmstb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 21 * data register whereas STB SoCs use 4 byte per data register transfer, 52 /* Condition mask used for non combined transfer */ 58 /* BSC data transfer direction */ 61 /* BSC data transfer direction combined format */ 175 __bsc_readl(_dev->base + offsetof(struct bsc_regs, _reg)) 178 __bsc_writel(_val, _dev->base + offsetof(struct bsc_regs, _reg)) 182 return (N_DATA_REGS * dev->data_regsz); in brcmstb_i2c_get_xfersz() 187 return dev->data_regsz; in brcmstb_i2c_get_data_regsz() 196 dev->bsc_regmap->ctl_reg |= BSC_CTL_REG_INT_EN_MASK; in brcmstb_i2c_enable_disable_irq() [all …]
|
| D | i2c-axxia.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * maximum 255 bytes at a time. If a larger transfer is attempted, error code 8 * (-EINVAL) is returned. 84 #define SLV_ADDR_DEC_SA1M BIT(3) /* 10-bit addressing for addr_1 enabled */ 86 #define SLV_ADDR_DEC_SA2M BIT(5) /* 10-bit addressing for addr_2 enabled */ 106 #define SLV_STATUS_WTC BIT(1) /* Write transfer complete */ 121 * struct axxia_i2c_dev - I2C device context 124 * @msg_r: pointer to current read message (sequence transfer) 133 * @last: a flag indicating is this is last message in transfer 156 int_en = readl(idev->base + MST_INT_ENABLE); in i2c_int_disable() [all …]
|
| /kernel/linux/linux-5.10/drivers/message/fusion/ |
| D | mptctl.h | 8 * Copyright (c) 1999-2008 LSI Corporation 9 * (mailto:DL-MPTFusionLinux@lsi.com) 12 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 26 LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, 45 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 50 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 54 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 93 * (as the app. will not use 8-byte pointers). 117 * iocnum - must be defined. 118 * port - must be defined for all IOCTL commands other than MPTIOCINFO [all …]
|
| /kernel/linux/linux-6.6/drivers/message/fusion/ |
| D | mptctl.h | 8 * Copyright (c) 1999-2008 LSI Corporation 9 * (mailto:DL-MPTFusionLinux@lsi.com) 12 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 26 LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, 45 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 50 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 54 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 93 * (as the app. will not use 8-byte pointers). 117 * iocnum - must be defined. 118 * port - must be defined for all IOCTL commands other than MPTIOCINFO [all …]
|
| /kernel/linux/linux-5.10/drivers/mmc/core/ |
| D | sdio_io.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright 2007-2008 Pierre Ossman 21 * sdio_claim_host - exclusively claim a bus for a certain SDIO function 32 mmc_claim_host(func->card->host); in sdio_claim_host() 37 * sdio_release_host - release a bus for a certain SDIO function 48 mmc_release_host(func->card->host); in sdio_release_host() 53 * sdio_enable_func - enables a SDIO function for usage 66 return -EINVAL; in sdio_enable_func() 70 ret = mmc_io_rw_direct(func->card, 0, 0, SDIO_CCCR_IOEx, 0, ®); in sdio_enable_func() 74 reg |= 1 << func->num; in sdio_enable_func() [all …]
|
| /kernel/linux/linux-6.6/drivers/mmc/core/ |
| D | sdio_io.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright 2007-2008 Pierre Ossman 21 * sdio_claim_host - exclusively claim a bus for a certain SDIO function 32 mmc_claim_host(func->card->host); in sdio_claim_host() 37 * sdio_release_host - release a bus for a certain SDIO function 48 mmc_release_host(func->card->host); in sdio_release_host() 53 * sdio_enable_func - enables a SDIO function for usage 66 return -EINVAL; in sdio_enable_func() 70 ret = mmc_io_rw_direct(func->card, 0, 0, SDIO_CCCR_IOEx, 0, ®); in sdio_enable_func() 74 reg |= 1 << func->num; in sdio_enable_func() [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/mailbox/ |
| D | arm,mhu.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jassi Brar <jaswinder.singh@linaro.org> 13 The ARM's Message-Handling-Unit (MHU) is a mailbox controller that has 3 22 interrupt signal using a 32-bit register, with all 32-bits logically ORed 24 check the status of each of the bits of this register independently. The use 25 of 32 bits per interrupt line enables software to provide more information 28 interrupt. Each of the 32-bits can be used as "doorbell" to alert the remote 37 - arm,mhu [all …]
|