| /Linux-v5.15/drivers/hid/intel-ish-hid/ |
| D | ishtp-hid-client.c | 35 size_t cur_pos, size_t payload_len) in report_bad_packet() argument 47 (unsigned int)cur_pos, in report_bad_packet() 70 size_t payload_len, total_len, cur_pos, raw_len; in process_recv() local 82 cur_pos = 0; in process_recv() 85 if (cur_pos + sizeof(struct hostif_msg) > total_len) { in process_recv() 95 recv_msg = (struct hostif_msg *)(recv_buf + cur_pos); in process_recv() 99 if (cur_pos + payload_len + sizeof(struct hostif_msg) > in process_recv() 102 report_bad_packet(hid_ishtp_cl, recv_msg, cur_pos, in process_recv() 117 cur_pos, in process_recv() 166 cur_pos, in process_recv() [all …]
|
| /Linux-v5.15/drivers/s390/block/ |
| 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 …]
|
| D | dasd_eckd.c | 3667 int cur_pos = 0; in count_exts() local 3679 cur_pos = tmp - from + 1; in count_exts() 3683 if (to - (from + cur_pos) + 1 >= trks_per_ext) { in count_exts() 3685 count += (tmp - (from + cur_pos) + 1) / trks_per_ext; in count_exts() 3686 cur_pos = tmp; in count_exts() 3689 if (cur_pos < to) in count_exts() 3825 int cur_pos; in dasd_eckd_release_space_trks() local 3836 cur_pos = from; in dasd_eckd_release_space_trks() 3840 while (cur_pos < to) { in dasd_eckd_release_space_trks() 3841 stop = cur_pos + step - in dasd_eckd_release_space_trks() [all …]
|
| /Linux-v5.15/drivers/media/pci/b2c2/ |
| D | flexcop-pci.c | 187 u32 cur_pos = cur_addr - fc_pci->dma[0].dma_addr0; in flexcop_pci_isr() local 191 v.raw, (unsigned long long)cur_addr, cur_pos, in flexcop_pci_isr() 198 if (cur_pos < fc_pci->last_dma1_cur_pos) { in flexcop_pci_isr() 210 if (cur_pos > fc_pci->last_dma1_cur_pos) { in flexcop_pci_isr() 212 cur_pos - fc_pci->last_dma1_cur_pos); in flexcop_pci_isr() 216 cur_pos - fc_pci->last_dma1_cur_pos); in flexcop_pci_isr() 220 fc_pci->last_dma1_cur_pos = cur_pos; in flexcop_pci_isr()
|
| /Linux-v5.15/drivers/usb/serial/ |
| D | kobil_sct.c | 108 int cur_pos; /* index of the next char to send in buf */ member 123 priv->cur_pos = 0; in kobil_port_probe() 326 todo = priv->filled - priv->cur_pos; in kobil_write() 333 priv->buf + priv->cur_pos, length); in kobil_write() 336 priv->cur_pos = priv->cur_pos + length; in kobil_write() 340 todo = priv->filled - priv->cur_pos; in kobil_write() 347 priv->cur_pos = 0; in kobil_write()
|
| /Linux-v5.15/tools/perf/util/ |
| D | genelf_debug.c | 40 size_t cur_pos; member 50 for (i = 0 ; i < be->cur_pos; i++) in buffer_ext_dump() 61 if ((be->cur_pos + sz) < be_sz) { in buffer_ext_add() 62 memcpy(be->data + be->cur_pos, addr, sz); in buffer_ext_add() 63 be->cur_pos += sz; in buffer_ext_add() 86 be->cur_pos = 0; in buffer_ext_init() 93 return be->cur_pos; in buffer_ext_size()
|
| /Linux-v5.15/drivers/spi/ |
| D | spi-tegra210-quad.c | 146 unsigned int cur_pos; member 228 unsigned int remain_len = t->len - tqspi->cur_pos; in tegra_qspi_calculate_curr_xfer_param() 295 if (len > t->len - tqspi->cur_pos) in tegra_qspi_fill_tx_fifo_from_client_txbuf() 296 len = t->len - tqspi->cur_pos; in tegra_qspi_fill_tx_fifo_from_client_txbuf() 339 if (len > t->len - tqspi->cur_pos) in tegra_qspi_read_rx_fifo_to_client_rxbuf() 340 len = t->len - tqspi->cur_pos; in tegra_qspi_read_rx_fifo_to_client_rxbuf() 381 if (consume > t->len - tqspi->cur_pos) in tegra_qspi_copy_client_txbuf_to_qspi_txbuf() 382 consume = t->len - tqspi->cur_pos; in tegra_qspi_copy_client_txbuf_to_qspi_txbuf() 418 if (consume > t->len - tqspi->cur_pos) in tegra_qspi_copy_qspi_rxbuf_to_client_rxbuf() 419 consume = t->len - tqspi->cur_pos; in tegra_qspi_copy_qspi_rxbuf_to_client_rxbuf() [all …]
|
| D | spi-tegra114.c | 180 unsigned cur_pos; member 262 unsigned remain_len = t->len - tspi->cur_pos; in tegra_spi_calculate_curr_xfer_param() 326 if (nbytes > t->len - tspi->cur_pos) in tegra_spi_fill_tx_fifo_from_client_txbuf() 327 nbytes = t->len - tspi->cur_pos; in tegra_spi_fill_tx_fifo_from_client_txbuf() 372 if (len > t->len - tspi->cur_pos) in tegra_spi_read_rx_fifo_to_client_rxbuf() 373 len = t->len - tspi->cur_pos; in tegra_spi_read_rx_fifo_to_client_rxbuf() 398 memcpy(tspi->tx_dma_buf, t->tx_buf + tspi->cur_pos, len); in tegra_spi_copy_client_txbuf_to_spi_txbuf() 407 if (consume > t->len - tspi->cur_pos) in tegra_spi_copy_client_txbuf_to_spi_txbuf() 408 consume = t->len - tspi->cur_pos; in tegra_spi_copy_client_txbuf_to_spi_txbuf() 447 if (consume > t->len - tspi->cur_pos) in tegra_spi_copy_spi_rxbuf_to_client_rxbuf() [all …]
|
| 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()
|
| D | spi-tegra20-slink.c | 165 unsigned cur_pos; member 255 unsigned remain_len = t->len - tspi->cur_pos; in tegra_slink_calculate_curr_xfer_param() 370 memcpy(tspi->tx_dma_buf, t->tx_buf + tspi->cur_pos, len); in tegra_slink_copy_client_txbuf_to_spi_txbuf() 688 tspi->cur_pos = 0; in tegra_slink_start_transfer_one() 862 tspi->cur_pos = tspi->cur_tx_pos; in handle_cpu_based_xfer() 864 tspi->cur_pos = tspi->cur_rx_pos; in handle_cpu_based_xfer() 866 if (tspi->cur_pos == t->len) { in handle_cpu_based_xfer() 936 tspi->cur_pos = tspi->cur_tx_pos; in handle_dma_based_xfer() 938 tspi->cur_pos = tspi->cur_rx_pos; in handle_dma_based_xfer() 940 if (tspi->cur_pos == t->len) { in handle_dma_based_xfer()
|
| /Linux-v5.15/drivers/gpu/drm/vmwgfx/ |
| D | vmwgfx_cmdbuf.c | 123 size_t cur_pos; member 671 if (man->cur_pos == 0) { in __vmw_cmdbuf_cur_flush() 676 man->cur->cb_header->length = man->cur_pos; in __vmw_cmdbuf_cur_flush() 681 man->cur_pos = 0; in __vmw_cmdbuf_cur_flush() 1011 if (cur && (size + man->cur_pos > cur->size || in vmw_cmdbuf_reserve_cur() 1035 return (void *) (man->cur->cmd + man->cur_pos); in vmw_cmdbuf_reserve_cur() 1053 man->cur_pos += size; in vmw_cmdbuf_commit_cur() 1114 man->cur_pos = size; in vmw_cmdbuf_commit()
|
| /Linux-v5.15/fs/f2fs/ |
| D | segment.h | 714 int cur_pos = 0, next_pos; in check_block_count() local 722 cur_pos); in check_block_count() 723 valid_blocks += next_pos - cur_pos; in check_block_count() 727 cur_pos); in check_block_count() 728 cur_pos = next_pos; in check_block_count() 730 } while (cur_pos < usable_blks_per_seg); in check_block_count()
|
| D | segment.c | 2083 unsigned int cur_pos = 0, next_pos, len, total_len = 0; in f2fs_clear_prefree_segments() local 2089 sbi->blocks_per_seg, cur_pos); in f2fs_clear_prefree_segments() 2090 len = next_pos - cur_pos; in f2fs_clear_prefree_segments() 2096 f2fs_issue_discard(sbi, entry->start_blkaddr + cur_pos, in f2fs_clear_prefree_segments() 2101 sbi->blocks_per_seg, cur_pos); in f2fs_clear_prefree_segments() 2104 cur_pos = next_pos; in f2fs_clear_prefree_segments() 2107 if (cur_pos < sbi->blocks_per_seg) in f2fs_clear_prefree_segments()
|
| /Linux-v5.15/fs/reiserfs/ |
| 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()
|
| /Linux-v5.15/include/xen/interface/io/ |
| D | sndif.h | 1043 struct xensnd_cur_pos_evt cur_pos; member
|
| /Linux-v5.15/kernel/ |
| D | relay.c | 1156 unsigned int cur_pos = read_start + total_len; in subbuf_splice_actor() local 1167 this_end = cur_pos + this_len; in subbuf_splice_actor() 1169 this_len = nonpad_end - cur_pos; in subbuf_splice_actor()
|
| /Linux-v5.15/sound/xen/ |
| D | xen_snd_front_evtchnl.c | 119 event->op.cur_pos.position); in evtchnl_interrupt_evt()
|
| /Linux-v5.15/fs/ntfs3/ |
| D | fslog.c | 1623 u16 cur_pos, best_page_pos; in last_log_lsn() local 2098 cur_pos = 2; in last_log_lsn() 2121 if (le16_to_cpu(tst_page->page_pos) == cur_pos && in last_log_lsn() 2141 cur_pos += 1; in last_log_lsn()
|
| /Linux-v5.15/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
| D | hclge_main.c | 5890 u8 cur_pos = 0, tuple_size, shift_bits; in hclge_fd_convert_meta_data() local 5899 hnae3_set_bit(meta_data, cur_pos, NIC_PACKET); in hclge_fd_convert_meta_data() 5900 cur_pos += tuple_size; in hclge_fd_convert_meta_data() 5906 GENMASK(cur_pos + tuple_size, cur_pos), in hclge_fd_convert_meta_data() 5907 cur_pos, port_number); in hclge_fd_convert_meta_data() 5908 cur_pos += tuple_size; in hclge_fd_convert_meta_data() 5917 shift_bits = sizeof(meta_data) * 8 - cur_pos; in hclge_fd_convert_meta_data()
|