Searched refs:read_pos (Results 1 – 8 of 8) sorted by relevance
/kernel/linux/linux-5.10/drivers/char/ipmi/ |
D | ipmi_kcs_sm.c | 116 int read_pos; member 133 kcs->read_pos = 0; in init_kcs_data() 203 if (kcs->read_pos >= MAX_KCS_READ_SIZE) { in read_next_byte() 208 kcs->read_data[kcs->read_pos] = read_data(kcs); in read_next_byte() 209 (kcs->read_pos)++; in read_next_byte() 256 kcs->read_pos = 0; in restart_kcs_transaction() 289 kcs->read_pos = 0; in start_kcs_transaction() 299 if (length < kcs->read_pos) { in get_kcs_result() 300 kcs->read_pos = length; in get_kcs_result() 304 memcpy(data, kcs->read_data, kcs->read_pos); in get_kcs_result() [all …]
|
D | ipmi_smic_sm.c | 98 int read_pos; member 112 smic->read_pos = 0; in init_smic_data() 148 smic->read_pos = 0; in start_smic_transaction() 161 for (i = 0; i < smic->read_pos; i++) in smic_get_result() 165 if (length < smic->read_pos) { in smic_get_result() 166 smic->read_pos = length; in smic_get_result() 169 memcpy(data, smic->read_data, smic->read_pos); in smic_get_result() 171 if ((length >= 3) && (smic->read_pos < 3)) { in smic_get_result() 173 smic->read_pos = 3; in smic_get_result() 179 return smic->read_pos; in smic_get_result() [all …]
|
/kernel/linux/linux-5.10/kernel/ |
D | relay.c | 967 size_t read_pos, in relay_file_read_consume() argument 984 if (!read_pos) in relay_file_read_consume() 987 read_subbuf = read_pos / buf->chan->subbuf_size; in relay_file_read_consume() 1044 static size_t relay_file_read_subbuf_avail(size_t read_pos, in relay_file_read_subbuf_avail() argument 1053 read_subbuf = read_pos / subbuf_size; in relay_file_read_subbuf_avail() 1054 read_offset = read_pos % subbuf_size; in relay_file_read_subbuf_avail() 1080 size_t read_pos = (consumed * subbuf_size + buf->bytes_consumed) in relay_file_read_start_pos() local 1083 read_subbuf = read_pos / subbuf_size; in relay_file_read_start_pos() 1087 if (read_pos >= padding_start && read_pos < padding_end) { in relay_file_read_start_pos() 1089 read_pos = read_subbuf * subbuf_size; in relay_file_read_start_pos() [all …]
|
/kernel/linux/linux-5.10/drivers/media/firewire/ |
D | firedtv-avc.c | 1098 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 + 4 < length) { in avc_ca_pmt() 1173 c->operand[write_pos++] = msg[read_pos++]; in avc_ca_pmt() 1174 c->operand[write_pos++] = msg[read_pos++]; in avc_ca_pmt() 1175 c->operand[write_pos++] = msg[read_pos++]; in avc_ca_pmt() 1177 ((msg[read_pos] & 0x0f) << 8) + msg[read_pos + 1]; in avc_ca_pmt() [all …]
|
/kernel/linux/linux-5.10/fs/ |
D | seq_file.c | 194 if (unlikely(iocb->ki_pos != m->read_pos)) { in seq_read_iter() 199 m->read_pos = 0; in seq_read_iter() 204 m->read_pos = iocb->ki_pos; in seq_read_iter() 290 m->read_pos += copied; in seq_read_iter() 322 if (offset != m->read_pos) { in seq_lseek() 328 m->read_pos = 0; in seq_lseek() 332 m->read_pos = offset; in seq_lseek()
|
/kernel/linux/linux-5.10/drivers/input/misc/ |
D | ims-pcu.c | 93 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 …]
|
/kernel/linux/linux-5.10/security/integrity/ima/ |
D | ima_kexec.c | 33 file.read_pos = 0; in ima_dump_measurement_list()
|
/kernel/linux/linux-5.10/include/linux/ |
D | seq_file.h | 23 loff_t read_pos; member
|