/openbmc/linux/drivers/net/ethernet/sfc/ |
H A D | mcdi.h | 200 #define _MCDI_PTR(_buf, _offset) \ argument 201 ((u8 *)(_buf) + (_offset)) 202 #define MCDI_PTR(_buf, _field) \ argument 203 _MCDI_PTR(_buf, MC_CMD_ ## _field ## _OFST) 208 #define MCDI_STRUCT_PTR(_buf, _field) \ argument 209 _MCDI_PTR(_buf, _field ## _OFST) 212 #define _MCDI_DWORD(_buf, _field) \ argument 213 ((_buf) + (_MCDI_CHECK_ALIGN(MC_CMD_ ## _field ## _OFST, 4) >> 2)) 214 #define _MCDI_STRUCT_DWORD(_buf, _field) \ argument 215 ((_buf) + (_MCDI_CHECK_ALIGN(_field ## _OFST, 4) >> 2)) [all …]
|
/openbmc/linux/drivers/net/ethernet/sfc/siena/ |
H A D | mcdi.h | 202 #define _MCDI_PTR(_buf, _offset) \ argument 203 ((u8 *)(_buf) + (_offset)) 204 #define MCDI_PTR(_buf, _field) \ argument 205 _MCDI_PTR(_buf, MC_CMD_ ## _field ## _OFST) 208 #define _MCDI_DWORD(_buf, _field) \ argument 209 ((_buf) + (_MCDI_CHECK_ALIGN(MC_CMD_ ## _field ## _OFST, 4) >> 2)) 211 #define MCDI_BYTE(_buf, _field) \ argument 213 *MCDI_PTR(_buf, _field)) 214 #define MCDI_WORD(_buf, _field) \ argument 216 le16_to_cpu(*(__force const __le16 *)MCDI_PTR(_buf, _field))) [all …]
|
/openbmc/linux/drivers/cdx/controller/ |
H A D | mcdi.h | 208 #define _MCDI_PTR(_buf, _offset) \ argument 209 ((u8 *)(_buf) + (_offset)) 210 #define MCDI_PTR(_buf, _field) \ argument 211 _MCDI_PTR(_buf, MC_CMD_ ## _field ## _OFST) 215 #define _MCDI_DWORD(_buf, _field) \ argument 216 ((_buf) + (_MCDI_CHECK_ALIGN(MC_CMD_ ## _field ## _OFST, 4) >> 2)) 218 #define MCDI_BYTE(_buf, _field) \ argument 220 *MCDI_PTR(_buf, _field)) 221 #define MCDI_WORD(_buf, _field) \ argument 223 le16_to_cpu(*(__force const __le16 *)MCDI_PTR(_buf, _field))) [all …]
|
/openbmc/linux/drivers/iio/adc/ |
H A D | ad7606_par.c | 36 u16 *_buf = buf; in ad7606_par16_read_block() local 39 insw((unsigned long)st->base_address, _buf, 1); in ad7606_par16_read_block() 44 _buf++; in ad7606_par16_read_block() 47 insw((unsigned long)st->base_address, _buf, num); in ad7606_par16_read_block() 70 u16 *_buf = buf; in ad7606_par8_read_block() local 73 insb((unsigned long)st->base_address, _buf, 2); in ad7606_par8_read_block() 78 _buf++; in ad7606_par8_read_block() 81 insb((unsigned long)st->base_address, _buf, num * 2); in ad7606_par8_read_block()
|
/openbmc/libpldm/src/dsp/ |
H A D | platform.c | 268 struct pldm_msgbuf _buf; in decode_set_state_effecter_states_req() local 269 struct pldm_msgbuf *buf = &_buf; in decode_set_state_effecter_states_req() 315 struct pldm_msgbuf _buf; in decode_get_pdr_req() local 316 struct pldm_msgbuf *buf = &_buf; in decode_get_pdr_req() 450 struct pldm_msgbuf _buf; in decode_get_pdr_repository_info_resp() local 451 struct pldm_msgbuf *buf = &_buf; in decode_get_pdr_repository_info_resp() 515 struct pldm_msgbuf _buf; in decode_get_pdr_repository_info_resp_safe() local 516 struct pldm_msgbuf *buf = &_buf; in decode_get_pdr_repository_info_resp_safe() 609 struct pldm_msgbuf _buf; in decode_get_pdr_resp() local 610 struct pldm_msgbuf *buf = &_buf; in decode_get_pdr_resp() [all …]
|
H A D | firmware_update.c | 520 struct pldm_msgbuf _buf; in decode_pldm_descriptor_from_iter() local 521 struct pldm_msgbuf *buf = &_buf; in decode_pldm_descriptor_from_iter() 820 struct pldm_msgbuf _buf; in encode_query_device_identifiers_resp() local 821 struct pldm_msgbuf *buf = &_buf; in encode_query_device_identifiers_resp() 996 struct pldm_msgbuf _buf; in encode_get_firmware_parameters_resp() local 997 struct pldm_msgbuf *buf = &_buf; in encode_get_firmware_parameters_resp() 1053 struct pldm_msgbuf _buf; in encode_get_firmware_parameters_resp_comp_entry() local 1054 struct pldm_msgbuf *buf = &_buf; in encode_get_firmware_parameters_resp_comp_entry() 1203 struct pldm_msgbuf _buf; in decode_query_downstream_devices_resp() local 1204 struct pldm_msgbuf *buf = &_buf; in decode_query_downstream_devices_resp() [all …]
|
/openbmc/linux/fs/adfs/ |
H A D | dir_f.c | 47 ({ int _buf = idx >> blocksize_bits; \ 48 int _off = idx - (_buf << blocksize_bits);\ 49 *(u8 *)(bh[_buf]->b_data + _off); \ 53 ({ int _buf = idx >> blocksize_bits; \ 54 int _off = idx - (_buf << blocksize_bits);\ 55 *(__le32 *)(bh[_buf]->b_data + _off); \ 59 ({ int _buf = _idx >> blocksize_bits; \ 60 int _off = _idx - (_buf << blocksize_bits);\ 61 (void *)(_bh[_buf]->b_data + _off); \
|
/openbmc/libpldm/src/oem/meta/ |
H A D | file_io.c | 24 struct pldm_msgbuf _buf; in decode_oem_meta_file_io_write_req() local 25 struct pldm_msgbuf *buf = &_buf; in decode_oem_meta_file_io_write_req() 102 struct pldm_msgbuf _buf; in decode_oem_meta_file_io_read_req() local 103 struct pldm_msgbuf *buf = &_buf; in decode_oem_meta_file_io_read_req() 161 struct pldm_msgbuf _buf; in encode_oem_meta_file_io_read_resp() local 162 struct pldm_msgbuf *buf = &_buf; in encode_oem_meta_file_io_read_resp()
|
/openbmc/linux/sound/drivers/opl4/ |
H A D | opl4_proc.c | 40 struct file *file, char __user *_buf, in snd_opl4_mem_proc_read() argument 50 if (copy_to_user(_buf, buf, count)) { in snd_opl4_mem_proc_read() 61 const char __user *_buf, in snd_opl4_mem_proc_write() argument 70 if (copy_from_user(buf, _buf, count)) { in snd_opl4_mem_proc_write()
|
/openbmc/linux/tools/power/acpi/tools/acpidbg/ |
H A D | acpidbg.c | 55 #define ACPI_AML_DO(_fd, _op, _buf, _ret) \ argument 57 _ret = acpi_aml_##_op(_fd, &acpi_aml_##_buf##_crc); \ 60 "%s %s pipe closed.\n", #_buf, #_op); \ 64 #define ACPI_AML_BATCH_DO(_fd, _op, _buf, _ret) \ argument 66 _ret = acpi_aml_##_op##_batch_##_buf(_fd, \ 67 &acpi_aml_##_buf##_crc); \
|
/openbmc/linux/sound/core/ |
H A D | control_led.c | 416 char _buf[16]; in mode_store() local 417 size_t l = min(count, sizeof(_buf) - 1); in mode_store() 420 memcpy(_buf, buf, l); in mode_store() 421 _buf[l] = '\0'; in mode_store() 422 if (strstr(_buf, "mute")) in mode_store() 424 else if (strstr(_buf, "route")) in mode_store() 426 else if (strncmp(_buf, "off", 3) == 0 || strncmp(_buf, "0", 1) == 0) in mode_store() 428 else if (strncmp(_buf, "on", 2) == 0 || strncmp(_buf, "1", 1) == 0) in mode_store()
|
/openbmc/linux/drivers/net/wireless/ath/ath9k/ |
H A D | wmi.h | 201 #define WMI_CMD_BUF(_wmi_cmd, _buf) \ argument 204 (u8 *) _buf, sizeof(*_buf), \
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | csum.c | 726 static char _buf[MAX_HEADER_LEN + MAX_PAYLOAD_LEN]; in recv_packet() local 729 struct pkt *buf = (void *)_buf; in recv_packet() 734 iov.iov_base = _buf; in recv_packet() 735 iov.iov_len = sizeof(_buf); in recv_packet() 909 static char _buf[MAX_HEADER_LEN + MAX_PAYLOAD_LEN]; in do_tx() local 913 buf = build_packet(_buf, sizeof(_buf), &len); in do_tx() 931 buf = build_packet(_buf, sizeof(_buf), &len); in do_tx()
|
/openbmc/linux/tools/testing/selftests/powerpc/signal/ |
H A D | sig_sc_double_restart.c | 53 register void *_buf asm("r4") = buf; in raw_read() 66 : "+r"(_fd), "+r"(nr), "+r"(_buf), "+r"(_count) in raw_read()
|
/openbmc/linux/arch/loongarch/kernel/ |
H A D | alternative.c | 34 union loongarch_instruction *_buf = buf; \ 41 printk(KERN_CONT "<%08x> ", _buf[_j].word); \ 42 printk(KERN_CONT "<%08x>\n", _buf[_j].word); \
|
/openbmc/openbmc/poky/scripts/lib/wic/ |
H A D | filemap.py | 343 self._buf = array.array('B', [0] * self._buf_size) 367 struct.pack_into(_FIEMAP_FORMAT, self._buf, 0, block * self.block_size, 372 fcntl.ioctl(self._f_image, _FIEMAP_IOCTL, self._buf, 1) 389 return struct.unpack(_FIEMAP_FORMAT, self._buf[:_FIEMAP_SIZE]) 411 self._buf[offset : offset + _FIEMAP_EXTENT_SIZE])
|
/openbmc/u-boot/drivers/mmc/ |
H A D | mxcmmc.c | 280 static int mxcmci_pull(struct mxcmci_host *host, void *_buf, int bytes) in mxcmci_pull() argument 283 u32 *buf = _buf; in mxcmci_pull() 309 static int mxcmci_push(struct mxcmci_host *host, const void *_buf, int bytes) in mxcmci_push() argument 312 const u32 *buf = _buf; in mxcmci_push()
|
/openbmc/linux/drivers/iio/test/ |
H A D | iio-test-format.c | 10 #define IIO_TEST_FORMAT_EXPECT_EQ(_test, _buf, _ret, _val) do { \ argument 11 KUNIT_EXPECT_EQ(_test, strlen(_buf), _ret); \ 12 KUNIT_EXPECT_STREQ(_test, (_buf), (_val)); \
|
/openbmc/linux/tools/perf/tests/workloads/ |
H A D | datasym.c | 4 typedef struct _buf { struct
|
/openbmc/libpldm/tests/dsp/ |
H A D | firmware_update.cpp | 1484 struct pldm_msgbuf _buf; in TEST() local 1485 struct pldm_msgbuf* buf = &_buf; in TEST() 1530 struct pldm_msgbuf _buf; in TEST() local 1531 struct pldm_msgbuf* buf = &_buf; in TEST() 1570 struct pldm_msgbuf _buf; in TEST() local 1571 struct pldm_msgbuf* buf = &_buf; in TEST() 1646 struct pldm_msgbuf _buf; in TEST() local 1647 struct pldm_msgbuf* buf = &_buf; in TEST() 1689 struct pldm_msgbuf _buf; in TEST() local 1690 struct pldm_msgbuf* buf = &_buf; in TEST() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | i2c.c | 98 #define MLXSW_I2C_READ_MSG(_client, _addr_buf, _buf, _len) { \ argument 104 .buf = (_buf), \ 108 #define MLXSW_I2C_WRITE_MSG(_client, _buf, _len) \ argument 110 .buf = (u8 *)(_buf), \
|
/openbmc/libpldm/include/libpldm/ |
H A D | base.h | 220 PLDM_MSG_BUFFER(name##_buf, size); \ 221 auto *(name) = new (name##_buf) pldm_msg
|
/openbmc/linux/sound/soc/sh/ |
H A D | fsi.c | 1067 static void fsi_pio_push16(struct fsi_priv *fsi, u8 *_buf, int samples) in fsi_pio_push16() argument 1077 u32 *buf = (u32 *)_buf; in fsi_pio_push16() 1083 u16 *buf = (u16 *)_buf; in fsi_pio_push16() 1090 static void fsi_pio_pop16(struct fsi_priv *fsi, u8 *_buf, int samples) in fsi_pio_pop16() argument 1092 u16 *buf = (u16 *)_buf; in fsi_pio_pop16() 1099 static void fsi_pio_push32(struct fsi_priv *fsi, u8 *_buf, int samples) in fsi_pio_push32() argument 1101 u32 *buf = (u32 *)_buf; in fsi_pio_push32() 1108 static void fsi_pio_pop32(struct fsi_priv *fsi, u8 *_buf, int samples) in fsi_pio_pop32() argument 1110 u32 *buf = (u32 *)_buf; in fsi_pio_pop32()
|
/openbmc/linux/net/mac80211/ |
H A D | debugfs_sta.c | 291 char _buf[100] = {}, *buf = _buf; in sta_aql_write() local 293 if (count > sizeof(_buf)) in sta_aql_write() 299 buf[sizeof(_buf) - 1] = '\0'; in sta_aql_write() 371 char _buf[25] = {}, *buf = _buf; in sta_agg_status_write() local 378 if (count > sizeof(_buf)) in sta_agg_status_write() 384 buf[sizeof(_buf) - 1] = '\0'; in sta_agg_status_write()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | port.c | 303 u32 *_buf = buf; \ 306 MLX5_SET(pplm_reg, _buf, fec_override_admin_##link, *_policy); \ 308 *_policy = MLX5_GET(pplm_reg, _buf, fec_override_admin_##link); \
|