| /kernel/linux/linux-6.6/drivers/rtc/ |
| D | interface.c | 1 // SPDX-License-Identifier: GPL-2.0 27 if (!rtc->offset_secs) in rtc_add_offset() 35 * between expanded range and original range, which is no need to add in rtc_add_offset() 38 if ((rtc->start_secs > rtc->range_min && secs >= rtc->start_secs) || in rtc_add_offset() 39 (rtc->start_secs < rtc->range_min && in rtc_add_offset() 40 secs <= (rtc->start_secs + rtc->range_max - rtc->range_min))) in rtc_add_offset() 43 rtc_time64_to_tm(secs + rtc->offset_secs, tm); in rtc_add_offset() 50 if (!rtc->offset_secs) in rtc_subtract_offset() 57 * device, then no need to subtract the offset when setting time to RTC in rtc_subtract_offset() 61 if (secs >= rtc->range_min && secs <= rtc->range_max) in rtc_subtract_offset() [all …]
|
| /kernel/linux/linux-5.10/drivers/rtc/ |
| D | interface.c | 1 // SPDX-License-Identifier: GPL-2.0 27 if (!rtc->offset_secs) in rtc_add_offset() 35 * between expanded range and original range, which is no need to add in rtc_add_offset() 38 if ((rtc->start_secs > rtc->range_min && secs >= rtc->start_secs) || in rtc_add_offset() 39 (rtc->start_secs < rtc->range_min && in rtc_add_offset() 40 secs <= (rtc->start_secs + rtc->range_max - rtc->range_min))) in rtc_add_offset() 43 rtc_time64_to_tm(secs + rtc->offset_secs, tm); in rtc_add_offset() 50 if (!rtc->offset_secs) in rtc_subtract_offset() 57 * device, then no need to subtract the offset when setting time to RTC in rtc_subtract_offset() 61 if (secs >= rtc->range_min && secs <= rtc->range_max) in rtc_subtract_offset() [all …]
|
| D | rtc-dm355evm.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * rtc-dm355evm.c - access battery-backed counter in MSP430 firmware 19 * reasonable RTC for applications where alarms and non-NTP drift 22 * The only real glitch is the inability to read or write all four 41 * Read LSB(0) to MSB(3) bytes. Defend against the counter in dm355evm_rtc_read_time() 42 * rolling over by re-reading until the value is stable, in dm355evm_rtc_read_time() 75 dev_dbg(dev, "read timestamp %08x\n", time.value); in dm355evm_rtc_read_time() 93 * REVISIT handle non-atomic writes ... maybe just retry until in dm355evm_rtc_set_time() 94 * byte[1] sticks (no rollover)? in dm355evm_rtc_set_time() 120 /*----------------------------------------------------------------------*/ [all …]
|
| /kernel/linux/linux-6.6/arch/arm/mm/ |
| D | context.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2002-2003 Deep Blue Solutions Ltd, all rights reserved. 20 #include <asm/proc-fns.h> 26 * +-------------------------+-----------+ 28 * +-------------------------+-----------+ 30 * +-------------------------------------+ 37 * by non-64-bit operations. 59 context_id = mm->context.id.counter; in a15_erratum_get_cpumask() 80 * no need for a reserved set of tables (the active ASID tracking prevents 81 * any issues across a rollover). [all …]
|
| /kernel/linux/linux-5.10/arch/arm/mm/ |
| D | context.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2002-2003 Deep Blue Solutions Ltd, all rights reserved. 20 #include <asm/proc-fns.h> 26 * +-------------------------+-----------+ 28 * +-------------------------+-----------+ 30 * +-------------------------------------+ 37 * by non-64-bit operations. 59 context_id = mm->context.id.counter; in a15_erratum_get_cpumask() 80 * no need for a reserved set of tables (the active ASID tracking prevents 81 * any issues across a rollover). [all …]
|
| /kernel/linux/linux-6.6/drivers/mtd/devices/ |
| D | mchp48l640.c | 1 // SPDX-License-Identifier: GPL-2.0 11 * are wrong ... no idea why. 76 mutex_lock(&flash->lock); in mchp48l640_read_status() 77 ret = spi_write_then_read(flash->spi, &cmd[0], 1, &cmd[1], 1); in mchp48l640_read_status() 78 mutex_unlock(&flash->lock); in mchp48l640_read_status() 81 dev_dbg(&flash->spi->dev, "read status ret: %d status: %x", ret, *status); in mchp48l640_read_status() 94 dev_dbg(&flash->spi->dev, "read status ret: %d bit: %x %sset status: %x", in mchp48l640_waitforbit() 110 dev_err(&flash->spi->dev, "Timeout waiting for bit %x %s set in status register.", in mchp48l640_waitforbit() 112 return -ETIMEDOUT; in mchp48l640_waitforbit() 125 mutex_lock(&flash->lock); in mchp48l640_write_prepare() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/sun/ |
| D | cassini.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 29 /* cassini register map: 2M memory mapped in 32-bit memory space accessible as 30 * 32-bit words. there is no i/o port access. REG_ addresses are 62 /* top level interrupts [0-9] are auto-cleared to 0 when the status 63 * register is read. second level interrupts [13 - 18] are cleared at 64 * the source. tx completion register 3 is replicated in [19 - 31] 85 #define INTR_RX_BUF_UNAVAIL 0x00000020 /* no more receive buffers. 89 #define INTR_RX_COMP_FULL 0x00000080 /* no more room in completion 104 len of non-reassembly pkt 143 /* top level interrupt bits that are cleared during read of REG_INTR_STATUS_ALIAS. [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/sun/ |
| D | cassini.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 29 /* cassini register map: 2M memory mapped in 32-bit memory space accessible as 30 * 32-bit words. there is no i/o port access. REG_ addresses are 62 /* top level interrupts [0-9] are auto-cleared to 0 when the status 63 * register is read. second level interrupts [13 - 18] are cleared at 64 * the source. tx completion register 3 is replicated in [19 - 31] 85 #define INTR_RX_BUF_UNAVAIL 0x00000020 /* no more receive buffers. 89 #define INTR_RX_COMP_FULL 0x00000080 /* no more room in completion 104 len of non-reassembly pkt 143 /* top level interrupt bits that are cleared during read of REG_INTR_STATUS_ALIAS. [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/eeprom/ |
| D | at24.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 4 --- 6 $schema: "http://devicetree.org/meta-schemas/core.yaml#" 11 - Bartosz Golaszewski <bgolaszewski@baylibre.com> 17 pattern: "^atmel,(24(c|cs|mac)[0-9]+|spd)$" 19 - compatible 23 pattern: "^eeprom@[0-9a-f]{1,2}$" 33 - allOf: 34 - minItems: 1 37 … - pattern: "^(atmel|catalyst|microchip|nxp|ramtron|renesas|rohm|st),(24(c|cs|lc|mac)[0-9]+|spd)$" [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/eeprom/ |
| D | at24.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Bartosz Golaszewski <bgolaszewski@baylibre.com> 14 - $ref: /schemas/nvmem/nvmem.yaml 20 pattern: "^atmel,(24(c|cs|mac)[0-9]+|spd)$" 22 - compatible 26 pattern: "^eeprom@[0-9a-f]{1,2}$" 36 - allOf: 37 - minItems: 1 [all …]
|
| /kernel/linux/linux-5.10/drivers/misc/eeprom/ |
| D | at24.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * at24.c - handle most I2C EEPROMs 5 * Copyright (C) 2005-2007 David Brownell 20 #include <linux/nvmem-provider.h> 30 /* sysfs-entry will be read-only. */ 32 /* sysfs-entry will be world-readable. */ 36 /* Factory-programmed serial number. */ 38 /* Factory-programmed mac address. */ 40 /* Does not auto-rollover reads to the next slave address. */ 46 * MicroChip 24LC, etc) won't much matter for typical read/write access. [all …]
|
| /kernel/linux/linux-6.6/net/packet/ |
| D | af_packet.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * PACKET - implements raw packet sockets. 15 * Alan Cox : new skbuff lists, look ma no backlogs! 18 * added. Also fixed the peek/read crash 22 * Alan Cox : Re-commented the code. 27 * dubious gcc output. Can you read 30 * Alan Cox : New buffers. Use sk->mac.raw. 101 - If the device has no dev->header_ops->create, there is no LL header 108 needed_headroom to be (the real WiFi header length - the fake Ethernet 110 - packet socket receives packets with pulled ll header, [all …]
|
| /kernel/linux/linux-5.10/net/packet/ |
| D | af_packet.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * PACKET - implements raw packet sockets. 15 * Alan Cox : new skbuff lists, look ma no backlogs! 18 * added. Also fixed the peek/read crash 22 * Alan Cox : Re-commented the code. 27 * dubious gcc output. Can you read 30 * Alan Cox : New buffers. Use sk->mac.raw. 96 - If the device has no dev->header_ops->create, there is no LL header 103 needed_headroom to be (the real WiFi header length - the fake Ethernet 105 - packet socket receives packets with pulled ll header, [all …]
|
| /kernel/linux/linux-6.6/drivers/misc/eeprom/ |
| D | at24.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * at24.c - handle most I2C EEPROMs 5 * Copyright (C) 2005-2007 David Brownell 20 #include <linux/nvmem-provider.h> 30 /* sysfs-entry will be read-only. */ 32 /* sysfs-entry will be world-readable. */ 36 /* Factory-programmed serial number. */ 38 /* Factory-programmed mac address. */ 40 /* Does not auto-rollover reads to the next slave address. */ 46 * MicroChip 24LC, etc) won't much matter for typical read/write access. [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/msm/ |
| D | msm_fence.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2013-2016 Red Hat 7 #include <linux/dma-fence.h> 15 struct msm_drm_private *priv = fctx->dev->dev_private; in fctx2gpu() 16 return priv->gpu; in fctx2gpu() 24 kthread_queue_work(fctx2gpu(fctx)->worker, &fctx->deadline_work); in deadline_timer() 35 if (msm_fence_completed(fctx, fctx->next_deadline_fence)) in deadline_work() 51 return ERR_PTR(-ENOMEM); in msm_fence_context_alloc() 53 fctx->dev = dev; in msm_fence_context_alloc() 54 strscpy(fctx->name, name, sizeof(fctx->name)); in msm_fence_context_alloc() [all …]
|
| /kernel/linux/linux-6.6/Documentation/firmware-guide/acpi/apei/ |
| D | output_format.rst | 1 .. SPDX-License-Identifier: GPL-2.0 55 [cache error][, TLB error][, bus error][, micro-architectural error] 57 <proc operation string>* := unknown or generic | data read | data write | \ 81 unknown | no error | single-bit ECC | multi-bit ECC | \ 82 single-symbol chipkill ECC | multi-symbol chipkill ECC | master abort | \ 106 downstream switch port | PCIe to PCI/PCI-X bridge | \ 107 PCI/PCI-X to PCIe bridge | root complex integrated endpoint device | \ 120 Bad TLP | Bad DLLP | RELAY_NUM Rollover | unknown | unknown | unknown | \ 121 Replay Timer Timeout | Advisory Non-Fatal
|
| /kernel/linux/linux-5.10/Documentation/firmware-guide/acpi/apei/ |
| D | output_format.rst | 1 .. SPDX-License-Identifier: GPL-2.0 55 [cache error][, TLB error][, bus error][, micro-architectural error] 57 <proc operation string>* := unknown or generic | data read | data write | \ 81 unknown | no error | single-bit ECC | multi-bit ECC | \ 82 single-symbol chipkill ECC | multi-symbol chipkill ECC | master abort | \ 106 downstream switch port | PCIe to PCI/PCI-X bridge | \ 107 PCI/PCI-X to PCIe bridge | root complex integrated endpoint device | \ 120 Bad TLP | Bad DLLP | RELAY_NUM Rollover | unknown | unknown | unknown | \ 121 Replay Timer Timeout | Advisory Non-Fatal
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/i915/display/ |
| D | intel_tv_regs.h | 1 /* SPDX-License-Identifier: MIT */ 34 /* Selects no oversampling for 1080p */ 41 /* Sets the colorburst to PAL mode. Required for non-M PAL modes. */ 56 /* Read-only state that reports all features enabled */ 58 /* Read-only state that reports that Macrovision is disabled in hardware*/ 60 /* Read-only state that reports that TV-out is disabled in hardware. */ 64 /* Encoder test pattern 1 - combo pattern */ 66 /* Encoder test pattern 2 - full screen vertical 75% color bars */ 68 /* Encoder test pattern 3 - full screen horizontal 75% color bars */ 70 /* Encoder test pattern 4 - random noise */ [all …]
|
| /kernel/linux/linux-5.10/drivers/usb/dwc2/ |
| D | hcd.h | 1 /* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */ 3 * hcd.h - DesignWare HS OTG Controller host-mode declarations 5 * Copyright (C) 2004-2013 Synopsys, Inc. 16 * 3. The names of the above-listed copyright holders may not be used 28 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 53 * struct dwc2_host_chan - Software host channel descriptor 60 * - USB_SPEED_LOW 61 * - USB_SPEED_FULL 62 * - USB_SPEED_HIGH 64 * - USB_ENDPOINT_XFER_CONTROL: 0 [all …]
|
| /kernel/linux/linux-6.6/drivers/usb/dwc2/ |
| D | hcd.h | 1 /* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */ 3 * hcd.h - DesignWare HS OTG Controller host-mode declarations 5 * Copyright (C) 2004-2013 Synopsys, Inc. 24 * struct dwc2_host_chan - Software host channel descriptor 31 * - USB_SPEED_LOW 32 * - USB_SPEED_FULL 33 * - USB_SPEED_HIGH 35 * - USB_ENDPOINT_XFER_CONTROL: 0 36 * - USB_ENDPOINT_XFER_ISOC: 1 37 * - USB_ENDPOINT_XFER_BULK: 2 [all …]
|
| /kernel/linux/linux-6.6/arch/m68k/bvme6000/ |
| D | config.c | 31 #include <asm/bootinfo-vme.h> 49 if (be16_to_cpu(bi->tag) == BI_VME_TYPE) in bvme6000_parse_bootinfo() 65 pit->pcddr |= 0x10; /* WDOG enable */ in bvme6000_reset() 115 pit->pgcr = 0x00; /* Unidirectional 8 bit, no handshake for now */ in config_bvme6000() 116 pit->psrr = 0x18; /* PIACK and PIRQ functions enabled */ in config_bvme6000() 117 pit->pacr = 0x00; /* Sub Mode 00, H2 i/p, no DMA */ in config_bvme6000() 118 pit->padr = 0x00; /* Just to be tidy! */ in config_bvme6000() 119 pit->paddr = 0x00; /* All inputs for now (safest) */ in config_bvme6000() 120 pit->pbcr = 0x80; /* Sub Mode 1x, H4 i/p, no DMA */ in config_bvme6000() 121 pit->pbdr = 0xbc | (*config_reg_ptr & BVME_CONFIG_SW1 ? 0 : 0x40); in config_bvme6000() [all …]
|
| /kernel/linux/linux-5.10/arch/m68k/bvme6000/ |
| D | config.c | 32 #include <asm/bootinfo-vme.h> 49 if (be16_to_cpu(bi->tag) == BI_VME_TYPE) in bvme6000_parse_bootinfo() 65 pit->pcddr |= 0x10; /* WDOG enable */ in bvme6000_reset() 116 pit->pgcr = 0x00; /* Unidirectional 8 bit, no handshake for now */ in config_bvme6000() 117 pit->psrr = 0x18; /* PIACK and PIRQ functions enabled */ in config_bvme6000() 118 pit->pacr = 0x00; /* Sub Mode 00, H2 i/p, no DMA */ in config_bvme6000() 119 pit->padr = 0x00; /* Just to be tidy! */ in config_bvme6000() 120 pit->paddr = 0x00; /* All inputs for now (safest) */ in config_bvme6000() 121 pit->pbcr = 0x80; /* Sub Mode 1x, H4 i/p, no DMA */ in config_bvme6000() 122 pit->pbdr = 0xbc | (*config_reg_ptr & BVME_CONFIG_SW1 ? 0 : 0x40); in config_bvme6000() [all …]
|
| /kernel/linux/linux-5.10/include/sound/ |
| D | hda_register.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * HD-audio controller (Azalia) registers and helpers 45 #define AZX_CORBRP_RST (1 << 15) /* read pointer reset */ 107 /* Haswell/Broadwell display HD-A controller Extended Mode registers */ 111 /* Skylake/Broxton vendor-specific registers */ 139 /* max number of fragments - we may use more if allocating more pages for BDL */ 143 /* max buffer size - no h/w limit, you can increase as you like */ 152 #define STATESTS_INT_MASK ((1 << HDA_MAX_CODECS) - 1) 159 #define SD_CTL_DIR (1 << 19) /* bi-directional stream */ 179 /* below are so far hardcoded - should read registers in future */ [all …]
|
| /kernel/linux/linux-6.6/include/linux/ |
| D | hp_sdc.h | 2 * HP i8042 System Device Controller -- header 22 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR 31 * HP-HIL Technical Reference Manual. Hewlett Packard Product No. 45918A 34 * for Part Number 1820-4784 Revision B. Dwg No. A-1820-4784-2 50 /* No 4X status reads take longer than this (in usec). 104 #define HP_SDC_STATUS_PUP 0x70 /* Successful power-up self test */ 134 #define HP_SDC_STR 0x7f /* i8042 self-test result */ 146 #define HP_SDC_CFG_ROLLOVER 0x08 /* WTF is "N-key rollover"? */ 149 #define HP_SDC_CFG_KBD_OLD 0x03 /* keyboard code for non-HIL */ 167 case 0x1: str = "1820-3712"; break; \ [all …]
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | hp_sdc.h | 2 * HP i8042 System Device Controller -- header 22 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR 31 * HP-HIL Technical Reference Manual. Hewlett Packard Product No. 45918A 34 * for Part Number 1820-4784 Revision B. Dwg No. A-1820-4784-2 50 /* No 4X status reads take longer than this (in usec). 104 #define HP_SDC_STATUS_PUP 0x70 /* Successful power-up self test */ 134 #define HP_SDC_STR 0x7f /* i8042 self-test result */ 146 #define HP_SDC_CFG_ROLLOVER 0x08 /* WTF is "N-key rollover"? */ 149 #define HP_SDC_CFG_KBD_OLD 0x03 /* keyboard code for non-HIL */ 167 case 0x1: str = "1820-3712"; break; \ [all …]
|