Home
last modified time | relevance | path

Searched refs:cur_pos (Results 1 – 21 of 21) sorted by relevance

/linux-6.12.1/drivers/hid/intel-ish-hid/
Dishtp-hid-client.c38 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 …]
/linux-6.12.1/drivers/s390/block/
Ddasd_fba.c272 int cur_pos = 0; in count_ccws() local
280 cur_pos = wz_stop - first_rec + 1; in count_ccws()
284 if (last_rec - (first_rec + cur_pos) + 1 >= blocks_per_page) { in count_ccws()
291 cur_pos += d_stop - (first_rec + cur_pos) + 1; in count_ccws()
295 if (cur_pos == 0 || first_rec + cur_pos - 1 < last_rec) in count_ccws()
328 int cur_pos = 0; /* Current position within the extent */ in dasd_fba_build_cp_discard() local
366 locate_record(ccw++, LO_data++, WRITE, cur_pos, wz_count); in dasd_fba_build_cp_discard()
371 cur_pos = wz_count; in dasd_fba_build_cp_discard()
375 if (last_rec - (first_rec + cur_pos) + 1 >= blocks_per_page) { in dasd_fba_build_cp_discard()
383 d_count = d_stop - (first_rec + cur_pos) + 1; in dasd_fba_build_cp_discard()
[all …]
Ddasd_eckd.c3696 int cur_pos = 0; in count_exts() local
3708 cur_pos = tmp - from + 1; in count_exts()
3712 if (to - (from + cur_pos) + 1 >= trks_per_ext) { in count_exts()
3714 count += (tmp - (from + cur_pos) + 1) / trks_per_ext; in count_exts()
3715 cur_pos = tmp; in count_exts()
3718 if (cur_pos < to) in count_exts()
3881 int cur_pos; in dasd_eckd_release_space_trks() local
3892 cur_pos = from; in dasd_eckd_release_space_trks()
3896 while (cur_pos < to) { in dasd_eckd_release_space_trks()
3897 stop = cur_pos + step - in dasd_eckd_release_space_trks()
[all …]
/linux-6.12.1/drivers/media/pci/b2c2/
Dflexcop-pci.c187 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()
/linux-6.12.1/drivers/usb/serial/
Dkobil_sct.c108 int cur_pos; /* index of the next char to send in buf */ member
123 priv->cur_pos = 0; in kobil_port_probe()
325 todo = priv->filled - priv->cur_pos; in kobil_write()
332 priv->buf + priv->cur_pos, length); in kobil_write()
335 priv->cur_pos = priv->cur_pos + length; in kobil_write()
339 todo = priv->filled - priv->cur_pos; in kobil_write()
346 priv->cur_pos = 0; in kobil_write()
/linux-6.12.1/tools/perf/util/
Dgenelf_debug.c41 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()
/linux-6.12.1/drivers/spi/
Dspi-tegra114.c179 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 …]
Dspi-tegra210-quad.c188 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 …]
Dspi-tegra20-sflash.c115 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()
Dspi-tegra20-slink.c167 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()
/linux-6.12.1/drivers/gpu/drm/vmwgfx/
Dvmwgfx_cmdbuf.c122 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()
/linux-6.12.1/fs/f2fs/
Dsegment.h758 int cur_pos = 0, next_pos; in check_block_count() local
766 cur_pos); in check_block_count()
767 valid_blocks += next_pos - cur_pos; in check_block_count()
771 cur_pos); in check_block_count()
772 cur_pos = next_pos; in check_block_count()
774 } while (cur_pos < usable_blks_per_seg); in check_block_count()
Dsegment.c2237 unsigned int cur_pos = 0, next_pos, len, total_len = 0; in f2fs_clear_prefree_segments() local
2243 BLKS_PER_SEG(sbi), cur_pos); in f2fs_clear_prefree_segments()
2244 len = next_pos - cur_pos; in f2fs_clear_prefree_segments()
2250 f2fs_issue_discard(sbi, entry->start_blkaddr + cur_pos, in f2fs_clear_prefree_segments()
2255 BLKS_PER_SEG(sbi), cur_pos); in f2fs_clear_prefree_segments()
2258 cur_pos = next_pos; in f2fs_clear_prefree_segments()
2261 if (cur_pos < BLKS_PER_SEG(sbi)) in f2fs_clear_prefree_segments()
/linux-6.12.1/kernel/bpf/
Dlog.c63 u64 cur_pos; in bpf_verifier_vlog() local
86 cur_pos = log->end_pos; in bpf_verifier_vlog()
90 copy_to_user(log->ubuf + cur_pos, log->kbuf, new_n)) in bpf_verifier_vlog()
109 cur_pos = new_end - new_n; in bpf_verifier_vlog()
110 div_u64_rem(cur_pos, log->len_total, &buf_start); in bpf_verifier_vlog()
/linux-6.12.1/fs/reiserfs/
Ddir.c144 loff_t cur_pos = deh_offset(deh); in reiserfs_readdir_inode() local
224 next_pos = cur_pos + 1; in reiserfs_readdir_inode()
/linux-6.12.1/include/xen/interface/io/
Dsndif.h1026 struct xensnd_cur_pos_evt cur_pos; member
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dreg_bounds.c846 insns[cur_pos + __i] = __insns[__i]; \ in load_range_cmp_prog()
847 cur_pos += __i; \ in load_range_cmp_prog()
849 #define JMP_TO(target) (target - cur_pos - 1) in load_range_cmp_prog()
850 int cur_pos = 0, exit_pos, fd, op_code; in load_range_cmp_prog() local
863 exit_pos = cur_pos; in load_range_cmp_prog()
967 *false_pos = cur_pos; in load_range_cmp_prog()
984 *true_pos = cur_pos; in load_range_cmp_prog()
997 "GPL", insns, cur_pos, &opts); in load_range_cmp_prog()
/linux-6.12.1/fs/bcachefs/
Dsnapshot.c961 struct bpos cur_pos; member
977 ? r->cur_pos.offset == pos.offset in same_snapshot()
978 : r->cur_pos.inode == pos.inode; in same_snapshot()
1022 r->cur_pos = pos; in get_snapshot_trees()
/linux-6.12.1/sound/xen/
Dxen_snd_front_evtchnl.c119 event->op.cur_pos.position); in evtchnl_interrupt_evt()
/linux-6.12.1/fs/ntfs3/
Dfslog.c1617 u16 cur_pos, best_page_pos; in last_log_lsn() local
2092 cur_pos = 2; in last_log_lsn()
2115 if (le16_to_cpu(tst_page->page_pos) == cur_pos && in last_log_lsn()
2135 cur_pos += 1; in last_log_lsn()
/linux-6.12.1/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.c5773 u8 cur_pos = 0, tuple_size, shift_bits; in hclge_fd_convert_meta_data() local
5782 hnae3_set_bit(meta_data, cur_pos, NIC_PACKET); in hclge_fd_convert_meta_data()
5783 cur_pos += tuple_size; in hclge_fd_convert_meta_data()
5789 GENMASK(cur_pos + tuple_size, cur_pos), in hclge_fd_convert_meta_data()
5790 cur_pos, port_number); in hclge_fd_convert_meta_data()
5791 cur_pos += tuple_size; in hclge_fd_convert_meta_data()
5800 shift_bits = sizeof(meta_data) * 8 - cur_pos; in hclge_fd_convert_meta_data()