Home
last modified time | relevance | path

Searched full:msg (Results 1 – 25 of 2941) sorted by relevance

12345678910>>...118

/linux/include/uapi/linux/
H A Dcec-funcs.h14 static inline void cec_msg_active_source(struct cec_msg *msg, __u16 phys_addr) in cec_msg_active_source() argument
16 msg->len = 4; in cec_msg_active_source()
17 msg->msg[0] |= 0xf; /* broadcast */ in cec_msg_active_source()
18 msg->msg[1] = CEC_MSG_ACTIVE_SOURCE; in cec_msg_active_source()
19 msg->msg[2] = phys_addr >> 8; in cec_msg_active_source()
20 msg->msg[3] = phys_addr & 0xff; in cec_msg_active_source()
23 static inline void cec_ops_active_source(const struct cec_msg *msg, in cec_ops_active_source() argument
26 *phys_addr = (msg->msg[2] << 8) | msg->msg[3]; in cec_ops_active_source()
29 static inline void cec_msg_image_view_on(struct cec_msg *msg) in cec_msg_image_view_on() argument
31 msg->len = 2; in cec_msg_image_view_on()
[all …]
/linux/drivers/accel/habanalabs/include/gaudi2/
H A Dgaudi2_async_ids_map_extended.h26 int msg; member
32 { .fc_id = 0, .cpu_id = 0, .valid = 0, .msg = 0, .reset = EVENT_RESET_TYPE_NONE,
34 { .fc_id = 1, .cpu_id = 1, .valid = 0, .msg = 0, .reset = EVENT_RESET_TYPE_NONE,
36 { .fc_id = 2, .cpu_id = 2, .valid = 0, .msg = 0, .reset = EVENT_RESET_TYPE_NONE,
38 { .fc_id = 3, .cpu_id = 3, .valid = 0, .msg = 0, .reset = EVENT_RESET_TYPE_NONE,
40 { .fc_id = 4, .cpu_id = 4, .valid = 0, .msg = 0, .reset = EVENT_RESET_TYPE_NONE,
42 { .fc_id = 5, .cpu_id = 5, .valid = 0, .msg = 0, .reset = EVENT_RESET_TYPE_NONE,
44 { .fc_id = 6, .cpu_id = 6, .valid = 0, .msg = 0, .reset = EVENT_RESET_TYPE_NONE,
46 { .fc_id = 7, .cpu_id = 7, .valid = 0, .msg = 0, .reset = EVENT_RESET_TYPE_NONE,
48 { .fc_id = 8, .cpu_id = 8, .valid = 0, .msg = 0, .reset = EVENT_RESET_TYPE_NONE,
[all …]
/linux/drivers/media/platform/allegro-dvt/
H A Dallegro-mail.c44 allegro_enc_init(u32 *dst, struct mcu_msg_init_request *msg) in allegro_enc_init() argument
47 enum mcu_msg_version version = msg->header.version; in allegro_enc_init()
49 dst[i++] = msg->reserved0; in allegro_enc_init()
50 dst[i++] = msg->suballoc_dma; in allegro_enc_init()
51 dst[i++] = msg->suballoc_size; in allegro_enc_init()
52 dst[i++] = msg->encoder_buffer_size; in allegro_enc_init()
53 dst[i++] = msg->encoder_buffer_color_depth; in allegro_enc_init()
54 dst[i++] = msg->num_cores; in allegro_enc_init()
56 dst[i++] = msg->clk_rate; in allegro_enc_init()
233 allegro_enc_create_channel(u32 *dst, struct mcu_msg_create_channel *msg) in allegro_enc_create_channel() argument
[all …]
/linux/sound/soc/fsl/
H A Dimx-pcm-rpmsg.c36 static int imx_rpmsg_pcm_send_message(struct rpmsg_msg *msg, in imx_rpmsg_pcm_send_message() argument
49 dev_dbg(&rpdev->dev, "send cmd %d\n", msg->s_msg.header.cmd); in imx_rpmsg_pcm_send_message()
51 if (!(msg->s_msg.header.type == MSG_TYPE_C)) in imx_rpmsg_pcm_send_message()
54 ret = rpmsg_send(rpdev->ept, (void *)&msg->s_msg, in imx_rpmsg_pcm_send_message()
62 /* No receive msg for TYPE_C command */ in imx_rpmsg_pcm_send_message()
63 if (msg->s_msg.header.type == MSG_TYPE_C) { in imx_rpmsg_pcm_send_message()
73 msg->s_msg.header.cmd); in imx_rpmsg_pcm_send_message()
78 memcpy(&msg->r_msg, &info->r_msg, sizeof(struct rpmsg_r_msg)); in imx_rpmsg_pcm_send_message()
79 memcpy(&info->msg[msg->r_msg.header.cmd].r_msg, in imx_rpmsg_pcm_send_message()
80 &msg->r_msg, sizeof(struct rpmsg_r_msg)); in imx_rpmsg_pcm_send_message()
[all …]
/linux/drivers/net/wireless/silabs/wfx/
H A Dkey.c33 static u8 fill_wep_pair(struct wfx_hif_wep_pairwise_key *msg, in fill_wep_pair() argument
36 WARN(key->keylen > sizeof(msg->key_data), "inconsistent data"); in fill_wep_pair()
37 msg->key_length = key->keylen; in fill_wep_pair()
38 memcpy(msg->key_data, key->key, key->keylen); in fill_wep_pair()
39 ether_addr_copy(msg->peer_address, peer_addr); in fill_wep_pair()
43 static u8 fill_wep_group(struct wfx_hif_wep_group_key *msg, in fill_wep_group() argument
46 WARN(key->keylen > sizeof(msg->key_data), "inconsistent data"); in fill_wep_group()
47 msg->key_id = key->keyidx; in fill_wep_group()
48 msg->key_length = key->keylen; in fill_wep_group()
49 memcpy(msg->key_data, key->key, key->keylen); in fill_wep_group()
[all …]
/linux/drivers/gpu/drm/hyperv/
H A Dhyperv_drm_proto.c196 static inline int hyperv_sendpacket(struct hv_device *hdev, struct synthvid_msg *msg) in hyperv_sendpacket() argument
202 msg->pipe_hdr.type = PIPE_MSG_DATA; in hyperv_sendpacket()
203 msg->pipe_hdr.size = msg->vid_hdr.size; in hyperv_sendpacket()
205 ret = vmbus_sendpacket(hdev->channel, msg, in hyperv_sendpacket()
206 msg->vid_hdr.size + sizeof(struct pipe_msg_hdr), in hyperv_sendpacket()
219 struct synthvid_msg *msg = (struct synthvid_msg *)hv->init_buf; in hyperv_negotiate_version() local
223 memset(msg, 0, sizeof(struct synthvid_msg)); in hyperv_negotiate_version()
224 msg->vid_hdr.type = SYNTHVID_VERSION_REQUEST; in hyperv_negotiate_version()
225 msg->vid_hdr.size = sizeof(struct synthvid_msg_hdr) + in hyperv_negotiate_version()
227 msg->ver_req.version = ver; in hyperv_negotiate_version()
[all …]
/linux/drivers/infiniband/hw/cxgb4/
H A Drestrack.c39 static int fill_sq(struct sk_buff *msg, struct t4_wq *wq) in fill_sq() argument
42 if (rdma_nl_put_driver_u32(msg, "sqid", wq->sq.qid)) in fill_sq()
44 if (rdma_nl_put_driver_u32(msg, "flushed", wq->flushed)) in fill_sq()
46 if (rdma_nl_put_driver_u32(msg, "memsize", wq->sq.memsize)) in fill_sq()
48 if (rdma_nl_put_driver_u32(msg, "cidx", wq->sq.cidx)) in fill_sq()
50 if (rdma_nl_put_driver_u32(msg, "pidx", wq->sq.pidx)) in fill_sq()
52 if (rdma_nl_put_driver_u32(msg, "wq_pidx", wq->sq.wq_pidx)) in fill_sq()
54 if (rdma_nl_put_driver_u32(msg, "flush_cidx", wq->sq.flush_cidx)) in fill_sq()
56 if (rdma_nl_put_driver_u32(msg, "in_use", wq->sq.in_use)) in fill_sq()
58 if (rdma_nl_put_driver_u32(msg, "size", wq->sq.size)) in fill_sq()
[all …]
/linux/drivers/media/platform/mediatek/vcodec/decoder/
H A Dvdec_vpu_if.c12 static void handle_init_ack_msg(const struct vdec_vpu_ipi_init_ack *msg) in handle_init_ack_msg() argument
15 (unsigned long)msg->ap_inst_addr; in handle_init_ack_msg()
17 mtk_vdec_debug(vpu->ctx, "+ ap_inst_addr = 0x%llx", msg->ap_inst_addr); in handle_init_ack_msg()
22 msg->vpu_inst_addr); in handle_init_ack_msg()
23 vpu->inst_addr = msg->vpu_inst_addr; in handle_init_ack_msg()
40 vpu->fw_abi_version = msg->vdec_abi_version; in handle_init_ack_msg()
46 vpu->inst_id = msg->inst_id; in handle_init_ack_msg()
55 static void handle_get_param_msg_ack(const struct vdec_vpu_ipi_get_param_ack *msg) in handle_get_param_msg_ack() argument
58 (unsigned long)msg->ap_inst_addr; in handle_get_param_msg_ack()
60 mtk_vdec_debug(vpu->ctx, "+ ap_inst_addr = 0x%llx", msg->ap_inst_addr); in handle_get_param_msg_ack()
[all …]
/linux/net/tipc/
H A Dnetlink_compat.c69 int (*format)(struct tipc_nl_compat_msg *msg, struct nlattr **attrs);
75 struct sk_buff *skb, struct tipc_nl_compat_msg *msg);
179 struct tipc_nl_compat_msg *msg, in __tipc_nl_compat_dumpit() argument
199 buf->sk = msg->dst_sk; in __tipc_nl_compat_dumpit()
200 if (__tipc_dump_start(&cb, msg->net)) { in __tipc_nl_compat_dumpit()
235 err = (*cmd->format)(msg, attrbuf); in __tipc_nl_compat_dumpit()
239 if (tipc_skb_tailroom(msg->rep) <= 1) { in __tipc_nl_compat_dumpit()
261 if ((TIPC_SKB_MAX - msg->rep->len) <= 1) { in __tipc_nl_compat_dumpit()
262 char *tail = skb_tail_pointer(msg->rep); in __tipc_nl_compat_dumpit()
276 struct tipc_nl_compat_msg *msg) in tipc_nl_compat_dumpit() argument
[all …]
/linux/drivers/connector/
H A Dcn_proc.c88 static inline void send_msg(struct cn_msg *msg) in send_msg() argument
94 msg->seq = __this_cpu_inc_return(local_event.count) - 1; in send_msg()
95 ((struct proc_event *)msg->data)->cpu = smp_processor_id(); in send_msg()
103 filter_data[0] = ((struct proc_event *)msg->data)->what; in send_msg()
106 ((struct proc_event *)msg->data)->event_data.exit.exit_code; in send_msg()
111 cn_netlink_send_mult(msg, msg->len, 0, CN_IDX_PROC, GFP_NOWAIT, in send_msg()
119 struct cn_msg *msg; in proc_fork_connector() local
127 msg = buffer_to_cn_msg(buffer); in proc_fork_connector()
128 ev = (struct proc_event *)msg->data; in proc_fork_connector()
140 memcpy(&msg->id, &cn_proc_event_id, sizeof(msg->id)); in proc_fork_connector()
[all …]
/linux/drivers/s390/crypto/
H A Dzcrypt_msgtype6.c212 } __packed * msg = ap_msg->msg; in icamex_msg_to_type6mex_msgx() local
224 msg->length = mex->inputdatalength + 2; in icamex_msg_to_type6mex_msgx()
225 if (copy_from_user(msg->text, mex->inputdata, mex->inputdatalength)) in icamex_msg_to_type6mex_msgx()
229 size = zcrypt_type6_mex_key_en(mex, msg->text + mex->inputdatalength); in icamex_msg_to_type6mex_msgx()
232 size += sizeof(*msg) + mex->inputdatalength; in icamex_msg_to_type6mex_msgx()
235 msg->hdr = static_type6_hdrX; in icamex_msg_to_type6mex_msgx()
236 msg->hdr.tocardlen1 = size - sizeof(msg->hdr); in icamex_msg_to_type6mex_msgx()
237 msg->hdr.fromcardlen1 = CEXXC_MAX_ICA_RESPONSE_SIZE - sizeof(msg->hdr); in icamex_msg_to_type6mex_msgx()
239 msg->cprbx = static_cprbx; in icamex_msg_to_type6mex_msgx()
240 msg->cprbx.domain = AP_QID_QUEUE(zq->queue->qid); in icamex_msg_to_type6mex_msgx()
[all …]
/linux/drivers/platform/chrome/
H A Dcros_ec_proto.c57 struct cros_ec_command *msg) in prepare_tx() argument
64 if (msg->outsize + sizeof(*request) > ec_dev->dout_size) in prepare_tx()
71 request->command = msg->command; in prepare_tx()
72 request->command_version = msg->version; in prepare_tx()
74 request->data_len = msg->outsize; in prepare_tx()
80 memcpy(out + sizeof(*request), msg->data, msg->outsize); in prepare_tx()
81 for (i = 0; i < msg->outsize; i++) in prepare_tx()
82 csum += msg->data[i]; in prepare_tx()
86 return sizeof(*request) + msg->outsize; in prepare_tx()
90 struct cros_ec_command *msg) in prepare_tx_legacy() argument
[all …]
H A Dcros_ec_proto_test.c22 struct cros_ec_command *msg; member
30 struct cros_ec_command *msg = priv->msg; in cros_ec_proto_test_prepare_tx_legacy_normal() local
36 msg->command = EC_CMD_HELLO; in cros_ec_proto_test_prepare_tx_legacy_normal()
37 msg->outsize = EC_PROTO2_MAX_PARAM_SIZE; in cros_ec_proto_test_prepare_tx_legacy_normal()
38 msg->data[0] = 0xde; in cros_ec_proto_test_prepare_tx_legacy_normal()
39 msg->data[1] = 0xad; in cros_ec_proto_test_prepare_tx_legacy_normal()
40 msg->data[2] = 0xbe; in cros_ec_proto_test_prepare_tx_legacy_normal()
41 msg->data[3] = 0xef; in cros_ec_proto_test_prepare_tx_legacy_normal()
43 ret = cros_ec_prepare_tx(ec_dev, msg); in cros_ec_proto_test_prepare_tx_legacy_normal()
73 struct cros_ec_command *msg = priv->msg; in cros_ec_proto_test_prepare_tx_legacy_bad_msg_outsize() local
[all …]
/linux/fs/smb/server/
H A Dtransport_ipc.c244 struct ksmbd_ipc_msg *msg; in ipc_msg_alloc() local
247 msg = kvzalloc(msg_sz, KSMBD_DEFAULT_GFP); in ipc_msg_alloc()
248 if (msg) in ipc_msg_alloc()
249 msg->sz = sz; in ipc_msg_alloc()
250 return msg; in ipc_msg_alloc()
253 static void ipc_msg_free(struct ksmbd_ipc_msg *msg) in ipc_msg_free() argument
255 kvfree(msg); in ipc_msg_free()
441 static int ipc_msg_send(struct ksmbd_ipc_msg *msg) in ipc_msg_send() argument
450 skb = genlmsg_new(msg->sz, KSMBD_DEFAULT_GFP); in ipc_msg_send()
454 nlh = genlmsg_put(skb, 0, 0, &ksmbd_genl_family, 0, msg->type); in ipc_msg_send()
[all …]
/linux/sound/virtio/
H A Dvirtio_ctl_msg.c29 * @msg: Control message.
33 void virtsnd_ctl_msg_ref(struct virtio_snd_msg *msg) in virtsnd_ctl_msg_ref() argument
35 refcount_inc(&msg->ref_count); in virtsnd_ctl_msg_ref()
40 * @msg: Control message.
46 void virtsnd_ctl_msg_unref(struct virtio_snd_msg *msg) in virtsnd_ctl_msg_unref() argument
48 if (refcount_dec_and_test(&msg->ref_count)) in virtsnd_ctl_msg_unref()
49 kfree(msg); in virtsnd_ctl_msg_unref()
54 * @msg: Control message.
58 void *virtsnd_ctl_msg_request(struct virtio_snd_msg *msg) in virtsnd_ctl_msg_request() argument
60 return sg_virt(&msg->sg_request); in virtsnd_ctl_msg_request()
[all …]
/linux/include/linux/
H A Dskmsg.h122 int sk_msg_alloc(struct sock *sk, struct sk_msg *msg, int len,
126 void sk_msg_trim(struct sock *sk, struct sk_msg *msg, int len);
127 int sk_msg_free(struct sock *sk, struct sk_msg *msg);
128 int sk_msg_free_nocharge(struct sock *sk, struct sk_msg *msg);
129 void sk_msg_free_partial(struct sock *sk, struct sk_msg *msg, u32 bytes);
130 void sk_msg_free_partial_nocharge(struct sock *sk, struct sk_msg *msg,
133 void sk_msg_return(struct sock *sk, struct sk_msg *msg, int bytes);
134 void sk_msg_return_zero(struct sock *sk, struct sk_msg *msg, int bytes);
137 struct sk_msg *msg, u32 bytes);
139 struct sk_msg *msg, u32 bytes);
[all …]
/linux/drivers/gpu/drm/amd/display/modules/hdcp/
H A Dhdcp_ddc.c275 hdcp->auth.msg.hdcp1.bksv, in mod_hdcp_read_bksv()
276 sizeof(hdcp->auth.msg.hdcp1.bksv)); in mod_hdcp_read_bksv()
282 &hdcp->auth.msg.hdcp1.bcaps, in mod_hdcp_read_bcaps()
283 sizeof(hdcp->auth.msg.hdcp1.bcaps)); in mod_hdcp_read_bcaps()
292 (uint8_t *)&hdcp->auth.msg.hdcp1.bstatus, in mod_hdcp_read_bstatus()
296 (uint8_t *)&hdcp->auth.msg.hdcp1.bstatus, in mod_hdcp_read_bstatus()
297 sizeof(hdcp->auth.msg.hdcp1.bstatus)); in mod_hdcp_read_bstatus()
304 (uint8_t *)&hdcp->auth.msg.hdcp1.r0p, in mod_hdcp_read_r0p()
305 sizeof(hdcp->auth.msg.hdcp1.r0p)); in mod_hdcp_read_r0p()
315 hdcp->auth.msg.hdcp1.ksvlist, in mod_hdcp_read_ksvlist()
[all …]
H A Dhdcp_log.c29 void mod_hdcp_dump_binary_message(uint8_t *msg, uint32_t msg_size, in mod_hdcp_dump_binary_message() argument
47 sprintf(&buf[buf_pos], "%02X ", msg[i]); in mod_hdcp_dump_binary_message()
57 HDCP_DDC_READ_TRACE(hdcp, "BKSV", hdcp->auth.msg.hdcp1.bksv, in mod_hdcp_log_ddc_trace()
58 sizeof(hdcp->auth.msg.hdcp1.bksv)); in mod_hdcp_log_ddc_trace()
59 HDCP_DDC_READ_TRACE(hdcp, "BCAPS", &hdcp->auth.msg.hdcp1.bcaps, in mod_hdcp_log_ddc_trace()
60 sizeof(hdcp->auth.msg.hdcp1.bcaps)); in mod_hdcp_log_ddc_trace()
62 (uint8_t *)&hdcp->auth.msg.hdcp1.bstatus, in mod_hdcp_log_ddc_trace()
63 sizeof(hdcp->auth.msg.hdcp1.bstatus)); in mod_hdcp_log_ddc_trace()
64 HDCP_DDC_WRITE_TRACE(hdcp, "AN", hdcp->auth.msg.hdcp1.an, in mod_hdcp_log_ddc_trace()
65 sizeof(hdcp->auth.msg.hdcp1.an)); in mod_hdcp_log_ddc_trace()
[all …]
/linux/drivers/platform/x86/amd/hsmp/
H A Dhsmp.c50 static int __hsmp_send_message(struct hsmp_socket *sock, struct hsmp_message *msg) in __hsmp_send_message() argument
70 while (index < msg->num_args) { in __hsmp_send_message()
72 &msg->args[index], HSMP_WR); in __hsmp_send_message()
81 ret = sock->amd_hsmp_rdwr(sock, mbinfo->msg_id_off, &msg->msg_id, HSMP_WR); in __hsmp_send_message()
83 dev_err(sock->dev, "Error %d writing message ID %u\n", ret, msg->msg_id); in __hsmp_send_message()
114 msg->msg_id, mbox_status); in __hsmp_send_message()
118 msg->msg_id, mbox_status); in __hsmp_send_message()
122 msg->msg_id, mbox_status); in __hsmp_send_message()
126 msg->msg_id, mbox_status); in __hsmp_send_message()
130 msg->msg_id, mbox_status); in __hsmp_send_message()
[all …]
/linux/drivers/infiniband/core/
H A Dnldev.c176 static int put_driver_name_print_type(struct sk_buff *msg, const char *name, in put_driver_name_print_type() argument
179 if (nla_put_string(msg, RDMA_NLDEV_ATTR_DRIVER_STRING, name)) in put_driver_name_print_type()
182 nla_put_u8(msg, RDMA_NLDEV_ATTR_DRIVER_PRINT_TYPE, print_type)) in put_driver_name_print_type()
188 static int _rdma_nl_put_driver_u32(struct sk_buff *msg, const char *name, in _rdma_nl_put_driver_u32() argument
192 if (put_driver_name_print_type(msg, name, print_type)) in _rdma_nl_put_driver_u32()
194 if (nla_put_u32(msg, RDMA_NLDEV_ATTR_DRIVER_U32, value)) in _rdma_nl_put_driver_u32()
200 static int _rdma_nl_put_driver_u64(struct sk_buff *msg, const char *name, in _rdma_nl_put_driver_u64() argument
204 if (put_driver_name_print_type(msg, name, print_type)) in _rdma_nl_put_driver_u64()
206 if (nla_put_u64_64bit(msg, RDMA_NLDEV_ATTR_DRIVER_U64, value, in _rdma_nl_put_driver_u64()
213 int rdma_nl_put_driver_string(struct sk_buff *msg, const char *name, in rdma_nl_put_driver_string() argument
[all …]
/linux/drivers/iio/common/ssp_sensors/
H A Dssp_spi.c78 struct ssp_msg *msg; in ssp_create_msg() local
80 msg = kzalloc(sizeof(*msg), GFP_KERNEL); in ssp_create_msg()
81 if (!msg) in ssp_create_msg()
89 msg->buffer = kzalloc(SSP_HEADER_SIZE_ALIGNED + len, in ssp_create_msg()
91 if (!msg->buffer) { in ssp_create_msg()
92 kfree(msg); in ssp_create_msg()
96 msg->length = len; in ssp_create_msg()
97 msg->options = opt; in ssp_create_msg()
99 memcpy(msg->buffer, &h, SSP_HEADER_SIZE); in ssp_create_msg()
101 return msg; in ssp_create_msg()
[all …]
/linux/drivers/clk/tegra/
H A Dclk-bpmp.c63 struct tegra_bpmp_message msg; in tegra_bpmp_clk_transfer() local
79 memset(&msg, 0, sizeof(msg)); in tegra_bpmp_clk_transfer()
80 msg.mrq = MRQ_CLK; in tegra_bpmp_clk_transfer()
81 msg.tx.data = &request; in tegra_bpmp_clk_transfer()
82 msg.tx.size = sizeof(request); in tegra_bpmp_clk_transfer()
83 msg.rx.data = clk->rx.data; in tegra_bpmp_clk_transfer()
84 msg.rx.size = clk->rx.size; in tegra_bpmp_clk_transfer()
86 err = tegra_bpmp_transfer(bpmp, &msg); in tegra_bpmp_clk_transfer()
89 else if (msg.rx.ret < 0) in tegra_bpmp_clk_transfer()
98 struct tegra_bpmp_clk_message msg; in tegra_bpmp_clk_prepare() local
[all …]
/linux/net/core/
H A Dskmsg.c13 static bool sk_msg_try_coalesce_ok(struct sk_msg *msg, int elem_first_coalesce) in sk_msg_try_coalesce_ok() argument
15 if (msg->sg.end > msg->sg.start && in sk_msg_try_coalesce_ok()
16 elem_first_coalesce < msg->sg.end) in sk_msg_try_coalesce_ok()
19 if (msg->sg.end < msg->sg.start && in sk_msg_try_coalesce_ok()
20 (elem_first_coalesce > msg->sg.start || in sk_msg_try_coalesce_ok()
21 elem_first_coalesce < msg->sg.end)) in sk_msg_try_coalesce_ok()
27 int sk_msg_alloc(struct sock *sk, struct sk_msg *msg, int len, in sk_msg_alloc() argument
31 u32 osize = msg->sg.size; in sk_msg_alloc()
34 len -= msg->sg.size; in sk_msg_alloc()
52 i = msg->sg.end; in sk_msg_alloc()
[all …]
/linux/drivers/media/cec/core/
H A Dcec-adap.c27 struct cec_msg *msg,
109 /* Add new msg at the end of the queue */ in cec_queue_event_fh()
208 static void cec_queue_msg_fh(struct cec_fh *fh, const struct cec_msg *msg) in cec_queue_msg_fh() argument
222 entry->msg = *msg; in cec_queue_msg_fh()
223 /* Add new msg at the end of the queue */ in cec_queue_msg_fh()
262 const struct cec_msg *msg, in cec_queue_msg_monitor() argument
272 cec_queue_msg_fh(fh, msg); in cec_queue_msg_monitor()
281 const struct cec_msg *msg) in cec_queue_msg_followers() argument
288 cec_queue_msg_fh(fh, msg); in cec_queue_msg_followers()
340 cec_queue_msg_fh(data->fh, &data->msg); in cec_data_completed()
[all …]
/linux/sound/soc/sof/
H A Dsof-client-probes-ipc3.c66 struct sof_ipc_probe_dma_add_params *msg; in ipc3_probes_init() local
67 size_t size = struct_size(msg, dma, 1); in ipc3_probes_init()
70 msg = kmalloc(size, GFP_KERNEL); in ipc3_probes_init()
71 if (!msg) in ipc3_probes_init()
73 msg->hdr.size = size; in ipc3_probes_init()
74 msg->hdr.cmd = SOF_IPC_GLB_PROBE | SOF_IPC_PROBE_INIT; in ipc3_probes_init()
75 msg->num_elems = 1; in ipc3_probes_init()
76 msg->dma[0].stream_tag = stream_tag; in ipc3_probes_init()
77 msg->dma[0].dma_buffer_size = buffer_size; in ipc3_probes_init()
79 ret = sof_client_ipc_tx_message_no_reply(cdev, msg); in ipc3_probes_init()
[all …]

12345678910>>...118