/linux/drivers/md/persistent-data/ |
A D | dm-transaction-manager.c | 166 tm = kmalloc(sizeof(*tm), GFP_KERNEL); in dm_tm_create() 167 if (!tm) in dm_tm_create() 172 tm->bm = bm; in dm_tm_create() 173 tm->sm = sm; in dm_tm_create() 181 return tm; in dm_tm_create() 188 tm = kmalloc(sizeof(*tm), GFP_KERNEL); in dm_tm_create_non_blocking_clone() 189 if (tm) { in dm_tm_create_non_blocking_clone() 194 return tm; in dm_tm_create_non_blocking_clone() 203 kfree(tm); in dm_tm_destroy() 445 return tm->bm; in dm_tm_get_bm() [all …]
|
/linux/net/ipv4/ |
A D | tcp_metrics.c | 166 if (tm) { in tcpm_new() 175 for (tm = deref_locked(oldest->tcpm_next); tm; in tcpm_new() 176 tm = deref_locked(tm->tcpm_next)) { in tcpm_new() 182 tm = kmalloc(sizeof(*tm), GFP_ATOMIC); in tcpm_new() 204 if (tm) in tcp_get_encode() 219 tm = rcu_dereference(tm->tcpm_next)) { in __tcp_get_metrics() 261 tm = rcu_dereference(tm->tcpm_next)) { in __tcp_get_metrics_req() 532 if (tm && tcp_metric_get(tm, TCP_METRIC_RTT)) in tcp_peer_is_proven() 852 tm = rcu_dereference(tm->tcpm_next)) { in tcp_metrics_nl_cmd_get() 888 for (tm = deref_locked(*pp); tm; tm = deref_locked(*pp)) { in tcp_metrics_flush_all() [all …]
|
/linux/tools/testing/selftests/powerpc/tm/ |
A D | Makefile | 2 SIGNAL_CONTEXT_CHK_TESTS := tm-signal-context-chk-gpr tm-signal-context-chk-fpu \ 3 tm-signal-context-chk-vmx tm-signal-context-chk-vsx 5 TEST_GEN_PROGS := tm-resched-dscr tm-syscall tm-signal-msr-resv tm-signal-stack \ 6 tm-vmxcopy tm-fork tm-tar tm-tmspr tm-vmx-unavail tm-unavailable tm-trap \ 7 $(SIGNAL_CONTEXT_CHK_TESTS) tm-sigreturn tm-signal-sigreturn-nt \ 8 tm-signal-context-force-tm tm-poison tm-signal-pagefault 19 $(OUTPUT)/tm-syscall: tm-syscall-asm.S 21 $(OUTPUT)/tm-tmspr: CFLAGS += -pthread 23 $(OUTPUT)/tm-resched-dscr: ../pmu/lib.c 26 $(OUTPUT)/tm-signal-context-force-tm: CFLAGS += -pthread -m64 [all …]
|
A D | .gitignore | 2 tm-resched-dscr 3 tm-syscall 5 tm-signal-stack 6 tm-vmxcopy 7 tm-fork 8 tm-tar 9 tm-tmspr 10 tm-exec 15 tm-signal-context-force-tm 20 tm-trap [all …]
|
/linux/drivers/rtc/ |
A D | lib.c | 131 tm->tm_mon = (int) month; in rtc_time64_to_tm() 132 tm->tm_mday = (int) day; in rtc_time64_to_tm() 135 tm->tm_hour = secs / 3600; in rtc_time64_to_tm() 137 tm->tm_min = secs / 60; in rtc_time64_to_tm() 138 tm->tm_sec = secs - tm->tm_min * 60; in rtc_time64_to_tm() 140 tm->tm_isdst = 0; in rtc_time64_to_tm() 149 if (tm->tm_year < 70 || in rtc_valid_tm() 152 tm->tm_mday < 1 || in rtc_valid_tm() 153 tm->tm_mday > rtc_month_days(tm->tm_mon, in rtc_valid_tm() 170 return mktime64(((unsigned int)tm->tm_year + 1900), tm->tm_mon + 1, in rtc_tm_to_time64() [all …]
|
A D | rtc-wm8350.c | 71 tm->tm_yday = rtc_year_days(tm->tm_mday, tm->tm_mon, in wm8350_rtc_readtime() 97 time[0] = tm->tm_sec; in wm8350_rtc_settime() 152 tm->tm_sec = -1; in wm8350_rtc_readalarm() 156 tm->tm_min = -1; in wm8350_rtc_readalarm() 162 tm->tm_hour = -1; in wm8350_rtc_readalarm() 165 if (tm->tm_wday > 7) in wm8350_rtc_readalarm() 166 tm->tm_wday = -1; in wm8350_rtc_readalarm() 170 tm->tm_mon = -1; in wm8350_rtc_readalarm() 172 tm->tm_mon = (tm->tm_mon >> WM8350_RTC_ALMMTH_SHIFT) - 1; in wm8350_rtc_readalarm() 176 tm->tm_mday = -1; in wm8350_rtc_readalarm() [all …]
|
A D | rtc-m41t94.c | 36 "write", tm->tm_sec, tm->tm_min, in m41t94_set_time() 37 tm->tm_hour, tm->tm_mday, in m41t94_set_time() 38 tm->tm_mon, tm->tm_year, tm->tm_wday); in m41t94_set_time() 41 buf[M41T94_REG_SECONDS] = bin2bcd(tm->tm_sec); in m41t94_set_time() 42 buf[M41T94_REG_MINUTES] = bin2bcd(tm->tm_min); in m41t94_set_time() 49 if (tm->tm_year >= 100) in m41t94_set_time() 85 tm->tm_hour = bcd2bin(hour & 0x3f); in m41t94_read_time() 91 tm->tm_year += 100; in m41t94_read_time() 95 "read", tm->tm_sec, tm->tm_min, in m41t94_read_time() 96 tm->tm_hour, tm->tm_mday, in m41t94_read_time() [all …]
|
A D | rtc-moxart.c | 176 __func__, tm->tm_year, tm->tm_mon, tm->tm_mday, in moxart_rtc_set_time() 177 tm->tm_hour, tm->tm_min, tm->tm_sec); in moxart_rtc_set_time() 199 tm->tm_hour += 12; in moxart_rtc_read_time() 201 tm->tm_hour = 0; in moxart_rtc_read_time() 212 tm->tm_mon--; in moxart_rtc_read_time() 216 tm->tm_year += 100; in moxart_rtc_read_time() 222 tm->tm_yday = day_of_year[tm->tm_mon]; in moxart_rtc_read_time() 223 tm->tm_yday += (tm->tm_mday - 1); in moxart_rtc_read_time() 225 if (!(tm->tm_year % 4) && (tm->tm_year % 100)) in moxart_rtc_read_time() 226 tm->tm_yday++; in moxart_rtc_read_time() [all …]
|
A D | rtc-msm6242.c | 129 tm->tm_wday = msm6242_read(priv, MSM6242_WEEK); in msm6242_read_time() 134 if (tm->tm_year <= 69) in msm6242_read_time() 135 tm->tm_year += 100; in msm6242_read_time() 140 if (!pm && tm->tm_hour == 12) in msm6242_read_time() 141 tm->tm_hour = 0; in msm6242_read_time() 142 else if (pm && tm->tm_hour != 12) in msm6242_read_time() 143 tm->tm_hour += 12; in msm6242_read_time() 163 else if (tm->tm_hour >= 12) in msm6242_set_time() 171 if (tm->tm_wday != -1) in msm6242_set_time() 175 if (tm->tm_year >= 100) in msm6242_set_time() [all …]
|
A D | rtc-m41t93.c | 54 "write", tm->tm_sec, tm->tm_min, in m41t93_set_time() 55 tm->tm_hour, tm->tm_mday, in m41t93_set_time() 56 tm->tm_mon, tm->tm_year, tm->tm_wday); in m41t93_set_time() 58 if (tm->tm_year < 100) { in m41t93_set_time() 89 data[M41T93_REG_MIN] = bin2bcd(tm->tm_min); in m41t93_set_time() 91 ((tm->tm_year/100-1) << 6); in m41t93_set_time() 144 tm->tm_min = bcd2bin(buf[M41T93_REG_MIN]); in m41t93_get_time() 146 tm->tm_mday = bcd2bin(buf[M41T93_REG_DAY]); in m41t93_get_time() 155 "read", tm->tm_sec, tm->tm_min, in m41t93_get_time() 156 tm->tm_hour, tm->tm_mday, in m41t93_get_time() [all …]
|
A D | rtc-pcf8563.c | 233 (tm->tm_year >= 100) : (tm->tm_year < 100); in pcf8563_rtc_read_time() 238 tm->tm_sec, tm->tm_min, tm->tm_hour, in pcf8563_rtc_read_time() 239 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); in pcf8563_rtc_read_time() 253 tm->tm_sec, tm->tm_min, tm->tm_hour, in pcf8563_rtc_set_time() 254 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); in pcf8563_rtc_set_time() 268 if (pcf8563->c_polarity ? (tm->tm_year >= 100) : (tm->tm_year < 100)) in pcf8563_rtc_set_time() 315 err = pcf8563_get_alarm_mode(client, &tm->enabled, &tm->pending); in pcf8563_rtc_read_alarm() 321 tm->time.tm_hour, tm->time.tm_mday, tm->time.tm_wday, in pcf8563_rtc_read_alarm() 322 tm->enabled, tm->pending); in pcf8563_rtc_read_alarm() 343 tm->time.tm_min, tm->time.tm_hour, tm->time.tm_wday, in pcf8563_rtc_set_alarm() [all …]
|
A D | rtc-rx4581.c | 156 tm->tm_year = bcd2bin(date[RX4581_REG_YR]); in rx4581_get_datetime() 157 if (tm->tm_year < 70) in rx4581_get_datetime() 164 tm->tm_sec, tm->tm_min, tm->tm_hour, in rx4581_get_datetime() 165 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); in rx4581_get_datetime() 179 tm->tm_sec, tm->tm_min, tm->tm_hour, in rx4581_set_datetime() 180 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); in rx4581_set_datetime() 184 buf[RX4581_REG_SC+1] = bin2bcd(tm->tm_sec); in rx4581_set_datetime() 185 buf[RX4581_REG_MN+1] = bin2bcd(tm->tm_min); in rx4581_set_datetime() 186 buf[RX4581_REG_HR+1] = bin2bcd(tm->tm_hour); in rx4581_set_datetime() 188 buf[RX4581_REG_DM+1] = bin2bcd(tm->tm_mday); in rx4581_set_datetime() [all …]
|
A D | rtc-stm32.c | 237 tm->tm_sec = bin2bcd(tm->tm_sec); in tm2bcd() 238 tm->tm_min = bin2bcd(tm->tm_min); in tm2bcd() 239 tm->tm_hour = bin2bcd(tm->tm_hour); in tm2bcd() 241 tm->tm_mday = bin2bcd(tm->tm_mday); in tm2bcd() 242 tm->tm_mon = bin2bcd(tm->tm_mon + 1); in tm2bcd() 249 tm->tm_wday = (!tm->tm_wday) ? 7 : tm->tm_wday; in tm2bcd() 255 tm->tm_sec = bcd2bin(tm->tm_sec); in bcd2tm() 256 tm->tm_min = bcd2bin(tm->tm_min); in bcd2tm() 257 tm->tm_hour = bcd2bin(tm->tm_hour); in bcd2tm() 259 tm->tm_mday = bcd2bin(tm->tm_mday); in bcd2tm() [all …]
|
A D | rtc-bq4802.c | 75 tm->tm_sec = bcd2bin(tm->tm_sec); in bq4802_read_time() 76 tm->tm_min = bcd2bin(tm->tm_min); in bq4802_read_time() 77 tm->tm_hour = bcd2bin(tm->tm_hour); in bq4802_read_time() 78 tm->tm_mday = bcd2bin(tm->tm_mday); in bq4802_read_time() 79 tm->tm_mon = bcd2bin(tm->tm_mon); in bq4802_read_time() 80 tm->tm_year = bcd2bin(tm->tm_year); in bq4802_read_time() 81 tm->tm_wday = bcd2bin(tm->tm_wday); in bq4802_read_time() 87 tm->tm_mon--; in bq4802_read_time() 104 day = tm->tm_mday; in bq4802_set_time() 106 min = tm->tm_min; in bq4802_set_time() [all …]
|
A D | rtc-m48t35.c | 78 tm->tm_sec = bcd2bin(tm->tm_sec); in m48t35_read_time() 79 tm->tm_min = bcd2bin(tm->tm_min); in m48t35_read_time() 80 tm->tm_hour = bcd2bin(tm->tm_hour); in m48t35_read_time() 81 tm->tm_mday = bcd2bin(tm->tm_mday); in m48t35_read_time() 82 tm->tm_mon = bcd2bin(tm->tm_mon); in m48t35_read_time() 83 tm->tm_year = bcd2bin(tm->tm_year); in m48t35_read_time() 89 tm->tm_year += 70; in m48t35_read_time() 93 tm->tm_mon--; in m48t35_read_time() 106 day = tm->tm_mday; in m48t35_set_time() 108 min = tm->tm_min; in m48t35_set_time() [all …]
|
A D | rtc-mt6397.c | 74 tm->tm_sec = data[RTC_OFFSET_SEC]; in __mtk_rtc_read_time() 75 tm->tm_min = data[RTC_OFFSET_MIN]; in __mtk_rtc_read_time() 77 tm->tm_mday = data[RTC_OFFSET_DOM]; in __mtk_rtc_read_time() 97 } while (sec < tm->tm_sec); in mtk_rtc_read_time() 106 tm->tm_mon--; in mtk_rtc_read_time() 107 time = rtc_tm_to_time64(tm); in mtk_rtc_read_time() 113 tm->tm_wday = (days + 4) % 7; in mtk_rtc_read_time() 126 tm->tm_mon++; in mtk_rtc_set_time() 151 struct rtc_time *tm = &alm->time; in mtk_rtc_read_alarm() local 182 tm->tm_mon--; in mtk_rtc_read_alarm() [all …]
|
/linux/fs/btrfs/ |
A D | tree-mod-log.c | 205 tm = kzalloc(sizeof(*tm), flags); in alloc_tree_mod_elem() 206 if (!tm) in alloc_tree_mod_elem() 232 if (!tm) in btrfs_tree_mod_log_insert_key() 265 tm = kzalloc(sizeof(*tm), GFP_NOFS); in btrfs_tree_mod_log_insert_move() 375 tm = kzalloc(sizeof(*tm), GFP_NOFS); in btrfs_tree_mod_log_insert_root() 667 while (tm && tm->seq >= time_seq) { in tree_mod_log_rewind() 679 btrfs_set_node_key(eb, &tm->key, tm->slot); in tree_mod_log_rewind() 687 btrfs_set_node_key(eb, &tm->key, tm->slot); in tree_mod_log_rewind() 747 if (!tm) in btrfs_tree_mod_log_rewind() 851 ASSERT(tm2 == tm || tm2->seq > tm->seq); in btrfs_get_old_root() [all …]
|
/linux/arch/powerpc/platforms/maple/ |
A D | time.c | 64 tm->tm_sec = bcd2bin(tm->tm_sec); in maple_get_rtc_time() 65 tm->tm_min = bcd2bin(tm->tm_min); in maple_get_rtc_time() 66 tm->tm_hour = bcd2bin(tm->tm_hour); in maple_get_rtc_time() 67 tm->tm_mday = bcd2bin(tm->tm_mday); in maple_get_rtc_time() 68 tm->tm_mon = bcd2bin(tm->tm_mon); in maple_get_rtc_time() 69 tm->tm_year = bcd2bin(tm->tm_year); in maple_get_rtc_time() 74 tm->tm_wday = -1; in maple_get_rtc_time() 92 sec = tm->tm_sec; in maple_set_rtc_time() 93 min = tm->tm_min; in maple_set_rtc_time() 94 hour = tm->tm_hour; in maple_set_rtc_time() [all …]
|
/linux/drivers/net/fddi/skfp/ |
A D | smttimer.c | 34 struct smt_timer *tm ; in smt_timer_stop() local 43 for (prev = &smc->t.st_queue ; (tm = *prev) ; prev = &tm->tm_next ) { in smt_timer_stop() 44 if (tm == timer) { in smt_timer_stop() 46 if (tm->tm_next) { in smt_timer_stop() 47 tm->tm_next->tm_delta += tm->tm_delta ; in smt_timer_stop() 58 struct smt_timer *tm ; in smt_timer_start() local 84 for (prev = &smc->t.st_queue ; (tm = *prev) ; prev = &tm->tm_next ) { in smt_timer_start() 92 timer->tm_next = tm ; in smt_timer_start() 94 if (tm) in smt_timer_start() 128 tm = tm->tm_next ; in timer_done() [all …]
|
/linux/drivers/isdn/mISDN/ |
A D | tei.c | 461 tm->tei_m.printdebug(&tm->tei_m, in tei_id_request() 468 tm->tei_m.printdebug(&tm->tei_m, in tei_id_request() 605 4 - tm->nval, tm->ri); in tei_id_req_tout() 624 3 - tm->nval, tm->l2->tei); in tei_id_ver_tout() 666 tm->tei_m.printdebug(&tm->tei_m, in tei_assign_req() 673 tm->tei_m.printdebug(&tm->tei_m, in tei_assign_req() 675 put_tei_msg(tm->mgr, ID_ASSIGNED, tm->ri, tm->l2->tei); in tei_assign_req() 815 l2->tm->tei_m.userdata = l2->tm; in create_new_tei() 936 struct teimgr *tm = l2->tm; in l2_tei() local 971 struct teimgr *tm = l2->tm; in TEIrelease() local [all …]
|
/linux/arch/powerpc/platforms/chrp/ |
A D | time.c | 104 tm.tm_sec = bin2bcd(tm.tm_sec); in chrp_set_rtc_time() 105 tm.tm_min = bin2bcd(tm.tm_min); in chrp_set_rtc_time() 106 tm.tm_hour = bin2bcd(tm.tm_hour); in chrp_set_rtc_time() 107 tm.tm_mon = bin2bcd(tm.tm_mon); in chrp_set_rtc_time() 108 tm.tm_mday = bin2bcd(tm.tm_mday); in chrp_set_rtc_time() 109 tm.tm_year = bin2bcd(tm.tm_year); in chrp_set_rtc_time() 155 tm->tm_sec = sec; in chrp_get_rtc_time() 156 tm->tm_min = min; in chrp_get_rtc_time() 157 tm->tm_hour = hour; in chrp_get_rtc_time() 158 tm->tm_mday = day; in chrp_get_rtc_time() [all …]
|
/linux/arch/mips/sibyte/swarm/ |
A D | rtc_m41t81.c | 141 struct rtc_time tm; in m41t81_set_time() local 154 tm.tm_sec = bin2bcd(tm.tm_sec); in m41t81_set_time() 157 tm.tm_min = bin2bcd(tm.tm_min); in m41t81_set_time() 160 tm.tm_hour = bin2bcd(tm.tm_hour); in m41t81_set_time() 165 if (tm.tm_wday == 0) tm.tm_wday = 7; in m41t81_set_time() 166 tm.tm_wday = bin2bcd(tm.tm_wday); in m41t81_set_time() 169 tm.tm_mday = bin2bcd(tm.tm_mday); in m41t81_set_time() 173 tm.tm_mon ++; in m41t81_set_time() 174 tm.tm_mon = bin2bcd(tm.tm_mon); in m41t81_set_time() 178 tm.tm_year %= 100; in m41t81_set_time() [all …]
|
A D | rtc_xicor1241.c | 110 struct rtc_time tm; in xicor_set_time() local 115 tm.tm_year += 1900; in xicor_set_time() 123 tm.tm_sec = bin2bcd(tm.tm_sec); in xicor_set_time() 126 tm.tm_min = bin2bcd(tm.tm_min); in xicor_set_time() 129 tm.tm_mday = bin2bcd(tm.tm_mday); in xicor_set_time() 133 tm.tm_mon ++; in xicor_set_time() 134 tm.tm_mon = bin2bcd(tm.tm_mon); in xicor_set_time() 139 tm.tm_year %= 100; in xicor_set_time() 147 tm.tm_hour = bin2bcd(tm.tm_hour); in xicor_set_time() 154 tm.tm_hour -= 12; in xicor_set_time() [all …]
|
/linux/net/sched/ |
A D | em_text.c | 35 from += tm->from_offset; in em_text_match() 38 to += tm->to_offset; in em_text_match() 46 struct text_match *tm; in em_text_change() local 80 tm = kmalloc(sizeof(*tm), GFP_KERNEL); in em_text_change() 81 if (tm == NULL) { in em_text_change() 89 tm->to_layer = conf->to_layer; in em_text_change() 90 tm->config = ts_conf; in em_text_change() 92 m->datalen = sizeof(*tm); in em_text_change() 93 m->data = (unsigned long) tm; in em_text_change() 111 conf.to_offset = tm->to_offset; in em_text_dump() [all …]
|
/linux/tools/testing/selftests/rtc/ |
A D | rtctest.c | 115 struct rtc_time tm; in TEST_F() local 123 secs = timegm((struct tm *)&tm) + ALARM_DELTA; in TEST_F() 124 gmtime_r(&secs, (struct tm *)&tm); in TEST_F() 137 tm.tm_hour, tm.tm_min, tm.tm_sec); in TEST_F() 161 new = timegm((struct tm *)&tm); in TEST_F() 210 new = timegm((struct tm *)&tm); in TEST_F() 225 secs = timegm((struct tm *)&tm) + 60 - tm.tm_sec; 226 gmtime_r(&secs, (struct tm *)&tm); 239 tm.tm_hour, tm.tm_min, tm.tm_sec); 263 new = timegm((struct tm *)&tm); [all …]
|