Home
last modified time | relevance | path

Searched refs:cmp_len (Results 1 – 12 of 12) sorted by relevance

/openbmc/linux/fs/
H A Dremap_range.c196 loff_t cmp_len = min(PAGE_SIZE - offset_in_page(srcoff), in vfs_dedupe_file_range_compare() local
199 cmp_len = min(cmp_len, len); in vfs_dedupe_file_range_compare()
200 if (cmp_len <= 0) in vfs_dedupe_file_range_compare()
237 if (memcmp(src_addr, dst_addr, cmp_len)) in vfs_dedupe_file_range_compare()
250 srcoff += cmp_len; in vfs_dedupe_file_range_compare()
251 dstoff += cmp_len; in vfs_dedupe_file_range_compare()
252 len -= cmp_len; in vfs_dedupe_file_range_compare()
/openbmc/linux/kernel/power/
H A Dswap.c637 size_t cmp_len; /* compressed length */ member
663 d->cmp + LZO_HEADER, &d->cmp_len, in lzo_compress_threadfn()
823 if (unlikely(!data[thr].cmp_len || in save_image_lzo()
824 data[thr].cmp_len > in save_image_lzo()
831 *(size_t *)data[thr].cmp = data[thr].cmp_len; in save_image_lzo()
842 off < LZO_HEADER + data[thr].cmp_len; in save_image_lzo()
1121 size_t cmp_len; /* compressed length */ member
1146 d->ret = lzo1x_decompress_safe(d->cmp + LZO_HEADER, d->cmp_len, in lzo_decompress_threadfn()
1343 data[thr].cmp_len = *(size_t *)page[pg]; in load_image_lzo()
1344 if (unlikely(!data[thr].cmp_len || in load_image_lzo()
[all …]
/openbmc/linux/drivers/scsi/esas2r/
H A Desas2r_flash.c343 && fc->cmp_len) { in fw_download_proc()
350 - fc->cmp_len; /* where we are now */ in fw_download_proc()
360 fc->cmp_len -= fc->curr_len; /* # left to compare */ in fw_download_proc()
363 if (fc->cmp_len > FM_BUF_SZ) in fw_download_proc()
366 fc->sgc.length = fc->cmp_len; in fw_download_proc()
405 fc->cmp_len = ch->length; in fw_download_proc()
440 fc->cmp_len = ch->length; in fw_download_proc()
476 fc->cmp_len = ch->length; in fw_download_proc()
510 fc->cmp_len = ch->length; in fw_download_proc()
544 && fc->sgc.length > fc->cmp_len) in fw_download_proc()
[all …]
H A Desas2r.h708 u32 cmp_len; member
/openbmc/u-boot/board/ti/common/
H A Dboard_detect.c296 bool __maybe_unused board_ti_rev_is(char *rev_tag, int cmp_len) in board_ti_rev_is() argument
304 l = cmp_len > TI_EEPROM_HDR_REV_LEN ? TI_EEPROM_HDR_REV_LEN : cmp_len; in board_ti_rev_is()
H A Dboard_detect.h138 bool board_ti_rev_is(char *rev_tag, int cmp_len);
/openbmc/linux/drivers/crypto/intel/qat/qat_common/
H A Dicp_qat_hw.h121 #define ICP_QAT_HW_AUTH_CONFIG_BUILD(mode, algo, cmp_len) \ argument
129 ((cmp_len & QAT_AUTH_CMP_MASK) << QAT_AUTH_CMP_BITPOS))
/openbmc/linux/drivers/target/
H A Dtarget_core_sbc.c381 unsigned int cmp_len, unsigned int *miscmp_off) in compare_and_write_do_cmp() argument
390 buf = kzalloc(cmp_len, GFP_KERNEL); in compare_and_write_do_cmp()
396 rc = sg_copy_to_buffer(cmp_sgl, cmp_nents, buf, cmp_len); in compare_and_write_do_cmp()
408 unsigned int len = min(sg->length, cmp_len); in compare_and_write_do_cmp()
426 cmp_len -= len; in compare_and_write_do_cmp()
427 if (!cmp_len) in compare_and_write_do_cmp()
/openbmc/linux/drivers/gpu/drm/panel/
H A Dpanel-sony-acx565akm.c208 int cmp_len = strlen(mode_str); in cabc_mode_store() local
212 if (count != cmp_len) in cabc_mode_store()
215 if (strncmp(buf, mode_str, cmp_len) == 0) in cabc_mode_store()
/openbmc/linux/drivers/video/fbdev/omap2/omapfb/displays/
H A Dpanel-sony-acx565akm.c445 int cmp_len = strlen(mode_str); in store_cabc_mode() local
449 if (count != cmp_len) in store_cabc_mode()
452 if (strncmp(buf, mode_str, cmp_len) == 0) in store_cabc_mode()
/openbmc/linux/arch/loongarch/kernel/
H A Dsetup.c111 size_t cmp_len = len > 8 ? 8 : len; in dmi_string_parse() local
113 if (!memcmp(bp, dmi_empty_string, cmp_len)) in dmi_string_parse()
/openbmc/linux/kernel/bpf/
H A Dbtf.c8554 int reg_len, arg_len, cmp_len; in btf_type_ids_nocast_alias() local
8587 cmp_len = reg_len; in btf_type_ids_nocast_alias()
8590 cmp_len = arg_len; in btf_type_ids_nocast_alias()
8600 return !strncmp(reg_name, arg_name, cmp_len); in btf_type_ids_nocast_alias()