Searched refs:seq (Results 1 - 200 of 1160) sorted by relevance

123456

/linux-4.1.27/sound/core/seq/
H A DMakefile6 snd-seq-device-objs := seq_device.o
7 snd-seq-objs := seq.o seq_lock.o seq_clientmgr.o seq_memory.o seq_queue.o \
10 snd-seq-midi-objs := seq_midi.o
11 snd-seq-midi-emul-objs := seq_midi_emul.o
12 snd-seq-midi-event-objs := seq_midi_event.o
13 snd-seq-dummy-objs := seq_dummy.o
14 snd-seq-virmidi-objs := seq_virmidi.o
16 obj-$(CONFIG_SND_SEQUENCER) += snd-seq.o snd-seq-device.o
18 obj-$(CONFIG_SND_SEQUENCER) += snd-seq-midi-event.o
21 obj-$(CONFIG_SND_SEQ_DUMMY) += snd-seq-dummy.o
24 obj-$(CONFIG_SND_VIRMIDI) += snd-seq-virmidi.o snd-seq-midi-event.o
25 obj-$(CONFIG_SND_RAWMIDI_SEQ) += snd-seq-midi.o snd-seq-midi-event.o
26 obj-$(CONFIG_SND_OPL3_LIB_SEQ) += snd-seq-midi-event.o snd-seq-midi-emul.o
27 obj-$(CONFIG_SND_OPL4_LIB_SEQ) += snd-seq-midi-event.o snd-seq-midi-emul.o
28 obj-$(CONFIG_SND_SBAWE_SEQ) += snd-seq-midi-emul.o snd-seq-virmidi.o
29 obj-$(CONFIG_SND_EMU10K1_SEQ) += snd-seq-midi-emul.o snd-seq-virmidi.o
/linux-4.1.27/drivers/gpu/drm/
H A Ddrm_trace.h13 TP_PROTO(int crtc, unsigned int seq),
14 TP_ARGS(crtc, seq),
17 __field(unsigned int, seq)
21 __entry->seq = seq;
23 TP_printk("crtc=%d, seq=%u", __entry->crtc, __entry->seq)
27 TP_PROTO(pid_t pid, int crtc, unsigned int seq),
28 TP_ARGS(pid, crtc, seq),
32 __field(unsigned int, seq)
37 __entry->seq = seq;
39 TP_printk("pid=%d, crtc=%d, seq=%u", __entry->pid, __entry->crtc, \
40 __entry->seq)
44 TP_PROTO(pid_t pid, int crtc, unsigned int seq),
45 TP_ARGS(pid, crtc, seq),
49 __field(unsigned int, seq)
54 __entry->seq = seq;
56 TP_printk("pid=%d, crtc=%d, seq=%u", __entry->pid, __entry->crtc, \
57 __entry->seq)
/linux-4.1.27/drivers/staging/lustre/lustre/fid/
H A Dfid_request.c56 static int seq_client_rpc(struct lu_client_seq *seq, seq_client_rpc() argument
60 struct obd_export *exp = seq->lcs_exp; seq_client_rpc()
82 in->lsr_index = seq->lcs_space.lsr_index; seq_client_rpc()
83 if (seq->lcs_type == LUSTRE_SEQ_METADATA) seq_client_rpc()
97 if (seq->lcs_type == LUSTRE_SEQ_DATA) seq_client_rpc()
101 if (seq->lcs_type == LUSTRE_SEQ_METADATA) seq_client_rpc()
110 if (seq->lcs_type == LUSTRE_SEQ_METADATA) seq_client_rpc()
113 if (seq->lcs_type == LUSTRE_SEQ_METADATA) seq_client_rpc()
123 DRANGE"\n", seq->lcs_name, PRANGE(output)); seq_client_rpc()
130 DRANGE"]\n", seq->lcs_name, PRANGE(output)); seq_client_rpc()
136 seq->lcs_name, opcname, PRANGE(output)); seq_client_rpc()
144 int seq_client_alloc_super(struct lu_client_seq *seq, seq_client_alloc_super() argument
149 mutex_lock(&seq->lcs_mutex); seq_client_alloc_super()
151 if (seq->lcs_srv) { seq_client_alloc_super()
154 /* Check whether the connection to seq controller has been seq_client_alloc_super()
156 if (seq->lcs_exp == NULL) { seq_client_alloc_super()
157 mutex_unlock(&seq->lcs_mutex); seq_client_alloc_super()
161 rc = seq_client_rpc(seq, &seq->lcs_space, seq_client_alloc_super()
164 mutex_unlock(&seq->lcs_mutex); seq_client_alloc_super()
170 struct lu_client_seq *seq) seq_client_alloc_meta()
174 if (seq->lcs_srv) { seq_client_alloc_meta()
182 rc = seq_client_rpc(seq, &seq->lcs_space, seq_client_alloc_meta()
192 struct lu_client_seq *seq, u64 *seqnr) seq_client_alloc_seq()
196 LASSERT(range_is_sane(&seq->lcs_space)); seq_client_alloc_seq()
198 if (range_is_exhausted(&seq->lcs_space)) { seq_client_alloc_seq()
199 rc = seq_client_alloc_meta(env, seq); seq_client_alloc_seq()
202 seq->lcs_name, rc); seq_client_alloc_seq()
206 seq->lcs_name, PRANGE(&seq->lcs_space)); seq_client_alloc_seq()
212 LASSERT(!range_is_exhausted(&seq->lcs_space)); seq_client_alloc_seq()
213 *seqnr = seq->lcs_space.lsr_start; seq_client_alloc_seq()
214 seq->lcs_space.lsr_start += 1; seq_client_alloc_seq()
216 CDEBUG(D_INFO, "%s: Allocated sequence [%#llx]\n", seq->lcs_name, seq_client_alloc_seq()
222 static int seq_fid_alloc_prep(struct lu_client_seq *seq, seq_fid_alloc_prep() argument
225 if (seq->lcs_update) { seq_fid_alloc_prep()
226 add_wait_queue(&seq->lcs_waitq, link); seq_fid_alloc_prep()
228 mutex_unlock(&seq->lcs_mutex); seq_fid_alloc_prep()
232 mutex_lock(&seq->lcs_mutex); seq_fid_alloc_prep()
233 remove_wait_queue(&seq->lcs_waitq, link); seq_fid_alloc_prep()
237 ++seq->lcs_update; seq_fid_alloc_prep()
238 mutex_unlock(&seq->lcs_mutex); seq_fid_alloc_prep()
242 static void seq_fid_alloc_fini(struct lu_client_seq *seq) seq_fid_alloc_fini() argument
244 LASSERT(seq->lcs_update == 1); seq_fid_alloc_fini()
245 mutex_lock(&seq->lcs_mutex); seq_fid_alloc_fini()
246 --seq->lcs_update; seq_fid_alloc_fini()
247 wake_up(&seq->lcs_waitq); seq_fid_alloc_fini()
251 * Allocate the whole seq to the caller.
254 struct lu_client_seq *seq, u64 *seqnr) seq_client_get_seq()
260 mutex_lock(&seq->lcs_mutex); seq_client_get_seq()
264 rc = seq_fid_alloc_prep(seq, &link); seq_client_get_seq()
269 rc = seq_client_alloc_seq(env, seq, seqnr); seq_client_get_seq()
272 seq->lcs_name, rc); seq_client_get_seq()
273 seq_fid_alloc_fini(seq); seq_client_get_seq()
274 mutex_unlock(&seq->lcs_mutex); seq_client_get_seq()
279 seq->lcs_name, *seqnr); seq_client_get_seq()
281 /* Since the caller require the whole seq, seq_client_get_seq()
282 * so marked this seq to be used */ seq_client_get_seq()
283 if (seq->lcs_type == LUSTRE_SEQ_METADATA) seq_client_get_seq()
284 seq->lcs_fid.f_oid = LUSTRE_METADATA_SEQ_MAX_WIDTH; seq_client_get_seq()
286 seq->lcs_fid.f_oid = LUSTRE_DATA_SEQ_MAX_WIDTH; seq_client_get_seq()
288 seq->lcs_fid.f_seq = *seqnr; seq_client_get_seq()
289 seq->lcs_fid.f_ver = 0; seq_client_get_seq()
294 seq_fid_alloc_fini(seq); seq_client_get_seq()
295 mutex_unlock(&seq->lcs_mutex); seq_client_get_seq()
301 /* Allocate new fid on passed client @seq and save it to @fid. */ seq_client_alloc_fid()
303 struct lu_client_seq *seq, struct lu_fid *fid) seq_client_alloc_fid()
308 LASSERT(seq != NULL); seq_client_alloc_fid()
312 mutex_lock(&seq->lcs_mutex); seq_client_alloc_fid()
315 seq->lcs_fid.f_oid = seq->lcs_width; seq_client_alloc_fid()
320 if (!fid_is_zero(&seq->lcs_fid) && seq_client_alloc_fid()
321 fid_oid(&seq->lcs_fid) < seq->lcs_width) { seq_client_alloc_fid()
323 seq->lcs_fid.f_oid += 1; seq_client_alloc_fid()
328 rc = seq_fid_alloc_prep(seq, &link); seq_client_alloc_fid()
332 rc = seq_client_alloc_seq(env, seq, &seqnr); seq_client_alloc_fid()
335 seq->lcs_name, rc); seq_client_alloc_fid()
336 seq_fid_alloc_fini(seq); seq_client_alloc_fid()
337 mutex_unlock(&seq->lcs_mutex); seq_client_alloc_fid()
342 seq->lcs_name, seqnr); seq_client_alloc_fid()
344 seq->lcs_fid.f_oid = LUSTRE_FID_INIT_OID; seq_client_alloc_fid()
345 seq->lcs_fid.f_seq = seqnr; seq_client_alloc_fid()
346 seq->lcs_fid.f_ver = 0; seq_client_alloc_fid()
354 seq_fid_alloc_fini(seq); seq_client_alloc_fid()
358 *fid = seq->lcs_fid; seq_client_alloc_fid()
359 mutex_unlock(&seq->lcs_mutex); seq_client_alloc_fid()
361 CDEBUG(D_INFO, "%s: Allocated FID "DFID"\n", seq->lcs_name, PFID(fid)); seq_client_alloc_fid()
370 void seq_client_flush(struct lu_client_seq *seq) seq_client_flush() argument
374 LASSERT(seq != NULL); seq_client_flush()
376 mutex_lock(&seq->lcs_mutex); seq_client_flush()
378 while (seq->lcs_update) { seq_client_flush()
379 add_wait_queue(&seq->lcs_waitq, &link); seq_client_flush()
381 mutex_unlock(&seq->lcs_mutex); seq_client_flush()
385 mutex_lock(&seq->lcs_mutex); seq_client_flush()
386 remove_wait_queue(&seq->lcs_waitq, &link); seq_client_flush()
390 fid_zero(&seq->lcs_fid); seq_client_flush()
392 * this id shld not be used for seq range allocation. seq_client_flush()
396 seq->lcs_space.lsr_index = -1; seq_client_flush()
398 range_init(&seq->lcs_space); seq_client_flush()
399 mutex_unlock(&seq->lcs_mutex); seq_client_flush()
403 static void seq_client_proc_fini(struct lu_client_seq *seq) seq_client_proc_fini() argument
406 if (seq->lcs_proc_dir) { seq_client_proc_fini()
407 if (!IS_ERR(seq->lcs_proc_dir)) seq_client_proc_fini()
408 lprocfs_remove(&seq->lcs_proc_dir); seq_client_proc_fini()
409 seq->lcs_proc_dir = NULL; seq_client_proc_fini()
414 static int seq_client_proc_init(struct lu_client_seq *seq) seq_client_proc_init() argument
419 seq->lcs_proc_dir = lprocfs_register(seq->lcs_name, seq_client_proc_init()
423 if (IS_ERR(seq->lcs_proc_dir)) { seq_client_proc_init()
424 CERROR("%s: LProcFS failed in seq-init\n", seq_client_proc_init()
425 seq->lcs_name); seq_client_proc_init()
426 rc = PTR_ERR(seq->lcs_proc_dir); seq_client_proc_init()
430 rc = lprocfs_add_vars(seq->lcs_proc_dir, seq_client_proc_init()
431 seq_client_proc_list, seq); seq_client_proc_init()
434 seq->lcs_name, rc); seq_client_proc_init()
441 seq_client_proc_fini(seq); seq_client_proc_init()
449 int seq_client_init(struct lu_client_seq *seq, seq_client_init() argument
457 LASSERT(seq != NULL); seq_client_init()
460 seq->lcs_srv = srv; seq_client_init()
461 seq->lcs_type = type; seq_client_init()
463 mutex_init(&seq->lcs_mutex); seq_client_init()
465 seq->lcs_width = LUSTRE_METADATA_SEQ_MAX_WIDTH; seq_client_init()
467 seq->lcs_width = LUSTRE_DATA_SEQ_MAX_WIDTH; seq_client_init()
469 init_waitqueue_head(&seq->lcs_waitq); seq_client_init()
471 seq_client_flush(seq); seq_client_init()
474 seq->lcs_exp = class_export_get(exp); seq_client_init()
476 LASSERT(seq->lcs_srv != NULL); seq_client_init()
478 snprintf(seq->lcs_name, sizeof(seq->lcs_name), seq_client_init()
481 rc = seq_client_proc_init(seq); seq_client_init()
483 seq_client_fini(seq); seq_client_init()
488 void seq_client_fini(struct lu_client_seq *seq) seq_client_fini() argument
490 seq_client_proc_fini(seq); seq_client_fini()
492 if (seq->lcs_exp != NULL) { seq_client_fini()
493 class_export_put(seq->lcs_exp); seq_client_fini()
494 seq->lcs_exp = NULL; seq_client_fini()
497 seq->lcs_srv = NULL; seq_client_fini()
169 seq_client_alloc_meta(const struct lu_env *env, struct lu_client_seq *seq) seq_client_alloc_meta() argument
191 seq_client_alloc_seq(const struct lu_env *env, struct lu_client_seq *seq, u64 *seqnr) seq_client_alloc_seq() argument
253 seq_client_get_seq(const struct lu_env *env, struct lu_client_seq *seq, u64 *seqnr) seq_client_get_seq() argument
302 seq_client_alloc_fid(const struct lu_env *env, struct lu_client_seq *seq, struct lu_fid *fid) seq_client_alloc_fid() argument
H A Dlproc_fid.c100 struct lu_client_seq *seq; lprocfs_fid_space_seq_write() local
103 seq = ((struct seq_file *)file->private_data)->private; lprocfs_fid_space_seq_write()
104 LASSERT(seq != NULL); lprocfs_fid_space_seq_write()
106 mutex_lock(&seq->lcs_mutex); lprocfs_fid_space_seq_write()
107 rc = lprocfs_fid_write_common(buffer, count, &seq->lcs_space); lprocfs_fid_space_seq_write()
111 seq->lcs_name, PRANGE(&seq->lcs_space)); lprocfs_fid_space_seq_write()
114 mutex_unlock(&seq->lcs_mutex); lprocfs_fid_space_seq_write()
122 struct lu_client_seq *seq = (struct lu_client_seq *)m->private; lprocfs_fid_space_seq_show() local
124 LASSERT(seq != NULL); lprocfs_fid_space_seq_show()
126 mutex_lock(&seq->lcs_mutex); lprocfs_fid_space_seq_show()
127 seq_printf(m, "[%#llx - %#llx]:%x:%s\n", PRANGE(&seq->lcs_space)); lprocfs_fid_space_seq_show()
128 mutex_unlock(&seq->lcs_mutex); lprocfs_fid_space_seq_show()
137 struct lu_client_seq *seq; lprocfs_fid_width_seq_write() local
141 seq = ((struct seq_file *)file->private_data)->private; lprocfs_fid_width_seq_write()
142 LASSERT(seq != NULL); lprocfs_fid_width_seq_write()
148 mutex_lock(&seq->lcs_mutex); lprocfs_fid_width_seq_write()
149 if (seq->lcs_type == LUSTRE_SEQ_DATA) lprocfs_fid_width_seq_write()
155 seq->lcs_width = val; lprocfs_fid_width_seq_write()
159 seq->lcs_name, seq->lcs_width); lprocfs_fid_width_seq_write()
163 mutex_unlock(&seq->lcs_mutex); lprocfs_fid_width_seq_write()
171 struct lu_client_seq *seq = (struct lu_client_seq *)m->private; lprocfs_fid_width_seq_show() local
173 LASSERT(seq != NULL); lprocfs_fid_width_seq_show()
175 mutex_lock(&seq->lcs_mutex); lprocfs_fid_width_seq_show()
176 seq_printf(m, "%llu\n", seq->lcs_width); lprocfs_fid_width_seq_show()
177 mutex_unlock(&seq->lcs_mutex); lprocfs_fid_width_seq_show()
185 struct lu_client_seq *seq = (struct lu_client_seq *)m->private; lprocfs_fid_fid_seq_show() local
187 LASSERT(seq != NULL); lprocfs_fid_fid_seq_show()
189 mutex_lock(&seq->lcs_mutex); lprocfs_fid_fid_seq_show()
190 seq_printf(m, DFID "\n", PFID(&seq->lcs_fid)); lprocfs_fid_fid_seq_show()
191 mutex_unlock(&seq->lcs_mutex); lprocfs_fid_fid_seq_show()
199 struct lu_client_seq *seq = (struct lu_client_seq *)m->private; lprocfs_fid_server_seq_show() local
202 LASSERT(seq != NULL); lprocfs_fid_server_seq_show()
204 if (seq->lcs_exp != NULL) { lprocfs_fid_server_seq_show()
205 cli = &seq->lcs_exp->exp_obd->u.cli; lprocfs_fid_server_seq_show()
208 seq_printf(m, "%s\n", seq->lcs_srv->lss_name); lprocfs_fid_server_seq_show()
/linux-4.1.27/drivers/net/bonding/
H A Dbond_procfs.c9 static void *bond_info_seq_start(struct seq_file *seq, loff_t *pos) __acquires()
12 struct bonding *bond = seq->private; __acquires()
29 static void *bond_info_seq_next(struct seq_file *seq, void *v, loff_t *pos) bond_info_seq_next() argument
31 struct bonding *bond = seq->private; bond_info_seq_next()
50 static void bond_info_seq_stop(struct seq_file *seq, void *v) __releases()
56 static void bond_info_show_master(struct seq_file *seq) bond_info_show_master() argument
58 struct bonding *bond = seq->private; bond_info_show_master()
65 seq_printf(seq, "Bonding Mode: %s", bond_info_show_master()
72 seq_printf(seq, " (fail_over_mac %s)", optval->string); bond_info_show_master()
75 seq_printf(seq, "\n"); bond_info_show_master()
80 seq_printf(seq, "Transmit Hash Policy: %s (%d)\n", bond_info_show_master()
86 seq_printf(seq, "Primary Slave: %s", bond_info_show_master()
91 seq_printf(seq, " (primary_reselect %s)", bond_info_show_master()
95 seq_printf(seq, "\nCurrently Active Slave: %s\n", bond_info_show_master()
99 seq_printf(seq, "MII Status: %s\n", netif_carrier_ok(bond->dev) ? bond_info_show_master()
101 seq_printf(seq, "MII Polling Interval (ms): %d\n", bond->params.miimon); bond_info_show_master()
102 seq_printf(seq, "Up Delay (ms): %d\n", bond_info_show_master()
104 seq_printf(seq, "Down Delay (ms): %d\n", bond_info_show_master()
111 seq_printf(seq, "ARP Polling Interval (ms): %d\n", bond_info_show_master()
114 seq_printf(seq, "ARP IP target/s (n.n.n.n form):"); bond_info_show_master()
120 seq_printf(seq, ","); bond_info_show_master()
121 seq_printf(seq, " %pI4", &bond->params.arp_targets[i]); bond_info_show_master()
124 seq_printf(seq, "\n"); bond_info_show_master()
130 seq_puts(seq, "\n802.3ad info\n"); bond_info_show_master()
131 seq_printf(seq, "LACP rate: %s\n", bond_info_show_master()
133 seq_printf(seq, "Min links: %d\n", bond->params.min_links); bond_info_show_master()
136 seq_printf(seq, "Aggregator selection policy (ad_select): %s\n", bond_info_show_master()
140 seq_printf(seq, "bond %s has no active aggregator\n", bond_info_show_master()
143 seq_printf(seq, "Active Aggregator Info:\n"); bond_info_show_master()
145 seq_printf(seq, "\tAggregator ID: %d\n", bond_info_show_master()
147 seq_printf(seq, "\tNumber of ports: %d\n", bond_info_show_master()
149 seq_printf(seq, "\tActor Key: %d\n", bond_info_show_master()
151 seq_printf(seq, "\tPartner Key: %d\n", bond_info_show_master()
153 seq_printf(seq, "\tPartner Mac Address: %pM\n", bond_info_show_master()
159 static void bond_info_show_slave(struct seq_file *seq, bond_info_show_slave() argument
162 struct bonding *bond = seq->private; bond_info_show_slave()
164 seq_printf(seq, "\nSlave Interface: %s\n", slave->dev->name); bond_info_show_slave()
165 seq_printf(seq, "MII Status: %s\n", bond_slave_link_status(slave->link)); bond_info_show_slave()
167 seq_printf(seq, "Speed: %s\n", "Unknown"); bond_info_show_slave()
169 seq_printf(seq, "Speed: %d Mbps\n", slave->speed); bond_info_show_slave()
172 seq_printf(seq, "Duplex: %s\n", "Unknown"); bond_info_show_slave()
174 seq_printf(seq, "Duplex: %s\n", slave->duplex ? "full" : "half"); bond_info_show_slave()
176 seq_printf(seq, "Link Failure Count: %u\n", bond_info_show_slave()
179 seq_printf(seq, "Permanent HW addr: %pM\n", slave->perm_hwaddr); bond_info_show_slave()
180 seq_printf(seq, "Slave queue ID: %d\n", slave->queue_id); bond_info_show_slave()
187 seq_printf(seq, "Aggregator ID: %d\n", bond_info_show_slave()
189 seq_printf(seq, "Actor Churn State: %s\n", bond_info_show_slave()
191 seq_printf(seq, "Partner Churn State: %s\n", bond_info_show_slave()
193 seq_printf(seq, "Actor Churned Count: %d\n", bond_info_show_slave()
195 seq_printf(seq, "Partner Churned Count: %d\n", bond_info_show_slave()
198 seq_puts(seq, "details actor lacp pdu:\n"); bond_info_show_slave()
199 seq_printf(seq, " system priority: %d\n", bond_info_show_slave()
201 seq_printf(seq, " port key: %d\n", bond_info_show_slave()
203 seq_printf(seq, " port priority: %d\n", bond_info_show_slave()
205 seq_printf(seq, " port number: %d\n", bond_info_show_slave()
207 seq_printf(seq, " port state: %d\n", bond_info_show_slave()
210 seq_puts(seq, "details partner lacp pdu:\n"); bond_info_show_slave()
211 seq_printf(seq, " system priority: %d\n", bond_info_show_slave()
213 seq_printf(seq, " oper key: %d\n", bond_info_show_slave()
215 seq_printf(seq, " port priority: %d\n", bond_info_show_slave()
217 seq_printf(seq, " port number: %d\n", bond_info_show_slave()
219 seq_printf(seq, " port state: %d\n", bond_info_show_slave()
222 seq_puts(seq, "Aggregator ID: N/A\n"); bond_info_show_slave()
227 static int bond_info_seq_show(struct seq_file *seq, void *v) bond_info_seq_show() argument
230 seq_printf(seq, "%s\n", bond_version); bond_info_seq_show()
231 bond_info_show_master(seq); bond_info_seq_show()
233 bond_info_show_slave(seq, v); bond_info_seq_show()
247 struct seq_file *seq; bond_info_open() local
253 seq = file->private_data; bond_info_open()
254 seq->private = PDE_DATA(inode); bond_info_open()
/linux-4.1.27/drivers/staging/i2o/
H A Di2o_proc.c71 static int print_serial_number(struct seq_file *seq, u8 * serialno, int max_len) print_serial_number() argument
87 seq_printf(seq, "0x"); print_serial_number()
89 seq_printf(seq, "%02X", serialno[2 + i]); print_serial_number()
100 seq_printf(seq, "%s", &serialno[2]); print_serial_number()
104 seq_printf(seq, "%c", serialno[2 + i]); print_serial_number()
109 seq_printf(seq, "UNICODE Format. Can't Display\n"); print_serial_number()
113 seq_printf(seq, "LAN-48 MAC address @ %pM", &serialno[2]); print_serial_number()
118 seq_printf(seq, "WAN Access Address"); print_serial_number()
124 seq_printf(seq, print_serial_number()
130 seq_printf(seq, print_serial_number()
139 seq_printf(seq, print_serial_number()
149 seq_printf(seq, "Unknown data format (0x%02x)", serialno[0]); print_serial_number()
262 static int i2o_report_query_status(struct seq_file *seq, int block_status, i2o_report_query_status() argument
267 seq_printf(seq, "Timeout reading group %s.\n", group); i2o_report_query_status()
270 seq_puts(seq, "No free memory to read the table.\n"); i2o_report_query_status()
273 seq_printf(seq, "Group %s not supported.\n", group); i2o_report_query_status()
276 seq_printf(seq, i2o_report_query_status()
295 static int i2o_seq_show_hrt(struct seq_file *seq, void *v) i2o_seq_show_hrt() argument
297 struct i2o_controller *c = (struct i2o_controller *)seq->private; i2o_seq_show_hrt()
303 seq_printf(seq, i2o_seq_show_hrt()
308 seq_printf(seq, "HRT has %d entries of %d bytes each.\n", i2o_seq_show_hrt()
312 seq_printf(seq, "Entry %d:\n", i); i2o_seq_show_hrt()
313 seq_printf(seq, " Adapter ID: %0#10x\n", i2o_seq_show_hrt()
315 seq_printf(seq, " Controlling tid: %0#6x\n", i2o_seq_show_hrt()
320 seq_printf(seq, " %s Information\n", i2o_seq_show_hrt()
325 seq_printf(seq, " IOBase: %0#6x,", i2o_seq_show_hrt()
328 seq_printf(seq, " MemoryBase: %0#10x\n", i2o_seq_show_hrt()
334 seq_printf(seq, " IOBase: %0#6x,", i2o_seq_show_hrt()
337 seq_printf(seq, " MemoryBase: %0#10x,", i2o_seq_show_hrt()
340 seq_printf(seq, " CSN: %0#4x,", i2o_seq_show_hrt()
345 seq_printf(seq, " IOBase: %0#6x,", i2o_seq_show_hrt()
348 seq_printf(seq, " MemoryBase: %0#10x,", i2o_seq_show_hrt()
351 seq_printf(seq, " Slot: %0#4x,", i2o_seq_show_hrt()
357 seq_printf(seq, " Bus: %0#4x", i2o_seq_show_hrt()
360 seq_printf(seq, " Dev: %0#4x", i2o_seq_show_hrt()
363 seq_printf(seq, " Func: %0#4x", i2o_seq_show_hrt()
366 seq_printf(seq, " Vendor: %0#6x", i2o_seq_show_hrt()
369 seq_printf(seq, " Device: %0#6x\n", i2o_seq_show_hrt()
375 seq_printf(seq, " Unsupported Bus Type\n"); i2o_seq_show_hrt()
378 seq_printf(seq, " Unknown Bus Type\n"); i2o_seq_show_hrt()
384 static int i2o_seq_show_lct(struct seq_file *seq, void *v) i2o_seq_show_lct() argument
386 struct i2o_controller *c = (struct i2o_controller *)seq->private; i2o_seq_show_lct()
400 seq_printf(seq, "LCT contains %d %s\n", entries, i2o_seq_show_lct()
403 seq_printf(seq, "Boot Device @ ID %d\n", lct->boot_tid); i2o_seq_show_lct()
405 seq_printf(seq, "Current Change Indicator: %#10x\n", lct->change_ind); i2o_seq_show_lct()
408 seq_printf(seq, "Entry %d\n", i); i2o_seq_show_lct()
409 seq_printf(seq, " Class, SubClass : %s", i2o_seq_show_lct()
419 seq_printf(seq, ", Direct-Access Read/Write"); i2o_seq_show_lct()
423 seq_printf(seq, ", WORM Drive"); i2o_seq_show_lct()
427 seq_printf(seq, ", CD-ROM Drive"); i2o_seq_show_lct()
431 seq_printf(seq, ", Optical Memory Device"); i2o_seq_show_lct()
435 seq_printf(seq, ", Unknown (0x%02x)", i2o_seq_show_lct()
444 seq_printf(seq, ", Ethernet"); i2o_seq_show_lct()
448 seq_printf(seq, ", 100base VG"); i2o_seq_show_lct()
452 seq_printf(seq, ", IEEE 802.5/Token-Ring"); i2o_seq_show_lct()
456 seq_printf(seq, ", ANSI X3T9.5 FDDI"); i2o_seq_show_lct()
460 seq_printf(seq, ", Fibre Channel"); i2o_seq_show_lct()
464 seq_printf(seq, ", Unknown Sub-Class (0x%02x)", i2o_seq_show_lct()
472 seq_printf(seq, ", %s", i2o_seq_show_lct()
476 seq_printf(seq, ", Unknown Device Type"); i2o_seq_show_lct()
481 seq_printf(seq, ", %s", i2o_seq_show_lct()
485 seq_printf(seq, ", Unknown Bus Type"); i2o_seq_show_lct()
488 seq_printf(seq, "\n"); i2o_seq_show_lct()
490 seq_printf(seq, " Local TID : 0x%03x\n", i2o_seq_show_lct()
492 seq_printf(seq, " User TID : 0x%03x\n", i2o_seq_show_lct()
494 seq_printf(seq, " Parent TID : 0x%03x\n", i2o_seq_show_lct()
496 seq_printf(seq, " Identity Tag : 0x%x%x%x%x%x%x%x%x\n", i2o_seq_show_lct()
505 seq_printf(seq, " Change Indicator : %0#10x\n", i2o_seq_show_lct()
507 seq_printf(seq, " Event Capab Mask : %0#10x\n", i2o_seq_show_lct()
514 static int i2o_seq_show_status(struct seq_file *seq, void *v) i2o_seq_show_status() argument
516 struct i2o_controller *c = (struct i2o_controller *)seq->private; i2o_seq_show_status()
523 seq_printf(seq, "Organization ID : %0#6x\n", sb->org_id); i2o_seq_show_status()
529 seq_printf(seq, "Lowest I2O version supported: "); i2o_seq_show_status()
532 seq_printf(seq, "1.0\n"); i2o_seq_show_status()
535 seq_printf(seq, "1.5\n"); i2o_seq_show_status()
538 seq_printf(seq, "2.0\n"); i2o_seq_show_status()
542 seq_printf(seq, "Highest I2O version supported: "); i2o_seq_show_status()
545 seq_printf(seq, "1.0\n"); i2o_seq_show_status()
548 seq_printf(seq, "1.5\n"); i2o_seq_show_status()
551 seq_printf(seq, "2.0\n"); i2o_seq_show_status()
556 seq_printf(seq, "IOP ID : %0#5x\n", sb->iop_id); i2o_seq_show_status()
557 seq_printf(seq, "Host Unit ID : %0#6x\n", sb->host_unit_id); i2o_seq_show_status()
558 seq_printf(seq, "Segment Number : %0#5x\n", sb->segment_number); i2o_seq_show_status()
560 seq_printf(seq, "I2O version : "); i2o_seq_show_status()
563 seq_printf(seq, "1.0\n"); i2o_seq_show_status()
566 seq_printf(seq, "1.5\n"); i2o_seq_show_status()
569 seq_printf(seq, "2.0\n"); i2o_seq_show_status()
572 seq_printf(seq, "Unknown version\n"); i2o_seq_show_status()
575 seq_printf(seq, "IOP State : "); i2o_seq_show_status()
578 seq_printf(seq, "INIT\n"); i2o_seq_show_status()
582 seq_printf(seq, "RESET\n"); i2o_seq_show_status()
586 seq_printf(seq, "HOLD\n"); i2o_seq_show_status()
590 seq_printf(seq, "READY\n"); i2o_seq_show_status()
594 seq_printf(seq, "OPERATIONAL\n"); i2o_seq_show_status()
598 seq_printf(seq, "FAILED\n"); i2o_seq_show_status()
602 seq_printf(seq, "FAULTED\n"); i2o_seq_show_status()
606 seq_printf(seq, "Unknown\n"); i2o_seq_show_status()
610 seq_printf(seq, "Messenger Type : "); i2o_seq_show_status()
613 seq_printf(seq, "Memory mapped\n"); i2o_seq_show_status()
616 seq_printf(seq, "Memory mapped only\n"); i2o_seq_show_status()
619 seq_printf(seq, "Remote only\n"); i2o_seq_show_status()
622 seq_printf(seq, "Memory mapped and remote\n"); i2o_seq_show_status()
625 seq_printf(seq, "Unknown\n"); i2o_seq_show_status()
628 seq_printf(seq, "Inbound Frame Size : %d bytes\n", i2o_seq_show_status()
630 seq_printf(seq, "Max Inbound Frames : %d\n", i2o_seq_show_status()
632 seq_printf(seq, "Current Inbound Frames : %d\n", i2o_seq_show_status()
634 seq_printf(seq, "Max Outbound Frames : %d\n", i2o_seq_show_status()
640 seq_printf(seq, "Product ID : %s\n", prodstr); i2o_seq_show_status()
641 seq_printf(seq, "Expected LCT Size : %d bytes\n", i2o_seq_show_status()
644 seq_printf(seq, "IOP Capabilities\n"); i2o_seq_show_status()
645 seq_printf(seq, " Context Field Size Support : "); i2o_seq_show_status()
648 seq_printf(seq, "Supports only 32-bit context fields\n"); i2o_seq_show_status()
651 seq_printf(seq, "Supports only 64-bit context fields\n"); i2o_seq_show_status()
654 seq_printf(seq, "Supports 32-bit and 64-bit context fields, " i2o_seq_show_status()
658 seq_printf(seq, "Supports 32-bit and 64-bit context fields " i2o_seq_show_status()
662 seq_printf(seq, "0x%08x\n", sb->iop_capabilities); i2o_seq_show_status()
664 seq_printf(seq, " Current Context Field Size : "); i2o_seq_show_status()
667 seq_printf(seq, "not configured\n"); i2o_seq_show_status()
670 seq_printf(seq, "Supports only 32-bit context fields\n"); i2o_seq_show_status()
673 seq_printf(seq, "Supports only 64-bit context fields\n"); i2o_seq_show_status()
676 seq_printf(seq, "Supports both 32-bit or 64-bit context fields " i2o_seq_show_status()
680 seq_printf(seq, "\n"); i2o_seq_show_status()
682 seq_printf(seq, " Inbound Peer Support : %s\n", i2o_seq_show_status()
686 seq_printf(seq, " Outbound Peer Support : %s\n", i2o_seq_show_status()
690 seq_printf(seq, " Peer to Peer Support : %s\n", i2o_seq_show_status()
695 seq_printf(seq, "Desired private memory size : %d kB\n", i2o_seq_show_status()
697 seq_printf(seq, "Allocated private memory size : %d kB\n", i2o_seq_show_status()
699 seq_printf(seq, "Private memory base address : %0#10x\n", i2o_seq_show_status()
701 seq_printf(seq, "Desired private I/O size : %d kB\n", i2o_seq_show_status()
703 seq_printf(seq, "Allocated private I/O size : %d kB\n", i2o_seq_show_status()
705 seq_printf(seq, "Private I/O base address : %0#10x\n", i2o_seq_show_status()
711 static int i2o_seq_show_hw(struct seq_file *seq, void *v) i2o_seq_show_hw() argument
713 struct i2o_controller *c = (struct i2o_controller *)seq->private; i2o_seq_show_hw()
735 i2o_report_query_status(seq, token, "0x0000 IOP Hardware"); i2o_seq_show_hw()
739 seq_printf(seq, "I2O Vendor ID : %0#6x\n", work16[0]); i2o_seq_show_hw()
740 seq_printf(seq, "Product ID : %0#6x\n", work16[1]); i2o_seq_show_hw()
741 seq_printf(seq, "CPU : "); i2o_seq_show_hw()
743 seq_printf(seq, "Unknown\n"); i2o_seq_show_hw()
745 seq_printf(seq, "%s\n", cpu_table[work8[16]]); i2o_seq_show_hw()
748 seq_printf(seq, "RAM : %dkB\n", work32[1] >> 10); i2o_seq_show_hw()
749 seq_printf(seq, "Non-Volatile Mem : %dkB\n", work32[2] >> 10); i2o_seq_show_hw()
752 seq_printf(seq, "Capabilities : 0x%08x\n", hwcap); i2o_seq_show_hw()
753 seq_printf(seq, " [%s] Self booting\n", i2o_seq_show_hw()
755 seq_printf(seq, " [%s] Upgradable IRTOS\n", i2o_seq_show_hw()
757 seq_printf(seq, " [%s] Supports downloading DDMs\n", i2o_seq_show_hw()
759 seq_printf(seq, " [%s] Supports installing DDMs\n", i2o_seq_show_hw()
761 seq_printf(seq, " [%s] Battery-backed RAM\n", i2o_seq_show_hw()
768 static int i2o_seq_show_ddm_table(struct seq_file *seq, void *v) i2o_seq_show_ddm_table() argument
770 struct i2o_controller *c = (struct i2o_controller *)seq->private; i2o_seq_show_ddm_table()
807 i2o_report_query_status(seq, token, i2o_seq_show_ddm_table()
812 seq_printf(seq, i2o_seq_show_ddm_table()
817 seq_printf(seq, "0x%03x ", ddm_table.ddm_tid & 0xFFF); i2o_seq_show_ddm_table()
821 seq_printf(seq, "Downloaded DDM "); i2o_seq_show_ddm_table()
824 seq_printf(seq, "Embedded DDM "); i2o_seq_show_ddm_table()
827 seq_printf(seq, " "); i2o_seq_show_ddm_table()
830 seq_printf(seq, "%-#7x", ddm_table.i2o_vendor_id); i2o_seq_show_ddm_table()
831 seq_printf(seq, "%-#8x", ddm_table.module_id); i2o_seq_show_ddm_table()
832 seq_printf(seq, "%-29s", i2o_seq_show_ddm_table()
834 seq_printf(seq, "%9d ", ddm_table.data_size); i2o_seq_show_ddm_table()
835 seq_printf(seq, "%8d", ddm_table.code_size); i2o_seq_show_ddm_table()
837 seq_printf(seq, "\n"); i2o_seq_show_ddm_table()
845 static int i2o_seq_show_driver_store(struct seq_file *seq, void *v) i2o_seq_show_driver_store() argument
847 struct i2o_controller *c = (struct i2o_controller *)seq->private; i2o_seq_show_driver_store()
854 i2o_report_query_status(seq, token, "0x0004 Driver Store"); i2o_seq_show_driver_store()
858 seq_printf(seq, "Module limit : %d\n" i2o_seq_show_driver_store()
868 static int i2o_seq_show_drivers_stored(struct seq_file *seq, void *v) i2o_seq_show_drivers_stored() argument
883 struct i2o_controller *c = (struct i2o_controller *)seq->private; i2o_seq_show_drivers_stored()
910 i2o_report_query_status(seq, token, i2o_seq_show_drivers_stored()
916 seq_printf(seq, i2o_seq_show_drivers_stored()
921 seq_printf(seq, "%-3d", dst->stored_ddm_index); i2o_seq_show_drivers_stored()
924 seq_printf(seq, "Downloaded DDM "); i2o_seq_show_drivers_stored()
927 seq_printf(seq, "Embedded DDM "); i2o_seq_show_drivers_stored()
930 seq_printf(seq, " "); i2o_seq_show_drivers_stored()
933 seq_printf(seq, "%-#7x", dst->i2o_vendor_id); i2o_seq_show_drivers_stored()
934 seq_printf(seq, "%-#8x", dst->module_id); i2o_seq_show_drivers_stored()
935 seq_printf(seq, "%-29s", i2o_seq_show_drivers_stored()
937 seq_printf(seq, "%-9s", chtostr(tmp, dst->date, 8)); i2o_seq_show_drivers_stored()
938 seq_printf(seq, "%8d ", dst->module_size); i2o_seq_show_drivers_stored()
939 seq_printf(seq, "%8d ", dst->mpb_size); i2o_seq_show_drivers_stored()
940 seq_printf(seq, "0x%04x", dst->module_flags); i2o_seq_show_drivers_stored()
941 seq_printf(seq, "\n"); i2o_seq_show_drivers_stored()
949 static int i2o_seq_show_groups(struct seq_file *seq, void *v) i2o_seq_show_groups() argument
951 struct i2o_device *d = (struct i2o_device *)seq->private; i2o_seq_show_groups()
983 i2o_report_query_status(seq, token, "0xF000 Params Descriptor"); i2o_seq_show_groups()
987 seq_printf(seq, i2o_seq_show_groups()
991 seq_printf(seq, "%-3d", i); i2o_seq_show_groups()
992 seq_printf(seq, "0x%04X ", result->group[i].group_number); i2o_seq_show_groups()
993 seq_printf(seq, "%10d ", result->group[i].field_count); i2o_seq_show_groups()
994 seq_printf(seq, "%8d ", result->group[i].row_count); i2o_seq_show_groups()
998 seq_printf(seq, "Table "); i2o_seq_show_groups()
1000 seq_printf(seq, "Scalar "); i2o_seq_show_groups()
1002 seq_printf(seq, " + "); i2o_seq_show_groups()
1004 seq_printf(seq, " - "); i2o_seq_show_groups()
1006 seq_printf(seq, " + "); i2o_seq_show_groups()
1008 seq_printf(seq, " - "); i2o_seq_show_groups()
1010 seq_printf(seq, " + "); i2o_seq_show_groups()
1012 seq_printf(seq, " - "); i2o_seq_show_groups()
1014 seq_printf(seq, "\n"); i2o_seq_show_groups()
1018 seq_printf(seq, "There is more...\n"); i2o_seq_show_groups()
1025 static int i2o_seq_show_phys_device(struct seq_file *seq, void *v) i2o_seq_show_phys_device() argument
1027 struct i2o_device *d = (struct i2o_device *)seq->private; i2o_seq_show_phys_device()
1046 i2o_report_query_status(seq, token, i2o_seq_show_phys_device()
1052 seq_printf(seq, "# AdapterId\n"); i2o_seq_show_phys_device()
1055 seq_printf(seq, "%-2d", i); i2o_seq_show_phys_device()
1056 seq_printf(seq, "%#7x\n", result.adapter_id[i]); i2o_seq_show_phys_device()
1060 seq_printf(seq, "There is more...\n"); i2o_seq_show_phys_device()
1066 static int i2o_seq_show_claimed(struct seq_file *seq, void *v) i2o_seq_show_claimed() argument
1068 struct i2o_device *d = (struct i2o_device *)seq->private; i2o_seq_show_claimed()
1087 i2o_report_query_status(seq, token, "0xF002 Claimed Table"); i2o_seq_show_claimed()
1092 seq_printf(seq, "# ClaimedTid\n"); i2o_seq_show_claimed()
1095 seq_printf(seq, "%-2d", i); i2o_seq_show_claimed()
1096 seq_printf(seq, "%#7x\n", result.claimed_tid[i]); i2o_seq_show_claimed()
1100 seq_printf(seq, "There is more...\n"); i2o_seq_show_claimed()
1106 static int i2o_seq_show_users(struct seq_file *seq, void *v) i2o_seq_show_users() argument
1108 struct i2o_device *d = (struct i2o_device *)seq->private; i2o_seq_show_users()
1139 i2o_report_query_status(seq, token, "0xF003 User Table"); i2o_seq_show_users()
1143 seq_printf(seq, "# Instance UserTid ClaimType\n"); i2o_seq_show_users()
1146 seq_printf(seq, "%-3d", i); i2o_seq_show_users()
1147 seq_printf(seq, "%#8x ", result->user[i].instance); i2o_seq_show_users()
1148 seq_printf(seq, "%#7x ", result->user[i].user_tid); i2o_seq_show_users()
1149 seq_printf(seq, "%#9x\n", result->user[i].claim_type); i2o_seq_show_users()
1153 seq_printf(seq, "There is more...\n"); i2o_seq_show_users()
1160 static int i2o_seq_show_priv_msgs(struct seq_file *seq, void *v) i2o_seq_show_priv_msgs() argument
1162 struct i2o_device *d = (struct i2o_device *)seq->private; i2o_seq_show_priv_msgs()
1187 i2o_report_query_status(seq, token, i2o_seq_show_priv_msgs()
1192 seq_printf(seq, "Instance# OrgId FunctionCode\n"); i2o_seq_show_priv_msgs()
1195 seq_printf(seq, "%0#9x ", result.extension[i].ext_instance); i2o_seq_show_priv_msgs()
1196 seq_printf(seq, "%0#6x ", result.extension[i].organization_id); i2o_seq_show_priv_msgs()
1197 seq_printf(seq, "%0#6x", result.extension[i].x_function_code); i2o_seq_show_priv_msgs()
1199 seq_printf(seq, "\n"); i2o_seq_show_priv_msgs()
1203 seq_printf(seq, "There is more...\n"); i2o_seq_show_priv_msgs()
1209 static int i2o_seq_show_authorized_users(struct seq_file *seq, void *v) i2o_seq_show_authorized_users() argument
1211 struct i2o_device *d = (struct i2o_device *)seq->private; i2o_seq_show_authorized_users()
1230 i2o_report_query_status(seq, token, i2o_seq_show_authorized_users()
1236 seq_printf(seq, "# AlternateTid\n"); i2o_seq_show_authorized_users()
1239 seq_printf(seq, "%-2d", i); i2o_seq_show_authorized_users()
1240 seq_printf(seq, "%#7x ", result.alternate_tid[i]); i2o_seq_show_authorized_users()
1244 seq_printf(seq, "There is more...\n"); i2o_seq_show_authorized_users()
1250 static int i2o_seq_show_dev_identity(struct seq_file *seq, void *v) i2o_seq_show_dev_identity() argument
1252 struct i2o_device *d = (struct i2o_device *)seq->private; i2o_seq_show_dev_identity()
1262 i2o_report_query_status(seq, token, "0xF100 Device Identity"); i2o_seq_show_dev_identity()
1266 seq_printf(seq, "Device Class : %s\n", i2o_get_class_name(work16[0])); i2o_seq_show_dev_identity()
1267 seq_printf(seq, "Owner TID : %0#5x\n", work16[2]); i2o_seq_show_dev_identity()
1268 seq_printf(seq, "Parent TID : %0#5x\n", work16[3]); i2o_seq_show_dev_identity()
1269 seq_printf(seq, "Vendor info : %s\n", i2o_seq_show_dev_identity()
1271 seq_printf(seq, "Product info : %s\n", i2o_seq_show_dev_identity()
1273 seq_printf(seq, "Description : %s\n", i2o_seq_show_dev_identity()
1275 seq_printf(seq, "Product rev. : %s\n", i2o_seq_show_dev_identity()
1278 seq_printf(seq, "Serial number : "); i2o_seq_show_dev_identity()
1279 print_serial_number(seq, (u8 *) (work32 + 16), i2o_seq_show_dev_identity()
1284 seq_printf(seq, "\n"); i2o_seq_show_dev_identity()
1289 static int i2o_seq_show_dev_name(struct seq_file *seq, void *v) i2o_seq_show_dev_name() argument
1291 struct i2o_device *d = (struct i2o_device *)seq->private; i2o_seq_show_dev_name()
1293 seq_printf(seq, "%s\n", dev_name(&d->device)); i2o_seq_show_dev_name()
1299 static int i2o_seq_show_ddm_identity(struct seq_file *seq, void *v) i2o_seq_show_ddm_identity() argument
1301 struct i2o_device *d = (struct i2o_device *)seq->private; i2o_seq_show_ddm_identity()
1318 i2o_report_query_status(seq, token, "0xF101 DDM Identity"); i2o_seq_show_ddm_identity()
1322 seq_printf(seq, "Registering DDM TID : 0x%03x\n", result.ddm_tid); i2o_seq_show_ddm_identity()
1323 seq_printf(seq, "Module name : %s\n", i2o_seq_show_ddm_identity()
1325 seq_printf(seq, "Module revision : %s\n", i2o_seq_show_ddm_identity()
1328 seq_printf(seq, "Serial number : "); i2o_seq_show_ddm_identity()
1329 print_serial_number(seq, result.serial_number, sizeof(result) - 36); i2o_seq_show_ddm_identity()
1332 seq_printf(seq, "\n"); i2o_seq_show_ddm_identity()
1338 static int i2o_seq_show_uinfo(struct seq_file *seq, void *v) i2o_seq_show_uinfo() argument
1340 struct i2o_device *d = (struct i2o_device *)seq->private; i2o_seq_show_uinfo()
1355 i2o_report_query_status(seq, token, "0xF102 User Information"); i2o_seq_show_uinfo()
1359 seq_printf(seq, "Device name : %s\n", i2o_seq_show_uinfo()
1361 seq_printf(seq, "Service name : %s\n", i2o_seq_show_uinfo()
1363 seq_printf(seq, "Physical name : %s\n", i2o_seq_show_uinfo()
1365 seq_printf(seq, "Instance number : %s\n", i2o_seq_show_uinfo()
1372 static int i2o_seq_show_sgl_limits(struct seq_file *seq, void *v) i2o_seq_show_sgl_limits() argument
1374 struct i2o_device *d = (struct i2o_device *)seq->private; i2o_seq_show_sgl_limits()
1383 i2o_report_query_status(seq, token, i2o_seq_show_sgl_limits()
1388 seq_printf(seq, "SGL chain size : %d\n", work32[0]); i2o_seq_show_sgl_limits()
1389 seq_printf(seq, "Max SGL chain size : %d\n", work32[1]); i2o_seq_show_sgl_limits()
1390 seq_printf(seq, "SGL chain size target : %d\n", work32[2]); i2o_seq_show_sgl_limits()
1391 seq_printf(seq, "SGL frag count : %d\n", work16[6]); i2o_seq_show_sgl_limits()
1392 seq_printf(seq, "Max SGL frag count : %d\n", work16[7]); i2o_seq_show_sgl_limits()
1393 seq_printf(seq, "SGL frag count target : %d\n", work16[8]); i2o_seq_show_sgl_limits()
1399 seq_printf(seq, "SGL data alignment : %d\n", work16[8]); i2o_seq_show_sgl_limits()
1400 seq_printf(seq, "SGL addr limit : %d\n", work8[20]); i2o_seq_show_sgl_limits()
1401 seq_printf(seq, "SGL addr sizes supported : "); i2o_seq_show_sgl_limits()
1403 seq_printf(seq, "32 bit "); i2o_seq_show_sgl_limits()
1405 seq_printf(seq, "64 bit "); i2o_seq_show_sgl_limits()
1407 seq_printf(seq, "96 bit "); i2o_seq_show_sgl_limits()
1409 seq_printf(seq, "128 bit "); i2o_seq_show_sgl_limits()
1410 seq_printf(seq, "\n"); i2o_seq_show_sgl_limits()
1419 static int i2o_seq_show_sensors(struct seq_file *seq, void *v) i2o_seq_show_sensors() argument
1421 struct i2o_device *d = (struct i2o_device *)seq->private; i2o_seq_show_sensors()
1454 i2o_report_query_status(seq, token, i2o_seq_show_sensors()
1459 seq_printf(seq, "Sensor instance : %d\n", result.sensor_instance); i2o_seq_show_sensors()
1461 seq_printf(seq, "Component : %d = ", result.component); i2o_seq_show_sensors()
1464 seq_printf(seq, "Other"); i2o_seq_show_sensors()
1467 seq_printf(seq, "Planar logic Board"); i2o_seq_show_sensors()
1470 seq_printf(seq, "CPU"); i2o_seq_show_sensors()
1473 seq_printf(seq, "Chassis"); i2o_seq_show_sensors()
1476 seq_printf(seq, "Power Supply"); i2o_seq_show_sensors()
1479 seq_printf(seq, "Storage"); i2o_seq_show_sensors()
1482 seq_printf(seq, "External"); i2o_seq_show_sensors()
1485 seq_printf(seq, "\n"); i2o_seq_show_sensors()
1487 seq_printf(seq, "Component instance : %d\n", i2o_seq_show_sensors()
1489 seq_printf(seq, "Sensor class : %s\n", i2o_seq_show_sensors()
1492 seq_printf(seq, "Sensor type : %d = ", result.sensor_type); i2o_seq_show_sensors()
1495 seq_printf(seq, "Other\n"); i2o_seq_show_sensors()
1498 seq_printf(seq, "Thermal\n"); i2o_seq_show_sensors()
1501 seq_printf(seq, "DC voltage (DC volts)\n"); i2o_seq_show_sensors()
1504 seq_printf(seq, "AC voltage (AC volts)\n"); i2o_seq_show_sensors()
1507 seq_printf(seq, "DC current (DC amps)\n"); i2o_seq_show_sensors()
1510 seq_printf(seq, "AC current (AC volts)\n"); i2o_seq_show_sensors()
1513 seq_printf(seq, "Door open\n"); i2o_seq_show_sensors()
1516 seq_printf(seq, "Fan operational\n"); i2o_seq_show_sensors()
1520 seq_printf(seq, "Scaling exponent : %d\n", i2o_seq_show_sensors()
1522 seq_printf(seq, "Actual reading : %d\n", result.actual_reading); i2o_seq_show_sensors()
1523 seq_printf(seq, "Minimum reading : %d\n", result.minimum_reading); i2o_seq_show_sensors()
1524 seq_printf(seq, "Low2LowCat treshold : %d\n", i2o_seq_show_sensors()
1526 seq_printf(seq, "LowCat2Low treshold : %d\n", i2o_seq_show_sensors()
1528 seq_printf(seq, "LowWarn2Low treshold : %d\n", i2o_seq_show_sensors()
1530 seq_printf(seq, "Low2LowWarn treshold : %d\n", i2o_seq_show_sensors()
1532 seq_printf(seq, "Norm2LowWarn treshold : %d\n", i2o_seq_show_sensors()
1534 seq_printf(seq, "LowWarn2Norm treshold : %d\n", i2o_seq_show_sensors()
1536 seq_printf(seq, "Nominal reading : %d\n", result.nominal_reading); i2o_seq_show_sensors()
1537 seq_printf(seq, "HiWarn2Norm treshold : %d\n", i2o_seq_show_sensors()
1539 seq_printf(seq, "Norm2HiWarn treshold : %d\n", i2o_seq_show_sensors()
1541 seq_printf(seq, "High2HiWarn treshold : %d\n", i2o_seq_show_sensors()
1543 seq_printf(seq, "HiWarn2High treshold : %d\n", i2o_seq_show_sensors()
1545 seq_printf(seq, "HiCat2High treshold : %d\n", i2o_seq_show_sensors()
1547 seq_printf(seq, "High2HiCat treshold : %d\n", i2o_seq_show_sensors()
1549 seq_printf(seq, "Maximum reading : %d\n", result.maximum_reading); i2o_seq_show_sensors()
1551 seq_printf(seq, "Sensor state : %d = ", result.sensor_state); i2o_seq_show_sensors()
1554 seq_printf(seq, "Normal\n"); i2o_seq_show_sensors()
1557 seq_printf(seq, "Abnormal\n"); i2o_seq_show_sensors()
1560 seq_printf(seq, "Unknown\n"); i2o_seq_show_sensors()
1563 seq_printf(seq, "Low Catastrophic (LoCat)\n"); i2o_seq_show_sensors()
1566 seq_printf(seq, "Low (Low)\n"); i2o_seq_show_sensors()
1569 seq_printf(seq, "Low Warning (LoWarn)\n"); i2o_seq_show_sensors()
1572 seq_printf(seq, "High Warning (HiWarn)\n"); i2o_seq_show_sensors()
1575 seq_printf(seq, "High (High)\n"); i2o_seq_show_sensors()
1578 seq_printf(seq, "High Catastrophic (HiCat)\n"); i2o_seq_show_sensors()
1582 seq_printf(seq, "Event_enable : 0x%02X\n", result.event_enable); i2o_seq_show_sensors()
1583 seq_printf(seq, " [%s] Operational state change. \n", i2o_seq_show_sensors()
1585 seq_printf(seq, " [%s] Low catastrophic. \n", i2o_seq_show_sensors()
1587 seq_printf(seq, " [%s] Low reading. \n", i2o_seq_show_sensors()
1589 seq_printf(seq, " [%s] Low warning. \n", i2o_seq_show_sensors()
1591 seq_printf(seq, i2o_seq_show_sensors()
1594 seq_printf(seq, " [%s] High warning. \n", i2o_seq_show_sensors()
1596 seq_printf(seq, " [%s] High reading. \n", i2o_seq_show_sensors()
1598 seq_printf(seq, " [%s] High catastrophic. \n", i2o_seq_show_sensors()
/linux-4.1.27/drivers/net/wireless/cw1200/
H A Ddebug.c72 static void cw1200_queue_status_show(struct seq_file *seq, cw1200_queue_status_show() argument
76 seq_printf(seq, "Queue %d:\n", q->queue_id); cw1200_queue_status_show()
77 seq_printf(seq, " capacity: %zu\n", q->capacity); cw1200_queue_status_show()
78 seq_printf(seq, " queued: %zu\n", q->num_queued); cw1200_queue_status_show()
79 seq_printf(seq, " pending: %zu\n", q->num_pending); cw1200_queue_status_show()
80 seq_printf(seq, " sent: %zu\n", q->num_sent); cw1200_queue_status_show()
81 seq_printf(seq, " locked: %s\n", q->tx_locked_cnt ? "yes" : "no"); cw1200_queue_status_show()
82 seq_printf(seq, " overfull: %s\n", q->overfull ? "yes" : "no"); cw1200_queue_status_show()
83 seq_puts(seq, " link map: 0-> "); cw1200_queue_status_show()
85 seq_printf(seq, "%.2d ", q->link_map_cache[i]); cw1200_queue_status_show()
86 seq_printf(seq, "<-%zu\n", q->stats->map_capacity); cw1200_queue_status_show()
89 static void cw1200_debug_print_map(struct seq_file *seq, cw1200_debug_print_map() argument
95 seq_printf(seq, "%s0-> ", label); cw1200_debug_print_map()
97 seq_printf(seq, "%s ", (map & BIT(i)) ? "**" : ".."); cw1200_debug_print_map()
98 seq_printf(seq, "<-%zu\n", priv->tx_queue_stats.map_capacity - 1); cw1200_debug_print_map()
101 static int cw1200_status_show(struct seq_file *seq, void *v) cw1200_status_show() argument
105 struct cw1200_common *priv = seq->private; cw1200_status_show()
108 seq_puts(seq, "CW1200 Wireless LAN driver status\n"); cw1200_status_show()
109 seq_printf(seq, "Hardware: %d.%d\n", cw1200_status_show()
112 seq_printf(seq, "Firmware: %s %d.%d\n", cw1200_status_show()
116 seq_printf(seq, "FW API: %d\n", cw1200_status_show()
118 seq_printf(seq, "FW caps: 0x%.4X\n", cw1200_status_show()
120 seq_printf(seq, "FW label: '%s'\n", cw1200_status_show()
122 seq_printf(seq, "Mode: %s%s\n", cw1200_status_show()
125 seq_printf(seq, "Join state: %s\n", cw1200_status_show()
128 seq_printf(seq, "Channel: %d%s\n", cw1200_status_show()
133 seq_puts(seq, "Filter: promisc\n"); cw1200_status_show()
135 seq_puts(seq, "Filter: fcs\n"); cw1200_status_show()
137 seq_puts(seq, "Filter: bssid\n"); cw1200_status_show()
139 seq_puts(seq, "Filter: beacons\n"); cw1200_status_show()
146 seq_printf(seq, "Beaconing: %s\n", cw1200_status_show()
151 seq_printf(seq, "EDCA(%d): %d, %d, %d, %d, %d\n", i, cw1200_status_show()
171 seq_printf(seq, "Preamble: %s\n", cw1200_status_show()
173 seq_printf(seq, "AMPDU spcn: %d\n", cw1200_status_show()
175 seq_printf(seq, "Basic rate: 0x%.8X\n", cw1200_status_show()
177 seq_printf(seq, "Bss lost: %d beacons\n", cw1200_status_show()
179 seq_printf(seq, "AID: %d\n", cw1200_status_show()
181 seq_printf(seq, "Rates: 0x%.8X\n", cw1200_status_show()
183 seq_printf(seq, "Powersave: %s\n", pm_mode); cw1200_status_show()
185 seq_printf(seq, "HT: %s\n", cw1200_status_show()
188 seq_printf(seq, "Greenfield: %s\n", cw1200_status_show()
190 seq_printf(seq, "AMPDU dens: %d\n", cw1200_status_show()
193 seq_printf(seq, "RSSI thold: %d\n", cw1200_status_show()
195 seq_printf(seq, "RSSI hyst: %d\n", cw1200_status_show()
197 seq_printf(seq, "Long retr: %d\n", cw1200_status_show()
199 seq_printf(seq, "Short retr: %d\n", cw1200_status_show()
206 seq_printf(seq, "RC in use: %d\n", i); cw1200_status_show()
208 seq_puts(seq, "\n"); cw1200_status_show()
210 cw1200_queue_status_show(seq, &priv->tx_queue[i]); cw1200_status_show()
211 seq_puts(seq, "\n"); cw1200_status_show()
214 cw1200_debug_print_map(seq, priv, "Link map: ", cw1200_status_show()
216 cw1200_debug_print_map(seq, priv, "Asleep map: ", cw1200_status_show()
218 cw1200_debug_print_map(seq, priv, "PSPOLL map: ", cw1200_status_show()
221 seq_puts(seq, "\n"); cw1200_status_show()
225 seq_printf(seq, "Link %d: %s, %pM\n", cw1200_status_show()
232 seq_puts(seq, "\n"); cw1200_status_show()
234 seq_printf(seq, "BH status: %s\n", cw1200_status_show()
236 seq_printf(seq, "Pending RX: %d\n", cw1200_status_show()
238 seq_printf(seq, "Pending TX: %d\n", cw1200_status_show()
241 seq_printf(seq, "BH errcode: %d\n", cw1200_status_show()
243 seq_printf(seq, "TX bufs: %d x %d bytes\n", cw1200_status_show()
246 seq_printf(seq, "Used bufs: %d\n", cw1200_status_show()
248 seq_printf(seq, "Powermgmt: %s\n", cw1200_status_show()
250 seq_printf(seq, "Device: %s\n", cw1200_status_show()
254 seq_printf(seq, "WSM status: %s\n", cw1200_status_show()
256 seq_printf(seq, "WSM cmd: 0x%.4X (%td bytes)\n", cw1200_status_show()
258 seq_printf(seq, "WSM retval: %d\n", cw1200_status_show()
262 seq_printf(seq, "Datapath: %s\n", cw1200_status_show()
265 seq_printf(seq, "TXlock cnt: %d\n", cw1200_status_show()
268 seq_printf(seq, "TXed: %d\n", cw1200_status_show()
270 seq_printf(seq, "AGG TXed: %d\n", cw1200_status_show()
272 seq_printf(seq, "MULTI TXed: %d (%d)\n", cw1200_status_show()
274 seq_printf(seq, "RXed: %d\n", cw1200_status_show()
276 seq_printf(seq, "AGG RXed: %d\n", cw1200_status_show()
278 seq_printf(seq, "TX miss: %d\n", cw1200_status_show()
280 seq_printf(seq, "TX align: %d\n", cw1200_status_show()
282 seq_printf(seq, "TX burst: %d\n", cw1200_status_show()
284 seq_printf(seq, "TX TTL: %d\n", cw1200_status_show()
286 seq_printf(seq, "Scan: %s\n", cw1200_status_show()
306 static int cw1200_counters_show(struct seq_file *seq, void *v) cw1200_counters_show() argument
309 struct cw1200_common *priv = seq->private; cw1200_counters_show()
317 seq_printf(seq, "%s:" tab "%d\n", #name, \ cw1200_counters_show()
/linux-4.1.27/drivers/rtc/
H A Drtc-proc.c42 static int rtc_proc_show(struct seq_file *seq, void *offset) rtc_proc_show() argument
45 struct rtc_device *rtc = seq->private; rtc_proc_show()
52 seq_printf(seq, rtc_proc_show()
61 seq_printf(seq, "alrm_time\t: "); rtc_proc_show()
63 seq_printf(seq, "%02d:", alrm.time.tm_hour); rtc_proc_show()
65 seq_printf(seq, "**:"); rtc_proc_show()
67 seq_printf(seq, "%02d:", alrm.time.tm_min); rtc_proc_show()
69 seq_printf(seq, "**:"); rtc_proc_show()
71 seq_printf(seq, "%02d\n", alrm.time.tm_sec); rtc_proc_show()
73 seq_printf(seq, "**\n"); rtc_proc_show()
75 seq_printf(seq, "alrm_date\t: "); rtc_proc_show()
77 seq_printf(seq, "%04d-", alrm.time.tm_year + 1900); rtc_proc_show()
79 seq_printf(seq, "****-"); rtc_proc_show()
81 seq_printf(seq, "%02d-", alrm.time.tm_mon + 1); rtc_proc_show()
83 seq_printf(seq, "**-"); rtc_proc_show()
85 seq_printf(seq, "%02d\n", alrm.time.tm_mday); rtc_proc_show()
87 seq_printf(seq, "**\n"); rtc_proc_show()
88 seq_printf(seq, "alarm_IRQ\t: %s\n", rtc_proc_show()
90 seq_printf(seq, "alrm_pending\t: %s\n", rtc_proc_show()
92 seq_printf(seq, "update IRQ enabled\t: %s\n", rtc_proc_show()
94 seq_printf(seq, "periodic IRQ enabled\t: %s\n", rtc_proc_show()
96 seq_printf(seq, "periodic IRQ frequency\t: %d\n", rtc_proc_show()
98 seq_printf(seq, "max user IRQ frequency\t: %d\n", rtc_proc_show()
102 seq_printf(seq, "24hr\t\t: yes\n"); rtc_proc_show()
105 ops->proc(rtc->dev.parent, seq); rtc_proc_show()
H A Drtc-test.c53 static int test_rtc_proc(struct device *dev, struct seq_file *seq) test_rtc_proc() argument
57 seq_printf(seq, "test\t\t: yes\n"); test_rtc_proc()
58 seq_printf(seq, "id\t\t: %d\n", plat_dev->id); test_rtc_proc()
/linux-4.1.27/sound/core/seq/oss/
H A DMakefile6 snd-seq-oss-objs := seq_oss.o seq_oss_init.o seq_oss_timer.o seq_oss_ioctl.o \
10 obj-$(CONFIG_SND_SEQUENCER) += snd-seq-oss.o
/linux-4.1.27/net/xfrm/
H A Dxfrm_replay.c26 u32 seq, seq_hi, bottom; xfrm_replay_seqhi() local
32 seq = ntohl(net_seq); xfrm_replay_seqhi()
34 bottom = replay_esn->seq - replay_esn->replay_window + 1; xfrm_replay_seqhi()
36 if (likely(replay_esn->seq >= replay_esn->replay_window - 1)) { xfrm_replay_seqhi()
38 if (unlikely(seq < bottom)) xfrm_replay_seqhi()
42 if (unlikely(seq >= bottom)) xfrm_replay_seqhi()
65 ((x->replay.seq - x->preplay.seq < x->replay_maxdiff) && xfrm_replay_notify()
101 XFRM_SKB_CB(skb)->seq.output.low = ++x->replay.oseq; xfrm_replay_overflow()
102 XFRM_SKB_CB(skb)->seq.output.hi = 0; xfrm_replay_overflow()
121 u32 seq = ntohl(net_seq); xfrm_replay_check() local
126 if (unlikely(seq == 0)) xfrm_replay_check()
129 if (likely(seq > x->replay.seq)) xfrm_replay_check()
132 diff = x->replay.seq - seq; xfrm_replay_check()
152 u32 seq = ntohl(net_seq); xfrm_replay_advance() local
157 if (seq > x->replay.seq) { xfrm_replay_advance()
158 diff = seq - x->replay.seq; xfrm_replay_advance()
163 x->replay.seq = seq; xfrm_replay_advance()
165 diff = x->replay.seq - seq; xfrm_replay_advance()
180 XFRM_SKB_CB(skb)->seq.output.low = ++replay_esn->oseq; xfrm_replay_overflow_bmp()
181 XFRM_SKB_CB(skb)->seq.output.hi = 0; xfrm_replay_overflow_bmp()
202 u32 seq = ntohl(net_seq); xfrm_replay_check_bmp() local
203 u32 diff = replay_esn->seq - seq; xfrm_replay_check_bmp()
208 if (unlikely(seq == 0)) xfrm_replay_check_bmp()
211 if (likely(seq > replay_esn->seq)) xfrm_replay_check_bmp()
219 pos = (replay_esn->seq - 1) % replay_esn->replay_window; xfrm_replay_check_bmp()
245 u32 seq = ntohl(net_seq); xfrm_replay_advance_bmp() local
251 pos = (replay_esn->seq - 1) % replay_esn->replay_window; xfrm_replay_advance_bmp()
253 if (seq > replay_esn->seq) { xfrm_replay_advance_bmp()
254 diff = seq - replay_esn->seq; xfrm_replay_advance_bmp()
270 replay_esn->seq = seq; xfrm_replay_advance_bmp()
272 diff = replay_esn->seq - seq; xfrm_replay_advance_bmp()
307 ((replay_esn->seq - preplay_esn->seq < x->replay_maxdiff) && xfrm_replay_notify_bmp()
360 seq_diff = replay_esn->seq - preplay_esn->seq; xfrm_replay_notify_esn()
362 seq_diff = ~preplay_esn->seq + replay_esn->seq xfrm_replay_notify_esn()
412 XFRM_SKB_CB(skb)->seq.output.low = ++replay_esn->oseq; xfrm_replay_overflow_esn()
413 XFRM_SKB_CB(skb)->seq.output.hi = replay_esn->oseq_hi; xfrm_replay_overflow_esn()
416 XFRM_SKB_CB(skb)->seq.output.hi = ++replay_esn->oseq_hi; xfrm_replay_overflow_esn()
441 u32 seq = ntohl(net_seq); xfrm_replay_check_esn() local
443 u32 top = replay_esn->seq; xfrm_replay_check_esn()
449 if (unlikely(seq == 0 && replay_esn->seq_hi == 0 && xfrm_replay_check_esn()
450 (replay_esn->seq < replay_esn->replay_window - 1))) xfrm_replay_check_esn()
453 diff = top - seq; xfrm_replay_check_esn()
457 if (likely(seq > top) || seq < bottom) xfrm_replay_check_esn()
461 if (likely(seq > top && seq < bottom)) xfrm_replay_check_esn()
463 if (seq >= bottom) xfrm_replay_check_esn()
464 diff = ~seq + top + 1; xfrm_replay_check_esn()
472 pos = (replay_esn->seq - 1) % replay_esn->replay_window; xfrm_replay_check_esn()
496 if (unlikely(XFRM_SKB_CB(skb)->seq.input.hi != xfrm_replay_recheck_esn()
509 u32 diff, pos, seq, seq_hi; xfrm_replay_advance_esn() local
515 seq = ntohl(net_seq); xfrm_replay_advance_esn()
516 pos = (replay_esn->seq - 1) % replay_esn->replay_window; xfrm_replay_advance_esn()
520 if ((!wrap && seq > replay_esn->seq) || wrap > 0) { xfrm_replay_advance_esn()
522 diff = seq - replay_esn->seq; xfrm_replay_advance_esn()
524 diff = ~replay_esn->seq + seq + 1; xfrm_replay_advance_esn()
540 replay_esn->seq = seq; xfrm_replay_advance_esn()
545 diff = replay_esn->seq - seq; xfrm_replay_advance_esn()
H A Dxfrm_input.c126 /* Fetch spi and seq from ipsec header */
128 int xfrm_parse_spi(struct sk_buff *skb, u8 nexthdr, __be32 *spi, __be32 *seq) xfrm_parse_spi() argument
148 *seq = 0; xfrm_parse_spi()
158 *seq = *(__be32 *)(skb_transport_header(skb) + offset_seq); xfrm_parse_spi()
186 __be32 seq; xfrm_input() local
200 seq = XFRM_SKB_CB(skb)->seq.input.low; xfrm_input()
235 seq = 0; xfrm_input()
236 if (!spi && (err = xfrm_parse_spi(skb, nexthdr, &spi, &seq)) != 0) { xfrm_input()
250 xfrm_audit_state_notfound(skb, family, spi, seq); xfrm_input()
272 if (x->repl->check(x, skb, seq)) { xfrm_input()
289 seq_hi = htonl(xfrm_replay_seqhi(x, seq)); xfrm_input()
291 XFRM_SKB_CB(skb)->seq.input.low = seq; xfrm_input()
292 XFRM_SKB_CB(skb)->seq.input.hi = seq_hi; xfrm_input()
315 if (async && x->repl->recheck(x, skb, seq)) { xfrm_input()
320 x->repl->advance(x, seq); xfrm_input()
354 err = xfrm_parse_spi(skb, nexthdr, &spi, &seq); xfrm_input()
H A Dxfrm_proc.c51 static int xfrm_statistics_seq_show(struct seq_file *seq, void *v) xfrm_statistics_seq_show() argument
53 struct net *net = seq->private; xfrm_statistics_seq_show()
56 seq_printf(seq, "%-24s\t%lu\n", xfrm_mib_list[i].name, xfrm_statistics_seq_show()
/linux-4.1.27/drivers/cpufreq/
H A Ds3c24xx-cpufreq-debugfs.c31 static void show_max(struct seq_file *seq, struct s3c_freq *f) show_max() argument
33 seq_printf(seq, "MAX: F=%lu, H=%lu, P=%lu, A=%lu\n", show_max()
37 static int board_show(struct seq_file *seq, void *p) board_show() argument
44 seq_printf(seq, "no configuration registered\n"); board_show()
50 seq_printf(seq, "no board definition set?\n"); board_show()
54 seq_printf(seq, "SDRAM refresh %u ns\n", brd->refresh); board_show()
55 seq_printf(seq, "auto_io=%u\n", brd->auto_io); board_show()
56 seq_printf(seq, "need_io=%u\n", brd->need_io); board_show()
58 show_max(seq, &brd->max); board_show()
77 static int info_show(struct seq_file *seq, void *p) info_show() argument
83 seq_printf(seq, "no configuration registered\n"); info_show()
87 seq_printf(seq, " FCLK %ld Hz\n", cfg->freq.fclk); info_show()
88 seq_printf(seq, " HCLK %ld Hz (%lu.%lu ns)\n", info_show()
90 seq_printf(seq, " PCLK %ld Hz\n", cfg->freq.hclk); info_show()
91 seq_printf(seq, "ARMCLK %ld Hz\n", cfg->freq.armclk); info_show()
92 seq_printf(seq, "\n"); info_show()
94 show_max(seq, &cfg->max); info_show()
96 seq_printf(seq, "Divisors: P=%d, H=%d, A=%d, dvs=%s\n", info_show()
99 seq_printf(seq, "\n"); info_show()
101 seq_printf(seq, "lock_pll=%u\n", cfg->lock_pll); info_show()
119 static int io_show(struct seq_file *seq, void *p) io_show() argument
129 seq_printf(seq, "no configuration registered\n"); io_show()
135 seq_printf(seq, "no code to show bank timing\n"); io_show()
141 seq_printf(seq, "no io timings registered\n"); io_show()
145 seq_printf(seq, "hclk period is %lu.%lu ns\n", print_ns(cfg->freq.hclk_tns)); io_show()
150 seq_printf(seq, "bank %d: ", bank); io_show()
153 seq_printf(seq, "nothing set\n"); io_show()
157 show_bank(seq, cfg, iob); io_show()
/linux-4.1.27/net/netfilter/
H A Dnf_conntrack_seqadj.c22 this_way = &seqadj->seq[dir]; nf_ct_seqadj_init()
30 __be32 seq, s32 off) nf_ct_seqadj_set()
47 this_way = &seqadj->seq[dir]; nf_ct_seqadj_set()
49 before(this_way->correction_pos, ntohl(seq))) { nf_ct_seqadj_set()
50 this_way->correction_pos = ntohl(seq); nf_ct_seqadj_set()
69 nf_ct_seqadj_set(ct, ctinfo, th->seq, off); nf_ct_tcp_seqadj_set()
78 struct nf_ct_seqadj *seq) nf_ct_sack_block_adjust()
85 if (after(ntohl(sack->start_seq) - seq->offset_before, nf_ct_sack_block_adjust()
86 seq->correction_pos)) nf_ct_sack_block_adjust()
88 seq->offset_after); nf_ct_sack_block_adjust()
91 seq->offset_before); nf_ct_sack_block_adjust()
93 if (after(ntohl(sack->end_seq) - seq->offset_before, nf_ct_sack_block_adjust()
94 seq->correction_pos)) nf_ct_sack_block_adjust()
96 seq->offset_after); nf_ct_sack_block_adjust()
99 seq->offset_before); nf_ct_sack_block_adjust()
154 &seqadj->seq[!dir]); nf_ct_sack_adjust()
174 this_way = &seqadj->seq[dir]; nf_ct_seq_adjust()
175 other_way = &seqadj->seq[!dir]; nf_ct_seq_adjust()
182 if (after(ntohl(tcph->seq), this_way->correction_pos)) nf_ct_seq_adjust()
193 newseq = htonl(ntohl(tcph->seq) + seqoff); nf_ct_seq_adjust()
196 inet_proto_csum_replace4(&tcph->check, skb, tcph->seq, newseq, 0); nf_ct_seq_adjust()
200 ntohl(tcph->seq), ntohl(newseq), ntohl(tcph->ack_seq), nf_ct_seq_adjust()
203 tcph->seq = newseq; nf_ct_seq_adjust()
215 u32 seq) nf_ct_seq_offset()
223 this_way = &seqadj->seq[dir]; nf_ct_seq_offset()
224 return after(seq, this_way->correction_pos) ? nf_ct_seq_offset()
29 nf_ct_seqadj_set(struct nf_conn *ct, enum ip_conntrack_info ctinfo, __be32 seq, s32 off) nf_ct_seqadj_set() argument
74 nf_ct_sack_block_adjust(struct sk_buff *skb, struct tcphdr *tcph, unsigned int sackoff, unsigned int sackend, struct nf_ct_seqadj *seq) nf_ct_sack_block_adjust() argument
213 nf_ct_seq_offset(const struct nf_conn *ct, enum ip_conntrack_dir dir, u32 seq) nf_ct_seq_offset() argument
H A Dnf_conntrack_standalone.c55 static struct hlist_nulls_node *ct_get_first(struct seq_file *seq) ct_get_first() argument
57 struct net *net = seq_file_net(seq); ct_get_first()
58 struct ct_iter_state *st = seq->private; ct_get_first()
71 static struct hlist_nulls_node *ct_get_next(struct seq_file *seq, ct_get_next() argument
74 struct net *net = seq_file_net(seq); ct_get_next()
75 struct ct_iter_state *st = seq->private; ct_get_next()
90 static struct hlist_nulls_node *ct_get_idx(struct seq_file *seq, loff_t pos) ct_get_idx() argument
92 struct hlist_nulls_node *head = ct_get_first(seq); ct_get_idx()
95 while (pos && (head = ct_get_next(seq, head))) ct_get_idx()
100 static void *ct_seq_start(struct seq_file *seq, loff_t *pos) __acquires()
103 struct ct_iter_state *st = seq->private; __acquires()
107 return ct_get_idx(seq, *pos); __acquires()
270 static void *ct_cpu_seq_start(struct seq_file *seq, loff_t *pos) ct_cpu_seq_start() argument
272 struct net *net = seq_file_net(seq); ct_cpu_seq_start()
288 static void *ct_cpu_seq_next(struct seq_file *seq, void *v, loff_t *pos) ct_cpu_seq_next() argument
290 struct net *net = seq_file_net(seq); ct_cpu_seq_next()
303 static void ct_cpu_seq_stop(struct seq_file *seq, void *v) ct_cpu_seq_stop() argument
307 static int ct_cpu_seq_show(struct seq_file *seq, void *v) ct_cpu_seq_show() argument
309 struct net *net = seq_file_net(seq); ct_cpu_seq_show()
314 seq_printf(seq, "entries searched found new invalid ignore delete delete_list insert insert_failed drop early_drop icmp_error expect_new expect_create expect_delete search_restart\n"); ct_cpu_seq_show()
318 seq_printf(seq, "%08x %08x %08x %08x %08x %08x %08x %08x " ct_cpu_seq_show()
H A Dnft_counter.c41 unsigned int seq; nft_counter_dump() local
46 seq = read_seqbegin(&priv->lock); nft_counter_dump()
49 } while (read_seqretry(&priv->lock, seq)); nft_counter_dump()
H A Dx_tables.c919 static void *xt_table_seq_start(struct seq_file *seq, loff_t *pos) xt_table_seq_start() argument
921 struct xt_names_priv *priv = seq->private; xt_table_seq_start()
922 struct net *net = seq_file_net(seq); xt_table_seq_start()
929 static void *xt_table_seq_next(struct seq_file *seq, void *v, loff_t *pos) xt_table_seq_next() argument
931 struct xt_names_priv *priv = seq->private; xt_table_seq_next()
932 struct net *net = seq_file_net(seq); xt_table_seq_next()
938 static void xt_table_seq_stop(struct seq_file *seq, void *v) xt_table_seq_stop() argument
940 struct xt_names_priv *priv = seq->private; xt_table_seq_stop()
946 static int xt_table_seq_show(struct seq_file *seq, void *v) xt_table_seq_show() argument
951 seq_printf(seq, "%s\n", table->name); xt_table_seq_show()
952 return seq_has_overflowed(seq); xt_table_seq_show()
1002 static void *xt_mttg_seq_next(struct seq_file *seq, void *v, loff_t *ppos, xt_mttg_seq_next() argument
1009 struct nf_mttg_trav *trav = seq->private; xt_mttg_seq_next()
1042 static void *xt_mttg_seq_start(struct seq_file *seq, loff_t *pos, xt_mttg_seq_start() argument
1045 struct nf_mttg_trav *trav = seq->private; xt_mttg_seq_start()
1050 if (xt_mttg_seq_next(seq, NULL, NULL, is_target) == NULL) xt_mttg_seq_start()
1055 static void xt_mttg_seq_stop(struct seq_file *seq, void *v) xt_mttg_seq_stop() argument
1057 struct nf_mttg_trav *trav = seq->private; xt_mttg_seq_stop()
1069 static void *xt_match_seq_start(struct seq_file *seq, loff_t *pos) xt_match_seq_start() argument
1071 return xt_mttg_seq_start(seq, pos, false); xt_match_seq_start()
1074 static void *xt_match_seq_next(struct seq_file *seq, void *v, loff_t *ppos) xt_match_seq_next() argument
1076 return xt_mttg_seq_next(seq, v, ppos, false); xt_match_seq_next()
1079 static int xt_match_seq_show(struct seq_file *seq, void *v) xt_match_seq_show() argument
1081 const struct nf_mttg_trav *trav = seq->private; xt_match_seq_show()
1092 seq_printf(seq, "%s\n", match->name); xt_match_seq_show()
1093 return seq_has_overflowed(seq); xt_match_seq_show()
1124 static void *xt_target_seq_start(struct seq_file *seq, loff_t *pos) xt_target_seq_start() argument
1126 return xt_mttg_seq_start(seq, pos, true); xt_target_seq_start()
1129 static void *xt_target_seq_next(struct seq_file *seq, void *v, loff_t *ppos) xt_target_seq_next() argument
1131 return xt_mttg_seq_next(seq, v, ppos, true); xt_target_seq_next()
1134 static int xt_target_seq_show(struct seq_file *seq, void *v) xt_target_seq_show() argument
1136 const struct nf_mttg_trav *trav = seq->private; xt_target_seq_show()
1147 seq_printf(seq, "%s\n", target->name); xt_target_seq_show()
1148 return seq_has_overflowed(seq); xt_target_seq_show()
H A Dnf_synproxy_core.c244 static void *synproxy_cpu_seq_start(struct seq_file *seq, loff_t *pos) synproxy_cpu_seq_start() argument
246 struct synproxy_net *snet = synproxy_pernet(seq_file_net(seq)); synproxy_cpu_seq_start()
262 static void *synproxy_cpu_seq_next(struct seq_file *seq, void *v, loff_t *pos) synproxy_cpu_seq_next() argument
264 struct synproxy_net *snet = synproxy_pernet(seq_file_net(seq)); synproxy_cpu_seq_next()
277 static void synproxy_cpu_seq_stop(struct seq_file *seq, void *v) synproxy_cpu_seq_stop() argument
282 static int synproxy_cpu_seq_show(struct seq_file *seq, void *v) synproxy_cpu_seq_show() argument
287 seq_printf(seq, "entries\t\tsyn_received\t" synproxy_cpu_seq_show()
293 seq_printf(seq, "%08x\t%08x\t%08x\t%08x\t%08x\t%08x\n", 0, synproxy_cpu_seq_show()
H A Dnf_conntrack_expect.c466 static struct hlist_node *ct_expect_get_first(struct seq_file *seq) ct_expect_get_first() argument
468 struct net *net = seq_file_net(seq); ct_expect_get_first()
469 struct ct_expect_iter_state *st = seq->private; ct_expect_get_first()
480 static struct hlist_node *ct_expect_get_next(struct seq_file *seq, ct_expect_get_next() argument
483 struct net *net = seq_file_net(seq); ct_expect_get_next()
484 struct ct_expect_iter_state *st = seq->private; ct_expect_get_next()
495 static struct hlist_node *ct_expect_get_idx(struct seq_file *seq, loff_t pos) ct_expect_get_idx() argument
497 struct hlist_node *head = ct_expect_get_first(seq); ct_expect_get_idx()
500 while (pos && (head = ct_expect_get_next(seq, head))) ct_expect_get_idx()
505 static void *exp_seq_start(struct seq_file *seq, loff_t *pos) __acquires()
509 return ct_expect_get_idx(seq, *pos); __acquires()
512 static void *exp_seq_next(struct seq_file *seq, void *v, loff_t *pos) exp_seq_next() argument
515 return ct_expect_get_next(seq, v); exp_seq_next()
518 static void exp_seq_stop(struct seq_file *seq, void *v) __releases()
/linux-4.1.27/net/atm/
H A Dproc.c44 static void add_stats(struct seq_file *seq, const char *aal, add_stats() argument
47 seq_printf(seq, "%s ( %d %d %d %d %d )", aal, add_stats()
53 static void atm_dev_info(struct seq_file *seq, const struct atm_dev *dev) atm_dev_info() argument
57 seq_printf(seq, "%3d %-8s", dev->number, dev->type); atm_dev_info()
59 seq_printf(seq, "%02x", dev->esi[i]); atm_dev_info()
60 seq_puts(seq, " "); atm_dev_info()
61 add_stats(seq, "0", &dev->stats.aal0); atm_dev_info()
62 seq_puts(seq, " "); atm_dev_info()
63 add_stats(seq, "5", &dev->stats.aal5); atm_dev_info()
64 seq_printf(seq, "\t[%d]", atomic_read(&dev->refcnt)); atm_dev_info()
65 seq_putc(seq, '\n'); atm_dev_info()
128 static void *vcc_seq_start(struct seq_file *seq, loff_t *pos) __acquires()
131 struct vcc_state *state = seq->private; __acquires()
139 static void vcc_seq_stop(struct seq_file *seq, void *v) __releases()
145 static void *vcc_seq_next(struct seq_file *seq, void *v, loff_t *pos) vcc_seq_next() argument
147 struct vcc_state *state = seq->private; vcc_seq_next()
154 static void pvc_info(struct seq_file *seq, struct atm_vcc *vcc) pvc_info() argument
164 seq_printf(seq, "%3d %3d %5d %-3s %7d %-5s %7d %-6s", pvc_info()
176 seq_printf(seq, "CLIP, Itf:%s, Encap:", pvc_info()
178 seq_printf(seq, "%s", clip_vcc->encap ? "LLC/SNAP" : "None"); pvc_info()
180 seq_putc(seq, '\n'); pvc_info()
190 static void vcc_info(struct seq_file *seq, struct atm_vcc *vcc) vcc_info() argument
194 seq_printf(seq, "%pK ", vcc); vcc_info()
196 seq_printf(seq, "Unassigned "); vcc_info()
198 seq_printf(seq, "%3d %3d %5d ", vcc->dev->number, vcc->vpi, vcc_info()
202 seq_printf(seq, "PVC"); vcc_info()
205 seq_printf(seq, "SVC"); vcc_info()
208 seq_printf(seq, "%3d", sk->sk_family); vcc_info()
210 seq_printf(seq, " %04lx %5d %7d/%7d %7d/%7d [%d]\n", vcc_info()
217 static void svc_info(struct seq_file *seq, struct atm_vcc *vcc) svc_info() argument
220 seq_printf(seq, sizeof(void *) == 4 ? svc_info()
223 seq_printf(seq, "%3d %3d %5d ", svc_info()
225 seq_printf(seq, "%-10s ", vcc_state(vcc)); svc_info()
226 seq_printf(seq, "%s%s", vcc->remote.sas_addr.pub, svc_info()
232 seq_printf(seq, "%02x", vcc->remote.sas_addr.prv[i]); svc_info()
234 seq_putc(seq, '\n'); svc_info()
237 static int atm_dev_seq_show(struct seq_file *seq, void *v) atm_dev_seq_show() argument
244 seq_puts(seq, atm_dev_banner); atm_dev_seq_show()
248 atm_dev_info(seq, dev); atm_dev_seq_show()
272 static int pvc_seq_show(struct seq_file *seq, void *v) pvc_seq_show() argument
278 seq_puts(seq, atm_pvc_banner); pvc_seq_show()
280 struct vcc_state *state = seq->private; pvc_seq_show()
283 pvc_info(seq, vcc); pvc_seq_show()
307 static int vcc_seq_show(struct seq_file *seq, void *v) vcc_seq_show() argument
310 seq_printf(seq, sizeof(void *) == 4 ? "%-8s%s" : "%-16s%s", vcc_seq_show()
314 struct vcc_state *state = seq->private; vcc_seq_show()
317 vcc_info(seq, vcc); vcc_seq_show()
341 static int svc_seq_show(struct seq_file *seq, void *v) svc_seq_show() argument
347 seq_puts(seq, atm_svc_banner); svc_seq_show()
349 struct vcc_state *state = seq->private; svc_seq_show()
352 svc_info(seq, vcc); svc_seq_show()
H A Dresources.h23 void *atm_dev_seq_start(struct seq_file *seq, loff_t *pos);
24 void atm_dev_seq_stop(struct seq_file *seq, void *v);
25 void *atm_dev_seq_next(struct seq_file *seq, void *v, loff_t *pos);
H A Dclip.c702 static void svc_addr(struct seq_file *seq, struct sockaddr_atmsvc *addr) svc_addr() argument
708 seq_printf(seq, "%s", addr->sas_addr.pub); svc_addr()
710 seq_putc(seq, '+'); svc_addr()
712 seq_printf(seq, "%s", "(none)"); svc_addr()
723 seq_printf(seq, "%02X", *prv++); svc_addr()
725 seq_putc(seq, '.'); svc_addr()
733 static void atmarp_info(struct seq_file *seq, struct neighbour *n, atmarp_info() argument
753 seq_printf(seq, "%-6s%-4s%-4s%5ld ", atmarp_info()
760 seq_printf(seq, "%s", buf); atmarp_info()
764 seq_printf(seq, "(resolving)\n"); atmarp_info()
766 seq_printf(seq, "(expired, ref %d)\n", atmarp_info()
769 seq_printf(seq, "%d.%d.%d\n", atmarp_info()
773 svc_addr(seq, &clip_vcc->vcc->remote); atmarp_info()
774 seq_putc(seq, '\n'); atmarp_info()
833 static void *clip_seq_start(struct seq_file *seq, loff_t * pos) clip_seq_start() argument
835 struct clip_seq_state *state = seq->private; clip_seq_start()
837 return neigh_seq_start(seq, pos, &arp_tbl, NEIGH_SEQ_NEIGH_ONLY); clip_seq_start()
840 static int clip_seq_show(struct seq_file *seq, void *v) clip_seq_show() argument
846 seq_puts(seq, atm_arp_banner); clip_seq_show()
848 struct clip_seq_state *state = seq->private; clip_seq_show()
852 atmarp_info(seq, n, neighbour_priv(n), vcc); clip_seq_show()
/linux-4.1.27/tools/perf/arch/x86/util/
H A Dtsc.c16 u32 seq; perf_read_tsc_conversion() local
20 seq = pc->lock; perf_read_tsc_conversion()
27 if (pc->lock == seq && !(seq & 1)) perf_read_tsc_conversion()
/linux-4.1.27/net/ipv4/
H A Dproc.c52 static int sockstat_seq_show(struct seq_file *seq, void *v) sockstat_seq_show() argument
54 struct net *net = seq->private; sockstat_seq_show()
63 socket_seq_show(seq); sockstat_seq_show()
64 seq_printf(seq, "TCP: inuse %d orphan %d tw %d alloc %d mem %ld\n", sockstat_seq_show()
68 seq_printf(seq, "UDP: inuse %d mem %ld\n", sockstat_seq_show()
71 seq_printf(seq, "UDPLITE: inuse %d\n", sockstat_seq_show()
73 seq_printf(seq, "RAW: inuse %d\n", sockstat_seq_show()
76 seq_printf(seq, "FRAG: inuse %u memory %u\n", !!frag_mem, frag_mem); sockstat_seq_show()
304 static void icmpmsg_put_line(struct seq_file *seq, unsigned long *vals, icmpmsg_put_line() argument
310 seq_puts(seq, "\nIcmpMsg:"); icmpmsg_put_line()
312 seq_printf(seq, " %sType%u", icmpmsg_put_line()
315 seq_puts(seq, "\nIcmpMsg:"); icmpmsg_put_line()
317 seq_printf(seq, " %lu", vals[j]); icmpmsg_put_line()
321 static void icmpmsg_put(struct seq_file *seq) icmpmsg_put() argument
328 struct net *net = seq->private; icmpmsg_put()
338 icmpmsg_put_line(seq, vals, type, count); icmpmsg_put()
342 icmpmsg_put_line(seq, vals, type, count); icmpmsg_put()
347 static void icmp_put(struct seq_file *seq) icmp_put() argument
350 struct net *net = seq->private; icmp_put()
353 seq_puts(seq, "\nIcmp: InMsgs InErrors InCsumErrors"); icmp_put()
355 seq_printf(seq, " In%s", icmpmibmap[i].name); icmp_put()
356 seq_puts(seq, " OutMsgs OutErrors"); icmp_put()
358 seq_printf(seq, " Out%s", icmpmibmap[i].name); icmp_put()
359 seq_printf(seq, "\nIcmp: %lu %lu %lu", icmp_put()
364 seq_printf(seq, " %lu", icmp_put()
366 seq_printf(seq, " %lu %lu", icmp_put()
370 seq_printf(seq, " %lu", icmp_put()
377 static int snmp_seq_show(struct seq_file *seq, void *v) snmp_seq_show() argument
380 struct net *net = seq->private; snmp_seq_show()
382 seq_puts(seq, "Ip: Forwarding DefaultTTL"); snmp_seq_show()
385 seq_printf(seq, " %s", snmp4_ipstats_list[i].name); snmp_seq_show()
387 seq_printf(seq, "\nIp: %d %d", snmp_seq_show()
393 seq_printf(seq, " %llu", snmp_seq_show()
398 icmp_put(seq); /* RFC 2011 compatibility */ snmp_seq_show()
399 icmpmsg_put(seq); snmp_seq_show()
401 seq_puts(seq, "\nTcp:"); snmp_seq_show()
403 seq_printf(seq, " %s", snmp4_tcp_list[i].name); snmp_seq_show()
405 seq_puts(seq, "\nTcp:"); snmp_seq_show()
409 seq_printf(seq, " %ld", snmp_seq_show()
413 seq_printf(seq, " %lu", snmp_seq_show()
418 seq_puts(seq, "\nUdp:"); snmp_seq_show()
420 seq_printf(seq, " %s", snmp4_udp_list[i].name); snmp_seq_show()
422 seq_puts(seq, "\nUdp:"); snmp_seq_show()
424 seq_printf(seq, " %lu", snmp_seq_show()
429 seq_puts(seq, "\nUdpLite:"); snmp_seq_show()
431 seq_printf(seq, " %s", snmp4_udp_list[i].name); snmp_seq_show()
433 seq_puts(seq, "\nUdpLite:"); snmp_seq_show()
435 seq_printf(seq, " %lu", snmp_seq_show()
439 seq_putc(seq, '\n'); snmp_seq_show()
461 static int netstat_seq_show(struct seq_file *seq, void *v) netstat_seq_show() argument
464 struct net *net = seq->private; netstat_seq_show()
466 seq_puts(seq, "TcpExt:"); netstat_seq_show()
468 seq_printf(seq, " %s", snmp4_net_list[i].name); netstat_seq_show()
470 seq_puts(seq, "\nTcpExt:"); netstat_seq_show()
472 seq_printf(seq, " %lu", netstat_seq_show()
476 seq_puts(seq, "\nIpExt:"); netstat_seq_show()
478 seq_printf(seq, " %s", snmp4_ipextstats_list[i].name); netstat_seq_show()
480 seq_puts(seq, "\nIpExt:"); netstat_seq_show()
482 seq_printf(seq, " %llu", netstat_seq_show()
487 seq_putc(seq, '\n'); netstat_seq_show()
H A Dtcp_offload.c18 unsigned int seq, unsigned int mss) tcp_gso_tstamp()
21 if (before(ts_seq, seq + mss)) { tcp_gso_tstamp()
28 seq += mss; tcp_gso_tstamp()
61 unsigned int seq; tcp_gso_segment() local
126 seq = ntohl(th->seq); tcp_gso_segment()
129 tcp_gso_tstamp(segs, skb_shinfo(gso_skb)->tskey, seq, mss); tcp_gso_segment()
141 seq += mss; tcp_gso_segment()
150 th->seq = htonl(seq); tcp_gso_segment()
248 flush |= (ntohl(th2->seq) + skb_gro_len(p)) ^ ntohl(th->seq); tcp_gro_receive()
17 tcp_gso_tstamp(struct sk_buff *skb, unsigned int ts_seq, unsigned int seq, unsigned int mss) tcp_gso_tstamp() argument
H A Dtcp_ipv4.c315 void tcp_req_err(struct sock *sk, u32 seq) tcp_req_err() argument
325 if (seq != tcp_rsk(req)->snt_isn) { tcp_req_err()
369 __u32 seq, snd_una; tcp_v4_err() local
385 seq = ntohl(th->seq); tcp_v4_err()
387 return tcp_req_err(sk, seq); tcp_v4_err()
413 !between(seq, snd_una, tp->snd_nxt)) { tcp_v4_err()
455 if (seq != tp->snd_una || !icsk->icsk_retransmits || tcp_v4_err()
616 rep.th.seq = th->ack_seq; tcp_v4_send_reset()
619 rep.th.ack_seq = htonl(ntohl(th->seq) + th->syn + th->fin + tcp_v4_send_reset()
709 struct sk_buff *skb, u32 seq, u32 ack, tcp_v4_send_ack()
743 rep.th.seq = htonl(seq); tcp_v4_send_ack()
805 u32 seq = (sk->sk_state == TCP_LISTEN) ? tcp_rsk(req)->snt_isn + 1 : tcp_v4_reqsk_send_ack() local
808 tcp_v4_send_ack(sock_net(sk), skb, seq, tcp_v4_reqsk_send_ack() local
1588 TCP_SKB_CB(skb)->seq = ntohl(th->seq); tcp_v4_rcv()
1589 TCP_SKB_CB(skb)->end_seq = (TCP_SKB_CB(skb)->seq + th->syn + th->fin + tcp_v4_rcv()
1822 static void *listening_get_next(struct seq_file *seq, void *cur) listening_get_next() argument
1828 struct tcp_iter_state *st = seq->private; listening_get_next()
1829 struct net *net = seq_file_net(seq); listening_get_next()
1904 static void *listening_get_idx(struct seq_file *seq, loff_t *pos) listening_get_idx() argument
1906 struct tcp_iter_state *st = seq->private; listening_get_idx()
1911 rc = listening_get_next(seq, NULL); listening_get_idx()
1914 rc = listening_get_next(seq, rc); listening_get_idx()
1929 static void *established_get_first(struct seq_file *seq) established_get_first() argument
1931 struct tcp_iter_state *st = seq->private; established_get_first()
1932 struct net *net = seq_file_net(seq); established_get_first()
1960 static void *established_get_next(struct seq_file *seq, void *cur) established_get_next() argument
1964 struct tcp_iter_state *st = seq->private; established_get_next()
1965 struct net *net = seq_file_net(seq); established_get_next()
1979 return established_get_first(seq);
1982 static void *established_get_idx(struct seq_file *seq, loff_t pos) established_get_idx() argument
1984 struct tcp_iter_state *st = seq->private; established_get_idx()
1988 rc = established_get_first(seq); established_get_idx()
1991 rc = established_get_next(seq, rc); established_get_idx()
1997 static void *tcp_get_idx(struct seq_file *seq, loff_t pos) tcp_get_idx() argument
2000 struct tcp_iter_state *st = seq->private; tcp_get_idx()
2003 rc = listening_get_idx(seq, &pos); tcp_get_idx()
2007 rc = established_get_idx(seq, pos); tcp_get_idx()
2013 static void *tcp_seek_last_pos(struct seq_file *seq) tcp_seek_last_pos() argument
2015 struct tcp_iter_state *st = seq->private; tcp_seek_last_pos()
2026 rc = listening_get_next(seq, NULL); tcp_seek_last_pos()
2028 rc = listening_get_next(seq, rc); tcp_seek_last_pos()
2037 rc = established_get_first(seq); tcp_seek_last_pos()
2039 rc = established_get_next(seq, rc); tcp_seek_last_pos()
2047 static void *tcp_seq_start(struct seq_file *seq, loff_t *pos) tcp_seq_start() argument
2049 struct tcp_iter_state *st = seq->private; tcp_seq_start()
2053 rc = tcp_seek_last_pos(seq); tcp_seq_start()
2062 rc = *pos ? tcp_get_idx(seq, *pos - 1) : SEQ_START_TOKEN; tcp_seq_start()
2069 static void *tcp_seq_next(struct seq_file *seq, void *v, loff_t *pos) tcp_seq_next() argument
2071 struct tcp_iter_state *st = seq->private; tcp_seq_next()
2075 rc = tcp_get_idx(seq, 0); tcp_seq_next()
2082 rc = listening_get_next(seq, v); tcp_seq_next()
2087 rc = established_get_first(seq); tcp_seq_next()
2091 rc = established_get_next(seq, v); tcp_seq_next()
2100 static void tcp_seq_stop(struct seq_file *seq, void *v) tcp_seq_stop() argument
2102 struct tcp_iter_state *st = seq->private; tcp_seq_stop()
2267 static int tcp4_seq_show(struct seq_file *seq, void *v) tcp4_seq_show() argument
2272 seq_setwidth(seq, TMPSZ - 1); tcp4_seq_show()
2274 seq_puts(seq, " sl local_address rem_address st tx_queue " tcp4_seq_show()
2279 st = seq->private; tcp4_seq_show()
2285 get_timewait4_sock(v, seq, st->num); tcp4_seq_show()
2287 get_tcp4_sock(v, seq, st->num); tcp4_seq_show()
2290 get_openreq4(v, seq, st->num, st->uid); tcp4_seq_show()
2294 seq_pad(seq, '\n'); tcp4_seq_show()
708 tcp_v4_send_ack(struct net *net, struct sk_buff *skb, u32 seq, u32 ack, u32 win, u32 tsval, u32 tsecr, int oif, struct tcp_md5sig_key *key, int reply_flags, u8 tos) tcp_v4_send_ack() argument
H A Dping.c243 unsigned int seq; inet_get_ping_group_range_net() local
246 seq = read_seqbegin(&net->ipv4.ping_group_range.lock); inet_get_ping_group_range_net()
250 } while (read_seqretry(&net->ipv4.ping_group_range.lock, seq)); inet_get_ping_group_range_net()
515 pr_debug("ping_err(proto=0x%x,type=%d,code=%d,id=%04x,seq=%04x)\n", ping_err()
970 pr_debug("ping_rcv(skb=%p,id=%04x,seq=%04x)\n", ping_rcv()
1015 static struct sock *ping_get_first(struct seq_file *seq, int start) ping_get_first() argument
1018 struct ping_iter_state *state = seq->private; ping_get_first()
1019 struct net *net = seq_file_net(seq); ping_get_first()
1042 static struct sock *ping_get_next(struct seq_file *seq, struct sock *sk) ping_get_next() argument
1044 struct ping_iter_state *state = seq->private; ping_get_next()
1045 struct net *net = seq_file_net(seq); ping_get_next()
1052 return ping_get_first(seq, state->bucket + 1); ping_get_next()
1056 static struct sock *ping_get_idx(struct seq_file *seq, loff_t pos) ping_get_idx() argument
1058 struct sock *sk = ping_get_first(seq, 0); ping_get_idx()
1061 while (pos && (sk = ping_get_next(seq, sk)) != NULL) ping_get_idx()
1066 void *ping_seq_start(struct seq_file *seq, loff_t *pos, sa_family_t family) ping_seq_start() argument
1068 struct ping_iter_state *state = seq->private; ping_seq_start()
1074 return *pos ? ping_get_idx(seq, *pos-1) : SEQ_START_TOKEN; ping_seq_start()
1078 static void *ping_v4_seq_start(struct seq_file *seq, loff_t *pos) ping_v4_seq_start() argument
1080 return ping_seq_start(seq, pos, AF_INET); ping_v4_seq_start()
1083 void *ping_seq_next(struct seq_file *seq, void *v, loff_t *pos) ping_seq_next() argument
1088 sk = ping_get_idx(seq, 0); ping_seq_next()
1090 sk = ping_get_next(seq, v); ping_seq_next()
1097 void ping_seq_stop(struct seq_file *seq, void *v) ping_seq_stop() argument
1124 static int ping_v4_seq_show(struct seq_file *seq, void *v) ping_v4_seq_show() argument
1126 seq_setwidth(seq, 127); ping_v4_seq_show()
1128 seq_puts(seq, " sl local_address rem_address st tx_queue " ping_v4_seq_show()
1132 struct ping_iter_state *state = seq->private; ping_v4_seq_show()
1134 ping_v4_format_sock(v, seq, state->bucket); ping_v4_seq_show()
1136 seq_pad(seq, '\n'); ping_v4_seq_show()
H A Dfib_trie.c2110 static void trie_show_stats(struct seq_file *seq, struct trie_stat *stat) trie_show_stats() argument
2119 seq_printf(seq, "\tAver depth: %u.%02d\n", trie_show_stats()
2121 seq_printf(seq, "\tMax depth: %u\n", stat->maxdepth); trie_show_stats()
2123 seq_printf(seq, "\tLeaves: %u\n", stat->leaves); trie_show_stats()
2126 seq_printf(seq, "\tPrefixes: %u\n", stat->prefixes); trie_show_stats()
2129 seq_printf(seq, "\tInternal nodes: %u\n\t", stat->tnodes); trie_show_stats()
2139 seq_printf(seq, " %u: %u", i, stat->nodesizes[i]); trie_show_stats()
2142 seq_putc(seq, '\n'); trie_show_stats()
2143 seq_printf(seq, "\tPointers: %u\n", pointers); trie_show_stats()
2146 seq_printf(seq, "Null ptrs: %u\n", stat->nullpointers); trie_show_stats()
2147 seq_printf(seq, "Total size: %u kB\n", (bytes + 1023) / 1024); trie_show_stats()
2151 static void trie_show_usage(struct seq_file *seq, trie_show_usage() argument
2169 seq_printf(seq, "\nCounters:\n---------\n");
2170 seq_printf(seq, "gets = %u\n", s.gets);
2171 seq_printf(seq, "backtracks = %u\n", s.backtrack);
2172 seq_printf(seq, "semantic match passed = %u\n",
2174 seq_printf(seq, "semantic match miss = %u\n", s.semantic_match_miss);
2175 seq_printf(seq, "null node hit= %u\n", s.null_node_hit);
2176 seq_printf(seq, "skipped node resize = %u\n\n", s.resize_node_skipped);
2180 static void fib_table_print(struct seq_file *seq, struct fib_table *tb) fib_table_print() argument
2183 seq_puts(seq, "Local:\n"); fib_table_print()
2185 seq_puts(seq, "Main:\n"); fib_table_print()
2187 seq_printf(seq, "Id %d:\n", tb->tb_id); fib_table_print()
2191 static int fib_triestat_seq_show(struct seq_file *seq, void *v) fib_triestat_seq_show() argument
2193 struct net *net = (struct net *)seq->private; fib_triestat_seq_show()
2196 seq_printf(seq, fib_triestat_seq_show()
2212 fib_table_print(seq, tb); hlist_for_each_entry_rcu()
2215 trie_show_stats(seq, &stat); hlist_for_each_entry_rcu()
2217 trie_show_usage(seq, t->stats); hlist_for_each_entry_rcu()
2238 static struct key_vector *fib_trie_get_idx(struct seq_file *seq, loff_t pos) fib_trie_get_idx() argument
2240 struct fib_trie_iter *iter = seq->private; fib_trie_get_idx()
2241 struct net *net = seq_file_net(seq); fib_trie_get_idx()
2265 static void *fib_trie_seq_start(struct seq_file *seq, loff_t *pos) __acquires()
2269 return fib_trie_get_idx(seq, *pos); __acquires()
2272 static void *fib_trie_seq_next(struct seq_file *seq, void *v, loff_t *pos) fib_trie_seq_next() argument
2274 struct fib_trie_iter *iter = seq->private; fib_trie_seq_next()
2275 struct net *net = seq_file_net(seq); fib_trie_seq_next()
2312 static void fib_trie_seq_stop(struct seq_file *seq, void *v) __releases()
2318 static void seq_indent(struct seq_file *seq, int n) seq_indent() argument
2321 seq_puts(seq, " "); seq_indent()
2362 static int fib_trie_seq_show(struct seq_file *seq, void *v) fib_trie_seq_show() argument
2364 const struct fib_trie_iter *iter = seq->private; fib_trie_seq_show()
2368 fib_table_print(seq, iter->tb); fib_trie_seq_show()
2373 seq_indent(seq, iter->depth-1); fib_trie_seq_show()
2374 seq_printf(seq, " +-- %pI4/%zu %u %u %u\n", fib_trie_seq_show()
2382 seq_indent(seq, iter->depth); fib_trie_seq_show()
2383 seq_printf(seq, " |-- %pI4\n", &val); fib_trie_seq_show()
2388 seq_indent(seq, iter->depth + 1); fib_trie_seq_show()
2389 seq_printf(seq, " /%zu %s %s", fib_trie_seq_show()
2396 seq_printf(seq, " tos=%d", fa->fa_tos); fib_trie_seq_show()
2397 seq_putc(seq, '\n'); fib_trie_seq_show()
2474 static void *fib_route_seq_start(struct seq_file *seq, loff_t *pos) __acquires()
2477 struct fib_route_iter *iter = seq->private; __acquires()
2483 tb = fib_get_table(seq_file_net(seq), RT_TABLE_MAIN); __acquires()
2500 static void *fib_route_seq_next(struct seq_file *seq, void *v, loff_t *pos) fib_route_seq_next() argument
2502 struct fib_route_iter *iter = seq->private; fib_route_seq_next()
2522 static void fib_route_seq_stop(struct seq_file *seq, void *v) __releases()
2548 static int fib_route_seq_show(struct seq_file *seq, void *v) fib_route_seq_show() argument
2550 struct fib_route_iter *iter = seq->private; fib_route_seq_show()
2557 seq_printf(seq, "%-127s\n", "Iface\tDestination\tGateway " fib_route_seq_show()
2577 seq_setwidth(seq, 127); fib_route_seq_show()
2580 seq_printf(seq, fib_route_seq_show()
2593 seq_printf(seq, fib_route_seq_show()
2599 seq_pad(seq, '\n'); fib_route_seq_show()
H A Dudp_impl.h32 int udp4_seq_show(struct seq_file *seq, void *v);
/linux-4.1.27/drivers/net/wireless/rsi/
H A Drsi_91x_debugfs.c22 * @seq: Pointer to the sequence file structure.
27 static int rsi_sdio_stats_read(struct seq_file *seq, void *data) rsi_sdio_stats_read() argument
29 struct rsi_common *common = seq->private; rsi_sdio_stats_read()
34 seq_printf(seq, "total_sdio_interrupts: %d\n", rsi_sdio_stats_read()
36 seq_printf(seq, "sdio_msdu_pending_intr_count: %d\n", rsi_sdio_stats_read()
38 seq_printf(seq, "sdio_buff_full_count : %d\n", rsi_sdio_stats_read()
40 seq_printf(seq, "sdio_buf_semi_full_count %d\n", rsi_sdio_stats_read()
42 seq_printf(seq, "sdio_unknown_intr_count: %d\n", rsi_sdio_stats_read()
45 seq_printf(seq, "BUFFER FULL STATUS : %d\n", rsi_sdio_stats_read()
47 seq_printf(seq, "SEMI BUFFER FULL STATUS : %d\n", rsi_sdio_stats_read()
49 seq_printf(seq, "MGMT BUFFER FULL STATUS : %d\n", rsi_sdio_stats_read()
51 seq_printf(seq, "BUFFER FULL COUNTER : %d\n", rsi_sdio_stats_read()
53 seq_printf(seq, "BUFFER SEMI FULL COUNTER : %d\n", rsi_sdio_stats_read()
55 seq_printf(seq, "MGMT BUFFER FULL COUNTER : %d\n", rsi_sdio_stats_read()
77 * @seq: Pointer to the sequence file structure.
82 static int rsi_version_read(struct seq_file *seq, void *data) rsi_version_read() argument
84 struct rsi_common *common = seq->private; rsi_version_read()
90 seq_printf(seq, "Driver : %x.%d.%d.%d\nLMAC : %d.%d.%d.%d\n", rsi_version_read()
118 * @seq: Pointer to the sequence file structure.
123 static int rsi_stats_read(struct seq_file *seq, void *data) rsi_stats_read() argument
125 struct rsi_common *common = seq->private; rsi_stats_read()
136 seq_puts(seq, "==> RSI STA DRIVER STATUS <==\n"); rsi_stats_read()
137 seq_puts(seq, "DRIVER_FSM_STATE: "); rsi_stats_read()
140 seq_printf(seq, "%s", fsm_state[common->fsm_state]); rsi_stats_read()
142 seq_printf(seq, "(%d)\n\n", common->fsm_state); rsi_stats_read()
145 seq_printf(seq, "total_mgmt_pkt_send : %d\n", rsi_stats_read()
147 seq_printf(seq, "total_mgmt_pkt_queued : %d\n", rsi_stats_read()
149 seq_printf(seq, "total_mgmt_pkt_freed : %d\n", rsi_stats_read()
153 seq_printf(seq, "total_data_vo_pkt_send: %8d\t", rsi_stats_read()
155 seq_printf(seq, "total_data_vo_pkt_queued: %8d\t", rsi_stats_read()
157 seq_printf(seq, "total_vo_pkt_freed: %8d\n", rsi_stats_read()
159 seq_printf(seq, "total_data_vi_pkt_send: %8d\t", rsi_stats_read()
161 seq_printf(seq, "total_data_vi_pkt_queued: %8d\t", rsi_stats_read()
163 seq_printf(seq, "total_vi_pkt_freed: %8d\n", rsi_stats_read()
165 seq_printf(seq, "total_data_be_pkt_send: %8d\t", rsi_stats_read()
167 seq_printf(seq, "total_data_be_pkt_queued: %8d\t", rsi_stats_read()
169 seq_printf(seq, "total_be_pkt_freed: %8d\n", rsi_stats_read()
171 seq_printf(seq, "total_data_bk_pkt_send: %8d\t", rsi_stats_read()
173 seq_printf(seq, "total_data_bk_pkt_queued: %8d\t", rsi_stats_read()
175 seq_printf(seq, "total_bk_pkt_freed: %8d\n", rsi_stats_read()
178 seq_puts(seq, "\n"); rsi_stats_read()
198 * @seq: Pointer to the sequence file structure.
203 static int rsi_debug_zone_read(struct seq_file *seq, void *data) rsi_debug_zone_read() argument
206 seq_printf(seq, "The zones available are %#x\n", rsi_debug_zone_read()
/linux-4.1.27/fs/nfsd/
H A Dstats.c36 static int nfsd_proc_show(struct seq_file *seq, void *v) nfsd_proc_show() argument
40 seq_printf(seq, "rc %u %u %u\nfh %u %u %u %u %u\nio %u %u\n", nfsd_proc_show()
52 seq_printf(seq, "th %u %u", nfsdstats.th_cnt, nfsdstats.th_fullcnt); nfsd_proc_show()
56 seq_printf(seq, " %u.%03u", sec, msec); nfsd_proc_show()
60 seq_printf(seq, "\nra %u", nfsdstats.ra_size); nfsd_proc_show()
62 seq_printf(seq, " %u", nfsdstats.ra_depth[i]); nfsd_proc_show()
63 seq_putc(seq, '\n'); nfsd_proc_show()
66 svc_seq_show(seq, &nfsd_svcstats); nfsd_proc_show()
71 seq_printf(seq,"proc4ops %u", LAST_NFS4_OP + 1); nfsd_proc_show()
73 seq_printf(seq, " %u", nfsdstats.nfs4_opcount[i]); nfsd_proc_show()
75 seq_putc(seq, '\n'); nfsd_proc_show()
/linux-4.1.27/net/ipx/
H A Dipx_proc.c17 static void *ipx_seq_interface_start(struct seq_file *seq, loff_t *pos) ipx_seq_interface_start() argument
23 static void *ipx_seq_interface_next(struct seq_file *seq, void *v, loff_t *pos) ipx_seq_interface_next() argument
28 static void ipx_seq_interface_stop(struct seq_file *seq, void *v) ipx_seq_interface_stop() argument
33 static int ipx_seq_interface_show(struct seq_file *seq, void *v) ipx_seq_interface_show() argument
38 seq_puts(seq, "Network Node_Address Primary Device " ipx_seq_interface_show()
41 seq_puts(seq, " refcnt"); ipx_seq_interface_show()
43 seq_puts(seq, "\n"); ipx_seq_interface_show()
48 seq_printf(seq, "%08X ", ntohl(i->if_netnum)); ipx_seq_interface_show()
49 seq_printf(seq, "%02X%02X%02X%02X%02X%02X ", ipx_seq_interface_show()
52 seq_printf(seq, "%-9s", i == ipx_primary_net ? "Yes" : "No"); ipx_seq_interface_show()
53 seq_printf(seq, "%-11s", ipx_device_name(i)); ipx_seq_interface_show()
54 seq_printf(seq, "%-9s", ipx_frame_name(i->if_dlink_type)); ipx_seq_interface_show()
56 seq_printf(seq, "%6d", atomic_read(&i->refcnt)); ipx_seq_interface_show()
58 seq_puts(seq, "\n"); ipx_seq_interface_show()
63 static void *ipx_seq_route_start(struct seq_file *seq, loff_t *pos) ipx_seq_route_start() argument
69 static void *ipx_seq_route_next(struct seq_file *seq, void *v, loff_t *pos) ipx_seq_route_next() argument
74 static void ipx_seq_route_stop(struct seq_file *seq, void *v) ipx_seq_route_stop() argument
79 static int ipx_seq_route_show(struct seq_file *seq, void *v) ipx_seq_route_show() argument
84 seq_puts(seq, "Network Router_Net Router_Node\n"); ipx_seq_route_show()
90 seq_printf(seq, "%08X ", ntohl(rt->ir_net)); ipx_seq_route_show()
92 seq_printf(seq, "%08X %02X%02X%02X%02X%02X%02X\n", ipx_seq_route_show()
98 seq_puts(seq, "Directly Connected\n"); ipx_seq_route_show()
127 static void *ipx_seq_socket_start(struct seq_file *seq, loff_t *pos) ipx_seq_socket_start() argument
135 static void *ipx_seq_socket_next(struct seq_file *seq, void *v, loff_t *pos) ipx_seq_socket_next() argument
177 static int ipx_seq_socket_show(struct seq_file *seq, void *v) ipx_seq_socket_show() argument
184 seq_puts(seq, "Local_Address " ipx_seq_socket_show()
188 seq_puts(seq, "Local_Address Remote_Address " ipx_seq_socket_show()
197 seq_printf(seq, "%08X:%02X%02X%02X%02X%02X%02X:%04X ", ipx_seq_socket_show()
202 seq_printf(seq, "%08X:%04X ", ntohl(ipxs->intrfc->if_netnum), ipx_seq_socket_show()
206 seq_printf(seq, "%-28s", "Not_Connected"); ipx_seq_socket_show()
208 seq_printf(seq, "%08X:%02X%02X%02X%02X%02X%02X:%04X ", ipx_seq_socket_show()
216 seq_printf(seq, "%08X %08X %02X %03u\n", ipx_seq_socket_show()
220 from_kuid_munged(seq_user_ns(seq), sock_i_uid(s))); ipx_seq_socket_show()
/linux-4.1.27/net/core/
H A Dnet-procfs.c15 static inline struct net_device *dev_from_same_bucket(struct seq_file *seq, loff_t *pos) dev_from_same_bucket() argument
17 struct net *net = seq_file_net(seq); dev_from_same_bucket()
31 static inline struct net_device *dev_from_bucket(struct seq_file *seq, loff_t *pos) dev_from_bucket() argument
37 dev = dev_from_same_bucket(seq, pos); dev_from_bucket()
52 static void *dev_seq_start(struct seq_file *seq, loff_t *pos) __acquires()
62 return dev_from_bucket(seq, pos); __acquires()
65 static void *dev_seq_next(struct seq_file *seq, void *v, loff_t *pos) dev_seq_next() argument
68 return dev_from_bucket(seq, pos); dev_seq_next()
71 static void dev_seq_stop(struct seq_file *seq, void *v) __releases()
77 static void dev_seq_printf_stats(struct seq_file *seq, struct net_device *dev) dev_seq_printf_stats() argument
82 seq_printf(seq, "%6s: %7llu %7llu %4llu %4llu %4llu %5llu %10llu %9llu " dev_seq_printf_stats()
105 static int dev_seq_show(struct seq_file *seq, void *v) dev_seq_show() argument
108 seq_puts(seq, "Inter-| Receive " dev_seq_show()
114 dev_seq_printf_stats(seq, v); dev_seq_show()
131 static void *softnet_seq_start(struct seq_file *seq, loff_t *pos) softnet_seq_start() argument
136 static void *softnet_seq_next(struct seq_file *seq, void *v, loff_t *pos) softnet_seq_next() argument
142 static void softnet_seq_stop(struct seq_file *seq, void *v) softnet_seq_stop() argument
146 static int softnet_seq_show(struct seq_file *seq, void *v) softnet_seq_show() argument
161 seq_printf(seq, softnet_seq_show()
232 static void *ptype_seq_start(struct seq_file *seq, loff_t *pos) __acquires()
239 static void *ptype_seq_next(struct seq_file *seq, void *v, loff_t *pos) ptype_seq_next() argument
268 static void ptype_seq_stop(struct seq_file *seq, void *v) __releases()
274 static int ptype_seq_show(struct seq_file *seq, void *v) ptype_seq_show() argument
279 seq_puts(seq, "Type Device Function\n"); ptype_seq_show()
280 else if (pt->dev == NULL || dev_net(pt->dev) == seq_file_net(seq)) { ptype_seq_show()
282 seq_puts(seq, "ALL "); ptype_seq_show()
284 seq_printf(seq, "%04x", ntohs(pt->type)); ptype_seq_show()
286 seq_printf(seq, " %-8s %pf\n", ptype_seq_show()
355 static int dev_mc_seq_show(struct seq_file *seq, void *v) dev_mc_seq_show() argument
367 seq_printf(seq, "%-4d %-15s %-5d %-5d ", dev->ifindex, netdev_for_each_mc_addr()
371 seq_printf(seq, "%02x", ha->addr[i]); netdev_for_each_mc_addr()
373 seq_putc(seq, '\n'); netdev_for_each_mc_addr()
H A Dsecure_seq.c26 static u32 seq_scale(u32 seq) seq_scale() argument
34 * we also need to limit the resolution so that the u32 seq seq_scale()
38 return seq + (ktime_get_real_ns() >> 6); seq_scale()
127 u64 seq; secure_dccp_sequence_number() local
137 seq = hash[0] | (((u64)hash[1]) << 32); secure_dccp_sequence_number()
138 seq += ktime_get_real_ns(); secure_dccp_sequence_number()
139 seq &= (1ull << 48) - 1; secure_dccp_sequence_number()
141 return seq; secure_dccp_sequence_number()
151 u64 seq; secure_dccpv6_sequence_number() local
165 seq = hash[0] | (((u64)hash[1]) << 32); secure_dccpv6_sequence_number()
166 seq += ktime_get_real_ns(); secure_dccpv6_sequence_number()
167 seq &= (1ull << 48) - 1; secure_dccpv6_sequence_number()
169 return seq; secure_dccpv6_sequence_number()
H A Dtso.c27 put_unaligned_be32(tso->tcp_seq, &tcph->seq); tso_build_hdr()
62 tso->tcp_seq = ntohl(tcp_hdr(skb)->seq); tso_start()
H A Dpktgen.c474 static int pgctrl_show(struct seq_file *seq, void *v) pgctrl_show() argument
476 seq_puts(seq, version); pgctrl_show()
529 static int pktgen_if_show(struct seq_file *seq, void *v) pktgen_if_show() argument
531 const struct pktgen_dev *pkt_dev = seq->private; pktgen_if_show()
535 seq_printf(seq, pktgen_if_show()
540 seq_printf(seq, pktgen_if_show()
545 seq_printf(seq, " flows: %u flowlen: %u\n", pkt_dev->cflows, pktgen_if_show()
548 seq_printf(seq, pktgen_if_show()
554 seq_printf(seq, " skb_priority: %u\n", pktgen_if_show()
558 seq_printf(seq, pktgen_if_show()
566 seq_printf(seq, pktgen_if_show()
569 seq_printf(seq, pktgen_if_show()
574 seq_puts(seq, " src_mac: "); pktgen_if_show()
576 seq_printf(seq, "%pM ", pktgen_if_show()
580 seq_puts(seq, "dst_mac: "); pktgen_if_show()
581 seq_printf(seq, "%pM\n", pkt_dev->dst_mac); pktgen_if_show()
583 seq_printf(seq, pktgen_if_show()
589 seq_printf(seq, pktgen_if_show()
595 seq_puts(seq, " mpls: "); pktgen_if_show()
597 seq_printf(seq, "%08x%s", ntohl(pkt_dev->labels[i]), pktgen_if_show()
602 seq_printf(seq, " vlan_id: %u vlan_p: %u vlan_cfi: %u\n", pktgen_if_show()
607 seq_printf(seq, " svlan_id: %u vlan_p: %u vlan_cfi: %u\n", pktgen_if_show()
612 seq_printf(seq, " tos: 0x%02x\n", pkt_dev->tos); pktgen_if_show()
615 seq_printf(seq, " traffic_class: 0x%02x\n", pkt_dev->traffic_class); pktgen_if_show()
618 seq_printf(seq, " burst: %d\n", pkt_dev->burst); pktgen_if_show()
621 seq_printf(seq, " node: %d\n", pkt_dev->node); pktgen_if_show()
623 seq_puts(seq, " Flags: "); pktgen_if_show()
626 seq_puts(seq, "IPV6 "); pktgen_if_show()
629 seq_puts(seq, "IPSRC_RND "); pktgen_if_show()
632 seq_puts(seq, "IPDST_RND "); pktgen_if_show()
635 seq_puts(seq, "TXSIZE_RND "); pktgen_if_show()
638 seq_puts(seq, "UDPSRC_RND "); pktgen_if_show()
641 seq_puts(seq, "UDPDST_RND "); pktgen_if_show()
644 seq_puts(seq, "UDPCSUM "); pktgen_if_show()
647 seq_puts(seq, "NO_TIMESTAMP "); pktgen_if_show()
650 seq_puts(seq, "MPLS_RND "); pktgen_if_show()
653 seq_puts(seq, "QUEUE_MAP_RND "); pktgen_if_show()
656 seq_puts(seq, "QUEUE_MAP_CPU "); pktgen_if_show()
660 seq_puts(seq, "FLOW_SEQ "); /*in sequence flows*/ pktgen_if_show()
662 seq_puts(seq, "FLOW_RND "); pktgen_if_show()
667 seq_puts(seq, "IPSEC "); pktgen_if_show()
669 seq_printf(seq, "spi:%u", pkt_dev->spi); pktgen_if_show()
674 seq_puts(seq, "MACSRC_RND "); pktgen_if_show()
677 seq_puts(seq, "MACDST_RND "); pktgen_if_show()
680 seq_puts(seq, "VID_RND "); pktgen_if_show()
683 seq_puts(seq, "SVID_RND "); pktgen_if_show()
686 seq_puts(seq, "NODE_ALLOC "); pktgen_if_show()
688 seq_puts(seq, "\n"); pktgen_if_show()
695 seq_printf(seq, pktgen_if_show()
700 seq_printf(seq, pktgen_if_show()
706 seq_printf(seq, pktgen_if_show()
712 seq_printf(seq, " cur_saddr: %pI6c cur_daddr: %pI6c\n", pktgen_if_show()
716 seq_printf(seq, " cur_saddr: %pI4 cur_daddr: %pI4\n", pktgen_if_show()
719 seq_printf(seq, " cur_udp_dst: %d cur_udp_src: %d\n", pktgen_if_show()
722 seq_printf(seq, " cur_queue_map: %u\n", pkt_dev->cur_queue_map); pktgen_if_show()
724 seq_printf(seq, " flows: %u\n", pkt_dev->nflows); pktgen_if_show()
727 seq_printf(seq, "Result: %s\n", pkt_dev->result); pktgen_if_show()
729 seq_puts(seq, "Result: Idle\n"); pktgen_if_show()
856 struct seq_file *seq = file->private_data; pktgen_if_write() local
857 struct pktgen_dev *pkt_dev = seq->private; pktgen_if_write()
1757 static int pktgen_thread_show(struct seq_file *seq, void *v) pktgen_thread_show() argument
1759 struct pktgen_thread *t = seq->private; pktgen_thread_show()
1764 seq_puts(seq, "Running: "); pktgen_thread_show()
1769 seq_printf(seq, "%s ", pkt_dev->odevname); pktgen_thread_show()
1771 seq_puts(seq, "\nStopped: "); pktgen_thread_show()
1775 seq_printf(seq, "%s ", pkt_dev->odevname); pktgen_thread_show()
1778 seq_printf(seq, "\nResult: %s\n", t->result); pktgen_thread_show()
1780 seq_puts(seq, "\nResult: NA\n"); pktgen_thread_show()
1791 struct seq_file *seq = file->private_data; pktgen_thread_write() local
1792 struct pktgen_thread *t = seq->private; pktgen_thread_write()
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_debugfs.c56 static void *seq_tab_start(struct seq_file *seq, loff_t *pos) seq_tab_start() argument
58 struct seq_tab *tb = seq->private; seq_tab_start()
66 static void *seq_tab_next(struct seq_file *seq, void *v, loff_t *pos) seq_tab_next() argument
68 v = seq_tab_get_idx(seq->private, *pos + 1); seq_tab_next()
74 static void seq_tab_stop(struct seq_file *seq, void *v) seq_tab_stop() argument
78 static int seq_tab_show(struct seq_file *seq, void *v) seq_tab_show() argument
80 const struct seq_tab *tb = seq->private; seq_tab_show()
82 return tb->show(seq, v, ((char *)v - tb->data) / tb->width); seq_tab_show()
94 int (*show)(struct seq_file *seq, void *v, int i)) seq_open_tab()
119 static int cim_la_show(struct seq_file *seq, void *v, int idx) cim_la_show() argument
122 seq_puts(seq, "Status Data PC LS0Stat LS0Addr " cim_la_show()
127 seq_printf(seq, cim_la_show()
136 static int cim_la_show_3in1(struct seq_file *seq, void *v, int idx) cim_la_show_3in1() argument
139 seq_puts(seq, "Status Data PC\n"); cim_la_show_3in1()
143 seq_printf(seq, " %02x %08x %08x\n", p[5] & 0xff, p[6], cim_la_show_3in1()
145 seq_printf(seq, " %02x %02x%06x %02x%06x\n", cim_la_show_3in1()
148 seq_printf(seq, " %02x %x%07x %x%07x\n", (p[0] >> 4) & 0xff, cim_la_show_3in1()
185 static int cim_qcfg_show(struct seq_file *seq, void *v) cim_qcfg_show() argument
194 struct adapter *adap = seq->private; cim_qcfg_show()
224 seq_printf(seq, cim_qcfg_show()
227 seq_printf(seq, "%7s %5x %5u %5u %6x %4x %4u %4u %5u\n", cim_qcfg_show()
233 seq_printf(seq, "%7s %5x %5u %12x %4x %4u %4u %5u\n", cim_qcfg_show()
254 static int cimq_show(struct seq_file *seq, void *v, int idx) cimq_show() argument
258 seq_printf(seq, "%#06x: %08x %08x %08x %08x\n", idx * 16, p[0], p[1], cimq_show()
325 static void field_desc_show(struct seq_file *seq, u64 v, field_desc_show() argument
338 seq_puts(seq, "\n "); field_desc_show()
340 seq_printf(seq, "%s ", buf); field_desc_show()
344 seq_putc(seq, '\n'); field_desc_show()
384 static int tp_la_show(struct seq_file *seq, void *v, int idx) tp_la_show() argument
388 field_desc_show(seq, *p, tp_la0); tp_la_show()
392 static int tp_la_show2(struct seq_file *seq, void *v, int idx) tp_la_show2() argument
397 seq_putc(seq, '\n'); tp_la_show2()
398 field_desc_show(seq, p[0], tp_la0); tp_la_show2()
400 field_desc_show(seq, p[1], tp_la0); tp_la_show2()
404 static int tp_la_show3(struct seq_file *seq, void *v, int idx) tp_la_show3() argument
503 seq_putc(seq, '\n'); tp_la_show3()
504 field_desc_show(seq, p[0], tp_la0); tp_la_show3()
506 field_desc_show(seq, p[1], (p[0] & BIT(17)) ? tp_la2 : tp_la1); tp_la_show3()
566 static int ulprx_la_show(struct seq_file *seq, void *v, int idx) ulprx_la_show() argument
571 seq_puts(seq, " Pcmd Type Message" ulprx_la_show()
574 seq_printf(seq, "%08x%08x %4x %08x %08x%08x%08x%08x\n", ulprx_la_show()
613 static int pm_stats_show(struct seq_file *seq, void *v) pm_stats_show() argument
625 struct adapter *adap = seq->private; pm_stats_show()
630 seq_printf(seq, "%13s %10s %20s\n", " ", "Tx pcmds", "Tx bytes"); pm_stats_show()
632 seq_printf(seq, "%-13s %10u %20llu\n", pm_stats_show()
635 seq_printf(seq, "%13s %10s %20s\n", " ", "Rx pcmds", "Rx bytes"); pm_stats_show()
637 seq_printf(seq, "%-13s %10u %20llu\n", pm_stats_show()
666 static int cctrl_tbl_show(struct seq_file *seq, void *v) cctrl_tbl_show() argument
674 struct adapter *adap = seq->private; cctrl_tbl_show()
683 seq_printf(seq, "%2d: %4u %4u %4u %4u %4u %4u %4u %4u\n", i, cctrl_tbl_show()
686 seq_printf(seq, "%8u %4u %4u %4u %4u %4u %4u %4u %5u %s\n", cctrl_tbl_show()
717 static int clk_show(struct seq_file *seq, void *v) clk_show() argument
720 struct adapter *adap = seq->private; clk_show()
727 seq_printf(seq, "Core clock period: %s ns\n", clk_show()
729 seq_printf(seq, "TP timer tick: %s us\n", clk_show()
731 seq_printf(seq, "TCP timestamp tick: %s us\n", clk_show()
734 seq_printf(seq, "DACK tick: %s us\n", clk_show()
736 seq_printf(seq, "DACK timer: %u us\n", clk_show()
739 seq_printf(seq, "Retransmit min: %llu us\n", clk_show()
741 seq_printf(seq, "Retransmit max: %llu us\n", clk_show()
743 seq_printf(seq, "Persist timer min: %llu us\n", clk_show()
745 seq_printf(seq, "Persist timer max: %llu us\n", clk_show()
747 seq_printf(seq, "Keepalive idle timer: %llu us\n", clk_show()
749 seq_printf(seq, "Keepalive interval: %llu us\n", clk_show()
751 seq_printf(seq, "Initial SRTT: %llu us\n", clk_show()
753 seq_printf(seq, "FINWAIT2 timer: %llu us\n", clk_show()
807 static int devlog_show(struct seq_file *seq, void *v) devlog_show() argument
810 seq_printf(seq, "%10s %15s %8s %8s %s\n", devlog_show()
813 struct devlog_info *dinfo = seq->private; devlog_show()
832 seq_printf(seq, "%10d %15llu %8s %8s ", devlog_show()
840 seq_printf(seq, e->fmt, e->params[0], e->params[1], devlog_show()
857 static void *devlog_start(struct seq_file *seq, loff_t *pos) devlog_start() argument
859 struct devlog_info *dinfo = seq->private; devlog_start()
866 static void *devlog_next(struct seq_file *seq, void *v, loff_t *pos) devlog_next() argument
868 struct devlog_info *dinfo = seq->private; devlog_next()
874 static void devlog_stop(struct seq_file *seq, void *v) devlog_stop() argument
957 static int mbox_show(struct seq_file *seq, void *v) mbox_show() argument
963 unsigned int mbox = (uintptr_t)seq->private & 7; mbox_show()
964 struct adapter *adap = seq->private - mbox; mbox_show()
972 seq_printf(seq, "mailbox owned by %s\n\n", owner[i]); mbox_show()
975 seq_printf(seq, "%016llx\n", mbox_show()
1085 static int mps_tcam_show(struct seq_file *seq, void *v) mps_tcam_show() argument
1088 seq_puts(seq, "Idx Ethernet address Mask Vld Ports PF" mps_tcam_show()
1094 struct adapter *adap = seq->private; mps_tcam_show()
1103 seq_printf(seq, "%3u -\n", idx); mps_tcam_show()
1137 seq_printf(seq, "%3u %02x:%02x:%02x:%02x:%02x:%02x %012llx" mps_tcam_show()
1145 seq_printf(seq, " %08x %08x %08x %08x", mps_tcam_show()
1148 seq_printf(seq, "%36c", ' '); mps_tcam_show()
1149 seq_printf(seq, "%4u%3u%3u%3u %#x\n", mps_tcam_show()
1157 static inline void *mps_tcam_get_idx(struct seq_file *seq, loff_t pos) mps_tcam_get_idx() argument
1159 struct adapter *adap = seq->private; mps_tcam_get_idx()
1166 static void *mps_tcam_start(struct seq_file *seq, loff_t *pos) mps_tcam_start() argument
1168 return *pos ? mps_tcam_get_idx(seq, *pos) : SEQ_START_TOKEN; mps_tcam_start()
1171 static void *mps_tcam_next(struct seq_file *seq, void *v, loff_t *pos) mps_tcam_next() argument
1174 return mps_tcam_get_idx(seq, *pos); mps_tcam_next()
1177 static void mps_tcam_stop(struct seq_file *seq, void *v) mps_tcam_stop() argument
1193 struct seq_file *seq = file->private_data; mps_tcam_open() local
1195 seq->private = inode->i_private; mps_tcam_open()
1210 static int sensors_show(struct seq_file *seq, void *v) sensors_show() argument
1212 struct adapter *adap = seq->private; sensors_show()
1229 seq_puts(seq, "Temperature: <unknown>\n"); sensors_show()
1231 seq_printf(seq, "Temperature: %dC\n", val[0]); sensors_show()
1234 seq_puts(seq, "Core VDD: <unknown>\n"); sensors_show()
1236 seq_printf(seq, "Core VDD: %dmV\n", val[1]); sensors_show()
1261 static int rss_show(struct seq_file *seq, void *v, int idx) rss_show() argument
1265 seq_printf(seq, "%4d: %4u %4u %4u %4u %4u %4u %4u %4u\n", rss_show()
1310 static int rss_config_show(struct seq_file *seq, void *v) rss_config_show() argument
1312 struct adapter *adapter = seq->private; rss_config_show()
1322 seq_printf(seq, "TP_RSS_CONFIG: %#x\n", rssconf); rss_config_show()
1323 seq_printf(seq, " Tnl4TupEnIpv6: %3s\n", yesno(rssconf & rss_config_show()
1325 seq_printf(seq, " Tnl2TupEnIpv6: %3s\n", yesno(rssconf & rss_config_show()
1327 seq_printf(seq, " Tnl4TupEnIpv4: %3s\n", yesno(rssconf & rss_config_show()
1329 seq_printf(seq, " Tnl2TupEnIpv4: %3s\n", yesno(rssconf & rss_config_show()
1331 seq_printf(seq, " TnlTcpSel: %3s\n", yesno(rssconf & TNLTCPSEL_F)); rss_config_show()
1332 seq_printf(seq, " TnlIp6Sel: %3s\n", yesno(rssconf & TNLIP6SEL_F)); rss_config_show()
1333 seq_printf(seq, " TnlVrtSel: %3s\n", yesno(rssconf & TNLVRTSEL_F)); rss_config_show()
1334 seq_printf(seq, " TnlMapEn: %3s\n", yesno(rssconf & TNLMAPEN_F)); rss_config_show()
1335 seq_printf(seq, " OfdHashSave: %3s\n", yesno(rssconf & rss_config_show()
1337 seq_printf(seq, " OfdVrtSel: %3s\n", yesno(rssconf & OFDVRTSEL_F)); rss_config_show()
1338 seq_printf(seq, " OfdMapEn: %3s\n", yesno(rssconf & OFDMAPEN_F)); rss_config_show()
1339 seq_printf(seq, " OfdLkpEn: %3s\n", yesno(rssconf & OFDLKPEN_F)); rss_config_show()
1340 seq_printf(seq, " Syn4TupEnIpv6: %3s\n", yesno(rssconf & rss_config_show()
1342 seq_printf(seq, " Syn2TupEnIpv6: %3s\n", yesno(rssconf & rss_config_show()
1344 seq_printf(seq, " Syn4TupEnIpv4: %3s\n", yesno(rssconf & rss_config_show()
1346 seq_printf(seq, " Syn2TupEnIpv4: %3s\n", yesno(rssconf & rss_config_show()
1348 seq_printf(seq, " Syn4TupEnIpv6: %3s\n", yesno(rssconf & rss_config_show()
1350 seq_printf(seq, " SynIp6Sel: %3s\n", yesno(rssconf & SYNIP6SEL_F)); rss_config_show()
1351 seq_printf(seq, " SynVrt6Sel: %3s\n", yesno(rssconf & SYNVRTSEL_F)); rss_config_show()
1352 seq_printf(seq, " SynMapEn: %3s\n", yesno(rssconf & SYNMAPEN_F)); rss_config_show()
1353 seq_printf(seq, " SynLkpEn: %3s\n", yesno(rssconf & SYNLKPEN_F)); rss_config_show()
1354 seq_printf(seq, " ChnEn: %3s\n", yesno(rssconf & rss_config_show()
1356 seq_printf(seq, " PrtEn: %3s\n", yesno(rssconf & rss_config_show()
1358 seq_printf(seq, " TnlAllLkp: %3s\n", yesno(rssconf & rss_config_show()
1360 seq_printf(seq, " VrtEn: %3s\n", yesno(rssconf & rss_config_show()
1362 seq_printf(seq, " CngEn: %3s\n", yesno(rssconf & rss_config_show()
1364 seq_printf(seq, " HashToeplitz: %3s\n", yesno(rssconf & rss_config_show()
1366 seq_printf(seq, " Udp4En: %3s\n", yesno(rssconf & UDPENABLE_F)); rss_config_show()
1367 seq_printf(seq, " Disable: %3s\n", yesno(rssconf & DISABLE_F)); rss_config_show()
1369 seq_puts(seq, "\n"); rss_config_show()
1372 seq_printf(seq, "TP_RSS_CONFIG_TNL: %#x\n", rssconf); rss_config_show()
1373 seq_printf(seq, " MaskSize: %3d\n", MASKSIZE_G(rssconf)); rss_config_show()
1374 seq_printf(seq, " MaskFilter: %3d\n", MASKFILTER_G(rssconf)); rss_config_show()
1376 seq_printf(seq, " HashAll: %3s\n", rss_config_show()
1378 seq_printf(seq, " HashEth: %3s\n", rss_config_show()
1381 seq_printf(seq, " UseWireCh: %3s\n", yesno(rssconf & USEWIRECH_F)); rss_config_show()
1383 seq_puts(seq, "\n"); rss_config_show()
1386 seq_printf(seq, "TP_RSS_CONFIG_OFD: %#x\n", rssconf); rss_config_show()
1387 seq_printf(seq, " MaskSize: %3d\n", MASKSIZE_G(rssconf)); rss_config_show()
1388 seq_printf(seq, " RRCplMapEn: %3s\n", yesno(rssconf & rss_config_show()
1390 seq_printf(seq, " RRCplQueWidth: %3d\n", RRCPLQUEWIDTH_G(rssconf)); rss_config_show()
1392 seq_puts(seq, "\n"); rss_config_show()
1395 seq_printf(seq, "TP_RSS_CONFIG_SYN: %#x\n", rssconf); rss_config_show()
1396 seq_printf(seq, " MaskSize: %3d\n", MASKSIZE_G(rssconf)); rss_config_show()
1397 seq_printf(seq, " UseWireCh: %3s\n", yesno(rssconf & USEWIRECH_F)); rss_config_show()
1399 seq_puts(seq, "\n"); rss_config_show()
1402 seq_printf(seq, "TP_RSS_CONFIG_VRT: %#x\n", rssconf); rss_config_show()
1404 seq_printf(seq, " KeyWrAddrX: %3d\n", rss_config_show()
1406 seq_printf(seq, " KeyExtend: %3s\n", rss_config_show()
1409 seq_printf(seq, " VfRdRg: %3s\n", yesno(rssconf & VFRDRG_F)); rss_config_show()
1410 seq_printf(seq, " VfRdEn: %3s\n", yesno(rssconf & VFRDEN_F)); rss_config_show()
1411 seq_printf(seq, " VfPerrEn: %3s\n", yesno(rssconf & VFPERREN_F)); rss_config_show()
1412 seq_printf(seq, " KeyPerrEn: %3s\n", yesno(rssconf & KEYPERREN_F)); rss_config_show()
1413 seq_printf(seq, " DisVfVlan: %3s\n", yesno(rssconf & rss_config_show()
1415 seq_printf(seq, " EnUpSwt: %3s\n", yesno(rssconf & ENABLEUP0_F)); rss_config_show()
1416 seq_printf(seq, " HashDelay: %3d\n", HASHDELAY_G(rssconf)); rss_config_show()
1418 seq_printf(seq, " VfWrAddr: %3d\n", VFWRADDR_G(rssconf)); rss_config_show()
1419 seq_printf(seq, " KeyMode: %s\n", keymode[KEYMODE_G(rssconf)]); rss_config_show()
1420 seq_printf(seq, " VfWrEn: %3s\n", yesno(rssconf & VFWREN_F)); rss_config_show()
1421 seq_printf(seq, " KeyWrEn: %3s\n", yesno(rssconf & KEYWREN_F)); rss_config_show()
1422 seq_printf(seq, " KeyWrAddr: %3d\n", KEYWRADDR_G(rssconf)); rss_config_show()
1424 seq_puts(seq, "\n"); rss_config_show()
1427 seq_printf(seq, "TP_RSS_CONFIG_CNG: %#x\n", rssconf); rss_config_show()
1428 seq_printf(seq, " ChnCount3: %3s\n", yesno(rssconf & CHNCOUNT3_F)); rss_config_show()
1429 seq_printf(seq, " ChnCount2: %3s\n", yesno(rssconf & CHNCOUNT2_F)); rss_config_show()
1430 seq_printf(seq, " ChnCount1: %3s\n", yesno(rssconf & CHNCOUNT1_F)); rss_config_show()
1431 seq_printf(seq, " ChnCount0: %3s\n", yesno(rssconf & CHNCOUNT0_F)); rss_config_show()
1432 seq_printf(seq, " ChnUndFlow3: %3s\n", yesno(rssconf & rss_config_show()
1434 seq_printf(seq, " ChnUndFlow2: %3s\n", yesno(rssconf & rss_config_show()
1436 seq_printf(seq, " ChnUndFlow1: %3s\n", yesno(rssconf & rss_config_show()
1438 seq_printf(seq, " ChnUndFlow0: %3s\n", yesno(rssconf & rss_config_show()
1440 seq_printf(seq, " RstChn3: %3s\n", yesno(rssconf & RSTCHN3_F)); rss_config_show()
1441 seq_printf(seq, " RstChn2: %3s\n", yesno(rssconf & RSTCHN2_F)); rss_config_show()
1442 seq_printf(seq, " RstChn1: %3s\n", yesno(rssconf & RSTCHN1_F)); rss_config_show()
1443 seq_printf(seq, " RstChn0: %3s\n", yesno(rssconf & RSTCHN0_F)); rss_config_show()
1444 seq_printf(seq, " UpdVld: %3s\n", yesno(rssconf & UPDVLD_F)); rss_config_show()
1445 seq_printf(seq, " Xoff: %3s\n", yesno(rssconf & XOFF_F)); rss_config_show()
1446 seq_printf(seq, " UpdChn3: %3s\n", yesno(rssconf & UPDCHN3_F)); rss_config_show()
1447 seq_printf(seq, " UpdChn2: %3s\n", yesno(rssconf & UPDCHN2_F)); rss_config_show()
1448 seq_printf(seq, " UpdChn1: %3s\n", yesno(rssconf & UPDCHN1_F)); rss_config_show()
1449 seq_printf(seq, " UpdChn0: %3s\n", yesno(rssconf & UPDCHN0_F)); rss_config_show()
1450 seq_printf(seq, " Queue: %3d\n", QUEUE_G(rssconf)); rss_config_show()
1460 static int rss_key_show(struct seq_file *seq, void *v) rss_key_show() argument
1464 t4_read_rss_key(seq->private, key); rss_key_show()
1465 seq_printf(seq, "%08x%08x%08x%08x%08x%08x%08x%08x%08x%08x\n", rss_key_show()
1523 static int rss_pf_config_show(struct seq_file *seq, void *v, int idx) rss_pf_config_show() argument
1529 pfconf = seq->private + offsetof(struct seq_tab, data); rss_pf_config_show()
1530 seq_printf(seq, "PF Map Index Size = %d\n\n", rss_pf_config_show()
1533 seq_puts(seq, " RSS PF VF Hash Tuple Enable Default\n"); rss_pf_config_show()
1534 seq_puts(seq, " Enable IPF Mask Mask IPv6 IPv4 UDP Queue\n"); rss_pf_config_show()
1535 seq_puts(seq, " PF Map Chn Prt Map Size Size Four Two Four Two Four Ch1 Ch0\n"); rss_pf_config_show()
1543 seq_printf(seq, "%3d %3s %3s %3s %3d %3d %3d %3s %3s %3s %3s %3s %3d %3d\n", rss_pf_config_show()
1604 static int rss_vf_config_show(struct seq_file *seq, void *v, int idx) rss_vf_config_show() argument
1607 seq_puts(seq, " RSS Hash Tuple Enable\n"); rss_vf_config_show()
1608 seq_puts(seq, " Enable IVF Dis Enb IPv6 IPv4 UDP Def Secret Key\n"); rss_vf_config_show()
1609 seq_puts(seq, " VF Chn Prt Map VLAN uP Four Two Four Two Four Que Idx Hash\n"); rss_vf_config_show()
1613 seq_printf(seq, "%3d %3s %3s %3d %3s %3s %3s %3s %3s %3s %3s %4d %3d %#10x\n", rss_vf_config_show()
1681 static int sge_qinfo_show(struct seq_file *seq, void *v) sge_qinfo_show() argument
1683 struct adapter *adap = seq->private; sge_qinfo_show()
1697 seq_putc(seq, '\n'); sge_qinfo_show()
1701 seq_printf(seq, "%-12s", s); \ sge_qinfo_show()
1703 seq_printf(seq, " %16" fmt_spec, v); \ sge_qinfo_show()
1704 seq_putc(seq, '\n'); \ sge_qinfo_show()
1822 seq_printf(seq, "%-12s %16s\n", "QType:", "FW event queue"); sge_qinfo_show()
1823 seq_printf(seq, "%-12s %16u\n", "RspQ ID:", evtq->abs_id); sge_qinfo_show()
1824 seq_printf(seq, "%-12s %16u\n", "RspQ size:", evtq->size); sge_qinfo_show()
1825 seq_printf(seq, "%-12s %16u\n", "RspQE size:", evtq->iqe_len); sge_qinfo_show()
1826 seq_printf(seq, "%-12s %16u\n", "RspQ CIDX:", evtq->cidx); sge_qinfo_show()
1827 seq_printf(seq, "%-12s %16u\n", "RspQ Gen:", evtq->gen); sge_qinfo_show()
1828 seq_printf(seq, "%-12s %16u\n", "Intr delay:", sge_qinfo_show()
1830 seq_printf(seq, "%-12s %16u\n", "Intr pktcnt:", sge_qinfo_show()
1849 static void *sge_queue_start(struct seq_file *seq, loff_t *pos) sge_queue_start() argument
1851 int entries = sge_queue_entries(seq->private); sge_queue_start()
1856 static void sge_queue_stop(struct seq_file *seq, void *v) sge_queue_stop() argument
1860 static void *sge_queue_next(struct seq_file *seq, void *v, loff_t *pos) sge_queue_next() argument
1862 int entries = sge_queue_entries(seq->private); sge_queue_next()
1880 struct seq_file *seq = file->private_data; sge_qinfo_open() local
1882 seq->private = inode->i_private; sge_qinfo_open()
92 seq_open_tab(struct file *f, unsigned int rows, unsigned int width, unsigned int have_header, int (*show)(struct seq_file *seq, void *v, int i)) seq_open_tab() argument
H A Dclip_tbl.h41 int clip_tbl_show(struct seq_file *seq, void *v);
/linux-4.1.27/drivers/block/drbd/
H A Ddrbd_proc.c49 static void seq_printf_with_thousands_grouping(struct seq_file *seq, long v) seq_printf_with_thousands_grouping() argument
54 seq_printf(seq, "%ld,", v / 1000000); seq_printf_with_thousands_grouping()
56 seq_printf(seq, "%03ld,%03ld", v/1000, v % 1000); seq_printf_with_thousands_grouping()
58 seq_printf(seq, "%ld,%03ld", v/1000, v % 1000); seq_printf_with_thousands_grouping()
60 seq_printf(seq, "%ld", v); seq_printf_with_thousands_grouping()
113 static void drbd_syncer_progress(struct drbd_device *device, struct seq_file *seq, drbd_syncer_progress() argument
125 seq_printf(seq, "\t["); drbd_syncer_progress()
127 seq_printf(seq, "="); drbd_syncer_progress()
128 seq_printf(seq, ">"); drbd_syncer_progress()
130 seq_printf(seq, "."); drbd_syncer_progress()
131 seq_printf(seq, "] "); drbd_syncer_progress()
134 seq_printf(seq, "verified:"); drbd_syncer_progress()
136 seq_printf(seq, "sync'ed:"); drbd_syncer_progress()
137 seq_printf(seq, "%3u.%u%% ", res / 10, res % 10); drbd_syncer_progress()
141 seq_printf(seq, "(%lu/%lu)M", drbd_syncer_progress()
145 seq_printf(seq, "(%lu/%lu)K", drbd_syncer_progress()
149 seq_printf(seq, "\n\t"); drbd_syncer_progress()
174 seq_printf(seq, "finish: %lu:%02lu:%02lu", drbd_syncer_progress()
178 seq_printf(seq, " speed: "); drbd_syncer_progress()
179 seq_printf_with_thousands_grouping(seq, dbdt); drbd_syncer_progress()
180 seq_printf(seq, " ("); drbd_syncer_progress()
190 seq_printf_with_thousands_grouping(seq, dbdt); drbd_syncer_progress()
191 seq_printf(seq, " -- "); drbd_syncer_progress()
202 seq_printf_with_thousands_grouping(seq, dbdt); drbd_syncer_progress()
203 seq_printf(seq, ")"); drbd_syncer_progress()
207 seq_printf(seq, " want: "); drbd_syncer_progress()
208 seq_printf_with_thousands_grouping(seq, device->c_sync_rate); drbd_syncer_progress()
210 seq_printf(seq, " K/sec%s\n", stalled ? " (stalled)" : ""); drbd_syncer_progress()
227 seq_printf(seq, drbd_syncer_progress()
233 seq_printf(seq, " stop sector: %llu", stop_sector); drbd_syncer_progress()
234 seq_printf(seq, "\n"); drbd_syncer_progress()
238 static int drbd_seq_show(struct seq_file *seq, void *v) drbd_seq_show() argument
253 seq_printf(seq, "version: " REL_VERSION " (api:%d/proto:%d-%d)\n%s\n", drbd_seq_show()
279 seq_printf(seq, "\n"); drbd_seq_show()
288 seq_printf(seq, "%2d: cs:Unconfigured\n", i); drbd_seq_show()
295 seq_printf(seq, drbd_seq_show()
325 seq_printf(seq, " oos:%llu\n", drbd_seq_show()
333 drbd_syncer_progress(device, seq, state); drbd_seq_show()
336 lc_seq_printf_stats(seq, device->resync); drbd_seq_show()
337 lc_seq_printf_stats(seq, device->act_log); drbd_seq_show()
342 seq_printf(seq, "\tblocked on activity log: %d\n", atomic_read(&device->ap_actlog_cnt)); drbd_seq_show()
/linux-4.1.27/net/appletalk/
H A Datalk_proc.c30 static void *atalk_seq_interface_start(struct seq_file *seq, loff_t *pos) __acquires()
39 static void *atalk_seq_interface_next(struct seq_file *seq, void *v, loff_t *pos) atalk_seq_interface_next() argument
56 static void atalk_seq_interface_stop(struct seq_file *seq, void *v) __releases()
62 static int atalk_seq_interface_show(struct seq_file *seq, void *v) atalk_seq_interface_show() argument
67 seq_puts(seq, "Interface Address Networks " atalk_seq_interface_show()
73 seq_printf(seq, "%-16s %04X:%02X %04X-%04X %d\n", atalk_seq_interface_show()
91 static void *atalk_seq_route_start(struct seq_file *seq, loff_t *pos) __acquires()
100 static void *atalk_seq_route_next(struct seq_file *seq, void *v, loff_t *pos) atalk_seq_route_next() argument
117 static void atalk_seq_route_stop(struct seq_file *seq, void *v) __releases()
123 static int atalk_seq_route_show(struct seq_file *seq, void *v) atalk_seq_route_show() argument
128 seq_puts(seq, "Target Router Flags Dev\n"); atalk_seq_route_show()
134 seq_printf(seq, "Default %04X:%02X %-4d %s\n", atalk_seq_route_show()
140 seq_printf(seq, "%04X:%02X %04X:%02X %-4d %s\n", atalk_seq_route_show()
148 static void *atalk_seq_socket_start(struct seq_file *seq, loff_t *pos) __acquires()
155 static void *atalk_seq_socket_next(struct seq_file *seq, void *v, loff_t *pos) atalk_seq_socket_next() argument
160 static void atalk_seq_socket_stop(struct seq_file *seq, void *v) __releases()
166 static int atalk_seq_socket_show(struct seq_file *seq, void *v) atalk_seq_socket_show() argument
172 seq_printf(seq, "Type Local_addr Remote_addr Tx_queue " atalk_seq_socket_show()
180 seq_printf(seq, "%02X %04X:%02X:%02X %04X:%02X:%02X %08X:%08X " atalk_seq_socket_show()
187 from_kuid_munged(seq_user_ns(seq), sock_i_uid(s))); atalk_seq_socket_show()
/linux-4.1.27/drivers/target/iscsi/
H A Discsi_target_seq_pdu_list.c34 struct iscsi_seq *seq; iscsit_dump_seq_list() local
40 seq = &cmd->seq_list[i]; iscsit_dump_seq_list()
43 " seq_no: %d\n", i, seq->pdu_start, seq->pdu_count, iscsit_dump_seq_list()
44 seq->offset, seq->xfer_len, seq->seq_send_order, iscsit_dump_seq_list()
45 seq->seq_no); iscsit_dump_seq_list()
304 struct iscsi_seq *seq = cmd->seq_list; iscsit_do_build_pdu_and_seq_lists() local
330 seq[seq_no].pdu_start = i; iscsit_do_build_pdu_and_seq_lists()
331 seq[seq_no].seq_no = seq_no; iscsit_do_build_pdu_and_seq_lists()
332 seq[seq_no].offset = offset; iscsit_do_build_pdu_and_seq_lists()
333 seq[seq_no].orig_offset = offset; iscsit_do_build_pdu_and_seq_lists()
343 seq[seq_no].type = SEQTYPE_IMMEDIATE; iscsit_do_build_pdu_and_seq_lists()
344 seq[seq_no].pdu_count = 1; iscsit_do_build_pdu_and_seq_lists()
345 seq[seq_no].xfer_len = iscsit_do_build_pdu_and_seq_lists()
364 seq[seq_no].type = SEQTYPE_UNSOLICITED; iscsit_do_build_pdu_and_seq_lists()
365 seq[seq_no].pdu_count = pdu_count; iscsit_do_build_pdu_and_seq_lists()
366 seq[seq_no].xfer_len = (burstlength + iscsit_do_build_pdu_and_seq_lists()
383 seq[seq_no].type = SEQTYPE_UNSOLICITED; iscsit_do_build_pdu_and_seq_lists()
384 seq[seq_no].pdu_count = pdu_count; iscsit_do_build_pdu_and_seq_lists()
385 seq[seq_no].xfer_len = (burstlength + iscsit_do_build_pdu_and_seq_lists()
415 seq[seq_no].type = SEQTYPE_NORMAL; iscsit_do_build_pdu_and_seq_lists()
416 seq[seq_no].pdu_count = pdu_count; iscsit_do_build_pdu_and_seq_lists()
417 seq[seq_no].xfer_len = (burstlength + iscsit_do_build_pdu_and_seq_lists()
432 seq[seq_no].type = SEQTYPE_NORMAL; iscsit_do_build_pdu_and_seq_lists()
433 seq[seq_no].pdu_count = pdu_count; iscsit_do_build_pdu_and_seq_lists()
434 seq[seq_no].xfer_len = (burstlength + iscsit_do_build_pdu_and_seq_lists()
504 struct iscsi_seq *seq = NULL; iscsit_build_pdu_and_seq_lists() local
548 seq = kcalloc(seq_count, sizeof(struct iscsi_seq), GFP_ATOMIC); iscsit_build_pdu_and_seq_lists()
549 if (!seq) { iscsit_build_pdu_and_seq_lists()
553 cmd->seq_list = seq; iscsit_build_pdu_and_seq_lists()
561 kfree(seq); iscsit_build_pdu_and_seq_lists()
597 struct iscsi_seq *seq) iscsit_get_pdu_holder_for_seq()
637 if (!seq) { iscsit_get_pdu_holder_for_seq()
642 pr_debug("seq->pdu_start: %d, seq->pdu_count: %d," iscsit_get_pdu_holder_for_seq()
643 " seq->seq_no: %d\n", seq->pdu_start, seq->pdu_count, iscsit_get_pdu_holder_for_seq()
644 seq->seq_no); iscsit_get_pdu_holder_for_seq()
646 pdu = &cmd->pdu_list[seq->pdu_start]; iscsit_get_pdu_holder_for_seq()
648 if (seq->pdu_send_order == seq->pdu_count) { iscsit_get_pdu_holder_for_seq()
649 pr_err("Command ITT: 0x%08x seq->pdu_send" iscsit_get_pdu_holder_for_seq()
650 "_order: %u equals seq->pdu_count: %u\n", iscsit_get_pdu_holder_for_seq()
651 cmd->init_task_tag, seq->pdu_send_order, iscsit_get_pdu_holder_for_seq()
652 seq->pdu_count); iscsit_get_pdu_holder_for_seq()
656 for (i = 0; i < seq->pdu_count; i++) { iscsit_get_pdu_holder_for_seq()
657 if (pdu[i].pdu_send_order == seq->pdu_send_order) { iscsit_get_pdu_holder_for_seq()
658 seq->pdu_send_order++; iscsit_get_pdu_holder_for_seq()
664 "_pdu_t for seq->pdu_send_order: %u.\n", iscsit_get_pdu_holder_for_seq()
665 cmd->init_task_tag, seq->pdu_send_order); iscsit_get_pdu_holder_for_seq()
595 iscsit_get_pdu_holder_for_seq( struct iscsi_cmd *cmd, struct iscsi_seq *seq) iscsit_get_pdu_holder_for_seq() argument
H A Discsi_target_datain_values.c191 struct iscsi_seq *seq; iscsit_set_datain_values_no_and_yes() local
217 seq = iscsit_get_seq_holder_for_datain(cmd, seq_send_order); iscsit_set_datain_values_no_and_yes()
218 if (!seq) iscsit_set_datain_values_no_and_yes()
221 seq->sent = 1; iscsit_set_datain_values_no_and_yes()
223 if (!dr->recovery && !seq->next_burst_len) iscsit_set_datain_values_no_and_yes()
224 seq->first_datasn = cmd->data_sn; iscsit_set_datain_values_no_and_yes()
226 offset = (seq->offset + seq->next_burst_len); iscsit_set_datain_values_no_and_yes()
237 seq->next_burst_len = 0; iscsit_set_datain_values_no_and_yes()
240 if ((seq->next_burst_len + iscsit_set_datain_values_no_and_yes()
245 datain->offset = (seq->offset + seq->next_burst_len); iscsit_set_datain_values_no_and_yes()
247 seq->next_burst_len += datain->length; iscsit_set_datain_values_no_and_yes()
250 seq->next_burst_len); iscsit_set_datain_values_no_and_yes()
251 datain->offset = (seq->offset + seq->next_burst_len); iscsit_set_datain_values_no_and_yes()
257 seq->next_burst_len = 0; iscsit_set_datain_values_no_and_yes()
276 seq->last_datasn = datain->data_sn; iscsit_set_datain_values_no_and_yes()
412 struct iscsi_seq *seq = NULL; iscsit_set_datain_values_no_and_no() local
438 seq = iscsit_get_seq_holder_for_datain(cmd, seq_send_order); iscsit_set_datain_values_no_and_no()
439 if (!seq) iscsit_set_datain_values_no_and_no()
442 seq->sent = 1; iscsit_set_datain_values_no_and_no()
444 if (!dr->recovery && !seq->next_burst_len) iscsit_set_datain_values_no_and_no()
445 seq->first_datasn = cmd->data_sn; iscsit_set_datain_values_no_and_no()
447 pdu = iscsit_get_pdu_holder_for_seq(cmd, seq); iscsit_set_datain_values_no_and_no()
451 if (seq->pdu_send_order == seq->pdu_count) { iscsit_set_datain_values_no_and_no()
456 seq->next_burst_len = 0; iscsit_set_datain_values_no_and_no()
459 seq->next_burst_len += pdu->length; iscsit_set_datain_values_no_and_no()
480 seq->last_datasn = datain->data_sn; iscsit_set_datain_values_no_and_no()
H A Discsi_target_erl1.c256 struct iscsi_seq *first_seq = NULL, *seq = NULL; iscsit_create_recovery_datain_values_datasequenceinorder_no() local
273 seq = &cmd->seq_list[i]; iscsit_create_recovery_datain_values_datasequenceinorder_no()
275 if (!seq->seq_send_order) iscsit_create_recovery_datain_values_datasequenceinorder_no()
276 first_seq = seq; iscsit_create_recovery_datain_values_datasequenceinorder_no()
280 * seq->first_datasn and seq->last_datasn have not been set. iscsit_create_recovery_datain_values_datasequenceinorder_no()
282 if (!seq->sent) { iscsit_create_recovery_datain_values_datasequenceinorder_no()
284 " 0x%08x\n\n", seq->first_datasn, iscsit_create_recovery_datain_values_datasequenceinorder_no()
285 seq->last_datasn); iscsit_create_recovery_datain_values_datasequenceinorder_no()
292 * seq->pdu_send_order. iscsit_create_recovery_datain_values_datasequenceinorder_no()
294 if ((seq->first_datasn < begrun) && iscsit_create_recovery_datain_values_datasequenceinorder_no()
295 (seq->last_datasn < begrun)) { iscsit_create_recovery_datain_values_datasequenceinorder_no()
297 " 0x%08x\n", seq->first_datasn, iscsit_create_recovery_datain_values_datasequenceinorder_no()
298 seq->last_datasn); iscsit_create_recovery_datain_values_datasequenceinorder_no()
301 seq->next_burst_len = seq->pdu_send_order = 0; iscsit_create_recovery_datain_values_datasequenceinorder_no()
308 if ((seq->first_datasn <= begrun) && iscsit_create_recovery_datain_values_datasequenceinorder_no()
309 (seq->last_datasn >= begrun)) { iscsit_create_recovery_datain_values_datasequenceinorder_no()
312 seq->first_datasn, seq->last_datasn); iscsit_create_recovery_datain_values_datasequenceinorder_no()
314 seq_send_order = seq->seq_send_order; iscsit_create_recovery_datain_values_datasequenceinorder_no()
315 data_sn = seq->first_datasn; iscsit_create_recovery_datain_values_datasequenceinorder_no()
316 seq->next_burst_len = seq->pdu_send_order = 0; iscsit_create_recovery_datain_values_datasequenceinorder_no()
333 seq->pdu_send_order++; iscsit_create_recovery_datain_values_datasequenceinorder_no()
336 seq->next_burst_len += iscsit_create_recovery_datain_values_datasequenceinorder_no()
345 seq->pdu_send_order++; iscsit_create_recovery_datain_values_datasequenceinorder_no()
347 for (j = 0; j < seq->pdu_count; j++) { iscsit_create_recovery_datain_values_datasequenceinorder_no()
349 seq->pdu_start + j]; iscsit_create_recovery_datain_values_datasequenceinorder_no()
353 seq->next_burst_len += iscsit_create_recovery_datain_values_datasequenceinorder_no()
365 * reset seq->pdu_send_order and continue. iscsit_create_recovery_datain_values_datasequenceinorder_no()
367 if ((seq->first_datasn > begrun) || iscsit_create_recovery_datain_values_datasequenceinorder_no()
368 (seq->last_datasn > begrun)) { iscsit_create_recovery_datain_values_datasequenceinorder_no()
370 seq->first_datasn, seq->last_datasn); iscsit_create_recovery_datain_values_datasequenceinorder_no()
372 seq->next_burst_len = seq->pdu_send_order = 0; iscsit_create_recovery_datain_values_datasequenceinorder_no()
386 seq->next_burst_len = seq->pdu_send_order = 0; iscsit_create_recovery_datain_values_datasequenceinorder_no()
637 struct iscsi_seq *seq = cmd->seq_ptr; iscsit_dataout_datapduinorder_no_fbit() local
639 first_pdu = &cmd->pdu_list[seq->pdu_start]; iscsit_dataout_datapduinorder_no_fbit()
640 pdu_count = seq->pdu_count; iscsit_dataout_datapduinorder_no_fbit()
732 struct iscsi_seq *seq = NULL; iscsit_recalculate_dataout_values() local
734 seq = iscsit_get_seq_holder(cmd, pdu_offset, pdu_length); iscsit_recalculate_dataout_values()
735 if (!seq) iscsit_recalculate_dataout_values()
738 *r2t_offset = seq->orig_offset; iscsit_recalculate_dataout_values()
739 *r2t_length = seq->xfer_len; iscsit_recalculate_dataout_values()
741 cmd->write_data_done -= (seq->offset - seq->orig_offset); iscsit_recalculate_dataout_values()
745 seq->data_sn = 0; iscsit_recalculate_dataout_values()
746 seq->offset = seq->orig_offset; iscsit_recalculate_dataout_values()
747 seq->next_burst_len = 0; iscsit_recalculate_dataout_values()
748 seq->status = DATAOUT_SEQUENCE_WITHIN_COMMAND_RECOVERY; iscsit_recalculate_dataout_values()
753 for (i = 0; i < seq->pdu_count; i++) { iscsit_recalculate_dataout_values()
754 pdu = &cmd->pdu_list[i+seq->pdu_start]; iscsit_recalculate_dataout_values()
H A Discsi_target_erl0.c100 struct iscsi_seq *seq; iscsit_dataout_within_command_recovery_check() local
102 seq = iscsit_get_seq_holder(cmd, be32_to_cpu(hdr->offset), iscsit_dataout_within_command_recovery_check()
104 if (!seq) iscsit_dataout_within_command_recovery_check()
109 cmd->seq_ptr = seq; iscsit_dataout_within_command_recovery_check()
112 if (seq->status == iscsit_dataout_within_command_recovery_check()
114 (seq->offset != be32_to_cpu(hdr->offset) || iscsit_dataout_within_command_recovery_check()
115 seq->data_sn != be32_to_cpu(hdr->datasn))) iscsit_dataout_within_command_recovery_check()
118 if (seq->status == iscsit_dataout_within_command_recovery_check()
120 seq->data_sn != be32_to_cpu(hdr->datasn)) iscsit_dataout_within_command_recovery_check()
124 if (seq->status == DATAOUT_SEQUENCE_COMPLETE) iscsit_dataout_within_command_recovery_check()
127 if (seq->status != DATAOUT_SEQUENCE_COMPLETE) iscsit_dataout_within_command_recovery_check()
128 seq->status = 0; iscsit_dataout_within_command_recovery_check()
220 struct iscsi_seq *seq = NULL; iscsit_dataout_check_sequence() local
252 seq = iscsit_get_seq_holder(cmd, be32_to_cpu(hdr->offset), iscsit_dataout_check_sequence()
254 if (!seq) iscsit_dataout_check_sequence()
259 cmd->seq_ptr = seq; iscsit_dataout_check_sequence()
261 if (seq->status == DATAOUT_SEQUENCE_COMPLETE) { iscsit_dataout_check_sequence()
267 next_burst_len = (seq->next_burst_len + payload_length); iscsit_dataout_check_sequence()
303 if (next_burst_len < seq->xfer_len) { iscsit_dataout_check_sequence()
329 if (next_burst_len == seq->xfer_len) { iscsit_dataout_check_sequence()
363 struct iscsi_seq *seq = cmd->seq_ptr; iscsit_dataout_check_datasn() local
364 data_sn = seq->data_sn; iscsit_dataout_check_datasn()
421 struct iscsi_seq *seq = cmd->seq_ptr; iscsit_dataout_pre_datapduinorder_yes() local
423 if (be32_to_cpu(hdr->offset) > seq->offset) { iscsit_dataout_pre_datapduinorder_yes()
426 be32_to_cpu(hdr->offset), seq->offset); iscsit_dataout_pre_datapduinorder_yes()
429 } else if (be32_to_cpu(hdr->offset) < seq->offset) { iscsit_dataout_pre_datapduinorder_yes()
433 seq->offset); iscsit_dataout_pre_datapduinorder_yes()
546 struct iscsi_seq *seq = NULL; iscsit_dataout_post_crc_passed() local
572 seq = cmd->seq_ptr; iscsit_dataout_post_crc_passed()
573 seq->data_sn++; iscsit_dataout_post_crc_passed()
574 seq->offset += payload_length; iscsit_dataout_post_crc_passed()
578 if (seq) iscsit_dataout_post_crc_passed()
579 seq->status = DATAOUT_SEQUENCE_COMPLETE; iscsit_dataout_post_crc_passed()
608 seq = cmd->seq_ptr; iscsit_dataout_post_crc_passed()
610 if ((seq->next_burst_len + payload_length) == iscsit_dataout_post_crc_passed()
611 seq->xfer_len) { iscsit_dataout_post_crc_passed()
627 seq->data_sn++; iscsit_dataout_post_crc_passed()
628 seq->offset += payload_length; iscsit_dataout_post_crc_passed()
629 seq->next_burst_len += payload_length; iscsit_dataout_post_crc_passed()
632 seq->next_burst_len = 0; iscsit_dataout_post_crc_passed()
633 seq->status = DATAOUT_SEQUENCE_COMPLETE; iscsit_dataout_post_crc_passed()
H A Discsi_target_tmr.c491 struct iscsi_seq *seq = NULL; iscsit_task_reassign_prepare_unsolicited_dataout() local
525 seq = &cmd->seq_list[i]; iscsit_task_reassign_prepare_unsolicited_dataout()
527 if (seq->type != SEQTYPE_UNSOLICITED) iscsit_task_reassign_prepare_unsolicited_dataout()
531 (seq->offset - seq->orig_offset); iscsit_task_reassign_prepare_unsolicited_dataout()
533 seq->data_sn = 0; iscsit_task_reassign_prepare_unsolicited_dataout()
534 seq->offset = seq->orig_offset; iscsit_task_reassign_prepare_unsolicited_dataout()
535 seq->next_burst_len = 0; iscsit_task_reassign_prepare_unsolicited_dataout()
536 seq->status = DATAOUT_SEQUENCE_WITHIN_COMMAND_RECOVERY; iscsit_task_reassign_prepare_unsolicited_dataout()
541 for (j = 0; j < seq->pdu_count; j++) { iscsit_task_reassign_prepare_unsolicited_dataout()
542 pdu = &cmd->pdu_list[j+seq->pdu_start]; iscsit_task_reassign_prepare_unsolicited_dataout()
677 struct iscsi_seq *seq; iscsit_task_reassign_prepare_write() local
679 seq = iscsit_get_seq_holder(cmd, r2t->offset, iscsit_task_reassign_prepare_write()
681 if (!seq) { iscsit_task_reassign_prepare_write()
687 (seq->offset - seq->orig_offset); iscsit_task_reassign_prepare_write()
688 seq->data_sn = 0; iscsit_task_reassign_prepare_write()
689 seq->offset = seq->orig_offset; iscsit_task_reassign_prepare_write()
690 seq->next_burst_len = 0; iscsit_task_reassign_prepare_write()
691 seq->status = DATAOUT_SEQUENCE_WITHIN_COMMAND_RECOVERY; iscsit_task_reassign_prepare_write()
698 for (i = 0; i < seq->pdu_count; i++) { iscsit_task_reassign_prepare_write()
699 pdu = &cmd->pdu_list[i+seq->pdu_start]; iscsit_task_reassign_prepare_write()
/linux-4.1.27/arch/arm/vdso/
H A Dvgettimeofday.c36 u32 seq; __vdso_read_begin() local
38 seq = ACCESS_ONCE(vdata->seq_count); __vdso_read_begin()
39 if (seq & 1) { __vdso_read_begin()
43 return seq; __vdso_read_begin()
48 u32 seq; vdso_read_begin() local
50 seq = __vdso_read_begin(vdata); vdso_read_begin()
53 return seq; vdso_read_begin()
82 u32 seq; do_realtime_coarse() local
85 seq = vdso_read_begin(vdata); do_realtime_coarse()
90 } while (vdso_read_retry(vdata, seq)); do_realtime_coarse()
99 u32 seq; do_monotonic_coarse() local
102 seq = vdso_read_begin(vdata); do_monotonic_coarse()
110 } while (vdso_read_retry(vdata, seq)); do_monotonic_coarse()
139 u32 seq; do_realtime() local
142 seq = vdso_read_begin(vdata); do_realtime()
150 } while (vdso_read_retry(vdata, seq)); do_realtime()
162 u32 seq; do_monotonic() local
165 seq = vdso_read_begin(vdata); do_monotonic()
176 } while (vdso_read_retry(vdata, seq)); do_monotonic()
/linux-4.1.27/net/sctp/
H A Dproc.c74 static int sctp_snmp_seq_show(struct seq_file *seq, void *v) sctp_snmp_seq_show() argument
76 struct net *net = seq->private; sctp_snmp_seq_show()
80 seq_printf(seq, "%-32s\t%ld\n", sctp_snmp_list[i].name, sctp_snmp_seq_show()
87 /* Initialize the seq file operations for 'snmp' object. */ sctp_snmp_seq_open()
121 static void sctp_seq_dump_local_addrs(struct seq_file *seq, struct sctp_ep_common *epb) sctp_seq_dump_local_addrs() argument
149 seq_printf(seq, "*"); sctp_seq_dump_local_addrs()
151 af->seq_dump_addr(seq, addr); sctp_seq_dump_local_addrs()
157 static void sctp_seq_dump_remote_addrs(struct seq_file *seq, struct sctp_association *assoc) sctp_seq_dump_remote_addrs() argument
173 seq_printf(seq, "*"); sctp_seq_dump_remote_addrs()
175 af->seq_dump_addr(seq, addr); sctp_seq_dump_remote_addrs()
180 static void *sctp_eps_seq_start(struct seq_file *seq, loff_t *pos) sctp_eps_seq_start() argument
189 seq_printf(seq, " ENDPT SOCK STY SST HBKT LPORT UID INODE LADDRS\n"); sctp_eps_seq_start()
194 static void sctp_eps_seq_stop(struct seq_file *seq, void *v) sctp_eps_seq_stop() argument
199 static void *sctp_eps_seq_next(struct seq_file *seq, void *v, loff_t *pos) sctp_eps_seq_next() argument
209 static int sctp_eps_seq_show(struct seq_file *seq, void *v) sctp_eps_seq_show() argument
226 if (!net_eq(sock_net(sk), seq_file_net(seq))) sctp_eps_seq_show()
228 seq_printf(seq, "%8pK %8pK %-3d %-3d %-4d %-5d %5u %5lu ", ep, sk, sctp_eps_seq_show()
231 from_kuid_munged(seq_user_ns(seq), sock_i_uid(sk)), sctp_eps_seq_show()
234 sctp_seq_dump_local_addrs(seq, epb); sctp_eps_seq_show()
235 seq_printf(seq, "\n"); sctp_eps_seq_show()
251 /* Initialize the seq file operations for 'eps' object. */ sctp_eps_seq_open()
285 static void *sctp_assocs_seq_start(struct seq_file *seq, loff_t *pos) sctp_assocs_seq_start() argument
294 seq_printf(seq, " ASSOC SOCK STY SST ST HBKT " sctp_assocs_seq_start()
303 static void sctp_assocs_seq_stop(struct seq_file *seq, void *v) sctp_assocs_seq_stop() argument
308 static void *sctp_assocs_seq_next(struct seq_file *seq, void *v, loff_t *pos) sctp_assocs_seq_next() argument
317 static int sctp_assocs_seq_show(struct seq_file *seq, void *v) sctp_assocs_seq_show() argument
334 if (!net_eq(sock_net(sk), seq_file_net(seq))) sctp_assocs_seq_show()
336 seq_printf(seq, sctp_assocs_seq_show()
344 from_kuid_munged(seq_user_ns(seq), sock_i_uid(sk)), sctp_assocs_seq_show()
348 seq_printf(seq, " "); sctp_assocs_seq_show()
349 sctp_seq_dump_local_addrs(seq, epb); sctp_assocs_seq_show()
350 seq_printf(seq, "<-> "); sctp_assocs_seq_show()
351 sctp_seq_dump_remote_addrs(seq, assoc); sctp_assocs_seq_show()
352 seq_printf(seq, "\t%8lu %5d %5d %4d %4d %4d %8d " sctp_assocs_seq_show()
362 seq_printf(seq, "\n"); sctp_assocs_seq_show()
377 /* Initialize the seq file operations for 'assocs' object. */ sctp_assocs_seq_open()
410 static void *sctp_remaddr_seq_start(struct seq_file *seq, loff_t *pos) sctp_remaddr_seq_start() argument
419 seq_printf(seq, "ADDR ASSOC_ID HB_ACT RTO MAX_PATH_RTX " sctp_remaddr_seq_start()
425 static void *sctp_remaddr_seq_next(struct seq_file *seq, void *v, loff_t *pos) sctp_remaddr_seq_next() argument
433 static void sctp_remaddr_seq_stop(struct seq_file *seq, void *v) sctp_remaddr_seq_stop() argument
437 static int sctp_remaddr_seq_show(struct seq_file *seq, void *v) sctp_remaddr_seq_show() argument
453 if (!net_eq(sock_net(epb->sk), seq_file_net(seq))) sctp_remaddr_seq_show()
464 tsp->af_specific->seq_dump_addr(seq, &tsp->ipaddr); sctp_remaddr_seq_show()
465 seq_printf(seq, " "); sctp_remaddr_seq_show()
470 seq_printf(seq, "%d ", tsp->asoc->assoc_id); sctp_remaddr_seq_show()
476 seq_printf(seq, "%d ", timer_pending(&tsp->hb_timer)); sctp_remaddr_seq_show()
481 seq_printf(seq, "%lu ", tsp->rto); sctp_remaddr_seq_show()
486 seq_printf(seq, "%d ", tsp->pathmaxrxt); sctp_remaddr_seq_show()
493 seq_puts(seq, "0 "); sctp_remaddr_seq_show()
500 seq_puts(seq, "0 "); sctp_remaddr_seq_show()
506 seq_printf(seq, "%d", tsp->state); sctp_remaddr_seq_show()
508 seq_printf(seq, "\n"); sctp_remaddr_seq_show()
H A Dobjcnt.c79 static int sctp_objcnt_seq_show(struct seq_file *seq, void *v) sctp_objcnt_seq_show() argument
84 seq_setwidth(seq, 127); sctp_objcnt_seq_show()
85 seq_printf(seq, "%s: %d", sctp_dbg_objcnt[i].label, sctp_objcnt_seq_show()
87 seq_pad(seq, '\n'); sctp_objcnt_seq_show()
91 static void *sctp_objcnt_seq_start(struct seq_file *seq, loff_t *pos) sctp_objcnt_seq_start() argument
96 static void sctp_objcnt_seq_stop(struct seq_file *seq, void *v) sctp_objcnt_seq_stop() argument
100 static void *sctp_objcnt_seq_next(struct seq_file *seq, void *v, loff_t *pos) sctp_objcnt_seq_next() argument
/linux-4.1.27/net/8021q/
H A Dvlanproc.c39 static int vlan_seq_show(struct seq_file *seq, void *v);
40 static void *vlan_seq_start(struct seq_file *seq, loff_t *pos);
41 static void *vlan_seq_next(struct seq_file *seq, void *v, loff_t *pos);
42 static void vlan_seq_stop(struct seq_file *seq, void *);
43 static int vlandev_seq_show(struct seq_file *seq, void *v);
202 static void *vlan_seq_start(struct seq_file *seq, loff_t *pos) __acquires()
206 struct net *net = seq_file_net(seq); __acquires()
224 static void *vlan_seq_next(struct seq_file *seq, void *v, loff_t *pos) vlan_seq_next() argument
227 struct net *net = seq_file_net(seq); vlan_seq_next()
245 static void vlan_seq_stop(struct seq_file *seq, void *v) __releases()
251 static int vlan_seq_show(struct seq_file *seq, void *v) vlan_seq_show() argument
253 struct net *net = seq_file_net(seq); vlan_seq_show()
259 seq_puts(seq, "VLAN Dev name | VLAN ID\n"); vlan_seq_show()
264 seq_printf(seq, "Name-Type: %s\n", vlan_seq_show()
270 seq_printf(seq, "%-15s| %d | %s\n", vlandev->name, vlan_seq_show()
276 static int vlandev_seq_show(struct seq_file *seq, void *offset) vlandev_seq_show() argument
278 struct net_device *vlandev = (struct net_device *) seq->private; vlandev_seq_show()
289 seq_printf(seq, vlandev_seq_show()
294 seq_printf(seq, fmt64, "total frames received", stats->rx_packets); vlandev_seq_show()
295 seq_printf(seq, fmt64, "total bytes received", stats->rx_bytes); vlandev_seq_show()
296 seq_printf(seq, fmt64, "Broadcast/Multicast Rcvd", stats->multicast); vlandev_seq_show()
297 seq_puts(seq, "\n"); vlandev_seq_show()
298 seq_printf(seq, fmt64, "total frames transmitted", stats->tx_packets); vlandev_seq_show()
299 seq_printf(seq, fmt64, "total bytes transmitted", stats->tx_bytes); vlandev_seq_show()
300 seq_printf(seq, "Device: %s", vlan->real_dev->name); vlandev_seq_show()
302 seq_printf(seq, "\nINGRESS priority mappings: " vlandev_seq_show()
313 seq_printf(seq, " EGRESS priority mappings: "); vlandev_seq_show()
318 seq_printf(seq, "%u:%hu ", vlandev_seq_show()
323 seq_puts(seq, "\n"); vlandev_seq_show()
/linux-4.1.27/net/x25/
H A Dx25_proc.c30 static void *x25_seq_route_start(struct seq_file *seq, loff_t *pos) __acquires()
37 static void *x25_seq_route_next(struct seq_file *seq, void *v, loff_t *pos) x25_seq_route_next() argument
42 static void x25_seq_route_stop(struct seq_file *seq, void *v) __releases()
48 static int x25_seq_route_show(struct seq_file *seq, void *v) x25_seq_route_show() argument
53 seq_puts(seq, "Address Digits Device\n"); x25_seq_route_show()
58 seq_printf(seq, "%-15s %-6d %-5s\n", x25_seq_route_show()
65 static void *x25_seq_socket_start(struct seq_file *seq, loff_t *pos) __acquires()
72 static void *x25_seq_socket_next(struct seq_file *seq, void *v, loff_t *pos) x25_seq_socket_next() argument
77 static void x25_seq_socket_stop(struct seq_file *seq, void *v) __releases()
83 static int x25_seq_socket_show(struct seq_file *seq, void *v) x25_seq_socket_show() argument
91 seq_printf(seq, "dest_addr src_addr dev lci st vs vr " x25_seq_socket_show()
104 seq_printf(seq, "%-10s %-10s %-5s %3.3X %d %d %d %d %3lu %3lu " x25_seq_socket_show()
118 static void *x25_seq_forward_start(struct seq_file *seq, loff_t *pos) __acquires()
125 static void *x25_seq_forward_next(struct seq_file *seq, void *v, loff_t *pos) x25_seq_forward_next() argument
130 static void x25_seq_forward_stop(struct seq_file *seq, void *v) __releases()
136 static int x25_seq_forward_show(struct seq_file *seq, void *v) x25_seq_forward_show() argument
141 seq_printf(seq, "lci dev1 dev2\n"); x25_seq_forward_show()
147 seq_printf(seq, "%d %-10s %-10s\n", x25_seq_forward_show()
/linux-4.1.27/arch/s390/kernel/
H A Didle.c56 unsigned int seq; show_idle_count() local
59 seq = read_seqcount_begin(&idle->seqcount); show_idle_count()
63 } while (read_seqcount_retry(&idle->seqcount, seq)); show_idle_count()
73 unsigned int seq; show_idle_time() local
77 seq = read_seqcount_begin(&idle->seqcount); show_idle_time()
81 } while (read_seqcount_retry(&idle->seqcount, seq)); show_idle_time()
91 unsigned int seq; arch_cpu_idle_time() local
95 seq = read_seqcount_begin(&idle->seqcount); arch_cpu_idle_time()
98 } while (read_seqcount_retry(&idle->seqcount, seq)); arch_cpu_idle_time()
/linux-4.1.27/drivers/scsi/aic94xx/
H A Daic94xx_hwi.c218 struct asd_seq_data *seq = &asd_ha->seq; asd_init_scbs() local
222 asd_ha->seq.tc_index_bitmap_bits = asd_ha->hw_prof.max_scbs; asd_init_scbs()
223 asd_ha->seq.tc_index_array = kzalloc(asd_ha->seq.tc_index_bitmap_bits* asd_init_scbs()
225 if (!asd_ha->seq.tc_index_array) asd_init_scbs()
228 bitmap_bytes = (asd_ha->seq.tc_index_bitmap_bits+7)/8; asd_init_scbs()
230 asd_ha->seq.tc_index_bitmap = kzalloc(bitmap_bytes, GFP_KERNEL); asd_init_scbs()
231 if (!asd_ha->seq.tc_index_bitmap) asd_init_scbs()
234 spin_lock_init(&seq->tc_index_lock); asd_init_scbs()
236 seq->next_scb.size = sizeof(struct scb); asd_init_scbs()
237 seq->next_scb.vaddr = dma_pool_alloc(asd_ha->scb_pool, GFP_KERNEL, asd_init_scbs()
238 &seq->next_scb.dma_handle); asd_init_scbs()
239 if (!seq->next_scb.vaddr) { asd_init_scbs()
240 kfree(asd_ha->seq.tc_index_bitmap); asd_init_scbs()
241 kfree(asd_ha->seq.tc_index_array); asd_init_scbs()
242 asd_ha->seq.tc_index_bitmap = NULL; asd_init_scbs()
243 asd_ha->seq.tc_index_array = NULL; asd_init_scbs()
247 seq->pending = 0; asd_init_scbs()
248 spin_lock_init(&seq->pend_q_lock); asd_init_scbs()
249 INIT_LIST_HEAD(&seq->pend_q); asd_init_scbs()
269 asd_ha->seq.actual_dl asd_init_dl()
273 if (!asd_ha->seq.actual_dl) asd_init_dl()
275 asd_ha->seq.dl = asd_ha->seq.actual_dl->vaddr; asd_init_dl()
276 asd_ha->seq.dl_toggle = ASD_DEF_DL_TOGGLE; asd_init_dl()
277 asd_ha->seq.dl_next = 0; asd_init_dl()
278 tasklet_init(&asd_ha->seq.dl_tasklet, asd_dl_tasklet_handler, asd_init_dl()
288 struct asd_seq_data *seq = &asd_ha->seq; asd_alloc_edbs() local
291 seq->edb_arr = kmalloc(seq->num_edbs*sizeof(*seq->edb_arr), gfp_flags); asd_alloc_edbs()
292 if (!seq->edb_arr) asd_alloc_edbs()
295 for (i = 0; i < seq->num_edbs; i++) { asd_alloc_edbs()
296 seq->edb_arr[i] = asd_alloc_coherent(asd_ha, ASD_EDB_SIZE, asd_alloc_edbs()
298 if (!seq->edb_arr[i]) asd_alloc_edbs()
300 memset(seq->edb_arr[i]->vaddr, 0, ASD_EDB_SIZE); asd_alloc_edbs()
303 ASD_DPRINTK("num_edbs:%d\n", seq->num_edbs); asd_alloc_edbs()
309 asd_free_coherent(asd_ha, seq->edb_arr[i]); asd_alloc_edbs()
310 kfree(seq->edb_arr); asd_alloc_edbs()
311 seq->edb_arr = NULL; asd_alloc_edbs()
319 struct asd_seq_data *seq = &asd_ha->seq; asd_alloc_escbs() local
323 seq->escb_arr = kmalloc(seq->num_escbs*sizeof(*seq->escb_arr), asd_alloc_escbs()
325 if (!seq->escb_arr) asd_alloc_escbs()
328 escbs = seq->num_escbs; asd_alloc_escbs()
334 seq->num_escbs -= escbs; /* subtract what was not allocated */ asd_alloc_escbs()
335 ASD_DPRINTK("num_escbs:%d\n", seq->num_escbs); asd_alloc_escbs()
337 for (i = 0; i < seq->num_escbs; i++, escb = list_entry(escb->list.next, asd_alloc_escbs()
340 seq->escb_arr[i] = escb; asd_alloc_escbs()
346 kfree(seq->escb_arr); asd_alloc_escbs()
347 seq->escb_arr = NULL; asd_alloc_escbs()
354 struct asd_seq_data *seq = &asd_ha->seq; asd_assign_edbs2escbs() local
357 for (i = 0; i < seq->num_escbs; i++) { asd_assign_edbs2escbs()
358 struct asd_ascb *ascb = seq->escb_arr[i]; asd_assign_edbs2escbs()
367 struct asd_dma_tok *edb = seq->edb_arr[z++]; asd_assign_edbs2escbs()
385 struct asd_seq_data *seq = &asd_ha->seq; asd_init_escbs() local
391 seq->num_escbs = (edbs+ASD_EDBS_PER_SCB-1)/ASD_EDBS_PER_SCB; asd_init_escbs()
392 seq->num_edbs = seq->num_escbs * ASD_EDBS_PER_SCB; asd_init_escbs()
412 seq->pending = seq->num_escbs; asd_init_escbs()
413 seq->can_queue = 1 + (asd_ha->hw_prof.max_scbs - seq->pending)/2; asd_init_escbs()
733 struct asd_seq_data *seq = &asd_ha->seq; asd_dl_tasklet_handler() local
737 struct done_list_struct *dl = &seq->dl[seq->dl_next]; asd_dl_tasklet_handler()
740 if ((dl->toggle & DL_TOGGLE_MASK) != seq->dl_toggle) asd_dl_tasklet_handler()
744 spin_lock_irqsave(&seq->tc_index_lock, flags); asd_dl_tasklet_handler()
745 ascb = asd_tc_index_find(seq, (int)le16_to_cpu(dl->index)); asd_dl_tasklet_handler()
746 spin_unlock_irqrestore(&seq->tc_index_lock, flags); asd_dl_tasklet_handler()
755 spin_lock_irqsave(&seq->pend_q_lock, flags); asd_dl_tasklet_handler()
757 seq->pending--; asd_dl_tasklet_handler()
758 spin_unlock_irqrestore(&seq->pend_q_lock, flags); asd_dl_tasklet_handler()
763 seq->dl_next = (seq->dl_next + 1) & (ASD_DL_SIZE-1); asd_dl_tasklet_handler()
764 if (!seq->dl_next) asd_dl_tasklet_handler()
765 seq->dl_toggle ^= DL_TOGGLE_MASK; asd_dl_tasklet_handler()
777 tasklet_schedule(&asd_ha->seq.dl_tasklet); asd_process_donelist_isr()
1050 struct asd_seq_data *seq = &asd_ha->seq; asd_ascb_alloc() local
1068 spin_lock_irqsave(&seq->tc_index_lock, flags); asd_ascb_alloc()
1069 ascb->tc_index = asd_tc_index_get(seq, ascb); asd_ascb_alloc()
1070 spin_unlock_irqrestore(&seq->tc_index_lock, flags); asd_ascb_alloc()
1135 * seq->next_scb keeps the address of this SCB. The sequencer will
1149 struct asd_seq_data *seq = &asd_ha->seq; asd_swap_head_scb() local
1155 memcpy(seq->next_scb.vaddr, ascb->scb, sizeof(*ascb->scb)); asd_swap_head_scb()
1156 ascb->dma_scb = seq->next_scb; asd_swap_head_scb()
1158 seq->next_scb = t; asd_swap_head_scb()
1160 cpu_to_le64(((u64)seq->next_scb.dma_handle)); asd_swap_head_scb()
1212 spin_lock_irqsave(&asd_ha->seq.pend_q_lock, flags); asd_post_ascb_list()
1213 can_queue = asd_ha->hw_prof.max_scbs - asd_ha->seq.pending; asd_post_ascb_list()
1215 asd_ha->seq.pending += num; asd_post_ascb_list()
1220 spin_unlock_irqrestore(&asd_ha->seq.pend_q_lock, flags); asd_post_ascb_list()
1231 asd_ha->seq.scbpro += num; asd_post_ascb_list()
1232 list_splice_init(&list, asd_ha->seq.pend_q.prev); asd_post_ascb_list()
1233 asd_write_reg_dword(asd_ha, SCBPRO, (u32)asd_ha->seq.scbpro); asd_post_ascb_list()
1234 spin_unlock_irqrestore(&asd_ha->seq.pend_q_lock, flags); asd_post_ascb_list()
1262 spin_lock_irqsave(&asd_ha->seq.pend_q_lock, flags); asd_post_escb_list()
1264 asd_ha->seq.scbpro += num; asd_post_escb_list()
1265 asd_write_reg_dword(asd_ha, SCBPRO, (u32)asd_ha->seq.scbpro); asd_post_escb_list()
1266 spin_unlock_irqrestore(&asd_ha->seq.pend_q_lock, flags); asd_post_escb_list()
H A Daic94xx_hwi.h147 /* If this is an Empty SCB, index of first edb in seq->edb_arr. */
219 struct asd_seq_data seq; /* sequencer related */ member in struct:asd_ha_struct
301 static inline void asd_tc_index_release(struct asd_seq_data *seq, int index) asd_tc_index_release() argument
303 seq->tc_index_array[index] = NULL; asd_tc_index_release()
304 clear_bit(index, seq->tc_index_bitmap); asd_tc_index_release()
309 static inline int asd_tc_index_get(struct asd_seq_data *seq, void *ptr) asd_tc_index_get() argument
313 index = find_first_zero_bit(seq->tc_index_bitmap, asd_tc_index_get()
314 seq->tc_index_bitmap_bits); asd_tc_index_get()
315 if (index == seq->tc_index_bitmap_bits) asd_tc_index_get()
318 seq->tc_index_array[index] = ptr; asd_tc_index_get()
319 set_bit(index, seq->tc_index_bitmap); asd_tc_index_get()
326 static inline void *asd_tc_index_find(struct asd_seq_data *seq, int index) asd_tc_index_find() argument
328 return seq->tc_index_array[index]; asd_tc_index_find()
345 spin_lock_irqsave(&ascb->ha->seq.tc_index_lock, flags); asd_ascb_free()
346 asd_tc_index_release(&ascb->ha->seq, ascb->tc_index); asd_ascb_free()
347 spin_unlock_irqrestore(&ascb->ha->seq.tc_index_lock, flags); asd_ascb_free()
H A Daic94xx_init.c560 struct asd_seq_data *seq = &asd_ha->seq; asd_free_edbs() local
563 for (i = 0; i < seq->num_edbs; i++) asd_free_edbs()
564 asd_free_coherent(asd_ha, seq->edb_arr[i]); asd_free_edbs()
565 kfree(seq->edb_arr); asd_free_edbs()
566 seq->edb_arr = NULL; asd_free_edbs()
571 struct asd_seq_data *seq = &asd_ha->seq; asd_free_escbs() local
574 for (i = 0; i < seq->num_escbs; i++) { asd_free_escbs()
575 if (!list_empty(&seq->escb_arr[i]->list)) asd_free_escbs()
576 list_del_init(&seq->escb_arr[i]->list); asd_free_escbs()
578 asd_ascb_free(seq->escb_arr[i]); asd_free_escbs()
580 kfree(seq->escb_arr); asd_free_escbs()
581 seq->escb_arr = NULL; asd_free_escbs()
602 if (asd_ha->seq.escb_arr) asd_destroy_ha_caches()
604 if (asd_ha->seq.edb_arr) asd_destroy_ha_caches()
610 if (asd_ha->seq.tc_index_array) { asd_destroy_ha_caches()
611 kfree(asd_ha->seq.tc_index_array); asd_destroy_ha_caches()
612 kfree(asd_ha->seq.tc_index_bitmap); asd_destroy_ha_caches()
613 asd_ha->seq.tc_index_array = NULL; asd_destroy_ha_caches()
614 asd_ha->seq.tc_index_bitmap = NULL; asd_destroy_ha_caches()
616 if (asd_ha->seq.actual_dl) { asd_destroy_ha_caches()
617 asd_free_coherent(asd_ha, asd_ha->seq.actual_dl); asd_destroy_ha_caches()
618 asd_ha->seq.actual_dl = NULL; asd_destroy_ha_caches()
619 asd_ha->seq.dl = NULL; asd_destroy_ha_caches()
621 if (asd_ha->seq.next_scb.vaddr) { asd_destroy_ha_caches()
622 dma_pool_free(asd_ha->scb_pool, asd_ha->seq.next_scb.vaddr, asd_destroy_ha_caches()
623 asd_ha->seq.next_scb.dma_handle); asd_destroy_ha_caches()
624 asd_ha->seq.next_scb.vaddr = NULL; asd_destroy_ha_caches()
815 shost->can_queue = asd_ha->seq.can_queue; asd_pci_probe()
880 spin_lock_irqsave(&asd_ha->seq.pend_q_lock, flags); asd_free_queues()
881 asd_ha->seq.pending = 0; asd_free_queues()
882 list_splice_init(&asd_ha->seq.pend_q, &pending); asd_free_queues()
883 spin_unlock_irqrestore(&asd_ha->seq.pend_q_lock, flags); asd_free_queues()
H A Daic94xx_task.c40 spin_lock_irqsave(&asd_ha->seq.pend_q_lock, flags); asd_can_dequeue()
41 asd_ha->seq.can_queue += num; asd_can_dequeue()
42 spin_unlock_irqrestore(&asd_ha->seq.pend_q_lock, flags); asd_can_dequeue()
177 spin_lock_irqsave(&asd_ha->seq.tc_index_lock, flags); asd_get_response_tasklet()
178 escb = asd_tc_index_find(&asd_ha->seq, asd_get_response_tasklet()
180 spin_unlock_irqrestore(&asd_ha->seq.tc_index_lock, flags); asd_get_response_tasklet()
188 edb = asd_ha->seq.edb_arr[edb_id + escb->edb_index]; asd_get_response_tasklet()
536 spin_lock_irqsave(&asd_ha->seq.pend_q_lock, flags); asd_can_queue()
537 if ((asd_ha->seq.can_queue - num) < 0) asd_can_queue()
540 asd_ha->seq.can_queue -= num; asd_can_queue()
541 spin_unlock_irqrestore(&asd_ha->seq.pend_q_lock, flags); asd_can_queue()
/linux-4.1.27/net/ipv6/
H A Dproc.c33 static int sockstat6_seq_show(struct seq_file *seq, void *v) sockstat6_seq_show() argument
35 struct net *net = seq->private; sockstat6_seq_show()
38 seq_printf(seq, "TCP6: inuse %d\n", sockstat6_seq_show()
40 seq_printf(seq, "UDP6: inuse %d\n", sockstat6_seq_show()
42 seq_printf(seq, "UDPLITE6: inuse %d\n", sockstat6_seq_show()
44 seq_printf(seq, "RAW6: inuse %d\n", sockstat6_seq_show()
46 seq_printf(seq, "FRAG6: inuse %u memory %u\n", !!frag_mem, frag_mem); sockstat6_seq_show()
154 static void snmp6_seq_show_icmpv6msg(struct seq_file *seq, atomic_long_t *smib) snmp6_seq_show_icmpv6msg() argument
170 seq_printf(seq, "%-32s\t%lu\n", name, snmp6_seq_show_icmpv6msg()
183 seq_printf(seq, "%-32s\t%lu\n", name, val); snmp6_seq_show_icmpv6msg()
190 static void snmp6_seq_show_item(struct seq_file *seq, void __percpu *pcpumib, snmp6_seq_show_item() argument
201 seq_printf(seq, "%-32s\t%lu\n", itemlist[i].name, val); snmp6_seq_show_item()
205 static void snmp6_seq_show_item64(struct seq_file *seq, void __percpu *mib, snmp6_seq_show_item64() argument
211 seq_printf(seq, "%-32s\t%llu\n", itemlist[i].name, snmp6_seq_show_item64()
215 static int snmp6_seq_show(struct seq_file *seq, void *v) snmp6_seq_show() argument
217 struct net *net = (struct net *)seq->private; snmp6_seq_show()
219 snmp6_seq_show_item64(seq, net->mib.ipv6_statistics, snmp6_seq_show()
221 snmp6_seq_show_item(seq, net->mib.icmpv6_statistics, snmp6_seq_show()
223 snmp6_seq_show_icmpv6msg(seq, net->mib.icmpv6msg_statistics->mibs); snmp6_seq_show()
224 snmp6_seq_show_item(seq, net->mib.udp_stats_in6, snmp6_seq_show()
226 snmp6_seq_show_item(seq, net->mib.udplite_stats_in6, snmp6_seq_show()
244 static int snmp6_dev_seq_show(struct seq_file *seq, void *v) snmp6_dev_seq_show() argument
246 struct inet6_dev *idev = (struct inet6_dev *)seq->private; snmp6_dev_seq_show()
248 seq_printf(seq, "%-32s\t%u\n", "ifIndex", idev->dev->ifindex); snmp6_dev_seq_show()
249 snmp6_seq_show_item64(seq, idev->stats.ipv6, snmp6_dev_seq_show()
251 snmp6_seq_show_item(seq, NULL, idev->stats.icmpv6dev->mibs, snmp6_dev_seq_show()
253 snmp6_seq_show_icmpv6msg(seq, idev->stats.icmpv6msgdev->mibs); snmp6_dev_seq_show()
H A Danycast.c427 #define ac6_seq_private(seq) ((struct ac6_iter_state *)(seq)->private)
429 static inline struct ifacaddr6 *ac6_get_first(struct seq_file *seq) ac6_get_first() argument
432 struct ac6_iter_state *state = ac6_seq_private(seq); ac6_get_first()
433 struct net *net = seq_file_net(seq); ac6_get_first()
452 static struct ifacaddr6 *ac6_get_next(struct seq_file *seq, struct ifacaddr6 *im) ac6_get_next() argument
454 struct ac6_iter_state *state = ac6_seq_private(seq); ac6_get_next()
475 static struct ifacaddr6 *ac6_get_idx(struct seq_file *seq, loff_t pos) ac6_get_idx() argument
477 struct ifacaddr6 *im = ac6_get_first(seq); ac6_get_idx()
479 while (pos && (im = ac6_get_next(seq, im)) != NULL) ac6_get_idx()
484 static void *ac6_seq_start(struct seq_file *seq, loff_t *pos) __acquires()
488 return ac6_get_idx(seq, *pos); __acquires()
491 static void *ac6_seq_next(struct seq_file *seq, void *v, loff_t *pos) ac6_seq_next() argument
493 struct ifacaddr6 *im = ac6_get_next(seq, v); ac6_seq_next()
499 static void ac6_seq_stop(struct seq_file *seq, void *v) __releases()
502 struct ac6_iter_state *state = ac6_seq_private(seq); __releases()
511 static int ac6_seq_show(struct seq_file *seq, void *v) ac6_seq_show() argument
514 struct ac6_iter_state *state = ac6_seq_private(seq); ac6_seq_show()
516 seq_printf(seq, "%-4d %-15s %pi6 %5d\n", ac6_seq_show()
H A Dip6_flowlabel.c696 #define ip6fl_seq_private(seq) ((struct ip6fl_iter_state *)(seq)->private)
698 static struct ip6_flowlabel *ip6fl_get_first(struct seq_file *seq) ip6fl_get_first() argument
701 struct ip6fl_iter_state *state = ip6fl_seq_private(seq); ip6fl_get_first()
702 struct net *net = seq_file_net(seq); ip6fl_get_first()
715 static struct ip6_flowlabel *ip6fl_get_next(struct seq_file *seq, struct ip6_flowlabel *fl) ip6fl_get_next() argument
717 struct ip6fl_iter_state *state = ip6fl_seq_private(seq); ip6fl_get_next()
718 struct net *net = seq_file_net(seq); ip6fl_get_next()
739 static struct ip6_flowlabel *ip6fl_get_idx(struct seq_file *seq, loff_t pos) ip6fl_get_idx() argument
741 struct ip6_flowlabel *fl = ip6fl_get_first(seq); ip6fl_get_idx()
743 while (pos && (fl = ip6fl_get_next(seq, fl)) != NULL) ip6fl_get_idx()
748 static void *ip6fl_seq_start(struct seq_file *seq, loff_t *pos) __acquires()
752 return *pos ? ip6fl_get_idx(seq, *pos - 1) : SEQ_START_TOKEN; __acquires()
755 static void *ip6fl_seq_next(struct seq_file *seq, void *v, loff_t *pos) ip6fl_seq_next() argument
760 fl = ip6fl_get_first(seq); ip6fl_seq_next()
762 fl = ip6fl_get_next(seq, v); ip6fl_seq_next()
767 static void ip6fl_seq_stop(struct seq_file *seq, void *v) __releases()
773 static int ip6fl_seq_show(struct seq_file *seq, void *v) ip6fl_seq_show() argument
775 struct ip6fl_iter_state *state = ip6fl_seq_private(seq); ip6fl_seq_show()
777 seq_puts(seq, "Label S Owner Users Linger Expires Dst Opt\n"); ip6fl_seq_show()
780 seq_printf(seq, ip6fl_seq_show()
787 from_kuid_munged(seq_user_ns(seq), fl->owner.uid) : ip6fl_seq_show()
807 struct seq_file *seq; ip6fl_seq_open() local
815 seq = file->private_data; ip6fl_seq_open()
816 state = ip6fl_seq_private(seq); ip6fl_seq_open()
826 struct seq_file *seq = file->private_data; ip6fl_seq_release() local
827 struct ip6fl_iter_state *state = ip6fl_seq_private(seq); ip6fl_seq_release()
/linux-4.1.27/drivers/char/
H A Dnvram.c126 static void mach_proc_infos(unsigned char *contents, struct seq_file *seq,
389 static int nvram_proc_read(struct seq_file *seq, void *offset) nvram_proc_read() argument
399 mach_proc_infos(contents, seq, offset); nvram_proc_read()
523 static void pc_proc_infos(unsigned char *nvram, struct seq_file *seq, pc_proc_infos() argument
533 seq_printf(seq, "Checksum status: %svalid\n", checksum ? "" : "not "); pc_proc_infos()
535 seq_printf(seq, "# floppies : %d\n", pc_proc_infos()
537 seq_printf(seq, "Floppy 0 type : "); pc_proc_infos()
540 seq_printf(seq, "%s\n", floppy_types[type]); pc_proc_infos()
542 seq_printf(seq, "%d (unknown)\n", type); pc_proc_infos()
543 seq_printf(seq, "Floppy 1 type : "); pc_proc_infos()
546 seq_printf(seq, "%s\n", floppy_types[type]); pc_proc_infos()
548 seq_printf(seq, "%d (unknown)\n", type); pc_proc_infos()
550 seq_printf(seq, "HD 0 type : "); pc_proc_infos()
553 seq_printf(seq, "%02x\n", type == 0x0f ? nvram[11] : type); pc_proc_infos()
555 seq_printf(seq, "none\n"); pc_proc_infos()
557 seq_printf(seq, "HD 1 type : "); pc_proc_infos()
560 seq_printf(seq, "%02x\n", type == 0x0f ? nvram[12] : type); pc_proc_infos()
562 seq_printf(seq, "none\n"); pc_proc_infos()
564 seq_printf(seq, "HD type 48 data: %d/%d/%d C/H/S, precomp %d, lz %d\n", pc_proc_infos()
568 seq_printf(seq, "HD type 49 data: %d/%d/%d C/H/S, precomp %d, lz %d\n", pc_proc_infos()
573 seq_printf(seq, "DOS base memory: %d kB\n", nvram[7] | (nvram[8] << 8)); pc_proc_infos()
574 seq_printf(seq, "Extended memory: %d kB (configured), %d kB (tested)\n", pc_proc_infos()
577 seq_printf(seq, "Gfx adapter : %s\n", pc_proc_infos()
580 seq_printf(seq, "FPU : %sinstalled\n", pc_proc_infos()
653 static void atari_proc_infos(unsigned char *nvram, struct seq_file *seq, atari_proc_infos() argument
660 seq_printf(seq, "Checksum status : %svalid\n", checksum ? "" : "not "); atari_proc_infos()
662 seq_printf(seq, "Boot preference : "); atari_proc_infos()
665 seq_printf(seq, "%s\n", boot_prefs[i].name); atari_proc_infos()
670 seq_printf(seq, "0x%02x (undefined)\n", nvram[1]); atari_proc_infos()
672 seq_printf(seq, "SCSI arbitration : %s\n", atari_proc_infos()
674 seq_printf(seq, "SCSI host ID : "); atari_proc_infos()
676 seq_printf(seq, "%d\n", nvram[16] & 7); atari_proc_infos()
678 seq_printf(seq, "n/a\n"); atari_proc_infos()
684 seq_printf(seq, "OS language : "); atari_proc_infos()
686 seq_printf(seq, "%s\n", languages[nvram[6]]); atari_proc_infos()
688 seq_printf(seq, "%u (undefined)\n", nvram[6]); atari_proc_infos()
689 seq_printf(seq, "Keyboard language: "); atari_proc_infos()
691 seq_printf(seq, "%s\n", languages[nvram[7]]); atari_proc_infos()
693 seq_printf(seq, "%u (undefined)\n", nvram[7]); atari_proc_infos()
694 seq_printf(seq, "Date format : "); atari_proc_infos()
695 seq_printf(seq, dateformat[nvram[8] & 7], atari_proc_infos()
697 seq_printf(seq, ", %dh clock\n", nvram[8] & 16 ? 24 : 12); atari_proc_infos()
698 seq_printf(seq, "Boot delay : "); atari_proc_infos()
700 seq_printf(seq, "default"); atari_proc_infos()
702 seq_printf(seq, "%ds%s\n", nvram[10], atari_proc_infos()
706 seq_printf(seq, atari_proc_infos()
711 seq_printf(seq, " %soverscan, compat. mode %s%s\n", atari_proc_infos()
/linux-4.1.27/net/ipv4/netfilter/
H A Dnf_conntrack_l3proto_ipv4_compat.c32 static struct hlist_nulls_node *ct_get_first(struct seq_file *seq) ct_get_first() argument
34 struct net *net = seq_file_net(seq); ct_get_first()
35 struct ct_iter_state *st = seq->private; ct_get_first()
49 static struct hlist_nulls_node *ct_get_next(struct seq_file *seq, ct_get_next() argument
52 struct net *net = seq_file_net(seq); ct_get_next()
53 struct ct_iter_state *st = seq->private; ct_get_next()
67 static struct hlist_nulls_node *ct_get_idx(struct seq_file *seq, loff_t pos) ct_get_idx() argument
69 struct hlist_nulls_node *head = ct_get_first(seq); ct_get_idx()
72 while (pos && (head = ct_get_next(seq, head))) ct_get_idx()
77 static void *ct_seq_start(struct seq_file *seq, loff_t *pos) __acquires()
81 return ct_get_idx(seq, *pos); __acquires()
221 static struct hlist_node *ct_expect_get_first(struct seq_file *seq) ct_expect_get_first() argument
223 struct net *net = seq_file_net(seq); ct_expect_get_first()
224 struct ct_expect_iter_state *st = seq->private; ct_expect_get_first()
236 static struct hlist_node *ct_expect_get_next(struct seq_file *seq, ct_expect_get_next() argument
239 struct net *net = seq_file_net(seq); ct_expect_get_next()
240 struct ct_expect_iter_state *st = seq->private; ct_expect_get_next()
252 static struct hlist_node *ct_expect_get_idx(struct seq_file *seq, loff_t pos) ct_expect_get_idx() argument
254 struct hlist_node *head = ct_expect_get_first(seq); ct_expect_get_idx()
257 while (pos && (head = ct_expect_get_next(seq, head))) ct_expect_get_idx()
262 static void *exp_seq_start(struct seq_file *seq, loff_t *pos) __acquires()
266 return ct_expect_get_idx(seq, *pos); __acquires()
269 static void *exp_seq_next(struct seq_file *seq, void *v, loff_t *pos) exp_seq_next() argument
272 return ct_expect_get_next(seq, v); exp_seq_next()
275 static void exp_seq_stop(struct seq_file *seq, void *v) __releases()
329 static void *ct_cpu_seq_start(struct seq_file *seq, loff_t *pos) ct_cpu_seq_start() argument
331 struct net *net = seq_file_net(seq); ct_cpu_seq_start()
347 static void *ct_cpu_seq_next(struct seq_file *seq, void *v, loff_t *pos) ct_cpu_seq_next() argument
349 struct net *net = seq_file_net(seq); ct_cpu_seq_next()
362 static void ct_cpu_seq_stop(struct seq_file *seq, void *v) ct_cpu_seq_stop() argument
366 static int ct_cpu_seq_show(struct seq_file *seq, void *v) ct_cpu_seq_show() argument
368 struct net *net = seq_file_net(seq); ct_cpu_seq_show()
373 seq_printf(seq, "entries searched found new invalid ignore delete delete_list insert insert_failed drop early_drop icmp_error expect_new expect_create expect_delete search_restart\n"); ct_cpu_seq_show()
377 seq_printf(seq, "%08x %08x %08x %08x %08x %08x %08x %08x " ct_cpu_seq_show()
H A Dipt_SYNPROXY.c95 nth->seq = htonl(__cookie_v4_init_sequence(iph, th, &mss)); synproxy_send_client_synack()
96 nth->ack_seq = htonl(ntohl(th->seq) + 1); synproxy_send_client_synack()
136 nth->seq = htonl(recv_seq - 1); synproxy_send_server_syn()
181 nth->seq = htonl(ntohl(th->ack_seq)); synproxy_send_server_ack()
182 nth->ack_seq = htonl(ntohl(th->seq) + 1); synproxy_send_server_ack()
219 nth->seq = htonl(ntohl(th->seq) + 1); synproxy_send_client_ack()
294 synproxy_recv_client_ack(snet, skb, th, &opts, ntohl(th->seq)); synproxy_tg4()
335 ntohl(th->seq) + 1); ipv4_synproxy_hook()
363 ntohl(th->seq) + 1)) ipv4_synproxy_hook()
390 nf_ct_seqadj_init(ct, ctinfo, synproxy->isn - ntohl(th->seq)); ipv4_synproxy_hook()
/linux-4.1.27/arch/sparc/include/uapi/asm/
H A Dipcbuf.h10 * - 32-bit seq
27 unsigned short seq; member in struct:ipc64_perm
/linux-4.1.27/include/linux/
H A Dseq_file_net.h21 static inline struct net *seq_file_net(struct seq_file *seq) seq_file_net() argument
24 return ((struct seq_net_private *)seq->private)->net; seq_file_net()
H A Dipc.h22 unsigned long seq; member in struct:kern_ipc_perm
H A Dseqlock.h22 * seq = read_seqbegin(&foo);
24 * } while (read_seqretry(&foo, seq));
94 * __read_seqcount_begin - begin a seq-read critical section (without barrier)
136 * raw_read_seqcount_begin - start seq-read critical section w/o lockdep
152 * read_seqcount_begin - begin a seq-read critical section
167 * raw_seqcount_begin - begin a seq-read critical section
188 * __read_seqcount_retry - end a seq-read critical section (without barrier)
207 * read_seqcount_retry - end a seq-read critical section
269 * write_seqcount_invalidate - invalidate in-progress read-side seq operations
272 * After write_seqcount_invalidate, no read-side seq operations will complete
396 * @seq : sequence number to be checked
401 * N.B. seq must be initialized to an even number to begin with.
403 static inline void read_seqbegin_or_lock(seqlock_t *lock, int *seq) read_seqbegin_or_lock() argument
405 if (!(*seq & 1)) /* Even */ read_seqbegin_or_lock()
406 *seq = read_seqbegin(lock); read_seqbegin_or_lock()
411 static inline int need_seqretry(seqlock_t *lock, int seq) need_seqretry() argument
413 return !(seq & 1) && read_seqretry(lock, seq); need_seqretry()
416 static inline void done_seqretry(seqlock_t *lock, int seq) done_seqretry() argument
418 if (seq & 1) done_seqretry()
460 read_seqbegin_or_lock_irqsave(seqlock_t *lock, int *seq) read_seqbegin_or_lock_irqsave() argument
464 if (!(*seq & 1)) /* Even */ read_seqbegin_or_lock_irqsave()
465 *seq = read_seqbegin(lock); read_seqbegin_or_lock_irqsave()
473 done_seqretry_irqrestore(seqlock_t *lock, int seq, unsigned long flags) done_seqretry_irqrestore() argument
475 if (seq & 1) done_seqretry_irqrestore()
H A Du64_stats_sync.h66 seqcount_t seq; member in struct:u64_stats_sync
72 # define u64_stats_init(syncp) seqcount_init(syncp.seq)
80 write_seqcount_begin(&syncp->seq); u64_stats_update_begin()
87 write_seqcount_end(&syncp->seq); u64_stats_update_end()
94 return read_seqcount_begin(&syncp->seq); u64_stats_fetch_begin()
107 return read_seqcount_retry(&syncp->seq, start); u64_stats_fetch_retry()
125 return read_seqcount_begin(&syncp->seq); u64_stats_fetch_begin_irq()
138 return read_seqcount_retry(&syncp->seq, start); u64_stats_fetch_retry_irq()
H A Dtrace_seq.h15 struct seq_buf seq; member in struct:trace_seq
22 seq_buf_init(&s->seq, s->buffer, PAGE_SIZE); trace_seq_init()
34 * Use this instead of @s->seq.len if you need to pass the amount
36 * The @s->seq.len on overflow is bigger than the buffer size and
41 return seq_buf_used(&s->seq); trace_seq_used()
56 return s->buffer + seq_buf_used(&s->seq); trace_seq_buffer_ptr()
68 return s->full || seq_buf_has_overflowed(&s->seq); trace_seq_has_overflowed()
H A Dfs_struct.h11 seqcount_t seq; member in struct:fs_struct
H A Dinet_diag.h33 u32 pid, u32 seq, u16 nlmsg_flags,
/linux-4.1.27/arch/s390/include/uapi/asm/
H A Dipcbuf.h10 * - 32-bit mode_t and seq
23 unsigned short seq; member in struct:ipc64_perm
/linux-4.1.27/kernel/sched/
H A Dstats.c15 static int show_schedstat(struct seq_file *seq, void *v) show_schedstat() argument
20 seq_printf(seq, "version %d\n", SCHEDSTAT_VERSION); show_schedstat()
21 seq_printf(seq, "timestamp %lu\n", jiffies); show_schedstat()
32 seq_printf(seq, show_schedstat()
40 seq_printf(seq, "\n"); show_schedstat()
48 seq_printf(seq, "domain%d %*pb", dcount++, for_each_domain()
52 seq_printf(seq, " %u %u %u %u %u %u %u %u", for_each_domain()
62 seq_printf(seq, for_each_domain()
/linux-4.1.27/kernel/trace/
H A Dtrace_seq.c30 #define TRACE_SEQ_BUF_LEFT(s) seq_buf_buffer_left(&(s)->seq)
33 #define TRACE_SEQ_BUF_USED(s) seq_buf_used(&(s)->seq)
40 if (unlikely(!s->seq.size)) __trace_seq_init()
59 ret = seq_buf_print_seq(m, &s->seq); trace_print_seq()
85 unsigned int save_len = s->seq.len; trace_seq_printf()
94 seq_buf_vprintf(&s->seq, fmt, ap); trace_seq_printf()
98 if (unlikely(seq_buf_has_overflowed(&s->seq))) { trace_seq_printf()
99 s->seq.len = save_len; trace_seq_printf()
116 unsigned int save_len = s->seq.len; trace_seq_bitmask()
123 seq_buf_printf(&s->seq, "%*pb", nmaskbits, maskp); trace_seq_bitmask()
125 if (unlikely(seq_buf_has_overflowed(&s->seq))) { trace_seq_bitmask()
126 s->seq.len = save_len; trace_seq_bitmask()
145 unsigned int save_len = s->seq.len; trace_seq_vprintf()
152 seq_buf_vprintf(&s->seq, fmt, args); trace_seq_vprintf()
155 if (unlikely(seq_buf_has_overflowed(&s->seq))) { trace_seq_vprintf()
156 s->seq.len = save_len; trace_seq_vprintf()
179 unsigned int save_len = s->seq.len; trace_seq_bprintf()
186 seq_buf_bprintf(&s->seq, fmt, binary); trace_seq_bprintf()
189 if (unlikely(seq_buf_has_overflowed(&s->seq))) { trace_seq_bprintf()
190 s->seq.len = save_len; trace_seq_bprintf()
221 seq_buf_putmem(&s->seq, str, len); trace_seq_puts()
247 seq_buf_putc(&s->seq, c); trace_seq_putc()
273 seq_buf_putmem(&s->seq, mem, len); trace_seq_putmem()
290 unsigned int save_len = s->seq.len; trace_seq_putmem_hex()
304 seq_buf_putmem_hex(&s->seq, mem, len); trace_seq_putmem_hex()
306 if (unlikely(seq_buf_has_overflowed(&s->seq))) { trace_seq_putmem_hex()
307 s->seq.len = save_len; trace_seq_putmem_hex()
328 unsigned int save_len = s->seq.len; trace_seq_path()
340 seq_buf_path(&s->seq, path, "\n"); trace_seq_path()
342 if (unlikely(seq_buf_has_overflowed(&s->seq))) { trace_seq_path()
343 s->seq.len = save_len; trace_seq_path()
375 return seq_buf_to_user(&s->seq, ubuf, cnt); trace_seq_to_user()
H A Dtrace_output.c25 struct trace_seq *s = &iter->seq; trace_print_bputs_msg_only()
38 struct trace_seq *s = &iter->seq; trace_print_bprintk_msg_only()
51 struct trace_seq *s = &iter->seq; trace_print_printk_msg_only()
229 struct trace_seq *s = &iter->seq; ftrace_raw_output_prep()
251 struct trace_seq *s = &iter->seq; ftrace_output_raw()
423 * @s: trace seq struct to write to
525 struct trace_seq *s = &iter->seq; lat_print_timestamp()
564 struct trace_seq *s = &iter->seq; trace_print_context()
594 struct trace_seq *s = &iter->seq; trace_print_lat_context()
807 trace_seq_printf(&iter->seq, "type: %d\n", iter->ent->type); trace_nop_print()
809 return trace_handle_return(&iter->seq); trace_nop_print()
817 struct trace_seq *s = &iter->seq; trace_fn_trace()
840 trace_seq_printf(&iter->seq, "%lx %lx\n", trace_fn_raw()
844 return trace_handle_return(&iter->seq); trace_fn_raw()
851 struct trace_seq *s = &iter->seq; trace_fn_hex()
865 struct trace_seq *s = &iter->seq; trace_fn_bin()
901 trace_seq_printf(&iter->seq, trace_ctxwake_print()
911 return trace_handle_return(&iter->seq); trace_ctxwake_print()
936 trace_seq_printf(&iter->seq, "%d %d %c %d %d %d %c\n", trace_ctxwake_raw()
945 return trace_handle_return(&iter->seq); trace_ctxwake_raw()
964 struct trace_seq *s = &iter->seq; trace_ctxwake_hex()
1000 struct trace_seq *s = &iter->seq; trace_ctxwake_bin()
1045 struct trace_seq *s = &iter->seq; trace_stack_print()
1081 struct trace_seq *s = &iter->seq; trace_user_stack_print()
1106 struct trace_seq *s = &iter->seq; trace_bputs_print()
1124 struct trace_seq *s = &iter->seq; trace_bputs_raw()
1150 struct trace_seq *s = &iter->seq; trace_bprint_print()
1168 struct trace_seq *s = &iter->seq; trace_bprint_raw()
1193 struct trace_seq *s = &iter->seq; trace_print_print()
1210 trace_seq_printf(&iter->seq, "# %lx %s", field->ip, field->buf); trace_print_raw()
1212 return trace_handle_return(&iter->seq); trace_print_raw()
H A Dtrace_kdb.c42 memset(&iter.seq, 0,
44 offsetof(struct trace_iterator, seq));
70 trace_printk_seq(&iter.seq);
/linux-4.1.27/net/sunrpc/
H A Dstats.c34 static int rpc_proc_show(struct seq_file *seq, void *v) { rpc_proc_show() argument
35 const struct rpc_stat *statp = seq->private; rpc_proc_show()
39 seq_printf(seq, rpc_proc_show()
45 seq_printf(seq, rpc_proc_show()
55 seq_printf(seq, "proc%u %u", rpc_proc_show()
58 seq_printf(seq, " %u", rpc_proc_show()
60 seq_putc(seq, '\n'); rpc_proc_show()
81 void svc_seq_show(struct seq_file *seq, const struct svc_stat *statp) { svc_seq_show() argument
87 seq_printf(seq, svc_seq_show()
93 seq_printf(seq, svc_seq_show()
104 seq_printf(seq, "proc%d %u", i, vers->vs_nproc); svc_seq_show()
106 seq_printf(seq, " %u", proc->pc_count); svc_seq_show()
107 seq_putc(seq, '\n'); svc_seq_show()
192 static void _print_name(struct seq_file *seq, unsigned int op, _print_name() argument
196 seq_printf(seq, "\t%12s: ", procs[op].p_name); _print_name()
198 seq_printf(seq, "\t NULL: "); _print_name()
200 seq_printf(seq, "\t%12u: ", op); _print_name()
203 void rpc_print_iostats(struct seq_file *seq, struct rpc_clnt *clnt) rpc_print_iostats() argument
212 seq_printf(seq, "\tRPC iostats version: %s ", RPC_IOSTATS_VERS); rpc_print_iostats()
213 seq_printf(seq, "p/v: %u/%u (%s)\n", rpc_print_iostats()
219 xprt->ops->print_stats(xprt, seq); rpc_print_iostats()
222 seq_printf(seq, "\tper-op statistics\n"); rpc_print_iostats()
225 _print_name(seq, op, clnt->cl_procinfo); rpc_print_iostats()
226 seq_printf(seq, "%lu %lu %lu %Lu %Lu %Lu %Lu %Lu\n", rpc_print_iostats()
/linux-4.1.27/net/tipc/
H A Dname_table.c476 struct name_seq *seq = nametbl_find_seq(net, type); tipc_nametbl_insert_publ() local
486 if (!seq) tipc_nametbl_insert_publ()
487 seq = tipc_nameseq_create(type, &tn->nametbl->seq_hlist[index]); tipc_nametbl_insert_publ()
488 if (!seq) tipc_nametbl_insert_publ()
491 spin_lock_bh(&seq->lock); tipc_nametbl_insert_publ()
492 publ = tipc_nameseq_insert_publ(net, seq, type, lower, upper, tipc_nametbl_insert_publ()
494 spin_unlock_bh(&seq->lock); tipc_nametbl_insert_publ()
503 struct name_seq *seq = nametbl_find_seq(net, type); tipc_nametbl_remove_publ() local
505 if (!seq) tipc_nametbl_remove_publ()
508 spin_lock_bh(&seq->lock); tipc_nametbl_remove_publ()
509 publ = tipc_nameseq_remove_publ(net, seq, lower, node, ref, key); tipc_nametbl_remove_publ()
510 if (!seq->first_free && list_empty(&seq->subscriptions)) { tipc_nametbl_remove_publ()
511 hlist_del_init_rcu(&seq->ns_list); tipc_nametbl_remove_publ()
512 kfree(seq->sseqs); tipc_nametbl_remove_publ()
513 spin_unlock_bh(&seq->lock); tipc_nametbl_remove_publ()
514 kfree_rcu(seq, rcu); tipc_nametbl_remove_publ()
517 spin_unlock_bh(&seq->lock); tipc_nametbl_remove_publ()
541 struct name_seq *seq; tipc_nametbl_translate() local
549 seq = nametbl_find_seq(net, type); tipc_nametbl_translate()
550 if (unlikely(!seq)) tipc_nametbl_translate()
552 spin_lock_bh(&seq->lock); tipc_nametbl_translate()
553 sseq = nameseq_find_subseq(seq, instance); tipc_nametbl_translate()
603 spin_unlock_bh(&seq->lock); tipc_nametbl_translate()
625 struct name_seq *seq; tipc_nametbl_mc_translate() local
632 seq = nametbl_find_seq(net, type); tipc_nametbl_mc_translate()
633 if (!seq) tipc_nametbl_mc_translate()
636 spin_lock_bh(&seq->lock); tipc_nametbl_mc_translate()
637 sseq = seq->sseqs + nameseq_locate_subseq(seq, lower); tipc_nametbl_mc_translate()
638 sseq_stop = seq->sseqs + seq->first_free; tipc_nametbl_mc_translate()
654 spin_unlock_bh(&seq->lock); tipc_nametbl_mc_translate()
734 u32 type = s->seq.type; tipc_nametbl_subscribe()
736 struct name_seq *seq; tipc_nametbl_subscribe() local
739 seq = nametbl_find_seq(s->net, type); tipc_nametbl_subscribe()
740 if (!seq) tipc_nametbl_subscribe()
741 seq = tipc_nameseq_create(type, &tn->nametbl->seq_hlist[index]); tipc_nametbl_subscribe()
742 if (seq) { tipc_nametbl_subscribe()
743 spin_lock_bh(&seq->lock); tipc_nametbl_subscribe()
744 tipc_nameseq_subscribe(seq, s); tipc_nametbl_subscribe()
745 spin_unlock_bh(&seq->lock); tipc_nametbl_subscribe()
748 s->seq.type, s->seq.lower, s->seq.upper); tipc_nametbl_subscribe()
759 struct name_seq *seq; tipc_nametbl_unsubscribe() local
762 seq = nametbl_find_seq(s->net, s->seq.type); tipc_nametbl_unsubscribe()
763 if (seq != NULL) { tipc_nametbl_unsubscribe()
764 spin_lock_bh(&seq->lock); tipc_nametbl_unsubscribe()
766 if (!seq->first_free && list_empty(&seq->subscriptions)) { tipc_nametbl_unsubscribe()
767 hlist_del_init_rcu(&seq->ns_list); tipc_nametbl_unsubscribe()
768 kfree(seq->sseqs); tipc_nametbl_unsubscribe()
769 spin_unlock_bh(&seq->lock); tipc_nametbl_unsubscribe()
770 kfree_rcu(seq, rcu); tipc_nametbl_unsubscribe()
772 spin_unlock_bh(&seq->lock); tipc_nametbl_unsubscribe()
804 static void tipc_purge_publications(struct net *net, struct name_seq *seq) tipc_purge_publications() argument
810 spin_lock_bh(&seq->lock); tipc_purge_publications()
811 sseq = seq->sseqs; tipc_purge_publications()
814 tipc_nameseq_remove_publ(net, seq, publ->lower, publ->node, tipc_purge_publications()
818 hlist_del_init_rcu(&seq->ns_list); tipc_purge_publications()
819 kfree(seq->sseqs); tipc_purge_publications()
820 spin_unlock_bh(&seq->lock); tipc_purge_publications()
822 kfree_rcu(seq, rcu); tipc_purge_publications()
828 struct name_seq *seq; tipc_nametbl_stop() local
841 hlist_for_each_entry_rcu(seq, seq_head, ns_list) { hlist_for_each_entry_rcu()
842 tipc_purge_publications(net, seq); hlist_for_each_entry_rcu()
853 struct name_seq *seq, __tipc_nl_add_nametable_publ()
875 hdr = genlmsg_put(msg->skb, msg->portid, msg->seq, __tipc_nl_add_nametable_publ()
889 if (nla_put_u32(msg->skb, TIPC_NLA_PUBL_TYPE, seq->type)) __tipc_nl_add_nametable_publ()
922 static int __tipc_nl_subseq_list(struct tipc_nl_msg *msg, struct name_seq *seq, __tipc_nl_subseq_list() argument
930 sseq_start = nameseq_find_subseq(seq, *last_lower); __tipc_nl_subseq_list()
934 sseq_start = seq->sseqs; __tipc_nl_subseq_list()
937 for (sseq = sseq_start; sseq != &seq->sseqs[seq->first_free]; sseq++) { __tipc_nl_subseq_list()
938 err = __tipc_nl_add_nametable_publ(msg, seq, sseq, last_publ); __tipc_nl_subseq_list()
954 struct name_seq *seq = NULL; tipc_nl_seq_list() local
967 seq = nametbl_find_seq(net, *last_type); tipc_nl_seq_list()
968 if (!seq) tipc_nl_seq_list()
971 hlist_for_each_entry_rcu(seq, seq_head, ns_list) tipc_nl_seq_list()
973 if (!seq) tipc_nl_seq_list()
977 hlist_for_each_entry_from_rcu(seq, ns_list) { hlist_for_each_entry_from_rcu()
978 spin_lock_bh(&seq->lock); hlist_for_each_entry_from_rcu()
979 err = __tipc_nl_subseq_list(msg, seq, last_lower, hlist_for_each_entry_from_rcu()
983 *last_type = seq->type; hlist_for_each_entry_from_rcu()
984 spin_unlock_bh(&seq->lock); hlist_for_each_entry_from_rcu()
987 spin_unlock_bh(&seq->lock); hlist_for_each_entry_from_rcu()
1009 msg.seq = cb->nlh->nlmsg_seq; tipc_nl_name_table_dump()
1016 /* We never set seq or call nl_dump_check_consistent() this tipc_nl_name_table_dump()
852 __tipc_nl_add_nametable_publ(struct tipc_nl_msg *msg, struct name_seq *seq, struct sub_seq *sseq, u32 *last_publ) __tipc_nl_add_nametable_publ() argument
H A Dsubscr.c92 if (found_lower < sub->seq.lower) tipc_subscr_overlap()
93 found_lower = sub->seq.lower; tipc_subscr_overlap()
94 if (found_upper > sub->seq.upper) tipc_subscr_overlap()
95 found_upper = sub->seq.upper; tipc_subscr_overlap()
142 subscr_send_event(sub, sub->evt.s.seq.lower, sub->evt.s.seq.upper, subscr_timeout()
264 sub->seq.type = htohl(s->seq.type, swap); subscr_subscribe()
265 sub->seq.lower = htohl(s->seq.lower, swap); subscr_subscribe()
266 sub->seq.upper = htohl(s->seq.upper, swap); subscr_subscribe()
271 (sub->seq.lower > sub->seq.upper)) { subscr_subscribe()
/linux-4.1.27/net/wireless/
H A Dwext-proc.c29 static void wireless_seq_printf_stats(struct seq_file *seq, wireless_seq_printf_stats() argument
49 seq_printf(seq, "%6s: %04x %3d%c %3d%c %3d%c %6d %6d %6d " wireless_seq_printf_stats()
75 static int wireless_dev_seq_show(struct seq_file *seq, void *v) wireless_dev_seq_show() argument
80 seq_printf(seq, "Inter-| sta-| Quality | Discarded " wireless_dev_seq_show()
86 wireless_seq_printf_stats(seq, v); wireless_dev_seq_show()
90 static void *wireless_dev_seq_start(struct seq_file *seq, loff_t *pos) wireless_dev_seq_start() argument
92 struct net *net = seq_file_net(seq); wireless_dev_seq_start()
107 static void *wireless_dev_seq_next(struct seq_file *seq, void *v, loff_t *pos) wireless_dev_seq_next() argument
109 struct net *net = seq_file_net(seq); wireless_dev_seq_next()
117 static void wireless_dev_seq_stop(struct seq_file *seq, void *v) wireless_dev_seq_stop() argument
H A Dlib80211_crypt_ccmp.c149 * SC with bits 4..15 (seq#) masked to zero ccmp_init_blocks()
265 * deal with seq counter wrapping correctly.
380 static int lib80211_ccmp_set_key(void *key, int len, u8 * seq, void *priv) lib80211_ccmp_set_key() argument
393 if (seq) { lib80211_ccmp_set_key()
394 data->rx_pn[0] = seq[5]; lib80211_ccmp_set_key()
395 data->rx_pn[1] = seq[4]; lib80211_ccmp_set_key()
396 data->rx_pn[2] = seq[3]; lib80211_ccmp_set_key()
397 data->rx_pn[3] = seq[2]; lib80211_ccmp_set_key()
398 data->rx_pn[4] = seq[1]; lib80211_ccmp_set_key()
399 data->rx_pn[5] = seq[0]; lib80211_ccmp_set_key()
410 static int lib80211_ccmp_get_key(void *key, int len, u8 * seq, void *priv) lib80211_ccmp_get_key() argument
421 if (seq) { lib80211_ccmp_get_key()
422 seq[0] = data->tx_pn[5]; lib80211_ccmp_get_key()
423 seq[1] = data->tx_pn[4]; lib80211_ccmp_get_key()
424 seq[2] = data->tx_pn[3]; lib80211_ccmp_get_key()
425 seq[3] = data->tx_pn[2]; lib80211_ccmp_get_key()
426 seq[4] = data->tx_pn[1]; lib80211_ccmp_get_key()
427 seq[5] = data->tx_pn[0]; lib80211_ccmp_get_key()
H A Dlib80211_crypt_tkip.c391 * deal with seq counter wrapping correctly.
644 static int lib80211_tkip_set_key(void *key, int len, u8 * seq, void *priv) lib80211_tkip_set_key() argument
664 if (seq) { lib80211_tkip_set_key()
665 tkey->rx_iv32 = (seq[5] << 24) | (seq[4] << 16) | lib80211_tkip_set_key()
666 (seq[3] << 8) | seq[2]; lib80211_tkip_set_key()
667 tkey->rx_iv16 = (seq[1] << 8) | seq[0]; lib80211_tkip_set_key()
677 static int lib80211_tkip_get_key(void *key, int len, u8 * seq, void *priv) lib80211_tkip_get_key() argument
688 if (seq) { lib80211_tkip_get_key()
695 seq[0] = tkey->tx_iv16; lib80211_tkip_get_key()
696 seq[1] = tkey->tx_iv16 >> 8; lib80211_tkip_get_key()
697 seq[2] = tkey->tx_iv32; lib80211_tkip_get_key()
698 seq[3] = tkey->tx_iv32 >> 8; lib80211_tkip_get_key()
699 seq[4] = tkey->tx_iv32 >> 16; lib80211_tkip_get_key()
700 seq[5] = tkey->tx_iv32 >> 24; lib80211_tkip_get_key()
/linux-4.1.27/drivers/staging/unisys/visorchannel/
H A Dvisorchannel_funcs.c528 sigqueue_debug(struct signal_queue_header *q, int which, struct seq_file *seq) sigqueue_debug() argument
530 seq_printf(seq, "Signal Queue #%d\n", which); sigqueue_debug()
531 seq_printf(seq, " VersionId = %lu\n", (ulong)q->version); sigqueue_debug()
532 seq_printf(seq, " Type = %lu\n", (ulong)q->chtype); sigqueue_debug()
533 seq_printf(seq, " oSignalBase = %llu\n", sigqueue_debug()
535 seq_printf(seq, " SignalSize = %lu\n", (ulong)q->signal_size); sigqueue_debug()
536 seq_printf(seq, " MaxSignalSlots = %lu\n", sigqueue_debug()
538 seq_printf(seq, " MaxSignals = %lu\n", (ulong)q->max_signals); sigqueue_debug()
539 seq_printf(seq, " FeatureFlags = %-16.16Lx\n", sigqueue_debug()
541 seq_printf(seq, " NumSignalsSent = %llu\n", sigqueue_debug()
543 seq_printf(seq, " NumSignalsReceived = %llu\n", sigqueue_debug()
545 seq_printf(seq, " NumOverflows = %llu\n", sigqueue_debug()
547 seq_printf(seq, " Head = %lu\n", (ulong)q->head); sigqueue_debug()
548 seq_printf(seq, " Tail = %lu\n", (ulong)q->tail); sigqueue_debug()
553 struct seq_file *seq, u32 off) visorchannel_debug()
574 seq_printf(seq, visorchannel_debug()
579 seq_puts(seq, "(following data may be stale)\n"); visorchannel_debug()
585 seq_printf(seq, "--- Begin channel @0x%-16.16Lx for 0x%lx bytes (region=0x%lx bytes) ---\n", visorchannel_debug()
587 seq_printf(seq, "Type = %pUL\n", &phdr->chtype); visorchannel_debug()
588 seq_printf(seq, "ZoneGuid = %pUL\n", &phdr->zone_uuid); visorchannel_debug()
589 seq_printf(seq, "Signature = 0x%-16.16Lx\n", visorchannel_debug()
591 seq_printf(seq, "LegacyState = %lu\n", (ulong)phdr->legacy_state); visorchannel_debug()
592 seq_printf(seq, "SrvState = %lu\n", (ulong)phdr->srv_state); visorchannel_debug()
593 seq_printf(seq, "CliStateBoot = %lu\n", (ulong)phdr->cli_state_boot); visorchannel_debug()
594 seq_printf(seq, "CliStateOS = %lu\n", (ulong)phdr->cli_state_os); visorchannel_debug()
595 seq_printf(seq, "HeaderSize = %lu\n", (ulong)phdr->header_size); visorchannel_debug()
596 seq_printf(seq, "Size = %llu\n", (long long)phdr->size); visorchannel_debug()
597 seq_printf(seq, "Features = 0x%-16.16llx\n", visorchannel_debug()
599 seq_printf(seq, "PartitionHandle = 0x%-16.16llx\n", visorchannel_debug()
601 seq_printf(seq, "Handle = 0x%-16.16llx\n", visorchannel_debug()
603 seq_printf(seq, "VersionId = %lu\n", (ulong)phdr->version_id); visorchannel_debug()
604 seq_printf(seq, "oChannelSpace = %llu\n", visorchannel_debug()
618 seq_printf(seq, visorchannel_debug()
623 sigqueue_debug(&q, i, seq); visorchannel_debug()
625 seq_printf(seq, "--- End channel @0x%-16.16Lx for 0x%lx bytes ---\n", visorchannel_debug()
632 int off, int len, struct seq_file *seq) visorchannel_dump_section()
650 seq_printf(seq, "channel %s:\n", s); visorchannel_dump_section()
655 seq_printf(seq, "%s\n", fmtbuf); visorchannel_dump_section()
552 visorchannel_debug(struct visorchannel *channel, int num_queues, struct seq_file *seq, u32 off) visorchannel_debug() argument
631 visorchannel_dump_section(struct visorchannel *chan, char *s, int off, int len, struct seq_file *seq) visorchannel_dump_section() argument
/linux-4.1.27/net/netfilter/ipvs/
H A Dip_vs_app.c291 * Fixes th->seq based on ip_vs_seq info.
295 __u32 seq = ntohl(th->seq); vs_fix_seq() local
298 * Adjust seq with delta-offset for all packets after vs_fix_seq()
299 * the most recent resized pkt seq and with previous_delta offset vs_fix_seq()
300 * for all packets before most recent resized pkt seq. vs_fix_seq()
303 if(after(seq, vseq->init_seq)) { vs_fix_seq()
304 th->seq = htonl(seq + vseq->delta); vs_fix_seq()
305 IP_VS_DBG(9, "%s(): added delta (%d) to seq\n", vs_fix_seq()
308 th->seq = htonl(seq + vseq->previous_delta); vs_fix_seq()
309 IP_VS_DBG(9, "%s(): added previous_delta (%d) to seq\n", vs_fix_seq()
352 unsigned int flag, __u32 seq, int diff) vs_seq_update()
356 if (!(cp->flags & flag) || after(seq, vseq->init_seq)) { vs_seq_update()
359 vseq->init_seq = seq; vs_seq_update()
371 __u32 seq; app_tcp_pkt_out() local
379 * Remember seq number in case this pkt gets resized app_tcp_pkt_out()
381 seq = ntohl(th->seq); app_tcp_pkt_out()
384 * Fix seq stuff if flagged as so. app_tcp_pkt_out()
401 * Update ip_vs seq stuff if len has changed. app_tcp_pkt_out()
405 IP_VS_CONN_F_OUT_SEQ, seq, diff); app_tcp_pkt_out()
446 __u32 seq; app_tcp_pkt_in() local
454 * Remember seq number in case this pkt gets resized app_tcp_pkt_in()
456 seq = ntohl(th->seq); app_tcp_pkt_in()
459 * Fix seq stuff if flagged as so. app_tcp_pkt_in()
476 * Update ip_vs seq stuff if len has changed. app_tcp_pkt_in()
480 IP_VS_CONN_F_IN_SEQ, seq, diff); app_tcp_pkt_in()
534 static void *ip_vs_app_seq_start(struct seq_file *seq, loff_t *pos) ip_vs_app_seq_start() argument
536 struct net *net = seq_file_net(seq); ip_vs_app_seq_start()
544 static void *ip_vs_app_seq_next(struct seq_file *seq, void *v, loff_t *pos) ip_vs_app_seq_next() argument
548 struct net *net = seq_file_net(seq); ip_vs_app_seq_next()
571 static void ip_vs_app_seq_stop(struct seq_file *seq, void *v) ip_vs_app_seq_stop() argument
576 static int ip_vs_app_seq_show(struct seq_file *seq, void *v) ip_vs_app_seq_show() argument
579 seq_puts(seq, "prot port usecnt name\n"); ip_vs_app_seq_show()
583 seq_printf(seq, "%-3s %-7u %-6d %-17s\n", ip_vs_app_seq_show()
351 vs_seq_update(struct ip_vs_conn *cp, struct ip_vs_seq *vseq, unsigned int flag, __u32 seq, int diff) vs_seq_update() argument
/linux-4.1.27/net/mac80211/
H A Dkey.c376 size_t seq_len, const u8 *seq, ieee80211_key_alloc()
408 if (seq) { ieee80211_key_alloc()
411 get_unaligned_le32(&seq[2]); ieee80211_key_alloc()
413 get_unaligned_le16(seq); ieee80211_key_alloc()
421 if (seq) { ieee80211_key_alloc()
425 seq[IEEE80211_CCMP_PN_LEN - j - 1]; ieee80211_key_alloc()
442 for (i = 0; seq && i < IEEE80211_NUM_TIDS + 1; i++) ieee80211_key_alloc()
445 seq[IEEE80211_CCMP_256_PN_LEN - j - 1]; ieee80211_key_alloc()
464 if (seq) ieee80211_key_alloc()
467 seq[IEEE80211_CMAC_PN_LEN - j - 1]; ieee80211_key_alloc()
484 if (seq) ieee80211_key_alloc()
487 seq[IEEE80211_GMAC_PN_LEN - j - 1]; ieee80211_key_alloc()
503 for (i = 0; seq && i < IEEE80211_NUM_TIDS + 1; i++) ieee80211_key_alloc()
506 seq[IEEE80211_GCMP_PN_LEN - j - 1]; ieee80211_key_alloc()
528 seq[len - j - 1]; ieee80211_key_alloc()
885 struct ieee80211_key_seq *seq) ieee80211_get_key_tx_seq()
897 seq->tkip.iv32 = key->u.tkip.tx.iv32; ieee80211_get_key_tx_seq()
898 seq->tkip.iv16 = key->u.tkip.tx.iv16; ieee80211_get_key_tx_seq()
903 seq->ccmp.pn[5] = pn64; ieee80211_get_key_tx_seq()
904 seq->ccmp.pn[4] = pn64 >> 8; ieee80211_get_key_tx_seq()
905 seq->ccmp.pn[3] = pn64 >> 16; ieee80211_get_key_tx_seq()
906 seq->ccmp.pn[2] = pn64 >> 24; ieee80211_get_key_tx_seq()
907 seq->ccmp.pn[1] = pn64 >> 32; ieee80211_get_key_tx_seq()
908 seq->ccmp.pn[0] = pn64 >> 40; ieee80211_get_key_tx_seq()
913 seq->ccmp.pn[5] = pn64; ieee80211_get_key_tx_seq()
914 seq->ccmp.pn[4] = pn64 >> 8; ieee80211_get_key_tx_seq()
915 seq->ccmp.pn[3] = pn64 >> 16; ieee80211_get_key_tx_seq()
916 seq->ccmp.pn[2] = pn64 >> 24; ieee80211_get_key_tx_seq()
917 seq->ccmp.pn[1] = pn64 >> 32; ieee80211_get_key_tx_seq()
918 seq->ccmp.pn[0] = pn64 >> 40; ieee80211_get_key_tx_seq()
923 seq->ccmp.pn[5] = pn64; ieee80211_get_key_tx_seq()
924 seq->ccmp.pn[4] = pn64 >> 8; ieee80211_get_key_tx_seq()
925 seq->ccmp.pn[3] = pn64 >> 16; ieee80211_get_key_tx_seq()
926 seq->ccmp.pn[2] = pn64 >> 24; ieee80211_get_key_tx_seq()
927 seq->ccmp.pn[1] = pn64 >> 32; ieee80211_get_key_tx_seq()
928 seq->ccmp.pn[0] = pn64 >> 40; ieee80211_get_key_tx_seq()
933 seq->gcmp.pn[5] = pn64; ieee80211_get_key_tx_seq()
934 seq->gcmp.pn[4] = pn64 >> 8; ieee80211_get_key_tx_seq()
935 seq->gcmp.pn[3] = pn64 >> 16; ieee80211_get_key_tx_seq()
936 seq->gcmp.pn[2] = pn64 >> 24; ieee80211_get_key_tx_seq()
937 seq->gcmp.pn[1] = pn64 >> 32; ieee80211_get_key_tx_seq()
938 seq->gcmp.pn[0] = pn64 >> 40; ieee80211_get_key_tx_seq()
947 int tid, struct ieee80211_key_seq *seq) ieee80211_get_key_rx_seq()
958 seq->tkip.iv32 = key->u.tkip.rx[tid].iv32; ieee80211_get_key_rx_seq()
959 seq->tkip.iv16 = key->u.tkip.rx[tid].iv16; ieee80211_get_key_rx_seq()
969 memcpy(seq->ccmp.pn, pn, IEEE80211_CCMP_PN_LEN); ieee80211_get_key_rx_seq()
976 memcpy(seq->aes_cmac.pn, pn, IEEE80211_CMAC_PN_LEN); ieee80211_get_key_rx_seq()
983 memcpy(seq->aes_gmac.pn, pn, IEEE80211_GMAC_PN_LEN); ieee80211_get_key_rx_seq()
993 memcpy(seq->gcmp.pn, pn, IEEE80211_GCMP_PN_LEN); ieee80211_get_key_rx_seq()
1000 struct ieee80211_key_seq *seq) ieee80211_set_key_tx_seq()
1009 key->u.tkip.tx.iv32 = seq->tkip.iv32; ieee80211_set_key_tx_seq()
1010 key->u.tkip.tx.iv16 = seq->tkip.iv16; ieee80211_set_key_tx_seq()
1014 pn64 = (u64)seq->ccmp.pn[5] | ieee80211_set_key_tx_seq()
1015 ((u64)seq->ccmp.pn[4] << 8) | ieee80211_set_key_tx_seq()
1016 ((u64)seq->ccmp.pn[3] << 16) | ieee80211_set_key_tx_seq()
1017 ((u64)seq->ccmp.pn[2] << 24) | ieee80211_set_key_tx_seq()
1018 ((u64)seq->ccmp.pn[1] << 32) | ieee80211_set_key_tx_seq()
1019 ((u64)seq->ccmp.pn[0] << 40); ieee80211_set_key_tx_seq()
1024 pn64 = (u64)seq->aes_cmac.pn[5] | ieee80211_set_key_tx_seq()
1025 ((u64)seq->aes_cmac.pn[4] << 8) | ieee80211_set_key_tx_seq()
1026 ((u64)seq->aes_cmac.pn[3] << 16) | ieee80211_set_key_tx_seq()
1027 ((u64)seq->aes_cmac.pn[2] << 24) | ieee80211_set_key_tx_seq()
1028 ((u64)seq->aes_cmac.pn[1] << 32) | ieee80211_set_key_tx_seq()
1029 ((u64)seq->aes_cmac.pn[0] << 40); ieee80211_set_key_tx_seq()
1034 pn64 = (u64)seq->aes_gmac.pn[5] | ieee80211_set_key_tx_seq()
1035 ((u64)seq->aes_gmac.pn[4] << 8) | ieee80211_set_key_tx_seq()
1036 ((u64)seq->aes_gmac.pn[3] << 16) | ieee80211_set_key_tx_seq()
1037 ((u64)seq->aes_gmac.pn[2] << 24) | ieee80211_set_key_tx_seq()
1038 ((u64)seq->aes_gmac.pn[1] << 32) | ieee80211_set_key_tx_seq()
1039 ((u64)seq->aes_gmac.pn[0] << 40); ieee80211_set_key_tx_seq()
1044 pn64 = (u64)seq->gcmp.pn[5] | ieee80211_set_key_tx_seq()
1045 ((u64)seq->gcmp.pn[4] << 8) | ieee80211_set_key_tx_seq()
1046 ((u64)seq->gcmp.pn[3] << 16) | ieee80211_set_key_tx_seq()
1047 ((u64)seq->gcmp.pn[2] << 24) | ieee80211_set_key_tx_seq()
1048 ((u64)seq->gcmp.pn[1] << 32) | ieee80211_set_key_tx_seq()
1049 ((u64)seq->gcmp.pn[0] << 40); ieee80211_set_key_tx_seq()
1060 int tid, struct ieee80211_key_seq *seq) ieee80211_set_key_rx_seq()
1071 key->u.tkip.rx[tid].iv32 = seq->tkip.iv32; ieee80211_set_key_rx_seq()
1072 key->u.tkip.rx[tid].iv16 = seq->tkip.iv16; ieee80211_set_key_rx_seq()
1082 memcpy(pn, seq->ccmp.pn, IEEE80211_CCMP_PN_LEN); ieee80211_set_key_rx_seq()
1089 memcpy(pn, seq->aes_cmac.pn, IEEE80211_CMAC_PN_LEN); ieee80211_set_key_rx_seq()
1096 memcpy(pn, seq->aes_gmac.pn, IEEE80211_GMAC_PN_LEN); ieee80211_set_key_rx_seq()
1106 memcpy(pn, seq->gcmp.pn, IEEE80211_GCMP_PN_LEN); ieee80211_set_key_rx_seq()
374 ieee80211_key_alloc(u32 cipher, int idx, size_t key_len, const u8 *key_data, size_t seq_len, const u8 *seq, const struct ieee80211_cipher_scheme *cs) ieee80211_key_alloc() argument
884 ieee80211_get_key_tx_seq(struct ieee80211_key_conf *keyconf, struct ieee80211_key_seq *seq) ieee80211_get_key_tx_seq() argument
946 ieee80211_get_key_rx_seq(struct ieee80211_key_conf *keyconf, int tid, struct ieee80211_key_seq *seq) ieee80211_get_key_rx_seq() argument
999 ieee80211_set_key_tx_seq(struct ieee80211_key_conf *keyconf, struct ieee80211_key_seq *seq) ieee80211_set_key_tx_seq() argument
1059 ieee80211_set_key_rx_seq(struct ieee80211_key_conf *keyconf, int tid, struct ieee80211_key_seq *seq) ieee80211_set_key_rx_seq() argument
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/
H A Dsec_lproc.c76 static int sptlrpc_info_lprocfs_seq_show(struct seq_file *seq, void *v) sptlrpc_info_lprocfs_seq_show() argument
78 struct obd_device *dev = seq->private; sptlrpc_info_lprocfs_seq_show()
94 seq_printf(seq, "rpc flavor: %s\n", sptlrpc_info_lprocfs_seq_show()
96 seq_printf(seq, "bulk flavor: %s\n", sptlrpc_info_lprocfs_seq_show()
98 seq_printf(seq, "flags: %s\n", sptlrpc_info_lprocfs_seq_show()
100 seq_printf(seq, "id: %d\n", sec->ps_id); sptlrpc_info_lprocfs_seq_show()
101 seq_printf(seq, "refcount: %d\n", sptlrpc_info_lprocfs_seq_show()
103 seq_printf(seq, "nctx: %d\n", atomic_read(&sec->ps_nctx)); sptlrpc_info_lprocfs_seq_show()
104 seq_printf(seq, "gc internal %ld\n", sec->ps_gc_interval); sptlrpc_info_lprocfs_seq_show()
105 seq_printf(seq, "gc next %ld\n", sptlrpc_info_lprocfs_seq_show()
115 static int sptlrpc_ctxs_lprocfs_seq_show(struct seq_file *seq, void *v) sptlrpc_ctxs_lprocfs_seq_show() argument
117 struct obd_device *dev = seq->private; sptlrpc_ctxs_lprocfs_seq_show()
131 sec->ps_policy->sp_cops->display(sec, seq); sptlrpc_ctxs_lprocfs_seq_show()
/linux-4.1.27/fs/
H A Dfs_struct.c19 write_seqcount_begin(&fs->seq); set_fs_root()
22 write_seqcount_end(&fs->seq); set_fs_root()
38 write_seqcount_begin(&fs->seq); set_fs_pwd()
41 write_seqcount_end(&fs->seq); set_fs_pwd()
69 write_seqcount_begin(&fs->seq); do_each_thread()
72 write_seqcount_end(&fs->seq); do_each_thread()
118 seqcount_init(&fs->seq); copy_fs_struct()
164 .seq = SEQCNT_ZERO(init_fs.seq),
/linux-4.1.27/arch/x86/include/asm/
H A Dvgtod.h17 unsigned seq; member in struct:vsyscall_gtod_data
45 ret = ACCESS_ONCE(s->seq); gtod_read_begin()
58 return unlikely(s->seq != start); gtod_read_retry()
63 ++s->seq; gtod_write_begin()
70 ++s->seq; gtod_write_end()
/linux-4.1.27/include/net/
H A Draw.h48 static inline struct raw_iter_state *raw_seq_private(struct seq_file *seq) raw_seq_private() argument
50 return seq->private; raw_seq_private()
52 void *raw_seq_start(struct seq_file *seq, loff_t *pos);
53 void *raw_seq_next(struct seq_file *seq, void *v, loff_t *pos);
54 void raw_seq_stop(struct seq_file *seq, void *v);
H A Ddn_nsp.h175 static __inline__ void seq_add(__u16 *seq, __u16 off) seq_add() argument
177 (*seq) += off; seq_add()
178 (*seq) &= 0x0fff; seq_add()
189 static __inline__ int sendack(__u16 seq) sendack() argument
191 return (int)((seq & 0x1000) ? 0 : 1); sendack()
H A Dping.h96 void *ping_seq_start(struct seq_file *seq, loff_t *pos, sa_family_t family);
97 void *ping_seq_next(struct seq_file *seq, void *v, loff_t *pos);
98 void ping_seq_stop(struct seq_file *seq, void *v);
H A Dllc_conn.h50 u8 vS; /* seq# next in-seq I-PDU tx'd*/
51 u8 vR; /* seq# next in-seq I-PDU rx'd*/
/linux-4.1.27/drivers/dma-buf/
H A Dreservation.c93 write_seqcount_begin(&obj->seq); reservation_object_add_shared_inplace()
104 write_seqcount_end(&obj->seq); reservation_object_add_shared_inplace()
119 write_seqcount_end(&obj->seq); reservation_object_add_shared_inplace()
167 write_seqcount_begin(&obj->seq); reservation_object_add_shared_replace()
173 write_seqcount_end(&obj->seq); reservation_object_add_shared_replace()
218 write_seqcount_begin(&obj->seq); reservation_object_add_excl_fence()
223 write_seqcount_end(&obj->seq); reservation_object_add_excl_fence()
248 unsigned seq; reservation_object_get_fences_rcu() local
250 seq = read_seqcount_begin(&obj->seq); reservation_object_get_fences_rcu()
280 retry = read_seqcount_retry(&obj->seq, seq); reservation_object_get_fences_rcu()
327 unsigned seq, shared_count, i = 0; reservation_object_wait_timeout_rcu() local
336 seq = read_seqcount_begin(&obj->seq); reservation_object_wait_timeout_rcu()
345 if (read_seqcount_retry(&obj->seq, seq)) reservation_object_wait_timeout_rcu()
370 if (read_seqcount_retry(&obj->seq, seq)) reservation_object_wait_timeout_rcu()
421 unsigned seq, shared_count; reservation_object_test_signaled_rcu() local
426 seq = read_seqcount_begin(&obj->seq); reservation_object_test_signaled_rcu()
437 if (read_seqcount_retry(&obj->seq, seq)) reservation_object_test_signaled_rcu()
461 if (read_seqcount_retry(&obj->seq, seq)) reservation_object_test_signaled_rcu()
/linux-4.1.27/drivers/isdn/capi/
H A Dkcapi_proc.c38 static void *controller_start(struct seq_file *seq, loff_t *pos) __acquires()
49 static void *controller_next(struct seq_file *seq, void *v, loff_t *pos) controller_next() argument
58 static void controller_stop(struct seq_file *seq, void *v) __releases()
64 static int controller_show(struct seq_file *seq, void *v) controller_show() argument
71 seq_printf(seq, "%d %-10s %-8s %-16s %s\n", controller_show()
80 static int contrstats_show(struct seq_file *seq, void *v) contrstats_show() argument
87 seq_printf(seq, "%d %lu %lu %lu %lu\n", contrstats_show()
143 static void *applications_start(struct seq_file *seq, loff_t *pos) __acquires()
155 applications_next(struct seq_file *seq, void *v, loff_t *pos) applications_next() argument
164 static void applications_stop(struct seq_file *seq, void *v) __releases()
171 applications_show(struct seq_file *seq, void *v) applications_show() argument
178 seq_printf(seq, "%u %d %d %d\n", applications_show()
188 applstats_show(struct seq_file *seq, void *v) applstats_show() argument
195 seq_printf(seq, "%u %lu %lu %lu %lu\n", applstats_show()
249 static void *capi_driver_start(struct seq_file *seq, loff_t *pos)
256 static void *capi_driver_next(struct seq_file *seq, void *v, loff_t *pos) capi_driver_next() argument
261 static void capi_driver_stop(struct seq_file *seq, void *v)
267 static int capi_driver_show(struct seq_file *seq, void *v) capi_driver_show() argument
271 seq_printf(seq, "%-32s %s\n", drv->name, drv->revision); capi_driver_show()
/linux-4.1.27/include/net/netfilter/
H A Dnf_conntrack_seqadj.h20 struct nf_ct_seqadj seq[IP_CT_DIR_MAX]; member in struct:nf_conn_seqadj
36 __be32 seq, s32 off);
42 s32 nf_ct_seq_offset(const struct nf_conn *ct, enum ip_conntrack_dir, u32 seq);
/linux-4.1.27/net/rxrpc/
H A Dar-proc.c31 static void *rxrpc_call_seq_start(struct seq_file *seq, loff_t *_pos) rxrpc_call_seq_start() argument
37 static void *rxrpc_call_seq_next(struct seq_file *seq, void *v, loff_t *pos) rxrpc_call_seq_next() argument
42 static void rxrpc_call_seq_stop(struct seq_file *seq, void *v) rxrpc_call_seq_stop() argument
47 static int rxrpc_call_seq_show(struct seq_file *seq, void *v) rxrpc_call_seq_show() argument
54 seq_puts(seq, rxrpc_call_seq_show()
72 seq_printf(seq, rxrpc_call_seq_show()
112 static void *rxrpc_connection_seq_start(struct seq_file *seq, loff_t *_pos) rxrpc_connection_seq_start() argument
118 static void *rxrpc_connection_seq_next(struct seq_file *seq, void *v, rxrpc_connection_seq_next() argument
124 static void rxrpc_connection_seq_stop(struct seq_file *seq, void *v) rxrpc_connection_seq_stop() argument
129 static int rxrpc_connection_seq_show(struct seq_file *seq, void *v) rxrpc_connection_seq_show() argument
136 seq_puts(seq, rxrpc_connection_seq_show()
155 seq_printf(seq, rxrpc_connection_seq_show()
H A Dar-skbuff.c58 u32 seq; rxrpc_hard_ACK_data() local
62 _debug("hard ACK #%u", ntohl(sp->hdr.seq)); rxrpc_hard_ACK_data()
70 seq = ntohl(sp->hdr.seq); rxrpc_hard_ACK_data()
71 ASSERTCMP(seq, ==, call->rx_data_eaten + 1); rxrpc_hard_ACK_data()
72 call->rx_data_eaten = seq; rxrpc_hard_ACK_data()
H A Dar-input.c135 struct sk_buff *skb, u32 seq) rxrpc_fast_process_data()
141 _enter("{%u,%u},,{%u}", call->rx_data_post, call->rx_first_oos, seq); rxrpc_fast_process_data()
155 if (seq < call->rx_data_post) { rxrpc_fast_process_data()
156 _debug("dup #%u [-%u]", seq, call->rx_data_post); rxrpc_fast_process_data()
163 ackbit = seq - (call->rx_data_eaten + 1); rxrpc_fast_process_data()
167 seq, call->rx_data_eaten, call->rx_data_post); rxrpc_fast_process_data()
172 if (seq >= call->ackr_win_top) { rxrpc_fast_process_data()
173 _debug("exceed #%u [%u]", seq, call->ackr_win_top); rxrpc_fast_process_data()
179 if (seq == call->rx_data_expect) { rxrpc_fast_process_data()
182 } else if (seq > call->rx_data_expect) { rxrpc_fast_process_data()
183 _debug("oos #%u [%u]", seq, call->rx_data_expect); rxrpc_fast_process_data()
184 call->rx_data_expect = seq + 1; rxrpc_fast_process_data()
192 if (seq != call->rx_data_post) { rxrpc_fast_process_data()
193 _debug("ahead #%u [%u]", seq, call->rx_data_post); rxrpc_fast_process_data()
221 _debug("post #%u", seq); rxrpc_fast_process_data()
222 ASSERTCMP(call->rx_data_post, ==, seq); rxrpc_fast_process_data()
314 u32 serial, hi_serial, seq, abort_code; rxrpc_fast_process_packet() local
389 seq = ntohl(sp->hdr.seq); rxrpc_fast_process_packet()
391 _proto("Rx DATA %%%u { #%u }", serial, seq); rxrpc_fast_process_packet()
393 if (seq == 0) rxrpc_fast_process_packet()
396 call->ackr_prev_seq = sp->hdr.seq; rxrpc_fast_process_packet()
403 switch (rxrpc_fast_process_data(call, skb, seq)) { rxrpc_fast_process_packet()
484 sp->hdr.seq = htonl(ntohl(sp->hdr.seq) + 1); rxrpc_process_jumbo_packet()
722 (sp->hdr.callNumber == 0 || sp->hdr.seq == 0)) rxrpc_data_ready()
762 if (sp->hdr.seq == cpu_to_be32(1)) { rxrpc_data_ready()
134 rxrpc_fast_process_data(struct rxrpc_call *call, struct sk_buff *skb, u32 seq) rxrpc_fast_process_data() argument
H A Dar-recvmsg.c161 ntohl(sp->hdr.seq), skb->len, sp->offset); rxrpc_recvmsg()
172 ASSERTCMP(ntohl(sp->hdr.seq), >=, call->rx_data_recv); rxrpc_recvmsg()
173 ASSERTCMP(ntohl(sp->hdr.seq), <=, call->rx_data_recv + 1); rxrpc_recvmsg()
174 call->rx_data_recv = ntohl(sp->hdr.seq); rxrpc_recvmsg()
176 ASSERTCMP(ntohl(sp->hdr.seq), >, call->rx_data_eaten); rxrpc_recvmsg()
367 ASSERTCMP(ntohl(sp->hdr.seq), >=, call->rx_data_recv); rxrpc_kernel_data_delivered()
368 ASSERTCMP(ntohl(sp->hdr.seq), <=, call->rx_data_recv + 1); rxrpc_kernel_data_delivered()
369 call->rx_data_recv = ntohl(sp->hdr.seq); rxrpc_kernel_data_delivered()
371 ASSERTCMP(ntohl(sp->hdr.seq), >, call->rx_data_eaten); rxrpc_kernel_data_delivered()
/linux-4.1.27/drivers/acpi/
H A Dproc.c22 acpi_system_wakeup_device_seq_show(struct seq_file *seq, void *offset) acpi_system_wakeup_device_seq_show() argument
26 seq_printf(seq, "Device\tS-state\t Status Sysfs node\n"); acpi_system_wakeup_device_seq_show()
37 seq_printf(seq, "%s\t S%d\t", acpi_system_wakeup_device_seq_show()
44 seq_printf(seq, "%c%-8s\n", acpi_system_wakeup_device_seq_show()
58 seq_printf(seq, "\t\t"); acpi_system_wakeup_device_seq_show()
60 seq_printf(seq, "%c%-8s %s:%s\n", acpi_system_wakeup_device_seq_show()
H A Dbattery.c795 static int acpi_battery_print_info(struct seq_file *seq, int result) acpi_battery_print_info() argument
797 struct acpi_battery *battery = seq->private; acpi_battery_print_info()
802 seq_printf(seq, "present: %s\n", acpi_battery_print_info()
807 seq_printf(seq, "design capacity: unknown\n"); acpi_battery_print_info()
809 seq_printf(seq, "design capacity: %d %sh\n", acpi_battery_print_info()
814 seq_printf(seq, "last full capacity: unknown\n"); acpi_battery_print_info()
816 seq_printf(seq, "last full capacity: %d %sh\n", acpi_battery_print_info()
820 seq_printf(seq, "battery technology: %srechargeable\n", acpi_battery_print_info()
824 seq_printf(seq, "design voltage: unknown\n"); acpi_battery_print_info()
826 seq_printf(seq, "design voltage: %d mV\n", acpi_battery_print_info()
828 seq_printf(seq, "design capacity warning: %d %sh\n", acpi_battery_print_info()
831 seq_printf(seq, "design capacity low: %d %sh\n", acpi_battery_print_info()
834 seq_printf(seq, "cycle count: %i\n", battery->cycle_count); acpi_battery_print_info()
835 seq_printf(seq, "capacity granularity 1: %d %sh\n", acpi_battery_print_info()
838 seq_printf(seq, "capacity granularity 2: %d %sh\n", acpi_battery_print_info()
841 seq_printf(seq, "model number: %s\n", battery->model_number); acpi_battery_print_info()
842 seq_printf(seq, "serial number: %s\n", battery->serial_number); acpi_battery_print_info()
843 seq_printf(seq, "battery type: %s\n", battery->type); acpi_battery_print_info()
844 seq_printf(seq, "OEM info: %s\n", battery->oem_info); acpi_battery_print_info()
847 seq_printf(seq, "ERROR: Unable to read battery info\n"); acpi_battery_print_info()
851 static int acpi_battery_print_state(struct seq_file *seq, int result) acpi_battery_print_state() argument
853 struct acpi_battery *battery = seq->private; acpi_battery_print_state()
858 seq_printf(seq, "present: %s\n", acpi_battery_print_state()
863 seq_printf(seq, "capacity state: %s\n", acpi_battery_print_state()
866 seq_printf(seq, acpi_battery_print_state()
869 seq_printf(seq, "charging state: discharging\n"); acpi_battery_print_state()
871 seq_printf(seq, "charging state: charging\n"); acpi_battery_print_state()
873 seq_printf(seq, "charging state: charged\n"); acpi_battery_print_state()
876 seq_printf(seq, "present rate: unknown\n"); acpi_battery_print_state()
878 seq_printf(seq, "present rate: %d %s\n", acpi_battery_print_state()
882 seq_printf(seq, "remaining capacity: unknown\n"); acpi_battery_print_state()
884 seq_printf(seq, "remaining capacity: %d %sh\n", acpi_battery_print_state()
887 seq_printf(seq, "present voltage: unknown\n"); acpi_battery_print_state()
889 seq_printf(seq, "present voltage: %d mV\n", acpi_battery_print_state()
893 seq_printf(seq, "ERROR: Unable to read battery state\n"); acpi_battery_print_state()
898 static int acpi_battery_print_alarm(struct seq_file *seq, int result) acpi_battery_print_alarm() argument
900 struct acpi_battery *battery = seq->private; acpi_battery_print_alarm()
906 seq_printf(seq, "present: no\n"); acpi_battery_print_alarm()
909 seq_printf(seq, "alarm: "); acpi_battery_print_alarm()
911 seq_printf(seq, "unsupported\n"); acpi_battery_print_alarm()
913 seq_printf(seq, "%u %sh\n", battery->alarm, acpi_battery_print_alarm()
917 seq_printf(seq, "ERROR: Unable to read battery alarm\n"); acpi_battery_print_alarm()
952 typedef int(*print_func)(struct seq_file *seq, int result);
960 static int acpi_battery_read(int fid, struct seq_file *seq) acpi_battery_read() argument
962 struct acpi_battery *battery = seq->private; acpi_battery_read()
964 return acpi_print_funcs[fid](seq, result); acpi_battery_read()
968 static int acpi_battery_read_##_name(struct seq_file *seq, void *offset) \
970 return acpi_battery_read(_name##_tag, seq); \
/linux-4.1.27/tools/perf/
H A Dbuiltin-lock.c361 struct lock_seq_stat *seq; get_seq() local
363 list_for_each_entry(seq, &ts->seq_list, list) { get_seq()
364 if (seq->addr == addr) get_seq()
365 return seq; get_seq()
368 seq = zalloc(sizeof(struct lock_seq_stat)); get_seq()
369 if (!seq) { get_seq()
373 seq->state = SEQ_STATE_UNINITIALIZED; get_seq()
374 seq->addr = addr; get_seq()
376 list_add(&seq->list, &ts->seq_list); get_seq()
377 return seq; get_seq()
401 struct lock_seq_stat *seq; report_lock_acquire_event() local
418 seq = get_seq(ts, addr); report_lock_acquire_event()
419 if (!seq) report_lock_acquire_event()
422 switch (seq->state) { report_lock_acquire_event()
426 seq->state = SEQ_STATE_ACQUIRING; report_lock_acquire_event()
432 seq->state = SEQ_STATE_READ_ACQUIRED; report_lock_acquire_event()
433 seq->read_count = 1; report_lock_acquire_event()
439 seq->read_count++; report_lock_acquire_event()
453 list_del(&seq->list); report_lock_acquire_event()
454 free(seq); report_lock_acquire_event()
462 seq->prev_event_time = sample->time; report_lock_acquire_event()
473 struct lock_seq_stat *seq; report_lock_acquired_event() local
490 seq = get_seq(ts, addr); report_lock_acquired_event()
491 if (!seq) report_lock_acquired_event()
494 switch (seq->state) { report_lock_acquired_event()
501 contended_term = sample->time - seq->prev_event_time; report_lock_acquired_event()
514 list_del(&seq->list); report_lock_acquired_event()
515 free(seq); report_lock_acquired_event()
522 seq->state = SEQ_STATE_ACQUIRED; report_lock_acquired_event()
525 seq->prev_event_time = sample->time; report_lock_acquired_event()
536 struct lock_seq_stat *seq; report_lock_contended_event() local
552 seq = get_seq(ts, addr); report_lock_contended_event()
553 if (!seq) report_lock_contended_event()
556 switch (seq->state) { report_lock_contended_event()
569 list_del(&seq->list); report_lock_contended_event()
570 free(seq); report_lock_contended_event()
577 seq->state = SEQ_STATE_CONTENDED; report_lock_contended_event()
580 seq->prev_event_time = sample->time; report_lock_contended_event()
591 struct lock_seq_stat *seq; report_lock_release_event() local
607 seq = get_seq(ts, addr); report_lock_release_event()
608 if (!seq) report_lock_release_event()
611 switch (seq->state) { report_lock_release_event()
617 seq->read_count--; report_lock_release_event()
618 BUG_ON(seq->read_count < 0); report_lock_release_event()
619 if (!seq->read_count) { report_lock_release_event()
638 list_del(&seq->list); report_lock_release_event()
639 free(seq); report_lock_release_event()
/linux-4.1.27/arch/xtensa/include/uapi/asm/
H A Dipcbuf.h16 * - 32-bit mode_t and seq
32 unsigned long seq; member in struct:ipc64_perm
/linux-4.1.27/include/uapi/asm-generic/
H A Dipcbuf.h15 * - 32-bit seq
28 unsigned short seq; member in struct:ipc64_perm
/linux-4.1.27/arch/parisc/include/uapi/asm/
H A Dipcbuf.h7 * 'seq' has been changed from long to int so that it's the same size
21 unsigned short int seq; member in struct:ipc64_perm
/linux-4.1.27/fs/dlm/
H A Dast.c28 (unsigned long long)lkb->lkb_last_bast.seq, dlm_dump_lkb_callbacks()
36 (unsigned long long)lkb->lkb_last_cast.seq, dlm_dump_lkb_callbacks()
45 (unsigned long long)lkb->lkb_callbacks[i].seq, dlm_dump_lkb_callbacks()
54 int status, uint32_t sbflags, uint64_t seq) dlm_add_lkb_callback()
62 if (lkb->lkb_callbacks[i].seq) dlm_add_lkb_callback()
75 prev_seq = lkb->lkb_callbacks[i-1].seq; dlm_add_lkb_callback()
84 (unsigned long long)seq, dlm_add_lkb_callback()
93 lkb->lkb_callbacks[i].seq = seq; dlm_add_lkb_callback()
104 lkb->lkb_id, (unsigned long long)seq, dlm_add_lkb_callback()
121 if (!lkb->lkb_callbacks[0].seq) { dlm_rem_lkb_callback()
134 if (!lkb->lkb_callbacks[i].seq) dlm_rem_lkb_callback()
145 if ((cb->flags & DLM_CB_BAST) && lkb->lkb_last_cast.seq) { dlm_rem_lkb_callback()
152 (unsigned long long)cb->seq, dlm_rem_lkb_callback()
154 (unsigned long long)lkb->lkb_last_cast.seq, dlm_rem_lkb_callback()
192 prev_seq = lkb->lkb_callbacks[0].seq; dlm_add_cb()
225 if (!lkb->lkb_callbacks[0].seq) { dlm_callback_work()
251 if (!callbacks[i].seq) dlm_callback_work()
53 dlm_add_lkb_callback(struct dlm_lkb *lkb, uint32_t flags, int mode, int status, uint32_t sbflags, uint64_t seq) dlm_add_lkb_callback() argument
H A Ddebug_fs.c383 static int table_seq_show(struct seq_file *seq, void *iter_ptr) table_seq_show() argument
389 print_format1(ri->rsb, seq); table_seq_show()
393 seq_puts(seq, "id nodeid remid pid xid exflags flags sts grmode rqmode time_ms r_nodeid r_len r_name\n"); table_seq_show()
396 print_format2(ri->rsb, seq); table_seq_show()
400 seq_puts(seq, "version rsb 1.1 lvb 1.1 lkb 1.1\n"); table_seq_show()
403 print_format3(ri->rsb, seq); table_seq_show()
407 seq_puts(seq, "version 4 rsb 2\n"); table_seq_show()
410 print_format4(ri->rsb, seq); table_seq_show()
422 static void *table_seq_start(struct seq_file *seq, loff_t *pos) table_seq_start() argument
426 struct dlm_ls *ls = seq->private; table_seq_start()
431 int toss = (seq->op == &format4_seq_ops); table_seq_start()
444 if (seq->op == &format1_seq_ops) table_seq_start()
446 if (seq->op == &format2_seq_ops) table_seq_start()
448 if (seq->op == &format3_seq_ops) table_seq_start()
450 if (seq->op == &format4_seq_ops) table_seq_start()
502 static void *table_seq_next(struct seq_file *seq, void *iter_ptr, loff_t *pos) table_seq_next() argument
504 struct dlm_ls *ls = seq->private; table_seq_next()
511 int toss = (seq->op == &format4_seq_ops); table_seq_next()
567 static void table_seq_stop(struct seq_file *seq, void *iter_ptr) table_seq_stop() argument
612 struct seq_file *seq; table_open() local
627 seq = file->private_data; table_open()
628 seq->private = inode->i_private; /* the dlm_ls */ table_open()
H A Duser.h13 int status, uint32_t sbflags, uint64_t seq);
H A Dast.h18 int status, uint32_t sbflags, uint64_t seq);
H A Drecoverd.c26 /* If the start for which we're re-enabling locking (seq) has been superseded
33 static int enable_locking(struct dlm_ls *ls, uint64_t seq) enable_locking() argument
40 if (ls->ls_recover_seq == seq) { enable_locking()
58 log_rinfo(ls, "dlm_recover %llu", (unsigned long long)rv->seq); ls_recover()
218 error = enable_locking(ls, rv->seq); ls_recover()
239 (unsigned long long)rv->seq, ls->ls_generation, ls_recover()
249 (unsigned long long)rv->seq, error); ls_recover()
265 if (rv && ls->ls_recover_seq == rv->seq) do_ls_recovery()
H A Dconfig.h48 int dlm_comm_seq(int nodeid, uint32_t *seq);
/linux-4.1.27/kernel/time/
H A Dtimekeeping.c40 seqcount_t seq; member in struct:__anon13994
49 * @seq: Sequence counter for protecting updates. The lowest bit
52 * @seq.
57 seqcount_t seq; member in struct:tk_fast
176 unsigned int seq; timekeeping_get_delta() local
186 seq = read_seqcount_begin(&tk_core.seq); timekeeping_get_delta()
191 } while (read_seqcount_retry(&tk_core.seq, seq)); timekeeping_get_delta()
337 * tkf->seq++;
341 * tkf->seq++;
348 * seq = tkf->seq;
350 * idx = seq & 0x01;
353 * } while (seq != tkf->seq)
369 raw_write_seqcount_latch(&tkf->seq); update_fast_timekeeper()
375 raw_write_seqcount_latch(&tkf->seq); update_fast_timekeeper()
416 unsigned int seq; __ktime_get_fast_ns() local
420 seq = raw_read_seqcount(&tkf->seq); __ktime_get_fast_ns()
421 tkr = tkf->base + (seq & 0x01); __ktime_get_fast_ns()
423 } while (read_seqcount_retry(&tkf->seq, seq)); __ktime_get_fast_ns()
645 unsigned long seq; __getnstimeofday64() local
649 seq = read_seqcount_begin(&tk_core.seq); __getnstimeofday64()
654 } while (read_seqcount_retry(&tk_core.seq, seq)); __getnstimeofday64()
684 unsigned int seq; ktime_get() local
691 seq = read_seqcount_begin(&tk_core.seq); ktime_get()
695 } while (read_seqcount_retry(&tk_core.seq, seq)); ktime_get()
710 unsigned int seq; ktime_get_with_offset() local
717 seq = read_seqcount_begin(&tk_core.seq); ktime_get_with_offset()
721 } while (read_seqcount_retry(&tk_core.seq, seq)); ktime_get_with_offset()
736 unsigned long seq; ktime_mono_to_any() local
740 seq = read_seqcount_begin(&tk_core.seq); ktime_mono_to_any()
742 } while (read_seqcount_retry(&tk_core.seq, seq)); ktime_mono_to_any()
754 unsigned int seq; ktime_get_raw() local
759 seq = read_seqcount_begin(&tk_core.seq); ktime_get_raw()
763 } while (read_seqcount_retry(&tk_core.seq, seq)); ktime_get_raw()
782 unsigned int seq; ktime_get_ts64() local
787 seq = read_seqcount_begin(&tk_core.seq); ktime_get_ts64()
792 } while (read_seqcount_retry(&tk_core.seq, seq)); ktime_get_ts64()
833 unsigned int seq; ktime_get_real_seconds() local
839 seq = read_seqcount_begin(&tk_core.seq); ktime_get_real_seconds()
842 } while (read_seqcount_retry(&tk_core.seq, seq)); ktime_get_real_seconds()
862 unsigned long seq; getnstime_raw_and_real() local
868 seq = read_seqcount_begin(&tk_core.seq); getnstime_raw_and_real()
877 } while (read_seqcount_retry(&tk_core.seq, seq)); getnstime_raw_and_real()
918 write_seqcount_begin(&tk_core.seq); do_settimeofday64()
932 write_seqcount_end(&tk_core.seq); do_settimeofday64()
961 write_seqcount_begin(&tk_core.seq); timekeeping_inject_offset()
978 write_seqcount_end(&tk_core.seq); timekeeping_inject_offset()
996 unsigned int seq; timekeeping_get_tai_offset() local
1000 seq = read_seqcount_begin(&tk_core.seq); timekeeping_get_tai_offset()
1002 } while (read_seqcount_retry(&tk_core.seq, seq)); timekeeping_get_tai_offset()
1027 write_seqcount_begin(&tk_core.seq); timekeeping_set_tai_offset()
1030 write_seqcount_end(&tk_core.seq); timekeeping_set_tai_offset()
1049 write_seqcount_begin(&tk_core.seq); change_clocksource()
1069 write_seqcount_end(&tk_core.seq); change_clocksource()
1103 unsigned long seq; getrawmonotonic64() local
1107 seq = read_seqcount_begin(&tk_core.seq); getrawmonotonic64()
1111 } while (read_seqcount_retry(&tk_core.seq, seq)); getrawmonotonic64()
1125 unsigned long seq; timekeeping_valid_for_hres() local
1129 seq = read_seqcount_begin(&tk_core.seq); timekeeping_valid_for_hres()
1133 } while (read_seqcount_retry(&tk_core.seq, seq)); timekeeping_valid_for_hres()
1144 unsigned long seq; timekeeping_max_deferment() local
1148 seq = read_seqcount_begin(&tk_core.seq); timekeeping_max_deferment()
1152 } while (read_seqcount_retry(&tk_core.seq, seq)); timekeeping_max_deferment()
1237 write_seqcount_begin(&tk_core.seq); timekeeping_init()
1256 write_seqcount_end(&tk_core.seq); timekeeping_init()
1338 write_seqcount_begin(&tk_core.seq); timekeeping_inject_sleeptime64()
1346 write_seqcount_end(&tk_core.seq); timekeeping_inject_sleeptime64()
1372 write_seqcount_begin(&tk_core.seq); timekeeping_resume()
1427 write_seqcount_end(&tk_core.seq); timekeeping_resume()
1454 write_seqcount_begin(&tk_core.seq); timekeeping_suspend()
1482 write_seqcount_end(&tk_core.seq); timekeeping_suspend()
1827 write_seqcount_begin(&tk_core.seq); update_wall_time()
1835 * memcpy under the tk_core.seq against one before we start update_wall_time()
1840 write_seqcount_end(&tk_core.seq); update_wall_time()
1887 unsigned long seq; current_kernel_time() local
1890 seq = read_seqcount_begin(&tk_core.seq); current_kernel_time()
1893 } while (read_seqcount_retry(&tk_core.seq, seq)); current_kernel_time()
1903 unsigned long seq; get_monotonic_coarse64() local
1906 seq = read_seqcount_begin(&tk_core.seq); get_monotonic_coarse64()
1910 } while (read_seqcount_retry(&tk_core.seq, seq)); get_monotonic_coarse64()
1939 unsigned int seq; ktime_get_update_offsets_tick() local
1944 seq = read_seqcount_begin(&tk_core.seq); ktime_get_update_offsets_tick()
1952 } while (read_seqcount_retry(&tk_core.seq, seq)); ktime_get_update_offsets_tick()
1971 unsigned int seq; ktime_get_update_offsets_now() local
1976 seq = read_seqcount_begin(&tk_core.seq); ktime_get_update_offsets_now()
1984 } while (read_seqcount_retry(&tk_core.seq, seq)); ktime_get_update_offsets_now()
2020 write_seqcount_begin(&tk_core.seq); do_adjtimex()
2029 write_seqcount_end(&tk_core.seq); do_adjtimex()
2049 write_seqcount_begin(&tk_core.seq); hardpps()
2053 write_seqcount_end(&tk_core.seq); hardpps()
H A Dsched_clock.c51 * @seq: Sequence counter for protecting updates. The lowest
59 * performance. In particular 'seq' and 'read_data[0]' (combined) should fit
63 seqcount_t seq; member in struct:clock_data
99 unsigned long seq; sched_clock() local
103 seq = raw_read_seqcount(&cd.seq); sched_clock()
104 rd = cd.read_data + (seq & 1); sched_clock()
109 } while (read_seqcount_retry(&cd.seq, seq)); sched_clock()
130 raw_write_seqcount_latch(&cd.seq); update_clock_read_data()
136 raw_write_seqcount_latch(&cd.seq); update_clock_read_data()
267 unsigned long seq = raw_read_seqcount(&cd.seq); suspended_sched_clock_read() local
269 return cd.read_data[seq & 1].epoch_cyc; suspended_sched_clock_read()
H A Djiffies.c82 unsigned long seq; get_jiffies_64() local
86 seq = read_seqbegin(&jiffies_lock); get_jiffies_64()
88 } while (read_seqretry(&jiffies_lock, seq)); get_jiffies_64()
/linux-4.1.27/drivers/gpu/drm/radeon/
H A Dradeon_fence.c57 * @seq: sequence number to write
62 static void radeon_fence_write(struct radeon_device *rdev, u32 seq, int ring) radeon_fence_write() argument
67 *drv->cpu_addr = cpu_to_le32(seq); radeon_fence_write()
70 WREG32(drv->scratch_reg, seq); radeon_fence_write()
86 u32 seq = 0; radeon_fence_read() local
90 seq = le32_to_cpu(*drv->cpu_addr); radeon_fence_read()
92 seq = lower_32_bits(atomic64_read(&drv->last_seq)); radeon_fence_read()
95 seq = RREG32(drv->scratch_reg); radeon_fence_read()
97 return seq; radeon_fence_read()
133 u64 seq = ++rdev->fence_drv[ring].sync_seq[ring]; radeon_fence_emit() local
141 (*fence)->seq = seq; radeon_fence_emit()
145 &rdev->fence_queue.lock, rdev->fence_context + ring, seq); radeon_fence_emit()
147 trace_radeon_fence_emit(rdev->ddev, ring, (*fence)->seq); radeon_fence_emit()
162 u64 seq; radeon_fence_check_signaled() local
170 seq = atomic64_read(&fence->rdev->fence_drv[fence->ring].last_seq); radeon_fence_check_signaled()
171 if (seq >= fence->seq) { radeon_fence_check_signaled()
199 uint64_t seq, last_seq, last_emitted; radeon_fence_activity() local
214 * value the other process set as last seq must be higher than radeon_fence_activity()
215 * the seq value we just read. Which means that current process radeon_fence_activity()
222 * seq but to an older one. radeon_fence_activity()
227 seq = radeon_fence_read(rdev, ring); radeon_fence_activity()
228 seq |= last_seq & 0xffffffff00000000LL; radeon_fence_activity()
229 if (seq < last_seq) { radeon_fence_activity()
230 seq &= 0xffffffff; radeon_fence_activity()
231 seq |= last_emitted & 0xffffffff00000000LL; radeon_fence_activity()
234 if (seq <= last_seq || seq > last_emitted) { radeon_fence_activity()
239 * seq we just read is different from the previous on. radeon_fence_activity()
242 last_seq = seq; radeon_fence_activity()
246 * seq then the current real last seq as signaled radeon_fence_activity()
251 } while (atomic64_xchg(&rdev->fence_drv[ring].last_seq, seq) > seq); radeon_fence_activity()
253 if (seq < last_emitted) radeon_fence_activity()
330 * @seq: sequence number
341 u64 seq, unsigned ring) radeon_fence_seq_signaled()
343 if (atomic64_read(&rdev->fence_drv[ring].last_seq) >= seq) { radeon_fence_seq_signaled()
348 if (atomic64_read(&rdev->fence_drv[ring].last_seq) >= seq) { radeon_fence_seq_signaled()
359 u64 seq = fence->seq; radeon_fence_is_signaled() local
361 if (atomic64_read(&rdev->fence_drv[ring].last_seq) >= seq) { radeon_fence_is_signaled()
369 if (atomic64_read(&rdev->fence_drv[ring].last_seq) >= seq) { radeon_fence_is_signaled()
389 if (atomic64_read(&rdev->fence_drv[fence->ring].last_seq) >= fence->seq) radeon_fence_enable_signaling()
399 if (atomic64_read(&rdev->fence_drv[fence->ring].last_seq) >= fence->seq) { radeon_fence_enable_signaling()
436 if (radeon_fence_seq_signaled(fence->rdev, fence->seq, fence->ring)) { radeon_fence_signaled()
451 * @seq: sequence numbers
458 static bool radeon_fence_any_seq_signaled(struct radeon_device *rdev, u64 *seq) radeon_fence_any_seq_signaled() argument
463 if (seq[i] && radeon_fence_seq_signaled(rdev, seq[i], i)) radeon_fence_any_seq_signaled()
542 uint64_t seq[RADEON_NUM_RINGS] = {}; radeon_fence_wait() local
554 seq[fence->ring] = fence->seq; radeon_fence_wait()
555 r = radeon_fence_wait_seq_timeout(fence->rdev, seq, intr, MAX_SCHEDULE_TIMEOUT); radeon_fence_wait()
583 uint64_t seq[RADEON_NUM_RINGS]; radeon_fence_wait_any() local
588 seq[i] = 0; radeon_fence_wait_any()
594 seq[i] = fences[i]->seq; radeon_fence_wait_any()
602 r = radeon_fence_wait_seq_timeout(rdev, seq, intr, MAX_SCHEDULE_TIMEOUT); radeon_fence_wait_any()
621 uint64_t seq[RADEON_NUM_RINGS] = {}; radeon_fence_wait_next() local
624 seq[ring] = atomic64_read(&rdev->fence_drv[ring].last_seq) + 1ULL; radeon_fence_wait_next()
625 if (seq[ring] >= rdev->fence_drv[ring].sync_seq[ring]) { radeon_fence_wait_next()
630 r = radeon_fence_wait_seq_timeout(rdev, seq, false, MAX_SCHEDULE_TIMEOUT); radeon_fence_wait_next()
648 uint64_t seq[RADEON_NUM_RINGS] = {}; radeon_fence_wait_empty() local
651 seq[ring] = rdev->fence_drv[ring].sync_seq[ring]; radeon_fence_wait_empty()
652 if (!seq[ring]) radeon_fence_wait_empty()
655 r = radeon_fence_wait_seq_timeout(rdev, seq, false, MAX_SCHEDULE_TIMEOUT); radeon_fence_wait_empty()
749 if (fence->seq <= fdrv->sync_seq[fence->ring]) { radeon_fence_need_sync()
340 radeon_fence_seq_signaled(struct radeon_device *rdev, u64 seq, unsigned ring) radeon_fence_seq_signaled() argument
/linux-4.1.27/net/llc/
H A Dllc_proc.c29 static void llc_ui_format_mac(struct seq_file *seq, u8 *addr) llc_ui_format_mac() argument
31 seq_printf(seq, "%pM", addr); llc_ui_format_mac()
59 static void *llc_seq_start(struct seq_file *seq, loff_t *pos) llc_seq_start() argument
80 static void *llc_seq_next(struct seq_file *seq, void *v, loff_t *pos) llc_seq_next() argument
114 static void llc_seq_stop(struct seq_file *seq, void *v) llc_seq_stop() argument
126 static int llc_seq_socket_show(struct seq_file *seq, void *v) llc_seq_socket_show() argument
132 seq_puts(seq, "SKt Mc local_mac_sap remote_mac_sap " llc_seq_socket_show()
140 seq_printf(seq, "%2X %2X ", sk->sk_type, 0); llc_seq_socket_show()
143 llc_ui_format_mac(seq, llc->dev->dev_addr); llc_seq_socket_show()
146 llc_ui_format_mac(seq, addr); llc_seq_socket_show()
148 seq_printf(seq, "@%02X ", llc->sap->laddr.lsap); llc_seq_socket_show()
149 llc_ui_format_mac(seq, llc->daddr.mac); llc_seq_socket_show()
150 seq_printf(seq, "@%02X %8d %8d %2d %3u %4d\n", llc->daddr.lsap, llc_seq_socket_show()
154 from_kuid_munged(seq_user_ns(seq), sock_i_uid(sk)), llc_seq_socket_show()
175 static int llc_seq_core_show(struct seq_file *seq, void *v) llc_seq_core_show() argument
181 seq_puts(seq, "Connection list:\n" llc_seq_core_show()
189 seq_printf(seq, " %02X %-10s %3d %3d %3d %2d %2d %2d %2d %2d %2d " llc_seq_core_show()
/linux-4.1.27/drivers/scsi/aic7xxx/
H A DMakefile57 $(obj)/aic7xxx_seq.h: $(src)/aic7xxx.seq $(src)/aic7xxx.reg $(obj)/aicasm/aicasm
60 $(src)/aic7xxx.seq
74 $(obj)/aic79xx_seq.h: $(src)/aic79xx.seq $(src)/aic79xx.reg $(obj)/aicasm/aicasm
77 $(src)/aic79xx.seq
/linux-4.1.27/include/linux/netfilter/
H A Dnf_conntrack_proto_gre.h32 seq:1, member in struct:gre_hdr
43 seq:1,
62 __be32 seq; /* sequence number. Present if S==1 */ member in struct:gre_hdr_pptp
63 __be32 ack; /* seq number of highest packet received by */
H A Dnf_conntrack_tcp.h8 u_int32_t td_end; /* max of seq + len */
25 u_int32_t last_end; /* Last seq + len */
H A Dnf_conntrack_ftp.h14 /* Valid seq positions for cmd matching after newline */
/linux-4.1.27/arch/cris/arch-v32/lib/
H A Dstrcmp.S13 seq $r13
/linux-4.1.27/arch/ia64/kernel/
H A Dfsyscall_gtod_data.h9 seqcount_t seq; member in struct:fsyscall_gtod_data_t
/linux-4.1.27/drivers/mtd/devices/
H A Dst_spi_fsm.c255 uint8_t seq[16]; member in struct:stfsm_seq
524 static int stfsm_mx25_en_32bit_addr_seq(struct stfsm_seq *seq) stfsm_mx25_en_32bit_addr_seq() argument
526 seq->seq_opc[0] = (SEQ_OPC_PADS_1 | stfsm_mx25_en_32bit_addr_seq()
531 seq->seq[0] = STFSM_INST_CMD1; stfsm_mx25_en_32bit_addr_seq()
532 seq->seq[1] = STFSM_INST_WAIT; stfsm_mx25_en_32bit_addr_seq()
533 seq->seq[2] = STFSM_INST_STOP; stfsm_mx25_en_32bit_addr_seq()
535 seq->seq_cfg = (SEQ_CFG_PADS_1 | stfsm_mx25_en_32bit_addr_seq()
581 .seq = {
597 .seq = {
617 .seq = {
638 .seq = {
656 .seq = {
674 .seq = {
685 static int stfsm_n25q_en_32bit_addr_seq(struct stfsm_seq *seq) stfsm_n25q_en_32bit_addr_seq() argument
687 seq->seq_opc[0] = (SEQ_OPC_PADS_1 | SEQ_OPC_CYCLES(8) | stfsm_n25q_en_32bit_addr_seq()
689 seq->seq_opc[1] = (SEQ_OPC_PADS_1 | SEQ_OPC_CYCLES(8) | stfsm_n25q_en_32bit_addr_seq()
693 seq->seq[0] = STFSM_INST_CMD2; stfsm_n25q_en_32bit_addr_seq()
694 seq->seq[1] = STFSM_INST_CMD1; stfsm_n25q_en_32bit_addr_seq()
695 seq->seq[2] = STFSM_INST_WAIT; stfsm_n25q_en_32bit_addr_seq()
696 seq->seq[3] = STFSM_INST_STOP; stfsm_n25q_en_32bit_addr_seq()
698 seq->seq_cfg = (SEQ_CFG_PADS_1 | stfsm_n25q_en_32bit_addr_seq()
718 const struct stfsm_seq *seq) stfsm_load_seq()
721 const uint32_t *src = (const uint32_t *)seq; stfsm_load_seq()
722 int words = sizeof(*seq) / sizeof(*src); stfsm_load_seq()
806 const struct stfsm_seq *seq = &stfsm_seq_load_fifo_byte; stfsm_clear_fifo() local
823 stfsm_load_seq(fsm, seq); stfsm_clear_fifo()
856 struct stfsm_seq *seq = &fsm->stfsm_seq_en_32bit_addr; stfsm_enter_32bit_addr() local
859 seq->seq_opc[0] = (SEQ_OPC_PADS_1 | stfsm_enter_32bit_addr()
864 stfsm_load_seq(fsm, seq); stfsm_enter_32bit_addr()
873 struct stfsm_seq *seq = &stfsm_seq_read_status_fifo; stfsm_wait_busy() local
879 seq->seq_opc[0] = (SEQ_OPC_PADS_1 | stfsm_wait_busy()
884 stfsm_load_seq(fsm, seq); stfsm_wait_busy()
908 writel(seq->seq_cfg, fsm->base + SPI_FAST_SEQ_CFG); stfsm_wait_busy()
921 struct stfsm_seq *seq = &stfsm_seq_read_status_fifo; stfsm_read_status() local
931 seq->seq_opc[0] = (SEQ_OPC_PADS_1 | SEQ_OPC_CYCLES(8) | stfsm_read_status()
934 stfsm_load_seq(fsm, seq); stfsm_read_status()
949 struct stfsm_seq *seq = &stfsm_seq_write_status; stfsm_write_status() local
957 seq->seq_opc[1] = (SEQ_OPC_PADS_1 | SEQ_OPC_CYCLES(8) | stfsm_write_status()
960 seq->status = (uint32_t)data | STA_PADS_1 | STA_CSDEASSERT; stfsm_write_status()
961 seq->seq[2] = (bytes == 1) ? STFSM_INST_STA_WR1 : STFSM_INST_STA_WR1_2; stfsm_write_status()
963 stfsm_load_seq(fsm, seq); stfsm_write_status()
1009 struct stfsm_seq *seq) stfsm_prepare_erasesec_seq()
1013 seq->addr_cfg = (ADR_CFG_CYCLES_ADD1(addr1_cycles) | stfsm_prepare_erasesec_seq()
1037 struct stfsm_seq *seq, stfsm_prepare_rw_seq()
1043 memset(seq, 0, sizeof(*seq)); stfsm_prepare_rw_seq()
1046 seq->seq_opc[i++] = (SEQ_OPC_PADS_1 | stfsm_prepare_rw_seq()
1052 seq->seq_opc[i++] = (SEQ_OPC_PADS_1 | stfsm_prepare_rw_seq()
1061 seq->addr_cfg = ((addr1_cycles & 0x3f) << 0 | /* ADD1 cycles */ stfsm_prepare_rw_seq()
1067 seq->seq_cfg = ((cfg->data_pads - 1) << 16 | stfsm_prepare_rw_seq()
1071 seq->seq_cfg |= SEQ_CFG_READNOTWRITE; stfsm_prepare_rw_seq()
1074 seq->mode = ((cfg->mode_data & 0xff) << 0 | /* data */ stfsm_prepare_rw_seq()
1079 seq->dummy = ((cfg->dummy_cycles & 0x3f) << 16 | /* cycles */ stfsm_prepare_rw_seq()
1086 seq->seq[i++] = STFSM_INST_CMD2; stfsm_prepare_rw_seq()
1088 seq->seq[i++] = STFSM_INST_CMD1; stfsm_prepare_rw_seq()
1090 seq->seq[i++] = STFSM_INST_ADD1; stfsm_prepare_rw_seq()
1091 seq->seq[i++] = STFSM_INST_ADD2; stfsm_prepare_rw_seq()
1094 seq->seq[i++] = STFSM_INST_MODE; stfsm_prepare_rw_seq()
1097 seq->seq[i++] = STFSM_INST_DUMMY; stfsm_prepare_rw_seq()
1099 seq->seq[i++] = stfsm_prepare_rw_seq()
1101 seq->seq[i++] = STFSM_INST_STOP; stfsm_prepare_rw_seq()
1105 struct stfsm_seq *seq, stfsm_search_prepare_rw_seq()
1116 stfsm_prepare_rw_seq(fsm, seq, config); stfsm_search_prepare_rw_seq()
1276 static void stfsm_s25fl_prepare_erasesec_seq_32(struct stfsm_seq *seq) stfsm_s25fl_prepare_erasesec_seq_32() argument
1278 seq->seq_opc[1] = (SEQ_OPC_PADS_1 | stfsm_s25fl_prepare_erasesec_seq_32()
1282 seq->addr_cfg = (ADR_CFG_CYCLES_ADD1(16) | stfsm_s25fl_prepare_erasesec_seq_32()
1292 struct stfsm_seq seq = { stfsm_s25fl_read_dyb() local
1303 .seq = { stfsm_s25fl_read_dyb()
1316 stfsm_load_seq(fsm, &seq); stfsm_s25fl_read_dyb()
1327 struct stfsm_seq seq = { stfsm_s25fl_write_dyb() local
1340 .seq = { stfsm_s25fl_write_dyb()
1354 stfsm_load_seq(fsm, &seq); stfsm_s25fl_write_dyb()
1362 struct stfsm_seq seq = { stfsm_s25fl_clear_status_reg() local
1371 .seq = { stfsm_s25fl_clear_status_reg()
1384 stfsm_load_seq(fsm, &seq); stfsm_s25fl_clear_status_reg()
1521 struct stfsm_seq *seq = &fsm->stfsm_seq_read; stfsm_read() local
1538 data_pads = ((seq->seq_cfg >> 16) & 0x3) + 1; stfsm_read()
1549 seq->data_size = TRANSFER_SIZE(size_ub); stfsm_read()
1550 seq->addr1 = (offset >> 16) & 0xffff; stfsm_read()
1551 seq->addr2 = offset & 0xffff; stfsm_read()
1553 stfsm_load_seq(fsm, seq); stfsm_read()
1582 struct stfsm_seq *seq = &fsm->stfsm_seq_write; stfsm_write() local
1602 data_pads = ((seq->seq_cfg >> 16) & 0x3) + 1; stfsm_write()
1618 seq->data_size = TRANSFER_SIZE(size_ub); stfsm_write()
1619 seq->addr1 = (offset >> 16) & 0xffff; stfsm_write()
1620 seq->addr2 = offset & 0xffff; stfsm_write()
1653 stfsm_load_seq(fsm, seq); stfsm_write()
1704 struct stfsm_seq *seq = &stfsm_seq_erase_sector; stfsm_erase_sector() local
1713 seq->addr1 = (offset >> 16) & 0xffff; stfsm_erase_sector()
1714 seq->addr2 = offset & 0xffff; stfsm_erase_sector()
1716 stfsm_load_seq(fsm, seq); stfsm_erase_sector()
1734 const struct stfsm_seq *seq = &stfsm_seq_erase_chip; stfsm_erase_chip() local
1738 stfsm_load_seq(fsm, seq); stfsm_erase_chip()
1842 const struct stfsm_seq *seq = &stfsm_seq_read_jedec; stfsm_read_jedec() local
1845 stfsm_load_seq(fsm, seq); stfsm_read_jedec()
717 stfsm_load_seq(struct stfsm *fsm, const struct stfsm_seq *seq) stfsm_load_seq() argument
1008 stfsm_prepare_erasesec_seq(struct stfsm *fsm, struct stfsm_seq *seq) stfsm_prepare_erasesec_seq() argument
1036 stfsm_prepare_rw_seq(struct stfsm *fsm, struct stfsm_seq *seq, struct seq_rw_config *cfg) stfsm_prepare_rw_seq() argument
1104 stfsm_search_prepare_rw_seq(struct stfsm *fsm, struct stfsm_seq *seq, struct seq_rw_config *cfgs) stfsm_search_prepare_rw_seq() argument
/linux-4.1.27/include/crypto/
H A Daead.h22 * @seq: Sequence number for IV generation
27 u64 seq; member in struct:aead_givcrypt_request
99 u8 *giv, u64 seq) aead_givcrypt_set_giv()
102 req->seq = seq; aead_givcrypt_set_giv()
98 aead_givcrypt_set_giv(struct aead_givcrypt_request *req, u8 *giv, u64 seq) aead_givcrypt_set_giv() argument
H A Dskcipher.h22 * @seq: Sequence number for IV generation
27 u64 seq; member in struct:skcipher_givcrypt_request
103 struct skcipher_givcrypt_request *req, u8 *giv, u64 seq) skcipher_givcrypt_set_giv()
106 req->seq = seq; skcipher_givcrypt_set_giv()
102 skcipher_givcrypt_set_giv( struct skcipher_givcrypt_request *req, u8 *giv, u64 seq) skcipher_givcrypt_set_giv() argument
/linux-4.1.27/fs/ocfs2/cluster/
H A Dnetdebug.c104 static void *nst_seq_start(struct seq_file *seq, loff_t *pos) nst_seq_start() argument
106 struct o2net_send_tracking *nst, *dummy_nst = seq->private; nst_seq_start()
115 static void *nst_seq_next(struct seq_file *seq, void *v, loff_t *pos) nst_seq_next() argument
117 struct o2net_send_tracking *nst, *dummy_nst = seq->private; nst_seq_next()
130 static int nst_seq_show(struct seq_file *seq, void *v) nst_seq_show() argument
132 struct o2net_send_tracking *nst, *dummy_nst = seq->private; nst_seq_show()
147 seq_printf(seq, "%p:\n" nst_seq_show()
174 static void nst_seq_stop(struct seq_file *seq, void *v) nst_seq_stop() argument
199 struct seq_file *seq = file->private_data; nst_fop_release() local
200 struct o2net_send_tracking *dummy_nst = seq->private; nst_fop_release()
255 static void *sc_seq_start(struct seq_file *seq, loff_t *pos) sc_seq_start() argument
257 struct o2net_sock_debug *sd = seq->private; sc_seq_start()
267 static void *sc_seq_next(struct seq_file *seq, void *v, loff_t *pos) sc_seq_next() argument
269 struct o2net_sock_debug *sd = seq->private; sc_seq_next()
300 static void sc_show_sock_stats(struct seq_file *seq, sc_show_sock_stats() argument
306 seq_printf(seq, "%d,%u,%lu,%lld,%lld,%lld,%lu,%lld\n", O2NET_STATS_STR_VERSION, sc_show_sock_stats()
315 static void sc_show_sock_container(struct seq_file *seq, sc_show_sock_container() argument
336 seq_printf(seq, "%p:\n" sc_show_sock_container()
368 static int sc_seq_show(struct seq_file *seq, void *v) sc_seq_show() argument
370 struct o2net_sock_debug *sd = seq->private; sc_seq_show()
378 sc_show_sock_container(seq, sc); sc_seq_show()
380 sc_show_sock_stats(seq, sc); sc_seq_show()
388 static void sc_seq_stop(struct seq_file *seq, void *v) sc_seq_stop() argument
424 struct seq_file *seq = file->private_data; sc_fop_release() local
425 struct o2net_sock_debug *sd = seq->private; sc_fop_release()
/linux-4.1.27/fs/hfsplus/
H A Doptions.c216 int hfsplus_show_options(struct seq_file *seq, struct dentry *root) hfsplus_show_options() argument
221 seq_show_option_n(seq, "creator", (char *)&sbi->creator, 4); hfsplus_show_options()
223 seq_show_option_n(seq, "type", (char *)&sbi->type, 4); hfsplus_show_options()
224 seq_printf(seq, ",umask=%o,uid=%u,gid=%u", sbi->umask, hfsplus_show_options()
228 seq_printf(seq, ",part=%u", sbi->part); hfsplus_show_options()
230 seq_printf(seq, ",session=%u", sbi->session); hfsplus_show_options()
232 seq_printf(seq, ",nls=%s", sbi->nls->charset); hfsplus_show_options()
234 seq_puts(seq, ",nodecompose"); hfsplus_show_options()
236 seq_puts(seq, ",nobarrier"); hfsplus_show_options()
/linux-4.1.27/tools/testing/selftests/powerpc/pmu/ebb/
H A Dtrace.c168 static void trace_print_header(int seq, int prefix) trace_print_header() argument
170 printf("%*s[%d]: ", prefix, "", seq); trace_print_header()
235 static void trace_print_entry(struct trace_entry *e, int seq, int *prefix) trace_print_entry() argument
239 trace_print_header(seq, *prefix); trace_print_entry()
243 trace_print_header(seq, *prefix); trace_print_entry()
247 trace_print_header(seq, *prefix); trace_print_entry()
251 trace_print_header(seq, *prefix); trace_print_entry()
259 trace_print_header(seq, *prefix); trace_print_entry()
263 trace_print_header(seq, *prefix); trace_print_entry()
/linux-4.1.27/drivers/md/bcache/
H A Djournal.c104 if (i->j.seq >= j->last_seq) journal_read_bucket()
111 if (j->seq == i->j.seq) list_for_each_entry_reverse()
114 if (j->seq < i->j.last_seq) list_for_each_entry_reverse()
117 if (j->seq > i->j.seq) { list_for_each_entry_reverse()
133 ja->seq[bucket_index] = j->seq;
162 uint64_t seq; for_each_cache() local
205 seq = list_entry(list->prev, struct journal_replay, for_each_cache()
206 list)->j.seq; for_each_cache()
211 if (seq != list_entry(list->prev, struct journal_replay, for_each_cache()
212 list)->j.seq) for_each_cache()
240 seq = 0; for_each_cache()
243 if (ja->seq[i] > seq) { for_each_cache()
244 seq = ja->seq[i]; for_each_cache()
258 c->journal.seq = list_entry(list->prev,
260 list)->j.seq;
272 uint64_t last = j->seq; bch_journal_mark()
282 BUG_ON(last < i->j.seq); list_for_each_entry_reverse()
285 while (last-- != i->j.seq) list_for_each_entry_reverse()
319 uint64_t start = i->j.last_seq, end = i->j.seq, n = start; bch_journal_replay()
325 cache_set_err_on(n != i->j.seq, s, list_for_each_entry()
327 n, i->j.seq - 1, start, end); list_for_each_entry()
348 n = i->j.seq + 1; list_for_each_entry()
352 pr_info("journal replay done, %i keys in %i entries, seq %llu",
402 #define last_seq(j) ((j)->seq - fifo_used(&(j)->pin) + 1)
486 ja->seq[ja->last_idx] < last_seq) for_each_cache()
535 * The fifo_push() needs to happen at the same time as j->seq is bch_journal_next()
541 j->cur->data->seq = ++j->seq; bch_journal_next()
639 ca->journal.seq[ca->journal.cur_idx] = w->data->seq;
/linux-4.1.27/drivers/staging/rtl8192e/
H A Drtllib_crypt_ccmp.c152 * SC with bits 4..15 (seq#) masked to zero ccmp_init_blocks()
358 static int rtllib_ccmp_set_key(void *key, int len, u8 *seq, void *priv) rtllib_ccmp_set_key() argument
371 if (seq) { rtllib_ccmp_set_key()
372 data->rx_pn[0] = seq[5]; rtllib_ccmp_set_key()
373 data->rx_pn[1] = seq[4]; rtllib_ccmp_set_key()
374 data->rx_pn[2] = seq[3]; rtllib_ccmp_set_key()
375 data->rx_pn[3] = seq[2]; rtllib_ccmp_set_key()
376 data->rx_pn[4] = seq[1]; rtllib_ccmp_set_key()
377 data->rx_pn[5] = seq[0]; rtllib_ccmp_set_key()
389 static int rtllib_ccmp_get_key(void *key, int len, u8 *seq, void *priv) rtllib_ccmp_get_key() argument
400 if (seq) { rtllib_ccmp_get_key()
401 seq[0] = data->tx_pn[5]; rtllib_ccmp_get_key()
402 seq[1] = data->tx_pn[4]; rtllib_ccmp_get_key()
403 seq[2] = data->tx_pn[3]; rtllib_ccmp_get_key()
404 seq[3] = data->tx_pn[2]; rtllib_ccmp_get_key()
405 seq[4] = data->tx_pn[1]; rtllib_ccmp_get_key()
406 seq[5] = data->tx_pn[0]; rtllib_ccmp_get_key()
H A Drtllib_crypt_tkip.c657 static int rtllib_tkip_set_key(void *key, int len, u8 *seq, void *priv) rtllib_tkip_set_key() argument
678 if (seq) { rtllib_tkip_set_key()
679 tkey->rx_iv32 = (seq[5] << 24) | (seq[4] << 16) | rtllib_tkip_set_key()
680 (seq[3] << 8) | seq[2]; rtllib_tkip_set_key()
681 tkey->rx_iv16 = (seq[1] << 8) | seq[0]; rtllib_tkip_set_key()
692 static int rtllib_tkip_get_key(void *key, int len, u8 *seq, void *priv) rtllib_tkip_get_key() argument
703 if (seq) { rtllib_tkip_get_key()
711 seq[0] = tkey->tx_iv16; rtllib_tkip_get_key()
712 seq[1] = tkey->tx_iv16 >> 8; rtllib_tkip_get_key()
713 seq[2] = tkey->tx_iv32; rtllib_tkip_get_key()
714 seq[3] = tkey->tx_iv32 >> 8; rtllib_tkip_get_key()
715 seq[4] = tkey->tx_iv32 >> 16; rtllib_tkip_get_key()
716 seq[5] = tkey->tx_iv32 >> 24; rtllib_tkip_get_key()
/linux-4.1.27/drivers/staging/rtl8192u/ieee80211/
H A Dieee80211_crypt_ccmp.c160 * SC with bits 4..15 (seq#) masked to zero ccmp_init_blocks()
374 static int ieee80211_ccmp_set_key(void *key, int len, u8 *seq, void *priv) ieee80211_ccmp_set_key() argument
387 if (seq) { ieee80211_ccmp_set_key()
388 data->rx_pn[0] = seq[5]; ieee80211_ccmp_set_key()
389 data->rx_pn[1] = seq[4]; ieee80211_ccmp_set_key()
390 data->rx_pn[2] = seq[3]; ieee80211_ccmp_set_key()
391 data->rx_pn[3] = seq[2]; ieee80211_ccmp_set_key()
392 data->rx_pn[4] = seq[1]; ieee80211_ccmp_set_key()
393 data->rx_pn[5] = seq[0]; ieee80211_ccmp_set_key()
405 static int ieee80211_ccmp_get_key(void *key, int len, u8 *seq, void *priv) ieee80211_ccmp_get_key() argument
416 if (seq) { ieee80211_ccmp_get_key()
417 seq[0] = data->tx_pn[5]; ieee80211_ccmp_get_key()
418 seq[1] = data->tx_pn[4]; ieee80211_ccmp_get_key()
419 seq[2] = data->tx_pn[3]; ieee80211_ccmp_get_key()
420 seq[3] = data->tx_pn[2]; ieee80211_ccmp_get_key()
421 seq[4] = data->tx_pn[1]; ieee80211_ccmp_get_key()
422 seq[5] = data->tx_pn[0]; ieee80211_ccmp_get_key()
H A Dieee80211_crypt_tkip.c655 static int ieee80211_tkip_set_key(void *key, int len, u8 *seq, void *priv) ieee80211_tkip_set_key() argument
676 if (seq) { ieee80211_tkip_set_key()
677 tkey->rx_iv32 = (seq[5] << 24) | (seq[4] << 16) | ieee80211_tkip_set_key()
678 (seq[3] << 8) | seq[2]; ieee80211_tkip_set_key()
679 tkey->rx_iv16 = (seq[1] << 8) | seq[0]; ieee80211_tkip_set_key()
690 static int ieee80211_tkip_get_key(void *key, int len, u8 *seq, void *priv) ieee80211_tkip_get_key() argument
701 if (seq) { ieee80211_tkip_get_key()
708 seq[0] = tkey->tx_iv16; ieee80211_tkip_get_key()
709 seq[1] = tkey->tx_iv16 >> 8; ieee80211_tkip_get_key()
710 seq[2] = tkey->tx_iv32; ieee80211_tkip_get_key()
711 seq[3] = tkey->tx_iv32 >> 8; ieee80211_tkip_get_key()
712 seq[4] = tkey->tx_iv32 >> 16; ieee80211_tkip_get_key()
713 seq[5] = tkey->tx_iv32 >> 24; ieee80211_tkip_get_key()
/linux-4.1.27/include/net/sctp/
H A Dcommand.h214 static inline int sctp_init_cmd_seq(sctp_cmd_seq_t *seq) sctp_init_cmd_seq() argument
217 seq->last_used_slot = seq->cmds + SCTP_MAX_NUM_COMMANDS; sctp_init_cmd_seq()
218 seq->next_cmd = seq->last_used_slot; sctp_init_cmd_seq()
228 static inline void sctp_add_cmd_sf(sctp_cmd_seq_t *seq, sctp_verb_t verb, sctp_add_cmd_sf() argument
231 sctp_cmd_t *cmd = seq->last_used_slot - 1; sctp_add_cmd_sf()
233 BUG_ON(cmd < seq->cmds); sctp_add_cmd_sf()
237 seq->last_used_slot = cmd; sctp_add_cmd_sf()
243 static inline sctp_cmd_t *sctp_next_cmd(sctp_cmd_seq_t *seq) sctp_next_cmd() argument
245 if (seq->next_cmd <= seq->last_used_slot) sctp_next_cmd()
248 return --seq->next_cmd; sctp_next_cmd()
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/
H A Dfeature.c50 * @seq: sequence for debugfs entry.
53 static int brcmf_feat_debugfs_read(struct seq_file *seq, void *data) brcmf_feat_debugfs_read() argument
55 struct brcmf_bus *bus_if = dev_get_drvdata(seq->private); brcmf_feat_debugfs_read()
60 seq_printf(seq, "Features: %08x\n", feats); brcmf_feat_debugfs_read()
63 seq_printf(seq, "\t%s\n", brcmf_feat_names[id]); brcmf_feat_debugfs_read()
64 seq_printf(seq, "\nQuirks: %08x\n", quirks); brcmf_feat_debugfs_read()
67 seq_printf(seq, "\t%s\n", brcmf_quirk_names[id]); brcmf_feat_debugfs_read()
71 static int brcmf_feat_debugfs_read(struct seq_file *seq, void *data) brcmf_feat_debugfs_read() argument
H A Ddebug.c44 static int brcmf_debugfs_chipinfo_read(struct seq_file *seq, void *data) brcmf_debugfs_chipinfo_read() argument
46 struct brcmf_bus *bus = dev_get_drvdata(seq->private); brcmf_debugfs_chipinfo_read()
48 seq_printf(seq, "chip: %x(%u) rev %u\n", brcmf_debugfs_chipinfo_read()
78 int (*read)(struct seq_file *seq, void *data);
98 int (*read_fn)(struct seq_file *seq, void *data)) brcmf_debugfs_add_entry()
97 brcmf_debugfs_add_entry(struct brcmf_pub *drvr, const char *fn, int (*read_fn)(struct seq_file *seq, void *data)) brcmf_debugfs_add_entry() argument
/linux-4.1.27/net/phonet/
H A Dsocket.c540 static struct sock *pn_sock_get_idx(struct seq_file *seq, loff_t pos) pn_sock_get_idx() argument
542 struct net *net = seq_file_net(seq); pn_sock_get_idx()
560 static struct sock *pn_sock_get_next(struct seq_file *seq, struct sock *sk) pn_sock_get_next() argument
562 struct net *net = seq_file_net(seq); pn_sock_get_next()
571 static void *pn_sock_seq_start(struct seq_file *seq, loff_t *pos) __acquires()
575 return *pos ? pn_sock_get_idx(seq, *pos - 1) : SEQ_START_TOKEN; __acquires()
578 static void *pn_sock_seq_next(struct seq_file *seq, void *v, loff_t *pos) pn_sock_seq_next() argument
583 sk = pn_sock_get_idx(seq, 0); pn_sock_seq_next()
585 sk = pn_sock_get_next(seq, v); pn_sock_seq_next()
590 static void pn_sock_seq_stop(struct seq_file *seq, void *v) __releases()
596 static int pn_sock_seq_show(struct seq_file *seq, void *v) pn_sock_seq_show() argument
598 seq_setwidth(seq, 127); pn_sock_seq_show()
600 seq_puts(seq, "pt loc rem rs st tx_queue rx_queue " pn_sock_seq_show()
606 seq_printf(seq, "%2d %04X:%04X:%02X %02X %08X:%08X %5d %lu " pn_sock_seq_show()
611 from_kuid_munged(seq_user_ns(seq), sock_i_uid(sk)), pn_sock_seq_show()
616 seq_pad(seq, '\n'); pn_sock_seq_show()
729 static struct sock **pn_res_get_idx(struct seq_file *seq, loff_t pos) pn_res_get_idx() argument
731 struct net *net = seq_file_net(seq); pn_res_get_idx()
747 static struct sock **pn_res_get_next(struct seq_file *seq, struct sock **sk) pn_res_get_next() argument
749 struct net *net = seq_file_net(seq); pn_res_get_next()
760 static void *pn_res_seq_start(struct seq_file *seq, loff_t *pos) __acquires()
764 return *pos ? pn_res_get_idx(seq, *pos - 1) : SEQ_START_TOKEN; __acquires()
767 static void *pn_res_seq_next(struct seq_file *seq, void *v, loff_t *pos) pn_res_seq_next() argument
772 sk = pn_res_get_idx(seq, 0); pn_res_seq_next()
774 sk = pn_res_get_next(seq, v); pn_res_seq_next()
779 static void pn_res_seq_stop(struct seq_file *seq, void *v) __releases()
785 static int pn_res_seq_show(struct seq_file *seq, void *v) pn_res_seq_show() argument
787 seq_setwidth(seq, 63); pn_res_seq_show()
789 seq_puts(seq, "rs uid inode"); pn_res_seq_show()
794 seq_printf(seq, "%02X %5u %lu", pn_res_seq_show()
796 from_kuid_munged(seq_user_ns(seq), sock_i_uid(sk)), pn_res_seq_show()
799 seq_pad(seq, '\n'); pn_res_seq_show()
H A Dsysctl.c53 unsigned int seq; phonet_get_local_port_range() local
56 seq = read_seqbegin(&local_port_range_lock); phonet_get_local_port_range()
61 } while (read_seqretry(&local_port_range_lock, seq)); phonet_get_local_port_range()
/linux-4.1.27/drivers/net/wireless/ath/wil6210/
H A Drx_reorder.c38 static inline int reorder_index(struct wil_tid_ampdu_rx *r, u16 seq) reorder_index() argument
40 return seq_sub(seq, r->ssn) % r->buf_size; reorder_index()
101 u16 seq = wil_rxdesc_seq(d); variable
109 mid, cid, tid, seq, mcast);
136 if (seq != r->head_seq_num) {
137 if (seq_less(seq, r->head_seq_num)) {
140 seq, r->head_seq_num);
147 seq, r->head_seq_num);
148 r->head_seq_num = seq;
149 r->ssn = seq;
154 if (seq_less(seq, r->head_seq_num)) {
155 r->ssn_last_drop = seq;
164 if (!seq_less(seq, r->head_seq_num + r->buf_size)) {
165 hseq = seq_inc(seq_sub(seq, r->buf_size));
172 index = reorder_index(r, seq);
186 if (seq == r->head_seq_num && r->stored_mpdu_num == 0) {
H A Dtrace.h169 __field(u16, seq)
180 __entry->seq = wil_rxdesc_seq(d);
183 TP_printk("index %d len %d mid %d cid %d tid %d mcs %d seq 0x%03x"
186 __entry->seq, __entry->type, __entry->subtype)
/linux-4.1.27/arch/x86/um/shared/sysdep/
H A Dptrace_32.h11 static inline void update_debugregs(int seq) {} argument
/linux-4.1.27/net/batman-adv/
H A Dbridge_loop_avoidance.h28 int batadv_bla_claim_table_seq_print_text(struct seq_file *seq, void *offset);
29 int batadv_bla_backbone_table_seq_print_text(struct seq_file *seq,
64 static inline int batadv_bla_claim_table_seq_print_text(struct seq_file *seq, batadv_bla_claim_table_seq_print_text() argument
70 static inline int batadv_bla_backbone_table_seq_print_text(struct seq_file *seq, batadv_bla_backbone_table_seq_print_text() argument
/linux-4.1.27/arch/x86/vdso/
H A Dvclock_gettime.c232 unsigned long seq; do_realtime() local
237 seq = gtod_read_begin(gtod); do_realtime()
243 } while (unlikely(gtod_read_retry(gtod, seq))); do_realtime()
253 unsigned long seq; do_monotonic() local
258 seq = gtod_read_begin(gtod); do_monotonic()
264 } while (unlikely(gtod_read_retry(gtod, seq))); do_monotonic()
274 unsigned long seq; do_realtime_coarse() local
276 seq = gtod_read_begin(gtod); do_realtime_coarse()
279 } while (unlikely(gtod_read_retry(gtod, seq))); do_realtime_coarse()
284 unsigned long seq; do_monotonic_coarse() local
286 seq = gtod_read_begin(gtod); do_monotonic_coarse()
289 } while (unlikely(gtod_read_retry(gtod, seq))); do_monotonic_coarse()
/linux-4.1.27/drivers/target/tcm_fc/
H A Dtfc_io.c89 ep = fc_seq_exch(cmd->seq); ft_queue_data_in()
91 cmd->seq = lport->tt.seq_start_next(cmd->seq); ft_queue_data_in()
110 struct fc_seq *seq = cmd->seq; ft_queue_data_in() local
112 if (!seq) { ft_queue_data_in()
183 error = lport->tt.seq_send(lport, seq, fp); ft_queue_data_in()
218 struct fc_seq *seq = cmd->seq; ft_recv_write_data() local
240 ep = fc_seq_exch(seq); ft_recv_write_data()
350 struct fc_seq *seq; ft_invl_hw_context() local
355 seq = cmd->seq; ft_invl_hw_context()
358 if (cmd->was_ddp_setup && seq) { ft_invl_hw_context()
359 ep = fc_seq_exch(seq); ft_invl_hw_context()
H A Dtfc_cmd.c60 pr_debug("%s: cmd %p sess %p seq %p se_cmd %p\n", _ft_dump_cmd()
61 caller, cmd, cmd->sess, cmd->seq, se_cmd); _ft_dump_cmd()
73 sp = cmd->seq; _ft_dump_cmd()
136 ep = fc_seq_exch(cmd->seq); ft_queue_status()
171 cmd->seq = lport->tt.seq_start_next(cmd->seq); ft_queue_status()
175 rc = lport->tt.seq_send(lport, cmd->seq, fp); ft_queue_status()
187 lport->tt.exch_done(cmd->seq); ft_queue_status()
215 ep = fc_seq_exch(cmd->seq); ft_write_pending()
225 cmd->seq = lport->tt.seq_start_next(cmd->seq); ft_write_pending()
246 lport->tt.seq_send(lport, cmd->seq, fp); ft_write_pending()
256 return fc_seq_exch(cmd->seq)->rxid; ft_get_task_tag()
274 cmd->seq = NULL; ft_recv_seq()
468 cmd->seq = lport->tt.seq_assign(lport, fp); ft_recv_cmd()
469 if (!cmd->seq) { ft_recv_cmd()
480 pr_debug("cmd or seq allocation failure - sending BUSY\n"); ft_recv_cmd()
570 fc_seq_exch(cmd->seq)->lp->tt.seq_set_resp(cmd->seq, ft_recv_seq, cmd); ft_send_work()
/linux-4.1.27/drivers/staging/lustre/lustre/osc/
H A Dlproc_osc.c584 static int osc_rpc_stats_seq_show(struct seq_file *seq, void *v) osc_rpc_stats_seq_show() argument
587 struct obd_device *dev = seq->private; osc_rpc_stats_seq_show()
596 seq_printf(seq, "snapshot_time: %lu.%lu (secs.usecs)\n", osc_rpc_stats_seq_show()
598 seq_printf(seq, "read RPCs in flight: %d\n", osc_rpc_stats_seq_show()
600 seq_printf(seq, "write RPCs in flight: %d\n", osc_rpc_stats_seq_show()
602 seq_printf(seq, "pending write pages: %d\n", osc_rpc_stats_seq_show()
604 seq_printf(seq, "pending read pages: %d\n", osc_rpc_stats_seq_show()
607 seq_puts(seq, "\n\t\t\tread\t\t\twrite\n"); osc_rpc_stats_seq_show()
608 seq_puts(seq, "pages per rpc rpcs % cum % |"); osc_rpc_stats_seq_show()
609 seq_puts(seq, " rpcs % cum %\n"); osc_rpc_stats_seq_show()
621 seq_printf(seq, "%d:\t\t%10lu %3lu %3lu | %10lu %3lu %3lu\n", osc_rpc_stats_seq_show()
630 seq_puts(seq, "\n\t\t\tread\t\t\twrite\n"); osc_rpc_stats_seq_show()
631 seq_puts(seq, "rpcs in flight rpcs % cum % |"); osc_rpc_stats_seq_show()
632 seq_puts(seq, " rpcs % cum %\n"); osc_rpc_stats_seq_show()
644 seq_printf(seq, "%d:\t\t%10lu %3lu %3lu | %10lu %3lu %3lu\n", osc_rpc_stats_seq_show()
653 seq_puts(seq, "\n\t\t\tread\t\t\twrite\n"); osc_rpc_stats_seq_show()
654 seq_puts(seq, "offset rpcs % cum % |"); osc_rpc_stats_seq_show()
655 seq_puts(seq, " rpcs % cum %\n"); osc_rpc_stats_seq_show()
667 seq_printf(seq, "%d:\t\t%10lu %3lu %3lu | %10lu %3lu %3lu\n", osc_rpc_stats_seq_show()
685 struct seq_file *seq = file->private_data; osc_rpc_stats_seq_write() local
686 struct obd_device *dev = seq->private; osc_rpc_stats_seq_write()
701 static int osc_stats_seq_show(struct seq_file *seq, void *v) osc_stats_seq_show() argument
704 struct obd_device *dev = seq->private; osc_stats_seq_show()
709 seq_printf(seq, "snapshot_time: %lu.%lu (secs.usecs)\n", osc_stats_seq_show()
711 seq_printf(seq, "lockless_write_bytes\t\t%llu\n", osc_stats_seq_show()
713 seq_printf(seq, "lockless_read_bytes\t\t%llu\n", osc_stats_seq_show()
715 seq_printf(seq, "lockless_truncate\t\t%llu\n", osc_stats_seq_show()
724 struct seq_file *seq = file->private_data; osc_stats_seq_write() local
725 struct obd_device *dev = seq->private; osc_stats_seq_write()
/linux-4.1.27/drivers/video/backlight/
H A Dlms283gf05.c107 const struct lms283gf05_seq *seq, int sz) lms283gf05_toggle()
115 buf[2] = seq[i].reg; lms283gf05_toggle()
119 buf[1] = seq[i].value >> 8; lms283gf05_toggle()
120 buf[2] = seq[i].value & 0xff; lms283gf05_toggle()
123 mdelay(seq[i].delay); lms283gf05_toggle()
106 lms283gf05_toggle(struct spi_device *spi, const struct lms283gf05_seq *seq, int sz) lms283gf05_toggle() argument
/linux-4.1.27/drivers/staging/lustre/lustre/include/
H A Dlustre_fid.h188 * seq allocation pool size.
294 const __u64 seq = fid_seq(fid); fid_is_namespace_visible() local
299 (fid_seq_is_norm(seq) || fid_seq_is_igif(seq))) || fid_is_namespace_visible()
303 static inline int fid_seq_in_fldb(__u64 seq) fid_seq_in_fldb() argument
305 return fid_seq_is_igif(seq) || fid_seq_is_norm(seq) || fid_seq_in_fldb()
306 fid_seq_is_root(seq) || fid_seq_is_dot(seq); fid_seq_in_fldb()
309 static inline void lu_last_id_fid(struct lu_fid *fid, __u64 seq) lu_last_id_fid() argument
311 if (fid_seq_is_mdt0(seq)) { lu_last_id_fid()
314 LASSERTF(fid_seq_is_norm(seq) || fid_seq_is_echo(seq) || lu_last_id_fid()
315 fid_seq_is_idif(seq), "%#llx\n", seq); lu_last_id_fid() local
316 fid->f_seq = seq; lu_last_id_fid()
322 /* seq client type */
351 /* This holds last allocated fid in last obtained seq */
358 * Service uuid, passed from MDT + seq name to form unique seq name to
382 /* keeps highwater in lsr_end for seq allocation algorithm */
387 * Device for server side seq manager needs (saving sequences to backing
392 /* /seq file object device */
408 * Service uuid, passed from MDT + seq name to form unique seq name to
436 int seq_server_init(struct lu_server_seq *seq,
443 void seq_server_fini(struct lu_server_seq *seq,
446 int seq_server_alloc_super(struct lu_server_seq *seq,
450 int seq_server_alloc_meta(struct lu_server_seq *seq,
454 int seq_server_set_cli(struct lu_server_seq *seq,
459 int seq_client_init(struct lu_client_seq *seq,
465 void seq_client_fini(struct lu_client_seq *seq);
467 void seq_client_flush(struct lu_client_seq *seq);
469 int seq_client_alloc_fid(const struct lu_env *env, struct lu_client_seq *seq,
471 int seq_client_get_seq(const struct lu_env *env, struct lu_client_seq *seq,
567 * Build DLM resource name from object id & seq, which will be removed
670 __u64 seq; fid_flatten() local
677 seq = fid_seq(fid); fid_flatten()
679 ino = (seq << 24) + ((seq >> 24) & 0xffffff0000ULL) + fid_oid(fid); fid_flatten()
696 __u64 seq; fid_flatten32() local
703 seq = fid_seq(fid) - FID_SEQ_START; fid_flatten32()
710 ino = ((seq & 0x000fffffULL) << 12) + ((seq >> 8) & 0xfffff000) + fid_flatten32()
711 (seq >> (64 - (40-8)) & 0xffffff00) + fid_flatten32()
/linux-4.1.27/drivers/md/
H A Ddm-log-userspace-transfer.c46 uint32_t seq; member in struct:receiving_pkg
66 msg->seq = tfr->seq; dm_ulog_sendto_server()
84 uint32_t rtn_seq = (msg) ? msg->seq : (tfr) ? tfr->seq : 0; fill_pkg()
98 if (rtn_seq != pkg->seq) fill_pkg()
145 (unsigned)sizeof(*tfr), msg->len, msg->seq); cn_ulog_callback()
204 tfr->seq = dm_ulog_seq++; dm_consult_userspace()
219 pkg.seq = tfr->seq; dm_consult_userspace()
248 request_type, pkg.seq); dm_consult_userspace()
H A Dfaulty.c229 static void status(struct seq_file *seq, struct mddev *mddev) status() argument
235 seq_printf(seq, " WriteTransient=%d(%d)", status()
239 seq_printf(seq, " ReadTransient=%d(%d)", status()
243 seq_printf(seq, " WritePersistent=%d(%d)", status()
247 seq_printf(seq, " ReadPersistent=%d(%d)", status()
252 seq_printf(seq, " ReadFixable=%d(%d)", status()
256 seq_printf(seq, " WriteAll"); status()
258 seq_printf(seq, " nfaults=%d", conf->nfaults); status()
/linux-4.1.27/arch/x86/kernel/apic/
H A Dhw_nmi.c39 struct seq_buf seq; member in struct:nmi_seq_buf
83 seq_buf_init(&s->seq, s->buffer, NMI_BUF_SIZE); for_each_cpu()
108 len = seq_buf_used(&s->seq);
146 unsigned int len = seq_buf_used(&s->seq); nmi_vprintk()
148 seq_buf_vprintf(&s->seq, fmt, args); nmi_vprintk()
149 return seq_buf_used(&s->seq) - len; nmi_vprintk()
162 /* Replace printk to write into the NMI seq */ arch_trigger_all_cpu_backtrace_handler()
/linux-4.1.27/Documentation/connector/
H A Ducon.c58 static __u32 seq; variable
71 nlh->nlmsg_seq = seq++; netlink_send()
79 ulog("%s: [%08x.%08x] len=%u, seq=%u, ack=%u.\n", netlink_send()
80 __func__, msg->id.idx, msg->id.val, msg->len, msg->seq, msg->ack); netlink_send()
186 data->seq = seq++; main()
240 ctime(&tm), data->id.idx, data->id.val, data->seq, data->ack); main()
H A Dcn_test.c40 pr_info("%s: %lu: idx=%x, val=%x, seq=%u, ack=%u, len=%d: %s.\n", cn_test_callback()
42 msg->seq, msg->ack, msg->len, cn_test_callback()
84 msg->seq = 0x123;
139 m->seq = cn_test_timer_counter; cn_test_timer_func()
/linux-4.1.27/net/ax25/
H A Dax25_uid.c150 static void *ax25_uid_seq_start(struct seq_file *seq, loff_t *pos) __acquires()
157 static void *ax25_uid_seq_next(struct seq_file *seq, void *v, loff_t *pos) ax25_uid_seq_next() argument
162 static void ax25_uid_seq_stop(struct seq_file *seq, void *v) __releases()
168 static int ax25_uid_seq_show(struct seq_file *seq, void *v) ax25_uid_seq_show() argument
173 seq_printf(seq, "Policy: %d\n", ax25_uid_policy); ax25_uid_seq_show()
178 seq_printf(seq, "%6d %s\n", ax25_uid_seq_show()
179 from_kuid_munged(seq_user_ns(seq), pt->uid), ax25_uid_seq_show()
H A Dax25_route.c252 static void *ax25_rt_seq_start(struct seq_file *seq, loff_t *pos) __acquires()
271 static void *ax25_rt_seq_next(struct seq_file *seq, void *v, loff_t *pos) ax25_rt_seq_next() argument
278 static void ax25_rt_seq_stop(struct seq_file *seq, void *v) __releases()
284 static int ax25_rt_seq_show(struct seq_file *seq, void *v) ax25_rt_seq_show() argument
289 seq_puts(seq, "callsign dev mode digipeaters\n"); ax25_rt_seq_show()
300 seq_printf(seq, "%-9s %-4s", ax25_rt_seq_show()
306 seq_puts(seq, " vc"); ax25_rt_seq_show()
309 seq_puts(seq, " dg"); ax25_rt_seq_show()
312 seq_puts(seq, " *"); ax25_rt_seq_show()
318 seq_printf(seq, " %s", ax25_rt_seq_show()
321 seq_puts(seq, "\n"); ax25_rt_seq_show()
/linux-4.1.27/net/bluetooth/
H A Daf_bluetooth.c579 static void *bt_seq_start(struct seq_file *seq, loff_t *pos)
580 __acquires(seq->private->l->lock)
582 struct bt_seq_state *s = seq->private;
589 static void *bt_seq_next(struct seq_file *seq, void *v, loff_t *pos) bt_seq_next() argument
591 struct bt_seq_state *s = seq->private; bt_seq_next()
597 static void bt_seq_stop(struct seq_file *seq, void *v)
598 __releases(seq->private->l->lock)
600 struct bt_seq_state *s = seq->private;
606 static int bt_seq_show(struct seq_file *seq, void *v) bt_seq_show() argument
608 struct bt_seq_state *s = seq->private; bt_seq_show()
612 seq_puts(seq ,"sk RefCnt Rmem Wmem User Inode Parent"); bt_seq_show()
615 seq_putc(seq, ' '); bt_seq_show()
616 l->custom_seq_show(seq, v); bt_seq_show()
619 seq_putc(seq, '\n'); bt_seq_show()
624 seq_printf(seq, bt_seq_show()
630 from_kuid(seq_user_ns(seq), sock_i_uid(sk)), bt_seq_show()
635 seq_putc(seq, ' '); bt_seq_show()
636 l->custom_seq_show(seq, v); bt_seq_show()
639 seq_putc(seq, '\n'); bt_seq_show()
/linux-4.1.27/net/irda/
H A Ddiscovery.c332 static void *discovery_seq_start(struct seq_file *seq, loff_t *pos) discovery_seq_start() argument
338 static void *discovery_seq_next(struct seq_file *seq, void *v, loff_t *pos) discovery_seq_next() argument
346 static void discovery_seq_stop(struct seq_file *seq, void *v) discovery_seq_stop() argument
351 static int discovery_seq_show(struct seq_file *seq, void *v) discovery_seq_show() argument
354 seq_puts(seq, "IrLMP: Discovery log:\n\n"); discovery_seq_show()
358 seq_printf(seq, "nickname: %s, hint: 0x%02x%02x", discovery_seq_show()
364 seq_puts(seq, "PnP Compatible "); discovery_seq_show()
366 seq_puts(seq, "PDA/Palmtop "); discovery_seq_show()
368 seq_puts(seq, "Computer "); discovery_seq_show()
370 seq_puts(seq, "Printer "); discovery_seq_show()
372 seq_puts(seq, "Modem "); discovery_seq_show()
374 seq_puts(seq, "Fax "); discovery_seq_show()
376 seq_puts(seq, "LAN Access "); discovery_seq_show()
379 seq_puts(seq, "Telephony "); discovery_seq_show()
381 seq_puts(seq, "File Server "); discovery_seq_show()
383 seq_puts(seq, "IrCOMM "); discovery_seq_show()
385 seq_puts(seq, "IrOBEX "); discovery_seq_show()
387 seq_printf(seq,", saddr: 0x%08x, daddr: 0x%08x\n\n", discovery_seq_show()
391 seq_putc(seq, '\n'); discovery_seq_show()
H A Dirlap.c1073 static void *irlap_seq_start(struct seq_file *seq, loff_t *pos) irlap_seq_start() argument
1075 struct irlap_iter_state *iter = seq->private; irlap_seq_start()
1092 static void *irlap_seq_next(struct seq_file *seq, void *v, loff_t *pos) irlap_seq_next() argument
1094 struct irlap_iter_state *iter = seq->private; irlap_seq_next()
1101 static void irlap_seq_stop(struct seq_file *seq, void *v) irlap_seq_stop() argument
1106 static int irlap_seq_show(struct seq_file *seq, void *v) irlap_seq_show() argument
1108 const struct irlap_iter_state *iter = seq->private; irlap_seq_show()
1113 seq_printf(seq, "irlap%d ", iter->id); irlap_seq_show()
1114 seq_printf(seq, "state: %s\n", irlap_seq_show()
1117 seq_printf(seq, " device name: %s, ", irlap_seq_show()
1119 seq_printf(seq, "hardware name: %s\n", self->hw_name); irlap_seq_show()
1121 seq_printf(seq, " caddr: %#02x, ", self->caddr); irlap_seq_show()
1122 seq_printf(seq, "saddr: %#08x, ", self->saddr); irlap_seq_show()
1123 seq_printf(seq, "daddr: %#08x\n", self->daddr); irlap_seq_show()
1125 seq_printf(seq, " win size: %d, ", irlap_seq_show()
1127 seq_printf(seq, "win: %d, ", self->window); irlap_seq_show()
1129 seq_printf(seq, "line capacity: %d, ", irlap_seq_show()
1131 seq_printf(seq, "bytes left: %d\n", self->bytes_left); irlap_seq_show()
1133 seq_printf(seq, " tx queue len: %d ", irlap_seq_show()
1135 seq_printf(seq, "win queue len: %d ", irlap_seq_show()
1137 seq_printf(seq, "rbusy: %s", self->remote_busy ? irlap_seq_show()
1139 seq_printf(seq, " mbusy: %s\n", self->media_busy ? irlap_seq_show()
1142 seq_printf(seq, " retrans: %d ", self->retry_count); irlap_seq_show()
1143 seq_printf(seq, "vs: %d ", self->vs); irlap_seq_show()
1144 seq_printf(seq, "vr: %d ", self->vr); irlap_seq_show()
1145 seq_printf(seq, "va: %d\n", self->va); irlap_seq_show()
1147 seq_printf(seq, " qos\tbps\tmaxtt\tdsize\twinsize\taddbofs\tmintt\tldisc\tcomp\n"); irlap_seq_show()
1149 seq_printf(seq, " tx\t%d\t", irlap_seq_show()
1151 seq_printf(seq, "%d\t", irlap_seq_show()
1153 seq_printf(seq, "%d\t", irlap_seq_show()
1155 seq_printf(seq, "%d\t", irlap_seq_show()
1157 seq_printf(seq, "%d\t", irlap_seq_show()
1159 seq_printf(seq, "%d\t", irlap_seq_show()
1161 seq_printf(seq, "%d\t", irlap_seq_show()
1163 seq_printf(seq, "\n"); irlap_seq_show()
1165 seq_printf(seq, " rx\t%d\t", irlap_seq_show()
1167 seq_printf(seq, "%d\t", irlap_seq_show()
1169 seq_printf(seq, "%d\t", irlap_seq_show()
1171 seq_printf(seq, "%d\t", irlap_seq_show()
1173 seq_printf(seq, "%d\t", irlap_seq_show()
1175 seq_printf(seq, "%d\t", irlap_seq_show()
1177 seq_printf(seq, "%d\n", irlap_seq_show()
/linux-4.1.27/kernel/
H A Duser_namespace.c429 static int uid_m_show(struct seq_file *seq, void *v) uid_m_show() argument
431 struct user_namespace *ns = seq->private; uid_m_show()
436 lower_ns = seq_user_ns(seq); uid_m_show()
442 seq_printf(seq, "%10u %10u %10u\n", uid_m_show()
450 static int gid_m_show(struct seq_file *seq, void *v) gid_m_show() argument
452 struct user_namespace *ns = seq->private; gid_m_show()
457 lower_ns = seq_user_ns(seq); gid_m_show()
463 seq_printf(seq, "%10u %10u %10u\n", gid_m_show()
471 static int projid_m_show(struct seq_file *seq, void *v) projid_m_show() argument
473 struct user_namespace *ns = seq->private; projid_m_show()
478 lower_ns = seq_user_ns(seq); projid_m_show()
484 seq_printf(seq, "%10u %10u %10u\n", projid_m_show()
492 static void *m_start(struct seq_file *seq, loff_t *ppos, m_start() argument
504 static void *uid_m_start(struct seq_file *seq, loff_t *ppos) uid_m_start() argument
506 struct user_namespace *ns = seq->private; uid_m_start()
508 return m_start(seq, ppos, &ns->uid_map); uid_m_start()
511 static void *gid_m_start(struct seq_file *seq, loff_t *ppos) gid_m_start() argument
513 struct user_namespace *ns = seq->private; gid_m_start()
515 return m_start(seq, ppos, &ns->gid_map); gid_m_start()
518 static void *projid_m_start(struct seq_file *seq, loff_t *ppos) projid_m_start() argument
520 struct user_namespace *ns = seq->private; projid_m_start()
522 return m_start(seq, ppos, &ns->projid_map); projid_m_start()
525 static void *m_next(struct seq_file *seq, void *v, loff_t *pos) m_next() argument
528 return seq->op->start(seq, pos); m_next()
531 static void m_stop(struct seq_file *seq, void *v) m_stop() argument
599 struct seq_file *seq = file->private_data; map_write() local
600 struct user_namespace *ns = seq->private; map_write()
766 struct seq_file *seq = file->private_data; proc_uid_map_write() local
767 struct user_namespace *ns = seq->private; proc_uid_map_write()
768 struct user_namespace *seq_ns = seq_user_ns(seq); proc_uid_map_write()
783 struct seq_file *seq = file->private_data; proc_gid_map_write() local
784 struct user_namespace *ns = seq->private; proc_gid_map_write()
785 struct user_namespace *seq_ns = seq_user_ns(seq); proc_gid_map_write()
800 struct seq_file *seq = file->private_data; proc_projid_map_write() local
801 struct user_namespace *ns = seq->private; proc_projid_map_write()
802 struct user_namespace *seq_ns = seq_user_ns(seq); proc_projid_map_write()
853 int proc_setgroups_show(struct seq_file *seq, void *v) proc_setgroups_show() argument
855 struct user_namespace *ns = seq->private; proc_setgroups_show()
858 seq_printf(seq, "%s\n", proc_setgroups_show()
867 struct seq_file *seq = file->private_data; proc_setgroups_write() local
868 struct user_namespace *ns = seq->private; proc_setgroups_write()
/linux-4.1.27/drivers/staging/lustre/lustre/fld/
H A Dfld_request.c112 static int fld_rrb_hash(struct lu_client_fld *fld, u64 seq) fld_rrb_hash() argument
115 return do_div(seq, fld->lcf_count); fld_rrb_hash()
119 fld_rrb_scan(struct lu_client_fld *fld, u64 seq) fld_rrb_scan() argument
127 * the fld lookup requests(for seq on MDT0) should not be fld_rrb_scan()
129 if (fid_seq_is_norm(seq)) fld_rrb_scan()
130 hash = fld_rrb_hash(fld, seq); fld_rrb_scan()
148 CERROR("%s: Can't find target by hash %d (seq %#llx). Targets (%d):\n", fld_rrb_scan()
149 fld->lcf_name, hash, seq, fld->lcf_count); fld_rrb_scan()
183 fld_client_get_target(struct lu_client_fld *fld, u64 seq) fld_client_get_target() argument
190 target = fld->lcf_hash->fh_scan_func(fld, seq); fld_client_get_target()
194 CDEBUG(D_INFO, "%s: Found target (idx %llu) by seq %#llx\n", fld_client_get_target()
195 fld->lcf_name, target->ft_idx, seq); fld_client_get_target()
464 int fld_client_lookup(struct lu_client_fld *fld, u64 seq, u32 *mds, fld_client_lookup() argument
473 rc = fld_cache_lookup(fld->lcf_cache, seq, &res); fld_client_lookup()
480 target = fld_client_get_target(fld, seq); fld_client_lookup()
483 CDEBUG(D_INFO, "%s: Lookup fld entry (seq: %#llx) on target %s (idx %llu)\n", fld_client_lookup()
484 fld->lcf_name, seq, fld_target_name(target), target->ft_idx); fld_client_lookup()
486 res.lsr_start = seq; fld_client_lookup()
/linux-4.1.27/kernel/gcov/
H A Dgcc_3_4.c483 * @seq: seq_file handle
490 static int seq_write_gcov_u32(struct seq_file *seq, u32 v) seq_write_gcov_u32() argument
492 return seq_write(seq, &v, sizeof(v)); seq_write_gcov_u32()
497 * @seq: seq_file handle
505 static int seq_write_gcov_u64(struct seq_file *seq, u64 v) seq_write_gcov_u64() argument
511 return seq_write(seq, data, sizeof(data)); seq_write_gcov_u64()
517 * @seq: seq_file handle
521 int gcov_iter_write(struct gcov_iterator *iter, struct seq_file *seq) gcov_iter_write() argument
527 rc = seq_write_gcov_u32(seq, GCOV_DATA_MAGIC); gcov_iter_write()
530 rc = seq_write_gcov_u32(seq, iter->info->version); gcov_iter_write()
533 rc = seq_write_gcov_u32(seq, iter->info->stamp); gcov_iter_write()
536 rc = seq_write_gcov_u32(seq, GCOV_TAG_FUNCTION); gcov_iter_write()
539 rc = seq_write_gcov_u32(seq, 2); gcov_iter_write()
542 rc = seq_write_gcov_u32(seq, get_func(iter)->ident); gcov_iter_write()
545 rc = seq_write_gcov_u32(seq, get_func(iter)->checksum); gcov_iter_write()
548 rc = seq_write_gcov_u32(seq, gcov_iter_write()
552 rc = seq_write_gcov_u32(seq, gcov_iter_write()
556 rc = seq_write_gcov_u64(seq, gcov_iter_write()
H A Dfs.c94 static void *gcov_seq_start(struct seq_file *seq, loff_t *pos) gcov_seq_start() argument
98 gcov_iter_start(seq->private); gcov_seq_start()
100 if (gcov_iter_next(seq->private)) gcov_seq_start()
103 return seq->private; gcov_seq_start()
107 static void *gcov_seq_next(struct seq_file *seq, void *data, loff_t *pos) gcov_seq_next() argument
119 static int gcov_seq_show(struct seq_file *seq, void *data) gcov_seq_show() argument
123 if (gcov_iter_write(iter, seq)) gcov_seq_show()
128 static void gcov_seq_stop(struct seq_file *seq, void *data) gcov_seq_stop() argument
182 struct seq_file *seq; gcov_seq_open() local
201 seq = file->private_data; gcov_seq_open()
202 seq->private = iter; gcov_seq_open()
222 struct seq_file *seq; gcov_seq_release() local
224 seq = file->private_data; gcov_seq_release()
225 iter = seq->private; gcov_seq_release()
275 struct seq_file *seq; gcov_seq_write() local
279 seq = file->private_data; gcov_seq_write()
280 info = gcov_iter_get_info(seq->private); gcov_seq_write()
/linux-4.1.27/drivers/char/tpm/
H A Dtpm_eventlog.c224 struct seq_file *seq = file->private_data; tpm_bios_measurements_release() local
225 struct tpm_bios_log *log = seq->private; tpm_bios_measurements_release()
286 struct seq_file *seq; tpm_ascii_bios_measurements_open() local
295 /* now register seq file */ tpm_ascii_bios_measurements_open()
298 seq = file->private_data; tpm_ascii_bios_measurements_open()
299 seq->private = log; tpm_ascii_bios_measurements_open()
324 struct seq_file *seq; tpm_binary_bios_measurements_open() local
333 /* now register seq file */ tpm_binary_bios_measurements_open()
336 seq = file->private_data; tpm_binary_bios_measurements_open()
337 seq->private = log; tpm_binary_bios_measurements_open()
/linux-4.1.27/drivers/staging/lustre/lustre/llite/
H A Dlproc_llite.c574 struct seq_file *seq = file->private_data; ll_track_pid_seq_write() local
575 return ll_wr_track_id(buffer, count, seq->private, STATS_TRACK_PID); ll_track_pid_seq_write()
588 struct seq_file *seq = file->private_data; ll_track_ppid_seq_write() local
589 return ll_wr_track_id(buffer, count, seq->private, STATS_TRACK_PPID); ll_track_ppid_seq_write()
602 struct seq_file *seq = file->private_data; ll_track_gid_seq_write() local
603 return ll_wr_track_id(buffer, count, seq->private, STATS_TRACK_GID); ll_track_gid_seq_write()
816 struct seq_file *seq = file->private_data; ll_xattr_cache_seq_write() local
817 struct super_block *sb = seq->private; ll_xattr_cache_seq_write()
1136 struct seq_file *seq, int which) ll_display_extents_info()
1159 seq_printf(seq, "%4lu%c - %4lu%c%c: %14lu %4lu %4lu | %14lu %4lu %4lu\n", ll_display_extents_info()
1175 static int ll_rw_extents_stats_pp_seq_show(struct seq_file *seq, void *v) ll_rw_extents_stats_pp_seq_show() argument
1178 struct ll_sb_info *sbi = seq->private; ll_rw_extents_stats_pp_seq_show()
1185 seq_printf(seq, "disabled\n" ll_rw_extents_stats_pp_seq_show()
1189 seq_printf(seq, "snapshot_time: %lu.%lu (secs.usecs)\n", ll_rw_extents_stats_pp_seq_show()
1191 seq_printf(seq, "%15s %19s | %20s\n", " ", "read", "write"); ll_rw_extents_stats_pp_seq_show()
1192 seq_printf(seq, "%13s %14s %4s %4s | %14s %4s %4s\n", ll_rw_extents_stats_pp_seq_show()
1198 seq_printf(seq, "\nPID: %d\n", ll_rw_extents_stats_pp_seq_show()
1200 ll_display_extents_info(io_extents, seq, k); ll_rw_extents_stats_pp_seq_show()
1212 struct seq_file *seq = file->private_data; ll_rw_extents_stats_pp_seq_write() local
1213 struct ll_sb_info *sbi = seq->private; ll_rw_extents_stats_pp_seq_write()
1254 static int ll_rw_extents_stats_seq_show(struct seq_file *seq, void *v) ll_rw_extents_stats_seq_show() argument
1257 struct ll_sb_info *sbi = seq->private; ll_rw_extents_stats_seq_show()
1263 seq_printf(seq, "disabled\n" ll_rw_extents_stats_seq_show()
1267 seq_printf(seq, "snapshot_time: %lu.%lu (secs.usecs)\n", ll_rw_extents_stats_seq_show()
1270 seq_printf(seq, "%15s %19s | %20s\n", " ", "read", "write"); ll_rw_extents_stats_seq_show()
1271 seq_printf(seq, "%13s %14s %4s %4s | %14s %4s %4s\n", ll_rw_extents_stats_seq_show()
1275 ll_display_extents_info(io_extents, seq, LL_PROCESS_HIST_MAX); ll_rw_extents_stats_seq_show()
1285 struct seq_file *seq = file->private_data; ll_rw_extents_stats_seq_write() local
1286 struct ll_sb_info *sbi = seq->private; ll_rw_extents_stats_seq_write()
1430 static int ll_rw_offset_stats_seq_show(struct seq_file *seq, void *v) ll_rw_offset_stats_seq_show() argument
1433 struct ll_sb_info *sbi = seq->private; ll_rw_offset_stats_seq_show()
1441 seq_printf(seq, "disabled\n" ll_rw_offset_stats_seq_show()
1447 seq_printf(seq, "snapshot_time: %lu.%lu (secs.usecs)\n", ll_rw_offset_stats_seq_show()
1449 seq_printf(seq, "%3s %10s %14s %14s %17s %17s %14s\n", ll_rw_offset_stats_seq_show()
1455 seq_printf(seq, ll_rw_offset_stats_seq_show()
1468 seq_printf(seq, ll_rw_offset_stats_seq_show()
1487 struct seq_file *seq = file->private_data; ll_rw_offset_stats_seq_write() local
1488 struct ll_sb_info *sbi = seq->private; ll_rw_offset_stats_seq_write()
1135 ll_display_extents_info(struct ll_rw_extents_info *io_extents, struct seq_file *seq, int which) ll_display_extents_info() argument
H A Dvvp_dev.c394 #define seq_page_flag(seq, page, flag, has_flags) do { \
396 seq_printf(seq, "%s"#flag, has_flags ? "|" : ""); \
402 struct seq_file *seq, struct cl_page *page) vvp_pgcache_page_show()
410 seq_printf(seq, " %5i | %p %p %s %s %s %s | %p %lu/%u(%p) %lu %u [", vvp_pgcache_page_show()
422 seq_page_flag(seq, vmpage, locked, has_flags); vvp_pgcache_page_show()
423 seq_page_flag(seq, vmpage, error, has_flags); vvp_pgcache_page_show()
424 seq_page_flag(seq, vmpage, referenced, has_flags); vvp_pgcache_page_show()
425 seq_page_flag(seq, vmpage, uptodate, has_flags); vvp_pgcache_page_show()
426 seq_page_flag(seq, vmpage, dirty, has_flags); vvp_pgcache_page_show()
427 seq_page_flag(seq, vmpage, writeback, has_flags); vvp_pgcache_page_show()
428 seq_printf(seq, "%s]\n", has_flags ? "" : "-"); vvp_pgcache_page_show()
530 struct seq_file *seq; vvp_dump_pgcache_seq_open() local
535 seq = filp->private_data; vvp_dump_pgcache_seq_open()
536 seq->private = sbi; vvp_dump_pgcache_seq_open()
401 vvp_pgcache_page_show(const struct lu_env *env, struct seq_file *seq, struct cl_page *page) vvp_pgcache_page_show() argument
/linux-4.1.27/drivers/usb/storage/
H A Dkarma.c106 static unsigned char seq = 1; rio_karma_send_command() local
113 us->iobuf[6] = seq; rio_karma_send_command()
127 if (data->recv[5] == seq) rio_karma_send_command()
138 seq++; rio_karma_send_command()
139 if (seq == 0) rio_karma_send_command()
140 seq = 1; rio_karma_send_command()
/linux-4.1.27/fs/ext4/
H A Dmmp.c132 u32 seq = 0; kmmpd() local
156 if (++seq > EXT4_MMP_SEQ_MAX) kmmpd()
157 seq = 1; kmmpd()
159 mmp->mmp_seq = cpu_to_le32(seq); kmmpd()
276 u32 seq; ext4_multi_mount_protect() local
303 seq = le32_to_cpu(mmp->mmp_seq); ext4_multi_mount_protect()
304 if (seq == EXT4_MMP_SEQ_CLEAN) ext4_multi_mount_protect()
307 if (seq == EXT4_MMP_SEQ_FSCK) { ext4_multi_mount_protect()
329 if (seq != le32_to_cpu(mmp->mmp_seq)) { ext4_multi_mount_protect()
339 seq = mmp_new_seq(); ext4_multi_mount_protect()
340 mmp->mmp_seq = cpu_to_le32(seq); ext4_multi_mount_protect()
358 if (seq != le32_to_cpu(mmp->mmp_seq)) { ext4_multi_mount_protect()
/linux-4.1.27/drivers/scsi/cxgbi/cxgb4i/
H A Dcxgb4i.h35 __be32 seq; member in struct:cpl_rx_data_ddp
/linux-4.1.27/fs/reiserfs/
H A Dbitmap.c675 static void print_sep(struct seq_file *seq, int *first) print_sep() argument
678 seq_puts(seq, ":"); print_sep()
683 void show_alloc_options(struct seq_file *seq, struct super_block *s) show_alloc_options() argument
691 seq_puts(seq, ",alloc="); show_alloc_options()
694 print_sep(seq, &first); show_alloc_options()
696 seq_printf(seq, "concentrating_formatted_nodes=%d", show_alloc_options()
699 seq_puts(seq, "concentrating_formatted_nodes"); show_alloc_options()
702 print_sep(seq, &first); show_alloc_options()
704 seq_printf(seq, "displacing_large_files=%lu", show_alloc_options()
707 seq_puts(seq, "displacing_large_files"); show_alloc_options()
710 print_sep(seq, &first); show_alloc_options()
711 seq_puts(seq, "displacing_new_packing_localities"); show_alloc_options()
714 print_sep(seq, &first); show_alloc_options()
715 seq_puts(seq, "old_hashed_relocation"); show_alloc_options()
718 print_sep(seq, &first); show_alloc_options()
719 seq_puts(seq, "new_hashed_relocation"); show_alloc_options()
722 print_sep(seq, &first); show_alloc_options()
723 seq_puts(seq, "dirid_groups"); show_alloc_options()
726 print_sep(seq, &first); show_alloc_options()
727 seq_puts(seq, "oid_groups"); show_alloc_options()
730 print_sep(seq, &first); show_alloc_options()
731 seq_puts(seq, "packing_groups"); show_alloc_options()
734 print_sep(seq, &first); show_alloc_options()
735 seq_puts(seq, "hashed_formatted_nodes"); show_alloc_options()
738 print_sep(seq, &first); show_alloc_options()
739 seq_puts(seq, "skip_busy"); show_alloc_options()
742 print_sep(seq, &first); show_alloc_options()
743 seq_puts(seq, "hundredth_slices"); show_alloc_options()
746 print_sep(seq, &first); show_alloc_options()
747 seq_puts(seq, "old_way"); show_alloc_options()
750 print_sep(seq, &first); show_alloc_options()
751 seq_puts(seq, "displace_based_on_dirid"); show_alloc_options()
754 print_sep(seq, &first); show_alloc_options()
755 seq_printf(seq, "preallocmin=%d", show_alloc_options()
759 print_sep(seq, &first); show_alloc_options()
760 seq_printf(seq, "preallocsize=%d", show_alloc_options()
/linux-4.1.27/arch/arm64/mm/
H A Ddump.c71 struct seq_file *seq; member in struct:pg_state
180 seq_printf(st->seq, " %s", s); dump_prot()
194 seq_printf(st->seq, "---[ %s ]---\n", st->marker->name); note_page()
201 seq_printf(st->seq, "0x%16lx-0x%16lx ", note_page()
209 seq_printf(st->seq, "%9lu%c", delta, *unit); note_page()
213 seq_puts(st->seq, "\n"); note_page()
218 seq_printf(st->seq, "---[ %s ]---\n", st->marker->name); note_page()
228 seq_printf(st->seq, "---[ %s ]---\n", st->marker->name); note_page()
299 .seq = m, ptdump_show()
/linux-4.1.27/security/apparmor/
H A Dapparmorfs.c189 static int aa_fs_seq_show(struct seq_file *seq, void *v) aa_fs_seq_show() argument
191 struct aa_fs_entry *fs_file = seq->private; aa_fs_seq_show()
198 seq_printf(seq, "%s\n", fs_file->v.boolean ? "yes" : "no"); aa_fs_seq_show()
201 seq_printf(seq, "%s\n", fs_file->v.string); aa_fs_seq_show()
204 seq_printf(seq, "%#08lx\n", fs_file->v.u64); aa_fs_seq_show()
243 struct seq_file *seq = (struct seq_file *) file->private_data; aa_fs_seq_profile_release() local
244 if (seq) aa_fs_seq_profile_release()
245 aa_put_replacedby(seq->private); aa_fs_seq_profile_release()
249 static int aa_fs_seq_profname_show(struct seq_file *seq, void *v) aa_fs_seq_profname_show() argument
251 struct aa_replacedby *r = seq->private; aa_fs_seq_profname_show()
253 seq_printf(seq, "%s\n", profile->base.name); aa_fs_seq_profname_show()
272 static int aa_fs_seq_profmode_show(struct seq_file *seq, void *v) aa_fs_seq_profmode_show() argument
274 struct aa_replacedby *r = seq->private; aa_fs_seq_profmode_show()
276 seq_printf(seq, "%s\n", aa_profile_mode_names[profile->mode]); aa_fs_seq_profmode_show()
295 static int aa_fs_seq_profattach_show(struct seq_file *seq, void *v) aa_fs_seq_profattach_show() argument
297 struct aa_replacedby *r = seq->private; aa_fs_seq_profattach_show()
300 seq_printf(seq, "%s\n", profile->attach); aa_fs_seq_profattach_show()
302 seq_puts(seq, "<unknown>\n"); aa_fs_seq_profattach_show()
304 seq_printf(seq, "%s\n", profile->base.name); aa_fs_seq_profattach_show()
323 static int aa_fs_seq_hash_show(struct seq_file *seq, void *v) aa_fs_seq_hash_show() argument
325 struct aa_replacedby *r = seq->private; aa_fs_seq_hash_show()
331 seq_printf(seq, "%.2x", profile->hash[i]); aa_fs_seq_hash_show()
332 seq_puts(seq, "\n"); aa_fs_seq_hash_show()
/linux-4.1.27/fs/ceph/
H A Dsnap.c41 * provided by the MDS whenever a cap is issued, i.e., on open.) A 'seq'
325 /* do i actually need to update? not if my context seq build_snap_context()
326 matches realm seq, and my parents' does to. (this works build_snap_context()
330 realm->cached_context->seq == realm->seq && build_snap_context()
332 realm->cached_context->seq >= parent->cached_context->seq)) { build_snap_context()
333 dout("build_snap_context %llx %p: %p seq %lld (%u snaps)" build_snap_context()
336 realm->cached_context->seq, build_snap_context()
341 if (num == 0 && realm->seq == empty_snapc->seq) { build_snap_context()
357 snapc->seq = realm->seq; build_snap_context()
368 if (parent->cached_context->seq > snapc->seq) build_snap_context()
369 snapc->seq = parent->cached_context->seq; build_snap_context()
380 dout("build_snap_context %llx %p: %p seq %lld (%u snaps)\n", build_snap_context()
381 realm->ino, realm, snapc, snapc->seq, build_snap_context()
508 capsnap->follows = snapc->seq; ceph_queue_cap_snap()
541 " seq %llu used WR, now pending\n", inode, ceph_queue_cap_snap()
542 capsnap, snapc, snapc->seq); ceph_queue_cap_snap()
579 capsnap->context, capsnap->context->seq, __ceph_finish_cap_snap()
586 capsnap->context->seq, ceph_cap_string(capsnap->dirty), __ceph_finish_cap_snap()
680 if (le64_to_cpu(ri->seq) > realm->seq) { ceph_update_snap_trace()
682 realm->ino, realm, realm->seq, le64_to_cpu(ri->seq)); ceph_update_snap_trace()
684 realm->seq = le64_to_cpu(ri->seq); ceph_update_snap_trace()
705 dout("update_snap_trace %llx %p seq %lld new\n", ceph_update_snap_trace()
706 realm->ino, realm, realm->seq); ceph_update_snap_trace()
709 dout("update_snap_trace %llx %p seq %lld unchanged\n", ceph_update_snap_trace()
710 realm->ino, realm, realm->seq); ceph_update_snap_trace()
970 empty_snapc->seq = 1; ceph_snap_init()
H A Dcaps.c514 unsigned seq, unsigned mseq, u64 realmino, int flags, ceph_add_cap()
523 dout("add_cap %p mds%d cap %llx %s seq %d\n", inode, ceph_add_cap()
524 session->s_mds, cap_id, ceph_cap_string(issued), seq); ceph_add_cap()
559 * "ceph_seq_cmp(seq, cap->seq) <= 0" means we are processing ceph_add_cap()
563 if (ceph_seq_cmp(seq, cap->seq) <= 0) { ceph_add_cap()
566 seq = cap->seq; ceph_add_cap()
618 dout("add_cap inode %p (%llx.%llx) cap %p %s now %s seq %d mds%d\n", ceph_add_cap()
620 ceph_cap_string(issued|cap->issued), seq, mds); ceph_add_cap()
628 cap->seq = seq; ceph_add_cap()
629 cap->issue_seq = seq; ceph_add_cap()
980 u32 seq, u64 flush_tid, u32 issue_seq, u32 mseq, send_cap_msg()
995 " seq %u/%u mseq %u follows %lld size %llu/%llu" send_cap_msg()
999 seq, issue_seq, mseq, follows, size, max_size, send_cap_msg()
1016 fc->seq = cpu_to_le32(seq); send_cap_msg()
1078 item->seq = cpu_to_le32(issue_seq); __queue_cap_release()
1137 u64 seq, issue_seq, mseq, time_warp_seq, follows; variable
1209 follows = ci->i_head_snapc->seq;
1215 seq = cap->seq;
1240 op, keep, want, flushing, seq, flush_tid, issue_seq, mseq,
1442 * Add dirty inode to the flushing list. Assigned a seq number so we
1473 dout(" inode %p now flushing seq %lld\n", inode, __mark_caps_flushing()
1477 dout(" inode %p now flushing (more) seq %lld\n", inode, __mark_caps_flushing()
2411 inode, capsnap, capsnap->context->seq, ceph_put_wrbuffer_cap_refs()
2488 int seq = le32_to_cpu(grant->seq); variable
2503 dout("handle_cap_grant inode %p cap %p mds%d seq %d %s\n",
2504 inode, cap, mds, seq, ceph_cap_string(newcaps));
2514 * "ceph_seq_cmp(seq, cap->seq) <= 0" means we are processing a message
2517 if (ceph_seq_cmp(seq, cap->seq) <= 0) {
2520 seq = cap->seq;
2546 cap->seq = seq;
2735 unsigned seq = le32_to_cpu(m->seq); variable
2746 dout("handle_cap_flush_ack inode %p mds%d seq %d on %s cleaned %s,"
2748 inode, session->s_mds, seq, ceph_cap_string(dirty),
2850 int seq = le32_to_cpu(trunc->seq); variable
2861 dout("handle_cap_trunc inode %p mds%d seq %d to %lld seq %d\n",
2862 inode, mds, seq, truncate_size, truncate_seq);
2897 t_seq = le32_to_cpu(ph->seq); handle_cap_export()
2930 ceph_seq_cmp(tcap->seq, t_seq) < 0) { handle_cap_export()
2933 tcap->seq = t_seq - 1; handle_cap_export()
3012 unsigned seq = le32_to_cpu(im->seq); variable
3050 ceph_add_cap(inode, session, cap_id, -1, caps, wanted, seq, mseq,
3058 (ocap->seq != le32_to_cpu(ph->seq) ||
3060 pr_err("handle_cap_import: mismatched seq/mseq: "
3061 "ino (%llx.%llx) mds%d seq %d mseq %d "
3062 "importer mds%d has peer seq %d mseq %d\n",
3063 ceph_vinop(inode), peer, ocap->seq,
3064 ocap->mseq, mds, le32_to_cpu(ph->seq),
3097 u32 seq, mseq; ceph_handle_caps() local
3121 seq = le32_to_cpu(h->seq); ceph_handle_caps()
3167 dout(" mds%d seq %lld cap seq %u\n", session->s_mds, session->s_seq, ceph_handle_caps()
3168 (unsigned)seq); ceph_handle_caps()
3179 mseq, seq); ceph_handle_caps()
3404 rel->seq = cpu_to_le32(cap->seq); ceph_encode_inode_release()
3446 dout("encode_dentry_release %p mds%d seq %d\n", ceph_encode_dentry_release()
511 ceph_add_cap(struct inode *inode, struct ceph_mds_session *session, u64 cap_id, int fmode, unsigned issued, unsigned wanted, unsigned seq, unsigned mseq, u64 realmino, int flags, struct ceph_cap **new_cap) ceph_add_cap() argument
977 send_cap_msg(struct ceph_mds_session *session, u64 ino, u64 cid, int op, int caps, int wanted, int dirty, u32 seq, u64 flush_tid, u32 issue_seq, u32 mseq, u64 size, u64 max_size, struct timespec *mtime, struct timespec *atime, u64 time_warp_seq, kuid_t uid, kgid_t gid, umode_t mode, u64 xattr_version, struct ceph_buffer *xattrs_buf, u64 follows, bool inline_data) send_cap_msg() argument
/linux-4.1.27/block/
H A Dblk-flush.c115 return 1 << ffz(rq->flush.seq); blk_flush_cur_seq()
153 * @seq: sequences to complete (mask of %REQ_FSEQ_*, can be zero)
156 * @rq just completed @seq part of its flush sequence, record the
167 unsigned int seq, int error) blk_flush_complete_seq()
173 BUG_ON(rq->flush.seq & seq); blk_flush_complete_seq()
174 rq->flush.seq |= seq; blk_flush_complete_seq()
177 seq = blk_flush_cur_seq(rq); blk_flush_complete_seq()
179 seq = REQ_FSEQ_DONE; blk_flush_complete_seq()
181 switch (seq) { blk_flush_complete_seq()
244 unsigned int seq = blk_flush_cur_seq(rq); list_for_each_entry_safe() local
246 BUG_ON(seq != REQ_FSEQ_PREFLUSH && seq != REQ_FSEQ_POSTFLUSH); list_for_each_entry_safe()
247 queued |= blk_flush_complete_seq(rq, fq, seq, error); list_for_each_entry_safe()
165 blk_flush_complete_seq(struct request *rq, struct blk_flush_queue *fq, unsigned int seq, int error) blk_flush_complete_seq() argument
/linux-4.1.27/fs/hfs/
H A Dsuper.c133 static int hfs_show_options(struct seq_file *seq, struct dentry *root) hfs_show_options() argument
138 seq_show_option_n(seq, "creator", (char *)&sbi->s_creator, 4); hfs_show_options()
140 seq_show_option_n(seq, "type", (char *)&sbi->s_type, 4); hfs_show_options()
141 seq_printf(seq, ",uid=%u,gid=%u", hfs_show_options()
145 seq_printf(seq, ",file_umask=%o", sbi->s_file_umask); hfs_show_options()
147 seq_printf(seq, ",dir_umask=%o", sbi->s_dir_umask); hfs_show_options()
149 seq_printf(seq, ",part=%u", sbi->part); hfs_show_options()
151 seq_printf(seq, ",session=%u", sbi->session); hfs_show_options()
153 seq_printf(seq, ",codepage=%s", sbi->nls_disk->charset); hfs_show_options()
155 seq_printf(seq, ",iocharset=%s", sbi->nls_io->charset); hfs_show_options()
157 seq_printf(seq, ",quiet"); hfs_show_options()
/linux-4.1.27/net/dcb/
H A Ddcbnl.c199 static struct sk_buff *dcbnl_newmsg(int type, u8 cmd, u32 port, u32 seq, dcbnl_newmsg() argument
210 nlh = nlmsg_put(skb, port, seq, type, sizeof(*dcb), flags); dcbnl_newmsg()
225 u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_getstate()
236 u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_getpfccfg()
281 u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_getperm_hwaddr()
295 u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_getcap()
339 u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_getnumtcs()
385 u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_setnumtcs()
418 u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_getpfcstate()
428 u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_setpfcstate()
446 u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_getapp()
515 u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_setapp()
558 dcbnl_cee_notify(netdev, RTM_SETDCB, DCB_CMD_SAPP, seq, 0); dcbnl_setapp()
698 u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_pgtx_getcfg()
704 u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_pgrx_getcfg()
710 u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_setstate()
727 u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_setpfccfg()
758 u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_setall()
770 dcbnl_cee_notify(netdev, RTM_SETDCB, DCB_CMD_SET_ALL, seq, 0); dcbnl_setall()
776 u32 seq, struct nlattr **tb, struct sk_buff *skb, __dcbnl_pg_setcfg()
866 u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_pgtx_setcfg()
868 return __dcbnl_pg_setcfg(netdev, nlh, seq, tb, skb, 0); dcbnl_pgtx_setcfg()
872 u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_pgrx_setcfg()
874 return __dcbnl_pg_setcfg(netdev, nlh, seq, tb, skb, 1); dcbnl_pgrx_setcfg()
878 u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_bcn_getcfg()
939 u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_bcn_setcfg()
1363 u32 seq, u32 portid, int dcbx_ver) dcbnl_notify()
1374 skb = dcbnl_newmsg(event, cmd, portid, seq, 0, &nlh); dcbnl_notify()
1397 u32 seq, u32 portid) dcbnl_ieee_notify()
1399 return dcbnl_notify(dev, event, cmd, seq, portid, DCB_CAP_DCBX_VER_IEEE); dcbnl_ieee_notify()
1404 u32 seq, u32 portid) dcbnl_cee_notify()
1406 return dcbnl_notify(dev, event, cmd, seq, portid, DCB_CAP_DCBX_VER_CEE); dcbnl_cee_notify()
1417 u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_ieee_set()
1485 dcbnl_ieee_notify(netdev, RTM_SETDCB, DCB_CMD_IEEE_SET, seq, 0);
1490 u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_ieee_get()
1501 u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_ieee_del()
1539 dcbnl_ieee_notify(netdev, RTM_SETDCB, DCB_CMD_IEEE_DEL, seq, 0);
1546 u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_getdcbx()
1556 u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_setdcbx()
1573 u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_getfeatcfg()
1618 u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_setfeatcfg()
1655 u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_cee_get()
224 dcbnl_getstate(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_getstate() argument
235 dcbnl_getpfccfg(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_getpfccfg() argument
280 dcbnl_getperm_hwaddr(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_getperm_hwaddr() argument
294 dcbnl_getcap(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_getcap() argument
338 dcbnl_getnumtcs(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_getnumtcs() argument
384 dcbnl_setnumtcs(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_setnumtcs() argument
417 dcbnl_getpfcstate(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_getpfcstate() argument
427 dcbnl_setpfcstate(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_setpfcstate() argument
445 dcbnl_getapp(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_getapp() argument
514 dcbnl_setapp(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_setapp() argument
697 dcbnl_pgtx_getcfg(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_pgtx_getcfg() argument
703 dcbnl_pgrx_getcfg(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_pgrx_getcfg() argument
709 dcbnl_setstate(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_setstate() argument
726 dcbnl_setpfccfg(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_setpfccfg() argument
757 dcbnl_setall(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_setall() argument
775 __dcbnl_pg_setcfg(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb, int dir) __dcbnl_pg_setcfg() argument
865 dcbnl_pgtx_setcfg(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_pgtx_setcfg() argument
871 dcbnl_pgrx_setcfg(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_pgrx_setcfg() argument
877 dcbnl_bcn_getcfg(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_bcn_getcfg() argument
938 dcbnl_bcn_setcfg(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_bcn_setcfg() argument
1362 dcbnl_notify(struct net_device *dev, int event, int cmd, u32 seq, u32 portid, int dcbx_ver) dcbnl_notify() argument
1396 dcbnl_ieee_notify(struct net_device *dev, int event, int cmd, u32 seq, u32 portid) dcbnl_ieee_notify() argument
1403 dcbnl_cee_notify(struct net_device *dev, int event, int cmd, u32 seq, u32 portid) dcbnl_cee_notify() argument
1416 dcbnl_ieee_set(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_ieee_set() argument
1489 dcbnl_ieee_get(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_ieee_get() argument
1500 dcbnl_ieee_del(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_ieee_del() argument
1545 dcbnl_getdcbx(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_getdcbx() argument
1555 dcbnl_setdcbx(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_setdcbx() argument
1572 dcbnl_getfeatcfg(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_getfeatcfg() argument
1617 dcbnl_setfeatcfg(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_setfeatcfg() argument
1654 dcbnl_cee_get(struct net_device *netdev, struct nlmsghdr *nlh, u32 seq, struct nlattr **tb, struct sk_buff *skb) dcbnl_cee_get() argument
/linux-4.1.27/drivers/scsi/cxgbi/cxgb3i/
H A Dcxgb3i.h47 u32 seq; member in struct:cpl_iscsi_hdr_norss
57 u32 seq; member in struct:cpl_rx_data_ddp_norss
/linux-4.1.27/arch/arm/mm/
H A Ddump.c40 struct seq_file *seq; member in struct:pg_state
214 seq_printf(st->seq, " %s", s); dump_prot()
226 seq_printf(st->seq, "---[ %s ]---\n", st->marker->name); note_page()
233 seq_printf(st->seq, "0x%08lx-0x%08lx ", note_page()
241 seq_printf(st->seq, "%9lu%c", delta, *unit); note_page()
244 seq_printf(st->seq, "\n"); note_page()
249 seq_printf(st->seq, "---[ %s ]---\n", st->marker->name); note_page()
311 st.seq = m; walk_pgd()
/linux-4.1.27/fs/btrfs/
H A Ddelayed-ref.c115 if (ref1->seq < ref2->seq) comp_entry()
117 if (ref1->seq > ref2->seq) comp_entry()
283 struct btrfs_delayed_ref_node *ref, u64 seq) merge_ref()
295 if (seq && next->seq >= seq) merge_ref()
337 u64 seq = 0; btrfs_merge_delayed_refs() local
353 seq = elem->seq; btrfs_merge_delayed_refs()
363 /* We can't merge refs that are outside of our seq count */ btrfs_merge_delayed_refs()
364 if (seq && ref->seq >= seq) btrfs_merge_delayed_refs()
366 if (merge_ref(trans, delayed_refs, head, ref, seq)) btrfs_merge_delayed_refs()
375 u64 seq) btrfs_check_delayed_seq()
384 if (seq >= elem->seq) { btrfs_check_delayed_seq()
386 (u32)(seq >> 32), (u32)seq, btrfs_check_delayed_seq()
387 (u32)(elem->seq >> 32), (u32)elem->seq, btrfs_check_delayed_seq()
616 ref->seq = 0; add_delayed_ref_head()
665 u64 seq = 0; add_delayed_tree_ref() local
671 seq = atomic64_read(&fs_info->tree_mod_seq); add_delayed_tree_ref()
683 ref->seq = seq; add_delayed_tree_ref()
727 u64 seq = 0; add_delayed_data_ref() local
735 seq = atomic64_read(&fs_info->tree_mod_seq); add_delayed_data_ref()
746 ref->seq = seq; add_delayed_data_ref()
280 merge_ref(struct btrfs_trans_handle *trans, struct btrfs_delayed_ref_root *delayed_refs, struct btrfs_delayed_ref_head *head, struct btrfs_delayed_ref_node *ref, u64 seq) merge_ref() argument
373 btrfs_check_delayed_seq(struct btrfs_fs_info *fs_info, struct btrfs_delayed_ref_root *delayed_refs, u64 seq) btrfs_check_delayed_seq() argument
/linux-4.1.27/drivers/net/irda/
H A Dvlsi_ir.c163 static void vlsi_proc_pdev(struct seq_file *seq, struct pci_dev *pdev) vlsi_proc_pdev() argument
168 seq_printf(seq, "\n%s (vid/did: [%04x:%04x])\n", vlsi_proc_pdev()
170 seq_printf(seq, "pci-power-state: %u\n", (unsigned) pdev->current_state); vlsi_proc_pdev()
171 seq_printf(seq, "resources: irq=%u / io=0x%04x / dma_mask=0x%016Lx\n", vlsi_proc_pdev()
173 seq_printf(seq, "hw registers: "); vlsi_proc_pdev()
175 seq_printf(seq, "%02x", (unsigned)inb((iobase+i))); vlsi_proc_pdev()
176 seq_printf(seq, "\n"); vlsi_proc_pdev()
179 static void vlsi_proc_ndev(struct seq_file *seq, struct net_device *ndev) vlsi_proc_ndev() argument
187 seq_printf(seq, "\n%s link state: %s / %s / %s / %s\n", ndev->name, vlsi_proc_ndev()
196 seq_printf(seq, "\nhw-state:\n"); vlsi_proc_ndev()
198 seq_printf(seq, "IRMISC:%s%s%s uart%s", vlsi_proc_ndev()
204 seq_printf(seq, "0x%s\n", vlsi_proc_ndev()
209 seq_printf(seq, "CLKCTL: PLL %s%s%s / clock %s / wakeup %s\n", vlsi_proc_ndev()
216 seq_printf(seq, "MSTRPAGE: 0x%02x\n", (unsigned)byte); vlsi_proc_ndev()
219 seq_printf(seq, "IRINTR:%s%s%s%s%s%s%s%s\n", vlsi_proc_ndev()
229 seq_printf(seq, "RINGPTR: rx=%u / tx=%u\n", RINGPTR_GET_RX(word), RINGPTR_GET_TX(word)); vlsi_proc_ndev()
231 seq_printf(seq, "RINGBASE: busmap=0x%08x\n", vlsi_proc_ndev()
234 seq_printf(seq, "RINGSIZE: rx=%u / tx=%u\n", RINGSIZE_TO_RXSIZE(word), vlsi_proc_ndev()
238 seq_printf(seq, "IRCFG:%s%s%s%s%s%s%s%s%s%s%s%s%s\n", vlsi_proc_ndev()
253 seq_printf(seq, "IRENABLE:%s%s%s%s%s%s%s%s\n", vlsi_proc_ndev()
263 seq_printf(seq, "PHYCTL: baud-divisor=%u / pulsewidth=%u / preamble=%u\n", vlsi_proc_ndev()
268 seq_printf(seq, "NPHYCTL: baud-divisor=%u / pulsewidth=%u / preamble=%u\n", vlsi_proc_ndev()
273 seq_printf(seq, "MAXPKT: max. rx packet size = %u\n", word); vlsi_proc_ndev()
275 seq_printf(seq, "RCVBCNT: rx-fifo filling level = %u\n", word); vlsi_proc_ndev()
277 seq_printf(seq, "\nsw-state:\n"); vlsi_proc_ndev()
278 seq_printf(seq, "IrPHY setup: %d baud - %s encoding\n", idev->baud, vlsi_proc_ndev()
282 seq_printf(seq, "last rx: %ul.%06u sec\n", sec, usec); vlsi_proc_ndev()
284 seq_printf(seq, "RX: packets=%lu / bytes=%lu / errors=%lu / dropped=%lu", vlsi_proc_ndev()
287 seq_printf(seq, " / overrun=%lu / length=%lu / frame=%lu / crc=%lu\n", vlsi_proc_ndev()
290 seq_printf(seq, "TX: packets=%lu / bytes=%lu / errors=%lu / dropped=%lu / fifo=%lu\n", vlsi_proc_ndev()
296 static void vlsi_proc_ring(struct seq_file *seq, struct vlsi_ring *r) vlsi_proc_ring() argument
302 seq_printf(seq, "size %u / mask 0x%04x / len %u / dir %d / hw %p\n", vlsi_proc_ring()
306 seq_printf(seq, "head = %d / tail = %d ", h, t); vlsi_proc_ring()
308 seq_printf(seq, "(empty)\n"); vlsi_proc_ring()
311 seq_printf(seq, "(full)\n"); vlsi_proc_ring()
313 seq_printf(seq, "(level = %d)\n", ((unsigned)(t-h) & r->mask)); vlsi_proc_ring()
316 seq_printf(seq, "current: rd = %d / status = %02x / len = %u\n", vlsi_proc_ring()
319 seq_printf(seq, " data: %*ph\n", vlsi_proc_ring()
325 seq_printf(seq, "> ring descr %u: ", i); vlsi_proc_ring()
326 seq_printf(seq, "skb=%p data=%p hw=%p\n", rd->skb, rd->buf, rd->hw); vlsi_proc_ring()
327 seq_printf(seq, " hw: status=%02x count=%u busaddr=0x%08x\n", vlsi_proc_ring()
333 static int vlsi_seq_show(struct seq_file *seq, void *v) vlsi_seq_show() argument
335 struct net_device *ndev = seq->private; vlsi_seq_show()
339 seq_printf(seq, "\n%s %s\n\n", DRIVER_NAME, DRIVER_VERSION); vlsi_seq_show()
340 seq_printf(seq, "clksrc: %s\n", vlsi_seq_show()
343 seq_printf(seq, "ringsize: tx=%d / rx=%d\n", vlsi_seq_show()
345 seq_printf(seq, "sirpulse: %s\n", (sirpulse)?"3/16 bittime":"short"); vlsi_seq_show()
346 seq_printf(seq, "qos_mtt_bits: 0x%02x\n", (unsigned)qos_mtt_bits); vlsi_seq_show()
350 vlsi_proc_pdev(seq, idev->pdev); vlsi_seq_show()
353 vlsi_proc_ndev(seq, ndev); vlsi_seq_show()
355 seq_printf(seq, "\nPCI controller down - resume_ok = %d\n", vlsi_seq_show()
358 seq_printf(seq, "\n--------- RX ring -----------\n\n"); vlsi_seq_show()
359 vlsi_proc_ring(seq, idev->rx_ring); vlsi_seq_show()
360 seq_printf(seq, "\n--------- TX ring -----------\n\n"); vlsi_seq_show()
361 vlsi_proc_ring(seq, idev->tx_ring); vlsi_seq_show()
364 seq_printf(seq, "\n"); vlsi_seq_show()
/linux-4.1.27/fs/proc/
H A Dproc_net.c89 struct seq_file *seq; seq_release_net() local
91 seq = f->private_data; seq_release_net()
93 put_net(seq_file_net(seq)); seq_release_net()
101 struct seq_file *seq = f->private_data; single_release_net() local
102 put_net(seq->private); single_release_net()
/linux-4.1.27/include/linux/ceph/
H A Dmsgr.h90 #define CEPH_MSGR_TAG_SEQ 13 /* 64-bit int follows with seen seq number */
124 __le64 seq; /* message seq# for this session */ member in struct:ceph_msg_header_old
142 __le64 seq; /* message seq# for this session */ member in struct:ceph_msg_header
/linux-4.1.27/drivers/connector/
H A Dcn_proc.c80 get_seq(&msg->seq, &ev->cpu); proc_fork_connector()
111 get_seq(&msg->seq, &ev->cpu); proc_exec_connector()
153 get_seq(&msg->seq, &ev->cpu); proc_id_connector()
175 get_seq(&msg->seq, &ev->cpu); proc_sid_connector()
200 get_seq(&msg->seq, &ev->cpu); proc_ptrace_connector()
233 get_seq(&msg->seq, &ev->cpu); proc_comm_connector()
259 get_seq(&msg->seq, &ev->cpu); proc_coredump_connector()
284 get_seq(&msg->seq, &ev->cpu); proc_exit_connector()
319 msg->seq = rcvd_seq; cn_proc_ack()
373 cn_proc_ack(err, msg->seq, msg->ack); cn_proc_mcast_ctl()
/linux-4.1.27/drivers/ata/
H A Dsata_sx4.c210 unsigned int seq; member in struct:pdc_host_priv::__anon3354
384 buf[i++] = portno + 1; /* seq. id */ pdc20621_ata_pkt()
385 buf[i++] = 0xff; /* delay seq. id */ pdc20621_ata_pkt()
437 tmp |= ((portno + 1 + 4) << 16); /* seq. id */ pdc20621_host_pkt()
438 tmp |= (0xff << 24); /* delay seq. id */ pdc20621_host_pkt()
564 unsigned int seq, __pdc20621_push_hdma()
574 writel(0x00000001, mmio + PDC_20621_SEQCTL + (seq * 4)); __pdc20621_push_hdma()
575 readl(mmio + PDC_20621_SEQCTL + (seq * 4)); /* flush */ __pdc20621_push_hdma()
582 unsigned int seq, pdc20621_push_hdma()
590 __pdc20621_push_hdma(qc, seq, pkt_ofs); pdc20621_push_hdma()
596 pp->hdma[idx].seq = seq; pdc20621_push_hdma()
613 __pdc20621_push_hdma(pp->hdma[idx].qc, pp->hdma[idx].seq, pdc20621_pop_hdma()
644 u8 seq = (u8) (port_no + 1); pdc20621_packet_start() local
658 seq += 4; pdc20621_packet_start()
661 pdc20621_push_hdma(qc, seq, port_ofs + PDC_DIMM_HOST_PKT); pdc20621_packet_start()
662 VPRINTK("queued ofs 0x%x (%u), seq %u\n", pdc20621_packet_start()
665 seq); pdc20621_packet_start()
667 writel(0x00000001, mmio + PDC_20621_SEQCTL + (seq * 4)); pdc20621_packet_start()
668 readl(mmio + PDC_20621_SEQCTL + (seq * 4)); /* flush */ pdc20621_packet_start()
673 VPRINTK("submitted ofs 0x%x (%u), seq %u\n", pdc20621_packet_start()
676 seq); pdc20621_packet_start()
730 u8 seq = (u8) (port_no + 1 + 4); pdc20621_host_intr() local
736 pdc20621_push_hdma(qc, seq, pdc20621_host_intr()
745 u8 seq = (u8) (port_no + 1); pdc20621_host_intr() local
750 writel(0x00000001, mmio + PDC_20621_SEQCTL + (seq * 4)); pdc20621_host_intr()
751 readl(mmio + PDC_20621_SEQCTL + (seq * 4)); pdc20621_host_intr()
833 VPRINTK("seq %u, port_no %u, ap %p, tmp %x\n", i, port_no, ap, tmp); pdc20621_interrupt()
563 __pdc20621_push_hdma(struct ata_queued_cmd *qc, unsigned int seq, u32 pkt_ofs) __pdc20621_push_hdma() argument
581 pdc20621_push_hdma(struct ata_queued_cmd *qc, unsigned int seq, u32 pkt_ofs) pdc20621_push_hdma() argument
/linux-4.1.27/drivers/staging/gdm724x/
H A Dnetlink_k.c117 static u32 seq; netlink_send() local
132 seq++; netlink_send()
134 nlh = nlmsg_put(skb, 0, seq, type, len, 0); netlink_send()
/linux-4.1.27/drivers/staging/gdm72xx/
H A Dnetlink_k.c118 static u32 seq; netlink_send() local
135 seq++; netlink_send()
136 nlh = nlmsg_put(skb, 0, seq, type, len, 0); netlink_send()
/linux-4.1.27/arch/powerpc/platforms/pseries/
H A DhvCall_inst.c86 struct seq_file *seq; hcall_inst_seq_open() local
89 seq = file->private_data; hcall_inst_seq_open()
90 seq->private = file_inode(file)->i_private; hcall_inst_seq_open()
/linux-4.1.27/arch/m68k/include/asm/
H A Datomic.h97 __asm__ __volatile__("subql #1,%1; seq %0" : "=d" (c), "+m" (*v)); atomic_dec_and_test()
114 __asm__ __volatile__("addql #1,%1; seq %0" : "=d" (c), "+m" (*v)); atomic_inc_and_test()
158 __asm__ __volatile__("subl %2,%1; seq %0" atomic_sub_and_test()
/linux-4.1.27/fs/f2fs/
H A Dsuper.c572 static int f2fs_show_options(struct seq_file *seq, struct dentry *root) f2fs_show_options() argument
577 seq_printf(seq, ",background_gc=%s", "on"); f2fs_show_options()
579 seq_printf(seq, ",background_gc=%s", "off"); f2fs_show_options()
581 seq_puts(seq, ",disable_roll_forward"); f2fs_show_options()
583 seq_puts(seq, ",discard"); f2fs_show_options()
585 seq_puts(seq, ",no_heap_alloc"); f2fs_show_options()
588 seq_puts(seq, ",user_xattr"); f2fs_show_options()
590 seq_puts(seq, ",nouser_xattr"); f2fs_show_options()
592 seq_puts(seq, ",inline_xattr"); f2fs_show_options()
596 seq_puts(seq, ",acl"); f2fs_show_options()
598 seq_puts(seq, ",noacl"); f2fs_show_options()
601 seq_puts(seq, ",disable_ext_identify"); f2fs_show_options()
603 seq_puts(seq, ",inline_data"); f2fs_show_options()
605 seq_puts(seq, ",noinline_data"); f2fs_show_options()
607 seq_puts(seq, ",inline_dentry"); f2fs_show_options()
609 seq_puts(seq, ",flush_merge"); f2fs_show_options()
611 seq_puts(seq, ",nobarrier"); f2fs_show_options()
613 seq_puts(seq, ",fastboot"); f2fs_show_options()
615 seq_puts(seq, ",extent_cache"); f2fs_show_options()
616 seq_printf(seq, ",active_logs=%u", sbi->active_logs); f2fs_show_options()
621 static int segment_info_seq_show(struct seq_file *seq, void *offset) segment_info_seq_show() argument
623 struct super_block *sb = seq->private; segment_info_seq_show()
629 seq_puts(seq, "format: segment_type|valid_blocks\n" segment_info_seq_show()
636 seq_printf(seq, "%-5d", i); segment_info_seq_show()
637 seq_printf(seq, "%d|%-3u", se->type, segment_info_seq_show()
640 seq_putc(seq, '\n'); segment_info_seq_show()
642 seq_putc(seq, ' '); segment_info_seq_show()
/linux-4.1.27/net/irda/ircomm/
H A Dircomm_core.c487 static void *ircomm_seq_start(struct seq_file *seq, loff_t *pos) ircomm_seq_start() argument
504 static void *ircomm_seq_next(struct seq_file *seq, void *v, loff_t *pos) ircomm_seq_next() argument
511 static void ircomm_seq_stop(struct seq_file *seq, void *v) ircomm_seq_stop() argument
516 static int ircomm_seq_show(struct seq_file *seq, void *v) ircomm_seq_show() argument
523 seq_printf(seq, "ircomm%d", self->line); ircomm_seq_show()
525 seq_printf(seq, "irlpt%d", self->line - 0x10); ircomm_seq_show()
527 seq_printf(seq, ircomm_seq_show()
533 seq_printf(seq, " 3-wire-raw"); ircomm_seq_show()
535 seq_printf(seq, " 3-wire"); ircomm_seq_show()
537 seq_printf(seq, " 9-wire"); ircomm_seq_show()
539 seq_printf(seq, " Centronics"); ircomm_seq_show()
540 seq_putc(seq, '\n'); ircomm_seq_show()
/linux-4.1.27/tools/perf/tests/
H A Drdpmc.c34 u32 seq, idx, time_mult = 0, time_shift = 0; mmap_read_self() local
38 seq = pc->lock; mmap_read_self()
57 } while (pc->lock != seq); mmap_read_self()
/linux-4.1.27/net/rose/
H A Drose_route.c1086 static void *rose_node_start(struct seq_file *seq, loff_t *pos) __acquires()
1102 static void *rose_node_next(struct seq_file *seq, void *v, loff_t *pos) rose_node_next() argument
1110 static void rose_node_stop(struct seq_file *seq, void *v) __releases()
1116 static int rose_node_show(struct seq_file *seq, void *v) rose_node_show() argument
1122 seq_puts(seq, "address mask n neigh neigh neigh\n"); rose_node_show()
1126 seq_printf(seq, "%-10s %04d 1 loopback\n", rose_node_show()
1130 seq_printf(seq, "%-10s %04d %d", rose_node_show()
1136 seq_printf(seq, " %05d", rose_node_show()
1139 seq_puts(seq, "\n"); rose_node_show()
1165 static void *rose_neigh_start(struct seq_file *seq, loff_t *pos) __acquires()
1181 static void *rose_neigh_next(struct seq_file *seq, void *v, loff_t *pos) rose_neigh_next() argument
1189 static void rose_neigh_stop(struct seq_file *seq, void *v) __releases()
1195 static int rose_neigh_show(struct seq_file *seq, void *v) rose_neigh_show() argument
1201 seq_puts(seq, rose_neigh_show()
1207 seq_printf(seq, "%05d %-9s %-4s %3d %3d %3s %3s %3lu %3lu", rose_neigh_show()
1220 seq_printf(seq, " %s", ax2asc(buf, &rose_neigh->digipeat->calls[i])); rose_neigh_show()
1223 seq_puts(seq, "\n"); rose_neigh_show()
1250 static void *rose_route_start(struct seq_file *seq, loff_t *pos) __acquires()
1266 static void *rose_route_next(struct seq_file *seq, void *v, loff_t *pos) rose_route_next() argument
1274 static void rose_route_stop(struct seq_file *seq, void *v) __releases()
1280 static int rose_route_show(struct seq_file *seq, void *v) rose_route_show() argument
1285 seq_puts(seq, rose_route_show()
1291 seq_printf(seq, rose_route_show()
1298 seq_puts(seq, rose_route_show()
1302 seq_printf(seq, rose_route_show()
1309 seq_puts(seq, rose_route_show()
/linux-4.1.27/fs/gfs2/
H A Dglock.c897 void gfs2_print_dbg(struct seq_file *seq, const char *fmt, ...) gfs2_print_dbg() argument
904 if (seq) { gfs2_print_dbg()
905 seq_vprintf(seq, fmt, args); gfs2_print_dbg()
1535 static void dump_glock(struct seq_file *seq, struct gfs2_glock *gl) dump_glock() argument
1538 gfs2_dump_glock(seq, gl); dump_glock()
1625 * @seq: the seq_file struct
1630 static void dump_holder(struct seq_file *seq, const struct gfs2_holder *gh) dump_holder() argument
1638 gfs2_print_dbg(seq, " H: s:%s f:%s e:%d p:%ld [%s] %pS\n", dump_holder()
1687 * @seq: The seq_file struct
1702 void gfs2_dump_glock(struct seq_file *seq, const struct gfs2_glock *gl) gfs2_dump_glock() argument
1713 gfs2_print_dbg(seq, "G: s:%s n:%u/%llx f:%s t:%s d:%s/%llu a:%d v:%d r:%d m:%ld\n", gfs2_dump_glock()
1725 dump_holder(seq, gh); gfs2_dump_glock()
1728 glops->go_dump(seq, gl); gfs2_dump_glock()
1731 static int gfs2_glstats_seq_show(struct seq_file *seq, void *iter_ptr) gfs2_glstats_seq_show() argument
1735 seq_printf(seq, "G: n:%u/%llx rtt:%lld/%lld rttb:%lld/%lld irt:%lld/%lld dcnt: %lld qcnt: %lld\n", gfs2_glstats_seq_show()
1776 static int gfs2_sbstats_seq_show(struct seq_file *seq, void *iter_ptr) gfs2_sbstats_seq_show() argument
1778 struct gfs2_glock_iter *gi = seq->private; gfs2_sbstats_seq_show()
1788 seq_printf(seq, "%-10s %8s:", gfs2_gltype[index], gfs2_sbstats_seq_show()
1798 seq_printf(seq, " %15lld", (long long)value); for_each_possible_cpu()
1800 seq_putc(seq, '\n');
1880 static void *gfs2_glock_seq_start(struct seq_file *seq, loff_t *pos) gfs2_glock_seq_start() argument
1882 struct gfs2_glock_iter *gi = seq->private; gfs2_glock_seq_start()
1902 static void *gfs2_glock_seq_next(struct seq_file *seq, void *iter_ptr, gfs2_glock_seq_next() argument
1905 struct gfs2_glock_iter *gi = seq->private; gfs2_glock_seq_next()
1915 static void gfs2_glock_seq_stop(struct seq_file *seq, void *iter_ptr) gfs2_glock_seq_stop() argument
1917 struct gfs2_glock_iter *gi = seq->private; gfs2_glock_seq_stop()
1924 static int gfs2_glock_seq_show(struct seq_file *seq, void *iter_ptr) gfs2_glock_seq_show() argument
1926 dump_glock(seq, iter_ptr); gfs2_glock_seq_show()
1930 static void *gfs2_sbstats_seq_start(struct seq_file *seq, loff_t *pos) gfs2_sbstats_seq_start() argument
1932 struct gfs2_glock_iter *gi = seq->private; gfs2_sbstats_seq_start()
1941 static void *gfs2_sbstats_seq_next(struct seq_file *seq, void *iter_ptr, gfs2_sbstats_seq_next() argument
1944 struct gfs2_glock_iter *gi = seq->private; gfs2_sbstats_seq_next()
1954 static void gfs2_sbstats_seq_stop(struct seq_file *seq, void *iter_ptr) gfs2_sbstats_seq_stop() argument
1987 struct seq_file *seq = file->private_data; gfs2_glocks_open() local
1988 struct gfs2_glock_iter *gi = seq->private; gfs2_glocks_open()
1990 seq->buf = kmalloc(GFS2_SEQ_GOODSIZE, GFP_KERNEL | __GFP_NOWARN); gfs2_glocks_open()
1991 if (seq->buf) gfs2_glocks_open()
1992 seq->size = GFS2_SEQ_GOODSIZE; gfs2_glocks_open()
2002 struct seq_file *seq = file->private_data; gfs2_glstats_open() local
2003 struct gfs2_glock_iter *gi = seq->private; gfs2_glstats_open()
2005 seq->buf = kmalloc(GFS2_SEQ_GOODSIZE, GFP_KERNEL | __GFP_NOWARN); gfs2_glstats_open()
2006 if (seq->buf) gfs2_glstats_open()
2007 seq->size = GFS2_SEQ_GOODSIZE; gfs2_glstats_open()
2017 struct seq_file *seq = file->private_data; gfs2_sbstats_open() local
2018 struct gfs2_glock_iter *gi = seq->private; gfs2_sbstats_open()
/linux-4.1.27/include/net/irda/
H A Dirlan_filter.h32 void irlan_print_filter(struct seq_file *seq, int filter_type);
/linux-4.1.27/include/uapi/linux/
H A Dhysdn_if.h24 #define ERR_BOOTSEQ_FAIL 1006 /* 2. stage boot seq handshake timeout */
/linux-4.1.27/arch/powerpc/include/uapi/asm/
H A Dipcbuf.h28 unsigned int seq; member in struct:ipc64_perm
/linux-4.1.27/net/netrom/
H A Dnr_route.c868 static void *nr_node_start(struct seq_file *seq, loff_t *pos) nr_node_start() argument
874 static void *nr_node_next(struct seq_file *seq, void *v, loff_t *pos) nr_node_next() argument
879 static void nr_node_stop(struct seq_file *seq, void *v) nr_node_stop() argument
884 static int nr_node_show(struct seq_file *seq, void *v) nr_node_show() argument
890 seq_puts(seq, nr_node_show()
897 seq_printf(seq, "%-9s %-7s %d %d", nr_node_show()
904 seq_printf(seq, " %3d %d %05d", nr_node_show()
911 seq_puts(seq, "\n"); nr_node_show()
936 static void *nr_neigh_start(struct seq_file *seq, loff_t *pos) nr_neigh_start() argument
942 static void *nr_neigh_next(struct seq_file *seq, void *v, loff_t *pos) nr_neigh_next() argument
947 static void nr_neigh_stop(struct seq_file *seq, void *v) nr_neigh_stop() argument
952 static int nr_neigh_show(struct seq_file *seq, void *v) nr_neigh_show() argument
958 seq_puts(seq, "addr callsign dev qual lock count failed digipeaters\n"); nr_neigh_show()
963 seq_printf(seq, "%05d %-9s %-4s %3d %d %3d %3d", nr_neigh_show()
974 seq_printf(seq, " %s", nr_neigh_show()
978 seq_puts(seq, "\n"); nr_neigh_show()
/linux-4.1.27/sound/core/
H A DMakefile40 obj-$(CONFIG_SND_SEQUENCER) += seq/
/linux-4.1.27/drivers/scsi/
H A Dmac53c94.c199 int nb, stat, seq, intr; mac53c94_interrupt() local
206 seq = readb(&regs->seqstep); mac53c94_interrupt()
211 printk(KERN_DEBUG "mac53c94_intr, intr=%x stat=%x seq=%x phase=%d\n", mac53c94_interrupt()
212 intr, stat, seq, state->phase); mac53c94_interrupt()
224 printk(KERN_ERR "53c94: invalid cmd, intr=%x stat=%x seq=%x phase=%d\n", mac53c94_interrupt()
225 intr, stat, seq, state->phase); mac53c94_interrupt()
232 printk("53c94: bad error, intr=%x stat=%x seq=%x phase=%d\n", mac53c94_interrupt()
233 intr, stat, seq, state->phase); mac53c94_interrupt()
259 if ((seq & SS_MASK) != SS_DONE) { mac53c94_interrupt()
260 printk(KERN_DEBUG "seq step %x after command\n", seq); mac53c94_interrupt()
/linux-4.1.27/drivers/input/
H A Dinput.c1074 static void *input_devices_seq_start(struct seq_file *seq, loff_t *pos) input_devices_seq_start() argument
1076 union input_seq_state *state = (union input_seq_state *)&seq->private; input_devices_seq_start()
1079 /* We need to fit into seq->private pointer */ input_devices_seq_start()
1080 BUILD_BUG_ON(sizeof(union input_seq_state) != sizeof(seq->private)); input_devices_seq_start()
1093 static void *input_devices_seq_next(struct seq_file *seq, void *v, loff_t *pos) input_devices_seq_next() argument
1098 static void input_seq_stop(struct seq_file *seq, void *v) input_seq_stop() argument
1100 union input_seq_state *state = (union input_seq_state *)&seq->private; input_seq_stop()
1106 static void input_seq_print_bitmap(struct seq_file *seq, const char *name, input_seq_print_bitmap() argument
1113 seq_printf(seq, "B: %s=", name); input_seq_print_bitmap()
1119 seq_printf(seq, "%s%s", buf, i > 0 ? " " : ""); input_seq_print_bitmap()
1127 seq_puts(seq, "0"); input_seq_print_bitmap()
1129 seq_putc(seq, '\n'); input_seq_print_bitmap()
1132 static int input_devices_seq_show(struct seq_file *seq, void *v) input_devices_seq_show() argument
1138 seq_printf(seq, "I: Bus=%04x Vendor=%04x Product=%04x Version=%04x\n", input_devices_seq_show()
1141 seq_printf(seq, "N: Name=\"%s\"\n", dev->name ? dev->name : ""); input_devices_seq_show()
1142 seq_printf(seq, "P: Phys=%s\n", dev->phys ? dev->phys : ""); input_devices_seq_show()
1143 seq_printf(seq, "S: Sysfs=%s\n", path ? path : ""); input_devices_seq_show()
1144 seq_printf(seq, "U: Uniq=%s\n", dev->uniq ? dev->uniq : ""); input_devices_seq_show()
1145 seq_printf(seq, "H: Handlers="); input_devices_seq_show()
1148 seq_printf(seq, "%s ", handle->name); input_devices_seq_show()
1149 seq_putc(seq, '\n'); input_devices_seq_show()
1151 input_seq_print_bitmap(seq, "PROP", dev->propbit, INPUT_PROP_MAX); input_devices_seq_show()
1153 input_seq_print_bitmap(seq, "EV", dev->evbit, EV_MAX); input_devices_seq_show()
1155 input_seq_print_bitmap(seq, "KEY", dev->keybit, KEY_MAX); input_devices_seq_show()
1157 input_seq_print_bitmap(seq, "REL", dev->relbit, REL_MAX); input_devices_seq_show()
1159 input_seq_print_bitmap(seq, "ABS", dev->absbit, ABS_MAX); input_devices_seq_show()
1161 input_seq_print_bitmap(seq, "MSC", dev->mscbit, MSC_MAX); input_devices_seq_show()
1163 input_seq_print_bitmap(seq, "LED", dev->ledbit, LED_MAX); input_devices_seq_show()
1165 input_seq_print_bitmap(seq, "SND", dev->sndbit, SND_MAX); input_devices_seq_show()
1167 input_seq_print_bitmap(seq, "FF", dev->ffbit, FF_MAX); input_devices_seq_show()
1169 input_seq_print_bitmap(seq, "SW", dev->swbit, SW_MAX); input_devices_seq_show()
1171 seq_putc(seq, '\n'); input_devices_seq_show()
1198 static void *input_handlers_seq_start(struct seq_file *seq, loff_t *pos) input_handlers_seq_start() argument
1200 union input_seq_state *state = (union input_seq_state *)&seq->private; input_handlers_seq_start()
1203 /* We need to fit into seq->private pointer */ input_handlers_seq_start()
1204 BUILD_BUG_ON(sizeof(union input_seq_state) != sizeof(seq->private)); input_handlers_seq_start()
1218 static void *input_handlers_seq_next(struct seq_file *seq, void *v, loff_t *pos) input_handlers_seq_next() argument
1220 union input_seq_state *state = (union input_seq_state *)&seq->private; input_handlers_seq_next()
1226 static int input_handlers_seq_show(struct seq_file *seq, void *v) input_handlers_seq_show() argument
1229 union input_seq_state *state = (union input_seq_state *)&seq->private; input_handlers_seq_show()
1231 seq_printf(seq, "N: Number=%u Name=%s", state->pos, handler->name); input_handlers_seq_show()
1233 seq_puts(seq, " (filter)"); input_handlers_seq_show()
1235 seq_printf(seq, " Minor=%d", handler->minor); input_handlers_seq_show()
1236 seq_putc(seq, '\n'); input_handlers_seq_show()
/linux-4.1.27/net/ipv6/netfilter/
H A Dip6t_SYNPROXY.c110 nth->seq = htonl(__cookie_v6_init_sequence(iph, th, &mss)); synproxy_send_client_synack()
111 nth->ack_seq = htonl(ntohl(th->seq) + 1); synproxy_send_client_synack()
151 nth->seq = htonl(recv_seq - 1); synproxy_send_server_syn()
196 nth->seq = htonl(ntohl(th->ack_seq)); synproxy_send_server_ack()
197 nth->ack_seq = htonl(ntohl(th->seq) + 1); synproxy_send_server_ack()
234 nth->seq = htonl(ntohl(th->seq) + 1); synproxy_send_client_ack()
309 synproxy_recv_client_ack(snet, skb, th, &opts, ntohl(th->seq)); synproxy_tg6()
357 ntohl(th->seq) + 1); ipv6_synproxy_hook()
385 ntohl(th->seq) + 1)) ipv6_synproxy_hook()
412 nf_ct_seqadj_init(ct, ctinfo, synproxy->isn - ntohl(th->seq)); ipv6_synproxy_hook()

Completed in 9440 milliseconds

123456