Home
last modified time | relevance | path

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

12345678910>>...40

/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/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/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/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>
30 * feeder_matrix: Generic any-to-any channel matrixing. Probably not the
33 * possible non-standard way of multichannel interleaving
37 * + very generic and compact, provided that the supplied matrix map i
741 feeder_matrix_oss_get_channel_order(struct pcmchan_matrix * m,unsigned long long * map) feeder_matrix_oss_get_channel_order() argument
771 feeder_matrix_oss_set_channel_order(struct pcmchan_matrix * m,unsigned long long * map) feeder_matrix_oss_set_channel_order() argument
[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/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-bus.yaml#
20 - enum:
21 - intel,ixp42x-pci
22 - intel,ixp43x-pci
28 - description: IXP4xx-specific registers
[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 …]
H A Dck_ht.c2 * Copyright 2012-2015 Samy Al Bahra.
53 #define CK_HT_BUCKET_MASK (CK_HT_BUCKET_LENGTH - 1)
80 unsigned int mode;
87 CK_HT_TYPE mask; member
98 struct ck_ht_map *map = table->map; in ck_ht_stat() local
100 st->n_entries = map->n_entries; in ck_ht_stat()
101 st->probe_maximum = map->probe_maximum; in ck_ht_stat()
112 table->h(h, key, key_length, table->seed); in ck_ht_hash()
133 h->value = (unsigned long)MurmurHash64A(key, length, seed); in ck_ht_hash_wrapper()
140 struct ck_ht_map *map; in ck_ht_map_create() local
[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/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/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/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/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 - Lo
98 ice_debug(struct ice_hw * hw,uint64_t mask,char * fmt,...) ice_debug() argument
128 ice_debug_array(struct ice_hw * hw,uint64_t mask,uint32_t rowsize,uint32_t __unused groupsize,uint8_t * buf,size_t len) ice_debug_array() argument
[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/arm/rockchip/
H A Drk32xx_mp.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
58 static int running_cpus;
63 int ncpu; in rk32xx_mp_setmaxid()
74 mp_maxid = ncpu - 1; in rk32xx_mp_setmaxid()
78 rk32xx_mp_start_pmu(uint32_t mask) in rk32xx_mp_start_pmu() argument
83 int i, rv; in rk32xx_mp_start_pmu()
87 panic("Couldn't map the IMEM\n"); in rk32xx_mp_start_pmu()
90 panic("Couldn't map the PMU\n"); in rk32xx_mp_start_pmu()
122 int rv; in rk32xx_start_ap()
[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 …]
/freebsd/sys/contrib/device-tree/src/arm/intel/ixp/
H A Dintel-ixp42x-freecom-fsg-3.dts1 // SPDX-License-Identifier: ISC
3 * Device Tree file for the Freecom FSG-3 router.
8 /dts-v1/;
10 #include "intel-ixp42x.dtsi"
11 #include <dt-bindings/input/input.h>
14 model = "Freecom FSG-3";
15 compatible = "freecom,fsg-3", "intel,ixp42x";
16 #address-cells = <1>;
17 #size-cell
[all...]

12345678910>>...40