| /freebsd/contrib/llvm-project/lldb/include/lldb/Utility/ |
| H A D | Flags.h | 1 //===-- Flags.h -------------------------------------------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 29 /// Constructs this object with \a mask as the initial value for all of the 54 /// Clear one or more flags. 56 /// \param[in] mask 60 /// The new flags after clearing all bits from \a mask. 61 ValueType Clear(ValueType mask = ~static_cast<ValueType>(0)) { 62 m_flags &= ~mask; 66 /// Set one or more flags by logical OR'ing \a mask with the current flags. [all …]
|
| /freebsd/sys/contrib/device-tree/Bindings/interrupt-controller/ |
| H A D | arm,versatile-fpga-irq.txt | 9 - compatible: "arm,versatile-fpga-irq" 10 - interrupt-controller: Identifies the node as an interrupt controller 11 - #interrupt-cells: The number of cells to define the interrupts. Must be 1 14 - reg: The register bank for the FPGA interrupt controller. 15 - clear [all...] |
| /freebsd/sys/contrib/alpine-hal/ |
| H A D | al_hal_iofic.h | 1 /*- 10 found at http://www.gnu.org/licenses/gpl-2.0.html 54 /* *INDENT-OFF* */ 58 /* *INDENT-ON* */ 74 * @return 0 on success. -EINVAL otherwise. 89 * @return 0 on success. -EINVAL otherwise. 101 * @return 0 on success. -EINVAL otherwise. 114 * @return 0 on success. -EINVAL otherwise. 124 * @param tgtid the target-id value 125 * @param tgtid_en take target-id from the intc [all …]
|
| H A D | al_hal_pcie_w_reg.h | 1 /*- 10 found at http://www.gnu.org/licenses/gpl-2.0.html 361 * on clear of the last register in the bind. 368 * on clear of the last register in the bind. 376 * - If MSI-X is enabled and auto_clear control bit =TRUE, automatically 377 * cleared after MSI-X message associated with this specific interrupt 378 * bit is sent (MSI-X acknowledge is received). 379 * - Software can set a bit in this register by writing 1 to the 381 * Write-0 clears a bit. Write-1 has no effect. 382 * - On CPU Read - If clear_on_read control bit =TRUE, automatically [all …]
|
| H A D | al_hal_reg_utils.h | 1 /*- 10 found at http://www.gnu.org/licenses/gpl-2.0.html 53 /* *INDENT-OFF* */ 57 /* *INDENT-ON* */ 66 #define AL_REG_FIELD_GET(reg, mask, shift) (((reg) & (mask)) >> (shift)) argument 69 #define AL_REG_FIELD_SET(reg, mask, shift, val) \ argument 71 (((reg) & (~(mask))) | \ 72 ((((unsigned)(val)) << (shift)) & (mask))) 75 #define AL_REG_FIELD_SET_64(reg, mask, shift, val) \ argument 77 (((reg) & (~(mask))) | \ [all …]
|
| /freebsd/sys/contrib/ncsw/Peripherals/FM/ |
| H A D | fman_ncsw.c | 2 * Copyright 2008-2012 Freescale Semiconductor Inc. 40 uint32_t event, mask, force; in fman_get_bmi_err_event() local 42 event = ioread32be(&bmi_rg->fmbm_ievr); in fman_get_bmi_err_event() 43 mask = ioread32be(&bmi_rg->fmbm_ier); in fman_get_bmi_err_event() 44 event &= mask; in fman_get_bmi_err_event() 45 /* clear the forced events */ in fman_get_bmi_err_event() 46 force = ioread32be(&bmi_rg->fmbm_ifr); in fman_get_bmi_err_event() 48 iowrite32be(force & ~event, &bmi_rg->fmbm_ifr); in fman_get_bmi_err_event() 49 /* clear the acknowledged events */ in fman_get_bmi_err_event() 50 iowrite32be(event, &bmi_rg->fmbm_ievr); in fman_get_bmi_err_event() [all …]
|
| /freebsd/sys/dev/ntb/ |
| H A D | ntb.h | 1 /*- 41 * ntb_link_event() - notify driver context of a change in link status 50 * ntb_db_event() - notify driver context of a doorbell event 65 * ntb_port_number() - get the local port number 75 * ntb_port_count() - get the number of peer device ports 85 * ntb_peer_port_number() - get the peer port by given index 97 * ntb_peer_port_idx() - get the peer device port index by given port 110 * ntb_link_is_up() - get the current ntb link state 112 * @speed: OUT - The link speed expressed as PCIe generation number 113 * @width: OUT - The link width expressed as the number of PCIe lanes [all …]
|
| /freebsd/sys/dev/ppbus/ |
| H A D | ppb_msq.h | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 37 #define MS_INS_MASK 0x00ff /* mask to retrieve the instruction position < 256 XXX */ 38 #define MS_ARG_MASK 0x0f00 /* mask to retrieve the argument number */ 39 #define MS_TYP_MASK 0xf000 /* mask to retrieve the type of the param */ 41 /* offset of each mask (see above) */ 61 /* microsequence opcodes - do not change! */ 65 #define MS_OP_RFETCH 2 /* rfetch <reg>, <mask>, <ptr> */ 66 #define MS_OP_RSET 3 /* rset <reg>, <mask>, <mask> */ 67 #define MS_OP_RASSERT 4 /* rassert <reg>, <mask> */ [all …]
|
| /freebsd/share/man/man9/ |
| H A D | microseq.9 | 42 .Bl -enum -offset indent 64 Mask macros are defined in the standard ppbus include files for each valid 69 In any other mode, drivers may be tri-stated by 74 This read-only register reflects the inputs on the parallel port interface. 76 .Bl -column "Bit" "Name" "Description" -compact 90 .Bl -column "Bit" "Name " "Description" -compact 108 .Bd -literal 111 #define MS_OP_RFETCH 2 /* rfetch <reg>, <mask>, <ptr> */ 112 #define MS_OP_RSET 3 /* rset <reg>, <mask>, <mask> */ 113 #define MS_OP_RASSERT 4 /* rassert <reg>, <mask> */ [all …]
|
| /freebsd/sys/contrib/dev/ath/ath_hal/ar9300/ |
| H A D | ar9300_interrupts.c | 66 * values. The value returned is mapped to abstract the hw-specific bit 69 * Returns: A hardware-abstracted bitmap of all non-masked-out 96 HAL_CAPABILITIES *p_cap = &AH_PRIVATE(ah)->ah_caps; in ar9300_get_pending_interrupts() 148 ah->ah_intrstate[0] = OS_REG_READ(ah, AR_ISR); in ar9300_get_pending_interrupts() 149 ah->ah_intrstate[1] = OS_REG_READ(ah, AR_ISR_S0); in ar9300_get_pending_interrupts() 150 ah->ah_intrstate[2] = OS_REG_READ(ah, AR_ISR_S1); in ar9300_get_pending_interrupts() 151 ah->ah_intrstate[3] = OS_REG_READ(ah, AR_ISR_S2); in ar9300_get_pending_interrupts() 152 ah->ah_intrstate[4] = OS_REG_READ(ah, AR_ISR_S3); in ar9300_get_pending_interrupts() 153 ah->ah_intrstate[5] = OS_REG_READ(ah, AR_ISR_S4); in ar9300_get_pending_interrupts() 154 ah->ah_intrstate[6] = OS_REG_READ(ah, AR_ISR_S5); in ar9300_get_pending_interrupts() [all …]
|
| /freebsd/sys/dev/ath/ath_hal/ar5416/ |
| H A D | ar5416_interrupts.c | 1 /*- 2 * SPDX-License-Identifier: ISC 4 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting 5 * Copyright (c) 2002-2008 Atheros Communications, Inc. 59 * values. The value returned is mapped to abstract the hw-specific bit 64 * Returns: A hardware-abstracted bitmap of all non-masked-out 71 HAL_CAPABILITIES *pCap = &AH_PRIVATE(ah)->ah_caps; in ar5416GetPendingInterrupts() 77 bzero(&ah->ah_intrstate, sizeof(ah->ah_intrstate)); in ar5416GetPendingInterrupts() 78 ah->ah_syncstate = 0; in ar5416GetPendingInterrupts() 94 ah->ah_syncstate = in ar5416GetPendingInterrupts() [all …]
|
| H A D | ar5416reg.h | 1 /*- 2 * SPDX-License-Identifier: ISC 4 * Copyright (c) 2002-2008 Sam Leffler, Errno Consulting 5 * Copyright (c) 2002-2008 Atheros Communications, Inc. 34 #define AR_WA 0x4004 /* PCIE work-arounds */ 37 #define AR_INTR_SYNC_CAUSE_CLR 0x4028 /* clear interrupt */ 40 #define AR_INTR_ASYNC_MASK 0x4030 /* asynchronous interrupt mask */ 41 #define AR_INTR_SYNC_MASK 0x4034 /* synchronous interrupt mask */ 43 #define AR_INTR_ASYNC_CAUSE_CLR 0x4038 /* clear pending interrupts */ 115 #define AR_RTC_INTR_CAUSE AR_RTC_BASE + 0x50 /* RTC interrupt cause/clear */ [all …]
|
| /freebsd/sys/kern/ |
| H A D | kern_ktr.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 122 if (error != 0 || req->newptr == NULL) in sysctl_debug_ktr_cpumask() 124 if (cpusetobj_strscan(&imask, lktr_cpumask_str) == -1) in sysctl_debug_ktr_cpumask() 138 int clear, error; in sysctl_debug_ktr_clear() local 140 clear = 0; in sysctl_debug_ktr_clear() 141 error = sysctl_handle_int(oidp, &clear, 0, req); in sysctl_debug_ktr_clear() 142 if (error || !req->newptr) in sysctl_debug_ktr_clear() 145 if (clear) { in sysctl_debug_ktr_clear() 152 SYSCTL_PROC(_debug_ktr, OID_AUTO, clear, [all …]
|
| /freebsd/sys/dev/pms/RefTisa/sallsdk/spc/ |
| H A D | sahwreg.h | 2 *Copyright (c) 2014 PMC-Sierra, Inc. All rights reserved. 34 /* Message Unit Registers - BAR0(0x10), BAR0(win) */ 36 /* i2o=1 space register offsets - MU_I2O_ENABLE */ 52 /* i2o=0 space register offsets - ~MU_I2O_ENABLE */ 53 #define MSGU_IBDB_SET 0x04 /* RevA - Write only, RevB - Read/Write */ 58 #define MSGU_IBDB_CLEAR 0x20 /* RevB - Host not use */ 85 #define V_Inbound_Doorbell_Set_Register 0x00 /* Host R/W Local INT 0x0 MSGU - Inbound D… 86 #define V_Inbound_Doorbell_Set_RegisterU 0x04 /* Host R/W Local INT 0x4 MSGU - Inbound D… 87 …r_Register 0x08 /* Host No access Local W, R all 0s 0x8 MSGU - Inbound Doorbell Clear */ 88 …r_RegisterU 0x0C /* Host No access Local W, R all 0s 0xC MSGU - Inbound Doorbell Clear */ [all …]
|
| /freebsd/sys/contrib/ncsw/Peripherals/FM/Pcd/ |
| H A D | fman_kg.c | 2 * Copyright 2008-2012 Freescale Semiconductor Inc. 257 iowrite32be(fmkg_ar, ®s->fmkg_ar); in fman_kg_write_ar_wait() 259 while ((fmkg_ar = ioread32be(®s->fmkg_ar)) & FM_KG_KGAR_GO) ; in fman_kg_write_ar_wait() 261 return -EINVAL; in fman_kg_write_ar_wait() 271 kgpe_regs = (struct fman_kg_pe_regs *)&(regs->fmkg_indirect[0]); in fman_kg_write_sp() 272 tmp = ioread32be(&kgpe_regs->fmkg_pe_sp); in fman_kg_write_sp() 276 else /* clear */ in fman_kg_write_sp() 279 iowrite32be(tmp, &kgpe_regs->fmkg_pe_sp); in fman_kg_write_sp() 287 kgpe_regs = (struct fman_kg_pe_regs *)&(regs->fmkg_indirect[0]); in fman_kg_write_cpp() 289 iowrite32be(cpp, &kgpe_regs->fmkg_pe_cpp); in fman_kg_write_cpp() [all …]
|
| /freebsd/lib/libc/amd64/string/ |
| H A D | stpncpy.S | 56 mov -16(%rbp), %rdi 63 add %rdx, -16(%rbp) # advance destination by string length 64 sub %rdx, -8(%rbp) # and shorten buffer size by string length 71 jmp CNAME(memset) # clear remaining buffer 74 mov -8(%rbp), %rdx 76 add -8(%rbp), %rax # point to dest[n] 82 * this mask allows us to generate masks of 16-n 0xff bytes 93 #define bounce (-3*16-8) /* location of on-stack bounce buffer */ 102 mov $-1, %r9d 103 lea -32(%rcx), %rax # set up overflow-proof comparison rdx+rcx<=32 [all …]
|
| /freebsd/usr.sbin/cxgbetool/ |
| H A D | cxgbetool.8 | 2 .\" SPDX-License-Identifier: BSD-3-Clause 42 .Bl -item -compact 52 .Ar nexus Cm clip Bro Cm hold | release Brc Ar ipv6-address 64 .Ar nexus Cm hashfilter Ar filter-specification 76 .Ar nexus Cm filter Ar idx Ar filter-specification 88 .Ar nexus Cm loadcfg Ar fw-config.txt 91 .Ar nexus Cm loadcfg clear 94 .Ar nexus Cm loadfw Ar fw-image.bin 103 .Ar nexus Cm policy clear 109 .Ar nexus Cm regdump Op Ar register-block ... [all …]
|
| /freebsd/sys/dev/igc/ |
| H A D | igc_base.c | 1 /*- 4 * SPDX-License-Identifier: BSD-3-Clause 14 * igc_acquire_phy_base - Acquire rights to access PHY 21 u16 mask = IGC_SWFW_PHY0_SM; in igc_acquire_phy_base() local 25 if (hw->bus.func == IGC_FUNC_1) in igc_acquire_phy_base() 26 mask = IGC_SWFW_PHY1_SM; in igc_acquire_phy_base() 28 return hw->mac.ops.acquire_swfw_sync(hw, mask); in igc_acquire_phy_base() 32 * igc_release_phy_base - Release rights to access PHY 39 u16 mask = IGC_SWFW_PHY0_SM; in igc_release_phy_base() local 43 if (hw->bus.func == IGC_FUNC_1) in igc_release_phy_base() [all …]
|
| /freebsd/sys/contrib/ncsw/inc/flib/ |
| H A D | fsl_fman_rtc.h | 80 E_FMAN_RTC_ALARM_POLARITY_ACTIVE_HIGH, /**< Active-high output polarity */ 81 E_FMAN_RTC_ALARM_POLARITY_ACTIVE_LOW /**< Active-low output polarity */ 136 uint32_t tmr_temask; /* 0x0088 timer event mask register */ 172 * fman_rtc_defconfig() - Get default RTC configuration 182 * fman_rtc_get_events() - Get the events 190 * fman_rtc_get_interrupt_mask() - Get the events mask 193 * Returns: The events mask 199 * fman_rtc_set_interrupt_mask() - Set the events mask 201 * @mask: The mask to set 203 void fman_rtc_set_interrupt_mask(struct rtc_regs *regs, uint32_t mask); [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
| H A D | SystemZTDC.cpp | 1 //===-- SystemZTDC.cpp - Utilize Test Data Class instruction --------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 14 // 1: fcmp pred X, 0 -> tdc X, mask 15 // 2: fcmp pred X, +-inf -> tdc X, mask 16 // 3: fcmp pred X, +-minnorm -> tdc X, mask 17 // 4: tdc (fabs X), mask -> tdc X, newmask 18 // 5: icmp slt (bitcast float X to int), 0 -> tdc X, mask [ie. signbit] 19 // 6: icmp sgt (bitcast float X to int), -1 -> tdc X, mask 20 // 7: icmp ne/eq (call @llvm.s390.tdc.*(X, mask)) -> tdc X, mask/~mask [all …]
|
| /freebsd/sys/dev/e1000/ |
| H A D | e1000_base.c | 2 SPDX-License-Identifier: BSD-3-Clause 4 Copyright (c) 2001-2020, Intel Corporation 42 * e1000_acquire_phy_base - Acquire rights to access PHY 49 u16 mask = E1000_SWFW_PHY0_SM; in e1000_acquire_phy_base() local 53 if (hw->bus.func == E1000_FUNC_1) in e1000_acquire_phy_base() 54 mask = E1000_SWFW_PHY1_SM; in e1000_acquire_phy_base() 55 else if (hw->bus.func == E1000_FUNC_2) in e1000_acquire_phy_base() 56 mask = E1000_SWFW_PHY2_SM; in e1000_acquire_phy_base() 57 else if (hw->bus.func == E1000_FUNC_3) in e1000_acquire_phy_base() 58 mask = E1000_SWFW_PHY3_SM; in e1000_acquire_phy_base() [all …]
|
| /freebsd/usr.bin/grdc/ |
| H A D | grdc.c | 3 * Usage: grdc [-st] [n] -- run for n seconds (default infinity) 4 * grdc -c n -- countdown n seconds 5 * Flags: -c: Countdown timer mode 6 * -s: scroll 7 * -t: output time in 12-hour format 10 * modified 10-18-89 for curses (jrl) 11 * 10-18-89 added signal handling 12 * 02-18-02 added countdown timer mode 14 * modified 03-25-03 for 12 hour option 15 * - Samy Al Bahra <samy@kerneled.com> [all …]
|
| /freebsd/sys/dev/ice/ |
| H A D | ice_bitops.h | 1 /* SPDX-License-Identifier: BSD-3-Clause */ 53 #define BITS_TO_CHUNKS(sz) (((sz) + BITS_PER_CHUNK - 1) / BITS_PER_CHUNK) 57 #define LAST_CHUNK_BITS(nr) ((((nr) - 1) % BITS_PER_CHUNK) + 1) 60 (BITS_PER_CHUNK - LAST_CHUNK_BITS(nr))) 80 * and define macro ICE_ATOMIC_BITOPS to overwrite the default non-atomic 113 * ice_is_bit_set - Check state of a bit in a bitmap 127 * ice_clear_bit - Clear a bit in a bitmap 140 * ice_set_bit - Set a bit in a bitmap 153 * ice_test_and_clear_bit - Atomically clear a bit and return the old bit value 157 * Check and clear the bit nr in bitmap. Assumes that nr is less than the size [all …]
|
| /freebsd/sys/dev/msk/ |
| H A D | if_mskreg.h | 17 * are provided to you under the BSD-type license terms provided 22 * - Redistributions of source code must retain the above copyright 24 * - Redistributions in binary form must reproduce the above 28 * - Neither the name of Marvell nor the names of its contributors 48 /*- 49 * SPDX-License-Identifier: BSD-4-Clause AND BSD-3-Clause 65 * 4. Neither the name of the author nor the names of any co-contributors 82 /*- 110 * D-Link PCI vendor ID 154 * D-Link gigabit ethernet device ID [all …]
|
| /freebsd/sys/contrib/ck/include/ |
| H A D | ck_tflock.h | 31 * This is an implementation of task-fair locks derived from the work 33 * John M. Mellor-Crummey and Michael L. Scott. 1991. 34 * Scalable reader-writer synchronization for shared-memory 35 * multiprocessors. SIGPLAN Not. 26, 7 (April 1991), 106-113. 49 #define CK_TFLOCK_TICKET_RC_INCR 0x10000U /* Read-side increment. */ 50 #define CK_TFLOCK_TICKET_WC_INCR 0x1U /* Write-side increment. */ 51 #define CK_TFLOCK_TICKET_W_MASK 0xffffU /* Write-side mask. */ 52 #define CK_TFLOCK_TICKET_WC_TOPMSK 0x8000U /* Write clear mask for overflow. */ 53 #define CK_TFLOCK_TICKET_RC_TOPMSK 0x80000000U /* Read clear mask for overflow. */ 56 ck_tflock_ticket_fca_32(uint32_t *target, uint32_t mask, uint32_t delta) in ck_tflock_ticket_fca_32() argument [all …]
|