forked from sonyxperiadev/kernel
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcmd_timer
2280 lines (2280 loc) · 167 KB
/
cmd_timer
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
./drivers/usb/host/Makefile:CFLAGS_xhci-trace.o := -I$(src)
./drivers/usb/host/Makefile:xhci-hcd-y := xhci.o xhci-mem.o
./drivers/usb/host/Makefile:xhci-hcd-y += xhci-ring.o xhci-hub.o xhci-dbg.o
./drivers/usb/host/Makefile:xhci-hcd-y += xhci-trace.o
./drivers/usb/host/Makefile:xhci-plat-hcd-y := xhci-plat.o
./drivers/usb/host/Makefile: xhci-plat-hcd-y += xhci-mvebu.o
./drivers/usb/host/Makefile: xhci-plat-hcd-y += xhci-rcar.o
./drivers/usb/host/Makefile:obj-$(CONFIG_USB_XHCI_HCD) += xhci-hcd.o
./drivers/usb/host/Makefile:obj-$(CONFIG_USB_XHCI_PCI) += xhci-pci.o
./drivers/usb/host/Makefile:obj-$(CONFIG_USB_XHCI_PLATFORM) += xhci-plat-hcd.o
./drivers/usb/host/xhci-hub.c:#include "xhci-trace.h"
./drivers/usb/host/xhci-hub.c: if (xhci->usb3_rhub.min_rev >= 0x01 && xhci->usb3_rhub.psi_uid_count) {
./drivers/usb/host/xhci-hub.c: ssa_count = xhci->usb3_rhub.psi_uid_count * 2;
./drivers/usb/host/xhci-hub.c: temp = readl(&xhci->cap_regs->hcc_params);
./drivers/usb/host/xhci-hub.c: if ((xhci->quirks & XHCI_LPM_SUPPORT)) {
./drivers/usb/host/xhci-hub.c: temp = readl(&xhci->cap_regs->hcs_params3);
./drivers/usb/host/xhci-hub.c: bm_attrib |= (xhci->usb3_rhub.psi_uid_count - 1) << 5;
./drivers/usb/host/xhci-hub.c: for (i = 0; i < xhci->usb3_rhub.psi_count; i++) {
./drivers/usb/host/xhci-hub.c: psi = xhci->usb3_rhub.psi[i];
./drivers/usb/host/xhci-hub.c: if (HCC_PPC(xhci->hcc_params))
./drivers/usb/host/xhci-hub.c: ports = xhci->num_usb2_ports;
./drivers/usb/host/xhci-hub.c: portsc = readl(xhci->usb2_ports[i]);
./drivers/usb/host/xhci-hub.c: ports = xhci->num_usb3_ports;
./drivers/usb/host/xhci-hub.c: portsc = readl(xhci->usb3_ports[i]);
./drivers/usb/host/xhci-hub.c: if (!xhci->devs[i])
./drivers/usb/host/xhci-hub.c: speed = xhci->devs[i]->udev->speed;
./drivers/usb/host/xhci-hub.c: && xhci->devs[i]->fake_port == port) {
./drivers/usb/host/xhci-hub.c: virt_dev = xhci->devs[slot_id];
./drivers/usb/host/xhci-hub.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: ep = &xhci->devs[slot_id]->eps[i];
./drivers/usb/host/xhci-hub.c: max_ports = xhci->num_usb3_ports;
./drivers/usb/host/xhci-hub.c: *port_array = xhci->usb3_ports;
./drivers/usb/host/xhci-hub.c: max_ports = xhci->num_usb2_ports;
./drivers/usb/host/xhci-hub.c: *port_array = xhci->usb2_ports;
./drivers/usb/host/xhci-hub.c: if ((xhci->quirks & XHCI_COMP_MODE_QUIRK) &&
./drivers/usb/host/xhci-hub.c: u32 all_ports_seen_u0 = ((1 << xhci->num_usb3_ports)-1);
./drivers/usb/host/xhci-hub.c: if (!(xhci->quirks & XHCI_COMP_MODE_QUIRK))
./drivers/usb/host/xhci-hub.c: if ((xhci->port_status_u0 != all_ports_seen_u0) && port_in_u0) {
./drivers/usb/host/xhci-hub.c: xhci->port_status_u0 |= 1 << wIndex;
./drivers/usb/host/xhci-hub.c: if (xhci->port_status_u0 == all_ports_seen_u0) {
./drivers/usb/host/xhci-hub.c: del_timer_sync(&xhci->comp_mode_recovery_timer);
./drivers/usb/host/xhci-hub.c: __releases(&xhci->lock)
./drivers/usb/host/xhci-hub.c: __acquires(&xhci->lock)
./drivers/usb/host/xhci-hub.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: bus_state = &xhci->bus_state[hcd_index(hcd)];
./drivers/usb/host/xhci-hub.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: spin_unlock_irqrestore(&xhci->lock,
./drivers/usb/host/xhci-hub.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: bus_state = &xhci->bus_state[hcd_index(hcd)];
./drivers/usb/host/xhci-hub.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: bus_state = &xhci->bus_state[hcd_index(hcd)];
./drivers/usb/host/xhci-hub.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: bus_state = &xhci->bus_state[hcd_index(hcd)];
./drivers/usb/host/xhci-hub.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: temp = readl(&xhci->op_regs->command);
./drivers/usb/host/xhci-hub.c: writel(temp, &xhci->op_regs->command);
./drivers/usb/host/xhci-hub.c: if ((xhci->quirks & XHCI_MISSING_CAS) &&
./drivers/usb/host/xhci-hub.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c: (void) readl(&xhci->op_regs->command);
./drivers/usb/host/xhci-hub.c: temp = readl(&xhci->op_regs->command);
./drivers/usb/host/xhci-hub.c: writel(temp, &xhci->op_regs->command);
./drivers/usb/host/xhci-hub.c: temp = readl(&xhci->op_regs->command);
./drivers/usb/host/xhci-hub.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.h:#include "xhci-ext-caps.h"
./drivers/usb/host/xhci.h: /* xhci->event_ring keeps track of segment dma addresses */
./drivers/usb/host/xhci.h: * they see this status (any time they drop and re-acquire xhci->lock).
./drivers/usb/host/xhci.h: return xhci->main_hcd;
./drivers/usb/host/xhci.h: return xhci->quirks & XHCI_LINK_TRB_QUIRK;
./drivers/usb/host/xhci-ring.c:#include "xhci-trace.h"
./drivers/usb/host/xhci-ring.c: if (ring == xhci->event_ring)
./drivers/usb/host/xhci-ring.c: (seg->next == xhci->event_ring->first_seg);
./drivers/usb/host/xhci-ring.c: if (ring == xhci->event_ring)
./drivers/usb/host/xhci-ring.c: (xhci->quirks & XHCI_AMD_0x96_HOST))
./drivers/usb/host/xhci-ring.c: if (!(xhci->cmd_ring_state & CMD_RING_STATE_RUNNING))
./drivers/usb/host/xhci-ring.c: writel(DB_VALUE_HOST, &xhci->dba->doorbell[0]);
./drivers/usb/host/xhci-ring.c: readl(&xhci->dba->doorbell[0]);
./drivers/usb/host/xhci-ring.c: return mod_delayed_work(system_wq, &xhci->cmd_timer, delay);
./drivers/usb/host/xhci-ring.c: return list_first_entry_or_null(&xhci->cmd_list, struct xhci_command,
./drivers/usb/host/xhci-ring.c: * This must be called with command ring stopped and xhci->lock held.
./drivers/usb/host/xhci-ring.c: list_for_each_entry(i_cmd, &xhci->cmd_list, cmd_list) {
./drivers/usb/host/xhci-ring.c: xhci->cmd_ring_state = CMD_RING_STATE_RUNNING;
./drivers/usb/host/xhci-ring.c: if ((xhci->cmd_ring->dequeue != xhci->cmd_ring->enqueue) &&
./drivers/usb/host/xhci-ring.c: !(xhci->xhc_state & XHCI_STATE_DYING)) {
./drivers/usb/host/xhci-ring.c: xhci->current_cmd = cur_cmd;
./drivers/usb/host/xhci-ring.c:/* Must be called with xhci->lock held, releases and aquires lock back */
./drivers/usb/host/xhci-ring.c: reinit_completion(&xhci->cmd_ring_stop_completion);
./drivers/usb/host/xhci-ring.c: temp_64 = xhci_read_64(xhci, &xhci->op_regs->cmd_ring);
./drivers/usb/host/xhci-ring.c: &xhci->op_regs->cmd_ring);
./drivers/usb/host/xhci-ring.c: ret = xhci_handshake(&xhci->op_regs->cmd_ring,
./drivers/usb/host/xhci-ring.c: &xhci->op_regs->cmd_ring);
./drivers/usb/host/xhci-ring.c: ret = xhci_handshake(&xhci->op_regs->cmd_ring,
./drivers/usb/host/xhci-ring.c: xhci->xhc_state |= XHCI_STATE_DYING;
./drivers/usb/host/xhci-ring.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-ring.c: ret = wait_for_completion_timeout(&xhci->cmd_ring_stop_completion,
./drivers/usb/host/xhci-ring.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-ring.c: __le32 __iomem *db_addr = &xhci->dba->doorbell[slot_id];
./drivers/usb/host/xhci-ring.c: struct xhci_virt_ep *ep = &xhci->devs[slot_id]->eps[ep_index];
./drivers/usb/host/xhci-ring.c: ep = &xhci->devs[slot_id]->eps[ep_index];
./drivers/usb/host/xhci-ring.c: ep = &xhci->devs[slot_id]->eps[ep_index];
./drivers/usb/host/xhci-ring.c: struct xhci_virt_device *dev = xhci->devs[slot_id];
./drivers/usb/host/xhci-ring.c:/* Must be called with xhci->lock held in interrupt context */
./drivers/usb/host/xhci-ring.c: if (xhci->quirks & XHCI_AMD_PLL_FIX)
./drivers/usb/host/xhci-ring.c: spin_unlock(&xhci->lock);
./drivers/usb/host/xhci-ring.c: spin_lock(&xhci->lock);
./drivers/usb/host/xhci-ring.c: if (!xhci->devs[slot_id])
./drivers/usb/host/xhci-ring.c: ep = &xhci->devs[slot_id]->eps[ep_index];
./drivers/usb/host/xhci-ring.c: if (xhci->xhc_state & XHCI_STATE_DYING)
./drivers/usb/host/xhci-ring.c: /* Return to the event handler with xhci->lock re-acquired */
./drivers/usb/host/xhci-ring.c: ep = &xhci->devs[slot_id]->eps[ep_index];
./drivers/usb/host/xhci-ring.c: * through xhci->state.
./drivers/usb/host/xhci-ring.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-ring.c: if (xhci->xhc_state & XHCI_STATE_REMOVING) {
./drivers/usb/host/xhci-ring.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-ring.c: if (xhci->xhc_state & XHCI_STATE_DYING) {
./drivers/usb/host/xhci-ring.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-ring.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-ring.c: xhci->xhc_state |= XHCI_STATE_DYING;
./drivers/usb/host/xhci-ring.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-ring.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-ring.c: if (!xhci->devs[i])
./drivers/usb/host/xhci-ring.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-ring.c: dev = xhci->devs[slot_id];
./drivers/usb/host/xhci-ring.c: if (xhci->quirks & XHCI_RESET_EP_QUIRK) {
./drivers/usb/host/xhci-ring.c: xhci->devs[slot_id]->in_ctx->dma, slot_id,
./drivers/usb/host/xhci-ring.c: xhci->devs[slot_id]->eps[ep_index].ep_state &= ~EP_HALTED;
./drivers/usb/host/xhci-ring.c: xhci->slot_id = slot_id;
./drivers/usb/host/xhci-ring.c: xhci->slot_id = 0;
./drivers/usb/host/xhci-ring.c: virt_dev = xhci->devs[slot_id];
./drivers/usb/host/xhci-ring.c: if (xhci->quirks & XHCI_EP_LIMIT_QUIRK)
./drivers/usb/host/xhci-ring.c: virt_dev = xhci->devs[slot_id];
./drivers/usb/host/xhci-ring.c: if (xhci->quirks & XHCI_RESET_EP_QUIRK &&
./drivers/usb/host/xhci-ring.c: if (!xhci->devs[slot_id])
./drivers/usb/host/xhci-ring.c: if (!(xhci->quirks & XHCI_NEC_HOST)) {
./drivers/usb/host/xhci-ring.c: xhci->error_bitmask |= 1 << 6;
./drivers/usb/host/xhci-ring.c: list_for_each_entry_safe(cur_cmd, tmp_cmd, &xhci->cmd_list, cmd_list)
./drivers/usb/host/xhci-ring.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-ring.c: if (!xhci->current_cmd || delayed_work_pending(&xhci->cmd_timer)) {
./drivers/usb/host/xhci-ring.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-ring.c: xhci->current_cmd->status = COMP_CMD_ABORT;
./drivers/usb/host/xhci-ring.c: hw_ring_state = xhci_read_64(xhci, &xhci->op_regs->cmd_ring);
./drivers/usb/host/xhci-ring.c: if ((xhci->cmd_ring_state & CMD_RING_STATE_RUNNING) &&
./drivers/usb/host/xhci-ring.c: xhci->cmd_ring_state = CMD_RING_STATE_ABORTED;
./drivers/usb/host/xhci-ring.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-ring.c: if (xhci->xhc_state & XHCI_STATE_REMOVING) {
./drivers/usb/host/xhci-ring.c: xhci_handle_stopped_cmd_ring(xhci, xhci->current_cmd);
./drivers/usb/host/xhci-ring.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-ring.c: cmd_trb = xhci->cmd_ring->dequeue;
./drivers/usb/host/xhci-ring.c: cmd_dequeue_dma = xhci_trb_virt_to_dma(xhci->cmd_ring->deq_seg,
./drivers/usb/host/xhci-ring.c: xhci->error_bitmask |= 1 << 4;
./drivers/usb/host/xhci-ring.c: xhci->error_bitmask |= 1 << 5;
./drivers/usb/host/xhci-ring.c: cmd = list_entry(xhci->cmd_list.next, struct xhci_command, cmd_list);
./drivers/usb/host/xhci-ring.c: cancel_delayed_work(&xhci->cmd_timer);
./drivers/usb/host/xhci-ring.c: complete_all(&xhci->cmd_ring_stop_completion);
./drivers/usb/host/xhci-ring.c: if (cmd->command_trb != xhci->cmd_ring->dequeue) {
./drivers/usb/host/xhci-ring.c: xhci->cmd_ring_state = CMD_RING_STATE_STOPPED;
./drivers/usb/host/xhci-ring.c: if (xhci->current_cmd == cmd)
./drivers/usb/host/xhci-ring.c: xhci->current_cmd = NULL;
./drivers/usb/host/xhci-ring.c: xhci->error_bitmask |= 1 << 6;
./drivers/usb/host/xhci-ring.c: if (cmd->cmd_list.next != &xhci->cmd_list) {
./drivers/usb/host/xhci-ring.c: xhci->current_cmd = list_entry(cmd->cmd_list.next,
./drivers/usb/host/xhci-ring.c: } else if (xhci->current_cmd == cmd) {
./drivers/usb/host/xhci-ring.c: xhci->current_cmd = NULL;
./drivers/usb/host/xhci-ring.c: inc_deq(xhci, xhci->cmd_ring);
./drivers/usb/host/xhci-ring.c: if (trb_type == TRB_NEC_CMD_COMP && (xhci->quirks & XHCI_NEC_HOST))
./drivers/usb/host/xhci-ring.c: u8 port_speed = xhci->port_array[i];
./drivers/usb/host/xhci-ring.c: if (!xhci->devs[slot_id]) {
./drivers/usb/host/xhci-ring.c: udev = xhci->devs[slot_id]->udev;
./drivers/usb/host/xhci-ring.c: xhci->error_bitmask |= 1 << 8;
./drivers/usb/host/xhci-ring.c: max_ports = HCS_MAX_PORTS(xhci->hcs_params1);
./drivers/usb/host/xhci-ring.c: inc_deq(xhci, xhci->event_ring);
./drivers/usb/host/xhci-ring.c: major_revision = xhci->port_array[port_id - 1];
./drivers/usb/host/xhci-ring.c: hcd = xhci->shared_hcd;
./drivers/usb/host/xhci-ring.c: bus_state = &xhci->bus_state[hcd_index(hcd)];
./drivers/usb/host/xhci-ring.c: port_array = xhci->usb3_ports;
./drivers/usb/host/xhci-ring.c: port_array = xhci->usb2_ports;
./drivers/usb/host/xhci-ring.c: temp1 = readl(&xhci->op_regs->command);
./drivers/usb/host/xhci-ring.c: if (slot_id && xhci->devs[slot_id])
./drivers/usb/host/xhci-ring.c: * Check to see if xhci-hub.c is waiting on RExit to U0 transition (or
./drivers/usb/host/xhci-ring.c: inc_deq(xhci, xhci->event_ring);
./drivers/usb/host/xhci-ring.c: spin_unlock(&xhci->lock);
./drivers/usb/host/xhci-ring.c: spin_lock(&xhci->lock);
./drivers/usb/host/xhci-ring.c: struct xhci_virt_ep *ep = &xhci->devs[slot_id]->eps[ep_index];
./drivers/usb/host/xhci-ring.c: xdev = xhci->devs[slot_id];
./drivers/usb/host/xhci-ring.c: if (xhci->quirks & XHCI_AMD_PLL_FIX)
./drivers/usb/host/xhci-ring.c: xdev = xhci->devs[slot_id];
./drivers/usb/host/xhci-ring.c: if ((xhci->quirks & XHCI_TRUST_TX_LENGTH))
./drivers/usb/host/xhci-ring.c: if ((xhci->quirks & XHCI_TRUST_TX_LENGTH))
./drivers/usb/host/xhci-ring.c: __releases(&xhci->lock)
./drivers/usb/host/xhci-ring.c: __acquires(&xhci->lock)
./drivers/usb/host/xhci-ring.c: xdev = xhci->devs[slot_id];
./drivers/usb/host/xhci-ring.c: xhci->event_ring->deq_seg,
./drivers/usb/host/xhci-ring.c: xhci->event_ring->dequeue),
./drivers/usb/host/xhci-ring.c: xhci_debug_segment(xhci, xhci->event_ring->deq_seg);
./drivers/usb/host/xhci-ring.c: xhci->event_ring->deq_seg,
./drivers/usb/host/xhci-ring.c: xhci->event_ring->dequeue),
./drivers/usb/host/xhci-ring.c: xhci_debug_segment(xhci, xhci->event_ring->deq_seg);
./drivers/usb/host/xhci-ring.c: if (xhci->quirks & XHCI_TRUST_TX_LENGTH)
./drivers/usb/host/xhci-ring.c: if ((xhci->quirks & XHCI_SPURIOUS_SUCCESS) &&
./drivers/usb/host/xhci-ring.c: inc_deq(xhci, xhci->event_ring);
./drivers/usb/host/xhci-ring.c: spin_unlock(&xhci->lock);
./drivers/usb/host/xhci-ring.c: spin_lock(&xhci->lock);
./drivers/usb/host/xhci-ring.c: * xhci->lock between event processing (e.g. to pass up port status changes).
./drivers/usb/host/xhci-ring.c: if (!xhci->event_ring || !xhci->event_ring->dequeue) {
./drivers/usb/host/xhci-ring.c: xhci->error_bitmask |= 1 << 1;
./drivers/usb/host/xhci-ring.c: event = xhci->event_ring->dequeue;
./drivers/usb/host/xhci-ring.c: xhci->event_ring->cycle_state) {
./drivers/usb/host/xhci-ring.c: xhci->error_bitmask |= 1 << 2;
./drivers/usb/host/xhci-ring.c: xhci->error_bitmask |= 1 << 9;
./drivers/usb/host/xhci-ring.c: xhci->error_bitmask |= 1 << 3;
./drivers/usb/host/xhci-ring.c: if (xhci->xhc_state & XHCI_STATE_DYING) {
./drivers/usb/host/xhci-ring.c: inc_deq(xhci, xhci->event_ring);
./drivers/usb/host/xhci-ring.c: spin_lock(&xhci->lock);
./drivers/usb/host/xhci-ring.c: status = readl(&xhci->op_regs->status);
./drivers/usb/host/xhci-ring.c: spin_unlock(&xhci->lock);
./drivers/usb/host/xhci-ring.c: spin_unlock(&xhci->lock);
./drivers/usb/host/xhci-ring.c: writel(status, &xhci->op_regs->status);
./drivers/usb/host/xhci-ring.c: irq_pending = readl(&xhci->ir_set->irq_pending);
./drivers/usb/host/xhci-ring.c: writel(irq_pending, &xhci->ir_set->irq_pending);
./drivers/usb/host/xhci-ring.c: if (xhci->xhc_state & XHCI_STATE_DYING ||
./drivers/usb/host/xhci-ring.c: xhci->xhc_state & XHCI_STATE_HALTED) {
./drivers/usb/host/xhci-ring.c: temp_64 = xhci_read_64(xhci, &xhci->ir_set->erst_dequeue);
./drivers/usb/host/xhci-ring.c: &xhci->ir_set->erst_dequeue);
./drivers/usb/host/xhci-ring.c: spin_unlock(&xhci->lock);
./drivers/usb/host/xhci-ring.c: event_ring_deq = xhci->event_ring->dequeue;
./drivers/usb/host/xhci-ring.c: temp_64 = xhci_read_64(xhci, &xhci->ir_set->erst_dequeue);
./drivers/usb/host/xhci-ring.c: if (event_ring_deq != xhci->event_ring->dequeue) {
./drivers/usb/host/xhci-ring.c: deq = xhci_trb_virt_to_dma(xhci->event_ring->deq_seg,
./drivers/usb/host/xhci-ring.c: xhci->event_ring->dequeue);
./drivers/usb/host/xhci-ring.c: xhci_write_64(xhci, temp_64, &xhci->ir_set->erst_dequeue);
./drivers/usb/host/xhci-ring.c: spin_unlock(&xhci->lock);
./drivers/usb/host/xhci-ring.c: if (ep_ring == xhci->cmd_ring) {
./drivers/usb/host/xhci-ring.c: (xhci->quirks & XHCI_AMD_0x96_HOST)))
./drivers/usb/host/xhci-ring.c: xhci->devs[slot_id]->out_ctx, ep_index);
./drivers/usb/host/xhci-ring.c: if (xhci->hci_version < 0x100)
./drivers/usb/host/xhci-ring.c: ret = prepare_transfer(xhci, xhci->devs[slot_id],
./drivers/usb/host/xhci-ring.c: ret = prepare_transfer(xhci, xhci->devs[slot_id],
./drivers/usb/host/xhci-ring.c: ret = prepare_transfer(xhci, xhci->devs[slot_id],
./drivers/usb/host/xhci-ring.c: ret = prepare_transfer(xhci, xhci->devs[slot_id],
./drivers/usb/host/xhci-ring.c:/* Caller must have locked xhci->lock */
./drivers/usb/host/xhci-ring.c: ret = prepare_transfer(xhci, xhci->devs[slot_id],
./drivers/usb/host/xhci-ring.c: if (xhci->hci_version >= 0x100) {
./drivers/usb/host/xhci-ring.c: * Caller must have locked xhci->lock
./drivers/usb/host/xhci-ring.c: ret = prepare_transfer(xhci, xhci->devs[slot_id],
./drivers/usb/host/xhci-ring.c: if (xhci->hci_version == 0x100) {
./drivers/usb/host/xhci-ring.c: if (xhci->hci_version < 0x100 || udev->speed < USB_SPEED_SUPER)
./drivers/usb/host/xhci-ring.c: if (xhci->hci_version < 0x100)
./drivers/usb/host/xhci-ring.c: ist = HCS_IST(xhci->hcs_params2) & 0x7;
./drivers/usb/host/xhci-ring.c: if (HCS_IST(xhci->hcs_params2) & (1 << 3))
./drivers/usb/host/xhci-ring.c: current_frame_id = readl(&xhci->run_regs->microframe_index);
./drivers/usb/host/xhci-ring.c: __func__, index, readl(&xhci->run_regs->microframe_index),
./drivers/usb/host/xhci-ring.c: xep = &xhci->devs[slot_id]->eps[ep_index];
./drivers/usb/host/xhci-ring.c: ep_ring = xhci->devs[slot_id]->eps[ep_index].ring;
./drivers/usb/host/xhci-ring.c: ret = prepare_transfer(xhci, xhci->devs[slot_id], ep_index,
./drivers/usb/host/xhci-ring.c: HCC_CFC(xhci->hcc_params)) {
./drivers/usb/host/xhci-ring.c: if (xhci->hci_version == 0x100 &&
./drivers/usb/host/xhci-ring.c: !(xhci->quirks &
./drivers/usb/host/xhci-ring.c: if (HCC_CFC(xhci->hcc_params))
./drivers/usb/host/xhci-ring.c: if (xhci->quirks & XHCI_AMD_PLL_FIX)
./drivers/usb/host/xhci-ring.c: xdev = xhci->devs[slot_id];
./drivers/usb/host/xhci-ring.c: xep = &xhci->devs[slot_id]->eps[ep_index];
./drivers/usb/host/xhci-ring.c: if (HCC_CFC(xhci->hcc_params) && !list_empty(&ep_ring->td_list)) {
./drivers/usb/host/xhci-ring.c: start_frame = readl(&xhci->run_regs->microframe_index);
./drivers/usb/host/xhci-ring.c: ist = HCS_IST(xhci->hcs_params2) & 0x7;
./drivers/usb/host/xhci-ring.c: if (HCS_IST(xhci->hcs_params2) & (1 << 3))
./drivers/usb/host/xhci-ring.c: * Don't decrement xhci->cmd_ring_reserved_trbs after we've queued the TRB
./drivers/usb/host/xhci-ring.c: int reserved_trbs = xhci->cmd_ring_reserved_trbs;
./drivers/usb/host/xhci-ring.c: if ((xhci->xhc_state & XHCI_STATE_DYING) ||
./drivers/usb/host/xhci-ring.c: (xhci->xhc_state & XHCI_STATE_HALTED)) {
./drivers/usb/host/xhci-ring.c: ret = prepare_ring(xhci, xhci->cmd_ring, EP_STATE_RUNNING,
./drivers/usb/host/xhci-ring.c: cmd->command_trb = xhci->cmd_ring->enqueue;
./drivers/usb/host/xhci-ring.c: list_add_tail(&cmd->cmd_list, &xhci->cmd_list);
./drivers/usb/host/xhci-ring.c: if (xhci->cmd_list.next == &cmd->cmd_list &&
./drivers/usb/host/xhci-ring.c: !delayed_work_pending(&xhci->cmd_timer)) {
./drivers/usb/host/xhci-ring.c: xhci->current_cmd = cmd;
./drivers/usb/host/xhci-ring.c: queue_trb(xhci, xhci->cmd_ring, false, field1, field2, field3,
./drivers/usb/host/xhci-ring.c: field4 | xhci->cmd_ring->cycle_state);
./drivers/usb/host/xhci-ring.c: ep = &xhci->devs[slot_id]->eps[ep_index];
./drivers/usb/host/xhci-mem.c.rej:--- drivers/usb/host/xhci-mem.c
./drivers/usb/host/xhci-mem.c.rej:+++ drivers/usb/host/xhci-mem.c
./drivers/usb/host/xhci-mem.c.rej: xhci->erst.entries = dma_alloc_coherent(dev,
./drivers/usb/host/xhci-mem.c.rej: if (!xhci->erst.entries)
./drivers/usb/host/xhci.c:#include "xhci-trace.h"
./drivers/usb/host/xhci.c: halted = readl(&xhci->op_regs->status) & STS_HALT;
./drivers/usb/host/xhci.c: cmd = readl(&xhci->op_regs->command);
./drivers/usb/host/xhci.c: writel(cmd, &xhci->op_regs->command);
./drivers/usb/host/xhci.c: ret = xhci_handshake(&xhci->op_regs->status,
./drivers/usb/host/xhci.c: xhci->xhc_state |= XHCI_STATE_HALTED;
./drivers/usb/host/xhci.c: xhci->cmd_ring_state = CMD_RING_STATE_STOPPED;
./drivers/usb/host/xhci.c: temp = readl(&xhci->op_regs->command);
./drivers/usb/host/xhci.c: writel(temp, &xhci->op_regs->command);
./drivers/usb/host/xhci.c: ret = xhci_handshake(&xhci->op_regs->status,
./drivers/usb/host/xhci.c: xhci->xhc_state = 0;
./drivers/usb/host/xhci.c: state = readl(&xhci->op_regs->status);
./drivers/usb/host/xhci.c: command = readl(&xhci->op_regs->command);
./drivers/usb/host/xhci.c: writel(command, &xhci->op_regs->command);
./drivers/usb/host/xhci.c: if (xhci->quirks & XHCI_INTEL_HOST)
./drivers/usb/host/xhci.c: ret = xhci_handshake(&xhci->op_regs->command,
./drivers/usb/host/xhci.c: ret = xhci_handshake(&xhci->op_regs->status,
./drivers/usb/host/xhci.c: xhci->bus_state[i].port_c_suspend = 0;
./drivers/usb/host/xhci.c: xhci->bus_state[i].suspended_ports = 0;
./drivers/usb/host/xhci.c: xhci->bus_state[i].resuming_ports = 0;
./drivers/usb/host/xhci.c: if (!xhci->msix_entries)
./drivers/usb/host/xhci.c: for (i = 0; i < xhci->msix_count; i++)
./drivers/usb/host/xhci.c: if (xhci->msix_entries[i].vector)
./drivers/usb/host/xhci.c: free_irq(xhci->msix_entries[i].vector,
./drivers/usb/host/xhci.c: xhci->msix_count = min(num_online_cpus() + 1,
./drivers/usb/host/xhci.c: HCS_MAX_INTRS(xhci->hcs_params1));
./drivers/usb/host/xhci.c: xhci->msix_entries =
./drivers/usb/host/xhci.c: kmalloc((sizeof(struct msix_entry))*xhci->msix_count,
./drivers/usb/host/xhci.c: if (!xhci->msix_entries) {
./drivers/usb/host/xhci.c: for (i = 0; i < xhci->msix_count; i++) {
./drivers/usb/host/xhci.c: xhci->msix_entries[i].entry = i;
./drivers/usb/host/xhci.c: xhci->msix_entries[i].vector = 0;
./drivers/usb/host/xhci.c: ret = pci_enable_msix_exact(pdev, xhci->msix_entries, xhci->msix_count);
./drivers/usb/host/xhci.c: for (i = 0; i < xhci->msix_count; i++) {
./drivers/usb/host/xhci.c: ret = request_irq(xhci->msix_entries[i].vector,
./drivers/usb/host/xhci.c: kfree(xhci->msix_entries);
./drivers/usb/host/xhci.c: xhci->msix_entries = NULL;
./drivers/usb/host/xhci.c: if (xhci->quirks & XHCI_PLAT)
./drivers/usb/host/xhci.c: if (xhci->msix_entries) {
./drivers/usb/host/xhci.c: kfree(xhci->msix_entries);
./drivers/usb/host/xhci.c: xhci->msix_entries = NULL;
./drivers/usb/host/xhci.c: if (xhci->msix_entries) {
./drivers/usb/host/xhci.c: for (i = 0; i < xhci->msix_count; i++)
./drivers/usb/host/xhci.c: synchronize_irq(xhci->msix_entries[i].vector);
./drivers/usb/host/xhci.c: if (xhci->quirks & XHCI_PLAT)
./drivers/usb/host/xhci.c: if (xhci->quirks & XHCI_BROKEN_MSI)
./drivers/usb/host/xhci.c: for (i = 0; i < xhci->num_usb3_ports; i++) {
./drivers/usb/host/xhci.c: temp = readl(xhci->usb3_ports[i]);
./drivers/usb/host/xhci.c: hcd = xhci->shared_hcd;
./drivers/usb/host/xhci.c: if (xhci->port_status_u0 != ((1 << xhci->num_usb3_ports)-1))
./drivers/usb/host/xhci.c: mod_timer(&xhci->comp_mode_recovery_timer,
./drivers/usb/host/xhci.c: xhci->port_status_u0 = 0;
./drivers/usb/host/xhci.c: setup_timer(&xhci->comp_mode_recovery_timer,
./drivers/usb/host/xhci.c: xhci->comp_mode_recovery_timer.expires = jiffies +
./drivers/usb/host/xhci.c: set_timer_slack(&xhci->comp_mode_recovery_timer,
./drivers/usb/host/xhci.c: add_timer(&xhci->comp_mode_recovery_timer);
./drivers/usb/host/xhci.c: return (xhci->port_status_u0 == ((1 << xhci->num_usb3_ports)-1));
./drivers/usb/host/xhci.c: spin_lock_init(&xhci->lock);
./drivers/usb/host/xhci.c: if (xhci->hci_version == 0x95 && link_quirk) {
./drivers/usb/host/xhci.c: xhci->quirks |= XHCI_LINK_TRB_QUIRK;
./drivers/usb/host/xhci.c: xhci->quirks |= XHCI_COMP_MODE_QUIRK;
./drivers/usb/host/xhci.c: xhci->shared_hcd->state = HC_STATE_RUNNING;
./drivers/usb/host/xhci.c: xhci->cmd_ring_state = CMD_RING_STATE_RUNNING;
./drivers/usb/host/xhci.c: if (xhci->quirks & XHCI_NEC_HOST)
./drivers/usb/host/xhci.c: xhci_debug_ring(xhci, xhci->cmd_ring);
./drivers/usb/host/xhci.c: xhci_dbg_ring_ptrs(xhci, xhci->cmd_ring);
./drivers/usb/host/xhci.c: xhci_dbg_erst(xhci, &xhci->erst);
./drivers/usb/host/xhci.c: xhci_debug_ring(xhci, xhci->event_ring);
./drivers/usb/host/xhci.c: xhci_dbg_ring_ptrs(xhci, xhci->event_ring);
./drivers/usb/host/xhci.c: temp_64 = xhci_read_64(xhci, &xhci->ir_set->erst_dequeue);
./drivers/usb/host/xhci.c: temp = readl(&xhci->ir_set->irq_control);
./drivers/usb/host/xhci.c: writel(temp, &xhci->ir_set->irq_control);
./drivers/usb/host/xhci.c: temp = readl(&xhci->op_regs->command);
./drivers/usb/host/xhci.c: writel(temp, &xhci->op_regs->command);
./drivers/usb/host/xhci.c: temp = readl(&xhci->ir_set->irq_pending);
./drivers/usb/host/xhci.c: xhci->ir_set, (unsigned int) ER_IRQ_ENABLE(temp));
./drivers/usb/host/xhci.c: writel(ER_IRQ_ENABLE(temp), &xhci->ir_set->irq_pending);
./drivers/usb/host/xhci.c: if (xhci->quirks & XHCI_NEC_HOST) {
./drivers/usb/host/xhci.c: mutex_lock(&xhci->mutex);
./drivers/usb/host/xhci.c: if (!(xhci->xhc_state & XHCI_STATE_HALTED)) {
./drivers/usb/host/xhci.c: spin_lock_irq(&xhci->lock);
./drivers/usb/host/xhci.c: xhci->xhc_state |= XHCI_STATE_HALTED;
./drivers/usb/host/xhci.c: xhci->cmd_ring_state = CMD_RING_STATE_STOPPED;
./drivers/usb/host/xhci.c: spin_unlock_irq(&xhci->lock);
./drivers/usb/host/xhci.c: mutex_unlock(&xhci->mutex);
./drivers/usb/host/xhci.c: if ((xhci->quirks & XHCI_COMP_MODE_QUIRK) &&
./drivers/usb/host/xhci.c: del_timer_sync(&xhci->comp_mode_recovery_timer);
./drivers/usb/host/xhci.c: if (xhci->quirks & XHCI_AMD_PLL_FIX)
./drivers/usb/host/xhci.c: temp = readl(&xhci->op_regs->status);
./drivers/usb/host/xhci.c: writel(temp & ~STS_EINT, &xhci->op_regs->status);
./drivers/usb/host/xhci.c: temp = readl(&xhci->ir_set->irq_pending);
./drivers/usb/host/xhci.c: writel(ER_IRQ_DISABLE(temp), &xhci->ir_set->irq_pending);
./drivers/usb/host/xhci.c: readl(&xhci->op_regs->status));
./drivers/usb/host/xhci.c: mutex_unlock(&xhci->mutex);
./drivers/usb/host/xhci.c: if (xhci->quirks & XHCI_SPURIOUS_REBOOT)
./drivers/usb/host/xhci.c: spin_lock_irq(&xhci->lock);
./drivers/usb/host/xhci.c: if (xhci->quirks & XHCI_SPURIOUS_WAKEUP)
./drivers/usb/host/xhci.c: spin_unlock_irq(&xhci->lock);
./drivers/usb/host/xhci.c: readl(&xhci->op_regs->status));
./drivers/usb/host/xhci.c: if (xhci->quirks & XHCI_SPURIOUS_WAKEUP)
./drivers/usb/host/xhci.c: xhci->s3.command = readl(&xhci->op_regs->command);
./drivers/usb/host/xhci.c: xhci->s3.dev_nt = readl(&xhci->op_regs->dev_notification);
./drivers/usb/host/xhci.c: xhci->s3.dcbaa_ptr = xhci_read_64(xhci, &xhci->op_regs->dcbaa_ptr);
./drivers/usb/host/xhci.c: xhci->s3.config_reg = readl(&xhci->op_regs->config_reg);
./drivers/usb/host/xhci.c: xhci->s3.erst_size = readl(&xhci->ir_set->erst_size);
./drivers/usb/host/xhci.c: xhci->s3.erst_base = xhci_read_64(xhci, &xhci->ir_set->erst_base);
./drivers/usb/host/xhci.c: xhci->s3.erst_dequeue = xhci_read_64(xhci, &xhci->ir_set->erst_dequeue);
./drivers/usb/host/xhci.c: xhci->s3.irq_pending = readl(&xhci->ir_set->irq_pending);
./drivers/usb/host/xhci.c: xhci->s3.irq_control = readl(&xhci->ir_set->irq_control);
./drivers/usb/host/xhci.c: writel(xhci->s3.command, &xhci->op_regs->command);
./drivers/usb/host/xhci.c: writel(xhci->s3.dev_nt, &xhci->op_regs->dev_notification);
./drivers/usb/host/xhci.c: xhci_write_64(xhci, xhci->s3.dcbaa_ptr, &xhci->op_regs->dcbaa_ptr);
./drivers/usb/host/xhci.c: writel(xhci->s3.config_reg, &xhci->op_regs->config_reg);
./drivers/usb/host/xhci.c: writel(xhci->s3.erst_size, &xhci->ir_set->erst_size);
./drivers/usb/host/xhci.c: xhci_write_64(xhci, xhci->s3.erst_base, &xhci->ir_set->erst_base);
./drivers/usb/host/xhci.c: xhci_write_64(xhci, xhci->s3.erst_dequeue, &xhci->ir_set->erst_dequeue);
./drivers/usb/host/xhci.c: writel(xhci->s3.irq_pending, &xhci->ir_set->irq_pending);
./drivers/usb/host/xhci.c: writel(xhci->s3.irq_control, &xhci->ir_set->irq_control);
./drivers/usb/host/xhci.c: val_64 = xhci_read_64(xhci, &xhci->op_regs->cmd_ring);
./drivers/usb/host/xhci.c: (xhci_trb_virt_to_dma(xhci->cmd_ring->deq_seg,
./drivers/usb/host/xhci.c: xhci->cmd_ring->dequeue) &
./drivers/usb/host/xhci.c: xhci->cmd_ring->cycle_state;
./drivers/usb/host/xhci.c: xhci_write_64(xhci, val_64, &xhci->op_regs->cmd_ring);
./drivers/usb/host/xhci.c: ring = xhci->cmd_ring;
./drivers/usb/host/xhci.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci.c: port_index = xhci->num_usb3_ports;
./drivers/usb/host/xhci.c: port_array = xhci->usb3_ports;
./drivers/usb/host/xhci.c: port_index = xhci->num_usb2_ports;
./drivers/usb/host/xhci.c: port_array = xhci->usb2_ports;
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: xhci->shared_hcd->state != HC_STATE_SUSPENDED)
./drivers/usb/host/xhci.c: clear_bit(HCD_FLAG_POLL_RH, &xhci->shared_hcd->flags);
./drivers/usb/host/xhci.c: del_timer_sync(&xhci->shared_hcd->rh_timer);
./drivers/usb/host/xhci.c: spin_lock_irq(&xhci->lock);
./drivers/usb/host/xhci.c: clear_bit(HCD_FLAG_HW_ACCESSIBLE, &xhci->shared_hcd->flags);
./drivers/usb/host/xhci.c: command = readl(&xhci->op_regs->command);
./drivers/usb/host/xhci.c: writel(command, &xhci->op_regs->command);
./drivers/usb/host/xhci.c: delay *= (xhci->quirks & XHCI_SLOW_SUSPEND) ? 10 : 1;
./drivers/usb/host/xhci.c: if (xhci_handshake(&xhci->op_regs->status,
./drivers/usb/host/xhci.c: spin_unlock_irq(&xhci->lock);
./drivers/usb/host/xhci.c: command = readl(&xhci->op_regs->command);
./drivers/usb/host/xhci.c: writel(command, &xhci->op_regs->command);
./drivers/usb/host/xhci.c: if (xhci_handshake(&xhci->op_regs->status,
./drivers/usb/host/xhci.c: spin_unlock_irq(&xhci->lock);
./drivers/usb/host/xhci.c: spin_unlock_irq(&xhci->lock);
./drivers/usb/host/xhci.c: if ((xhci->quirks & XHCI_COMP_MODE_QUIRK) &&
./drivers/usb/host/xhci.c: del_timer_sync(&xhci->comp_mode_recovery_timer);
./drivers/usb/host/xhci.c: if (time_before(jiffies, xhci->bus_state[0].next_statechange) ||
./drivers/usb/host/xhci.c: xhci->bus_state[1].next_statechange))
./drivers/usb/host/xhci.c: set_bit(HCD_FLAG_HW_ACCESSIBLE, &xhci->shared_hcd->flags);
./drivers/usb/host/xhci.c: spin_lock_irq(&xhci->lock);
./drivers/usb/host/xhci.c: if (xhci->quirks & XHCI_RESET_ON_RESUME)
./drivers/usb/host/xhci.c: command = readl(&xhci->op_regs->command);
./drivers/usb/host/xhci.c: writel(command, &xhci->op_regs->command);
./drivers/usb/host/xhci.c: if (xhci_handshake(&xhci->op_regs->status,
./drivers/usb/host/xhci.c: spin_unlock_irq(&xhci->lock);
./drivers/usb/host/xhci.c: temp = readl(&xhci->op_regs->status);
./drivers/usb/host/xhci.c: if ((xhci->quirks & XHCI_COMP_MODE_QUIRK) &&
./drivers/usb/host/xhci.c: del_timer_sync(&xhci->comp_mode_recovery_timer);
./drivers/usb/host/xhci.c: usb_root_hub_lost_power(xhci->main_hcd->self.root_hub);
./drivers/usb/host/xhci.c: usb_root_hub_lost_power(xhci->shared_hcd->self.root_hub);
./drivers/usb/host/xhci.c: spin_unlock_irq(&xhci->lock);
./drivers/usb/host/xhci.c: temp = readl(&xhci->op_regs->status);
./drivers/usb/host/xhci.c: writel(temp & ~STS_EINT, &xhci->op_regs->status);
./drivers/usb/host/xhci.c: temp = readl(&xhci->ir_set->irq_pending);
./drivers/usb/host/xhci.c: writel(ER_IRQ_DISABLE(temp), &xhci->ir_set->irq_pending);
./drivers/usb/host/xhci.c: readl(&xhci->op_regs->status));
./drivers/usb/host/xhci.c: secondary_hcd = xhci->shared_hcd;
./drivers/usb/host/xhci.c: xhci->shared_hcd->state = HC_STATE_SUSPENDED;
./drivers/usb/host/xhci.c: command = readl(&xhci->op_regs->command);
./drivers/usb/host/xhci.c: writel(command, &xhci->op_regs->command);
./drivers/usb/host/xhci.c: xhci_handshake(&xhci->op_regs->status, STS_HALT,
./drivers/usb/host/xhci.c: spin_unlock_irq(&xhci->lock);
./drivers/usb/host/xhci.c: status = readl(&xhci->op_regs->status);
./drivers/usb/host/xhci.c: usb_hcd_resume_root_hub(xhci->shared_hcd);
./drivers/usb/host/xhci.c: if ((xhci->quirks & XHCI_COMP_MODE_QUIRK) && !comp_timer_running)
./drivers/usb/host/xhci.c: set_bit(HCD_FLAG_POLL_RH, &xhci->shared_hcd->flags);
./drivers/usb/host/xhci.c: usb_hcd_poll_rh_status(xhci->shared_hcd);
./drivers/usb/host/xhci.c: if (!udev->slot_id || !xhci->devs[udev->slot_id]) {
./drivers/usb/host/xhci.c: virt_dev = xhci->devs[udev->slot_id];
./drivers/usb/host/xhci.c: if (xhci->xhc_state & XHCI_STATE_HALTED)
./drivers/usb/host/xhci.c: out_ctx = xhci->devs[slot_id]->out_ctx;
./drivers/usb/host/xhci.c: command->in_ctx = xhci->devs[slot_id]->in_ctx;
./drivers/usb/host/xhci.c: xhci_endpoint_copy(xhci, xhci->devs[slot_id]->in_ctx,
./drivers/usb/host/xhci.c: xhci->devs[slot_id]->out_ctx, ep_index);
./drivers/usb/host/xhci.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci.c: if (xhci->xhc_state & XHCI_STATE_DYING)
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci.c: if (xhci->xhc_state & XHCI_STATE_DYING)
./drivers/usb/host/xhci.c: if (xhci->devs[slot_id]->eps[ep_index].ep_state &
./drivers/usb/host/xhci.c: } else if (xhci->devs[slot_id]->eps[ep_index].ep_state &
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci.c: if (xhci->xhc_state & XHCI_STATE_DYING)
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci.c: if (xhci->xhc_state & XHCI_STATE_DYING)
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: ep = &xhci->devs[slot_id]->eps[ep_index];
./drivers/usb/host/xhci.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci.c: temp = readl(&xhci->op_regs->status);
./drivers/usb/host/xhci.c: if (temp == 0xffffffff || (xhci->xhc_state & XHCI_STATE_HALTED)) {
./drivers/usb/host/xhci.c: i < urb_priv->length && xhci->devs[urb->dev->slot_id];
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: if ((xhci->xhc_state & XHCI_STATE_DYING) ||
./drivers/usb/host/xhci.c: (xhci->xhc_state & XHCI_STATE_HALTED)) {
./drivers/usb/host/xhci.c: ep = &xhci->devs[urb->dev->slot_id]->eps[ep_index];
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: * the xhci->devs[slot_id] structure.
./drivers/usb/host/xhci.c: if (xhci->xhc_state & XHCI_STATE_DYING)
./drivers/usb/host/xhci.c: in_ctx = xhci->devs[udev->slot_id]->in_ctx;
./drivers/usb/host/xhci.c: out_ctx = xhci->devs[udev->slot_id]->out_ctx;
./drivers/usb/host/xhci.c: if (xhci->devs[udev->slot_id]->eps[ep_index].ring != NULL)
./drivers/usb/host/xhci.c: xhci_endpoint_zero(xhci, xhci->devs[udev->slot_id], ep);
./drivers/usb/host/xhci.c: * for mutual exclusion to protect the xhci->devs[slot_id] structure.
./drivers/usb/host/xhci.c: if (xhci->xhc_state & XHCI_STATE_DYING)
./drivers/usb/host/xhci.c: virt_dev = xhci->devs[udev->slot_id];
./drivers/usb/host/xhci.c: struct xhci_virt_device *virt_dev = xhci->devs[udev->slot_id];
./drivers/usb/host/xhci.c: * Must be called with xhci->lock held.
./drivers/usb/host/xhci.c: if (xhci->num_active_eps + added_eps > xhci->limit_active_eps) {
./drivers/usb/host/xhci.c: xhci->num_active_eps, added_eps,
./drivers/usb/host/xhci.c: xhci->limit_active_eps);
./drivers/usb/host/xhci.c: xhci->num_active_eps += added_eps;
./drivers/usb/host/xhci.c: xhci->num_active_eps);
./drivers/usb/host/xhci.c: * Must be called with xhci->lock held.
./drivers/usb/host/xhci.c: xhci->num_active_eps -= num_failed_eps;
./drivers/usb/host/xhci.c: xhci->num_active_eps);
./drivers/usb/host/xhci.c: * Must be called with xhci->lock held.
./drivers/usb/host/xhci.c: xhci->num_active_eps -= num_dropped_eps;
./drivers/usb/host/xhci.c: xhci->num_active_eps);
./drivers/usb/host/xhci.c: bw_table = &xhci->rh_bw[virt_dev->real_port - 1].bw_table;
./drivers/usb/host/xhci.c: xhci->rh_bw[port_index].num_active_tts;
./drivers/usb/host/xhci.c: xhci->devs[udev->slot_id]->bw_table->ss_bw_in -=
./drivers/usb/host/xhci.c: xhci->devs[udev->slot_id]->bw_table->ss_bw_out -=
./drivers/usb/host/xhci.c: xhci->devs[udev->slot_id]->bw_table->ss_bw_in +=
./drivers/usb/host/xhci.c: xhci->devs[udev->slot_id]->bw_table->ss_bw_out +=
./drivers/usb/host/xhci.c: rh_bw_info = &xhci->rh_bw[virt_dev->real_port - 1];
./drivers/usb/host/xhci.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci.c: virt_dev = xhci->devs[udev->slot_id];
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: if ((xhci->quirks & XHCI_EP_LIMIT_QUIRK) &&
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: xhci->num_active_eps);
./drivers/usb/host/xhci.c: if ((xhci->quirks & XHCI_SW_BW_CHECKING) &&
./drivers/usb/host/xhci.c: if ((xhci->quirks & XHCI_EP_LIMIT_QUIRK))
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: if ((xhci->quirks & XHCI_EP_LIMIT_QUIRK))
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: if ((xhci->quirks & XHCI_EP_LIMIT_QUIRK)) {
./drivers/usb/host/xhci.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: * else should be touching the xhci->devs[slot_id] structure, so we
./drivers/usb/host/xhci.c: * don't need to take the xhci->lock for manipulating that.
./drivers/usb/host/xhci.c: if ((xhci->xhc_state & XHCI_STATE_DYING) ||
./drivers/usb/host/xhci.c: (xhci->xhc_state & XHCI_STATE_REMOVING))
./drivers/usb/host/xhci.c: virt_dev = xhci->devs[udev->slot_id];
./drivers/usb/host/xhci.c: virt_dev = xhci->devs[udev->slot_id];
./drivers/usb/host/xhci.c: in_ctx = xhci->devs[slot_id]->in_ctx;
./drivers/usb/host/xhci.c: xhci_endpoint_copy(xhci, xhci->devs[slot_id]->in_ctx,
./drivers/usb/host/xhci.c: xhci->devs[slot_id]->out_ctx, ep_index);
./drivers/usb/host/xhci.c: xhci_setup_input_ctx_for_config_ep(xhci, xhci->devs[slot_id]->in_ctx,
./drivers/usb/host/xhci.c: xhci->devs[slot_id]->out_ctx, ctrl_ctx,
./drivers/usb/host/xhci.c: ep = &xhci->devs[udev->slot_id]->eps[ep_index];
./drivers/usb/host/xhci.c: if (!(xhci->quirks & XHCI_RESET_EP_QUIRK)) {
./drivers/usb/host/xhci.c: ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state;
./drivers/usb/host/xhci.c: if (!list_empty(&xhci->devs[slot_id]->eps[ep_index].ring->td_list)) {
./drivers/usb/host/xhci.c: max_streams = HCC_MAX_PSA(xhci->hcc_params);
./drivers/usb/host/xhci.c: if (!xhci->devs[slot_id])
./drivers/usb/host/xhci.c: ep_state = xhci->devs[slot_id]->eps[ep_index].ep_state;
./drivers/usb/host/xhci.c: if ((xhci->quirks & XHCI_BROKEN_STREAMS) ||
./drivers/usb/host/xhci.c: HCC_MAX_PSA(xhci->hcc_params) < 4) {
./drivers/usb/host/xhci.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: vdev = xhci->devs[udev->slot_id];
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: vdev = xhci->devs[udev->slot_id];
./drivers/usb/host/xhci.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: xhci->devs[udev->slot_id]->eps[ep_index].ep_state |=
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: * Must be called with xhci->lock held.
./drivers/usb/host/xhci.c: xhci->num_active_eps -= num_dropped_eps;
./drivers/usb/host/xhci.c: xhci->num_active_eps);
./drivers/usb/host/xhci.c: virt_dev = xhci->devs[slot_id];
./drivers/usb/host/xhci.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: if ((xhci->quirks & XHCI_EP_LIMIT_QUIRK)) {
./drivers/usb/host/xhci.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: if (xhci->quirks & XHCI_RESET_ON_RESUME)
./drivers/usb/host/xhci.c: virt_dev = xhci->devs[udev->slot_id];
./drivers/usb/host/xhci.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci.c: state = readl(&xhci->op_regs->status);
./drivers/usb/host/xhci.c: if (state == 0xffffffff || (xhci->xhc_state & XHCI_STATE_DYING) ||
./drivers/usb/host/xhci.c: (xhci->xhc_state & XHCI_STATE_HALTED)) {
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: * Must be called with xhci->lock held.
./drivers/usb/host/xhci.c: if (xhci->num_active_eps + 1 > xhci->limit_active_eps) {
./drivers/usb/host/xhci.c: xhci->num_active_eps, xhci->limit_active_eps);
./drivers/usb/host/xhci.c: xhci->num_active_eps += 1;
./drivers/usb/host/xhci.c: xhci->num_active_eps);
./drivers/usb/host/xhci.c: /* xhci->slot_id and xhci->addr_dev are not thread-safe */
./drivers/usb/host/xhci.c: mutex_lock(&xhci->mutex);
./drivers/usb/host/xhci.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci.c: command->completion = &xhci->addr_dev;
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: mutex_unlock(&xhci->mutex);
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: slot_id = xhci->slot_id;
./drivers/usb/host/xhci.c: mutex_unlock(&xhci->mutex);
./drivers/usb/host/xhci.c: readl(&xhci->cap_regs->hcs_params1)));
./drivers/usb/host/xhci.c: if ((xhci->quirks & XHCI_EP_LIMIT_QUIRK)) {
./drivers/usb/host/xhci.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: xhci->num_active_eps);
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: if (xhci->quirks & XHCI_RESET_ON_RESUME)
./drivers/usb/host/xhci.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: mutex_lock(&xhci->mutex);
./drivers/usb/host/xhci.c: if (xhci->xhc_state) { /* dying, removing or halted */
./drivers/usb/host/xhci.c: virt_dev = xhci->devs[udev->slot_id];
./drivers/usb/host/xhci.c: command->completion = &xhci->addr_dev;
./drivers/usb/host/xhci.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: temp_64 = xhci_read_64(xhci, &xhci->op_regs->dcbaa_ptr);
./drivers/usb/host/xhci.c: &xhci->dcbaa->dev_context_ptrs[udev->slot_id],
./drivers/usb/host/xhci.c: le64_to_cpu(xhci->dcbaa->dev_context_ptrs[udev->slot_id]));
./drivers/usb/host/xhci.c: mutex_unlock(&xhci->mutex);
./drivers/usb/host/xhci.c: __le32 __iomem *base_addr = &xhci->op_regs->port_status_base;
./drivers/usb/host/xhci.c: addr = xhci->usb2_ports[port1 - 1];
./drivers/usb/host/xhci.c: addr = xhci->usb3_ports[port1 - 1];
./drivers/usb/host/xhci.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci.c: virt_dev = xhci->devs[udev->slot_id];
./drivers/usb/host/xhci.c: * hub_port_finish_reset() is done and xhci->devs[] are re-allocated
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: command = xhci->lpm_command;
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: u2del = HCS_U2_LATENCY(xhci->hcs_params3);
./drivers/usb/host/xhci.c: if (hcd->speed >= HCD_USB3 || !xhci->hw_lpm_support ||
./drivers/usb/host/xhci.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci.c: port_array = xhci->usb2_ports;
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: /* USB 3.0 code dedicate one xhci->lpm_command->in_ctx
./drivers/usb/host/xhci.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: for (i = 0; i < xhci->num_ext_caps; i++) {
./drivers/usb/host/xhci.c: if (xhci->ext_caps[i] & capability) {
./drivers/usb/host/xhci.c: port_offset = XHCI_EXT_PORT_OFF(xhci->ext_caps[i]) - 1;
./drivers/usb/host/xhci.c: port_count = XHCI_EXT_PORT_COUNT(xhci->ext_caps[i]);
./drivers/usb/host/xhci.c: if (hcd->speed >= HCD_USB3 || !xhci->sw_lpm_support ||
./drivers/usb/host/xhci.c: if (xhci->hw_lpm_support == 1 &&
./drivers/usb/host/xhci.c: if (xhci->quirks & XHCI_INTEL_HOST)
./drivers/usb/host/xhci.c: if (xhci->quirks & XHCI_INTEL_HOST)
./drivers/usb/host/xhci.c: if (xhci->quirks & XHCI_INTEL_HOST)
./drivers/usb/host/xhci.c: if (!xhci || !(xhci->quirks & XHCI_LPM_SUPPORT) ||
./drivers/usb/host/xhci.c: !xhci->devs[udev->slot_id])
./drivers/usb/host/xhci.c: if (!xhci || !(xhci->quirks & XHCI_LPM_SUPPORT) ||
./drivers/usb/host/xhci.c: !xhci->devs[udev->slot_id])
./drivers/usb/host/xhci.c: vdev = xhci->devs[hdev->slot_id];
./drivers/usb/host/xhci.c: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: if (xhci->hci_version > 0x95) {
./drivers/usb/host/xhci.c: (unsigned int) xhci->hci_version);
./drivers/usb/host/xhci.c: if (xhci->hci_version < 0x100 || hdev->speed == USB_SPEED_HIGH)
./drivers/usb/host/xhci.c: (unsigned int) xhci->hci_version);
./drivers/usb/host/xhci.c: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci.c: (xhci->hci_version > 0x95) ?
./drivers/usb/host/xhci.c: if (xhci->hci_version > 0x95)
./drivers/usb/host/xhci.c: return readl(&xhci->run_regs->microframe_index) >> 3;
./drivers/usb/host/xhci.c: xhci->main_hcd = hcd;
./drivers/usb/host/xhci.c: if (xhci->sbrn == 0x31) {
./drivers/usb/host/xhci.c: mutex_init(&xhci->mutex);
./drivers/usb/host/xhci.c: xhci->cap_regs = hcd->regs;
./drivers/usb/host/xhci.c: xhci->op_regs = hcd->regs +
./drivers/usb/host/xhci.c: HC_LENGTH(readl(&xhci->cap_regs->hc_capbase));
./drivers/usb/host/xhci.c: xhci->run_regs = hcd->regs +
./drivers/usb/host/xhci.c: (readl(&xhci->cap_regs->run_regs_off) & RTSOFF_MASK);
./drivers/usb/host/xhci.c: xhci->hcs_params1 = readl(&xhci->cap_regs->hcs_params1);
./drivers/usb/host/xhci.c: xhci->hcs_params2 = readl(&xhci->cap_regs->hcs_params2);
./drivers/usb/host/xhci.c: xhci->hcs_params3 = readl(&xhci->cap_regs->hcs_params3);
./drivers/usb/host/xhci.c: xhci->hcc_params = readl(&xhci->cap_regs->hc_capbase);
./drivers/usb/host/xhci.c: xhci->hci_version = HC_VERSION(xhci->hcc_params);
./drivers/usb/host/xhci.c: xhci->hcc_params = readl(&xhci->cap_regs->hcc_params);
./drivers/usb/host/xhci.c: if (xhci->hci_version > 0x100)
./drivers/usb/host/xhci.c: xhci->hcc_params2 = readl(&xhci->cap_regs->hcc_params2);
./drivers/usb/host/xhci.c: xhci->quirks = quirks;
./drivers/usb/host/xhci.c: if (xhci->hci_version > 0x96)
./drivers/usb/host/xhci.c: xhci->quirks |= XHCI_SPURIOUS_SUCCESS;
./drivers/usb/host/xhci.c: if (HCC_64BIT_ADDR(xhci->hcc_params) &&
./drivers/usb/host/xhci.c: xhci->hcc_params, xhci->hci_version, xhci->quirks);
./drivers/usb/host/xhci.c: if (intr_num >= xhci->max_interrupters) {
./drivers/usb/host/xhci.c: xhci->max_interrupters);
./drivers/usb/host/xhci.c: if (!(xhci->xhc_state & XHCI_STATE_HALTED) &&
./drivers/usb/host/xhci.c: xhci->sec_event_ring && xhci->sec_event_ring[intr_num]
./drivers/usb/host/xhci.c: && xhci->sec_event_ring[intr_num]->first_seg)
./drivers/usb/host/xhci.c: return xhci->sec_event_ring[intr_num]->first_seg->dma;
./drivers/usb/host/xhci.c: if (!(xhci->xhc_state & XHCI_STATE_HALTED) && xhci->dcbaa)
./drivers/usb/host/xhci.c: return xhci->dcbaa->dev_context_ptrs[udev->slot_id];
./drivers/usb/host/xhci.c: virt_dev = xhci->devs[udev->slot_id];
./drivers/usb/host/xhci.c: .description = "xhci-hcd",
./drivers/usb/host/xhci-mvebu.c:#include "xhci-mvebu.h"
./drivers/usb/host/xhci-hub.c.orig:#include "xhci-trace.h"
./drivers/usb/host/xhci-hub.c.orig: if (xhci->usb3_rhub.min_rev >= 0x01 && xhci->usb3_rhub.psi_uid_count) {
./drivers/usb/host/xhci-hub.c.orig: ssa_count = xhci->usb3_rhub.psi_uid_count * 2;
./drivers/usb/host/xhci-hub.c.orig: temp = readl(&xhci->cap_regs->hcc_params);
./drivers/usb/host/xhci-hub.c.orig: if ((xhci->quirks & XHCI_LPM_SUPPORT)) {
./drivers/usb/host/xhci-hub.c.orig: temp = readl(&xhci->cap_regs->hcs_params3);
./drivers/usb/host/xhci-hub.c.orig: bm_attrib |= (xhci->usb3_rhub.psi_uid_count - 1) << 5;
./drivers/usb/host/xhci-hub.c.orig: for (i = 0; i < xhci->usb3_rhub.psi_count; i++) {
./drivers/usb/host/xhci-hub.c.orig: psi = xhci->usb3_rhub.psi[i];
./drivers/usb/host/xhci-hub.c.orig: if (HCC_PPC(xhci->hcc_params))
./drivers/usb/host/xhci-hub.c.orig: ports = xhci->num_usb2_ports;
./drivers/usb/host/xhci-hub.c.orig: portsc = readl(xhci->usb2_ports[i]);
./drivers/usb/host/xhci-hub.c.orig: ports = xhci->num_usb3_ports;
./drivers/usb/host/xhci-hub.c.orig: portsc = readl(xhci->usb3_ports[i]);
./drivers/usb/host/xhci-hub.c.orig: if (!xhci->devs[i])
./drivers/usb/host/xhci-hub.c.orig: speed = xhci->devs[i]->udev->speed;
./drivers/usb/host/xhci-hub.c.orig: && xhci->devs[i]->fake_port == port) {
./drivers/usb/host/xhci-hub.c.orig: virt_dev = xhci->devs[slot_id];
./drivers/usb/host/xhci-hub.c.orig: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: ep = &xhci->devs[slot_id]->eps[i];
./drivers/usb/host/xhci-hub.c.orig: max_ports = xhci->num_usb3_ports;
./drivers/usb/host/xhci-hub.c.orig: *port_array = xhci->usb3_ports;
./drivers/usb/host/xhci-hub.c.orig: max_ports = xhci->num_usb2_ports;
./drivers/usb/host/xhci-hub.c.orig: *port_array = xhci->usb2_ports;
./drivers/usb/host/xhci-hub.c.orig: if ((xhci->quirks & XHCI_COMP_MODE_QUIRK) &&
./drivers/usb/host/xhci-hub.c.orig: u32 all_ports_seen_u0 = ((1 << xhci->num_usb3_ports)-1);
./drivers/usb/host/xhci-hub.c.orig: if (!(xhci->quirks & XHCI_COMP_MODE_QUIRK))
./drivers/usb/host/xhci-hub.c.orig: if ((xhci->port_status_u0 != all_ports_seen_u0) && port_in_u0) {
./drivers/usb/host/xhci-hub.c.orig: xhci->port_status_u0 |= 1 << wIndex;
./drivers/usb/host/xhci-hub.c.orig: if (xhci->port_status_u0 == all_ports_seen_u0) {
./drivers/usb/host/xhci-hub.c.orig: del_timer_sync(&xhci->comp_mode_recovery_timer);
./drivers/usb/host/xhci-hub.c.orig: __releases(&xhci->lock)
./drivers/usb/host/xhci-hub.c.orig: __acquires(&xhci->lock)
./drivers/usb/host/xhci-hub.c.orig: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: bus_state = &xhci->bus_state[hcd_index(hcd)];
./drivers/usb/host/xhci-hub.c.orig: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: spin_unlock_irqrestore(&xhci->lock,
./drivers/usb/host/xhci-hub.c.orig: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: bus_state = &xhci->bus_state[hcd_index(hcd)];
./drivers/usb/host/xhci-hub.c.orig: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: bus_state = &xhci->bus_state[hcd_index(hcd)];
./drivers/usb/host/xhci-hub.c.orig: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: bus_state = &xhci->bus_state[hcd_index(hcd)];
./drivers/usb/host/xhci-hub.c.orig: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: temp = readl(&xhci->op_regs->command);
./drivers/usb/host/xhci-hub.c.orig: writel(temp, &xhci->op_regs->command);
./drivers/usb/host/xhci-hub.c.orig: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: spin_lock_irqsave(&xhci->lock, flags);
./drivers/usb/host/xhci-hub.c.orig: (void) readl(&xhci->op_regs->command);
./drivers/usb/host/xhci-hub.c.orig: temp = readl(&xhci->op_regs->command);
./drivers/usb/host/xhci-hub.c.orig: writel(temp, &xhci->op_regs->command);
./drivers/usb/host/xhci-hub.c.orig: temp = readl(&xhci->op_regs->command);
./drivers/usb/host/xhci-hub.c.orig: spin_unlock_irqrestore(&xhci->lock, flags);
./drivers/usb/host/xhci-mem.c:#include "xhci-trace.h"
./drivers/usb/host/xhci-mem.c: seg->trbs = dma_pool_alloc(xhci->segment_pool, flags, &dma);
./drivers/usb/host/xhci-mem.c: dma_pool_free(xhci->segment_pool, seg->trbs, seg->dma);
./drivers/usb/host/xhci-mem.c: (xhci->quirks & XHCI_AMD_0x96_HOST)))
./drivers/usb/host/xhci-mem.c: ctx->size = HCC_64BYTE_CONTEXT(xhci->hcc_params) ? 2048 : 1024;
./drivers/usb/host/xhci-mem.c: ctx->size += CTX_SIZE(xhci->hcc_params);
./drivers/usb/host/xhci-mem.c: ctx->bytes = dma_pool_alloc(xhci->device_pool, flags, &ctx->dma);
./drivers/usb/host/xhci-mem.c: dma_pool_free(xhci->device_pool, ctx->bytes, ctx->dma);
./drivers/usb/host/xhci-mem.c: (ctx->bytes + CTX_SIZE(xhci->hcc_params));
./drivers/usb/host/xhci-mem.c: (ctx->bytes + (ep_index * CTX_SIZE(xhci->hcc_params)));
./drivers/usb/host/xhci-mem.c: return dma_pool_free(xhci->small_streams_pool,
./drivers/usb/host/xhci-mem.c: return dma_pool_free(xhci->medium_streams_pool,
./drivers/usb/host/xhci-mem.c: return dma_pool_alloc(xhci->small_streams_pool,
./drivers/usb/host/xhci-mem.c: return dma_pool_alloc(xhci->medium_streams_pool,
./drivers/usb/host/xhci-mem.c: if (xhci->cmd_ring_reserved_trbs == MAX_RSVD_CMD_TRBS) {
./drivers/usb/host/xhci-mem.c: xhci->cmd_ring_reserved_trbs++;
./drivers/usb/host/xhci-mem.c: xhci->cmd_ring_reserved_trbs--;
./drivers/usb/host/xhci-mem.c: xhci->cmd_ring_reserved_trbs--;
./drivers/usb/host/xhci-mem.c: virt_dev->real_port > HCS_MAX_PORTS(xhci->hcs_params1)) {
./drivers/usb/host/xhci-mem.c: tt_list_head = &(xhci->rh_bw[virt_dev->real_port - 1].tts);
./drivers/usb/host/xhci-mem.c: &xhci->rh_bw[virt_dev->real_port - 1].tts);
./drivers/usb/host/xhci-mem.c: * Should be called with xhci->lock held if there is any chance the TT lists
./drivers/usb/host/xhci-mem.c: if (slot_id == 0 || !xhci->devs[slot_id])
./drivers/usb/host/xhci-mem.c: dev = xhci->devs[slot_id];
./drivers/usb/host/xhci-mem.c: xhci->dcbaa->dev_context_ptrs[slot_id] = 0;
./drivers/usb/host/xhci-mem.c: kfree(xhci->devs[slot_id]);
./drivers/usb/host/xhci-mem.c: xhci->devs[slot_id] = NULL;
./drivers/usb/host/xhci-mem.c: vdev = xhci->devs[slot_id];
./drivers/usb/host/xhci-mem.c: tt_list_head = &(xhci->rh_bw[vdev->real_port - 1].tts);
./drivers/usb/host/xhci-mem.c: for (i = 1; i < HCS_MAX_SLOTS(xhci->hcs_params1); i++) {
./drivers/usb/host/xhci-mem.c: vdev = xhci->devs[i];
./drivers/usb/host/xhci-mem.c: if (slot_id == 0 || xhci->devs[slot_id]) {
./drivers/usb/host/xhci-mem.c: xhci->devs[slot_id] = kzalloc(sizeof(*xhci->devs[slot_id]), flags);
./drivers/usb/host/xhci-mem.c: if (!xhci->devs[slot_id])
./drivers/usb/host/xhci-mem.c: dev = xhci->devs[slot_id];
./drivers/usb/host/xhci-mem.c: xhci->dcbaa->dev_context_ptrs[slot_id] = cpu_to_le64(dev->out_ctx->dma);
./drivers/usb/host/xhci-mem.c: &xhci->dcbaa->dev_context_ptrs[slot_id],
./drivers/usb/host/xhci-mem.c: le64_to_cpu(xhci->dcbaa->dev_context_ptrs[slot_id]));
./drivers/usb/host/xhci-mem.c: virt_dev = xhci->devs[udev->slot_id];
./drivers/usb/host/xhci-mem.c: * status registers. xhci->port_array provides an array of the port speed for
./drivers/usb/host/xhci-mem.c: hcd = xhci->shared_hcd;
./drivers/usb/host/xhci-mem.c: hcd = xhci->main_hcd;
./drivers/usb/host/xhci-mem.c: dev = xhci->devs[udev->slot_id];
./drivers/usb/host/xhci-mem.c: dev->bw_table = &xhci->rh_bw[port_num - 1].bw_table;
./drivers/usb/host/xhci-mem.c: rh_bw = &xhci->rh_bw[port_num - 1];
./drivers/usb/host/xhci-mem.c: if (usb_endpoint_xfer_control(&ep->desc) && xhci->hci_version >= 0x100)
./drivers/usb/host/xhci-mem.c: int num_sp = HCS_MAX_SCRATCHPAD(xhci->hcs_params2);
./drivers/usb/host/xhci-mem.c: xhci->scratchpad = kzalloc(sizeof(*xhci->scratchpad), flags);
./drivers/usb/host/xhci-mem.c: if (!xhci->scratchpad)
./drivers/usb/host/xhci-mem.c: xhci->scratchpad->sp_array = dma_alloc_coherent(dev,
./drivers/usb/host/xhci-mem.c: &xhci->scratchpad->sp_dma, flags);
./drivers/usb/host/xhci-mem.c: if (!xhci->scratchpad->sp_array)
./drivers/usb/host/xhci-mem.c: xhci->scratchpad->sp_buffers = kzalloc(sizeof(void *) * num_sp, flags);
./drivers/usb/host/xhci-mem.c: if (!xhci->scratchpad->sp_buffers)
./drivers/usb/host/xhci-mem.c: xhci->scratchpad->sp_dma_buffers =
./drivers/usb/host/xhci-mem.c: if (!xhci->scratchpad->sp_dma_buffers)
./drivers/usb/host/xhci-mem.c: xhci->dcbaa->dev_context_ptrs[0] = cpu_to_le64(xhci->scratchpad->sp_dma);
./drivers/usb/host/xhci-mem.c: void *buf = dma_alloc_coherent(dev, xhci->page_size, &dma,
./drivers/usb/host/xhci-mem.c: xhci->scratchpad->sp_array[i] = dma;
./drivers/usb/host/xhci-mem.c: xhci->scratchpad->sp_buffers[i] = buf;
./drivers/usb/host/xhci-mem.c: xhci->scratchpad->sp_dma_buffers[i] = dma;
./drivers/usb/host/xhci-mem.c: dma_free_coherent(dev, xhci->page_size,
./drivers/usb/host/xhci-mem.c: xhci->scratchpad->sp_buffers[i],
./drivers/usb/host/xhci-mem.c: xhci->scratchpad->sp_dma_buffers[i]);
./drivers/usb/host/xhci-mem.c: kfree(xhci->scratchpad->sp_dma_buffers);
./drivers/usb/host/xhci-mem.c: kfree(xhci->scratchpad->sp_buffers);
./drivers/usb/host/xhci-mem.c: xhci->scratchpad->sp_array,
./drivers/usb/host/xhci-mem.c: xhci->scratchpad->sp_dma);
./drivers/usb/host/xhci-mem.c: kfree(xhci->scratchpad);
./drivers/usb/host/xhci-mem.c: xhci->scratchpad = NULL;
./drivers/usb/host/xhci-mem.c: if (!xhci->scratchpad)
./drivers/usb/host/xhci-mem.c: num_sp = HCS_MAX_SCRATCHPAD(xhci->hcs_params2);
./drivers/usb/host/xhci-mem.c: dma_free_coherent(dev, xhci->page_size,
./drivers/usb/host/xhci-mem.c: xhci->scratchpad->sp_buffers[i],
./drivers/usb/host/xhci-mem.c: xhci->scratchpad->sp_dma_buffers[i]);
./drivers/usb/host/xhci-mem.c: kfree(xhci->scratchpad->sp_dma_buffers);
./drivers/usb/host/xhci-mem.c: kfree(xhci->scratchpad->sp_buffers);
./drivers/usb/host/xhci-mem.c: xhci->scratchpad->sp_array,
./drivers/usb/host/xhci-mem.c: xhci->scratchpad->sp_dma);
./drivers/usb/host/xhci-mem.c: kfree(xhci->scratchpad);
./drivers/usb/host/xhci-mem.c: xhci->scratchpad = NULL;
./drivers/usb/host/xhci-mem.c: readl_relaxed(&xhci->sec_ir_set[intr_num]->irq_pending);
./drivers/usb/host/xhci-mem.c: &xhci->sec_ir_set[intr_num]->irq_pending);
./drivers/usb/host/xhci-mem.c: readl_relaxed(&xhci->sec_ir_set[intr_num]->irq_pending);
./drivers/usb/host/xhci-mem.c: &xhci->sec_ir_set[intr_num]->irq_pending);
./drivers/usb/host/xhci-mem.c: xhci_read_64(xhci, &xhci->sec_ir_set[intr_num]->erst_dequeue);
./drivers/usb/host/xhci-mem.c: seg = xhci->sec_event_ring[intr_num]->first_seg;
./drivers/usb/host/xhci-mem.c: xhci->sec_event_ring[intr_num]->cycle_state =
./drivers/usb/host/xhci-mem.c: xhci->sec_event_ring[intr_num]->cycle_state ^= 1;
./drivers/usb/host/xhci-mem.c: xhci->sec_event_ring[intr_num]->cycle_state)
./drivers/usb/host/xhci-mem.c: xhci_trb_virt_to_dma(xhci->sec_event_ring[intr_num]->deq_seg,
./drivers/usb/host/xhci-mem.c: &xhci->sec_ir_set[intr_num]->erst_dequeue);
./drivers/usb/host/xhci-mem.c: if (intr_num >= xhci->max_interrupters) {
./drivers/usb/host/xhci-mem.c: sizeof(struct xhci_erst_entry)*(xhci->sec_erst[intr_num].num_entries);
./drivers/usb/host/xhci-mem.c: if (xhci->sec_erst[intr_num].entries) {
./drivers/usb/host/xhci-mem.c: dma_free_coherent(dev, size, xhci->sec_erst[intr_num].entries,
./drivers/usb/host/xhci-mem.c: xhci->sec_erst[intr_num].erst_dma_addr);
./drivers/usb/host/xhci-mem.c: xhci->sec_erst[intr_num].entries = NULL;
./drivers/usb/host/xhci-mem.c: if (xhci->sec_event_ring[intr_num])
./drivers/usb/host/xhci-mem.c: xhci_ring_free(xhci, xhci->sec_event_ring[intr_num]);
./drivers/usb/host/xhci-mem.c: xhci->sec_event_ring[intr_num] = NULL;
./drivers/usb/host/xhci-mem.c: for (i = 1; i < xhci->max_interrupters; i++)
./drivers/usb/host/xhci-mem.c: kfree(xhci->sec_ir_set);
./drivers/usb/host/xhci-mem.c: xhci->sec_ir_set = NULL;
./drivers/usb/host/xhci-mem.c: kfree(xhci->sec_erst);
./drivers/usb/host/xhci-mem.c: xhci->sec_erst = NULL;
./drivers/usb/host/xhci-mem.c: kfree(xhci->sec_event_ring);
./drivers/usb/host/xhci-mem.c: xhci->sec_event_ring = NULL;
./drivers/usb/host/xhci-mem.c: size = sizeof(struct xhci_erst_entry)*(xhci->erst.num_entries);
./drivers/usb/host/xhci-mem.c: if (xhci->erst.entries)
./drivers/usb/host/xhci-mem.c: xhci->erst.entries, xhci->erst.erst_dma_addr);
./drivers/usb/host/xhci-mem.c: xhci->erst.entries = NULL;
./drivers/usb/host/xhci-mem.c: if (xhci->event_ring)
./drivers/usb/host/xhci-mem.c: xhci_ring_free(xhci, xhci->event_ring);
./drivers/usb/host/xhci-mem.c: xhci->event_ring = NULL;
./drivers/usb/host/xhci-mem.c: cancel_delayed_work_sync(&xhci->cmd_timer);
./drivers/usb/host/xhci-mem.c: if (xhci->lpm_command)
./drivers/usb/host/xhci-mem.c: xhci_free_command(xhci, xhci->lpm_command);
./drivers/usb/host/xhci-mem.c: xhci->lpm_command = NULL;
./drivers/usb/host/xhci-mem.c: if (xhci->cmd_ring)
./drivers/usb/host/xhci-mem.c: xhci_ring_free(xhci, xhci->cmd_ring);
./drivers/usb/host/xhci-mem.c: xhci->cmd_ring = NULL;
./drivers/usb/host/xhci-mem.c: num_ports = HCS_MAX_PORTS(xhci->hcs_params1);
./drivers/usb/host/xhci-mem.c: for (i = 0; i < num_ports && xhci->rh_bw; i++) {
./drivers/usb/host/xhci-mem.c: struct xhci_interval_bw_table *bwt = &xhci->rh_bw[i].bw_table;
./drivers/usb/host/xhci-mem.c: for (i = HCS_MAX_SLOTS(xhci->hcs_params1); i > 0; i--)
./drivers/usb/host/xhci-mem.c: dma_pool_destroy(xhci->segment_pool);
./drivers/usb/host/xhci-mem.c: xhci->segment_pool = NULL;
./drivers/usb/host/xhci-mem.c: dma_pool_destroy(xhci->device_pool);
./drivers/usb/host/xhci-mem.c: xhci->device_pool = NULL;
./drivers/usb/host/xhci-mem.c: dma_pool_destroy(xhci->small_streams_pool);
./drivers/usb/host/xhci-mem.c: xhci->small_streams_pool = NULL;
./drivers/usb/host/xhci-mem.c: dma_pool_destroy(xhci->medium_streams_pool);
./drivers/usb/host/xhci-mem.c: xhci->medium_streams_pool = NULL;
./drivers/usb/host/xhci-mem.c: if (xhci->dcbaa)
./drivers/usb/host/xhci-mem.c: dma_free_coherent(dev, sizeof(*xhci->dcbaa),
./drivers/usb/host/xhci-mem.c: xhci->dcbaa, xhci->dcbaa->dma);
./drivers/usb/host/xhci-mem.c: xhci->dcbaa = NULL;
./drivers/usb/host/xhci-mem.c: if (!xhci->rh_bw)
./drivers/usb/host/xhci-mem.c: list_for_each_entry_safe(tt, n, &xhci->rh_bw[i].tts, tt_list) {
./drivers/usb/host/xhci-mem.c: xhci->cmd_ring_reserved_trbs = 0;
./drivers/usb/host/xhci-mem.c: xhci->num_usb2_ports = 0;
./drivers/usb/host/xhci-mem.c: xhci->num_usb3_ports = 0;
./drivers/usb/host/xhci-mem.c: xhci->num_active_eps = 0;
./drivers/usb/host/xhci-mem.c: kfree(xhci->usb2_ports);
./drivers/usb/host/xhci-mem.c: kfree(xhci->usb3_ports);
./drivers/usb/host/xhci-mem.c: kfree(xhci->port_array);
./drivers/usb/host/xhci-mem.c: kfree(xhci->rh_bw);
./drivers/usb/host/xhci-mem.c: kfree(xhci->ext_caps);
./drivers/usb/host/xhci-mem.c: xhci->usb2_ports = NULL;
./drivers/usb/host/xhci-mem.c: xhci->usb3_ports = NULL;
./drivers/usb/host/xhci-mem.c: xhci->port_array = NULL;
./drivers/usb/host/xhci-mem.c: xhci->rh_bw = NULL;
./drivers/usb/host/xhci-mem.c: xhci->ext_caps = NULL;
./drivers/usb/host/xhci-mem.c: xhci->page_size = 0;
./drivers/usb/host/xhci-mem.c: xhci->page_shift = 0;
./drivers/usb/host/xhci-mem.c: xhci->bus_state[0].bus_suspended = 0;
./drivers/usb/host/xhci-mem.c: xhci->bus_state[1].bus_suspended = 0;
./drivers/usb/host/xhci-mem.c: { xhci->event_ring->first_seg->dma - 16, NULL },
./drivers/usb/host/xhci-mem.c: { xhci->event_ring->first_seg->dma - 1, NULL },
./drivers/usb/host/xhci-mem.c: { xhci->event_ring->first_seg->dma, xhci->event_ring->first_seg },
./drivers/usb/host/xhci-mem.c: { xhci->event_ring->first_seg->dma + (TRBS_PER_SEGMENT - 1)*16,
./drivers/usb/host/xhci-mem.c: xhci->event_ring->first_seg },
./drivers/usb/host/xhci-mem.c: { xhci->event_ring->first_seg->dma + (TRBS_PER_SEGMENT - 1)*16 + 1, NULL },
./drivers/usb/host/xhci-mem.c: { xhci->event_ring->first_seg->dma + (TRBS_PER_SEGMENT)*16, NULL },
./drivers/usb/host/xhci-mem.c: { .input_seg = xhci->event_ring->first_seg,
./drivers/usb/host/xhci-mem.c: .start_trb = xhci->event_ring->first_seg->trbs,
./drivers/usb/host/xhci-mem.c: .end_trb = &xhci->event_ring->first_seg->trbs[TRBS_PER_SEGMENT - 1],
./drivers/usb/host/xhci-mem.c: .input_dma = xhci->cmd_ring->first_seg->dma,
./drivers/usb/host/xhci-mem.c: { .input_seg = xhci->event_ring->first_seg,
./drivers/usb/host/xhci-mem.c: .start_trb = xhci->event_ring->first_seg->trbs,
./drivers/usb/host/xhci-mem.c: .end_trb = &xhci->cmd_ring->first_seg->trbs[TRBS_PER_SEGMENT - 1],
./drivers/usb/host/xhci-mem.c: .input_dma = xhci->cmd_ring->first_seg->dma,
./drivers/usb/host/xhci-mem.c: { .input_seg = xhci->event_ring->first_seg,
./drivers/usb/host/xhci-mem.c: .start_trb = xhci->cmd_ring->first_seg->trbs,
./drivers/usb/host/xhci-mem.c: .end_trb = &xhci->cmd_ring->first_seg->trbs[TRBS_PER_SEGMENT - 1],