| /linux/net/ipv4/ | 
| H A D | tcp_metrics.c | 54 static inline struct net *tm_net(const struct tcp_metrics_block *tm) in tm_net()   argument 57 	return READ_ONCE(tm->tcpm_net); in tm_net()
 60 static bool tcp_metric_locked(struct tcp_metrics_block *tm, in tcp_metric_locked()   argument
 64 	return READ_ONCE(tm->tcpm_lock) & (1 << idx); in tcp_metric_locked()
 67 static u32 tcp_metric_get(const struct tcp_metrics_block *tm, in tcp_metric_get()   argument
 71 	return READ_ONCE(tm->tcpm_vals[idx]); in tcp_metric_get()
 74 static void tcp_metric_set(struct tcp_metrics_block *tm, in tcp_metric_set()   argument
 79 	WRITE_ONCE(tm->tcpm_vals[idx], val); in tcp_metric_set()
 98 static void tcpm_suck_dst(struct tcp_metrics_block *tm, in tcpm_suck_dst()   argument
 105 	WRITE_ONCE(tm in tcpm_suck_dst()
 145 tcpm_check_stamp(struct tcp_metrics_block * tm,const struct dst_entry * dst) tcpm_check_stamp()  argument
 168 struct tcp_metrics_block *tm; tcpm_new()  local
 222 tcp_get_encode(struct tcp_metrics_block * tm,int depth) tcp_get_encode()  argument
 235 struct tcp_metrics_block *tm; __tcp_get_metrics()  local
 252 struct tcp_metrics_block *tm; __tcp_get_metrics_req()  local
 295 struct tcp_metrics_block *tm; tcp_get_metrics()  local
 346 struct tcp_metrics_block *tm; tcp_update_metrics()  local
 469 struct tcp_metrics_block *tm; tcp_init_metrics()  local
 544 struct tcp_metrics_block *tm; tcp_peer_is_proven()  local
 564 struct tcp_metrics_block *tm; tcp_fastopen_cache_get()  local
 589 struct tcp_metrics_block *tm; tcp_fastopen_cache_set()  local
 645 tcp_metrics_fill_info(struct sk_buff * msg,struct tcp_metrics_block * tm) tcp_metrics_fill_info()  argument
 746 tcp_metrics_dump_info(struct sk_buff * skb,struct netlink_callback * cb,struct tcp_metrics_block * tm) tcp_metrics_dump_info()  argument
 777 struct tcp_metrics_block *tm; tcp_metrics_nl_dump()  local
 844 struct tcp_metrics_block *tm; tcp_metrics_nl_cmd_get()  local
 902 struct tcp_metrics_block *tm; tcp_metrics_flush_all()  local
 931 struct tcp_metrics_block *tm; tcp_metrics_nl_cmd_del()  local
 [all...]
 | 
| /linux/tools/testing/selftests/powerpc/tm/ | 
| H 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
 20 $(OUTPUT)/tm-syscall: tm-syscall-asm.S
 21 $(OUTPUT)/tm-syscall: CFLAGS += $(KHDR_INCLUDES)
 22 $(OUTPUT)/tm-tmspr: CFLAGS += -pthread
 23 $(OUTPUT)/tm-vmx-unavail: CFLAGS += -pthread -m64
 [all …]
 
 | 
| H A D | .gitignore | 2 tm-resched-dscr3 tm-syscall
 4 tm-signal-msr-resv
 5 tm-signal-stack
 6 tm-vmxcopy
 7 tm-fork
 8 tm-tar
 9 tm-tmspr
 10 tm-exec
 11 tm-signal-context-chk-fpu
 [all …]
 
 | 
| /linux/drivers/isdn/mISDN/ | 
| H A D | tei.c | 221 	struct teimgr	*tm = fi->userdata;  in tei_debug()  local234 	       tm->l2->sapi, tm->l2->tei, &vaf);  in tei_debug()
 458 	struct teimgr *tm = fi->userdata;  in tei_id_request()  local
 460 	if (tm->l2->tei != GROUP_TEI) {  in tei_id_request()
 461 		tm->tei_m.printdebug(&tm->tei_m,  in tei_id_request()
 463 				     tm->l2->tei);  in tei_id_request()
 466 	tm->ri = random_ri();  in tei_id_request()
 468 		tm->tei_m.printdebug(&tm->tei_m,  in tei_id_request()
 469 				     "assign request ri %d", tm->ri);  in tei_id_request()
 470 	put_tei_msg(tm->mgr, ID_REQUEST, tm->ri, GROUP_TEI);  in tei_id_request()
 [all …]
 
 | 
| /linux/fs/btrfs/ | 
| H A D | tree-mod-log.c | 91 	struct tree_mod_elem *tm;  in btrfs_put_tree_mod_seq()  local127 		tm = rb_entry(node, struct tree_mod_elem, node);  in btrfs_put_tree_mod_seq()
 128 		if (tm->seq >= min_seq)  in btrfs_put_tree_mod_seq()
 131 		kfree(tm);  in btrfs_put_tree_mod_seq()
 145 					struct tree_mod_elem *tm)  in tree_mod_log_insert()  argument
 154 	tm->seq = btrfs_inc_tree_mod_seq(fs_info);  in tree_mod_log_insert()
 161 		if (cur->logical < tm->logical)  in tree_mod_log_insert()
 163 		else if (cur->logical > tm->logical)  in tree_mod_log_insert()
 165 		else if (cur->seq < tm->seq)  in tree_mod_log_insert()
 167 		else if (cur->seq > tm->seq)  in tree_mod_log_insert()
 [all …]
 
 | 
| /linux/drivers/virt/coco/guest/ | 
| H A D | tsm-mr.c | 18  * @tm: input to tsm_mr_create_attribute_group() containing MR definitions/ops.25  * Given tm->refresh() is potentially expensive, tm_digest_read() caches MR
 26  * values and calls tm->refresh() only when necessary. Only live MRs (i.e., with
 27  * %TSM_MR_F_LIVE set) can trigger tm->refresh(), while others are assumed to
 28  * retain their values from the last tm->write(). @in_sync tracks if there have
 29  * been tm->write() calls since the last tm->refresh(). That is, tm->refresh()
 33  * tm_digest_write() sets @in_sync to %false and calls tm->write(), whose
 35  * extension semantics (i.e., tm->write() extends the input buffer into the MR).
 40 	const struct tsm_measurements *tm;  member
 58 	mr = &ctx->tm->mrs[attr - ctx->mrs];  in tm_digest_read()
 [all …]
 
 | 
| /linux/drivers/rtc/ | 
| H A D | rtc-wm8350.c | 31 static int wm8350_rtc_readtime(struct device *dev, struct rtc_time *tm)  in wm8350_rtc_readtime()  argument52 			tm->tm_sec = time1[0] & WM8350_RTC_SECS_MASK;  in wm8350_rtc_readtime()
 54 			tm->tm_min = (time1[0] & WM8350_RTC_MINS_MASK)  in wm8350_rtc_readtime()
 57 			tm->tm_hour = time1[1] & WM8350_RTC_HRS_MASK;  in wm8350_rtc_readtime()
 59 			tm->tm_wday = ((time1[1] >> WM8350_RTC_DAY_SHIFT)  in wm8350_rtc_readtime()
 62 			tm->tm_mon = ((time1[2] & WM8350_RTC_MTH_MASK)  in wm8350_rtc_readtime()
 65 			tm->tm_mday = (time1[2] & WM8350_RTC_DATE_MASK);  in wm8350_rtc_readtime()
 67 			tm->tm_year = ((time1[3] & WM8350_RTC_YHUNDREDS_MASK)  in wm8350_rtc_readtime()
 69 			tm->tm_year += time1[3] & WM8350_RTC_YUNITS_MASK;  in wm8350_rtc_readtime()
 71 			tm->tm_yday = rtc_year_days(tm->tm_mday, tm->tm_mon,  in wm8350_rtc_readtime()
 [all …]
 
 | 
| H A D | rtc-m41t94.c | 29 static int m41t94_set_time(struct device *dev, struct rtc_time *tm)  in m41t94_set_time()  argument36 		"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()
 43 	buf[M41T94_REG_HOURS]   = bin2bcd(tm->tm_hour);  in m41t94_set_time()
 44 	buf[M41T94_REG_WDAY]    = bin2bcd(tm->tm_wday + 1);  in m41t94_set_time()
 45 	buf[M41T94_REG_DAY]     = bin2bcd(tm->tm_mday);  in m41t94_set_time()
 46 	buf[M41T94_REG_MONTH]   = bin2bcd(tm->tm_mon + 1);  in m41t94_set_time()
 [all …]
 
 | 
| H A D | rtc-moxart.c | 142 static int moxart_rtc_set_time(struct device *dev, struct rtc_time *tm)  in moxart_rtc_set_time()  argument150 				  (((tm->tm_year - 100) / 10) << 4) |  in moxart_rtc_set_time()
 151 				  ((tm->tm_year - 100) % 10));  in moxart_rtc_set_time()
 154 				  (((tm->tm_mon + 1) / 10) << 4) |  in moxart_rtc_set_time()
 155 				  ((tm->tm_mon + 1) % 10));  in moxart_rtc_set_time()
 158 				  ((tm->tm_mday / 10) << 4) |  in moxart_rtc_set_time()
 159 				  (tm->tm_mday % 10));  in moxart_rtc_set_time()
 162 				  ((tm->tm_hour / 10) << 4) |  in moxart_rtc_set_time()
 163 				  (tm->tm_hour % 10));  in moxart_rtc_set_time()
 166 				  ((tm->tm_min / 10) << 4) |  in moxart_rtc_set_time()
 [all …]
 
 | 
| H A D | rtc-bq4802.c | 50 static int bq4802_read_time(struct device *dev, struct rtc_time *tm)  in bq4802_read_time()  argument62 	tm->tm_sec = p->read(p, 0x00);  in bq4802_read_time()
 63 	tm->tm_min = p->read(p, 0x02);  in bq4802_read_time()
 64 	tm->tm_hour = p->read(p, 0x04);  in bq4802_read_time()
 65 	tm->tm_mday = p->read(p, 0x06);  in bq4802_read_time()
 66 	tm->tm_mon = p->read(p, 0x09);  in bq4802_read_time()
 67 	tm->tm_year = p->read(p, 0x0a);  in bq4802_read_time()
 68 	tm->tm_wday = p->read(p, 0x08);  in bq4802_read_time()
 75 	tm->tm_sec = bcd2bin(tm->tm_sec);  in bq4802_read_time()
 76 	tm->tm_min = bcd2bin(tm->tm_min);  in bq4802_read_time()
 [all …]
 
 | 
| H A D | rtc-m41t93.c | 45 static int m41t93_set_time(struct device *dev, struct rtc_time *tm)  in m41t93_set_time()  argument54 		"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()
 88 	data[M41T93_REG_ST_SEC]		= bin2bcd(tm->tm_sec);  in m41t93_set_time()
 89 	data[M41T93_REG_MIN]		= bin2bcd(tm->tm_min);  in m41t93_set_time()
 90 	data[M41T93_REG_CENT_HOUR]	= bin2bcd(tm->tm_hour) |  in m41t93_set_time()
 91 						((tm->tm_year/100-1) << 6);  in m41t93_set_time()
 92 	data[M41T93_REG_DAY]		= bin2bcd(tm->tm_mday);  in m41t93_set_time()
 [all …]
 
 | 
| H A D | rtc-m48t35.c | 55 static int m48t35_read_time(struct device *dev, struct rtc_time *tm)  in m48t35_read_time()  argument69 	tm->tm_sec = readb(&priv->reg->sec);  in m48t35_read_time()
 70 	tm->tm_min = readb(&priv->reg->min);  in m48t35_read_time()
 71 	tm->tm_hour = readb(&priv->reg->hour);  in m48t35_read_time()
 72 	tm->tm_mday = readb(&priv->reg->date);  in m48t35_read_time()
 73 	tm->tm_mon = readb(&priv->reg->month);  in m48t35_read_time()
 74 	tm->tm_year = readb(&priv->reg->year);  in m48t35_read_time()
 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()
 [all …]
 
 | 
| H A D | lib.c | 50  * @tm:		Pointer to the struct rtc_time.52 void rtc_time64_to_tm(time64_t time, struct rtc_time *tm)  in rtc_time64_to_tm()  argument
 78 	tm->tm_wday = (udays + 3) % 7;  in rtc_time64_to_tm()
 142 	tm->tm_year	= (int) (year - 1900);  in rtc_time64_to_tm()
 143 	tm->tm_mon	= (int) month;  in rtc_time64_to_tm()
 144 	tm->tm_mday	= (int) day;  in rtc_time64_to_tm()
 145 	tm->tm_yday	= (int) day_of_year + 1;  in rtc_time64_to_tm()
 147 	tm->tm_hour = secs / 3600;  in rtc_time64_to_tm()
 148 	secs -= tm->tm_hour * 3600;  in rtc_time64_to_tm()
 149 	tm->tm_min = secs / 60;  in rtc_time64_to_tm()
 [all …]
 
 | 
| H A D | rtc-msm6242.c | 114 static int msm6242_read_time(struct device *dev, struct rtc_time *tm)  in msm6242_read_time()  argument120 	tm->tm_sec  = msm6242_read(priv, MSM6242_SECOND10) * 10 +  in msm6242_read_time()
 122 	tm->tm_min  = msm6242_read(priv, MSM6242_MINUTE10) * 10 +  in msm6242_read_time()
 124 	tm->tm_hour = (msm6242_read(priv, MSM6242_HOUR10) &  in msm6242_read_time()
 127 	tm->tm_mday = msm6242_read(priv, MSM6242_DAY10) * 10 +  in msm6242_read_time()
 129 	tm->tm_wday = msm6242_read(priv, MSM6242_WEEK);  in msm6242_read_time()
 130 	tm->tm_mon  = msm6242_read(priv, MSM6242_MONTH10) * 10 +  in msm6242_read_time()
 132 	tm->tm_year = msm6242_read(priv, MSM6242_YEAR10) * 10 +  in msm6242_read_time()
 134 	if (tm->tm_year <= 69)  in msm6242_read_time()
 135 		tm->tm_year += 100;  in msm6242_read_time()
 [all …]
 
 | 
| H A D | rtc-mt6397.c | 63 			       struct rtc_time *tm, int *sec)  in __mtk_rtc_read_time()  argument74 	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()
 76 	tm->tm_hour = data[RTC_OFFSET_HOUR];  in __mtk_rtc_read_time()
 77 	tm->tm_mday = data[RTC_OFFSET_DOM];  in __mtk_rtc_read_time()
 78 	tm->tm_wday = data[RTC_OFFSET_DOW];  in __mtk_rtc_read_time()
 79 	tm->tm_mon = data[RTC_OFFSET_MTH] & RTC_TC_MTH_MASK;  in __mtk_rtc_read_time()
 80 	tm->tm_year = data[RTC_OFFSET_YEAR];  in __mtk_rtc_read_time()
 88 static int mtk_rtc_read_time(struct device *dev, struct rtc_time *tm)  in mtk_rtc_read_time()  argument
 94 		ret = __mtk_rtc_read_time(rtc, tm, &sec);  in mtk_rtc_read_time()
 [all …]
 
 | 
| H A D | rtc-lpc24xx.c | 68 static int lpc24xx_rtc_set_time(struct device *dev, struct rtc_time *tm)  in lpc24xx_rtc_set_time()  argument75 	rtc_writel(rtc, LPC24XX_SEC,	tm->tm_sec);  in lpc24xx_rtc_set_time()
 76 	rtc_writel(rtc, LPC24XX_MIN,	tm->tm_min);  in lpc24xx_rtc_set_time()
 77 	rtc_writel(rtc, LPC24XX_HOUR,	tm->tm_hour);  in lpc24xx_rtc_set_time()
 78 	rtc_writel(rtc, LPC24XX_DOW,	tm->tm_wday);  in lpc24xx_rtc_set_time()
 79 	rtc_writel(rtc, LPC24XX_DOM,	tm->tm_mday);  in lpc24xx_rtc_set_time()
 80 	rtc_writel(rtc, LPC24XX_DOY,	tm->tm_yday);  in lpc24xx_rtc_set_time()
 81 	rtc_writel(rtc, LPC24XX_MONTH,	tm->tm_mon);  in lpc24xx_rtc_set_time()
 82 	rtc_writel(rtc, LPC24XX_YEAR,	tm->tm_year);  in lpc24xx_rtc_set_time()
 89 static int lpc24xx_rtc_read_time(struct device *dev, struct rtc_time *tm)  in lpc24xx_rtc_read_time()  argument
 [all …]
 
 | 
| H A D | rtc-pcf8563.c | 147 static int pcf8563_rtc_read_time(struct device *dev, struct rtc_time *tm)  in pcf8563_rtc_read_time()  argument172 	tm->tm_sec = bcd2bin(buf[PCF8563_REG_SC] & 0x7F);  in pcf8563_rtc_read_time()
 173 	tm->tm_min = bcd2bin(buf[PCF8563_REG_MN] & 0x7F);  in pcf8563_rtc_read_time()
 174 	tm->tm_hour = bcd2bin(buf[PCF8563_REG_HR] & 0x3F); /* rtc hr 0-23 */  in pcf8563_rtc_read_time()
 175 	tm->tm_mday = bcd2bin(buf[PCF8563_REG_DM] & 0x3F);  in pcf8563_rtc_read_time()
 176 	tm->tm_wday = buf[PCF8563_REG_DW] & 0x07;  in pcf8563_rtc_read_time()
 177 	tm->tm_mon = bcd2bin(buf[PCF8563_REG_MO] & 0x1F) - 1; /* rtc mn 1-12 */  in pcf8563_rtc_read_time()
 178 	tm->tm_year = bcd2bin(buf[PCF8563_REG_YR]) + 100;  in pcf8563_rtc_read_time()
 181 		(tm->tm_year >= 100) : (tm->tm_year < 100);  in pcf8563_rtc_read_time()
 183 	dev_dbg(dev, "%s: tm is secs=%d, mins=%d, hours=%d, "  in pcf8563_rtc_read_time()
 [all …]
 
 | 
| H A D | rtc-s3c.c | 130 static int s3c_rtc_read_time(struct s3c_rtc *info, struct rtc_time *tm)  in s3c_rtc_read_time()  argument140 	tm->tm_min  = readb(info->base + S3C2410_RTCMIN);  in s3c_rtc_read_time()
 141 	tm->tm_hour = readb(info->base + S3C2410_RTCHOUR);  in s3c_rtc_read_time()
 142 	tm->tm_mday = readb(info->base + S3C2410_RTCDATE);  in s3c_rtc_read_time()
 143 	tm->tm_mon  = readb(info->base + S3C2410_RTCMON);  in s3c_rtc_read_time()
 144 	tm->tm_year = readb(info->base + S3C2410_RTCYEAR);  in s3c_rtc_read_time()
 145 	tm->tm_sec  = readb(info->base + S3C2410_RTCSEC);  in s3c_rtc_read_time()
 152 	if (tm->tm_sec == 0 && !have_retried) {  in s3c_rtc_read_time()
 159 	tm->tm_sec  = bcd2bin(tm->tm_sec);  in s3c_rtc_read_time()
 160 	tm->tm_min  = bcd2bin(tm->tm_min);  in s3c_rtc_read_time()
 [all …]
 
 | 
| H A D | rtc-lp8788.c | 109 static int lp8788_rtc_read_time(struct device *dev, struct rtc_time *tm)  in lp8788_rtc_read_time()  argument122 	tm->tm_sec  = data[LPTIME_SEC];  in lp8788_rtc_read_time()
 123 	tm->tm_min  = data[LPTIME_MIN];  in lp8788_rtc_read_time()
 124 	tm->tm_hour = data[LPTIME_HOUR];  in lp8788_rtc_read_time()
 125 	tm->tm_mday = data[LPTIME_MDAY];  in lp8788_rtc_read_time()
 126 	tm->tm_mon  = data[LPTIME_MON] - LP8788_MONTH_OFFSET;  in lp8788_rtc_read_time()
 127 	tm->tm_year = data[LPTIME_YEAR] + LP8788_BASE_YEAR - 1900;  in lp8788_rtc_read_time()
 128 	tm->tm_wday = _to_tm_wday(data[LPTIME_WDAY]);  in lp8788_rtc_read_time()
 133 static int lp8788_rtc_set_time(struct device *dev, struct rtc_time *tm)  in lp8788_rtc_set_time()  argument
 140 	year = tm->tm_year + 1900 - LP8788_BASE_YEAR;  in lp8788_rtc_set_time()
 [all …]
 
 | 
| H A D | rtc-m48t86.c | 66 static int m48t86_rtc_read_time(struct device *dev, struct rtc_time *tm)  in m48t86_rtc_read_time()  argument74 		tm->tm_sec	= m48t86_readb(dev, M48T86_SEC);  in m48t86_rtc_read_time()
 75 		tm->tm_min	= m48t86_readb(dev, M48T86_MIN);  in m48t86_rtc_read_time()
 76 		tm->tm_hour	= m48t86_readb(dev, M48T86_HOUR) & 0x3f;  in m48t86_rtc_read_time()
 77 		tm->tm_mday	= m48t86_readb(dev, M48T86_DOM);  in m48t86_rtc_read_time()
 79 		tm->tm_mon	= m48t86_readb(dev, M48T86_MONTH) - 1;  in m48t86_rtc_read_time()
 80 		tm->tm_year	= m48t86_readb(dev, M48T86_YEAR) + 100;  in m48t86_rtc_read_time()
 81 		tm->tm_wday	= m48t86_readb(dev, M48T86_DOW);  in m48t86_rtc_read_time()
 84 		tm->tm_sec	= bcd2bin(m48t86_readb(dev, M48T86_SEC));  in m48t86_rtc_read_time()
 85 		tm->tm_min	= bcd2bin(m48t86_readb(dev, M48T86_MIN));  in m48t86_rtc_read_time()
 [all …]
 
 | 
| /linux/drivers/net/fddi/skfp/ | 
| H A D | smttimer.c | 34 	struct smt_timer	*tm ;  in smt_timer_stop()  local43 	for (prev = &smc->t.st_queue ; (tm = *prev) ; prev = &tm->tm_next ) {  in smt_timer_stop()
 44 		if (tm == timer) {  in smt_timer_stop()
 45 			*prev = tm->tm_next ;  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()
 85 		if (delta + tm->tm_delta > time) {  in smt_timer_start()
 88 		delta += tm->tm_delta ;  in smt_timer_start()
 [all …]
 
 | 
| /linux/net/sched/ | 
| H A D | em_text.c | 31 	struct text_match *tm = EM_TEXT_PRIV(m);  in em_text_match()  local34 	from = tcf_get_base_ptr(skb, tm->from_layer) - skb->data;  in em_text_match()
 35 	from += tm->from_offset;  in em_text_match()
 37 	to = tcf_get_base_ptr(skb, tm->to_layer) - skb->data;  in em_text_match()
 38 	to += tm->to_offset;  in em_text_match()
 40 	return skb_find_text(skb, from, to, tm->config) != UINT_MAX;  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()
 86 	tm->from_offset = conf->from_offset;  in em_text_change()
 [all …]
 
 | 
| /linux/arch/powerpc/platforms/chrp/ | 
| H A D | time.c | 89 	struct rtc_time tm = *tmarg;  in chrp_set_rtc_time()  local102 		tm.tm_sec = bin2bcd(tm.tm_sec);  in chrp_set_rtc_time()
 103 		tm.tm_min = bin2bcd(tm.tm_min);  in chrp_set_rtc_time()
 104 		tm.tm_hour = bin2bcd(tm.tm_hour);  in chrp_set_rtc_time()
 105 		tm.tm_mon = bin2bcd(tm.tm_mon);  in chrp_set_rtc_time()
 106 		tm.tm_mday = bin2bcd(tm.tm_mday);  in chrp_set_rtc_time()
 107 		tm.tm_year = bin2bcd(tm.tm_year);  in chrp_set_rtc_time()
 109 	chrp_cmos_clock_write(tm.tm_sec,RTC_SECONDS);  in chrp_set_rtc_time()
 110 	chrp_cmos_clock_write(tm.tm_min,RTC_MINUTES);  in chrp_set_rtc_time()
 111 	chrp_cmos_clock_write(tm.tm_hour,RTC_HOURS);  in chrp_set_rtc_time()
 [all …]
 
 | 
| /linux/arch/mips/sibyte/swarm/ | 
| H A D | rtc_xicor1241.c | 110 	struct rtc_time tm;  in xicor_set_time()  local114 	rtc_time64_to_tm(t, &tm);  in xicor_set_time()
 115 	tm.tm_year += 1900;  in xicor_set_time()
 123 	tm.tm_sec = bin2bcd(tm.tm_sec);  in xicor_set_time()
 124 	xicor_write(X1241REG_SC, tm.tm_sec);  in xicor_set_time()
 126 	tm.tm_min = bin2bcd(tm.tm_min);  in xicor_set_time()
 127 	xicor_write(X1241REG_MN, tm.tm_min);  in xicor_set_time()
 129 	tm.tm_mday = bin2bcd(tm.tm_mday);  in xicor_set_time()
 130 	xicor_write(X1241REG_DT, tm.tm_mday);  in xicor_set_time()
 133 	tm.tm_mon ++;  in xicor_set_time()
 [all …]
 
 | 
| H A D | rtc_m41t81.c | 141 	struct rtc_time tm;  in m41t81_set_time()  local145 	rtc_time64_to_tm(t, &tm);  in m41t81_set_time()
 154 	tm.tm_sec = bin2bcd(tm.tm_sec);  in m41t81_set_time()
 155 	m41t81_write(M41T81REG_SC, tm.tm_sec);  in m41t81_set_time()
 157 	tm.tm_min = bin2bcd(tm.tm_min);  in m41t81_set_time()
 158 	m41t81_write(M41T81REG_MN, tm.tm_min);  in m41t81_set_time()
 160 	tm.tm_hour = bin2bcd(tm.tm_hour);  in m41t81_set_time()
 161 	tm.tm_hour = (tm.tm_hour & 0x3f) | (m41t81_read(M41T81REG_HR) & 0xc0);  in m41t81_set_time()
 162 	m41t81_write(M41T81REG_HR, tm.tm_hour);  in m41t81_set_time()
 165 	if (tm.tm_wday == 0) tm.tm_wday = 7;  in m41t81_set_time()
 [all …]
 
 |