Lines Matching refs:len
866 dvsec_cxl_device(struct device *d, int rev, int where, int len) in dvsec_cxl_device() argument
876 if (rev >= 1 && len >= PCI_CXL_DEV_LEN) in dvsec_cxl_device()
939 if (rev >= 2 && len >= PCI_CXL_DEV_LEN_REV2) in dvsec_cxl_device()
950 if (len > PCI_CXL_DEV_LEN_REV2) in dvsec_cxl_device()
955 dvsec_cxl_port(struct device *d, int where, int len) in dvsec_cxl_port() argument
960 if (len < PCI_CXL_PORT_EXT_LEN) in dvsec_cxl_port()
981 dvsec_cxl_register_locator(struct device *d, int where, int len) in dvsec_cxl_register_locator() argument
994 if (pos + 7 >= where + len) in dvsec_cxl_register_locator()
1131 dvsec_cxl_flex_bus(struct device *d, int where, int rev, int len) in dvsec_cxl_flex_bus() argument
1139 if (len != PCI_CXL_FB_MOD_TS_DATA) in dvsec_cxl_flex_bus()
1143 if (len != PCI_CXL_FB_PORT_CAP2) in dvsec_cxl_flex_bus()
1147 if (len != PCI_CXL_FB_NEXT_UNSUPPORTED) in dvsec_cxl_flex_bus()
1214 if (len > PCI_CXL_FB_LEN) in dvsec_cxl_flex_bus()
1260 cap_dvsec_cxl(struct device *d, int id, int rev, int where, int len) in cap_dvsec_cxl() argument
1266 if (!config_fetch(d, where, len)) in cap_dvsec_cxl()
1273 dvsec_cxl_device(d, rev, where, len); in cap_dvsec_cxl()
1281 dvsec_cxl_port(d, where, len); in cap_dvsec_cxl()
1293 dvsec_cxl_flex_bus(d, where, rev, len); in cap_dvsec_cxl()
1297 dvsec_cxl_register_locator(d, where, len); in cap_dvsec_cxl()
1324 u16 len = BITS(hdr, 20, 12); in cap_dvsec() local
1328 printf("Vendor=%04x ID=%04x Rev=%d Len=%d", vendor, id, rev, len); in cap_dvsec()
1329 if (vendor == PCI_DVSEC_VENDOR_ID_CXL && len >= 16) in cap_dvsec()
1330 cap_dvsec_cxl(d, id, rev, where, len); in cap_dvsec()
1631 static const char *ide_alg(char *buf, size_t len, u32 l) in ide_alg() argument
1636 snprintf(buf, len, "%s", algo[l]); in ide_alg()
1638 snprintf(buf, len, "%s", "reserved"); in ide_alg()