Home
last modified time | relevance | path

Searched refs:val (Results 1 – 25 of 3235) sorted by relevance

12345678910>>...130

/freebsd/usr.sbin/cxgbetool/
H A Dtcbshowt5.c46 spr_tcp_state(val("t_state")), in t5_display_tcb_aux_0()
47 val("t_state"), in t5_display_tcb_aux_0()
48 spr_ip_version(val("ip_version")), in t5_display_tcb_aux_0()
49 val("lock_tid"), in t5_display_tcb_aux_0()
50 val("rss_fw") in t5_display_tcb_aux_0()
53 val("l2t_ix"), in t5_display_tcb_aux_0()
54 val("smac_sel"), in t5_display_tcb_aux_0()
55 val("tos") in t5_display_tcb_aux_0()
58 val("t_maxseg"), val("recv_scale"), in t5_display_tcb_aux_0()
59 val("recv_tstmp"), val("recv_sack")); in t5_display_tcb_aux_0()
[all …]
H A Dtcbshowt4.c46 spr_tcp_state(val("t_state")), in t4_display_tcb_aux_0()
47 val("t_state"), in t4_display_tcb_aux_0()
48 spr_ip_version(val("ip_version")), in t4_display_tcb_aux_0()
49 val("lock_tid"), in t4_display_tcb_aux_0()
50 val("init") in t4_display_tcb_aux_0()
53 val("l2t_ix"), in t4_display_tcb_aux_0()
54 val("smac_sel"), in t4_display_tcb_aux_0()
55 val("tos") in t4_display_tcb_aux_0()
58 val("t_maxseg"), val("recv_scale"), in t4_display_tcb_aux_0()
59 val("recv_tstmp"), val("recv_sack")); in t4_display_tcb_aux_0()
[all …]
H A Dtcbshowt6.c46 spr_tcp_state(val("t_state")), in t6_display_tcb_aux_0()
47 val("t_state"), in t6_display_tcb_aux_0()
48 spr_ip_version(val("ip_version")), in t6_display_tcb_aux_0()
49 val("lock_tid"), in t6_display_tcb_aux_0()
50 val("rss_fw") in t6_display_tcb_aux_0()
53 val("l2t_ix"), in t6_display_tcb_aux_0()
54 val("smac_sel"), in t6_display_tcb_aux_0()
55 val("tos") in t6_display_tcb_aux_0()
58 val("t_maxseg"), val("recv_scale"), in t6_display_tcb_aux_0()
59 val("recv_tstmp"), val("recv_sack")); in t6_display_tcb_aux_0()
[all …]
H A Dtcbshowt7.c18 spr_tcp_state(val("t_state")), in t7_display_tcb_aux_0()
19 val("t_state"), in t7_display_tcb_aux_0()
20 spr_ip_version(val("ip_version")), in t7_display_tcb_aux_0()
21 val("lock_tid"), in t7_display_tcb_aux_0()
22 val("rss_fw") in t7_display_tcb_aux_0()
25 val("l2t_ix"), in t7_display_tcb_aux_0()
26 val("smac_sel"), in t7_display_tcb_aux_0()
27 val("tos") in t7_display_tcb_aux_0()
30 val("t_maxseg"), val("recv_scale"), in t7_display_tcb_aux_0()
31 val("recv_tstmp"), val("recv_sack")); in t7_display_tcb_aux_0()
[all …]
/freebsd/sys/dev/mii/
H A Drlswitch.c137 int val; in rlswitch_attach() local
140 val = 0; in rlswitch_attach()
141 val |= 0 << 10; /* enable 802.1q VLAN Tag support */ in rlswitch_attach()
142 val |= 0 << 9; /* enable VLAN ingress filtering */ in rlswitch_attach()
143 val |= 1 << 8; /* disable VLAN tag admit control */ in rlswitch_attach()
144 val |= 1 << 6; /* internal use */ in rlswitch_attach()
145 val |= 1 << 5; /* internal use */ in rlswitch_attach()
146 val |= 1 << 4; /* internal use */ in rlswitch_attach()
147 val |= 1 << 3; /* internal use */ in rlswitch_attach()
148 val |= 1 << 1; /* reserved */ in rlswitch_attach()
[all …]
/freebsd/contrib/unbound/contrib/
H A Dmetrics.awk15 val[$1]=$2;
21 print "unbound_hits_queries{type=\"total.num.queries\"} " val["total.num.queries"];
23 if(val["thread" $x ".num.queries"] != "") {
24 print "unbound_hits_queries{type=\"thread" $x ".num.queries\"} " val["thread" $x ".num.queries"];
27 print "unbound_hits_queries{type=\"total.num.cachehits\"} " val["total.num.cachehits"];
28 print "unbound_hits_queries{type=\"total.num.prefetch\"} " val["total.num.prefetch"];
29 print "unbound_hits_queries{type=\"num.query.tcp\"} " val["num.query.tcp"];
30 print "unbound_hits_queries{type=\"num.query.tcpout\"} " val["num.query.tcpout"];
31 print "unbound_hits_queries{type=\"num.query.udpout\"} " val["num.query.udpout"];
32 print "unbound_hits_queries{type=\"num.query.tls\"} " val["num.query.tls"];
[all …]
/freebsd/crypto/krb5/src/lib/krb5/krb/
H A Dkfree.c58 krb5_free_address(krb5_context context, krb5_address *val) in krb5_free_address() argument
60 if (val == NULL) in krb5_free_address()
62 free(val->contents); in krb5_free_address()
63 free(val); in krb5_free_address()
67 krb5_free_addresses(krb5_context context, krb5_address **val) in krb5_free_addresses() argument
71 if (val == NULL) in krb5_free_addresses()
73 for (temp = val; *temp; temp++) { in krb5_free_addresses()
77 free(val); in krb5_free_addresses()
81 krb5_free_ap_rep(krb5_context context, krb5_ap_rep *val) in krb5_free_ap_rep() argument
83 if (val == NULL) in krb5_free_ap_rep()
[all …]
/freebsd/usr.sbin/virtual_oss/virtual_oss/
H A Dformat.c39 int64_t val; in format_import() local
44 val = src[0] | (src[1] << 8); in format_import()
46 val = src[1] | (src[0] << 8); in format_import()
51 val = val ^ 0x8000; in format_import()
53 val <<= (64 - 16); in format_import()
54 val >>= (64 - 16); in format_import()
56 *dst++ = val; in format_import()
62 val = src[0] | (src[1] << 8) | (src[2] << 16); in format_import()
64 val = src[2] | (src[1] << 8) | (src[0] << 16); in format_import()
69 val = val ^ 0x800000; in format_import()
[all …]
/freebsd/sys/contrib/ncsw/inc/
H A Dendian_ext.h93 #define SWAP_UINT16(val) \ argument
94 ((uint16_t)((((val) & 0x00FF) << 8) | (((val) & 0xFF00) >> 8)))
109 #define SWAP_UINT32(val) \ argument
110 ((uint32_t)((((val) & 0x000000FF) << 24) | \
111 (((val) & 0x0000FF00) << 8) | \
112 (((val) & 0x00FF0000) >> 8) | \
113 (((val) & 0xFF000000) >> 24)))
128 #define SWAP_UINT64(val) \ argument
129 ((uint64_t)((((val) & 0x00000000000000FFULL) << 56) | \
130 (((val) & 0x000000000000FF00ULL) << 40) | \
[all …]
/freebsd/bin/date/
H A Dvary.c36 int64_t val; member
73 for (f = 0; t[f].val != -1; f++) in trans()
76 return t[f].val; in trans()
127 adjyear(struct tm *t, char type, int64_t val, int mk) in adjyear() argument
131 t->tm_year += val; in adjyear()
134 t->tm_year -= val; in adjyear()
137 t->tm_year = val; in adjyear()
148 adjmon(struct tm *t, char type, int64_t val, int istext, int mk) in adjmon() argument
152 if (val < 0) in adjmon()
158 if (val <= t->tm_mon) in adjmon()
[all …]
/freebsd/sys/dev/ath/ath_hal/ar5416/
H A Dar5416_spectral.c50 uint32_t val; in ar5416DisableRadar() local
53 val = OS_REG_READ(ah, AR_PHY_RADAR_0); in ar5416DisableRadar()
54 val |= AR_PHY_RADAR_0_FFT_ENA; in ar5416DisableRadar()
57 val &= ~AR_PHY_RADAR_0_RRSSI; in ar5416DisableRadar()
58 val |= SM(MAX_RADAR_RSSI_THRESH, AR_PHY_RADAR_0_RRSSI); in ar5416DisableRadar()
60 val &= ~AR_PHY_RADAR_0_HEIGHT; in ar5416DisableRadar()
61 val |= SM(MAX_RADAR_HEIGHT, AR_PHY_RADAR_0_HEIGHT); in ar5416DisableRadar()
63 val &= ~(AR_PHY_RADAR_0_ENA); in ar5416DisableRadar()
64 OS_REG_WRITE(ah, AR_PHY_RADAR_0, val); in ar5416DisableRadar()
67 val = OS_REG_READ(ah, AR_PHY_RADAR_EXT); in ar5416DisableRadar()
[all …]
/freebsd/bin/expr/
H A Dexpr.y33 struct val { struct
43 struct val *result; argument
45 void assert_to_integer(struct val *);
50 int compare_vals(struct val *, struct val *);
51 void free_value(struct val *);
53 int is_string(struct val *);
54 int is_zero_or_null(struct val *);
55 struct val *make_integer(intmax_t);
56 struct val *make_str(const char *);
57 struct val *op_and(struct val *, struct val *);
[all …]
/freebsd/crypto/openssl/crypto/
H A Dparams.c198 static int general_get_int(const OSSL_PARAM *p, void *val, size_t val_size) in general_get_int() argument
205 return signed_from_signed(val, val_size, p->data, p->data_size); in general_get_int()
207 return signed_from_unsigned(val, val_size, p->data, p->data_size); in general_get_int()
213 static int general_set_int(OSSL_PARAM *p, void *val, size_t val_size) in general_set_int() argument
222 r = signed_from_signed(p->data, p->data_size, val, val_size); in general_set_int()
224 r = unsigned_from_signed(p->data, p->data_size, val, val_size); in general_set_int()
232 static int general_get_uint(const OSSL_PARAM *p, void *val, size_t val_size) in general_get_uint() argument
240 return unsigned_from_signed(val, val_size, p->data, p->data_size); in general_get_uint()
242 return unsigned_from_unsigned(val, val_size, p->data, p->data_size); in general_get_uint()
248 static int general_set_uint(OSSL_PARAM *p, void *val, size_t val_size) in general_set_uint() argument
[all …]
/freebsd/contrib/llvm-project/lld/ELF/Arch/
H A DAVR.cpp54 uint64_t val) const override;
102 static void writeLDI(uint8_t *loc, uint64_t val) { in writeLDI() argument
103 write16le(loc, (read16le(loc) & 0xf0f0) | (val & 0xf0) << 4 | (val & 0x0f)); in writeLDI()
119 void AVR::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const { in relocate()
122 checkUInt(loc, val, 8, rel); in relocate()
123 *loc = val; in relocate()
126 checkUInt(loc, val, 32, rel); in relocate()
127 *loc = val & 0xff; in relocate()
130 checkUInt(loc, val, 32, rel); in relocate()
131 *loc = (val >> 8) & 0xff; in relocate()
[all …]
/freebsd/contrib/ofed/libibmad/
H A Ddump.c47 void mad_dump_int(char *buf, int bufsz, void *val, int valsz) in mad_dump_int() argument
51 snprintf(buf, bufsz, "%d", *(uint32_t *) val & 0xff); in mad_dump_int()
54 snprintf(buf, bufsz, "%d", *(uint32_t *) val & 0xffff); in mad_dump_int()
58 snprintf(buf, bufsz, "%d", *(uint32_t *) val); in mad_dump_int()
64 snprintf(buf, bufsz, "%" PRIu64, *(uint64_t *) val); in mad_dump_int()
72 void mad_dump_uint(char *buf, int bufsz, void *val, int valsz) in mad_dump_uint() argument
76 snprintf(buf, bufsz, "%u", *(uint32_t *) val & 0xff); in mad_dump_uint()
79 snprintf(buf, bufsz, "%u", *(uint32_t *) val & 0xffff); in mad_dump_uint()
83 snprintf(buf, bufsz, "%u", *(uint32_t *) val); in mad_dump_uint()
89 snprintf(buf, bufsz, "%" PRIu64, *(uint64_t *) val); in mad_dump_uint()
[all …]
/freebsd/usr.sbin/bhyve/amd64/
H A Dvga.c399 vga_mem_wr_handler(uint64_t addr, uint8_t val, void *arg1) in vga_mem_wr_handler() argument
452 val = (val >> sc->vga_gc.gc_rotate) | in vga_mem_wr_handler()
453 (val << (8 - sc->vga_gc.gc_rotate)); in vga_mem_wr_handler()
462 c0 = (enb_set_reset & 1) ? (c0 & ~mask) : (val & mask); in vga_mem_wr_handler()
463 c1 = (enb_set_reset & 2) ? (c1 & ~mask) : (val & mask); in vga_mem_wr_handler()
464 c2 = (enb_set_reset & 4) ? (c2 & ~mask) : (val & mask); in vga_mem_wr_handler()
465 c3 = (enb_set_reset & 8) ? (c3 & ~mask) : (val & mask); in vga_mem_wr_handler()
478 c0 = enb_set_reset & 1 ? c0 & m0 : val & m0; in vga_mem_wr_handler()
479 c1 = enb_set_reset & 2 ? c1 & m1 : val & m1; in vga_mem_wr_handler()
480 c2 = enb_set_reset & 4 ? c2 & m2 : val & m2; in vga_mem_wr_handler()
[all …]
/freebsd/sys/arm/nvidia/
H A Dtegra_usbphy.c309 #define WR4(sc, offs, val) \ argument
310 bus_write_4(sc->mem_res, offs, val)
313 reg_wait(struct usbphy_softc *sc, uint32_t reg, uint32_t mask, uint32_t val) in reg_wait() argument
318 if ((RD4(sc, reg) & mask) == val) in reg_wait()
328 uint32_t val; in usbphy_utmi_phy_clk() local
331 val = RD4(sc, CTRL_USB_HOSTPC1_DEVLC); in usbphy_utmi_phy_clk()
333 val &= ~USB_HOSTPC1_DEVLC_PHCD; in usbphy_utmi_phy_clk()
335 val |= USB_HOSTPC1_DEVLC_PHCD; in usbphy_utmi_phy_clk()
336 WR4(sc, CTRL_USB_HOSTPC1_DEVLC, val); in usbphy_utmi_phy_clk()
351 uint32_t val; in usbphy_utmi_enable() local
[all …]
/freebsd/sys/netgraph/
H A Dng_patch.c240 conf->ops[i].val.v8 = conf->ops[i].val.v1; in ng_patch_rcvmsg()
243 conf->ops[i].val.v8 = conf->ops[i].val.v2; in ng_patch_rcvmsg()
246 conf->ops[i].val.v8 = conf->ops[i].val.v4; in ng_patch_rcvmsg()
266 conf->ops[i].val.v1 = (uint8_t) conf->ops[i].val.v8; in ng_patch_rcvmsg()
269 conf->ops[i].val.v2 = (uint16_t) conf->ops[i].val.v8; in ng_patch_rcvmsg()
272 conf->ops[i].val.v4 = (uint32_t) conf->ops[i].val.v8; in ng_patch_rcvmsg()
354 union ng_patch_op_val val; in do_patch() local
364 m_copydata(m, offset, privp->conf->ops[i].length, (caddr_t) &val); in do_patch()
372 val.v1 = privp->conf->ops[i].val.v1; in do_patch()
375 val.v1 += privp->conf->ops[i].val.v1; in do_patch()
[all …]
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/aggs/
H A Dtst.neglquant.d36 val = 123;
41 @["k-ingleside"] = lquantize(1, 0, 10, 1, -val);
46 @["l-taraval"] = lquantize(0, 0, 10, 1, -val);
47 @["l-taraval"] = lquantize(-1, 0, 10, 1, -val);
48 @["l-taraval"] = lquantize(1, 0, 10, 1, val);
49 @["l-taraval"] = lquantize(1, 0, 10, 1, val);
62 @["n-judah"] = lquantize(1, 0, 10, 1, val);
63 @["n-judah"] = lquantize(2, 0, 10, 1, val);
64 @["n-judah"] = lquantize(2, 0, 10, 1, val);
71 this->val = (1 << 63) - 1;
[all …]
/freebsd/sys/contrib/ena-com/ena_defs/
H A Dena_eth_io_defs.h436 static inline void set_ena_eth_io_tx_desc_length(struct ena_eth_io_tx_desc *p, uint32_t val) in set_ena_eth_io_tx_desc_length() argument
438 p->len_ctrl |= val & ENA_ETH_IO_TX_DESC_LENGTH_MASK; in set_ena_eth_io_tx_desc_length()
446 static inline void set_ena_eth_io_tx_desc_req_id_hi(struct ena_eth_io_tx_desc *p, uint32_t val) in set_ena_eth_io_tx_desc_req_id_hi() argument
448 p->len_ctrl |= (val << ENA_ETH_IO_TX_DESC_REQ_ID_HI_SHIFT) & ENA_ETH_IO_TX_DESC_REQ_ID_HI_MASK; in set_ena_eth_io_tx_desc_req_id_hi()
456 static inline void set_ena_eth_io_tx_desc_meta_desc(struct ena_eth_io_tx_desc *p, uint32_t val) in set_ena_eth_io_tx_desc_meta_desc() argument
458 p->len_ctrl |= (val << ENA_ETH_IO_TX_DESC_META_DESC_SHIFT) & ENA_ETH_IO_TX_DESC_META_DESC_MASK; in set_ena_eth_io_tx_desc_meta_desc()
466 static inline void set_ena_eth_io_tx_desc_phase(struct ena_eth_io_tx_desc *p, uint32_t val) in set_ena_eth_io_tx_desc_phase() argument
468 p->len_ctrl |= (val << ENA_ETH_IO_TX_DESC_PHASE_SHIFT) & ENA_ETH_IO_TX_DESC_PHASE_MASK; in set_ena_eth_io_tx_desc_phase()
476 static inline void set_ena_eth_io_tx_desc_first(struct ena_eth_io_tx_desc *p, uint32_t val) in set_ena_eth_io_tx_desc_first() argument
478 p->len_ctrl |= (val << ENA_ETH_IO_TX_DESC_FIRST_SHIFT) & ENA_ETH_IO_TX_DESC_FIRST_MASK; in set_ena_eth_io_tx_desc_first()
[all …]
/freebsd/sys/contrib/device-tree/src/arm64/ti/
H A Dk3-pinctrl.h72 #define AM62AX_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) argument
73 #define AM62AX_MCU_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) argument
75 #define AM62DX_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) argument
76 #define AM62DX_MCU_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) argument
78 #define AM62PX_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) argument
79 #define AM62PX_MCU_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) argument
81 #define AM62X_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) argument
82 #define AM62X_MCU_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) argument
84 #define AM64X_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) argument
85 #define AM64X_MCU_IOPAD(pa, val, muxmode) (((pa) & 0x1fff)) ((val) | (muxmode)) argument
[all …]
/freebsd/sys/dev/etherswitch/mtkswitch/
H A Dmtkswitch_rt3050.c60 uint32_t val; in mtkswitch_reg_read() local
63 val = MTKSWITCH_READ(sc, MTKSWITCH_REG32(reg)); in mtkswitch_reg_read()
65 return (MTKSWITCH_HI16(val)); in mtkswitch_reg_read()
66 return (MTKSWITCH_LO16(val)); in mtkswitch_reg_read()
70 mtkswitch_reg_write(device_t dev, int reg, int val) in mtkswitch_reg_write() argument
79 tmp |= MTKSWITCH_TO_HI16(val); in mtkswitch_reg_write()
82 tmp |= MTKSWITCH_TO_LO16(val); in mtkswitch_reg_write()
93 int val; in mtkswitch_phy_read() local
101 val = (MTKSWITCH_READ(sc, MTKSWITCH_PCR1) >> PCR1_DATA_OFF) & in mtkswitch_phy_read()
104 return (val); in mtkswitch_phy_read()
[all …]
/freebsd/contrib/lib9p/pytest/
H A Dnumalloc.py145 def _find_block(self, val): argument
177 if val < pair[0]:
180 elif val > pair[1]:
191 def alloc(self, val=None): argument
205 if val is None:
206 val = self.last + 1 if self.last is not None else self.min_val
207 if val is None or val > self.max_val or val < self.min_val:
208 val = self.min_val
209 i, pair = self._find_block(val)
225 val = pair[0]
[all …]
/freebsd/sys/contrib/dev/rtw89/
H A Dfw.h461 static inline void RTW89_SET_FWCMD_SEC_IDX(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_IDX() argument
463 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, GENMASK(7, 0)); in RTW89_SET_FWCMD_SEC_IDX()
466 static inline void RTW89_SET_FWCMD_SEC_OFFSET(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_OFFSET() argument
468 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, GENMASK(15, 8)); in RTW89_SET_FWCMD_SEC_OFFSET()
471 static inline void RTW89_SET_FWCMD_SEC_LEN(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_LEN() argument
473 le32p_replace_bits((__le32 *)(cmd) + 0x00, val, GENMASK(23, 16)); in RTW89_SET_FWCMD_SEC_LEN()
476 static inline void RTW89_SET_FWCMD_SEC_TYPE(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_TYPE() argument
478 le32p_replace_bits((__le32 *)(cmd) + 0x01, val, GENMASK(3, 0)); in RTW89_SET_FWCMD_SEC_TYPE()
481 static inline void RTW89_SET_FWCMD_SEC_EXT_KEY(void *cmd, u32 val) in RTW89_SET_FWCMD_SEC_EXT_KEY() argument
483 le32p_replace_bits((__le32 *)(cmd) + 0x01, val, BIT(4)); in RTW89_SET_FWCMD_SEC_EXT_KEY()
[all …]
/freebsd/sys/arm/allwinner/
H A Da33_codec.c155 #define CODEC_WRITE(sc, reg, val) bus_write_4((sc)->res[0], (reg), (val)) argument
179 uint32_t val; in sun8i_codec_attach() local
214 val = CODEC_READ(sc, SYSCLK_CTL); in sun8i_codec_attach()
215 val |= AIF1CLK_ENA; in sun8i_codec_attach()
216 val &= ~AIF1CLK_SRC_MASK; in sun8i_codec_attach()
217 val |= AIF1CLK_SRC_PLL; in sun8i_codec_attach()
218 val |= SYSCLK_ENA; in sun8i_codec_attach()
219 val &= ~SYSCLK_SRC; in sun8i_codec_attach()
220 CODEC_WRITE(sc, SYSCLK_CTL, val); in sun8i_codec_attach()
229 val = CODEC_READ(sc, SYS_SR_CTRL); in sun8i_codec_attach()
[all …]

12345678910>>...130