v3.22.0.1
Collateralized Agreements and Financings - Offsetting Arrangements (Detail) - USD ($)
$ in Millions
Dec. 31, 2021
Dec. 31, 2020
Collateralized Agreements And Financings [Abstract]    
Resale agreements, Gross carrying value $ 334,725 $ 205,817
Resale agreements, Counterparty Netting (129,022) (97,757)
Resale agreements 205,703 108,060
Resale agreements, Counterparty Netting (27,376) (8,920)
Resale agreements, Collateral (173,915) (96,140)
Resale agreements 4,412 3,000
Securities borrowed, Gross carrying value 190,197 147,593
Securities borrowed, Counterparty Netting (11,426) (5,433)
Securities borrowed 178,771 142,160
Securities borrowed, Counterparty Netting (12,822) (3,525)
Securities borrowed, Collateral (157,752) (132,893)
Securities borrowed 8,197 5,742
Repurchase agreements, Gross carrying value 294,905 224,328
Repurchase agreements, Counterparty Netting (129,022) (97,757)
Repurchase agreements 165,883 126,571
Repurchase agreements, Counterparty Netting (27,376) (8,920)
Repurchase agreements, Collateral (134,465) (116,819)
Repurchase agreements 4,042 832
Securities loaned, Gross carrying value 57,931 27,054
Securities loaned, Counterparty Netting (11,426) (5,433)
Securities loaned 46,505 21,621
Securities loaned, Counterparty Netting (12,822) (3,525)
Securities loaned, Collateral (33,143) (17,693)
Securities loaned $ 540 $ 403