/Linux-v6.1/drivers/staging/media/meson/vdec/ |
D | esparser.c | 191 u32 payload_size) in esparser_pad_start_code() argument 196 if (payload_size < ESPARSER_MIN_PACKET_SIZE) { in esparser_pad_start_code() 197 pad_size = ESPARSER_MIN_PACKET_SIZE - payload_size; in esparser_pad_start_code() 198 memset(vaddr + payload_size, 0, pad_size); in esparser_pad_start_code() 201 if ((payload_size + pad_size + SEARCH_PATTERN_LEN) > in esparser_pad_start_code() 207 memset(vaddr + payload_size + pad_size, 0, SEARCH_PATTERN_LEN); in esparser_pad_start_code() 208 vaddr[payload_size + pad_size] = 0x00; in esparser_pad_start_code() 209 vaddr[payload_size + pad_size + 1] = 0x00; in esparser_pad_start_code() 210 vaddr[payload_size + pad_size + 2] = 0x01; in esparser_pad_start_code() 211 vaddr[payload_size + pad_size + 3] = 0xff; in esparser_pad_start_code() [all …]
|
/Linux-v6.1/sound/soc/qcom/qdsp6/ |
D | audioreach.c | 197 static void *__audioreach_alloc_pkt(int payload_size, uint32_t opcode, uint32_t token, in __audioreach_alloc_pkt() argument 202 int pkt_size = GPR_HDR_SIZE + payload_size; in __audioreach_alloc_pkt() 228 cmd_header->payload_size = payload_size; in __audioreach_alloc_pkt() 234 void *audioreach_alloc_pkt(int payload_size, uint32_t opcode, uint32_t token, in audioreach_alloc_pkt() argument 237 return __audioreach_alloc_pkt(payload_size, opcode, token, src_port, dest_port, false); in audioreach_alloc_pkt() 248 void *audioreach_alloc_cmd_pkt(int payload_size, uint32_t opcode, uint32_t token, in audioreach_alloc_cmd_pkt() argument 251 return __audioreach_alloc_pkt(payload_size, opcode, token, src_port, dest_port, true); in audioreach_alloc_cmd_pkt() 467 int payload_size, sg_sz, cont_sz, ml_sz, mp_sz, mc_sz; in audioreach_alloc_graph_pkt() local 508 payload_size = sg_sz + cont_sz + ml_sz + mp_sz + mc_sz; in audioreach_alloc_graph_pkt() 509 pkt = audioreach_alloc_apm_cmd_pkt(payload_size, APM_CMD_GRAPH_OPEN, 0); in audioreach_alloc_graph_pkt() [all …]
|
D | audioreach.h | 121 uint32_t payload_size; member 223 uint32_t payload_size; member 313 uint32_t payload_size; member 514 uint32_t payload_size; member 689 void *audioreach_alloc_cmd_pkt(int payload_size, uint32_t opcode, 694 void *audioreach_alloc_pkt(int payload_size, uint32_t opcode,
|
/Linux-v6.1/drivers/nvmem/ |
D | microchip-otpc.c | 154 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.1/drivers/ps3/ |
D | ps3-sys-manager.c | 49 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.1/drivers/staging/greybus/ |
D | log.c | 31 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()
|
D | bootrom.c | 200 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()
|
D | fw-download.c | 231 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()
|
/Linux-v6.1/drivers/gpu/drm/amd/display/modules/freesync/ |
D | freesync.c | 701 unsigned int *payload_size) in build_vrr_infopacket_header_v1() argument 718 *payload_size = 0x08; in build_vrr_infopacket_header_v1() 744 *payload_size = 0x1B; in build_vrr_infopacket_header_v1() 750 unsigned int *payload_size) in build_vrr_infopacket_header_v2() argument 767 *payload_size = 0x09; in build_vrr_infopacket_header_v2() 792 *payload_size = 0x1B; in build_vrr_infopacket_header_v2() 798 unsigned int *payload_size) in build_vrr_infopacket_header_v3() argument 818 *payload_size = 0x10; in build_vrr_infopacket_header_v3() 844 *payload_size = 0x1B; in build_vrr_infopacket_header_v3() 848 static void build_vrr_infopacket_checksum(unsigned int *payload_size, in build_vrr_infopacket_checksum() argument [all …]
|
/Linux-v6.1/drivers/media/test-drivers/vidtv/ |
D | vidtv_pes.c | 330 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.1/drivers/net/ethernet/mellanox/mlxfw/ |
D | mlxfw_mfa2_tlv.h | 29 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.1/drivers/misc/ |
D | gehc-achc.c | 216 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.1/drivers/misc/sgi-xp/ |
D | xp.h | 289 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()
|
D | xp_main.c | 134 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.1/drivers/cpuidle/ |
D | cpuidle-pseries.c | 156 __be16 payload_size; member 169 u16 payload_size; in parse_cede_parameters() local 180 payload_size = be16_to_cpu(xcede_latency_parameter.payload_size); in parse_cede_parameters() 198 total_xcede_records_size = payload_size - 2; in parse_cede_parameters()
|
/Linux-v6.1/drivers/cxl/ |
D | pci.c | 199 size_t n = min3(mbox_cmd->size_out, cxlds->payload_size, out_len); in __cxl_pci_mbox_send_cmd() 254 cxlds->payload_size = in cxl_pci_setup_mailbox() 264 cxlds->payload_size = min_t(size_t, cxlds->payload_size, SZ_1M); in cxl_pci_setup_mailbox() 265 if (cxlds->payload_size < 256) { in cxl_pci_setup_mailbox() 267 cxlds->payload_size); in cxl_pci_setup_mailbox() 272 cxlds->payload_size); in cxl_pci_setup_mailbox()
|
/Linux-v6.1/drivers/usb/gadget/function/ |
D | uvc_video.c | 96 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() 492 video->payload_size = 0; in uvcg_video_enable()
|
/Linux-v6.1/sound/soc/intel/avs/ |
D | messages.c | 467 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.1/drivers/hv/ |
D | hv.c | 84 void *payload, size_t payload_size) in hv_post_message() argument 90 if (payload_size > HV_MESSAGE_PAYLOAD_BYTE_COUNT) in hv_post_message() 98 aligned_msg->payload_size = payload_size; in hv_post_message() 99 memcpy((void *)aligned_msg->payload, payload, payload_size); in hv_post_message()
|
/Linux-v6.1/include/linux/surface_aggregator/ |
D | serial_hub.h | 141 #define SSH_MESSAGE_LENGTH(payload_size) (SSH_MSG_LEN_BASE + (payload_size)) argument 150 #define SSH_COMMAND_MESSAGE_LENGTH(payload_size) \ argument 151 SSH_MESSAGE_LENGTH(sizeof(struct ssh_command) + (payload_size))
|
/Linux-v6.1/drivers/crypto/qat/qat_common/ |
D | adf_pfvf_pf_msg.c | 32 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.1/drivers/cxl/core/ |
D | mbox.c | 177 if (in_size > cxlds->payload_size || out_size > cxlds->payload_size) in cxl_mbox_send_cmd() 281 mbox->size_out = cxlds->payload_size; in cxl_mbox_cmd_ctor() 313 if (send_cmd->out.size > cxlds->payload_size) in cxl_to_mem_cmd_raw() 412 if (send_cmd->in.size > cxlds->payload_size) in cxl_validate_cmd_from_user() 563 u32 xfer_size = min_t(u32, remaining, cxlds->payload_size); in cxl_xfer_log() 620 ret = kvmalloc(cxlds->payload_size, GFP_KERNEL); in cxl_get_gsl() 625 cxlds->payload_size); in cxl_get_gsl()
|
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/core/ |
D | dc_link_ddc.c | 167 uint32_t payload_size = EDID_SEGMENT_SIZE; in dal_ddc_i2c_payloads_add() local 170 for (pos = 0; pos < len; pos += payload_size) { in dal_ddc_i2c_payloads_add() 174 .length = DDC_MIN(payload_size, len - pos), in dal_ddc_i2c_payloads_add() 531 uint32_t payload_size = in dal_ddc_service_query_ddc_data() local 536 (write_size + payload_size - 1) / payload_size; in dal_ddc_service_query_ddc_data() 539 (read_size + payload_size - 1) / payload_size; in dal_ddc_service_query_ddc_data()
|
/Linux-v6.1/drivers/greybus/ |
D | svc.c | 647 if (op->request->payload_size < sizeof(*request)) { in gb_svc_version_request() 649 op->request->payload_size, in gb_svc_version_request() 844 if (op->request->payload_size < sizeof(*hello_request)) { in gb_svc_hello() 846 op->request->payload_size, in gb_svc_hello() 1149 if (request->payload_size < sizeof(*reset)) { in gb_svc_intf_reset_recv() 1151 request->payload_size, sizeof(*reset)); in gb_svc_intf_reset_recv() 1166 if (op->request->payload_size < sizeof(*request)) { in gb_svc_module_inserted_recv() 1168 op->request->payload_size, sizeof(*request)); in gb_svc_module_inserted_recv() 1185 if (op->request->payload_size < sizeof(*request)) { in gb_svc_module_removed_recv() 1187 op->request->payload_size, sizeof(*request)); in gb_svc_module_removed_recv() [all …]
|
D | operation.c | 312 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()
|