Searched refs:val (Results 101 - 125 of 3650) sorted by relevance

1234567891011>>

/freebsd-11-stable/usr.sbin/bluetooth/bthidd/
H A Dhid.c128 int32_t report_id, usage, page, val, local
165 val = hid_get_data(data, &h);
176 const uint32_t usage_offset = val - h.logical_minimum;
184 mouse_x = val;
189 mouse_y = val;
194 mouse_z = -val;
199 if (val)
209 if (val && usage < kbd_maxkey())
212 if (val && val < kbd_maxke
[all...]
/freebsd-11-stable/sys/mips/mediatek/
H A Dmtk_soc.c82 uint32_t val; local
84 val = bus_space_read_4(bst, bsh, SYSCTL_CHIPID0_3);
85 if (val == RT3350_CHIPID0_3)
88 val = bus_space_read_4(bst, bsh, SYSCTL_SYSCFG);
89 val >>= RT305X_CPU_CLKSEL_OFF;
90 val &= RT305X_CPU_CLKSEL_MSK;
92 return ((val == 0) ? MTK_CPU_CLK_320MHZ : MTK_CPU_CLK_384MHZ);
98 uint32_t val; local
100 val = bus_space_read_4(bst, bsh, SYSCTL_SYSCFG);
101 val >>
113 uint32_t val; local
166 uint32_t val, mul, div, res; local
193 uint32_t val, div, res; local
226 uint32_t val; local
[all...]
/freebsd-11-stable/usr.sbin/fmtree/
H A Dspec.c169 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-11-stable/usr.sbin/bhyve/
H A Dvga.c402 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 Dxmsr.c51 emulate_wrmsr(struct vmctx *ctx, int vcpu, uint32_t num, uint64_t val) argument
105 emulate_rdmsr(struct vmctx *ctx, int vcpu, uint32_t num, uint64_t *val) argument
117 *val = 0;
124 *val = 0x000a1003;
133 *val = 0;
140 *val = 0x01000010; /* Reset value */
141 *val |= 1 << 9; /* MONITOR/MWAIT disable */
151 *val = 0;
162 *val = 0;
173 *val
[all...]
/freebsd-11-stable/sys/arm64/arm64/
H A Ddebug_monitor.c87 #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-11-stable/sys/contrib/xz-embedded/userspace/
H A Dxz_config.h96 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-11-stable/sys/libkern/
H A Dinet_aton.c41 in_addr_t val; local
62 val = (in_addr_t)l;
72 parts[n] = val;
113 if (val > 0xffffff || parts[0] > 0xff)
115 val |= parts[0] << 24;
119 if (val > 0xffff || parts[0] > 0xff || parts[1] > 0xff)
121 val |= (parts[0] << 24) | (parts[1] << 16);
125 if (val > 0xff || parts[0] > 0xff || parts[1] > 0xff ||
128 val |= (parts[0] << 24) | (parts[1] << 16) | (parts[2] << 8);
133 addr->s_addr = htonl(val);
[all...]
/freebsd-11-stable/contrib/ofed/infiniband-diags/src/
H A Dibdiag_sa.h75 #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-11-stable/sys/dev/mthca/
H A Dmthca_doorbell.h54 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-11-stable/usr.sbin/bsnmpd/modules/snmp_bridge/
H A Dbridge_pf.c55 val2snmp_truth(uint8_t val) argument
57 if (val == 0)
75 op_begemot_bridge_pf(struct snmp_context *ctx, struct snmp_value *val, argument
80 if (val->var.subs[sub - 1] > LEAF_begemotBridgeLayer2PfStatus)
87 bridge_do_pfctl(val->var.subs[sub - 1] - 1,
96 bridge_get_pfval(val->var.subs[sub - 1]);
98 if ((k_val = snmp_truth2val(val->v.integer)) < 0)
103 switch (val->var.subs[sub - 1]) {
108 if (bridge_do_pfctl(val->var.subs[sub - 1] - 1,
111 val
[all...]
/freebsd-11-stable/contrib/subversion/subversion/libsvn_subr/
H A Dencode.c29 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-11-stable/contrib/groff/src/libs/libgroff/
H A Dstrtol.c53 long val; local
85 if (p == 0 || (val = (p - digits)) >= base) {
98 val = -val;
112 if (-(unsigned long)val > (-(unsigned long)LONG_MIN - n)/base) {
113 val = LONG_MIN;
117 val = val*base - n;
120 if (val > (LONG_MAX - n)/base) {
121 val
[all...]
/freebsd-11-stable/sys/dev/ath/ath_hal/ar5212/
H A Dar5212_gpio.c72 ar5212GpioSet(struct ath_hal *ah, uint32_t gpio, uint32_t val) argument
80 reg |= (val&1) << gpio;
93 uint32_t val = OS_REG_READ(ah, AR_GPIODI); local
94 val = ((val & AR_GPIOD_MASK) >> gpio) & 0x1;
95 return val;
107 uint32_t val; local
110 val = OS_REG_READ(ah, AR_GPIOCR);
111 val &= ~(AR_GPIOCR_CR_A(gpio) |
113 val |
[all...]
/freebsd-11-stable/sys/dev/ath/ath_hal/ar5312/
H A Dar5315_gpio.c72 ar5315GpioSet(struct ath_hal *ah, uint32_t gpio, uint32_t val) argument
81 reg |= (val&1) << gpio;
96 uint32_t val = OS_REG_READ(ah, gpioOffset+AR5315_GPIODI); local
97 val = ((val & AR5315_GPIOD_MASK) >> gpio) & 0x1;
98 return val;
110 uint32_t val; local
114 val = OS_REG_READ(ah, gpioOffset+AR5315_GPIOINT);
115 val &= ~(AR5315_GPIOINT_M | AR5315_GPIOINTLVL_M);
116 val |
[all...]
/freebsd-11-stable/sbin/ifconfig/
H A Difbridge.c101 u_long val; local
104 val = strtoul(cp, &endptr, 0);
108 *valp = val;
293 setbridge_add(const char *val, int d, int s, const struct afswtch *afp) argument
298 strlcpy(req.ifbr_ifsname, val, sizeof(req.ifbr_ifsname));
300 err(1, "BRDGADD %s", val);
304 setbridge_delete(const char *val, int d, int s, const struct afswtch *afp) argument
309 strlcpy(req.ifbr_ifsname, val, sizeof(req.ifbr_ifsname));
311 err(1, "BRDGDEL %s", val);
315 setbridge_discover(const char *val, in argument
322 unsetbridge_discover(const char *val, int d, int s, const struct afswtch *afp) argument
329 setbridge_learn(const char *val, int d, int s, const struct afswtch *afp) argument
336 unsetbridge_learn(const char *val, int d, int s, const struct afswtch *afp) argument
343 setbridge_sticky(const char *val, int d, int s, const struct afswtch *afp) argument
350 unsetbridge_sticky(const char *val, int d, int s, const struct afswtch *afp) argument
357 setbridge_span(const char *val, int d, int s, const struct afswtch *afp) argument
368 unsetbridge_span(const char *val, int d, int s, const struct afswtch *afp) argument
379 setbridge_stp(const char *val, int d, int s, const struct afswtch *afp) argument
386 unsetbridge_stp(const char *val, int d, int s, const struct afswtch *afp) argument
393 setbridge_edge(const char *val, int d, int s, const struct afswtch *afp) argument
399 unsetbridge_edge(const char *val, int d, int s, const struct afswtch *afp) argument
405 setbridge_autoedge(const char *val, int d, int s, const struct afswtch *afp) argument
411 unsetbridge_autoedge(const char *val, int d, int s, const struct afswtch *afp) argument
417 setbridge_ptp(const char *val, int d, int s, const struct afswtch *afp) argument
423 unsetbridge_ptp(const char *val, int d, int s, const struct afswtch *afp) argument
429 setbridge_autoptp(const char *val, int d, int s, const struct afswtch *afp) argument
435 unsetbridge_autoptp(const char *val, int d, int s, const struct afswtch *afp) argument
441 setbridge_flush(const char *val, int d, int s, const struct afswtch *afp) argument
452 setbridge_flushall(const char *val, int d, int s, const struct afswtch *afp) argument
463 setbridge_static(const char *val, const char *mac, int s, const struct afswtch *afp) argument
485 setbridge_deladdr(const char *val, int d, int s, const struct afswtch *afp) argument
503 setbridge_addr(const char *val, int d, int s, const struct afswtch *afp) argument
513 u_long val; local
528 u_long val; local
543 u_long val; local
558 u_long val; local
573 u_long val; local
605 u_long val; local
621 u_long val; local
640 u_long val; local
659 u_long val; local
677 u_long val; local
689 setbridge_private(const char *val, int d, int s, const struct afswtch *afp) argument
696 unsetbridge_private(const char *val, int d, int s, const struct afswtch *afp) argument
[all...]
/freebsd-11-stable/sys/net/
H A Dmppcd.c109 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-11-stable/contrib/dtc/
H A Dtreesource.c64 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-11-stable/contrib/ntp/lib/isc/ia64/include/isc/
H A Datomic.h27 * 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-11-stable/contrib/ntp/lib/isc/sparc64/include/isc/
H A Datomic.h65 * 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-11-stable/contrib/gcc/config/soft-fp/
H A Dsingle.h75 #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-11-stable/crypto/heimdal/lib/krb5/
H A Dpadata.c37 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-11-stable/usr.bin/cksum/
H A Dprint.c47 pcrc(char *fn, uint32_t val, off_t len) argument
49 (void)printf("%lu %jd", (u_long)val, (intmax_t)len);
56 psum1(char *fn, uint32_t val, off_t len) argument
58 (void)printf("%lu %jd", (u_long)val, (intmax_t)(len + 1023) / 1024);
65 psum2(char *fn, uint32_t val, off_t len) argument
67 (void)printf("%lu %jd", (u_long)val, (intmax_t)(len + 511) / 512);
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/db/
H A Dh_lfsr.c61 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-11-stable/sys/contrib/dev/ath/ath_hal/ar9300/
H A Dar9300_radar.c231 u_int32_t val; local
237 val = OS_REG_READ(ah, AR_PHY_RADAR_0);
238 val |= AR_PHY_RADAR_0_FFT_ENA | AR_PHY_RADAR_0_ENA;
240 val &= ~AR_PHY_RADAR_0_FIRPWR;
241 val |= SM(pe->pe_firpwr, AR_PHY_RADAR_0_FIRPWR);
244 val &= ~AR_PHY_RADAR_0_RRSSI;
245 val |= SM(pe->pe_rrssi, AR_PHY_RADAR_0_RRSSI);
248 val &= ~AR_PHY_RADAR_0_HEIGHT;
249 val |= SM(pe->pe_height, AR_PHY_RADAR_0_HEIGHT);
252 val
321 u_int32_t val, temp; local
428 ar9300_adjust_difs(struct ath_hal *ah, u_int32_t val) argument
469 u_int32_t val; local
490 u_int32_t val; local
[all...]

Completed in 270 milliseconds

1234567891011>>