Home
last modified time | relevance | path

Searched refs:payload_size (Results 1 – 25 of 128) sorted by relevance

123456

/Linux-v6.6/sound/soc/qcom/qdsp6/
Daudioreach.c205 static void *__audioreach_alloc_pkt(int payload_size, uint32_t opcode, uint32_t token, in __audioreach_alloc_pkt() argument
210 int pkt_size = GPR_HDR_SIZE + payload_size; in __audioreach_alloc_pkt()
236 cmd_header->payload_size = payload_size; in __audioreach_alloc_pkt()
242 void *audioreach_alloc_pkt(int payload_size, uint32_t opcode, uint32_t token, in audioreach_alloc_pkt() argument
245 return __audioreach_alloc_pkt(payload_size, opcode, token, src_port, dest_port, false); in audioreach_alloc_pkt()
256 void *audioreach_alloc_cmd_pkt(int payload_size, uint32_t opcode, uint32_t token, in audioreach_alloc_cmd_pkt() argument
259 return __audioreach_alloc_pkt(payload_size, opcode, token, src_port, dest_port, true); in audioreach_alloc_cmd_pkt()
428 int payload_size, sg_sz, cont_sz, ml_sz, mp_sz, mc_sz; in audioreach_alloc_graph_pkt() local
478 payload_size = sg_sz + cont_sz + ml_sz + mp_sz + mc_sz; in audioreach_alloc_graph_pkt()
479 pkt = audioreach_alloc_apm_cmd_pkt(payload_size, APM_CMD_GRAPH_OPEN, 0); in audioreach_alloc_graph_pkt()
[all …]
/Linux-v6.6/drivers/staging/media/meson/vdec/
Desparser.c190 u32 payload_size) in esparser_pad_start_code() argument
195 if (payload_size < ESPARSER_MIN_PACKET_SIZE) { in esparser_pad_start_code()
196 pad_size = ESPARSER_MIN_PACKET_SIZE - payload_size; in esparser_pad_start_code()
197 memset(vaddr + payload_size, 0, pad_size); in esparser_pad_start_code()
200 if ((payload_size + pad_size + SEARCH_PATTERN_LEN) > in esparser_pad_start_code()
206 memset(vaddr + payload_size + pad_size, 0, SEARCH_PATTERN_LEN); in esparser_pad_start_code()
207 vaddr[payload_size + pad_size] = 0x00; in esparser_pad_start_code()
208 vaddr[payload_size + pad_size + 1] = 0x00; in esparser_pad_start_code()
209 vaddr[payload_size + pad_size + 2] = 0x01; in esparser_pad_start_code()
210 vaddr[payload_size + pad_size + 3] = 0xff; in esparser_pad_start_code()
[all …]
/Linux-v6.6/drivers/nvmem/
Dmicrochip-otpc.c154 int ret, payload_size; in mchp_otpc_read() local
180 payload_size = FIELD_GET(MCHP_OTPC_HR_SIZE, *(buf - 1)); in mchp_otpc_read()
186 payload_size--; in mchp_otpc_read()
187 } while (payload_size >= 0 && len < bytes); in mchp_otpc_read()
196 u32 word, word_pos = 0, id = 0, npackets = 0, payload_size; in mchp_otpc_init_packets_list() local
208 payload_size = FIELD_GET(MCHP_OTPC_HR_SIZE, word); in mchp_otpc_init_packets_list()
209 if (!payload_size) in mchp_otpc_init_packets_list()
222 *size += 4 * (payload_size + 1); in mchp_otpc_init_packets_list()
224 word_pos += payload_size + 2; in mchp_otpc_init_packets_list()
/Linux-v6.6/sound/soc/intel/avs/
Dmessages.c467 size_t payload_size; in avs_ipc_get_fw_config() local
474 &payload, &payload_size); in avs_ipc_get_fw_config()
478 if (!payload_size) in avs_ipc_get_fw_config()
481 while (offset < payload_size) { in avs_ipc_get_fw_config()
584 size_t payload_size; in avs_ipc_get_hw_config() local
591 &payload, &payload_size); in avs_ipc_get_hw_config()
595 if (!payload_size) in avs_ipc_get_hw_config()
598 while (offset < payload_size) { in avs_ipc_get_hw_config()
671 size_t payload_size; in avs_ipc_get_modules_info() local
677 &payload, &payload_size); in avs_ipc_get_modules_info()
[all …]
/Linux-v6.6/drivers/ps3/
Dps3-sys-manager.c49 u32 payload_size; member
61 pr_debug("%s:%d: payload_size: %xh\n", func, line, h->payload_size); in _dump_sm_header()
237 BUG_ON(header->payload_size != 8 && header->payload_size != 16); in ps3_sys_manager_write()
244 result = ps3_vuart_write(dev, payload, header->payload_size); in ps3_sys_manager_write()
271 header.payload_size = 16; in ps3_sys_manager_send_attr()
308 header.payload_size = 16; in ps3_sys_manager_send_next_op()
350 header.payload_size = 16; in ps3_sys_manager_send_request_shutdown()
388 header.payload_size = 16; in ps3_sys_manager_send_response()
546 if (header.size != 16 || (header.payload_size != 8 in ps3_sys_manager_handle_msg()
547 && header.payload_size != 16)) { in ps3_sys_manager_handle_msg()
[all …]
/Linux-v6.6/drivers/gpu/drm/amd/display/modules/freesync/
Dfreesync.c711 unsigned int *payload_size) in build_vrr_infopacket_header_v1() argument
728 *payload_size = 0x08; in build_vrr_infopacket_header_v1()
754 *payload_size = 0x1B; in build_vrr_infopacket_header_v1()
760 unsigned int *payload_size) in build_vrr_infopacket_header_v2() argument
777 *payload_size = 0x09; in build_vrr_infopacket_header_v2()
802 *payload_size = 0x1B; in build_vrr_infopacket_header_v2()
808 unsigned int *payload_size) in build_vrr_infopacket_header_v3() argument
828 *payload_size = 0x10; in build_vrr_infopacket_header_v3()
854 *payload_size = 0x1B; in build_vrr_infopacket_header_v3()
858 static void build_vrr_infopacket_checksum(unsigned int *payload_size, in build_vrr_infopacket_checksum() argument
[all …]
/Linux-v6.6/drivers/staging/greybus/
Dlog.c31 if (op->request->payload_size < sizeof(*receive)) { in gb_log_request_handler()
33 op->request->payload_size, sizeof(*receive)); in gb_log_request_handler()
38 if (len != (op->request->payload_size - sizeof(*receive))) { in gb_log_request_handler()
40 (op->request->payload_size - sizeof(*receive))); in gb_log_request_handler()
Dfw-download.c231 if (op->request->payload_size != sizeof(*request)) { in fw_download_find_firmware()
234 op->request->payload_size, sizeof(*request)); in fw_download_find_firmware()
281 if (op->request->payload_size != sizeof(*request)) { in fw_download_fetch_firmware()
284 op->request->payload_size, sizeof(*request)); in fw_download_fetch_firmware()
360 if (op->request->payload_size != sizeof(*request)) { in fw_download_release_firmware()
363 op->request->payload_size, sizeof(*request)); in fw_download_release_firmware()
Dbootrom.c200 if (op->request->payload_size != sizeof(*size_request)) { in gb_bootrom_firmware_size_request()
202 __func__, op->request->payload_size, in gb_bootrom_firmware_size_request()
255 if (op->request->payload_size != sizeof(*firmware_request)) { in gb_bootrom_get_firmware()
257 __func__, op->request->payload_size, in gb_bootrom_get_firmware()
323 if (op->request->payload_size != sizeof(*rtb_request)) { in gb_bootrom_ready_to_boot()
325 __func__, op->request->payload_size, in gb_bootrom_ready_to_boot()
/Linux-v6.6/drivers/media/test-drivers/vidtv/
Dvidtv_pes.c330 u32 payload_size; in vidtv_pes_write_into() local
375 payload_size = available_space; in vidtv_pes_write_into()
378 payload_size = remaining_len; in vidtv_pes_write_into()
379 stuff_bytes += available_space - payload_size; in vidtv_pes_write_into()
390 payload_size -= tmp; in vidtv_pes_write_into()
417 payload_size); in vidtv_pes_write_into()
419 args->from += payload_size; in vidtv_pes_write_into()
421 remaining_len -= payload_size; in vidtv_pes_write_into()
/Linux-v6.6/drivers/net/ethernet/mellanox/mlxfw/
Dmlxfw_mfa2_tlv.h29 size_t payload_size, bool varsize) in mlxfw_mfa2_tlv_payload_get() argument
39 if (varsize && (be16_to_cpu(tlv->len) < payload_size)) in mlxfw_mfa2_tlv_payload_get()
41 if (!varsize && (be16_to_cpu(tlv->len) != payload_size)) in mlxfw_mfa2_tlv_payload_get()
/Linux-v6.6/drivers/misc/
Dgehc-achc.c216 const u8 *payload, size_t payload_size) in ezport_flash_transfer() argument
222 dev_dbg(&spi->dev, "EzPort write %zu bytes @ 0x%06x...\n", payload_size, address); in ezport_flash_transfer()
241 xfers[1].len = payload_size; in ezport_flash_transfer()
252 const u8 *payload, size_t payload_size) in ezport_flash_compare() argument
258 buffer = kmalloc(payload_size + 5, GFP_KERNEL | GFP_DMA); in ezport_flash_compare()
272 xfers[1].len = payload_size + 1; in ezport_flash_compare()
280 ret = memcmp(payload, buffer + 4 + 1, payload_size); in ezport_flash_compare()
284 print_hex_dump_bytes("fw: ", DUMP_PREFIX_OFFSET, payload, payload_size); in ezport_flash_compare()
285 print_hex_dump_bytes("dev: ", DUMP_PREFIX_OFFSET, buffer + 4, payload_size); in ezport_flash_compare()
/Linux-v6.6/drivers/misc/sgi-xp/
Dxp.h289 u16 payload_size) in xpc_send() argument
295 payload_size); in xpc_send()
300 u16 payload_size, xpc_notify_func func, void *key) in xpc_send_notify() argument
306 payload_size, func, key); in xpc_send_notify()
Dxp_main.c134 xpc_connect(int ch_number, xpc_channel_func func, void *key, u16 payload_size, in xpc_connect() argument
140 DBUG_ON(payload_size == 0 || nentries == 0); in xpc_connect()
144 if (XPC_MSG_SIZE(payload_size) > XPC_MSG_MAX_SIZE) in xpc_connect()
159 registration->entry_size = XPC_MSG_SIZE(payload_size); in xpc_connect()
/Linux-v6.6/drivers/cpuidle/
Dcpuidle-pseries.c158 __be16 payload_size; member
171 u16 payload_size; in parse_cede_parameters() local
182 payload_size = be16_to_cpu(xcede_latency_parameter.payload_size); in parse_cede_parameters()
200 total_xcede_records_size = payload_size - 2; in parse_cede_parameters()
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/link/protocols/
Dlink_ddc.c95 uint32_t payload_size = EDID_SEGMENT_SIZE; in i2c_payloads_add() local
98 for (pos = 0; pos < len; pos += payload_size) { in i2c_payloads_add()
102 .length = DDC_MIN(payload_size, len - pos), in i2c_payloads_add()
324 uint32_t payload_size = in link_query_ddc_data() local
329 (write_size + payload_size - 1) / payload_size; in link_query_ddc_data()
332 (read_size + payload_size - 1) / payload_size; in link_query_ddc_data()
/Linux-v6.6/drivers/usb/gadget/function/
Duvc_video.c96 if (video->payload_size == 0) { in uvc_video_encode_bulk()
98 video->payload_size += ret; in uvc_video_encode_bulk()
104 len = min((int)(video->max_payload_size - video->payload_size), len); in uvc_video_encode_bulk()
107 video->payload_size += ret; in uvc_video_encode_bulk()
111 req->zero = video->payload_size == video->max_payload_size; in uvc_video_encode_bulk()
120 video->payload_size = 0; in uvc_video_encode_bulk()
123 if (video->payload_size == video->max_payload_size || in uvc_video_encode_bulk()
126 video->payload_size = 0; in uvc_video_encode_bulk()
521 video->payload_size = 0; in uvcg_video_enable()
/Linux-v6.6/include/linux/surface_aggregator/
Dserial_hub.h139 #define SSH_MESSAGE_LENGTH(payload_size) (SSH_MSG_LEN_BASE + (payload_size)) argument
148 #define SSH_COMMAND_MESSAGE_LENGTH(payload_size) \ argument
149 SSH_MESSAGE_LENGTH(sizeof(struct ssh_command) + (payload_size))
/Linux-v6.6/drivers/hv/
Dhv.c49 void *payload, size_t payload_size) in hv_post_message() argument
55 if (payload_size > HV_MESSAGE_PAYLOAD_BYTE_COUNT) in hv_post_message()
74 aligned_msg->payload_size = payload_size; in hv_post_message()
75 memcpy((void *)aligned_msg->payload, payload, payload_size); in hv_post_message()
/Linux-v6.6/drivers/bluetooth/
Dhci_bcm4377.c425 size_t payload_size; member
466 u16 payload_size; member
740 entry_size = sizeof(*entry) + ring->payload_size; in bcm4377_handle_completion()
871 if (len > ring->payload_size && len > ring->mapped_payload_size) { in bcm4377_enqueue()
875 len, ring->ring_id, ring->payload_size, in bcm4377_enqueue()
910 offset = head * (sizeof(*entry) + ring->payload_size); in bcm4377_enqueue()
917 if (len <= ring->payload_size) { in bcm4377_enqueue()
983 ring->payload_size)); in bcm4377_create_completion_ring()
993 msg.footer_size = ring->payload_size / 4; in bcm4377_create_completion_ring()
1047 msg.footer_size = ring->payload_size / 4; in bcm4377_create_transfer_ring()
[all …]
/Linux-v6.6/drivers/cxl/core/
Dmbox.c246 if (mbox_cmd->size_in > mds->payload_size || in cxl_internal_send_cmd()
247 mbox_cmd->size_out > mds->payload_size) in cxl_internal_send_cmd()
364 mbox->size_out = mds->payload_size; in cxl_mbox_cmd_ctor()
396 if (send_cmd->out.size > mds->payload_size) in cxl_to_mem_cmd_raw()
495 if (send_cmd->in.size > mds->payload_size) in cxl_validate_cmd_from_user()
653 u32 xfer_size = min_t(u32, remaining, mds->payload_size); in cxl_xfer_log()
746 ret = kvmalloc(mds->payload_size, GFP_KERNEL); in cxl_get_gsl()
752 .size_out = mds->payload_size, in cxl_get_gsl()
903 if (pl_size > mds->payload_size) { in cxl_clear_event_record()
904 max_handles = (mds->payload_size - sizeof(*payload)) / in cxl_clear_event_record()
[all …]
/Linux-v6.6/drivers/crypto/intel/qat/qat_common/
Dadf_pfvf_pf_msg.c32 caps_msg.hdr.payload_size = in adf_pf_capabilities_msg_provider()
47 rts_map_msg.hdr.payload_size = ADF_PFVF_BLKMSG_PAYLOAD_SIZE(rts_map_msg); in adf_pf_ring_to_svc_msg_provider()
/Linux-v6.6/drivers/greybus/
Dsvc.c648 if (op->request->payload_size < sizeof(*request)) { in gb_svc_version_request()
650 op->request->payload_size, in gb_svc_version_request()
845 if (op->request->payload_size < sizeof(*hello_request)) { in gb_svc_hello()
847 op->request->payload_size, in gb_svc_hello()
1150 if (request->payload_size < sizeof(*reset)) { in gb_svc_intf_reset_recv()
1152 request->payload_size, sizeof(*reset)); in gb_svc_intf_reset_recv()
1167 if (op->request->payload_size < sizeof(*request)) { in gb_svc_module_inserted_recv()
1169 op->request->payload_size, sizeof(*request)); in gb_svc_module_inserted_recv()
1186 if (op->request->payload_size < sizeof(*request)) { in gb_svc_module_removed_recv()
1188 op->request->payload_size, sizeof(*request)); in gb_svc_module_removed_recv()
[all …]
Doperation.c312 size_t payload_size, u8 type) in gb_operation_message_init() argument
319 message->payload = payload_size ? header + 1 : NULL; in gb_operation_message_init()
320 message->payload_size = payload_size; in gb_operation_message_init()
328 u16 message_size = (u16)(sizeof(*header) + payload_size); in gb_operation_message_init()
362 size_t payload_size, gfp_t gfp_flags) in gb_operation_message_alloc() argument
366 size_t message_size = payload_size + sizeof(*header); in gb_operation_message_alloc()
384 gb_operation_message_init(hd, message, 0, payload_size, type); in gb_operation_message_alloc()
986 message_size = sizeof(*header) + message->payload_size; in gb_connection_recv_response()
995 message->payload_size = size - sizeof(*header); in gb_connection_recv_response()
/Linux-v6.6/drivers/staging/gdm724x/
Dgdm_mux.c145 unsigned int payload_size; in up_to_host() local
157 payload_size = __le32_to_cpu(mux_header->payload_size); in up_to_host()
165 total_len = ALIGN(MUX_HEADER_SIZE + payload_size, 4); in up_to_host()
169 payload_size, len, packet_type); in up_to_host()
180 payload_size, in up_to_host()
374 mux_header->payload_size = __cpu_to_le32((u32)len); in gdm_mux_send()

123456