/linux/drivers/platform/cznic/ |
H A D | turris-omnia-mcu.h | 98 void *reply, unsigned int reply_len); 137 void *reply, unsigned int len) in omnia_cmd_read() argument 139 return omnia_cmd_write_read(client, &cmd, 1, reply, len); in omnia_cmd_read() 156 __le32 reply; in omnia_cmd_read_bits() local 164 err = omnia_cmd_read(client, cmd, &reply, in omnia_cmd_read_bits() 169 *dst = le32_to_cpu(reply) & bits; in omnia_cmd_read_bits() 177 unsigned long reply; in omnia_cmd_read_bit() local 180 err = omnia_cmd_read_bits(client, cmd, bit, &reply); in omnia_cmd_read_bit() 184 return !!reply; in omnia_cmd_read_bit() 190 __le32 reply; in omnia_cmd_read_u32() local [all …]
|
H A D | turris-omnia-mcu-base.c | 28 void *reply, unsigned int reply_len) in omnia_cmd_write_read() argument 43 msgs[1].buf = reply; in omnia_cmd_write_read() 59 u8 reply[OMNIA_FW_VERSION_LEN]; in omnia_get_version_hash() local 66 reply, sizeof(reply)); in omnia_get_version_hash() 70 p = bin2hex(version, reply, OMNIA_FW_VERSION_LEN); in omnia_get_version_hash() 127 u8 reply; in reset_selector_show() local 131 &reply); in reset_selector_show() 135 return sysfs_emit(buf, "%d\n", reply); in reset_selector_show() 331 u8 reply[1 + OMNIA_BOARD_INFO_LEN]; in omnia_mcu_read_board_info() local 334 err = omnia_cmd_read(mcu->client, OMNIA_CMD_BOARD_INFO_GET, reply, in omnia_mcu_read_board_info() [all …]
|
/linux/net/openvswitch/ |
H A D | meter.c | 232 static int ovs_meter_cmd_reply_stats(struct sk_buff *reply, u32 meter_id, in ovs_meter_cmd_reply_stats() argument 239 if (nla_put_u32(reply, OVS_METER_ATTR_ID, meter_id)) in ovs_meter_cmd_reply_stats() 242 if (nla_put(reply, OVS_METER_ATTR_STATS, in ovs_meter_cmd_reply_stats() 246 if (nla_put_u64_64bit(reply, OVS_METER_ATTR_USED, meter->used, in ovs_meter_cmd_reply_stats() 250 nla = nla_nest_start_noflag(reply, OVS_METER_ATTR_BANDS); in ovs_meter_cmd_reply_stats() 259 band_nla = nla_nest_start_noflag(reply, OVS_BAND_ATTR_UNSPEC); in ovs_meter_cmd_reply_stats() 260 if (!band_nla || nla_put(reply, OVS_BAND_ATTR_STATS, in ovs_meter_cmd_reply_stats() 264 nla_nest_end(reply, band_nla); in ovs_meter_cmd_reply_stats() 266 nla_nest_end(reply, nla); in ovs_meter_cmd_reply_stats() 278 struct sk_buff *reply; in ovs_meter_cmd_features() local [all …]
|
H A D | datapath.c | 972 struct sk_buff *reply; in ovs_flow_cmd_new() local 1030 reply = ovs_flow_cmd_alloc_info(acts, &new_flow->id, info, false, in ovs_flow_cmd_new() 1032 if (IS_ERR(reply)) { in ovs_flow_cmd_new() 1033 error = PTR_ERR(reply); in ovs_flow_cmd_new() 1059 if (unlikely(reply)) { in ovs_flow_cmd_new() 1062 reply, info->snd_portid, in ovs_flow_cmd_new() 1101 if (unlikely(reply)) { in ovs_flow_cmd_new() 1104 reply, info->snd_portid, in ovs_flow_cmd_new() 1116 if (reply) in ovs_flow_cmd_new() 1117 ovs_notify(&dp_flow_genl_family, reply, info); in ovs_flow_cmd_new() [all …]
|
/linux/net/bridge/ |
H A D | br_arp_nd_proxy.c | 255 struct sk_buff *reply; in br_nd_send() local 270 reply = alloc_skb(len, GFP_ATOMIC); in br_nd_send() 271 if (!reply) in br_nd_send() 274 reply->protocol = htons(ETH_P_IPV6); in br_nd_send() 275 reply->dev = dev; in br_nd_send() 276 skb_reserve(reply, LL_RESERVED_SPACE(dev)); in br_nd_send() 277 skb_push(reply, sizeof(struct ethhdr)); in br_nd_send() 278 skb_set_mac_header(reply, 0); in br_nd_send() 287 kfree_skb(reply); in br_nd_send() 297 ether_addr_copy(eth_hdr(reply)->h_dest, daddr); in br_nd_send() [all …]
|
/linux/drivers/net/wireless/ath/wil6210/ |
H A D | wmi.c | 2040 u16 reply_id, void *reply, u16 reply_size, int to_msec) in wmi_call() argument 2051 wil->reply_buf = reply; in wmi_call() 2135 } __packed reply = { in wmi_led_cfg() local 2153 WMI_LED_CFG_DONE_EVENTID, &reply, sizeof(reply), in wmi_led_cfg() 2158 if (reply.evt.status) { in wmi_led_cfg() 2160 led_id, le32_to_cpu(reply.evt.status)); in wmi_led_cfg() 2180 } __packed reply = { in wmi_rbufcap_cfg() local 2185 WMI_RBUFCAP_CFG_EVENTID, &reply, sizeof(reply), in wmi_rbufcap_cfg() 2190 if (reply.evt.status != WMI_FW_STATUS_SUCCESS) { in wmi_rbufcap_cfg() 2192 reply.evt.status); in wmi_rbufcap_cfg() [all …]
|
/linux/drivers/net/ethernet/netronome/nfp/bpf/ |
H A D | cmsg.c | 58 struct cmsg_reply_map_simple *reply) in nfp_bpf_ctrl_rc_to_errno() argument 72 rc = be32_to_cpu(reply->rc); in nfp_bpf_ctrl_rc_to_errno() 84 struct cmsg_reply_map_alloc_tbl *reply; in nfp_bpf_ctrl_alloc_map() local 102 sizeof(*reply)); in nfp_bpf_ctrl_alloc_map() 106 reply = (void *)skb->data; in nfp_bpf_ctrl_alloc_map() 107 err = nfp_bpf_ctrl_rc_to_errno(bpf, &reply->reply_hdr); in nfp_bpf_ctrl_alloc_map() 111 tid = be32_to_cpu(reply->tid); in nfp_bpf_ctrl_alloc_map() 122 struct cmsg_reply_map_free_tbl *reply; in nfp_bpf_ctrl_free_map() local 137 sizeof(*reply)); in nfp_bpf_ctrl_free_map() 143 reply = (void *)skb->data; in nfp_bpf_ctrl_free_map() [all …]
|
/linux/include/uapi/linux/ |
H A D | cec-funcs.h | 59 int reply) in cec_msg_request_active_source() argument 64 msg->reply = reply ? CEC_MSG_ACTIVE_SOURCE : 0; in cec_msg_request_active_source() 84 int reply, in cec_msg_routing_change() argument 95 msg->reply = reply ? CEC_MSG_ROUTING_INFORMATION : 0; in cec_msg_routing_change() 131 static inline void cec_msg_record_off(struct cec_msg *msg, int reply) in cec_msg_record_off() argument 135 msg->reply = reply ? CEC_MSG_RECORD_STATUS : 0; in cec_msg_record_off() 293 int reply, in cec_msg_record_on() argument 317 msg->reply = reply ? CEC_MSG_RECORD_STATUS : 0; in cec_msg_record_on() 360 int reply) in cec_msg_record_tv_screen() argument 364 msg->reply = reply ? CEC_MSG_RECORD_ON : 0; in cec_msg_record_tv_screen() [all …]
|
/linux/tools/net/ynl/ |
H A D | ethtool.py | 42 def print_field(reply, *desc): 44 Pretty-print a set of fields from the reply. desc specifies the 48 return print_field(reply, *zip(reply.keys(), reply.keys())) 57 value = reply.get(field, None) 93 reply = ynl.dump(op_name, { 'header': {} } | extra) 94 if not reply: 97 for msg in reply: 229 reply 40 print_field(reply, *desc) global() argument [all...] |
/linux/arch/um/drivers/ |
H A D | mconsole_user.c | 40 static int mconsole_reply_v0(struct mc_request *req, char *reply) in mconsole_reply_v0() argument 45 iov.iov_base = reply; in mconsole_reply_v0() 46 iov.iov_len = strlen(reply); in mconsole_reply_v0() 136 struct mconsole_reply reply; in mconsole_reply_len() local 140 reply.err = err; in mconsole_reply_len() 147 if (len == total) reply.more = more; in mconsole_reply_len() 148 else reply.more = 1; in mconsole_reply_len() 150 memcpy(reply.data, str, len); in mconsole_reply_len() 151 reply.data[len] = '\0'; in mconsole_reply_len() 154 reply.len = len + 1; in mconsole_reply_len() [all …]
|
/linux/sound/soc/sof/ |
H A D | sof-client-probes-ipc3.c | 107 struct sof_ipc_probe_info_params *reply; in ipc3_probes_info() local 114 reply = kzalloc(max_msg_size, GFP_KERNEL); in ipc3_probes_info() 115 if (!reply) in ipc3_probes_info() 120 ret = sof_client_ipc_tx_message(cdev, &msg, reply, max_msg_size); in ipc3_probes_info() 121 if (ret < 0 || reply->rhdr.error < 0) in ipc3_probes_info() 124 if (!reply->num_elems) in ipc3_probes_info() 128 bytes = sizeof(reply->dma[0]); in ipc3_probes_info() 130 bytes = sizeof(reply->desc[0]); in ipc3_probes_info() 131 bytes *= reply->num_elems; in ipc3_probes_info() 132 *params = kmemdup(&reply->dma[0], bytes, GFP_KERNEL); in ipc3_probes_info() [all …]
|
H A D | debug.c | 204 struct sof_ipc_dbg_mem_usage *reply; in memory_info_update() local 209 reply = kmalloc(SOF_IPC_MSG_MAX_SIZE, GFP_KERNEL); in memory_info_update() 210 if (!reply) in memory_info_update() 219 ret = sof_ipc_tx_message(sdev->ipc, &msg, msg.size, reply, SOF_IPC_MSG_MAX_SIZE); in memory_info_update() 222 if (ret < 0 || reply->rhdr.error < 0) { in memory_info_update() 223 ret = min(ret, reply->rhdr.error); in memory_info_update() 228 if (struct_size(reply, elems, reply->num_elems) != reply->rhdr.hdr.size) { in memory_info_update() 230 reply->rhdr.hdr.size); in memory_info_update() 235 for (i = 0, len = 0; i < reply->num_elems; i++) { in memory_info_update() 237 reply->elems[i].zone, reply->elems[i].id, in memory_info_update() [all …]
|
/linux/drivers/s390/crypto/ |
H A D | zcrypt_msgtype6.c | 569 struct ap_message *reply, in convert_type86_ica() argument 573 struct type86x_reply *msg = reply->msg; in convert_type86_ica() 623 struct ap_message *reply, in convert_type86_xcrb() argument 626 struct type86_fmt2_msg *msg = reply->msg; in convert_type86_xcrb() 627 char *data = reply->msg; in convert_type86_xcrb() 666 struct ap_message *reply, in convert_type86_ep11_xcrb() argument 669 struct type86_fmt2_msg *msg = reply->msg; in convert_type86_ep11_xcrb() 670 char *data = reply->msg; in convert_type86_ep11_xcrb() 687 struct ap_message *reply, in convert_type86_rng() argument 694 } __packed * msg = reply->msg; in convert_type86_rng() [all …]
|
/linux/sound/soc/intel/catpt/ |
H A D | ipc.c | 45 struct catpt_ipc_msg *reply) in catpt_ipc_msg_init() argument 50 ipc->rx.size = reply ? reply->size : 0; in catpt_ipc_msg_init() 87 struct catpt_ipc_msg *reply, int timeout) in catpt_dsp_do_send_msg() argument 96 (reply && reply->size > ipc->config.outbox_size)) in catpt_dsp_do_send_msg() 100 catpt_ipc_msg_init(ipc, reply); in catpt_dsp_do_send_msg() 114 if (reply) { in catpt_dsp_do_send_msg() 115 reply->header = ipc->rx.header; in catpt_dsp_do_send_msg() 117 if (!ret && reply->data) in catpt_dsp_do_send_msg() 118 memcpy(reply->data, ipc->rx.data, reply->size); in catpt_dsp_do_send_msg() 126 struct catpt_ipc_msg *reply, int timeout) in catpt_dsp_send_msg_timeout() argument [all …]
|
H A D | messages.c | 17 struct catpt_ipc_msg request = {{0}}, reply; in catpt_ipc_get_fw_version() local 21 reply.size = sizeof(*version); in catpt_ipc_get_fw_version() 22 reply.data = version; in catpt_ipc_get_fw_version() 24 ret = catpt_dsp_send_msg(cdev, request, &reply); in catpt_ipc_get_fw_version() 58 struct catpt_ipc_msg request, reply; in catpt_ipc_alloc_stream() local 94 reply.size = sizeof(*sinfo); in catpt_ipc_alloc_stream() 95 reply.data = sinfo; in catpt_ipc_alloc_stream() 97 ret = catpt_dsp_send_msg(cdev, request, &reply); in catpt_ipc_alloc_stream() 146 struct catpt_ipc_msg request, reply; in catpt_ipc_enter_dxstate() local 152 reply.size = sizeof(*context); in catpt_ipc_enter_dxstate() [all …]
|
/linux/sound/soc/sof/amd/ |
H A D | acp-ipc.c | 99 struct sof_ipc_reply reply; in acp_dsp_ipc_get_reply() local 121 reply.error = 0; in acp_dsp_ipc_get_reply() 122 reply.hdr.cmd = SOF_IPC_GLB_REPLY; in acp_dsp_ipc_get_reply() 123 reply.hdr.size = sizeof(reply); in acp_dsp_ipc_get_reply() 124 memcpy(msg->reply_data, &reply, sizeof(reply)); in acp_dsp_ipc_get_reply() 128 acp_mailbox_read(sdev, offset, &reply, sizeof(reply)); in acp_dsp_ipc_get_reply() 129 if (reply.error < 0) { in acp_dsp_ipc_get_reply() 130 memcpy(msg->reply_data, &reply, sizeof(reply)); in acp_dsp_ipc_get_reply() 131 ret = reply.error; in acp_dsp_ipc_get_reply() 141 if (reply.hdr.size != msg->reply_size && in acp_dsp_ipc_get_reply() [all …]
|
/linux/drivers/mfd/ |
H A D | rave-sp.c | 194 struct rave_sp_reply *reply; member 346 struct rave_sp_reply reply = { in rave_sp_exec() local 349 .received = COMPLETION_INITIALIZER_ONSTACK(reply.received), in rave_sp_exec() 360 reply.ackid = ackid; in rave_sp_exec() 361 reply.code = rave_sp_reply_code((u8)command); in rave_sp_exec() 366 sp->reply = &reply; in rave_sp_exec() 374 if (!wait_for_completion_timeout(&reply.received, HZ)) { in rave_sp_exec() 379 sp->reply = NULL; in rave_sp_exec() 407 struct rave_sp_reply *reply; in rave_sp_receive_reply() local 411 reply = sp->reply; in rave_sp_receive_reply() [all …]
|
/linux/net/ethtool/ |
H A D | eeprom.c | 54 struct eeprom_reply_data *reply) in eeprom_fallback() argument 56 struct net_device *dev = reply->base.dev; in eeprom_fallback() 78 reply->data = data; in eeprom_fallback() 79 reply->length = eeprom.len; in eeprom_fallback() 113 struct eeprom_reply_data *reply = MODULE_EEPROM_REPDATA(reply_base); in eeprom_prepare_data() local 136 reply->length = ret; in eeprom_prepare_data() 137 reply->data = page_data.data; in eeprom_prepare_data() 148 return eeprom_fallback(request, reply); in eeprom_prepare_data() 209 struct eeprom_reply_data *reply = MODULE_EEPROM_REPDATA(reply_base); in eeprom_fill_reply() local 211 return nla_put(skb, ETHTOOL_A_MODULE_EEPROM_DATA, reply->length, reply->data); in eeprom_fill_reply() [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/ |
H A D | memx.c | 48 u32 reply[2]; in nvkm_memx_init() local 51 ret = nvkm_pmu_send(pmu, reply, PROC_MEMX, MEMX_MSG_INFO, in nvkm_memx_init() 60 memx->base = reply[0]; in nvkm_memx_init() 61 memx->size = reply[1]; in nvkm_memx_init() 78 u32 finish, reply[2]; in nvkm_memx_fini() local 89 nvkm_pmu_send(pmu, reply, PROC_MEMX, MEMX_MSG_EXEC, in nvkm_memx_fini() 92 reply[0], reply[1]); in nvkm_memx_fini() 169 u32 reply[2], base, size, i; in nvkm_memx_train_result() local 172 ret = nvkm_pmu_send(pmu, reply, PROC_MEMX, MEMX_MSG_INFO, in nvkm_memx_train_result() 177 base = reply[0]; in nvkm_memx_train_result() [all …]
|
/linux/sound/soc/intel/avs/ |
H A D | ipc.c | 355 static void avs_ipc_msg_init(struct avs_ipc *ipc, struct avs_ipc_msg *reply) in avs_ipc_msg_init() argument 360 ipc->rx.size = reply ? reply->size : 0; in avs_ipc_msg_init() 385 struct avs_ipc_msg *reply, int timeout, const char *name) in avs_dsp_do_send_msg() argument 396 avs_ipc_msg_init(ipc, reply); in avs_dsp_do_send_msg() 425 if (reply) { in avs_dsp_do_send_msg() 426 reply->header = ipc->rx.header; in avs_dsp_do_send_msg() 427 reply->size = ipc->rx.size; in avs_dsp_do_send_msg() 428 if (reply->data && ipc->rx.size) in avs_dsp_do_send_msg() 429 memcpy(reply->data, ipc->rx.data, reply->size); in avs_dsp_do_send_msg() 438 struct avs_ipc_msg *reply, int timeout, bool wake_d0i0, in avs_dsp_send_msg_sequence() argument [all …]
|
/linux/tools/usb/usbip/src/ |
H A D | usbip_attach.c | 124 struct op_import_reply reply; in query_import_device() local 129 memset(&reply, 0, sizeof(reply)); in query_import_device() 156 rc = usbip_net_recv(sockfd, (void *) &reply, sizeof(reply)); in query_import_device() 162 PACK_OP_IMPORT_REPLY(0, &reply); in query_import_device() 165 if (strncmp(reply.udev.busid, busid, SYSFS_BUS_ID_SIZE)) { in query_import_device() 166 err("recv different busid %s", reply.udev.busid); in query_import_device() 171 return import_device(sockfd, &reply.udev); in query_import_device()
|
/linux/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_msg.c | 205 static unsigned long vmw_port_hb_in(struct rpc_channel *channel, char *reply, in vmw_port_hb_in() argument 217 (uintptr_t) reply, channel->cookie_low, in vmw_port_hb_in() 239 memcpy(reply, &ebx, bytes); in vmw_port_hb_in() 241 reply += bytes; in vmw_port_hb_in() 308 char *reply; in vmw_recv_msg() local 335 reply = kzalloc(reply_len + 1, GFP_KERNEL); in vmw_recv_msg() 336 if (!reply) { in vmw_recv_msg() 343 ebx = vmw_port_hb_in(channel, reply, reply_len, in vmw_recv_msg() 346 kfree(reply); in vmw_recv_msg() 347 reply = NULL; in vmw_recv_msg() [all …]
|
/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
H A D | vendor.c | 26 struct sk_buff *reply; in brcmf_cfg80211_vndr_cmds_dcmd_handler() local 81 reply = cfg80211_vendor_cmd_alloc_reply_skb(wiphy, payload); in brcmf_cfg80211_vndr_cmds_dcmd_handler() 82 if (NULL == reply) { in brcmf_cfg80211_vndr_cmds_dcmd_handler() 87 if (nla_put(reply, BRCMF_NLATTR_DATA, msglen, wr_pointer) || in brcmf_cfg80211_vndr_cmds_dcmd_handler() 88 nla_put_u16(reply, BRCMF_NLATTR_LEN, msglen)) { in brcmf_cfg80211_vndr_cmds_dcmd_handler() 89 kfree_skb(reply); in brcmf_cfg80211_vndr_cmds_dcmd_handler() 94 ret = cfg80211_vendor_cmd_reply(reply); in brcmf_cfg80211_vndr_cmds_dcmd_handler()
|
/linux/drivers/nfc/ |
H A D | mei_phy.c | 96 struct mei_nfc_reply *reply = NULL; in mei_nfc_if_version() local 117 reply = kzalloc(if_version_length, GFP_KERNEL); in mei_nfc_if_version() 118 if (!reply) in mei_nfc_if_version() 121 bytes_recv = mei_cldev_recv(phy->cldev, (u8 *)reply, if_version_length); in mei_nfc_if_version() 128 version = (struct mei_nfc_if_version *)reply->data; in mei_nfc_if_version() 135 kfree(reply); in mei_nfc_if_version() 141 struct mei_nfc_cmd *cmd, *reply; in mei_nfc_connect() local 158 reply = kzalloc(connect_resp_length, GFP_KERNEL); in mei_nfc_connect() 159 if (!reply) { in mei_nfc_connect() 164 connect_resp = (struct mei_nfc_connect_resp *)reply->data; in mei_nfc_connect() [all …]
|
/linux/drivers/media/cec/usb/extron-da-hd-4k-plus/ |
H A D | cec-splitter.c | 171 struct cec_msg reply = {}; in cec_out_report_current_latency() local 210 cec_msg_init(&reply, input_adap->log_addrs.log_addr[0], in cec_out_report_current_latency() 212 cec_msg_report_current_latency(&reply, input_adap->phys_addr, in cec_out_report_current_latency() 214 cec_transmit_msg(input_adap, &reply, false); in cec_out_report_current_latency() 267 struct cec_msg reply = {}; in cec_out_report_power_status() local 310 cec_msg_init(&reply, input_adap->log_addrs.log_addr[0], in cec_out_report_power_status() 312 cec_msg_report_power_status(&reply, reply_pwr); in cec_out_report_power_status() 313 cec_transmit_msg(input_adap, &reply, false); in cec_out_report_power_status() 487 struct cec_msg reply = {}; in cec_splitter_received_output() local 545 cec_msg_set_reply_to(&reply, msg); in cec_splitter_received_output() [all …]
|