Home
last modified time | relevance | path

Searched refs:log (Results 1 – 25 of 87) sorted by relevance

1234

/drivers/md/
Ddm-log.c153 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 …]
Ddm-log-userspace-base.c157 static int userspace_ctr(struct dm_dirty_log *log, struct dm_target *ti, in userspace_ctr() argument
257 log->context = lc; in userspace_ctr()
263 static void userspace_dtr(struct dm_dirty_log *log) in userspace_dtr() argument
265 struct log_c *lc = log->context; in userspace_dtr()
280 static int userspace_presuspend(struct dm_dirty_log *log) in userspace_presuspend() argument
283 struct log_c *lc = log->context; in userspace_presuspend()
292 static int userspace_postsuspend(struct dm_dirty_log *log) in userspace_postsuspend() argument
295 struct log_c *lc = log->context; in userspace_postsuspend()
304 static int userspace_resume(struct dm_dirty_log *log) in userspace_resume() argument
307 struct log_c *lc = log->context; in userspace_resume()
[all …]
Ddm-region-hash.c62 struct dm_dirty_log *log; member
165 struct dm_dirty_log *log, uint32_t region_size, in dm_region_hash_create() argument
193 rh->log = log; in dm_region_hash_create()
248 if (rh->log) in dm_region_hash_destroy()
249 dm_dirty_log_destroy(rh->log); in dm_region_hash_destroy()
261 return rh->log; in dm_rh_dirty_log()
295 nreg->state = rh->log->type->in_sync(rh->log, region, 1) ? in __rh_alloc()
353 r = rh->log->type->in_sync(rh->log, region, may_block); in dm_rh_get_state()
367 rh->log->type->set_region_sync(rh->log, reg->key, success); in complete_resync_work()
397 struct dm_dirty_log *log = rh->log; in dm_rh_mark_nosync() local
[all …]
Ddm-raid1.c375 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh); in do_recovery() local
396 (log->type->get_sync_count(log) == ms->nr_regions)) { in do_recovery()
430 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh); in mirror_available() local
433 if (log->type->in_sync(log, region, 0)) in mirror_available()
662 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh); in do_writes() local
685 if (log->type->is_remote_recovering && in do_writes()
686 log->type->is_remote_recovering(log, region)) { in do_writes()
1161 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh); in mirror_map() local
1170 r = log->type->in_sync(log, dm_rh_bio_to_region(ms->rh, bio), 0); in mirror_map()
1275 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh); in mirror_presuspend() local
[all …]
DMakefile11 dm-log-userspace-y \
12 += dm-log-userspace-base.o dm-log-userspace-transfer.o
40 obj-$(CONFIG_DM_MIRROR) += dm-mirror.o dm-log.o dm-region-hash.o
41 obj-$(CONFIG_DM_LOG_USERSPACE) += dm-log-userspace.o
/drivers/char/tpm/
Dtpm_bios.c153 struct tpm_bios_log *log = m->private; in tpm_bios_measurements_start() local
154 void *addr = log->bios_event_log; in tpm_bios_measurements_start()
155 void *limit = log->bios_event_log_end; in tpm_bios_measurements_start()
186 struct tpm_bios_log *log = m->private; in tpm_bios_measurements_next() local
187 void *limit = log->bios_event_log_end; in tpm_bios_measurements_next()
303 struct tpm_bios_log *log = seq->private; in tpm_bios_measurements_release() local
305 if (log) { in tpm_bios_measurements_release()
306 kfree(log->bios_event_log); in tpm_bios_measurements_release()
307 kfree(log); in tpm_bios_measurements_release()
362 static int read_log(struct tpm_bios_log *log) in read_log() argument
[all …]
/drivers/net/wireless/b43legacy/
Ddebugfs.c140 struct b43legacy_txstatus_log *log = &dev->dfsentry->txstatlog; in txstat_read_file() local
146 spin_lock_irqsave(&log->lock, flags); in txstat_read_file()
147 if (log->end < 0) { in txstat_read_file()
155 i = log->end + 1; in txstat_read_file()
160 stat = &(log->log[i]); in txstat_read_file()
175 if (i == log->end) in txstat_read_file()
180 spin_unlock_irqrestore(&log->lock, flags); in txstat_read_file()
384 struct b43legacy_txstatus_log *log; in b43legacy_debugfs_add_device() local
394 log = &e->txstatlog; in b43legacy_debugfs_add_device()
395 log->log = kcalloc(B43legacy_NR_LOGGED_TXSTATUS, in b43legacy_debugfs_add_device()
[all …]
/drivers/net/wireless/b43/
Ddebugfs.c365 struct b43_txstatus_log *log = &dev->dfsentry->txstatlog; in txstat_read_file() local
370 if (log->end < 0) { in txstat_read_file()
378 i = log->end + 1; in txstat_read_file()
383 stat = &(log->log[i]); in txstat_read_file()
398 if (i == log->end) in txstat_read_file()
695 struct b43_txstatus_log *log; in b43_debugfs_add_device() local
705 log = &e->txstatlog; in b43_debugfs_add_device()
706 log->log = kcalloc(B43_NR_LOGGED_TXSTATUS, in b43_debugfs_add_device()
708 if (!log->log) { in b43_debugfs_add_device()
713 log->end = -1; in b43_debugfs_add_device()
[all …]
/drivers/gpu/drm/nouveau/
Dnouveau_gpio.c91 .log[0] = (data & 0x1800) >> 11, in nouveau_gpio_find()
92 .log[1] = (data & 0x6000) >> 13, in nouveau_gpio_find()
99 .log[0] = (entry[3] & 0x18) >> 3, in nouveau_gpio_find()
100 .log[1] = (entry[3] & 0x60) >> 5, in nouveau_gpio_find()
106 .log[0] = (entry[4] & 0x30) >> 4, in nouveau_gpio_find()
107 .log[1] = (entry[4] & 0xc0) >> 6, in nouveau_gpio_find()
122 .log[0] = !!(table[-5] & 2), in nouveau_gpio_find()
123 .log[1] = !(table[-5] & 2), in nouveau_gpio_find()
135 .log[0] = 0, in nouveau_gpio_find()
136 .log[1] = 1, in nouveau_gpio_find()
[all …]
/drivers/edac/
Dx38_edac.c116 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()
212 u64 log; in x38_process_error_info() local
223 log = info->eccerrlog[channel]; in x38_process_error_info()
224 if (log & X38_ECCERRLOG_UE) { in x38_process_error_info()
226 eccerrlog_row(channel, log), "x38 UE"); in x38_process_error_info()
227 } else if (log & X38_ECCERRLOG_CE) { in x38_process_error_info()
229 eccerrlog_syndrome(log), in x38_process_error_info()
[all …]
Di3200_edac.c120 static unsigned long eccerrlog_syndrome(u64 log) in eccerrlog_syndrome() argument
122 return (log & I3200_ECCERRLOG_SYNDROME_BITS) >> in eccerrlog_syndrome()
126 static int eccerrlog_row(int channel, u64 log) in eccerrlog_row() argument
128 u64 rank = ((log & I3200_ECCERRLOG_RANK_BITS) >> in eccerrlog_row()
214 u64 log; in i3200_process_error_info() local
225 log = info->eccerrlog[channel]; in i3200_process_error_info()
226 if (log & I3200_ECCERRLOG_UE) { in i3200_process_error_info()
228 eccerrlog_row(channel, log), in i3200_process_error_info()
230 } else if (log & I3200_ECCERRLOG_CE) { in i3200_process_error_info()
232 eccerrlog_syndrome(log), in i3200_process_error_info()
[all …]
/drivers/firmware/google/
DKconfig21 clearing the EFI event log and reading and writing NVRAM
28 This option enables the kernel to search for a firmware log in
29 the EBDA on Google servers. If found, this log is exported to
30 userland in the file /sys/firmware/log.
/drivers/media/dvb/dvb-core/
Ddvb_math.c129 u64 log; in intlog10() local
136 log = intlog2(value); in intlog10()
143 return (log * 646456993) >> 31; in intlog10()
/drivers/misc/iwmc3200top/
Dlog.c101 if (len < sizeof(msg->hdr) + sizeof(msg->u.log.log_hdr)) { in iwmct_log_top_message()
104 len, sizeof(msg->hdr) + sizeof(msg->u.log.log_hdr)); in iwmct_log_top_message()
108 if (!(iwmct_fw_logdefs[msg->u.log.log_hdr.logsource] & in iwmct_log_top_message()
109 BIT(msg->u.log.log_hdr.severity)) || in iwmct_log_top_message()
110 !(iwmct_logdefs[LOG_SRC_FW_MSG] & BIT(msg->u.log.log_hdr.severity))) in iwmct_log_top_message()
116 BIT(msg->u.log.log_hdr.severity))) in iwmct_log_top_message()
129 + sizeof(msg->u.log.log_hdr)); in iwmct_log_top_message()
/drivers/isdn/hysdn/
Dhysdn_proclog.c43 struct proc_dir_entry *log; /* log entry */ member
196 if (pd->log == pde) in hysdn_log_read()
234 if (pd->log == PDE(ino)) in hysdn_log_open()
295 if (pd->log == PDE(ino)) in hysdn_log_close()
341 if (pd->log == pde) in hysdn_log_poll()
384 pd->log = proc_create(pd->log_name, in hysdn_proclog_init()
406 if (pd->log) in hysdn_proclog_release()
/drivers/vhost/
Dvhost.c239 kfree(vq->log); in vhost_vq_free_iovecs()
240 vq->log = NULL; in vhost_vq_free_iovecs()
261 dev->vqs[i].log = kmalloc(sizeof *dev->vqs[i].log * UIO_MAXIOV, in vhost_dev_alloc_iovecs()
270 if (!dev->vqs[i].indirect || !dev->vqs[i].log || in vhost_dev_alloc_iovecs()
308 dev->vqs[i].log = NULL; in vhost_dev_init()
933 unsigned long log = (unsigned long)addr; in set_bit_to_user() local
936 int bit = nr + (log % PAGE_SIZE) * 8; in set_bit_to_user()
939 r = get_user_pages_fast(log, 1, 1, &page); in set_bit_to_user()
962 u64 log = base + write_page / 8; in log_write() local
964 if ((u64)(unsigned long)log != log) in log_write()
[all …]
Dvhost.h133 struct vhost_log *log; member
174 struct vhost_log *log, unsigned int *log_num);
189 int vhost_log_write(struct vhost_virtqueue *vq, struct vhost_log *log,
Dnet.c312 struct vhost_log *log, in get_rx_bufs() argument
329 &in, log, log_num); in get_rx_bufs()
340 if (unlikely(log)) { in get_rx_bufs()
342 log += *log_num; in get_rx_bufs()
352 if (unlikely(log)) in get_rx_bufs()
365 unsigned uninitialized_var(in), log; in handle_rx()
396 vq->log : NULL; in handle_rx()
403 &in, vq_log, &log, in handle_rx()
459 vhost_log_write(vq, vq_log, log, vhost_len); in handle_rx()
/drivers/net/wimax/i2400m/
Drx.c492 struct i2400m_roq_log *log; member
598 if (roq->log->in - roq->log->out == I2400M_ROQ_LOG_LENGTH) in i2400m_roq_log_add()
599 roq->log->out++; in i2400m_roq_log_add()
600 cnt_idx = roq->log->in++ % I2400M_ROQ_LOG_LENGTH; in i2400m_roq_log_add()
601 e = &roq->log->entry[cnt_idx]; in i2400m_roq_log_add()
623 BUG_ON(roq->log->out > roq->log->in); in i2400m_roq_log_dump()
624 for (cnt = roq->log->out; cnt < roq->log->in; cnt++) { in i2400m_roq_log_dump()
626 e = &roq->log->entry[cnt_idx]; in i2400m_roq_log_dump()
630 roq->log->in = roq->log->out = 0; in i2400m_roq_log_dump()
934 kfree(i2400m->rx_roq[0].log); in i2400m_rx_roq_destroy()
[all …]
/drivers/media/video/tlg2300/
Dpd-common.h263 #define log(a, ...) printk(KERN_DEBUG "\t[ %s : %.3d ] "a"\n", \ macro
269 log();\
275 log("type : VBI");\
279 log("type : VIDEO");\
Dpd-main.c169 log("event :%ld\n", event); in pm_notifier_block()
210 log(); in poseidon_delete()
223 log("download err : %d", ret); in firmware_download()
236 log("\t\t download size : %d", (int)max_packet_size); in firmware_download()
280 log("count : %d, ref count : %d", count, get_pm_count(pd)); in fixup()
287 log("event : %d\n", pd->msg.event); in fixup()
523 log(); in poseidon_exit()
Dpd-dvb.c169 log("error line"); in poseidon_set_fe()
176 log("error line"); in poseidon_set_fe()
182 log("error line"); in poseidon_set_fe()
264 log("get tuner status error"); in poseidon_read_status()
269 log("P : %d, L %d, LB :%d", status.sig_present, in poseidon_read_status()
409 log(" usb_submit_urb failed: error %d", ret); in dvb_urb_irq()
458 log(" submit urb error %d", ret); in dvb_start_streaming()
485 log("error"); in dvb_stop_streaming()
Dpd-alsa.c197 log("audio urb failed (errcod = %i)", ret); in complete_handler_audio()
214 log("urb err : %d", ret); in fire_audio_urb()
216 log(); in fire_audio_urb()
226 log("cmd %d, audio stat : %d\n", cmd, pa->capture_stream); in snd_pd_capture_trigger()
Dpd-video.c361 log(" submit failed: error %d", ret); in urb_complete_bulk()
450 log("\t We got too much bubble"); in urb_complete_iso()
459 log("usb_submit_urb err : %d", ret); in urb_complete_iso()
632 log("(%d) failed: error %d", i, ret); in fire_all_urb()
689 log("size : %d", *size); in pd_buf_setup()
848 log("name : %s", poseidon_tvnorms[i].name); in set_std()
1064 log("P:%d,S:%d", atv_stat.sig_present, atv_stat.sig_strength); in vidioc_g_tuner()
1456 log("other "); in pd_video_open()
1636 log(); in pd_video_exit()
1662 log("register VIDEO/VBI devices"); in pd_video_init()
[all …]
/drivers/i2c/
DKconfig94 messages to the system log. Select this if you are having a
101 of debug messages to the system log. Select this if you are having
109 debug messages to the system log. Select this if you are having

1234