Home
last modified time | relevance | path

Searched refs:_buf (Results 1 – 25 of 31) sorted by relevance

12

/linux/drivers/net/ethernet/sfc/
H A Dmcdi.h192 #define _MCDI_PTR(_buf, _offset) \ argument
193 ((u8 *)(_buf) + (_offset))
194 #define MCDI_PTR(_buf, _field) \ argument
195 _MCDI_PTR(_buf, MC_CMD_ ## _field ## _OFST)
200 #define MCDI_STRUCT_PTR(_buf, _field) \ argument
201 _MCDI_PTR(_buf, _field ## _OFST)
204 #define _MCDI_DWORD(_buf, _field) \ argument
205 ((_buf) + (_MCDI_CHECK_ALIGN(MC_CMD_ ## _field ## _OFST, 4) >> 2))
206 #define _MCDI_STRUCT_DWORD(_buf, _field) \ argument
207 ((_buf) + (_MCDI_CHECK_ALIGN(_field ## _OFST, 4) >> 2))
[all …]
/linux/drivers/net/ethernet/sfc/siena/
H A Dmcdi.h202 #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 …]
/linux/drivers/cdx/controller/
H A Dmcdid.h43 #define MCDI_BYTE(_buf, _field) \ argument
45 *MCDI_PTR(_buf, _field))
46 #define MCDI_WORD(_buf, _field) \ argument
48 le16_to_cpu(*(__force const __le16 *)MCDI_PTR(_buf, _field)))
49 #define MCDI_POPULATE_DWORD_1(_buf, _field, _name1, _value1) \ argument
50 CDX_POPULATE_DWORD_1(*_MCDI_DWORD(_buf, _field), \
52 #define MCDI_SET_QWORD(_buf, _field, _value) \ argument
54 CDX_POPULATE_DWORD_1(_MCDI_DWORD(_buf, _field)[0], \
56 CDX_POPULATE_DWORD_1(_MCDI_DWORD(_buf, _field)[1], \
59 #define MCDI_QWORD(_buf, _field) \ argument
[all …]
/linux/include/linux/cdx/
H A Dmcdi.h185 #define _MCDI_PTR(_buf, _offset) \ argument
186 ((u8 *)(_buf) + (_offset))
187 #define MCDI_PTR(_buf, _field) \ argument
188 _MCDI_PTR(_buf, MC_CMD_ ## _field ## _OFST)
192 #define _MCDI_DWORD(_buf, _field) \ argument
193 ((_buf) + (_MCDI_CHECK_ALIGN(MC_CMD_ ## _field ## _OFST, 4) >> 2))
195 #define MCDI_SET_DWORD(_buf, _field, _value) \ argument
196 CDX_POPULATE_DWORD_1(*_MCDI_DWORD(_buf, _field), CDX_DWORD, _value)
197 #define MCDI_DWORD(_buf, _field) \ argument
198 CDX_DWORD_FIELD(*_MCDI_DWORD(_buf, _field), CDX_DWORD)
/linux/drivers/iio/adc/
H A Dad7606_par.c123 u16 *_buf = buf; in ad7606_par16_read_block() local
126 insw((unsigned long)st->base_address, _buf, 1); in ad7606_par16_read_block()
131 _buf++; in ad7606_par16_read_block()
134 insw((unsigned long)st->base_address, _buf, num); in ad7606_par16_read_block()
157 u16 *_buf = buf; in ad7606_par8_read_block() local
160 insb((unsigned long)st->base_address, _buf, 2); in ad7606_par8_read_block()
165 _buf++; in ad7606_par8_read_block()
168 insb((unsigned long)st->base_address, _buf, num * 2); in ad7606_par8_read_block()
/linux/fs/adfs/
H A Ddir_f.c47 ({ 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); \
/linux/include/crypto/internal/
H A Dblockhash.h24 u8 *_buf = (buf); \
32 memcpy(_buf + _buflen, _src, remain); \
33 data = _buf; \
43 memcpy(_buf + _buflen, _src, _nbytes); \
/linux/sound/drivers/opl4/
H A Dopl4_proc.c36 struct file *file, char __user *_buf, in snd_opl4_mem_proc_read() argument
46 if (copy_to_user(_buf, buf, count)) { in snd_opl4_mem_proc_read()
57 const char __user *_buf, in snd_opl4_mem_proc_write() argument
66 if (copy_from_user(buf, _buf, count)) { in snd_opl4_mem_proc_write()
/linux/tools/power/acpi/tools/acpidbg/
H A Dacpidbg.c55 #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); \
/linux/sound/core/
H A Dcontrol_led.c399 char _buf[16]; in mode_store() local
400 size_t l = min(count, sizeof(_buf) - 1); in mode_store()
403 memcpy(_buf, buf, l); in mode_store()
404 _buf[l] = '\0'; in mode_store()
405 if (strstr(_buf, "mute")) in mode_store()
407 else if (strstr(_buf, "route")) in mode_store()
409 else if (strncmp(_buf, "off", 3) == 0 || strncmp(_buf, "0", 1) == 0) in mode_store()
411 else if (strncmp(_buf, "on", 2) == 0 || strncmp(_buf, "1", 1) == 0) in mode_store()
/linux/drivers/net/wireless/ath/ath9k/
H A Dwmi.h201 #define WMI_CMD_BUF(_wmi_cmd, _buf) \ argument
204 (u8 *) _buf, sizeof(*_buf), \
/linux/tools/testing/selftests/net/lib/
H A Dcsum.c724 static char _buf[MAX_HEADER_LEN + MAX_PAYLOAD_LEN]; in recv_packet() local
727 struct pkt *buf = (void *)_buf; in recv_packet()
733 iov.iov_base = _buf; in recv_packet()
734 iov.iov_len = sizeof(_buf); in recv_packet()
919 static char _buf[MAX_HEADER_LEN + MAX_PAYLOAD_LEN]; in do_tx() local
923 buf = build_packet(_buf, sizeof(_buf), &len); in do_tx()
941 buf = build_packet(_buf, sizeof(_buf), &len); in do_tx()
/linux/tools/testing/selftests/powerpc/signal/
H A Dsig_sc_double_restart.c53 register void *_buf asm("r4") = buf; in raw_read()
66 : "+r"(_fd), "+r"(nr), "+r"(_buf), "+r"(_count) in raw_read()
/linux/arch/loongarch/kernel/
H A Dalternative.c35 union loongarch_instruction *_buf = buf; \
42 printk(KERN_CONT "<%08x> ", _buf[_j].word); \
43 printk(KERN_CONT "<%08x>\n", _buf[_j].word); \
/linux/drivers/iio/test/
H A Diio-test-format.c10 #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)); \
/linux/tools/perf/tests/workloads/
H A Ddatasym.c7 typedef struct _buf { struct
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Di2c.c98 #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), \
/linux/sound/soc/renesas/
H A Dfsi.c1052 static void fsi_pio_push16(struct fsi_priv *fsi, u8 *_buf, int samples) in fsi_pio_push16() argument
1062 u32 *buf = (u32 *)_buf; in fsi_pio_push16()
1068 u16 *buf = (u16 *)_buf; in fsi_pio_push16()
1075 static void fsi_pio_pop16(struct fsi_priv *fsi, u8 *_buf, int samples) in fsi_pio_pop16() argument
1077 u16 *buf = (u16 *)_buf; in fsi_pio_pop16()
1084 static void fsi_pio_push32(struct fsi_priv *fsi, u8 *_buf, int samples) in fsi_pio_push32() argument
1086 u32 *buf = (u32 *)_buf; in fsi_pio_push32()
1093 static void fsi_pio_pop32(struct fsi_priv *fsi, u8 *_buf, int samples) in fsi_pio_pop32() argument
1095 u32 *buf = (u32 *)_buf; in fsi_pio_pop32()
/linux/net/mac80211/
H A Ddebugfs_sta.c281 char _buf[100] = {}, *buf = _buf; in sta_aql_write() local
283 if (count > sizeof(_buf)) in sta_aql_write()
289 buf[sizeof(_buf) - 1] = '\0'; in sta_aql_write()
433 char _buf[26]; in sta_agg_status_write() local
435 return wiphy_locked_debugfs_write(wiphy, file, _buf, sizeof(_buf), in sta_agg_status_write()
/linux/fs/
H A Dfsopen.c48 char __user *_buf, size_t len, loff_t *pos) in fscontext_read() argument
68 if (copy_to_user(_buf, message, n)) in fscontext_read()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dport.c318 u32 *_buf = buf; \
321 MLX5_SET(pplm_reg, _buf, fec_override_admin_##link, *_policy); \
323 *_policy = MLX5_GET(pplm_reg, _buf, fec_override_admin_##link); \
/linux/drivers/bluetooth/
H A Dbtrtl.c543 unsigned char **_buf) in rtlbt_parse_firmware_v2() argument
635 *_buf = ptr; in rtlbt_parse_firmware_v2()
641 unsigned char **_buf) in rtlbt_parse_firmware() argument
756 return rtlbt_parse_firmware_v2(hdev, btrtl_dev, _buf); in rtlbt_parse_firmware()
815 *_buf = buf; in rtlbt_parse_firmware()
/linux/drivers/usb/host/
H A Doxu210hp-hcd.c609 char _buf[80]; \
610 dbg_status_buf(_buf, sizeof _buf, label, status); \
611 oxu_dbg(oxu, "%s\n", _buf); \
615 char _buf[80]; \
616 dbg_command_buf(_buf, sizeof _buf, label, command); \
617 oxu_dbg(oxu, "%s\n", _buf); \
621 char _buf[80]; \
622 dbg_port_buf(_buf, sizeof _buf, label, port, status); \
623 oxu_dbg(oxu, "%s\n", _buf); \
/linux/drivers/accessibility/speakup/
H A Dsynth.c211 void synth_write(const char *_buf, size_t count) in synth_write() argument
213 const unsigned char *buf = (const unsigned char *) _buf; in synth_write()
/linux/drivers/net/wireless/st/cw1200/
H A Dwsm.c189 int wsm_read_mib(struct cw1200_common *priv, u16 mib_id, void *_buf, in wsm_read_mib() argument
196 .buf = _buf, in wsm_read_mib()
240 int wsm_write_mib(struct cw1200_common *priv, u16 mib_id, void *_buf, in wsm_write_mib() argument
247 .buf = _buf, in wsm_write_mib()
255 WSM_PUT(buf, _buf, buf_size); in wsm_write_mib()

12