Home
last modified time | relevance | path

Searched refs:read_pos (Results 1 – 8 of 8) sorted by relevance

/Linux-v5.4/drivers/char/ipmi/
Dipmi_kcs_sm.c114 int read_pos; member
131 kcs->read_pos = 0; in init_kcs_data()
201 if (kcs->read_pos >= MAX_KCS_READ_SIZE) { in read_next_byte()
206 kcs->read_data[kcs->read_pos] = read_data(kcs); in read_next_byte()
207 (kcs->read_pos)++; in read_next_byte()
254 kcs->read_pos = 0; in restart_kcs_transaction()
285 kcs->read_pos = 0; in start_kcs_transaction()
295 if (length < kcs->read_pos) { in get_kcs_result()
296 kcs->read_pos = length; in get_kcs_result()
300 memcpy(data, kcs->read_data, kcs->read_pos); in get_kcs_result()
[all …]
Dipmi_smic_sm.c96 int read_pos; member
110 smic->read_pos = 0; in init_smic_data()
143 smic->read_pos = 0; in start_smic_transaction()
156 for (i = 0; i < smic->read_pos; i++) in smic_get_result()
160 if (length < smic->read_pos) { in smic_get_result()
161 smic->read_pos = length; in smic_get_result()
164 memcpy(data, smic->read_data, smic->read_pos); in smic_get_result()
166 if ((length >= 3) && (smic->read_pos < 3)) { in smic_get_result()
168 smic->read_pos = 3; in smic_get_result()
174 return smic->read_pos; in smic_get_result()
[all …]
/Linux-v5.4/kernel/
Drelay.c961 size_t read_pos, in relay_file_read_consume() argument
978 if (!read_pos) in relay_file_read_consume()
981 read_subbuf = read_pos / buf->chan->subbuf_size; in relay_file_read_consume()
994 static int relay_file_read_avail(struct rchan_buf *buf, size_t read_pos) in relay_file_read_avail() argument
1001 relay_file_read_consume(buf, read_pos, 0); in relay_file_read_avail()
1038 static size_t relay_file_read_subbuf_avail(size_t read_pos, in relay_file_read_subbuf_avail() argument
1047 read_subbuf = read_pos / subbuf_size; in relay_file_read_subbuf_avail()
1048 read_offset = read_pos % subbuf_size; in relay_file_read_subbuf_avail()
1069 static size_t relay_file_read_start_pos(size_t read_pos, in relay_file_read_start_pos() argument
1077 if (!read_pos) in relay_file_read_start_pos()
[all …]
/Linux-v5.4/drivers/media/firewire/
Dfiredtv-avc.c1098 int read_pos; in avc_ca_pmt() local
1151 read_pos = 6; in avc_ca_pmt()
1154 pmt_cmd_id = msg[read_pos++]; in avc_ca_pmt()
1163 memcpy(&c->operand[write_pos], &msg[read_pos], in avc_ca_pmt()
1165 read_pos += program_info_length; in avc_ca_pmt()
1168 while (read_pos < length) { in avc_ca_pmt()
1169 c->operand[write_pos++] = msg[read_pos++]; in avc_ca_pmt()
1170 c->operand[write_pos++] = msg[read_pos++]; in avc_ca_pmt()
1171 c->operand[write_pos++] = msg[read_pos++]; in avc_ca_pmt()
1173 ((msg[read_pos] & 0x0f) << 8) + msg[read_pos + 1]; in avc_ca_pmt()
[all …]
/Linux-v5.4/fs/
Dseq_file.c187 if (unlikely(*ppos != m->read_pos)) { in seq_read()
192 m->read_pos = 0; in seq_read()
198 m->read_pos = *ppos; in seq_read()
288 m->read_pos += copied; in seq_read()
325 if (offset != m->read_pos) { in seq_lseek()
331 m->read_pos = 0; in seq_lseek()
336 m->read_pos = offset; in seq_lseek()
/Linux-v5.4/drivers/input/misc/
Dims-pcu.c93 u8 read_pos; member
434 memcpy(pcu->cmd_buf, pcu->read_buf, pcu->read_pos); in ims_pcu_handle_response()
435 pcu->cmd_buf_len = pcu->read_pos; in ims_pcu_handle_response()
455 pcu->read_buf[pcu->read_pos++] = data; in ims_pcu_process_data()
465 pcu->read_pos); in ims_pcu_process_data()
468 pcu->read_pos = 0; in ims_pcu_process_data()
477 if (pcu->read_pos < IMS_PCU_MIN_PACKET_LEN) { in ims_pcu_process_data()
480 pcu->read_pos); in ims_pcu_process_data()
484 pcu->read_pos); in ims_pcu_process_data()
491 pcu->read_pos = 0; in ims_pcu_process_data()
[all …]
/Linux-v5.4/security/integrity/ima/
Dima_kexec.c33 file.read_pos = 0; in ima_dump_measurement_list()
/Linux-v5.4/include/linux/
Dseq_file.h23 loff_t read_pos; member