/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 …]
|
/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 …]
|
/drivers/gpu/drm/amd/display/modules/freesync/ |
D | freesync.c | 658 unsigned int *payload_size) in build_vrr_infopacket_header_v1() argument 675 *payload_size = 0x08; in build_vrr_infopacket_header_v1() 701 *payload_size = 0x1B; in build_vrr_infopacket_header_v1() 707 unsigned int *payload_size) in build_vrr_infopacket_header_v2() argument 724 *payload_size = 0x09; in build_vrr_infopacket_header_v2() 749 *payload_size = 0x1B; in build_vrr_infopacket_header_v2() 755 unsigned int *payload_size) in build_vrr_infopacket_header_v3() argument 775 *payload_size = 0x10; in build_vrr_infopacket_header_v3() 801 *payload_size = 0x1B; in build_vrr_infopacket_header_v3() 805 static void build_vrr_infopacket_checksum(unsigned int *payload_size, in build_vrr_infopacket_checksum() argument [all …]
|
/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()
|
/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()
|
D | raw.c | 103 if (op->request->payload_size < sizeof(*receive)) { in gb_raw_request_handler() 105 op->request->payload_size, sizeof(*receive)); in gb_raw_request_handler() 110 if (len != (int)(op->request->payload_size - sizeof(__le32))) { in gb_raw_request_handler() 112 (int)(op->request->payload_size - sizeof(__le32))); in gb_raw_request_handler()
|
D | uart.c | 84 if (request->payload_size < sizeof(*receive_data)) { in gb_uart_receive_data_handler() 87 request->payload_size, sizeof(*receive_data)); in gb_uart_receive_data_handler() 94 if (recv_data_size != request->payload_size - sizeof(*receive_data)) { in gb_uart_receive_data_handler() 98 request->payload_size - sizeof(*receive_data)); in gb_uart_receive_data_handler() 136 if (request->payload_size < sizeof(*serial_state)) { in gb_uart_serial_state_handler() 139 request->payload_size, sizeof(*serial_state)); in gb_uart_serial_state_handler() 159 if (request->payload_size < sizeof(*credit_request)) { in gb_uart_receive_credits_handler() 162 request->payload_size, in gb_uart_receive_credits_handler()
|
/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()
|
/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()
|
/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()
|
/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()
|
/drivers/hv/ |
D | hv.c | 83 void *payload, size_t payload_size) in hv_post_message() argument 89 if (payload_size > HV_MESSAGE_PAYLOAD_BYTE_COUNT) in hv_post_message() 97 aligned_msg->payload_size = payload_size; in hv_post_message() 98 memcpy((void *)aligned_msg->payload, payload, payload_size); in hv_post_message()
|
/drivers/gpu/drm/amd/display/dc/core/ |
D | dc_link_ddc.c | 170 uint32_t payload_size = EDID_SEGMENT_SIZE; in dal_ddc_i2c_payloads_add() local 173 for (pos = 0; pos < len; pos += payload_size) { in dal_ddc_i2c_payloads_add() 177 .length = DDC_MIN(payload_size, len - pos), in dal_ddc_i2c_payloads_add() 528 uint32_t payload_size = in dal_ddc_service_query_ddc_data() local 533 (write_size + payload_size - 1) / payload_size; in dal_ddc_service_query_ddc_data() 536 (read_size + payload_size - 1) / payload_size; in dal_ddc_service_query_ddc_data()
|
/drivers/cxl/ |
D | pci.c | 382 size_t n = min3(mbox_cmd->size_out, cxlm->payload_size, out_len); in __cxl_mem_mbox_send_cmd() 627 if (send_cmd->in.size > cxlm->payload_size) in cxl_validate_cmd_from_user() 653 if (send_cmd->out.size > cxlm->payload_size) in cxl_validate_cmd_from_user() 754 c.info.size_out = cxlm->payload_size; in cxl_send_cmd() 886 if (out_size > cxlm->payload_size) in cxl_mem_mbox_send_cmd() 916 cxlm->payload_size = in cxl_mem_setup_mailbox() 926 cxlm->payload_size = min_t(size_t, cxlm->payload_size, SZ_1M); in cxl_mem_setup_mailbox() 927 if (cxlm->payload_size < 256) { in cxl_mem_setup_mailbox() 929 cxlm->payload_size); in cxl_mem_setup_mailbox() 934 cxlm->payload_size); in cxl_mem_setup_mailbox() [all …]
|
/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() 751 video->payload_size = 0; in uvcg_video_enable()
|
/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() 1145 if (request->payload_size < sizeof(*reset)) { in gb_svc_intf_reset_recv() 1147 request->payload_size, sizeof(*reset)); in gb_svc_intf_reset_recv() 1162 if (op->request->payload_size < sizeof(*request)) { in gb_svc_module_inserted_recv() 1164 op->request->payload_size, sizeof(*request)); in gb_svc_module_inserted_recv() 1181 if (op->request->payload_size < sizeof(*request)) { in gb_svc_module_removed_recv() 1183 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()
|
/drivers/gpu/drm/i915/display/ |
D | intel_dmc.c | 422 unsigned int header_len_bytes, dmc_header_size, payload_size, i; in parse_dmc_fw_header() local 501 payload_size = dmc_header->fw_size * 4; in parse_dmc_fw_header() 502 if (rem_size < payload_size) in parse_dmc_fw_header() 505 if (payload_size > dmc->max_fw_size) { in parse_dmc_fw_header() 506 drm_err(&i915->drm, "DMC FW too big (%u bytes)\n", payload_size); in parse_dmc_fw_header() 511 dmc_info->payload = kmalloc(payload_size, GFP_KERNEL); in parse_dmc_fw_header() 516 memcpy(dmc_info->payload, payload, payload_size); in parse_dmc_fw_header() 518 return header_len_bytes + payload_size; in parse_dmc_fw_header()
|
/drivers/staging/gdm724x/ |
D | gdm_mux.c | 145 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()
|
/drivers/misc/vmw_vmci/ |
D | vmci_datagram.c | 228 (size_t) dg->payload_size, GFP_ATOMIC); in dg_dispatch_as_host() 322 if (dg->payload_size > VMCI_MAX_DG_SIZE || in vmci_datagram_dispatch() 325 (unsigned long long)dg->payload_size); in vmci_datagram_dispatch() 371 dg_info = kmalloc(sizeof(*dg_info) + (size_t)dg->payload_size, in vmci_datagram_invoke_guest_handler()
|
D | vmci_doorbell.c | 236 link_msg.hdr.payload_size = sizeof(link_msg) - VMCI_DG_HEADERSIZE; in dbell_link() 254 unlink_msg.hdr.payload_size = sizeof(unlink_msg) - VMCI_DG_HEADERSIZE; in dbell_unlink() 271 notify_msg.hdr.payload_size = sizeof(notify_msg) - VMCI_DG_HEADERSIZE; in dbell_notify_as_guest() 334 bitmap_set_msg.hdr.payload_size = sizeof(bitmap_set_msg) - in vmci_dbell_register_notification_bitmap()
|
D | vmci_event.c | 107 if (msg->payload_size < sizeof(u32) || in vmci_event_dispatch() 108 msg->payload_size > sizeof(struct vmci_event_data_max)) in vmci_event_dispatch()
|