/drivers/char/tpm/ |
H A D | tpm_of.c | 8 * Read the event log created by the firmware on PPC64 23 int read_log(struct tpm_bios_log *log) argument 29 if (log->bios_event_log != NULL) { 46 pr_err("%s: ERROR - event log area empty\n", __func__); 57 log->bios_event_log = kmalloc(*sizep, GFP_KERNEL); 58 if (!log->bios_event_log) { 64 log->bios_event_log_end = log->bios_event_log + *sizep; 66 memcpy(log->bios_event_log, __va(be64_to_cpup(basep)), *sizep);
|
H A D | tpm_acpi.c | 47 /* read binary bios log */ 48 int read_log(struct tpm_bios_log *log) argument 55 if (log->bios_event_log != NULL) { 84 printk(KERN_ERR "%s: ERROR - TCPA log area empty\n", __func__); 89 log->bios_event_log = kmalloc(len, GFP_KERNEL); 90 if (!log->bios_event_log) { 96 log->bios_event_log_end = log->bios_event_log + len; 100 kfree(log->bios_event_log); 105 memcpy_fromio(log [all...] |
H A D | tpm_eventlog.c | 71 /* returns pointer to start of pos. entry of tcg log */ 75 struct tpm_bios_log *log = m->private; local 76 void *addr = log->bios_event_log; 77 void *limit = log->bios_event_log_end; 108 struct tpm_bios_log *log = m->private; local 109 void *limit = log->bios_event_log_end; 225 struct tpm_bios_log *log = seq->private; local 227 if (log) { 228 kfree(log->bios_event_log); 229 kfree(log); 285 struct tpm_bios_log *log; local 323 struct tpm_bios_log *log; local [all...] |
H A D | tpm_eventlog.h | 70 int read_log(struct tpm_bios_log *log);
|
/drivers/md/ |
H A D | dm-log.c | 13 #include <linux/dm-dirty-log.h> 17 #define DM_MSG_PREFIX "dirty region log" 55 * Log modules are named "dm-log-" followed by the 'type_name'. 57 * This function will first try the module "dm-log-<type_name>", 61 * 'dm-log-clustered-disk' then 'dm-log-clustered'. 79 DMWARN("No memory left to attempt log module load for \"%s\"", 84 while (request_module("dm-log-%s", type_name_dup) || 153 struct dm_dirty_log *log; local 155 log 177 dm_dirty_log_destroy(struct dm_dirty_log *log) argument 314 read_header(struct log_c *log) argument 361 create_log_context(struct dm_dirty_log *log, struct dm_target *ti, unsigned int argc, char **argv, struct dm_dev *dev) argument 514 core_ctr(struct dm_dirty_log *log, struct dm_target *ti, unsigned int argc, char **argv) argument 527 core_dtr(struct dm_dirty_log *log) argument 540 disk_ctr(struct dm_dirty_log *log, struct dm_target *ti, unsigned int argc, char **argv) argument 564 disk_dtr(struct dm_dirty_log *log) argument 583 disk_resume(struct dm_dirty_log *log) argument 647 core_get_region_size(struct dm_dirty_log *log) argument 653 core_resume(struct dm_dirty_log *log) argument 660 core_is_clean(struct dm_dirty_log *log, region_t region) argument 666 core_in_sync(struct dm_dirty_log *log, region_t region, int block) argument 672 core_flush(struct dm_dirty_log *log) argument 678 disk_flush(struct dm_dirty_log *log) argument 718 core_mark_region(struct dm_dirty_log *log, region_t region) argument 724 core_clear_region(struct dm_dirty_log *log, region_t region) argument 731 core_get_resync_work(struct dm_dirty_log *log, region_t *region) argument 753 core_set_region_sync(struct dm_dirty_log *log, region_t region, int in_sync) argument 768 core_get_sync_count(struct dm_dirty_log *log) argument 779 core_status(struct dm_dirty_log *log, status_type_t status, char *result, unsigned int maxlen) argument 799 disk_status(struct dm_dirty_log *log, status_type_t status, char *result, unsigned int maxlen) argument [all...] |
H A D | dm-log-userspace-base.c | 9 #include <linux/dm-dirty-log.h> 11 #include <linux/dm-log-userspace.h> 15 #include "dm-log-userspace-transfer.h" 28 * imposed on the size of data payload by dm-log-userspace-transfer.c: 106 DMERR(" Userspace log server not found."); 110 DMWARN("Attempting to contact userspace log server..."); 118 DMINFO("Reconnected to userspace log server... DM_ULOG_CTR complete"); 124 DMERR("Error trying to resume userspace log: %d", r); 178 * Where 'other args' are the userspace implementation-specific log 182 * <UUID> [integrated_flush] clustered-disk <arg count> <log de 194 userspace_ctr(struct dm_dirty_log *log, struct dm_target *ti, unsigned argc, char **argv) argument 322 userspace_dtr(struct dm_dirty_log *log) argument 346 userspace_presuspend(struct dm_dirty_log *log) argument 357 userspace_postsuspend(struct dm_dirty_log *log) argument 374 userspace_resume(struct dm_dirty_log *log) argument 386 userspace_get_region_size(struct dm_dirty_log *log) argument 401 userspace_is_clean(struct dm_dirty_log *log, region_t region) argument 428 userspace_in_sync(struct dm_dirty_log *log, region_t region, int can_block) argument 556 userspace_flush(struct dm_dirty_log *log) argument 641 userspace_mark_region(struct dm_dirty_log *log, region_t region) argument 670 userspace_clear_region(struct dm_dirty_log *log, region_t region) argument 705 userspace_get_resync_work(struct dm_dirty_log *log, region_t *region) argument 732 userspace_set_region_sync(struct dm_dirty_log *log, region_t region, int in_sync) argument 763 userspace_get_sync_count(struct dm_dirty_log *log) argument 788 userspace_status(struct dm_dirty_log *log, status_type_t status_type, char *result, unsigned maxlen) argument 826 userspace_is_remote_recovering(struct dm_dirty_log *log, region_t region) argument [all...] |
H A D | dm-region-hash.c | 8 #include <linux/dm-dirty-log.h> 62 struct dm_dirty_log *log; member in struct:dm_region_hash 166 struct dm_dirty_log *log, uint32_t region_size, 194 rh->log = log; 249 if (rh->log) 250 dm_dirty_log_destroy(rh->log); 262 return rh->log; 296 nreg->state = rh->log->type->in_sync(rh->log, regio 160 dm_region_hash_create( void *context, void (*dispatch_bios)(void *context, struct bio_list *bios), void (*wakeup_workers)(void *context), void (*wakeup_all_recovery_waiters)(void *context), sector_t target_begin, unsigned max_recovery, struct dm_dirty_log *log, uint32_t region_size, region_t nr_regions) argument 398 struct dm_dirty_log *log = rh->log; local [all...] |
H A D | Makefile | 11 dm-log-userspace-y \ 12 += dm-log-userspace-base.o dm-log-userspace-transfer.o 48 obj-$(CONFIG_DM_MIRROR) += dm-mirror.o dm-log.o dm-region-hash.o 49 obj-$(CONFIG_DM_LOG_USERSPACE) += dm-log-userspace.o
|
H A D | dm-raid1.c | 18 #include <linux/dm-dirty-log.h> 376 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh); local 397 (log->type->get_sync_count(log) == ms->nr_regions)) { 431 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh); local 434 if (log->type->in_sync(log, region, 0)) 663 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh); local 686 if (log->type->is_remote_recovering && 687 log 1152 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh); local 1265 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh); local 1311 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh); local 1321 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh); local 1360 struct dm_dirty_log *log = dm_rh_dirty_log(ms->rh); local [all...] |
/drivers/net/wireless/b43legacy/ |
H A D | debugfs.c | 140 struct b43legacy_txstatus_log *log = &dev->dfsentry->txstatlog; local 146 spin_lock_irqsave(&log->lock, flags); 147 if (log->end < 0) { 155 i = log->end + 1; 160 stat = &(log->log[i]); 175 if (i == log->end) 180 spin_unlock_irqrestore(&log->lock, flags); 384 struct b43legacy_txstatus_log *log; local 394 log 472 struct b43legacy_txstatus_log *log; local [all...] |
/drivers/gpu/drm/nouveau/core/subdev/bios/ |
H A D | gpio.c | 88 .log[0] = (info & 0x1800) >> 11, 89 .log[1] = (info & 0x6000) >> 13, 98 .log[0] = (info & 0x18000000) >> 27, 99 .log[1] = (info & 0x60000000) >> 29, 108 .log[0] = (info1 & 0x30) >> 4, 109 .log[1] = (info1 & 0xc0) >> 6, 140 .log[0] = !!(conf & 0x02), 141 .log[1] = !(conf & 0x02),
|
/drivers/edac/ |
H A D | x38_edac.c | 118 static unsigned long eccerrlog_syndrome(u64 log) argument 120 return (log & X38_ECCERRLOG_SYNDROME_BITS) >> 16; 123 static int eccerrlog_row(int channel, u64 log) argument 125 return ((log & X38_ECCERRLOG_RANK_BITS) >> 27) | 209 u64 log; local 222 log = info->eccerrlog[channel]; 223 if (log & X38_ECCERRLOG_UE) { 226 eccerrlog_row(channel, log), 229 } else if (log & X38_ECCERRLOG_CE) { 231 0, 0, eccerrlog_syndrome(log), [all...] |
H A D | i3200_edac.c | 131 static unsigned long eccerrlog_syndrome(u64 log) argument 133 return (log & I3200_ECCERRLOG_SYNDROME_BITS) >> 137 static int eccerrlog_row(int channel, u64 log) argument 139 u64 rank = ((log & I3200_ECCERRLOG_RANK_BITS) >> 225 u64 log; local 237 log = info->eccerrlog[channel]; 238 if (log & I3200_ECCERRLOG_UE) { 241 eccerrlog_row(channel, log), 244 } else if (log & I3200_ECCERRLOG_CE) { 246 0, 0, eccerrlog_syndrome(log), [all...] |
H A D | ie31200_edac.c | 117 #define IE31200_ECCERRLOG_SYNDROME(log) \ 118 ((log & IE31200_ECCERRLOG_SYNDROME_BITS) >> \ 200 static int eccerrlog_row(int channel, u64 log) argument 202 int rank = ((log & IE31200_ECCERRLOG_RANK_BITS) >> 261 u64 log; local 273 log = info->eccerrlog[channel]; 274 if (log & IE31200_ECCERRLOG_UE) { 277 eccerrlog_row(channel, log), 280 } else if (log & IE31200_ECCERRLOG_CE) { 283 IE31200_ECCERRLOG_SYNDROME(log), [all...] |
/drivers/mtd/tests/ |
H A D | nandbiterrs.c | 103 static int write_page(int log) argument 105 if (log) 112 static int rewrite_page(int log) argument 117 if (log) 141 static int read_page(int log) argument 147 if (log) 167 static int verify_page(int log) argument 171 if (log)
|
/drivers/net/wireless/b43/ |
H A D | debugfs.c | 365 struct b43_txstatus_log *log = &dev->dfsentry->txstatlog; local 370 if (log->end < 0) { 378 i = log->end + 1; 383 stat = &(log->log[i]); 398 if (i == log->end) 695 struct b43_txstatus_log *log; local 705 log = &e->txstatlog; 706 log->log 801 struct b43_txstatus_log *log; local [all...] |
H A D | debugfs.h | 29 struct b43_txstatus *log; member in struct:b43_txstatus_log
|
/drivers/gpu/drm/nouveau/core/subdev/gpio/ |
H A D | base.c | 66 .log[0] = 0, 67 .log[1] = 1, 84 int dir = !!(func.log[state] & 0x02); 85 int out = !!(func.log[state] & 0x01); 102 ret = (ret == (func.log[1] & 1));
|
/drivers/media/dvb-core/ |
H A D | dvb_math.c | 101 * limitations of the log table the error is that part of 104 * and interpolate it between the log table entry used and the 129 u64 log; local 136 log = intlog2(value); 143 return (log * 646456993) >> 31;
|
/drivers/vhost/ |
H A D | vhost.h | 112 struct vhost_log *log; member in struct:vhost_virtqueue 144 struct vhost_log *log, unsigned int *log_num); 159 int vhost_log_write(struct vhost_virtqueue *vq, struct vhost_log *log,
|
H A D | vhost.c | 257 kfree(vq->log); 258 vq->log = NULL; 273 vq->log = kmalloc(sizeof *vq->log * UIO_MAXIOV, GFP_KERNEL); 275 if (!vq->indirect || !vq->log || !vq->heads) 313 vq->log = NULL; 533 bool log; local 536 log = log_all || vhost_has_feature(d->vqs[i], VHOST_F_LOG_ALL); 539 ok = vq_memory_access_ok(d->vqs[i]->log_base, mem, log); 562 /* Can we log write 932 unsigned long log = (unsigned long)addr; local 961 u64 log = base + write_page / 8; local 976 vhost_log_write(struct vhost_virtqueue *vq, struct vhost_log *log, unsigned int log_num, u64 len) argument 1108 get_indirect(struct vhost_virtqueue *vq, struct iovec iov[], unsigned int iov_size, unsigned int *out_num, unsigned int *in_num, struct vhost_log *log, unsigned int *log_num, struct vring_desc *indirect) argument 1204 vhost_get_vq_desc(struct vhost_virtqueue *vq, struct iovec iov[], unsigned int iov_size, unsigned int *out_num, unsigned int *in_num, struct vhost_log *log, unsigned int *log_num) argument [all...] |
/drivers/gpu/drm/nouveau/core/subdev/therm/ |
H A D | fanpwm.c | 51 if (card_type <= NV_40 || (priv->func.log[0] & 1)) 77 if (card_type <= NV_40 || (priv->func.log[0] & 1))
|
/drivers/block/rsxx/ |
H A D | cregs.c | 548 * New messages start with "<#>", where # is the log level. Messages 549 * that extend past the log buffer will use the previous level 553 str += 3; /* Skip past the log level. */ 622 /* Failed getting the log message */ 627 log_str = &card->log.buf[card->log.buf_len]; 628 cnt = min(cmd->cnt8 - off, LOG_BUF_SIZE8 - card->log.buf_len); 632 card->log.buf_len += len; 635 * Flush the log if we've hit the end of a message or if we've 639 (card->log [all...] |
/drivers/gpu/drm/nouveau/core/include/subdev/bios/ |
H A D | gpio.h | 31 u8 log[2]; member in struct:dcb_gpio_func
|
/drivers/net/wimax/i2400m/ |
H A D | rx.c | 479 * @log: circular ring buffer used to log information about the 492 struct i2400m_roq_log *log; member in struct:i2400m_roq 551 /* Print a log entry */ 598 if (roq->log->in - roq->log->out == I2400M_ROQ_LOG_LENGTH) 599 roq->log->out++; 600 cnt_idx = roq->log->in++ % I2400M_ROQ_LOG_LENGTH; 601 e = &roq->log->entry[cnt_idx]; 623 BUG_ON(roq->log [all...] |