/openbmc/linux/drivers/net/ethernet/sfc/ |
H A D | mcdi.h | 202 #define MCDI_PTR(_buf, _field) \ argument 209 _MCDI_PTR(_buf, _field ## _OFST) 212 #define _MCDI_DWORD(_buf, _field) \ argument 218 BUILD_BUG_ON(_field ## _LEN != 1); \ 227 #define MCDI_BYTE(_buf, _field) \ argument 229 *MCDI_PTR(_buf, _field)) 232 *MCDI_STRUCT_PTR(_buf, _field)) 243 #define MCDI_WORD(_buf, _field) \ argument 264 #define MCDI_DWORD(_buf, _field) \ argument 335 #define MCDI_QWORD(_buf, _field) \ argument [all …]
|
/openbmc/linux/drivers/net/ethernet/sfc/siena/ |
H A D | mcdi.h | 204 #define MCDI_PTR(_buf, _field) \ argument 205 _MCDI_PTR(_buf, MC_CMD_ ## _field ## _OFST) 208 #define _MCDI_DWORD(_buf, _field) \ argument 211 #define MCDI_BYTE(_buf, _field) \ argument 213 *MCDI_PTR(_buf, _field)) 214 #define MCDI_WORD(_buf, _field) \ argument 219 #define MCDI_DWORD(_buf, _field) \ argument 282 #define MCDI_QWORD(_buf, _field) \ argument 302 ((_len) - MC_CMD_ ## _field ## _OFST) / MC_CMD_ ## _field ## _LEN) 329 #define MCDI_EVENT_FIELD(_ev, _field) \ argument [all …]
|
/openbmc/qemu/include/migration/ |
H A D | vmstate.h | 267 #define vmstate_offset_value(_state, _field, _type) \ argument 268 (offsetof(_state, _field) + \ 269 type_check(_type, typeof_field(_state, _field))) 271 #define vmstate_offset_pointer(_state, _field, _type) \ argument 273 type_check_pointer(_type, typeof_field(_state, _field))) 277 type_check_array(_type, typeof_field(_state, _field), _num)) 284 vmstate_offset_value(_state, _field[_start], _type) 288 sizeof(typeof_field(_state, _field))) 292 type_check_varray(_type, _state, _field)) 764 #define VMSTATE_BITMAP(_field, _state, _version, _field_size) \ argument [all …]
|
/openbmc/linux/drivers/cdx/controller/ |
H A D | mcdi.h | 210 #define MCDI_PTR(_buf, _field) \ argument 211 _MCDI_PTR(_buf, MC_CMD_ ## _field ## _OFST) 215 #define _MCDI_DWORD(_buf, _field) \ argument 218 #define MCDI_BYTE(_buf, _field) \ argument 220 *MCDI_PTR(_buf, _field)) 221 #define MCDI_WORD(_buf, _field) \ argument 224 #define MCDI_SET_DWORD(_buf, _field, _value) \ argument 226 #define MCDI_DWORD(_buf, _field) \ argument 229 CDX_POPULATE_DWORD_1(*_MCDI_DWORD(_buf, _field), \ 231 #define MCDI_SET_QWORD(_buf, _field, _value) \ argument [all …]
|
/openbmc/linux/drivers/net/ethernet/amd/xgbe/ |
H A D | xgbe-common.h | 1478 _prefix##_##_field##_WIDTH) 1488 _prefix##_##_field##_WIDTH) 1508 _reg##_##_field##_WIDTH) 1533 _reg##_##_field##_WIDTH) 1558 _reg##_##_field##_WIDTH) 1578 _prefix##_##_field##_WIDTH) 1616 _reg##_##_field##_WIDTH) 1636 _reg##_##_field##_WIDTH) 1659 _reg##_##_field##_WIDTH) 1692 _reg##_##_field##_WIDTH) [all …]
|
/openbmc/qemu/include/hw/ |
H A D | qdev-properties.h | 67 #define DEFINE_PROP(_name, _state, _field, _prop, _type, ...) { \ argument 70 .offset = offsetof(_state, _field) \ 71 + type_check(_type, typeof_field(_state, _field)), \ 81 DEFINE_PROP(_name, _state, _field, _prop, _type) 83 #define DEFINE_PROP_BIT(_name, _state, _field, _bit, _defval) \ argument 84 DEFINE_PROP(_name, _state, _field, qdev_prop_bit, uint32_t, \ 95 DEFINE_PROP(_name, _state, _field, _prop, _type) 97 #define DEFINE_PROP_BIT64(_name, _state, _field, _bit, _defval) \ argument 98 DEFINE_PROP(_name, _state, _field, qdev_prop_bit64, uint64_t, \ 103 #define DEFINE_PROP_BOOL(_name, _state, _field, _defval) \ argument [all …]
|
H A D | qdev-properties-system.h | 79 #define DEFINE_PROP_UUID(_name, _state, _field) \ argument 80 DEFINE_PROP(_name, _state, _field, qdev_prop_uuid, QemuUUID, \ 86 #define DEFINE_PROP_UUID_NODEFAULT(_name, _state, _field) \ argument 87 DEFINE_PROP(_name, _state, _field, qdev_prop_uuid, QemuUUID) 93 #define DEFINE_PROP_IOTHREAD_VQ_MAPPING_LIST(_name, _state, _field) \ argument 94 DEFINE_PROP(_name, _state, _field, qdev_prop_iothread_vq_mapping_list, \
|
/openbmc/linux/tools/perf/ui/ |
H A D | hist.c | 346 return he->stat._field; \ 364 #define __HPP_SORT_FN(_type, _field) \ argument 374 return he->stat_acc->_field; \ 402 return he->stat._field; \ 421 __HPP_COLOR_PERCENT_FN(_type, _field) \ 422 __HPP_ENTRY_PERCENT_FN(_type, _field) \ 423 __HPP_SORT_FN(_type, _field) 428 __HPP_SORT_ACC_FN(_type, _field) 430 #define HPP_RAW_FNS(_type, _field) \ argument 431 __HPP_ENTRY_RAW_FN(_type, _field) \ [all …]
|
/openbmc/qemu/include/hw/input/ |
H A D | hid.h | 64 #define VMSTATE_HID_KEYBOARD_DEVICE(_field, _state) { \ argument 65 .name = (stringify(_field)), \ 69 .offset = vmstate_offset_value(_state, _field, HIDState), \ 74 #define VMSTATE_HID_POINTER_DEVICE(_field, _state) { \ argument 75 .name = (stringify(_field)), \ 79 .offset = vmstate_offset_value(_state, _field, HIDState), \
|
/openbmc/qemu/include/qemu/ |
H A D | fifo8.h | 193 #define VMSTATE_FIFO8_TEST(_field, _state, _test) { \ argument 194 .name = (stringify(_field)), \ 199 .offset = vmstate_offset_value(_state, _field, Fifo8), \ 202 #define VMSTATE_FIFO8(_field, _state) \ argument 203 VMSTATE_FIFO8_TEST(_field, _state, NULL)
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/fw/api/ |
H A D | coex.h | 136 #define BT_MBOX_MSG(_notif, _num, _field) \ argument 137 ((le32_to_cpu((_notif)->mbox_msg[(_num)]) & BT_MBOX##_num##_##_field)\ 138 >> BT_MBOX##_num##_##_field##_POS) 140 #define BT_MBOX_PRINT(_num, _field, _end) \ argument 143 #_field, \ 144 BT_MBOX_MSG(notif, _num, _field), \
|
/openbmc/linux/arch/powerpc/platforms/cell/spufs/ |
H A D | spu_utils.h | 50 #define LSCSA_BYTE_OFFSET(_field) \ argument 51 ((char *)(&(dummy->_field)) - (char *)(&(dummy->gprs[0].slot[0]))) 52 #define LSCSA_QW_OFFSET(_field) (LSCSA_BYTE_OFFSET(_field) >> 4) argument
|
/openbmc/linux/arch/mips/ath25/ |
H A D | devices.h | 7 #define ATH25_REG_MS(_val, _field) (((_val) & _field##_M) >> _field##_S) argument
|
/openbmc/qemu/target/ppc/ |
H A D | cpu-qom.h | 48 #define VMSTATE_PPC_TIMEBASE_V(_field, _state, _version) { \ argument 49 .name = (stringify(_field)), \ 54 .offset = vmstate_offset_value(_state, _field, PPCTimebase), \
|
/openbmc/qemu/hw/ide/ |
H A D | ide-internal.h | 382 #define VMSTATE_IDE_BUS(_field, _state) \ argument 383 VMSTATE_STRUCT(_field, _state, 1, vmstate_ide_bus, IDEBus) 385 #define VMSTATE_IDE_BUS_ARRAY(_field, _state, _num) \ argument 386 VMSTATE_STRUCT_ARRAY(_field, _state, _num, 1, vmstate_ide_bus, IDEBus) 390 #define VMSTATE_IDE_DRIVES(_field, _state) \ argument 391 VMSTATE_STRUCT_ARRAY(_field, _state, 2, 3, vmstate_ide_drive, IDEState) 393 #define VMSTATE_IDE_DRIVE(_field, _state) \ argument 394 VMSTATE_STRUCT(_field, _state, 1, vmstate_ide_drive, IDEState)
|
/openbmc/qemu/include/hw/i2c/ |
H A D | smbus_slave.h | 81 #define VMSTATE_SMBUS_DEVICE(_field, _state) { \ argument 82 .name = (stringify(_field)), \ 86 .offset = vmstate_offset_value(_state, _field, SMBusDevice), \
|
/openbmc/qemu/hw/usb/ |
H A D | u2f.h | 78 #define VMSTATE_U2F_KEY(_field, _state) { \ argument 79 .name = (stringify(_field)), \ 83 .offset = vmstate_offset_value(_state, _field, U2FKeyState), \
|
/openbmc/linux/drivers/net/ethernet/atheros/alx/ |
H A D | hw.h | 456 #define ALX_GET_FIELD(_data, _field) \ argument 457 (((_data) >> _field ## _SHIFT) & _field ## _MASK) 459 #define ALX_SET_FIELD(_data, _field, _value) do { \ argument 460 (_data) &= ~(_field ## _MASK << _field ## _SHIFT); \ 461 (_data) |= ((_value) & _field ## _MASK) << _field ## _SHIFT;\
|
/openbmc/linux/drivers/bcma/ |
H A D | sprom.c | 185 #define SPEX(_field, _offset, _mask, _shift) \ argument 188 #define SPEX32(_field, _offset, _mask, _shift) \ argument 192 #define SPEX_ARRAY8(_field, _offset, _mask, _shift) \ argument 194 SPEX(_field[0], _offset + 0, _mask, _shift); \ 195 SPEX(_field[1], _offset + 2, _mask, _shift); \ 196 SPEX(_field[2], _offset + 4, _mask, _shift); \ 197 SPEX(_field[3], _offset + 6, _mask, _shift); \ 198 SPEX(_field[4], _offset + 8, _mask, _shift); \ 199 SPEX(_field[5], _offset + 10, _mask, _shift); \ 200 SPEX(_field[6], _offset + 12, _mask, _shift); \ [all …]
|
/openbmc/qemu/include/hw/ssi/ |
H A D | ssi.h | 74 #define VMSTATE_SSI_PERIPHERAL(_field, _state) { \ argument 75 .name = (stringify(_field)), \ 79 .offset = vmstate_offset_value(_state, _field, SSIPeripheral), \
|
/openbmc/linux/drivers/firmware/ |
H A D | dmi-id.c | 33 #define DMI_ATTR(_name, _mode, _show, _field) \ argument 35 .field = _field } 37 #define DEFINE_DMI_ATTR_WITH_SHOW(_name, _mode, _field) \ argument 39 DMI_ATTR(_name, _mode, sys_dmi_field_show, _field); 187 #define ADD_DMI_ATTR(_name, _field) \ argument 188 if (dmi_get_system_info(_field)) \
|
/openbmc/qemu/target/loongarch/ |
H A D | machine.c | 24 #define VMSTATE_FPU_REGS(_field, _state, _start) \ argument 25 VMSTATE_STRUCT_SUB_ARRAY(_field, _state, _start, 32, 0, \ 58 #define VMSTATE_LSXH_REGS(_field, _state, _start) \ argument 59 VMSTATE_STRUCT_SUB_ARRAY(_field, _state, _start, 32, 0, \ 91 #define VMSTATE_LASXH_REGS(_field, _state, _start) \ argument 92 VMSTATE_STRUCT_SUB_ARRAY(_field, _state, _start, 32, 0, \
|
/openbmc/qemu/include/hw/pci/ |
H A D | pci_device.h | 344 #define VMSTATE_PCI_DEVICE(_field, _state) { \ argument 345 .name = (stringify(_field)), \ 349 .offset = vmstate_offset_value(_state, _field, PCIDevice), \ 352 #define VMSTATE_PCI_DEVICE_POINTER(_field, _state) { \ argument 353 .name = (stringify(_field)), \ 357 .offset = vmstate_offset_pointer(_state, _field, PCIDevice), \
|
H A D | msix.h | 53 #define VMSTATE_MSIX_TEST(_field, _state, _test) { \ argument 54 .name = (stringify(_field)), \ 58 .offset = vmstate_offset_value(_state, _field, PCIDevice), \
|
/openbmc/qemu/include/hw/virtio/ |
H A D | virtio.h | 375 #define DEFINE_VIRTIO_COMMON_FEATURES(_state, _field) \ argument 376 DEFINE_PROP_BIT64("indirect_desc", _state, _field, \ 378 DEFINE_PROP_BIT64("event_idx", _state, _field, \ 380 DEFINE_PROP_BIT64("notify_on_empty", _state, _field, \ 382 DEFINE_PROP_BIT64("any_layout", _state, _field, \ 384 DEFINE_PROP_BIT64("iommu_platform", _state, _field, \ 386 DEFINE_PROP_BIT64("packed", _state, _field, \ 388 DEFINE_PROP_BIT64("queue_reset", _state, _field, \ 390 DEFINE_PROP_BIT64("in_order", _state, _field, \
|