/openbmc/linux/include/crypto/ |
H A D | blake2s.h | 32 unsigned int outlen; member 46 static inline void __blake2s_init(struct blake2s_state *state, size_t outlen, in __blake2s_init() argument 49 state->h[0] = BLAKE2S_IV0 ^ (0x01010000 | keylen << 8 | outlen); in __blake2s_init() 62 state->outlen = outlen; in __blake2s_init() 71 const size_t outlen) in blake2s_init() argument 73 __blake2s_init(state, outlen, NULL, 0); in blake2s_init() 77 const size_t outlen, const void *key, in blake2s_init_key() argument 80 WARN_ON(IS_ENABLED(DEBUG) && (!outlen || outlen > BLAKE2S_HASH_SIZE || in blake2s_init_key() 83 __blake2s_init(state, outlen, key, keylen); in blake2s_init_key() 90 const size_t outlen, const size_t inlen, in blake2s() argument [all …]
|
H A D | blake2b.h | 28 unsigned int outlen; member 42 static inline void __blake2b_init(struct blake2b_state *state, size_t outlen, in __blake2b_init() argument 45 state->h[0] = BLAKE2B_IV0 ^ (0x01010000 | keylen << 8 | outlen); in __blake2b_init() 58 state->outlen = outlen; in __blake2b_init()
|
/openbmc/linux/drivers/net/ethernet/sfc/ |
H A D | mcdi_functions.c | 21 size_t outlen; in efx_mcdi_free_vis() local 23 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_free_vis() 29 efx_mcdi_display_error(efx, MC_CMD_FREE_VIS, 0, outbuf, outlen, in efx_mcdi_free_vis() 40 size_t outlen; in efx_mcdi_alloc_vis() local 46 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_alloc_vis() 50 if (outlen < MC_CMD_ALLOC_VIS_OUT_LEN) in efx_mcdi_alloc_vis() 79 size_t inlen, outlen; in efx_mcdi_ev_init() local 124 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_ev_init() 126 if (outlen >= MC_CMD_INIT_EVQ_V2_OUT_LEN) in efx_mcdi_ev_init() 145 size_t outlen; in efx_mcdi_ev_fini() local [all …]
|
H A D | mcdi.c | 40 size_t outlen; member 543 min(async->outlen, data_len)); in efx_mcdi_complete_async() 554 min(async->outlen, data_len)); in efx_mcdi_complete_async() 650 efx_dword_t *outbuf, size_t outlen, in _efx_mcdi_rpc_finish() argument 711 min(outlen, data_len)); in _efx_mcdi_rpc_finish() 801 efx_dword_t *outbuf, size_t outlen, in _efx_mcdi_rpc() argument 817 rc = _efx_mcdi_rpc_finish(efx, cmd, inlen, outbuf, outlen, in _efx_mcdi_rpc() 841 outbuf, outlen, outlen_actual, in _efx_mcdi_rpc() 859 efx_dword_t *outbuf, size_t outlen, in _efx_mcdi_rpc_evb_retry() argument 866 outbuf, outlen, outlen_actual, true, &raw_rc); in _efx_mcdi_rpc_evb_retry() [all …]
|
H A D | mae.c | 25 size_t outlen; in efx_mae_allocate_mport() local 38 outbuf, sizeof(outbuf), &outlen); in efx_mae_allocate_mport() 41 if (outlen < sizeof(outbuf)) in efx_mae_allocate_mport() 106 size_t outlen; in efx_mae_fw_lookup_mport() local 111 outbuf, sizeof(outbuf), &outlen); in efx_mae_fw_lookup_mport() 114 if (outlen < sizeof(outbuf)) in efx_mae_fw_lookup_mport() 125 size_t outlen; in efx_mae_start_counters() local 136 inbuf, sizeof(inbuf), outbuf, sizeof(outbuf), &outlen); in efx_mae_start_counters() 139 if (outlen < sizeof(outbuf)) in efx_mae_start_counters() 174 size_t outlen; in efx_mae_stop_counters() local [all …]
|
H A D | mcdi_port.c | 26 size_t outlen; in efx_mcdi_mdio_read() local 35 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_mdio_read() 52 size_t outlen; in efx_mcdi_mdio_write() local 62 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_mdio_write()
|
/openbmc/linux/drivers/media/pci/ngene/ |
H A D | ngene-i2c.c | 32 u8 *out, u8 outlen, u8 *in, u8 inlen, int flag) in ngene_command_i2c_read() argument 37 com.cmd.hdr.Length = outlen + 3; in ngene_command_i2c_read() 39 memcpy(com.cmd.I2CRead.Data, out, outlen); in ngene_command_i2c_read() 40 com.cmd.I2CRead.Data[outlen] = inlen; in ngene_command_i2c_read() 41 com.cmd.I2CRead.Data[outlen + 1] = 0; in ngene_command_i2c_read() 42 com.in_len = outlen + 3; in ngene_command_i2c_read() 59 u8 *out, u8 outlen) in ngene_command_i2c_write() argument 65 com.cmd.hdr.Length = outlen + 1; in ngene_command_i2c_write() 67 memcpy(com.cmd.I2CRead.Data, out, outlen); in ngene_command_i2c_write() 68 com.in_len = outlen + 1; in ngene_command_i2c_write()
|
/openbmc/qemu/hw/ipmi/ |
H A D | ipmi_bmc_extern.c | 83 unsigned int outlen; member 105 if (ibe->outlen == 0) { in continue_send() 110 ibe->outlen - ibe->outpos); in continue_send() 114 if (ibe->outpos < ibe->outlen) { in continue_send() 120 ibe->outlen = 0; in continue_send() 132 ibe->outlen = 2; in continue_send() 154 if (ibe->waiting_rsp && (ibe->outlen == 0)) { in extern_timeout() 174 ibe->outbuf[ibe->outlen] = VM_ESCAPE_CHAR; in addchar() 175 ibe->outlen++; in addchar() 179 ibe->outbuf[ibe->outlen] = ch; in addchar() [all …]
|
H A D | smbus_ipmi.c | 55 uint32_t outlen; member 92 sid->outlen = rsp_len; in smbus_ipmi_handle_rsp() 113 sid->outlen = 0; in smbus_ipmi_send_msg() 124 sid->outlen = 3; in smbus_ipmi_send_msg() 127 sid->outlen = 3; in smbus_ipmi_send_msg() 134 sid->outlen = 7; in smbus_ipmi_send_msg() 158 if (sid->outlen == 0) { in ipmi_load_readbuf() 162 if (sid->outlen <= 32) { in ipmi_load_readbuf() 166 sid->outbuf[0] = sid->outlen; in ipmi_load_readbuf() 167 memcpy(sid->outbuf + 1, sid->outmsg, sid->outlen); in ipmi_load_readbuf() [all …]
|
H A D | ipmi_kcs.c | 115 ik->outlen = 1; in ipmi_kcs_handle_event() 136 if (ik->outpos >= ik->outlen) { in ipmi_kcs_handle_event() 145 ik->outlen = 1; in ipmi_kcs_handle_event() 166 ik->outlen = 0; in ipmi_kcs_handle_event() 191 ik->outlen = 1; in ipmi_kcs_handle_event() 216 ik->outlen = 3; in ipmi_kcs_handle_rsp() 219 ik->outlen = rsp_len; in ipmi_kcs_handle_rsp() 353 if (ik->outpos >= MAX_IPMI_MSG_SIZE || ik->outlen >= MAX_IPMI_MSG_SIZE || in ipmi_kcs_vmstate_post_load() 354 ik->outpos >= ik->outlen) { in ipmi_kcs_vmstate_post_load() 357 ik->outpos, ik->outlen); in ipmi_kcs_vmstate_post_load() [all …]
|
H A D | ipmi_bt.c | 131 ib->outlen = 10; in ipmi_bt_handle_event() 166 ib->outlen = 5; in ipmi_bt_handle_rsp() 172 ib->outlen = rsp_len + 2; in ipmi_bt_handle_rsp() 197 if (ib->outpos < ib->outlen) { in ipmi_bt_ioport_read() 200 if (ib->outpos == ib->outlen) { in ipmi_bt_ioport_read() 202 ib->outlen = 0; in ipmi_bt_ioport_read() 375 if (ib->outpos >= MAX_IPMI_MSG_SIZE || ib->outlen >= MAX_IPMI_MSG_SIZE || in ipmi_bt_vmstate_post_load() 376 ib->outpos >= ib->outlen) { in ipmi_bt_vmstate_post_load() 379 ib->outpos, ib->outlen); in ipmi_bt_vmstate_post_load() 381 ib->outlen = 0; in ipmi_bt_vmstate_post_load() [all …]
|
/openbmc/linux/tools/testing/selftests/powerpc/nx-gzip/ |
H A D | gzfht_test.c | 194 size_t inlen, outlen, dsttotlen, srctotlen; in compress_file() local 217 outlen = 2 * inlen + 1024; in compress_file() 219 assert(NULL != (outbuf = (char *)malloc(outlen))); in compress_file() 220 nxu_touch_pages(outbuf, outlen, pagelen, 1); in compress_file() 237 outlen = outlen - num_hdr_bytes; in compress_file() 254 dstlen = NX_MIN(2*srclen, outlen); in compress_file() 319 outlen = outlen - tpbc; in compress_file() 325 outlen = outlen - flushlen; in compress_file() 336 outlen = outlen - tpbc; in compress_file() 349 outlen = outlen - 8; in compress_file()
|
/openbmc/linux/drivers/cdx/controller/ |
H A D | mcdi_functions.c | 14 size_t outlen; in cdx_mcdi_get_num_buses() local 18 outbuf, sizeof(outbuf), &outlen); in cdx_mcdi_get_num_buses() 22 if (outlen != MC_CMD_CDX_BUS_ENUM_BUSES_OUT_LEN) in cdx_mcdi_get_num_buses() 32 size_t outlen; in cdx_mcdi_get_num_devs() local 38 outbuf, sizeof(outbuf), &outlen); in cdx_mcdi_get_num_devs() 42 if (outlen != MC_CMD_CDX_BUS_ENUM_DEVICES_OUT_LEN) in cdx_mcdi_get_num_devs() 55 size_t outlen; in cdx_mcdi_get_dev_config() local 63 outbuf, sizeof(outbuf), &outlen); in cdx_mcdi_get_dev_config() 67 if (outlen != MC_CMD_CDX_BUS_GET_DEVICE_CONFIG_OUT_LEN) in cdx_mcdi_get_dev_config()
|
/openbmc/linux/fs/jfs/ |
H A D | jfs_unicode.c | 23 int outlen = 0; in jfs_strfromUCS_le() local 32 &to[outlen], in jfs_strfromUCS_le() 35 outlen += charlen; in jfs_strfromUCS_le() 37 to[outlen++] = '?'; in jfs_strfromUCS_le() 57 outlen = i; in jfs_strfromUCS_le() 59 to[outlen] = 0; in jfs_strfromUCS_le() 60 return outlen; in jfs_strfromUCS_le()
|
/openbmc/linux/drivers/net/ethernet/sfc/siena/ |
H A D | mcdi.c | 41 size_t outlen; member 547 min(async->outlen, data_len)); in efx_mcdi_complete_async() 558 min(async->outlen, data_len)); in efx_mcdi_complete_async() 654 efx_dword_t *outbuf, size_t outlen, in _efx_mcdi_rpc_finish() argument 715 min(outlen, data_len)); in _efx_mcdi_rpc_finish() 805 efx_dword_t *outbuf, size_t outlen, in _efx_mcdi_rpc() argument 821 rc = _efx_mcdi_rpc_finish(efx, cmd, inlen, outbuf, outlen, in _efx_mcdi_rpc() 845 outbuf, outlen, outlen_actual, in _efx_mcdi_rpc() 863 efx_dword_t *outbuf, size_t outlen, in _efx_mcdi_rpc_evb_retry() argument 870 outbuf, outlen, outlen_actual, true, &raw_rc); in _efx_mcdi_rpc_evb_retry() [all …]
|
H A D | mcdi_port.c | 26 size_t outlen; in efx_mcdi_mdio_read() local 35 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_mdio_read() 52 size_t outlen; in efx_mcdi_mdio_write() local 62 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_mdio_write()
|
/openbmc/linux/fs/smb/server/ |
H A D | unicode.c | 110 int charlen, outlen = 0; in smb_utf16_bytes() local 128 outlen += charlen; in smb_utf16_bytes() 130 outlen++; in smb_utf16_bytes() 133 return outlen; in smb_utf16_bytes() 164 int outlen = 0; in smb_from_utf16() local 193 if (outlen >= safelen) { in smb_from_utf16() 195 if ((outlen + charlen) > (tolen - nullsize)) in smb_from_utf16() 200 charlen = cifs_mapchar(&to[outlen], ftmp, codepage, mapchar); in smb_from_utf16() 201 outlen += charlen; in smb_from_utf16() 219 to[outlen++] = 0; in smb_from_utf16() [all …]
|
/openbmc/qemu/chardev/ |
H A D | wctablet.c | 78 int outlen; member 104 if (tablet->outlen + count > sizeof(tablet->outbuf)) { in wctablet_queue_output() 108 memcpy(tablet->outbuf + tablet->outlen, buf, count); in wctablet_queue_output() 109 tablet->outlen += count; in wctablet_queue_output() 117 tablet->outlen = 0; in wctablet_reset() 195 if (len > tablet->outlen) { in wctablet_chr_accept_input() 196 len = tablet->outlen; in wctablet_chr_accept_input() 201 tablet->outlen -= len; in wctablet_chr_accept_input() 202 if (tablet->outlen) { in wctablet_chr_accept_input() 203 memmove(tablet->outbuf, tablet->outbuf + len, tablet->outlen); in wctablet_chr_accept_input() [all …]
|
/openbmc/linux/lib/crypto/ |
H A D | blake2s-selftest.c | 565 int outlen = 1 + i % BLAKE2S_HASH_SIZE; in blake2s_digest_test() local 568 blake2s(hash, buf, key + BLAKE2S_KEY_SIZE - keylen, outlen, i, in blake2s_digest_test() 570 if (memcmp(hash, blake2s_testvecs[i], outlen)) { in blake2s_digest_test() 576 blake2s_init(&state, outlen); in blake2s_digest_test() 578 blake2s_init_key(&state, outlen, in blake2s_digest_test() 585 if (memcmp(hash, blake2s_testvecs[i], outlen)) { in blake2s_digest_test()
|
/openbmc/u-boot/arch/x86/lib/ |
H A D | scu.c | 86 u32 *in, int inlen, u32 *out, int outlen) in scu_ipc_cmd() argument 97 for (i = 0; i < outlen; i++) in scu_ipc_cmd() 120 int outlen, u32 dptr, u32 sptr) in scu_ipc_raw_command() argument 152 return scu_ipc_cmd(scu->regs, cmd, sub, inbuf, inlen, out, outlen); in scu_ipc_raw_command() 194 int scu_ipc_command(u32 cmd, u32 sub, u32 *in, int inlen, u32 *out, int outlen) in scu_ipc_command() argument 206 return scu_ipc_cmd(scu->regs, cmd, sub, in, inlen, out, outlen); in scu_ipc_command()
|
/openbmc/linux/fs/smb/client/ |
H A D | cifs_unicode.c | 181 int outlen = 0; in cifs_from_utf16() local 212 if (outlen >= safelen) { in cifs_from_utf16() 214 if ((outlen + charlen) > (tolen - nullsize)) in cifs_from_utf16() 219 charlen = cifs_mapchar(&to[outlen], ftmp, codepage, map_type); in cifs_from_utf16() 220 outlen += charlen; in cifs_from_utf16() 236 to[outlen++] = 0; in cifs_from_utf16() 238 return outlen; in cifs_from_utf16() 308 int charlen, outlen = 0; in cifs_utf16_bytes() local 327 outlen += charlen; in cifs_utf16_bytes() 330 return outlen; in cifs_utf16_bytes()
|
/openbmc/linux/security/keys/ |
H A D | dh.c | 129 int outlen; in __keyctl_dh_compute() local 220 outlen = crypto_kpp_maxsize(tfm); in __keyctl_dh_compute() 228 ret = outlen; in __keyctl_dh_compute() 230 } else if (outlen > buflen) { in __keyctl_dh_compute() 236 outbuf = kzalloc(kdfcopy ? (outlen + kdfcopy->otherinfolen) : outlen, in __keyctl_dh_compute() 243 sg_init_one(&outsg, outbuf, outlen); in __keyctl_dh_compute() 252 kpp_request_set_output(req, &outsg, outlen); in __keyctl_dh_compute()
|
/openbmc/linux/drivers/crypto/nx/ |
H A D | nx-common-pseries.c | 305 unsigned char *out, unsigned int *outlen, in nx842_pseries_compress() argument 327 if (check_constraints(outbuf, outlen, false)) in nx842_pseries_compress() 362 ((outbuf + *outlen - 1) & NX842_HW_PAGE_MASK)) { in nx842_pseries_compress() 365 op.outlen = *outlen; in nx842_pseries_compress() 368 nx842_build_scatterlist(outbuf, *outlen, &slout); in nx842_pseries_compress() 370 op.outlen = -nx842_get_scatterlist_size(&slout); in nx842_pseries_compress() 375 (unsigned long)op.out, (long)op.outlen); in nx842_pseries_compress() 393 *outlen = be32_to_cpu(csbcpb->csb.processed_byte_count); in nx842_pseries_compress() 394 dev_dbg(dev, "%s: processed_bytes=%d\n", __func__, *outlen); in nx842_pseries_compress() 435 unsigned char *out, unsigned int *outlen, in nx842_pseries_decompress() argument [all …]
|
/openbmc/linux/drivers/media/usb/dvb-usb/ |
H A D | vp7045.c | 25 int vp7045_usb_op(struct dvb_usb_device *d, u8 cmd, u8 *out, int outlen, u8 *in, int inlen, int mse… in vp7045_usb_op() argument 32 if (outlen > 19) in vp7045_usb_op() 33 outlen = 19; in vp7045_usb_op() 42 if (out != NULL && outlen > 0) in vp7045_usb_op() 43 memcpy(&buf[1], out, outlen); in vp7045_usb_op() 46 debug_dump(buf, outlen+1, deb_xfer); in vp7045_usb_op()
|
/openbmc/linux/crypto/ |
H A D | algif_aead.c | 105 size_t outlen = 0; /* [out] RX bufs produced by kernel */ in _aead_recvmsg() local 142 outlen = used + as; in _aead_recvmsg() 144 outlen = used - as; in _aead_recvmsg() 159 err = af_alg_get_rsgl(sk, msg, flags, areq, outlen, &usedpages); in _aead_recvmsg() 170 if (usedpages < outlen) { in _aead_recvmsg() 171 size_t less = outlen - usedpages; in _aead_recvmsg() 178 outlen -= less; in _aead_recvmsg() 247 outlen); in _aead_recvmsg() 293 areq->outlen = outlen; in _aead_recvmsg() 322 return err ? err : outlen; in _aead_recvmsg()
|