Lines Matching refs:s

24 static int ci_device_show(struct seq_file *s, void *data)  in ci_device_show()  argument
26 struct ci_hdrc *ci = s->private; in ci_device_show()
29 seq_printf(s, "speed = %d\n", gadget->speed); in ci_device_show()
30 seq_printf(s, "max_speed = %d\n", gadget->max_speed); in ci_device_show()
31 seq_printf(s, "is_otg = %d\n", gadget->is_otg); in ci_device_show()
32 seq_printf(s, "is_a_peripheral = %d\n", gadget->is_a_peripheral); in ci_device_show()
33 seq_printf(s, "b_hnp_enable = %d\n", gadget->b_hnp_enable); in ci_device_show()
34 seq_printf(s, "a_hnp_support = %d\n", gadget->a_hnp_support); in ci_device_show()
35 seq_printf(s, "a_alt_hnp_support = %d\n", gadget->a_alt_hnp_support); in ci_device_show()
36 seq_printf(s, "name = %s\n", in ci_device_show()
42 seq_printf(s, "gadget function = %s\n", in ci_device_show()
44 seq_printf(s, "gadget max speed = %d\n", ci->driver->max_speed); in ci_device_show()
64 static int ci_port_test_show(struct seq_file *s, void *data) in ci_port_test_show() argument
66 struct ci_hdrc *ci = s->private; in ci_port_test_show()
76 seq_printf(s, "mode = %u\n", mode); in ci_port_test_show()
87 struct seq_file *s = file->private_data; in ci_port_test_write() local
88 struct ci_hdrc *ci = s->private; in ci_port_test_write()
129 static int ci_qheads_show(struct seq_file *s, void *data) in ci_qheads_show() argument
131 struct ci_hdrc *ci = s->private; in ci_qheads_show()
136 seq_printf(s, "not in gadget mode\n"); in ci_qheads_show()
145 seq_printf(s, "EP=%02i: RX=%08X TX=%08X\n", in ci_qheads_show()
148 seq_printf(s, " %04X: %08X %08X\n", j, in ci_qheads_show()
172 static int ci_requests_show(struct seq_file *s, void *data) in ci_requests_show() argument
174 struct ci_hdrc *ci = s->private; in ci_requests_show()
182 seq_printf(s, "not in gadget mode\n"); in ci_requests_show()
192 seq_printf(s, "EP=%02i: TD=%08X %s\n", in ci_requests_show()
199 seq_printf(s, " %04X: %08X\n", j, in ci_requests_show()
220 static int ci_otg_show(struct seq_file *s, void *unused) in ci_otg_show() argument
222 struct ci_hdrc *ci = s->private; in ci_otg_show()
231 seq_printf(s, "OTG state: %s\n\n", in ci_otg_show()
235 seq_printf(s, "a_bus_drop: %d\n", fsm->a_bus_drop); in ci_otg_show()
237 seq_printf(s, "a_bus_req: %d\n", fsm->a_bus_req); in ci_otg_show()
239 seq_printf(s, "a_srp_det: %d\n", fsm->a_srp_det); in ci_otg_show()
241 seq_printf(s, "a_vbus_vld: %d\n", fsm->a_vbus_vld); in ci_otg_show()
243 seq_printf(s, "b_conn: %d\n", fsm->b_conn); in ci_otg_show()
245 seq_printf(s, "adp_change: %d\n", fsm->adp_change); in ci_otg_show()
247 seq_printf(s, "power_up: %d\n", fsm->power_up); in ci_otg_show()
249 seq_printf(s, "a_bus_resume: %d\n", fsm->a_bus_resume); in ci_otg_show()
251 seq_printf(s, "a_bus_suspend: %d\n", fsm->a_bus_suspend); in ci_otg_show()
253 seq_printf(s, "a_conn: %d\n", fsm->a_conn); in ci_otg_show()
255 seq_printf(s, "b_bus_req: %d\n", fsm->b_bus_req); in ci_otg_show()
257 seq_printf(s, "b_bus_suspend: %d\n", fsm->b_bus_suspend); in ci_otg_show()
259 seq_printf(s, "b_se0_srp: %d\n", fsm->b_se0_srp); in ci_otg_show()
261 seq_printf(s, "b_ssend_srp: %d\n", fsm->b_ssend_srp); in ci_otg_show()
263 seq_printf(s, "b_sess_vld: %d\n", fsm->b_sess_vld); in ci_otg_show()
265 seq_printf(s, "b_srp_done: %d\n", fsm->b_srp_done); in ci_otg_show()
267 seq_printf(s, "drv_vbus: %d\n", fsm->drv_vbus); in ci_otg_show()
269 seq_printf(s, "loc_conn: %d\n", fsm->loc_conn); in ci_otg_show()
271 seq_printf(s, "loc_sof: %d\n", fsm->loc_sof); in ci_otg_show()
273 seq_printf(s, "adp_prb: %d\n", fsm->adp_prb); in ci_otg_show()
275 seq_printf(s, "id: %d\n", fsm->id); in ci_otg_show()
277 seq_printf(s, "protocol: %d\n", fsm->protocol); in ci_otg_show()
294 static int ci_role_show(struct seq_file *s, void *data) in ci_role_show() argument
296 struct ci_hdrc *ci = s->private; in ci_role_show()
298 seq_printf(s, "%s\n", ci_role(ci)->name); in ci_role_show()
306 struct seq_file *s = file->private_data; in ci_role_write() local
307 struct ci_hdrc *ci = s->private; in ci_role_write()
347 static int ci_registers_show(struct seq_file *s, void *unused) in ci_registers_show() argument
349 struct ci_hdrc *ci = s->private; in ci_registers_show()
357 seq_printf(s, "USBINTR reg: %08x\n", tmp_reg); in ci_registers_show()
360 seq_printf(s, "USBSTS reg: %08x\n", tmp_reg); in ci_registers_show()
363 seq_printf(s, "USBMODE reg: %08x\n", tmp_reg); in ci_registers_show()
366 seq_printf(s, "USBCMD reg: %08x\n", tmp_reg); in ci_registers_show()
369 seq_printf(s, "PORTSC reg: %08x\n", tmp_reg); in ci_registers_show()
373 seq_printf(s, "OTGSC reg: %08x\n", tmp_reg); in ci_registers_show()