/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/include/ |
H A D | bcmtlv.h | 61 #define bcm_valid_tlv(elt, buflen) (\ 62 ((int)(buflen) >= (int)BCM_TLV_HDR_SIZE) && \ 63 ((int)(buflen) >= (int)(BCM_TLV_HDR_SIZE + (elt)->len))) 87 bcm_tlv_t *bcm_next_tlv(const bcm_tlv_t *elt, uint *buflen); 89 /* move buffer/buflen up to the given tlv, or set to NULL/0 on error */ 90 void bcm_tlv_buffer_advance_to(const bcm_tlv_t *elt, const uint8 **buffer, uint *buflen); 92 /* move buffer/buflen past the given tlv, or set to NULL/0 on error */ 93 void bcm_tlv_buffer_advance_past(const bcm_tlv_t *elt, const uint8 **buffer, uint *buflen); 96 bcm_tlv_t *bcm_parse_tlvs(const void *buf, uint buflen, uint key); 102 bcm_tlv_t *bcm_parse_tlvs_min_bodylen(const void *buf, int buflen, uin [all...] |
H A D | wlioctl_utils.h | 46 int buflen, uint32 corerev);
|
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/ |
H A D | bcmxtlv.c | 130 bcm_next_xtlv(const bcm_xtlv_t *elt, int *buflen, bcm_xtlv_opts_t opts) in bcm_next_xtlv() argument 136 *buflen -= sz; in bcm_next_xtlv() 139 if (!bcm_valid_xtlv(elt, *buflen, opts)) in bcm_next_xtlv() 381 * buflen is used for tlv_buf space check 384 bcm_pack_xtlv_entry(uint8 **tlv_buf, uint16 *buflen, uint16 type, uint16 len, in bcm_pack_xtlv_entry() argument 395 if (size > *buflen) in bcm_pack_xtlv_entry() 403 *buflen -= (uint16)size; in bcm_pack_xtlv_entry() 412 bcm_unpack_xtlv_buf(void *ctx, const uint8 *tlv_buf, uint16 buflen, bcm_xtlv_opts_t opts, in bcm_unpack_xtlv_buf() argument 420 int sbuflen = buflen; in bcm_unpack_xtlv_buf() 424 ASSERT(!buflen || tlv_bu in bcm_unpack_xtlv_buf() 446 bcm_pack_xtlv_buf(void *ctx, uint8 *tlv_buf, uint16 buflen, bcm_xtlv_opts_t opts, bcm_pack_xtlv_next_info_cbfn_t get_next, bcm_pack_xtlv_pack_next_cbfn_t pack_next, int *outlen) bcm_pack_xtlv_buf() argument 495 bcm_pack_xtlv_buf_from_mem(uint8 **tlv_buf, uint16 *buflen, const xtlv_desc_t *items, bcm_xtlv_opts_t opts) bcm_pack_xtlv_buf_from_mem() argument 520 bcm_unpack_xtlv_buf_to_mem(uint8 *tlv_buf, int *buflen, xtlv_desc_t *items, bcm_xtlv_opts_t opts) bcm_unpack_xtlv_buf_to_mem() argument 564 bcm_get_data_from_xtlv_buf(const uint8 *tlv_buf, uint16 buflen, uint16 id, uint16 *datalen, bcm_xtlv_opts_t opts) bcm_get_data_from_xtlv_buf() argument [all...] |
H A D | wldev_common.c | 113 s8 *iovar_buf, u32 buflen) in wldev_mkiovar() 117 iolen = bcm_mkiovar(iovar_name, param, paramlen, iovar_buf, buflen); in wldev_mkiovar() 123 const void *param, s32 paramlen, void *buf, s32 buflen, struct mutex* buf_sync) in wldev_iovar_getbuf() 130 if (buf && (buflen > 0)) { in wldev_iovar_getbuf() 132 memset(buf, 0, buflen); in wldev_iovar_getbuf() 138 ret = wldev_mkiovar(iovar_name, param, paramlen, buf, buflen); in wldev_iovar_getbuf() 144 ret = wldev_ioctl_get(dev, WLC_GET_VAR, buf, buflen); in wldev_iovar_getbuf() 153 const void *param, s32 paramlen, void *buf, s32 buflen, struct mutex* buf_sync) in wldev_iovar_setbuf() 160 iovar_len = wldev_mkiovar(iovar_name, param, paramlen, buf, buflen); in wldev_iovar_setbuf() 205 s8 *iovar_buf, s32 buflen, s3 in wldev_mkiovar_bsscfg() 111 wldev_mkiovar( const s8 *iovar_name, const s8 *param, s32 paramlen, s8 *iovar_buf, u32 buflen) wldev_mkiovar() argument 121 wldev_iovar_getbuf( struct net_device *dev, s8 *iovar_name, const void *param, s32 paramlen, void *buf, s32 buflen, struct mutex* buf_sync) wldev_iovar_getbuf() argument 151 wldev_iovar_setbuf( struct net_device *dev, s8 *iovar_name, const void *param, s32 paramlen, void *buf, s32 buflen, struct mutex* buf_sync) wldev_iovar_setbuf() argument 203 wldev_mkiovar_bsscfg( const s8 *iovar_name, const s8 *param, s32 paramlen, s8 *iovar_buf, s32 buflen, s32 bssidx) wldev_mkiovar_bsscfg() argument 255 wldev_iovar_getbuf_bsscfg( struct net_device *dev, s8 *iovar_name, void *param, s32 paramlen, void *buf, s32 buflen, s32 bsscfg_idx, struct mutex* buf_sync) wldev_iovar_getbuf_bsscfg() argument 273 wldev_iovar_setbuf_bsscfg( struct net_device *dev, const s8 *iovar_name, const void *param, s32 paramlen, void *buf, s32 buflen, s32 bsscfg_idx, struct mutex* buf_sync) wldev_iovar_setbuf_bsscfg() argument [all...] |
H A D | wldev_common.h | 53 const void *param, s32 paramlen, void *buf, s32 buflen, struct mutex* buf_sync); 60 const void *param, s32 paramlen, void *buf, s32 buflen, struct mutex* buf_sync); 74 s8 *iovar_buf, s32 buflen, s32 bssidx); 81 void *buf, s32 buflen, s32 bsscfg_idx, struct mutex* buf_sync); 88 void *buf, s32 buflen, s32 bsscfg_idx, struct mutex* buf_sync);
|
H A D | dhd_debug_linux.c | 122 uint32 buflen, rlen; in dbg_ring_poll_worker() local 130 buflen = ring->wp - ring->rp; in dbg_ring_poll_worker() 132 buflen = ring->ring_size - ring->rp + ring->wp; in dbg_ring_poll_worker() 137 if (buflen > ring->ring_size) { in dbg_ring_poll_worker() 141 buf = MALLOCZ(dhdp->osh, buflen); in dbg_ring_poll_worker() 149 rlen = dhd_dbg_pull_from_ring(dhdp, ringid, buf, buflen); in dbg_ring_poll_worker() 166 MFREE(dhdp->osh, buf, buflen); in dbg_ring_poll_worker()
|
H A D | wl_iw.c | 143 uint32 reason, char* stringBuf, uint buflen); 364 int buflen) in dev_iw_iovar_setbuf() 368 iolen = bcm_mkiovar(iovar, param, paramlen, bufptr, buflen); in dev_iw_iovar_setbuf() 382 int buflen) in dev_iw_iovar_getbuf() 386 iolen = bcm_mkiovar(iovar, param, paramlen, bufptr, buflen); in dev_iw_iovar_getbuf() 390 return (dev_wlc_ioctl(dev, WLC_GET_VAR, bufptr, buflen)); in dev_iw_iovar_getbuf() 402 uint buflen; in dev_wlc_bufvar_set() local 409 buflen = bcm_mkiovar(name, buf, len, ioctlbuf, MAX_WLIW_IOCTL_LEN); in dev_wlc_bufvar_set() 410 ASSERT(buflen); in dev_wlc_bufvar_set() 411 error = dev_wlc_ioctl(dev, WLC_SET_VAR, ioctlbuf, buflen); in dev_wlc_bufvar_set() 358 dev_iw_iovar_setbuf( struct net_device *dev, char *iovar, void *param, int paramlen, void *bufptr, int buflen) dev_iw_iovar_setbuf() argument 376 dev_iw_iovar_getbuf( struct net_device *dev, char *iovar, void *param, int paramlen, void *bufptr, int buflen) dev_iw_iovar_getbuf() argument 424 dev_wlc_bufvar_get( struct net_device *dev, char *name, char *buf, int buflen) dev_wlc_bufvar_get() argument 1211 uint buflen = dwrq->length; wl_iw_get_aplist() local 1670 uint buflen = dwrq->length; wl_iw_get_scan() local 3502 wl_iw_conn_status_str(uint32 event_type, uint32 status, uint32 reason, char* stringBuf, uint buflen) wl_iw_conn_status_str() argument 3585 wl_iw_check_conn_fail(const wl_event_msg_t *e, char* stringBuf, uint buflen) wl_iw_check_conn_fail() argument [all...] |
H A D | linux_osl.c | 1624 uint buflen = 0; in osl_sec_dma_map() local 1647 buflen = size; in osl_sec_dma_map() 1664 pa_cma_kmap_va = ((uint8 *)pa_cma_kmap_va + buflen); in osl_sec_dma_map() 1668 buflen += skb_frag_size(f); in osl_sec_dma_map() 1672 pa_cma_kmap_va = ((uint8 *)pa_cma_kmap_va + buflen); in osl_sec_dma_map() 1674 buflen += skb->len; in osl_sec_dma_map() 1682 dmah->origsize = buflen; in osl_sec_dma_map() 1689 dmah->origsize = buflen; in osl_sec_dma_map() 1697 dma_handle = dma_map_page(OSH_NULL, pa_cma_page, loffset+offset, buflen, in osl_sec_dma_map() 1701 dmah->segs[0].length = buflen; in osl_sec_dma_map() 1736 uint buflen = 0; osl_sec_dma_unmap() local [all...] |
H A D | wl_android.c | 1454 ANDROID_ERROR(("wl_android_get_p2p_dev_addr: buflen %d is less than p2p dev addr\n", in wl_android_get_p2p_dev_addr() 1753 param.buflen = htod32(sizeof(wl_chanim_stats_t)); in wl_chanim_stats() 1764 list->buflen = dtoh32(list->buflen); in wl_chanim_stats() 1768 if (list->buflen == 0) { in wl_chanim_stats() 1775 list->buflen = 0; in wl_chanim_stats() 2073 uint16 iocsz, uint8 *buf, uint16 buflen, wl_natoe_cmd_info_t *cmd_info) in wl_natoe_get_ioctl() 2081 buflen, NULL); in wl_natoe_get_ioctl() 2110 uint16 buflen = WL_NATOE_IOC_BUFSZ; in wl_android_natoe_subcmd_enable() local 2146 /* buflen i in wl_android_natoe_subcmd_enable() 2072 wl_natoe_get_ioctl(struct net_device *dev, wl_natoe_ioc_t *natoe_ioc, uint16 iocsz, uint8 *buf, uint16 buflen, wl_natoe_cmd_info_t *cmd_info) wl_natoe_get_ioctl() argument 2188 uint16 buflen = WL_NATOE_IOC_BUFSZ; wl_android_natoe_subcmd_config_ips() local 2308 uint16 buflen = WL_NATOE_IOC_BUFSZ; wl_android_natoe_subcmd_config_ports() local 2407 uint16 buflen = WL_NATOE_DBG_STATS_BUFSZ; wl_android_natoe_subcmd_dbg_stats() local 2484 uint16 buflen = WL_NATOE_IOC_BUFSZ; wl_android_natoe_subcmd_tbl_cnt() local 2599 uint16 buflen = 0, buflen_start = 0; wl_android_send_wnm_notif() local 2654 uint16 buflen = 0, buflen_start = 0; wl_android_mbo_subcmd_cell_data_cap() local 2829 uint16 buflen = 0, buflen_start = 0; wl_android_mbo_subcmd_non_pref_chan() local [all...] |
H A D | bcmutils.c | 2903 * *buflen is not modified if the TLV elt parameter is invalid, or is decremented 2907 bcm_next_tlv(const bcm_tlv_t *elt, uint *buflen) in bcm_next_tlv() argument 2912 if (!bcm_valid_tlv(elt, *buflen)) { in bcm_next_tlv() 2919 *buflen -= (TLV_HDR_LEN + len); in bcm_next_tlv() 2922 if (!bcm_valid_tlv(elt, *buflen)) { in bcm_next_tlv() 2938 * @param buflen length of the buffer in bytes 2941 * will be set to NULL and *buflen parameter will be set to zero. Otherwise, 2942 * *buffer will point to elt, and *buflen will have been adjusted by the the 2946 bcm_tlv_buffer_advance_to(const bcm_tlv_t *elt, const uint8 **buffer, uint *buflen) in bcm_tlv_buffer_advance_to() argument 2953 /* make sure the input buffer pointer is non-null, that (buffer + buflen) doe in bcm_tlv_buffer_advance_to() 3003 bcm_tlv_buffer_advance_past(const bcm_tlv_t *elt, const uint8 **buffer, uint *buflen) bcm_tlv_buffer_advance_past() argument 3040 bcm_parse_tlvs(const void *buf, uint buflen, uint key) bcm_parse_tlvs() argument 3069 bcm_parse_tlvs_dot11(const void *buf, int buflen, uint key, bool id_ext) bcm_parse_tlvs_dot11() argument 3117 bcm_parse_tlvs_min_bodylen(const void *buf, int buflen, uint key, int min_bodylen) bcm_parse_tlvs_min_bodylen() argument 3134 bcm_parse_ordered_tlvs(const void *buf, int buflen, uint key) bcm_parse_ordered_tlvs() argument 3487 bcm_mkiovar(const char *name, const char *data, uint datalen, char *buf, uint buflen) bcm_mkiovar() argument 4328 replace_nvram_variable(char *varbuf, unsigned int buflen, const char *variable, unsigned int *datalen) replace_nvram_variable() argument [all...] |
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/mac/hmac/ |
H A D | hmac_wapi_wpi.c | 54 hi_u32 hmac_wpi_encrypt(hmac_wapi_crypt_stru wpi_key, hi_u8 *puc_bufin, hi_u32 buflen, hi_u8 *puc_bufout) in hmac_wpi_encrypt() argument 70 if (buflen < 1) { in hmac_wpi_encrypt() 79 counter = buflen / 16; /* 16 用于计算 */ in hmac_wpi_encrypt() 80 comp = buflen % 16; /* 16 用于计算 */ in hmac_wpi_encrypt() 125 hi_u32 hmac_wpi_decrypt(hmac_wapi_crypt_stru wpi_key, hi_u8 *puc_bufin, hi_u32 buflen, hi_u8 *puc_bufout) in hmac_wpi_decrypt() argument 127 return hmac_wpi_encrypt(wpi_key, puc_bufin, buflen, puc_bufout); in hmac_wpi_decrypt()
|
H A D | hmac_wapi_wpi.h | 44 hi_u32 hmac_wpi_encrypt(hmac_wapi_crypt_stru wpi_key, hi_u8 *puc_bufin, hi_u32 buflen, hi_u8 *puc_bufout); 45 hi_u32 hmac_wpi_decrypt(hmac_wapi_crypt_stru wpi_key, hi_u8 *puc_bufin, hi_u32 buflen, hi_u8 *puc_bufout);
|
/device/soc/rockchip/common/sdk_linux/drivers/media/usb/uvc/ |
H A D | uvc_driver.c | 586 u32 **intervals, unsigned char *buffer, int buflen)
in uvc_parse_format() 606 if (buflen < (int)n) {
in uvc_parse_format() 666 if (buflen < UVC_BUF_LEN_ELEVEN) {
in uvc_parse_format() 682 if (buflen < UVC_BUF_LEN_NINE) {
in uvc_parse_format() 739 buflen -= buffer[0];
in uvc_parse_format() 745 while (buflen > UVC_BUF_LEN_TWO && buffer[1] == USB_DT_CS_INTERFACE && buffer[UVC_BUFER_INDEX_TWO] == ftype) {
in uvc_parse_format() 748 n = buflen > UVC_BUFER_INDEX_TWENTY_FIVE ? buffer[UVC_BUFER_INDEX_TWENTY_FIVE] : 0;
in uvc_parse_format() 750 n = buflen > UVC_BUFER_INDEX_TWENTY_ONE ? buffer[UVC_BUFER_INDEX_TWENTY_ONE] : 0;
in uvc_parse_format() 755 if (buflen < UVC_BUF_LEN_TWENTY_SIX + UVC_BUF_LEN_MUL_FOUR * n) {
in uvc_parse_format() 815 buflen in uvc_parse_format() 585 uvc_parse_format(struct uvc_device *dev, struct uvc_streaming *streaming, struct uvc_format *format, u32 **intervals, unsigned char *buffer, int buflen) uvc_parse_format() argument 853 int _buflen, buflen = alts->extralen; uvc_parse_streaming() local 1142 uvc_parse_vendor_control(struct uvc_device *dev, const unsigned char *buffer, int buflen) uvc_parse_vendor_control() argument 1225 uvc_parse_standard_control(struct uvc_device *dev, const unsigned char *buffer, int buflen) uvc_parse_standard_control() argument 1497 int buflen = alts->extralen; uvc_parse_control() local [all...] |
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/lwip_sack/include/lwip/ |
H A D | inet.h | 250 * @param[in] buflen Indicates the length of the user buffer. 261 #define inet_ntoa_r(addr, buf, buflen) ip4addr_ntoa_r((const ip4_addr_t*)&(addr), buf, buflen) 299 * @param[in] buflen Indicates the length of the user buffer. 311 #define inet6_ntoa_r(addr, buf, buflen) ip6addr_ntoa_r((const ip6_addr_t*)&(addr), buf, buflen)
|
H A D | netdb.h | 215 * @param buflen The size of the buffer. 245 size_t buflen, struct hostent **result, int *h_errnop); 361 #define gethostbyname_r(name, ret, buf, buflen, result, h_errnop) \ 362 lwip_gethostbyname_r(name, ret, buf, buflen, result, h_errnop)
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/libcoap/include/coap2/ |
H A D | uri.h | 101 * @param buflen Maximum length of @p buf. Will be set to the actual number 109 size_t *buflen); 119 * @param buflen Maximum length of @p buf. Will be set to the actual number 129 size_t *buflen);
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/mbedtls/include/mbedtls/ |
H A D | x509_crl.h | 104 * \param buflen size of the buffer 110 const unsigned char *buf, size_t buflen ); 118 * \param buflen size of the buffer 123 int mbedtls_x509_crl_parse( mbedtls_x509_crl *chain, const unsigned char *buf, size_t buflen );
|
H A D | x509_csr.h | 91 * \param buflen size of the buffer 96 const unsigned char *buf, size_t buflen ); 105 * \param buflen size of the buffer 110 int mbedtls_x509_csr_parse( mbedtls_x509_csr *csr, const unsigned char *buf, size_t buflen );
|
H A D | bignum.h | 420 * buffer of length \p buflen Bytes. 421 * \param buflen The available size in Bytes of \p buf. 426 * \note You can call this function with `buflen == 0` to obtain the 437 char *buf, size_t buflen, size_t *olen ); 487 * \p buflen Bytes. 488 * \param buflen The length of the input buffer \p p in Bytes. 495 size_t buflen ); 503 * \p buflen Bytes. 504 * \param buflen The size of the output buffer \p buf in Bytes. 512 size_t buflen ); [all...] |
H A D | error.h | 121 * \param buflen length of the buffer 123 void mbedtls_strerror( int errnum, char *buffer, size_t buflen );
|
H A D | pem.h | 63 size_t buflen; /*!< length of the buffer */ member
|
/device/qemu/drivers/virtio/ |
H A D | virtrng.c | 60 static int VirtrngIO(char *buffer, size_t buflen) in VirtrngIO() argument 71 q->desc[0].len = buflen; in VirtrngIO() 274 int HiRandomHwGetNumber(char *buffer, size_t buflen) in HiRandomHwGetNumber() argument 276 return VirtrngRead(buffer, buflen); in HiRandomHwGetNumber()
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/paho.mqtt.c/include/mqtt/ |
H A D | MQTTPersistenceDefault.h | 29 int pstget(void* handle, char* key, char** buffer, int* buflen);
|
H A D | MQTTClientPersistence.h | 135 * @param buflens An array of lengths of the data buffers. <i>buflen[n]</i> 151 * @param buflen The address of an int that is set to the length of 156 typedef int (*Persistence_get)(void* handle, char* key, char** buffer, int* buflen);
|
/device/soc/rockchip/rk3568/hardware/mpp/mpp/legacy/inc/ |
H A D | mpp_bitput.h | 30 RK_U32 buflen; //!< max buf length, 64bit uint member
|