/openbmc/linux/sound/soc/qcom/qdsp6/ |
H A D | audioreach.c | 236 cmd_header->payload_size = payload_size; in __audioreach_alloc_pkt() 600 int rc, payload_size; in audioreach_display_port_set_media_format() local 668 int rc, payload_size; in audioreach_codec_dma_set_media_format() local 741 int rc, payload_size; in audioreach_send_u32_param() local 805 int payload_size; in audioreach_mfc_set_media_format() local 947 int rc, payload_size; in audioreach_i2s_set_media_format() local 1019 int rc, payload_size; in audioreach_logging_set_media_format() local 1057 int rc, payload_size; in audioreach_pcm_set_media_format() local 1115 int rc, payload_size; in audioreach_shmem_set_media_format() local 1144 header->payload_size = payload_size - sizeof(*header); in audioreach_shmem_set_media_format() [all …]
|
/openbmc/linux/drivers/staging/media/meson/vdec/ |
H A D | esparser.c | 190 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() 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() 297 u32 payload_size = vb2_get_plane_payload(vb, 0); in esparser_queue() local 343 payload_size = vp9_update_header(core, vb); in esparser_queue() [all …]
|
/openbmc/linux/drivers/nvmem/ |
H A 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()
|
/openbmc/linux/drivers/ps3/ |
H A 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 …]
|
/openbmc/linux/sound/soc/intel/avs/ |
H A D | messages.c | 467 size_t payload_size; in avs_ipc_get_fw_config() local 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 595 if (!payload_size) in avs_ipc_get_hw_config() 671 size_t payload_size; in avs_ipc_get_modules_info() local 681 if (!payload_size) in avs_ipc_get_modules_info() 715 size_t payload_size; in avs_ipc_peakvol_get_volume() local 725 if (!payload_size) in avs_ipc_peakvol_get_volume() 757 size_t payload_size; in avs_ipc_probe_get_dma() local [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/collectd/collectd/ |
H A D | 0006-libcollectdclient-Fix-string-overflow-errors.patch | 19 @@ -169,9 +169,9 @@ static int parse_string(void *payload, size_t payload_size, char *out, 21 static int parse_identifier(uint16_t type, void *payload, size_t payload_size, 25 - if (parse_string(payload, payload_size, buf, sizeof(buf)) != 0) 28 + if (parse_string(payload, payload_size, buf, LCC_NAME_LEN) != 0)
|
H A D | 0005-Disable-new-gcc8-warnings.patch | 22 @@ -148,6 +148,11 @@ static int parse_int(void *payload, size_t payload_size, uint64_t *out) { 31 static int parse_string(void *payload, size_t payload_size, char *out, 34 @@ -160,6 +165,8 @@ static int parse_string(void *payload, size_t payload_size, char *out, 40 static int parse_identifier(uint16_t type, void *payload, size_t payload_size,
|
/openbmc/linux/drivers/staging/greybus/ |
H A 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()
|
H A 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()
|
H A 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()
|
/openbmc/linux/drivers/gpu/drm/amd/display/modules/freesync/ |
H A D | freesync.c | 711 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() 885 unsigned int payload_size = 0; in build_vrr_infopacket_v1() local [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlxfw/ |
H A 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()
|
/openbmc/linux/drivers/media/test-drivers/vidtv/ |
H A 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()
|
/openbmc/linux/drivers/misc/ |
H A 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()
|
/openbmc/linux/drivers/misc/sgi-xp/ |
H A 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()
|
H A 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()
|
/openbmc/linux/drivers/cpuidle/ |
H A D | cpuidle-pseries.c | 158 __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()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/link/protocols/ |
H A D | link_ddc.c | 95 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()
|
/openbmc/linux/drivers/usb/gadget/function/ |
H A D | uvc_video.c | 99 if (video->payload_size == 0) { in uvc_video_encode_bulk() 101 video->payload_size += ret; in uvc_video_encode_bulk() 107 len = min((int)(video->max_payload_size - video->payload_size), len); in uvc_video_encode_bulk() 110 video->payload_size += ret; in uvc_video_encode_bulk() 114 req->zero = video->payload_size == video->max_payload_size; in uvc_video_encode_bulk() 123 video->payload_size = 0; in uvc_video_encode_bulk() 126 if (video->payload_size == video->max_payload_size || in uvc_video_encode_bulk() 129 video->payload_size = 0; in uvc_video_encode_bulk() 524 video->payload_size = 0; in uvcg_video_enable()
|
/openbmc/linux/drivers/misc/vmw_vmci/ |
H A D | vmci_datagram.c | 228 (size_t) dg->payload_size, GFP_ATOMIC); in dg_dispatch_as_host() 238 memcpy(&dg_info->msg_payload, dg + 1, dg->payload_size); in dg_dispatch_as_host() 323 if (dg->payload_size > VMCI_MAX_DG_SIZE || in vmci_datagram_dispatch() 326 (unsigned long long)dg->payload_size); in vmci_datagram_dispatch() 372 dg_info = kmalloc(sizeof(*dg_info) + (size_t)dg->payload_size, in vmci_datagram_invoke_guest_handler() 382 memcpy(&dg_info->msg_payload, dg + 1, dg->payload_size); in vmci_datagram_invoke_guest_handler()
|
/openbmc/linux/drivers/crypto/intel/qat/qat_common/ |
H A 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()
|
/openbmc/linux/include/linux/surface_aggregator/ |
H A D | serial_hub.h | 139 #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))
|
/openbmc/linux/drivers/hv/ |
H A D | hv.c | 49 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()
|
/openbmc/linux/drivers/bluetooth/ |
H A D | hci_bcm4377.c | 425 size_t payload_size; member 466 u16 payload_size; member 876 len, ring->ring_id, ring->payload_size, in bcm4377_enqueue() 918 if (len <= ring->payload_size) { in bcm4377_enqueue() 984 ring->payload_size)); in bcm4377_create_completion_ring() 994 msg.footer_size = ring->payload_size / 4; in bcm4377_create_completion_ring() 1048 msg.footer_size = ring->payload_size / 4; in bcm4377_create_transfer_ring() 1513 ring->payload_size = ALIGN(ring->payload_size, 4); in bcm4377_alloc_transfer_ring() 1526 if (ring->payload_size) in bcm4377_alloc_transfer_ring() 1567 ring->payload_size = ALIGN(ring->payload_size, 4); in bcm4377_alloc_completion_ring() [all …]
|
/openbmc/linux/drivers/cxl/core/ |
H A D | mbox.c | 246 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() 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() 975 .size_out = mds->payload_size, in cxl_mem_get_records_log() [all …]
|