Searched refs:tm (Results 1 - 25 of 354) sorted by relevance

1234567891011>>

/linux-master/tools/testing/selftests/powerpc/tm/
H A DMakefile2 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
[all...]
/linux-master/drivers/rtc/
H A Dlib.c50 * @tm: Pointer to the struct rtc_time.
52 void rtc_time64_to_tm(time64_t time, struct rtc_time *tm) argument
66 tm->tm_wday = (days + 4) % 7;
130 tm->tm_year = (int) (year - 1900);
131 tm->tm_mon = (int) month;
132 tm->tm_mday = (int) day;
133 tm->tm_yday = (int) day_of_year + 1;
135 tm->tm_hour = secs / 3600;
136 secs -= tm->tm_hour * 3600;
137 tm
147 rtc_valid_tm(struct rtc_time *tm) argument
168 rtc_tm_to_time64(struct rtc_time *tm) argument
178 rtc_tm_to_ktime(struct rtc_time tm) argument
[all...]
H A Drtc-m41t94.c29 static int m41t94_set_time(struct device *dev, struct rtc_time *tm) argument
36 "write", tm->tm_sec, tm->tm_min,
37 tm->tm_hour, tm->tm_mday,
38 tm->tm_mon, tm->tm_year, tm->tm_wday);
41 buf[M41T94_REG_SECONDS] = bin2bcd(tm->tm_sec);
42 buf[M41T94_REG_MINUTES] = bin2bcd(tm
56 m41t94_read_time(struct device *dev, struct rtc_time *tm) argument
[all...]
H A Drtc-rzn1.c67 static void rzn1_rtc_get_time_snapshot(struct rzn1_rtc *rtc, struct rtc_time *tm) argument
69 tm->tm_sec = readl(rtc->base + RZN1_RTC_SECC);
70 tm->tm_min = readl(rtc->base + RZN1_RTC_MINC);
71 tm->tm_hour = readl(rtc->base + RZN1_RTC_HOURC);
72 tm->tm_wday = readl(rtc->base + RZN1_RTC_WEEKC);
73 tm->tm_mday = readl(rtc->base + RZN1_RTC_DAYC);
74 tm->tm_mon = readl(rtc->base + RZN1_RTC_MONTHC);
75 tm->tm_year = readl(rtc->base + RZN1_RTC_YEARC);
78 static unsigned int rzn1_rtc_tm_to_wday(struct rtc_time *tm) argument
84 time = rtc_tm_to_time64(tm);
91 rzn1_rtc_read_time(struct device *dev, struct rtc_time *tm) argument
120 rzn1_rtc_set_time(struct device *dev, struct rtc_time *tm) argument
186 struct rtc_time *tm = &alrm->time; local
220 struct rtc_time *tm = &alrm->time, tm_now; local
[all...]
H A Drtc-ds1216.c78 static int ds1216_rtc_read_time(struct device *dev, struct rtc_time *tm) argument
86 tm->tm_sec = bcd2bin(regs.sec);
87 tm->tm_min = bcd2bin(regs.min);
90 tm->tm_hour = bcd2bin(regs.hour & 0x1f);
92 tm->tm_hour += 12;
94 tm->tm_hour = bcd2bin(regs.hour & 0x3f);
95 tm->tm_wday = (regs.wday & 7) - 1;
96 tm->tm_mday = bcd2bin(regs.mday & 0x3f);
97 tm->tm_mon = bcd2bin(regs.month & 0x1f);
98 tm
105 ds1216_rtc_set_time(struct device *dev, struct rtc_time *tm) argument
[all...]
H A Drtc-msm6242.c114 static int msm6242_read_time(struct device *dev, struct rtc_time *tm) argument
120 tm->tm_sec = msm6242_read(priv, MSM6242_SECOND10) * 10 +
122 tm->tm_min = msm6242_read(priv, MSM6242_MINUTE10) * 10 +
124 tm->tm_hour = (msm6242_read(priv, MSM6242_HOUR10) &
127 tm->tm_mday = msm6242_read(priv, MSM6242_DAY10) * 10 +
129 tm->tm_wday = msm6242_read(priv, MSM6242_WEEK);
130 tm->tm_mon = msm6242_read(priv, MSM6242_MONTH10) * 10 +
132 tm->tm_year = msm6242_read(priv, MSM6242_YEAR10) * 10 +
134 if (tm->tm_year <= 69)
135 tm
151 msm6242_set_time(struct device *dev, struct rtc_time *tm) argument
[all...]
H A Drtc-moxart.c142 static int moxart_rtc_set_time(struct device *dev, struct rtc_time *tm) argument
150 (((tm->tm_year - 100) / 10) << 4) |
151 ((tm->tm_year - 100) % 10));
154 (((tm->tm_mon + 1) / 10) << 4) |
155 ((tm->tm_mon + 1) % 10));
158 ((tm->tm_mday / 10) << 4) |
159 (tm->tm_mday % 10));
162 ((tm->tm_hour / 10) << 4) |
163 (tm->tm_hour % 10));
166 ((tm
185 moxart_rtc_read_time(struct device *dev, struct rtc_time *tm) argument
[all...]
H A Drtc-wm8350.c31 static int wm8350_rtc_readtime(struct device *dev, struct rtc_time *tm) argument
52 tm->tm_sec = time1[0] & WM8350_RTC_SECS_MASK;
54 tm->tm_min = (time1[0] & WM8350_RTC_MINS_MASK)
57 tm->tm_hour = time1[1] & WM8350_RTC_HRS_MASK;
59 tm->tm_wday = ((time1[1] >> WM8350_RTC_DAY_SHIFT)
62 tm->tm_mon = ((time1[2] & WM8350_RTC_MTH_MASK)
65 tm->tm_mday = (time1[2] & WM8350_RTC_DATE_MASK);
67 tm->tm_year = ((time1[3] & WM8350_RTC_YHUNDREDS_MASK)
69 tm->tm_year += time1[3] & WM8350_RTC_YUNITS_MASK;
71 tm
90 wm8350_rtc_settime(struct device *dev, struct rtc_time *tm) argument
142 struct rtc_time *tm = &alrm->time; local
246 struct rtc_time *tm = &alrm->time; local
[all...]
H A Drtc-bq4802.c50 static int bq4802_read_time(struct device *dev, struct rtc_time *tm) argument
62 tm->tm_sec = p->read(p, 0x00);
63 tm->tm_min = p->read(p, 0x02);
64 tm->tm_hour = p->read(p, 0x04);
65 tm->tm_mday = p->read(p, 0x06);
66 tm->tm_mon = p->read(p, 0x09);
67 tm->tm_year = p->read(p, 0x0a);
68 tm->tm_wday = p->read(p, 0x08);
75 tm->tm_sec = bcd2bin(tm
92 bq4802_set_time(struct device *dev, struct rtc_time *tm) argument
[all...]
H A Drtc-rx4581.c94 static int rx4581_get_datetime(struct device *dev, struct rtc_time *tm) argument
150 tm->tm_sec = bcd2bin(date[RX4581_REG_SC] & 0x7F);
151 tm->tm_min = bcd2bin(date[RX4581_REG_MN] & 0x7F);
152 tm->tm_hour = bcd2bin(date[RX4581_REG_HR] & 0x3F); /* rtc hr 0-23 */
153 tm->tm_wday = ilog2(date[RX4581_REG_DW] & 0x7F);
154 tm->tm_mday = bcd2bin(date[RX4581_REG_DM] & 0x3F);
155 tm->tm_mon = bcd2bin(date[RX4581_REG_MO] & 0x1F) - 1; /* rtc mn 1-12 */
156 tm->tm_year = bcd2bin(date[RX4581_REG_YR]);
157 if (tm->tm_year < 70)
158 tm
170 rx4581_set_datetime(struct device *dev, struct rtc_time *tm) argument
[all...]
H A Drtc-m41t93.c45 static int m41t93_set_time(struct device *dev, struct rtc_time *tm) argument
54 "write", tm->tm_sec, tm->tm_min,
55 tm->tm_hour, tm->tm_mday,
56 tm->tm_mon, tm->tm_year, tm->tm_wday);
58 if (tm->tm_year < 100) {
88 data[M41T93_REG_ST_SEC] = bin2bcd(tm
101 m41t93_get_time(struct device *dev, struct rtc_time *tm) argument
[all...]
/linux-master/arch/powerpc/platforms/8xx/
H A Dmpc8xx.h16 extern int mpc8xx_set_rtc_time(struct rtc_time *tm);
17 extern void mpc8xx_get_rtc_time(struct rtc_time *tm);
/linux-master/drivers/md/persistent-data/
H A Ddm-transaction-manager.h25 void dm_tm_destroy(struct dm_transaction_manager *tm);
30 * You create the non-blocking variant from a normal tm. The interface is
34 * tm when you've finished with it. You may not destroy the original prior
51 int dm_tm_pre_commit(struct dm_transaction_manager *tm);
52 int dm_tm_commit(struct dm_transaction_manager *tm, struct dm_block *superblock);
66 int dm_tm_new_block(struct dm_transaction_manager *tm,
75 * this operation. Because the tm knows the scope of the transaction it
86 int dm_tm_shadow_block(struct dm_transaction_manager *tm, dm_block_t orig,
94 int dm_tm_read_lock(struct dm_transaction_manager *tm, dm_block_t b,
98 void dm_tm_unlock(struct dm_transaction_manager *tm, struc
[all...]
H A Ddm-transaction-manager.c105 static int is_shadow(struct dm_transaction_manager *tm, dm_block_t b) argument
111 spin_lock(&tm->lock);
112 hlist_for_each_entry(si, tm->buckets + bucket, hlist)
117 spin_unlock(&tm->lock);
126 static void insert_shadow(struct dm_transaction_manager *tm, dm_block_t b) argument
135 spin_lock(&tm->lock);
136 hlist_add_head(&si->hlist, tm->buckets + bucket);
137 spin_unlock(&tm->lock);
141 static void wipe_shadow_table(struct dm_transaction_manager *tm) argument
148 spin_lock(&tm
166 struct dm_transaction_manager *tm; local
188 struct dm_transaction_manager *tm; local
200 dm_tm_destroy(struct dm_transaction_manager *tm) argument
212 dm_tm_pre_commit(struct dm_transaction_manager *tm) argument
227 dm_tm_commit(struct dm_transaction_manager *tm, struct dm_block *root) argument
239 dm_tm_new_block(struct dm_transaction_manager *tm, struct dm_block_validator *v, struct dm_block **result) argument
268 __shadow_block(struct dm_transaction_manager *tm, dm_block_t orig, struct dm_block_validator *v, struct dm_block **result) argument
308 dm_tm_shadow_block(struct dm_transaction_manager *tm, dm_block_t orig, struct dm_block_validator *v, struct dm_block **result, int *inc_children) argument
333 dm_tm_read_lock(struct dm_transaction_manager *tm, dm_block_t b, struct dm_block_validator *v, struct dm_block **blk) argument
350 dm_tm_unlock(struct dm_transaction_manager *tm, struct dm_block *b) argument
356 dm_tm_inc(struct dm_transaction_manager *tm, dm_block_t b) argument
367 dm_tm_inc_range(struct dm_transaction_manager *tm, dm_block_t b, dm_block_t e) argument
378 dm_tm_dec(struct dm_transaction_manager *tm, dm_block_t b) argument
389 dm_tm_dec_range(struct dm_transaction_manager *tm, dm_block_t b, dm_block_t e) argument
400 dm_tm_with_runs(struct dm_transaction_manager *tm, const __le64 *value_le, unsigned int count, dm_tm_run_fn fn) argument
430 dm_tm_ref(struct dm_transaction_manager *tm, dm_block_t b, uint32_t *result) argument
439 dm_tm_block_is_shared(struct dm_transaction_manager *tm, dm_block_t b, int *result) argument
448 dm_tm_get_bm(struct dm_transaction_manager *tm) argument
453 dm_tm_issue_prefetches(struct dm_transaction_manager *tm) argument
461 dm_tm_create_internal(struct dm_block_manager *bm, dm_block_t sb_location, struct dm_transaction_manager **tm, struct dm_space_map **sm, int create, void *sm_root, size_t sm_len) argument
504 dm_tm_create_with_sm(struct dm_block_manager *bm, dm_block_t sb_location, struct dm_transaction_manager **tm, struct dm_space_map **sm) argument
512 dm_tm_open_with_sm(struct dm_block_manager *bm, dm_block_t sb_location, void *sm_root, size_t root_len, struct dm_transaction_manager **tm, struct dm_space_map **sm) argument
[all...]
H A Ddm-space-map-disk.h18 * between the tm and sm.
20 struct dm_space_map *dm_sm_disk_create(struct dm_transaction_manager *tm,
23 struct dm_space_map *dm_sm_disk_open(struct dm_transaction_manager *tm,
H A Ddm-space-map-metadata.h26 * between the tm and sm.
34 struct dm_transaction_manager *tm,
42 struct dm_transaction_manager *tm,
/linux-master/arch/powerpc/platforms/maple/
H A Dtime.c51 void maple_get_rtc_time(struct rtc_time *tm) argument
54 tm->tm_sec = maple_clock_read(RTC_SECONDS);
55 tm->tm_min = maple_clock_read(RTC_MINUTES);
56 tm->tm_hour = maple_clock_read(RTC_HOURS);
57 tm->tm_mday = maple_clock_read(RTC_DAY_OF_MONTH);
58 tm->tm_mon = maple_clock_read(RTC_MONTH);
59 tm->tm_year = maple_clock_read(RTC_YEAR);
60 } while (tm->tm_sec != maple_clock_read(RTC_SECONDS));
64 tm->tm_sec = bcd2bin(tm
77 maple_set_rtc_time(struct rtc_time *tm) argument
136 struct rtc_time tm; local
[all...]
H A Dmaple.h7 extern int maple_set_rtc_time(struct rtc_time *tm);
8 extern void maple_get_rtc_time(struct rtc_time *tm);
/linux-master/drivers/net/fddi/skfp/
H A Dsmttimer.c34 struct smt_timer *tm ; local
43 for (prev = &smc->t.st_queue ; (tm = *prev) ; prev = &tm->tm_next ) {
44 if (tm == timer) {
45 *prev = tm->tm_next ;
46 if (tm->tm_next) {
47 tm->tm_next->tm_delta += tm->tm_delta ;
58 struct smt_timer *tm ; local
84 for (prev = &smc->t.st_queue ; (tm
115 struct smt_timer *tm ; local
[all...]
/linux-master/net/ipv4/
H A Dtcp_metrics.c54 static inline struct net *tm_net(const struct tcp_metrics_block *tm) argument
57 return READ_ONCE(tm->tcpm_net);
60 static bool tcp_metric_locked(struct tcp_metrics_block *tm, argument
64 return READ_ONCE(tm->tcpm_lock) & (1 << idx);
67 static u32 tcp_metric_get(const struct tcp_metrics_block *tm, argument
71 return READ_ONCE(tm->tcpm_vals[idx]);
74 static void tcp_metric_set(struct tcp_metrics_block *tm, argument
79 WRITE_ONCE(tm->tcpm_vals[idx], val);
98 static void tcpm_suck_dst(struct tcp_metrics_block *tm, argument
105 WRITE_ONCE(tm
145 tcpm_check_stamp(struct tcp_metrics_block *tm, const struct dst_entry *dst) argument
168 struct tcp_metrics_block *tm; local
222 tcp_get_encode(struct tcp_metrics_block *tm, int depth) argument
235 struct tcp_metrics_block *tm; local
252 struct tcp_metrics_block *tm; local
295 struct tcp_metrics_block *tm; local
346 struct tcp_metrics_block *tm; local
469 struct tcp_metrics_block *tm; local
544 struct tcp_metrics_block *tm; local
564 struct tcp_metrics_block *tm; local
589 struct tcp_metrics_block *tm; local
639 tcp_metrics_fill_info(struct sk_buff *msg, struct tcp_metrics_block *tm) argument
739 tcp_metrics_dump_info(struct sk_buff *skb, struct netlink_callback *cb, struct tcp_metrics_block *tm) argument
772 struct tcp_metrics_block *tm; local
841 struct tcp_metrics_block *tm; local
899 struct tcp_metrics_block *tm; local
928 struct tcp_metrics_block *tm; local
[all...]
/linux-master/arch/powerpc/platforms/chrp/
H A Dtime.c89 struct rtc_time tm = *tmarg; local
102 tm.tm_sec = bin2bcd(tm.tm_sec);
103 tm.tm_min = bin2bcd(tm.tm_min);
104 tm.tm_hour = bin2bcd(tm.tm_hour);
105 tm.tm_mon = bin2bcd(tm.tm_mon);
106 tm
130 chrp_get_rtc_time(struct rtc_time *tm) argument
[all...]
/linux-master/net/sched/
H A Dem_text.c31 struct text_match *tm = EM_TEXT_PRIV(m); local
34 from = tcf_get_base_ptr(skb, tm->from_layer) - skb->data;
35 from += tm->from_offset;
37 to = tcf_get_base_ptr(skb, tm->to_layer) - skb->data;
38 to += tm->to_offset;
40 return skb_find_text(skb, from, to, tm->config) != UINT_MAX;
46 struct text_match *tm; local
80 tm = kmalloc(sizeof(*tm), GFP_KERNEL);
81 if (tm
108 struct text_match *tm = EM_TEXT_PRIV(m); local
[all...]
/linux-master/arch/powerpc/platforms/powernv/
H A Dopal-rtc.c22 static void __init opal_to_tm(u32 y_m_d, u64 h_m_s_ms, struct rtc_time *tm) argument
24 tm->tm_year = ((bcd2bin(y_m_d >> 24) * 100) +
26 tm->tm_mon = bcd2bin((y_m_d >> 8) & 0xff) - 1;
27 tm->tm_mday = bcd2bin(y_m_d & 0xff);
28 tm->tm_hour = bcd2bin((h_m_s_ms >> 56) & 0xff);
29 tm->tm_min = bcd2bin((h_m_s_ms >> 48) & 0xff);
30 tm->tm_sec = bcd2bin((h_m_s_ms >> 40) & 0xff);
31 tm->tm_wday = -1;
36 struct rtc_time tm; local
60 opal_to_tm(y_m_d, h_m_s_ms, &tm);
[all...]
/linux-master/fs/btrfs/
H A Dtree-mod-log.c80 struct tree_mod_elem *tm; local
116 tm = rb_entry(node, struct tree_mod_elem, node);
117 if (tm->seq >= min_seq)
120 kfree(tm);
134 struct tree_mod_elem *tm)
143 tm->seq = btrfs_inc_tree_mod_seq(fs_info);
150 if (cur->logical < tm->logical)
152 else if (cur->logical > tm->logical)
154 else if (cur->seq < tm->seq)
156 else if (cur->seq > tm
133 tree_mod_log_insert(struct btrfs_fs_info *fs_info, struct tree_mod_elem *tm) argument
205 struct tree_mod_elem *tm; local
227 struct tree_mod_elem *tm; local
265 struct tree_mod_elem *tm; local
285 struct tree_mod_elem *tm = NULL; local
394 struct tree_mod_elem *tm = NULL; local
737 struct tree_mod_elem *tm; local
797 struct tree_mod_elem *tm = first_tm; local
917 struct tree_mod_elem *tm; local
974 struct tree_mod_elem *tm; local
1076 struct tree_mod_elem *tm; local
[all...]
/linux-master/tools/testing/selftests/powerpc/ptrace/
H A DMakefile3 TM_TESTS := ptrace-tm-gpr
4 TM_TESTS += ptrace-tm-spd-gpr
5 TM_TESTS += ptrace-tm-spd-tar
6 TM_TESTS += ptrace-tm-spd-vsx
7 TM_TESTS += ptrace-tm-spr
8 TM_TESTS += ptrace-tm-tar
9 TM_TESTS += ptrace-tm-vsx
35 $(TM_TESTS): CFLAGS += -I../tm -mhtm

Completed in 273 milliseconds

1234567891011>>