Searched refs:read_pos (Results 1 - 14 of 14) sorted by relevance

/linux-master/drivers/char/ipmi/
H A Dipmi_kcs_sm.c116 int read_pos; member in struct:si_sm_data
133 kcs->read_pos = 0;
209 if (kcs->read_pos >= MAX_KCS_READ_SIZE) {
214 kcs->read_data[kcs->read_pos] = read_data(kcs);
215 (kcs->read_pos)++;
262 kcs->read_pos = 0;
295 kcs->read_pos = 0;
305 if (length < kcs->read_pos) {
306 kcs->read_pos = length;
310 memcpy(data, kcs->read_data, kcs->read_pos);
[all...]
H A Dipmi_smic_sm.c98 int read_pos; member in struct:si_sm_data
112 smic->read_pos = 0;
148 smic->read_pos = 0;
161 for (i = 0; i < smic->read_pos; i++)
165 if (length < smic->read_pos) {
166 smic->read_pos = length;
169 memcpy(data, smic->read_data, smic->read_pos);
171 if ((length >= 3) && (smic->read_pos < 3)) {
173 smic->read_pos = 3;
179 return smic->read_pos;
[all...]
/linux-master/fs/bcachefs/
H A Dio_read.h57 struct bpos read_pos; member in struct:bch_read_bio
116 struct bch_read_bio *rbio, struct bpos read_pos,
120 __bch2_read_extent(trans, rbio, rbio->bio.bi_iter, read_pos,
115 bch2_read_extent(struct btree_trans *trans, struct bch_read_bio *rbio, struct bpos read_pos, enum btree_id data_btree, struct bkey_s_c k, unsigned offset_into_extent, unsigned flags) argument
H A Dio_read.c381 rbio->read_pos, BTREE_ITER_SLOTS);
403 rbio->read_pos,
430 .inum = rbio->read_pos.inode,
651 rbio->read_pos.inode,
652 rbio->read_pos.offset << 9,
660 bch_err_inum_offset_ratelimited(c, rbio->read_pos.inode,
661 rbio->read_pos.offset << 9,
666 bch_err_inum_offset_ratelimited(c, rbio->read_pos.inode,
667 rbio->read_pos.offset << 9,
691 rbio->read_pos
795 __bch2_read_extent(struct btree_trans *trans, struct bch_read_bio *orig, struct bvec_iter iter, struct bpos read_pos, enum btree_id data_btree, struct bkey_s_c k, unsigned offset_into_extent, struct bch_io_failures *failed, unsigned flags) argument
[all...]
/linux-master/kernel/
H A Drelay.c879 size_t read_pos,
896 if (!read_pos)
899 read_subbuf = read_pos / buf->chan->subbuf_size;
953 * @read_pos: file read position
956 static size_t relay_file_read_subbuf_avail(size_t read_pos, argument
965 read_subbuf = read_pos / subbuf_size;
966 read_offset = read_pos % subbuf_size;
982 * If the read_pos is in the middle of padding, return the
992 size_t read_pos = (consumed * subbuf_size + buf->bytes_consumed) local
995 read_subbuf = read_pos / subbuf_siz
878 relay_file_read_consume(struct rchan_buf *buf, size_t read_pos, size_t bytes_consumed) argument
1013 relay_file_read_end_pos(struct rchan_buf *buf, size_t read_pos, size_t count) argument
[all...]
/linux-master/drivers/media/firewire/
H A Dfiredtv-avc.c1100 int read_pos; local
1153 read_pos = 6;
1156 pmt_cmd_id = msg[read_pos++];
1165 memcpy(&c->operand[write_pos], &msg[read_pos],
1167 read_pos += program_info_length;
1170 while (read_pos + 4 < length) {
1175 c->operand[write_pos++] = msg[read_pos++];
1176 c->operand[write_pos++] = msg[read_pos++];
1177 c->operand[write_pos++] = msg[read_pos++];
1179 ((msg[read_pos]
[all...]
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_vcn.c1092 unsigned int read_pos, write_pos, available, i, read_bytes = 0; local
1105 read_pos = plog->rptr;
1108 if (read_pos > AMDGPU_VCNFW_LOG_SIZE || write_pos > AMDGPU_VCNFW_LOG_SIZE)
1111 if (!size || (read_pos == write_pos))
1114 if (write_pos > read_pos) {
1115 available = write_pos - read_pos;
1118 read_num[0] = AMDGPU_VCNFW_LOG_SIZE - read_pos;
1130 if (read_pos == AMDGPU_VCNFW_LOG_SIZE)
1131 read_pos = plog->header_size;
1133 (log_buf + read_pos), read_nu
[all...]
/linux-master/security/integrity/ima/
H A Dima_kexec.c34 file.read_pos = 0;
/linux-master/fs/
H A Dseq_file.c194 if (unlikely(iocb->ki_pos != m->read_pos)) {
199 m->read_pos = 0;
204 m->read_pos = iocb->ki_pos;
290 m->read_pos += copied;
322 if (offset != m->read_pos) {
328 m->read_pos = 0;
332 m->read_pos = offset;
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dctx_rewrite.c669 int write_pos = 0, read_pos = prefix_size; local
675 while (read_pos < size) {
676 c = str[read_pos++];
681 read_pos += prefix_size;
/linux-master/drivers/input/misc/
H A Dims-pcu.c93 u8 read_pos; member in struct:ims_pcu
434 memcpy(pcu->cmd_buf, pcu->read_buf, pcu->read_pos);
435 pcu->cmd_buf_len = pcu->read_pos;
455 pcu->read_buf[pcu->read_pos++] = data;
465 pcu->read_pos);
468 pcu->read_pos = 0;
477 if (pcu->read_pos < IMS_PCU_MIN_PACKET_LEN) {
480 pcu->read_pos);
484 pcu->read_pos);
491 pcu->read_pos
[all...]
/linux-master/include/linux/
H A Dseq_file.h24 loff_t read_pos; member in struct:seq_file
/linux-master/drivers/gpu/drm/mediatek/
H A Dmtk_dp.c744 int read_pos; local
749 for (read_pos = 0; read_pos < length; read_pos++) {
756 buf[read_pos] = (u8)(mtk_dp_read(mtk_dp, MTK_DP_AUX_P0_3620) &
/linux-master/drivers/hwtracing/coresight/
H A Dultrasoc-smb.c179 coresight_simple_reg32(read_pos, SMB_LB_RD_ADDR_REG),

Completed in 302 milliseconds