Loading drivers/hwtracing/coresight/coresight-byte-cntr.c +5 −1 Original line number Original line Diff line number Diff line Loading @@ -268,8 +268,12 @@ static int tmc_etr_byte_cntr_open(struct inode *in, struct file *fp) return -EINVAL; return -EINVAL; } } /* IRQ is a '8- byte' counter and to observe interrupt at * 'block_size' bytes of data */ coresight_csr_set_byte_cntr(byte_cntr_data->csr, coresight_csr_set_byte_cntr(byte_cntr_data->csr, byte_cntr_data->block_size); (byte_cntr_data->block_size) / 8); fp->private_data = byte_cntr_data; fp->private_data = byte_cntr_data; nonseekable_open(in, fp); nonseekable_open(in, fp); byte_cntr_data->enable = true; byte_cntr_data->enable = true; Loading drivers/hwtracing/coresight/coresight-tmc.c +6 −1 Original line number Original line Diff line number Diff line Loading @@ -487,8 +487,13 @@ static ssize_t block_size_store(struct device *dev, if (!drvdata->byte_cntr) if (!drvdata->byte_cntr) return -EINVAL; return -EINVAL; if (val && val < 16) { pr_err("Assign minimum block size of 16 bytes\n"); return -EINVAL; } mutex_lock(&drvdata->byte_cntr->byte_cntr_lock); mutex_lock(&drvdata->byte_cntr->byte_cntr_lock); drvdata->byte_cntr->block_size = val * 8; drvdata->byte_cntr->block_size = val; mutex_unlock(&drvdata->byte_cntr->byte_cntr_lock); mutex_unlock(&drvdata->byte_cntr->byte_cntr_lock); return size; return size; Loading Loading
drivers/hwtracing/coresight/coresight-byte-cntr.c +5 −1 Original line number Original line Diff line number Diff line Loading @@ -268,8 +268,12 @@ static int tmc_etr_byte_cntr_open(struct inode *in, struct file *fp) return -EINVAL; return -EINVAL; } } /* IRQ is a '8- byte' counter and to observe interrupt at * 'block_size' bytes of data */ coresight_csr_set_byte_cntr(byte_cntr_data->csr, coresight_csr_set_byte_cntr(byte_cntr_data->csr, byte_cntr_data->block_size); (byte_cntr_data->block_size) / 8); fp->private_data = byte_cntr_data; fp->private_data = byte_cntr_data; nonseekable_open(in, fp); nonseekable_open(in, fp); byte_cntr_data->enable = true; byte_cntr_data->enable = true; Loading
drivers/hwtracing/coresight/coresight-tmc.c +6 −1 Original line number Original line Diff line number Diff line Loading @@ -487,8 +487,13 @@ static ssize_t block_size_store(struct device *dev, if (!drvdata->byte_cntr) if (!drvdata->byte_cntr) return -EINVAL; return -EINVAL; if (val && val < 16) { pr_err("Assign minimum block size of 16 bytes\n"); return -EINVAL; } mutex_lock(&drvdata->byte_cntr->byte_cntr_lock); mutex_lock(&drvdata->byte_cntr->byte_cntr_lock); drvdata->byte_cntr->block_size = val * 8; drvdata->byte_cntr->block_size = val; mutex_unlock(&drvdata->byte_cntr->byte_cntr_lock); mutex_unlock(&drvdata->byte_cntr->byte_cntr_lock); return size; return size; Loading