Home
last modified time | relevance | path

Searched refs:tm (Results 1 – 25 of 318) sorted by relevance

12345678910>>...13

/Linux-v4.19/drivers/md/persistent-data/
Ddm-transaction-manager.c103 static int is_shadow(struct dm_transaction_manager *tm, dm_block_t b) in is_shadow() argument
109 spin_lock(&tm->lock); in is_shadow()
110 hlist_for_each_entry(si, tm->buckets + bucket, hlist) in is_shadow()
115 spin_unlock(&tm->lock); in is_shadow()
124 static void insert_shadow(struct dm_transaction_manager *tm, dm_block_t b) in insert_shadow() argument
133 spin_lock(&tm->lock); in insert_shadow()
134 hlist_add_head(&si->hlist, tm->buckets + bucket); in insert_shadow()
135 spin_unlock(&tm->lock); in insert_shadow()
139 static void wipe_shadow_table(struct dm_transaction_manager *tm) in wipe_shadow_table() argument
146 spin_lock(&tm->lock); in wipe_shadow_table()
[all …]
/Linux-v4.19/net/ipv4/
Dtcp_metrics.c54 static inline struct net *tm_net(struct tcp_metrics_block *tm) in tm_net() argument
56 return read_pnet(&tm->tcpm_net); in tm_net()
59 static bool tcp_metric_locked(struct tcp_metrics_block *tm, in tcp_metric_locked() argument
62 return tm->tcpm_lock & (1 << idx); in tcp_metric_locked()
65 static u32 tcp_metric_get(struct tcp_metrics_block *tm, in tcp_metric_get() argument
68 return tm->tcpm_vals[idx]; in tcp_metric_get()
71 static void tcp_metric_set(struct tcp_metrics_block *tm, in tcp_metric_set() argument
75 tm->tcpm_vals[idx] = val; in tcp_metric_set()
93 static void tcpm_suck_dst(struct tcp_metrics_block *tm, in tcpm_suck_dst() argument
100 tm->tcpm_stamp = jiffies; in tcpm_suck_dst()
[all …]
/Linux-v4.19/drivers/rtc/
Drtc-lib.c53 void rtc_time64_to_tm(time64_t time, struct rtc_time *tm) in rtc_time64_to_tm() argument
62 tm->tm_wday = (days + 4) % 7; in rtc_time64_to_tm()
72 tm->tm_year = year - 1900; in rtc_time64_to_tm()
73 tm->tm_yday = days + 1; in rtc_time64_to_tm()
83 tm->tm_mon = month; in rtc_time64_to_tm()
84 tm->tm_mday = days + 1; in rtc_time64_to_tm()
86 tm->tm_hour = secs / 3600; in rtc_time64_to_tm()
87 secs -= tm->tm_hour * 3600; in rtc_time64_to_tm()
88 tm->tm_min = secs / 60; in rtc_time64_to_tm()
89 tm->tm_sec = secs - tm->tm_min * 60; in rtc_time64_to_tm()
[all …]
Drtc-m41t94.c32 static int m41t94_set_time(struct device *dev, struct rtc_time *tm) in m41t94_set_time() argument
39 "write", tm->tm_sec, tm->tm_min, in m41t94_set_time()
40 tm->tm_hour, tm->tm_mday, in m41t94_set_time()
41 tm->tm_mon, tm->tm_year, tm->tm_wday); in m41t94_set_time()
44 buf[M41T94_REG_SECONDS] = bin2bcd(tm->tm_sec); in m41t94_set_time()
45 buf[M41T94_REG_MINUTES] = bin2bcd(tm->tm_min); in m41t94_set_time()
46 buf[M41T94_REG_HOURS] = bin2bcd(tm->tm_hour); in m41t94_set_time()
47 buf[M41T94_REG_WDAY] = bin2bcd(tm->tm_wday + 1); in m41t94_set_time()
48 buf[M41T94_REG_DAY] = bin2bcd(tm->tm_mday); in m41t94_set_time()
49 buf[M41T94_REG_MONTH] = bin2bcd(tm->tm_mon + 1); in m41t94_set_time()
[all …]
Drtc-at91rm9200.c114 struct rtc_time *tm) in at91_rtc_decodetime() argument
125 tm->tm_sec = bcd2bin((time & AT91_RTC_SEC) >> 0); in at91_rtc_decodetime()
126 tm->tm_min = bcd2bin((time & AT91_RTC_MIN) >> 8); in at91_rtc_decodetime()
127 tm->tm_hour = bcd2bin((time & AT91_RTC_HOUR) >> 16); in at91_rtc_decodetime()
133 tm->tm_year = bcd2bin(date & AT91_RTC_CENT) * 100; /* century */ in at91_rtc_decodetime()
134 tm->tm_year += bcd2bin((date & AT91_RTC_YEAR) >> 8); /* year */ in at91_rtc_decodetime()
136 tm->tm_wday = bcd2bin((date & AT91_RTC_DAY) >> 21) - 1; /* day of the week [0-6], Sunday=0 */ in at91_rtc_decodetime()
137 tm->tm_mon = bcd2bin((date & AT91_RTC_MONTH) >> 16) - 1; in at91_rtc_decodetime()
138 tm->tm_mday = bcd2bin((date & AT91_RTC_DATE) >> 24); in at91_rtc_decodetime()
144 static int at91_rtc_readtime(struct device *dev, struct rtc_time *tm) in at91_rtc_readtime() argument
[all …]
Drtc-wm8350.c36 static int wm8350_rtc_readtime(struct device *dev, struct rtc_time *tm) in wm8350_rtc_readtime() argument
57 tm->tm_sec = time1[0] & WM8350_RTC_SECS_MASK; in wm8350_rtc_readtime()
59 tm->tm_min = (time1[0] & WM8350_RTC_MINS_MASK) in wm8350_rtc_readtime()
62 tm->tm_hour = time1[1] & WM8350_RTC_HRS_MASK; in wm8350_rtc_readtime()
64 tm->tm_wday = ((time1[1] >> WM8350_RTC_DAY_SHIFT) in wm8350_rtc_readtime()
67 tm->tm_mon = ((time1[2] & WM8350_RTC_MTH_MASK) in wm8350_rtc_readtime()
70 tm->tm_mday = (time1[2] & WM8350_RTC_DATE_MASK); in wm8350_rtc_readtime()
72 tm->tm_year = ((time1[3] & WM8350_RTC_YHUNDREDS_MASK) in wm8350_rtc_readtime()
74 tm->tm_year += time1[3] & WM8350_RTC_YUNITS_MASK; in wm8350_rtc_readtime()
76 tm->tm_yday = rtc_year_days(tm->tm_mday, tm->tm_mon, in wm8350_rtc_readtime()
[all …]
Drtc-pcf8563.c202 static int pcf8563_get_datetime(struct i2c_client *client, struct rtc_time *tm) in pcf8563_get_datetime() argument
228 tm->tm_sec = bcd2bin(buf[PCF8563_REG_SC] & 0x7F); in pcf8563_get_datetime()
229 tm->tm_min = bcd2bin(buf[PCF8563_REG_MN] & 0x7F); in pcf8563_get_datetime()
230 tm->tm_hour = bcd2bin(buf[PCF8563_REG_HR] & 0x3F); /* rtc hr 0-23 */ in pcf8563_get_datetime()
231 tm->tm_mday = bcd2bin(buf[PCF8563_REG_DM] & 0x3F); in pcf8563_get_datetime()
232 tm->tm_wday = buf[PCF8563_REG_DW] & 0x07; in pcf8563_get_datetime()
233 tm->tm_mon = bcd2bin(buf[PCF8563_REG_MO] & 0x1F) - 1; /* rtc mn 1-12 */ in pcf8563_get_datetime()
234 tm->tm_year = bcd2bin(buf[PCF8563_REG_YR]); in pcf8563_get_datetime()
235 if (tm->tm_year < 70) in pcf8563_get_datetime()
236 tm->tm_year += 100; /* assume we are in 1970...2069 */ in pcf8563_get_datetime()
[all …]
Drtc-moxart.c142 static int moxart_rtc_set_time(struct device *dev, struct rtc_time *tm) in moxart_rtc_set_time() argument
150 (((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 …]
Drtc-m41t93.c48 static int m41t93_set_time(struct device *dev, struct rtc_time *tm) in m41t93_set_time() argument
57 "write", tm->tm_sec, tm->tm_min, in m41t93_set_time()
58 tm->tm_hour, tm->tm_mday, in m41t93_set_time()
59 tm->tm_mon, tm->tm_year, tm->tm_wday); in m41t93_set_time()
61 if (tm->tm_year < 100) { in m41t93_set_time()
91 data[M41T93_REG_ST_SEC] = bin2bcd(tm->tm_sec); in m41t93_set_time()
92 data[M41T93_REG_MIN] = bin2bcd(tm->tm_min); in m41t93_set_time()
93 data[M41T93_REG_CENT_HOUR] = bin2bcd(tm->tm_hour) | in m41t93_set_time()
94 ((tm->tm_year/100-1) << 6); in m41t93_set_time()
95 data[M41T93_REG_DAY] = bin2bcd(tm->tm_mday); in m41t93_set_time()
[all …]
Drtc-rx6110.c115 static int rx6110_rtc_tm_to_data(struct rtc_time *tm, u8 *data) in rx6110_rtc_tm_to_data() argument
118 tm->tm_sec, tm->tm_min, tm->tm_hour, in rx6110_rtc_tm_to_data()
119 tm->tm_mday, tm->tm_mon, tm->tm_year); in rx6110_rtc_tm_to_data()
126 if (tm->tm_year < 100 || tm->tm_year >= 200) in rx6110_rtc_tm_to_data()
129 data[RTC_SEC] = bin2bcd(tm->tm_sec); in rx6110_rtc_tm_to_data()
130 data[RTC_MIN] = bin2bcd(tm->tm_min); in rx6110_rtc_tm_to_data()
131 data[RTC_HOUR] = bin2bcd(tm->tm_hour); in rx6110_rtc_tm_to_data()
132 data[RTC_WDAY] = BIT(bin2bcd(tm->tm_wday)); in rx6110_rtc_tm_to_data()
133 data[RTC_MDAY] = bin2bcd(tm->tm_mday); in rx6110_rtc_tm_to_data()
134 data[RTC_MONTH] = bin2bcd(tm->tm_mon + 1); in rx6110_rtc_tm_to_data()
[all …]
Drtc-msm6242.c125 static int msm6242_read_time(struct device *dev, struct rtc_time *tm) in msm6242_read_time() argument
131 tm->tm_sec = msm6242_read(priv, MSM6242_SECOND10) * 10 + in msm6242_read_time()
133 tm->tm_min = msm6242_read(priv, MSM6242_MINUTE10) * 10 + in msm6242_read_time()
135 tm->tm_hour = (msm6242_read(priv, MSM6242_HOUR10 & 3)) * 10 + in msm6242_read_time()
137 tm->tm_mday = msm6242_read(priv, MSM6242_DAY10) * 10 + in msm6242_read_time()
139 tm->tm_wday = msm6242_read(priv, MSM6242_WEEK); in msm6242_read_time()
140 tm->tm_mon = msm6242_read(priv, MSM6242_MONTH10) * 10 + in msm6242_read_time()
142 tm->tm_year = msm6242_read(priv, MSM6242_YEAR10) * 10 + in msm6242_read_time()
144 if (tm->tm_year <= 69) in msm6242_read_time()
145 tm->tm_year += 100; in msm6242_read_time()
[all …]
Drtc-rx4581.c102 static int rx4581_get_datetime(struct device *dev, struct rtc_time *tm) in rx4581_get_datetime() argument
158 tm->tm_sec = bcd2bin(date[RX4581_REG_SC] & 0x7F); in rx4581_get_datetime()
159 tm->tm_min = bcd2bin(date[RX4581_REG_MN] & 0x7F); in rx4581_get_datetime()
160 tm->tm_hour = bcd2bin(date[RX4581_REG_HR] & 0x3F); /* rtc hr 0-23 */ in rx4581_get_datetime()
161 tm->tm_wday = ilog2(date[RX4581_REG_DW] & 0x7F); in rx4581_get_datetime()
162 tm->tm_mday = bcd2bin(date[RX4581_REG_DM] & 0x3F); in rx4581_get_datetime()
163 tm->tm_mon = bcd2bin(date[RX4581_REG_MO] & 0x1F) - 1; /* rtc mn 1-12 */ in rx4581_get_datetime()
164 tm->tm_year = bcd2bin(date[RX4581_REG_YR]); in rx4581_get_datetime()
165 if (tm->tm_year < 70) in rx4581_get_datetime()
166 tm->tm_year += 100; /* assume we are in 1970...2069 */ in rx4581_get_datetime()
[all …]
Drtc-m48t35.c48 static int m48t35_read_time(struct device *dev, struct rtc_time *tm) in m48t35_read_time() argument
62 tm->tm_sec = readb(&priv->reg->sec); in m48t35_read_time()
63 tm->tm_min = readb(&priv->reg->min); in m48t35_read_time()
64 tm->tm_hour = readb(&priv->reg->hour); in m48t35_read_time()
65 tm->tm_mday = readb(&priv->reg->date); in m48t35_read_time()
66 tm->tm_mon = readb(&priv->reg->month); in m48t35_read_time()
67 tm->tm_year = readb(&priv->reg->year); in m48t35_read_time()
71 tm->tm_sec = bcd2bin(tm->tm_sec); in m48t35_read_time()
72 tm->tm_min = bcd2bin(tm->tm_min); in m48t35_read_time()
73 tm->tm_hour = bcd2bin(tm->tm_hour); in m48t35_read_time()
[all …]
Drtc-s5m.c173 static void s5m8767_data_to_tm(u8 *data, struct rtc_time *tm, in s5m8767_data_to_tm() argument
176 tm->tm_sec = data[RTC_SEC] & 0x7f; in s5m8767_data_to_tm()
177 tm->tm_min = data[RTC_MIN] & 0x7f; in s5m8767_data_to_tm()
179 tm->tm_hour = data[RTC_HOUR] & 0x1f; in s5m8767_data_to_tm()
181 tm->tm_hour = data[RTC_HOUR] & 0x0f; in s5m8767_data_to_tm()
183 tm->tm_hour += 12; in s5m8767_data_to_tm()
186 tm->tm_wday = ffs(data[RTC_WEEKDAY] & 0x7f); in s5m8767_data_to_tm()
187 tm->tm_mday = data[RTC_DATE] & 0x1f; in s5m8767_data_to_tm()
188 tm->tm_mon = (data[RTC_MONTH] & 0x0f) - 1; in s5m8767_data_to_tm()
189 tm->tm_year = (data[RTC_YEAR1] & 0x7f) + 100; in s5m8767_data_to_tm()
[all …]
Drtc-bq4802.c49 static int bq4802_read_time(struct device *dev, struct rtc_time *tm) in bq4802_read_time() argument
61 tm->tm_sec = p->read(p, 0x00); in bq4802_read_time()
62 tm->tm_min = p->read(p, 0x02); in bq4802_read_time()
63 tm->tm_hour = p->read(p, 0x04); in bq4802_read_time()
64 tm->tm_mday = p->read(p, 0x06); in bq4802_read_time()
65 tm->tm_mon = p->read(p, 0x09); in bq4802_read_time()
66 tm->tm_year = p->read(p, 0x0a); in bq4802_read_time()
67 tm->tm_wday = p->read(p, 0x08); in bq4802_read_time()
74 tm->tm_sec = bcd2bin(tm->tm_sec); in bq4802_read_time()
75 tm->tm_min = bcd2bin(tm->tm_min); in bq4802_read_time()
[all …]
Drtc-rx8581.c63 static int rx8581_rtc_read_time(struct device *dev, struct rtc_time *tm) in rx8581_rtc_read_time() argument
112 tm->tm_sec = bcd2bin(date[RX8581_REG_SC] & 0x7F); in rx8581_rtc_read_time()
113 tm->tm_min = bcd2bin(date[RX8581_REG_MN] & 0x7F); in rx8581_rtc_read_time()
114 tm->tm_hour = bcd2bin(date[RX8581_REG_HR] & 0x3F); /* rtc hr 0-23 */ in rx8581_rtc_read_time()
115 tm->tm_wday = ilog2(date[RX8581_REG_DW] & 0x7F); in rx8581_rtc_read_time()
116 tm->tm_mday = bcd2bin(date[RX8581_REG_DM] & 0x3F); in rx8581_rtc_read_time()
117 tm->tm_mon = bcd2bin(date[RX8581_REG_MO] & 0x1F) - 1; /* rtc mn 1-12 */ in rx8581_rtc_read_time()
118 tm->tm_year = bcd2bin(date[RX8581_REG_YR]) + 100; in rx8581_rtc_read_time()
123 tm->tm_sec, tm->tm_min, tm->tm_hour, in rx8581_rtc_read_time()
124 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); in rx8581_rtc_read_time()
[all …]
/Linux-v4.19/tools/testing/selftests/powerpc/tm/
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-fork tm-tar tm-tmspr tm-vmx-unavail tm-unavailable tm-trap \
7 $(SIGNAL_CONTEXT_CHK_TESTS) tm-sigreturn
16 $(OUTPUT)/tm-syscall: tm-syscall-asm.S
17 $(OUTPUT)/tm-syscall: CFLAGS += -I../../../../../usr/include
18 $(OUTPUT)/tm-tmspr: CFLAGS += -pthread
19 $(OUTPUT)/tm-vmx-unavail: CFLAGS += -pthread -m64
20 $(OUTPUT)/tm-resched-dscr: ../pmu/lib.c
[all …]
D.gitignore1 tm-resched-dscr
2 tm-syscall
3 tm-signal-msr-resv
4 tm-signal-stack
5 tm-vmxcopy
6 tm-fork
7 tm-tar
8 tm-tmspr
9 tm-exec
10 tm-signal-context-chk-fpu
[all …]
/Linux-v4.19/arch/powerpc/platforms/maple/
Dtime.c57 void maple_get_rtc_time(struct rtc_time *tm) in maple_get_rtc_time() argument
60 tm->tm_sec = maple_clock_read(RTC_SECONDS); in maple_get_rtc_time()
61 tm->tm_min = maple_clock_read(RTC_MINUTES); in maple_get_rtc_time()
62 tm->tm_hour = maple_clock_read(RTC_HOURS); in maple_get_rtc_time()
63 tm->tm_mday = maple_clock_read(RTC_DAY_OF_MONTH); in maple_get_rtc_time()
64 tm->tm_mon = maple_clock_read(RTC_MONTH); in maple_get_rtc_time()
65 tm->tm_year = maple_clock_read(RTC_YEAR); in maple_get_rtc_time()
66 } while (tm->tm_sec != maple_clock_read(RTC_SECONDS)); in maple_get_rtc_time()
70 tm->tm_sec = bcd2bin(tm->tm_sec); in maple_get_rtc_time()
71 tm->tm_min = bcd2bin(tm->tm_min); in maple_get_rtc_time()
[all …]
/Linux-v4.19/drivers/net/fddi/skfp/
Dsmttimer.c42 struct smt_timer *tm ; in smt_timer_stop() local
51 for (prev = &smc->t.st_queue ; (tm = *prev) ; prev = &tm->tm_next ) { in smt_timer_stop()
52 if (tm == timer) { in smt_timer_stop()
53 *prev = tm->tm_next ; in smt_timer_stop()
54 if (tm->tm_next) { in smt_timer_stop()
55 tm->tm_next->tm_delta += tm->tm_delta ; in smt_timer_stop()
66 struct smt_timer *tm ; in smt_timer_start() local
92 for (prev = &smc->t.st_queue ; (tm = *prev) ; prev = &tm->tm_next ) { in smt_timer_start()
93 if (delta + tm->tm_delta > time) { in smt_timer_start()
96 delta += tm->tm_delta ; in smt_timer_start()
[all …]
/Linux-v4.19/drivers/isdn/mISDN/
Dtei.c230 struct teimgr *tm = fi->userdata; in tei_debug() local
243 tm->l2->sapi, tm->l2->tei, &vaf); in tei_debug()
467 struct teimgr *tm = fi->userdata; in tei_id_request() local
469 if (tm->l2->tei != GROUP_TEI) { in tei_id_request()
470 tm->tei_m.printdebug(&tm->tei_m, in tei_id_request()
472 tm->l2->tei); in tei_id_request()
475 tm->ri = random_ri(); in tei_id_request()
477 tm->tei_m.printdebug(&tm->tei_m, in tei_id_request()
478 "assign request ri %d", tm->ri); in tei_id_request()
479 put_tei_msg(tm->mgr, ID_REQUEST, tm->ri, GROUP_TEI); in tei_id_request()
[all …]
/Linux-v4.19/arch/powerpc/platforms/chrp/
Dtime.c91 struct rtc_time tm = *tmarg; in chrp_set_rtc_time() local
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()
111 chrp_cmos_clock_write(tm.tm_sec,RTC_SECONDS); in chrp_set_rtc_time()
112 chrp_cmos_clock_write(tm.tm_min,RTC_MINUTES); in chrp_set_rtc_time()
113 chrp_cmos_clock_write(tm.tm_hour,RTC_HOURS); in chrp_set_rtc_time()
[all …]
/Linux-v4.19/arch/mips/sibyte/swarm/
Drtc_m41t81.c146 struct rtc_time tm; in m41t81_set_time() local
150 rtc_time64_to_tm(t, &tm); in m41t81_set_time()
159 tm.tm_sec = bin2bcd(tm.tm_sec); in m41t81_set_time()
160 m41t81_write(M41T81REG_SC, tm.tm_sec); in m41t81_set_time()
162 tm.tm_min = bin2bcd(tm.tm_min); in m41t81_set_time()
163 m41t81_write(M41T81REG_MN, tm.tm_min); in m41t81_set_time()
165 tm.tm_hour = bin2bcd(tm.tm_hour); in m41t81_set_time()
166 tm.tm_hour = (tm.tm_hour & 0x3f) | (m41t81_read(M41T81REG_HR) & 0xc0); in m41t81_set_time()
167 m41t81_write(M41T81REG_HR, tm.tm_hour); in m41t81_set_time()
170 if (tm.tm_wday == 0) tm.tm_wday = 7; in m41t81_set_time()
[all …]
Drtc_xicor1241.c114 struct rtc_time tm; in xicor_set_time() local
118 rtc_time64_to_tm(t, &tm); in xicor_set_time()
119 tm.tm_year += 1900; in xicor_set_time()
127 tm.tm_sec = bin2bcd(tm.tm_sec); in xicor_set_time()
128 xicor_write(X1241REG_SC, tm.tm_sec); in xicor_set_time()
130 tm.tm_min = bin2bcd(tm.tm_min); in xicor_set_time()
131 xicor_write(X1241REG_MN, tm.tm_min); in xicor_set_time()
133 tm.tm_mday = bin2bcd(tm.tm_mday); in xicor_set_time()
134 xicor_write(X1241REG_DT, tm.tm_mday); in xicor_set_time()
137 tm.tm_mon ++; in xicor_set_time()
[all …]
/Linux-v4.19/net/sched/
Dem_text.c35 struct text_match *tm = EM_TEXT_PRIV(m); in em_text_match() local
38 from = tcf_get_base_ptr(skb, tm->from_layer) - skb->data; in em_text_match()
39 from += tm->from_offset; in em_text_match()
41 to = tcf_get_base_ptr(skb, tm->to_layer) - skb->data; in em_text_match()
42 to += tm->to_offset; in em_text_match()
44 return skb_find_text(skb, from, to, tm->config) != UINT_MAX; in em_text_match()
50 struct text_match *tm; in em_text_change() local
84 tm = kmalloc(sizeof(*tm), GFP_KERNEL); in em_text_change()
85 if (tm == NULL) { in em_text_change()
90 tm->from_offset = conf->from_offset; in em_text_change()
[all …]

12345678910>>...13