/linux-master/net/ipv4/ |
H A D | af_inet.c | 1613 u32 secs; local 1619 /* Get secs since midnight. */ 1620 (void)div_u64_rem(ts.tv_sec, SECONDS_PER_DAY, &secs); 1622 msecs = secs * MSEC_PER_SEC;
|
/linux-master/include/net/ |
H A D | sock.h | 2950 void sock_set_sndtimeo(struct sock *sk, s64 secs);
|
/linux-master/drivers/net/dsa/ |
H A D | mt7530.c | 838 unsigned int secs = msecs / 1000; local 845 if (secs < 1 || secs > (AGE_CNT_MAX + 1) * (AGE_UNIT_MAX + 1)) 850 unsigned int tmp_age_unit = secs / (tmp_age_count + 1) - 1; 853 unsigned int tmp_error = secs -
|
/linux-master/tools/lib/bpf/ |
H A D | libbpf.c | 636 struct elf_sec_desc *secs; member in struct:elf_state 1385 struct elf_sec_desc *desc = &obj->efile.secs[sec_idx]; 1455 zfree(&obj->efile.secs); 1907 sec_desc = &obj->efile.secs[sec_idx]; 3729 obj->efile.secs = calloc(obj->efile.sec_cnt, sizeof(*obj->efile.secs)); 3730 if (!obj->efile.secs) 3769 sec_desc = &obj->efile.secs[idx]; 4342 switch (obj->efile.secs[shndx].sec_type) { 4364 switch (obj->efile.secs[shnd [all...] |
H A D | linker.c | 62 struct src_sec *secs; member in struct:src_obj 140 struct dst_sec *secs; member in struct:bpf_linker 201 struct dst_sec *sec = &linker->secs[i]; 211 free(linker->secs); 249 struct dst_sec *secs = linker->secs, *sec; local 252 secs = libbpf_reallocarray(secs, new_cnt, sizeof(*secs)); 253 if (!secs) 518 struct src_sec *secs = obj->secs, *sec; local [all...] |
/linux-master/net/core/ |
H A D | sock.c | 811 void sock_set_sndtimeo(struct sock *sk, s64 secs) argument 814 if (secs && secs < MAX_SCHEDULE_TIMEOUT / HZ - 1) 815 WRITE_ONCE(sk->sk_sndtimeo, secs * HZ);
|
/linux-master/drivers/staging/gdm724x/ |
H A D | gdm_lte.c | 589 u16 secs; /* elapsed since client began member in struct:dhcp_packet
|
/linux-master/drivers/rtc/ |
H A D | interface.c | 25 time64_t secs; local 30 secs = rtc_tm_to_time64(tm); 38 if ((rtc->start_secs > rtc->range_min && secs >= rtc->start_secs) || 40 secs <= (rtc->start_secs + rtc->range_max - rtc->range_min))) 43 rtc_time64_to_tm(secs + rtc->offset_secs, tm); 48 time64_t secs; local 53 secs = rtc_tm_to_time64(tm); 61 if (secs >= rtc->range_min && secs <= rtc->range_max) 64 rtc_time64_to_tm(secs [all...] |
H A D | lib_test.c | 48 time64_t secs; local 51 for (secs = 0; secs <= total_secs; secs += 86400) { 53 rtc_time64_to_tm(secs, &result); 55 days = div_s64(secs, 86400);
|
/linux-master/fs/f2fs/ |
H A D | gc.c | 2014 unsigned int secs, bool dry_run) 2023 MAIN_SECS(sbi) -= secs; 2061 MAIN_SECS(sbi) += secs; 2065 static void update_sb_metadata(struct f2fs_sb_info *sbi, int secs) argument 2072 int segs = secs * SEGS_PER_SEC(sbi); 2081 raw_sb->section_count = cpu_to_le32(section_count + secs); 2098 static void update_fs_metadata(struct f2fs_sb_info *sbi, int secs) argument 2100 int segs = secs * SEGS_PER_SEC(sbi); 2107 MAIN_SECS(sbi) += secs; 2108 FREE_I(sbi)->free_sections = (int)FREE_I(sbi)->free_sections + secs; 2013 free_segment_range(struct f2fs_sb_info *sbi, unsigned int secs, bool dry_run) argument 2131 unsigned int secs; local [all...] |
/linux-master/drivers/watchdog/ |
H A D | hpwdt.c | 29 #define SECS_TO_TICKS(secs) ((secs) * 1000 / 128)
|
/linux-master/crypto/ |
H A D | tcrypt.c | 176 int blen, int secs, u32 num_mb) 187 for (start = jiffies, end = start + secs * HZ, bcount = 0; 195 bcount * num_mb, secs, (u64)bcount * blen * num_mb); 243 static void test_mb_aead_speed(const char *algo, int enc, int secs, argument 414 if (secs) { 416 secs, num_mb); 454 int blen, int secs) 460 for (start = jiffies, end = start + secs * HZ, bcount = 0; 472 bcount, secs, (u64)bcount * blen); 518 static void test_aead_speed(const char *algo, int enc, unsigned int secs, argument 175 test_mb_aead_jiffies(struct test_mb_aead_data *data, int enc, int blen, int secs, u32 num_mb) argument 453 test_aead_jiffies(struct aead_request *req, int enc, int blen, int secs) argument 719 test_ahash_jiffies_digest(struct ahash_request *req, int blen, char *out, int secs) argument 739 test_ahash_jiffies(struct ahash_request *req, int blen, int plen, char *out, int secs) argument 866 test_ahash_speed_common(const char *algo, unsigned int secs, struct hash_speed *speed, unsigned mask) argument 947 test_ahash_speed(const char *algo, unsigned int secs, struct hash_speed *speed) argument 953 test_hash_speed(const char *algo, unsigned int secs, struct hash_speed *speed) argument 992 test_mb_acipher_jiffies(struct test_mb_skcipher_data *data, int enc, int blen, int secs, u32 num_mb) argument 1060 test_mb_skcipher_speed(const char *algo, int enc, int secs, struct cipher_speed_template *template, unsigned int tcount, u8 *keysize, u32 num_mb) argument 1221 test_acipher_jiffies(struct skcipher_request *req, int enc, int blen, int secs) argument 1293 test_skcipher_speed(const char *algo, int enc, unsigned int secs, struct cipher_speed_template *template, unsigned int tcount, u8 *keysize, bool async) argument 1423 test_acipher_speed(const char *algo, int enc, unsigned int secs, struct cipher_speed_template *template, unsigned int tcount, u8 *keysize) argument 1431 test_cipher_speed(const char *algo, int enc, unsigned int secs, struct cipher_speed_template *template, unsigned int tcount, u8 *keysize) argument [all...] |
/linux-master/crypto/asymmetric_keys/ |
H A D | verify_pefile.c | 113 ctx->secs = pebuf + cursor; 280 if (pefile_compare_shdrs(&ctx->secs[canon[i]], 281 &ctx->secs[loop]) > 0) { 293 if (ctx->secs[i].raw_data_size == 0) 296 pebuf + ctx->secs[i].data_addr, 297 ctx->secs[i].raw_data_size); 302 hashed_bytes += ctx->secs[i].raw_data_size;
|
/linux-master/tools/perf/util/ |
H A D | debug.c | 114 u64 secs, usecs, nsecs = t; local 116 secs = nsecs / NSEC_PER_SEC; 117 nsecs -= secs * NSEC_PER_SEC; 120 ret = fprintf(debug_file(), "[%13" PRIu64 ".%06" PRIu64 "] ", secs, usecs);
|
/linux-master/tools/perf/ |
H A D | builtin-script.c | 783 unsigned long secs; local 884 secs = nsecs / NSEC_PER_SEC; 885 nsecs -= secs * NSEC_PER_SEC; 888 printed += fprintf(fp, "%5lu.%09llu: ", secs, nsecs);
|
/linux-master/tools/testing/selftests/futex/functional/ |
H A D | futex_requeue_pi.c | 292 time_t secs; local 296 secs = (ts.tv_nsec + timeout_ns) / 1000000000; 298 ts.tv_sec += secs;
|
/linux-master/net/xfrm/ |
H A D | xfrm_policy.c | 322 static inline unsigned long make_jiffies(long secs) argument 324 if (secs >= (MAX_SCHEDULE_TIMEOUT-1)/HZ) 327 return secs*HZ;
|
/linux-master/net/batman-adv/ |
H A D | distributed-arp-table.c | 80 __be16 secs; member in struct:batadv_dhcp_packet
|
/linux-master/kernel/time/ |
H A D | time_test.c | 67 time64_t secs; local 70 for (secs = -total_secs; secs <= total_secs; secs += 86400) { 72 time64_to_tm(secs, 0, &result); 74 days = div_s64(secs, 86400);
|
/linux-master/kernel/rcu/ |
H A D | rcu.h | 564 unsigned long secs, 578 unsigned long secs, 582 #define do_trace_rcu_torture_read(rcutorturename, rhp, secs, c_old, c) \
|
/linux-master/kernel/bpf/ |
H A D | btf.c | 5260 struct btf_sec_info secs[ARRAY_SIZE(btf_sec_info_offset)]; local 5268 /* Populate the secs from hdr */ 5270 secs[i] = *(struct btf_sec_info *)((void *)hdr + 5273 sort(secs, ARRAY_SIZE(btf_sec_info_offset), 5280 if (expected_total < secs[i].off) { 5284 if (total < secs[i].off) { 5289 if (total > secs[i].off) { 5293 if (expected_total - total < secs[i].len) { 5298 total += secs[i].len;
|
/linux-master/drivers/net/dsa/qca/ |
H A D | qca8k-common.c | 719 unsigned int secs = msecs / 1000; local 723 val = secs / 7;
|
/linux-master/drivers/md/ |
H A D | md-bitmap.c | 1739 sector_t secs; local 1742 bmc = md_bitmap_get_counter(&bitmap->counts, offset, &secs, 1); 2481 unsigned long secs = mddev->bitmap_info.daemon_sleep / HZ; local 2484 len = sprintf(page, "%lu", secs);
|
/linux-master/arch/x86/tools/ |
H A D | relocs.c | 46 static struct section *secs; variable in typeref:struct:section 257 sec_strtab = secs[shstrndx].strtab; 260 name = sec_strtab + secs[shndx].shdr.sh_name; 288 struct section *sec = &secs[i]; 351 Elf_Sym *symtab = secs[shsymtabndx].symtab; 352 Elf32_Word *xsymtab = secs[shxsymtabndx].xsymtab; 441 secs = calloc(shnum, sizeof(struct section)); 442 if (!secs) { 451 struct section *sec = &secs[i]; 466 sec->link = &secs[se [all...] |
/linux-master/arch/s390/tools/ |
H A D | relocs.c | 60 static struct section *secs; variable in typeref:struct:section 187 secs = calloc(shnum, sizeof(struct section)); 188 if (!secs) 195 struct section *sec = &secs[i]; 214 sec->link = &secs[sec->shdr.sh_link]; 224 struct section *sec = &secs[i]; 301 struct section *sec = &secs[i]; 306 sec_applies = &secs[sec->shdr.sh_info];
|