| /linux/drivers/i2c/busses/ |
| H A D | i2c-viperboard.c | 117 u16 remain_len, len1, len2, start = 0x0000; in vprbrd_i2c_read() local 127 len2 = 0x00; in vprbrd_i2c_read() 130 rmsg->header.len2 = 0x00; in vprbrd_i2c_read() 137 len2 = 0x00; in vprbrd_i2c_read() 140 rmsg->header.len2 = 0x00; in vprbrd_i2c_read() 147 len2 = 0x00; in vprbrd_i2c_read() 150 rmsg->header.len2 = 0xff; in vprbrd_i2c_read() 157 len2 = remain_len - 512; in vprbrd_i2c_read() 160 rmsg->header.len2 = 0xff; in vprbrd_i2c_read() 167 len2 = remain_len - 512; in vprbrd_i2c_read() [all …]
|
| /linux/fs/hfsplus/ |
| H A D | unicode.c | 38 u16 len1, len2, c1, c2; in hfsplus_strcasecmp() local 42 len2 = be16_to_cpu(s2->length); in hfsplus_strcasecmp() 52 if (len2 > HFSPLUS_MAX_STRLEN) { in hfsplus_strcasecmp() 53 len2 = HFSPLUS_MAX_STRLEN; in hfsplus_strcasecmp() 55 be16_to_cpu(s2->length), len2); in hfsplus_strcasecmp() 66 while (len2 && !c2) { in hfsplus_strcasecmp() 69 len2--; in hfsplus_strcasecmp() 84 u16 len1, len2, c1, c2; in hfsplus_strcmp() local 89 len2 = be16_to_cpu(s2->length); in hfsplus_strcmp() 99 if (len2 > HFSPLUS_MAX_STRLEN) { in hfsplus_strcmp() [all …]
|
| /linux/tools/perf/util/ |
| H A D | levenshtein.c | 47 int len1 = strlen(string1), len2 = strlen(string2); in levenshtein() local 48 int *row0 = malloc(sizeof(int) * (len2 + 1)); in levenshtein() 49 int *row1 = malloc(sizeof(int) * (len2 + 1)); in levenshtein() 50 int *row2 = malloc(sizeof(int) * (len2 + 1)); in levenshtein() 53 for (j = 0; j <= len2; j++) in levenshtein() 59 for (j = 0; j < len2; j++) { in levenshtein() 81 i = row1[len2]; in levenshtein()
|
| /linux/arch/powerpc/kernel/ |
| H A D | sys_ppc32.c | 95 unsigned long, len1, unsigned long, len2) in PPC32_SYSCALL_DEFINE4() argument 97 return ksys_truncate(path, merge_64(len1, len2)); in PPC32_SYSCALL_DEFINE4() 102 unsigned long, len1, unsigned long, len2) in PPC32_SYSCALL_DEFINE4() argument 104 return ksys_ftruncate(fd, merge_64(len1, len2)); in PPC32_SYSCALL_DEFINE4() 129 u32, offset1, u32, offset2, u32, len1, u32, len2) in SYSCALL_DEFINE6() argument 133 merge_64(len1, len2)); in SYSCALL_DEFINE6()
|
| /linux/lib/zlib_dfltcc/ |
| H A D | dfltcc_util.h | 35 size_t *len2, in dfltcc() argument 43 size_t t5 = len2 ? *len2 : 0; in dfltcc() 96 if (len2) in dfltcc() 97 *len2 = t5; in dfltcc()
|
| /linux/fs/hfs/ |
| H A D | string.c | 80 const unsigned char *s2, unsigned int len2) in hfs_strcmp() argument 84 len = (len1 > len2) ? len2 : len1; in hfs_strcmp() 91 return len1 - len2; in hfs_strcmp()
|
| /linux/fs/udf/ |
| H A D | directory.c | 330 static void udf_copy_to_bufs(void *buf1, int len1, void *buf2, int len2, in udf_copy_to_bufs() argument 345 if (WARN_ON_ONCE(off + len > len2 || !buf2)) in udf_copy_to_bufs() 351 static uint16_t udf_crc_fi_bufs(void *buf1, int len1, void *buf2, int len2, in udf_crc_fi_bufs() argument 366 if (WARN_ON_ONCE(off + len > len2 || !buf2)) in udf_crc_fi_bufs() 373 static void udf_copy_fi_to_bufs(char *buf1, int len1, char *buf2, int len2, in udf_copy_fi_to_bufs() argument 384 udf_copy_to_bufs(buf1, len1, buf2, len2, off, fi, in udf_copy_fi_to_bufs() 388 udf_copy_to_bufs(buf1, len1, buf2, len2, off, impuse, in udf_copy_fi_to_bufs() 392 udf_copy_to_bufs(buf1, len1, buf2, len2, off, name, in udf_copy_fi_to_bufs() 395 udf_copy_to_bufs(buf1, len1, buf2, len2, off, zeros, in udf_copy_fi_to_bufs() 399 crc = udf_crc_fi_bufs(buf1, len1, buf2, len2, crcoff, crclen); in udf_copy_fi_to_bufs() [all …]
|
| /linux/arch/powerpc/include/asm/ |
| H A D | syscalls.h | 102 unsigned long len1, unsigned long len2); 104 unsigned long len1, unsigned long len2); 113 u32 len1, u32 len2); 128 unsigned long len1, unsigned long len2); 130 unsigned long len1, unsigned long len2);
|
| /linux/fs/btrfs/tests/ |
| H A D | raid-stripe-tree-tests.c | 47 u64 len2 = SZ_1M; in test_punch_hole_3extents() local 48 u64 logical3 = logical2 + len2; in test_punch_hole_3extents() 87 bioc->size = len2; in test_punch_hole_3extents() 164 ret = btrfs_get_raid_extent_offset(fs_info, logical2, &len2, map_type, in test_punch_hole_3extents() 168 logical2, logical2 + len2); in test_punch_hole_3extents() 225 u64 len2 = SZ_1M; in test_delete_two_extents() local 226 u64 logical3 = logical2 + len2; in test_delete_two_extents() 263 bioc->size = len2; in test_delete_two_extents() 308 ret = btrfs_delete_raid_extent(trans, logical1, len1 + len2); in test_delete_two_extents() 311 logical1, logical1 + len1 + len2); in test_delete_two_extents() [all …]
|
| /linux/drivers/parport/ |
| H A D | probe.c | 218 size_t idlen, len2; in parport_read_device_id() local 229 len2 = len; in parport_read_device_id() 230 while(len2 < idlen && retval > 0) { in parport_read_device_id() 233 min(sizeof tmp, idlen-len2)); in parport_read_device_id() 236 len2 += retval; in parport_read_device_id()
|
| /linux/kernel/debug/kdb/ |
| H A D | kdb_io.c | 531 int len1, len2; in kdb_search_string() local 535 len2 = strlen(searchfor); in kdb_search_string() 536 if (len1 < len2) in kdb_search_string() 538 if (kdb_grep_leading && kdb_grep_trailing && len1 != len2) in kdb_search_string() 541 if (!strncmp(searched, searchfor, len2)) in kdb_search_string() 544 if (!strncmp(searched+len1-len2, searchfor, len2)) in kdb_search_string() 550 if (!strncmp(cp, searchfor, len2)) in kdb_search_string()
|
| /linux/drivers/media/tuners/ |
| H A D | tda18218.c | 16 int ret = 0, len2, remaining; in tda18218_wr_regs() local 35 len2 = remaining; in tda18218_wr_regs() 36 if (len2 > (priv->cfg->i2c_wr_max - 1)) in tda18218_wr_regs() 37 len2 = (priv->cfg->i2c_wr_max - 1); in tda18218_wr_regs() 39 msg[0].len = 1 + len2; in tda18218_wr_regs() 41 memcpy(&buf[1], &val[len - remaining], len2); in tda18218_wr_regs()
|
| /linux/tools/testing/selftests/powerpc/ptrace/ |
| H A D | ptrace-hwbreak.c | 439 int len1, len2; in test_multi_sethwdebug_range() local 445 len2 = B_LEN; in test_multi_sethwdebug_range() 447 get_ppc_hw_breakpoint(&info2, PPC_BREAKPOINT_TRIGGER_READ, wp_addr2, len2); in test_multi_sethwdebug_range() 459 check_success(child_pid, name2, "RO", wp_addr2, len2); in test_multi_sethwdebug_range() 470 int len1, len2; in test_multi_sethwdebug_range_dawr_overlap() local 476 len2 = A_LEN; in test_multi_sethwdebug_range_dawr_overlap() 478 get_ppc_hw_breakpoint(&info2, PPC_BREAKPOINT_TRIGGER_READ, wp_addr2, len2); in test_multi_sethwdebug_range_dawr_overlap() 490 check_success(child_pid, name, "RO", wp_addr2, len2); in test_multi_sethwdebug_range_dawr_overlap()
|
| /linux/fs/ntfs3/ |
| H A D | lznt.c | 51 size_t len1 = 0, len2 = 0; in longest_match_std() local 70 len2 = 3; in longest_match_std() 72 len2 += get_match_len(src + 3, ctx->unc_end, in longest_match_std() 77 if (len1 < len2) { in longest_match_std() 79 len1 = len2; in longest_match_std()
|
| H A D | namei.c | 445 unsigned int len2 = name->len; in ntfs_d_compare() local 446 unsigned int lm = min(len1, len2); in ntfs_d_compare() 454 return len1 != len2; in ntfs_d_compare()
|
| /linux/include/linux/mfd/ |
| H A D | viperboard.h | 52 u8 len2; member 63 u8 len2; member
|
| /linux/drivers/media/dvb-frontends/ |
| H A D | nxt200x.c | 143 u8 attr, len2, buf; in nxt200x_writereg_multibyte() local 154 len2 = len; in nxt200x_writereg_multibyte() 166 len2 = ((attr << 4) | 0x10) | len; in nxt200x_writereg_multibyte() 174 nxt200x_writebytes(state, 0x34, &len2, 1); in nxt200x_writereg_multibyte() 202 u8 buf, len2, attr; in nxt200x_readreg_multibyte() local 211 len2 = len & 0x80; in nxt200x_readreg_multibyte() 212 nxt200x_writebytes(state, 0x34, &len2, 1); in nxt200x_readreg_multibyte() 227 len2 = (attr << 4) | len; in nxt200x_readreg_multibyte() 228 nxt200x_writebytes(state, 0x34, &len2, 1); in nxt200x_readreg_multibyte()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | ringbuf.c | 503 unsigned long size, len1, len2, len3, len4, len5; in ringbuf_overwrite_mode_subtest() local 515 len2 = page_size / 4; in ringbuf_overwrite_mode_subtest() 516 len3 = size - len1 - len2 - BPF_RINGBUF_HDR_SZ * 3; in ringbuf_overwrite_mode_subtest() 522 skel->rodata->LEN2 = len2; in ringbuf_overwrite_mode_subtest() 547 expect_avail_data = len2 + len4 + len5 + 3 * BPF_RINGBUF_HDR_SZ; in ringbuf_overwrite_mode_subtest() 552 expect_prod_pos = len1 + len2 + len4 + len5 + 4 * BPF_RINGBUF_HDR_SZ; in ringbuf_overwrite_mode_subtest()
|
| /linux/fs/nfs/blocklayout/ |
| H A D | extent_tree.c | 182 sector_t len1 = 0, len2 = 0; in __ext_tree_remove() local 198 len2 = ext_f_end(be) - end; in __ext_tree_remove() 200 if (len2 > 0) { in __ext_tree_remove() 213 orig_v_offset + orig_len - len2; in __ext_tree_remove() 215 new->be_length = len2; in __ext_tree_remove() 225 orig_v_offset + orig_len - len2; in __ext_tree_remove() 227 be->be_length = len2; in __ext_tree_remove()
|
| /linux/drivers/crypto/marvell/octeontx2/ |
| H A D | otx2_cpt_reqmgr.h | 166 __be16 len2; member 177 u16 len2; member 244 sg_ptr->len2 = cpu_to_be16(list[i * SG_COMPS_MAX + 2].size); in setup_sgio_components() 256 sg_ptr->len2 = cpu_to_be16(list[i * SG_COMPS_MAX + 2].size); in setup_sgio_components() 313 sg_ptr->len2 = list[i * SGV2_COMPS_MAX + 2].size; in sgv2io_components_setup()
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | trace_helpers.c | 585 int len1, len2; in compare_name() local 590 len2 = res2 ? res2 - name2 : strlen(name2); in compare_name() 592 if (len1 == len2) in compare_name() 594 if (len1 < len2) in compare_name() 596 return strncmp(name1, name2, len2) >= 0 ? 1 : -1; in compare_name()
|
| /linux/tools/accounting/ |
| H A D | procacct.c | 227 int len2 = 0; in handle_aggr() local 231 while (len2 < aggr_len) { in handle_aggr() 256 len2 += NLA_ALIGN(na->nla_len); in handle_aggr()
|
| H A D | getdelays.c | 449 int c, rc, rep_len, aggr_len, len2; in main() local 667 len2 = 0; in main() 670 while (len2 < aggr_len) { in main() 705 len2 += NLA_ALIGN(na->nla_len); in main()
|
| /linux/drivers/net/ethernet/stmicro/stmmac/ |
| H A D | dwxgmac2_descs.c | 200 int len1, int len2, bool tx_own, in dwxgmac2_prepare_tso_tx_desc() argument 208 if (len2) in dwxgmac2_prepare_tso_tx_desc() 209 p->des2 |= cpu_to_le32(FIELD_PREP(XGMAC_TDES2_B2L, len2)); in dwxgmac2_prepare_tso_tx_desc()
|
| H A D | dwmac4_descs.c | 358 int len1, int len2, bool tx_own, in dwmac4_rd_prepare_tso_tx_desc() argument 368 if (len2) in dwmac4_rd_prepare_tso_tx_desc() 370 len2)); in dwmac4_rd_prepare_tso_tx_desc()
|