/openbmc/libcper/generator/sections/ |
H A D | gen-section-arm.c | 73 UINT8 *cur_pos = section + 40; in generate_section_arm() local 75 memcpy(cur_pos, error_structures[i], ARM_ERROR_INFO_SIZE); in generate_section_arm() 77 cur_pos += ARM_ERROR_INFO_SIZE; in generate_section_arm() 80 memcpy(cur_pos, context_structures[i], in generate_section_arm() 83 cur_pos += context_structure_lengths[i]; in generate_section_arm() 90 *cur_pos = cper_rand() % 127 + 1; in generate_section_arm() 91 cur_pos += 1; in generate_section_arm()
|
H A D | gen-section-ia32x64.c | 65 UINT8 *cur_pos = section + 64; in generate_section_ia32x64() local 67 memcpy(cur_pos, error_structures[i], in generate_section_ia32x64() 70 cur_pos += IA32X64_ERROR_STRUCTURE_SIZE; in generate_section_ia32x64() 73 memcpy(cur_pos, context_structures[i], in generate_section_ia32x64() 76 cur_pos += context_structure_lengths[i]; in generate_section_ia32x64()
|
/openbmc/libcper/sections/ |
H A D | cper-section-arm.c | 22 const UINT8 **cur_pos, UINT32 *remaining_size); 50 const UINT8 *cur_pos = section; in cper_section_arm_to_ir() 56 EFI_ARM_ERROR_RECORD *record = (EFI_ARM_ERROR_RECORD *)cur_pos; in cper_section_arm_to_ir() 57 cur_pos += sizeof(EFI_ARM_ERROR_RECORD); in cper_section_arm_to_ir() 137 cur_pos += (UINT32)(record->ErrInfoNum * in cper_section_arm_to_ir() 157 (EFI_ARM_CONTEXT_INFORMATION_HEADER *)cur_pos; in cper_section_arm_to_ir() 159 cur_pos += sizeof(EFI_ARM_CONTEXT_INFORMATION_HEADER); in cper_section_arm_to_ir() 162 cper_arm_processor_context_to_ir(header, &cur_pos, 177 if (cur_pos < (uint8_t *)section + record->SectionLength) { in cper_arm_error_info_to_ir() 180 record->SectionLength - cur_pos; in cper_arm_error_info_to_ir() 123 uint8_t *cur_pos = (uint8_t *)cur_error; cper_section_arm_to_ir() local 453 cper_arm_processor_context_to_ir(EFI_ARM_CONTEXT_INFORMATION_HEADER * header,void ** cur_pos) cper_arm_processor_context_to_ir() argument [all...] |
H A D | cper-section-pci-dev.c | 92 UINT64 *cur_pos = (UINT64 *)(dev_error + 1); in cper_section_pci_dev_to_ir() 99 json_object_new_uint64(*cur_pos)); in cper_section_pci_dev_to_ir() 102 json_object_new_uint64(*(cur_pos + 1))); in cper_section_pci_dev_to_ir() 107 cur_pos += 2; in ir_section_pci_dev_to_cper() 80 UINT64 *cur_pos = (UINT64 *)(dev_error + 1); cper_section_pci_dev_to_ir() local
|
H A D | cper-section-cxl-protocol.c | 151 const UINT8 *cur_pos = (const UINT8 *)(cxl_protocol_error + 1); in cper_section_cxl_protocol_to_ir() 164 encoded = base64_encode(cur_pos, in cper_section_cxl_protocol_to_ir() 178 cur_pos += cxl_protocol_error->CxlDvsecLength; in cper_section_cxl_protocol_to_ir() 190 encoded = base64_encode((UINT8 *)cur_pos, in cper_section_cxl_protocol_to_ir() 137 const char *cur_pos = (const char *)(cxl_protocol_error + 1); cper_section_cxl_protocol_to_ir() local
|
H A D | cper-section-ccix-per.c | 52 const UINT8 *cur_pos = (const UINT8 *)(ccix_error + 1); in cper_section_ccix_per_to_ir() 58 char *encoded = base64_encode((UINT8 *)cur_pos, in cper_section_ccix_per_to_ir() 42 const char *cur_pos = (const char *)(ccix_error + 1); cper_section_ccix_per_to_ir() local
|
H A D | cper-section-ia32x64.c | 25 EFI_IA32_X64_PROCESSOR_CONTEXT_INFO *context_info, void **cur_pos, 130 void *cur_pos = (void *)current_context_info; in cper_ia32x64_processor_error_info_to_ir() 135 current_context_info, &cur_pos, in cper_ia32x64_processor_error_info_to_ir() 138 (EFI_IA32_X64_PROCESSOR_CONTEXT_INFO *)cur_pos; in cper_ia32x64_processor_error_info_to_ir() 466 EFI_IA32_X64_PROCESSOR_CONTEXT_INFO *context_info, void **cur_pos, in cper_ia32x64_processor_context_info_to_ir() 504 *cur_pos = (void *)(register_state + 1); in cper_ia32x64_register_32bit_to_ir() 515 *cur_pos = (void *)(register_state + 1); in cper_ia32x64_register_32bit_to_ir() 519 *cur_pos = (void *)(context_info + 1); in cper_ia32x64_register_32bit_to_ir() 525 char *encoded = base64_encode((UINT8 *)*cur_pos, in cper_ia32x64_register_32bit_to_ir() 539 *cur_pos in cper_ia32x64_register_32bit_to_ir() 104 void *cur_pos = (void *)current_context_info; cper_section_ia32x64_to_ir() local 427 cper_ia32x64_processor_context_info_to_ir(EFI_IA32_X64_PROCESSOR_CONTEXT_INFO * context_info,void ** cur_pos) cper_ia32x64_processor_context_info_to_ir() argument [all...] |
H A D | cper-section-cxl-component.c | 77 const UINT8 *cur_pos = (const UINT8 *)(cxl_error + 1); in cper_section_cxl_component_to_ir() 83 char *encoded = base64_encode(cur_pos, remaining_len, in cper_section_cxl_component_to_ir() 66 const char *cur_pos = (const char *)(cxl_error + 1); cper_section_cxl_component_to_ir() local
|
/openbmc/linux/drivers/hid/intel-ish-hid/ |
H A D | ishtp-hid-client.c | 38 size_t cur_pos, size_t payload_len) in report_bad_packet() argument 50 (unsigned int)cur_pos, in report_bad_packet() 73 size_t payload_len, total_len, cur_pos, raw_len; in process_recv() local 85 cur_pos = 0; in process_recv() 88 if (cur_pos + sizeof(struct hostif_msg) > total_len) { in process_recv() 98 recv_msg = (struct hostif_msg *)(recv_buf + cur_pos); in process_recv() 102 if (cur_pos + payload_len + sizeof(struct hostif_msg) > in process_recv() 105 report_bad_packet(hid_ishtp_cl, recv_msg, cur_pos, in process_recv() 120 cur_pos, in process_recv() 169 cur_pos, in process_recv() [all …]
|
/openbmc/linux/drivers/s390/block/ |
H A D | dasd_fba.c | 276 int cur_pos = 0; in count_ccws() local 284 cur_pos = wz_stop - first_rec + 1; in count_ccws() 288 if (last_rec - (first_rec + cur_pos) + 1 >= blocks_per_page) { in count_ccws() 295 cur_pos += d_stop - (first_rec + cur_pos) + 1; in count_ccws() 299 if (cur_pos == 0 || first_rec + cur_pos - 1 < last_rec) in count_ccws() 332 int cur_pos = 0; /* Current position within the extent */ in dasd_fba_build_cp_discard() local 370 locate_record(ccw++, LO_data++, WRITE, cur_pos, wz_count); in dasd_fba_build_cp_discard() 375 cur_pos = wz_count; in dasd_fba_build_cp_discard() 379 if (last_rec - (first_rec + cur_pos) + 1 >= blocks_per_page) { in dasd_fba_build_cp_discard() 387 d_count = d_stop - (first_rec + cur_pos) + 1; in dasd_fba_build_cp_discard() [all …]
|
/openbmc/linux/drivers/media/pci/b2c2/ |
H A D | flexcop-pci.c | 187 u32 cur_pos = cur_addr - fc_pci->dma[0].dma_addr0; in flexcop_pci_isr() local 188 if (cur_pos > fc_pci->dma[0].size * 2) in flexcop_pci_isr() 193 v.raw, (unsigned long long)cur_addr, cur_pos, in flexcop_pci_isr() 200 if (cur_pos < fc_pci->last_dma1_cur_pos) { in flexcop_pci_isr() 212 if (cur_pos > fc_pci->last_dma1_cur_pos) { in flexcop_pci_isr() 214 cur_pos - fc_pci->last_dma1_cur_pos); in flexcop_pci_isr() 218 cur_pos - fc_pci->last_dma1_cur_pos); in flexcop_pci_isr() 222 fc_pci->last_dma1_cur_pos = cur_pos; in flexcop_pci_isr()
|
/openbmc/linux/kernel/bpf/ |
H A D | log.c | 60 u64 cur_pos; in bpf_verifier_vlog() local 83 cur_pos = log->end_pos; in bpf_verifier_vlog() 87 copy_to_user(log->ubuf + cur_pos, log->kbuf, new_n)) in bpf_verifier_vlog() 106 cur_pos = new_end - new_n; in bpf_verifier_vlog() 107 div_u64_rem(cur_pos, log->len_total, &buf_start); in bpf_verifier_vlog()
|
/openbmc/u-boot/fs/fat/ |
H A D | fat_write.c | 702 u64 cur_pos, filesize; in set_contents() local 730 cur_pos = bytesperclust; in set_contents() 732 if (pos <= cur_pos) in set_contents() 745 cur_pos += bytesperclust; in set_contents() 749 assert(pos == cur_pos); in set_contents() 753 assert(pos < cur_pos); in set_contents() 754 cur_pos -= bytesperclust; in set_contents() 765 if (filesize <= (cur_pos + actsize)) in set_contents() 783 if (pos < cur_pos) in set_contents() 786 offset = pos - cur_pos; in set_contents() [all …]
|
/openbmc/linux/drivers/usb/serial/ |
H A D | kobil_sct.c | 109 int cur_pos; /* index of the next char to send in buf */ member 124 priv->cur_pos = 0; in kobil_port_probe() 327 todo = priv->filled - priv->cur_pos; in kobil_write() 334 priv->buf + priv->cur_pos, length); in kobil_write() 337 priv->cur_pos = priv->cur_pos + length; in kobil_write() 341 todo = priv->filled - priv->cur_pos; in kobil_write() 348 priv->cur_pos = 0; in kobil_write()
|
/openbmc/linux/tools/perf/util/ |
H A D | genelf_debug.c | 41 size_t cur_pos; member 51 for (i = 0 ; i < be->cur_pos; i++) in buffer_ext_dump() 62 if ((be->cur_pos + sz) < be_sz) { in buffer_ext_add() 63 memcpy(be->data + be->cur_pos, addr, sz); in buffer_ext_add() 64 be->cur_pos += sz; in buffer_ext_add() 87 be->cur_pos = 0; in buffer_ext_init() 100 return be->cur_pos; in buffer_ext_size()
|
/openbmc/linux/drivers/spi/ |
H A D | spi-tegra114.c | 179 unsigned cur_pos; member 261 unsigned remain_len = t->len - tspi->cur_pos; in tegra_spi_calculate_curr_xfer_param() 325 if (nbytes > t->len - tspi->cur_pos) in tegra_spi_fill_tx_fifo_from_client_txbuf() 326 nbytes = t->len - tspi->cur_pos; in tegra_spi_fill_tx_fifo_from_client_txbuf() 371 if (len > t->len - tspi->cur_pos) in tegra_spi_read_rx_fifo_to_client_rxbuf() 372 len = t->len - tspi->cur_pos; in tegra_spi_read_rx_fifo_to_client_rxbuf() 397 memcpy(tspi->tx_dma_buf, t->tx_buf + tspi->cur_pos, len); in tegra_spi_copy_client_txbuf_to_spi_txbuf() 406 if (consume > t->len - tspi->cur_pos) in tegra_spi_copy_client_txbuf_to_spi_txbuf() 407 consume = t->len - tspi->cur_pos; in tegra_spi_copy_client_txbuf_to_spi_txbuf() 446 if (consume > t->len - tspi->cur_pos) in tegra_spi_copy_spi_rxbuf_to_client_rxbuf() [all …]
|
H A D | spi-tegra210-quad.c | 188 unsigned int cur_pos; member 271 unsigned int remain_len = t->len - tqspi->cur_pos; in tegra_qspi_calculate_curr_xfer_param() 338 if (len > t->len - tqspi->cur_pos) in tegra_qspi_fill_tx_fifo_from_client_txbuf() 339 len = t->len - tqspi->cur_pos; in tegra_qspi_fill_tx_fifo_from_client_txbuf() 382 if (len > t->len - tqspi->cur_pos) in tegra_qspi_read_rx_fifo_to_client_rxbuf() 383 len = t->len - tqspi->cur_pos; in tegra_qspi_read_rx_fifo_to_client_rxbuf() 424 if (consume > t->len - tqspi->cur_pos) in tegra_qspi_copy_client_txbuf_to_qspi_txbuf() 425 consume = t->len - tqspi->cur_pos; in tegra_qspi_copy_client_txbuf_to_qspi_txbuf() 461 if (consume > t->len - tqspi->cur_pos) in tegra_qspi_copy_qspi_rxbuf_to_client_rxbuf() 462 consume = t->len - tqspi->cur_pos; in tegra_qspi_copy_qspi_rxbuf_to_client_rxbuf() [all …]
|
H A D | spi-tegra20-sflash.c | 115 unsigned cur_pos; member 161 unsigned remain_len = t->len - tsd->cur_pos; in tegra_sflash_calculate_curr_xfer_param() 265 tsd->cur_pos = 0; in tegra_sflash_start_transfer_one() 380 tsd->cur_pos = tsd->cur_tx_pos; in handle_cpu_based_xfer() 382 tsd->cur_pos = tsd->cur_rx_pos; in handle_cpu_based_xfer() 384 if (tsd->cur_pos == t->len) { in handle_cpu_based_xfer()
|
H A D | spi-tegra20-slink.c | 167 unsigned cur_pos; member 257 unsigned remain_len = t->len - tspi->cur_pos; in tegra_slink_calculate_curr_xfer_param() 372 memcpy(tspi->tx_dma_buf, t->tx_buf + tspi->cur_pos, len); in tegra_slink_copy_client_txbuf_to_spi_txbuf() 690 tspi->cur_pos = 0; in tegra_slink_start_transfer_one() 863 tspi->cur_pos = tspi->cur_tx_pos; in handle_cpu_based_xfer() 865 tspi->cur_pos = tspi->cur_rx_pos; in handle_cpu_based_xfer() 867 if (tspi->cur_pos == t->len) { in handle_cpu_based_xfer() 937 tspi->cur_pos = tspi->cur_tx_pos; in handle_dma_based_xfer() 939 tspi->cur_pos = tspi->cur_rx_pos; in handle_dma_based_xfer() 941 if (tspi->cur_pos == t->len) { in handle_dma_based_xfer()
|
/openbmc/qemu/block/ |
H A D | qed.c | 1012 index = qed_l1_index(s, acb->cur_pos); in qed_aio_write_l1_update() 1047 index = qed_l2_index(s, acb->cur_pos); in qed_aio_write_l2_update() 1078 qed_offset_into_cluster(s, acb->cur_pos); in qed_aio_write_main() 1101 start = qed_start_of_cluster(s, acb->cur_pos); in qed_aio_write_cow() 1102 len = qed_offset_into_cluster(s, acb->cur_pos); in qed_aio_write_cow() 1111 start = acb->cur_pos + acb->cur_qiov.size; in qed_aio_write_cow() 1114 qed_offset_into_cluster(s, acb->cur_pos) + in qed_aio_write_cow() 1192 qed_offset_into_cluster(s, acb->cur_pos) + len); in qed_aio_write_alloc() 1321 offset += qed_offset_into_cluster(s, acb->cur_pos); in qed_aio_read_data() 1334 r = qed_read_backing_file(s, acb->cur_pos, in qed_aio_read_data() [all...] |
H A D | qed.h | 143 uint64_t cur_pos; /* position on block device, in bytes */ member
|
/openbmc/linux/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_cmdbuf.c | 122 size_t cur_pos; member 670 if (man->cur_pos == 0) { in __vmw_cmdbuf_cur_flush() 675 man->cur->cb_header->length = man->cur_pos; in __vmw_cmdbuf_cur_flush() 680 man->cur_pos = 0; in __vmw_cmdbuf_cur_flush() 1010 if (cur && (size + man->cur_pos > cur->size || in vmw_cmdbuf_reserve_cur() 1034 return (void *) (man->cur->cmd + man->cur_pos); in vmw_cmdbuf_reserve_cur() 1052 man->cur_pos += size; in vmw_cmdbuf_commit_cur() 1113 man->cur_pos = size; in vmw_cmdbuf_commit()
|
/openbmc/linux/fs/f2fs/ |
H A D | segment.h | 773 int cur_pos = 0, next_pos; in check_block_count() local 781 cur_pos); in check_block_count() 782 valid_blocks += next_pos - cur_pos; in check_block_count() 786 cur_pos); in check_block_count() 787 cur_pos = next_pos; in check_block_count() 789 } while (cur_pos < usable_blks_per_seg); in check_block_count()
|
/openbmc/linux/fs/reiserfs/ |
H A D | dir.c | 144 loff_t cur_pos = deh_offset(deh); in reiserfs_readdir_inode() local 224 next_pos = cur_pos + 1; in reiserfs_readdir_inode()
|
/openbmc/linux/include/xen/interface/io/ |
H A D | sndif.h | 1026 struct xensnd_cur_pos_evt cur_pos; member
|