/linux-4.1.27/sound/usb/6fire/ |
H A D | firmware.c | 53 char error; /* true if an error occurred parsing this record */ 55 u8 max_len; /* maximum record length in whole ihex */ 81 * returns true if record is available, false otherwise. 82 * iff an error occurred, false will be returned and record->error will be true. 84 static bool usb6fire_fw_ihex_next_record(struct ihex_record *record) usb6fire_fw_ihex_next_record() argument 90 record->error = false; usb6fire_fw_ihex_next_record() 92 /* find begin of record (marked by a colon) */ usb6fire_fw_ihex_next_record() 93 while (record->txt_offset < record->txt_length usb6fire_fw_ihex_next_record() 94 && record->txt_data[record->txt_offset] != ':') usb6fire_fw_ihex_next_record() 95 record->txt_offset++; usb6fire_fw_ihex_next_record() 96 if (record->txt_offset == record->txt_length) usb6fire_fw_ihex_next_record() 100 record->txt_offset++; usb6fire_fw_ihex_next_record() 101 if (record->txt_offset + 8 > record->txt_length) { usb6fire_fw_ihex_next_record() 102 record->error = true; usb6fire_fw_ihex_next_record() 106 record->len = usb6fire_fw_ihex_hex(record->txt_data + usb6fire_fw_ihex_next_record() 107 record->txt_offset, &crc); usb6fire_fw_ihex_next_record() 108 record->txt_offset += 2; usb6fire_fw_ihex_next_record() 109 record->address = usb6fire_fw_ihex_hex(record->txt_data + usb6fire_fw_ihex_next_record() 110 record->txt_offset, &crc) << 8; usb6fire_fw_ihex_next_record() 111 record->txt_offset += 2; usb6fire_fw_ihex_next_record() 112 record->address |= usb6fire_fw_ihex_hex(record->txt_data + usb6fire_fw_ihex_next_record() 113 record->txt_offset, &crc); usb6fire_fw_ihex_next_record() 114 record->txt_offset += 2; usb6fire_fw_ihex_next_record() 115 type = usb6fire_fw_ihex_hex(record->txt_data + usb6fire_fw_ihex_next_record() 116 record->txt_offset, &crc); usb6fire_fw_ihex_next_record() 117 record->txt_offset += 2; usb6fire_fw_ihex_next_record() 120 if (record->txt_offset + 2 * (record->len + 1) > record->txt_length) { usb6fire_fw_ihex_next_record() 121 record->error = true; usb6fire_fw_ihex_next_record() 124 for (i = 0; i < record->len; i++) { usb6fire_fw_ihex_next_record() 125 record->data[i] = usb6fire_fw_ihex_hex(record->txt_data usb6fire_fw_ihex_next_record() 126 + record->txt_offset, &crc); usb6fire_fw_ihex_next_record() 127 record->txt_offset += 2; usb6fire_fw_ihex_next_record() 129 usb6fire_fw_ihex_hex(record->txt_data + record->txt_offset, &crc); usb6fire_fw_ihex_next_record() 131 record->error = true; usb6fire_fw_ihex_next_record() 135 if (type == 1 || !record->len) /* eof */ usb6fire_fw_ihex_next_record() 140 record->error = true; usb6fire_fw_ihex_next_record() 146 struct ihex_record *record) usb6fire_fw_ihex_init() 148 record->txt_data = fw->data; usb6fire_fw_ihex_init() 149 record->txt_length = fw->size; usb6fire_fw_ihex_init() 150 record->txt_offset = 0; usb6fire_fw_ihex_init() 151 record->max_len = 0; usb6fire_fw_ihex_init() 152 /* read all records, if loop ends, record->error indicates, usb6fire_fw_ihex_init() 154 while (usb6fire_fw_ihex_next_record(record)) usb6fire_fw_ihex_init() 155 record->max_len = max(record->len, record->max_len); usb6fire_fw_ihex_init() 156 if (record->error) usb6fire_fw_ihex_init() 158 record->txt_offset = 0; usb6fire_fw_ihex_init() 145 usb6fire_fw_ihex_init(const struct firmware *fw, struct ihex_record *record) usb6fire_fw_ihex_init() argument
|
/linux-4.1.27/tools/lib/traceevent/ |
H A D | plugin_hrtimer.c | 28 struct pevent_record *record, timer_expire_handler() 34 record, 0) == -1) timer_expire_handler() 36 record, 1); timer_expire_handler() 40 pevent_print_num_field(s, "%llu", event, "now", record, 1); timer_expire_handler() 43 record, 0); timer_expire_handler() 48 struct pevent_record *record, timer_start_handler() 54 record, 0) == -1) timer_start_handler() 56 record, 1); timer_start_handler() 59 record, 0); timer_start_handler() 62 pevent_print_num_field(s, "%llu", event, "expires", record, 1); timer_start_handler() 65 pevent_print_num_field(s, "%llu", event, "softexpires", record, 1); timer_start_handler() 27 timer_expire_handler(struct trace_seq *s, struct pevent_record *record, struct event_format *event, void *context) timer_expire_handler() argument 47 timer_start_handler(struct trace_seq *s, struct pevent_record *record, struct event_format *event, void *context) timer_start_handler() argument
|
H A D | plugin_sched_switch.c | 48 struct pevent_record *record, write_and_save_comm() 54 comm = (char *)(record->data + field->offset); write_and_save_comm() 68 struct pevent_record *record, sched_wakeup_handler() 74 if (pevent_get_field_val(s, event, "pid", record, &val, 1)) sched_wakeup_handler() 79 write_and_save_comm(field, record, s, val); sched_wakeup_handler() 84 if (pevent_get_field_val(s, event, "prio", record, &val, 0) == 0) sched_wakeup_handler() 87 if (pevent_get_field_val(s, event, "success", record, &val, 1) == 0) sched_wakeup_handler() 90 if (pevent_get_field_val(s, event, "target_cpu", record, &val, 0) == 0) sched_wakeup_handler() 97 struct pevent_record *record, sched_switch_handler() 103 if (pevent_get_field_val(s, event, "prev_pid", record, &val, 1)) sched_switch_handler() 108 write_and_save_comm(field, record, s, val); sched_switch_handler() 113 if (pevent_get_field_val(s, event, "prev_prio", record, &val, 0) == 0) sched_switch_handler() 116 if (pevent_get_field_val(s, event, "prev_state", record, &val, 0) == 0) sched_switch_handler() 121 if (pevent_get_field_val(s, event, "next_pid", record, &val, 1)) sched_switch_handler() 126 write_and_save_comm(field, record, s, val); sched_switch_handler() 131 if (pevent_get_field_val(s, event, "next_prio", record, &val, 0) == 0) sched_switch_handler() 47 write_and_save_comm(struct format_field *field, struct pevent_record *record, struct trace_seq *s, int pid) write_and_save_comm() argument 67 sched_wakeup_handler(struct trace_seq *s, struct pevent_record *record, struct event_format *event, void *context) sched_wakeup_handler() argument 96 sched_switch_handler(struct trace_seq *s, struct pevent_record *record, struct event_format *event, void *context) sched_switch_handler() argument
|
H A D | plugin_kvm.c | 247 static int print_exit_reason(struct trace_seq *s, struct pevent_record *record, print_exit_reason() argument 254 if (pevent_get_field_val(s, event, field, record, &val, 1) < 0) print_exit_reason() 257 if (pevent_get_field_val(s, event, "isa", record, &isa, 0) < 0) print_exit_reason() 268 static int kvm_exit_handler(struct trace_seq *s, struct pevent_record *record, kvm_exit_handler() argument 273 if (print_exit_reason(s, record, event, "exit_reason") < 0) kvm_exit_handler() 276 pevent_print_num_field(s, " rip 0x%lx", event, "guest_rip", record, 1); kvm_exit_handler() 278 if (pevent_get_field_val(s, event, "info1", record, &info1, 0) >= 0 kvm_exit_handler() 279 && pevent_get_field_val(s, event, "info2", record, &info2, 0) >= 0) kvm_exit_handler() 291 struct pevent_record *record, kvm_emulate_insn_handler() 299 if (pevent_get_field_val(s, event, "rip", record, &rip, 1) < 0) kvm_emulate_insn_handler() 302 if (pevent_get_field_val(s, event, "csbase", record, &csbase, 1) < 0) kvm_emulate_insn_handler() 305 if (pevent_get_field_val(s, event, "len", record, &len, 1) < 0) kvm_emulate_insn_handler() 308 if (pevent_get_field_val(s, event, "flags", record, &flags, 1) < 0) kvm_emulate_insn_handler() 311 if (pevent_get_field_val(s, event, "failed", record, &failed, 1) < 0) kvm_emulate_insn_handler() 314 insn = pevent_get_field_raw(s, event, "insn", record, &llen, 1); kvm_emulate_insn_handler() 330 static int kvm_nested_vmexit_inject_handler(struct trace_seq *s, struct pevent_record *record, kvm_nested_vmexit_inject_handler() argument 333 if (print_exit_reason(s, record, event, "exit_code") < 0) kvm_nested_vmexit_inject_handler() 336 pevent_print_num_field(s, " info1 %llx", event, "exit_info1", record, 1); kvm_nested_vmexit_inject_handler() 337 pevent_print_num_field(s, " info2 %llx", event, "exit_info2", record, 1); kvm_nested_vmexit_inject_handler() 338 pevent_print_num_field(s, " int_info %llx", event, "exit_int_info", record, 1); kvm_nested_vmexit_inject_handler() 339 pevent_print_num_field(s, " int_info_err %llx", event, "exit_int_info_err", record, 1); kvm_nested_vmexit_inject_handler() 344 static int kvm_nested_vmexit_handler(struct trace_seq *s, struct pevent_record *record, kvm_nested_vmexit_handler() argument 347 pevent_print_num_field(s, "rip %llx ", event, "rip", record, 1); kvm_nested_vmexit_handler() 349 return kvm_nested_vmexit_inject_handler(s, record, event, context); kvm_nested_vmexit_handler() 367 static int kvm_mmu_print_role(struct trace_seq *s, struct pevent_record *record, kvm_mmu_print_role() argument 376 if (pevent_get_field_val(s, event, "role", record, &val, 1) < 0) kvm_mmu_print_role() 401 "root_count", record, 1); kvm_mmu_print_role() 403 if (pevent_get_field_val(s, event, "unsync", record, &val, 1) < 0) kvm_mmu_print_role() 411 struct pevent_record *record, kvm_mmu_get_page_handler() 416 if (pevent_get_field_val(s, event, "created", record, &val, 1) < 0) kvm_mmu_get_page_handler() 421 if (pevent_get_field_val(s, event, "gfn", record, &val, 1) < 0) kvm_mmu_get_page_handler() 425 return kvm_mmu_print_role(s, record, event, context); kvm_mmu_get_page_handler() 290 kvm_emulate_insn_handler(struct trace_seq *s, struct pevent_record *record, struct event_format *event, void *context) kvm_emulate_insn_handler() argument 410 kvm_mmu_get_page_handler(struct trace_seq *s, struct pevent_record *record, struct event_format *event, void *context) kvm_mmu_get_page_handler() argument
|
H A D | plugin_mac80211.c | 56 #define SF(fn) pevent_print_num_field(s, fn ":%d", event, fn, record, 0) 57 #define SFX(fn) pevent_print_num_field(s, fn ":%#x", event, fn, record, 0) 61 struct pevent_record *record, drv_bss_info_changed() 64 void *data = record->data; drv_bss_info_changed() 69 pevent_print_num_field(s, "(%d)", event, "vif_type", record, 1); drv_bss_info_changed() 60 drv_bss_info_changed(struct trace_seq *s, struct pevent_record *record, struct event_format *event, void *context) drv_bss_info_changed() argument
|
H A D | plugin_function.c | 125 static int function_handler(struct trace_seq *s, struct pevent_record *record, function_handler() argument 135 if (pevent_get_field_val(s, event, "ip", record, &function, 1)) function_handler() 140 if (pevent_get_field_val(s, event, "parent_ip", record, &pfunction, 1)) function_handler() 146 index = add_and_get_index(parent, func, record->cpu); function_handler()
|
H A D | plugin_kmem.c | 26 static int call_site_handler(struct trace_seq *s, struct pevent_record *record, call_site_handler() argument 31 void *data = record->data; call_site_handler()
|
H A D | parse-filter.c | 1694 struct pevent_record *record, enum pevent_errno *err); 1697 get_comm(struct event_format *event, struct pevent_record *record) get_comm() argument 1702 pid = pevent_data_pid(event->pevent, record); get_comm() 1709 struct format_field *field, struct pevent_record *record) get_value() 1717 name = get_comm(event, record); get_value() 1721 pevent_read_number_field(field, record->data, &val); get_value() 1741 struct pevent_record *record, enum pevent_errno *err); 1745 struct pevent_record *record, enum pevent_errno *err) get_exp_value() 1749 lval = get_arg_value(event, arg->exp.left, record, err); get_exp_value() 1750 rval = get_arg_value(event, arg->exp.right, record, err); get_exp_value() 1800 struct pevent_record *record, enum pevent_errno *err) get_arg_value() 1804 return get_value(event, arg->field.field, record); get_arg_value() 1814 return get_exp_value(event, arg, record, err); get_arg_value() 1824 struct pevent_record *record, enum pevent_errno *err) test_num() 1828 lval = get_arg_value(event, arg->num.left, record, err); test_num() 1829 rval = get_arg_value(event, arg->num.right, record, err); test_num() 1864 static const char *get_field_str(struct filter_arg *arg, struct pevent_record *record) get_field_str() argument 1874 val = record->data + arg->str.field->offset; get_field_str() 1890 addr = get_value(event, arg->str.field, record); get_field_str() 1907 struct pevent_record *record, enum pevent_errno *err) test_str() 1912 val = get_comm(event, record); test_str() 1914 val = get_field_str(arg, record); test_str() 1938 struct pevent_record *record, enum pevent_errno *err) test_op() 1942 return test_filter(event, arg->op.left, record, err) && test_op() 1943 test_filter(event, arg->op.right, record, err); test_op() 1946 return test_filter(event, arg->op.left, record, err) || test_op() 1947 test_filter(event, arg->op.right, record, err); test_op() 1950 return !test_filter(event, arg->op.right, record, err); test_op() 1960 struct pevent_record *record, enum pevent_errno *err) test_filter() 1975 return test_op(event, arg, record, err); test_filter() 1978 return test_num(event, arg, record, err); test_filter() 1981 return test_str(event, arg, record, err); test_filter() 1990 return !!get_arg_value(event, arg, record, err); test_filter() 2020 * pevent_filter_match - test if a record matches a filter 2022 * @record: the record to test against the filter 2025 * FILTER_MATCH - filter found for event and @record matches 2026 * FILTER_MISS - filter found for event and @record does not match 2027 * FILTER_NOT_FOUND - no filter found for @record's event 2032 struct pevent_record *record) pevent_filter_match() 2045 event_id = pevent_data_type(pevent, record); pevent_filter_match() 2051 ret = test_filter(filter_type->event, filter_type->filter, record, &err); pevent_filter_match() 1708 get_value(struct event_format *event, struct format_field *field, struct pevent_record *record) get_value() argument 1744 get_exp_value(struct event_format *event, struct filter_arg *arg, struct pevent_record *record, enum pevent_errno *err) get_exp_value() argument 1799 get_arg_value(struct event_format *event, struct filter_arg *arg, struct pevent_record *record, enum pevent_errno *err) get_arg_value() argument 1823 test_num(struct event_format *event, struct filter_arg *arg, struct pevent_record *record, enum pevent_errno *err) test_num() argument 1906 test_str(struct event_format *event, struct filter_arg *arg, struct pevent_record *record, enum pevent_errno *err) test_str() argument 1937 test_op(struct event_format *event, struct filter_arg *arg, struct pevent_record *record, enum pevent_errno *err) test_op() argument 1959 test_filter(struct event_format *event, struct filter_arg *arg, struct pevent_record *record, enum pevent_errno *err) test_filter() argument 2031 pevent_filter_match(struct event_filter *filter, struct pevent_record *record) pevent_filter_match() argument
|
H A D | kbuffer-parse.c | 422 * kbuffer_translate_data - read raw data to get a record 428 * record size (record metadata + data) just add the difference between 484 * @ts: Address to store the next record's timestamp (may be NULL to ignore) 604 * Returns the data of the record that is at @offset. Note, @offset does 605 * not need to be the start of the record, the offset just needs to be 606 * in the record (or beginning of it). 609 * returned record. That is, kbuffer_read_event() will return the same 611 * this record. 649 * kbuffer_curr_index - Return the index of the record 655 * point to the first record. Use kbuffer_curr_offset() for 664 * kbuffer_curr_offset - Return the offset of the record 680 * the meta data of the record) of the current event. 688 * kbuffer_curr_size - return the size of the entire record 691 * Returns the size of the entire record (meta data and payload)
|
H A D | event-parse.h | 48 int record_size; /* size of binary record */ 105 struct pevent_record *record, 411 _PE(FILTER_MISS, "record does not match to filter") 622 struct pevent_record *record, bool use_trace_clock); 637 const char *name, struct pevent_record *record, 641 const char *name, struct pevent_record *record, 644 const char *name, struct pevent_record *record, 647 const char *name, struct pevent_record *record, 652 struct pevent_record *record, int err); 656 struct pevent_record *record, int err); 688 struct trace_seq *s, struct pevent_record *record); 699 struct pevent_record *record); 933 struct pevent_record *record);
|
H A D | event-parse.c | 361 * We are searching for a record in between, not an exact 408 * Add a special record at the end. func_map_init() 4941 * @record: the record to read from 4948 struct trace_seq *s, struct pevent_record *record) pevent_data_lat_fmt() 4960 void *data = record->data; pevent_data_lat_fmt() 5023 * @rec: the record to read from 5047 * @rec: the record to parse 5166 * @record: the record to read from 5172 struct pevent_record *record) pevent_event_info() 5177 print_event_fields(s, record->data, record->size, event); pevent_event_info() 5181 print_pretty = event->handler(s, record, event, pevent_event_info() 5185 pretty_print(s, record->data, record->size, event); pevent_event_info() 5205 struct pevent_record *record, bool use_trace_clock) pevent_print_event() 5213 void *data = record->data; pevent_print_event() 5223 secs = record->ts / NSECS_PER_SEC; pevent_print_event() 5224 nsecs = record->ts - secs * NSECS_PER_SEC; pevent_print_event() 5227 if (record->size < 0) { pevent_print_event() 5228 do_warning("ug! negative record size %d", record->size); pevent_print_event() 5245 comm, pid, record->cpu); pevent_print_event() 5246 pevent_data_lat_fmt(pevent, s, record); pevent_print_event() 5248 trace_seq_printf(s, "%16s-%-5d [%03d]", comm, pid, record->cpu); pevent_print_event() 5263 record->ts, event->name); pevent_print_event() 5270 pevent_event_info(s, event, record); pevent_print_event() 5933 const char *name, struct pevent_record *record, get_field_val() 5942 if (pevent_read_number_field(field, record->data, val)) { get_field_val() 5956 * @record: The record with the field name. 5960 * Returns a pointer into record->data of the field and places 5966 const char *name, struct pevent_record *record, pevent_get_field_raw() 5970 void *data = record->data; pevent_get_field_raw() 6006 * @record: The record with the field name. 6013 const char *name, struct pevent_record *record, pevent_get_field_val() 6023 return get_field_val(s, field, name, record, val, err); pevent_get_field_val() 6031 * @record: The record with the field name. 6038 const char *name, struct pevent_record *record, pevent_get_common_field_val() 6048 return get_field_val(s, field, name, record, val, err); pevent_get_common_field_val() 6056 * @record: The record with the field name. 6063 const char *name, struct pevent_record *record, pevent_get_any_field_val() 6073 return get_field_val(s, field, name, record, val, err); pevent_get_any_field_val() 6082 * @record: The record with the field name. 6089 struct pevent_record *record, int err) pevent_print_num_field() 6097 if (pevent_read_number_field(field, record->data, &val)) pevent_print_num_field() 6114 * @record: The record with the field name. 6121 struct pevent_record *record, int err) pevent_print_func_field() 6132 if (pevent_read_number_field(field, record->data, &val)) pevent_print_func_field() 4947 pevent_data_lat_fmt(struct pevent *pevent, struct trace_seq *s, struct pevent_record *record) pevent_data_lat_fmt() argument 5171 pevent_event_info(struct trace_seq *s, struct event_format *event, struct pevent_record *record) pevent_event_info() argument 5204 pevent_print_event(struct pevent *pevent, struct trace_seq *s, struct pevent_record *record, bool use_trace_clock) pevent_print_event() argument 5932 get_field_val(struct trace_seq *s, struct format_field *field, const char *name, struct pevent_record *record, unsigned long long *val, int err) get_field_val() argument 5965 pevent_get_field_raw(struct trace_seq *s, struct event_format *event, const char *name, struct pevent_record *record, int *len, int err) pevent_get_field_raw() argument 6012 pevent_get_field_val(struct trace_seq *s, struct event_format *event, const char *name, struct pevent_record *record, unsigned long long *val, int err) pevent_get_field_val() argument 6037 pevent_get_common_field_val(struct trace_seq *s, struct event_format *event, const char *name, struct pevent_record *record, unsigned long long *val, int err) pevent_get_common_field_val() argument 6062 pevent_get_any_field_val(struct trace_seq *s, struct event_format *event, const char *name, struct pevent_record *record, unsigned long long *val, int err) pevent_get_any_field_val() argument 6087 pevent_print_num_field(struct trace_seq *s, const char *fmt, struct event_format *event, const char *name, struct pevent_record *record, int err) pevent_print_num_field() argument 6119 pevent_print_func_field(struct trace_seq *s, const char *fmt, struct event_format *event, const char *name, struct pevent_record *record, int err) pevent_print_func_field() argument
|
/linux-4.1.27/firmware/ |
H A D | ihex2fw.c | 53 static void file_record(struct ihex_binrec *record); 133 struct ihex_binrec *record; process_ihex() local 143 /* search for the start of record character */ process_ihex() 149 /* Minimum record length would be about 10 characters */ process_ihex() 151 fprintf(stderr, "Can't find valid record at line %d\n", line); process_ihex() 160 record = malloc((sizeof (*record) + len + 3) & ~3); process_ihex() 161 if (!record) { process_ihex() 165 memset(record, 0, (sizeof(*record) + len + 3) & ~3); process_ihex() 166 record->len = len; process_ihex() 169 if (i + 8 + (record->len * 2) > size) { process_ihex() 170 fprintf(stderr, "Not enough data to read complete record at line %d\n", process_ihex() 175 record->addr = hex(data + i, &crc) << 8; i += 2; process_ihex() 176 record->addr |= hex(data + i, &crc); i += 2; process_ihex() 179 for (j = 0; j < record->len; j++, i += 2) process_ihex() 180 record->data[j] = hex(data + i, &crc); process_ihex() 190 /* Done reading the record */ process_ihex() 193 /* old style EOF record? */ process_ihex() 194 if (!record->len) process_ihex() 197 record->addr += offset; process_ihex() 198 file_record(record); process_ihex() 202 if (record->addr || record->len) { process_ihex() 203 fprintf(stderr, "Bad EOF record (type 01) format at line %d", process_ihex() 211 if (record->addr || record->len != 2) { process_ihex() 212 fprintf(stderr, "Bad HEX86/HEX386 record (type %02X) at line %d\n", process_ihex() 219 offset = record->data[0] << 8 | record->data[1]; process_ihex() 225 if (record->addr || record->len != 4) { process_ihex() 226 fprintf(stderr, "Bad Start Address record (type %02X) at line %d\n", process_ihex() 231 memcpy(&data32, &record->data[0], sizeof(data32)); process_ihex() 233 memcpy(&record->data[0], &data32, sizeof(data32)); process_ihex() 236 * starts. If requested output this as a record. */ process_ihex() 238 file_record(record); process_ihex() 242 fprintf(stderr, "Unknown record (type %02X)\n", type); process_ihex() 251 static void file_record(struct ihex_binrec *record) file_record() argument 255 while ((*p) && (!sort_records || (*p)->addr < record->addr)) file_record() 258 record->next = *p; file_record() 259 *p = record; file_record() 276 /* EOF record is zero length, since we don't bother to represent output_records()
|
/linux-4.1.27/drivers/usb/misc/ |
H A D | ezusb.c | 79 const struct ihex_binrec *record; ezusb_ihex_firmware_download() local 93 record = (const struct ihex_binrec *)firmware->data; ezusb_ihex_firmware_download() 94 for (; record; record = ihex_next_binrec(record)) { ezusb_ihex_firmware_download() 95 if (be32_to_cpu(record->addr) > fx.max_internal_adress) { ezusb_ihex_firmware_download() 96 ret = ezusb_writememory(dev, be32_to_cpu(record->addr), ezusb_ihex_firmware_download() 97 (unsigned char *)record->data, ezusb_ihex_firmware_download() 98 be16_to_cpu(record->len), WRITE_EXT_RAM); ezusb_ihex_firmware_download() 103 be32_to_cpu(record->addr), record->data, ezusb_ihex_firmware_download() 104 be16_to_cpu(record->len)); ezusb_ihex_firmware_download() 113 record = (const struct ihex_binrec *)firmware->data; ezusb_ihex_firmware_download() 114 for (; record; record = ihex_next_binrec(record)) { ezusb_ihex_firmware_download() 115 if (be32_to_cpu(record->addr) <= fx.max_internal_adress) { ezusb_ihex_firmware_download() 116 ret = ezusb_writememory(dev, be32_to_cpu(record->addr), ezusb_ihex_firmware_download() 117 (unsigned char *)record->data, ezusb_ihex_firmware_download() 118 be16_to_cpu(record->len), WRITE_INT_RAM); ezusb_ihex_firmware_download() 123 be32_to_cpu(record->addr), record->data, ezusb_ihex_firmware_download() 124 be16_to_cpu(record->len)); ezusb_ihex_firmware_download()
|
/linux-4.1.27/fs/ntfs/ |
H A D | mft.h | 2 * mft.h - Defines for mft record handling in NTFS Linux kernel driver. 48 * @ni: ntfs inode structure of mft record 50 * Call flush_dcache_page() for the page in which an mft record resides. 52 * This must be called every time an mft record is modified, just after the 63 * mark_mft_record_dirty - set the mft record and the page containing it dirty 64 * @ni: ntfs inode describing the mapped mft record 66 * Set the mapped (extent) mft record of the (base or extent) ntfs inode @ni, 67 * as well as the page containing the mft record, dirty. Also, mark the base 68 * vfs inode dirty. This ensures that any changes to the mft record are 71 * NOTE: Do not do anything if the mft record is already marked dirty. 85 * write_mft_record - write out a mapped (extent) mft record 86 * @ni: ntfs inode describing the mapped (extent) mft record 87 * @m: mapped (extent) mft record to write 92 * no race conditions between writing the mft record via the dirty inode code 99 * On success, clean the mft record and return 0. On error, leave the mft 100 * record dirty and return -errno.
|
H A D | mft.c | 2 * mft.c - NTFS kernel mft record operations. Part of the Linux-NTFS project. 38 * map_mft_record_page - map the page in which a specific mft record resides 39 * @ni: ntfs inode whose mft record page to map 41 * This maps the page in which the mft record of the ntfs inode @ni is situated 42 * and returns a pointer to the mft record within the mapped page. 59 * page of the wanted mft record. FIXME: We need to check for map_mft_record_page() 71 /* If the wanted index is out of bounds the mft record doesn't exist. */ map_mft_record_page() 76 ntfs_error(vol->sb, "Attempt to read mft record 0x%lx, " map_mft_record_page() 93 ntfs_error(vol->sb, "Mft record 0x%lx is corrupt. " map_mft_record_page() 106 * map_mft_record - map, pin and lock an mft record 107 * @ni: ntfs inode whose MFT record to map 112 * The page of the record is mapped using map_mft_record_page() before being 116 * record (it in turn calls read_cache_page() which reads it in from disk if 122 * and the post-read mst fixups on each mft record in the page have been 144 * The mft record is now ours and we return a pointer to it. You need to check 148 * NOTE: Caller is responsible for setting the mft record dirty before calling 150 * modified the mft record... 152 * A: No, the inode ones mean we want to change the mft record, not we want to 164 /* Serialize access to this mft record. */ map_mft_record() 178 * unmap_mft_record_page - unmap the page in which a specific mft record resides 179 * @ni: ntfs inode whose mft record page to unmap 181 * This unmaps the page in which the mft record of the ntfs inode @ni is 203 * unmap_mft_record - release a mapped mft record 204 * @ni: ntfs inode whose MFT record to unmap 207 * record and releases it for others to get hold of. We also release the ntfs 210 * NOTE: If caller has modified the mft record, it is imperative to set the mft 211 * record dirty BEFORE calling unmap_mft_record(). 239 * Load the extent mft record @mref and attach it to its base inode @base_ni. 240 * Return the mapped extent mft record if IS_ERR(result) is false. Otherwise 257 ntfs_debug("Mapping extent mft record 0x%lx (base mft record 0x%lx).", map_extent_mft_record() 281 /* We found the record; just have to map and return it. */ map_extent_mft_record() 300 "mft record, error code %ld.", -PTR_ERR(m)); map_extent_mft_record() 314 /* Now map the record. */ map_extent_mft_record() 373 * __mark_mft_record_dirty - set the mft record and the page containing it dirty 374 * @ni: ntfs inode describing the mapped mft record 378 * Set the mapped (extent) mft record of the (base or extent) ntfs inode @ni, 379 * as well as the page containing the mft record, dirty. Also, mark the base 380 * vfs inode dirty. This ensures that any changes to the mft record are 417 * ntfs_sync_mft_mirror_umount - synchronise an mft record to the mft mirror 418 * @vol: ntfs volume on which the mft record to synchronize resides 419 * @mft_no: mft record number of mft record to synchronize 420 * @m: mapped, mst protected (extent) mft record to synchronize 422 * Write the mapped, mst protected (extent) mft record @m with mft record 448 * ntfs_sync_mft_mirror - synchronize an mft record to the mft mirror 449 * @vol: ntfs volume on which the mft record to synchronize resides 450 * @mft_no: mft record number of mft record to synchronize 451 * @m: mapped, mst protected (extent) mft record to synchronize 454 * Write the mapped, mst protected (extent) mft record @m with mft record 488 /* Get the page containing the mirror copy of the mft record @m. */ ntfs_sync_mft_mirror() 499 /* Offset of the mft mirror record inside the page. */ ntfs_sync_mft_mirror() 501 /* The address in the page of the mirror copy of the mft record @m. */ ntfs_sync_mft_mirror() 503 /* Copy the mst protected mft record to the mirror. */ ntfs_sync_mft_mirror() 527 /* If the buffer is outside the mft record, skip it. */ ntfs_sync_mft_mirror() 568 "record 0x%lx because its " ntfs_sync_mft_mirror() 627 "record 0x%lx!", mft_no); ntfs_sync_mft_mirror() 639 * write_mft_record_nolock - write out a mapped (extent) mft record 640 * @ni: ntfs inode describing the mapped (extent) mft record 641 * @m: mapped (extent) mft record to write 644 * Write the mapped (extent) mft record @m described by the (regular or extent) 645 * ntfs inode @ni to backing store. If the mft record @m has a counterpart in 648 * We only write the mft record if the ntfs inode @ni is dirty and the first 649 * buffer belonging to its mft record is dirty, too. We ignore the dirty state 653 * On success, clean the mft record and return 0. On error, leave the mft 654 * record dirty and return -errno. 657 * However, if the mft record has a counterpart in the mft mirror and @sync is 658 * true, we write the mft record, wait for i/o completion, and only then write 660 * or the mft mirror will contain a self-consistent mft record @m. If @sync is 663 * up with a self-consistent mft record in the case of a crash but if you asked 690 * for the mft record @m and the page it is in. write_mft_record_nolock() 703 /* If the buffer is outside the mft record, skip it. */ write_mft_record_nolock() 709 * If this block is not the first one in the record, we ignore write_mft_record_nolock() 714 /* This block is the first one in the record. */ write_mft_record_nolock() 751 ntfs_error(vol->sb, "Cannot write mft record " write_mft_record_nolock() 816 ntfs_error(vol->sb, "I/O error while writing mft record " write_mft_record_nolock() 837 ntfs_error(vol->sb, "Not enough memory to write mft record. " write_mft_record_nolock() 847 * ntfs_may_write_mft_record - check if an mft record may be written out 848 * @vol: [IN] ntfs volume on which the mft record to check resides 849 * @mft_no: [IN] mft record number of the mft record to check 850 * @m: [IN] mapped mft record to check 853 * Check if the mapped (base or extent) mft record @m with mft record number 855 * and possible the ntfs inode of the mft record is locked and the base vfs 860 * Return 'true' if the mft record may be written out and 'false' if not. 866 * record in read_cache_page() until we are finished with the write out. 870 * If the inode is found in icache we know the mft record must be a base mft 871 * record. If it is dirty, we do not write it and return 'false' as the vfs 873 * cause the base mft record to be redirtied and written out again. (We know 874 * the access time update will modify the base mft record because Windows 876 * mft record.) 878 * If the inode is in icache and not dirty, we attempt to lock the mft record 880 * record and we return 'false'. 882 * If we manage to obtain the lock we have exclusive access to the mft record, 883 * which also allows us safe writeout of the mft record. We then set 886 * Note we cannot just lock the mft record and sleep while waiting for the lock 887 * because this would deadlock due to lock reversal (normally the mft record is 889 * when we try to lock the mft record). 893 * If the mft record is not a FILE record or it is a base mft record, we can 896 * We now know the mft record is an extent mft record. We check if the inode 897 * corresponding to its base mft record is in icache and obtain a reference to 900 * We now have the base inode for the extent mft record. We check if it has an 901 * ntfs inode for the extent mft record attached and if not it is safe to write 902 * the extent mft record and we return 'true'. 904 * The ntfs inode for the extent mft record is attached to the base inode so we 905 * attempt to lock the extent mft record and if we find the lock was already 906 * taken, it is not safe to write the extent mft record and we return 'false'. 909 * record, which also allows us safe writeout of the extent mft record. We 910 * set the ntfs inode of the extent mft record clean and then set @locked_ni to 922 * appear if the mft record is reused for a new inode before it got written 942 * Check if the inode corresponding to this mft record is in the VFS ntfs_may_write_mft_record() 974 /* If the inode is dirty, do not write this record. */ ntfs_may_write_mft_record() 983 /* The inode is not dirty, try to take the mft record lock. */ ntfs_may_write_mft_record() 985 ntfs_debug("Mft record 0x%lx is already locked, do " ntfs_may_write_mft_record() 991 ntfs_debug("Managed to lock mft record 0x%lx, write it.", ntfs_may_write_mft_record() 994 * The write has to occur while we hold the mft record lock so ntfs_may_write_mft_record() 1002 /* Write the record if it is not a mft record (type "FILE"). */ ntfs_may_write_mft_record() 1004 ntfs_debug("Mft record 0x%lx is not a FILE record, write it.", ntfs_may_write_mft_record() 1008 /* Write the mft record if it is a base inode. */ ntfs_may_write_mft_record() 1010 ntfs_debug("Mft record 0x%lx is a base record, write it.", ntfs_may_write_mft_record() 1015 * This is an extent mft record. Check if the inode corresponding to ntfs_may_write_mft_record() 1016 * its base mft record is in icache and obtain a reference to it if it ntfs_may_write_mft_record() 1020 ntfs_debug("Mft record 0x%lx is an extent record. Looking for base " ntfs_may_write_mft_record() 1032 * record. ntfs_may_write_mft_record() 1035 "extent record.", na.mft_no); ntfs_may_write_mft_record() 1041 * corresponding to this extent mft record attached. ntfs_may_write_mft_record() 1048 * extent mft record. ntfs_may_write_mft_record() 1053 "write the extent record.", na.mft_no); ntfs_may_write_mft_record() 1062 * mft record. ntfs_may_write_mft_record() 1070 * extent mft record. ntfs_may_write_mft_record() 1076 "inode 0x%lx, write the extent record.", ntfs_may_write_mft_record() 1086 * Found the extent inode coresponding to this extent mft record. ntfs_may_write_mft_record() 1087 * Try to take the mft record lock. ntfs_may_write_mft_record() 1092 ntfs_debug("Extent mft record 0x%lx is already locked, do " ntfs_may_write_mft_record() 1096 ntfs_debug("Managed to lock extent mft record 0x%lx, write it.", ntfs_may_write_mft_record() 1102 * The write has to occur while we hold the mft record lock so return ntfs_may_write_mft_record() 1114 * @vol: volume on which to search for a free mft record 1115 * @base_ni: open base inode if allocating an extent mft record or NULL 1117 * Search for a free mft record in the mft bitmap attribute on the ntfs volume 1122 * If @base_ni is not NULL start the search at the mft record after the base 1123 * mft record @base_ni. 1125 * Return the free mft record on success and -errno on error. An error code of 1142 ntfs_debug("Searching for free mft record in the currently " ntfs_mft_bitmap_find_and_alloc_free_rec_nolock() 1177 /* Loop until a free mft record is found. */ ntfs_mft_bitmap_find_and_alloc_free_rec_nolock() 1222 "allocated mft record " ntfs_mft_bitmap_find_and_alloc_free_rec_nolock() 1385 * Update the attribute record as well. Note: @rl is the last ntfs_mft_bitmap_extend_allocation_nolock() 1390 ntfs_error(vol->sb, "Failed to map mft record."); ntfs_mft_bitmap_extend_allocation_nolock() 1429 /* Expand the attribute record if necessary. */ ntfs_mft_bitmap_extend_allocation_nolock() 1436 "record for mft bitmap attribute."); ntfs_mft_bitmap_extend_allocation_nolock() 1440 // record or by starting a new extent in a new mft record or by ntfs_mft_bitmap_extend_allocation_nolock() 1441 // moving other attributes out of this mft record. ntfs_mft_bitmap_extend_allocation_nolock() 1442 // Note: It will need to be a special mft record and if none of ntfs_mft_bitmap_extend_allocation_nolock() 1444 ntfs_error(vol->sb, "Not enough space in this mft record to " ntfs_mft_bitmap_extend_allocation_nolock() 1451 /* Generate the mapping pairs array directly into the attr record. */ ntfs_mft_bitmap_extend_allocation_nolock() 1464 * Reflect this in the ntfs_inode structure and the attribute record. ntfs_mft_bitmap_extend_allocation_nolock() 1549 "record.%s", es); ntfs_mft_bitmap_extend_allocation_nolock() 1592 /* Get the attribute record. */ ntfs_mft_bitmap_extend_initialized_nolock() 1595 ntfs_error(vol->sb, "Failed to map mft record."); ntfs_mft_bitmap_extend_initialized_nolock() 1647 ntfs_error(vol->sb, "Failed to map mft record.%s", es); ntfs_mft_bitmap_extend_initialized_nolock() 1700 * worth of clusters or if not enough space for this by one mft record worth 1754 /* Minimum allocation is one mft record worth of clusters. */ ntfs_mft_data_extend_allocation_nolock() 1771 ntfs_warning(vol->sb, "Cannot allocate mft record " ntfs_mft_data_extend_allocation_nolock() 1820 /* Update the attribute record as well. */ ntfs_mft_data_extend_allocation_nolock() 1823 ntfs_error(vol->sb, "Failed to map mft record."); ntfs_mft_data_extend_allocation_nolock() 1861 /* Expand the attribute record if necessary. */ ntfs_mft_data_extend_allocation_nolock() 1868 "record for mft data attribute."); ntfs_mft_data_extend_allocation_nolock() 1872 // record or by starting a new extent in a new mft record or by ntfs_mft_data_extend_allocation_nolock() 1873 // moving other attributes out of this mft record. ntfs_mft_data_extend_allocation_nolock() 1875 // this extent is not required to find the mft record in ntfs_mft_data_extend_allocation_nolock() 1877 // move an existing record away, insert ours in its place, and ntfs_mft_data_extend_allocation_nolock() 1878 // then place the moved record into the newly allocated space ntfs_mft_data_extend_allocation_nolock() 1880 // record appropriately. This is rather complicated... ntfs_mft_data_extend_allocation_nolock() 1881 ntfs_error(vol->sb, "Not enough space in this mft record to " ntfs_mft_data_extend_allocation_nolock() 1888 /* Generate the mapping pairs array directly into the attr record. */ ntfs_mft_data_extend_allocation_nolock() 1901 * Reflect this in the ntfs_inode structure and the attribute record. ntfs_mft_data_extend_allocation_nolock() 1981 "record.%s", es); ntfs_mft_data_extend_allocation_nolock() 2000 * ntfs_mft_record_layout - layout an mft record into a memory buffer 2001 * @vol: volume to which the mft record will belong 2002 * @mft_no: mft reference specifying the mft record number 2005 * Layout an empty, unused mft record with the mft record number @mft_no into 2006 * the buffer @m. The volume @vol is needed because the mft record structure 2008 * record will be used on. 2017 ntfs_debug("Entering for mft record 0x%llx.", (long long)mft_no); ntfs_mft_record_layout() 2019 ntfs_error(vol->sb, "Mft record number 0x%llx exceeds " ntfs_mft_record_layout() 2023 /* Start by clearing the whole mft record to gives us a clean slate. */ ntfs_mft_record_layout() 2043 ntfs_warning(vol->sb, "Sector size is bigger than mft record " ntfs_mft_record_layout() 2081 * ntfs_mft_record_format - format an mft record on an ntfs volume 2082 * @vol: volume on which to format the mft record 2083 * @mft_no: mft record number to format 2085 * Format the mft record @mft_no in $MFT/$DATA, i.e. lay out an empty, unused 2086 * mft record into the appropriate place of the mft data attribute. This is 2101 ntfs_debug("Entering for mft record 0x%llx.", (long long)mft_no); ntfs_mft_record_format() 2104 * page of the wanted mft record. ntfs_mft_record_format() 2115 "record 0x%llx.", (long long)mft_no); ntfs_mft_record_format() 2119 /* Read, map, and pin the page containing the mft record. */ ntfs_mft_record_format() 2122 ntfs_error(vol->sb, "Failed to map page containing mft record " ntfs_mft_record_format() 2132 ntfs_error(vol->sb, "Failed to layout mft record 0x%llx.", ntfs_mft_record_format() 2143 * Make sure the mft record is written out to disk. We could use ntfs_mft_record_format() 2145 * unnecessary as ntfs_writepage() will write the dirty record anyway. ntfs_mft_record_format() 2154 * ntfs_mft_record_alloc - allocate an mft record on an ntfs volume 2155 * @vol: [IN] volume on which to allocate the mft record 2157 * @base_ni: [IN] open base inode if allocating an extent mft record or NULL 2158 * @mrec: [OUT] on successful return this is the mapped mft record 2160 * Allocate an mft record in $MFT/$DATA of an open ntfs volume @vol. 2162 * If @base_ni is NULL make the mft record a base mft record, i.e. a file or 2168 * If @base_ni is not NULL make the allocated mft record an extent record, 2169 * allocate it starting at the mft record after the base mft record and attach 2175 * allocated mft record. *@mrec is then set to the allocated, mapped, pinned, 2176 * and locked mft record. If IS_ERR() is true, the function failed and the 2182 * To find a free mft record, we scan the mft bitmap for a zero bit. To 2197 * record. If there are no free records left in the range 24 to number of 2201 * is not sufficient space to do this, we try to extend by a single mft record 2202 * or one cluster, if cluster size is above the mft record size. 2205 * allocated mft record, incrementing mft data size and initialized size 2208 * mft records until we reach record 24 which we consider as the first free mft 2209 * record for use by normal files. 2220 * - set the bit corresponding to the mft record being allocated in the 2222 * - opened an ntfs_inode for the allocated mft record, and we will have 2224 * locked mft record. 2226 * On error, the volume will be left in a consistent state and no record will 2233 * the base mft record and an attribute list is used, it is very important that 2261 ntfs_debug("Entering (allocating an extent mft record for " ntfs_mft_record_alloc() 2262 "base mft record 0x%llx).", ntfs_mft_record_alloc() 2267 ntfs_debug("Entering (allocating a base mft record)."); ntfs_mft_record_alloc() 2281 ntfs_debug("Found and allocated free record (#1), bit 0x%llx.", ntfs_mft_record_alloc() 2292 * so we can simply allocate the first unused mft record. ntfs_mft_record_alloc() 2309 ntfs_debug("Found free record (#2), bit 0x%llx.", ntfs_mft_record_alloc() 2315 * mft record that we can allocate. ntfs_mft_record_alloc() 2316 * Note: The smallest mft record we allocate is mft record 24. ntfs_mft_record_alloc() 2368 ntfs_debug("Found free record (#3), bit 0x%llx.", (long long)bit); ntfs_mft_record_alloc() 2370 /* @bit is the found free mft record, allocate it in the mft bitmap. */ ntfs_mft_record_alloc() 2384 * will impact decisions for mft bitmap and mft record allocation done ntfs_mft_record_alloc() 2386 * parallel allocation could allocate the same mft record as this one. ntfs_mft_record_alloc() 2393 ntfs_debug("Allocated mft record already initialized."); ntfs_mft_record_alloc() 2396 ntfs_debug("Initializing allocated mft record."); ntfs_mft_record_alloc() 2398 * The mft record is outside the initialized data. Extend the mft data ntfs_mft_record_alloc() 2399 * attribute until it covers the allocated record. The loop is only ntfs_mft_record_alloc() 2429 * the allocated mft record, formatting the mft records allong the way. ntfs_mft_record_alloc() 2432 * record itself in one fell swoop later on. ntfs_mft_record_alloc() 2446 ntfs_debug("Initializing mft record 0x%llx.", ntfs_mft_record_alloc() 2450 ntfs_error(vol->sb, "Failed to format mft record."); ntfs_mft_record_alloc() 2458 /* Update the mft data attribute record to reflect the new sizes. */ ntfs_mft_record_alloc() 2461 ntfs_error(vol->sb, "Failed to map mft record."); ntfs_mft_record_alloc() 2494 ntfs_debug("Status of mft data after mft record initialization: " ntfs_mft_record_alloc() 2507 * allocated mft record still needs to be marked as in use to match the ntfs_mft_record_alloc() 2509 * this mft record is not referenced from anywhere yet and the fact ntfs_mft_record_alloc() 2515 * We now have allocated and initialized the mft record. Calculate the ntfs_mft_record_alloc() 2516 * index of and the offset within the page cache page the record is in. ntfs_mft_record_alloc() 2520 /* Read, map, and pin the page containing the mft record. */ ntfs_mft_record_alloc() 2524 "mft record 0x%llx.", (long long)bit); ntfs_mft_record_alloc() 2532 /* If we just formatted the mft record no need to do it again. */ ntfs_mft_record_alloc() 2534 /* Sanity check that the mft record is really not in use. */ ntfs_mft_record_alloc() 2537 ntfs_error(vol->sb, "Mft record 0x%llx was marked " ntfs_mft_record_alloc() 2550 * We need to (re-)format the mft record, preserving the ntfs_mft_record_alloc() 2554 * wrong with the previous mft record. ntfs_mft_record_alloc() 2561 "record 0x%llx.", (long long)bit); ntfs_mft_record_alloc() 2572 /* Set the mft record itself in use. */ ntfs_mft_record_alloc() 2582 * Setup the base mft record in the extent mft record. This ntfs_mft_record_alloc() 2583 * completes initialization of the allocated extent mft record ntfs_mft_record_alloc() 2589 * Allocate an extent inode structure for the new mft record, ntfs_mft_record_alloc() 2591 * its, i.e. the allocated, mft record. ntfs_mft_record_alloc() 2596 "mft record 0x%llx.", (long long)bit); ntfs_mft_record_alloc() 2598 /* Set the mft record itself not in use. */ ntfs_mft_record_alloc() 2602 /* Make sure the mft record is written out to disk. */ ntfs_mft_record_alloc() 2610 * Make sure the allocated mft record is written out to disk. ntfs_mft_record_alloc() 2613 * record (e.g. at a minimum a new attribute will be added to ntfs_mft_record_alloc() 2614 * the mft record. ntfs_mft_record_alloc() 2626 * is set to 1 but the mft record->link_count is 0. The caller ntfs_mft_record_alloc() 2632 /* Set the mft record itself not in use. */ ntfs_mft_record_alloc() 2636 /* Make sure the mft record is written out to disk. */ ntfs_mft_record_alloc() 2706 * Manually map, pin, and lock the mft record as we already ntfs_mft_record_alloc() 2714 * Make sure the allocated mft record is written out to disk. ntfs_mft_record_alloc() 2719 * that anyway after finishing with the new mft record (e.g. at ntfs_mft_record_alloc() 2721 * record. ntfs_mft_record_alloc() 2733 * Return the opened, allocated inode of the allocated mft record as ntfs_mft_record_alloc() 2734 * well as the mapped, pinned, and locked mft record. ntfs_mft_record_alloc() 2757 ntfs_warning(vol->sb, "Cannot allocate mft record because the maximum " ntfs_mft_record_alloc() 2764 * ntfs_extent_mft_record_free - free an extent mft record on an ntfs volume 2765 * @ni: ntfs inode of the mapped extent mft record to free 2766 * @m: mapped extent mft record of the ntfs inode @ni 2768 * Free the mapped extent mft record @m of the extent ntfs inode @ni. 2770 * Note that this function unmaps the mft record and closes and destroys @ni 2780 * caller no longer wants to reference this mft record so it does not matter to 2844 /* Mark the mft record as not in use. */ ntfs_extent_mft_record_free() 2859 * record to be freed is guaranteed to do it already. ntfs_extent_mft_record_free() 2864 ntfs_error(vol->sb, "Failed to write mft record 0x%lx, not " ntfs_extent_mft_record_free() 2873 /* Clear the bit in the $MFT/$BITMAP corresponding to this record. */ ntfs_extent_mft_record_free()
|
H A D | logfile.h | 42 * These are followed by log records organized in pages headed by a log record 122 * Log file restart area record. The offset of this record is found by adding 137 /* 10*/ le16 client_free_list; /* The index of the first free log client record 146 record is free and thus the logfile is 154 record in the array of log client records. 166 client record is in use. On WinXP and 199 sizeof(log client record)). */ 200 /* 22*/ le16 client_array_offset;/* Offset from the start of this record to 201 the first log client record if versions are 213 * sizeof(log client record)) has to be <= 216 following this record. On WinXP and 218 are 16 extra bytes between this record and 220 the RESTART_AREA record is actually bigger 234 log record pages. */ 236 the log record header. On create set to 238 /* 36*/ le16 log_record_header_length;/* Byte size of the log record header. 246 /* 38*/ le16 log_page_data_offset;/* Offset to the start of data in a log record 249 sequence array of the log record page. */ 261 * Log client record. The offset of this record is found by adding the offset 274 /* 16*/ le16 prev_client; /* The offset to the previous log client record 277 client record, i.e. this is the first one. 279 /* 18*/ le16 next_client; /* The offset to the next log client record in
|
H A D | usnjrnl.h | 37 * example it will record that file "blah" was written to at a particular time 38 * but not what was written. If will record that a file was deleted or 51 * in the root directory and has a fixed mft record number, see layout.h). 171 /* 0*/le32 length; /* Byte size of this record (8-byte 174 for this record. */ 176 for this record. */ 178 directory) described by this record. */ 181 record. */ 182 /*0x18*/leUSN usn; /* The usn of this record. Equals the offset 184 /*0x20*/sle64 time; /* Time when this record was created. */ 194 start of this record. */
|
H A D | inode.h | 49 s64 initialized_size; /* Copy from the attribute record. */ 50 s64 allocated_size; /* Copy from the attribute record. */ 53 unsigned long mft_no; /* Number of the mft record / inode. */ 54 u16 seq_no; /* Sequence number of the mft record. */ 86 mft record belonging to this inode. */ 87 struct page *page; /* The page containing the mft record of the 90 int page_ofs; /* Offset into the page at which the mft record 123 s32 nr_extents; /* For a base mft record, the number of attached extent 134 record. For fake inodes, the 145 NI_Dirty, /* 1: Mft record needs to be written to disk. */ 146 NI_AttrList, /* 1: Mft record contains an attribute list. */ 175 * be removed but the record can be left dirty for syncing later. 252 * @mft_no: mft record number of the base mft record of this attribute
|
H A D | attrib.c | 47 * record. This is needed when ntfs_map_runlist_nolock() encounters unmapped 49 * record mapped, you can specify @ctx as NULL and ntfs_map_runlist_nolock() 79 * - If @ctx is NULL, the base mft record of @ni must not be mapped on 81 * - If @ctx is not NULL, the base mft record must be mapped on entry 149 * record so we do not accidentally drop changes to the ntfs_map_runlist_nolock() 150 * mft record when it has not been marked dirty yet. ntfs_map_runlist_nolock() 269 * some changes to the mft record that had been made between ntfs_map_runlist_nolock() 272 * enough that the mft record cannot be written out anyway and ntfs_map_runlist_nolock() 420 * record. This is needed when ntfs_attr_find_vcn_nolock() encounters unmapped 422 * record mapped, you can specify @ctx as NULL and ntfs_attr_find_vcn_nolock() 459 * - If @ctx is NULL, the base mft record of @ni must not be mapped on 461 * - If @ctx is not NULL, the base mft record must be mapped on entry 533 * ntfs_attr_find - find (next) attribute in mft record 540 * @ctx: search context with mft record and attribute to search from 546 * mft record specified by @ctx->mrec, beginning at @ctx->attr, for an 563 * @ctx->ntfs_ino must be set to the ntfs inode to which the mft record 575 * ntfs_attr_find() only searches the specified mft record and it ignores the 583 * mft record, so do not rely on being able to find the first extent in the 584 * base mft record. 599 * Iterate over attributes in mft record starting at @ctx->attr, or the ntfs_attr_find() 816 * @ctx: search context with mft record and attribute to search from 822 * attribute list entry. Having found the entry, map the mft record if the 823 * attribute is in a different mft record/inode, ntfs_attr_find() the attribute 826 * On first search @ctx->ntfs_ino must be the base mft record and @ctx must 831 * After finishing with the attribute/mft record you need to call 837 * mft record in which @ctx->attr is located and @ctx->al_entry will point to 841 * @ctx->attr will point to the attribute in the base mft record before which 843 * were to be desired. @ctx->mrec will point to the mft record in which 849 * @ctx->mrec (the base mft record) and if there is not enough space, the 850 * attribute should be placed in a newly allocated extent mft record. The 876 /* First call happens with the base mft record. */ ntfs_external_attr_find() 991 /* If there is a mapped record unmap it first. */ ntfs_external_attr_find() 994 /* Do we want the base record back? */ ntfs_external_attr_find() 1000 /* We want an extent record. */ ntfs_external_attr_find() 1006 "extent mft record " ntfs_external_attr_find() 1026 * mft record containing the attribute represented by the ntfs_external_attr_find() 1031 * attribute in this mft record but this would be less ntfs_external_attr_find() 1056 * attribute list entry and the attribute record, there is ntfs_external_attr_find() 1080 /* Proceed to the next attribute in the current mft record. */ ntfs_external_attr_find() 1103 * use ntfs_attr_find() to seek to the end of the base mft record. ntfs_external_attr_find() 1113 * attribute should be inserted in the base mft record. Since we also ntfs_external_attr_find() 1134 * In case there are multiple matches in the base mft record, need to ntfs_external_attr_find() 1157 * @ctx: search context with mft record and attribute to search from 1160 * be the base mft record and @ctx must have been obtained from a call to 1166 * After finishing with the attribute/mft record you need to call 1172 * When 0, @ctx->attr is the found attribute and it is in mft record 1178 * mft record this is the correct place to insert it into. If an attribute 1181 * for, i.e. if one wants to add the attribute to the mft record this is the 1213 * @mrec: mft record with which to initialize the search context 1235 * extent mft record if present, and initialize the search context again. 1264 * @mrec: mft record with which to initialize the search context 1284 * mft record if present. 1301 * Search for the attribute definition record corresponding to the attribute 1304 * Return the attribute type definition record if found and NULL if not found. 1382 /* Find the attribute definition record in $AttrDef. */ ntfs_attr_can_be_non_resident() 1418 * ntfs_attr_record_resize - resize an attribute record 1419 * @m: mft record containing attribute record 1420 * @a: attribute record to resize 1421 * @new_size: new size in bytes to which to resize the attribute record @a 1423 * Resize the attribute record @a, i.e. the resident part of the attribute, in 1424 * the mft record @m to @new_size bytes. 1428 * -ENOSPC - Not enough space in the mft record @m to perform the resize. 1432 * Warning: If you make a record smaller without having copied all the data you 1445 /* Not enough space in this mft record. */ ntfs_attr_record_resize() 1463 * @m: mft record containing attribute record 1464 * @a: attribute record whose value to resize 1467 * Resize the value of the attribute @a in the mft record @m to @new_size bytes. 1472 * -ENOSPC - Not enough space in the mft record @m to perform the resize. 1476 * Warning: If you make a record smaller without having copied all the data you 1484 /* Resize the resident part of the attribute record. */ ntfs_resident_attr_value_resize() 1510 * we need to know the size before we can map the mft record and our callers 1523 * space in the mft record to do the conversion. This can happen when the mft 1524 * record is already very full. The caller is responsible for trying to make 1525 * space in the mft record and trying again. FIXME: Do we need a separate 1649 * attribute record. ntfs_attr_make_non_resident() 1670 /* Resize the resident part of the attribute record. */ ntfs_attr_make_non_resident() 1675 * Convert the resident part of the attribute record to describe a ntfs_attr_make_non_resident() 1703 /* Generate the mapping pairs array into the attribute record. */ ntfs_attr_make_non_resident() 1742 /* Mark the mft record dirty, so it gets written back. */ ntfs_attr_make_non_resident() 1767 /* Resize the resident part of the attribute record. */ ntfs_attr_make_non_resident() 1816 /* Mark the mft record dirty, so it gets written back. */ ntfs_attr_make_non_resident() 1862 * vfs inode is not updated. Only the data size in the base attribute record 1867 * For resident attributes this involves resizing the attribute record and if 1876 * resizing the attribute record and if necessary moving it and/or other 1877 * attributes into extent mft records and/or splitting the attribute record 1894 * locking the mft record of the base ntfs inode. These locks are maintained 1989 * record so lock them both down. ntfs_attr_extend_allocation() 2046 * Extend the attribute record to be able to store the new attribute ntfs_attr_extend_allocation() 2078 * Not enough space in the mft record, try to make the attribute ntfs_attr_extend_allocation() 2112 "record/on disk for the non-resident " ntfs_attr_extend_allocation() 2141 // TODO: Attempt to move this attribute to an extent mft record, but ntfs_attr_extend_allocation() 2142 // only if it is not already the only attribute in an mft record in ntfs_attr_extend_allocation() 2280 /* Extend the attribute record to fit the bigger mapping pairs array. */ ntfs_attr_extend_allocation() 2287 // record or by starting a new extent in a new mft record, ntfs_attr_extend_allocation() 2291 // attributes out of this mft record. ntfs_attr_extend_allocation() 2294 "record for the extended attribute " ntfs_attr_extend_allocation() 2295 "record. This case is not " ntfs_attr_extend_allocation() 2301 /* Generate the mapping pairs array directly into the attr record. */ ntfs_attr_extend_allocation() 2320 * this in the ntfs_inode structure and the attribute record. ntfs_attr_extend_allocation() 2429 * longer valid, we cannot resize the attribute record or build the ntfs_attr_extend_allocation() 2442 "record in error code path. Run " ntfs_attr_extend_allocation() 2487 * pages to be written to the mft record/disk.
|
H A D | aops.c | 55 * record size, and index_block_size_bits, to the log(base 2) of the ntfs 56 * record size. 133 * map_mft_record() is called which gives us per record granularity ntfs_end_buffer_async_read() 391 * data from the mft record (which at this stage is most likely in memory) and 393 * even if the mft record is not cached at this point in time, we need to wait 459 * This also means the attribute is smaller than an mft record and ntfs_readpage() 473 /* Map, pin, and lock the mft record. */ ntfs_readpage() 481 * record and retry the readpage. ntfs_readpage() 911 * exclusion for the $MFT/$DATA case against someone mapping an mft record we 989 * This block is not the first one in the record. We ntfs_write_mst_block() 1002 /* This block is the first one in the record. */ ntfs_write_mst_block() 1072 /* Hard error. Abort writing this record. */ ntfs_write_mst_block() 1076 ntfs_error(vol->sb, "Cannot write ntfs record " ntfs_write_mst_block() 1089 * buffers in this record from the list of ntfs_write_mst_block() 1135 /* Get the mft record number. */ ntfs_write_mst_block() 1138 /* Check whether to write this mft record. */ ntfs_write_mst_block() 1143 * The record should not be written. This ntfs_write_mst_block() 1149 * Remove the buffers in this mft record from ntfs_write_mst_block() 1158 * The record should be written. If a locked ntfs ntfs_write_mst_block() 1177 * Mark all the buffers in this record clean as we do ntfs_write_mst_block() 1219 "record buffer (inode 0x%lx, " ntfs_write_mst_block() 1251 /* Get the mft record number. */ ntfs_write_mst_block() 1300 * Set page error if there is only one ntfs record in the page. ntfs_write_mst_block() 1301 * Otherwise we would loose per-record granularity. ntfs_write_mst_block() 1310 "record 0x%lx.", page->index << ntfs_write_mst_block() 1344 * the data to the mft record (which at this stage is most likely in memory). 1345 * The mft record is then marked dirty and written out asynchronously via the 1346 * vfs inode dirty code path for the inode the mft record belongs to or via the 1347 * vm page dirty code path for the page the mft record is in. 1431 * record and hence smaller than a page, so can simply return error on ntfs_writepage() 1451 /* Map, pin, and lock the mft record. */ ntfs_writepage() 1461 * record and retry the writepage. ntfs_writepage() 1498 /* Copy the data from the page to the mft record. */ ntfs_writepage() 1509 /* Finally, mark the mft record dirty, so it gets written back. */ ntfs_writepage() 1715 * mark_ntfs_record_dirty - mark an ntfs record dirty 1716 * @page: page containing the ntfs record to mark dirty 1717 * @ofs: byte offset within @page at which the ntfs record begins 1719 * Set the buffers and the page in which the ntfs record is located dirty. 1721 * The latter also marks the vfs inode the ntfs record belongs to dirty
|
H A D | layout.h | 88 s8 clusters_per_mft_record; /* Mft record size in clusters. */ 101 * Magic identifiers present at the beginning of all ntfs record containing 112 magic_RCRD = cpu_to_le32(0x44524352), /* Log record page. */ 117 /* Found in all ntfs record containing records. */ 174 * to the end of each sector protected by the update sequence record in which 176 * Number (usn), a cyclic counter of how many times the protected record has 189 NTFS_RECORD_TYPE magic; /* A four-byte magic identifying the record 192 from the start of the ntfs record. */ 200 * System files mft record numbers. All these files are always marked as used 203 * of the system files is always equal to their mft record number and it is 247 * information about the mft record in which they are present. 257 * mft references (aka file references or file record segment references) are 258 * used whenever a structure needs to refer to a record in the mft. 266 * times the referenced mft record has been (re)used. This has to match the 267 * sequence number of the mft record being referenced, otherwise the reference 277 * Assuming the standard mft record size of 1kb only the records (never mind 320 * The mft record header present at the beginning of every record in the mft. 333 /* 8*/ le64 lsn; /* $LogFile sequence number for this record. 334 Changed every time the record is modified. */ 335 /* 16*/ le16 sequence_number; /* Number of times this mft record has been 341 directory entries referencing this record. 347 directory entry from the mft record and 351 mft record from the start of the mft record. 356 /* 24*/ le32 bytes_in_use; /* Number of bytes used in this mft record. 359 record. This should be equal to the mft 360 record size. */ 363 pointing to the base mft record to which 364 this record belongs (this is then used to 366 in the base record which describes this 367 extension record and hence might need 368 modification when the extension record 372 mft record). */ 374 the next attribute added to this mft record. 376 NOTE: Every time the mft record is reused 381 /* 44*/ le32 mft_record_number; /* Number of this mft record. */ 384 * When (re)using the mft record, we place the update sequence array at this 390 * When reading we obviously use the data from the ntfs record header. 402 /* 8*/ le64 lsn; /* $LogFile sequence number for this record. 403 Changed every time the record is modified. */ 404 /* 16*/ le16 sequence_number; /* Number of times this mft record has been 410 directory entries referencing this record. 416 directory entry from the mft record and 420 mft record from the start of the mft record. 425 /* 24*/ le32 bytes_in_use; /* Number of bytes used in this mft record. 428 record. This should be equal to the mft 429 record size. */ 432 pointing to the base mft record to which 433 this record belongs (this is then used to 435 in the base record which describes this 436 extension record and hence might need 437 modification when the extension record 441 mft record). */ 443 the next attribute added to this mft record. 445 NOTE: Every time the mft record is reused 450 * When (re)using the mft record, we place the update sequence array at this 456 * When reading we obviously use the data from the ntfs record header. 626 * non-resident attribute record header (more precisely: X = 2^compression_unit 695 * Attribute record header. Always aligned to 8-byte boundary. 709 record. Note that the name is stored as a 711 just at the end of the record header. Then, 717 /* 14*/ le16 instance; /* The instance of this attribute record. This 718 number is unique within this mft record (see 727 attribute record. When creating, 754 record header aligned to 8-byte boundary. */ 836 * attribute of an mft record. 839 /* Note, this is a copy of the corresponding bit from the mft record, 843 /* Note, this is a copy of the corresponding bit from the mft record, 874 /* 16*/ sle64 last_mft_change_time; /* Time this mft record was last 958 * base mft record. 961 * - Attribute lists are only used when the attributes of mft record do not 962 * fit inside the mft record despite all attributes (that can be made 967 * large due to fragmentation that it overflows the mft record. 984 does not fit into one mft record and thus 987 record holds one extent of the attribute and 993 /* 16*/ leMFT_REF mft_reference;/* The reference of the mft record holding 1037 hence have been saved in this single filename record. */ 1062 /* 18*/ sle64 last_mft_change_time; /* Time this mft record was last 1064 /* 20*/ sle64 last_access_time; /* Time this mft record was last 1133 leMFT_REF mft_reference;/* Mft record containing the object_id in 2035 the mft record size and the index 2036 record size found in the boot sector 2074 * When reading use the data from the ntfs record header. 2091 leMFT_REF file_id; /* Mft record of the file containing the 2265 object_id of the mft record found in
|
H A D | attrib.h | 36 * @mrec: buffer containing mft record to search 37 * @attr: attribute record in @mrec where to begin/continue search 41 * attribute search functions. Initialize @mrec to point to the mft record to
|
H A D | index.h | 106 * containing the mft record containing the index root attribute. 126 * record containing the index root attribute dirty. This ensures the mft 127 * record, and hence the index root attribute, will be written out to disk 131 * attribute, mark the buffers belonging to the index record as well as the
|
H A D | lcnalloc.h | 66 * record. This is needed when ntfs_cluster_free() encounters unmapped runlist 67 * fragments and allows their mapping. If you do not have the mft record 102 * - If @ctx is NULL, the base mft record of @ni must not be mapped on 104 * - If @ctx is not NULL, the base mft record must be mapped on entry
|
H A D | aops.h | 61 * the ntfs record(s) contained in the page are valid or not using one of the 62 * ntfs_is_XXXX_record{,p}() macros, where XXXX is the record type you are
|
H A D | mst.c | 32 * magic of the ntfs record header being processed with "BAAD" (in memory only!) 116 * array header in the ntfs record before calling this function, otherwise it 120 * otherwise a random word will be used (whatever was in the record at that
|
H A D | volume.h | 85 s64 mft_data_pos; /* Mft record number at which to 86 allocate the next mft record. */ 100 mft record bitmap ($MFT/$BITMAP). */
|
H A D | inode.c | 157 * @mft_no: mft record number / inode number to obtain 212 * @type, @name, and @name_len, which is present in the base mft record 273 * and @name_len, which is present in the base mft record specified by the vfs 534 * ntfs_read_locked_inode() maps, pins and locks the mft record number i_ino 602 /* Transfer information from mft record into vfs and ntfs inodes. */ ntfs_read_locked_inode() 643 * Find the standard information attribute in the mft record. At this ntfs_read_locked_inode() 645 * in fact fail if the standard information is in an extent record, but ntfs_read_locked_inode() 910 /* We are done with the mft record, so we release it. */ ntfs_read_locked_inode() 978 * We are done with the mft record, so we release it. Otherwise ntfs_read_locked_inode() 1046 * name of this inode from the mft record as the name ntfs_read_locked_inode() 1155 /* We are done with the mft record, so we release it. */ ntfs_read_locked_inode() 1176 * attributes in the mft record and adding the allocated/compressed ntfs_read_locked_inode() 1210 * attribute inode described by @vi into memory from the base mft record 1465 * index inode described by @vi into memory from the base mft record described 1520 /* Map the mft record for the base inode. */ ntfs_read_locked_index_inode() 1615 /* We are done with the mft record, so we release it. */ ntfs_read_locked_index_inode() 1677 * We are done with the mft record, so we release it. Otherwise ntfs_read_locked_index_inode() 1813 /* Allocate enough memory to read the first mft record. */ ntfs_read_inode_mount() 1815 ntfs_error(sb, "Unsupported mft record size %i (max 64kiB).", ntfs_read_inode_mount() 1824 ntfs_error(sb, "Failed to allocate buffer for $MFT record 0."); ntfs_read_inode_mount() 1835 /* Load $MFT/$DATA's first mft record. */ ntfs_read_inode_mount() 1965 * to do some magic in order to have the necessary mft record ntfs_read_inode_mount() 1996 /* First entry has to be in the base mft record. */ ntfs_read_inode_mount() 2001 "mft record. Please report " ntfs_read_inode_mount() 2095 * re-read the mft record for $MFT, this time entering ntfs_read_inode_mount() 2256 * If the MFT record is dirty, we commit it before doing anything else. 2384 * Lock the runlist for writing and map the mft record to ensure it is ntfs_truncate() 2395 ntfs_error(vi->i_sb, "Failed to map mft record for inode 0x%lx " ntfs_truncate() 2414 "mft record. Inode 0x%lx is corrupt. " ntfs_truncate() 2502 /* Resize the attribute record to best fit the new attribute size. */ ntfs_truncate() 2514 * necessary data clearing in the attribute record. When the ntfs_truncate() 2559 * Not enough space in the mft record, try to make the attribute ntfs_truncate() 2582 ntfs_error(vol->sb, "Not enough space in the mft record/on " ntfs_truncate() 2610 // TODO: Attempt to move this attribute to an extent mft record, but ntfs_truncate() 2611 // only if it is not already the only attribute in an mft record in ntfs_truncate() 2720 * longer valid, we cannot resize the attribute record or build the ntfs_truncate() 2745 * Shrink the attribute record for the new mapping pairs array. Note, ntfs_truncate() 2754 * Generate the mapping pairs array directly into the attribute record. ntfs_truncate() 2801 /* Ensure the modified mft record is written out. */ ntfs_truncate() 2960 * marking the page (and in this case mft record) dirty but we do not implement 2988 /* Map, pin, and lock the mft record belonging to the inode. */ __ntfs_write_inode() 3038 * mark the mft record it is in dirty. We do this manually so that __ntfs_write_inode() 3041 * There is no need to mark the base inode nor the base mft record __ntfs_write_inode() 3042 * dirty, since we are going to write this mft record below in any case __ntfs_write_inode() 3043 * and the base mft record may actually not have been modified so it __ntfs_write_inode() 3049 * record will be cleaned and written out to disk below, i.e. before __ntfs_write_inode() 3059 /* Now the access times are updated, write the base mft record. */ __ntfs_write_inode()
|
H A D | file.c | 90 * bring it uptodate later, when doing the write to the mft record since we 170 * Do the zeroing in the mft record and update the attribute size in ntfs_attr_extend_initialized() 171 * the mft record. ntfs_attr_extend_initialized() 285 /* Now bring in sync the initialized_size in the mft record. */ ntfs_attr_extend_initialized() 1023 /* Map and lock the mft record and get the attribute record. */ ntfs_prepare_pages_for_non_resident_write() 1052 * have mapped the mft record. That is ok because we know the ntfs_prepare_pages_for_non_resident_write() 1084 * Resize the attribute record to fit the new mapping pairs ntfs_prepare_pages_for_non_resident_write() 1105 "record for the extended attribute " ntfs_prepare_pages_for_non_resident_write() 1106 "record. This case is not " ntfs_prepare_pages_for_non_resident_write() 1114 * record. ntfs_prepare_pages_for_non_resident_write() 1134 * size in the ntfs_inode structure and the attribute record. ntfs_prepare_pages_for_non_resident_write() 1301 * Resize the attribute record to its old size and rebuild the mapping ntfs_prepare_pages_for_non_resident_write() 1309 "record in error code path. Run " ntfs_prepare_pages_for_non_resident_write() 1329 /* Release the mft record and the attribute. */ ntfs_prepare_pages_for_non_resident_write() 1459 * the mft record. ntfs_commit_pages_after_non_resident_write() 1465 /* Map, pin, and lock the mft record. */ ntfs_commit_pages_after_non_resident_write() 1498 /* Mark the mft record dirty, so it gets written back. */ ntfs_commit_pages_after_non_resident_write() 1538 * in the inode and the mft record. 1549 * the copying into the mft record which means we save one atomic kmap. 1592 /* Map, pin, and lock the mft record. */ ntfs_commit_pages_after_write() 1624 /* Copy the received data from the page to the mft record. */ ntfs_commit_pages_after_write() 1633 * uptodate by copying data from the mft record to the page. ntfs_commit_pages_after_write() 1658 /* Mark the mft record dirty, so it gets written back. */ ntfs_commit_pages_after_write() 1971 * If @datasync is false, write the mft record and all associated extent mft 1975 * of the mft record and all associated extent mft records (this might still
|
/linux-4.1.27/fs/jbd2/ |
H A D | revoke.c | 22 * + Recovery: during recovery we record the transaction ID of all 39 * latter: journaling a block cancels any revoke record for that block 101 /* Each revoke record represents one single revoked block. During 143 struct jbd2_revoke_record_s *record; insert_revoke_hash() local 146 record = kmem_cache_alloc(jbd2_revoke_record_cache, GFP_NOFS); insert_revoke_hash() 147 if (!record) insert_revoke_hash() 150 record->sequence = seq; insert_revoke_hash() 151 record->blocknr = blocknr; insert_revoke_hash() 154 list_add(&record->hash, hash_list); insert_revoke_hash() 166 /* Find a revoke record in the journal's hash table. */ 172 struct jbd2_revoke_record_s *record; find_revoke_record() local 177 record = (struct jbd2_revoke_record_s *) hash_list->next; find_revoke_record() 178 while (&(record->hash) != hash_list) { find_revoke_record() 179 if (record->blocknr == blocknr) { find_revoke_record() 181 return record; find_revoke_record() 183 record = (struct jbd2_revoke_record_s *) record->hash.next; find_revoke_record() 367 * record against a buffer_head which is jbd2_journal_revoke() 422 struct jbd2_revoke_record_s *record; jbd2_journal_cancel_revoke() local 433 * full search for a revoke record. */ jbd2_journal_cancel_revoke() 442 record = find_revoke_record(journal, bh->b_blocknr); jbd2_journal_cancel_revoke() 443 if (record) { jbd2_journal_cancel_revoke() 447 list_del(&record->hash); jbd2_journal_cancel_revoke() 449 kmem_cache_free(jbd2_revoke_record_cache, record); jbd2_journal_cancel_revoke() 456 record = find_revoke_record(journal, bh->b_blocknr); jbd2_journal_cancel_revoke() 457 J_ASSERT_JH(jh, record == NULL); jbd2_journal_cancel_revoke() 492 struct jbd2_revoke_record_s *record; list_for_each() local 494 record = (struct jbd2_revoke_record_s *)list_entry; list_for_each() 496 record->blocknr, list_for_each() 533 struct jbd2_revoke_record_s *record; jbd2_journal_write_revoke_records() local 550 record = (struct jbd2_revoke_record_s *) jbd2_journal_write_revoke_records() 554 record, write_op); jbd2_journal_write_revoke_records() 556 list_del(&record->hash); jbd2_journal_write_revoke_records() 557 kmem_cache_free(jbd2_revoke_record_cache, record); jbd2_journal_write_revoke_records() 566 * Write out one revoke record. We need to create a new descriptor 575 struct jbd2_revoke_record_s *record, write_one_revoke_record() 602 /* Make sure we have a descriptor with space left for the record */ write_one_revoke_record() 629 cpu_to_be64(record->blocknr); write_one_revoke_record() 632 cpu_to_be32(record->blocknr); write_one_revoke_record() 687 * record all revoke records, including the tid of the latest instance 691 * (ie. has not been revoked by a revoke record in that or a subsequent 698 * First, setting revoke records. We create a new revoke record for 708 struct jbd2_revoke_record_s *record; jbd2_journal_set_revoke() local 710 record = find_revoke_record(journal, blocknr); jbd2_journal_set_revoke() 711 if (record) { jbd2_journal_set_revoke() 712 /* If we have multiple occurrences, only record the jbd2_journal_set_revoke() 713 * latest sequence number in the hashed record */ jbd2_journal_set_revoke() 714 if (tid_gt(sequence, record->sequence)) jbd2_journal_set_revoke() 715 record->sequence = sequence; jbd2_journal_set_revoke() 723 * that block been revoked? A revoke record with a given transaction 732 struct jbd2_revoke_record_s *record; jbd2_journal_test_revoke() local 734 record = find_revoke_record(journal, blocknr); jbd2_journal_test_revoke() 735 if (!record) jbd2_journal_test_revoke() 737 if (tid_gt(sequence, record->sequence)) jbd2_journal_test_revoke() 751 struct jbd2_revoke_record_s *record; jbd2_journal_clear_revoke() local 759 record = (struct jbd2_revoke_record_s*) hash_list->next; jbd2_journal_clear_revoke() 760 list_del(&record->hash); jbd2_journal_clear_revoke() 761 kmem_cache_free(jbd2_revoke_record_cache, record); jbd2_journal_clear_revoke() 570 write_one_revoke_record(journal_t *journal, transaction_t *transaction, struct list_head *log_bufs, struct buffer_head **descriptorp, int *offsetp, struct jbd2_revoke_record_s *record, int write_op) write_one_revoke_record() argument
|
/linux-4.1.27/fs/jbd/ |
H A D | revoke.c | 22 * + Recovery: during recovery we record the transaction ID of all 39 * latter: journaling a block cancels any revoke record for that block 101 /* Each revoke record represents one single revoked block. During 144 struct jbd_revoke_record_s *record; insert_revoke_hash() local 147 record = kmem_cache_alloc(revoke_record_cache, GFP_NOFS); insert_revoke_hash() 148 if (!record) insert_revoke_hash() 151 record->sequence = seq; insert_revoke_hash() 152 record->blocknr = blocknr; insert_revoke_hash() 155 list_add(&record->hash, hash_list); insert_revoke_hash() 167 /* Find a revoke record in the journal's hash table. */ 173 struct jbd_revoke_record_s *record; find_revoke_record() local 178 record = (struct jbd_revoke_record_s *) hash_list->next; find_revoke_record() 179 while (&(record->hash) != hash_list) { find_revoke_record() 180 if (record->blocknr == blocknr) { find_revoke_record() 182 return record; find_revoke_record() 184 record = (struct jbd_revoke_record_s *) record->hash.next; find_revoke_record() 370 * record against a buffer_head which is journal_revoke() 425 struct jbd_revoke_record_s *record; journal_cancel_revoke() local 436 * full search for a revoke record. */ journal_cancel_revoke() 445 record = find_revoke_record(journal, bh->b_blocknr); journal_cancel_revoke() 446 if (record) { journal_cancel_revoke() 450 list_del(&record->hash); journal_cancel_revoke() 452 kmem_cache_free(revoke_record_cache, record); journal_cancel_revoke() 459 record = find_revoke_record(journal, bh->b_blocknr); journal_cancel_revoke() 460 J_ASSERT_JH(jh, record == NULL); journal_cancel_revoke() 495 struct jbd_revoke_record_s *record; list_for_each() local 497 record = (struct jbd_revoke_record_s *)list_entry; list_for_each() 499 record->blocknr, list_for_each() 534 struct jbd_revoke_record_s *record; journal_write_revoke_records() local 551 record = (struct jbd_revoke_record_s *) journal_write_revoke_records() 555 record, write_op); journal_write_revoke_records() 557 list_del(&record->hash); journal_write_revoke_records() 558 kmem_cache_free(revoke_record_cache, record); journal_write_revoke_records() 567 * Write out one revoke record. We need to create a new descriptor 575 struct jbd_revoke_record_s *record, write_one_revoke_record() 592 /* Make sure we have a descriptor with space left for the record */ write_one_revoke_record() 618 cpu_to_be32(record->blocknr); write_one_revoke_record() 656 * record all revoke records, including the tid of the latest instance 660 * (ie. has not been revoked by a revoke record in that or a subsequent 667 * First, setting revoke records. We create a new revoke record for 677 struct jbd_revoke_record_s *record; journal_set_revoke() local 679 record = find_revoke_record(journal, blocknr); journal_set_revoke() 680 if (record) { journal_set_revoke() 681 /* If we have multiple occurrences, only record the journal_set_revoke() 682 * latest sequence number in the hashed record */ journal_set_revoke() 683 if (tid_gt(sequence, record->sequence)) journal_set_revoke() 684 record->sequence = sequence; journal_set_revoke() 692 * that block been revoked? A revoke record with a given transaction 701 struct jbd_revoke_record_s *record; journal_test_revoke() local 703 record = find_revoke_record(journal, blocknr); journal_test_revoke() 704 if (!record) journal_test_revoke() 706 if (tid_gt(sequence, record->sequence)) journal_test_revoke() 720 struct jbd_revoke_record_s *record; journal_clear_revoke() local 728 record = (struct jbd_revoke_record_s*) hash_list->next; journal_clear_revoke() 729 list_del(&record->hash); journal_clear_revoke() 730 kmem_cache_free(revoke_record_cache, record); journal_clear_revoke() 571 write_one_revoke_record(journal_t *journal, transaction_t *transaction, struct journal_head **descriptorp, int *offsetp, struct jbd_revoke_record_s *record, int write_op) write_one_revoke_record() argument
|
/linux-4.1.27/fs/hfs/ |
H A D | bfind.c | 41 /* Find the record in bnode that best matches key (not greater than...)*/ __hfs_brec_find() 83 fd->record = e; __hfs_brec_find() 93 /* Return allocated copy of node found, set recnum to best record */ hfs_brec_find() 128 if (fd->record < 0) hfs_brec_find() 173 while (cnt > fd->record) { hfs_brec_goto() 174 cnt -= fd->record + 1; hfs_brec_goto() 175 fd->record = bnode->num_recs - 1; hfs_brec_goto() 189 fd->record -= cnt; hfs_brec_goto() 191 while (cnt >= bnode->num_recs - fd->record) { hfs_brec_goto() 192 cnt -= bnode->num_recs - fd->record; hfs_brec_goto() 193 fd->record = 0; hfs_brec_goto() 207 fd->record += cnt; hfs_brec_goto() 210 len = hfs_brec_lenoff(bnode, fd->record, &off); hfs_brec_goto() 211 keylen = hfs_brec_keylen(bnode, fd->record); hfs_brec_goto()
|
H A D | brec.c | 17 /* Get the length and offset of the given record in the given node */ hfs_brec_lenoff() 29 /* Get the length of the key from a keyed record */ hfs_brec_keylen() 80 fd->record = -1; hfs_brec_insert() 85 /* new record idx and complete record size */ hfs_brec_insert() 86 rec = fd->record + 1; hfs_brec_insert() 184 rec_off = tree->node_size - (fd->record + 2) * 2; hfs_brec_remove() 193 fd->record, fd->keylength + fd->entrylength); hfs_brec_remove() 224 if (!fd->record) hfs_brec_remove() 280 if (fd->record + 1 < num_recs) { hfs_bnode_split() 281 /* new record is in the lower half, hfs_bnode_split() 291 fd->record -= num_recs; hfs_bnode_split() 369 if (fd->record < 0) hfs_brec_update_parent() 372 rec = fd->record; hfs_brec_update_parent() 397 rec = fd->record; hfs_brec_update_parent()
|
H A D | hfs.h | 181 /* The catalog record for a file */ 201 hfs_extent_rec ExtRec; /* first extent record 203 hfs_extent_rec RExtRec; /* first extent record 208 /* the catalog record for a directory */ 224 /* the catalog record for a thread */ 232 /* A catalog tree record */
|
/linux-4.1.27/drivers/s390/scsi/ |
H A D | zfcp_dbf.h | 21 * struct zfcp_dbf_rec_trigger - trace record for triggered recovery action 35 * struct zfcp_dbf_rec_running - trace record for running recovery 50 * enum zfcp_dbf_rec_id - recovery trace record id 60 * struct zfcp_dbf_rec - trace record for error recovery actions 61 * @id: unique number of recovery record type 88 * enum zfcp_dbf_san_id - SAN trace record identifier 89 * @ZFCP_DBF_SAN_REQ: request trace record id 90 * @ZFCP_DBF_SAN_RES: response trace record id 91 * @ZFCP_DBF_SAN_ELS: extended link service record id 99 /** struct zfcp_dbf_san - trace record for SAN requests and responses 100 * @id: unique number of recovery record type 116 * struct zfcp_dbf_hba_res - trace record for hba responses 132 * struct zfcp_dbf_hba_uss - trace record for unsolicited status 148 * enum zfcp_dbf_hba_id - HBA trace record identifier 149 * @ZFCP_DBF_HBA_RES: response trace record 150 * @ZFCP_DBF_HBA_USS: unsolicited status trace record 151 * @ZFCP_DBF_HBA_BIT: bit error trace record 161 * struct zfcp_dbf_hba - common trace record for HBA records 162 * @id: unique number of recovery record type 169 * @u: record type specific data 187 * enum zfcp_dbf_scsi_id - scsi trace record identifier 188 * @ZFCP_DBF_SCSI_CMND: scsi command trace record 195 * struct zfcp_dbf_scsi - common trace record for SCSI records 196 * @id: unique number of recovery record type 228 * struct zfcp_dbf_pay - trace record for unformatted payload information 229 * @area: area this record is originated from 230 * @counter: ascending record number
|
/linux-4.1.27/fs/freevxfs/ |
H A D | vxfs_olt.h | 84 u_int32_t olt_type; /* type of this record */ 85 u_int32_t olt_size; /* size of this record */ 92 u_int32_t olt_type; /* type of this record */ 93 u_int32_t olt_fsize; /* size of this free record */ 100 u_int32_t olt_type; /* type of this record */ 101 u_int32_t olt_size; /* size of this record */ 109 u_int32_t olt_type; /* type of this record */ 110 u_int32_t olt_size; /* size of this record */ 119 u_int32_t olt_type; /* type of this record */ 120 u_int32_t olt_size; /* size of this record */ 131 u_int32_t olt_type; /* type of this record */ 132 u_int32_t olt_size; /* size of this record */ 141 u_int32_t olt_size; /* size of this record */
|
/linux-4.1.27/tools/perf/ |
H A D | builtin-record.c | 2 * builtin-record.c 4 * Builtin record command: Record the profile of a workload 36 struct record { struct 50 static int record__write(struct record *rec, void *bf, size_t size) record__write() 66 struct record *rec = container_of(tool, struct record, tool); process_synthesized_event() 70 static int record__mmap_read(struct record *rec, int idx) record__mmap_read() 136 static int record__open(struct record *rec) record__open() 200 struct record *rec = container_of(tool, struct record, tool); process_sample_event() 207 static int process_buildids(struct record *rec) process_buildids() 237 *As for guest kernel when processing subcommand record&report, perf_event__synthesize_guest_os() 247 pr_err("Couldn't record guest kernel [%d]'s reference" perf_event__synthesize_guest_os() 257 pr_err("Couldn't record guest kernel [%d]'s reference" perf_event__synthesize_guest_os() 266 static int record__mmap_read_all(struct record *rec) record__mmap_read_all() 292 static void record__init_features(struct record *rec) record__init_features() 326 static int __cmd_record(struct record *rec, int argc, const char **argv) __cmd_record() 417 pr_err("Couldn't record tracing data.\n"); __cmd_record() 427 pr_err("Couldn't record kernel reference relocation symbol\n" __cmd_record() 434 pr_err("Couldn't record kernel module information.\n" __cmd_record() 522 fprintf(stderr, "[ perf record: Woken up %ld times to write data ]\n", waking); __cmd_record() 562 fprintf(stderr, "[ perf record: Captured and wrote %.3f MB %s%s ]\n", __cmd_record() 708 if (!strcmp(var, "record.call-graph")) perf_record_config() 709 var = "call-graph.record-mode"; /* fall-through */ perf_record_config() 799 "perf record [<options>] [<command>]", 800 "perf record [<options>] -- <command> [<options>]", 815 static struct record record = { variable in typeref:struct:record 847 * from builtin-record.c, i.e. use record_opts, 848 * perf_evlist__prepare_workload, etc instead of fork+exec'in 'perf record', 852 OPT_CALLBACK('e', "event", &record.evlist, "event", 855 OPT_CALLBACK(0, "filter", &record.evlist, "filter", 857 OPT_STRING('p', "pid", &record.opts.target.pid, "pid", 858 "record events on existing process id"), 859 OPT_STRING('t', "tid", &record.opts.target.tid, "tid", 860 "record events on existing thread id"), 861 OPT_INTEGER('r', "realtime", &record.realtime_prio, 863 OPT_BOOLEAN(0, "no-buffering", &record.opts.no_buffering, 865 OPT_BOOLEAN('R', "raw-samples", &record.opts.raw_samples, 867 OPT_BOOLEAN('a', "all-cpus", &record.opts.target.system_wide, 869 OPT_STRING('C', "cpu", &record.opts.target.cpu_list, "cpu", 871 OPT_U64('c', "count", &record.opts.user_interval, "event period to sample"), 872 OPT_STRING('o', "output", &record.file.path, "file", 874 OPT_BOOLEAN_SET('i', "no-inherit", &record.opts.no_inherit, 875 &record.opts.no_inherit_set, 877 OPT_UINTEGER('F', "freq", &record.opts.user_freq, "profile at this frequency"), 878 OPT_CALLBACK('m', "mmap-pages", &record.opts.mmap_pages, "pages", 881 OPT_BOOLEAN(0, "group", &record.opts.group, 883 OPT_CALLBACK_NOOPT('g', NULL, &record.opts, 886 OPT_CALLBACK(0, "call-graph", &record.opts, 892 OPT_BOOLEAN('s', "stat", &record.opts.inherit_stat, 894 OPT_BOOLEAN('d', "data", &record.opts.sample_address, 896 OPT_BOOLEAN('T', "timestamp", &record.opts.sample_time, "Sample timestamps"), 897 OPT_BOOLEAN('P', "period", &record.opts.period, "Sample period"), 898 OPT_BOOLEAN('n', "no-samples", &record.opts.no_samples, 900 OPT_BOOLEAN('N', "no-buildid-cache", &record.no_buildid_cache, 902 OPT_BOOLEAN('B', "no-buildid", &record.no_buildid, 904 OPT_CALLBACK('G', "cgroup", &record.evlist, "name", 907 OPT_UINTEGER('D', "delay", &record.opts.initial_delay, 909 OPT_STRING('u', "uid", &record.opts.target.uid_str, "user", 912 OPT_CALLBACK_NOOPT('b', "branch-any", &record.opts.branch_stack, 916 OPT_CALLBACK('j', "branch-filter", &record.opts.branch_stack, 919 OPT_BOOLEAN('W', "weight", &record.opts.sample_weight, 921 OPT_BOOLEAN(0, "transaction", &record.opts.sample_transaction, 923 OPT_BOOLEAN(0, "per-thread", &record.opts.target.per_thread, 925 OPT_BOOLEAN('I', "intr-regs", &record.opts.sample_intr_regs, 927 OPT_BOOLEAN(0, "running-time", &record.opts.running_time, 929 OPT_CALLBACK('k', "clockid", &record.opts, 940 struct record *rec = &record; cmd_record() 1010 err = __cmd_record(&record, argc, argv); cmd_record()
|
H A D | perf-with-kcore.sh | 19 echo " <perf sub-command> can be record, script, report or inject" >&2 53 ("$PERF" record -o perf.data.junk $PERF_OPTIONS -- sleep 60) >/dev/null 2>/dev/null & 153 record() function 196 echo "$PERF record -o $PERF_DATA_DIR/perf.data $PERF_OPTIONS -- $*" 197 "$PERF" record -o "$PERF_DATA_DIR/perf.data" $PERF_OPTIONS -- $* || true 235 "record") 245 record $*
|
H A D | builtin-buildid-list.c | 74 * the record stream. Buildids are stored as RECORD_HEADER_BUILD_ID perf_session__list_build_ids()
|
/linux-4.1.27/include/linux/mtd/ |
H A D | qinfo.h | 30 * each qinfo record 31 * @major - major number of qinfo record 32 * @major - minor number of qinfo record 33 * @id_str - descriptive string to access the record 34 * @desc - detailed description for the qinfo record
|
/linux-4.1.27/fs/hfsplus/ |
H A D | bfind.c | 112 /* Find the record in bnode that best matches key (not greater than...)*/ __hfs_brec_find() 151 fd->record = e; __hfs_brec_find() 162 /* Return allocated copy of node found, set recnum to best record */ hfs_brec_find() 197 if (fd->record < 0) hfs_brec_find() 242 while (cnt > fd->record) { hfs_brec_goto() 243 cnt -= fd->record + 1; hfs_brec_goto() 244 fd->record = bnode->num_recs - 1; hfs_brec_goto() 258 fd->record -= cnt; hfs_brec_goto() 260 while (cnt >= bnode->num_recs - fd->record) { hfs_brec_goto() 261 cnt -= bnode->num_recs - fd->record; hfs_brec_goto() 262 fd->record = 0; hfs_brec_goto() 276 fd->record += cnt; hfs_brec_goto() 279 len = hfs_brec_lenoff(bnode, fd->record, &off); hfs_brec_goto() 280 keylen = hfs_brec_keylen(bnode, fd->record); hfs_brec_goto()
|
H A D | brec.c | 18 /* Get the length and offset of the given record in the given node */ hfs_brec_lenoff() 30 /* Get the length of the key from a keyed record */ hfs_brec_keylen() 78 fd->record = -1; hfs_brec_insert() 83 /* new record idx and complete record size */ hfs_brec_insert() 84 rec = fd->record + 1; hfs_brec_insert() 186 rec_off = tree->node_size - (fd->record + 2) * 2; hfs_brec_remove() 195 fd->record, fd->keylength + fd->entrylength); hfs_brec_remove() 228 if (!fd->record) hfs_brec_remove() 284 if (fd->record + 1 < num_recs) { hfs_bnode_split() 285 /* new record is in the lower half, hfs_bnode_split() 295 fd->record -= num_recs; hfs_bnode_split() 373 if (fd->record < 0) hfs_brec_update_parent() 376 rec = fd->record; hfs_brec_update_parent() 402 rec = fd->record; hfs_brec_update_parent()
|
/linux-4.1.27/arch/s390/appldata/ |
H A D | appldata.h | 37 void *data; /* record data */ 38 unsigned int size; /* size of record */
|
H A D | appldata_os.c | 37 * The record layout is documented in the Linux for zSeries Device Drivers 59 u32 sync_count_1; /* after VM collected the record data, */ 61 same. If not, the record has been updated on 176 pr_err("Maximum OS record size %i exceeds the maximum " appldata_os_init() 177 "record size %i\n", max_size, APPLDATA_MAX_REC_SIZE); appldata_os_init()
|
H A D | appldata_net_sum.c | 28 * The record layout is documented in the Linux for zSeries Device Drivers 34 u32 sync_count_1; /* after VM collected the record data, */ 36 same. If not, the record has been updated on
|
H A D | appldata_mem.c | 32 * The record layout is documented in the Linux for zSeries Device Drivers 38 u32 sync_count_1; /* after VM collected the record data, */ 40 same. If not, the record has been updated on
|
/linux-4.1.27/include/acpi/ |
H A D | apei.h | 36 int erst_write(const struct cper_record_header *record); 41 ssize_t erst_read(u64 record_id, struct cper_record_header *record,
|
/linux-4.1.27/arch/m68k/kernel/ |
H A D | setup_mm.c | 145 static void __init m68k_parse_bootinfo(const struct bi_record *record) m68k_parse_bootinfo() argument 149 save_bootinfo(record); m68k_parse_bootinfo() 151 while ((tag = be16_to_cpu(record->tag)) != BI_LAST) { m68k_parse_bootinfo() 153 const void *data = record->data; m68k_parse_bootinfo() 154 uint16_t size = be16_to_cpu(record->size); m68k_parse_bootinfo() 192 unknown = amiga_parse_bootinfo(record); m68k_parse_bootinfo() 194 unknown = atari_parse_bootinfo(record); m68k_parse_bootinfo() 196 unknown = mac_parse_bootinfo(record); m68k_parse_bootinfo() 198 unknown = q40_parse_bootinfo(record); m68k_parse_bootinfo() 200 unknown = bvme6000_parse_bootinfo(record); m68k_parse_bootinfo() 202 unknown = mvme16x_parse_bootinfo(record); m68k_parse_bootinfo() 204 unknown = mvme147_parse_bootinfo(record); m68k_parse_bootinfo() 206 unknown = hp300_parse_bootinfo(record); m68k_parse_bootinfo() 208 unknown = apollo_parse_bootinfo(record); m68k_parse_bootinfo() 215 record = (struct bi_record *)((unsigned long)record + size); m68k_parse_bootinfo()
|
/linux-4.1.27/scripts/ |
H A D | objdiff | 14 # $ ./scripts/objdiff record path/to/*.o 18 # $ ./scripts/objdiff record path/to/*.o 39 echo >&2 " record <list of object files or directories>" 143 record)
|
H A D | recordmcount.pl | 27 # this point. So we can't use this kind of offsets to record the final 32 # compute the final address according to the information we record. 130 # Acceptable sections to record. 179 # record local functions. 316 # instruction or the addiu one. herein, we record the address of the 500 # Only record text sections that we know are safe 533 # is this a call site to mcount? If so, record it to print later
|
/linux-4.1.27/fs/jfs/ |
H A D | jfs_logmgr.h | 45 * lmLogInit(), lmLogShutdown(), and logRedo() to record status 75 __le32 end; /* 4: addr of last log record set by logredo */ 126 __le16 eor; /* 2: end-of-log offset of lasrt record write */ 129 __le32 data[LOGPSIZE / 4 - 4]; /* log record area */ 143 * log record 151 * record is written to the log on disk, undo discards the copy 154 * a log record consists of a data area of variable length followed by 161 * (sometimes a DUMMY record is inserted so that at least one record ends 162 * on every page or the longest record is placed on at most two pages). 164 * the last record on a page. 167 /* log record types */ 177 /* REDOPAGE/NOREDOPAGE log record data type */ 190 /* UPDATEMAP log record descriptor type */ 206 __le32 backchain; /* 4: ptr to prev record of same transaction */ 207 __le16 type; /* 2: record type */ 208 __le16 length; /* 2: length of data in record (in byte) */ 233 __le16 type; /* 2: REDOPAGE record type */ 241 * do not apply after-image records which precede this record 249 __le16 type; /* 2: NOREDOPAGE record type */ 265 __le16 type; /* 2: UPDATEMAP record type */ 274 * record in the log with the any of the 4 page block 278 * the same fields in the REDOPAGE record format. 310 __le32 type; /* 4: FREEXTENT record type */ 319 * do not apply records which precede this record in the log 340 __le32 type; /* 4: NEWPAGE record type */ 387 int eor; /* 4: eor of last record in eol page */ 407 int syncpt; /* 4: addr of last syncpt record */ 459 int l_eor; /* 4: log record eor */ 460 int l_ceor; /* 4: committed log record eor */
|
H A D | jfs_txnmgr.h | 59 s32 pn; /* commit record log page number */ 60 s32 eor; /* commit record eor */ 282 /* log record descriptor on 64-bit boundary */ 283 struct lrd lrd; /* : log record descriptor */
|
H A D | jfs_mount.c | 284 * write MOUNT log record of the file system jfs_mount_rw() 439 /* record log's dev_t and mount serial number */ updateSuper() 483 * function: write a MOUNT log record for file system. 485 * MOUNT record keeps logredo() from processing log records 489 * note: MOUNT record is at aggregate level, not at fileset level, 491 * (e.g., AFTER record of extent allocation) have to be processed
|
H A D | jfs_btree.h | 108 * record the path traversed during the search; 109 * top frame record the leaf page/entry selected.
|
H A D | jfs_logmgr.c | 229 * FUNCTION: write a log record; 233 * RETURN: lsn - offset to the next log record to write (end-of-log); 324 * write the log record lmLog() 348 * FUNCTION: move the log record to current log page 389 * move log record data lmWriteRecord() 482 * move log record descriptor lmWriteRecord() 504 * end of log record descriptor lmWriteRecord() 507 /* update last log record eor */ lmWriteRecord() 599 /* every tblk who has COMMIT record on the current page, lmNextPage() 602 * of writing its COMMIT record on the page before lmNextPage() 604 * who wrote COMMIT record may have been suspended lmNextPage() 928 * FUNCTION: write log SYNCPT record for specified log 981 * write a SYNCPT record with syncpt = sync. lmLogSync() 1054 * FUNCTION: write log SYNCPT record for specified log 1252 * write SYNCPT log record. 1379 * write the first SYNCPT record with syncpoint = 0 lmLogInit() 1645 * write log syncpt record. 1669 * write the last SYNCPT record with syncpoint = 0 lmLogShutdown() 1777 * activation of the file system before any log record lmLogFileSystem() 1778 * (MOUNT record) of the file system, and at file system lmLogFileSystem() 2410 * page 2 - log data page: A SYNC log record is written lmLogFormat() 2459 * write a SYNCPT log record is written to this page lmLogFormat()
|
/linux-4.1.27/drivers/infiniband/ulp/ipoib/ |
H A D | ipoib_verbs.c | 297 struct ib_event *record) ipoib_event() 302 if (record->element.port_num != priv->port) ipoib_event() 305 ipoib_dbg(priv, "Event %d on device %s port %d\n", record->event, ipoib_event() 306 record->device->name, record->element.port_num); ipoib_event() 308 if (record->event == IB_EVENT_SM_CHANGE || ipoib_event() 309 record->event == IB_EVENT_CLIENT_REREGISTER) { ipoib_event() 311 } else if (record->event == IB_EVENT_PORT_ERR || ipoib_event() 312 record->event == IB_EVENT_PORT_ACTIVE || ipoib_event() 313 record->event == IB_EVENT_LID_CHANGE) { ipoib_event() 315 } else if (record->event == IB_EVENT_PKEY_CHANGE) { ipoib_event() 296 ipoib_event(struct ib_event_handler *handler, struct ib_event *record) ipoib_event() argument
|
/linux-4.1.27/drivers/fmc/ |
H A D | fmc-sdb.c | 51 arr->record = kzalloc(sizeof(arr->record[0]) * n, GFP_KERNEL); __fmc_scan_sdb_tree() 53 if (!arr->record || !arr->subtree) { __fmc_scan_sdb_tree() 54 kfree(arr->record); __fmc_scan_sdb_tree() 66 for (j = 0; j < sizeof(arr->record[0]); j += 4) { __fmc_scan_sdb_tree() 67 *(uint32_t *)((void *)(arr->record + i) + j) = __fmc_scan_sdb_tree() 70 r = &arr->record[i]; __fmc_scan_sdb_tree() 116 kfree(arr->record); __fmc_sdb_free() 179 r = &arr->record[i]; __fmc_show_sdb_tree() 265 r = &tree->record[i]; fmc_find_sdb_device()
|
H A D | fmc-dump.c | 95 line = (void *)fmc->sdb->record; fmc_dump_sdb()
|
/linux-4.1.27/kernel/ |
H A D | latencytop.c | 114 unsigned long record = lat->backtrace[q]; account_global_scheduler_latency() local 116 if (latency_record[i].backtrace[q] != record) { account_global_scheduler_latency() 122 if (record == 0 || record == ULONG_MAX) account_global_scheduler_latency() 143 * Iterator to store a backtrace into a latency record entry 157 * __account_scheduler_latency - record an occurred latency 204 unsigned long record = lat.backtrace[q]; __account_scheduler_latency() local 206 if (mylat->backtrace[q] != record) { __account_scheduler_latency() 212 if (record == 0 || record == ULONG_MAX) __account_scheduler_latency()
|
H A D | audit.h | 42 * syscall record available if some 48 * record at syscall exit time. */ 81 bool hidden; /* don't log this record */ 92 unsigned char type; /* record type */ 111 unsigned int serial; /* serial number for record */ 129 char *filterkey; /* key for rule that triggered record */
|
H A D | auditsc.c | 745 * record (i.e., the state is AUDIT_SETUP_CONTEXT or AUDIT_BUILD_CONTEXT). 1092 * first record needs to say how long the original string was audit_log_single_execve_arg() 1443 /* Send end of event record to help user space know we are finished */ audit_log_exit() 1479 * audit_syscall_entry - fill in an audit record at syscall entry 1490 * then the record will be written at syscall exit time (otherwise, it 1797 /* match the correct record type */ __audit_inode() 1903 /* create a new, "anonymous" parent record */ __audit_inode_child() 2035 * __audit_mq_open - record audit data for a POSIX MQ open 2057 * __audit_mq_sendrecv - record audit data for a POSIX MQ timed send/receive 2083 * __audit_mq_notify - record audit data for a POSIX MQ notify 2103 * __audit_mq_getsetattr - record audit data for a POSIX MQ get/set attribute 2117 * audit_ipc_obj - record audit data for ipc object 2133 * audit_ipc_set_perm - record audit data for new ipc permissions 2162 * audit_socketcall - record audit data for sys_socketcall 2180 * __audit_fd_pair - record audit data for pipe and socketpair 2193 * audit_sockaddr - record audit data for sys_bind, sys_connect, sys_sendto 2228 * audit_signal_info - record signal info for shutting down audit subsystem 2232 * If the audit subsystem is being terminated, record the task (pid) 2382 * audit_core_dumps - record information about processes that end abnormally 2386 * should record the event for investigation.
|
H A D | audit.c | 27 * b) Small when syscall auditing is enabled and no audit record 28 * is generated (defer as much work as possible to record 35 * then a syscall record will be generated automatically for the 173 /* The audit_buffer is used when formatting an audit record. The caller 174 * locks briefly to get the record off the freelist or to allocate the 1278 * audit_serial - compute a serial number for the audit record 1280 * Compute a serial number for the audit record. Audit records are 1282 * audit record may be written in several pieces. The timestamp of the 1283 * record and this serial number are used by the user-space tools to 1284 * determine which pieces belong to the same audit record. The 1340 * syscall, then the syscall is marked as auditable and an audit record 1724 * audit_log_name - produce AUDIT_PATH record from struct audit_names 1728 * @record_num: record number to report when handling a list of names 1790 /* log the audit_names record type */ audit_log_name() 1929 /* Generate AUDIT_PATH record with object. */ audit_log_link_denied() 1938 * audit_log_end - end one audit record 1981 * audit_log - Log an audit record
|
/linux-4.1.27/samples/kfifo/ |
H A D | record-example.c | 2 * Sample dynamic sized record fifo implementation 17 * This module shows how to create a variable sized record fifo. 24 #define PROC_FIFO "record-fifo" 78 printk(KERN_INFO "record fifo test start\n"); testfunc() 82 /* show the size of the next record in the fifo */ testfunc() 97 /* show the first record without removing from the fifo */ testfunc()
|
/linux-4.1.27/drivers/isdn/hysdn/ |
H A D | hysdn_pof.h | 28 /* the POF file record containing the boot loader image 48 /*--------------------------------------POF file record structs------------*/ 55 typedef struct PofRecHdr_tag { /* Pof record header */
|
H A D | hysdn_boot.c | 40 unsigned long pof_reclen;/* total length of pof record data */ 41 unsigned long pof_recoffset;/* actual offset inside pof record */ 44 tPofRecHdr PofRecHdr; /* header for actual record/chunk */ 54 /* before starting any decryption on any POF record. */ 81 /* pof_handle_data executes the required actions dependent on the active record */ 92 /* handle the different record types */ pof_handle_data() 159 break; /* simply skip record */ pof_handle_data() 218 hysdn_addlog(card, "POF: got record id=0x%lx length=%ld ", pof_write_buffer() 227 if (!boot->last_error) { /* no data inside record */ pof_write_buffer()
|
/linux-4.1.27/drivers/s390/char/ |
H A D | vmur.h | 2 * Linux driver for System z and s390 unit record devices 14 #define DEV_CLASS_UR_I 0x20 /* diag210 unit record input device class */ 15 #define DEV_CLASS_UR_O 0x10 /* diag210 unit record output device class */ 17 * we only support z/VM's default unit record devices:
|
H A D | vmur.c | 2 * Linux driver for System z and s390 unit record devices 29 * Unit record device support is implemented as a character device driver. 32 * to the unit record device with devno abcd. 33 * I/O to virtual unit record devices is handled as follows: 36 * Writes: The CCW used is WRITE_CCW_CMD (0x01). The device's record length 41 static char ur_banner[] = "z/VM virtual unit record device driver"; 44 MODULE_DESCRIPTION("s390 z/VM virtual unit record device driver"); 51 /* We put the device's record length (for writes) in the driver_info field */ 181 pr_err("Unit record device %s is busy, %s refusing to " ur_pm_suspend() 331 * reclen sysfs attribute - The record length to be used for write CCWs 461 * record 464 * cc=3 record specified is beyond EOF 466 static int diag_position_to_record(int devno, int record) diag_position_to_record() argument 470 cc = diag14(record, devno, 0x28); diag_position_to_record() 818 * unit record device. 849 /* validate virtual unit record device */ ur_probe()
|
H A D | vmlogrdr.c | 46 * so the maximum size for record data is a little less then 191 /* just in case we're sleeping waiting for a record */ vmlogrdr_iucv_path_severed() 421 /* receive second half of a record */ vmlogrdr_receive_data() 426 /* receive a new record: vmlogrdr_receive_data() 427 * We need to return the total length of the record vmlogrdr_receive_data() 437 * If the record is bigger than our buffer, we receive only vmlogrdr_receive_data() 447 /* An rc of 5 indicates that the record was bigger than vmlogrdr_receive_data() 449 * record was purged befor we could receive it. vmlogrdr_receive_data() 463 /* the whole record has been captured, vmlogrdr_receive_data() 492 /* copy only up to end of record */ vmlogrdr_read()
|
/linux-4.1.27/drivers/staging/wlan-ng/ |
H A D | prism2fw.c | 123 /* s-record image processing */ 141 /* S7 record (there _better_ be only one) */ 267 /* clear the pda and add an initial END record */ prism2_fwapply() 370 * an S3 CRC record. Currently, we don't actually do a CRC we just 523 /* Expand the chunk if there is a CRC record at */ mkimage() 630 pr_err("no end record found or invalid lengths in PDR data, exiting. %x %d\n", mkpdrlist() 672 /* for each plug record */ plugimage() 751 * a valid PDAEND record in the raw PDA data. 800 * file. Each record in the fw file will either be a plain data record, 801 * a start address record, or other records used for plugging. 806 * Note also that the start address record, originally an S7 record in 807 * the srec file, is expected in the fw file to be like a data record but 818 * The S7 record's (there should be only one) address value gets 819 * converted to an S3 record with address of 0xff400000, with the 825 * 0xff000000 - Plug record, data field format: 831 * 0xff100000 - CRC16 generation record, data field format: 837 * 0xff200000 - Info record, data field format: 845 * 0xff400000 - Start address record, data field format: 850 * record firmware image (ihex record structure) in kernel memory 856 static int read_fwfile(const struct ihex_binrec *record) read_fwfile() argument 866 while (record) { read_fwfile() 870 len = be16_to_cpu(record->len); read_fwfile() 871 addr = be32_to_cpu(record->addr); read_fwfile() 874 ptr32 = (u32 *) record->data; read_fwfile() 875 ptr16 = (u16 *) record->data; read_fwfile() 881 pr_debug(" S7 start addr, record=%d addr=0x%08x\n", read_fwfile() 890 pr_debug(" S3 plugrec, record=%d itemcode=0x%08x addr=0x%08x len=%d\n", read_fwfile() 907 pr_debug(" S3 crcrec, record=%d addr=0x%08x len=%d write=0x%08x\n", read_fwfile() 922 pr_debug(" S3 inforec, record=%d len=0x%04x type=0x%04x\n", read_fwfile() 945 default: /* Data record */ read_fwfile() 948 s3data[ns3data].data = (uint8_t *) record->data; read_fwfile() 956 record = ihex_next_binrec(record); read_fwfile()
|
H A D | prism2mib.c | 76 #define MIB_TMP_MAXLEN 200 /* Max length of RID record (in bytes). */ 354 * MIB record parameters: 360 * mib MIB record. 404 * MIB record parameters: 410 * mib MIB record. 451 * MIB record parameters: 457 * mib MIB record. 508 * MIB record parameters: 514 * mib MIB record. 558 * MIB record parameters: 564 * mib MIB record. 600 * MIB record parameters: 606 * mib MIB record. 636 * MIB record parameters: 642 * mib MIB record. 685 * MIB record parameters: 691 * mib MIB record.
|
/linux-4.1.27/arch/s390/include/uapi/asm/ |
H A D | monwriter.h | 15 #define MONWRITE_GEN_EVENT 0x02 /* generate event record */
|
H A D | vtoc.h | 78 __u8 DS4DEVI; /* non-last keyed record overhead */ 79 __u8 DS4DEVL; /* last keyed record overhead */ 80 __u8 DS4DEVK; /* non-keyed record overhead differential */ 105 __u8 DS1RECFM; /* record format */ 108 __u16 DS1LRECL; /* record length */
|
/linux-4.1.27/drivers/net/wireless/ath/wil6210/ |
H A D | fw_inc.c | 137 wil_err_fw(wil, "data record too short: %zu\n", size); fw_handle_data() 145 wmb(); /* finish before processing next record */ fw_handle_data() 159 wil_err_fw(wil, "bad size for fill record: %zu\n", size); fw_handle_fill() 179 wmb(); /* finish before processing next record */ fw_handle_fill() 210 wil_err_fw(wil, "record size not aligned on %zu: %zu\n", fw_handle_direct_write() 230 wmb(); /* finish before processing next record */ fw_handle_direct_write() 271 wil_err_fw(wil, "gateway record too short: %zu\n", size); fw_handle_gateway_data() 276 wil_err_fw(wil, "gateway record data size" fw_handle_gateway_data() 285 wil_dbg_fw(wil, "gw write record [%3d] blocks, cmd 0x%08x\n", fw_handle_gateway_data() 330 wil_err_fw(wil, "gateway4 record too short: %zu\n", size); fw_handle_gateway_data4() 335 wil_err_fw(wil, "gateway4 record data size" fw_handle_gateway_data4() 344 wil_dbg_fw(wil, "gw4 write record [%3d] blocks, cmd 0x%08x\n", fw_handle_gateway_data4() 409 wil_err_fw(wil, "unknown record type: %d\n", type); wil_fw_handle_record() 435 wil_err_fw(wil, "unaligned record size: %zu\n", wil_fw_load() 448 " record type %d [%zd bytes]\n", wil_fw_load()
|
H A D | fw.h | 35 __le32 size; /* whole record, bytes after head */ 55 * for informational purpose, data_size is @head.size from record header 78 * data_size is @head.size where @head is record header 94 * First record of every file 101 __le32 data_len; /* total data in file, including this record */
|
/linux-4.1.27/kernel/gcov/ |
H A D | gcc_3_4.c | 327 * @record: record type 337 int record; member in struct:gcov_iterator 401 iter->record = 0; gcov_iter_start() 414 /* Mapping of logical record number to actual file content. */ 427 * gcov_iter_next - advance file iterator to next logical record 434 switch (iter->record) { gcov_iter_next() 441 /* Advance to next record */ gcov_iter_next() 442 iter->record++; gcov_iter_next() 450 iter->record = 9; gcov_iter_next() 460 iter->record = 7; gcov_iter_next() 469 iter->record = 3; gcov_iter_next() 471 iter->record = -1; gcov_iter_next() 475 if (iter->record == -1) gcov_iter_next() 525 switch (iter->record) { gcov_iter_write()
|
/linux-4.1.27/arch/ia64/kernel/ |
H A D | mca_drv.c | 39 /* max size of SAL error record (default) */ 69 * This pool keeps pointers to the section part of SAL error record 184 * @slpi: pointer to record of processor error section 213 * mca_make_slidx - Make index of SAL error record 214 * @buffer: pointer to SAL error record 215 * @slidx: pointer to index of SAL error record 218 * 1 if record has platform error / 0 if not 236 * Initialize index referring current record mca_make_slidx() 305 * init_record_index_pools - Initialize pool of lists for SAL record index 332 * so we preallocate enough memory to handle a SAL record. init_record_index_pools() 338 * (now we can estimate the maxinum of section in a record.) init_record_index_pools() 483 * @slidx: pointer of index of SAL error record 565 * @slidx: pointer of index of SAL error record 642 * @slidx: pointer of index of SAL error record 711 * On account of strange SAL error record, we cannot recover. recover_from_processor_error() 713 return fatal_mca("Strange SAL record"); recover_from_processor_error() 718 * @rec: pointer to a SAL error record 734 /* Make index of SAL error record */ mca_try_to_recover() 744 /* Weird SAL record ... We can't do anything */ mca_try_to_recover() 745 return fatal_mca("Weird SAL record"); mca_try_to_recover() 792 MODULE_PARM_DESC(sal_rec_max, "Max size of SAL error record");
|
H A D | salinfo.c | 13 * Replace IPI with set_cpus_allowed() to read a record from the required cpu. 16 * Cache the record across multi-block reads from user space. 28 * record is available in SAL. 115 * close -> unchanged. Free record areas. 121 * read data -> return the INIT/MCA/CMC/CPE record. 122 * close -> unchanged. Keep record areas. 129 * close -> unchanged. Keep record areas. 133 * action then closes it again. The record areas are only freed at close when 151 u8 saved_num; /* using a saved record? */ 164 * record. 174 * invoked on the cpu that generated the error record. 224 * when user space processes the record. Save the record id to identify 443 /* saved record changed by mca.c since interrupt, discard it */ salinfo_log_new_read() 508 /* clearing a record may make a new record visible */ salinfo_log_clear()
|
H A D | mca_drv.h | 82 /* slidx: index of SAL log error record */
|
/linux-4.1.27/include/uapi/linux/nfsd/ |
H A D | cld.h | 32 Cld_Create, /* create a record for this cm_id */ 33 Cld_Remove, /* remove record of this cm_id */
|
/linux-4.1.27/tools/testing/selftests/powerpc/tm/ |
H A D | tm-resched-dscr.c | 15 * Now that we *may* have been preempted, record the DSCR and TEXASR SPRS. 64 /* record DSCR and TEXASR */ test_body()
|
/linux-4.1.27/include/linux/i2c/ |
H A D | pcf857x.h | 25 * record which pins are used for input or output, record which output
|
/linux-4.1.27/include/linux/ |
H A D | ihex.h | 23 /* Find the next record, taking into account the 4-byte alignment */ 46 /* Point to next record... */ ihex_validate_fw()
|
H A D | sdb.h | 18 * magic number at the head of the interconnect record 48 /* Type of the SDB record */ 62 * record, version is 1. The bus type is enumerated later. 118 * this informative record
|
H A D | fmc-sdb.h | 30 union sdb_record *record; /* copies of the struct */ member in struct:sdb_array
|
H A D | lsm_audit.h | 43 /* Auxiliary data to use in generating the audit record. */
|
H A D | tracepoint.h | 359 * and its 'fast binary record' layout. 387 * * Fast binary tracing: define the trace record via 391 * * This is how the trace record is structured and will 417 * * Assign the entry into the trace record, by embedding 419 * * can refer to the trace record as '__entry' - 436 * * Formatted output of a trace record via TP_printk(). 453 * it is also used to expose a structured trace record in
|
H A D | kmsg_dump.h | 37 * through the record iterator
|
H A D | cper.h | 27 /* CPER record signature and the size */ 34 * CPER record header revision, used in revision field in struct 40 * CPER record length contains the CPER fields which are relevant for further 71 * Notification type used to generate error record, used in 286 * of the record header */
|
/linux-4.1.27/drivers/scsi/lpfc/ |
H A D | lpfc_hbadisc.c | 1169 * from the lpfc_fcf_pri record. 1234 * @new_fcf_record: pointer to fcf record. 1236 * This routine compare the fcf record's fabric name with provided 1265 * @new_fcf_record: pointer to fcf record. 1267 * This routine compare the fcf record's switch name with provided 1296 * @new_fcf_record: pointer to fcf record. 1298 * This routine compare the fcf record's mac address with HBA's 1327 * lpfc_update_fcf_record - Update driver fcf record 1328 * __lpfc_update_fcf_record_pri - update the lpfc_fcf_pri record. 1331 * @new_fcf_record: pointer to hba fcf record. 1333 * This routine updates the driver FCF priority record from the new HBA FCF 1334 * record. This routine is called with the host lock held. 1345 /* FCF record priority */ __lpfc_update_fcf_record_pri() 1352 * @fcf: pointer to driver fcf record. 1353 * @new_fcf_record: pointer to fcf record. 1356 * record to lpfc_hba data structure. 1386 /* FCF record index */ lpfc_copy_fcf_record() 1388 /* FCF record priority */ lpfc_copy_fcf_record() 1410 * lpfc_update_fcf_record - Update driver fcf record 1412 * @fcf_rec: pointer to driver fcf record. 1413 * @new_fcf_record: pointer to hba fcf record. 1414 * @addr_mode: address mode to be set to the driver fcf record. 1415 * @vlan_id: vlan tag to be set to the driver fcf record. 1416 * @flag: flag bits to be set to the driver fcf record. 1418 * This routine updates the driver FCF record from the new HBA FCF record 1427 /* Copy the fields from the HBA's FCF record */ __lpfc_update_fcf_record() 1429 /* Update other fields of driver FCF record */ __lpfc_update_fcf_record() 1498 * lpfc_match_fcf_conn_list - Check if the FCF record can be used for discovery. 1500 * @new_fcf_record: pointer to fcf record. 1501 * @boot_flag: Indicates if this record used by boot bios. 1505 * This routine compare the fcf record with connect list obtained from the 1507 * 1 if this record can be used for SAN discovery else return zero. If this FCF 1508 * record can be used for SAN discovery, the boot_flag will indicate if this FCF 1511 * If the FCF record need to be used with a particular vlan id, the vlan is 1524 /* Find the lowest VLAN id in the FCF record */ lpfc_match_fcf_conn_list() 1570 /* If FCF record report a vlan id use that vlan id */ lpfc_match_fcf_conn_list() 1603 * If connection record does not support any addressing mode, lpfc_match_fcf_conn_list() 1604 * skip the FCF record. lpfc_match_fcf_conn_list() 1611 * Check if the connection record specifies a required lpfc_match_fcf_conn_list() 1635 * This fcf record matches filtering criteria. lpfc_match_fcf_conn_list() 1678 * in the FCF record lpfc_match_fcf_conn_list() 1755 * lpfc_sli4_new_fcf_random_select - Randomly select an eligible new fcf record 1757 * @fcf_cnt: number of eligible fcf record seen so far. 1759 * This function makes an running random selection decision on FCF record to 1765 * Returns true when outcome is for the newly read FCF record should be 1767 * chosen FCF record. 1791 * necessarily error checking, non-embedded read FCF record mailbox command 1794 * Returns the pointer to the new FCF record in the non-embedded mailbox 1840 /* Interpreting the returned information of the FCF record */ lpfc_sli4_fcf_rec_mbox_parse() 1856 * lpfc_sli4_log_fcf_record_info - Log the information of a fcf record 1858 * @fcf_record: pointer to the fcf record. 1859 * @vlan_id: the lowest vlan identifier associated to this fcf record. 1860 * @next_fcf_index: the index to the next fcf record in hba's fcf table. 1862 * This routine logs the detailed FCF record if the LOG_FIP loggin is 1917 lpfc_sli4_fcf_record_match - testing new FCF record for matching existing FCF 1919 * @fcf_rec: pointer to an existing FCF record. 1920 * @new_fcf_record: pointer to a new FCF record. 1921 * @new_vlan_id: vlan id from the new FCF record. 1923 * This function performs matching test of a new FCF record against an existing 1924 * FCF record. If the new_vlan_id passed in is LPFC_FCOE_IGNORE_VID, vlan id 1925 * will not be used as part of the FCF record matching criteria. 2011 * @fcf_index the index of the fcf record to delete 2015 * record from the list. 2041 * @fcf_index the index of the fcf record to update 2044 * will try a different fcf record that does not have this bit set. 2045 * If the fcf record is re-read for any reason this flag is cleared brfore 2061 * @fcf_index the index of the fcf record to add 2161 * HBA and chooses the optimal FCF record for discovery. After finding 2162 * the FCF for discovery it registers the FCF record and kicks start 2165 * use an FCF record which matches fabric name and mac address of the 2166 * currently used FCF record. 2167 * If the driver supports only one FCF, it will try to use the FCF record 2187 /* Parse the FCF record from the non-embedded mailbox command */ lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2193 "failed to retrieve a FCF record.\n"); lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2202 /* Check the FCF record against the connection list */ lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2206 /* Log the FCF record information if turned on */ lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2211 * If the fcf record does not match with connect list entries lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2213 * record for roundrobin FCF failover. lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2244 * In case the current in-use FCF record becomes lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2276 * FCF record for the discovery. The condition that a rescan lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2277 * matches the in-use FCF record: fabric name, switch name, mac lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2313 * Read next FCF record from HBA searching for the matching lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2314 * with in-use record only if not during the fast failover lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2316 * determine whether the FCF record just read should be the lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2325 * Update on failover FCF record only if it's in FCF fast-failover lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2326 * period; otherwise, update on current FCF record. lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2335 * If the driver FCF record does not have boot flag lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2336 * set and new hba fcf record has boot flag set, use lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2337 * the new hba fcf record. lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2340 /* Choose this FCF record */ lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2342 "2837 Update current FCF record " lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2343 "(x%x) with new FCF record (x%x)\n", lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2353 * If the driver FCF record has boot flag set and the lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2354 * new hba FCF record does not have boot flag, read lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2355 * the next FCF record. lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2362 * If the new hba FCF record has lower priority value lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2363 * than the driver FCF record, use the new record. lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2366 /* Choose the new FCF record with lower priority */ lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2368 "2838 Update current FCF record " lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2369 "(x%x) with new FCF record (x%x)\n", lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2384 "2839 Update current FCF record " lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2385 "(x%x) with new FCF record (x%x)\n", lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2399 * This is the first suitable FCF record, choose this record for lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2427 * It has not found any suitable FCF record, cancel lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2458 * It has found a suitable FCF record that is not lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2459 * the same as in-use FCF record, unregister the lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2460 * in-use FCF record, replace the in-use FCF record lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2461 * with the new FCF record, mark FCF fast failover lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2463 * record. lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2466 /* Unregister the current in-use FCF record */ lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2469 /* Replace in-use record with the new record */ lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2486 /* Register to the new FCF record */ lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2500 * In case the current in-use FCF record no lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2506 "2841 In-use FCF record (x%x) " lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2517 /* Register to the new FCF record */ lpfc_mbx_cmpl_fcf_scan_read_fcf_rec() 2537 * read FCF record mailbox command from the eligible FCF record bmask for 2541 * newly read FCF record to the failover FCF record, unregister currently 2542 * registered FCF record, copy the failover FCF record to the current 2543 * FCF record, and then register the current FCF record before proceeding 2565 /* Parse the FCF record from the non-embedded mailbox command */ lpfc_mbx_cmpl_fcf_rr_read_fcf_rec() 2571 "failed to retrieve a FCF record. " lpfc_mbx_cmpl_fcf_rr_read_fcf_rec() 2578 /* Get the needed parameters from FCF record */ lpfc_mbx_cmpl_fcf_rr_read_fcf_rec() 2582 /* Log the FCF record information if turned on */ lpfc_mbx_cmpl_fcf_rr_read_fcf_rec() 2612 /* Upload new FCF record to the failover FCF record */ lpfc_mbx_cmpl_fcf_rr_read_fcf_rec() 2624 /* Unregister the current in-use FCF record */ lpfc_mbx_cmpl_fcf_rr_read_fcf_rec() 2627 /* Replace in-use record with the new record */ lpfc_mbx_cmpl_fcf_rr_read_fcf_rec() 2646 * This is the callback function of read FCF record mailbox command for 2650 * the bmask for the eligible FCF record for roundrobin failover. 2669 /* Parse the FCF record from the non-embedded mailbox command */ lpfc_mbx_cmpl_read_fcf_rec() 2675 "failed to retrieve a FCF record.\n"); lpfc_mbx_cmpl_read_fcf_rec() 2683 /* Log the FCF record information if turned on */ lpfc_mbx_cmpl_read_fcf_rec() 2690 /* Update the eligible FCF record index bmask */ lpfc_mbx_cmpl_read_fcf_rec() 3186 * Add the driver's default FCF record at FCF index 0 now. This lpfc_mbx_process_link_up() 3197 "fcf record\n"); lpfc_mbx_process_link_up() 3209 "record 0, status %d\n", rc); lpfc_mbx_process_link_up() 5988 * lpfc_unregister_fcf_prep - Unregister fcf record preparation 6053 * lpfc_sli4_unregister_fcf - Unregister currently registered FCF record 6057 * unregister the currently registered FCF record. The driver does not reset 6107 "HBA's FCF record: rc=%d\n", rc); lpfc_unregister_fcf_rescan() 6111 /* Now, unregister FCF record and reset HBA FCF state */ lpfc_unregister_fcf_rescan() 6121 * FCF record that can be used for discovery. lpfc_unregister_fcf_rescan() 6143 "to read FCF record HBA state x%x\n", lpfc_unregister_fcf_rescan() 6149 * lpfc_unregister_fcf - Unregister the currently registered fcf record 6165 "HBA's FCF record: rc=%d\n", rc); lpfc_unregister_fcf() 6169 /* Now, unregister FCF record and reset HBA FCF state */ lpfc_unregister_fcf() 6218 * record table read from config region 23. 6332 * lpfc_get_rec_conf23 - Get a record type in config region data. 6338 * of the record specified by record_type. If record found, this 6339 * function return pointer to the record else return NULL. 6353 * One TLV record has one word header and number of data words lpfc_get_rec_conf23() 6354 * specified in the rec_length field of the record header. lpfc_get_rec_conf23() 6411 /* Read FCoE param record */ lpfc_parse_fcoe_conf()
|
/linux-4.1.27/drivers/pci/ |
H A D | pci-acpi.c | 44 static acpi_status decode_type0_hpx_record(union acpi_object *record, decode_type0_hpx_record() argument 48 union acpi_object *fields = record->package.elements; decode_type0_hpx_record() 53 if (record->package.count != 6) decode_type0_hpx_record() 67 "%s: Type 0 Revision %d record not supported\n", decode_type0_hpx_record() 74 static acpi_status decode_type1_hpx_record(union acpi_object *record, decode_type1_hpx_record() argument 78 union acpi_object *fields = record->package.elements; decode_type1_hpx_record() 83 if (record->package.count != 5) decode_type1_hpx_record() 96 "%s: Type 1 Revision %d record not supported\n", decode_type1_hpx_record() 103 static acpi_status decode_type2_hpx_record(union acpi_object *record, decode_type2_hpx_record() argument 107 union acpi_object *fields = record->package.elements; decode_type2_hpx_record() 112 if (record->package.count != 18) decode_type2_hpx_record() 138 "%s: Type 2 Revision %d record not supported\n", decode_type2_hpx_record() 149 union acpi_object *package, *record, *fields; acpi_run_hpx() local 167 record = &package->package.elements[i]; acpi_run_hpx() 168 if (record->type != ACPI_TYPE_PACKAGE) { acpi_run_hpx() 173 fields = record->package.elements; acpi_run_hpx() 183 status = decode_type0_hpx_record(record, hpx); acpi_run_hpx() 188 status = decode_type1_hpx_record(record, hpx); acpi_run_hpx() 193 status = decode_type2_hpx_record(record, hpx); acpi_run_hpx() 198 printk(KERN_ERR "%s: Type %d record not supported\n", acpi_run_hpx()
|
/linux-4.1.27/arch/x86/kernel/cpu/mcheck/ |
H A D | mce-apei.c | 11 * For fatal MCE, save MCE record into persistent storage via ERST, so 12 * that the MCE record can be logged after reboot via ERST. 125 /* no more record */ apei_read_mce() 129 /* someone else has cleared the record, try next one */ apei_read_mce() 146 /* Check whether there is record in ERST */ apei_check_mce()
|
/linux-4.1.27/fs/afs/ |
H A D | cell.c | 1 /* AFS cell and server record management 31 * allocate a cell record and fill in its name, VL server address list and 53 /* allocate and initialise a cell record */ afs_cell_alloc() 144 * afs_cell_crate() - create a cell record 247 /* allocate a cell record for the root cell */ afs_cell_init() 266 * lookup a cell record 279 /* if the cell was named, look for it in the cell record list */ afs_cell_lookup() 324 * try and get a cell record 341 * destroy a cell record 373 * destroy a cell record
|
H A D | vlocation.c | 167 * allocate a volume location record 193 * update record if we found it in the cache 258 /* TODO: make existing record unavailable */ afs_vlocation_update_record() 265 * apply the update to a VL record 292 * fill in a volume location record, consulting the cache and the VL server 336 * queue a vlocation record for updates 348 /* ... but wait at least 1 second more than the newest record afs_vlocation_queue_for_updates() 401 /* not in the cell's in-memory lists - create a new record */ afs_vlocation_lookup() 444 /* see if it was an abandoned record that we might try filling in */ afs_vlocation_lookup() 489 * finish using a volume location record 513 /* suspend updates on this record */ afs_put_vlocation() 525 * destroy a dead volume location record 633 /* find a record to update */ afs_vlocation_updater() 693 * than the newest record already queued so that we don't spam afs_vlocation_updater()
|
H A D | internal.h | 33 AFS_VL_NEW, /* new, uninitialised record */ 34 AFS_VL_CREATING, /* creating record */ 35 AFS_VL_VALID, /* record is pending */ 50 struct afs_volume *volume; /* volume record */ 72 * a record of an in-progress RxRPC call 142 * record of an outstanding writeback on a vnode 163 AFS_WBACK_COMPLETE /* the writeback record has been unlinked */ 172 struct afs_volume *volume; /* volume record */ 192 * AFS cell record 203 /* server record management */ 207 /* volume location record management */ 209 struct list_head vl_list; /* cell's active VL record list */ 246 * AFS volume location record 258 struct afs_cache_vlocation vldb; /* volume information DB record */ 259 struct afs_volume *vols[3]; /* volume access record pointer (index by type) */ 261 time_t update_at; /* time at which record should be updated */ 270 * AFS fileserver record 302 * AFS volume access record 334 struct inode vfs_inode; /* the VFS's inode record */ 386 * cached security record for one user's attempt to access a vnode 403 * record of one of a system's set of network interfaces
|
H A D | server.c | 1 /* AFS server record management 30 * install a server record in the master tree 67 * allocate a new server record 102 * get an FS-server record for a cell 216 * destroy a server record
|
H A D | volume.c | 56 /* lookup the volume location record */ afs_volume_lookup() 95 /* create a new volume record */ afs_volume_lookup() 96 _debug("creating new volume record"); afs_volume_lookup() 170 * destroy a volume record
|
H A D | write.c | 32 * unlink a writeback record because its usage has reached zero 55 * free a writeback record 65 * dispose of a reference to a writeback record 234 /* the page holds a ref on the writeback record */ afs_write_begin() 313 * pages also covered by the same writeback record 698 /* use a writeback record as a marker in the queue - when this reaches afs_fsync()
|
H A D | callback.c | 46 /* kill all the promises on record from this server */ afs_init_callback_state() 219 * record the callback for breaking 433 * than the newest record already queued so that we don't spam
|
/linux-4.1.27/tools/hv/ |
H A D | hv_kvp_daemon.c | 181 struct kvp_record *record = kvp_file_info[pool].records; kvp_update_mem_state() local 196 readp = &record[records_read]; kvp_update_mem_state() 211 record = realloc(record, alloc_unit * num_blocks); kvp_update_mem_state() 213 if (record == NULL) { kvp_update_mem_state() 223 kvp_file_info[pool].records = record; kvp_update_mem_state() 235 struct kvp_record *record; kvp_file_init() local 266 record = malloc(alloc_unit * num_blocks); kvp_file_init() 267 if (record == NULL) { kvp_file_init() 273 readp = &record[records_read]; kvp_file_init() 289 record = realloc(record, alloc_unit * kvp_file_init() 291 if (record == NULL) { kvp_file_init() 302 kvp_file_info[i].records = record; kvp_file_init() 316 struct kvp_record *record; kvp_key_delete() local 324 record = kvp_file_info[pool].records; kvp_key_delete() 327 if (memcmp(key, record[i].key, key_size)) kvp_key_delete() 342 strcpy(record[j].key, record[k].key); kvp_key_delete() 343 strcpy(record[j].value, record[k].value); kvp_key_delete() 359 struct kvp_record *record; kvp_key_add_or_modify() local 372 record = kvp_file_info[pool].records; kvp_key_add_or_modify() 376 if (memcmp(key, record[i].key, key_size)) kvp_key_add_or_modify() 382 memcpy(record[i].value, value, value_size); kvp_key_add_or_modify() 392 record = realloc(record, sizeof(struct kvp_record) * kvp_key_add_or_modify() 395 if (record == NULL) kvp_key_add_or_modify() 400 memcpy(record[i].value, value, value_size); kvp_key_add_or_modify() 401 memcpy(record[i].key, key, key_size); kvp_key_add_or_modify() 402 kvp_file_info[pool].records = record; kvp_key_add_or_modify() 413 struct kvp_record *record; kvp_get_value() local 425 record = kvp_file_info[pool].records; kvp_get_value() 428 if (memcmp(key, record[i].key, key_size)) kvp_get_value() 433 memcpy(value, record[i].value, value_size); kvp_get_value() 443 struct kvp_record *record; kvp_pool_enumerate() local 449 record = kvp_file_info[pool].records; kvp_pool_enumerate() 455 memcpy(key, record[index].key, key_size); kvp_pool_enumerate() 456 memcpy(value, record[index].value, value_size); kvp_pool_enumerate()
|
/linux-4.1.27/include/uapi/linux/ |
H A D | audit.h | 81 #define AUDIT_DAEMON_START 1200 /* Daemon startup record */ 82 #define AUDIT_DAEMON_END 1201 /* Daemon normal stop record */ 83 #define AUDIT_DAEMON_ABORT 1202 /* Daemon error stop record */ 89 #define AUDIT_IPC 1303 /* IPC record */ 95 #define AUDIT_IPC_SET_PERM 1311 /* IPC new permissions record type */ 96 #define AUDIT_MQ_OPEN 1312 /* POSIX MQ open record type */ 97 #define AUDIT_MQ_SENDRECV 1313 /* POSIX MQ send/receive record type */ 98 #define AUDIT_MQ_NOTIFY 1314 /* POSIX MQ notify record type */ 99 #define AUDIT_MQ_GETSETATTR 1315 /* POSIX MQ get/set attribute record type */ 101 #define AUDIT_FD_PAIR 1317 /* audit record for pipe/socketpair */ 104 #define AUDIT_EOE 1320 /* End of multi-record event */ 145 #define AUDIT_KERNEL 2000 /* Asynchronous audit record. NOT A REQUEST. */ 162 #define AUDIT_ALWAYS 2 /* Generate audit record if rule matches */
|
H A D | mtio.h | 27 * position at first record of next file 30 #define MTFSR 3 /* forward space record */ 31 #define MTBSR 4 /* backward space record */ 32 #define MTWEOF 5 /* write an end-of-file record (mark) */ 66 #define MTWEOFI 35 /* write an end-of-file record (mark) in immediate mode */
|
H A D | atm_zatm.h | 50 record; must be 2^n */
|
H A D | igmp.h | 37 /* V3 group record types [grec_type] */
|
/linux-4.1.27/drivers/net/wireless/ath/ath10k/ |
H A D | htc.c | 267 struct ath10k_htc_record *record; ath10k_htc_process_trailer() local 276 record = (struct ath10k_htc_record *)buffer; ath10k_htc_process_trailer() 278 if (length < sizeof(record->hdr)) { ath10k_htc_process_trailer() 283 if (record->hdr.len > length) { ath10k_htc_process_trailer() 284 /* no room left in buffer for record */ ath10k_htc_process_trailer() 285 ath10k_warn(ar, "Invalid record length: %d\n", ath10k_htc_process_trailer() 286 record->hdr.len); ath10k_htc_process_trailer() 291 switch (record->hdr.id) { ath10k_htc_process_trailer() 294 if (record->hdr.len < len) { ath10k_htc_process_trailer() 300 record->credit_report, ath10k_htc_process_trailer() 301 record->hdr.len, ath10k_htc_process_trailer() 305 ath10k_warn(ar, "Unhandled record: id:%d length:%d\n", ath10k_htc_process_trailer() 306 record->hdr.id, record->hdr.len); ath10k_htc_process_trailer() 314 buffer += sizeof(record->hdr) + record->hdr.len; ath10k_htc_process_trailer() 315 length -= sizeof(record->hdr) + record->hdr.len; ath10k_htc_process_trailer()
|
/linux-4.1.27/security/selinux/ |
H A D | netif.c | 62 * sel_netif_find - Search for an interface record 67 * Search the network interface table and return the record matching @ifindex. 87 * @netif: the new interface record 90 * Add a new interface record to the network interface hash table. Returns 109 * sel_netif_destroy - Remove an interface record from the table 110 * @netif: the existing interface record 113 * Remove an existing interface record from the network interface table.
|
H A D | netnode.c | 105 * sel_netnode_find - Search for a node record 110 * Search the network node table and return the record matching @addr. If an 150 * @node: the new node record 153 * Add a new node record to the network address hash table.
|
H A D | netport.c | 85 * sel_netport_find - Search for a port record 90 * Search the network port table and return the matching record. If an entry 109 * @port: the new port record 112 * Add a new port record to the network address hash table.
|
/linux-4.1.27/tools/perf/util/ |
H A D | trace-event-parse.c | 118 struct pevent_record record; event_format__fprintf() local 121 memset(&record, 0, sizeof(record)); event_format__fprintf() 122 record.cpu = cpu; event_format__fprintf() 123 record.size = size; event_format__fprintf() 124 record.data = data; event_format__fprintf() 127 pevent_event_info(&s, event, &record); event_format__fprintf()
|
H A D | data.c | 62 pr_err(" (try 'perf record' first)"); open_file_read()
|
H A D | map.h | 42 u32 maj, min; /* only valid for MMAP2 record */ 43 u64 ino; /* only valid for MMAP2 record */ 44 u64 ino_generation;/* only valid for MMAP2 record */
|
/linux-4.1.27/drivers/net/ethernet/intel/igb/ |
H A D | e1000_i210.c | 353 /* Get record type */ igb_read_invm_word_i210() 465 u32 *record = NULL; igb_read_invm_version() local 483 record = &buffer[invm_blocks - i]; igb_read_invm_version() 487 if ((i == 1) && ((*record & E1000_INVM_VER_FIELD_ONE) == 0)) { igb_read_invm_version() 494 ((*record & E1000_INVM_VER_FIELD_TWO) == 0)) { igb_read_invm_version() 495 version = (*record & E1000_INVM_VER_FIELD_ONE) >> 3; igb_read_invm_version() 502 else if ((((*record & E1000_INVM_VER_FIELD_ONE) == 0) && igb_read_invm_version() 503 ((*record & 0x3) == 0)) || (((*record & 0x3) != 0) && igb_read_invm_version() 513 else if (((*record & E1000_INVM_VER_FIELD_TWO) == 0) && igb_read_invm_version() 514 ((*record & 0x3) == 0)) { igb_read_invm_version() 515 version = (*record & E1000_INVM_VER_FIELD_ONE) >> 3; igb_read_invm_version() 528 record = &buffer[invm_blocks - i]; igb_read_invm_version() 532 if ((i == 1) && ((*record & E1000_INVM_IMGTYPE_FIELD) == 0)) { igb_read_invm_version() 538 else if ((((*record & 0x3) == 0) && igb_read_invm_version() 539 ((*record & E1000_INVM_IMGTYPE_FIELD) == 0)) || igb_read_invm_version() 540 ((((*record & 0x3) != 0) && (i != 1)))) { igb_read_invm_version()
|
/linux-4.1.27/drivers/md/ |
H A D | dm-bio-record.h | 16 * functions in this file help the target record and restore the
|
/linux-4.1.27/drivers/net/can/usb/peak_usb/ |
H A D | pcan_usb_pro.h | 42 /* PCAN_USBPRO_INFO_BL vendor request record type */ 56 /* PCAN_USBPRO_INFO_FW vendor request record type */ 68 * USB Command record types 87 /* record structures */
|
/linux-4.1.27/drivers/acpi/apei/ |
H A D | erst-dbg.c | 113 /* no more record */ erst_dbg_read() 127 /* The record may be cleared by others, try read next record */ erst_dbg_read() 174 pr_err(ERST_DBG_PFX "Too long record to be written\n"); erst_dbg_write()
|
H A D | erst.c | 514 /* record id already in cache, try next */ __erst_record_id_cache_add_one() 526 pr_warn(FW_WARN "too many record IDs!\n"); __erst_record_id_cache_add_one() 552 * Get the record ID of an existing error record on the persistent 553 * storage. If there is no error record on the persistent storage, the 573 /* found next record id in cache */ erst_get_record_id_next() 580 /* Try to add one more record ID to cache */ erst_get_record_id_next() 765 static int __erst_write_to_nvram(const struct cper_record_header *record) __erst_write_to_nvram() argument 783 int erst_write(const struct cper_record_header *record) erst_write() argument 792 if (memcmp(record->signature, CPER_SIG_RECORD, CPER_SIG_SIZE)) erst_write() 798 rc = __erst_write_to_nvram(record); erst_write() 803 if (record->record_length > erst_erange.size) erst_write() 808 memcpy(erst_erange.vaddr, record, record->record_length); erst_write() 836 static ssize_t __erst_read(u64 record_id, struct cper_record_header *record, __erst_read() argument 849 memcpy(record, rcd_tmp, len); __erst_read() 857 * else everything is OK, and return value is record length 859 ssize_t erst_read(u64 record_id, struct cper_record_header *record, erst_read() argument 869 len = __erst_read(record_id, record, buflen); erst_read() 1016 /* no more record */ erst_reader() 1023 /* The record may be cleared by others, try read next record */ erst_reader()
|
/linux-4.1.27/fs/jffs2/ |
H A D | summary.h | 51 jint32_t totlen; /* record length */ 57 jint32_t totlen; /* record length */ 106 jint32_t totlen; /* record length */ 113 jint32_t totlen; /* record length */
|
/linux-4.1.27/arch/s390/include/asm/ |
H A D | appldata.h | 35 u8 record_nr; /* record number */
|
/linux-4.1.27/fs/nilfs2/ |
H A D | bmap.c | 62 * Description: nilfs_bmap_lookup_at_level() finds a record whose key 65 * Return Value: On success, 0 is returned and the record associated with @key 73 * %-ENOENT - A record associated with @key does not exist. 138 * nilfs_bmap_insert - insert a new key-record pair into a bmap 141 * @rec: record 143 * Description: nilfs_bmap_insert() inserts the new key-record pair specified 153 * %-EEXIST - A record associated with @key already exist. 237 * nilfs_bmap_delete - delete a key-record pair from a bmap 241 * Description: nilfs_bmap_delete() deletes the key-record pair specified by 251 * %-ENOENT - A record associated with @key does not exist. 295 * Description: nilfs_bmap_truncate() removes key-record pairs whose keys are
|
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmsmac/ |
H A D | brcms_trace_brcmsmac.h | 27 * 'fast binary record' layout. 38 * Fast binary tracing: define the trace record via TP_STRUCT__entry().
|
/linux-4.1.27/arch/powerpc/include/asm/ |
H A D | pgtable-ppc64-4k.h | 4 * Entries per page directory level. The PTE level must use a 64b record 5 * for each page table entry. The PMD and PGD level use a 32b record for
|
/linux-4.1.27/fs/fscache/ |
H A D | cache.c | 171 * fscache_init_cache - Initialise a cache record 172 * @cache: The cache record to be initialised 173 * @ops: The cache operations to be installed in that record 177 * Initialise a record of a cache and fill in the name. 208 * @cache: The record describing the cache 209 * @ifsdef: The record of the cache object describing the top-level index 309 * @cache: The record describing the cache 357 * @cache: The record describing the cache
|
H A D | fsdef.c | 80 * get the key data for an FSDEF index record - this is the name of the netfs 100 * get the auxiliary data for an FSDEF index record - this is the index
|
/linux-4.1.27/net/dccp/ccids/lib/ |
H A D | loss_interval.h | 26 * tfrc_loss_interval - Loss history record for TFRC-based protocols 40 * tfrc_loss_hist - Loss record database
|
H A D | loss_interval.c | 131 * tfrc_lh_interval_add - Insert new record into the Loss Interval database 149 DCCP_CRIT("Cannot allocate/add loss record."); tfrc_lh_interval_add()
|
/linux-4.1.27/include/linux/sunrpc/ |
H A D | msg_prot.h | 86 * "A record is composed of one or more record fragments. A record 91 * is the last fragment of the record (bit value 1 implies the fragment 95 * (Note that this record specification is NOT in XDR standard form!)" 97 * The Linux RPC client always sends its requests in a single record
|
H A D | svcsock.h | 31 /* As we receive a record, this includes the length received so
|
/linux-4.1.27/fs/xfs/libxfs/ |
H A D | xfs_bmap_btree.c | 95 * Convert a compressed bmap extent record to an uncompressed form. 132 * Extract the blockcount field from an in memory bmap extent record. 142 * Extract the startblock field from an in memory bmap extent record. 153 * Extract the startoff field from an in memory bmap extent record. 175 * Extract the blockcount field from an on disk bmap extent record. 185 * Extract the startoff field from a disk format bmap extent record. 197 * Set all the fields in a bmap extent record from the arguments. 224 * Set all the fields in a bmap extent record from the uncompressed form. 237 * Set all the fields in a disk format bmap extent record from the arguments. 265 * Set all the fields in a bmap extent record from the uncompressed form. 277 * Set the blockcount field in a bmap extent record. 290 * Set the startblock field in a bmap extent record. 305 * Set the startoff field in a bmap extent record. 319 * Set the extent state field in a bmap extent record. 855 * so a buffer list must be supplied so that we can record the buffers that we
|
H A D | xfs_btree.h | 30 * Generic key, ptr and record wrapper structures. 68 * For logging record fields. 118 /* size of the key and record structures */ 138 /* update last record information */ 202 } bc_rec; /* current insert/search record value */ 204 int bc_ptrs[XFS_BTREE_MAXLEVELS]; /* key/record # */ 274 * Allocate a new one, copy the record, re-get the buffers. 456 * r = btree record
|
H A D | xfs_btree.c | 322 * Allocate a new one, copy the record, re-get the buffers. 345 * Copy the record currently in the cursor. xfs_btree_dup_cursor() 378 * The leaf record start with a header then followed by records containing 393 * pointers. The record and key structures are defined by the btree instances 397 * The helpers below calculate the offset of a given record, key or pointer 399 * record, key or pointer (xfs_btree_*_addr). Note that all addressing 428 * Calculate offset of the n-th record in a btree block. 466 * Return a pointer to the n-th record in the btree block. 602 * Change the cursor to point to the first record at the given level. 619 * It's empty, there is no such record. xfs_btree_firstrec() 624 * Set the ptr value to 1, that's the first record/key. xfs_btree_firstrec() 631 * Change the cursor to point to the last record in the current block 648 * It's empty, there is no such record. xfs_btree_lastrec() 653 * Set the ptr value to numrecs, that's the last record/key. xfs_btree_lastrec() 1062 * Return true if ptr is the last record in the btree and 1063 * we need to track updates to this record. The decision 1305 * Log record values from the btree block. 1428 * Increment cursor by one record at the level. 1536 * Decrement cursor by one record at the level. 1672 * structure so we make one up from the record. For all other levels 1693 * Lookup the record. The cursor is made to point to it, based on dir. 1694 * stat is set to 0 if can't find any such record, 1 for success. 1725 * on the lookup record, then follow the corresponding block xfs_btree_lookup() 1900 * Update the record referred to by cur to the value in the 1901 * given record. This either works (return 0) or gets an 1935 * If we are tracking the last record in the tree and xfs_btree_update() 1962 * Move 1 record left from cur/level if possible. 1974 int lrecs; /* left record count */ xfs_btree_lshift() 1977 int rrecs; /* right record count */ xfs_btree_lshift() 1981 union xfs_btree_rec *rrp = NULL; /* right record pointer */ xfs_btree_lshift() 2064 union xfs_btree_rec *lrp; /* left record pointer */ xfs_btree_lshift() 2114 * If it's the first record in the block, we'll need a key xfs_btree_lshift() 2145 * Move 1 record right from cur/level if possible. 2162 int rrecs; /* right record count */ xfs_btree_rshift() 2163 int lrecs; /* left record count */ xfs_btree_rshift() 2322 * record (to be inserted into parent). 2430 union xfs_btree_rec *lrp; /* left record pointer */ __xfs_btree_split() 2431 union xfs_btree_rec *rrp; /* right record pointer */ __xfs_btree_split() 2831 union xfs_btree_rec *nrec, /* new record */ xfs_btree_make_block_unfull() 2890 * Insert one record/level. Return information to the caller 2896 int level, /* level to insert record at */ xfs_btree_insrec() 2898 union xfs_btree_rec *recp, /* i/o: record data inserted */ xfs_btree_insrec() 2907 union xfs_btree_rec nrec; /* new record count */ xfs_btree_insrec() 2908 int optr; /* old key/record index */ xfs_btree_insrec() 2909 int ptr; /* key/record index */ xfs_btree_insrec() 2942 /* Make a key out of the record data to be inserted, and save it. */ xfs_btree_insrec() 3070 * If we are tracking the last record in the tree and xfs_btree_insrec() 3080 * If there is one, give back a record value and a cursor too. xfs_btree_insrec() 3098 * Insert the record at the point referenced by cur. 3115 union xfs_btree_rec rec; /* record to insert */ xfs_btree_insert() 3342 * Single level of the btree record deletion routine. 3343 * Delete record pointed to by cur/level. 3344 * Remove the record from its block then rebalance the tree. 3350 int level, /* level removing record from */ xfs_btree_delrec() 3363 int lrecs = 0; /* left record count */ xfs_btree_delrec() 3364 int ptr; /* key/record index */ xfs_btree_delrec() 3370 int rrecs = 0; /* right record count */ xfs_btree_delrec() 3387 /* Get the buffer & block containing the record or key/ptr. */ xfs_btree_delrec() 3432 * If it's the first record in the block, we'll need to pass a xfs_btree_delrec() 3447 * If it's the first record in the block, we'll need a key xfs_btree_delrec() 3464 * If we are tracking the last record in the tree and xfs_btree_delrec() 3541 * see if we can re-balance by moving only one record. xfs_btree_delrec() 3632 * to our block again (last record). xfs_btree_delrec() 3786 union xfs_btree_rec *lrp; /* left record pointer */ xfs_btree_delrec() 3787 union xfs_btree_rec *rrp; /* right record pointer */ xfs_btree_delrec() 3865 * Delete the record pointed to by cur. 3866 * The cursor refers to the place where the record was (could be inserted) 3912 * Get the data from the pointed-to record. 3917 union xfs_btree_rec **recp, /* output: btree record */ xfs_btree_get_rec() 3922 int ptr; /* record number */ xfs_btree_get_rec() 3945 * Point to the record and extract its data. xfs_btree_get_rec()
|
H A D | xfs_ialloc.c | 58 * Lookup a record by ino in the btree given by cur. 74 * Update the record referred to by cur to the value given. 80 xfs_inobt_rec_incore_t *irec) /* btree record */ xfs_inobt_update() 91 * Get the data from the pointed-to record. 96 xfs_inobt_rec_incore_t *irec, /* btree record */ xfs_inobt_get_rec() 112 * Insert a single inobt record. Cursor must already point to desired location. 680 * Try to retrieve the next record to the left/right from the current one. 829 /* search left with tcur, back up 1 record */ xfs_dialloc_ag_inobt() 834 /* search right with cur, go forward 1 record. */ xfs_dialloc_ag_inobt() 889 /* get next record to check */ xfs_dialloc_ag_inobt() 1023 * See if we've landed in the parent inode record. The finobt xfs_dialloc_ag_finobt_near() 1024 * only tracks chunks with at least one free inode, so record xfs_dialloc_ag_finobt_near() 1061 /* only the right record is valid */ xfs_dialloc_ag_finobt_near() 1066 /* only the left record is valid */ xfs_dialloc_ag_finobt_near() 1127 struct xfs_inobt_rec_incore *frec, /* finobt record */ xfs_dialloc_ag_update_inobt() 1221 * Modify or remove the finobt record. xfs_dialloc_ag() 1236 * the inobt using the finobt record and offset information. xfs_dialloc_ag() 1579 struct xfs_inobt_rec_incore *ibtrec) /* inobt record */ xfs_difree_finobt() 1596 * If the record does not exist in the finobt, we must have just xfs_difree_finobt() 1612 * Read and update the existing record. We could just copy the ibtrec xfs_difree_finobt() 1615 * corruptions that we wouldn't see if we just copied from one record xfs_difree_finobt() 1635 * keeping inode chunks permanently on disk, remove the record. xfs_difree_finobt() 1636 * Otherwise, update the record with the new information. xfs_difree_finobt() 1684 struct xfs_inobt_rec_incore rec;/* btree record */ xfs_difree() 1772 * Lookup the inode record for the given agino. If the record cannot be xfs_imap_lookup() 1774 * we have a record, we need to ensure it contains the inode number xfs_imap_lookup() 1791 /* check that the returned record contains the required inode */ xfs_imap_lookup()
|
/linux-4.1.27/drivers/net/wireless/orinoco/ |
H A D | hermes_dld.c | 76 __le32 id; /* record ID */ 89 __le16 id; /* record ID */ 145 * Scan PDR for the record with the specified RECORD_ID. 165 /* If the record ID matches, we are done */ hermes_find_pdr() 185 /* If the record ID matches, we are done */ hermes_find_pdi() 221 * which also has a valid production data record for the firmware. 385 * For every production data record, look for a previous setting in 419 pr_debug(PFX "Found record 0x%04x at %p\n", hermes_apply_pda_with_defaults() 431 "Using outdoor record 0x%04x at %p\n", hermes_apply_pda_with_defaults() 460 pr_debug(PFX "Using default record 0x%04x at %p\n", hermes_apply_pda_with_defaults()
|
/linux-4.1.27/net/ipv4/ |
H A D | tcp_lp.c | 140 /* not yet record reference time tcp_lp_remote_hz_estimator() 141 * go away!! record it before come back!! */ tcp_lp_remote_hz_estimator() 163 /* record time for successful remote HZ calc */ tcp_lp_remote_hz_estimator() 169 /* record reference time stamp */ tcp_lp_remote_hz_estimator() 216 * 2. record the min/max OWD, 229 /* record the next min owd */ tcp_lp_rtt_sample() 312 /* record this drop time */ tcp_lp_pkts_acked()
|
/linux-4.1.27/include/sound/ |
H A D | cs4231-regs.h | 72 #define CS4231_REC_FORMAT 0x1c /* clock and data format - record - bits 7-0 MCE */ 75 #define CS4231_REC_UPR_CNT 0x1e /* record upper count */ 76 #define CS4231_REC_LWR_CNT 0x1f /* record lower count */ 123 #define CS4231_RECORD_PIO 0x80 /* record PIO enable */ 128 #define CS4231_RECORD_ENABLE 0x02 /* record enable */
|
H A D | seq_virmidi.h | 50 * device record:
|
/linux-4.1.27/sound/core/ |
H A D | memalloc.c | 113 * @dmab: buffer allocation record to store the allocated data 140 * @dmab: buffer allocation record to store the allocated data 164 * @dmab: buffer allocation record to store the allocated data 226 * @dmab: buffer allocation record to store the allocated data 261 * @dmab: the buffer allocation record to release
|
/linux-4.1.27/drivers/s390/block/ |
H A D | dasd_eer.c | 43 * blob is stored in a simple record that consists of an integer, which 51 * One record can be written to a buffer by using the functions 52 * - dasd_eer_start_record (one time per record to write the size to the 54 * - dasd_eer_write_buffer (one or more times per record to write the data) 60 * A record is typically read in two steps, first read the integer that 66 * it until a complete record is written or read. 72 * If the user does not want to read a complete record in one go, we have to 73 * keep track of the rest of the record. residual stores the number of bytes 74 * that are still to deliver. If the rest of the record is invalidated between 254 * the caller. For these triggers a record is written by the function 600 if (eerb->residual < 0) { /* the remainder of this record */ dasd_eer_read() 607 /* OK we still have a second half of a record to deliver */ dasd_eer_read()
|
H A D | dasd_fba.c | 278 /* Calculate record id of first and last block. */ dasd_fba_build_cp() 296 /* 1x define extent + 1x locate record + number of blocks */ 298 /* 1x define extent + 1x locate record */ 302 * Find out number of additional locate record ccws if the device 320 /* Locate record for all blocks for smart devices. */ 337 /* Locate record for stupid devices. */ rq_for_each_segment() 395 /* Skip over define extent & locate record. */ dasd_fba_free_cp() 402 /* Skip locate record. */ rq_for_each_segment() 584 * locate record ccw for each block (stupid devices!) + 16 bytes of data.
|
/linux-4.1.27/drivers/usb/serial/ |
H A D | io_ti.h | 99 * Copy current download image to type 0xf2 record in 16k I2C 100 * firmware will change 0xff record to type 2 record when complete
|
H A D | io_ti.c | 676 /* Skip type 2 record */ check_i2c_image() 764 /* In order to update the I2C firmware we must change the type 2 record build_i2c_fw_hdr() 770 * update the record type from 0xf2 to 0x02. build_i2c_fw_hdr() 798 /* Copy version number into firmware record */ build_i2c_fw_hdr() 1015 /* Search for type 2 record (firmware record) */ download_fw() 1020 u8 *record; download_fw() local 1022 dev_dbg(dev, "%s - Found Type FIRMWARE (Type 2) record\n", __func__); download_fw() 1069 record = kmalloc(1, GFP_KERNEL); download_fw() 1070 if (!record) { download_fw() 1077 * change the type 2 record to type 0xF2. This download_fw() 1085 * firmware will update the record type from download_fw() 1088 *record = I2C_DESC_TYPE_FIRMWARE_BLANK; download_fw() 1090 /* Change the I2C Firmware record type to download_fw() 1093 sizeof(*record), record); download_fw() 1095 kfree(record); download_fw() 1108 sizeof(*record), download_fw() 1109 record); download_fw() 1111 kfree(record); download_fw() 1118 if (*record != I2C_DESC_TYPE_FIRMWARE_BLANK) { download_fw() 1120 kfree(record); download_fw() 1137 kfree(record); download_fw() 1145 /* Search for type 0xF2 record (firmware blank record) */ download_fw() 1167 dev_dbg(dev, "%s - Found Type BLANK FIRMWARE (Type F2) record\n", __func__); download_fw() 1171 * the type 2 record to type 0xF2. This will force the download_fw() 1178 * record type from 0xf2 to 0x02. download_fw() 1189 /* Update I2C with type 0xf2 record with correct download_fw() 1217 dev_dbg(dev, "%s - write download record failed\n", __func__); download_fw() 1310 * 2 record to type 0xF2. This will force the UMP to come up download_fw() 1316 * record type from 0xf2 to 0x02. download_fw()
|
/linux-4.1.27/arch/hexagon/include/uapi/asm/ |
H A D | registers.h | 14 * Entry code copies the event record out of guest registers into 188 /* VM dispatch pushes event record onto stack - we can build on it */ 197 * at the entry points and stuff them into the old record in pt_regs.
|
/linux-4.1.27/arch/m68k/apollo/ |
H A D | config.c | 49 int __init apollo_parse_bootinfo(const struct bi_record *record) apollo_parse_bootinfo() argument 52 const void *data = record->data; apollo_parse_bootinfo() 54 switch (be16_to_cpu(record->tag)) { apollo_parse_bootinfo()
|
/linux-4.1.27/arch/m68k/hp300/ |
H A D | config.c | 72 int __init hp300_parse_bootinfo(const struct bi_record *record) hp300_parse_bootinfo() argument 75 const void *data = record->data; hp300_parse_bootinfo() 77 switch (be16_to_cpu(record->tag)) { hp300_parse_bootinfo()
|
/linux-4.1.27/net/dccp/ |
H A D | ackvec.h | 88 * @avr_ack_ackno: the Ack number that this record/Ack Vector refers to 89 * @avr_ack_ptr: pointer into @av_buf where this record starts 91 * @avr_ack_nonce: the sum of @av_buf_nonce's at the time this record was sent
|
/linux-4.1.27/drivers/hid/usbhid/ |
H A D | usbhid.h | 80 unsigned long last_ctrl; /* record of last output for timeouts */ 87 unsigned long last_out; /* record of last output for timeouts */
|
/linux-4.1.27/include/rdma/ |
H A D | ib_sa.h | 102 * For a record with structure ib_sa_xxx_rec, the naming convention 337 * @rec: SA multicast member record specifying group attributes. 380 * ib_get_mcmember_rec - Looks up a multicast member record by its MGID and 386 * @rec: Location to copy SA multicast member record. 393 * an SA multicast member record. 401 * path record. 408 * ib_sa_pack_path - Conert a path record from struct ib_sa_path_rec 414 * ib_sa_unpack_path - Convert a path record from MAD format to struct
|
H A D | rdma_cm_ib.h | 42 * @path_rec: Reference to the path record
|
/linux-4.1.27/sound/core/seq/oss/ |
H A D | seq_oss_event.h | 4 * seq_oss_event.h - OSS event queue record 91 /* event record */
|
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/ |
H A D | dt_object.c | 450 LASSERTF(dt != NULL, "dt is NULL when we want to read record\n"); dt_read() 473 LASSERTF(dt != NULL, "dt is NULL when we want to read record\n"); dt_record_read() 490 LASSERTF(dt != NULL, "dt is NULL when we want to write record\n"); dt_record_write() 640 * Fill a lu_idxpage with key/record pairs read for transfer via OBD_IDX_READ 660 /* no support for variable key & record size for now */ dt_index_page_build() 669 /* compute size needed to store a key/record pair */ dt_index_page_build() 702 * each record */ dt_index_page_build() 713 /* and finally the record */ dt_index_page_build() 719 /* hash/key/record successfully copied! */ dt_index_page_build() 727 /* move on to the next record */ dt_index_page_build() 746 * Walk index and fill lu_page containers with key/record pairs 752 * with key/record pairs in the format wanted by the caller 784 * Iterator didn't find record with exactly the key requested. dt_index_walk() 788 * - positioned above record with key less than dt_index_walk() 838 * Walk key/record pairs of an index and copy them into 4KB containers to be 910 /* record size is variable */ dt_index_read() 912 /* we don't support variable record size for the time being */ dt_index_read() 925 /* walk the index and fill lu_idxpages with key/record pairs */ dt_index_read()
|
H A D | llog.c | 186 handle->lgh_last_idx = 0; /* header is record with index 0 */ llog_read_header() 187 llh->llh_count = 1; /* for the header record */ llog_read_header() 316 /* get the buf with our target record; avoid old garbage */ llog_process_thread() 349 CWARN("invalid length %d in llog record for index %d/%d\n", llog_process_thread() 371 /* if set, process the callback on this record */ llog_process_thread() 390 /* next record, still in buffer? */ llog_process_thread() 511 /* get the buf with our target record; avoid old garbage */ llog_reverse_process() 538 /* if set, process the callback on this record */ llog_reverse_process() 555 /* previous record, still in buffer? */ llog_reverse_process() 582 * llog_write_rec - write llog record on disk, need transaction handle 583 * llog_declare_add - declare llog catalog record addition 584 * llog_add - add llog record in catalog, need transaction handle 813 * Helper function for write record in llog. 928 /* header is record 1 */ llog_is_empty() 995 /* Copy log record by record */ llog_backup()
|
H A D | llog_cat.c | 122 /* build the record for this log in the catalog */ llog_cat_new_log() 130 /* update the catalog: header and record */ llog_cat_new_log() 257 * have enough space left for the current record, start a new one. 318 /* Add a single record to the recovery log(s) using a catalog 342 /* now let's try to add the record */ llog_cat_add_rec() 360 /* now let's try to add the record */ llog_cat_add_rec() 539 CERROR("invalid record in catalog\n"); llog_cat_process_cb() 635 CERROR("invalid record in catalog\n"); llog_cat_reverse_process_cb() 763 CERROR("invalid record in catalog\n"); cat_cancel_cb()
|
/linux-4.1.27/fs/ocfs2/ |
H A D | alloc.c | 99 * a record into the map. 768 * Return the index of the extent record which contains cluster #v_cluster. 1088 * value for the new topmost tree record. 1102 * extent block's rightmost record. 1155 * contain a single record with cluster count == 0. 1581 * This function will discard the rightmost extent record. 1630 * Figure out what the new record index should be. ocfs2_rotate_leaf() 1694 * Create an empty extent record . 1806 * rightmost record. __ocfs2_find_path() 1942 * left_rec: the record on the left. 1944 * right_rec: the record to the right of left_rec 1958 * the leftmost record in their child list. Their cluster ocfs2_adjust_adjacent_records() 1960 * - the range between their cpos and the cpos of the record ocfs2_adjust_adjacent_records() 2022 * - When we've moved an extent record from the left path leaf to the right 2027 * - When we've adjusted the last extent record in the left path leaf and the 2028 * 1st extent record in the right path leaf during cross extent block merge. 2060 * the leftmost right node record and the rightmost ocfs2_complete_edge_insert() 2061 * left node record. ocfs2_complete_edge_insert() 2128 * This extent block may already have an empty record, so we ocfs2_rotate_subtree_right() 2179 * Clear out the record we just copied and shift everything ocfs2_rotate_subtree_right() 2183 * shift will lose the tail record (which is now defunct). ocfs2_rotate_subtree_right() 2224 * Find the extent record just before the one in our ocfs2_find_cpos_for_left_leaf() 2240 * The leftmost record points to our ocfs2_find_cpos_for_left_leaf() 2295 * the _actual_ left leaf range. Otherwise, we'll rotate a record 2298 * It's only necessary to look at the rightmost record of the left 2343 * Rotate all the records in a btree right one record, starting at insert_cpos. 2445 * record insertion. We indicate this ocfs2_rotate_tree_right() 2449 * before the record insert is that an error ocfs2_rotate_tree_right() 2451 * record e_cpos will reflect the actual ocfs2_rotate_tree_right() 2452 * e_cpos of the 1st nonempty record of the ocfs2_rotate_tree_right() 2485 * record over to the leftmost right leaf ocfs2_rotate_tree_right() 2758 * record. Otherwise, the action is delayed until ocfs2_rotate_subtree_left() 2842 * Find the extent record just after the one in our ocfs2_find_cpos_for_right_leaf() 2859 * The rightmost record points to our ocfs2_find_cpos_for_right_leaf() 3142 * in a leaf. After removal, an empty record should be placed in the 3146 * the rightmost tree leaf record is removed so the caller is 3269 * We consumed all of the merged-from record. An empty ocfs2_cleanup_merge() 3272 * record doesn't occupy that position. ocfs2_cleanup_merge() 3341 * Remove split_rec clusters from the record at index and merge them 3342 * onto the beginning of the record "next" to it. 3504 * Remove split_rec clusters from the record at index and merge them 3505 * onto the tail of the record "before" it. 3508 * For index == 0, the "before" means the last record of the previous 3603 * The easy case - we can just plop the record right in. ocfs2_merge_rec_left() 3692 * extent, this call will delete the insert record ocfs2_try_to_merge_extent() 3693 * entirely, resulting in an empty extent record added to ocfs2_try_to_merge_extent() 3747 * Merge a record to the left or right. ocfs2_try_to_merge_extent() 3749 * 'contig_type' is relative to the existing record, ocfs2_try_to_merge_extent() 3751 * the record on the left (hence the left merge). ocfs2_try_to_merge_extent() 3801 * record. ocfs2_subtract_from_rec() 3811 * record. ocfs2_subtract_from_rec() 3819 * Do the final bits of extent record insertion at the target leaf 3907 * extent record, or by virtue of an l_next_rec < l_count. ocfs2_insert_at_leaf() 4058 * This typically means that the record ocfs2_split_record() 4061 * move the existing record to the left, or we ocfs2_split_record() 4080 * existing record over to the left ocfs2_split_record() 4370 * We're careful to check for an empty extent record here - ocfs2_figure_merge_contig_type() 4570 * extent record. ocfs2_figure_insert_type() 4610 * into two types of appends: simple record append, or a ocfs2_figure_insert_type() 4618 * the 1st record in a leaf, it will require the adjustment of ocfs2_figure_insert_type() 4619 * cluster count on the last record of the path directly to it's ocfs2_figure_insert_type() 4883 * Store a copy of the record on the stack - it might move ocfs2_split_and_insert() 5001 * Split part or all of the extent record at split_index in the leaf 5002 * pointed to by path. Merge with the contiguous extent record if needed. 5254 * Setup the record to split before we grow the tree. ocfs2_split_tree() 5337 * Check whether this is the rightmost tree record. If ocfs2_truncate_rec() 5338 * we remove all of this record or part of its right ocfs2_truncate_rec() 5339 * edge then an update of the record lengths above it ocfs2_truncate_rec() 5352 * record truncate) of an interior (or rightmost) path ocfs2_truncate_rec() 5359 * we remove the extent record - the rotate code ocfs2_truncate_rec() 5427 /* Remove leftmost portion of the record. */ ocfs2_truncate_rec() 5432 /* Remove rightmost portion of the record */ ocfs2_truncate_rec() 5438 mlog(ML_ERROR, "Owner %llu: Invalid record truncate: (%u, %u) " ocfs2_truncate_rec() 5554 * move the record location, so we have to look for it again. ocfs2_remove_extent() 5568 "Owner %llu: split at cpos %u lost record.", ocfs2_remove_extent() 5585 "trunc len %u, existing record is (%u,%u)", ocfs2_remove_extent() 5832 "Truncate record count on #%llu invalid " ocfs2_truncate_log_append() 5858 * Move index back to the record we are coalescing with. ocfs2_truncate_log_append() 5928 /* if start_blk is not set, we ignore the record as ocfs2_replay_truncate_records() 7066 * portion of this tree. Only the tail record is considered in ocfs2_commit_truncate() 7071 * - remove the entire record ocfs2_commit_truncate() 7072 * - remove a partial record ocfs2_commit_truncate() 7073 * - no record needs to be removed (truncate has completed) ocfs2_commit_truncate() 7097 "extent record, depth %u\n", inode->i_ino, ocfs2_commit_truncate() 7107 * Truncate entire record. ocfs2_commit_truncate()
|
/linux-4.1.27/drivers/media/rc/keymaps/ |
H A D | rc-apac-viewcomp.c | 48 { 0x0e, KEY_RECORD }, /* record */
|
H A D | rc-avermedia-dvbt.c | 42 { 0x2c, KEY_RECORD }, /* 'record' */
|
H A D | rc-dntv-live-dvb-t.c | 51 { 0x1d, KEY_RECORD }, /* record */
|
H A D | rc-proteus-2309.c | 35 { 0x41, KEY_RECORD }, /* record */
|
H A D | rc-videomate-m1f.c | 22 { 0x2d, KEY_NEW }, /* TV record button */
|
H A D | rc-medion-x10-or2x.c | 44 { 0x18, KEY_PVR }, /* record symbol inside a tv symbol */
|
H A D | rc-medion-x10.c | 81 { 0x27, KEY_RECORD }, /* record ( o) */
|
/linux-4.1.27/arch/x86/vdso/vdso32/ |
H A D | syscall.S | 56 We have to record all changes of the stack pointer. */
|
H A D | sigreturn.S | 70 We record the locations of each register saved. This is 129 We record the locations of each register saved. This is
|
/linux-4.1.27/arch/xtensa/include/asm/ |
H A D | bootparam.h | 36 unsigned short size; /* size of this record excluding the structure*/
|
/linux-4.1.27/arch/tile/include/hv/ |
H A D | drv_mshim_intf.h | 36 * For now, only correctable errors are counted and the mshim doesn't record
|
/linux-4.1.27/arch/m68k/include/asm/ |
H A D | atafdreg.h | 57 #define FDCSTAT_RECNF (0x10) /* record not found */
|
/linux-4.1.27/kernel/printk/ |
H A D | printk.c | 143 * length records. Every record starts with a record header, containing 144 * the overall length of the record. 154 * Every record carries the monotonic timestamp in microseconds, as well as 181 * 0008 34 00 record is 52 bytes long 217 u16 len; /* length of entire record */ 221 u8 flags:5; /* internal record flags */ 234 /* the next printk record to read by syslog(READ) or /proc/kmsg */ 240 /* index and sequence number of the first record stored in the buffer */ 244 /* index and sequence number of the next record to store in the buffer */ 248 /* the next printk record to write to the console */ 253 /* the next printk record to read after the last 'clear' command */ 260 /* record buffer */ 283 /* human readable text of the record */ log_text() 289 /* optional key/value pair dictionary attached to the record */ log_dict() 295 /* get record by index; idx must point to valid msg */ log_from_idx() 301 * A length == 0 record is the end of buffer marker. Wrap around and log_from_idx() 309 /* get next record; idx must point to valid msg */ log_next() 316 * A length == 0 record is the end of buffer marker. Wrap around and log_next() 407 /* insert record into the buffer, discard old ones, update heads */ log_store() 620 * better readable output. 'c' in the record flags mark the first devkmsg_read() 704 /* the first record */ devkmsg_llseek() 710 * The first record after the last SYSLOG_ACTION_CLEAR, devkmsg_llseek() 718 /* after the last record */ devkmsg_llseek() 1185 * Find first record that fits, including all following records, syslog_print_all() 1200 /* move first record forward until length fits into the buffer */ syslog_print_all() 1507 * Continuation lines are buffered, and not committed to the record buffer 2228 * Skip record we have buffered and already printed console_unlock() 2831 * record, and copy one record into the provided buffer. 2833 * Consecutive calls will return the next available record moving 2882 * record, and copy one record into the provided buffer. 2884 * Consecutive calls will return the next available record moving 2964 /* move first record forward until length fits into the buffer */ kmsg_dump_get_buffer()
|
/linux-4.1.27/fs/xfs/ |
H A D | xfs_log_recover.c | 66 * This structure is used during recovery to record the buf log items which 290 * dump debug superblock and log record information 307 * check log record header for recovery 492 * Potentially backup over partial log record write. 495 * a good log record. Therefore, we subtract one to get the block number 498 * last log record is split over the end of the physical log. 534 /* valid log record not found */ xlog_find_verify_log_record() 569 * of the log record _before_ the head. So we check the uuid. xlog_find_verify_log_record() 575 * We may have found a log record header before we expected one. xlog_find_verify_log_record() 577 * up reading an entire log record. In this case, we don't want to xlog_find_verify_log_record() 579 * record do we update last_blk. xlog_find_verify_log_record() 638 * mkfs etc write a dummy unmount record to a fresh xlog_find_head() 812 * the middle of a log record. xlog_find_head() 873 * This will be the block number of the last record to have its 874 * associated buffers synced to disk. Every log record header has 877 * log record header to believe. 879 * The following algorithm uses the log record header with the largest 880 * lsn. The entire log record does not need to be valid. We only care 905 * Find previous log record xlog_find_tail() 926 * Search backwards looking for log record header block xlog_find_tail() 940 * If we haven't found the log record header block, start looking xlog_find_tail() 959 xfs_warn(log->l_mp, "%s: couldn't find sync record", __func__); xlog_find_tail() 973 * continuing the cycle of the last good log record. At this xlog_find_tail() 975 * accounted for. Therefore, we know that the last good log record xlog_find_tail() 992 * Look for unmount record. If we find it, then we know there xlog_find_tail() 999 * unmount record if there is one, so we pass the lsn of the xlog_find_tail() 1000 * unmount record rather than the block after it. xlog_find_tail() 1032 * current unmount record. xlog_find_tail() 1057 * overwrite the unmount record after a clean unmount. xlog_find_tail() 1177 * Potentially backup over partial log record write. We don't need xlog_find_zeroed() 1196 * to initialize a buffer full of empty log record headers and write 1316 * the log so that we will not write over the unmount record after a 1570 * If we get a cancel record which is already in the table, this indicates 1572 * that during pass 2 we keep the record in the table until we reach its 1574 * record in the table to tell us how many times we expect to see this 1575 * record during the second pass. 1595 * Insert an xfs_buf_cancel record into the hash table of them. xlog_recover_buffer_pass1() 1596 * If there is already an identical record, bump its reference count. xlog_recover_buffer_pass1() 1620 * entry in the buffer cancel record table. If it is, return the cancel 1659 * We remove the cancel record from the table when we encounter its last 1784 "Bad inode buffer log record (ptr = 0x%p, bp = 0x%p). " xlog_recover_do_inode_buffer() 2572 "%s: Bad inode log record, rec ptr 0x%p, ino %Ld", xlog_recover_inode_pass2() 2630 "%s: Bad regular inode log record, rec ptr 0x%p, " xlog_recover_inode_pass2() 2643 "%s: Bad dir inode log record, rec ptr 0x%p, " xlog_recover_inode_pass2() 2654 "%s: Bad inode log record, rec ptr 0x%p, dino ptr 0x%p, " xlog_recover_inode_pass2() 2666 "%s: Bad inode log record, rec ptr 0x%p, dino ptr 0x%p, " xlog_recover_inode_pass2() 2677 "%s: Bad inode log record length %d, rec ptr 0x%p", xlog_recover_inode_pass2() 2819 * Recover a dquot record 2854 * This type of quotas was turned off, so ignore this record. xlog_recover_dquot_pass2() 4032 "log record CRC mismatch: found 0x%x, expected 0x%x.", xlog_unpack_data_crc() 4039 * If we've detected a log record corruption, then we can't xlog_unpack_data_crc() 4255 /* Read in data for log record */ xlog_do_recovery_pass() 4262 /* This log record is split across the xlog_do_recovery_pass() 4354 * of cancelling a record written into the log. The first pass
|
H A D | xfs_itable.c | 173 * record. Do a readahead if there are any allocated inodes in that cluster. 203 * Lookup the inode chunk that the given inode lives in and then get the record 205 * are some left allocated, update the data for the pointed-to record as well as 213 struct xfs_inobt_rec_incore *irec) /* btree record */ xfs_bulkstat_grab_ichunk() 228 /* Get the record, should always work */ xfs_bulkstat_grab_ichunk() 234 /* Check if the record contains the inode in request */ xfs_bulkstat_grab_ichunk() 246 * Grab the chunk record. Mark all the uninteresting inodes xfs_bulkstat_grab_ichunk() 422 /* Increment to the next record */ xfs_bulkstat()
|
H A D | xfs_extent_busy.h | 31 * Note that we use the transaction ID to record the transaction, not the
|
/linux-4.1.27/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_dcbnl.c | 99 /* record flow control max count and state of TCs */ fm10k_dcbnl_ieee_getpfc() 115 /* record PFC configuration to interface */ fm10k_dcbnl_ieee_setpfc()
|
H A D | fm10k_common.c | 175 /* record maximum number of MSI-X vectors */ fm10k_get_invariants_generic() 375 /* update bases and record ID */ fm10k_update_hw_stats_tx_q() 430 /* update bases and record ID */ fm10k_update_hw_stats_rx_q() 482 * @host_ready: pointer to boolean value that will record host state
|
H A D | fm10k_pf.c | 178 /* record maximum queue count, we limit ourselves to 128 */ fm10k_init_hw_pf() 244 /* record the initial state of the register */ fm10k_update_vlan_pf() 339 /* record fields */ fm10k_update_xc_addr_pf() 650 /* record number of virtualization entities */ fm10k_iov_assign_resources_pf() 703 /* record index for VF queue 0 for use in end of loop */ fm10k_iov_assign_resources_pf() 1185 /* record VLAN id requested */ fm10k_iov_msg_mac_vlan_pf() 1208 /* record unicast MAC address requested */ fm10k_iov_msg_mac_vlan_pf() 1236 /* record multicast MAC address requested */ fm10k_iov_msg_mac_vlan_pf() 1436 /* Update bases and record current PF id */ fm10k_update_hw_stats_pf() 1499 * @fault: pointer to memory location to record the fault 1542 /* record fault type */ fm10k_get_fault_pf() 1568 * @switch_ready: pointer to boolean value that will record switch state 1636 /* record the glort, mask, and port count */ fm10k_msg_lport_map_pf() 1679 /* record the port VLAN ID value */ fm10k_msg_update_pvid_pf() 1728 /* record table status */ fm10k_msg_err_pf() 1733 /* record SW API status value */ fm10k_msg_err_pf()
|
/linux-4.1.27/drivers/staging/rtl8712/ |
H A D | rtl8712_cmd.h | 123 GEN_CMD_CODE(_GetTxRetrycnt), /* to record times that Tx retry to 126 GEN_CMD_CODE(_GetRxRetrycnt), /* to record total number of the
|
/linux-4.1.27/drivers/staging/lustre/lustre/include/ |
H A D | lu_ref.h | 52 * has to be called to insert into foo::foo_reference a record, describing 53 * acquired reference. Dually, lu_ref_del() removes matching record. Typical
|
H A D | lustre_log.h | 41 * - orphan recovery: OST adds record on create 42 * - mtime/size consistency: the OST adds a record on first write 43 * - open/unlinked objects: OST adds a record on destroy 153 * Catalog process callback function, called for each record 260 * write new record in llog. It appends records usually but can edit 273 * Add new record in llog catalog. Does the same as llog_write_rec()
|
/linux-4.1.27/fs/isofs/ |
H A D | rock.c | 16 * These functions are designed to read the system areas of a directory record 135 * We think there's a record of type `sig' at rs->chr. Parse the signature 136 * and make sure that there's really room for a record of that type. 493 * If this component record isn't parse_rock_ridge_inode_internal() 646 * If there is another SL record, and this component get_symlink_chunk() 647 * record isn't continued, then add a slash. get_symlink_chunk() 659 * If this component record isn't continued, then append a '/'. get_symlink_chunk() 765 /* This tells is if there is a continuation record */ rock_ridge_symlink_readpage()
|
/linux-4.1.27/include/uapi/asm-generic/ |
H A D | fcntl.h | 138 * Usually record locks held by a process are released on *any* close and are 142 * record locks, but are "owned" by the open file description, not the
|
/linux-4.1.27/arch/m68k/include/uapi/asm/ |
H A D | bootinfo.h | 35 __be16 size; /* size of record (in bytes) */ 55 #define BI_LAST 0x0000 /* last record (sentinel) */
|
/linux-4.1.27/net/sched/ |
H A D | em_canid.c | 30 /* For each SFF CAN ID (11 bit) there is one record in this bitfield */ 82 * Add record (set bit to 1) for each ID that em_canid_sff_match_add()
|
/linux-4.1.27/sound/pci/cs46xx/ |
H A D | cs46xx_dsp_spos.h | 212 /* Capture record mixer SCB */ 227 /* record sources */
|
/linux-4.1.27/drivers/isdn/sc/ |
H A D | scioc.h | 12 #define SCIOCLOAD 0x01 /* Load a firmware record */
|
/linux-4.1.27/drivers/net/wireless/ath/ath6kl/ |
H A D | htc_pipe.c | 858 struct htc_record_hdr *record; htc_process_trailer() local 873 record = (struct htc_record_hdr *) buffer; htc_process_trailer() 877 if (record->len > len) { htc_process_trailer() 878 /* no room left in buffer for record */ htc_process_trailer() 881 record->len, record->rec_id, len); htc_process_trailer() 886 /* start of record follows the header */ htc_process_trailer() 889 switch (record->rec_id) { htc_process_trailer() 891 if (record->len < sizeof(struct htc_credit_report)) { htc_process_trailer() 898 record->len / sizeof(*report), htc_process_trailer() 903 "unhandled record: id:%d length:%d\n", htc_process_trailer() 904 record->rec_id, record->len); htc_process_trailer() 911 /* advance buffer past this record for next time around */ htc_process_trailer() 912 buffer += record->len; htc_process_trailer() 913 len -= record->len; htc_process_trailer()
|
/linux-4.1.27/drivers/input/touchscreen/ |
H A D | cyttsp4_core.h | 46 /* touch record system information offset masks and shifts */ 198 u8 btn_rec_size; /* btn record size (in bytes) */ 304 size_t btn_rec_size; /* btn record size (in bytes) */ 436 CY_EV_LIFTOFF, /* record reports last position */
|
/linux-4.1.27/arch/arm64/kernel/ |
H A D | cpu_ops.c | 53 * Read a cpu's enable method from the device tree and record it in cpu_ops.
|
/linux-4.1.27/sound/pci/aw2/ |
H A D | aw2-saa7146.h | 42 /* definition of the chip-specific record */
|
/linux-4.1.27/include/net/ |
H A D | inet_sock.h | 39 * @rr_needaddr - Need to record addr of outgoing dev 40 * @ts_needtime - Need to record timestamp 41 * @ts_needaddr - Need to record addr of outgoing dev
|
/linux-4.1.27/include/uapi/sound/ |
H A D | sfnt_info.h | 5 * Patch record compatible with AWE driver on OSS 28 * patch information record 85 * raw voice information record
|
/linux-4.1.27/fs/dlm/ |
H A D | dir.c | 273 * end-of-block record 0x0000 (uint16_t) dlm_copy_master_names() 277 /* Write end-of-block record */ dlm_copy_master_names() 295 * terminating record. dlm_copy_master_names()
|
/linux-4.1.27/drivers/gpu/drm/radeon/ |
H A D | radeon_atombios.c | 428 * even though they are wired up to record 0x93 radeon_atom_apply_quirks() 662 ATOM_COMMON_RECORD_HEADER *record = (ATOM_COMMON_RECORD_HEADER *) radeon_get_atom_connector_info_from_object_table() local 668 while (record->ucRecordSize > 0 && radeon_get_atom_connector_info_from_object_table() 669 record->ucRecordType > 0 && radeon_get_atom_connector_info_from_object_table() 670 record->ucRecordType <= ATOM_MAX_OBJECT_RECORD_NUMBER) { radeon_get_atom_connector_info_from_object_table() 671 switch (record->ucRecordType) { radeon_get_atom_connector_info_from_object_table() 674 record; radeon_get_atom_connector_info_from_object_table() 678 record = (ATOM_COMMON_RECORD_HEADER *) radeon_get_atom_connector_info_from_object_table() 679 ((char *)record + record->ucRecordSize); radeon_get_atom_connector_info_from_object_table() 693 ATOM_COMMON_RECORD_HEADER *record = (ATOM_COMMON_RECORD_HEADER *) radeon_get_atom_connector_info_from_object_table() local 717 while (record->ucRecordSize > 0 && radeon_get_atom_connector_info_from_object_table() 718 record->ucRecordType > 0 && radeon_get_atom_connector_info_from_object_table() 719 record->ucRecordType <= ATOM_MAX_OBJECT_RECORD_NUMBER) { radeon_get_atom_connector_info_from_object_table() 720 switch (record->ucRecordType) { radeon_get_atom_connector_info_from_object_table() 724 record; radeon_get_atom_connector_info_from_object_table() 736 record; radeon_get_atom_connector_info_from_object_table() 744 record; radeon_get_atom_connector_info_from_object_table() 751 record = (ATOM_COMMON_RECORD_HEADER *) radeon_get_atom_connector_info_from_object_table() 752 ((char *)record + record->ucRecordSize); radeon_get_atom_connector_info_from_object_table() 769 *record = radeon_get_atom_connector_info_from_object_table() local 780 while (record->ucRecordSize > 0 && radeon_get_atom_connector_info_from_object_table() 781 record->ucRecordType > 0 && radeon_get_atom_connector_info_from_object_table() 782 record->ucRecordType <= ATOM_MAX_OBJECT_RECORD_NUMBER) { radeon_get_atom_connector_info_from_object_table() 783 switch (record->ucRecordType) { radeon_get_atom_connector_info_from_object_table() 787 record; radeon_get_atom_connector_info_from_object_table() 798 record; radeon_get_atom_connector_info_from_object_table() 805 record = radeon_get_atom_connector_info_from_object_table() 807 *) ((char *)record radeon_get_atom_connector_info_from_object_table() 809 record-> radeon_get_atom_connector_info_from_object_table() 1698 /* parse the lcd record table */ radeon_atombios_get_lvds_info() 1703 u8 *record; radeon_atombios_get_lvds_info() local 1707 record = (u8 *)(mode_info->atom_context->bios + radeon_atombios_get_lvds_info() 1711 record = (u8 *)(mode_info->atom_context->bios + radeon_atombios_get_lvds_info() 1714 while (*record != ATOM_RECORD_END_TYPE) { radeon_atombios_get_lvds_info() 1715 switch (*record) { radeon_atombios_get_lvds_info() 1717 record += sizeof(ATOM_PATCH_RECORD_MODE); radeon_atombios_get_lvds_info() 1720 record += sizeof(ATOM_LCD_RTS_RECORD); radeon_atombios_get_lvds_info() 1723 record += sizeof(ATOM_LCD_MODE_CONTROL_CAP); radeon_atombios_get_lvds_info() 1726 fake_edid_record = (ATOM_FAKE_EDID_PATCH_RECORD *)record; radeon_atombios_get_lvds_info() 1743 record += fake_edid_record->ucFakeEDIDLength ? radeon_atombios_get_lvds_info() 1748 panel_res_record = (ATOM_PANEL_RESOLUTION_PATCH_RECORD *)record; radeon_atombios_get_lvds_info() 1751 record += sizeof(ATOM_PANEL_RESOLUTION_PATCH_RECORD); radeon_atombios_get_lvds_info() 1754 DRM_ERROR("Bad LCD record %d\n", *record); radeon_atombios_get_lvds_info()
|
/linux-4.1.27/drivers/input/keyboard/ |
H A D | hil_kbd.c | 78 char idd[HIL_PACKET_MAX_LENGTH]; /* DID byte and IDD record */ 79 char rsc[HIL_PACKET_MAX_LENGTH]; /* RSC record */ 80 char exd[HIL_PACKET_MAX_LENGTH]; /* EXD record */ 81 char rnm[HIL_PACKET_MAX_LENGTH + 1]; /* RNM record + NULL term. */ 133 printk(KERN_WARNING PREFIX "Device sent unknown record %x\n", p); hil_dev_handle_command_response()
|
/linux-4.1.27/arch/powerpc/perf/ |
H A D | core-fsl-emb.c | 602 * A counter has overflowed; update its count and record 611 int record = 0; record_and_restart() local 634 record = 1; record_and_restart() 647 * Finally record data if requested. record_and_restart() 649 if (record) { record_and_restart()
|
/linux-4.1.27/fs/nfs/ |
H A D | client.c | 145 * Allocate a shared client record 238 * Destroy a shared client record 264 * Release a reference to a shared client record 475 * - creates a new record if one doesn't yet exist 825 * Load up the server record from information gained in an fsinfo record 927 * Copy useful information when duplicating a server record 978 * Allocate and initialise a server record 1020 * Free up a server record 1049 * Create a version 2 or 3 volume record 1113 * Clone an NFS2, NFS3 or NFS4 server record
|
/linux-4.1.27/sound/soc/codecs/ |
H A D | wm0010.c | 35 /* We only support v1 of the .dfw INFO record */ 379 /* First record should be INFO */ wm0010_firmware_load() 381 dev_err(codec->dev, "First record not INFO\r\n"); wm0010_firmware_load() 388 "Unsupported version (%02d) of INFO record\r\n", wm0010_firmware_load() 394 dev_dbg(codec->dev, "Version v%02d INFO record found\r\n", wm0010_firmware_load() 404 /* Skip the info record as we don't need to send it */ wm0010_firmware_load() 657 /* Initialise a PLL record */ wm0010_boot()
|
/linux-4.1.27/drivers/mtd/ubi/ |
H A D | vtbl.c | 32 * table is basically an array of volume table records. Each record contains 69 /* Empty volume table record */ 73 * ubi_change_vtbl_record - change volume table record. 76 * @vtbl_rec: new volume table record 78 * This function changes volume table record @idx. If @vtbl_rec is %NULL, empty 79 * volume table record is written. The caller does not have to calculate CRC of 80 * the record as it is done by this function. Returns zero in case of success 188 ubi_err(ubi, "bad CRC at record %u: %#08x, not %#08x", vtbl_check() 280 ubi_err(ubi, "volume table check failed: record %d, error %d", i, err); vtbl_check() 539 continue; /* Empty record */ init_volumes()
|
/linux-4.1.27/sound/pci/hda/ |
H A D | patch_via.c | 661 /* create a codec specific record */ patch_vt1708() 709 /* create a codec specific record */ patch_vt1709() 736 /* create a codec specific record */ patch_vt1708B() 780 /* create a codec specific record */ patch_vt1708S() 834 /* create a codec specific record */ patch_vt1702() 911 /* create a codec specific record */ patch_vt1718S() 1009 /* create a codec specific record */ patch_vt1716S() 1111 /* create a codec specific record */ patch_vt2002P() 1158 /* create a codec specific record */ patch_vt1812() 1198 /* create a codec specific record */ patch_vt3476()
|
/linux-4.1.27/net/sunrpc/ |
H A D | svcsock.c | 12 * record length, and the second for the actual record. This could possibly 17 * number, to extract the record marker. Yuck. 332 /* If we read a full record, then assume there may be more svc_recvfrom() 967 * Receive fragment record header. 968 * If we haven't gotten the record length yet, get the next four bytes. 987 dprintk("svc: short recvfrom while reading record " svc_tcp_recv_record() 992 dprintk("svc: TCP record, %d bytes\n", svc_sock_reclen(svsk)); svc_tcp_recv_record() 1072 dprintk("svc: TCP %s record (%d bytes)\n", svc_tcp_fragment_received() 1127 dprintk("svc: incomplete TCP record (%d of %d)\n", svc_tcp_recvfrom() 1181 return 0; /* record not complete */ svc_tcp_recvfrom() 1216 * Setup response header. TCP has a 4B record length field. 1222 /* tcp needs a space for the record length... */ svc_tcp_prep_reply_hdr()
|
/linux-4.1.27/arch/x86/math-emu/ |
H A D | reg_u_div.S | 125 setaeb FPU_ovfl_flag /* Keep a record */ 206 setaeb FPU_ovfl_flag /* Keep a record */ 214 /* At this point, we have a dividend < divisor, with a record of
|
/linux-4.1.27/arch/powerpc/mm/ |
H A D | icswx.c | 263 /* Check if the instruction is the "record form" */ acop_handle_fault() 266 * the instruction is "record" form so we can reject acop_handle_fault() 278 * Since the non-record version should only bu used acop_handle_fault()
|
/linux-4.1.27/sound/pci/lx6464es/ |
H A D | lx_defs.h | 144 PSTATE_RUN = 1, /* sustained play/record state. */ 146 * not DMA, record pipe do a last DMA. */ 148 * not yet increase their sample count, record
|
/linux-4.1.27/drivers/media/usb/dvb-usb/ |
H A D | dvb-usb-firmware.c | 134 /* b[4] and b[5] are the Extended linear address record data field */ dvb_usb_get_hexline()
|
/linux-4.1.27/drivers/infiniband/hw/mlx4/ |
H A D | alias_GUID.c | 50 Whenever we receive an smp mad GUIDInfo record, the data will be cached. 341 pr_debug("need to set new value %llx, record num %d, block_num:%d\n", aliasguid_query_handler() 358 /* properly assigned record. */ aliasguid_query_handler() 395 /* using the minimum value among all entries in that record */ aliasguid_query_handler() 409 pr_debug("record=%d wasn't fully set, guid_indexes=0x%llx applied_indexes=0x%llx, declined_indexes=0x%llx\n", aliasguid_query_handler() 456 /* calculate the comp_mask for that record.*/ invalidate_guid_record() 463 it is the first guid of the first record (hw guid) or invalidate_guid_record() 682 /* return index of record that should be updated based on lowest 715 /* The function returns the next record that was
|
/linux-4.1.27/drivers/cpufreq/ |
H A D | s3c2410-cpufreq.c | 78 /* record the result */ s3c2410_cpufreq_calcdivs()
|