Home
last modified time | relevance | path

Searched refs:data_buf (Results 1 – 22 of 22) sorted by relevance

/src/sys/contrib/dev/broadcom/brcm80211/brcmfmac/
H A Dxtlv.c44 u8 *data_buf; in brcmf_xtlv_pack_header() local
53 data_buf = lenp + sizeof(u16); in brcmf_xtlv_pack_header()
60 data_buf = lenp + sizeof(u8); in brcmf_xtlv_pack_header()
67 data_buf = lenp + sizeof(u16); in brcmf_xtlv_pack_header()
74 data_buf = lenp + sizeof(u8); in brcmf_xtlv_pack_header()
86 memcpy(data_buf, data, len); in brcmf_xtlv_pack_header()
/src/sys/dev/iser/
H A Diser_initiator.c278 iser_buf_to_sg(void *buf, struct iser_data_buf *data_buf) in iser_buf_to_sg() argument
285 tlen = data_buf->data_len; in iser_buf_to_sg()
288 sg = &data_buf->sgl[i]; in iser_buf_to_sg()
295 data_buf->size = i; in iser_buf_to_sg()
301 iser_bio_to_sg(struct bio *bp, struct iser_data_buf *data_buf) in iser_bio_to_sg() argument
312 sg = &data_buf->sgl[i]; in iser_bio_to_sg()
318 data_buf->size = i; in iser_bio_to_sg()
323 iser_csio_to_sg(struct ccb_scsiio *csio, struct iser_data_buf *data_buf) in iser_csio_to_sg() argument
331 iser_bio_to_sg((struct bio *) csio->data_ptr, data_buf); in iser_csio_to_sg()
342 iser_buf_to_sg(csio->data_ptr, data_buf); in iser_csio_to_sg()
[all …]
/src/sbin/camcontrol/
H A Dattrib.c124 uint8_t *data_buf = NULL; in scsiattrib() local
154 data_buf = malloc(dxfer_len); in scsiattrib()
155 if (data_buf == NULL) { in scsiattrib()
325 /*data_ptr*/ data_buf, in scsiattrib()
370 hdr = (struct scsi_read_attribute_values *)data_buf; in scsiattrib()
430 hdr = (struct scsi_attrib_list_header *)data_buf; in scsiattrib()
477 lv_list = (struct scsi_attrib_lv_list *)data_buf; in scsiattrib()
496 free(data_buf); in scsiattrib()
/src/contrib/ldns/
H A Ddnssec.c515 ldns_buffer *data_buf; in ldns_key_rr2ds() local
584 data_buf = ldns_buffer_new(LDNS_MAX_PACKETLEN); in ldns_key_rr2ds()
585 if (!data_buf) { in ldns_key_rr2ds()
601 ldns_buffer_free(data_buf); in ldns_key_rr2ds()
619 if (ldns_rdf2buffer_wire(data_buf, tmp) != LDNS_STATUS_OK) { in ldns_key_rr2ds()
621 ldns_buffer_free(data_buf); in ldns_key_rr2ds()
629 if (ldns_rr_rdata2buffer_wire(data_buf, in ldns_key_rr2ds()
632 ldns_buffer_free(data_buf); in ldns_key_rr2ds()
638 (void) ldns_sha1((unsigned char *) ldns_buffer_begin(data_buf), in ldns_key_rr2ds()
639 (unsigned int) ldns_buffer_position(data_buf), in ldns_key_rr2ds()
[all …]
/src/sys/dev/tws/
H A Dtws_user.h92 char data_buf[1]; member
127 char data_buf[1]; member
H A Dtws_user.c253 memcpy(&eventp, ubuf->data_buf, sizeof(struct tws_event_packet)); in tws_retrive_aen()
267 memcpy(&eventp, ubuf->data_buf, sizeof(struct tws_event_packet)); in tws_retrive_aen()
286 memcpy(ubuf->data_buf, &qp[index], in tws_retrive_aen()
314 memcpy(&lpkt, ubuf->data_buf, sizeof(struct tws_lock_packet)); in tws_ioctl_aen()
356 memcpy(ubuf->data_buf, &cpkt, len); in tws_ioctl_aen()
/src/cddl/contrib/opensolaris/cmd/lockstat/
H A Dlockstat.c1116 char *data_buf; in main() local
1527 if ((data_buf = memalign(sizeof (uint64_t), in main()
1530 if (posix_memalign((void **)&data_buf, sizeof (uint64_t), in main()
1538 g_nrecs_used = process_data(out, data_buf); in main()
1545 for (i = 0, lsp = (lsrec_t *)data_buf; i < g_nrecs_used; i++, in main()
1569 for (i = 0, oldlsp = (lsrec_t *)data_buf; i < g_nrecs_used; i++, in main()
1604 free(data_buf); in main()
1605 data_buf = (char *)newlsp; in main()
1617 for (i = 0, lsp = (lsrec_t *)data_buf; i < g_nrecs_used; i++, in main()
1717 for (i = 0, lsp = (lsrec_t *)data_buf; i < g_nrecs_used; i++, in main()
/src/contrib/wpa/src/pasn/
H A Dpasn_responder.c435 u8 *data_buf = NULL; in handle_auth_pasn_resp() local
546 data_buf = os_zalloc(rsn_ie[1] + 2 + rsnxe_ie[1] + 2); in handle_auth_pasn_resp()
547 if (!data_buf) in handle_auth_pasn_resp()
550 os_memcpy(data_buf, rsn_ie, rsn_ie[1] + 2); in handle_auth_pasn_resp()
551 os_memcpy(data_buf + rsn_ie[1] + 2, rsnxe_ie, rsnxe_ie[1] + 2); in handle_auth_pasn_resp()
553 data = data_buf; in handle_auth_pasn_resp()
561 os_free(data_buf); in handle_auth_pasn_resp()
/src/crypto/openssl/providers/implementations/ciphers/
H A Dcipher_aes_ocb.h35 unsigned char data_buf[OCB_MAX_DATA_LEN]; /* Store partial data blocks */ member
H A Dcipher_aes_ocb.c252 buf = ctx->data_buf; in aes_ocb_block_update()
278 if (!aes_generic_ocb_cipher(ctx, ctx->data_buf, out, ctx->data_buf_len)) in aes_ocb_block_final()
/src/sys/dev/ntb/test/
H A Dntb_tool.c581 void *data_buf; in tool_mw_write_fn() local
618 data_buf = malloc(data_buf_size, M_NTB_TOOL, M_WAITOK | M_ZERO); in tool_mw_write_fn()
621 memset(data_buf, pattern, data_buf_size); in tool_mw_write_fn()
623 arc4rand(data_buf, data_buf_size, 1); in tool_mw_write_fn()
625 memcpy(write_buf + *buf_offset, data_buf, data_buf_size); in tool_mw_write_fn()
627 free(data_buf, M_NTB_TOOL); in tool_mw_write_fn()
/src/sys/contrib/dev/athk/ath10k/
H A Dpci.c964 void *data_buf; in ath10k_pci_diag_read_mem() local
978 data_buf = dma_alloc_coherent(ar->dev, alloc_nbytes, &ce_data_base, in ath10k_pci_diag_read_mem()
980 if (!data_buf) { in ath10k_pci_diag_read_mem()
1043 memcpy(data, data_buf, nbytes); in ath10k_pci_diag_read_mem()
1051 if (data_buf) in ath10k_pci_diag_read_mem()
1052 dma_free_coherent(ar->dev, alloc_nbytes, data_buf, in ath10k_pci_diag_read_mem()
1115 void *data_buf; in ath10k_pci_diag_write_mem() local
1133 data_buf = dma_alloc_coherent(ar->dev, alloc_nbytes, &ce_data_base, in ath10k_pci_diag_write_mem()
1135 if (!data_buf) { in ath10k_pci_diag_write_mem()
1158 memcpy(data_buf, data, nbytes); in ath10k_pci_diag_write_mem()
[all …]
/src/sys/dev/cxgbe/cudbg/
H A Dcudbg.h470 int cudbg_read_flash_data(void *handle, void *data_buf, u32 data_buf_size);
/src/sys/powerpc/ps3/
H A Dps3-hvcall.h134 …t dev, uint64_t cmd_id, uint64_t cmd_block, uint64_t cmd_size, uint64_t data_buf, uint64_t blocks,…
/src/sys/contrib/dev/broadcom/brcm80211/brcmsmac/phy/
H A Dphy_lcn.c1921 u32 data_buf[64]; in wlc_lcnphy_clear_tx_power_offsets() local
1924 memset(data_buf, 0, sizeof(data_buf)); in wlc_lcnphy_clear_tx_power_offsets()
1928 tab.tbl_ptr = data_buf; in wlc_lcnphy_clear_tx_power_offsets()
3341 u32 data_buf[64]; in wlc_lcnphy_start_tx_tone() local
3379 data_buf[t] = (i_samp << 10) | q_samp; in wlc_lcnphy_start_tx_tone()
3386 tab.tbl_ptr = data_buf; in wlc_lcnphy_start_tx_tone()
H A Dphy_n.c23008 u32 *data_buf = NULL; in wlc_phy_loadsampletable_nphy() local
23010 data_buf = kmalloc_array(num_samps, sizeof(u32), GFP_ATOMIC); in wlc_phy_loadsampletable_nphy()
23011 if (data_buf == NULL) in wlc_phy_loadsampletable_nphy()
23018 data_buf[t] = ((((unsigned int)tone_buf[t].i) & 0x3ff) << 10) | in wlc_phy_loadsampletable_nphy()
23021 data_buf); in wlc_phy_loadsampletable_nphy()
23023 kfree(data_buf); in wlc_phy_loadsampletable_nphy()
/src/contrib/ofed/librdmacm/
H A Drsocket.c211 struct rs_sge data_buf; member
1054 conn->data_buf.addr = (__force uint64_t)htobe64((uintptr_t) rs->rbuf); in rs_format_conn_data()
1055 conn->data_buf.length = (__force uint32_t)htobe32(rs->rbuf_size >> 1); in rs_format_conn_data()
1056 conn->data_buf.key = (__force uint32_t)htobe32(rs->rmr->rkey); in rs_format_conn_data()
1076 rs->target_sgl[0].addr = be64toh((__force __be64)conn->data_buf.addr); in rs_save_conn_data()
1077 rs->target_sgl[0].length = be32toh((__force __be32)conn->data_buf.length); in rs_save_conn_data()
1078 rs->target_sgl[0].key = be32toh((__force __be32)conn->data_buf.key); in rs_save_conn_data()
/src/sys/dev/ixgbe/
H A Dif_ix.c3159 u8 *data_buf; in ixgbe_debug_dump_print_cluster() local
3171 data_buf = (u8 *)malloc(data_buf_size, M_IXGBE, M_NOWAIT | M_ZERO); in ixgbe_debug_dump_print_cluster()
3172 if (!data_buf) in ixgbe_debug_dump_print_cluster()
3183 offset, data_buf, data_buf_size, &ret_buf_size, in ixgbe_debug_dump_print_cluster()
3213 sbuf_bcat(sbuf, data_buf, ret_buf_size); in ixgbe_debug_dump_print_cluster()
3216 memset(data_buf, 0, data_buf_size); in ixgbe_debug_dump_print_cluster()
3241 free(data_buf, M_IXGBE); in ixgbe_debug_dump_print_cluster()
/src/crypto/openssl/crypto/evp/
H A De_aes.c110 unsigned char data_buf[16]; /* Store partial data blocks */ member
4022 buf = octx->data_buf; in aes_ocb_cipher()
4104 if (!CRYPTO_ocb128_encrypt(&octx->ocb, octx->data_buf, out, in aes_ocb_cipher()
4108 if (!CRYPTO_ocb128_decrypt(&octx->ocb, octx->data_buf, out, in aes_ocb_cipher()
/src/sys/dev/ice/
H A Dice_lib.c6568 u8 *data_buf; in ice_fw_debug_dump_print_cluster() local
6581 data_buf = (u8 *)malloc(data_buf_size, M_ICE, M_NOWAIT | M_ZERO); in ice_fw_debug_dump_print_cluster()
6582 if (!data_buf) in ice_fw_debug_dump_print_cluster()
6603 offset, data_buf, data_buf_size, &ret_buf_size, in ice_fw_debug_dump_print_cluster()
6632 sbuf_bcat(sbuf, data_buf, ret_buf_size); in ice_fw_debug_dump_print_cluster()
6635 memset(data_buf, 0, data_buf_size); in ice_fw_debug_dump_print_cluster()
6675 free(data_buf, M_ICE); in ice_fw_debug_dump_print_cluster()
/src/sys/dev/bxe/
H A Dbxe.c1380 uint8_t *data_buf, in bxe_nvram_write1() argument
1410 val |= (*data_buf << BYTE_OFFSET(offset)); in bxe_nvram_write1()
1430 uint8_t *data_buf, in bxe_nvram_write() argument
1439 return (bxe_nvram_write1(sc, offset, data_buf, buf_size)); in bxe_nvram_write()
1479 memcpy(&val, data_buf, 4); in bxe_nvram_write()
1485 data_buf += sizeof(uint32_t); in bxe_nvram_write()
/src/sys/dev/bce/
H A Dif_bce.c2693 bce_nvram_write(struct bce_softc *sc, u32 offset, u8 *data_buf, in bce_nvram_write() argument
2703 buf = data_buf; in bce_nvram_write()
2740 memcpy(buf + align_start, data_buf, buf_size); in bce_nvram_write()