/Linux-v5.10/drivers/net/ethernet/sfc/ |
D | mcdi_functions.c | 39 MCDI_DECLARE_BUF(inbuf, MC_CMD_ALLOC_VIS_IN_LEN); in efx_mcdi_alloc_vis() 43 MCDI_SET_DWORD(inbuf, ALLOC_VIS_IN_MIN_VI_COUNT, min_vis); in efx_mcdi_alloc_vis() 44 MCDI_SET_DWORD(inbuf, ALLOC_VIS_IN_MAX_VI_COUNT, max_vis); in efx_mcdi_alloc_vis() 45 rc = efx_mcdi_rpc(efx, MC_CMD_ALLOC_VIS, inbuf, sizeof(inbuf), in efx_mcdi_alloc_vis() 73 MCDI_DECLARE_BUF(inbuf, in efx_mcdi_ev_init() 86 MCDI_SET_DWORD(inbuf, INIT_EVQ_IN_SIZE, channel->eventq_mask + 1); in efx_mcdi_ev_init() 87 MCDI_SET_DWORD(inbuf, INIT_EVQ_IN_INSTANCE, channel->channel); in efx_mcdi_ev_init() 89 MCDI_SET_DWORD(inbuf, INIT_EVQ_IN_IRQ_NUM, channel->channel); in efx_mcdi_ev_init() 90 MCDI_SET_DWORD(inbuf, INIT_EVQ_IN_TMR_MODE, in efx_mcdi_ev_init() 92 MCDI_SET_DWORD(inbuf, INIT_EVQ_IN_TMR_LOAD, 0); in efx_mcdi_ev_init() [all …]
|
D | mcdi_port.c | 24 MCDI_DECLARE_BUF(inbuf, MC_CMD_MDIO_READ_IN_LEN); in efx_mcdi_mdio_read() 29 MCDI_SET_DWORD(inbuf, MDIO_READ_IN_BUS, efx->mdio_bus); in efx_mcdi_mdio_read() 30 MCDI_SET_DWORD(inbuf, MDIO_READ_IN_PRTAD, prtad); in efx_mcdi_mdio_read() 31 MCDI_SET_DWORD(inbuf, MDIO_READ_IN_DEVAD, devad); in efx_mcdi_mdio_read() 32 MCDI_SET_DWORD(inbuf, MDIO_READ_IN_ADDR, addr); in efx_mcdi_mdio_read() 34 rc = efx_mcdi_rpc(efx, MC_CMD_MDIO_READ, inbuf, sizeof(inbuf), in efx_mcdi_mdio_read() 50 MCDI_DECLARE_BUF(inbuf, MC_CMD_MDIO_WRITE_IN_LEN); in efx_mcdi_mdio_write() 55 MCDI_SET_DWORD(inbuf, MDIO_WRITE_IN_BUS, efx->mdio_bus); in efx_mcdi_mdio_write() 56 MCDI_SET_DWORD(inbuf, MDIO_WRITE_IN_PRTAD, prtad); in efx_mcdi_mdio_write() 57 MCDI_SET_DWORD(inbuf, MDIO_WRITE_IN_DEVAD, devad); in efx_mcdi_mdio_write() [all …]
|
D | ef10_sriov.c | 18 MCDI_DECLARE_BUF(inbuf, MC_CMD_EVB_PORT_ASSIGN_IN_LEN); in efx_ef10_evb_port_assign() 21 MCDI_SET_DWORD(inbuf, EVB_PORT_ASSIGN_IN_PORT_ID, port_id); in efx_ef10_evb_port_assign() 22 MCDI_POPULATE_DWORD_2(inbuf, EVB_PORT_ASSIGN_IN_FUNCTION, in efx_ef10_evb_port_assign() 26 return efx_mcdi_rpc(efx, MC_CMD_EVB_PORT_ASSIGN, inbuf, sizeof(inbuf), in efx_ef10_evb_port_assign() 33 MCDI_DECLARE_BUF(inbuf, MC_CMD_VSWITCH_ALLOC_IN_LEN); in efx_ef10_vswitch_alloc() 36 MCDI_SET_DWORD(inbuf, VSWITCH_ALLOC_IN_UPSTREAM_PORT_ID, port_id); in efx_ef10_vswitch_alloc() 37 MCDI_SET_DWORD(inbuf, VSWITCH_ALLOC_IN_TYPE, vswitch_type); in efx_ef10_vswitch_alloc() 38 MCDI_SET_DWORD(inbuf, VSWITCH_ALLOC_IN_NUM_VLAN_TAGS, 2); in efx_ef10_vswitch_alloc() 39 MCDI_POPULATE_DWORD_1(inbuf, VSWITCH_ALLOC_IN_FLAGS, in efx_ef10_vswitch_alloc() 43 rc = efx_mcdi_rpc_quiet(efx, MC_CMD_VSWITCH_ALLOC, inbuf, sizeof(inbuf), in efx_ef10_vswitch_alloc() [all …]
|
D | mcdi.c | 151 const efx_dword_t *inbuf, size_t inlen) in efx_mcdi_send_request() argument 222 le32_to_cpu(inbuf[i].u32[0])); in efx_mcdi_send_request() 228 efx->type->mcdi_request(efx, hdr, hdr_len, inbuf, inlen); in efx_mcdi_send_request() 803 const efx_dword_t *inbuf, size_t inlen, in _efx_mcdi_rpc() argument 810 if (inbuf && inlen && (inbuf == outbuf)) { in _efx_mcdi_rpc() 816 rc = efx_mcdi_rpc_start(efx, cmd, inbuf, inlen); in _efx_mcdi_rpc() 841 efx_mcdi_send_request(efx, cmd, inbuf, inlen); in _efx_mcdi_rpc() 861 const efx_dword_t *inbuf, size_t inlen, in _efx_mcdi_rpc_evb_retry() argument 868 rc = _efx_mcdi_rpc(efx, cmd, inbuf, inlen, in _efx_mcdi_rpc_evb_retry() 886 rc = _efx_mcdi_rpc(efx, cmd, inbuf, inlen, in _efx_mcdi_rpc_evb_retry() [all …]
|
D | mcdi_filters.c | 95 efx_dword_t *inbuf) in efx_mcdi_filter_push_prep_set_match_fields() argument 100 MCDI_SET_DWORD(inbuf, FILTER_OP_IN_OP, in efx_mcdi_filter_push_prep_set_match_fields() 118 memcpy(MCDI_PTR(inbuf, FILTER_OP_IN_ ## mcdi_field), \ in efx_mcdi_filter_push_prep_set_match_fields() 152 MCDI_POPULATE_DWORD_1(inbuf, in efx_mcdi_filter_push_prep_set_match_fields() 190 MCDI_SET_DWORD(inbuf, FILTER_OP_IN_MATCH_FIELDS, in efx_mcdi_filter_push_prep_set_match_fields() 196 efx_dword_t *inbuf, u64 handle, in efx_mcdi_filter_push_prep() argument 202 memset(inbuf, 0, MC_CMD_FILTER_OP_EXT_IN_LEN); in efx_mcdi_filter_push_prep() 217 MCDI_SET_DWORD(inbuf, FILTER_OP_IN_OP, in efx_mcdi_filter_push_prep() 219 MCDI_SET_QWORD(inbuf, FILTER_OP_IN_HANDLE, handle); in efx_mcdi_filter_push_prep() 221 efx_mcdi_filter_push_prep_set_match_fields(efx, spec, inbuf); in efx_mcdi_filter_push_prep() [all …]
|
D | ef10.c | 185 MCDI_DECLARE_BUF(inbuf, MC_CMD_LICENSING_V3_IN_LEN); in efx_ef10_read_licensed_features() 191 MCDI_SET_DWORD(inbuf, LICENSING_V3_IN_OP, in efx_ef10_read_licensed_features() 193 rc = efx_mcdi_rpc_quiet(efx, MC_CMD_LICENSING_V3, inbuf, sizeof(inbuf), in efx_ef10_read_licensed_features() 347 MCDI_DECLARE_BUF(inbuf, MC_CMD_VPORT_GET_MAC_ADDRESSES_IN_LEN); in efx_ef10_get_mac_address_vf() 352 MCDI_SET_DWORD(inbuf, VPORT_GET_MAC_ADDRESSES_IN_VPORT_ID, in efx_ef10_get_mac_address_vf() 354 rc = efx_mcdi_rpc(efx, MC_CMD_VPORT_GET_MAC_ADDRESSES, inbuf, in efx_ef10_get_mac_address_vf() 355 sizeof(inbuf), outbuf, sizeof(outbuf), &outlen); in efx_ef10_get_mac_address_vf() 719 MCDI_DECLARE_BUF(inbuf, MC_CMD_FREE_PIOBUF_IN_LEN); in efx_ef10_free_piobufs() 726 MCDI_SET_DWORD(inbuf, FREE_PIOBUF_IN_PIOBUF_HANDLE, in efx_ef10_free_piobufs() 728 rc = efx_mcdi_rpc(efx, MC_CMD_FREE_PIOBUF, inbuf, sizeof(inbuf), in efx_ef10_free_piobufs() [all …]
|
D | ptp.c | 407 MCDI_DECLARE_BUF(inbuf, MC_CMD_PTP_IN_STATUS_LEN); in efx_ptp_update_stats() 427 MCDI_SET_DWORD(inbuf, PTP_IN_OP, MC_CMD_PTP_OP_STATUS); in efx_ptp_update_stats() 428 MCDI_SET_DWORD(inbuf, PTP_IN_PERIPH_ID, 0); in efx_ptp_update_stats() 429 rc = efx_mcdi_rpc(efx, MC_CMD_PTP, inbuf, sizeof(inbuf), in efx_ptp_update_stats() 631 MCDI_DECLARE_BUF(inbuf, MC_CMD_PTP_IN_GET_ATTRIBUTES_LEN); in efx_ptp_get_attributes() 642 MCDI_SET_DWORD(inbuf, PTP_IN_OP, MC_CMD_PTP_OP_GET_ATTRIBUTES); in efx_ptp_get_attributes() 643 MCDI_SET_DWORD(inbuf, PTP_IN_PERIPH_ID, 0); in efx_ptp_get_attributes() 644 rc = efx_mcdi_rpc_quiet(efx, MC_CMD_PTP, inbuf, sizeof(inbuf), in efx_ptp_get_attributes() 654 efx_mcdi_display_error(efx, MC_CMD_PTP, sizeof(inbuf), in efx_ptp_get_attributes() 730 MCDI_DECLARE_BUF(inbuf, MC_CMD_PTP_IN_GET_TIMESTAMP_CORRECTIONS_LEN); in efx_ptp_get_timestamp_corrections() [all …]
|
D | mcdi_port_common.c | 73 MCDI_DECLARE_BUF(inbuf, MC_CMD_SET_LINK_IN_LEN); in efx_mcdi_set_link() 78 MCDI_SET_DWORD(inbuf, SET_LINK_IN_CAP, capabilities); in efx_mcdi_set_link() 79 MCDI_SET_DWORD(inbuf, SET_LINK_IN_FLAGS, flags); in efx_mcdi_set_link() 80 MCDI_SET_DWORD(inbuf, SET_LINK_IN_LOOPBACK_MODE, loopback_mode); in efx_mcdi_set_link() 81 MCDI_SET_DWORD(inbuf, SET_LINK_IN_LOOPBACK_SPEED, loopback_speed); in efx_mcdi_set_link() 83 rc = efx_mcdi_rpc(efx, MC_CMD_SET_LINK, inbuf, sizeof(inbuf), in efx_mcdi_set_link() 747 MCDI_DECLARE_BUF(inbuf, MC_CMD_START_BIST_IN_LEN); in efx_mcdi_bist() 753 MCDI_SET_DWORD(inbuf, START_BIST_IN_TYPE, bist_mode); in efx_mcdi_bist() 755 inbuf, MC_CMD_START_BIST_IN_LEN, NULL, 0, NULL); in efx_mcdi_bist() 891 MCDI_DECLARE_BUF(inbuf, MC_CMD_GET_PHY_MEDIA_INFO_IN_LEN); in efx_mcdi_phy_get_module_eeprom_page() [all …]
|
D | mcdi_mon.c | 147 MCDI_DECLARE_BUF(inbuf, MC_CMD_READ_SENSORS_EXT_IN_LEN); in efx_mcdi_mon_update() 150 MCDI_SET_QWORD(inbuf, READ_SENSORS_EXT_IN_DMA_ADDR, in efx_mcdi_mon_update() 152 MCDI_SET_DWORD(inbuf, READ_SENSORS_EXT_IN_LENGTH, hwmon->dma_buf.len); in efx_mcdi_mon_update() 155 inbuf, sizeof(inbuf), NULL, 0, NULL); in efx_mcdi_mon_update() 307 MCDI_DECLARE_BUF(inbuf, MC_CMD_SENSOR_INFO_EXT_IN_LEN); in efx_mcdi_mon_probe() 319 MCDI_SET_DWORD(inbuf, SENSOR_INFO_EXT_IN_PAGE, page); in efx_mcdi_mon_probe() 321 rc = efx_mcdi_rpc(efx, MC_CMD_SENSOR_INFO, inbuf, sizeof(inbuf), in efx_mcdi_mon_probe() 381 MCDI_SET_DWORD(inbuf, SENSOR_INFO_EXT_IN_PAGE, in efx_mcdi_mon_probe() 384 inbuf, sizeof(inbuf), in efx_mcdi_mon_probe()
|
/Linux-v5.10/drivers/tty/hvc/ |
D | hvsi_lib.c | 70 struct hvsi_control *pkt = (struct hvsi_control *)pv->inbuf; in hvsi_got_control() 86 struct hvsi_query *pkt = (struct hvsi_query *)pv->inbuf; in hvsi_got_query() 111 (struct hvsi_query_response *)pv->inbuf; in hvsi_got_response() 128 if (pv->inbuf[0] < 0xfc) { in hvsi_check_packet() 132 type = pv->inbuf[0]; in hvsi_check_packet() 133 len = pv->inbuf[1]; in hvsi_check_packet() 161 memmove(pv->inbuf, &pv->inbuf[len], pv->inbuf_len); in hvsi_check_packet() 170 &pv->inbuf[pv->inbuf_len], in hvsi_get_packet() 203 memcpy(&buf[read], &pv->inbuf[pv->inbuf_cur], l); in hvsilib_get_chars() 215 memmove(pv->inbuf, &pv->inbuf[pv->inbuf_cur], in hvsilib_get_chars()
|
/Linux-v5.10/lib/ |
D | decompress.c | 63 decompress_fn __init decompress_method(const unsigned char *inbuf, long len, in decompress_method() argument 74 pr_debug("Compressed data magic: %#.2x %#.2x\n", inbuf[0], inbuf[1]); in decompress_method() 77 if (!memcmp(inbuf, cf->magic, 2)) in decompress_method()
|
D | decompress_bunzip2.c | 98 unsigned char *inbuf /*,*outbuf*/; member 129 bd->inbufCount = bd->fill(bd->inbuf, BZIP2_IOBUF_SIZE); in get_bits() 144 bd->inbufBits = (bd->inbufBits << 8)|bd->inbuf[bd->inbufPos++]; in get_bits() 386 (bd->inbufBits << 8)|bd->inbuf[bd->inbufPos++]; in get_next_block() 629 static int INIT start_bunzip(struct bunzip_data **bdp, void *inbuf, long len, in start_bunzip() argument 647 bd->inbuf = inbuf; in start_bunzip() 688 unsigned char *inbuf; in bunzip2() local 698 inbuf = buf; in bunzip2() 700 inbuf = malloc(BZIP2_IOBUF_SIZE); in bunzip2() 701 if (!inbuf) { in bunzip2() [all …]
|
/Linux-v5.10/drivers/infiniband/core/ |
D | ucma.c | 364 static ssize_t ucma_get_event(struct ucma_file *file, const char __user *inbuf, in ucma_get_event() argument 378 if (copy_from_user(&cmd, inbuf, sizeof(cmd))) in ucma_get_event() 434 static ssize_t ucma_create_id(struct ucma_file *file, const char __user *inbuf, in ucma_create_id() argument 447 if (copy_from_user(&cmd, inbuf, sizeof(cmd))) in ucma_create_id() 583 static ssize_t ucma_destroy_id(struct ucma_file *file, const char __user *inbuf, in ucma_destroy_id() argument 594 if (copy_from_user(&cmd, inbuf, sizeof(cmd))) in ucma_destroy_id() 614 static ssize_t ucma_bind_ip(struct ucma_file *file, const char __user *inbuf, in ucma_bind_ip() argument 621 if (copy_from_user(&cmd, inbuf, sizeof(cmd))) in ucma_bind_ip() 639 static ssize_t ucma_bind(struct ucma_file *file, const char __user *inbuf, in ucma_bind() argument 646 if (copy_from_user(&cmd, inbuf, sizeof(cmd))) in ucma_bind() [all …]
|
/Linux-v5.10/arch/arm/vdso/ |
D | vdsomunge.c | 122 const void *inbuf; in main() local 145 inbuf = mmap(NULL, stat.st_size, PROT_READ, MAP_PRIVATE, infd, 0); in main() 146 if (inbuf == MAP_FAILED) in main() 151 inhdr = inbuf; in main() 193 memcpy(outbuf, inbuf, stat.st_size); in main()
|
/Linux-v5.10/arch/alpha/boot/ |
D | misc.c | 45 static uch *inbuf; /* input buffer */ variable 61 #define get_byte() (inptr < insize ? inbuf[inptr++] : fill_inbuf()) 112 inbuf = input_data; in fill_inbuf() 116 return inbuf[0]; in fill_inbuf()
|
/Linux-v5.10/arch/nios2/boot/compressed/ |
D | misc.c | 35 static uch *inbuf; /* input buffer */ variable 52 #define get_byte() (inptr < insize ? inbuf[inptr++] : fill_inbuf()) 123 inbuf = input_data; in fill_inbuf() 126 return inbuf[0]; in fill_inbuf()
|
/Linux-v5.10/crypto/ |
D | cast6_generic.c | 172 void __cast6_encrypt(const void *ctx, u8 *outbuf, const u8 *inbuf) in __cast6_encrypt() argument 175 const __be32 *src = (const __be32 *)inbuf; in __cast6_encrypt() 206 static void cast6_encrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf) in cast6_encrypt() argument 208 __cast6_encrypt(crypto_tfm_ctx(tfm), outbuf, inbuf); in cast6_encrypt() 211 void __cast6_decrypt(const void *ctx, u8 *outbuf, const u8 *inbuf) in __cast6_decrypt() argument 214 const __be32 *src = (const __be32 *)inbuf; in __cast6_decrypt() 245 static void cast6_decrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf) in cast6_decrypt() argument 247 __cast6_decrypt(crypto_tfm_ctx(tfm), outbuf, inbuf); in cast6_decrypt()
|
D | tgr192.c | 509 static int tgr192_update(struct shash_desc *desc, const u8 *inbuf, in tgr192_update() argument 519 if (!inbuf) { in tgr192_update() 524 tctx->hash[tctx->count++] = *inbuf++; in tgr192_update() 534 tgr192_transform(tctx, inbuf); in tgr192_update() 538 inbuf += 64; in tgr192_update() 541 tctx->hash[tctx->count++] = *inbuf++; in tgr192_update()
|
D | cast5_generic.c | 303 void __cast5_encrypt(struct cast5_ctx *c, u8 *outbuf, const u8 *inbuf) in __cast5_encrypt() argument 305 const __be32 *src = (const __be32 *)inbuf; in __cast5_encrypt() 355 static void cast5_encrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf) in cast5_encrypt() argument 357 __cast5_encrypt(crypto_tfm_ctx(tfm), outbuf, inbuf); in cast5_encrypt() 360 void __cast5_decrypt(struct cast5_ctx *c, u8 *outbuf, const u8 *inbuf) in __cast5_decrypt() argument 362 const __be32 *src = (const __be32 *)inbuf; in __cast5_decrypt() 399 static void cast5_decrypt(struct crypto_tfm *tfm, u8 *outbuf, const u8 *inbuf) in cast5_decrypt() argument 401 __cast5_decrypt(crypto_tfm_ctx(tfm), outbuf, inbuf); in cast5_decrypt()
|
/Linux-v5.10/include/linux/decompress/ |
D | generic.h | 5 typedef int (*decompress_fn) (unsigned char *inbuf, long len, 37 decompress_fn decompress_method(const unsigned char *inbuf, long len,
|
/Linux-v5.10/drivers/crypto/nx/ |
D | nx-842-pseries.c | 287 unsigned long inbuf, outbuf; in nx842_pseries_compress() local 295 inbuf = (unsigned long)in; in nx842_pseries_compress() 296 if (check_constraints(inbuf, &inlen, true)) in nx842_pseries_compress() 322 if ((inbuf & NX842_HW_PAGE_MASK) == in nx842_pseries_compress() 323 ((inbuf + inlen - 1) & NX842_HW_PAGE_MASK)) { in nx842_pseries_compress() 325 op.in = nx842_get_pa((void *)inbuf); in nx842_pseries_compress() 329 nx842_build_scatterlist(inbuf, inlen, &slin); in nx842_pseries_compress() 417 unsigned long inbuf, outbuf; in nx842_pseries_decompress() local 426 inbuf = (unsigned long)in; in nx842_pseries_decompress() 427 if (check_constraints(inbuf, &inlen, true)) in nx842_pseries_decompress() [all …]
|
/Linux-v5.10/scripts/dtc/ |
D | flattree.c | 565 struct inbuf { struct 569 static void inbuf_init(struct inbuf *inb, void *base, void *limit) in inbuf_init() argument 576 static void flat_read_chunk(struct inbuf *inb, void *p, int len) in flat_read_chunk() 586 static uint32_t flat_read_word(struct inbuf *inb) in flat_read_word() 597 static void flat_realign(struct inbuf *inb, int align) in flat_realign() 606 static char *flat_read_string(struct inbuf *inb) in flat_read_string() 627 static struct data flat_read_data(struct inbuf *inb, int len) in flat_read_data() 644 static char *flat_read_stringtable(struct inbuf *inb, int offset) in flat_read_stringtable() 663 static struct property *flat_read_property(struct inbuf *dtbuf, in flat_read_property() 664 struct inbuf *strbuf, int flags) in flat_read_property() [all …]
|
/Linux-v5.10/drivers/tty/vt/ |
D | consolemap.c | 325 unsigned short inbuf[E_TABSZ]; in con_set_trans_old() local 332 inbuf[i] = UNI_DIRECT_BASE | ubuf[i]; in con_set_trans_old() 335 memcpy(translations[USER_MAP], inbuf, sizeof(inbuf)); in con_set_trans_old() 360 unsigned short inbuf[E_TABSZ]; in con_set_trans_new() local 362 if (copy_from_user(inbuf, arg, sizeof(inbuf))) in con_set_trans_new() 366 memcpy(translations[USER_MAP], inbuf, sizeof(inbuf)); in con_set_trans_new()
|
/Linux-v5.10/arch/x86/platform/olpc/ |
D | olpc.c | 109 static int olpc_xo1_ec_cmd(u8 cmd, u8 *inbuf, size_t inlen, u8 *outbuf, in olpc_xo1_ec_cmd() argument 150 if (inbuf && inlen) { in olpc_xo1_ec_cmd() 153 pr_devel("olpc-ec: sending cmd arg 0x%x\n", inbuf[i]); in olpc_xo1_ec_cmd() 154 outb(inbuf[i], 0x68); in olpc_xo1_ec_cmd()
|
/Linux-v5.10/drivers/staging/greybus/ |
D | hid.c | 30 char *inbuf; member 173 kfree(ghid->inbuf); in gb_hid_free_buffers() 174 ghid->inbuf = NULL; in gb_hid_free_buffers() 180 ghid->inbuf = kzalloc(bufsize, GFP_KERNEL); in gb_hid_alloc_buffers() 181 if (!ghid->inbuf) in gb_hid_alloc_buffers() 195 if (gb_hid_get_report(ghid, report->type, report->id, ghid->inbuf, in gb_hid_init_report() 204 hid_report_raw_event(ghid->hid, report->type, ghid->inbuf, size, 1); in gb_hid_init_report()
|