Home
last modified time | relevance | path

Searched refs:size_left (Results 1 – 13 of 13) sorted by relevance

/linux-6.1.9/drivers/net/wireless/ath/ath10k/
Dswap.c26 u32 size_left = data_len; in ath10k_swap_code_seg_fill() local
33 while (size_left >= sizeof(*swap_item)) { in ath10k_swap_code_seg_fill()
36 if ((payload_len > size_left) || in ath10k_swap_code_seg_fill()
38 size_left != sizeof(struct ath10k_swap_code_seg_tail))) { in ath10k_swap_code_seg_fill()
58 size_left -= length; in ath10k_swap_code_seg_fill()
/linux-6.1.9/drivers/media/platform/verisilicon/
Dhantro_h1_jpeg_enc.c47 u32 size_left; in hantro_h1_jpeg_enc_set_buffers() local
49 size_left = vb2_plane_size(dst_buf, 0) - ctx->vpu_dst_fmt->header_size; in hantro_h1_jpeg_enc_set_buffers()
51 size_left = 0; in hantro_h1_jpeg_enc_set_buffers()
58 vepu_write_relaxed(vpu, size_left, H1_REG_STR_BUF_LIMIT); in hantro_h1_jpeg_enc_set_buffers()
Drockchip_vpu2_hw_jpeg_enc.c74 u32 size_left; in rockchip_vpu2_jpeg_enc_set_buffers() local
76 size_left = vb2_plane_size(dst_buf, 0) - ctx->vpu_dst_fmt->header_size; in rockchip_vpu2_jpeg_enc_set_buffers()
78 size_left = 0; in rockchip_vpu2_jpeg_enc_set_buffers()
85 vepu_write_relaxed(vpu, size_left, VEPU_REG_STR_BUF_LIMIT); in rockchip_vpu2_jpeg_enc_set_buffers()
/linux-6.1.9/drivers/net/
Dthunderbolt.c1089 unsigned int size_left = TBNET_MAX_PAYLOAD_SIZE; in tbnet_start_xmit() local
1096 if (len > size_left) { in tbnet_start_xmit()
1101 memcpy(dest, src, size_left); in tbnet_start_xmit()
1102 len -= size_left; in tbnet_start_xmit()
1103 dest += size_left; in tbnet_start_xmit()
1104 src += size_left; in tbnet_start_xmit()
1109 size_left -= len; in tbnet_start_xmit()
1122 } else if (unlikely(size_left > 0)) { in tbnet_start_xmit()
1125 } while (size_left > 0); in tbnet_start_xmit()
/linux-6.1.9/fs/btrfs/
Dxattr.c282 size_t total_size = 0, size_left = size; in btrfs_listxattr() local
334 if (!buffer || (name_len + 1) > size_left) { in btrfs_listxattr()
342 size_left -= name_len + 1; in btrfs_listxattr()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dcore_linecards.c868 size_t size_left; in mlxsw_linecard_ini_transfer() local
872 size_left = le16_to_cpu(ini_file->size); in mlxsw_linecard_ini_transfer()
874 while (size_left) { in mlxsw_linecard_ini_transfer()
878 if (size_left <= MLXSW_REG_MBCT_DATA_LEN) { in mlxsw_linecard_ini_transfer()
879 data_size = size_left; in mlxsw_linecard_ini_transfer()
901 size_left -= data_size; in mlxsw_linecard_ini_transfer()
/linux-6.1.9/drivers/usb/dwc2/
Dgadget.c525 int size_left; in dwc2_hsotg_write_fifo() local
533 size_left = DXEPTSIZ_XFERSIZE_GET(epsize); in dwc2_hsotg_write_fifo()
545 __func__, size_left, in dwc2_hsotg_write_fifo()
549 size_done = hs_ep->size_loaded - size_left; in dwc2_hsotg_write_fifo()
2393 unsigned int size_left = DXEPTSIZ_XFERSIZE_GET(epsize); in dwc2_hsotg_handle_outdone() local
2409 size_left = dwc2_gadget_get_xfersize_ddma(hs_ep); in dwc2_hsotg_handle_outdone()
2423 size_done = hs_ep->size_loaded - size_left; in dwc2_hsotg_handle_outdone()
2430 if (req->actual < req->length && size_left == 0) { in dwc2_hsotg_handle_outdone()
2687 int size_left, size_done; in dwc2_hsotg_complete_in() local
2730 size_left = dwc2_gadget_get_xfersize_ddma(hs_ep); in dwc2_hsotg_complete_in()
[all …]
/linux-6.1.9/net/bridge/netfilter/
Debtables.c2030 unsigned int size_left, enum compat_mwt type, in ebt_size_mwt() argument
2036 if (size_left == 0) in ebt_size_mwt()
2043 if (size_left < sizeof(*match32)) in ebt_size_mwt()
2055 size_left -= sizeof(*match32); in ebt_size_mwt()
2062 if (match32->match_size > size_left) in ebt_size_mwt()
2065 size_left -= match32->match_size; in ebt_size_mwt()
2083 } while (size_left); in ebt_size_mwt()
/linux-6.1.9/drivers/misc/habanalabs/common/
Dmemory.c1604 u64 size_left, cur_device_address = 0; in alloc_sgt_from_device_pages() local
1606 size_left = page_size; in alloc_sgt_from_device_pages()
1612 if (size_left == page_size) in alloc_sgt_from_device_pages()
1618 chunk_size = min(size_left, dma_max_seg_size); in alloc_sgt_from_device_pages()
1626 if (size_left > dma_max_seg_size) { in alloc_sgt_from_device_pages()
1627 size_left -= dma_max_seg_size; in alloc_sgt_from_device_pages()
1630 size_left = page_size; in alloc_sgt_from_device_pages()
/linux-6.1.9/drivers/net/ethernet/hisilicon/hns3/
Dhns3_ethtool.c502 u32 size_left; in hns3_update_strings() local
513 size_left = (ETH_GSTRING_LEN - 1) - n1; in hns3_update_strings()
516 strncat(data, stats[j].stats_string, size_left); in hns3_update_strings()
/linux-6.1.9/drivers/misc/habanalabs/gaudi/
Dgaudi.c5998 u32 dma_core_sts0, err_cause, cfg1, size_left, pos, size_to_dma; in gaudi_debugfs_read_dma() local
6060 size_left = size; in gaudi_debugfs_read_dma()
6063 while (size_left > 0) { in gaudi_debugfs_read_dma()
6065 if (size_left < SZ_2M) in gaudi_debugfs_read_dma()
6066 size_to_dma = size_left; in gaudi_debugfs_read_dma()
6075 if (size_left <= SZ_2M) in gaudi_debugfs_read_dma()
6080 size_left -= SZ_2M; in gaudi_debugfs_read_dma()
/linux-6.1.9/kernel/bpf/
Dbtf.c1202 int size_left, size; in btf_show_obj_safe() local
1255 size_left = btf_show_obj_size_left(show, data); in btf_show_obj_safe()
1256 if (size_left > BTF_SHOW_OBJ_SAFE_SIZE) in btf_show_obj_safe()
1257 size_left = BTF_SHOW_OBJ_SAFE_SIZE; in btf_show_obj_safe()
1259 data, size_left); in btf_show_obj_safe()
/linux-6.1.9/drivers/misc/habanalabs/gaudi2/
Dgaudi2.c9323 u32 pos, size_left, size_to_dma; in gaudi2_debugfs_read_dma() local
9368 size_left = size; in gaudi2_debugfs_read_dma()
9371 while (size_left > 0) { in gaudi2_debugfs_read_dma()
9372 if (size_left < SZ_2M) in gaudi2_debugfs_read_dma()
9373 size_to_dma = size_left; in gaudi2_debugfs_read_dma()
9381 if (size_left <= SZ_2M) in gaudi2_debugfs_read_dma()
9386 size_left -= SZ_2M; in gaudi2_debugfs_read_dma()