/drivers/md/ |
D | raid5-cache.c | 210 struct r5l_log *log; member 250 bool r5c_is_writeback(struct r5l_log *log) in r5c_is_writeback() argument 252 return (log != NULL && in r5c_is_writeback() 253 log->r5c_journal_mode == R5C_JOURNAL_MODE_WRITE_BACK); in r5c_is_writeback() 256 static sector_t r5l_ring_add(struct r5l_log *log, sector_t start, sector_t inc) in r5l_ring_add() argument 259 if (start >= log->device_size) in r5l_ring_add() 260 start = start - log->device_size; in r5l_ring_add() 264 static sector_t r5l_ring_distance(struct r5l_log *log, sector_t start, in r5l_ring_distance() argument 270 return end + log->device_size - start; in r5l_ring_distance() 273 static bool r5l_has_free_space(struct r5l_log *log, sector_t size) in r5l_has_free_space() argument [all …]
|
D | dm-log.c | 153 struct dm_dirty_log *log; in dm_dirty_log_create() local 155 log = kmalloc(sizeof(*log), GFP_KERNEL); in dm_dirty_log_create() 156 if (!log) in dm_dirty_log_create() 161 kfree(log); in dm_dirty_log_create() 165 log->flush_callback_fn = flush_callback_fn; in dm_dirty_log_create() 166 log->type = type; in dm_dirty_log_create() 167 if (type->ctr(log, ti, argc, argv)) { in dm_dirty_log_create() 168 kfree(log); in dm_dirty_log_create() 173 return log; in dm_dirty_log_create() 177 void dm_dirty_log_destroy(struct dm_dirty_log *log) in dm_dirty_log_destroy() argument [all …]
|
D | raid5-ppl.c | 136 struct ppl_log *log; member 232 static struct ppl_io_unit *ppl_new_iounit(struct ppl_log *log, in ppl_new_iounit() argument 235 struct ppl_conf *ppl_conf = log->ppl_conf; in ppl_new_iounit() 248 io->log = log; in ppl_new_iounit() 266 static int ppl_log_stripe(struct ppl_log *log, struct stripe_head *sh) in ppl_log_stripe() argument 268 struct ppl_io_unit *io = log->current_io; in ppl_log_stripe() 279 if (io && (io->pp_size == log->entry_space || in ppl_log_stripe() 288 io = ppl_new_iounit(log, sh); in ppl_log_stripe() 291 spin_lock_irq(&log->io_list_lock); in ppl_log_stripe() 292 list_add_tail(&io->log_sibling, &log->io_list); in ppl_log_stripe() [all …]
|
D | raid5-log.h | 7 extern int r5l_write_stripe(struct r5l_log *log, struct stripe_head *head_sh); 8 extern void r5l_write_stripe_run(struct r5l_log *log); 9 extern void r5l_flush_stripe_to_raid(struct r5l_log *log); 11 extern int r5l_handle_flush_request(struct r5l_log *log, struct bio *bio); 12 extern void r5l_quiesce(struct r5l_log *log, int quiesce); 14 extern bool r5c_is_writeback(struct r5l_log *log); 23 extern void r5l_wake_reclaim(struct r5l_log *log, sector_t space); 26 extern int r5c_cache_data(struct r5l_log *log, struct stripe_head *sh); 35 extern int r5l_start(struct r5l_log *log); 47 extern int ppl_handle_flush_request(struct r5l_log *log, struct bio *bio); [all …]
|
D | dm-log-userspace-base.c | 190 static int userspace_ctr(struct dm_dirty_log *log, struct dm_target *ti, in userspace_ctr() argument 320 log->context = lc; in userspace_ctr() 326 static void userspace_dtr(struct dm_dirty_log *log) in userspace_dtr() argument 328 struct log_c *lc = log->context; in userspace_dtr() 352 static int userspace_presuspend(struct dm_dirty_log *log) in userspace_presuspend() argument 355 struct log_c *lc = log->context; in userspace_presuspend() 363 static int userspace_postsuspend(struct dm_dirty_log *log) in userspace_postsuspend() argument 366 struct log_c *lc = log->context; in userspace_postsuspend() 380 static int userspace_resume(struct dm_dirty_log *log) in userspace_resume() argument 383 struct log_c *lc = log->context; in userspace_resume() [all …]
|
D | dm-region-hash.c | 62 struct dm_dirty_log *log; member 167 struct dm_dirty_log *log, uint32_t region_size, in dm_region_hash_create() argument 196 rh->log = log; in dm_region_hash_create() 251 if (rh->log) in dm_region_hash_destroy() 252 dm_dirty_log_destroy(rh->log); in dm_region_hash_destroy() 262 return rh->log; in dm_rh_dirty_log() 296 nreg->state = rh->log->type->in_sync(rh->log, region, 1) ? in __rh_alloc() 354 r = rh->log->type->in_sync(rh->log, region, may_block); in dm_rh_get_state() 368 rh->log->type->set_region_sync(rh->log, reg->key, success); in complete_resync_work() 398 struct dm_dirty_log *log = rh->log; in dm_rh_mark_nosync() local [all …]
|
D | dm-raid1.c | 387 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh); in do_recovery() local 404 (log->type->get_sync_count(log) == ms->nr_regions)) { in do_recovery() 439 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh); in mirror_available() local 442 if (log->type->in_sync(log, region, 0)) in mirror_available() 685 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh); in do_writes() local 708 if (log->type->is_remote_recovering && in do_writes() 709 log->type->is_remote_recovering(log, region)) { in do_writes() 1189 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh); in mirror_map() local 1202 r = log->type->in_sync(log, dm_rh_bio_to_region(ms->rh, bio), 0); in mirror_map() 1303 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh); in mirror_presuspend() local [all …]
|
/drivers/gpu/drm/i915/gt/uc/ |
D | intel_guc_log.c | 13 static void guc_log_capture_logs(struct intel_guc_log *log); 58 static void guc_log_enable_flush_events(struct intel_guc_log *log) in guc_log_enable_flush_events() argument 60 intel_guc_enable_msg(log_to_guc(log), in guc_log_enable_flush_events() 65 static void guc_log_disable_flush_events(struct intel_guc_log *log) in guc_log_disable_flush_events() argument 67 intel_guc_disable_msg(log_to_guc(log), in guc_log_disable_flush_events() 143 static void guc_move_to_next_buf(struct intel_guc_log *log) in guc_move_to_next_buf() argument 152 relay_reserve(log->relay.channel, log->vma->obj->base.size); in guc_move_to_next_buf() 155 relay_flush(log->relay.channel); in guc_move_to_next_buf() 158 static void *guc_get_write_buffer(struct intel_guc_log *log) in guc_get_write_buffer() argument 169 return relay_reserve(log->relay.channel, 0); in guc_get_write_buffer() [all …]
|
D | intel_guc_log_debugfs.c | 32 struct intel_guc_log *log = data; in guc_log_level_get() local 34 if (!intel_guc_is_used(log_to_guc(log))) in guc_log_level_get() 37 *val = intel_guc_log_get_level(log); in guc_log_level_get() 44 struct intel_guc_log *log = data; in guc_log_level_set() local 46 if (!intel_guc_is_used(log_to_guc(log))) in guc_log_level_set() 49 return intel_guc_log_set_level(log, val); in guc_log_level_set() 58 struct intel_guc_log *log = inode->i_private; in guc_log_relay_open() local 60 if (!intel_guc_is_ready(log_to_guc(log))) in guc_log_relay_open() 63 file->private_data = log; in guc_log_relay_open() 65 return intel_guc_log_relay_open(log); in guc_log_relay_open() [all …]
|
D | intel_guc_log.h | 64 void intel_guc_log_init_early(struct intel_guc_log *log); 65 int intel_guc_log_create(struct intel_guc_log *log); 66 void intel_guc_log_destroy(struct intel_guc_log *log); 68 int intel_guc_log_set_level(struct intel_guc_log *log, u32 level); 69 bool intel_guc_log_relay_created(const struct intel_guc_log *log); 70 int intel_guc_log_relay_open(struct intel_guc_log *log); 71 int intel_guc_log_relay_start(struct intel_guc_log *log); 72 void intel_guc_log_relay_flush(struct intel_guc_log *log); 73 void intel_guc_log_relay_close(struct intel_guc_log *log); 75 void intel_guc_log_handle_flush_event(struct intel_guc_log *log); [all …]
|
/drivers/char/tpm/eventlog/ |
D | efi.c | 22 struct tpm_bios_log *log; in tpm_read_log_efi() local 34 log = &chip->log; in tpm_read_log_efi() 58 log->bios_event_log = kmemdup(log_tbl->log, log_size, GFP_KERNEL); in tpm_read_log_efi() 59 if (!log->bios_event_log) { in tpm_read_log_efi() 64 log->bios_event_log_end = log->bios_event_log + log_size; in tpm_read_log_efi() 79 kfree(log->bios_event_log); in tpm_read_log_efi() 94 tmp = krealloc(log->bios_event_log, in tpm_read_log_efi() 98 kfree(log->bios_event_log); in tpm_read_log_efi() 103 log->bios_event_log = tmp; in tpm_read_log_efi() 110 memcpy((void *)log->bios_event_log + log_size, in tpm_read_log_efi() [all …]
|
D | acpi.c | 72 struct tpm_bios_log *log; in tpm_read_log_acpi() local 78 log = &chip->log; in tpm_read_log_acpi() 138 log->bios_event_log = kmalloc(len, GFP_KERNEL); in tpm_read_log_acpi() 139 if (!log->bios_event_log) in tpm_read_log_acpi() 142 log->bios_event_log_end = log->bios_event_log + len; in tpm_read_log_acpi() 153 memcpy_fromio(log->bios_event_log, virt, len); in tpm_read_log_acpi() 158 !tpm_is_tpm2_log(log->bios_event_log, len)) { in tpm_read_log_acpi() 167 kfree(log->bios_event_log); in tpm_read_log_acpi() 168 log->bios_event_log = NULL; in tpm_read_log_acpi()
|
D | tpm2.c | 45 struct tpm_bios_log *log = &chip->log; in tpm2_bios_measurements_start() local 46 void *addr = log->bios_event_log; in tpm2_bios_measurements_start() 47 void *limit = log->bios_event_log_end; in tpm2_bios_measurements_start() 91 struct tpm_bios_log *log = &chip->log; in tpm2_bios_measurements_next() local 92 void *limit = log->bios_event_log_end; in tpm2_bios_measurements_next() 97 event_header = log->bios_event_log; in tpm2_bios_measurements_next() 131 struct tpm_bios_log *log = &chip->log; in tpm2_binary_bios_measurements_show() local 132 struct tcg_pcr_event *event_header = log->bios_event_log; in tpm2_binary_bios_measurements_show()
|
D | of.c | 25 struct tpm_bios_log *log; in tpm_read_log_of() local 29 log = &chip->log; in tpm_read_log_of() 68 log->bios_event_log = kmemdup(__va(base), size, GFP_KERNEL); in tpm_read_log_of() 69 if (!log->bios_event_log) in tpm_read_log_of() 72 log->bios_event_log_end = log->bios_event_log + size; in tpm_read_log_of()
|
D | tpm1.c | 74 struct tpm_bios_log *log = &chip->log; in tpm1_bios_measurements_start() local 75 void *addr = log->bios_event_log; in tpm1_bios_measurements_start() 76 void *limit = log->bios_event_log_end; in tpm1_bios_measurements_start() 113 struct tpm_bios_log *log = &chip->log; in tpm1_bios_measurements_next() local 114 void *limit = log->bios_event_log_end; in tpm1_bios_measurements_next()
|
/drivers/net/wireless/broadcom/b43legacy/ |
D | debugfs.c | 127 struct b43legacy_txstatus_log *log = &dev->dfsentry->txstatlog; in txstat_read_file() local 133 spin_lock_irqsave(&log->lock, flags); in txstat_read_file() 134 if (log->end < 0) { in txstat_read_file() 142 i = log->end + 1; in txstat_read_file() 147 stat = &(log->log[i]); in txstat_read_file() 162 if (i == log->end) in txstat_read_file() 167 spin_unlock_irqrestore(&log->lock, flags); in txstat_read_file() 371 struct b43legacy_txstatus_log *log; in b43legacy_debugfs_add_device() local 381 log = &e->txstatlog; in b43legacy_debugfs_add_device() 382 log->log = kcalloc(B43legacy_NR_LOGGED_TXSTATUS, in b43legacy_debugfs_add_device() [all …]
|
/drivers/nvme/host/ |
D | hwmon.c | 15 struct nvme_smart_log *log; member 63 NVME_CSI_NVM, data->log, sizeof(*data->log), 0); in nvme_hwmon_get_smart_log() 70 struct nvme_smart_log *log = data->log; in nvme_hwmon_read() local 98 temp = get_unaligned_le16(log->temperature); in nvme_hwmon_read() 100 temp = le16_to_cpu(log->temp_sensor[channel - 1]); in nvme_hwmon_read() 104 *val = !!(log->critical_warning & NVME_SMART_CRIT_TEMPERATURE); in nvme_hwmon_read() 166 (channel && data->log->temp_sensor[channel - 1])) { in nvme_hwmon_is_visible() 179 if (!channel || data->log->temp_sensor[channel - 1]) in nvme_hwmon_is_visible() 235 data->log = kzalloc(sizeof(*data->log), GFP_KERNEL); in nvme_hwmon_init() 236 if (!data->log) { in nvme_hwmon_init() [all …]
|
/drivers/staging/greybus/ |
D | log.c | 70 struct gb_log *log; in gb_log_probe() local 80 log = kzalloc(sizeof(*log), GFP_KERNEL); in gb_log_probe() 81 if (!log) in gb_log_probe() 91 log->connection = connection; in gb_log_probe() 92 greybus_set_drvdata(bundle, log); in gb_log_probe() 103 kfree(log); in gb_log_probe() 109 struct gb_log *log = greybus_get_drvdata(bundle); in gb_log_disconnect() local 110 struct gb_connection *connection = log->connection; in gb_log_disconnect() 115 kfree(log); in gb_log_disconnect()
|
/drivers/nvme/target/ |
D | admin-cmd.c | 141 struct nvme_smart_log *log; in nvmet_execute_get_log_page_smart() local 145 if (req->transfer_len != sizeof(*log)) in nvmet_execute_get_log_page_smart() 148 log = kzalloc(sizeof(*log), GFP_KERNEL); in nvmet_execute_get_log_page_smart() 149 if (!log) in nvmet_execute_get_log_page_smart() 153 status = nvmet_get_smart_log_all(req, log); in nvmet_execute_get_log_page_smart() 155 status = nvmet_get_smart_log_nsid(req, log); in nvmet_execute_get_log_page_smart() 161 &log->num_err_log_entries); in nvmet_execute_get_log_page_smart() 164 status = nvmet_copy_to_sgl(req, 0, log, sizeof(*log)); in nvmet_execute_get_log_page_smart() 166 kfree(log); in nvmet_execute_get_log_page_smart() 174 struct nvme_effects_log *log; in nvmet_execute_get_log_cmd_effects_ns() local [all …]
|
/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
D | gpio.c | 88 .log[0] = (info & 0x1800) >> 11, in dcb_gpio_parse() 89 .log[1] = (info & 0x6000) >> 13, in dcb_gpio_parse() 98 .log[0] = (info & 0x18000000) >> 27, in dcb_gpio_parse() 99 .log[1] = (info & 0x60000000) >> 29, in dcb_gpio_parse() 108 .log[0] = (info1 & 0x30) >> 4, in dcb_gpio_parse() 109 .log[1] = (info1 & 0xc0) >> 6, in dcb_gpio_parse() 140 .log[0] = !!(conf & 0x02), in dcb_gpio_match() 141 .log[1] = !(conf & 0x02), in dcb_gpio_match()
|
/drivers/net/wireless/broadcom/b43/ |
D | debugfs.c | 352 struct b43_txstatus_log *log = &dev->dfsentry->txstatlog; in txstat_read_file() local 357 if (log->end < 0) { in txstat_read_file() 365 i = log->end + 1; in txstat_read_file() 370 stat = &(log->log[i]); in txstat_read_file() 385 if (i == log->end) in txstat_read_file() 682 struct b43_txstatus_log *log; in b43_debugfs_add_device() local 692 log = &e->txstatlog; in b43_debugfs_add_device() 693 log->log = kcalloc(B43_NR_LOGGED_TXSTATUS, in b43_debugfs_add_device() 695 if (!log->log) { in b43_debugfs_add_device() 700 log->end = -1; in b43_debugfs_add_device() [all …]
|
/drivers/edac/ |
D | i3200_edac.c | 129 static unsigned long eccerrlog_syndrome(u64 log) in eccerrlog_syndrome() argument 131 return (log & I3200_ECCERRLOG_SYNDROME_BITS) >> in eccerrlog_syndrome() 135 static int eccerrlog_row(int channel, u64 log) in eccerrlog_row() argument 137 u64 rank = ((log & I3200_ECCERRLOG_RANK_BITS) >> in eccerrlog_row() 223 u64 log; in i3200_process_error_info() local 235 log = info->eccerrlog[channel]; in i3200_process_error_info() 236 if (log & I3200_ECCERRLOG_UE) { in i3200_process_error_info() 239 eccerrlog_row(channel, log), in i3200_process_error_info() 242 } else if (log & I3200_ECCERRLOG_CE) { in i3200_process_error_info() 244 0, 0, eccerrlog_syndrome(log), in i3200_process_error_info() [all …]
|
D | x38_edac.c | 116 static unsigned long eccerrlog_syndrome(u64 log) in eccerrlog_syndrome() argument 118 return (log & X38_ECCERRLOG_SYNDROME_BITS) >> 16; in eccerrlog_syndrome() 121 static int eccerrlog_row(int channel, u64 log) in eccerrlog_row() argument 123 return ((log & X38_ECCERRLOG_RANK_BITS) >> 27) | in eccerrlog_row() 207 u64 log; in x38_process_error_info() local 220 log = info->eccerrlog[channel]; in x38_process_error_info() 221 if (log & X38_ECCERRLOG_UE) { in x38_process_error_info() 224 eccerrlog_row(channel, log), in x38_process_error_info() 227 } else if (log & X38_ECCERRLOG_CE) { in x38_process_error_info() 229 0, 0, eccerrlog_syndrome(log), in x38_process_error_info() [all …]
|
/drivers/firmware/google/ |
D | Kconfig | 18 clearing the event log. If CONFIG_EFI is also enabled this 49 This option enables the kernel to search for a firmware log in 50 the EBDA on Google servers. If found, this log is exported to 51 userland in the file /sys/firmware/log. 66 This option enables the kernel to search for a firmware log in 67 the coreboot table. If found, this log is exported to userland 68 in the file /sys/firmware/log.
|
/drivers/nvdimm/ |
D | btt.c | 207 struct log_group *log) in btt_log_group_read() argument 210 arena->logoff + (lane * LOG_GRP_SIZE), log, in btt_log_group_read() 271 static u32 log_seq(struct log_group *log, int log_idx) in log_seq() argument 273 return le32_to_cpu(log->ent[log_idx].seq); in log_seq() 285 static int btt_log_get_old(struct arena_info *a, struct log_group *log) in btt_log_get_old() argument 296 if (log_seq(log, idx0) == 0) { in btt_log_get_old() 297 log->ent[idx0].seq = cpu_to_le32(1); in btt_log_get_old() 301 if (log_seq(log, idx0) == log_seq(log, idx1)) in btt_log_get_old() 303 if (log_seq(log, idx0) + log_seq(log, idx1) > 5) in btt_log_get_old() 306 if (log_seq(log, idx0) < log_seq(log, idx1)) { in btt_log_get_old() [all …]
|