Searched refs:val (Results 526 - 550 of 3650) sorted by relevance

<<21222324252627282930>>

/freebsd-11-stable/sys/sparc64/sparc64/
H A Dzeus.c52 u_long val; local
70 val = ldxa(AA_MCNTL, ASI_MCNTL);
72 val &= ~MCNTL_JPS1_TSBP;
77 val = (val & ~MCNTL_RMD_MASK) | MCNTL_RMD_1024;
78 stxa(AA_MCNTL, ASI_MCNTL, val);
/freebsd-11-stable/sys/mips/mediatek/
H A Dmtk_pcie.h140 #define MT_WRITE32(sc, off, val) \
141 bus_write_4((sc)->pci_res[0], (off), (val))
142 #define MT_WRITE16(sc, off, val) \
143 bus_write_2((sc)->pci_res[0], (off), (val))
144 #define MT_WRITE8(sc, off, val) \
145 bus_write_1((sc)->pci_res[0], (off), (val))
H A Dmtk_gpio_v2.c108 #define MTK_WRITE_4(sc, reg, val) bus_write_4((sc)->res[0], (reg), (val))
195 mtk_gpio_pin_set_invert(struct mtk_gpio_softc *sc, uint32_t pin, uint32_t val) argument
200 if (val)
206 sc->pins[pin].pin_flags |= val;
215 uint32_t val; local
220 val = MTK_READ_4(sc, GPIO_PIORENA(sc)) |
222 if (val & mask) {
225 val = MTK_READ_4(sc, GPIO_PIORENA(sc));
226 if (val
448 mtk_gpio_pin_get(device_t dev, uint32_t pin, unsigned int *val) argument
472 uint32_t val; local
524 uint32_t pin, mask, val; local
554 uint32_t pin, mask, val; local
[all...]
/freebsd-11-stable/sys/xen/interface/arch-x86/
H A Dxen.h56 #define set_xen_guest_handle_raw(hnd, val) do { (hnd).p = val; } while (0)
58 #define get_xen_guest_handle(val, hnd) do { val = (hnd).p; } while (0)
60 #define set_xen_guest_handle(hnd, val) set_xen_guest_handle_raw(hnd, val)
/freebsd-11-stable/tools/bus_space/Python/
H A Dlang.c40 uint8_t val; local
44 if (!bs_read(rid, ofs, &val, sizeof(val))) {
48 return (Py_BuildValue("B", val));
56 uint16_t val; local
60 if (!bs_read(rid, ofs, &val, sizeof(val))) {
64 return (Py_BuildValue("H", val));
72 uint32_t val; local
76 if (!bs_read(rid, ofs, &val, sizeo
88 uint8_t val; local
104 uint16_t val; local
120 uint32_t val; local
[all...]
/freebsd-11-stable/sys/dev/wl/
H A Dif_wl.h104 #define WL_WRITE_1(sc, reg, val) \
105 bus_write_1((sc)->res_ioport, (reg), (val))
106 #define WL_WRITE_2(sc, reg, val) \
107 bus_write_2((sc)->res_ioport, (reg), (val))
127 #define MMC_WRITE(cmd,val) \
130 (u_short)(((u_short)(val) << 8) | ((cmd) << 1) | 1))
/freebsd-11-stable/contrib/ofed/opensm/include/vendor/
H A Dosm_vendor_mlx_rmpp_ctx.h139 osmv_rmpp_send_ctx_set_wf(IN osmv_rmpp_send_ctx_t * p_ctx, IN uint32_t val) argument
142 p_ctx->window_first = val;
171 osmv_rmpp_send_ctx_set_wl(IN osmv_rmpp_send_ctx_t * p_ctx, IN uint32_t val) argument
174 p_ctx->window_last = val;
249 osmv_rmpp_recv_ctx_set_es(IN osmv_rmpp_recv_ctx_t * p_recv_ctx, IN uint32_t val) argument
252 p_recv_ctx->expected_seg = val;
/freebsd-11-stable/sys/arm/ti/
H A Dti_scm.c81 #define ti_scm_write_4(sc, reg, val) \
82 bus_space_write_4((sc)->sc_bst, (sc)->sc_bsh, (reg), (val))
139 ti_scm_reg_read_4(uint32_t reg, uint32_t *val) argument
144 *val = ti_scm_read_4(ti_scm_sc, reg);
149 ti_scm_reg_write_4(uint32_t reg, uint32_t val) argument
154 ti_scm_write_4(ti_scm_sc, reg, val);
/freebsd-11-stable/sys/dev/acpi_support/
H A Dacpi_panasonic.c87 UINT64 val);
289 acpi_panasonic_sset(ACPI_HANDLE h, UINT64 index, UINT64 val) argument
298 obj[1].Integer.Value = val;
305 hkey_lcd_brightness_max(ACPI_HANDLE h, int op, UINT32 *val) argument
318 *val = acpi_panasonic_sinf(h, reg);
326 hkey_lcd_brightness_min(ACPI_HANDLE h, int op, UINT32 *val) argument
339 *val = acpi_panasonic_sinf(h, reg);
347 hkey_lcd_brightness(ACPI_HANDLE h, int op, UINT32 *val) argument
360 if (*val < min || *val > ma
373 hkey_sound_mute(ACPI_HANDLE h, int op, UINT32 *val) argument
397 UINT64 val; local
[all...]
/freebsd-11-stable/lib/libkvm/
H A Dkvm_private.h123 _kvm32toh(kvm_t *kd, uint32_t val) argument
127 return (le32toh(val));
129 return (be32toh(val));
133 _kvm64toh(kvm_t *kd, uint64_t val) argument
137 return (le64toh(val));
139 return (be64toh(val));
/freebsd-11-stable/sys/dev/ena/
H A Dena_sysctl.c389 uint32_t val; local
392 val = 0;
393 error = sysctl_wire_old_buffer(req, sizeof(val));
395 val = adapter->buf_ring_size;
396 error = sysctl_handle_32(oidp, &val, 0, req);
401 if (!powerof2(val) || val == 0) {
404 val);
408 if (val != adapter->buf_ring_size) {
411 val, adapte
427 uint32_t val; local
[all...]
/freebsd-11-stable/lib/libedit/
H A Dkeymacro.c80 keymacro_value_t val; /* command code or pointer to str, */ member in struct:keymacro_node_t
138 el->el_keymacro.val.cmd = (el_action_t) cmd;
139 return &el->el_keymacro.val;
150 el->el_keymacro.val.str = str;
151 return &el->el_keymacro.val;
175 * Returns NULL in val.str and XK_STR for no match.
179 keymacro_get(EditLine *el, Char *ch, keymacro_value_t *val) argument
182 return node_trav(el, el->el_keymacro.map, ch, val);
188 * val with it. If key is already is in el->el_keymacro.map, the new
193 keymacro_add(EditLine *el, const Char *key, keymacro_value_t *val, in argument
283 node_trav(EditLine *el, keymacro_node_t *ptr, Char *ch, keymacro_value_t *val) argument
322 node__try(EditLine *el, keymacro_node_t *ptr, const Char *str, keymacro_value_t *val, int ntype) argument
590 keymacro_kprint(EditLine *el, const Char *key, keymacro_value_t *val, int ntype) argument
[all...]
/freebsd-11-stable/sys/arm/allwinner/
H A Da10_fb.c173 #define DEBE_WRITE(sc, reg, val) bus_write_4((sc)->res[0], (reg), (val))
176 #define TCON_WRITE(sc, reg, val) bus_write_4((sc)->res[1], (reg), (val))
204 uint32_t val; local
285 val = DEBE_READ(sc, DEBE_MODCTL);
286 val |= MODCTL_LAY0_EN;
287 val &= ~MODCTL_OUT_SEL_MASK;
288 val |= MODCTL_OUT_SEL(OUT_SEL_LCD);
290 val |
349 uint32_t val; local
444 uint32_t val; local
[all...]
/freebsd-11-stable/sys/arm/include/
H A Datomic-v6.h96 atomic_add_32(volatile uint32_t *p, uint32_t val) argument
108 ,"+r" (p), "+r" (val) : : "cc", "memory");
112 atomic_add_64(volatile uint64_t *p, uint64_t val) argument
120 " adds %Q[tmp], %Q[val] \n"
121 " adc %R[tmp], %R[tmp], %R[val] \n"
129 [val] "r" (val)
134 atomic_add_long(volatile u_long *p, u_long val) argument
137 atomic_add_32((volatile uint32_t *)p, val);
161 atomic_clear_64(volatile uint64_t *p, uint64_t val) argument
414 atomic_fetchadd_32(volatile uint32_t *p, uint32_t val) argument
431 atomic_fetchadd_64(volatile uint64_t *p, uint64_t val) argument
455 atomic_fetchadd_long(volatile u_long *p, u_long val) argument
574 atomic_set_64(volatile uint64_t *p, uint64_t val) argument
607 atomic_subtract_32(volatile uint32_t *p, uint32_t val) argument
623 atomic_subtract_64(volatile uint64_t *p, uint64_t val) argument
645 atomic_subtract_long(volatile u_long *p, u_long val) argument
656 atomic_store_64(volatile uint64_t *p, uint64_t val) argument
689 atomic_store_rel_64(volatile uint64_t *p, uint64_t val) argument
[all...]
/freebsd-11-stable/sbin/ifconfig/
H A Difvxlan.c64 u_long val; local
67 val = strtoul(cp, &endptr, 0);
71 *valp = val;
201 u_long val; local
203 if (get_val(arg, &val) < 0 || val >= VXLAN_VNI_MAX)
208 params.vxlp_vni = val;
213 cmd.vxlcmd_vni = val;
403 u_long val; local
405 if (get_val(arg, &val) <
425 u_long val; local
475 u_long val; local
497 u_long val; local
538 u_long val; local
576 setvxlan_flush(const char *val, int d, int s, const struct afswtch *afp) argument
[all...]
/freebsd-11-stable/contrib/ofed/libibmad/
H A Dfields.c1131 uint64_t val)
1135 nval = htonll(val);
1142 uint64_t val; local
1143 memcpy((void *)&val, (void *)((char *)buf + base_offs + f->bitoffs / 8),
1145 return ntohll(val);
1149 uint32_t val)
1160 (val & ((1 << f->bitlen) - 1)) << (f->bitoffs & 7);
1164 if (prebits) { /* val lsb in byte msb */
1166 p[3 ^ idx++] |= (val & ((1 << prebits) - 1)) << (8 - prebits);
1167 val >>
1130 _set_field64(void *buf, int base_offs, const ib_field_t * f, uint64_t val) argument
1148 _set_field(void *buf, int base_offs, const ib_field_t * f, uint32_t val) argument
1187 uint32_t val = 0, v = 0, i; local
1209 _set_array(void *buf, int base_offs, const ib_field_t * f, void *val) argument
1220 _get_array(void *buf, int base_offs, const ib_field_t * f, void *val) argument
1236 mad_set_field(void *buf, int base_offs, enum MAD_FIELDS field, uint32_t val) argument
1247 mad_set_field64(void *buf, int base_offs, enum MAD_FIELDS field, uint64_t val) argument
1253 mad_set_array(void *buf, int base_offs, enum MAD_FIELDS field, void *val) argument
1258 mad_get_array(void *buf, int base_offs, enum MAD_FIELDS field, void *val) argument
1263 mad_decode_field(uint8_t * buf, enum MAD_FIELDS field, void *val) argument
1282 mad_encode_field(uint8_t * buf, enum MAD_FIELDS field, void *val) argument
1303 _mad_dump_val(const ib_field_t * f, char *buf, int bufsz, void *val) argument
1312 _mad_dump_field(const ib_field_t * f, const char *name, char *buf, int bufsz, void *val) argument
1337 _mad_dump(ib_mad_dump_fn * fn, const char *name, void *val, int valsz) argument
1349 _mad_print_field(const ib_field_t * f, const char *name, void *val, int valsz) argument
1356 mad_print_field(enum MAD_FIELDS field, const char *name, void *val) argument
1363 mad_dump_field(enum MAD_FIELDS field, char *buf, int bufsz, void *val) argument
1370 mad_dump_val(enum MAD_FIELDS field, char *buf, int bufsz, void *val) argument
[all...]
/freebsd-11-stable/contrib/bsnmp/snmp_ntp/
H A Dsnmp_ntp.c643 val_parse_int32(const char *val, int32_t *p, int32_t min, int32_t max, int base) argument
649 n = strtol(val, &end, base);
662 val_parse_uint32(const char *val, uint32_t *p, uint32_t min, uint32_t max, argument
669 n = strtoul(val, &end, base);
682 val_parse_double(const char *val, double *p) argument
687 *p = strtod(val, &end);
694 val_parse_ts(const char *val, char *buf) argument
699 if (strlen(val) > 2 && val[0] == '0' && val[
725 val_parse_ip(const char *val, u_char ip[4]) argument
772 char *val; local
873 parse_filt(char *val, uint16_t associd, int which) argument
929 char *name, *val; local
[all...]
/freebsd-11-stable/sys/arm64/arm64/
H A Dgic_v3_reg.h407 #define gic_icc_write(reg, val) \
409 WRITE_SPECIALREG(ICC_ ##reg ##_EL1, val); \
415 uint64_t val; \
417 val = READ_SPECIALREG(ICC_ ##reg ##_EL1); \
418 (val); \
423 uint64_t val; \
424 val = gic_icc_read(reg); \
425 val |= (mask); \
426 gic_icc_write(reg, val); \
431 uint64_t val; \
[all...]
/freebsd-11-stable/usr.bin/nl/
H A Dnl.c136 long val; local
182 val = strtol(optarg, &ep, 10);
184 ((val == LONG_MIN || val == LONG_MAX) && errno != 0))
187 incr = (int)val;
214 val = strtol(optarg, &ep, 10);
216 ((val == LONG_MIN || val == LONG_MAX) && errno != 0))
219 startnum = (int)val;
223 val
[all...]
/freebsd-11-stable/contrib/wpa/src/tls/
H A Dasn1.c132 unsigned long val; local
141 val = 0;
147 val = (val << 7) | (tmp & 0x7f);
160 oid->oid[0] = val / 40;
163 oid->oid[1] = val - oid->oid[0] * 40;
166 oid->oid[oid->len++] = val;
235 unsigned long val = 0; local
243 val |= rotate_bits(*pos++);
245 val |
[all...]
/freebsd-11-stable/sys/dev/cfi/
H A Dcfi_dev.c94 uint32_t val; local
114 val = cfi_read_raw(sc, sc->sc_wrofs + r);
117 *(ptr.x8)++ = val;
120 *(ptr.x16)++ = val;
123 *(ptr.x32)++ = val;
191 uint32_t val; local
203 val = cfi_read_raw(sc, ofs);
206 buf.x8[0] = val;
209 buf.x16[0] = val;
212 buf.x32[0] = val;
267 u_char val; local
[all...]
/freebsd-11-stable/sys/dev/mii/
H A Dbrgphy.c331 int val; local
366 val = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR);
367 if (val & BMSR_LINK) {
488 int aux, bmcr, bmsr, val, xstat; local
560 val = PHY_READ(sc, BRGPHY_SERDES_ANAR) & PHY_READ(sc, BRGPHY_SERDES_ANLPAR);
561 if (val & BRGPHY_SERDES_ANAR_FDX)
667 uint16_t val; member in struct:__anon1
685 PHY_WRITE(sc, dspcode[i].reg, dspcode[i].val);
694 uint16_t val; member in struct:__anon2
704 PHY_WRITE(sc, dspcode[i].reg, dspcode[i].val);
712 uint16_t val; member in struct:__anon3
730 uint16_t val; member in struct:__anon4
747 uint16_t val; member in struct:__anon5
765 uint16_t val; member in struct:__anon6
785 uint16_t val; member in struct:__anon7
808 uint16_t val; member in struct:__anon8
827 uint16_t val; member in struct:__anon9
844 uint32_t val; local
856 uint32_t val; local
867 uint32_t val; local
902 int i, val; local
[all...]
/freebsd-11-stable/contrib/apr-util/dbm/sdbm/
H A Dsdbm_pair.c82 putpair(pag, key, val)
85 apr_sdbm_datum_t val;
101 off -= val.dsize;
102 (void) memcpy(pag + off, val.dptr, val.dsize);
117 apr_sdbm_datum_t val; local
126 val.dptr = pag + ino[i + 1];
127 val.dsize = ino[i] - ino[i + 1];
128 return val;
260 apr_sdbm_datum_t val; local
[all...]
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/profile/
H A DGCDAProfiling.c214 uint32_t val; local
219 val = *(uint32_t*)&write_buffer[cur_pos];
221 return val;
225 uint32_t val = 0; local
232 val |= write_buffer[cur_pos++] << (8*i);
233 return val;
469 uint32_t val = 0; local
474 val = read_le_32bit_value();
476 if (val != (uint32_t)-1) {
478 if (val !
523 uint32_t val = 0; local
[all...]
/freebsd-11-stable/sys/arm/nvidia/
H A Dtegra_ahci.c387 uint32_t val; local
390 val = SATA_RD4(sc, SATA_CONFIGURATION);
391 val |= SATA_CONFIGURATION_EN_FPCI;
392 SATA_WR4(sc, SATA_CONFIGURATION, val);
396 val = tegra_fuse_read_4(FUSE_SATA_CALIB);
397 calib = tegra124_pad_calibration + (val & FUSE_SATA_CALIB_MASK);
400 val = SATA_RD4(sc, SCFG_OFFSET + T_SATA0_CHX_PHY_CTRL1_GEN1);
401 val &= ~(T_SATA0_CHX_PHY_CTRL1_GEN1_TX_AMP_MASK <<
403 val &= ~(T_SATA0_CHX_PHY_CTRL1_GEN1_TX_PEAK_MASK <<
405 val |
[all...]

Completed in 486 milliseconds

<<21222324252627282930>>