Lines Matching refs:m
46 struct seq_file *m,
49 static void ahd_dump_device_state(struct seq_file *m,
93 ahd_format_transinfo(struct seq_file *m, struct ahd_transinfo *tinfo) in ahd_format_transinfo() argument
100 seq_puts(m, "Renegotiation Pending\n"); in ahd_format_transinfo()
112 seq_printf(m, "%d.%03dMB/s transfers", mb, speed % 1000); in ahd_format_transinfo()
114 seq_printf(m, "%dKB/s transfers", speed); in ahd_format_transinfo()
120 seq_printf(m, " (%d.%03dMHz", freq / 1000, freq % 1000); in ahd_format_transinfo()
122 seq_puts(m, " RDSTRM"); in ahd_format_transinfo()
126 seq_puts(m, printed_options ? "|DT" : " DT"); in ahd_format_transinfo()
130 seq_puts(m, printed_options ? "|IU" : " IU"); in ahd_format_transinfo()
134 seq_puts(m, printed_options ? "|RTI" : " RTI"); in ahd_format_transinfo()
138 seq_puts(m, printed_options ? "|QAS" : " QAS"); in ahd_format_transinfo()
145 seq_puts(m, ", "); in ahd_format_transinfo()
147 seq_puts(m, " ("); in ahd_format_transinfo()
149 seq_printf(m, "%dbit)", 8 * (0x01 << tinfo->width)); in ahd_format_transinfo()
151 seq_putc(m, ')'); in ahd_format_transinfo()
153 seq_putc(m, '\n'); in ahd_format_transinfo()
157 ahd_dump_target_state(struct ahd_softc *ahd, struct seq_file *m, in ahd_dump_target_state() argument
167 seq_printf(m, "Target %d Negotiation Settings\n", target_id); in ahd_dump_target_state()
168 seq_puts(m, "\tUser: "); in ahd_dump_target_state()
169 ahd_format_transinfo(m, &tinfo->user); in ahd_dump_target_state()
174 seq_puts(m, "\tGoal: "); in ahd_dump_target_state()
175 ahd_format_transinfo(m, &tinfo->goal); in ahd_dump_target_state()
176 seq_puts(m, "\tCurr: "); in ahd_dump_target_state()
177 ahd_format_transinfo(m, &tinfo->curr); in ahd_dump_target_state()
187 ahd_dump_device_state(m, dev); in ahd_dump_target_state()
192 ahd_dump_device_state(struct seq_file *m, struct scsi_device *sdev) in ahd_dump_device_state() argument
196 seq_printf(m, "\tChannel %c Target %d Lun %d Settings\n", in ahd_dump_device_state()
200 seq_printf(m, "\t\tCommands Queued %ld\n", dev->commands_issued); in ahd_dump_device_state()
201 seq_printf(m, "\t\tCommands Active %d\n", dev->active); in ahd_dump_device_state()
202 seq_printf(m, "\t\tCommand Openings %d\n", dev->openings); in ahd_dump_device_state()
203 seq_printf(m, "\t\tMax Tagged Openings %d\n", dev->maxtags); in ahd_dump_device_state()
204 seq_printf(m, "\t\tDevice Queue Frozen Count %d\n", dev->qfrozen); in ahd_dump_device_state()
275 ahd_linux_show_info(struct seq_file *m, struct Scsi_Host *shost) in ahd_linux_show_info() argument
282 seq_printf(m, "Adaptec AIC79xx driver version: %s\n", in ahd_linux_show_info()
284 seq_printf(m, "%s\n", ahd->description); in ahd_linux_show_info()
286 seq_printf(m, "%s\n", ahd_info); in ahd_linux_show_info()
287 seq_printf(m, "Allocated SCBs: %d, SG List Length: %d\n\n", in ahd_linux_show_info()
293 seq_puts(m, "No Serial EEPROM\n"); in ahd_linux_show_info()
295 seq_puts(m, "Serial EEPROM:\n"); in ahd_linux_show_info()
298 seq_putc(m, '\n'); in ahd_linux_show_info()
300 seq_printf(m, "0x%.4x ", in ahd_linux_show_info()
303 seq_putc(m, '\n'); in ahd_linux_show_info()
305 seq_putc(m, '\n'); in ahd_linux_show_info()
312 ahd_dump_target_state(ahd, m, ahd->our_id, 'A', in ahd_linux_show_info()