Home
last modified time | relevance | path

Searched +full:int +full:- +full:map +full:- +full:mask (Results 1 – 25 of 1010) sorted by relevance

12345678910>>...41

/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dbitmap.h2 * Copyright (c) 2013-2017 Mellanox Technologies, Ltd.
34 bitmap_zero(unsigned long *addr, const unsigned int size) in bitmap_zero()
40 bitmap_fill(unsigned long *addr, const unsigned int size) in bitmap_fill()
42 const unsigned int tail = size & (BITS_PER_LONG - 1); in bitmap_fill()
50 static inline int
51 bitmap_full(unsigned long *addr, const unsigned int size) in bitmap_full()
53 const unsigned int end = BIT_WORD(size); in bitmap_full()
54 const unsigned int tail = size & (BITS_PER_LONG - 1); in bitmap_full()
55 unsigned int i; in bitmap_full()
63 const unsigned long mask = BITMAP_LAST_WORD_MASK(tail); in bitmap_full() local
[all …]
/freebsd/sys/contrib/dev/rtw88/
H A Drtw8723x.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
5 * Copyright(c) 2018-2019 Realtek Corporation
19 [DESC_RATE1M] = { .addr = 0xe08, .mask = 0x0000ff00 },
20 [DESC_RATE2M] = { .addr = 0x86c, .mask = 0x0000ff00 },
21 [DESC_RATE5_5M] = { .addr = 0x86c, .mask = 0x00ff0000 },
22 [DESC_RATE11M] = { .addr = 0x86c, .mask = 0xff000000 },
23 [DESC_RATE6M] = { .addr = 0xe00, .mask = 0x000000ff },
24 [DESC_RATE9M] = { .addr = 0xe00, .mask = 0x0000ff00 },
25 [DESC_RATE12M] = { .addr = 0xe00, .mask = 0x00ff0000 },
26 [DESC_RATE18M] = { .addr = 0xe00, .mask = 0xff000000 },
[all …]
/freebsd/sys/dev/ofw/
H A Dofw_bus_subr.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2001 - 2003 by Thomas Moestl <tmm@FreeBSD.org>.
52 int
59 if ((OF_getprop_alloc(node, "name", (void **)&obd->obd_name)) == -1) in ofw_bus_gen_setup_devinfo()
61 OF_getprop_alloc(node, "compatible", (void **)&obd->obd_compat); in ofw_bus_gen_setup_devinfo()
62 OF_getprop_alloc(node, "device_type", (void **)&obd->obd_type); in ofw_bus_gen_setup_devinfo()
63 OF_getprop_alloc(node, "model", (void **)&obd->obd_model); in ofw_bus_gen_setup_devinfo()
64 OF_getprop_alloc(node, "status", (void **)&obd->obd_status); in ofw_bus_gen_setup_devinfo()
65 obd->obd_node = node; in ofw_bus_gen_setup_devinfo()
[all …]
/freebsd/sys/dev/sound/pcm/
H A Dfeeder_matrix.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2008-2009 Ariff Abdullah <ariff@FreeBSD.org>
6 * Copyright (c) 2024-2025 The FreeBSD Foundation
34 * feeder_matrix: Generic any-to-any channel matrixing. Probably not the
37 * possible non-standard way of multichannel interleaving
41 * + very generic and compact, provided that the supplied matrix map is in a
73 int chn[SND_CHN_T_MAX + 1];
74 int mul, shift;
95 static int feeder_matrix_default_ids[9] = {
[all …]
/freebsd/usr.sbin/makefs/ffs/
H A Dffs_subr.c3 /*-
4 * SPDX-License-Identifier: BSD-3-Clause
47 ffs_fragacct_swap(struct fs *fs, int fragmap, uint32_t fraglist[], int cnt, int needswap) in ffs_fragacct_swap()
49 int inblk; in ffs_fragacct_swap()
50 int field, subfield; in ffs_fragacct_swap()
51 int siz, pos; in ffs_fragacct_swap()
53 inblk = (int)(fragtbl[fs->fs_frag][fragmap]) << 1; in ffs_fragacct_swap()
55 for (siz = 1; siz < fs->fs_frag; siz++) { in ffs_fragacct_swap()
56 if ((inblk & (1 << (siz + (fs->fs_frag & (NBBY - 1))))) == 0) in ffs_fragacct_swap()
60 for (pos = siz; pos <= fs->fs_frag; pos++) { in ffs_fragacct_swap()
[all …]
/freebsd/lib/libproc/
H A Dproc_sym.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2016-2017 Mark Johnston <markj@FreeBSD.org>
64 extern char *__cxa_demangle(const char *, char *, size_t *, int *);
67 static int
68 crc32_file(int fd, uint32_t *crc) in crc32_file()
104 static int
111 int bind1, bind2; in symvalcmp()
117 (void)gelf_getsym(thunk->symtab->data, i1, &sym1); in symvalcmp()
118 (void)gelf_getsym(thunk->symtab->data, i2, &sym2); in symvalcmp()
[all …]
/freebsd/sys/contrib/ck/src/
H A Dck_hs.c2 * Copyright 2012-2015 Samy Al Bahra.
43 #define CK_HS_PROBE_L1_MASK (CK_HS_PROBE_L1 - 1)
49 #define CK_HS_VMA_MASK ((uintptr_t)((1ULL << CK_MD_VMA_BITS) - 1))
56 #define CK_HS_G_MASK (CK_HS_G - 1)
79 CK_HS_PROBE_TOMBSTONE, /* Short-circuit on tombstone. */
80 CK_HS_PROBE_INSERT /* Short-circuit on probe bound if tombstone found. */
84 unsigned int generation[CK_HS_G];
85 unsigned int probe_maximum;
86 unsigned long mask; member
88 unsigned int probe_limit;
[all …]
H A Dck_rhs.c2 * Copyright 2014-2015 Olivier Houchard.
3 * Copyright 2012-2015 Samy Al Bahra.
44 #define CK_RHS_PROBE_L1_MASK (CK_RHS_PROBE_L1 - 1)
50 #define CK_RHS_VMA_MASK ((uintptr_t)((1ULL << CK_MD_VMA_BITS) - 1))
56 #define CK_RHS_G_MASK (CK_RHS_G - 1)
81 CK_RHS_PROBE_RH, /* Short-circuit if RH slot found. */
82 CK_RHS_PROBE_INSERT, /* Short-circuit on probe bound if tombstone found. */
88 unsigned int probes;
96 unsigned int probes;
103 struct ck_rhs_map *map,
[all …]
/freebsd/sys/contrib/device-tree/Bindings/pci/
H A Dintel,ixp4xx-pci.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/pci/intel,ixp4xx-pci.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Linus Walleij <linus.walleij@linaro.org>
15 - $ref: /schemas/pci/pci-host-bridge.yaml#
20 - enum:
21 - intel,ixp42x-pci
22 - intel,ixp43x-pci
28 - description: IXP4xx-specific registers
[all …]
/freebsd/sys/dev/bhnd/siba/
H A Dsiba_subr.c1 /*-
2 * Copyright (c) 2015-2016 Landon Fuller <landon@landonf.org>
48 static int siba_register_interrupts(device_t dev, device_t child,
50 static int siba_append_dinfo_region(struct siba_devinfo *dinfo,
55 * Map a siba(4) OCP vendor code to its corresponding JEDEC JEP-106 vendor
89 for (u_int i = 0; i < nitems(dinfo->cfg); i++) { in siba_alloc_dinfo()
90 dinfo->cfg[i] = ((struct siba_cfg_block){ in siba_alloc_dinfo()
93 .cb_rid = -1, in siba_alloc_dinfo()
95 dinfo->cfg_res[i] = NULL; in siba_alloc_dinfo()
96 dinfo->cfg_rid[i] = -1; in siba_alloc_dinfo()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/
H A DAMDGPUAsmUtils.h1 //===-- AMDGPUAsmUtils.h - AsmParser/InstPrinter common ---------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
23 const int OPR_ID_UNKNOWN = -1;
24 const int OPR_ID_UNSUPPORTED = -2;
25 const int OPR_ID_DUPLICATE = -3;
26 const int OPR_VAL_INVALID = -4;
41 unsigned Mask = (1 << Width) - 1; member
43 unsigned decode(unsigned Code) const { return (Code >> Shift) & Mask; } in decode()
45 unsigned encode(unsigned Val) const { return (Val & Mask) << Shift; } in encode()
[all …]
H A DAMDKernelCodeTUtils.cpp1 //===- AMDKernelCodeTUtils.cpp --------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 /// \file - utility functions to parse/print AMDGPUMCKernelCodeT structure
11 //===----------------------------------------------------------------------===//
32 // - HasMemberXXXXX class
36 // - IsMCExprXXXXX class
37 // Check whether a AMDGPUMCKernelcodeT struct member is MCExpr-ified or not.
38 // - GetMemberXXXXX class
46 int member; \
[all …]
/freebsd/sys/kern/
H A Dsubr_smp.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
65 static int sysctl_kern_smp_active(SYSCTL_HANDLER_ARGS);
70 int mp_ncpus;
72 int mp_maxcpus = MAXCPU;
74 volatile int smp_started;
94 int smp_disabled = 0; /* has smp been disabled? */
98 int smp_cpus = 1; /* how many cpu's running */
102 int smp_threads_per_core = 1; /* how many SMT threads are running per core */
106 int mp_ncores = -1; /* how many physical cores running */
[all …]
/freebsd/sys/contrib/dev/rtw89/
H A Drtw8922a.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
21 RTW8922A_FW_BASENAME "-" __stringify(RTW8922A_FW_FORMAT_MAX) ".bin"
267 static int rtw8922a_pwr_on_func(struct rtw89_dev *rtwdev) in rtw8922a_pwr_on_func()
269 struct rtw89_hal *hal = &rtwdev->hal; in rtw8922a_pwr_on_func()
271 int ret; in rtw8922a_pwr_on_func()
374 if (hal->cv != CHIP_CAV) { in rtw8922a_pwr_on_func()
394 set_bit(RTW89_FLAG_DMAC_FUNC, rtwdev->flags); in rtw8922a_pwr_on_func()
405 set_bit(RTW89_FLAG_CMAC0_FUNC, rtwdev->flags); in rtw8922a_pwr_on_func()
413 static int rtw8922a_pwr_off_func(struct rtw89_dev *rtwdev) in rtw8922a_pwr_off_func()
416 int ret; in rtw8922a_pwr_off_func()
[all …]
H A Drtw8852c.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
2 /* Copyright(c) 2019-2022 Realtek Corporation
21 RTW8852C_FW_BASENAME "-" __stringify(RTW8852C_FW_FORMAT_MAX) ".bin"
211 static int rtw8852c_pwr_on_func(struct rtw89_dev *rtwdev) in rtw8852c_pwr_on_func()
214 int ret; in rtw8852c_pwr_on_func()
332 static int rtw8852c_pwr_off_func(struct rtw89_dev *rtwdev) in rtw8852c_pwr_off_func()
335 int ret; in rtw8852c_pwr_off_func()
399 struct rtw8852c_efuse *map) in rtw8852c_e_efuse_parsing() argument
401 ether_addr_copy(efuse->addr, map->e.mac_addr); in rtw8852c_e_efuse_parsing()
402 efuse->rfe_type = map->rfe_type; in rtw8852c_e_efuse_parsing()
[all …]
/freebsd/contrib/ntp/sntp/libopts/
H A Dsave-flags.c1 /* -*- buffer-read-only: t -*- vi: set ro:
3 * DO NOT EDIT THIS FILE (save-flags.c)
5 * It has been AutoGen-ed
6 * From the definitions /tmp/.ag-ufBbQe/save-flags.def
33 #include "save-flags.h"
56 /* ANSI-C code produced by gperf version 3.1 */
57 /* Command-line: gperf save-flags.gp */
58 /* Computed positions: -k'' */
62 // %struct-type
63 // %language=ANSI-C
[all …]
/freebsd/usr.sbin/ypserv/
H A Dyp_access.c1 /*-
2 * SPDX-License-Identifier: BSD-4-Clause
18 * 4. Neither the name of the author nor the names of any co-contributors
90 struct in_addr mask; member
99 int hosts_ctl(char *, char *, char *, char *);
117 * the list; free the existing list before re-reading the in load_securenets()
121 tmp = securenets->next; in load_securenets()
131 securenets->net.s_addr = INADDR_ANY; in load_securenets()
132 securenets->mask.s_addr = INADDR_ANY; in load_securenets()
133 securenets->next = NULL; in load_securenets()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/interrupt-controller/
H A Dbrcm,bcm7120-l2-intc.txt1 Broadcom BCM7120-style Level 2 interrupt controller
4 is hooked to a parent interrupt controller: e.g: ARM GIC for ARM-based
9 - outputs multiple interrupts signals towards its interrupt controller parent
11 - controls how some of the interrupts will be flowing, whether they will
16 - has one 32-bit enable word and one 32-bit status word
18 - no atomic set/clear operations
20 - not all bits within the interrupt controller actually map to an interrupt
26 0 -----[ MUX ] ------------|==========> GIC interrupt 75
27 \-----------\
29 1 -----[ MUX ] --------)---|==========> GIC interrupt 76
[all …]
H A Dbrcm,bcm7120-l2-intc.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/interrupt-controlle
[all...]
/freebsd/sys/dev/iavf/
H A Diavf_osdep.c1 /* SPDX-License-Identifier: BSD-3-Clause */
49 * iavf_dmamap_cb - DMA mapping callback function
58 iavf_dmamap_cb(void *arg, bus_dma_segment_t * segs, int nseg __unused, in iavf_dmamap_cb()
59 int error) in iavf_dmamap_cb()
63 *(bus_addr_t *) arg = segs->ds_addr; in iavf_dmamap_cb()
68 * iavf_allocate_virt_mem - Allocate virtual memory
81 mem->va = malloc(size, M_IAVF, M_NOWAIT | M_ZERO); in iavf_allocate_virt_mem()
82 return(mem->va == NULL); in iavf_allocate_virt_mem()
86 * iavf_free_virt_mem - Free virtual memory
97 free(mem->va, M_IAVF); in iavf_free_virt_mem()
[all …]
/freebsd/sys/arm/freescale/imx/
H A Dimx6_ipu.c1 /*-
61 static int have_ipu = 0;
63 #define MODE_HBP(mode) ((mode)->htotal - (mode)->hsync_end)
64 #define MODE_HFP(mode) ((mode)->hsync_start - (mode)->hdisplay)
65 #define MODE_HSW(mode) ((mode)->hsync_end - (mode)->hsync_start)
66 #define MODE_VBP(mode) ((mode)->vtotal - (mode)->vsync_end)
67 #define MODE_VFP(mode) ((mode)->vsync_start - (mode)->vdisplay)
68 #define MODE_VSW(mode) ((mode)->vsync_end - (mode)->vsync_start)
77 #define IPU_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx)
78 #define IPU_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx)
[all …]
/freebsd/sys/dev/ice/
H A Dice_osdep.c1 /* SPDX-License-Identifier: BSD-3-Clause */
54 MALLOC_DEFINE(M_ICE_OSDEP, "ice-osdep", "Intel(R) 100Gb Network Driver osdep allocations");
66 static void ice_dmamap_cb(void *arg, bus_dma_segment_t * segs, int __unused nseg, int error);
69 * ice_hw_to_dev - Given a hw private struct, find the associated device_t
84 return sc->dev; in ice_hw_to_dev()
88 * ice_debug - Log a debug message if the type is enabled
90 * @mask: the debug message type
93 * Check if hw->debug_mask has enabled the given message type. If so, log the
98 ice_debug(struct ice_hw *hw, uint64_t mask, char *fmt, ...) in ice_debug() argument
103 if (!(mask & hw->debug_mask)) in ice_debug()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DVectorUtils.h1 //===- llvm/Analysis/VectorUtils.h - Vector utilities -----------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 //===----------------------------------------------------------------------===//
39 /// Retrieve the scalar-to-vector mappings associated to the rule of
46 const StringRef ScalarName = CI.getCalledFunction()->getName(); in getVFABIMappings()
49 // The check for the vector-function-abi-variant attribute is done when in getVFABIMappings()
61 if (Shape && (Shape->ScalarName == ScalarName)) { in getVFABIMappings()
62 assert(CI.getModule()->getFunction(Shape->VectorName) && in getVFABIMappings()
77 // Other non-VFABI variants should be retrieved here. in getMappings()
[all …]
/freebsd/sys/dev/drm2/
H A Ddrm_pci.c1 /* drm_pci.h -- PCI DMA memory management wrappers for DRM -*- linux-c -*- */
42 static int drm_msi = 1; /* Enable by default. */
53 drm_pci_busdma_callback(void *arg, bus_dma_segment_t *segs, int nsegs, int error) in drm_pci_busdma_callback()
61 dmah->busaddr = segs[0].ds_addr; in drm_pci_busdma_callback()
71 int ret; in drm_pci_alloc()
73 /* Need power-of-two alignment, so fail the allocation if it isn't. */ in drm_pci_alloc()
74 if ((align & (align - 1)) != 0) { in drm_pci_alloc()
75 DRM_ERROR("drm_pci_alloc with non-power-of-two alignment %d\n", in drm_pci_alloc()
76 (int)align); in drm_pci_alloc()
85 mtx_assert(&dev->dma_lock, MA_NOTOWNED); in drm_pci_alloc()
[all …]
/freebsd/sys/dev/mxge/
H A Dif_mxge.c2 SPDX-License-Identifier: BSD-2-Clause
4 Copyright (c) 2006-2013, Myricom Inc.
98 static int mxge_nvidia_ecrc_enable = 1;
99 static int mxge_force_firmware = 0;
100 static int mxge_intr_coal_delay = 30;
101 static int mxge_deassert_wait = 1;
102 static int mxge_flow_control = 1;
103 static int mxge_verbose = 0;
104 static int mxge_ticks;
105 static int mxge_max_slices = 1;
[all …]

12345678910>>...41