Searched refs:capdata (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/uwb/
H A Dwhci.c27 u64 whci_capdata_quirks(struct whci_card *card, u64 capdata) whci_capdata_quirks() argument
29 u64 capdata_orig = capdata; whci_capdata_quirks()
34 switch (UWBCAPDATA_TO_CAP_ID(capdata)) { whci_capdata_quirks()
37 capdata |= 0x40 << 8; break; whci_capdata_quirks()
41 capdata &= ~0xffff; whci_capdata_quirks()
42 capdata |= 0x2001; whci_capdata_quirks()
46 if (capdata_orig != capdata) whci_capdata_quirks()
49 "corrected capdata from %016Lx to %016Lx\n", whci_capdata_quirks()
51 (unsigned)UWBCAPDATA_TO_CAP_ID(capdata), whci_capdata_quirks()
53 (unsigned long long)capdata); whci_capdata_quirks()
54 return capdata; whci_capdata_quirks()
85 * NOTE: the capinfo and capdata registers are slightly different
95 u64 capdata; whci_add_cap() local
102 capdata = le_readq(card->uwbbase + UWBCAPDATA(n)); whci_add_cap()
104 bar = UWBCAPDATA_TO_BAR(capdata) << 1; whci_add_cap()
106 capdata = whci_capdata_quirks(card, capdata); whci_add_cap()
109 umc->version = UWBCAPDATA_TO_VERSION(capdata); whci_add_cap()
110 umc->cap_id = n == 0 ? 0 : UWBCAPDATA_TO_CAP_ID(capdata); whci_add_cap()
113 + UWBCAPDATA_TO_OFFSET(capdata); whci_add_cap()
115 + (n == 0 ? 0x20 : UWBCAPDATA_TO_SIZE(capdata)) - 1; whci_add_cap()

Completed in 49 milliseconds