Home
last modified time | relevance | path

Searched refs:b (Results 1 – 14 of 14) sorted by relevance

/devicemodel/include/
A Dmacros.h40 #define _CONCAT_(a, b) a ## b argument
41 #define __CONCAT(a, b) _CONCAT_(a, b) argument
A Dsegments.h90 #define USD_SETBASE(sd, b) do { (sd)->sd_lobase = (b); \ argument
91 (sd)->sd_hibase = ((b) >> 24); } \
A Dpci_core.h41 #define PCI_BDF(b, d, f) (((b & 0xFF) << 8) | ((d & 0x1F) << 3) | ((f & 0x7))) argument
307 typedef void (*pci_lintr_cb)(int b, int s, int pin, int pirq_pin,
/devicemodel/hw/platform/tpm/
A Dtpm_emulator.c165 static inline uint16_t tpm_cmd_get_tag(const void *b) in tpm_cmd_get_tag() argument
167 return __builtin_bswap16(*(uint16_t*)(b)); in tpm_cmd_get_tag()
170 static inline uint32_t tpm_cmd_get_size(const void *b) in tpm_cmd_get_size() argument
172 return __builtin_bswap32(*(uint32_t*)(b + 2)); in tpm_cmd_get_size()
175 static inline uint32_t tpm_cmd_get_ordinal(const void *b) in tpm_cmd_get_ordinal() argument
177 return __builtin_bswap32(*(uint32_t*)(b + 6)); in tpm_cmd_get_ordinal()
180 static inline uint32_t tpm_cmd_get_errcode(const void *b) in tpm_cmd_get_errcode() argument
182 return __builtin_bswap32(*(uint32_t*)(b + 6)); in tpm_cmd_get_errcode()
187 *(uint16_t*)(b) = __builtin_bswap16(tag); in tpm_cmd_set_tag()
192 *(uint32_t*)(b + 2) = __builtin_bswap32(size); in tpm_cmd_set_size()
[all …]
/devicemodel/core/
A Dmem.c66 mmio_rb_range_compare(struct mmio_rb_range *a, struct mmio_rb_range *b) in mmio_rb_range_compare() argument
68 if (a->mr_end < b->mr_base) in mmio_rb_range_compare()
70 else if (a->mr_base > b->mr_end) in mmio_rb_range_compare()
/devicemodel/hw/pci/
A Dnpk.c187 int i, b, s, f, fd, ret, rc, error = -1; in pci_npk_init() local
238 parse_bdf((dent->d_name + 5), &b, &s, &f, 16) != 0) in pci_npk_init()
321 b, s, f, sw_bar_base, dev->bar[2].addr, in pci_npk_init()
A Dcore.c289 char *emul, *config, *str, *cp, *b = NULL; in pci_parse_slot() local
306 b = strsep(&cp, ","); in pci_parse_slot()
356 if (b != NULL) { in pci_parse_slot()
357 if ((strcmp("virtio-blk", emul) == 0) && (b != NULL) && in pci_parse_slot()
358 (strchr(b, 'b') != NULL)) { in pci_parse_slot()
A Dxhci.c180 #define FIELD_REPLACE(a, b, m, s) (((a) & ~((m) << (s))) | \ argument
181 (((b) & (m)) << (s)))
182 #define FIELD_COPY(a, b, m, s) (((a) & ~((m) << (s))) | \ argument
183 (((b) & ((m) << (s)))))
/devicemodel/log/
A Ddisk_logger.c44 #define INDEX_AFTER(a, b) ((short int)b - (short int)a < 0) argument
/devicemodel/hw/pci/virtio/
A Dvirtio_mei.c55 #define GUID_INIT(a, b, c, d0, d1, d2, d3, d4, d5, d6, d7) \ argument
56 UUID_LE(a, b, c, d0, d1, d2, d3, d4, d5, d6, d7)
64 uint16_t b, c; in guid_parse() local
84 b = strtoul(str + 9, NULL, 16); in guid_parse()
100 *guid = GUID_INIT(a, b, c, in guid_parse()
114 pos += snprintf(str + pos, len - pos, "%02x", guid->b[3]); in guid_unparse()
115 pos += snprintf(str + pos, len - pos, "%02x", guid->b[2]); in guid_unparse()
116 pos += snprintf(str + pos, len - pos, "%02x", guid->b[1]); in guid_unparse()
117 pos += snprintf(str + pos, len - pos, "%02x", guid->b[0]); in guid_unparse()
120 pos += snprintf(str + pos, len - pos, "%02x", guid->b[5]); in guid_unparse()
[all …]
A Dvirtio_gpio.c793 char *b, *o, *c; in native_gpio_find_line() local
796 b = o = strdup(name); in native_gpio_find_line()
818 free(b); in native_gpio_find_line()
827 char *cstr, *lstr, *tmp, *b, *o; in native_gpio_init() local
841 b = o = strdup(opts); in native_gpio_init()
900 free(b); in native_gpio_init()
/devicemodel/hw/platform/
A Dusb_pmapper.c758 struct usb_block *b; in usb_dev_data() local
832 b = &xfer->data[idx]; in usb_dev_data()
833 if (b->type == USB_DATA_PART || in usb_dev_data()
834 b->type == USB_DATA_FULL) { in usb_dev_data()
835 memcpy(&r->buffer[buf_idx], b->buf, b->blen); in usb_dev_data()
836 buf_idx += b->blen; in usb_dev_data()
/devicemodel/hw/
A Dblock_if.c1306 long long b; in blockif_open() local
1468 err_code = ioctl(fd, BLKGETSIZE64, &b); in blockif_open()
1469 if (err_code || b == 0 || b == sz) in blockif_open()
1470 size = b * DEV_BSIZE; in blockif_open()
1472 size = b; in blockif_open()
/devicemodel/bios/
A Dchangelog_ovmf.txt80 - 456dd8b99f - CryptoPkg: Upgrade OpenSSL to 1.1.1b (2019-06-03) <XiaoyuX

Completed in 39 milliseconds