/freebsd-12-stable/usr.sbin/fmtree/ |
H A D | spec.c | 169 char *kw, *val = NULL; local 178 if (value && (val = strtok(NULL, " \t\n")) == NULL) 182 ip->cksum = strtoul(val, &ep, 10); 185 lineno, val); 188 ip->md5digest = strdup(val); 193 ip->sha1digest = strdup(val); 198 ip->sha256digest = strdup(val); 203 ip->rmd160digest = strdup(val); 208 if (strcmp("none", val) == 0) 210 else if (strtofflags(&val, [all...] |
/freebsd-12-stable/usr.sbin/bhyve/ |
H A D | vga.c | 402 vga_mem_wr_handler(struct vmctx *ctx, uint64_t addr, uint8_t val, void *arg1) argument 455 val = (val >> sc->vga_gc.gc_rotate) | 456 (val << (8 - sc->vga_gc.gc_rotate)); 465 c0 = (enb_set_reset & 1) ? (c0 & ~mask) : (val & mask); 466 c1 = (enb_set_reset & 2) ? (c1 & ~mask) : (val & mask); 467 c2 = (enb_set_reset & 4) ? (c2 & ~mask) : (val & mask); 468 c3 = (enb_set_reset & 8) ? (c3 & ~mask) : (val & mask); 481 c0 = enb_set_reset & 1 ? c0 & m0 : val & m0; 482 c1 = enb_set_reset & 2 ? c1 & m1 : val 656 vga_mem_handler(struct vmctx *ctx, int vcpu, int dir, uint64_t addr, int size, uint64_t *val, void *arg1, long arg2) argument 717 vga_port_in_handler(struct vmctx *ctx, int in, int port, int bytes, uint8_t *val, void *arg) argument 944 vga_port_out_handler(struct vmctx *ctx, int in, int port, int bytes, uint8_t val, void *arg) argument 1220 uint8_t val; local [all...] |
H A D | xmsr.c | 52 emulate_wrmsr(struct vmctx *ctx, int vcpu, uint32_t num, uint64_t val) argument 106 emulate_rdmsr(struct vmctx *ctx, int vcpu, uint32_t num, uint64_t *val) argument 118 *val = 0; 125 *val = 0x000a1003; 134 *val = 0; 141 *val = 0x01000010; /* Reset value */ 142 *val |= 1 << 9; /* MONITOR/MWAIT disable */ 152 *val = 0; 163 *val = 0; 174 *val [all...] |
/freebsd-12-stable/sys/arm64/arm64/ |
H A D | debug_monitor.c | 87 #define DBG_WB_READ(reg, num, val) do { \ 88 __asm __volatile("mrs %0, dbg" reg #num "_el1" : "=r" (val)); \ 91 #define DBG_WB_WRITE(reg, num, val) do { \ 92 __asm __volatile("msr dbg" reg #num "_el1, %0" :: "r" (val)); \ 95 #define READ_WB_REG_CASE(reg, num, offset, val) \ 97 DBG_WB_READ(reg, num, val); \ 100 #define WRITE_WB_REG_CASE(reg, num, offset, val) \ 102 DBG_WB_WRITE(reg, num, val); \ 105 #define SWITCH_CASES_READ_WB_REG(reg, offset, val) \ 106 READ_WB_REG_CASE(reg, 0, offset, val); \ 144 uint64_t val = 0; local 159 dbg_wb_write_reg(int reg, int n, uint64_t val) argument [all...] |
/freebsd-12-stable/contrib/ofed/infiniband-diags/src/ |
H A D | ibdiag_sa.h | 75 #define CHECK_AND_SET_VAL(val, size, comp_with, target, name, mask) \ 76 if ((int##size##_t) val != (int##size##_t) comp_with) { \ 77 target = cl_hton##size((uint##size##_t) val); \ 81 #define CHECK_AND_SET_GID(val, target, name, mask) \ 82 if (valid_gid(&(val))) { \ 83 memcpy(&(target), &(val), sizeof(val)); \ 87 #define CHECK_AND_SET_VAL_AND_SEL(val, target, name, mask, sel) \ 88 if (val) { \ 89 target = val; \ [all...] |
/freebsd-12-stable/contrib/subversion/subversion/libsvn_subr/ |
H A D | encode.c | 29 svn__encode_uint(unsigned char *p, apr_uint64_t val) argument 35 v = val >> 7; 46 *p++ = (unsigned char)(((val >> (n * 7)) | 0x80) & 0xff); 48 *p++ = (unsigned char)(val & 0x7f); 54 svn__encode_int(unsigned char *p, apr_int64_t val) argument 56 apr_uint64_t value = val; 65 svn__decode_uint(apr_uint64_t *val, argument 81 *val = (temp << 7) | c; 94 svn__decode_int(apr_int64_t *val, argument 104 *val [all...] |
/freebsd-12-stable/sys/contrib/xz-embedded/userspace/ |
H A D | xz_config.h | 96 static inline void put_unaligned_le32(uint32_t val, uint8_t *buf) argument 98 buf[0] = (uint8_t)val; 99 buf[1] = (uint8_t)(val >> 8); 100 buf[2] = (uint8_t)(val >> 16); 101 buf[3] = (uint8_t)(val >> 24); 106 static inline void put_unaligned_be32(uint32_t val, uint8_t *buf) argument 108 buf[0] = (uint8_t)(val >> 24); 109 buf[1] = (uint8_t)(val >> 16); 110 buf[2] = (uint8_t)(val >> 8); 111 buf[3] = (uint8_t)val; [all...] |
/freebsd-12-stable/sys/dev/mthca/ |
H A D | mthca_doorbell.h | 54 static inline void mthca_write64_raw(__be64 val, void __iomem *dest) argument 56 __raw_writeq((__force u64) val, dest); 65 static inline void mthca_write_db_rec(__be32 val[2], __be32 *db) argument 67 *(u64 *) db = *(u64 *) val; 82 static inline void mthca_write64_raw(__be64 val, void __iomem *dest) argument 84 __raw_writel(((__force u32 *) &val)[0], dest); 85 __raw_writel(((__force u32 *) &val)[1], dest + 4); 102 static inline void mthca_write_db_rec(__be32 val[2], __be32 *db) argument 104 db[0] = val[0]; 106 db[1] = val[ [all...] |
/freebsd-12-stable/sys/libkern/ |
H A D | inet_aton.c | 43 in_addr_t val; local 64 val = (in_addr_t)l; 74 parts[n] = val; 115 if (val > 0xffffff || parts[0] > 0xff) 117 val |= parts[0] << 24; 121 if (val > 0xffff || parts[0] > 0xff || parts[1] > 0xff) 123 val |= (parts[0] << 24) | (parts[1] << 16); 127 if (val > 0xff || parts[0] > 0xff || parts[1] > 0xff || 130 val |= (parts[0] << 24) | (parts[1] << 16) | (parts[2] << 8); 135 addr->s_addr = htonl(val); [all...] |
/freebsd-12-stable/tests/sys/cddl/zfs/tests/cli_root/zfs_copies/ |
H A D | zfs_copies_004_neg.ksh | 64 for val in ${badval[@]}; do 65 log_mustnot $ZFS create -o copies=$val $TESTPOOL/$TESTFS1 66 log_mustnot $ZFS create -V $VOLSIZE -o copies=$val $TESTPOOL/$TESTVOL1 67 log_mustnot $ZFS set copies=$val $TESTPOOL/$TESTFS 68 log_mustnot $ZFS set copies=$val $TESTPOOL/$TESTVOL
|
/freebsd-12-stable/usr.sbin/bsnmpd/modules/snmp_bridge/ |
H A D | bridge_pf.c | 56 val2snmp_truth(uint8_t val) argument 58 if (val == 0) 76 op_begemot_bridge_pf(struct snmp_context *ctx, struct snmp_value *val, argument 81 if (val->var.subs[sub - 1] > LEAF_begemotBridgeLayer2PfStatus) 88 bridge_do_pfctl(val->var.subs[sub - 1] - 1, 97 bridge_get_pfval(val->var.subs[sub - 1]); 99 if ((k_val = snmp_truth2val(val->v.integer)) < 0) 104 switch (val->var.subs[sub - 1]) { 109 if (bridge_do_pfctl(val->var.subs[sub - 1] - 1, 112 val [all...] |
/freebsd-12-stable/sys/dev/ath/ath_hal/ar5212/ |
H A D | ar5212_gpio.c | 74 ar5212GpioSet(struct ath_hal *ah, uint32_t gpio, uint32_t val) argument 82 reg |= (val&1) << gpio; 95 uint32_t val = OS_REG_READ(ah, AR_GPIODI); local 96 val = ((val & AR_GPIOD_MASK) >> gpio) & 0x1; 97 return val; 109 uint32_t val; local 112 val = OS_REG_READ(ah, AR_GPIOCR); 113 val &= ~(AR_GPIOCR_CR_A(gpio) | 115 val | [all...] |
/freebsd-12-stable/sys/dev/ath/ath_hal/ar5312/ |
H A D | ar5315_gpio.c | 74 ar5315GpioSet(struct ath_hal *ah, uint32_t gpio, uint32_t val) argument 83 reg |= (val&1) << gpio; 98 uint32_t val = OS_REG_READ(ah, gpioOffset+AR5315_GPIODI); local 99 val = ((val & AR5315_GPIOD_MASK) >> gpio) & 0x1; 100 return val; 112 uint32_t val; local 116 val = OS_REG_READ(ah, gpioOffset+AR5315_GPIOINT); 117 val &= ~(AR5315_GPIOINT_M | AR5315_GPIOINTLVL_M); 118 val | [all...] |
/freebsd-12-stable/sbin/ifconfig/ |
H A D | ifbridge.c | 74 u_long val; local 77 val = strtoul(cp, &endptr, 0); 81 *valp = val; 266 setbridge_add(const char *val, int d, int s, const struct afswtch *afp) argument 271 strlcpy(req.ifbr_ifsname, val, sizeof(req.ifbr_ifsname)); 273 err(1, "BRDGADD %s", val); 277 setbridge_delete(const char *val, int d, int s, const struct afswtch *afp) argument 282 strlcpy(req.ifbr_ifsname, val, sizeof(req.ifbr_ifsname)); 284 err(1, "BRDGDEL %s", val); 288 setbridge_discover(const char *val, in argument 295 unsetbridge_discover(const char *val, int d, int s, const struct afswtch *afp) argument 302 setbridge_learn(const char *val, int d, int s, const struct afswtch *afp) argument 309 unsetbridge_learn(const char *val, int d, int s, const struct afswtch *afp) argument 316 setbridge_sticky(const char *val, int d, int s, const struct afswtch *afp) argument 323 unsetbridge_sticky(const char *val, int d, int s, const struct afswtch *afp) argument 330 setbridge_span(const char *val, int d, int s, const struct afswtch *afp) argument 341 unsetbridge_span(const char *val, int d, int s, const struct afswtch *afp) argument 352 setbridge_stp(const char *val, int d, int s, const struct afswtch *afp) argument 359 unsetbridge_stp(const char *val, int d, int s, const struct afswtch *afp) argument 366 setbridge_edge(const char *val, int d, int s, const struct afswtch *afp) argument 372 unsetbridge_edge(const char *val, int d, int s, const struct afswtch *afp) argument 378 setbridge_autoedge(const char *val, int d, int s, const struct afswtch *afp) argument 384 unsetbridge_autoedge(const char *val, int d, int s, const struct afswtch *afp) argument 390 setbridge_ptp(const char *val, int d, int s, const struct afswtch *afp) argument 396 unsetbridge_ptp(const char *val, int d, int s, const struct afswtch *afp) argument 402 setbridge_autoptp(const char *val, int d, int s, const struct afswtch *afp) argument 408 unsetbridge_autoptp(const char *val, int d, int s, const struct afswtch *afp) argument 414 setbridge_flush(const char *val, int d, int s, const struct afswtch *afp) argument 425 setbridge_flushall(const char *val, int d, int s, const struct afswtch *afp) argument 436 setbridge_static(const char *val, const char *mac, int s, const struct afswtch *afp) argument 458 setbridge_deladdr(const char *val, int d, int s, const struct afswtch *afp) argument 476 setbridge_addr(const char *val, int d, int s, const struct afswtch *afp) argument 486 u_long val; local 501 u_long val; local 516 u_long val; local 531 u_long val; local 546 u_long val; local 578 u_long val; local 594 u_long val; local 613 u_long val; local 632 u_long val; local 650 u_long val; local 662 setbridge_private(const char *val, int d, int s, const struct afswtch *afp) argument 669 unsetbridge_private(const char *val, int d, int s, const struct afswtch *afp) argument [all...] |
/freebsd-12-stable/sys/contrib/dev/ath/ath_hal/ar9300/ |
H A D | ar9300_radar.c | 231 u_int32_t val; local 237 val = OS_REG_READ(ah, AR_PHY_RADAR_0); 238 val |= AR_PHY_RADAR_0_FFT_ENA; 242 val &= ~AR_PHY_RADAR_0_ENA; 243 val |= SM(pe->pe_enabled, AR_PHY_RADAR_0_ENA); 247 val &= ~AR_PHY_RADAR_0_FIRPWR; 248 val |= SM(pe->pe_firpwr, AR_PHY_RADAR_0_FIRPWR); 251 val &= ~AR_PHY_RADAR_0_RRSSI; 252 val |= SM(pe->pe_rrssi, AR_PHY_RADAR_0_RRSSI); 255 val 328 u_int32_t val, temp; local 453 ar9300_adjust_difs(struct ath_hal *ah, u_int32_t val) argument 494 u_int32_t val; local 515 u_int32_t val; local [all...] |
/freebsd-12-stable/sys/arm/mv/ |
H A D | timer.c | 313 uint32_t val, val_temp; local 316 val = mv_get_timer(1); 321 if (val > val_temp) 322 nticks -= (val - val_temp); 324 nticks -= (val + (INITIAL_TIMECOUNTER - val_temp)); 326 val = val_temp; 334 uint32_t val; local 338 for (val = 100; val > 0; val 357 mv_set_timer_control(uint32_t val) argument 373 mv_set_timer(uint32_t timer, uint32_t val) argument 381 mv_set_timer_rel(uint32_t timer, uint32_t val) argument 391 uint32_t val, irq_cause, irq_mask; local 413 uint32_t irq_cause, val; local 435 uint32_t val, irq_cause,irq_mask; local 457 uint32_t val, irq_cause; local 513 uint32_t val, val1; local 542 uint32_t val; local 553 uint32_t val; local [all...] |
/freebsd-12-stable/contrib/dtc/ |
H A D | treesource.c | 64 static void write_propval_string(FILE *f, struct data val) argument 66 const char *str = val.val; 68 struct marker *m = val.markers; 70 assert(str[val.len-1] == '\0'); 79 for (i = 0; i < (val.len-1); i++) { 132 assert (m->offset == val.len); 137 static void write_propval_cells(FILE *f, struct data val) argument 139 void *propend = val.val 167 write_propval_bytes(FILE *f, struct data val) argument [all...] |
/freebsd-12-stable/sys/net/ |
H A D | mppcd.c | 109 uint32_t olen, off, len, bits, val, sig, i, l; local 124 val = getbyte(isrc, i++, l); 125 if (val < 0x80) { /* literal byte < 0x80 */ 128 (state->hist)[(state->histptr)++] = (uint8_t) val; 139 sig = val & 0xc0; 144 (uint8_t) (0x80|((val&0x3f)<<1)|getbits(isrc, 1 , &i ,&l)); 157 sig = val & 0xf0; 159 off = (((val&0x0f)<<2)|getbits(isrc, 2 , &i ,&l)); 163 off = ((((val&0x0f)<<4)|getbits(isrc, 4 , &i ,&l))+64); 167 off = ((((val [all...] |
/freebsd-12-stable/contrib/netbsd-tests/lib/libc/db/ |
H A D | h_lfsr.c | 61 DBT key, val; local 75 val.data = buf; 86 val.size = (next(&len) & 0xff) + 1; 87 switch ((*db->put)(db, &key, &val, R_NOOVERWRITE)) { 90 key.size, val.size, c); 94 key.size, val.size, c); 97 key.size, val.size, c); 109 switch ((*db->get)(db, &key, &val, 0)) { 112 key.size, val.size, c); 116 key.size, val [all...] |
/freebsd-12-stable/contrib/ntp/lib/isc/ia64/include/isc/ |
H A D | atomic.h | 27 * This routine atomically increments the value stored in 'p' by 'val', and 37 isc_atomic_xadd(isc_int32_t *p, isc_int32_t val) argument 42 swapped = prev + val; 57 * This routine atomically stores the value 'val' in 'p'. 63 isc_atomic_store(isc_int32_t *p, isc_int32_t val) argument 68 : "r" (val) 74 * This routine atomically replaces the value in 'p' with 'val', if the 82 isc_atomic_cmpxchg(isc_int32_t *p, isc_int32_t cmpval, isc_int32_t val) argument 90 : "r" (cmpval), "r" (val), "m" (*p)
|
/freebsd-12-stable/contrib/ntp/lib/isc/sparc64/include/isc/ |
H A D | atomic.h | 65 * This routine atomically increments the value stored in 'p' by 'val', and 69 isc_atomic_xadd(isc_int32_t *p, isc_int32_t val) { argument 73 swapped = prev + val; 86 * This routine atomically stores the value 'val' in 'p'. 89 isc_atomic_store(isc_int32_t *p, isc_int32_t val) { argument 93 swapped = val; 105 * This routine atomically replaces the value in 'p' with 'val', if the 110 isc_atomic_cmpxchg(isc_int32_t *p, isc_int32_t cmpval, isc_int32_t val) { argument 111 isc_int32_t temp = val;
|
/freebsd-12-stable/contrib/gcc/config/soft-fp/ |
H A D | single.h | 75 #define FP_UNPACK_RAW_S(X,val) _FP_UNPACK_RAW_1(S,X,val) 76 #define FP_UNPACK_RAW_SP(X,val) _FP_UNPACK_RAW_1_P(S,X,val) 77 #define FP_PACK_RAW_S(val,X) _FP_PACK_RAW_1(S,val,X) 78 #define FP_PACK_RAW_SP(val,X) \ 81 _FP_PACK_RAW_1_P(S,val,X); \ 84 #define FP_UNPACK_S(X,val) \ 86 _FP_UNPACK_RAW_1(S,X,val); \ [all...] |
/freebsd-12-stable/crypto/heimdal/lib/krb5/ |
H A D | padata.c | 37 krb5_find_padata(PA_DATA *val, unsigned len, int type, int *idx) argument 40 if(val[*idx].padata_type == (unsigned)type) 41 return val + *idx; 51 pa = realloc (md->val, (md->len + 1) * sizeof(*md->val)); 57 md->val = pa;
|
/freebsd-12-stable/usr.bin/cksum/ |
H A D | print.c | 49 pcrc(char *fn, uint32_t val, off_t len) argument 51 (void)printf("%lu %jd", (u_long)val, (intmax_t)len); 58 psum1(char *fn, uint32_t val, off_t len) argument 60 (void)printf("%lu %jd", (u_long)val, (intmax_t)(len + 1023) / 1024); 67 psum2(char *fn, uint32_t val, off_t len) argument 69 (void)printf("%lu %jd", (u_long)val, (intmax_t)(len + 511) / 512);
|
/freebsd-12-stable/sys/mips/nlm/hal/ |
H A D | haldefs.h | 81 nlm_store_word(uint64_t addr, uint32_t val) argument 85 *p = val; 98 nlm_store_dword(volatile uint64_t addr, uint64_t val) argument 102 *p = val; 129 nlm_store_dword(uint64_t addr, uint64_t val) argument 134 valhi = val >> 32; 135 vallo = val & 0xffffffff; 163 nlm_store_word_daddr(uint64_t addr, uint32_t val) argument 167 *p = val; 179 nlm_store_dword_daddr(uint64_t addr, uint64_t val) argument 191 uint32_t val; local 205 nlm_store_word_daddr(uint64_t addr, uint32_t val) argument 219 uint64_t val; local 232 nlm_store_dword_daddr(uint64_t addr, uint64_t val) argument 247 uint32_t val, addrhi, addrlo, sr; local 272 nlm_store_word_daddr(uint64_t addr, uint32_t val) argument 324 nlm_store_dword_daddr(uint64_t addr, uint64_t val) argument 363 nlm_write_reg(uint64_t base, uint32_t reg, uint32_t val) argument 379 nlm_write_reg64(uint64_t base, uint32_t reg, uint64_t val) argument 399 nlm_write_reg_xkphys(uint64_t base, uint32_t reg, uint32_t val) argument 414 nlm_write_reg64_xkphys(uint64_t base, uint32_t reg, uint64_t val) argument [all...] |