| /OK3568_Linux_fs/kernel/sound/soc/qcom/qdsp6/ |
| H A D | q6asm.c | 280 uint32_t pkt_size, bool cmd_flg, in q6asm_add_hdr() argument 286 hdr->pkt_size = pkt_size; in q6asm_add_hdr() 334 int rc, pkt_size; in __q6asm_memory_unmap() local 342 pkt_size = APR_HDR_SIZE + sizeof(*mem_unmap); in __q6asm_memory_unmap() 343 p = kzalloc(pkt_size, GFP_KERNEL); in __q6asm_memory_unmap() 353 pkt->hdr.pkt_size = pkt_size; in __q6asm_memory_unmap() 434 int rc, i, pkt_size; in __q6asm_memory_map_regions() local 447 pkt_size = APR_HDR_SIZE + sizeof(*cmd) + in __q6asm_memory_map_regions() 450 p = kzalloc(pkt_size, GFP_KERNEL); in __q6asm_memory_map_regions() 461 pkt->hdr.pkt_size = pkt_size; in __q6asm_memory_map_regions() [all …]
|
| H A D | q6afe.c | 981 int ret, pkt_size; in q6afe_set_param() local 984 pkt_size = APR_HDR_SIZE + sizeof(*param) + sizeof(*pdata) + psize; in q6afe_set_param() 985 p = kzalloc(pkt_size, GFP_KERNEL); in q6afe_set_param() 998 pkt->hdr.pkt_size = pkt_size; in q6afe_set_param() 1035 int ret, pkt_size; in q6afe_port_set_param_v2() local 1038 pkt_size = APR_HDR_SIZE + sizeof(*param) + sizeof(*pdata) + psize; in q6afe_port_set_param_v2() 1039 p = kzalloc(pkt_size, GFP_KERNEL); in q6afe_port_set_param_v2() 1052 pkt->hdr.pkt_size = pkt_size; in q6afe_port_set_param_v2() 1188 int index, pkt_size; in q6afe_port_stop() local 1198 pkt_size = APR_HDR_SIZE + sizeof(*stop); in q6afe_port_stop() [all …]
|
| H A D | q6adm.c | 287 close.hdr.pkt_size = sizeof(close); in q6adm_device_close() 329 int ret, pkt_size; in q6adm_device_open() local 331 pkt_size = APR_HDR_SIZE + sizeof(*open); in q6adm_device_open() 332 p = kzalloc(pkt_size, GFP_KERNEL); in q6adm_device_open() 341 pkt->hdr.pkt_size = pkt_size; in q6adm_device_open() 467 int pkt_size, ret, i, copp_idx; in q6adm_matrix_map() local 472 pkt_size = (APR_HDR_SIZE + sizeof(*route) + sizeof(*node) + in q6adm_matrix_map() 475 matrix_map = kzalloc(pkt_size, GFP_KERNEL); in q6adm_matrix_map() 487 pkt->hdr.pkt_size = pkt_size; in q6adm_matrix_map()
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8822cs/hal/halmac/halmac_88xx/ |
| H A D | halmac_flash_88xx.c | 44 u32 pkt_size; in download_flash_88xx() local 72 pkt_size = DL_FLASH_RSVDPG_SIZE - 48; in download_flash_88xx() 74 pkt_size = size; in download_flash_88xx() 78 fw_bin + mem_offset, pkt_size); in download_flash_88xx() 86 DOWNLOAD_FLASH_SET_SIZE(h2c_buf, pkt_size); in download_flash_88xx() 105 rom_addr += pkt_size; in download_flash_88xx() 106 mem_offset += pkt_size; in download_flash_88xx() 107 size -= pkt_size; in download_flash_88xx() 295 u32 pkt_size; in check_flash_88xx() local 309 pkt_size = DL_FLASH_RSVDPG_SIZE; in check_flash_88xx() [all …]
|
| H A D | halmac_init_88xx.c | 759 u32 pkt_size = 64; in verify_send_rsvd_page_88xx() local 763 rsvd_buf = (u8 *)PLTFM_MALLOC(pkt_size); in verify_send_rsvd_page_88xx() 770 PLTFM_MEMSET(rsvd_buf, (u8)payload, pkt_size); in verify_send_rsvd_page_88xx() 774 rsvd_buf, pkt_size); in verify_send_rsvd_page_88xx() 776 PLTFM_FREE(rsvd_buf, pkt_size); in verify_send_rsvd_page_88xx() 780 rsvd_page = (u8 *)PLTFM_MALLOC(pkt_size + txdesc_size); in verify_send_rsvd_page_88xx() 784 PLTFM_FREE(rsvd_buf, pkt_size); in verify_send_rsvd_page_88xx() 788 PLTFM_MEMSET(rsvd_page, 0x00, pkt_size + txdesc_size); in verify_send_rsvd_page_88xx() 791 pkt_size + txdesc_size, rsvd_page); in verify_send_rsvd_page_88xx() 794 PLTFM_FREE(rsvd_buf, pkt_size); in verify_send_rsvd_page_88xx() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8821cs/hal/halmac/halmac_88xx/ |
| H A D | halmac_flash_88xx.c | 44 u32 pkt_size; in download_flash_88xx() local 72 pkt_size = DL_FLASH_RSVDPG_SIZE - 48; in download_flash_88xx() 74 pkt_size = size; in download_flash_88xx() 78 fw_bin + mem_offset, pkt_size); in download_flash_88xx() 86 DOWNLOAD_FLASH_SET_SIZE(h2c_buf, pkt_size); in download_flash_88xx() 105 rom_addr += pkt_size; in download_flash_88xx() 106 mem_offset += pkt_size; in download_flash_88xx() 107 size -= pkt_size; in download_flash_88xx() 295 u32 pkt_size; in check_flash_88xx() local 309 pkt_size = DL_FLASH_RSVDPG_SIZE; in check_flash_88xx() [all …]
|
| H A D | halmac_init_88xx.c | 758 u32 pkt_size = 64; in verify_send_rsvd_page_88xx() local 762 rsvd_buf = (u8 *)PLTFM_MALLOC(pkt_size); in verify_send_rsvd_page_88xx() 769 PLTFM_MEMSET(rsvd_buf, (u8)payload, pkt_size); in verify_send_rsvd_page_88xx() 773 rsvd_buf, pkt_size); in verify_send_rsvd_page_88xx() 775 PLTFM_FREE(rsvd_buf, pkt_size); in verify_send_rsvd_page_88xx() 779 rsvd_page = (u8 *)PLTFM_MALLOC(pkt_size + txdesc_size); in verify_send_rsvd_page_88xx() 783 PLTFM_FREE(rsvd_buf, pkt_size); in verify_send_rsvd_page_88xx() 787 PLTFM_MEMSET(rsvd_page, 0x00, pkt_size + txdesc_size); in verify_send_rsvd_page_88xx() 790 pkt_size + txdesc_size, rsvd_page); in verify_send_rsvd_page_88xx() 793 PLTFM_FREE(rsvd_buf, pkt_size); in verify_send_rsvd_page_88xx() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8822bs/hal/halmac/halmac_88xx/ |
| H A D | halmac_flash_88xx.c | 44 u32 pkt_size; in download_flash_88xx() local 72 pkt_size = DL_FLASH_RSVDPG_SIZE - 48; in download_flash_88xx() 74 pkt_size = size; in download_flash_88xx() 78 fw_bin + mem_offset, pkt_size); in download_flash_88xx() 86 DOWNLOAD_FLASH_SET_SIZE(h2c_buf, pkt_size); in download_flash_88xx() 105 rom_addr += pkt_size; in download_flash_88xx() 106 mem_offset += pkt_size; in download_flash_88xx() 107 size -= pkt_size; in download_flash_88xx() 295 u32 pkt_size; in check_flash_88xx() local 309 pkt_size = DL_FLASH_RSVDPG_SIZE; in check_flash_88xx() [all …]
|
| H A D | halmac_init_88xx.c | 751 u32 pkt_size = 64; in verify_send_rsvd_page_88xx() local 755 rsvd_buf = (u8 *)PLTFM_MALLOC(pkt_size); in verify_send_rsvd_page_88xx() 762 PLTFM_MEMSET(rsvd_buf, (u8)payload, pkt_size); in verify_send_rsvd_page_88xx() 766 rsvd_buf, pkt_size); in verify_send_rsvd_page_88xx() 768 PLTFM_FREE(rsvd_buf, pkt_size); in verify_send_rsvd_page_88xx() 772 rsvd_page = (u8 *)PLTFM_MALLOC(pkt_size + txdesc_size); in verify_send_rsvd_page_88xx() 776 PLTFM_FREE(rsvd_buf, pkt_size); in verify_send_rsvd_page_88xx() 780 PLTFM_MEMSET(rsvd_page, 0x00, pkt_size + txdesc_size); in verify_send_rsvd_page_88xx() 783 pkt_size + txdesc_size, rsvd_page); in verify_send_rsvd_page_88xx() 786 PLTFM_FREE(rsvd_buf, pkt_size); in verify_send_rsvd_page_88xx() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8821cs/hal/halmac/halmac_88xx/ |
| H A D | halmac_flash_88xx.c | 45 u32 pkt_size; in download_flash_88xx() local 73 pkt_size = DL_FLASH_RSVDPG_SIZE - 48; in download_flash_88xx() 75 pkt_size = size; in download_flash_88xx() 79 fw_bin + mem_offset, pkt_size); in download_flash_88xx() 87 DOWNLOAD_FLASH_SET_SIZE(h2c_buf, pkt_size); in download_flash_88xx() 106 rom_addr += pkt_size; in download_flash_88xx() 107 mem_offset += pkt_size; in download_flash_88xx() 108 size -= pkt_size; in download_flash_88xx() 296 u32 pkt_size; in check_flash_88xx() local 310 pkt_size = DL_FLASH_RSVDPG_SIZE; in check_flash_88xx() [all …]
|
| H A D | halmac_init_88xx.c | 759 u32 pkt_size = 64; in verify_send_rsvd_page_88xx() local 763 rsvd_buf = (u8 *)PLTFM_MALLOC(pkt_size); in verify_send_rsvd_page_88xx() 770 PLTFM_MEMSET(rsvd_buf, (u8)payload, pkt_size); in verify_send_rsvd_page_88xx() 774 rsvd_buf, pkt_size); in verify_send_rsvd_page_88xx() 776 PLTFM_FREE(rsvd_buf, pkt_size); in verify_send_rsvd_page_88xx() 780 rsvd_page = (u8 *)PLTFM_MALLOC(pkt_size + txdesc_size); in verify_send_rsvd_page_88xx() 784 PLTFM_FREE(rsvd_buf, pkt_size); in verify_send_rsvd_page_88xx() 788 PLTFM_MEMSET(rsvd_page, 0x00, pkt_size + txdesc_size); in verify_send_rsvd_page_88xx() 791 pkt_size + txdesc_size, rsvd_page); in verify_send_rsvd_page_88xx() 794 PLTFM_FREE(rsvd_buf, pkt_size); in verify_send_rsvd_page_88xx() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/marvell/ |
| H A D | mvneta_bm.h | 87 #define MVNETA_RX_BUF_SIZE(pkt_size) ((pkt_size) + NET_SKB_PAD) argument 117 int pkt_size; member 146 int pkt_size); 178 int pkt_size) in mvneta_bm_pool_use() argument
|
| H A D | mvneta_bm.c | 160 int pkt_size) in mvneta_bm_pool_use() argument 178 if (new_pool->pkt_size == 0 || type != MVNETA_BM_SHORT) in mvneta_bm_pool_use() 179 new_pool->pkt_size = pkt_size; in mvneta_bm_pool_use() 187 new_pool->buf_size = MVNETA_RX_BUF_SIZE(new_pool->pkt_size); in mvneta_bm_pool_use() 189 SKB_DATA_ALIGN(MVNETA_RX_BUF_SIZE(new_pool->pkt_size)) + in mvneta_bm_pool_use() 334 if (of_property_read_u32(dn, prop, &bm_pool->pkt_size)) in mvneta_bm_pools_init() 335 bm_pool->pkt_size = 0; in mvneta_bm_pools_init()
|
| /OK3568_Linux_fs/external/mpp/mpp/codec/enc/h264/ |
| H A D | h264e_sei.c | 45 size_t pkt_size = mpp_packet_get_size(packet); in h264e_sei_recovery_point_to_packet() local 48 RK_S32 buf_size = (pkt_base + pkt_size) - (pos + length); in h264e_sei_recovery_point_to_packet() 107 size_t pkt_size = mpp_packet_get_size(packet); in h264e_sei_to_packet() local 111 RK_S32 buf_size = (pkt_base + pkt_size) - (pos + length); in h264e_sei_to_packet() 119 h264e_dbg_sei("write sei to pkt [%p:%u] [%p:%u]\n", pkt_base, pkt_size, in h264e_sei_to_packet()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/mvl88w8977/mlan/ |
| H A D | mlan_11n_aggr.c | 389 int pkt_size = 0; in wlan_11n_aggregate_pkt() local 439 pkt_size = sizeof(TxPD); in wlan_11n_aggregate_pkt() 452 while (pmbuf_src && ((pkt_size + (pmbuf_src->data_len + LLC_SNAP_LEN) in wlan_11n_aggregate_pkt() 470 pkt_size += wlan_11n_form_amsdu_pkt(pmadapter, in wlan_11n_aggregate_pkt() 471 (data + pkt_size), in wlan_11n_aggregate_pkt() 504 pkt_size -= pad; in wlan_11n_aggregate_pkt() 505 pmbuf_aggr->data_len = pkt_size; in wlan_11n_aggregate_pkt() 591 return pkt_size + headroom; in wlan_11n_aggregate_pkt()
|
| /OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/ |
| H A D | tango_nand.c | 202 const int pkt_size = chip->ecc.size; in check_erased_page() local 207 res = nand_check_erased_ecc_chunk(buf, pkt_size, ecc, ecc_size, in check_erased_page() 216 buf += pkt_size; in check_erased_page() 406 const int pkt_size = chip->ecc.size; in raw_read() local 415 while (rem > pkt_size) { in raw_read() 416 aux_read(chip, &buf, pkt_size, &pos); in raw_read() 423 aux_read(chip, &buf, pkt_size - rem, &pos); in raw_read() 433 const int pkt_size = chip->ecc.size; in raw_write() local 442 while (rem > pkt_size) { in raw_write() 443 aux_write(chip, &buf, pkt_size, &pos); in raw_write() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/nxp/mlan/ |
| H A D | mlan_11n_aggr.c | 455 int pkt_size = 0; in wlan_11n_aggregate_pkt() local 504 pkt_size = sizeof(TxPD); in wlan_11n_aggregate_pkt() 516 while (pmbuf_src && ((pkt_size + (pmbuf_src->data_len + LLC_SNAP_LEN) + in wlan_11n_aggregate_pkt() 523 if (pmadapter->tp_state_on && (pkt_size > sizeof(TxPD))) in wlan_11n_aggregate_pkt() 537 pkt_size += wlan_11n_form_amsdu_pkt( in wlan_11n_aggregate_pkt() 538 pmadapter, (data + pkt_size), in wlan_11n_aggregate_pkt() 571 pkt_size -= pad; in wlan_11n_aggregate_pkt() 572 pmbuf_aggr->data_len = pkt_size; in wlan_11n_aggregate_pkt() 673 return pkt_size + headroom; in wlan_11n_aggregate_pkt()
|
| /OK3568_Linux_fs/kernel/drivers/input/rmi4/ |
| H A D | rmi_f11.c | 644 sensor->pkt_size = DIV_ROUND_UP(sensor->nbr_fingers, 4); in f11_2d_construct_data() 647 sensor->pkt_size += (sensor->nbr_fingers * 5); in f11_2d_construct_data() 648 sensor->attn_size = sensor->pkt_size; in f11_2d_construct_data() 652 sensor->pkt_size += (sensor->nbr_fingers * 2); in f11_2d_construct_data() 656 sensor->pkt_size += sizeof(u8); in f11_2d_construct_data() 660 sensor->pkt_size += sizeof(u8); in f11_2d_construct_data() 663 sensor->pkt_size += 3; in f11_2d_construct_data() 665 sensor->pkt_size--; in f11_2d_construct_data() 667 sensor->pkt_size--; in f11_2d_construct_data() 671 sensor->pkt_size += in f11_2d_construct_data() [all …]
|
| /OK3568_Linux_fs/external/mpp/test/ |
| H A D | vpu_api_test.c | 509 RK_S32 fileSize = 0, pkt_size = 0; in vpu_decode_demo() local 625 if (readBytesFromFile((RK_U8 *)(&pkt_size), 4, pInFile)) { in vpu_decode_demo() 630 pkt->data = (RK_U8 *)(malloc)(pkt_size); in vpu_decode_demo() 634 pkt->capability = pkt_size; in vpu_decode_demo() 637 if (pkt->capability < ((RK_U32)pkt_size)) { in vpu_decode_demo() 638 pkt->data = (RK_U8 *)(realloc)((void *)(pkt->data), pkt_size); in vpu_decode_demo() 642 pkt->capability = pkt_size; in vpu_decode_demo() 645 if (readBytesFromFile(pkt->data, pkt_size, pInFile)) { in vpu_decode_demo() 648 pkt->size = pkt_size; in vpu_decode_demo()
|
| /OK3568_Linux_fs/kernel/net/sctp/ |
| H A D | output.c | 412 int pkt_count = 0, pkt_size; in sctp_packet_pack() local 422 pkt_size = packet->size; in sctp_packet_pack() 428 pkt_size = packet->overhead; in sctp_packet_pack() 438 else if (pkt_size + padded > tp->pathmtu) in sctp_packet_pack() 440 pkt_size += padded; in sctp_packet_pack() 442 nskb = alloc_skb(pkt_size + MAX_HEADER, gfp); in sctp_packet_pack() 449 pkt_size -= packet->overhead; in sctp_packet_pack() 480 pkt_size -= SCTP_PAD4(chunk->skb->len); in sctp_packet_pack() 485 if (!pkt_size) in sctp_packet_pack()
|
| /OK3568_Linux_fs/external/rknpu2/examples/rknn_yolov5_demo/utils/ |
| H A D | mpp_decoder.cpp | 119 int MppDecoder::Decode(uint8_t* pkt_data, int pkt_size, int pkt_eos) in Decode() argument 131 LOGD("receive packet size=%d ", pkt_size); in Decode() 140 mpp_packet_set_size(packet, pkt_size); in Decode() 142 mpp_packet_set_length(packet, pkt_size); in Decode()
|
| /OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/ipc_server/ |
| H A D | MessageParser.cpp | 301 size_t pkt_size = 0; in findValidSection2() local 326 pkt_size = CALC_32BIT_LITTLE(aiq_pkt->packetSize); in findValidSection2() 329 if (remain_size < pkt_size) { in findValidSection2() 388 *end_of = *start_of + pkt_size; in findValidSection2()
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/netronome/nfp/bpf/ |
| H A D | offload.c | 450 u32 pkt_size, data_size, map_id; in nfp_bpf_event_output() local 456 pkt_size = be32_to_cpu(cbe->pkt_size); in nfp_bpf_event_output() 461 if (len < sizeof(struct cmsg_bpf_event) + pkt_size + data_size) in nfp_bpf_event_output() 477 &cbe->data[round_up(pkt_size, 4)], data_size, in nfp_bpf_event_output() 478 cbe->data, pkt_size, nfp_bpf_perf_event_copy); in nfp_bpf_event_output()
|
| /OK3568_Linux_fs/kernel/drivers/soc/qcom/ |
| H A D | apr.c | 60 ret = rpmsg_trysend(apr->ch, pkt, hdr->pkt_size); in apr_send_pkt() 63 return ret ? ret : hdr->pkt_size; in apr_send_pkt() 126 if (hdr->pkt_size < APR_HDR_SIZE || hdr->pkt_size != len) { in apr_do_rx_callback() 158 resp.payload_size = hdr->pkt_size - hdr_size; in apr_do_rx_callback()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/mcde/ |
| H A D | mcde_display.c | 646 int pkt_size) in mcde_configure_dsi_formatter() argument 717 writel(pkt_size, mcde->regs + pkt); in mcde_configure_dsi_formatter() 876 int pkt_size, fifo_wtrmrk; in mcde_display_enable() local 956 pkt_size = (formatter_ppl * formatter_cpp) / pkt_div; in mcde_display_enable() 959 pkt_size++; in mcde_display_enable() 962 pkt_size, pkt_div); in mcde_display_enable() 969 formatter_frame = pkt_size * pkt_div * formatter_lpf; in mcde_display_enable() 1014 formatter_frame, pkt_size); in mcde_display_enable()
|