Home
last modified time | relevance | path

Searched refs:scratch (Results 1 – 25 of 190) sorted by relevance

12345678

/freebsd/crypto/openssl/crypto/modes/
H A Dxts128.c33 } tweak, scratch; in CRYPTO_xts128_encrypt() local
48 memcpy(scratch.c, inp, 16); in CRYPTO_xts128_encrypt()
49 scratch.u[0] ^= tweak.u[0]; in CRYPTO_xts128_encrypt()
50 scratch.u[1] ^= tweak.u[1]; in CRYPTO_xts128_encrypt()
52 scratch.u[0] = ((u64_a1 *)inp)[0] ^ tweak.u[0]; in CRYPTO_xts128_encrypt()
53 scratch.u[1] = ((u64_a1 *)inp)[1] ^ tweak.u[1]; in CRYPTO_xts128_encrypt()
55 (*ctx->block1) (scratch.c, scratch.c, ctx->key1); in CRYPTO_xts128_encrypt()
57 scratch.u[0] ^= tweak.u[0]; in CRYPTO_xts128_encrypt()
58 scratch.u[1] ^= tweak.u[1]; in CRYPTO_xts128_encrypt()
59 memcpy(out, scratch.c, 16); in CRYPTO_xts128_encrypt()
[all …]
H A Dccm128.c149 } scratch; in CRYPTO_ccm128_encrypt() local
185 (*block) (ctx->nonce.c, scratch.c, key); in CRYPTO_ccm128_encrypt()
188 temp.u[0] ^= scratch.u[0]; in CRYPTO_ccm128_encrypt()
189 temp.u[1] ^= scratch.u[1]; in CRYPTO_ccm128_encrypt()
192 ((u64_a1 *)out)[0] = scratch.u[0] ^ ((u64_a1 *)inp)[0]; in CRYPTO_ccm128_encrypt()
193 ((u64_a1 *)out)[1] = scratch.u[1] ^ ((u64_a1 *)inp)[1]; in CRYPTO_ccm128_encrypt()
204 (*block) (ctx->nonce.c, scratch.c, key); in CRYPTO_ccm128_encrypt()
206 out[i] = scratch.c[i] ^ inp[i]; in CRYPTO_ccm128_encrypt()
212 (*block) (ctx->nonce.c, scratch.c, key); in CRYPTO_ccm128_encrypt()
213 ctx->cmac.u[0] ^= scratch.u[0]; in CRYPTO_ccm128_encrypt()
[all …]
/freebsd/contrib/bsnmp/snmp_target/
H A Dtarget_snmp.c168 ctx->scratch->ptr1 = malloc(SNMP_UDP_ADDR_SIZ); in op_snmp_target_addrs()
169 if (ctx->scratch->ptr1 == NULL) in op_snmp_target_addrs()
171 memcpy(ctx->scratch->ptr1, addrs->address, in op_snmp_target_addrs()
180 ctx->scratch->int1 = strlen(addrs->taglist) + 1; in op_snmp_target_addrs()
181 ctx->scratch->ptr1 = malloc(ctx->scratch->int1); in op_snmp_target_addrs()
182 if (ctx->scratch->ptr1 == NULL) in op_snmp_target_addrs()
184 strlcpy(ctx->scratch->ptr1, addrs->taglist, in op_snmp_target_addrs()
185 ctx->scratch->int1); in op_snmp_target_addrs()
194 ctx->scratch->int1 = strlen(addrs->paramname) + 1; in op_snmp_target_addrs()
195 ctx->scratch->ptr1 = malloc(ctx->scratch->int1); in op_snmp_target_addrs()
[all …]
/freebsd/sys/dev/irdma/
H A Dirdma_uda.h73 u32 op, u64 scratch);
76 u64 scratch);
84 struct irdma_ah_info *info, u64 scratch) in irdma_sc_create_ah() argument
87 scratch); in irdma_sc_create_ah()
91 struct irdma_ah_info *info, u64 scratch) in irdma_sc_destroy_ah() argument
94 scratch); in irdma_sc_destroy_ah()
99 u64 scratch) in irdma_sc_create_mcast_grp() argument
102 scratch); in irdma_sc_create_mcast_grp()
107 u64 scratch) in irdma_sc_modify_mcast_grp() argument
110 scratch); in irdma_sc_modify_mcast_grp()
[all …]
H A Dirdma_type.h708 u64 scratch; member
1199 int irdma_sc_ccq_create(struct irdma_sc_cq *ccq, u64 scratch,
1201 int irdma_sc_ccq_destroy(struct irdma_sc_cq *ccq, u64 scratch, bool post_sq);
1207 int irdma_sc_cceq_create(struct irdma_sc_ceq *ceq, u64 scratch);
1210 int irdma_sc_ceq_destroy(struct irdma_sc_ceq *ceq, u64 scratch, bool post_sq);
1235 struct irdma_create_qp_info *info, u64 scratch,
1237 int irdma_sc_qp_destroy(struct irdma_sc_qp *qp, u64 scratch,
1240 struct irdma_qp_flush_info *info, u64 scratch,
1244 struct irdma_modify_qp_info *info, u64 scratch,
1253 int irdma_sc_cq_destroy(struct irdma_sc_cq *cq, u64 scratch, bool post_sq);
[all …]
H A Dirdma_ctrl.c239 u64 scratch, bool post_sq) in irdma_sc_add_arp_cache_entry() argument
244 wqe = irdma_sc_cqp_get_next_send_wqe(cqp, scratch); in irdma_sc_add_arp_cache_entry()
276 irdma_sc_del_arp_cache_entry(struct irdma_sc_cqp *cqp, u64 scratch, in irdma_sc_del_arp_cache_entry() argument
282 wqe = irdma_sc_cqp_get_next_send_wqe(cqp, scratch); in irdma_sc_del_arp_cache_entry()
311 u64 scratch, bool post_sq) in irdma_sc_manage_apbvt_entry() argument
316 wqe = irdma_sc_cqp_get_next_send_wqe(cqp, scratch); in irdma_sc_manage_apbvt_entry()
359 u64 scratch, bool post_sq) in irdma_sc_manage_qhash_table_entry() argument
367 wqe = irdma_sc_cqp_get_next_send_wqe(cqp, scratch); in irdma_sc_manage_qhash_table_entry()
510 u64 scratch, bool post_sq) in irdma_sc_qp_create() argument
521 wqe = irdma_sc_cqp_get_next_send_wqe(cqp, scratch); in irdma_sc_qp_create()
[all …]
/freebsd/usr.sbin/bsnmpd/modules/snmp_hostres/
H A Dhostres_begemot.c83 ctx->scratch->int1 = storage_tbl_refresh; in op_begemot()
88 ctx->scratch->int1 = fs_tbl_refresh; in op_begemot()
93 ctx->scratch->int1 = disk_storage_tbl_refresh; in op_begemot()
98 ctx->scratch->int1 = network_tbl_refresh; in op_begemot()
103 ctx->scratch->int1 = swins_tbl_refresh; in op_begemot()
108 ctx->scratch->int1 = swrun_tbl_refresh; in op_begemot()
138 storage_tbl_refresh = ctx->scratch->int1; in op_begemot()
142 fs_tbl_refresh = ctx->scratch->int1; in op_begemot()
146 disk_storage_tbl_refresh = ctx->scratch->int1; in op_begemot()
150 network_tbl_refresh = ctx->scratch->int1; in op_begemot()
[all …]
/freebsd/sys/dev/ow/
H A Dow_temp.c91 ow_temp_read_scratchpad(device_t dev, uint8_t *scratch, int len) in ow_temp_read_scratchpad() argument
98 memcpy(scratch, cmd.xpt_read, len); in ow_temp_read_scratchpad()
132 uint8_t scratch[8 + 1]; in ow_temp_event_thread() local
154 rv = ow_temp_read_scratchpad(sc->dev, scratch, sizeof(scratch)); in ow_temp_event_thread()
156 crc = own_crc(sc->dev, scratch, sizeof(scratch) - 1); in ow_temp_event_thread()
157 if (crc == scratch[8]) { in ow_temp_event_thread()
159 if (scratch[7]) { in ow_temp_event_thread()
164 tmp = (int16_t)((scratch[0] & 0xfe) | in ow_temp_event_thread()
165 (scratch[1] << 8)) << 3; in ow_temp_event_thread()
166 tmp += 16 - scratch[6] - 4; /* count_per_c == 16 */ in ow_temp_event_thread()
[all …]
/freebsd/contrib/bsnmp/snmp_usm/
H A Dusm_snmp.c205 ctx->scratch->int1 = RowStatus_createAndWait; in op_usm_users()
209 ctx->scratch->int1 = uuser->suser.auth_proto; in op_usm_users()
232 ctx->scratch->ptr1 = malloc(SNMP_AUTH_KEY_SIZ); in op_usm_users()
233 if (ctx->scratch->ptr1 == NULL) in op_usm_users()
235 memcpy(ctx->scratch->ptr1, uuser->suser.auth_key, in op_usm_users()
242 ctx->scratch->int1 = uuser->suser.priv_proto; in op_usm_users()
265 ctx->scratch->ptr1 = malloc(SNMP_PRIV_KEY_SIZ); in op_usm_users()
266 if (ctx->scratch->ptr1 == NULL) in op_usm_users()
268 memcpy(ctx->scratch->ptr1, uuser->suser.priv_key, in op_usm_users()
278 ctx->scratch->ptr2 = in op_usm_users()
[all …]
/freebsd/usr.sbin/bsnmpd/modules/snmp_bridge/
H A Dbridge_snmp.c154 if ((ctx->scratch->int1 = strlen(bridge_default)) >= IFNAMSIZ) in bridge_default_name_save()
157 if ((ctx->scratch->ptr1 = malloc(IFNAMSIZ)) == NULL) in bridge_default_name_save()
160 strncpy(ctx->scratch->ptr1, bridge_default, ctx->scratch->int1); in bridge_default_name_save()
208 ctx->scratch->int1 = bridge_data_maxage; in op_begemot_bridge_config()
216 ctx->scratch->int1 = val->v.integer; in op_begemot_bridge_config()
224 bridge_set_default_name(ctx->scratch->ptr1, in op_begemot_bridge_config()
225 ctx->scratch->int1); in op_begemot_bridge_config()
226 free(ctx->scratch->ptr1); in op_begemot_bridge_config()
229 bridge_data_maxage = ctx->scratch->int1; in op_begemot_bridge_config()
237 free(ctx->scratch->ptr1); in op_begemot_bridge_config()
[all …]
H A Dbridge_if.c765 ctx->scratch->int1 = bif->priority; in op_dot1d_stp()
775 ctx->scratch->int1 = bif->bridge_max_age; in op_dot1d_stp()
785 ctx->scratch->int1 = bif->bridge_hello_time; in op_dot1d_stp()
795 ctx->scratch->int1 = bif->bridge_fwd_delay; in op_dot1d_stp()
805 ctx->scratch->int1 = bif->stp_version; in op_dot1d_stp()
815 ctx->scratch->int1 = bif->tx_hold_count; in op_dot1d_stp()
837 bridge_set_priority(bif, ctx->scratch->int1); in op_dot1d_stp()
840 bridge_set_maxage(bif, ctx->scratch->int1); in op_dot1d_stp()
843 bridge_set_hello_time(bif, ctx->scratch->int1); in op_dot1d_stp()
846 bridge_set_forward_delay(bif, ctx->scratch->int1); in op_dot1d_stp()
[all …]
H A Dbridge_port.c464 ctx->scratch->int1 = bp->priority; in op_dot1d_stp_port()
475 ctx->scratch->int1 = bp->enable; in op_dot1d_stp_port()
486 ctx->scratch->int1 = bp->path_cost; in op_dot1d_stp_port()
510 ctx->scratch->int1); in op_dot1d_stp_port()
514 ctx->scratch->int1); in op_dot1d_stp_port()
518 ctx->scratch->int1); in op_dot1d_stp_port()
623 ctx->scratch->int1 = bp->admin_edge; in op_dot1d_stp_ext_port()
634 ctx->scratch->int1 = bp->admin_ptp; in op_dot1d_stp_ext_port()
645 ctx->scratch->int1 = bp->admin_path_cost; in op_dot1d_stp_ext_port()
666 ctx->scratch->int1); in op_dot1d_stp_ext_port()
[all …]
/freebsd/sys/crypto/openssl/
H A Dossl_arm.h56 uint32_t iv32[4], scratch[4]; in AES_CBC_ENCRYPT() local
76 memcpy(scratch, in, AES_BLOCK_LEN); in AES_CBC_ENCRYPT()
79 scratch[0] ^= iv32[0]; in AES_CBC_ENCRYPT()
80 scratch[1] ^= iv32[1]; in AES_CBC_ENCRYPT()
81 scratch[2] ^= iv32[2]; in AES_CBC_ENCRYPT()
82 scratch[3] ^= iv32[3]; in AES_CBC_ENCRYPT()
84 AES_encrypt(scratch, out, key); in AES_CBC_ENCRYPT()
/freebsd/usr.sbin/bsnmpd/modules/snmp_wlan/
H A Dwlan_snmp.c260 if ((ctx->scratch->ptr1 = malloc(IFNAMSIZ)) == NULL) in op_wlan_iface()
262 strlcpy(ctx->scratch->ptr1, wif->wname, IFNAMSIZ); in op_wlan_iface()
271 if ((ctx->scratch->ptr1 = malloc(IFNAMSIZ)) == NULL) in op_wlan_iface()
273 strlcpy(ctx->scratch->ptr1, wif->pname, IFNAMSIZ); in op_wlan_iface()
280 ctx->scratch->int1 = wif->mode; in op_wlan_iface()
287 ctx->scratch->ptr1 = malloc(sizeof(wif->flags)); in op_wlan_iface()
288 if (ctx->scratch->ptr1 == NULL) in op_wlan_iface()
290 memcpy(ctx->scratch->ptr1, (uint8_t *)&wif->flags, in op_wlan_iface()
299 ctx->scratch->ptr1 = malloc(IEEE80211_ADDR_LEN); in op_wlan_iface()
300 if (ctx->scratch->ptr1 == NULL) in op_wlan_iface()
[all …]
/freebsd/contrib/bsnmp/snmpd/
H A Dexport.c63 ctx->scratch->ptr1 = *valp; in string_save()
66 *valp = ctx->scratch->ptr1; in string_save()
82 free(ctx->scratch->ptr1); in string_commit()
92 *valp = ctx->scratch->ptr1; in string_rollback()
101 free(ctx->scratch->ptr1); in string_free()
160 ctx->scratch->int1 = (valp[0] << 24) | (valp[1] << 16) | (valp[2] << 8) in ip_save()
177 valp[0] = ctx->scratch->int1 >> 24; in ip_rollback()
178 valp[1] = ctx->scratch->int1 >> 16; in ip_rollback()
179 valp[2] = ctx->scratch->int1 >> 8; in ip_rollback()
180 valp[3] = ctx->scratch->int1; in ip_rollback()
[all …]
H A Daction.c389 ctx->scratch->int1 = debug.dump_pdus; in op_debug()
394 ctx->scratch->int1 = snmp_trace; in op_debug()
401 ctx->scratch->int1 = debug.logpri; in op_debug()
411 debug.dump_pdus = ctx->scratch->int1; in op_debug()
415 snmp_trace = ctx->scratch->int1; in op_debug()
419 debug.logpri = ctx->scratch->int1; in op_debug()
559 ctx->scratch->int1 = value->v.integer; in op_snmp()
568 snmpd.auth_traps = ctx->scratch->int1; in op_snmp()
666 ctx->scratch->int1 = snmpd.txbuf; in op_snmpd_config()
674 ctx->scratch->int1 = snmpd.rxbuf; in op_snmpd_config()
[all …]
H A Dtrans_udp.c371 ctx->scratch->int1 = (p != NULL); in op_snmp_port()
378 ctx->scratch->int2 = TRUTH_GET(value->v.integer); in op_snmp_port()
380 if (ctx->scratch->int2) { in op_snmp_port()
398 if (ctx->scratch->int1 == 0) { in op_snmp_port()
400 if (ctx->scratch->int2 == 1) { in op_snmp_port()
411 if (ctx->scratch->int1 == 1) { in op_snmp_port()
413 if (ctx->scratch->int2 == 0) { in op_snmp_port()
/freebsd/contrib/bsnmp/snmp_mibII/
H A DmibII_ip.c184 ctx->scratch->int1 = ip_forwarding ? 1 : 2; in op_ip()
185 ctx->scratch->int2 = value->v.integer; in op_ip()
189 ctx->scratch->int1 = old ? 1 : 2; in op_ip()
193 ctx->scratch->int1 = old; in op_ip()
199 ctx->scratch->int1 = ip_defttl; in op_ip()
200 ctx->scratch->int2 = value->v.integer; in op_ip()
206 ctx->scratch->int1 = old; in op_ip()
215 if (ctx->scratch->int1 == 1) { in op_ip()
216 if (ctx->scratch->int2 == 2) in op_ip()
219 if (ctx->scratch->int2 == 1) in op_ip()
[all …]
H A DmibII_begemot.c59 ctx->scratch->int1 = mibif_force_hc_update_interval; in op_begemot_mibII()
64 ctx->scratch->int1 = mibII_poll_ticks; in op_begemot_mibII()
74 mibif_force_hc_update_interval = ctx->scratch->int1; in op_begemot_mibII()
78 mibII_poll_ticks = ctx->scratch->int1; in op_begemot_mibII()
87 mibif_force_hc_update_interval = ctx->scratch->int1; in op_begemot_mibII()
/freebsd/contrib/bsnmp/snmp_vacm/
H A Dvacm_snmp.c173 ctx->scratch->ptr1 = user->group->groupname; in op_vacm_security_to_group()
174 ctx->scratch->int1 = strlen(user->group->groupname); in op_vacm_security_to_group()
198 ctx->scratch->int1 = user->status; in op_vacm_security_to_group()
227 return (vacm_user_set_group(user, ctx->scratch->ptr1, in op_vacm_security_to_group()
228 ctx->scratch->int1)); in op_vacm_security_to_group()
231 if (ctx->scratch->int1 == RowStatus_destroy) in op_vacm_security_to_group()
233 user->status = ctx->scratch->int1; in op_vacm_security_to_group()
291 ctx->scratch->int1 = acl->ctx_match; in op_vacm_access()
301 ctx->scratch->ptr1 = acl->read_view; in op_vacm_access()
304 acl->read_view = ctx->scratch->ptr1; in op_vacm_access()
[all …]
/freebsd/sys/dev/bhnd/nvram/
H A Dbhnd_nvram_data_sprom.c890 union bhnd_nvram_sprom_storage scratch; in bhnd_nvram_sprom_write_offset() local
895 scratch._repr[1] = (_widen)value; \ in bhnd_nvram_sprom_write_offset()
899 scratch._repr[1] <<= shift; \ in bhnd_nvram_sprom_write_offset()
901 scratch._repr[1] >>= -shift; \ in bhnd_nvram_sprom_write_offset()
902 scratch._repr[1] &= mask; \ in bhnd_nvram_sprom_write_offset()
905 scratch._repr[1] = _swap(scratch._repr[1]); \ in bhnd_nvram_sprom_write_offset()
909 &scratch._repr[0], sizeof(scratch._repr[0])); \ in bhnd_nvram_sprom_write_offset()
919 scratch._repr[0] &= ~_swap(mask << shift); \ in bhnd_nvram_sprom_write_offset()
921 scratch._repr[0] &= ~_swap(mask >> (-shift)); \ in bhnd_nvram_sprom_write_offset()
922 scratch._repr[0] |= scratch._repr[1]; \ in bhnd_nvram_sprom_write_offset()
[all …]
/freebsd/contrib/pam_modules/pam_passwdqc/
H A Dpasswdqc_check.c198 char *scratch; in is_based() local
213 scratch = NULL; in is_based()
222 if (!scratch) { in is_based()
223 if (!(scratch = malloc(length + 1))) in is_based()
226 memcpy(scratch, original, i); in is_based()
227 memcpy(&scratch[i], &original[i + j], in is_based()
229 if (is_simple(params, scratch)) { in is_based()
230 clean(scratch); in is_based()
237 clean(scratch); in is_based()
/freebsd/contrib/llvm-project/lldb/source/Plugins/Language/CPlusPlus/
H A DLibCxxUnorderedMap.cpp96 auto scratch = name; in consumeInlineNamespace() local
97 if (scratch.consume_front("__") && std::isalnum(scratch[0])) { in consumeInlineNamespace()
98 scratch = scratch.drop_while([](char c) { return std::isalnum(c); }); in consumeInlineNamespace()
99 if (scratch.consume_front("::")) { in consumeInlineNamespace()
101 name = scratch; in consumeInlineNamespace()
/freebsd/sys/cddl/contrib/opensolaris/uts/intel/dtrace/
H A Dfasttrap_isa.c63 * in user-land, we copy out the following sequence of instructions to scratch
66 * We then set the program counter (%eip or %rip) to point to this scratch
572 * were in our scratch space, the subsequent in fasttrap_tracepoint_init()
1464 uint8_t scratch[2 * FASTTRAP_MAX_INSTR_SIZE + 22]; in fasttrap_pid_probe() local
1466 uint8_t scratch[2 * FASTTRAP_MAX_INSTR_SIZE + 7]; in fasttrap_pid_probe() local
1473 * We failed to allocate scratch space for this thread. in fasttrap_pid_probe()
1489 * This is the layout of the scratch space in the user-land in fasttrap_pid_probe()
1519 * instruction), the scratch space will just contain the in fasttrap_pid_probe()
1548 * the value that %rip would have been into the scratch in fasttrap_pid_probe()
1549 * register and generate an instruction to reset the scratch in fasttrap_pid_probe()
[all...]
/freebsd/usr.sbin/bsnmpd/modules/snmp_netgraph/
H A Dsnmp_netgraph.c1036 ctx->scratch->int1 = resbufsiz; in op_ng_config()
1044 ctx->scratch->int1 = timeout; in op_ng_config()
1052 ctx->scratch->int1 = debug_level; in op_ng_config()
1070 resbufsiz = ctx->scratch->int1; in op_ng_config()
1074 timeout = ctx->scratch->int1; in op_ng_config()
1078 debug_level = ctx->scratch->int1; in op_ng_config()
1263 ctx->scratch->int1 = TRUTH_GET(value->v.integer); in op_ng_type()
1264 ctx->scratch->int1 |= (t != NULL) << 1; in op_ng_type()
1265 ctx->scratch->ptr2 = name; in op_ng_type()
1266 ctx->scratch->int2 = namelen; in op_ng_type()
[all …]

12345678