Home
last modified time | relevance | path

Searched full:scratch (Results 1 – 25 of 739) sorted by relevance

12345678910>>...30

/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_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_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_ctrl.c233 * @scratch: u64 saved to be used during cqp completion
239 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()
271 * @scratch: u64 saved to be used during cqp completion
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()
305 * @scratch: u64 saved to be used during cqp completion
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()
341 * @scratch: u64 saved to be used during cqp completion
[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/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/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/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsExpandPseudo.cpp109 Register Scratch = I->getOperand(7).getReg(); in expandAtomicCmpSwapSubword() local
145 BuildMI(loop1MBB, DL, TII->get(LL), Scratch).addReg(Ptr).addImm(0); in expandAtomicCmpSwapSubword()
147 .addReg(Scratch) in expandAtomicCmpSwapSubword()
157 BuildMI(loop2MBB, DL, TII->get(Mips::AND), Scratch) in expandAtomicCmpSwapSubword()
158 .addReg(Scratch, RegState::Kill) in expandAtomicCmpSwapSubword()
160 BuildMI(loop2MBB, DL, TII->get(Mips::OR), Scratch) in expandAtomicCmpSwapSubword()
161 .addReg(Scratch, RegState::Kill) in expandAtomicCmpSwapSubword()
163 BuildMI(loop2MBB, DL, TII->get(SC), Scratch) in expandAtomicCmpSwapSubword()
164 .addReg(Scratch, RegState::Kill) in expandAtomicCmpSwapSubword()
168 .addReg(Scratch, RegState::Kill) in expandAtomicCmpSwapSubword()
[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/llvm-project/clang/lib/APINotes/
H A DAPINotesReader.cpp706 llvm::SmallVectorImpl<uint64_t> &Scratch);
708 llvm::SmallVectorImpl<uint64_t> &Scratch);
710 llvm::SmallVectorImpl<uint64_t> &Scratch);
712 llvm::SmallVectorImpl<uint64_t> &Scratch);
714 llvm::SmallVectorImpl<uint64_t> &Scratch);
716 llvm::SmallVectorImpl<uint64_t> &Scratch);
718 llvm::SmallVectorImpl<uint64_t> &Scratch);
720 llvm::SmallVectorImpl<uint64_t> &Scratch);
722 llvm::SmallVectorImpl<uint64_t> &Scratch);
724 llvm::SmallVectorImpl<uint64_t> &Scratch);
[all …]
/freebsd/contrib/bsnmp/snmpd/
H A Dexport.c53 * in scratch->ptr1 and the new value is allocated and copied.
63 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()
155 * Save the old IP address in scratch->int1 and set the new one.
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()
[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 …]
/freebsd/sys/crypto/openssl/
H A Dossl_arm.h56 uint32_t iv32[4], scratch[4]; in AES_CBC_ENCRYPT() local
60 * The key buffer, that normally holds round keys is used as a scratch in AES_CBC_ENCRYPT()
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_bridge/
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_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_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/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchExpandAtomicPseudoInsts.cpp159 // binop scratch, dest, val in doAtomicBinOpExpansion()
160 // sc.[w|d] scratch, scratch, (addr) in doAtomicBinOpExpansion()
161 // beqz scratch, loop in doAtomicBinOpExpansion()
251 // binop scratch, destreg, incr in doMaskedAtomicBinOpExpansion()
252 // xor scratch, destreg, scratch in doMaskedAtomicBinOpExpansion()
253 // and scratch, scratch, masktargetdata in doMaskedAtomicBinOpExpansion()
254 // xor scratch, destre in doMaskedAtomicBinOpExpansion()
[all...]
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVExpandAtomicPseudoInsts.cpp274 // binop scratch, dest, val
275 // sc.[w|d] scratch, scratch, (addr) in insertMaskedMerge()
276 // bnez scratch, loop in insertMaskedMerge()
340 // binop scratch, destreg, incr in doMaskedAtomicBinOpExpansion()
341 // xor scratch, destreg, scratch in doMaskedAtomicBinOpExpansion()
342 // and scratch, scratch, masktargetdata in doMaskedAtomicBinOpExpansion()
343 // xor scratch, destre in doMaskedAtomicBinOpExpansion()
[all...]
/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/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCFrameLowering.h38 * Find register[s] that can be use as scratch register[s] in function
43 * This method will return true if it is able to find enough unique scratch
50 * \param[in] UseAtEnd Specify whether the scratch register will be used at
51 * the end of the basic block (i.e., will the scratch
54 * require two unique scratch registers.
55 * \param[out] SR1 The scratch register to use
56 * \param[out] SR2 The second scratch register. If this pointer is not null
59 * for two unique scratch registers.
61 * false if the required number of scratch register weren't available.
62 * If either output parameter refers to a required scratch register
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDKernelCodeT.h157 /// the GPU flat scratch (SH_STATIC_MEM_CONFIG.ELEMENT_SIZE). This
343 /// Scratch Wave Offset as an offset, to access the Private/Spill/Arg
345 /// - Base address: of the scratch memory area used by the dispatch. It
346 /// does not include the scratch wave offset. It will be the per process
352 /// scratch)
353 /// - Num records: Flat Scratch Work Item Size / Element Size (???)
359 /// be number of wavefront lanes for scratch, must agree with
385 /// Flat Scratch Init (enable_sgpr_flat_scratch_init):
390 /// to base of memory for scratch for this dispatch. This is the same offset
391 /// used in computing the Scratch Segment Buffer base address. The value of
[all …]
/freebsd/sys/contrib/dev/iwlwifi/
H A Diwl-context-info-gen3.h38 * enum iwl_prph_scratch_flags - PRPH scratch control flags
82 * @version: prph scratch information version id
104 * struct iwl_prph_scratch_pnvm_cfg - PNVM scratch
146 * struct iwl_prph_scratch_uefi_cfg - prph scratch reduce power table
157 * struct iwl_prph_scratch_step_cfg - prph scratch step configuration
171 * struct iwl_prph_scratch_ctrl_cfg - prph scratch ctrl and config
190 * struct iwl_prph_scratch - peripheral scratch mapping
191 * @ctrl_cfg: control and configuration of prph scratch
259 * @prph_scratch_base_addr: the peripheral scratch structure start address
260 * @prph_scratch_size: the size of the peripheral scratch structur
[all...]
/freebsd/bin/ed/
H A Dbuf.c1 /* buf.c: This file contains the scratch-file buffer routines for the
36 static FILE *sfp; /* scratch file pointer */
37 static off_t sfseek; /* scratch file position */
41 /* get_sbuf_line: get a line of text from the scratch file; return pointer
76 /* put_sbuf_line: write a line of text to the scratch file and add a line node
186 static char sfn[15] = ""; /* scratch file name */
188 /* open_sbuf: open scratch file */
212 /* close_sbuf: close scratch file */
230 /* quit: remove_lines scratch file and exit */
244 /* init_buffers: open scratch buffer; initialize line queue */

12345678910>>...30