Home
last modified time | relevance | path

Searched refs:buf_len (Results 1 - 25 of 53) sorted by relevance

123

/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/
H A Dfrag.c39 bcm_tlv_dot11_defrag(const void *buf, uint buf_len, uint8 id, bool id_ext, in bcm_tlv_dot11_defrag() argument
48 ie = bcm_parse_tlvs_dot11(buf, buf_len, id, id_ext); in bcm_tlv_dot11_defrag()
76 /* adjust buf_len to length after ie including it */ in bcm_tlv_dot11_defrag()
77 buf_len -= (uint)(((const uint8 *)ie - (const uint8 *)buf)); in bcm_tlv_dot11_defrag()
80 while ((ie = bcm_next_tlv(ie, &buf_len)) && in bcm_tlv_dot11_defrag()
82 /* note: buf_len starts at next ie and last frag may be partial */ in bcm_tlv_dot11_defrag()
109 bcm_tlv_dot11_frag_tot_len(const void *buf, uint buf_len, in bcm_tlv_dot11_frag_tot_len() argument
112 return bcm_tlv_dot11_defrag(buf, buf_len, id, id_ext, NULL, ie_len); in bcm_tlv_dot11_frag_tot_len()
H A Dbcmbloom.c169 const uint8 *tag, uint tag_len, const uint8 *buf, uint buf_len) in bcm_bloom_is_member()
178 if (!buf || (buf_len == 0)) { in bcm_bloom_is_member()
183 buf_len = bp->filter_size; in bcm_bloom_is_member()
194 if (isclr(buf, pos % BLOOM_BIT_LEN(buf_len))) { in bcm_bloom_is_member()
228 uint buf_size, uint8 *buf, uint *buf_len) in bcm_bloom_get_filter_data()
233 if (buf_len) in bcm_bloom_get_filter_data()
234 *buf_len = bp->filter_size; in bcm_bloom_get_filter_data()
168 bcm_bloom_is_member(bcm_bloom_filter_t *bp, const uint8 *tag, uint tag_len, const uint8 *buf, uint buf_len) bcm_bloom_is_member() argument
227 bcm_bloom_get_filter_data(bcm_bloom_filter_t *bp, uint buf_size, uint8 *buf, uint *buf_len) bcm_bloom_get_filter_data() argument
H A Ddhd_dbg_ring.c269 dhd_dbg_ring_pull_single(dhd_dbg_ring_t *ring, void *data, uint32 buf_len, bool strip_header) in dhd_dbg_ring_pull_single() argument
276 if (!ring || !data || buf_len <= 0) { in dhd_dbg_ring_pull_single()
296 DHD_DBGIF(("%s: RING%d[%s] buf_len=%u, wp=%d, rp=%d, ring_start=0x%p; ring_size=%u\n", in dhd_dbg_ring_pull_single()
297 __FUNCTION__, ring->id, ring->name, buf_len, ring->wp, ring->rp, in dhd_dbg_ring_pull_single()
319 if (rlen > buf_len) { in dhd_dbg_ring_pull_single()
321 __FUNCTION__, buf_len, rlen)); in dhd_dbg_ring_pull_single()
361 dhd_dbg_ring_pull(dhd_dbg_ring_t *ring, void *data, uint32 buf_len, bool strip_hdr) in dhd_dbg_ring_pull() argument
376 while (buf_len > 0) { in dhd_dbg_ring_pull()
377 r_len = dhd_dbg_ring_pull_single(ring, data, buf_len, strip_hdr); in dhd_dbg_ring_pull()
381 buf_len in dhd_dbg_ring_pull()
[all...]
H A Dwl_ext_genl.c78 char* buf, int buf_len);
167 wl_ext_send_probersp(struct net_device *dev, char* buf, int buf_len) in wl_ext_send_probersp() argument
173 if (buf == NULL || buf_len <= 0){ in wl_ext_send_probersp()
174 AGENL_ERROR(dev->name, "buf is NULL or buf_len <= 0\n"); in wl_ext_send_probersp()
184 if (ie_len > (buf_len-PROBE_RSP_VNDR_OUI_OFFSET)) { in wl_ext_send_probersp()
363 char* buf, int buf_len) in wl_ext_genl_send()
376 if(buf == NULL || buf_len <= 0) { in wl_ext_genl_send()
377 AGENL_ERROR(dev->name, "buf is NULL or buf_len : %d\n", buf_len); in wl_ext_genl_send()
391 ret = nla_put(skb, GENL_CUSTOM_ATTR_MSG, buf_len, bu in wl_ext_genl_send()
362 wl_ext_genl_send(struct genl_params *zconf, struct net_device *dev, char* buf, int buf_len) wl_ext_genl_send() argument
[all...]
H A Ddbus_usb_linux.c381 int buf_len; member
712 req->buf_len = usbos_info->rxbuf_len; in dbus_usbos_urbreqs_alloc()
715 req->buf_len = 0; in dbus_usbos_urbreqs_alloc()
727 MFREE(usbos_info->pub->osh, req->pkt, req->buf_len); in dbus_usbos_urbreqs_alloc()
774 MFREE(usbos_info->pub->osh, req->pkt, req->buf_len); in dbus_usbos_urbreqs_free()
776 req->buf_len = 0; in dbus_usbos_urbreqs_free()
831 MFREE(usbos_info->pub->osh, txirb->send_buf, req->buf_len); in dbus_usbos_send_complete()
833 req->buf_len = 0; in dbus_usbos_send_complete()
868 req->pkt = rxirb->pkt = PKTGET(usbos_info->pub->osh, req->buf_len, FALSE); in dbus_usbos_recv_urb_submit()
880 if (req->buf_len ! in dbus_usbos_recv_urb_submit()
[all...]
H A Ddhd_dbg_ring.h132 int dhd_dbg_ring_pull(dhd_dbg_ring_t *ring, void *data, uint32 buf_len,
134 int dhd_dbg_ring_pull_single(dhd_dbg_ring_t *ring, void *data, uint32 buf_len,
H A Dfrag.h36 int bcm_tlv_dot11_frag_tot_len(const void *buf, uint buf_len,
H A Dbcmsdh_sdmmc.c1406 uint addr, uint reg_width, uint buf_len, uint8 *buffer, void *pkt) in sdioh_request_buffer()
1431 buf_len = PKTLEN(sd->osh, pkt); in sdioh_request_buffer()
1437 if (((ulong)buffer & DMA_ALIGN_MASK) == 0 && (buf_len & DMA_ALIGN_MASK) == 0) in sdioh_request_buffer()
1438 return sdioh_buffer_tofrom_bus(sd, fix_inc, write, func, addr, buffer, buf_len); in sdioh_request_buffer()
1441 __FUNCTION__, write, buffer, buf_len)); in sdioh_request_buffer()
1444 tmppkt = PKTGET_STATIC(sd->osh, buf_len + DEFAULT_SDIO_F2_BLKSIZE, write ? TRUE : FALSE); in sdioh_request_buffer()
1446 sd_err(("%s: PKTGET failed: len %d\n", __FUNCTION__, buf_len)); in sdioh_request_buffer()
1451 bcopy(buffer, PKTDATA(sd->osh, tmppkt), buf_len); in sdioh_request_buffer()
1454 PKTDATA(sd->osh, tmppkt), ROUNDUP(buf_len, (DMA_ALIGN_MASK+1))); in sdioh_request_buffer()
1457 bcopy(PKTDATA(sd->osh, tmppkt), buffer, buf_len); in sdioh_request_buffer()
1405 sdioh_request_buffer(sdioh_info_t *sd, uint pio_dma, uint fix_inc, uint write, uint func, uint addr, uint reg_width, uint buf_len, uint8 *buffer, void *pkt) sdioh_request_buffer() argument
[all...]
H A Dbcmxtlv.c64 bcm_valid_xtlv(const bcm_xtlv_t *elt, int buf_len, bcm_xtlv_opts_t opts) in bcm_valid_xtlv() argument
67 buf_len >= bcm_xtlv_hdr_size(opts) && in bcm_valid_xtlv()
68 buf_len >= bcm_xtlv_size(elt, opts); in bcm_valid_xtlv()
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/flashboot/secure/
H A Dcrypto.c733 hi_u32 upg_check_encrypt(boot_crypto_ctx *para, hi_u8 *buf, hi_u32 buf_len) in upg_check_encrypt() argument
738 hi_u32 size = para->cryptoed_size + buf_len; in upg_check_encrypt()
760 cs = (uintptr_t)(para->buf + para->cryptoed_size) ^ buf_len ^ (uintptr_t)buf ^ buf_len; in upg_check_encrypt()
761 if (memcpy_s(para->buf + para->cryptoed_size, buf_len, buf, buf_len, cs) != EOK) { in upg_check_encrypt()
773 (uintptr_t)buf ^ buf_len; in upg_check_encrypt()
775 buf, buf_len, cs) != EOK) { in upg_check_encrypt()
779 para->cryptoed_size += buf_len; in upg_check_encrypt()
785 hi_u32 upg_encrypt_part_write(hi_u32 start, hi_u32 offset, hi_u8 *buf, hi_u32 buf_len) in upg_encrypt_part_write() argument
984 upg_check_decrypt(boot_crypto_ctx *para, hi_u8 *buf, hi_u32 buf_len) upg_check_decrypt() argument
1030 upg_decrypt_part_read(hi_u32 start, hi_u32 offset, hi_u8 *buf, hi_u32 buf_len) upg_decrypt_part_read() argument
1089 crypto_kernel_write(hi_u32 start, hi_u32 offset, hi_u8 *buf, hi_u32 buf_len) crypto_kernel_write() argument
1111 crypto_kernel_read(hi_u32 start, hi_u32 offset, hi_u8 *buf, hi_u32 buf_len) crypto_kernel_read() argument
[all...]
H A Dcrypto.h102 hi_u32 crypto_kernel_read(hi_u32 start, hi_u32 offset, hi_u8 *buf, hi_u32 buf_len);
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/mbedtls/include/mbedtls/
H A Dplatform.h280 int mbedtls_platform_std_nv_seed_read( unsigned char *buf, size_t buf_len );
281 int mbedtls_platform_std_nv_seed_write( unsigned char *buf, size_t buf_len );
285 extern int (*mbedtls_nv_seed_read)( unsigned char *buf, size_t buf_len );
286 extern int (*mbedtls_nv_seed_write)( unsigned char *buf, size_t buf_len );
298 int (*nv_seed_read_func)( unsigned char *buf, size_t buf_len ),
299 int (*nv_seed_write_func)( unsigned char *buf, size_t buf_len )
H A Dpem.h120 * \param buf_len length of output buffer
121 * \param olen total length written / required (if buf_len is not enough)
129 unsigned char *buf, size_t buf_len, size_t *olen );
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/hi_ir/
H A Dhiir.c81 #define BUF_LAST g_hiir_dev.buf[(g_hiir_dev.head == 0) ? (g_hiir_dev.buf_len - 1) : (g_hiir_dev.head - 1)]
88 unsigned int buf_len; member
244 g_hiir_dev.head = inc_buf(g_hiir_dev.head, g_hiir_dev.buf_len); in interrupt_rcv()
253 g_hiir_dev.head = inc_buf(g_hiir_dev.head, g_hiir_dev.buf_len); in interrupt_rcv()
287 g_hiir_dev.head = inc_buf(g_hiir_dev.head, g_hiir_dev.buf_len); in hiir_interrupt()
310 g_hiir_dev.buf_len = arg + 1; in hiir_ioctl()
316 hiir_dbg("IR_IOC_SET_BUF->buf_len=%u\n", g_hiir_dev.buf_len); in hiir_ioctl()
435 hiir_dbg("Enter hiir_read : head=%u, tail=%u, buf_len=%u\n", g_hiir_dev.head, g_hiir_dev.tail, g_hiir_dev.buf_len); in hiir_read()
[all...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/components/at/src/
H A Dhi_at.c156 hi_u32 buf_len; in at_get_buf() local
159 buf_len = strlen(g_at_buf) + 1; in at_get_buf()
160 buf = hi_malloc(HI_MOD_ID_APP_AT, buf_len); in at_get_buf()
162 memset_s(buf, buf_len, 0, buf_len); in at_get_buf()
163 if (memcpy_s(buf, buf_len, g_at_buf, strlen(g_at_buf)) != EOK) { in at_get_buf()
170 buf_len = g_at_ctrl.send_len + 1; in at_get_buf()
171 buf = hi_malloc(HI_MOD_ID_APP_AT, buf_len); in at_get_buf()
173 memset_s(buf, buf_len, 0, buf_len); in at_get_buf()
[all...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/include/
H A Dhi_upg_api.h83 * @li Ensure that the actual buffer size is the same as the value of buf_len.
84 * CNcomment:用户需保证buf实际大小与buf_len相等。CNend
94 * @param buf_len [IN] type #hi_u32 Length of the upgrade data package.Unit: byte.
102 hi_u32 hi_upg_get_content(hi_u32 offset, hi_u8* buf, hi_u32 buf_len);
114 * @param buf_len [IN] type #hi_u32 Length of the upgrade file data.Unit:byte.CNcomment:升级数据包长度,单位:byte。CNend
121 hi_u32 hi_upg_transmit(hi_u32 offset, hi_u8* buf, hi_u32 buf_len);
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/include/
H A Dbcmbloom.h62 /* check if given tag is member of the filter. If buf is NULL and/or buf_len is 0
67 const uint8 *tag, uint tag_len, const uint8 *buf, uint buf_len);
74 /* get the filter data from state. BCME_BUFTOOSHORT w/ required length in buf_len
78 uint buf_size, uint8 *buf, uint *buf_len);
H A Dbcmtlv.h196 bool bcm_valid_xtlv(const bcm_xtlv_t *elt, int buf_len, bcm_xtlv_opts_t opts);
201 bcm_xtlv_t *bcm_next_xtlv(const bcm_xtlv_t *elt, int *buf_len, bcm_xtlv_opts_t opts);
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/system/upg/
H A Dupg_common.c379 hi_u32 upg_cache_ctrl(hi_u32 offset, hi_u8 *buf, hi_u32 buf_len, hi_bool is_write) in upg_cache_ctrl() argument
389 if (((offset + buf_len) > (ctx->common_head.file_len)) || in upg_cache_ctrl()
390 ((offset + buf_len) < buf_len)) { in upg_cache_ctrl()
391 upg_print("[upg cache ctrl]error param:0x%x-0x%x-0x%x \r\n", offset, buf_len, ctx->common_head.file_len); in upg_cache_ctrl()
397 ret = hi_flash_read(offset + cache_addr, buf_len, (hi_u8 *)buf); in upg_cache_ctrl()
399 ret = hi_flash_write(offset + cache_addr, buf_len, (hi_u8 *)buf, HI_FALSE); in upg_cache_ctrl()
698 hi_u32 upg_start(hi_u8 *buf, hi_u32 buf_len) in upg_start() argument
710 if (buf_len < sizeof(hi_upg_common_head)) { in upg_start()
751 hi_u32 upg_cache_write(hi_u32 offset, hi_u8 *buf, hi_u32 buf_len) in upg_cache_write() argument
1350 hi_upg_get_content(hi_u32 offset, hi_u8 *buf, hi_u32 buf_len) hi_upg_get_content() argument
1390 hi_upg_transmit(hi_u32 offset, hi_u8 *buf, hi_u32 buf_len) hi_upg_transmit() argument
[all...]
/device/soc/rockchip/rk2206/hdf_driver/i2c/
H A Di2c_driver.c275 unsigned short buf_len; in i2cdrv_transfer() local
300 buf_len = (unsigned short)(msg->len); in i2cdrv_transfer()
302 ret = LzI2cRead(i2cBusId, addr, buf, buf_len); in i2cdrv_transfer()
330 buf_len = (unsigned short)(msg->len); in i2cdrv_transfer()
332 ret = LzI2cWrite(i2cBusId, addr, buf, buf_len); in i2cdrv_transfer()
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/crypto/
H A Dcryp_rsa.c489 static hi_s32 rsa_pkcs1_block_padding(hi_u8 bt, hi_u8 *buf, hi_u32 buf_len) in rsa_pkcs1_block_padding() argument
494 (hi_void)memset_s(buf, buf_len, 0x00, buf_len); in rsa_pkcs1_block_padding()
498 (hi_void)memset_s(buf, buf_len, RSA_PADDING_VAL_FF, buf_len); in rsa_pkcs1_block_padding()
504 (hi_void)mbedtls_get_random(HI_NULL, buf, buf_len); in rsa_pkcs1_block_padding()
507 for (i = 0; i < buf_len; i++) { in rsa_pkcs1_block_padding()
515 hi_log_error("BT(0x%x) is invalid.\n", buf_len); in rsa_pkcs1_block_padding()
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/component/hdmi/src/mkp/drm_hal/
H A Ddrm_hal_hdmitx.h59 int (*read_edid)(enum drm_hal_hdmitx_id id, unsigned char *buffer, int buf_len);
H A Ddrm_hal_hdmitx.c279 int drm_hal_hdmitx_read_edid(enum drm_hal_hdmitx_id id, unsigned char *buffer, int buf_len) in drm_hal_hdmitx_read_edid() argument
288 return drv_hdmi_edid_raw_get(&dev->edid_info, buffer, buf_len); in drm_hal_hdmitx_read_edid()
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/
H A Ddrm_ioctl.c479 static int drm_copy_field(char __user *buf, size_t *buf_len, const char *value) in drm_copy_field() argument
485 if (len > *buf_len) { in drm_copy_field()
486 len = *buf_len; in drm_copy_field()
491 *buf_len = strlen(value); in drm_copy_field()
/device/soc/rockchip/rk3568/hardware/mpp/mpp/legacy/inc/
H A Dmpp_bitread.h119 RK_S32 buf_len; member

Completed in 21 milliseconds

123