/linux/drivers/rtc/ |
H A 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 …]
|
H A D | rtc-ds1305.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rtc-ds1305.c -- driver for DS1305 and DS1306 SPI RTC chips 21 * otherwise you're reading it. All non-bitmask values are BCD. 27 * - Need fancy "hours" encoding in 12hour mode 28 * - Don't rely on the "day-of-week" field (or tm_wday) 29 * - Are a 21st-century clock (2000 <= year < 2100) 50 * NOTE ALSO that while we could generate once-a-second IRQs (UIE), we 52 * no alarm is pending (not the standard model), or to use the second 98 /*----------------------------------------------------------------------*/ 101 * Utilities ... tolerate 12-hour AM/PM notation in case of non-Linux [all …]
|
H A D | rtc-pcf85063.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * Maintainers: http://www.nslu2-linux.org/ 12 #include <linux/clk-provider.h> 24 * https://www.nxp.com/docs/en/data-sheet/PCF85063A.pdf 25 * https://www.nxp.com/docs/en/data-sheet/PCF85063TP.pdf 27 * PCF85063A -- Rev. 7 — 30 March 2018 28 * PCF85063TP -- Rev. 4 — 6 May 2015 30 * https://www.microcrystal.com/fileadmin/Media/Products/RTC/App.Manual/RV-8263-C7_App-Manual.pdf 31 * RV8263 -- Rev. 1.0 — January 2019 84 * event, the access must be finished within one second. So, read all in pcf85063_rtc_read_time() [all …]
|
/linux/arch/arm/mm/ |
H A 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 …]
|
/linux/drivers/net/ethernet/sun/ |
H A 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 …]
|
/linux/drivers/md/dm-vdo/ |
H A D | dedupe.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 * deduplicate against a single block instead of being serialized through a PBN read lock. Only one 19 * to that zone. The concurrency guarantees of this single-threaded model allow the code to omit 20 * more fine-grained locking for the hash_lock structures. 33 * new data_vios that arrive) use to share a PBN lock. In state DEDUPING, there is no agent. When 43 * lock (LOCKING), to the kernel I/O threads to read and verify the data (VERIFYING), or to write a 47 * index query (UPDATING, triggered by stale advice, compression, and rollover), releasing the PBN 51 * The shortest sequence of states is for non-concurrent writes of new data: 52 * INITIALIZING -> QUERYING -> WRITING -> BYPASSING 53 * This sequence is short because no PBN read lock or index update is needed. [all …]
|
/linux/net/packet/ |
H A 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 …]
|
/linux/drivers/gpu/drm/msm/ |
H A 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 …]
|
/linux/Documentation/firmware-guide/acpi/apei/ |
H A 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
|
/linux/drivers/gpu/drm/i915/display/ |
H A 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 …]
|
/linux/drivers/usb/dwc2/ |
H A 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 …]
|
/linux/arch/m68k/bvme6000/ |
H A D | config.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 28 #include <asm/bootinfo-vme.h> 46 if (be16_to_cpu(bi->tag) == BI_VME_TYPE) in bvme6000_parse_bootinfo() 62 pit->pcddr |= 0x10; /* WDOG enable */ in bvme6000_reset() 112 pit->pgcr = 0x00; /* Unidirectional 8 bit, no handshake for now */ in config_bvme6000() 113 pit->psrr = 0x18; /* PIACK and PIRQ functions enabled */ in config_bvme6000() 114 pit->pacr = 0x00; /* Sub Mode 00, H2 i/p, no DMA */ in config_bvme6000() 115 pit->padr = 0x00; /* Just to be tidy! */ in config_bvme6000() 116 pit->paddr = 0x00; /* All inputs for now (safest) */ in config_bvme6000() 117 pit->pbcr = 0x80; /* Sub Mode 1x, H4 i/p, no DMA */ in config_bvme6000() [all …]
|
/linux/drivers/gpu/drm/amd/include/ |
H A D | kgd_pp_interface.h | 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 167 PP_SMC_POWER_PROFILE_UNKNOWN = -1, 237 * APU power is managed to system-level requirements through the PPT 247 * enum pp_power_limit_level - Used to query the power limits 255 PP_PWR_LIMIT_MIN = -1, 262 * enum pp_power_type - Used to specify the type of the requested power 275 XGMI_PLPD_NONE = -1, 283 PP_PM_POLICY_NONE = -1, 768 /* Energy (15.259uJ (2^-16) units) */ 804 /* PCIE replay rollover accumulated count */ [all …]
|
/linux/include/linux/ |
H A 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 …]
|
/linux/drivers/net/ethernet/cadence/ |
H A D | macb_ptp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2017 Cadence Design Systems - https://www.cadence.com 26 #define GEM_PTP_TIMER_NAME "gem-ptp-timer" 31 if (bp->hw_dma_cap == HW_DMA_CAP_PTP) in macb_ptp_desc() 34 if (bp->hw_dma_cap == HW_DMA_CAP_64B_PTP) in macb_ptp_desc() 49 spin_lock_irqsave(&bp->tsu_clk_lock, flags); in gem_tsu_get_time() 57 /* test for nsec rollover */ in gem_tsu_get_time() 59 /* if so, use later read & re-read seconds in gem_tsu_get_time() 63 ts->tv_nsec = gem_readl(bp, TN); in gem_tsu_get_time() 68 ts->tv_nsec = first; in gem_tsu_get_time() [all …]
|
/linux/arch/powerpc/kernel/ |
H A D | head_44x.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 5 * Copyright (c) 1995-1996 Gary Thomas <gdt@linuxppc.org> 10 * Low-level exception handers, MMU support, and rewrite. 13 * Copyright (c) 1998-1999 TiVo, Inc. 23 * Copyright 2002-2005 MontaVista Software, Inc. 35 #include <asm/asm-offsets.h> 38 #include <asm/code-patching-asm.h> 46 * r3 - Board info structure pointer (DRAM, frequency, MAC address, etc.) 47 * r4 - Starting address of the init RAM disk 48 * r5 - Ending address of the init RAM disk [all …]
|
/linux/drivers/scsi/ |
H A D | qlogicpti.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 41 * slots available. That is, host->can_queue and host->sg_tablesize 46 #define QLOGICPTI_REQ_QUEUE_LEN 255 /* must be power of two - 1 */ 47 #define QLOGICPTI_MAX_SG(ql) (4 + (((ql) > 0) ? 7*((ql) - 1) : 0)) 298 * --------- 322 #define RES_QUEUE_LEN 255 /* Must be power of two - 1 */ 327 #define PREV_REQ_PTR(wheee) (((wheee) - 1) & QLOGICPTI_REQ_QUEUE_LEN) 328 #define PREV_RES_PTR(wheee) (((wheee) - 1) & RES_QUEUE_LEN) 352 /* The cmd->handler is only 32-bits, so that things work even on monster 354 * scsi command pointers here. This is essentially what Matt Jacob does. -DaveM [all …]
|
/linux/drivers/firmware/arm_scmi/vendors/imx/ |
H A D | imx95.rst | 1 .. SPDX-License-Identifier: GPL-2.0 12 The System Manager (SM) is a low-level system function which runs on a System 15 runs on a Cortex-M processor and provides an abstraction to many of the 38 This protocol is intended provide access to the battery-backed module. This 43 - Describe the protocol version. 44 - Discover implementation attributes. 45 - Read/write GPR 46 - Discover the RTCs available in the system. 47 - Read/write the RTC time in seconds and ticks 48 - Set an alarm (per LM) in seconds [all …]
|
/linux/drivers/gpu/drm/msm/adreno/ |
H A D | a3xx_gpu.c | 1 // SPDX-License-Identifier: GPL-2.0-only 33 struct msm_ringbuffer *ring = submit->ring; in a3xx_submit() 36 for (i = 0; i < submit->nr_cmds; i++) { in a3xx_submit() 37 switch (submit->cmd[i].type) { in a3xx_submit() 39 /* ignore IB-targets */ in a3xx_submit() 43 if (ring->cur_ctx_seqno == submit->queue->ctx->seqno) in a3xx_submit() 48 OUT_RING(ring, lower_32_bits(submit->cmd[i].iova)); in a3xx_submit() 49 OUT_RING(ring, submit->cmd[i].size); in a3xx_submit() 56 OUT_RING(ring, submit->seqno); in a3xx_submit() 73 OUT_RING(ring, submit->seqno); in a3xx_submit() [all …]
|
/linux/drivers/net/wireless/marvell/mwifiex/ |
H A D | pcie.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright 2011-2020 NXP 183 if (!of_match_node(mwifiex_pcie_of_match_table, dev->of_node)) { in mwifiex_pcie_probe_of() 185 return -EINVAL; in mwifiex_pcie_probe_of() 199 struct pcie_service_card *card = adapter->card; in mwifiex_map_pci_memory() 202 mapping.addr = dma_map_single(&card->dev->dev, skb->data, size, flags); in mwifiex_map_pci_memory() 203 if (dma_mapping_error(&card->dev->dev, mapping.addr)) { in mwifiex_map_pci_memory() 205 return -1; in mwifiex_map_pci_memory() 215 struct pcie_service_card *card = adapter->card; in mwifiex_unmap_pci_memory() 219 dma_unmap_single(&card->dev->dev, mapping.addr, mapping.len, flags); in mwifiex_unmap_pci_memory() [all …]
|
/linux/drivers/net/ethernet/xircom/ |
H A D | xirc2ps_cs.c | 3 * Xircom Realport 10/100 (RE-100) driver 6 * including the CE2, CE IIps, RE-10, CEM28, CEM33, CE33, CEM56, 7 * CE3-100, CE3B, RE-100, REM10BT, and REM56G-100. 9 * 2000-09-24 <psheer@icon.co.za> The Xircom CE3B-100 may not 37 * the restrictions contained in a BSD-style copyright.) 55 * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, 160 DisableAutoTx = 0x40, /* disable auto-transmit */ 164 /* values for the leds: Bits 2-0 for led 1 165 * 0 disabled Bits 5-3 for led 2 202 #define XIRCREG42_BOC 10 /* Back-Off Configuration */ [all …]
|
/linux/drivers/net/ethernet/chelsio/cxgb/ |
H A D | pm3393.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * PMC/SIERRA (pm3393) MAC-PHY functionality. * 14 * Copyright (c) 2003 - 2005 Chelsio Communications, Inc. * 87 t1_tpi_read(cmac->adapter, OFFSET(reg), data32); in pmread() 93 t1_tpi_write(cmac->adapter, OFFSET(reg), data32); in pmwrite() 115 /* PM3393 - Enabling all hardware block interrupts. in pm3393_interrupt_enable() 138 /* PM3393 - Global interrupt enable in pm3393_interrupt_enable() 144 /* TERMINATOR - PL_INTERUPTS_EXT */ in pm3393_interrupt_enable() 145 pl_intr = readl(cmac->adapter->regs + A_PL_ENABLE); in pm3393_interrupt_enable() 147 writel(pl_intr, cmac->adapter->regs + A_PL_ENABLE); in pm3393_interrupt_enable() [all …]
|
/linux/drivers/md/ |
H A D | dm-era-target.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 #include "persistent-data/dm-transaction-manager.h" 4 #include "persistent-data/dm-bitset.h" 5 #include "persistent-data/dm-space-map.h" 7 #include <linux/dm-io.h> 8 #include <linux/dm-kcopyd.h> 26 *-------------------------------------------------------------- 28 *-------------------------------------------------------------- 51 vfree(ws->bits); in writeset_free() 52 ws->bits = NULL; in writeset_free() [all …]
|
/linux/drivers/net/ethernet/ti/ |
H A D | am65-cpts.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com 9 #include <linux/clk-provider.h> 23 #include "am65-cpts.h" 133 AM65_CPTS_EV_ROLL, /* Time Stamp Rollover Event */ 134 AM65_CPTS_EV_HALF, /* Time Stamp Half Rollover Event */ 201 #define am65_cpts_write32(c, v, r) writel(v, &(c)->reg->r) 202 #define am65_cpts_read32(c, r) readl(&(c)->reg->r) 219 cpts->ts_add_val = (NSEC_PER_SEC / cpts->refclk_freq - 1) & 0x7; in am65_cpts_set_add_val() 221 am65_cpts_write32(cpts, cpts->ts_add_val, ts_add_val); in am65_cpts_set_add_val() [all …]
|
/linux/Documentation/networking/ |
H A D | packet_mmap.rst | 1 .. SPDX-License-Identifier: GPL-2.0 22 - Ulisses Alonso Camaró <uaca@i.hate.spam.alumni.uv.es> 23 - Johann Baudy 36 most of the time there is no need to issue a single system call. Concerning 67 [setup] socket() -------> creation of the capture socket 68 setsockopt() ---> allocation of the circular buffer (ring) 70 mmap() ---------> mapping of the allocated buffer to the 73 [capture] poll() ---------> to wait for incoming packets 75 [shutdown] close() --------> destruction of the capture socket and 88 supported and a link level pseudo-header is provided [all …]
|