drvdata 28 arch/arm/mach-s3c64xx/dev-backlight.c struct samsung_bl_drvdata *drvdata = container_of(pdata, drvdata 30 arch/arm/mach-s3c64xx/dev-backlight.c struct samsung_bl_gpio_info *bl_gpio_info = drvdata->gpio_info; drvdata 47 arch/arm/mach-s3c64xx/dev-backlight.c struct samsung_bl_drvdata *drvdata = container_of(pdata, drvdata 49 arch/arm/mach-s3c64xx/dev-backlight.c struct samsung_bl_gpio_info *bl_gpio_info = drvdata->gpio_info; drvdata 91 drivers/auxdisplay/charlcd.c unsigned long long drvdata[0]; drvdata 824 drivers/auxdisplay/charlcd.c lcd->drvdata = priv->drvdata; drvdata 22 drivers/auxdisplay/charlcd.h void *drvdata; /* Set by charlcd_alloc() */ drvdata 42 drivers/auxdisplay/hd44780.c struct hd44780 *hd = lcd->drvdata; drvdata 106 drivers/auxdisplay/hd44780.c struct hd44780 *hd = lcd->drvdata; drvdata 117 drivers/auxdisplay/hd44780.c struct hd44780 *hd = lcd->drvdata; drvdata 134 drivers/auxdisplay/hd44780.c struct hd44780 *hd = lcd->drvdata; drvdata 146 drivers/auxdisplay/hd44780.c struct hd44780 *hd = lcd->drvdata; drvdata 162 drivers/auxdisplay/hd44780.c struct hd44780 *hd = lcd->drvdata; drvdata 205 drivers/auxdisplay/hd44780.c hd = lcd->drvdata; drvdata 2818 drivers/base/core.c dev_t devt, void *drvdata, drvdata 2840 drivers/base/core.c dev_set_drvdata(dev, drvdata); drvdata 2883 drivers/base/core.c dev_t devt, void *drvdata, const char *fmt, drvdata 2886 drivers/base/core.c return device_create_groups_vargs(class, parent, devt, drvdata, NULL, drvdata 2916 drivers/base/core.c dev_t devt, void *drvdata, const char *fmt, ...) drvdata 2922 drivers/base/core.c dev = device_create_vargs(class, parent, devt, drvdata, fmt, vargs); drvdata 2957 drivers/base/core.c void *drvdata, drvdata 2965 drivers/base/core.c dev = device_create_groups_vargs(class, parent, devt, drvdata, groups, drvdata 414 drivers/base/cpu.c __cpu_device_create(struct device *parent, void *drvdata, drvdata 432 drivers/base/cpu.c dev_set_drvdata(dev, drvdata); drvdata 449 drivers/base/cpu.c struct device *cpu_device_create(struct device *parent, void *drvdata, drvdata 457 drivers/base/cpu.c dev = __cpu_device_create(parent, drvdata, groups, fmt, vargs); drvdata 88 drivers/char/xilinx_hwicap/buffer_icap.c u32 buffer_icap_get_status(struct hwicap_drvdata *drvdata) drvdata 90 drivers/char/xilinx_hwicap/buffer_icap.c return in_be32(drvdata->base_address + XHI_STATUS_REG_OFFSET); drvdata 187 drivers/char/xilinx_hwicap/buffer_icap.c static int buffer_icap_device_read(struct hwicap_drvdata *drvdata, drvdata 192 drivers/char/xilinx_hwicap/buffer_icap.c void __iomem *base_address = drvdata->base_address; drvdata 221 drivers/char/xilinx_hwicap/buffer_icap.c static int buffer_icap_device_write(struct hwicap_drvdata *drvdata, drvdata 226 drivers/char/xilinx_hwicap/buffer_icap.c void __iomem *base_address = drvdata->base_address; drvdata 256 drivers/char/xilinx_hwicap/buffer_icap.c void buffer_icap_reset(struct hwicap_drvdata *drvdata) drvdata 258 drivers/char/xilinx_hwicap/buffer_icap.c out_be32(drvdata->base_address + XHI_STATUS_REG_OFFSET, 0xFEFE); drvdata 267 drivers/char/xilinx_hwicap/buffer_icap.c int buffer_icap_set_configuration(struct hwicap_drvdata *drvdata, u32 *data, drvdata 274 drivers/char/xilinx_hwicap/buffer_icap.c void __iomem *base_address = drvdata->base_address; drvdata 290 drivers/char/xilinx_hwicap/buffer_icap.c drvdata, drvdata 295 drivers/char/xilinx_hwicap/buffer_icap.c buffer_icap_reset(drvdata); drvdata 306 drivers/char/xilinx_hwicap/buffer_icap.c status = buffer_icap_device_write(drvdata, XHI_BUFFER_START, drvdata 310 drivers/char/xilinx_hwicap/buffer_icap.c buffer_icap_reset(drvdata); drvdata 324 drivers/char/xilinx_hwicap/buffer_icap.c int buffer_icap_get_configuration(struct hwicap_drvdata *drvdata, u32 *data, drvdata 330 drivers/char/xilinx_hwicap/buffer_icap.c void __iomem *base_address = drvdata->base_address; drvdata 343 drivers/char/xilinx_hwicap/buffer_icap.c drvdata, drvdata 348 drivers/char/xilinx_hwicap/buffer_icap.c buffer_icap_reset(drvdata); drvdata 44 drivers/char/xilinx_hwicap/buffer_icap.h int buffer_icap_set_configuration(struct hwicap_drvdata *drvdata, u32 *data, drvdata 48 drivers/char/xilinx_hwicap/buffer_icap.h int buffer_icap_get_configuration(struct hwicap_drvdata *drvdata, u32 *data, drvdata 51 drivers/char/xilinx_hwicap/buffer_icap.h u32 buffer_icap_get_status(struct hwicap_drvdata *drvdata); drvdata 52 drivers/char/xilinx_hwicap/buffer_icap.h void buffer_icap_reset(struct hwicap_drvdata *drvdata); drvdata 93 drivers/char/xilinx_hwicap/fifo_icap.c static inline void fifo_icap_fifo_write(struct hwicap_drvdata *drvdata, drvdata 96 drivers/char/xilinx_hwicap/fifo_icap.c dev_dbg(drvdata->dev, "fifo_write: %x\n", data); drvdata 97 drivers/char/xilinx_hwicap/fifo_icap.c out_be32(drvdata->base_address + XHI_WF_OFFSET, data); drvdata 106 drivers/char/xilinx_hwicap/fifo_icap.c static inline u32 fifo_icap_fifo_read(struct hwicap_drvdata *drvdata) drvdata 108 drivers/char/xilinx_hwicap/fifo_icap.c u32 data = in_be32(drvdata->base_address + XHI_RF_OFFSET); drvdata 109 drivers/char/xilinx_hwicap/fifo_icap.c dev_dbg(drvdata->dev, "fifo_read: %x\n", data); drvdata 118 drivers/char/xilinx_hwicap/fifo_icap.c static inline void fifo_icap_set_read_size(struct hwicap_drvdata *drvdata, drvdata 121 drivers/char/xilinx_hwicap/fifo_icap.c out_be32(drvdata->base_address + XHI_SZ_OFFSET, data); drvdata 128 drivers/char/xilinx_hwicap/fifo_icap.c static inline void fifo_icap_start_config(struct hwicap_drvdata *drvdata) drvdata 130 drivers/char/xilinx_hwicap/fifo_icap.c out_be32(drvdata->base_address + XHI_CR_OFFSET, XHI_CR_WRITE_MASK); drvdata 131 drivers/char/xilinx_hwicap/fifo_icap.c dev_dbg(drvdata->dev, "configuration started\n"); drvdata 138 drivers/char/xilinx_hwicap/fifo_icap.c static inline void fifo_icap_start_readback(struct hwicap_drvdata *drvdata) drvdata 140 drivers/char/xilinx_hwicap/fifo_icap.c out_be32(drvdata->base_address + XHI_CR_OFFSET, XHI_CR_READ_MASK); drvdata 141 drivers/char/xilinx_hwicap/fifo_icap.c dev_dbg(drvdata->dev, "readback started\n"); drvdata 160 drivers/char/xilinx_hwicap/fifo_icap.c u32 fifo_icap_get_status(struct hwicap_drvdata *drvdata) drvdata 162 drivers/char/xilinx_hwicap/fifo_icap.c u32 status = in_be32(drvdata->base_address + XHI_SR_OFFSET); drvdata 163 drivers/char/xilinx_hwicap/fifo_icap.c dev_dbg(drvdata->dev, "Getting status = %x\n", status); drvdata 171 drivers/char/xilinx_hwicap/fifo_icap.c static inline u32 fifo_icap_busy(struct hwicap_drvdata *drvdata) drvdata 173 drivers/char/xilinx_hwicap/fifo_icap.c u32 status = in_be32(drvdata->base_address + XHI_SR_OFFSET); drvdata 184 drivers/char/xilinx_hwicap/fifo_icap.c struct hwicap_drvdata *drvdata) drvdata 186 drivers/char/xilinx_hwicap/fifo_icap.c return in_be32(drvdata->base_address + XHI_WFV_OFFSET); drvdata 196 drivers/char/xilinx_hwicap/fifo_icap.c struct hwicap_drvdata *drvdata) drvdata 198 drivers/char/xilinx_hwicap/fifo_icap.c return in_be32(drvdata->base_address + XHI_RFO_OFFSET); drvdata 213 drivers/char/xilinx_hwicap/fifo_icap.c int fifo_icap_set_configuration(struct hwicap_drvdata *drvdata, drvdata 221 drivers/char/xilinx_hwicap/fifo_icap.c dev_dbg(drvdata->dev, "fifo_set_configuration\n"); drvdata 226 drivers/char/xilinx_hwicap/fifo_icap.c if (fifo_icap_busy(drvdata)) drvdata 240 drivers/char/xilinx_hwicap/fifo_icap.c fifo_icap_write_fifo_vacancy(drvdata); drvdata 251 drivers/char/xilinx_hwicap/fifo_icap.c fifo_icap_fifo_write(drvdata, *frame_buffer); drvdata 258 drivers/char/xilinx_hwicap/fifo_icap.c fifo_icap_start_config(drvdata); drvdata 262 drivers/char/xilinx_hwicap/fifo_icap.c while (fifo_icap_busy(drvdata)) { drvdata 268 drivers/char/xilinx_hwicap/fifo_icap.c dev_dbg(drvdata->dev, "done fifo_set_configuration\n"); drvdata 289 drivers/char/xilinx_hwicap/fifo_icap.c int fifo_icap_get_configuration(struct hwicap_drvdata *drvdata, drvdata 299 drivers/char/xilinx_hwicap/fifo_icap.c dev_dbg(drvdata->dev, "fifo_get_configuration\n"); drvdata 304 drivers/char/xilinx_hwicap/fifo_icap.c if (fifo_icap_busy(drvdata)) drvdata 318 drivers/char/xilinx_hwicap/fifo_icap.c fifo_icap_set_read_size(drvdata, words_to_read); drvdata 319 drivers/char/xilinx_hwicap/fifo_icap.c fifo_icap_start_readback(drvdata); drvdata 325 drivers/char/xilinx_hwicap/fifo_icap.c fifo_icap_read_fifo_occupancy(drvdata); drvdata 338 drivers/char/xilinx_hwicap/fifo_icap.c *data++ = fifo_icap_fifo_read(drvdata); drvdata 344 drivers/char/xilinx_hwicap/fifo_icap.c dev_dbg(drvdata->dev, "done fifo_get_configuration\n"); drvdata 357 drivers/char/xilinx_hwicap/fifo_icap.c void fifo_icap_reset(struct hwicap_drvdata *drvdata) drvdata 364 drivers/char/xilinx_hwicap/fifo_icap.c reg_data = in_be32(drvdata->base_address + XHI_CR_OFFSET); drvdata 366 drivers/char/xilinx_hwicap/fifo_icap.c out_be32(drvdata->base_address + XHI_CR_OFFSET, drvdata 369 drivers/char/xilinx_hwicap/fifo_icap.c out_be32(drvdata->base_address + XHI_CR_OFFSET, drvdata 378 drivers/char/xilinx_hwicap/fifo_icap.c void fifo_icap_flush_fifo(struct hwicap_drvdata *drvdata) drvdata 385 drivers/char/xilinx_hwicap/fifo_icap.c reg_data = in_be32(drvdata->base_address + XHI_CR_OFFSET); drvdata 387 drivers/char/xilinx_hwicap/fifo_icap.c out_be32(drvdata->base_address + XHI_CR_OFFSET, drvdata 390 drivers/char/xilinx_hwicap/fifo_icap.c out_be32(drvdata->base_address + XHI_CR_OFFSET, drvdata 45 drivers/char/xilinx_hwicap/fifo_icap.h struct hwicap_drvdata *drvdata, drvdata 51 drivers/char/xilinx_hwicap/fifo_icap.h struct hwicap_drvdata *drvdata, drvdata 55 drivers/char/xilinx_hwicap/fifo_icap.h u32 fifo_icap_get_status(struct hwicap_drvdata *drvdata); drvdata 56 drivers/char/xilinx_hwicap/fifo_icap.h void fifo_icap_reset(struct hwicap_drvdata *drvdata); drvdata 57 drivers/char/xilinx_hwicap/fifo_icap.h void fifo_icap_flush_fifo(struct hwicap_drvdata *drvdata); drvdata 230 drivers/char/xilinx_hwicap/xilinx_hwicap.c static int hwicap_command_desync(struct hwicap_drvdata *drvdata) drvdata 238 drivers/char/xilinx_hwicap/xilinx_hwicap.c buffer[index++] = hwicap_type_1_write(drvdata->config_regs->CMD) | 1; drvdata 247 drivers/char/xilinx_hwicap/xilinx_hwicap.c return drvdata->config->set_configuration(drvdata, drvdata 264 drivers/char/xilinx_hwicap/xilinx_hwicap.c static int hwicap_get_configuration_register(struct hwicap_drvdata *drvdata, drvdata 284 drivers/char/xilinx_hwicap/xilinx_hwicap.c status = drvdata->config->set_configuration(drvdata, drvdata 290 drivers/char/xilinx_hwicap/xilinx_hwicap.c status = drvdata->config->get_status(drvdata); drvdata 303 drivers/char/xilinx_hwicap/xilinx_hwicap.c status = drvdata->config->set_configuration(drvdata, drvdata 311 drivers/char/xilinx_hwicap/xilinx_hwicap.c status = drvdata->config->get_configuration(drvdata, reg_data, 1); drvdata 318 drivers/char/xilinx_hwicap/xilinx_hwicap.c static int hwicap_initialize_hwicap(struct hwicap_drvdata *drvdata) drvdata 323 drivers/char/xilinx_hwicap/xilinx_hwicap.c dev_dbg(drvdata->dev, "initializing\n"); drvdata 328 drivers/char/xilinx_hwicap/xilinx_hwicap.c dev_dbg(drvdata->dev, "Reset...\n"); drvdata 329 drivers/char/xilinx_hwicap/xilinx_hwicap.c drvdata->config->reset(drvdata); drvdata 331 drivers/char/xilinx_hwicap/xilinx_hwicap.c dev_dbg(drvdata->dev, "Desync...\n"); drvdata 332 drivers/char/xilinx_hwicap/xilinx_hwicap.c status = hwicap_command_desync(drvdata); drvdata 340 drivers/char/xilinx_hwicap/xilinx_hwicap.c dev_dbg(drvdata->dev, "Reading IDCODE...\n"); drvdata 342 drivers/char/xilinx_hwicap/xilinx_hwicap.c drvdata, drvdata->config_regs->IDCODE, &idcode); drvdata 343 drivers/char/xilinx_hwicap/xilinx_hwicap.c dev_dbg(drvdata->dev, "IDCODE = %x\n", idcode); drvdata 347 drivers/char/xilinx_hwicap/xilinx_hwicap.c dev_dbg(drvdata->dev, "Desync...\n"); drvdata 348 drivers/char/xilinx_hwicap/xilinx_hwicap.c status = hwicap_command_desync(drvdata); drvdata 358 drivers/char/xilinx_hwicap/xilinx_hwicap.c struct hwicap_drvdata *drvdata = file->private_data; drvdata 365 drivers/char/xilinx_hwicap/xilinx_hwicap.c status = mutex_lock_interruptible(&drvdata->sem); drvdata 369 drivers/char/xilinx_hwicap/xilinx_hwicap.c if (drvdata->read_buffer_in_use) { drvdata 374 drivers/char/xilinx_hwicap/xilinx_hwicap.c (count < drvdata->read_buffer_in_use) ? count : drvdata 375 drivers/char/xilinx_hwicap/xilinx_hwicap.c drvdata->read_buffer_in_use; drvdata 378 drivers/char/xilinx_hwicap/xilinx_hwicap.c if (copy_to_user(buf, drvdata->read_buffer, bytes_to_read)) { drvdata 382 drivers/char/xilinx_hwicap/xilinx_hwicap.c drvdata->read_buffer_in_use -= bytes_to_read; drvdata 383 drivers/char/xilinx_hwicap/xilinx_hwicap.c memmove(drvdata->read_buffer, drvdata 384 drivers/char/xilinx_hwicap/xilinx_hwicap.c drvdata->read_buffer + bytes_to_read, drvdata 413 drivers/char/xilinx_hwicap/xilinx_hwicap.c status = drvdata->config->get_configuration(drvdata, drvdata 428 drivers/char/xilinx_hwicap/xilinx_hwicap.c memcpy(drvdata->read_buffer, drvdata 431 drivers/char/xilinx_hwicap/xilinx_hwicap.c drvdata->read_buffer_in_use = bytes_remaining; drvdata 436 drivers/char/xilinx_hwicap/xilinx_hwicap.c mutex_unlock(&drvdata->sem); drvdata 444 drivers/char/xilinx_hwicap/xilinx_hwicap.c struct hwicap_drvdata *drvdata = file->private_data; drvdata 451 drivers/char/xilinx_hwicap/xilinx_hwicap.c status = mutex_lock_interruptible(&drvdata->sem); drvdata 455 drivers/char/xilinx_hwicap/xilinx_hwicap.c left += drvdata->write_buffer_in_use; drvdata 478 drivers/char/xilinx_hwicap/xilinx_hwicap.c if (drvdata->write_buffer_in_use) { drvdata 479 drivers/char/xilinx_hwicap/xilinx_hwicap.c memcpy(kbuf, drvdata->write_buffer, drvdata 480 drivers/char/xilinx_hwicap/xilinx_hwicap.c drvdata->write_buffer_in_use); drvdata 482 drivers/char/xilinx_hwicap/xilinx_hwicap.c (((char *)kbuf) + drvdata->write_buffer_in_use), drvdata 484 drivers/char/xilinx_hwicap/xilinx_hwicap.c len - (drvdata->write_buffer_in_use))) { drvdata 497 drivers/char/xilinx_hwicap/xilinx_hwicap.c status = drvdata->config->set_configuration(drvdata, drvdata 505 drivers/char/xilinx_hwicap/xilinx_hwicap.c if (drvdata->write_buffer_in_use) { drvdata 506 drivers/char/xilinx_hwicap/xilinx_hwicap.c len -= drvdata->write_buffer_in_use; drvdata 507 drivers/char/xilinx_hwicap/xilinx_hwicap.c left -= drvdata->write_buffer_in_use; drvdata 508 drivers/char/xilinx_hwicap/xilinx_hwicap.c drvdata->write_buffer_in_use = 0; drvdata 514 drivers/char/xilinx_hwicap/xilinx_hwicap.c if (!copy_from_user(drvdata->write_buffer, drvdata 516 drivers/char/xilinx_hwicap/xilinx_hwicap.c drvdata->write_buffer_in_use = left; drvdata 525 drivers/char/xilinx_hwicap/xilinx_hwicap.c mutex_unlock(&drvdata->sem); drvdata 531 drivers/char/xilinx_hwicap/xilinx_hwicap.c struct hwicap_drvdata *drvdata; drvdata 535 drivers/char/xilinx_hwicap/xilinx_hwicap.c drvdata = container_of(inode->i_cdev, struct hwicap_drvdata, cdev); drvdata 537 drivers/char/xilinx_hwicap/xilinx_hwicap.c status = mutex_lock_interruptible(&drvdata->sem); drvdata 541 drivers/char/xilinx_hwicap/xilinx_hwicap.c if (drvdata->is_open) { drvdata 546 drivers/char/xilinx_hwicap/xilinx_hwicap.c status = hwicap_initialize_hwicap(drvdata); drvdata 548 drivers/char/xilinx_hwicap/xilinx_hwicap.c dev_err(drvdata->dev, "Failed to open file"); drvdata 552 drivers/char/xilinx_hwicap/xilinx_hwicap.c file->private_data = drvdata; drvdata 553 drivers/char/xilinx_hwicap/xilinx_hwicap.c drvdata->write_buffer_in_use = 0; drvdata 554 drivers/char/xilinx_hwicap/xilinx_hwicap.c drvdata->read_buffer_in_use = 0; drvdata 555 drivers/char/xilinx_hwicap/xilinx_hwicap.c drvdata->is_open = 1; drvdata 558 drivers/char/xilinx_hwicap/xilinx_hwicap.c mutex_unlock(&drvdata->sem); drvdata 566 drivers/char/xilinx_hwicap/xilinx_hwicap.c struct hwicap_drvdata *drvdata = file->private_data; drvdata 570 drivers/char/xilinx_hwicap/xilinx_hwicap.c mutex_lock(&drvdata->sem); drvdata 572 drivers/char/xilinx_hwicap/xilinx_hwicap.c if (drvdata->write_buffer_in_use) { drvdata 574 drivers/char/xilinx_hwicap/xilinx_hwicap.c for (i = drvdata->write_buffer_in_use; i < 4; i++) drvdata 575 drivers/char/xilinx_hwicap/xilinx_hwicap.c drvdata->write_buffer[i] = 0; drvdata 577 drivers/char/xilinx_hwicap/xilinx_hwicap.c status = drvdata->config->set_configuration(drvdata, drvdata 578 drivers/char/xilinx_hwicap/xilinx_hwicap.c (u32 *) drvdata->write_buffer, 1); drvdata 583 drivers/char/xilinx_hwicap/xilinx_hwicap.c status = hwicap_command_desync(drvdata); drvdata 588 drivers/char/xilinx_hwicap/xilinx_hwicap.c drvdata->is_open = 0; drvdata 589 drivers/char/xilinx_hwicap/xilinx_hwicap.c mutex_unlock(&drvdata->sem); drvdata 608 drivers/char/xilinx_hwicap/xilinx_hwicap.c struct hwicap_drvdata *drvdata = NULL; drvdata 637 drivers/char/xilinx_hwicap/xilinx_hwicap.c drvdata = kzalloc(sizeof(struct hwicap_drvdata), GFP_KERNEL); drvdata 638 drivers/char/xilinx_hwicap/xilinx_hwicap.c if (!drvdata) { drvdata 642 drivers/char/xilinx_hwicap/xilinx_hwicap.c dev_set_drvdata(dev, (void *)drvdata); drvdata 650 drivers/char/xilinx_hwicap/xilinx_hwicap.c drvdata->mem_start = regs_res->start; drvdata 651 drivers/char/xilinx_hwicap/xilinx_hwicap.c drvdata->mem_end = regs_res->end; drvdata 652 drivers/char/xilinx_hwicap/xilinx_hwicap.c drvdata->mem_size = resource_size(regs_res); drvdata 654 drivers/char/xilinx_hwicap/xilinx_hwicap.c if (!request_mem_region(drvdata->mem_start, drvdata 655 drivers/char/xilinx_hwicap/xilinx_hwicap.c drvdata->mem_size, DRIVER_NAME)) { drvdata 662 drivers/char/xilinx_hwicap/xilinx_hwicap.c drvdata->devt = devt; drvdata 663 drivers/char/xilinx_hwicap/xilinx_hwicap.c drvdata->dev = dev; drvdata 664 drivers/char/xilinx_hwicap/xilinx_hwicap.c drvdata->base_address = ioremap(drvdata->mem_start, drvdata->mem_size); drvdata 665 drivers/char/xilinx_hwicap/xilinx_hwicap.c if (!drvdata->base_address) { drvdata 671 drivers/char/xilinx_hwicap/xilinx_hwicap.c drvdata->config = config; drvdata 672 drivers/char/xilinx_hwicap/xilinx_hwicap.c drvdata->config_regs = config_regs; drvdata 674 drivers/char/xilinx_hwicap/xilinx_hwicap.c mutex_init(&drvdata->sem); drvdata 675 drivers/char/xilinx_hwicap/xilinx_hwicap.c drvdata->is_open = 0; drvdata 678 drivers/char/xilinx_hwicap/xilinx_hwicap.c (unsigned long long) drvdata->mem_start, drvdata 679 drivers/char/xilinx_hwicap/xilinx_hwicap.c drvdata->base_address, drvdata 680 drivers/char/xilinx_hwicap/xilinx_hwicap.c (unsigned long long) drvdata->mem_size); drvdata 682 drivers/char/xilinx_hwicap/xilinx_hwicap.c cdev_init(&drvdata->cdev, &hwicap_fops); drvdata 683 drivers/char/xilinx_hwicap/xilinx_hwicap.c drvdata->cdev.owner = THIS_MODULE; drvdata 684 drivers/char/xilinx_hwicap/xilinx_hwicap.c retval = cdev_add(&drvdata->cdev, devt, 1); drvdata 694 drivers/char/xilinx_hwicap/xilinx_hwicap.c iounmap(drvdata->base_address); drvdata 697 drivers/char/xilinx_hwicap/xilinx_hwicap.c release_mem_region(regs_res->start, drvdata->mem_size); drvdata 700 drivers/char/xilinx_hwicap/xilinx_hwicap.c kfree(drvdata); drvdata 726 drivers/char/xilinx_hwicap/xilinx_hwicap.c struct hwicap_drvdata *drvdata; drvdata 728 drivers/char/xilinx_hwicap/xilinx_hwicap.c drvdata = dev_get_drvdata(dev); drvdata 730 drivers/char/xilinx_hwicap/xilinx_hwicap.c if (!drvdata) drvdata 733 drivers/char/xilinx_hwicap/xilinx_hwicap.c device_destroy(icap_class, drvdata->devt); drvdata 734 drivers/char/xilinx_hwicap/xilinx_hwicap.c cdev_del(&drvdata->cdev); drvdata 735 drivers/char/xilinx_hwicap/xilinx_hwicap.c iounmap(drvdata->base_address); drvdata 736 drivers/char/xilinx_hwicap/xilinx_hwicap.c release_mem_region(drvdata->mem_start, drvdata->mem_size); drvdata 737 drivers/char/xilinx_hwicap/xilinx_hwicap.c kfree(drvdata); drvdata 67 drivers/char/xilinx_hwicap/xilinx_hwicap.h int (*get_configuration)(struct hwicap_drvdata *drvdata, u32 *data, drvdata 72 drivers/char/xilinx_hwicap/xilinx_hwicap.h int (*set_configuration)(struct hwicap_drvdata *drvdata, u32 *data, drvdata 85 drivers/char/xilinx_hwicap/xilinx_hwicap.h u32 (*get_status)(struct hwicap_drvdata *drvdata); drvdata 87 drivers/char/xilinx_hwicap/xilinx_hwicap.h void (*reset)(struct hwicap_drvdata *drvdata); drvdata 74 drivers/clk/clk-max9485.c struct max9485_driver_data *drvdata; drvdata 91 drivers/clk/clk-max9485.c static int max9485_update_bits(struct max9485_driver_data *drvdata, drvdata 96 drivers/clk/clk-max9485.c drvdata->reg_value &= ~mask; drvdata 97 drivers/clk/clk-max9485.c drvdata->reg_value |= value; drvdata 99 drivers/clk/clk-max9485.c dev_dbg(&drvdata->client->dev, drvdata 101 drivers/clk/clk-max9485.c mask, value, drvdata->reg_value); drvdata 103 drivers/clk/clk-max9485.c ret = i2c_master_send(drvdata->client, drvdata 104 drivers/clk/clk-max9485.c &drvdata->reg_value, drvdata 105 drivers/clk/clk-max9485.c sizeof(drvdata->reg_value)); drvdata 114 drivers/clk/clk-max9485.c return max9485_update_bits(clk_hw->drvdata, drvdata 123 drivers/clk/clk-max9485.c max9485_update_bits(clk_hw->drvdata, clk_hw->enable_bit, 0); drvdata 142 drivers/clk/clk-max9485.c return max9485_update_bits(clk_hw->drvdata, drvdata 151 drivers/clk/clk-max9485.c struct max9485_driver_data *drvdata = clk_hw->drvdata; drvdata 152 drivers/clk/clk-max9485.c u8 val = drvdata->reg_value & MAX9485_FREQ_MASK; drvdata 251 drivers/clk/clk-max9485.c struct max9485_driver_data *drvdata = data; drvdata 254 drivers/clk/clk-max9485.c return &drvdata->hw[idx].hw; drvdata 260 drivers/clk/clk-max9485.c struct max9485_driver_data *drvdata; drvdata 265 drivers/clk/clk-max9485.c drvdata = devm_kzalloc(dev, sizeof(*drvdata), GFP_KERNEL); drvdata 266 drivers/clk/clk-max9485.c if (!drvdata) drvdata 269 drivers/clk/clk-max9485.c drvdata->xclk = devm_clk_get(dev, "xclk"); drvdata 270 drivers/clk/clk-max9485.c if (IS_ERR(drvdata->xclk)) drvdata 271 drivers/clk/clk-max9485.c return PTR_ERR(drvdata->xclk); drvdata 273 drivers/clk/clk-max9485.c xclk_name = __clk_get_name(drvdata->xclk); drvdata 275 drivers/clk/clk-max9485.c drvdata->supply = devm_regulator_get(dev, "vdd"); drvdata 276 drivers/clk/clk-max9485.c if (IS_ERR(drvdata->supply)) drvdata 277 drivers/clk/clk-max9485.c return PTR_ERR(drvdata->supply); drvdata 279 drivers/clk/clk-max9485.c ret = regulator_enable(drvdata->supply); drvdata 283 drivers/clk/clk-max9485.c drvdata->reset_gpio = drvdata 285 drivers/clk/clk-max9485.c if (IS_ERR(drvdata->reset_gpio)) drvdata 286 drivers/clk/clk-max9485.c return PTR_ERR(drvdata->reset_gpio); drvdata 288 drivers/clk/clk-max9485.c i2c_set_clientdata(client, drvdata); drvdata 289 drivers/clk/clk-max9485.c drvdata->client = client; drvdata 291 drivers/clk/clk-max9485.c ret = i2c_master_recv(drvdata->client, &drvdata->reg_value, drvdata 292 drivers/clk/clk-max9485.c sizeof(drvdata->reg_value)); drvdata 305 drivers/clk/clk-max9485.c drvdata->hw[i].init.name = name; drvdata 307 drivers/clk/clk-max9485.c drvdata->hw[i].init.name = max9485_clks[i].name; drvdata 310 drivers/clk/clk-max9485.c drvdata->hw[i].init.ops = &max9485_clks[i].ops; drvdata 311 drivers/clk/clk-max9485.c drvdata->hw[i].init.num_parents = 1; drvdata 312 drivers/clk/clk-max9485.c drvdata->hw[i].init.flags = 0; drvdata 315 drivers/clk/clk-max9485.c drvdata->hw[i].init.parent_names = drvdata 316 drivers/clk/clk-max9485.c &drvdata->hw[parent_index].init.name; drvdata 317 drivers/clk/clk-max9485.c drvdata->hw[i].init.flags |= CLK_SET_RATE_PARENT; drvdata 319 drivers/clk/clk-max9485.c drvdata->hw[i].init.parent_names = &xclk_name; drvdata 322 drivers/clk/clk-max9485.c drvdata->hw[i].enable_bit = max9485_clks[i].enable_bit; drvdata 323 drivers/clk/clk-max9485.c drvdata->hw[i].hw.init = &drvdata->hw[i].init; drvdata 324 drivers/clk/clk-max9485.c drvdata->hw[i].drvdata = drvdata; drvdata 326 drivers/clk/clk-max9485.c ret = devm_clk_hw_register(dev, &drvdata->hw[i].hw); drvdata 331 drivers/clk/clk-max9485.c return devm_of_clk_add_hw_provider(dev, max9485_of_clk_get, drvdata); drvdata 337 drivers/clk/clk-max9485.c struct max9485_driver_data *drvdata = i2c_get_clientdata(client); drvdata 339 drivers/clk/clk-max9485.c gpiod_set_value_cansleep(drvdata->reset_gpio, 0); drvdata 347 drivers/clk/clk-max9485.c struct max9485_driver_data *drvdata = i2c_get_clientdata(client); drvdata 350 drivers/clk/clk-max9485.c gpiod_set_value_cansleep(drvdata->reset_gpio, 1); drvdata 352 drivers/clk/clk-max9485.c ret = i2c_master_send(client, &drvdata->reg_value, drvdata 353 drivers/clk/clk-max9485.c sizeof(drvdata->reg_value)); drvdata 44 drivers/clk/clk-si5351.c struct si5351_driver_data *drvdata; drvdata 83 drivers/clk/clk-si5351.c static inline u8 si5351_reg_read(struct si5351_driver_data *drvdata, u8 reg) drvdata 88 drivers/clk/clk-si5351.c ret = regmap_read(drvdata->regmap, reg, &val); drvdata 90 drivers/clk/clk-si5351.c dev_err(&drvdata->client->dev, drvdata 98 drivers/clk/clk-si5351.c static inline int si5351_bulk_read(struct si5351_driver_data *drvdata, drvdata 101 drivers/clk/clk-si5351.c return regmap_bulk_read(drvdata->regmap, reg, buf, count); drvdata 104 drivers/clk/clk-si5351.c static inline int si5351_reg_write(struct si5351_driver_data *drvdata, drvdata 107 drivers/clk/clk-si5351.c return regmap_write(drvdata->regmap, reg, val); drvdata 110 drivers/clk/clk-si5351.c static inline int si5351_bulk_write(struct si5351_driver_data *drvdata, drvdata 113 drivers/clk/clk-si5351.c return regmap_raw_write(drvdata->regmap, reg, buf, count); drvdata 116 drivers/clk/clk-si5351.c static inline int si5351_set_bits(struct si5351_driver_data *drvdata, drvdata 119 drivers/clk/clk-si5351.c return regmap_update_bits(drvdata->regmap, reg, mask, val); drvdata 129 drivers/clk/clk-si5351.c static void si5351_read_parameters(struct si5351_driver_data *drvdata, drvdata 137 drivers/clk/clk-si5351.c buf[0] = si5351_reg_read(drvdata, reg); drvdata 143 drivers/clk/clk-si5351.c si5351_bulk_read(drvdata, reg, SI5351_PARAMETERS_LENGTH, buf); drvdata 151 drivers/clk/clk-si5351.c static void si5351_write_parameters(struct si5351_driver_data *drvdata, drvdata 160 drivers/clk/clk-si5351.c si5351_reg_write(drvdata, reg, buf[0]); drvdata 166 drivers/clk/clk-si5351.c buf[2] = si5351_reg_read(drvdata, reg + 2) & ~0x03; drvdata 174 drivers/clk/clk-si5351.c si5351_bulk_write(drvdata, reg, SI5351_PARAMETERS_LENGTH, buf); drvdata 220 drivers/clk/clk-si5351.c struct si5351_driver_data *drvdata = drvdata 222 drivers/clk/clk-si5351.c si5351_set_bits(drvdata, SI5351_FANOUT_ENABLE, drvdata 229 drivers/clk/clk-si5351.c struct si5351_driver_data *drvdata = drvdata 231 drivers/clk/clk-si5351.c si5351_set_bits(drvdata, SI5351_FANOUT_ENABLE, drvdata 245 drivers/clk/clk-si5351.c struct si5351_driver_data *drvdata = drvdata 247 drivers/clk/clk-si5351.c si5351_set_bits(drvdata, SI5351_FANOUT_ENABLE, drvdata 254 drivers/clk/clk-si5351.c struct si5351_driver_data *drvdata = drvdata 256 drivers/clk/clk-si5351.c si5351_set_bits(drvdata, SI5351_FANOUT_ENABLE, drvdata 268 drivers/clk/clk-si5351.c struct si5351_driver_data *drvdata = drvdata 287 drivers/clk/clk-si5351.c si5351_set_bits(drvdata, SI5351_PLL_INPUT_SOURCE, drvdata 290 drivers/clk/clk-si5351.c dev_dbg(&drvdata->client->dev, "%s - clkin div = %d, rate = %lu\n", drvdata 311 drivers/clk/clk-si5351.c dev_warn(&hwdata->drvdata->client->dev, "VXCO currently unsupported\n"); drvdata 365 drivers/clk/clk-si5351.c static int _si5351_pll_reparent(struct si5351_driver_data *drvdata, drvdata 376 drivers/clk/clk-si5351.c if (drvdata->variant != SI5351_VARIANT_C && drvdata 380 drivers/clk/clk-si5351.c si5351_set_bits(drvdata, SI5351_PLL_INPUT_SOURCE, mask, drvdata 392 drivers/clk/clk-si5351.c val = si5351_reg_read(hwdata->drvdata, SI5351_PLL_INPUT_SOURCE); drvdata 402 drivers/clk/clk-si5351.c if (hwdata->drvdata->variant != SI5351_VARIANT_C && drvdata 409 drivers/clk/clk-si5351.c return _si5351_pll_reparent(hwdata->drvdata, hwdata->num, drvdata 424 drivers/clk/clk-si5351.c si5351_read_parameters(hwdata->drvdata, reg, &hwdata->params); drvdata 436 drivers/clk/clk-si5351.c dev_dbg(&hwdata->drvdata->client->dev, drvdata 494 drivers/clk/clk-si5351.c dev_dbg(&hwdata->drvdata->client->dev, drvdata 511 drivers/clk/clk-si5351.c si5351_write_parameters(hwdata->drvdata, reg, &hwdata->params); drvdata 514 drivers/clk/clk-si5351.c si5351_set_bits(hwdata->drvdata, SI5351_CLK6_CTRL + hwdata->num, drvdata 519 drivers/clk/clk-si5351.c si5351_reg_write(hwdata->drvdata, SI5351_PLL_RESET, drvdata 523 drivers/clk/clk-si5351.c dev_dbg(&hwdata->drvdata->client->dev, drvdata 563 drivers/clk/clk-si5351.c static int _si5351_msynth_reparent(struct si5351_driver_data *drvdata, drvdata 572 drivers/clk/clk-si5351.c si5351_set_bits(drvdata, SI5351_CLK0_CTRL + num, SI5351_CLK_PLL_SELECT, drvdata 584 drivers/clk/clk-si5351.c val = si5351_reg_read(hwdata->drvdata, SI5351_CLK0_CTRL + hwdata->num); drvdata 594 drivers/clk/clk-si5351.c return _si5351_msynth_reparent(hwdata->drvdata, hwdata->num, drvdata 609 drivers/clk/clk-si5351.c si5351_read_parameters(hwdata->drvdata, reg, &hwdata->params); drvdata 620 drivers/clk/clk-si5351.c } else if ((si5351_reg_read(hwdata->drvdata, reg + 2) & drvdata 634 drivers/clk/clk-si5351.c dev_dbg(&hwdata->drvdata->client->dev, drvdata 747 drivers/clk/clk-si5351.c dev_dbg(&hwdata->drvdata->client->dev, drvdata 764 drivers/clk/clk-si5351.c si5351_write_parameters(hwdata->drvdata, reg, &hwdata->params); drvdata 771 drivers/clk/clk-si5351.c si5351_set_bits(hwdata->drvdata, reg + 2, drvdata 774 drivers/clk/clk-si5351.c si5351_set_bits(hwdata->drvdata, SI5351_CLK0_CTRL + hwdata->num, drvdata 779 drivers/clk/clk-si5351.c dev_dbg(&hwdata->drvdata->client->dev, drvdata 799 drivers/clk/clk-si5351.c static int _si5351_clkout_reparent(struct si5351_driver_data *drvdata, drvdata 822 drivers/clk/clk-si5351.c if (drvdata->variant != SI5351_VARIANT_C) drvdata 831 drivers/clk/clk-si5351.c si5351_set_bits(drvdata, SI5351_CLK0_CTRL + num, drvdata 837 drivers/clk/clk-si5351.c struct si5351_driver_data *drvdata, int num, drvdata 862 drivers/clk/clk-si5351.c si5351_set_bits(drvdata, SI5351_CLK0_CTRL + num, drvdata 868 drivers/clk/clk-si5351.c struct si5351_driver_data *drvdata, int num, drvdata 897 drivers/clk/clk-si5351.c si5351_set_bits(drvdata, reg, mask, val << shift); drvdata 902 drivers/clk/clk-si5351.c static void _si5351_clkout_reset_pll(struct si5351_driver_data *drvdata, int num) drvdata 904 drivers/clk/clk-si5351.c u8 val = si5351_reg_read(drvdata, SI5351_CLK0_CTRL + num); drvdata 912 drivers/clk/clk-si5351.c si5351_reg_write(drvdata, SI5351_PLL_RESET, drvdata 916 drivers/clk/clk-si5351.c dev_dbg(&drvdata->client->dev, "%s - %s: pll = %d\n", drvdata 917 drivers/clk/clk-si5351.c __func__, clk_hw_get_name(&drvdata->clkout[num].hw), drvdata 926 drivers/clk/clk-si5351.c hwdata->drvdata->client->dev.platform_data; drvdata 928 drivers/clk/clk-si5351.c si5351_set_bits(hwdata->drvdata, SI5351_CLK0_CTRL + hwdata->num, drvdata 936 drivers/clk/clk-si5351.c _si5351_clkout_reset_pll(hwdata->drvdata, hwdata->num); drvdata 938 drivers/clk/clk-si5351.c si5351_set_bits(hwdata->drvdata, SI5351_OUTPUT_ENABLE_CTRL, drvdata 948 drivers/clk/clk-si5351.c si5351_set_bits(hwdata->drvdata, SI5351_CLK0_CTRL + hwdata->num, drvdata 950 drivers/clk/clk-si5351.c si5351_set_bits(hwdata->drvdata, SI5351_OUTPUT_ENABLE_CTRL, drvdata 961 drivers/clk/clk-si5351.c val = si5351_reg_read(hwdata->drvdata, SI5351_CLK0_CTRL + hwdata->num); drvdata 1001 drivers/clk/clk-si5351.c return _si5351_clkout_reparent(hwdata->drvdata, hwdata->num, parent); drvdata 1017 drivers/clk/clk-si5351.c rdiv = si5351_reg_read(hwdata->drvdata, reg); drvdata 1073 drivers/clk/clk-si5351.c dev_dbg(&hwdata->drvdata->client->dev, drvdata 1105 drivers/clk/clk-si5351.c si5351_set_bits(hwdata->drvdata, SI5351_CLK6_7_OUTPUT_DIVIDER, drvdata 1109 drivers/clk/clk-si5351.c si5351_set_bits(hwdata->drvdata, SI5351_CLK6_7_OUTPUT_DIVIDER, drvdata 1114 drivers/clk/clk-si5351.c si5351_set_bits(hwdata->drvdata, drvdata 1121 drivers/clk/clk-si5351.c si5351_set_bits(hwdata->drvdata, SI5351_CLK0_CTRL + hwdata->num, drvdata 1124 drivers/clk/clk-si5351.c dev_dbg(&hwdata->drvdata->client->dev, drvdata 1340 drivers/clk/clk-si5351.c struct si5351_driver_data *drvdata = data; drvdata 1343 drivers/clk/clk-si5351.c if (idx >= drvdata->num_clkout) { drvdata 1348 drivers/clk/clk-si5351.c return &drvdata->clkout[idx].hw; drvdata 1368 drivers/clk/clk-si5351.c struct si5351_driver_data *drvdata; drvdata 1382 drivers/clk/clk-si5351.c drvdata = devm_kzalloc(&client->dev, sizeof(*drvdata), GFP_KERNEL); drvdata 1383 drivers/clk/clk-si5351.c if (!drvdata) drvdata 1386 drivers/clk/clk-si5351.c i2c_set_clientdata(client, drvdata); drvdata 1387 drivers/clk/clk-si5351.c drvdata->client = client; drvdata 1388 drivers/clk/clk-si5351.c drvdata->variant = variant; drvdata 1389 drivers/clk/clk-si5351.c drvdata->pxtal = devm_clk_get(&client->dev, "xtal"); drvdata 1390 drivers/clk/clk-si5351.c drvdata->pclkin = devm_clk_get(&client->dev, "clkin"); drvdata 1392 drivers/clk/clk-si5351.c if (PTR_ERR(drvdata->pxtal) == -EPROBE_DEFER || drvdata 1393 drivers/clk/clk-si5351.c PTR_ERR(drvdata->pclkin) == -EPROBE_DEFER) drvdata 1400 drivers/clk/clk-si5351.c if (IS_ERR(drvdata->pxtal) && drvdata 1401 drivers/clk/clk-si5351.c (drvdata->variant != SI5351_VARIANT_C || IS_ERR(drvdata->pclkin))) { drvdata 1406 drivers/clk/clk-si5351.c drvdata->regmap = devm_regmap_init_i2c(client, &si5351_regmap_config); drvdata 1407 drivers/clk/clk-si5351.c if (IS_ERR(drvdata->regmap)) { drvdata 1409 drivers/clk/clk-si5351.c return PTR_ERR(drvdata->regmap); drvdata 1413 drivers/clk/clk-si5351.c si5351_reg_write(drvdata, SI5351_INTERRUPT_MASK, 0xf0); drvdata 1415 drivers/clk/clk-si5351.c if (drvdata->variant != SI5351_VARIANT_C) drvdata 1416 drivers/clk/clk-si5351.c si5351_set_bits(drvdata, SI5351_PLL_INPUT_SOURCE, drvdata 1421 drivers/clk/clk-si5351.c ret = _si5351_pll_reparent(drvdata, n, pdata->pll_src[n]); drvdata 1431 drivers/clk/clk-si5351.c ret = _si5351_msynth_reparent(drvdata, n, drvdata 1440 drivers/clk/clk-si5351.c ret = _si5351_clkout_reparent(drvdata, n, drvdata 1449 drivers/clk/clk-si5351.c ret = _si5351_clkout_set_drive_strength(drvdata, n, drvdata 1458 drivers/clk/clk-si5351.c ret = _si5351_clkout_set_disable_state(drvdata, n, drvdata 1473 drivers/clk/clk-si5351.c if (!IS_ERR(drvdata->pxtal)) { drvdata 1474 drivers/clk/clk-si5351.c drvdata->pxtal_name = __clk_get_name(drvdata->pxtal); drvdata 1475 drivers/clk/clk-si5351.c init.parent_names = &drvdata->pxtal_name; drvdata 1478 drivers/clk/clk-si5351.c drvdata->xtal.init = &init; drvdata 1479 drivers/clk/clk-si5351.c ret = devm_clk_hw_register(&client->dev, &drvdata->xtal); drvdata 1486 drivers/clk/clk-si5351.c if (drvdata->variant == SI5351_VARIANT_C) { drvdata 1490 drivers/clk/clk-si5351.c if (!IS_ERR(drvdata->pclkin)) { drvdata 1491 drivers/clk/clk-si5351.c drvdata->pclkin_name = __clk_get_name(drvdata->pclkin); drvdata 1492 drivers/clk/clk-si5351.c init.parent_names = &drvdata->pclkin_name; drvdata 1495 drivers/clk/clk-si5351.c drvdata->clkin.init = &init; drvdata 1496 drivers/clk/clk-si5351.c ret = devm_clk_hw_register(&client->dev, &drvdata->clkin); drvdata 1505 drivers/clk/clk-si5351.c num_parents = (drvdata->variant == SI5351_VARIANT_C) ? 2 : 1; drvdata 1510 drivers/clk/clk-si5351.c drvdata->pll[0].num = 0; drvdata 1511 drivers/clk/clk-si5351.c drvdata->pll[0].drvdata = drvdata; drvdata 1512 drivers/clk/clk-si5351.c drvdata->pll[0].hw.init = &init; drvdata 1519 drivers/clk/clk-si5351.c ret = devm_clk_hw_register(&client->dev, &drvdata->pll[0].hw); drvdata 1526 drivers/clk/clk-si5351.c drvdata->pll[1].num = 1; drvdata 1527 drivers/clk/clk-si5351.c drvdata->pll[1].drvdata = drvdata; drvdata 1528 drivers/clk/clk-si5351.c drvdata->pll[1].hw.init = &init; drvdata 1530 drivers/clk/clk-si5351.c if (drvdata->variant == SI5351_VARIANT_B) { drvdata 1543 drivers/clk/clk-si5351.c ret = devm_clk_hw_register(&client->dev, &drvdata->pll[1].hw); drvdata 1550 drivers/clk/clk-si5351.c num_clocks = (drvdata->variant == SI5351_VARIANT_A3) ? 3 : 8; drvdata 1552 drivers/clk/clk-si5351.c if (drvdata->variant == SI5351_VARIANT_B) drvdata 1557 drivers/clk/clk-si5351.c drvdata->msynth = devm_kcalloc(&client->dev, num_clocks, drvdata 1558 drivers/clk/clk-si5351.c sizeof(*drvdata->msynth), GFP_KERNEL); drvdata 1559 drivers/clk/clk-si5351.c drvdata->clkout = devm_kcalloc(&client->dev, num_clocks, drvdata 1560 drivers/clk/clk-si5351.c sizeof(*drvdata->clkout), GFP_KERNEL); drvdata 1561 drivers/clk/clk-si5351.c drvdata->num_clkout = num_clocks; drvdata 1563 drivers/clk/clk-si5351.c if (WARN_ON(!drvdata->msynth || !drvdata->clkout)) { drvdata 1569 drivers/clk/clk-si5351.c drvdata->msynth[n].num = n; drvdata 1570 drivers/clk/clk-si5351.c drvdata->msynth[n].drvdata = drvdata; drvdata 1571 drivers/clk/clk-si5351.c drvdata->msynth[n].hw.init = &init; drvdata 1581 drivers/clk/clk-si5351.c &drvdata->msynth[n].hw); drvdata 1589 drivers/clk/clk-si5351.c num_parents = (drvdata->variant == SI5351_VARIANT_C) ? 4 : 3; drvdata 1597 drivers/clk/clk-si5351.c drvdata->clkout[n].num = n; drvdata 1598 drivers/clk/clk-si5351.c drvdata->clkout[n].drvdata = drvdata; drvdata 1599 drivers/clk/clk-si5351.c drvdata->clkout[n].hw.init = &init; drvdata 1609 drivers/clk/clk-si5351.c &drvdata->clkout[n].hw); drvdata 1619 drivers/clk/clk-si5351.c ret = clk_set_rate(drvdata->clkout[n].hw.clk, drvdata 1629 drivers/clk/clk-si5351.c drvdata); drvdata 18 drivers/clk/x86/clk-lpt.c struct lpss_clk_data *drvdata; drvdata 21 drivers/clk/x86/clk-lpt.c drvdata = devm_kzalloc(&pdev->dev, sizeof(*drvdata), GFP_KERNEL); drvdata 22 drivers/clk/x86/clk-lpt.c if (!drvdata) drvdata 26 drivers/clk/x86/clk-lpt.c drvdata->name = "lpss_clk"; drvdata 27 drivers/clk/x86/clk-lpt.c clk = clk_register_fixed_rate(&pdev->dev, drvdata->name, NULL, drvdata 32 drivers/clk/x86/clk-lpt.c drvdata->clk = clk; drvdata 33 drivers/clk/x86/clk-lpt.c platform_set_drvdata(pdev, drvdata); drvdata 46 drivers/crypto/ccree/cc_aead.c struct cc_drvdata *drvdata; drvdata 71 drivers/crypto/ccree/cc_aead.c struct device *dev = drvdata_to_dev(ctx->drvdata); drvdata 126 drivers/crypto/ccree/cc_aead.c return cc_get_default_hash_len(ctx->drvdata); drvdata 135 drivers/crypto/ccree/cc_aead.c struct device *dev = drvdata_to_dev(cc_alg->drvdata); drvdata 144 drivers/crypto/ccree/cc_aead.c ctx->drvdata = cc_alg->drvdata; drvdata 315 drivers/crypto/ccree/cc_aead.c cc_larval_digest_addr(ctx->drvdata, drvdata 367 drivers/crypto/ccree/cc_aead.c struct device *dev = drvdata_to_dev(ctx->drvdata); drvdata 418 drivers/crypto/ccree/cc_aead.c struct device *dev = drvdata_to_dev(ctx->drvdata); drvdata 419 drivers/crypto/ccree/cc_aead.c u32 larval_addr = cc_larval_digest_addr(ctx->drvdata, ctx->auth_mode); drvdata 531 drivers/crypto/ccree/cc_aead.c rc = cc_send_sync_request(ctx->drvdata, &cc_req, desc, idx); drvdata 550 drivers/crypto/ccree/cc_aead.c struct device *dev = drvdata_to_dev(ctx->drvdata); drvdata 631 drivers/crypto/ccree/cc_aead.c rc = cc_send_sync_request(ctx->drvdata, &cc_req, desc, seq_len); drvdata 683 drivers/crypto/ccree/cc_aead.c struct device *dev = drvdata_to_dev(ctx->drvdata); drvdata 739 drivers/crypto/ccree/cc_aead.c struct device *dev = drvdata_to_dev(ctx->drvdata); drvdata 780 drivers/crypto/ccree/cc_aead.c struct device *dev = drvdata_to_dev(ctx->drvdata); drvdata 844 drivers/crypto/ccree/cc_aead.c struct device *dev = drvdata_to_dev(ctx->drvdata); drvdata 899 drivers/crypto/ccree/cc_aead.c set_queue_last_ind(ctx->drvdata, &desc[idx]); drvdata 915 drivers/crypto/ccree/cc_aead.c set_queue_last_ind(ctx->drvdata, &desc[idx]); drvdata 1022 drivers/crypto/ccree/cc_aead.c set_din_sram(&desc[idx], cc_digest_len_addr(ctx->drvdata, hash_mode), drvdata 1112 drivers/crypto/ccree/cc_aead.c struct cc_aead_handle *aead_handle = ctx->drvdata->aead_handle; drvdata 1151 drivers/crypto/ccree/cc_aead.c set_din_sram(&desc[idx], cc_digest_len_addr(ctx->drvdata, hash_mode), drvdata 1174 drivers/crypto/ccree/cc_aead.c struct device *dev = drvdata_to_dev(ctx->drvdata); drvdata 1180 drivers/crypto/ccree/cc_aead.c (unsigned int)ctx->drvdata->mlli_sram_addr, drvdata 1188 drivers/crypto/ccree/cc_aead.c ctx->drvdata->mlli_sram_addr, drvdata 1326 drivers/crypto/ccree/cc_aead.c struct device *dev = drvdata_to_dev(ctx->drvdata); drvdata 1533 drivers/crypto/ccree/cc_aead.c set_queue_last_ind(ctx->drvdata, &desc[idx]); drvdata 1545 drivers/crypto/ccree/cc_aead.c struct device *dev = drvdata_to_dev(ctx->drvdata); drvdata 1796 drivers/crypto/ccree/cc_aead.c set_queue_last_ind(ctx->drvdata, &desc[idx]); drvdata 1845 drivers/crypto/ccree/cc_aead.c struct device *dev = drvdata_to_dev(ctx->drvdata); drvdata 1913 drivers/crypto/ccree/cc_aead.c struct device *dev = drvdata_to_dev(ctx->drvdata); drvdata 1989 drivers/crypto/ccree/cc_aead.c rc = cc_map_aead_request(ctx->drvdata, req); drvdata 2024 drivers/crypto/ccree/cc_aead.c rc = cc_send_request(ctx->drvdata, &cc_req, desc, seq_len, &req->base); drvdata 2063 drivers/crypto/ccree/cc_aead.c struct device *dev = drvdata_to_dev(ctx->drvdata); drvdata 2112 drivers/crypto/ccree/cc_aead.c struct device *dev = drvdata_to_dev(ctx->drvdata); drvdata 2142 drivers/crypto/ccree/cc_aead.c struct device *dev = drvdata_to_dev(ctx->drvdata); drvdata 2159 drivers/crypto/ccree/cc_aead.c struct device *dev = drvdata_to_dev(ctx->drvdata); drvdata 2195 drivers/crypto/ccree/cc_aead.c struct device *dev = drvdata_to_dev(ctx->drvdata); drvdata 2215 drivers/crypto/ccree/cc_aead.c struct device *dev = drvdata_to_dev(ctx->drvdata); drvdata 2231 drivers/crypto/ccree/cc_aead.c struct device *dev = drvdata_to_dev(ctx->drvdata); drvdata 2262 drivers/crypto/ccree/cc_aead.c struct device *dev = drvdata_to_dev(ctx->drvdata); drvdata 2296 drivers/crypto/ccree/cc_aead.c struct device *dev = drvdata_to_dev(ctx->drvdata); drvdata 2327 drivers/crypto/ccree/cc_aead.c struct device *dev = drvdata_to_dev(ctx->drvdata); drvdata 2651 drivers/crypto/ccree/cc_aead.c int cc_aead_free(struct cc_drvdata *drvdata) drvdata 2655 drivers/crypto/ccree/cc_aead.c (struct cc_aead_handle *)drvdata->aead_handle; drvdata 2666 drivers/crypto/ccree/cc_aead.c drvdata->aead_handle = NULL; drvdata 2672 drivers/crypto/ccree/cc_aead.c int cc_aead_alloc(struct cc_drvdata *drvdata) drvdata 2678 drivers/crypto/ccree/cc_aead.c struct device *dev = drvdata_to_dev(drvdata); drvdata 2687 drivers/crypto/ccree/cc_aead.c drvdata->aead_handle = aead_handle; drvdata 2689 drivers/crypto/ccree/cc_aead.c aead_handle->sram_workspace_addr = cc_sram_alloc(drvdata, drvdata 2700 drivers/crypto/ccree/cc_aead.c if ((aead_algs[alg].min_hw_rev > drvdata->hw_rev) || drvdata 2701 drivers/crypto/ccree/cc_aead.c !(drvdata->std_bodies & aead_algs[alg].std_body)) drvdata 2711 drivers/crypto/ccree/cc_aead.c t_alg->drvdata = drvdata; drvdata 2729 drivers/crypto/ccree/cc_aead.c cc_aead_free(drvdata); drvdata 106 drivers/crypto/ccree/cc_aead.h int cc_aead_alloc(struct cc_drvdata *drvdata); drvdata 107 drivers/crypto/ccree/cc_aead.h int cc_aead_free(struct cc_drvdata *drvdata); drvdata 398 drivers/crypto/ccree/cc_buffer_mgr.c int cc_map_cipher_request(struct cc_drvdata *drvdata, void *ctx, drvdata 405 drivers/crypto/ccree/cc_buffer_mgr.c struct buff_mgr_handle *buff_mgr = drvdata->buff_mgr_handle; drvdata 406 drivers/crypto/ccree/cc_buffer_mgr.c struct device *dev = drvdata_to_dev(drvdata); drvdata 490 drivers/crypto/ccree/cc_buffer_mgr.c struct cc_drvdata *drvdata = dev_get_drvdata(dev); drvdata 557 drivers/crypto/ccree/cc_buffer_mgr.c if (drvdata->coherent && drvdata 574 drivers/crypto/ccree/cc_buffer_mgr.c static int cc_aead_chain_iv(struct cc_drvdata *drvdata, drvdata 581 drivers/crypto/ccree/cc_buffer_mgr.c struct device *dev = drvdata_to_dev(drvdata); drvdata 626 drivers/crypto/ccree/cc_buffer_mgr.c static int cc_aead_chain_assoc(struct cc_drvdata *drvdata, drvdata 636 drivers/crypto/ccree/cc_buffer_mgr.c struct device *dev = drvdata_to_dev(drvdata); drvdata 722 drivers/crypto/ccree/cc_buffer_mgr.c static void cc_prepare_aead_data_mlli(struct cc_drvdata *drvdata, drvdata 731 drivers/crypto/ccree/cc_buffer_mgr.c struct device *dev = drvdata_to_dev(drvdata); drvdata 756 drivers/crypto/ccree/cc_buffer_mgr.c if (!drvdata->coherent) drvdata 835 drivers/crypto/ccree/cc_buffer_mgr.c static int cc_aead_chain_data(struct cc_drvdata *drvdata, drvdata 841 drivers/crypto/ccree/cc_buffer_mgr.c struct device *dev = drvdata_to_dev(drvdata); drvdata 940 drivers/crypto/ccree/cc_buffer_mgr.c cc_prepare_aead_data_mlli(drvdata, req, sg_data, drvdata 953 drivers/crypto/ccree/cc_buffer_mgr.c static void cc_update_aead_mlli_nents(struct cc_drvdata *drvdata, drvdata 960 drivers/crypto/ccree/cc_buffer_mgr.c areq_ctx->assoc.sram_addr = drvdata->mlli_sram_addr; drvdata 969 drivers/crypto/ccree/cc_buffer_mgr.c areq_ctx->src.sram_addr = drvdata->mlli_sram_addr + drvdata 979 drivers/crypto/ccree/cc_buffer_mgr.c drvdata->mlli_sram_addr + drvdata 990 drivers/crypto/ccree/cc_buffer_mgr.c drvdata->mlli_sram_addr + drvdata 1004 drivers/crypto/ccree/cc_buffer_mgr.c int cc_map_aead_request(struct cc_drvdata *drvdata, struct aead_request *req) drvdata 1008 drivers/crypto/ccree/cc_buffer_mgr.c struct device *dev = drvdata_to_dev(drvdata); drvdata 1011 drivers/crypto/ccree/cc_buffer_mgr.c struct buff_mgr_handle *buff_mgr = drvdata->buff_mgr_handle; drvdata 1027 drivers/crypto/ccree/cc_buffer_mgr.c if (drvdata->coherent && drvdata 1138 drivers/crypto/ccree/cc_buffer_mgr.c rc = cc_aead_chain_assoc(drvdata, req, &sg_data, true, false); drvdata 1141 drivers/crypto/ccree/cc_buffer_mgr.c rc = cc_aead_chain_iv(drvdata, req, &sg_data, true, false); drvdata 1144 drivers/crypto/ccree/cc_buffer_mgr.c rc = cc_aead_chain_data(drvdata, req, &sg_data, true, false); drvdata 1168 drivers/crypto/ccree/cc_buffer_mgr.c rc = cc_aead_chain_assoc(drvdata, req, &sg_data, false, true); drvdata 1171 drivers/crypto/ccree/cc_buffer_mgr.c rc = cc_aead_chain_iv(drvdata, req, &sg_data, false, true); drvdata 1174 drivers/crypto/ccree/cc_buffer_mgr.c rc = cc_aead_chain_data(drvdata, req, &sg_data, true, true); drvdata 1189 drivers/crypto/ccree/cc_buffer_mgr.c cc_update_aead_mlli_nents(drvdata, req); drvdata 1202 drivers/crypto/ccree/cc_buffer_mgr.c int cc_map_hash_request_final(struct cc_drvdata *drvdata, void *ctx, drvdata 1207 drivers/crypto/ccree/cc_buffer_mgr.c struct device *dev = drvdata_to_dev(drvdata); drvdata 1212 drivers/crypto/ccree/cc_buffer_mgr.c struct buff_mgr_handle *buff_mgr = drvdata->buff_mgr_handle; drvdata 1283 drivers/crypto/ccree/cc_buffer_mgr.c int cc_map_hash_request_update(struct cc_drvdata *drvdata, void *ctx, drvdata 1288 drivers/crypto/ccree/cc_buffer_mgr.c struct device *dev = drvdata_to_dev(drvdata); drvdata 1297 drivers/crypto/ccree/cc_buffer_mgr.c struct buff_mgr_handle *buff_mgr = drvdata->buff_mgr_handle; drvdata 1437 drivers/crypto/ccree/cc_buffer_mgr.c int cc_buffer_mgr_init(struct cc_drvdata *drvdata) drvdata 1440 drivers/crypto/ccree/cc_buffer_mgr.c struct device *dev = drvdata_to_dev(drvdata); drvdata 1446 drivers/crypto/ccree/cc_buffer_mgr.c drvdata->buff_mgr_handle = buff_mgr_handle; drvdata 1460 drivers/crypto/ccree/cc_buffer_mgr.c cc_buffer_mgr_fini(drvdata); drvdata 1464 drivers/crypto/ccree/cc_buffer_mgr.c int cc_buffer_mgr_fini(struct cc_drvdata *drvdata) drvdata 1466 drivers/crypto/ccree/cc_buffer_mgr.c struct buff_mgr_handle *buff_mgr_handle = drvdata->buff_mgr_handle; drvdata 1470 drivers/crypto/ccree/cc_buffer_mgr.c kfree(drvdata->buff_mgr_handle); drvdata 1471 drivers/crypto/ccree/cc_buffer_mgr.c drvdata->buff_mgr_handle = NULL; drvdata 40 drivers/crypto/ccree/cc_buffer_mgr.h int cc_buffer_mgr_init(struct cc_drvdata *drvdata); drvdata 42 drivers/crypto/ccree/cc_buffer_mgr.h int cc_buffer_mgr_fini(struct cc_drvdata *drvdata); drvdata 44 drivers/crypto/ccree/cc_buffer_mgr.h int cc_map_cipher_request(struct cc_drvdata *drvdata, void *ctx, drvdata 52 drivers/crypto/ccree/cc_buffer_mgr.h int cc_map_aead_request(struct cc_drvdata *drvdata, struct aead_request *req); drvdata 56 drivers/crypto/ccree/cc_buffer_mgr.h int cc_map_hash_request_final(struct cc_drvdata *drvdata, void *ctx, drvdata 60 drivers/crypto/ccree/cc_buffer_mgr.h int cc_map_hash_request_update(struct cc_drvdata *drvdata, void *ctx, drvdata 50 drivers/crypto/ccree/cc_cipher.c struct cc_drvdata *drvdata; drvdata 164 drivers/crypto/ccree/cc_cipher.c struct device *dev = drvdata_to_dev(cc_alg->drvdata); drvdata 176 drivers/crypto/ccree/cc_cipher.c ctx_p->drvdata = cc_alg->drvdata; drvdata 218 drivers/crypto/ccree/cc_cipher.c struct device *dev = drvdata_to_dev(ctx_p->drvdata); drvdata 282 drivers/crypto/ccree/cc_cipher.c struct device *dev = drvdata_to_dev(ctx_p->drvdata); drvdata 350 drivers/crypto/ccree/cc_cipher.c if (ctx_p->drvdata->hw_rev < CC_HW_REV_713) { drvdata 384 drivers/crypto/ccree/cc_cipher.c struct device *dev = drvdata_to_dev(ctx_p->drvdata); drvdata 476 drivers/crypto/ccree/cc_cipher.c struct device *dev = drvdata_to_dev(ctx_p->drvdata); drvdata 504 drivers/crypto/ccree/cc_cipher.c set_queue_last_ind(ctx_p->drvdata, &desc[*seq_size]); drvdata 518 drivers/crypto/ccree/cc_cipher.c set_queue_last_ind(ctx_p->drvdata, &desc[*seq_size]); drvdata 534 drivers/crypto/ccree/cc_cipher.c struct device *dev = drvdata_to_dev(ctx_p->drvdata); drvdata 587 drivers/crypto/ccree/cc_cipher.c struct device *dev = drvdata_to_dev(ctx_p->drvdata); drvdata 668 drivers/crypto/ccree/cc_cipher.c struct device *dev = drvdata_to_dev(ctx_p->drvdata); drvdata 752 drivers/crypto/ccree/cc_cipher.c struct device *dev = drvdata_to_dev(ctx_p->drvdata); drvdata 759 drivers/crypto/ccree/cc_cipher.c (unsigned int)ctx_p->drvdata->mlli_sram_addr); drvdata 765 drivers/crypto/ccree/cc_cipher.c ctx_p->drvdata->mlli_sram_addr, drvdata 779 drivers/crypto/ccree/cc_cipher.c struct device *dev = drvdata_to_dev(ctx_p->drvdata); drvdata 796 drivers/crypto/ccree/cc_cipher.c set_queue_last_ind(ctx_p->drvdata, &desc[*seq_size]); drvdata 803 drivers/crypto/ccree/cc_cipher.c ctx_p->drvdata->mlli_sram_addr, drvdata 807 drivers/crypto/ccree/cc_cipher.c (unsigned int)ctx_p->drvdata->mlli_sram_addr, drvdata 808 drivers/crypto/ccree/cc_cipher.c (unsigned int)ctx_p->drvdata->mlli_sram_addr); drvdata 810 drivers/crypto/ccree/cc_cipher.c ctx_p->drvdata->mlli_sram_addr, drvdata 815 drivers/crypto/ccree/cc_cipher.c (unsigned int)ctx_p->drvdata->mlli_sram_addr, drvdata 816 drivers/crypto/ccree/cc_cipher.c (unsigned int)ctx_p->drvdata->mlli_sram_addr + drvdata 819 drivers/crypto/ccree/cc_cipher.c (ctx_p->drvdata->mlli_sram_addr + drvdata 826 drivers/crypto/ccree/cc_cipher.c set_queue_last_ind(ctx_p->drvdata, &desc[*seq_size]); drvdata 864 drivers/crypto/ccree/cc_cipher.c struct device *dev = drvdata_to_dev(ctx_p->drvdata); drvdata 915 drivers/crypto/ccree/cc_cipher.c rc = cc_map_cipher_request(ctx_p->drvdata, req_ctx, ivsize, nbytes, drvdata 939 drivers/crypto/ccree/cc_cipher.c rc = cc_send_request(ctx_p->drvdata, &cc_req, desc, seq_len, drvdata 1669 drivers/crypto/ccree/cc_cipher.c int cc_cipher_free(struct cc_drvdata *drvdata) drvdata 1672 drivers/crypto/ccree/cc_cipher.c struct cc_cipher_handle *cipher_handle = drvdata->cipher_handle; drvdata 1683 drivers/crypto/ccree/cc_cipher.c drvdata->cipher_handle = NULL; drvdata 1688 drivers/crypto/ccree/cc_cipher.c int cc_cipher_alloc(struct cc_drvdata *drvdata) drvdata 1692 drivers/crypto/ccree/cc_cipher.c struct device *dev = drvdata_to_dev(drvdata); drvdata 1701 drivers/crypto/ccree/cc_cipher.c drvdata->cipher_handle = cipher_handle; drvdata 1707 drivers/crypto/ccree/cc_cipher.c if ((skcipher_algs[alg].min_hw_rev > drvdata->hw_rev) || drvdata 1708 drivers/crypto/ccree/cc_cipher.c !(drvdata->std_bodies & skcipher_algs[alg].std_body) || drvdata 1709 drivers/crypto/ccree/cc_cipher.c (drvdata->sec_disabled && skcipher_algs[alg].sec_func)) drvdata 1720 drivers/crypto/ccree/cc_cipher.c t_alg->drvdata = drvdata; drvdata 1742 drivers/crypto/ccree/cc_cipher.c cc_cipher_free(drvdata); drvdata 27 drivers/crypto/ccree/cc_cipher.h int cc_cipher_alloc(struct cc_drvdata *drvdata); drvdata 29 drivers/crypto/ccree/cc_cipher.h int cc_cipher_free(struct cc_drvdata *drvdata); drvdata 67 drivers/crypto/ccree/cc_debugfs.c int cc_debugfs_init(struct cc_drvdata *drvdata) drvdata 69 drivers/crypto/ccree/cc_debugfs.c struct device *dev = drvdata_to_dev(drvdata); drvdata 83 drivers/crypto/ccree/cc_debugfs.c regset->base = drvdata->cc_base; drvdata 85 drivers/crypto/ccree/cc_debugfs.c ctx->dir = debugfs_create_dir(drvdata->plat_dev->name, cc_debugfs_dir); drvdata 88 drivers/crypto/ccree/cc_debugfs.c debugfs_create_bool("coherent", 0400, ctx->dir, &drvdata->coherent); drvdata 95 drivers/crypto/ccree/cc_debugfs.c if (drvdata->hw_rev <= CC_HW_REV_712) { drvdata 96 drivers/crypto/ccree/cc_debugfs.c ver_sig_regs[0].offset = drvdata->sig_offset; drvdata 97 drivers/crypto/ccree/cc_debugfs.c ver_sig_regs[1].offset = drvdata->ver_offset; drvdata 104 drivers/crypto/ccree/cc_debugfs.c verset->base = drvdata->cc_base; drvdata 109 drivers/crypto/ccree/cc_debugfs.c drvdata->debugfs = ctx; drvdata 113 drivers/crypto/ccree/cc_debugfs.c void cc_debugfs_fini(struct cc_drvdata *drvdata) drvdata 115 drivers/crypto/ccree/cc_debugfs.c struct cc_debugfs_ctx *ctx = (struct cc_debugfs_ctx *)drvdata->debugfs; drvdata 11 drivers/crypto/ccree/cc_debugfs.h int cc_debugfs_init(struct cc_drvdata *drvdata); drvdata 12 drivers/crypto/ccree/cc_debugfs.h void cc_debugfs_fini(struct cc_drvdata *drvdata); drvdata 19 drivers/crypto/ccree/cc_debugfs.h static inline int cc_debugfs_init(struct cc_drvdata *drvdata) drvdata 24 drivers/crypto/ccree/cc_debugfs.h static inline void cc_debugfs_fini(struct cc_drvdata *drvdata) {} drvdata 101 drivers/crypto/ccree/cc_driver.c static u32 cc_read_idr(struct cc_drvdata *drvdata, const u32 *idr_offsets) drvdata 110 drivers/crypto/ccree/cc_driver.c idr.regs[i] = cc_ioread(drvdata, idr_offsets[i]); drvdata 130 drivers/crypto/ccree/cc_driver.c struct cc_drvdata *drvdata = (struct cc_drvdata *)dev_id; drvdata 131 drivers/crypto/ccree/cc_driver.c struct device *dev = drvdata_to_dev(drvdata); drvdata 141 drivers/crypto/ccree/cc_driver.c irr = cc_ioread(drvdata, CC_REG(HOST_IRR)); drvdata 147 drivers/crypto/ccree/cc_driver.c imr = cc_ioread(drvdata, CC_REG(HOST_IMR)); drvdata 150 drivers/crypto/ccree/cc_driver.c cc_iowrite(drvdata, CC_REG(HOST_ICR), irr); drvdata 152 drivers/crypto/ccree/cc_driver.c drvdata->irq = irr; drvdata 154 drivers/crypto/ccree/cc_driver.c if (irr & drvdata->comp_mask) { drvdata 158 drivers/crypto/ccree/cc_driver.c cc_iowrite(drvdata, CC_REG(HOST_IMR), imr | drvdata->comp_mask); drvdata 159 drivers/crypto/ccree/cc_driver.c irr &= ~drvdata->comp_mask; drvdata 160 drivers/crypto/ccree/cc_driver.c complete_request(drvdata); drvdata 168 drivers/crypto/ccree/cc_driver.c cc_iowrite(drvdata, CC_REG(HOST_IMR), imr | CC_GPR0_IRQ_MASK); drvdata 170 drivers/crypto/ccree/cc_driver.c fips_handler(drvdata); drvdata 178 drivers/crypto/ccree/cc_driver.c axi_err = cc_ioread(drvdata, CC_REG(AXIM_MON_ERR)); drvdata 194 drivers/crypto/ccree/cc_driver.c bool cc_wait_for_reset_completion(struct cc_drvdata *drvdata) drvdata 200 drivers/crypto/ccree/cc_driver.c if (drvdata->hw_rev <= CC_HW_REV_712) drvdata 207 drivers/crypto/ccree/cc_driver.c val = cc_ioread(drvdata, CC_REG(NVM_IS_IDLE)); drvdata 219 drivers/crypto/ccree/cc_driver.c int init_cc_regs(struct cc_drvdata *drvdata, bool is_probe) drvdata 222 drivers/crypto/ccree/cc_driver.c struct device *dev = drvdata_to_dev(drvdata); drvdata 226 drivers/crypto/ccree/cc_driver.c if (drvdata->hw_rev <= CC_HW_REV_712) { drvdata 227 drivers/crypto/ccree/cc_driver.c val = cc_ioread(drvdata, CC_REG(AXIM_CFG)); drvdata 228 drivers/crypto/ccree/cc_driver.c cc_iowrite(drvdata, CC_REG(AXIM_CFG), val & ~CC_AXI_IRQ_MASK); drvdata 230 drivers/crypto/ccree/cc_driver.c cc_ioread(drvdata, CC_REG(AXIM_CFG))); drvdata 234 drivers/crypto/ccree/cc_driver.c val = cc_ioread(drvdata, CC_REG(HOST_IRR)); drvdata 236 drivers/crypto/ccree/cc_driver.c cc_iowrite(drvdata, CC_REG(HOST_ICR), val); drvdata 239 drivers/crypto/ccree/cc_driver.c val = drvdata->comp_mask | CC_AXI_ERR_IRQ_MASK; drvdata 241 drivers/crypto/ccree/cc_driver.c if (drvdata->hw_rev >= CC_HW_REV_712) drvdata 244 drivers/crypto/ccree/cc_driver.c cc_iowrite(drvdata, CC_REG(HOST_IMR), ~val); drvdata 246 drivers/crypto/ccree/cc_driver.c cache_params = (drvdata->coherent ? CC_COHERENT_CACHE_PARAMS : 0x0); drvdata 248 drivers/crypto/ccree/cc_driver.c val = cc_ioread(drvdata, CC_REG(AXIM_CACHE_PARAMS)); drvdata 253 drivers/crypto/ccree/cc_driver.c cc_iowrite(drvdata, CC_REG(AXIM_CACHE_PARAMS), cache_params); drvdata 254 drivers/crypto/ccree/cc_driver.c val = cc_ioread(drvdata, CC_REG(AXIM_CACHE_PARAMS)); drvdata 555 drivers/crypto/ccree/cc_driver.c void fini_cc_regs(struct cc_drvdata *drvdata) drvdata 558 drivers/crypto/ccree/cc_driver.c cc_iowrite(drvdata, CC_REG(HOST_IMR), 0xFFFFFFFF); drvdata 563 drivers/crypto/ccree/cc_driver.c struct cc_drvdata *drvdata = drvdata 566 drivers/crypto/ccree/cc_driver.c cc_aead_free(drvdata); drvdata 567 drivers/crypto/ccree/cc_driver.c cc_hash_free(drvdata); drvdata 568 drivers/crypto/ccree/cc_driver.c cc_cipher_free(drvdata); drvdata 569 drivers/crypto/ccree/cc_driver.c cc_pm_fini(drvdata); drvdata 570 drivers/crypto/ccree/cc_driver.c cc_buffer_mgr_fini(drvdata); drvdata 571 drivers/crypto/ccree/cc_driver.c cc_req_mgr_fini(drvdata); drvdata 572 drivers/crypto/ccree/cc_driver.c cc_sram_mgr_fini(drvdata); drvdata 573 drivers/crypto/ccree/cc_driver.c cc_fips_fini(drvdata); drvdata 574 drivers/crypto/ccree/cc_driver.c cc_debugfs_fini(drvdata); drvdata 575 drivers/crypto/ccree/cc_driver.c fini_cc_regs(drvdata); drvdata 576 drivers/crypto/ccree/cc_driver.c cc_clk_off(drvdata); drvdata 579 drivers/crypto/ccree/cc_driver.c int cc_clk_on(struct cc_drvdata *drvdata) drvdata 581 drivers/crypto/ccree/cc_driver.c struct clk *clk = drvdata->clk; drvdata 595 drivers/crypto/ccree/cc_driver.c unsigned int cc_get_default_hash_len(struct cc_drvdata *drvdata) drvdata 597 drivers/crypto/ccree/cc_driver.c if (drvdata->hw_rev >= CC_HW_REV_712) drvdata 603 drivers/crypto/ccree/cc_driver.c void cc_clk_off(struct cc_drvdata *drvdata) drvdata 605 drivers/crypto/ccree/cc_driver.c struct clk *clk = drvdata->clk; drvdata 173 drivers/crypto/ccree/cc_driver.h struct cc_drvdata *drvdata; drvdata 193 drivers/crypto/ccree/cc_driver.h struct cc_drvdata *drvdata; drvdata 202 drivers/crypto/ccree/cc_driver.h static inline struct device *drvdata_to_dev(struct cc_drvdata *drvdata) drvdata 204 drivers/crypto/ccree/cc_driver.h return &drvdata->plat_dev->dev; drvdata 215 drivers/crypto/ccree/cc_driver.h bool cc_wait_for_reset_completion(struct cc_drvdata *drvdata); drvdata 216 drivers/crypto/ccree/cc_driver.h int init_cc_regs(struct cc_drvdata *drvdata, bool is_probe); drvdata 217 drivers/crypto/ccree/cc_driver.h void fini_cc_regs(struct cc_drvdata *drvdata); drvdata 218 drivers/crypto/ccree/cc_driver.h int cc_clk_on(struct cc_drvdata *drvdata); drvdata 219 drivers/crypto/ccree/cc_driver.h void cc_clk_off(struct cc_drvdata *drvdata); drvdata 220 drivers/crypto/ccree/cc_driver.h unsigned int cc_get_default_hash_len(struct cc_drvdata *drvdata); drvdata 222 drivers/crypto/ccree/cc_driver.h static inline void cc_iowrite(struct cc_drvdata *drvdata, u32 reg, u32 val) drvdata 224 drivers/crypto/ccree/cc_driver.h iowrite32(val, (drvdata->cc_base + reg)); drvdata 227 drivers/crypto/ccree/cc_driver.h static inline u32 cc_ioread(struct cc_drvdata *drvdata, u32 reg) drvdata 229 drivers/crypto/ccree/cc_driver.h return ioread32(drvdata->cc_base + reg); drvdata 238 drivers/crypto/ccree/cc_driver.h static inline void set_queue_last_ind(struct cc_drvdata *drvdata, drvdata 241 drivers/crypto/ccree/cc_driver.h if (drvdata->hw_rev >= CC_HW_REV_712) drvdata 16 drivers/crypto/ccree/cc_fips.c struct cc_drvdata *drvdata; drvdata 22 drivers/crypto/ccree/cc_fips.c static bool cc_get_tee_fips_status(struct cc_drvdata *drvdata) drvdata 26 drivers/crypto/ccree/cc_fips.c reg = cc_ioread(drvdata, CC_REG(GPR_HOST)); drvdata 40 drivers/crypto/ccree/cc_fips.c void cc_set_ree_fips_status(struct cc_drvdata *drvdata, bool status) drvdata 44 drivers/crypto/ccree/cc_fips.c if (drvdata->hw_rev < CC_HW_REV_712) drvdata 49 drivers/crypto/ccree/cc_fips.c cc_iowrite(drvdata, CC_REG(HOST_GPR0), val); drvdata 58 drivers/crypto/ccree/cc_fips.c struct cc_drvdata *drvdata = fips_h->drvdata; drvdata 59 drivers/crypto/ccree/cc_fips.c struct device *dev = drvdata_to_dev(drvdata); drvdata 61 drivers/crypto/ccree/cc_fips.c cc_set_ree_fips_status(drvdata, false); drvdata 67 drivers/crypto/ccree/cc_fips.c void cc_fips_fini(struct cc_drvdata *drvdata) drvdata 69 drivers/crypto/ccree/cc_fips.c struct cc_fips_handle *fips_h = drvdata->fips_handle; drvdata 71 drivers/crypto/ccree/cc_fips.c if (drvdata->hw_rev < CC_HW_REV_712 || !fips_h) drvdata 78 drivers/crypto/ccree/cc_fips.c drvdata->fips_handle = NULL; drvdata 81 drivers/crypto/ccree/cc_fips.c void fips_handler(struct cc_drvdata *drvdata) drvdata 83 drivers/crypto/ccree/cc_fips.c struct cc_fips_handle *fips_handle_ptr = drvdata->fips_handle; drvdata 85 drivers/crypto/ccree/cc_fips.c if (drvdata->hw_rev < CC_HW_REV_712) drvdata 114 drivers/crypto/ccree/cc_fips.c struct cc_drvdata *drvdata = (struct cc_drvdata *)devarg; drvdata 117 drivers/crypto/ccree/cc_fips.c irq = (drvdata->irq & (CC_GPR0_IRQ_MASK)); drvdata 120 drivers/crypto/ccree/cc_fips.c cc_tee_handle_fips_error(drvdata); drvdata 127 drivers/crypto/ccree/cc_fips.c cc_iowrite(drvdata, CC_REG(HOST_IMR), val); drvdata 147 drivers/crypto/ccree/cc_fips.c fips_h->drvdata = p_drvdata; drvdata 18 drivers/crypto/ccree/cc_fips.h void cc_fips_fini(struct cc_drvdata *drvdata); drvdata 19 drivers/crypto/ccree/cc_fips.h void fips_handler(struct cc_drvdata *drvdata); drvdata 20 drivers/crypto/ccree/cc_fips.h void cc_set_ree_fips_status(struct cc_drvdata *drvdata, bool ok); drvdata 30 drivers/crypto/ccree/cc_fips.h static inline void cc_fips_fini(struct cc_drvdata *drvdata) {} drvdata 31 drivers/crypto/ccree/cc_fips.h static inline void cc_set_ree_fips_status(struct cc_drvdata *drvdata, drvdata 33 drivers/crypto/ccree/cc_fips.h static inline void fips_handler(struct cc_drvdata *drvdata) {} drvdata 65 drivers/crypto/ccree/cc_hash.c struct cc_drvdata *drvdata; drvdata 77 drivers/crypto/ccree/cc_hash.c struct cc_drvdata *drvdata; drvdata 348 drivers/crypto/ccree/cc_hash.c set_queue_last_ind(ctx->drvdata, &desc[idx]); drvdata 389 drivers/crypto/ccree/cc_hash.c cc_digest_len_addr(ctx->drvdata, ctx->hash_mode), drvdata 421 drivers/crypto/ccree/cc_hash.c struct device *dev = drvdata_to_dev(ctx->drvdata); drvdata 426 drivers/crypto/ccree/cc_hash.c cc_larval_digest_addr(ctx->drvdata, ctx->hash_mode); drvdata 447 drivers/crypto/ccree/cc_hash.c if (cc_map_hash_request_final(ctx->drvdata, state, src, nbytes, 1, drvdata 512 drivers/crypto/ccree/cc_hash.c rc = cc_send_request(ctx->drvdata, &cc_req, desc, idx, &req->base); drvdata 557 drivers/crypto/ccree/cc_hash.c struct device *dev = drvdata_to_dev(ctx->drvdata); drvdata 572 drivers/crypto/ccree/cc_hash.c rc = cc_map_hash_request_update(ctx->drvdata, state, src, nbytes, drvdata 611 drivers/crypto/ccree/cc_hash.c set_queue_last_ind(ctx->drvdata, &desc[idx]); drvdata 616 drivers/crypto/ccree/cc_hash.c rc = cc_send_request(ctx->drvdata, &cc_req, desc, idx, &req->base); drvdata 634 drivers/crypto/ccree/cc_hash.c struct device *dev = drvdata_to_dev(ctx->drvdata); drvdata 650 drivers/crypto/ccree/cc_hash.c if (cc_map_hash_request_final(ctx->drvdata, state, src, nbytes, update, drvdata 684 drivers/crypto/ccree/cc_hash.c rc = cc_send_request(ctx->drvdata, &cc_req, desc, idx, &req->base); drvdata 710 drivers/crypto/ccree/cc_hash.c struct device *dev = drvdata_to_dev(ctx->drvdata); drvdata 733 drivers/crypto/ccree/cc_hash.c dev = drvdata_to_dev(ctx->drvdata); drvdata 739 drivers/crypto/ccree/cc_hash.c larval_addr = cc_larval_digest_addr(ctx->drvdata, ctx->hash_mode); drvdata 842 drivers/crypto/ccree/cc_hash.c rc = cc_send_sync_request(ctx->drvdata, &cc_req, desc, idx); drvdata 899 drivers/crypto/ccree/cc_hash.c rc = cc_send_sync_request(ctx->drvdata, &cc_req, desc, idx); drvdata 922 drivers/crypto/ccree/cc_hash.c struct device *dev = drvdata_to_dev(ctx->drvdata); drvdata 991 drivers/crypto/ccree/cc_hash.c rc = cc_send_sync_request(ctx->drvdata, &cc_req, desc, idx); drvdata 1010 drivers/crypto/ccree/cc_hash.c struct device *dev = drvdata_to_dev(ctx->drvdata); drvdata 1048 drivers/crypto/ccree/cc_hash.c struct device *dev = drvdata_to_dev(ctx->drvdata); drvdata 1071 drivers/crypto/ccree/cc_hash.c struct device *dev = drvdata_to_dev(ctx->drvdata); drvdata 1116 drivers/crypto/ccree/cc_hash.c return cc_get_default_hash_len(ctx->drvdata); drvdata 1135 drivers/crypto/ccree/cc_hash.c ctx->drvdata = cc_alg->drvdata; drvdata 1143 drivers/crypto/ccree/cc_hash.c struct device *dev = drvdata_to_dev(ctx->drvdata); drvdata 1154 drivers/crypto/ccree/cc_hash.c struct device *dev = drvdata_to_dev(ctx->drvdata); drvdata 1169 drivers/crypto/ccree/cc_hash.c rc = cc_map_hash_request_update(ctx->drvdata, state, req->src, drvdata 1199 drivers/crypto/ccree/cc_hash.c set_queue_last_ind(ctx->drvdata, &desc[idx]); drvdata 1208 drivers/crypto/ccree/cc_hash.c rc = cc_send_request(ctx->drvdata, &cc_req, desc, idx, &req->base); drvdata 1222 drivers/crypto/ccree/cc_hash.c struct device *dev = drvdata_to_dev(ctx->drvdata); drvdata 1248 drivers/crypto/ccree/cc_hash.c if (cc_map_hash_request_final(ctx->drvdata, state, req->src, drvdata 1323 drivers/crypto/ccree/cc_hash.c set_queue_last_ind(ctx->drvdata, &desc[idx]); drvdata 1329 drivers/crypto/ccree/cc_hash.c rc = cc_send_request(ctx->drvdata, &cc_req, desc, idx, &req->base); drvdata 1344 drivers/crypto/ccree/cc_hash.c struct device *dev = drvdata_to_dev(ctx->drvdata); drvdata 1364 drivers/crypto/ccree/cc_hash.c if (cc_map_hash_request_final(ctx->drvdata, state, req->src, drvdata 1405 drivers/crypto/ccree/cc_hash.c set_queue_last_ind(ctx->drvdata, &desc[idx]); drvdata 1411 drivers/crypto/ccree/cc_hash.c rc = cc_send_request(ctx->drvdata, &cc_req, desc, idx, &req->base); drvdata 1426 drivers/crypto/ccree/cc_hash.c struct device *dev = drvdata_to_dev(ctx->drvdata); drvdata 1449 drivers/crypto/ccree/cc_hash.c if (cc_map_hash_request_final(ctx->drvdata, state, req->src, drvdata 1483 drivers/crypto/ccree/cc_hash.c set_queue_last_ind(ctx->drvdata, &desc[idx]); drvdata 1490 drivers/crypto/ccree/cc_hash.c rc = cc_send_request(ctx->drvdata, &cc_req, desc, idx, &req->base); drvdata 1530 drivers/crypto/ccree/cc_hash.c struct device *dev = drvdata_to_dev(ctx->drvdata); drvdata 1571 drivers/crypto/ccree/cc_hash.c struct cc_drvdata *drvdata; drvdata 1866 drivers/crypto/ccree/cc_hash.c int cc_init_hash_sram(struct cc_drvdata *drvdata) drvdata 1868 drivers/crypto/ccree/cc_hash.c struct cc_hash_handle *hash_handle = drvdata->hash_handle; drvdata 1872 drivers/crypto/ccree/cc_hash.c bool large_sha_supported = (drvdata->hw_rev >= CC_HW_REV_712); drvdata 1873 drivers/crypto/ccree/cc_hash.c bool sm3_supported = (drvdata->hw_rev >= CC_HW_REV_713); drvdata 1880 drivers/crypto/ccree/cc_hash.c rc = send_request_init(drvdata, larval_seq, larval_seq_len); drvdata 1892 drivers/crypto/ccree/cc_hash.c rc = send_request_init(drvdata, larval_seq, larval_seq_len); drvdata 1906 drivers/crypto/ccree/cc_hash.c rc = send_request_init(drvdata, larval_seq, larval_seq_len); drvdata 1915 drivers/crypto/ccree/cc_hash.c rc = send_request_init(drvdata, larval_seq, larval_seq_len); drvdata 1924 drivers/crypto/ccree/cc_hash.c rc = send_request_init(drvdata, larval_seq, larval_seq_len); drvdata 1933 drivers/crypto/ccree/cc_hash.c rc = send_request_init(drvdata, larval_seq, larval_seq_len); drvdata 1943 drivers/crypto/ccree/cc_hash.c rc = send_request_init(drvdata, larval_seq, larval_seq_len); drvdata 1954 drivers/crypto/ccree/cc_hash.c rc = send_request_init(drvdata, larval_seq, larval_seq_len); drvdata 1963 drivers/crypto/ccree/cc_hash.c rc = send_request_init(drvdata, larval_seq, larval_seq_len); drvdata 1994 drivers/crypto/ccree/cc_hash.c int cc_hash_alloc(struct cc_drvdata *drvdata) drvdata 1999 drivers/crypto/ccree/cc_hash.c struct device *dev = drvdata_to_dev(drvdata); drvdata 2008 drivers/crypto/ccree/cc_hash.c drvdata->hash_handle = hash_handle; drvdata 2016 drivers/crypto/ccree/cc_hash.c if (drvdata->hw_rev >= CC_HW_REV_713) drvdata 2019 drivers/crypto/ccree/cc_hash.c if (drvdata->hw_rev >= CC_HW_REV_712) drvdata 2023 drivers/crypto/ccree/cc_hash.c sram_buff = cc_sram_alloc(drvdata, sram_size_to_alloc); drvdata 2034 drivers/crypto/ccree/cc_hash.c rc = cc_init_hash_sram(drvdata); drvdata 2046 drivers/crypto/ccree/cc_hash.c if ((driver_hash[alg].min_hw_rev > drvdata->hw_rev) || drvdata 2047 drivers/crypto/ccree/cc_hash.c !(drvdata->std_bodies & driver_hash[alg].std_body)) drvdata 2059 drivers/crypto/ccree/cc_hash.c t_alg->drvdata = drvdata; drvdata 2084 drivers/crypto/ccree/cc_hash.c t_alg->drvdata = drvdata; drvdata 2100 drivers/crypto/ccree/cc_hash.c kfree(drvdata->hash_handle); drvdata 2101 drivers/crypto/ccree/cc_hash.c drvdata->hash_handle = NULL; drvdata 2105 drivers/crypto/ccree/cc_hash.c int cc_hash_free(struct cc_drvdata *drvdata) drvdata 2108 drivers/crypto/ccree/cc_hash.c struct cc_hash_handle *hash_handle = drvdata->hash_handle; drvdata 2119 drivers/crypto/ccree/cc_hash.c drvdata->hash_handle = NULL; drvdata 2220 drivers/crypto/ccree/cc_hash.c struct device *dev = drvdata_to_dev(ctx->drvdata); drvdata 2240 drivers/crypto/ccree/cc_hash.c set_dout_sram(&desc[idx], ctx->drvdata->mlli_sram_addr, drvdata 2247 drivers/crypto/ccree/cc_hash.c ctx->drvdata->mlli_sram_addr, drvdata 2290 drivers/crypto/ccree/cc_hash.c cc_sram_addr_t cc_larval_digest_addr(void *drvdata, u32 mode) drvdata 2292 drivers/crypto/ccree/cc_hash.c struct cc_drvdata *_drvdata = (struct cc_drvdata *)drvdata; drvdata 2349 drivers/crypto/ccree/cc_hash.c cc_digest_len_addr(void *drvdata, u32 mode) drvdata 2351 drivers/crypto/ccree/cc_hash.c struct cc_drvdata *_drvdata = (struct cc_drvdata *)drvdata; drvdata 79 drivers/crypto/ccree/cc_hash.h int cc_hash_alloc(struct cc_drvdata *drvdata); drvdata 80 drivers/crypto/ccree/cc_hash.h int cc_init_hash_sram(struct cc_drvdata *drvdata); drvdata 81 drivers/crypto/ccree/cc_hash.h int cc_hash_free(struct cc_drvdata *drvdata); drvdata 93 drivers/crypto/ccree/cc_hash.h cc_digest_len_addr(void *drvdata, u32 mode); drvdata 105 drivers/crypto/ccree/cc_hash.h cc_sram_addr_t cc_larval_digest_addr(void *drvdata, u32 mode); drvdata 24 drivers/crypto/ccree/cc_pm.c struct cc_drvdata *drvdata = dev_get_drvdata(dev); drvdata 27 drivers/crypto/ccree/cc_pm.c fini_cc_regs(drvdata); drvdata 28 drivers/crypto/ccree/cc_pm.c cc_iowrite(drvdata, CC_REG(HOST_POWER_DOWN_EN), POWER_DOWN_ENABLE); drvdata 29 drivers/crypto/ccree/cc_pm.c cc_clk_off(drvdata); drvdata 36 drivers/crypto/ccree/cc_pm.c struct cc_drvdata *drvdata = dev_get_drvdata(dev); drvdata 40 drivers/crypto/ccree/cc_pm.c rc = cc_clk_on(drvdata); drvdata 46 drivers/crypto/ccree/cc_pm.c if (!cc_wait_for_reset_completion(drvdata)) { drvdata 51 drivers/crypto/ccree/cc_pm.c cc_iowrite(drvdata, CC_REG(HOST_POWER_DOWN_EN), POWER_DOWN_DISABLE); drvdata 52 drivers/crypto/ccree/cc_pm.c rc = init_cc_regs(drvdata, false); drvdata 58 drivers/crypto/ccree/cc_pm.c cc_tee_handle_fips_error(drvdata); drvdata 60 drivers/crypto/ccree/cc_pm.c cc_init_hash_sram(drvdata); drvdata 68 drivers/crypto/ccree/cc_pm.c struct cc_drvdata *drvdata = dev_get_drvdata(dev); drvdata 70 drivers/crypto/ccree/cc_pm.c if (drvdata->pm_on) drvdata 79 drivers/crypto/ccree/cc_pm.c struct cc_drvdata *drvdata = dev_get_drvdata(dev); drvdata 81 drivers/crypto/ccree/cc_pm.c if (drvdata->pm_on) { drvdata 95 drivers/crypto/ccree/cc_pm.c int cc_pm_init(struct cc_drvdata *drvdata) drvdata 97 drivers/crypto/ccree/cc_pm.c struct device *dev = drvdata_to_dev(drvdata); drvdata 107 drivers/crypto/ccree/cc_pm.c void cc_pm_go(struct cc_drvdata *drvdata) drvdata 109 drivers/crypto/ccree/cc_pm.c pm_runtime_enable(drvdata_to_dev(drvdata)); drvdata 110 drivers/crypto/ccree/cc_pm.c drvdata->pm_on = true; drvdata 113 drivers/crypto/ccree/cc_pm.c void cc_pm_fini(struct cc_drvdata *drvdata) drvdata 115 drivers/crypto/ccree/cc_pm.c pm_runtime_disable(drvdata_to_dev(drvdata)); drvdata 116 drivers/crypto/ccree/cc_pm.c drvdata->pm_on = false; drvdata 18 drivers/crypto/ccree/cc_pm.h int cc_pm_init(struct cc_drvdata *drvdata); drvdata 19 drivers/crypto/ccree/cc_pm.h void cc_pm_go(struct cc_drvdata *drvdata); drvdata 20 drivers/crypto/ccree/cc_pm.h void cc_pm_fini(struct cc_drvdata *drvdata); drvdata 29 drivers/crypto/ccree/cc_pm.h static inline int cc_pm_init(struct cc_drvdata *drvdata) drvdata 34 drivers/crypto/ccree/cc_pm.h static inline void cc_pm_go(struct cc_drvdata *drvdata) {} drvdata 36 drivers/crypto/ccree/cc_pm.h static inline void cc_pm_fini(struct cc_drvdata *drvdata) {} drvdata 86 drivers/crypto/ccree/cc_request_mgr.c void cc_req_mgr_fini(struct cc_drvdata *drvdata) drvdata 88 drivers/crypto/ccree/cc_request_mgr.c struct cc_req_mgr_handle *req_mgr_h = drvdata->request_mgr_handle; drvdata 89 drivers/crypto/ccree/cc_request_mgr.c struct device *dev = drvdata_to_dev(drvdata); drvdata 111 drivers/crypto/ccree/cc_request_mgr.c drvdata->request_mgr_handle = NULL; drvdata 114 drivers/crypto/ccree/cc_request_mgr.c int cc_req_mgr_init(struct cc_drvdata *drvdata) drvdata 117 drivers/crypto/ccree/cc_request_mgr.c struct device *dev = drvdata_to_dev(drvdata); drvdata 126 drivers/crypto/ccree/cc_request_mgr.c drvdata->request_mgr_handle = req_mgr_h; drvdata 144 drivers/crypto/ccree/cc_request_mgr.c (unsigned long)drvdata); drvdata 146 drivers/crypto/ccree/cc_request_mgr.c req_mgr_h->hw_queue_size = cc_ioread(drvdata, drvdata 176 drivers/crypto/ccree/cc_request_mgr.c set_queue_last_ind(drvdata, &req_mgr_h->compl_desc); drvdata 181 drivers/crypto/ccree/cc_request_mgr.c cc_req_mgr_fini(drvdata); drvdata 185 drivers/crypto/ccree/cc_request_mgr.c static void enqueue_seq(struct cc_drvdata *drvdata, struct cc_hw_desc seq[], drvdata 189 drivers/crypto/ccree/cc_request_mgr.c void __iomem *reg = drvdata->cc_base + CC_REG(DSCRPTR_QUEUE_WORD0); drvdata 190 drivers/crypto/ccree/cc_request_mgr.c struct device *dev = drvdata_to_dev(drvdata); drvdata 224 drivers/crypto/ccree/cc_request_mgr.c static int cc_queues_status(struct cc_drvdata *drvdata, drvdata 229 drivers/crypto/ccree/cc_request_mgr.c struct device *dev = drvdata_to_dev(drvdata); drvdata 248 drivers/crypto/ccree/cc_request_mgr.c cc_ioread(drvdata, CC_REG(DSCRPTR_QUEUE_CONTENT)); drvdata 279 drivers/crypto/ccree/cc_request_mgr.c static int cc_do_send_request(struct cc_drvdata *drvdata, drvdata 284 drivers/crypto/ccree/cc_request_mgr.c struct cc_req_mgr_handle *req_mgr_h = drvdata->request_mgr_handle; drvdata 287 drivers/crypto/ccree/cc_request_mgr.c struct device *dev = drvdata_to_dev(drvdata); drvdata 312 drivers/crypto/ccree/cc_request_mgr.c enqueue_seq(drvdata, desc, len); drvdata 315 drivers/crypto/ccree/cc_request_mgr.c enqueue_seq(drvdata, &req_mgr_h->compl_desc, 1); drvdata 335 drivers/crypto/ccree/cc_request_mgr.c static void cc_enqueue_backlog(struct cc_drvdata *drvdata, drvdata 338 drivers/crypto/ccree/cc_request_mgr.c struct cc_req_mgr_handle *mgr = drvdata->request_mgr_handle; drvdata 339 drivers/crypto/ccree/cc_request_mgr.c struct device *dev = drvdata_to_dev(drvdata); drvdata 349 drivers/crypto/ccree/cc_request_mgr.c static void cc_proc_backlog(struct cc_drvdata *drvdata) drvdata 351 drivers/crypto/ccree/cc_request_mgr.c struct cc_req_mgr_handle *mgr = drvdata->request_mgr_handle; drvdata 355 drivers/crypto/ccree/cc_request_mgr.c struct device *dev = drvdata_to_dev(drvdata); drvdata 381 drivers/crypto/ccree/cc_request_mgr.c rc = cc_queues_status(drvdata, mgr, bli->len); drvdata 392 drivers/crypto/ccree/cc_request_mgr.c rc = cc_do_send_request(drvdata, &bli->creq, bli->desc, drvdata 412 drivers/crypto/ccree/cc_request_mgr.c int cc_send_request(struct cc_drvdata *drvdata, struct cc_crypto_req *cc_req, drvdata 417 drivers/crypto/ccree/cc_request_mgr.c struct cc_req_mgr_handle *mgr = drvdata->request_mgr_handle; drvdata 418 drivers/crypto/ccree/cc_request_mgr.c struct device *dev = drvdata_to_dev(drvdata); drvdata 430 drivers/crypto/ccree/cc_request_mgr.c rc = cc_queues_status(drvdata, mgr, len); drvdata 450 drivers/crypto/ccree/cc_request_mgr.c cc_enqueue_backlog(drvdata, bli); drvdata 455 drivers/crypto/ccree/cc_request_mgr.c rc = cc_do_send_request(drvdata, cc_req, desc, len, false); drvdata 461 drivers/crypto/ccree/cc_request_mgr.c int cc_send_sync_request(struct cc_drvdata *drvdata, drvdata 466 drivers/crypto/ccree/cc_request_mgr.c struct device *dev = drvdata_to_dev(drvdata); drvdata 467 drivers/crypto/ccree/cc_request_mgr.c struct cc_req_mgr_handle *mgr = drvdata->request_mgr_handle; drvdata 481 drivers/crypto/ccree/cc_request_mgr.c rc = cc_queues_status(drvdata, mgr, len + 1); drvdata 491 drivers/crypto/ccree/cc_request_mgr.c wait_for_completion_interruptible(&drvdata->hw_queue_avail); drvdata 492 drivers/crypto/ccree/cc_request_mgr.c reinit_completion(&drvdata->hw_queue_avail); drvdata 495 drivers/crypto/ccree/cc_request_mgr.c rc = cc_do_send_request(drvdata, cc_req, desc, len, true); drvdata 518 drivers/crypto/ccree/cc_request_mgr.c int send_request_init(struct cc_drvdata *drvdata, struct cc_hw_desc *desc, drvdata 521 drivers/crypto/ccree/cc_request_mgr.c struct cc_req_mgr_handle *req_mgr_h = drvdata->request_mgr_handle; drvdata 527 drivers/crypto/ccree/cc_request_mgr.c rc = cc_queues_status(drvdata, req_mgr_h, total_seq_len); drvdata 531 drivers/crypto/ccree/cc_request_mgr.c set_queue_last_ind(drvdata, &desc[(len - 1)]); drvdata 539 drivers/crypto/ccree/cc_request_mgr.c enqueue_seq(drvdata, desc, len); drvdata 543 drivers/crypto/ccree/cc_request_mgr.c cc_ioread(drvdata, CC_REG(DSCRPTR_QUEUE_CONTENT)); drvdata 548 drivers/crypto/ccree/cc_request_mgr.c void complete_request(struct cc_drvdata *drvdata) drvdata 551 drivers/crypto/ccree/cc_request_mgr.c drvdata->request_mgr_handle; drvdata 553 drivers/crypto/ccree/cc_request_mgr.c complete(&drvdata->hw_queue_avail); drvdata 565 drivers/crypto/ccree/cc_request_mgr.c struct cc_drvdata *drvdata = drvdata 568 drivers/crypto/ccree/cc_request_mgr.c comp_handler((unsigned long)drvdata); drvdata 572 drivers/crypto/ccree/cc_request_mgr.c static void proc_completions(struct cc_drvdata *drvdata) drvdata 575 drivers/crypto/ccree/cc_request_mgr.c struct device *dev = drvdata_to_dev(drvdata); drvdata 577 drivers/crypto/ccree/cc_request_mgr.c drvdata->request_mgr_handle; drvdata 605 drivers/crypto/ccree/cc_request_mgr.c rc = (drvdata->irq & mask ? -EPERM : 0); drvdata 607 drivers/crypto/ccree/cc_request_mgr.c drvdata->irq, rc); drvdata 623 drivers/crypto/ccree/cc_request_mgr.c static inline u32 cc_axi_comp_count(struct cc_drvdata *drvdata) drvdata 626 drivers/crypto/ccree/cc_request_mgr.c cc_ioread(drvdata, drvdata->axim_mon_offset)); drvdata 632 drivers/crypto/ccree/cc_request_mgr.c struct cc_drvdata *drvdata = (struct cc_drvdata *)devarg; drvdata 634 drivers/crypto/ccree/cc_request_mgr.c drvdata->request_mgr_handle; drvdata 635 drivers/crypto/ccree/cc_request_mgr.c struct device *dev = drvdata_to_dev(drvdata); drvdata 639 drivers/crypto/ccree/cc_request_mgr.c irq = (drvdata->irq & drvdata->comp_mask); drvdata 644 drivers/crypto/ccree/cc_request_mgr.c cc_iowrite(drvdata, CC_REG(HOST_ICR), irq); drvdata 648 drivers/crypto/ccree/cc_request_mgr.c request_mgr_handle->axi_completed += cc_axi_comp_count(drvdata); drvdata 655 drivers/crypto/ccree/cc_request_mgr.c drvdata->irq |= cc_ioread(drvdata, CC_REG(HOST_IRR)); drvdata 656 drivers/crypto/ccree/cc_request_mgr.c irq = (drvdata->irq & drvdata->comp_mask); drvdata 657 drivers/crypto/ccree/cc_request_mgr.c proc_completions(drvdata); drvdata 663 drivers/crypto/ccree/cc_request_mgr.c cc_axi_comp_count(drvdata); drvdata 666 drivers/crypto/ccree/cc_request_mgr.c cc_iowrite(drvdata, CC_REG(HOST_ICR), irq); drvdata 668 drivers/crypto/ccree/cc_request_mgr.c request_mgr_handle->axi_completed += cc_axi_comp_count(drvdata); drvdata 674 drivers/crypto/ccree/cc_request_mgr.c cc_iowrite(drvdata, CC_REG(HOST_IMR), drvdata 675 drivers/crypto/ccree/cc_request_mgr.c cc_ioread(drvdata, CC_REG(HOST_IMR)) & ~drvdata->comp_mask); drvdata 677 drivers/crypto/ccree/cc_request_mgr.c cc_proc_backlog(drvdata); drvdata 13 drivers/crypto/ccree/cc_request_mgr.h int cc_req_mgr_init(struct cc_drvdata *drvdata); drvdata 28 drivers/crypto/ccree/cc_request_mgr.h int cc_send_request(struct cc_drvdata *drvdata, struct cc_crypto_req *cc_req, drvdata 32 drivers/crypto/ccree/cc_request_mgr.h int cc_send_sync_request(struct cc_drvdata *drvdata, drvdata 36 drivers/crypto/ccree/cc_request_mgr.h int send_request_init(struct cc_drvdata *drvdata, struct cc_hw_desc *desc, drvdata 39 drivers/crypto/ccree/cc_request_mgr.h void complete_request(struct cc_drvdata *drvdata); drvdata 41 drivers/crypto/ccree/cc_request_mgr.h void cc_req_mgr_fini(struct cc_drvdata *drvdata); drvdata 20 drivers/crypto/ccree/cc_sram_mgr.c void cc_sram_mgr_fini(struct cc_drvdata *drvdata) drvdata 32 drivers/crypto/ccree/cc_sram_mgr.c int cc_sram_mgr_init(struct cc_drvdata *drvdata) drvdata 36 drivers/crypto/ccree/cc_sram_mgr.c struct device *dev = drvdata_to_dev(drvdata); drvdata 38 drivers/crypto/ccree/cc_sram_mgr.c if (drvdata->hw_rev < CC_HW_REV_712) { drvdata 40 drivers/crypto/ccree/cc_sram_mgr.c start = (dma_addr_t)cc_ioread(drvdata, drvdata 56 drivers/crypto/ccree/cc_sram_mgr.c drvdata->sram_mgr_handle = ctx; drvdata 70 drivers/crypto/ccree/cc_sram_mgr.c cc_sram_addr_t cc_sram_alloc(struct cc_drvdata *drvdata, u32 size) drvdata 72 drivers/crypto/ccree/cc_sram_mgr.c struct cc_sram_ctx *smgr_ctx = drvdata->sram_mgr_handle; drvdata 73 drivers/crypto/ccree/cc_sram_mgr.c struct device *dev = drvdata_to_dev(drvdata); drvdata 30 drivers/crypto/ccree/cc_sram_mgr.h int cc_sram_mgr_init(struct cc_drvdata *drvdata); drvdata 37 drivers/crypto/ccree/cc_sram_mgr.h void cc_sram_mgr_fini(struct cc_drvdata *drvdata); drvdata 48 drivers/crypto/ccree/cc_sram_mgr.h cc_sram_addr_t cc_sram_alloc(struct cc_drvdata *drvdata, u32 size); drvdata 50 drivers/dma/fsl-edma-common.c if (fsl_chan->edma->drvdata->version == v1) { drvdata 67 drivers/dma/fsl-edma-common.c if (fsl_chan->edma->drvdata->version == v1) { drvdata 112 drivers/dma/fsl-edma-common.c u32 dmamux_nr = fsl_chan->edma->drvdata->dmamuxs; drvdata 119 drivers/dma/fsl-edma-common.c if (fsl_chan->edma->drvdata->version == v3) drvdata 677 drivers/dma/fsl-edma-common.c edma->regs.serq = edma->membase + ((edma->drvdata->version == v2) ? drvdata 679 drivers/dma/fsl-edma-common.c edma->regs.cerq = edma->membase + ((edma->drvdata->version == v2) ? drvdata 681 drivers/dma/fsl-edma-common.c edma->regs.seei = edma->membase + ((edma->drvdata->version == v2) ? drvdata 683 drivers/dma/fsl-edma-common.c edma->regs.ceei = edma->membase + ((edma->drvdata->version == v2) ? drvdata 685 drivers/dma/fsl-edma-common.c edma->regs.cint = edma->membase + ((edma->drvdata->version == v2) ? drvdata 687 drivers/dma/fsl-edma-common.c edma->regs.cerr = edma->membase + ((edma->drvdata->version == v2) ? drvdata 689 drivers/dma/fsl-edma-common.c edma->regs.ssrt = edma->membase + ((edma->drvdata->version == v2) ? drvdata 691 drivers/dma/fsl-edma-common.c edma->regs.cdne = edma->membase + ((edma->drvdata->version == v2) ? drvdata 693 drivers/dma/fsl-edma-common.c edma->regs.intl = edma->membase + ((edma->drvdata->version == v2) ? drvdata 695 drivers/dma/fsl-edma-common.c edma->regs.errl = edma->membase + ((edma->drvdata->version == v2) ? drvdata 698 drivers/dma/fsl-edma-common.c if (edma->drvdata->version == v2) { drvdata 161 drivers/dma/fsl-edma-common.h const struct fsl_edma_drvdata *drvdata; drvdata 102 drivers/dma/fsl-edma.c u32 dmamux_nr = fsl_edma->drvdata->dmamuxs; drvdata 256 drivers/dma/fsl-edma.c const struct fsl_edma_drvdata *drvdata = NULL; drvdata 264 drivers/dma/fsl-edma.c drvdata = of_id->data; drvdata 265 drivers/dma/fsl-edma.c if (!drvdata) { drvdata 281 drivers/dma/fsl-edma.c fsl_edma->drvdata = drvdata; drvdata 293 drivers/dma/fsl-edma.c if (drvdata->has_dmaclk) { drvdata 307 drivers/dma/fsl-edma.c for (i = 0; i < fsl_edma->drvdata->dmamuxs; i++) { drvdata 353 drivers/dma/fsl-edma.c ret = fsl_edma->drvdata->setup_irq(pdev, fsl_edma); drvdata 386 drivers/dma/fsl-edma.c fsl_disable_clocks(fsl_edma, fsl_edma->drvdata->dmamuxs); drvdata 395 drivers/dma/fsl-edma.c fsl_disable_clocks(fsl_edma, fsl_edma->drvdata->dmamuxs); drvdata 414 drivers/dma/fsl-edma.c fsl_disable_clocks(fsl_edma, fsl_edma->drvdata->dmamuxs); drvdata 439 drivers/dma/imx-sdma.c const struct sdma_driver_data *drvdata; drvdata 619 drivers/dma/imx-sdma.c u32 chnenbl0 = sdma->drvdata->chnenbl0; drvdata 1633 drivers/dma/imx-sdma.c if (sdmac->event_id0 >= sdmac->sdma->drvdata->num_events) drvdata 1639 drivers/dma/imx-sdma.c if (sdmac->event_id1 >= sdmac->sdma->drvdata->num_events) drvdata 1876 drivers/dma/imx-sdma.c if (sdma->drvdata->check_ratio && drvdata 1899 drivers/dma/imx-sdma.c for (i = 0; i < sdma->drvdata->num_events; i++) drvdata 1994 drivers/dma/imx-sdma.c const struct sdma_driver_data *drvdata = NULL; drvdata 1997 drivers/dma/imx-sdma.c drvdata = of_id->data; drvdata 1999 drivers/dma/imx-sdma.c drvdata = (void *)pdev->id_entry->driver_data; drvdata 2001 drivers/dma/imx-sdma.c if (!drvdata) { drvdata 2017 drivers/dma/imx-sdma.c sdma->drvdata = drvdata; drvdata 2094 drivers/dma/imx-sdma.c if (sdma->drvdata->script_addrs) drvdata 2095 drivers/dma/imx-sdma.c sdma_add_scripts(sdma, sdma->drvdata->script_addrs); drvdata 196 drivers/dma/mcf-edma.c mcf_edma->drvdata = &mcf_data; drvdata 231 drivers/dma/mcf-edma.c ret = mcf_edma->drvdata->setup_irq(pdev, mcf_edma); drvdata 712 drivers/dma/st_fdma.c const struct st_fdma_driverdata *drvdata, drvdata 716 drivers/dma/st_fdma.c drvdata->name, drvdata->id); drvdata 743 drivers/dma/st_fdma.c const struct st_fdma_driverdata *drvdata; drvdata 752 drivers/dma/st_fdma.c drvdata = match->data; drvdata 758 drivers/dma/st_fdma.c ret = st_fdma_parse_dt(pdev, drvdata, fdev); drvdata 770 drivers/dma/st_fdma.c fdev->drvdata = drvdata; drvdata 132 drivers/dma/st_fdma.h const struct st_fdma_driverdata *drvdata; drvdata 81 drivers/edac/altera_edac.c struct altr_sdram_mc_data *drvdata = mci->pvt_info; drvdata 82 drivers/edac/altera_edac.c const struct altr_sdram_prv_data *priv = drvdata->data; drvdata 85 drivers/edac/altera_edac.c regmap_read(drvdata->mc_vbase, priv->ecc_stat_offset, &status); drvdata 88 drivers/edac/altera_edac.c regmap_read(drvdata->mc_vbase, priv->ecc_daddr_offset, drvdata 91 drivers/edac/altera_edac.c regmap_read(drvdata->mc_vbase, priv->ecc_uecnt_offset, drvdata 97 drivers/edac/altera_edac.c regmap_read(drvdata->mc_vbase, priv->ecc_saddr_offset, drvdata 100 drivers/edac/altera_edac.c regmap_read(drvdata->mc_vbase, priv->ecc_cecnt_offset, drvdata 107 drivers/edac/altera_edac.c regmap_write(drvdata->mc_vbase, priv->ecc_irq_clr_offset, drvdata 120 drivers/edac/altera_edac.c struct altr_sdram_mc_data *drvdata = mci->pvt_info; drvdata 121 drivers/edac/altera_edac.c const struct altr_sdram_prv_data *priv = drvdata->data; drvdata 134 drivers/edac/altera_edac.c regmap_read(drvdata->mc_vbase, priv->ce_ue_trgr_offset, drvdata 146 drivers/edac/altera_edac.c regmap_write(drvdata->mc_vbase, priv->ce_ue_trgr_offset, drvdata 153 drivers/edac/altera_edac.c regmap_write(drvdata->mc_vbase, priv->ce_ue_trgr_offset, drvdata 162 drivers/edac/altera_edac.c regmap_write(drvdata->mc_vbase, priv->ce_ue_trgr_offset, read_reg); drvdata 284 drivers/edac/altera_edac.c struct altr_sdram_mc_data *drvdata; drvdata 370 drivers/edac/altera_edac.c drvdata = mci->pvt_info; drvdata 371 drivers/edac/altera_edac.c drvdata->mc_vbase = mc_vbase; drvdata 372 drivers/edac/altera_edac.c drvdata->data = priv; drvdata 435 drivers/edac/altera_edac.c if (regmap_update_bits(drvdata->mc_vbase, priv->ecc_irq_en_offset, drvdata 613 drivers/edac/altera_edac.c struct altr_edac_device_dev *drvdata = dci->pvt_info; drvdata 614 drivers/edac/altera_edac.c const struct edac_device_prv_data *priv = drvdata->data; drvdata 616 drivers/edac/altera_edac.c if (irq == drvdata->sb_irq) { drvdata 618 drivers/edac/altera_edac.c writel(priv->ce_clear_mask, drvdata->base); drvdata 619 drivers/edac/altera_edac.c edac_device_handle_ce(dci, 0, 0, drvdata->edac_dev_name); drvdata 621 drivers/edac/altera_edac.c } else if (irq == drvdata->db_irq) { drvdata 623 drivers/edac/altera_edac.c writel(priv->ue_clear_mask, drvdata->base); drvdata 624 drivers/edac/altera_edac.c edac_device_handle_ue(dci, 0, 0, drvdata->edac_dev_name); drvdata 644 drivers/edac/altera_edac.c struct altr_edac_device_dev *drvdata = edac_dci->pvt_info; drvdata 645 drivers/edac/altera_edac.c const struct edac_device_prv_data *priv = drvdata->data; drvdata 681 drivers/edac/altera_edac.c writel(error_mask, (drvdata->base + priv->set_err_ofst)); drvdata 682 drivers/edac/altera_edac.c writel(priv->ecc_enable_mask, (drvdata->base + drvdata 734 drivers/edac/altera_edac.c struct altr_edac_device_dev *drvdata = edac_dci->pvt_info; drvdata 739 drivers/edac/altera_edac.c drvdata->debugfs_dir = edac_debugfs_create_dir(drvdata->edac_dev_name); drvdata 740 drivers/edac/altera_edac.c if (!drvdata->debugfs_dir) drvdata 744 drivers/edac/altera_edac.c drvdata->debugfs_dir, edac_dci, drvdata 746 drivers/edac/altera_edac.c debugfs_remove_recursive(drvdata->debugfs_dir); drvdata 771 drivers/edac/altera_edac.c struct altr_edac_device_dev *drvdata; drvdata 800 drivers/edac/altera_edac.c dci = edac_device_alloc_ctl_info(sizeof(*drvdata), ecc_name, drvdata 811 drivers/edac/altera_edac.c drvdata = dci->pvt_info; drvdata 814 drivers/edac/altera_edac.c drvdata->edac_dev_name = ecc_name; drvdata 816 drivers/edac/altera_edac.c drvdata->base = devm_ioremap(&pdev->dev, r->start, resource_size(r)); drvdata 817 drivers/edac/altera_edac.c if (!drvdata->base) { drvdata 823 drivers/edac/altera_edac.c drvdata->data = of_match_node(altr_edac_device_of_match, np)->data; drvdata 826 drivers/edac/altera_edac.c if (drvdata->data->setup) { drvdata 827 drivers/edac/altera_edac.c res = drvdata->data->setup(drvdata); drvdata 832 drivers/edac/altera_edac.c drvdata->sb_irq = platform_get_irq(pdev, 0); drvdata 833 drivers/edac/altera_edac.c res = devm_request_irq(&pdev->dev, drvdata->sb_irq, drvdata 839 drivers/edac/altera_edac.c drvdata->db_irq = platform_get_irq(pdev, 1); drvdata 840 drivers/edac/altera_edac.c res = devm_request_irq(&pdev->dev, drvdata->db_irq, drvdata 847 drivers/edac/altera_edac.c dci->dev_name = drvdata->edac_dev_name; drvdata 853 drivers/edac/altera_edac.c altr_create_edacdev_dbgfs(dci, drvdata->data); drvdata 872 drivers/edac/altera_edac.c struct altr_edac_device_dev *drvdata = dci->pvt_info; drvdata 874 drivers/edac/altera_edac.c debugfs_remove_recursive(drvdata->debugfs_dir); drvdata 1799 drivers/edac/altera_edac.c struct altr_edac_device_dev *drvdata = edac_dci->pvt_info; drvdata 1800 drivers/edac/altera_edac.c const struct edac_device_prv_data *priv = drvdata->data; drvdata 1801 drivers/edac/altera_edac.c void __iomem *set_addr = (drvdata->base + priv->set_err_ofst); drvdata 1831 drivers/edac/altera_edac.c struct altr_edac_device_dev *drvdata = edac_dci->pvt_info; drvdata 1832 drivers/edac/altera_edac.c const struct edac_device_prv_data *priv = drvdata->data; drvdata 1833 drivers/edac/altera_edac.c void __iomem *set_addr = (drvdata->base + priv->set_err_ofst); drvdata 1845 drivers/edac/altera_edac.c writel(ECC_WORD_WRITE, drvdata->base + ECC_BLK_DBYTECTRL_OFST); drvdata 1847 drivers/edac/altera_edac.c writel(0, drvdata->base + ECC_BLK_ADDRESS_OFST); drvdata 1849 drivers/edac/altera_edac.c writel(ECC_READ_EDOVR, drvdata->base + ECC_BLK_ACCCTRL_OFST); drvdata 1851 drivers/edac/altera_edac.c writel(ECC_XACT_KICK, drvdata->base + ECC_BLK_STARTACC_OFST); drvdata 1853 drivers/edac/altera_edac.c writel(readl(drvdata->base + ECC_BLK_RDATA0_OFST) ^ 0x1, drvdata 1854 drivers/edac/altera_edac.c drvdata->base + ECC_BLK_WDATA0_OFST); drvdata 1855 drivers/edac/altera_edac.c writel(readl(drvdata->base + ECC_BLK_RDATA1_OFST), drvdata 1856 drivers/edac/altera_edac.c drvdata->base + ECC_BLK_WDATA1_OFST); drvdata 1857 drivers/edac/altera_edac.c writel(readl(drvdata->base + ECC_BLK_RDATA2_OFST), drvdata 1858 drivers/edac/altera_edac.c drvdata->base + ECC_BLK_WDATA2_OFST); drvdata 1859 drivers/edac/altera_edac.c writel(readl(drvdata->base + ECC_BLK_RDATA3_OFST), drvdata 1860 drivers/edac/altera_edac.c drvdata->base + ECC_BLK_WDATA3_OFST); drvdata 1863 drivers/edac/altera_edac.c writel(readl(drvdata->base + ECC_BLK_RECC0_OFST), drvdata 1864 drivers/edac/altera_edac.c drvdata->base + ECC_BLK_WECC0_OFST); drvdata 1865 drivers/edac/altera_edac.c writel(readl(drvdata->base + ECC_BLK_RECC1_OFST), drvdata 1866 drivers/edac/altera_edac.c drvdata->base + ECC_BLK_WECC1_OFST); drvdata 1868 drivers/edac/altera_edac.c writel(ECC_WRITE_EDOVR, drvdata->base + ECC_BLK_ACCCTRL_OFST); drvdata 1870 drivers/edac/altera_edac.c writel(ECC_XACT_KICK, drvdata->base + ECC_BLK_STARTACC_OFST); drvdata 1872 drivers/edac/altera_edac.c writel(ECC_READ_EDOVR, drvdata->base + ECC_BLK_ACCCTRL_OFST); drvdata 1874 drivers/edac/altera_edac.c writel(ECC_XACT_KICK, drvdata->base + ECC_BLK_STARTACC_OFST); drvdata 82 drivers/edac/armada_xp_edac.c static uint32_t axp_mc_calc_address(struct axp_mc_drvdata *drvdata, drvdata 86 drivers/edac/armada_xp_edac.c if (drvdata->width == 8) { drvdata 88 drivers/edac/armada_xp_edac.c if (drvdata->cs_addr_sel[cs]) drvdata 98 drivers/edac/armada_xp_edac.c } else if (drvdata->width == 4) { drvdata 100 drivers/edac/armada_xp_edac.c if (drvdata->cs_addr_sel[cs]) drvdata 112 drivers/edac/armada_xp_edac.c if (drvdata->cs_addr_sel[cs]) drvdata 127 drivers/edac/armada_xp_edac.c struct axp_mc_drvdata *drvdata = mci->pvt_info; drvdata 132 drivers/edac/armada_xp_edac.c char *msg = drvdata->msg; drvdata 134 drivers/edac/armada_xp_edac.c data_h = readl(drvdata->base + SDRAM_ERR_DATA_H_REG); drvdata 135 drivers/edac/armada_xp_edac.c data_l = readl(drvdata->base + SDRAM_ERR_DATA_L_REG); drvdata 136 drivers/edac/armada_xp_edac.c recv_ecc = readl(drvdata->base + SDRAM_ERR_RECV_ECC_REG); drvdata 137 drivers/edac/armada_xp_edac.c calc_ecc = readl(drvdata->base + SDRAM_ERR_CALC_ECC_REG); drvdata 138 drivers/edac/armada_xp_edac.c addr = readl(drvdata->base + SDRAM_ERR_ADDR_REG); drvdata 139 drivers/edac/armada_xp_edac.c cnt_sbe = readl(drvdata->base + SDRAM_ERR_SBE_COUNT_REG); drvdata 140 drivers/edac/armada_xp_edac.c cnt_dbe = readl(drvdata->base + SDRAM_ERR_DBE_COUNT_REG); drvdata 141 drivers/edac/armada_xp_edac.c cause_err = readl(drvdata->base + SDRAM_ERR_CAUSE_ERR_REG); drvdata 142 drivers/edac/armada_xp_edac.c cause_msg = readl(drvdata->base + SDRAM_ERR_CAUSE_MSG_REG); drvdata 146 drivers/edac/armada_xp_edac.c drvdata->base + SDRAM_ERR_CAUSE_ERR_REG); drvdata 148 drivers/edac/armada_xp_edac.c drvdata->base + SDRAM_ERR_CAUSE_MSG_REG); drvdata 152 drivers/edac/armada_xp_edac.c writel(0, drvdata->base + SDRAM_ERR_SBE_COUNT_REG); drvdata 154 drivers/edac/armada_xp_edac.c writel(0, drvdata->base + SDRAM_ERR_DBE_COUNT_REG); drvdata 193 drivers/edac/armada_xp_edac.c addr_val = axp_mc_calc_address(drvdata, cs_val, bank_val, row_val, drvdata 207 drivers/edac/armada_xp_edac.c mci->ctl_name, drvdata->msg); drvdata 215 drivers/edac/armada_xp_edac.c mci->ctl_name, drvdata->msg); drvdata 221 drivers/edac/armada_xp_edac.c struct axp_mc_drvdata *drvdata = mci->pvt_info; drvdata 226 drivers/edac/armada_xp_edac.c config = readl(drvdata->base + SDRAM_CONFIG_REG); drvdata 229 drivers/edac/armada_xp_edac.c drvdata->width = 8; drvdata 232 drivers/edac/armada_xp_edac.c drvdata->width = 4; drvdata 234 drivers/edac/armada_xp_edac.c addr_ctrl = readl(drvdata->base + SDRAM_ADDR_CTRL_REG); drvdata 235 drivers/edac/armada_xp_edac.c rank_ctrl = readl(drvdata->base + SDRAM_RANK_CTRL_REG); drvdata 242 drivers/edac/armada_xp_edac.c drvdata->cs_addr_sel[i] = drvdata 285 drivers/edac/armada_xp_edac.c struct axp_mc_drvdata *drvdata; drvdata 315 drivers/edac/armada_xp_edac.c mci = edac_mc_alloc(0, ARRAY_SIZE(layers), layers, sizeof(*drvdata)); drvdata 319 drivers/edac/armada_xp_edac.c drvdata = mci->pvt_info; drvdata 320 drivers/edac/armada_xp_edac.c drvdata->base = base; drvdata 338 drivers/edac/armada_xp_edac.c drvdata->width /= 2; drvdata 342 drivers/edac/armada_xp_edac.c writel(1 << SDRAM_ERR_CTRL_THR_OFFSET, drvdata->base + SDRAM_ERR_CTRL_REG); drvdata 345 drivers/edac/armada_xp_edac.c writel(~(SDRAM_ERR_CAUSE_DBE_MASK | SDRAM_ERR_CAUSE_SBE_MASK), drvdata->base + SDRAM_ERR_CAUSE_ERR_REG); drvdata 346 drivers/edac/armada_xp_edac.c writel(~(SDRAM_ERR_CAUSE_DBE_MASK | SDRAM_ERR_CAUSE_SBE_MASK), drvdata->base + SDRAM_ERR_CAUSE_MSG_REG); drvdata 349 drivers/edac/armada_xp_edac.c writel(0, drvdata->base + SDRAM_ERR_SBE_COUNT_REG); drvdata 350 drivers/edac/armada_xp_edac.c writel(0, drvdata->base + SDRAM_ERR_DBE_COUNT_REG); drvdata 397 drivers/edac/armada_xp_edac.c static void aurora_l2_inject(struct aurora_l2_drvdata *drvdata) drvdata 399 drivers/edac/armada_xp_edac.c drvdata->inject_addr &= AURORA_ERR_INJECT_CTL_ADDR_MASK; drvdata 400 drivers/edac/armada_xp_edac.c drvdata->inject_ctl &= AURORA_ERR_INJECT_CTL_EN_MASK; drvdata 401 drivers/edac/armada_xp_edac.c writel(0, drvdata->base + AURORA_ERR_INJECT_CTL_REG); drvdata 402 drivers/edac/armada_xp_edac.c writel(drvdata->inject_mask, drvdata->base + AURORA_ERR_INJECT_MASK_REG); drvdata 403 drivers/edac/armada_xp_edac.c writel(drvdata->inject_addr | drvdata->inject_ctl, drvdata->base + AURORA_ERR_INJECT_CTL_REG); drvdata 409 drivers/edac/armada_xp_edac.c struct aurora_l2_drvdata *drvdata = dci->pvt_info; drvdata 412 drivers/edac/armada_xp_edac.c char *msg = drvdata->msg; drvdata 413 drivers/edac/armada_xp_edac.c size_t size = sizeof(drvdata->msg); drvdata 416 drivers/edac/armada_xp_edac.c cnt = readl(drvdata->base + AURORA_ERR_CNT_REG); drvdata 417 drivers/edac/armada_xp_edac.c attr_cap = readl(drvdata->base + AURORA_ERR_ATTR_CAP_REG); drvdata 418 drivers/edac/armada_xp_edac.c addr_cap = readl(drvdata->base + AURORA_ERR_ADDR_CAP_REG); drvdata 419 drivers/edac/armada_xp_edac.c way_cap = readl(drvdata->base + AURORA_ERR_WAY_CAP_REG); drvdata 425 drivers/edac/armada_xp_edac.c writel(AURORA_ERR_CNT_CLR, drvdata->base + AURORA_ERR_CNT_REG); drvdata 474 drivers/edac/armada_xp_edac.c writel(AURORA_ERR_ATTR_CAP_VALID, drvdata->base + AURORA_ERR_ATTR_CAP_REG); drvdata 479 drivers/edac/armada_xp_edac.c edac_device_handle_ue(dci, 0, 0, drvdata->msg); drvdata 483 drivers/edac/armada_xp_edac.c edac_device_handle_ce(dci, 0, 0, drvdata->msg); drvdata 497 drivers/edac/armada_xp_edac.c struct aurora_l2_drvdata *drvdata = dci->pvt_info; drvdata 502 drivers/edac/armada_xp_edac.c aurora_l2_inject(drvdata); drvdata 514 drivers/edac/armada_xp_edac.c struct aurora_l2_drvdata *drvdata; drvdata 539 drivers/edac/armada_xp_edac.c dci = edac_device_alloc_ctl_info(sizeof(*drvdata), drvdata 544 drivers/edac/armada_xp_edac.c drvdata = dci->pvt_info; drvdata 545 drivers/edac/armada_xp_edac.c drvdata->base = base; drvdata 556 drivers/edac/armada_xp_edac.c writel(AURORA_ERR_CNT_CLR, drvdata->base + AURORA_ERR_CNT_REG); drvdata 557 drivers/edac/armada_xp_edac.c writel(AURORA_ERR_ATTR_CAP_VALID, drvdata->base + AURORA_ERR_ATTR_CAP_REG); drvdata 565 drivers/edac/armada_xp_edac.c drvdata->debugfs = edac_debugfs_create_dir(dev_name(&pdev->dev)); drvdata 566 drivers/edac/armada_xp_edac.c if (drvdata->debugfs) { drvdata 568 drivers/edac/armada_xp_edac.c drvdata->debugfs, drvdata 569 drivers/edac/armada_xp_edac.c &drvdata->inject_addr); drvdata 571 drivers/edac/armada_xp_edac.c drvdata->debugfs, drvdata 572 drivers/edac/armada_xp_edac.c &drvdata->inject_mask); drvdata 574 drivers/edac/armada_xp_edac.c drvdata->debugfs, &drvdata->inject_ctl); drvdata 585 drivers/edac/armada_xp_edac.c struct aurora_l2_drvdata *drvdata = dci->pvt_info; drvdata 587 drivers/edac/armada_xp_edac.c edac_debugfs_remove_recursive(drvdata->debugfs); drvdata 27 drivers/edac/highbank_l2_edac.c struct hb_l2_drvdata *drvdata = dci->pvt_info; drvdata 29 drivers/edac/highbank_l2_edac.c if (irq == drvdata->sb_irq) { drvdata 30 drivers/edac/highbank_l2_edac.c writel(1, drvdata->base + SR_CLR_SB_ECC_INTR); drvdata 33 drivers/edac/highbank_l2_edac.c if (irq == drvdata->db_irq) { drvdata 34 drivers/edac/highbank_l2_edac.c writel(1, drvdata->base + SR_CLR_DB_ECC_INTR); drvdata 51 drivers/edac/highbank_l2_edac.c struct hb_l2_drvdata *drvdata; drvdata 55 drivers/edac/highbank_l2_edac.c dci = edac_device_alloc_ctl_info(sizeof(*drvdata), "cpu", drvdata 60 drivers/edac/highbank_l2_edac.c drvdata = dci->pvt_info; drvdata 81 drivers/edac/highbank_l2_edac.c drvdata->base = devm_ioremap(&pdev->dev, r->start, resource_size(r)); drvdata 82 drivers/edac/highbank_l2_edac.c if (!drvdata->base) { drvdata 96 drivers/edac/highbank_l2_edac.c drvdata->db_irq = platform_get_irq(pdev, 0); drvdata 97 drivers/edac/highbank_l2_edac.c res = devm_request_irq(&pdev->dev, drvdata->db_irq, drvdata 103 drivers/edac/highbank_l2_edac.c drvdata->sb_irq = platform_get_irq(pdev, 1); drvdata 104 drivers/edac/highbank_l2_edac.c res = devm_request_irq(&pdev->dev, drvdata->sb_irq, drvdata 56 drivers/edac/highbank_mc_edac.c struct hb_mc_drvdata *drvdata = mci->pvt_info; drvdata 60 drivers/edac/highbank_mc_edac.c status = readl(drvdata->mc_int_base + HB_DDR_ECC_INT_STATUS); drvdata 63 drivers/edac/highbank_mc_edac.c err_addr = readl(drvdata->mc_err_base + HB_DDR_ECC_U_ERR_ADDR); drvdata 71 drivers/edac/highbank_mc_edac.c u32 syndrome = readl(drvdata->mc_err_base + HB_DDR_ECC_C_ERR_STAT); drvdata 73 drivers/edac/highbank_mc_edac.c err_addr = readl(drvdata->mc_err_base + HB_DDR_ECC_C_ERR_ADDR); drvdata 82 drivers/edac/highbank_mc_edac.c writel(status, drvdata->mc_int_base + HB_DDR_ECC_INT_ACK); drvdata 150 drivers/edac/highbank_mc_edac.c struct hb_mc_drvdata *drvdata; drvdata 174 drivers/edac/highbank_mc_edac.c drvdata = mci->pvt_info; drvdata 202 drivers/edac/highbank_mc_edac.c drvdata->mc_err_base = base + settings->err_offset; drvdata 203 drivers/edac/highbank_mc_edac.c drvdata->mc_int_base = base + settings->int_offset; drvdata 205 drivers/edac/highbank_mc_edac.c control = readl(drvdata->mc_err_base + HB_DDR_ECC_OPT) & 0x3; drvdata 64 drivers/fpga/dfl-pci.c struct cci_drvdata *drvdata; drvdata 66 drivers/fpga/dfl-pci.c drvdata = devm_kzalloc(&pcidev->dev, sizeof(*drvdata), GFP_KERNEL); drvdata 67 drivers/fpga/dfl-pci.c if (!drvdata) drvdata 70 drivers/fpga/dfl-pci.c pci_set_drvdata(pcidev, drvdata); drvdata 77 drivers/fpga/dfl-pci.c struct cci_drvdata *drvdata = pci_get_drvdata(pcidev); drvdata 80 drivers/fpga/dfl-pci.c dfl_fpga_feature_devs_remove(drvdata->cdev); drvdata 86 drivers/fpga/dfl-pci.c struct cci_drvdata *drvdata = pci_get_drvdata(pcidev); drvdata 168 drivers/fpga/dfl-pci.c drvdata->cdev = cdev; drvdata 228 drivers/fpga/dfl-pci.c struct cci_drvdata *drvdata = pci_get_drvdata(pcidev); drvdata 229 drivers/fpga/dfl-pci.c struct dfl_fpga_cdev *cdev = drvdata->cdev; drvdata 19 drivers/gnss/serial.h unsigned long drvdata[0]; drvdata 44 drivers/gnss/serial.h return gserial->drvdata; drvdata 276 drivers/hid/hid-asus.c struct asus_drvdata *drvdata = hid_get_drvdata(hdev); drvdata 278 drivers/hid/hid-asus.c if (drvdata->battery && data[0] == BATTERY_REPORT_ID) drvdata 279 drivers/hid/hid-asus.c return asus_report_battery(drvdata, data, size); drvdata 281 drivers/hid/hid-asus.c if (drvdata->tp && data[0] == INPUT_REPORT_ID) drvdata 282 drivers/hid/hid-asus.c return asus_report_input(drvdata, data, size); drvdata 408 drivers/hid/hid-asus.c struct asus_drvdata *drvdata = hid_get_drvdata(hdev); drvdata 426 drivers/hid/hid-asus.c drvdata->kbd_backlight = devm_kzalloc(&hdev->dev, drvdata 429 drivers/hid/hid-asus.c if (!drvdata->kbd_backlight) drvdata 432 drivers/hid/hid-asus.c drvdata->kbd_backlight->removed = false; drvdata 433 drivers/hid/hid-asus.c drvdata->kbd_backlight->brightness = 0; drvdata 434 drivers/hid/hid-asus.c drvdata->kbd_backlight->hdev = hdev; drvdata 435 drivers/hid/hid-asus.c drvdata->kbd_backlight->cdev.name = "asus::kbd_backlight"; drvdata 436 drivers/hid/hid-asus.c drvdata->kbd_backlight->cdev.max_brightness = 3; drvdata 437 drivers/hid/hid-asus.c drvdata->kbd_backlight->cdev.brightness_set = asus_kbd_backlight_set; drvdata 438 drivers/hid/hid-asus.c drvdata->kbd_backlight->cdev.brightness_get = asus_kbd_backlight_get; drvdata 439 drivers/hid/hid-asus.c INIT_WORK(&drvdata->kbd_backlight->work, asus_kbd_backlight_work); drvdata 441 drivers/hid/hid-asus.c ret = devm_led_classdev_register(&hdev->dev, &drvdata->kbd_backlight->cdev); drvdata 444 drivers/hid/hid-asus.c devm_kfree(&hdev->dev, drvdata->kbd_backlight); drvdata 459 drivers/hid/hid-asus.c static int asus_parse_battery(struct asus_drvdata *drvdata, u8 *data, int size) drvdata 468 drivers/hid/hid-asus.c drvdata->battery_capacity = ((int)lvl * 100) / (int)BATTERY_LEVEL_MAX; drvdata 482 drivers/hid/hid-asus.c drvdata->battery_stat = val; drvdata 487 drivers/hid/hid-asus.c static int asus_report_battery(struct asus_drvdata *drvdata, u8 *data, int size) drvdata 490 drivers/hid/hid-asus.c if ((drvdata->battery_in_query == false) && drvdata 492 drivers/hid/hid-asus.c power_supply_changed(drvdata->battery); drvdata 497 drivers/hid/hid-asus.c static int asus_battery_query(struct asus_drvdata *drvdata) drvdata 506 drivers/hid/hid-asus.c drvdata->battery_in_query = true; drvdata 507 drivers/hid/hid-asus.c ret = hid_hw_raw_request(drvdata->hdev, BATTERY_REPORT_ID, drvdata 510 drivers/hid/hid-asus.c drvdata->battery_in_query = false; drvdata 512 drivers/hid/hid-asus.c ret = asus_parse_battery(drvdata, buf, BATTERY_REPORT_SIZE); drvdata 535 drivers/hid/hid-asus.c struct asus_drvdata *drvdata = power_supply_get_drvdata(psy); drvdata 541 drivers/hid/hid-asus.c if (time_before(drvdata->battery_next_query, jiffies)) { drvdata 542 drivers/hid/hid-asus.c drvdata->battery_next_query = drvdata 544 drivers/hid/hid-asus.c ret = asus_battery_query(drvdata); drvdata 549 drivers/hid/hid-asus.c val->intval = drvdata->battery_stat; drvdata 551 drivers/hid/hid-asus.c val->intval = drvdata->battery_capacity; drvdata 560 drivers/hid/hid-asus.c val->strval = drvdata->hdev->name; drvdata 572 drivers/hid/hid-asus.c struct asus_drvdata *drvdata = hid_get_drvdata(hdev); drvdata 573 drivers/hid/hid-asus.c struct power_supply_config pscfg = { .drv_data = drvdata }; drvdata 576 drivers/hid/hid-asus.c drvdata->battery_capacity = 0; drvdata 577 drivers/hid/hid-asus.c drvdata->battery_stat = POWER_SUPPLY_STATUS_UNKNOWN; drvdata 578 drivers/hid/hid-asus.c drvdata->battery_in_query = false; drvdata 580 drivers/hid/hid-asus.c drvdata->battery_desc.properties = asus_battery_props; drvdata 581 drivers/hid/hid-asus.c drvdata->battery_desc.num_properties = ARRAY_SIZE(asus_battery_props); drvdata 582 drivers/hid/hid-asus.c drvdata->battery_desc.get_property = asus_battery_get_property; drvdata 583 drivers/hid/hid-asus.c drvdata->battery_desc.type = POWER_SUPPLY_TYPE_BATTERY; drvdata 584 drivers/hid/hid-asus.c drvdata->battery_desc.use_for_apm = 0; drvdata 585 drivers/hid/hid-asus.c drvdata->battery_desc.name = devm_kasprintf(&hdev->dev, GFP_KERNEL, drvdata 589 drivers/hid/hid-asus.c if (!drvdata->battery_desc.name) drvdata 592 drivers/hid/hid-asus.c drvdata->battery_next_query = jiffies; drvdata 594 drivers/hid/hid-asus.c drvdata->battery = devm_power_supply_register(&hdev->dev, drvdata 595 drivers/hid/hid-asus.c &(drvdata->battery_desc), &pscfg); drvdata 596 drivers/hid/hid-asus.c if (IS_ERR(drvdata->battery)) { drvdata 597 drivers/hid/hid-asus.c ret = PTR_ERR(drvdata->battery); drvdata 598 drivers/hid/hid-asus.c drvdata->battery = NULL; drvdata 603 drivers/hid/hid-asus.c power_supply_powers(drvdata->battery, &hdev->dev); drvdata 611 drivers/hid/hid-asus.c struct asus_drvdata *drvdata = hid_get_drvdata(hdev); drvdata 614 drivers/hid/hid-asus.c if (drvdata->quirks & QUIRK_T100CHI && drvdata 618 drivers/hid/hid-asus.c if (drvdata->tp) { drvdata 622 drivers/hid/hid-asus.c drvdata->tp->max_x, 0, 0); drvdata 624 drivers/hid/hid-asus.c drvdata->tp->max_y, 0, 0); drvdata 625 drivers/hid/hid-asus.c input_abs_set_res(input, ABS_MT_POSITION_X, drvdata->tp->res_x); drvdata 626 drivers/hid/hid-asus.c input_abs_set_res(input, ABS_MT_POSITION_Y, drvdata->tp->res_y); drvdata 628 drivers/hid/hid-asus.c if (drvdata->tp->contact_size >= 5) { drvdata 640 drivers/hid/hid-asus.c ret = input_mt_init_slots(input, drvdata->tp->max_contacts, drvdata 649 drivers/hid/hid-asus.c drvdata->input = input; drvdata 651 drivers/hid/hid-asus.c if (drvdata->enable_backlight && drvdata 666 drivers/hid/hid-asus.c struct asus_drvdata *drvdata = hid_get_drvdata(hdev); drvdata 668 drivers/hid/hid-asus.c if (drvdata->quirks & QUIRK_SKIP_INPUT_MAPPING) { drvdata 680 drivers/hid/hid-asus.c if (drvdata->quirks & (QUIRK_T100CHI | QUIRK_T90CHI)) { drvdata 737 drivers/hid/hid-asus.c if (drvdata->quirks & QUIRK_USE_KBD_BACKLIGHT) drvdata 738 drivers/hid/hid-asus.c drvdata->enable_backlight = true; drvdata 770 drivers/hid/hid-asus.c if (drvdata->quirks & QUIRK_NO_CONSUMER_USAGES && drvdata 817 drivers/hid/hid-asus.c struct asus_drvdata *drvdata = hid_get_drvdata(hdev); drvdata 819 drivers/hid/hid-asus.c if (drvdata->tp) drvdata 828 drivers/hid/hid-asus.c struct asus_drvdata *drvdata; drvdata 830 drivers/hid/hid-asus.c drvdata = devm_kzalloc(&hdev->dev, sizeof(*drvdata), GFP_KERNEL); drvdata 831 drivers/hid/hid-asus.c if (drvdata == NULL) { drvdata 836 drivers/hid/hid-asus.c hid_set_drvdata(hdev, drvdata); drvdata 838 drivers/hid/hid-asus.c drvdata->quirks = id->driver_data; drvdata 845 drivers/hid/hid-asus.c drvdata->quirks &= ~QUIRK_T100CHI; drvdata 846 drivers/hid/hid-asus.c drvdata->quirks |= QUIRK_T90CHI; drvdata 849 drivers/hid/hid-asus.c if (drvdata->quirks & QUIRK_IS_MULTITOUCH) drvdata 850 drivers/hid/hid-asus.c drvdata->tp = &asus_i2c_tp; drvdata 852 drivers/hid/hid-asus.c if (drvdata->quirks & QUIRK_T100_KEYBOARD) { drvdata 856 drivers/hid/hid-asus.c drvdata->quirks = QUIRK_SKIP_INPUT_MAPPING; drvdata 863 drivers/hid/hid-asus.c drvdata->tp = &asus_t100ha_tp; drvdata 865 drivers/hid/hid-asus.c drvdata->tp = &asus_t200ta_tp; drvdata 867 drivers/hid/hid-asus.c drvdata->tp = &asus_t100ta_tp; drvdata 871 drivers/hid/hid-asus.c if (drvdata->quirks & QUIRK_T100CHI) { drvdata 877 drivers/hid/hid-asus.c drvdata->tp = &asus_t100chi_tp; drvdata 880 drivers/hid/hid-asus.c if (drvdata->quirks & QUIRK_NO_INIT_REPORTS) drvdata 883 drivers/hid/hid-asus.c drvdata->hdev = hdev; drvdata 885 drivers/hid/hid-asus.c if (drvdata->quirks & (QUIRK_T100CHI | QUIRK_T90CHI)) { drvdata 911 drivers/hid/hid-asus.c if (!drvdata->input) { drvdata 917 drivers/hid/hid-asus.c if (drvdata->tp) { drvdata 918 drivers/hid/hid-asus.c drvdata->input->name = "Asus TouchPad"; drvdata 920 drivers/hid/hid-asus.c drvdata->input->name = "Asus Keyboard"; drvdata 923 drivers/hid/hid-asus.c if (drvdata->tp) { drvdata 937 drivers/hid/hid-asus.c struct asus_drvdata *drvdata = hid_get_drvdata(hdev); drvdata 939 drivers/hid/hid-asus.c if (drvdata->kbd_backlight) { drvdata 940 drivers/hid/hid-asus.c drvdata->kbd_backlight->removed = true; drvdata 941 drivers/hid/hid-asus.c cancel_work_sync(&drvdata->kbd_backlight->work); drvdata 955 drivers/hid/hid-asus.c struct asus_drvdata *drvdata = hid_get_drvdata(hdev); drvdata 957 drivers/hid/hid-asus.c if (drvdata->quirks & QUIRK_FIX_NOTEBOOK_REPORT && drvdata 963 drivers/hid/hid-asus.c if (drvdata->quirks & QUIRK_T100_KEYBOARD && drvdata 970 drivers/hid/hid-asus.c if (drvdata->quirks & (QUIRK_T100CHI | QUIRK_T90CHI)) { drvdata 974 drivers/hid/hid-asus.c if (drvdata->quirks & QUIRK_T100CHI) { drvdata 996 drivers/hid/hid-asus.c drvdata->quirks & QUIRK_T100CHI ? drvdata 1007 drivers/hid/hid-asus.c if (drvdata->quirks & QUIRK_G752_KEYBOARD && drvdata 426 drivers/hid/hid-corsair.c struct corsair_drvdata *drvdata = hid_get_drvdata(dev); drvdata 430 drivers/hid/hid-corsair.c drvdata->backlight = kzalloc(sizeof(struct k90_led), GFP_KERNEL); drvdata 431 drivers/hid/hid-corsair.c if (!drvdata->backlight) { drvdata 445 drivers/hid/hid-corsair.c drvdata->backlight->removed = false; drvdata 446 drivers/hid/hid-corsair.c drvdata->backlight->cdev.name = name; drvdata 447 drivers/hid/hid-corsair.c drvdata->backlight->cdev.max_brightness = 3; drvdata 448 drivers/hid/hid-corsair.c drvdata->backlight->cdev.brightness_set = k90_brightness_set; drvdata 449 drivers/hid/hid-corsair.c drvdata->backlight->cdev.brightness_get = k90_backlight_get; drvdata 450 drivers/hid/hid-corsair.c INIT_WORK(&drvdata->backlight->work, k90_backlight_work); drvdata 451 drivers/hid/hid-corsair.c ret = led_classdev_register(&dev->dev, &drvdata->backlight->cdev); drvdata 458 drivers/hid/hid-corsair.c kfree(drvdata->backlight->cdev.name); drvdata 460 drivers/hid/hid-corsair.c kfree(drvdata->backlight); drvdata 461 drivers/hid/hid-corsair.c drvdata->backlight = NULL; drvdata 469 drivers/hid/hid-corsair.c struct corsair_drvdata *drvdata = hid_get_drvdata(dev); drvdata 479 drivers/hid/hid-corsair.c drvdata->k90 = k90; drvdata 517 drivers/hid/hid-corsair.c drvdata->k90 = NULL; drvdata 523 drivers/hid/hid-corsair.c struct corsair_drvdata *drvdata = hid_get_drvdata(dev); drvdata 525 drivers/hid/hid-corsair.c if (drvdata->backlight) { drvdata 526 drivers/hid/hid-corsair.c drvdata->backlight->removed = true; drvdata 527 drivers/hid/hid-corsair.c led_classdev_unregister(&drvdata->backlight->cdev); drvdata 528 drivers/hid/hid-corsair.c cancel_work_sync(&drvdata->backlight->work); drvdata 529 drivers/hid/hid-corsair.c kfree(drvdata->backlight->cdev.name); drvdata 530 drivers/hid/hid-corsair.c kfree(drvdata->backlight); drvdata 536 drivers/hid/hid-corsair.c struct corsair_drvdata *drvdata = hid_get_drvdata(dev); drvdata 537 drivers/hid/hid-corsair.c struct k90_drvdata *k90 = drvdata->k90; drvdata 555 drivers/hid/hid-corsair.c struct corsair_drvdata *drvdata; drvdata 558 drivers/hid/hid-corsair.c drvdata = devm_kzalloc(&dev->dev, sizeof(struct corsair_drvdata), drvdata 560 drivers/hid/hid-corsair.c if (drvdata == NULL) drvdata 562 drivers/hid/hid-corsair.c drvdata->quirks = quirks; drvdata 563 drivers/hid/hid-corsair.c hid_set_drvdata(dev, drvdata); drvdata 603 drivers/hid/hid-corsair.c struct corsair_drvdata *drvdata = hid_get_drvdata(dev); drvdata 605 drivers/hid/hid-corsair.c if (!drvdata->k90) drvdata 610 drivers/hid/hid-corsair.c drvdata->k90->record_led.brightness = 1; drvdata 613 drivers/hid/hid-corsair.c drvdata->k90->record_led.brightness = 0; drvdata 120 drivers/hid/hid-elan.c struct elan_drvdata *drvdata = hid_get_drvdata(hdev); drvdata 132 drivers/hid/hid-elan.c drvdata->max_x = (dmabuf[4] << 8) | dmabuf[3]; drvdata 138 drivers/hid/hid-elan.c drvdata->max_y = (dmabuf[4] << 8) | dmabuf[3]; drvdata 144 drivers/hid/hid-elan.c drvdata->res_x = elan_convert_res(dmabuf[3]); drvdata 145 drivers/hid/hid-elan.c drvdata->res_y = elan_convert_res(dmabuf[4]); drvdata 156 drivers/hid/hid-elan.c struct elan_drvdata *drvdata = hid_get_drvdata(hdev); drvdata 178 drivers/hid/hid-elan.c input_set_abs_params(input, ABS_MT_POSITION_X, 0, drvdata->max_x, drvdata 180 drivers/hid/hid-elan.c input_set_abs_params(input, ABS_MT_POSITION_Y, 0, drvdata->max_y, drvdata 194 drivers/hid/hid-elan.c input_abs_set_res(input, ABS_X, drvdata->res_x); drvdata 195 drivers/hid/hid-elan.c input_abs_set_res(input, ABS_Y, drvdata->res_y); drvdata 205 drivers/hid/hid-elan.c drvdata->input = input; drvdata 210 drivers/hid/hid-elan.c static void elan_report_mt_slot(struct elan_drvdata *drvdata, u8 *data, drvdata 213 drivers/hid/hid-elan.c struct input_dev *input = drvdata->input; drvdata 222 drivers/hid/hid-elan.c y = drvdata->max_y - drvdata 232 drivers/hid/hid-elan.c static void elan_usb_report_input(struct elan_drvdata *drvdata, u8 *data) drvdata 235 drivers/hid/hid-elan.c struct input_dev *input = drvdata->input; drvdata 275 drivers/hid/hid-elan.c elan_report_mt_slot(drvdata, data + 3, i); drvdata 277 drivers/hid/hid-elan.c elan_report_mt_slot(drvdata, NULL, i); drvdata 288 drivers/hid/hid-elan.c memcpy(drvdata->prev_report, data, drvdata 289 drivers/hid/hid-elan.c sizeof(drvdata->prev_report)); drvdata 295 drivers/hid/hid-elan.c u8 *prev_report = drvdata->prev_report; drvdata 304 drivers/hid/hid-elan.c elan_report_mt_slot(drvdata, prev_report + 3, i); drvdata 306 drivers/hid/hid-elan.c elan_report_mt_slot(drvdata, data + 1, i); drvdata 309 drivers/hid/hid-elan.c elan_report_mt_slot(drvdata, NULL, i); drvdata 319 drivers/hid/hid-elan.c static void elan_i2c_report_input(struct elan_drvdata *drvdata, u8 *data) drvdata 321 drivers/hid/hid-elan.c struct input_dev *input = drvdata->input; drvdata 347 drivers/hid/hid-elan.c elan_report_mt_slot(drvdata, finger_data, i); drvdata 350 drivers/hid/hid-elan.c elan_report_mt_slot(drvdata, NULL, i); drvdata 362 drivers/hid/hid-elan.c struct elan_drvdata *drvdata = hid_get_drvdata(hdev); drvdata 371 drivers/hid/hid-elan.c elan_usb_report_input(drvdata, data); drvdata 377 drivers/hid/hid-elan.c elan_i2c_report_input(drvdata, data); drvdata 415 drivers/hid/hid-elan.c struct elan_drvdata *drvdata = hid_get_drvdata(hdev); drvdata 417 drivers/hid/hid-elan.c return drvdata->mute_led_state; drvdata 427 drivers/hid/hid-elan.c struct elan_drvdata *drvdata = hid_get_drvdata(hdev); drvdata 450 drivers/hid/hid-elan.c drvdata->mute_led_state = led_state; drvdata 456 drivers/hid/hid-elan.c struct elan_drvdata *drvdata = hid_get_drvdata(hdev); drvdata 457 drivers/hid/hid-elan.c struct led_classdev *mute_led = &drvdata->mute_led; drvdata 471 drivers/hid/hid-elan.c struct elan_drvdata *drvdata; drvdata 473 drivers/hid/hid-elan.c drvdata = devm_kzalloc(&hdev->dev, sizeof(*drvdata), GFP_KERNEL); drvdata 475 drivers/hid/hid-elan.c if (!drvdata) drvdata 478 drivers/hid/hid-elan.c hid_set_drvdata(hdev, drvdata); drvdata 495 drivers/hid/hid-elan.c if (!drvdata->input) { drvdata 54 drivers/hid/hid-uclogic-core.c struct uclogic_drvdata *drvdata = from_timer(drvdata, t, drvdata 56 drivers/hid/hid-uclogic-core.c struct input_dev *input = drvdata->pen_input; drvdata 75 drivers/hid/hid-uclogic-core.c struct uclogic_drvdata *drvdata = hid_get_drvdata(hdev); drvdata 77 drivers/hid/hid-uclogic-core.c if (drvdata->desc_ptr != NULL) { drvdata 78 drivers/hid/hid-uclogic-core.c rdesc = drvdata->desc_ptr; drvdata 79 drivers/hid/hid-uclogic-core.c *rsize = drvdata->desc_size; drvdata 91 drivers/hid/hid-uclogic-core.c struct uclogic_drvdata *drvdata = hid_get_drvdata(hdev); drvdata 92 drivers/hid/hid-uclogic-core.c struct uclogic_params *params = &drvdata->params; drvdata 105 drivers/hid/hid-uclogic-core.c struct uclogic_drvdata *drvdata = hid_get_drvdata(hdev); drvdata 106 drivers/hid/hid-uclogic-core.c struct uclogic_params *params = &drvdata->params; drvdata 122 drivers/hid/hid-uclogic-core.c drvdata->pen_input = hi->input; drvdata 164 drivers/hid/hid-uclogic-core.c struct uclogic_drvdata *drvdata = NULL; drvdata 174 drivers/hid/hid-uclogic-core.c drvdata = devm_kzalloc(&hdev->dev, sizeof(*drvdata), GFP_KERNEL); drvdata 175 drivers/hid/hid-uclogic-core.c if (drvdata == NULL) { drvdata 179 drivers/hid/hid-uclogic-core.c timer_setup(&drvdata->inrange_timer, uclogic_inrange_timeout, 0); drvdata 180 drivers/hid/hid-uclogic-core.c drvdata->re_state = U8_MAX; drvdata 181 drivers/hid/hid-uclogic-core.c hid_set_drvdata(hdev, drvdata); drvdata 184 drivers/hid/hid-uclogic-core.c rc = uclogic_params_init(&drvdata->params, hdev); drvdata 191 drivers/hid/hid-uclogic-core.c UCLOGIC_PARAMS_FMT_ARGS(&drvdata->params)); drvdata 192 drivers/hid/hid-uclogic-core.c if (drvdata->params.invalid) { drvdata 199 drivers/hid/hid-uclogic-core.c rc = uclogic_params_get_desc(&drvdata->params, drvdata 200 drivers/hid/hid-uclogic-core.c &drvdata->desc_ptr, drvdata 201 drivers/hid/hid-uclogic-core.c &drvdata->desc_size); drvdata 225 drivers/hid/hid-uclogic-core.c uclogic_params_cleanup(&drvdata->params); drvdata 250 drivers/hid/hid-uclogic-core.c struct uclogic_drvdata *drvdata = hid_get_drvdata(hdev); drvdata 251 drivers/hid/hid-uclogic-core.c struct uclogic_params *params = &drvdata->params; drvdata 301 drivers/hid/hid-uclogic-core.c mod_timer(&drvdata->inrange_timer, drvdata 321 drivers/hid/hid-uclogic-core.c u8 prev_state = drvdata->re_state; drvdata 338 drivers/hid/hid-uclogic-core.c drvdata->re_state = state; drvdata 347 drivers/hid/hid-uclogic-core.c struct uclogic_drvdata *drvdata = hid_get_drvdata(hdev); drvdata 349 drivers/hid/hid-uclogic-core.c del_timer_sync(&drvdata->inrange_timer); drvdata 351 drivers/hid/hid-uclogic-core.c kfree(drvdata->desc_ptr); drvdata 352 drivers/hid/hid-uclogic-core.c uclogic_params_cleanup(&drvdata->params); drvdata 270 drivers/hwmon/hwmon.c static struct attribute *hwmon_genattr(const void *drvdata, drvdata 288 drivers/hwmon/hwmon.c mode = ops->is_visible(drvdata, type, attr, index); drvdata 511 drivers/hwmon/hwmon.c static int hwmon_genattrs(const void *drvdata, drvdata 537 drivers/hwmon/hwmon.c a = hwmon_genattr(drvdata, info->type, attr, i, drvdata 551 drivers/hwmon/hwmon.c __hwmon_create_attrs(const void *drvdata, const struct hwmon_chip_info *chip) drvdata 567 drivers/hwmon/hwmon.c ret = hwmon_genattrs(drvdata, &attrs[aindex], chip->ops, drvdata 580 drivers/hwmon/hwmon.c __hwmon_device_register(struct device *dev, const char *name, void *drvdata, drvdata 620 drivers/hwmon/hwmon.c attrs = __hwmon_create_attrs(drvdata, chip); drvdata 645 drivers/hwmon/hwmon.c dev_set_drvdata(hdev, drvdata); drvdata 661 drivers/hwmon/hwmon.c if (!chip->ops->is_visible(drvdata, hwmon_temp, drvdata 704 drivers/hwmon/hwmon.c void *drvdata, drvdata 710 drivers/hwmon/hwmon.c return __hwmon_device_register(dev, name, drvdata, NULL, groups); drvdata 729 drivers/hwmon/hwmon.c void *drvdata, drvdata 742 drivers/hwmon/hwmon.c return __hwmon_device_register(dev, name, drvdata, chip, extra_groups); drvdata 801 drivers/hwmon/hwmon.c void *drvdata, drvdata 813 drivers/hwmon/hwmon.c hwdev = hwmon_device_register_with_groups(dev, name, drvdata, groups); drvdata 840 drivers/hwmon/hwmon.c void *drvdata, drvdata 853 drivers/hwmon/hwmon.c hwdev = hwmon_device_register_with_info(dev, name, drvdata, chip, drvdata 507 drivers/hwmon/ina3221.c static umode_t ina3221_is_visible(const void *drvdata, drvdata 511 drivers/hwmon/ina3221.c const struct ina3221_data *ina = drvdata; drvdata 71 drivers/hwmon/k8temp.c k8temp_is_visible(const void *drvdata, enum hwmon_sensor_types type, drvdata 74 drivers/hwmon/k8temp.c const struct k8temp_data *data = drvdata; drvdata 237 drivers/hwmon/lochnagar-hwmon.c static umode_t lochnagar_is_visible(const void *drvdata, drvdata 100 drivers/hwmon/scmi-hwmon.c scmi_hwmon_is_visible(const void *drvdata, enum hwmon_sensor_types type, drvdata 104 drivers/hwmon/scmi-hwmon.c const struct scmi_sensors *scmi_sensors = drvdata; drvdata 402 drivers/hwtracing/coresight/coresight-catu.c static inline int catu_wait_for_ready(struct catu_drvdata *drvdata) drvdata 404 drivers/hwtracing/coresight/coresight-catu.c return coresight_timeout(drvdata->base, drvdata 408 drivers/hwtracing/coresight/coresight-catu.c static int catu_enable_hw(struct catu_drvdata *drvdata, void *data) drvdata 413 drivers/hwtracing/coresight/coresight-catu.c struct device *dev = &drvdata->csdev->dev; drvdata 415 drivers/hwtracing/coresight/coresight-catu.c if (catu_wait_for_ready(drvdata)) drvdata 418 drivers/hwtracing/coresight/coresight-catu.c control = catu_read_control(drvdata); drvdata 424 drivers/hwtracing/coresight/coresight-catu.c rc = coresight_claim_device_unlocked(drvdata->base); drvdata 434 drivers/hwtracing/coresight/coresight-catu.c catu_write_axictrl(drvdata, CATU_OS_AXICTRL); drvdata 435 drivers/hwtracing/coresight/coresight-catu.c catu_write_sladdr(drvdata, catu_buf->sladdr); drvdata 436 drivers/hwtracing/coresight/coresight-catu.c catu_write_inaddr(drvdata, CATU_DEFAULT_INADDR); drvdata 439 drivers/hwtracing/coresight/coresight-catu.c catu_write_sladdr(drvdata, 0); drvdata 440 drivers/hwtracing/coresight/coresight-catu.c catu_write_inaddr(drvdata, 0); drvdata 443 drivers/hwtracing/coresight/coresight-catu.c catu_write_irqen(drvdata, 0); drvdata 444 drivers/hwtracing/coresight/coresight-catu.c catu_write_mode(drvdata, mode); drvdata 445 drivers/hwtracing/coresight/coresight-catu.c catu_write_control(drvdata, control); drvdata 464 drivers/hwtracing/coresight/coresight-catu.c static int catu_disable_hw(struct catu_drvdata *drvdata) drvdata 467 drivers/hwtracing/coresight/coresight-catu.c struct device *dev = &drvdata->csdev->dev; drvdata 469 drivers/hwtracing/coresight/coresight-catu.c catu_write_control(drvdata, 0); drvdata 470 drivers/hwtracing/coresight/coresight-catu.c coresight_disclaim_device_unlocked(drvdata->base); drvdata 471 drivers/hwtracing/coresight/coresight-catu.c if (catu_wait_for_ready(drvdata)) { drvdata 504 drivers/hwtracing/coresight/coresight-catu.c struct catu_drvdata *drvdata; drvdata 514 drivers/hwtracing/coresight/coresight-catu.c drvdata = devm_kzalloc(dev, sizeof(*drvdata), GFP_KERNEL); drvdata 515 drivers/hwtracing/coresight/coresight-catu.c if (!drvdata) { drvdata 520 drivers/hwtracing/coresight/coresight-catu.c dev_set_drvdata(dev, drvdata); drvdata 553 drivers/hwtracing/coresight/coresight-catu.c drvdata->base = base; drvdata 561 drivers/hwtracing/coresight/coresight-catu.c drvdata->csdev = coresight_register(&catu_desc); drvdata 562 drivers/hwtracing/coresight/coresight-catu.c if (IS_ERR(drvdata->csdev)) drvdata 563 drivers/hwtracing/coresight/coresight-catu.c ret = PTR_ERR(drvdata->csdev); drvdata 71 drivers/hwtracing/coresight/coresight-catu.h catu_read_##name(struct catu_drvdata *drvdata) \ drvdata 73 drivers/hwtracing/coresight/coresight-catu.h return coresight_read_reg_pair(drvdata->base, offset, -1); \ drvdata 76 drivers/hwtracing/coresight/coresight-catu.h catu_write_##name(struct catu_drvdata *drvdata, u32 val) \ drvdata 78 drivers/hwtracing/coresight/coresight-catu.h coresight_write_reg_pair(drvdata->base, val, offset, -1); \ drvdata 83 drivers/hwtracing/coresight/coresight-catu.h catu_read_##name(struct catu_drvdata *drvdata) \ drvdata 85 drivers/hwtracing/coresight/coresight-catu.h return coresight_read_reg_pair(drvdata->base, lo_off, hi_off); \ drvdata 88 drivers/hwtracing/coresight/coresight-catu.h catu_write_##name(struct catu_drvdata *drvdata, u64 val) \ drvdata 90 drivers/hwtracing/coresight/coresight-catu.h coresight_write_reg_pair(drvdata->base, val, lo_off, hi_off); \ drvdata 111 drivers/hwtracing/coresight/coresight-cpu-debug.c static void debug_os_unlock(struct debug_drvdata *drvdata) drvdata 114 drivers/hwtracing/coresight/coresight-cpu-debug.c writel_relaxed(0x0, drvdata->base + EDOSLAR); drvdata 131 drivers/hwtracing/coresight/coresight-cpu-debug.c static bool debug_access_permitted(struct debug_drvdata *drvdata) drvdata 134 drivers/hwtracing/coresight/coresight-cpu-debug.c if (!(drvdata->edprsr & EDPRSR_PU)) drvdata 138 drivers/hwtracing/coresight/coresight-cpu-debug.c if (drvdata->edprsr & EDPRSR_DLK) drvdata 144 drivers/hwtracing/coresight/coresight-cpu-debug.c static void debug_force_cpu_powered_up(struct debug_drvdata *drvdata) drvdata 156 drivers/hwtracing/coresight/coresight-cpu-debug.c edprcr = readl_relaxed(drvdata->base + EDPRCR); drvdata 158 drivers/hwtracing/coresight/coresight-cpu-debug.c writel_relaxed(edprcr, drvdata->base + EDPRCR); drvdata 161 drivers/hwtracing/coresight/coresight-cpu-debug.c if (readx_poll_timeout_atomic(readl_relaxed, drvdata->base + EDPRSR, drvdata 162 drivers/hwtracing/coresight/coresight-cpu-debug.c drvdata->edprsr, (drvdata->edprsr & EDPRSR_PU), drvdata 170 drivers/hwtracing/coresight/coresight-cpu-debug.c dev_err(drvdata->dev, "%s: power up request for CPU%d failed\n", drvdata 171 drivers/hwtracing/coresight/coresight-cpu-debug.c __func__, drvdata->cpu); drvdata 179 drivers/hwtracing/coresight/coresight-cpu-debug.c edprcr = readl_relaxed(drvdata->base + EDPRCR); drvdata 181 drivers/hwtracing/coresight/coresight-cpu-debug.c writel_relaxed(edprcr, drvdata->base + EDPRCR); drvdata 183 drivers/hwtracing/coresight/coresight-cpu-debug.c drvdata->edprsr = readl_relaxed(drvdata->base + EDPRSR); drvdata 186 drivers/hwtracing/coresight/coresight-cpu-debug.c if (unlikely(!(drvdata->edprsr & EDPRSR_PU))) drvdata 190 drivers/hwtracing/coresight/coresight-cpu-debug.c static void debug_read_regs(struct debug_drvdata *drvdata) drvdata 194 drivers/hwtracing/coresight/coresight-cpu-debug.c CS_UNLOCK(drvdata->base); drvdata 197 drivers/hwtracing/coresight/coresight-cpu-debug.c debug_os_unlock(drvdata); drvdata 200 drivers/hwtracing/coresight/coresight-cpu-debug.c save_edprcr = readl_relaxed(drvdata->base + EDPRCR); drvdata 206 drivers/hwtracing/coresight/coresight-cpu-debug.c debug_force_cpu_powered_up(drvdata); drvdata 208 drivers/hwtracing/coresight/coresight-cpu-debug.c if (!debug_access_permitted(drvdata)) drvdata 211 drivers/hwtracing/coresight/coresight-cpu-debug.c drvdata->edpcsr = readl_relaxed(drvdata->base + EDPCSR); drvdata 220 drivers/hwtracing/coresight/coresight-cpu-debug.c if (drvdata->edpcsr == EDPCSR_PROHIBITED) drvdata 229 drivers/hwtracing/coresight/coresight-cpu-debug.c drvdata->edpcsr_hi = readl_relaxed(drvdata->base + EDPCSR_HI); drvdata 231 drivers/hwtracing/coresight/coresight-cpu-debug.c if (drvdata->edcidsr_present) drvdata 232 drivers/hwtracing/coresight/coresight-cpu-debug.c drvdata->edcidsr = readl_relaxed(drvdata->base + EDCIDSR); drvdata 234 drivers/hwtracing/coresight/coresight-cpu-debug.c if (drvdata->edvidsr_present) drvdata 235 drivers/hwtracing/coresight/coresight-cpu-debug.c drvdata->edvidsr = readl_relaxed(drvdata->base + EDVIDSR); drvdata 239 drivers/hwtracing/coresight/coresight-cpu-debug.c writel_relaxed(save_edprcr, drvdata->base + EDPRCR); drvdata 241 drivers/hwtracing/coresight/coresight-cpu-debug.c CS_LOCK(drvdata->base); drvdata 245 drivers/hwtracing/coresight/coresight-cpu-debug.c static unsigned long debug_adjust_pc(struct debug_drvdata *drvdata) drvdata 247 drivers/hwtracing/coresight/coresight-cpu-debug.c return (unsigned long)drvdata->edpcsr_hi << 32 | drvdata 248 drivers/hwtracing/coresight/coresight-cpu-debug.c (unsigned long)drvdata->edpcsr; drvdata 251 drivers/hwtracing/coresight/coresight-cpu-debug.c static unsigned long debug_adjust_pc(struct debug_drvdata *drvdata) drvdata 256 drivers/hwtracing/coresight/coresight-cpu-debug.c pc = (unsigned long)drvdata->edpcsr; drvdata 258 drivers/hwtracing/coresight/coresight-cpu-debug.c if (drvdata->pc_has_offset) { drvdata 276 drivers/hwtracing/coresight/coresight-cpu-debug.c dev_emerg(drvdata->dev, drvdata 285 drivers/hwtracing/coresight/coresight-cpu-debug.c static void debug_dump_regs(struct debug_drvdata *drvdata) drvdata 287 drivers/hwtracing/coresight/coresight-cpu-debug.c struct device *dev = drvdata->dev; drvdata 291 drivers/hwtracing/coresight/coresight-cpu-debug.c drvdata->edprsr, drvdata 292 drivers/hwtracing/coresight/coresight-cpu-debug.c drvdata->edprsr & EDPRSR_PU ? "On" : "Off", drvdata 293 drivers/hwtracing/coresight/coresight-cpu-debug.c drvdata->edprsr & EDPRSR_DLK ? "Lock" : "Unlock"); drvdata 295 drivers/hwtracing/coresight/coresight-cpu-debug.c if (!debug_access_permitted(drvdata)) { drvdata 300 drivers/hwtracing/coresight/coresight-cpu-debug.c if (drvdata->edpcsr == EDPCSR_PROHIBITED) { drvdata 305 drivers/hwtracing/coresight/coresight-cpu-debug.c pc = debug_adjust_pc(drvdata); drvdata 308 drivers/hwtracing/coresight/coresight-cpu-debug.c if (drvdata->edcidsr_present) drvdata 309 drivers/hwtracing/coresight/coresight-cpu-debug.c dev_emerg(dev, " EDCIDSR: %08x\n", drvdata->edcidsr); drvdata 311 drivers/hwtracing/coresight/coresight-cpu-debug.c if (drvdata->edvidsr_present) drvdata 313 drivers/hwtracing/coresight/coresight-cpu-debug.c drvdata->edvidsr, drvdata 314 drivers/hwtracing/coresight/coresight-cpu-debug.c drvdata->edvidsr & EDVIDSR_NS ? drvdata 316 drivers/hwtracing/coresight/coresight-cpu-debug.c drvdata->edvidsr & EDVIDSR_E3 ? "EL3" : drvdata 317 drivers/hwtracing/coresight/coresight-cpu-debug.c (drvdata->edvidsr & EDVIDSR_E2 ? drvdata 319 drivers/hwtracing/coresight/coresight-cpu-debug.c drvdata->edvidsr & EDVIDSR_HV ? 64 : 32, drvdata 320 drivers/hwtracing/coresight/coresight-cpu-debug.c drvdata->edvidsr & (u32)EDVIDSR_VMID); drvdata 325 drivers/hwtracing/coresight/coresight-cpu-debug.c struct debug_drvdata *drvdata = info; drvdata 329 drivers/hwtracing/coresight/coresight-cpu-debug.c CS_UNLOCK(drvdata->base); drvdata 332 drivers/hwtracing/coresight/coresight-cpu-debug.c eddevid = readl_relaxed(drvdata->base + EDDEVID); drvdata 333 drivers/hwtracing/coresight/coresight-cpu-debug.c eddevid1 = readl_relaxed(drvdata->base + EDDEVID1); drvdata 335 drivers/hwtracing/coresight/coresight-cpu-debug.c CS_LOCK(drvdata->base); drvdata 341 drivers/hwtracing/coresight/coresight-cpu-debug.c drvdata->edpcsr_present = false; drvdata 342 drivers/hwtracing/coresight/coresight-cpu-debug.c drvdata->edcidsr_present = false; drvdata 343 drivers/hwtracing/coresight/coresight-cpu-debug.c drvdata->edvidsr_present = false; drvdata 344 drivers/hwtracing/coresight/coresight-cpu-debug.c drvdata->pc_has_offset = false; drvdata 348 drivers/hwtracing/coresight/coresight-cpu-debug.c drvdata->edvidsr_present = true; drvdata 351 drivers/hwtracing/coresight/coresight-cpu-debug.c drvdata->edcidsr_present = true; drvdata 361 drivers/hwtracing/coresight/coresight-cpu-debug.c drvdata->edpcsr_present = drvdata 365 drivers/hwtracing/coresight/coresight-cpu-debug.c drvdata->pc_has_offset = drvdata 380 drivers/hwtracing/coresight/coresight-cpu-debug.c struct debug_drvdata *drvdata; drvdata 391 drivers/hwtracing/coresight/coresight-cpu-debug.c drvdata = per_cpu(debug_drvdata, cpu); drvdata 392 drivers/hwtracing/coresight/coresight-cpu-debug.c if (!drvdata) drvdata 395 drivers/hwtracing/coresight/coresight-cpu-debug.c dev_emerg(drvdata->dev, "CPU[%d]:\n", drvdata->cpu); drvdata 397 drivers/hwtracing/coresight/coresight-cpu-debug.c debug_read_regs(drvdata); drvdata 398 drivers/hwtracing/coresight/coresight-cpu-debug.c debug_dump_regs(drvdata); drvdata 412 drivers/hwtracing/coresight/coresight-cpu-debug.c struct debug_drvdata *drvdata; drvdata 423 drivers/hwtracing/coresight/coresight-cpu-debug.c drvdata = per_cpu(debug_drvdata, cpu); drvdata 424 drivers/hwtracing/coresight/coresight-cpu-debug.c if (!drvdata) drvdata 427 drivers/hwtracing/coresight/coresight-cpu-debug.c ret = pm_runtime_get_sync(drvdata->dev); drvdata 442 drivers/hwtracing/coresight/coresight-cpu-debug.c drvdata = per_cpu(debug_drvdata, cpu); drvdata 443 drivers/hwtracing/coresight/coresight-cpu-debug.c pm_runtime_put_noidle(drvdata->dev); drvdata 451 drivers/hwtracing/coresight/coresight-cpu-debug.c struct debug_drvdata *drvdata; drvdata 460 drivers/hwtracing/coresight/coresight-cpu-debug.c drvdata = per_cpu(debug_drvdata, cpu); drvdata 461 drivers/hwtracing/coresight/coresight-cpu-debug.c if (!drvdata) drvdata 464 drivers/hwtracing/coresight/coresight-cpu-debug.c ret = pm_runtime_put(drvdata->dev); drvdata 562 drivers/hwtracing/coresight/coresight-cpu-debug.c struct debug_drvdata *drvdata; drvdata 566 drivers/hwtracing/coresight/coresight-cpu-debug.c drvdata = devm_kzalloc(dev, sizeof(*drvdata), GFP_KERNEL); drvdata 567 drivers/hwtracing/coresight/coresight-cpu-debug.c if (!drvdata) drvdata 570 drivers/hwtracing/coresight/coresight-cpu-debug.c drvdata->cpu = coresight_get_cpu(dev); drvdata 571 drivers/hwtracing/coresight/coresight-cpu-debug.c if (drvdata->cpu < 0) drvdata 572 drivers/hwtracing/coresight/coresight-cpu-debug.c return drvdata->cpu; drvdata 574 drivers/hwtracing/coresight/coresight-cpu-debug.c if (per_cpu(debug_drvdata, drvdata->cpu)) { drvdata 576 drivers/hwtracing/coresight/coresight-cpu-debug.c drvdata->cpu); drvdata 580 drivers/hwtracing/coresight/coresight-cpu-debug.c drvdata->dev = &adev->dev; drvdata 581 drivers/hwtracing/coresight/coresight-cpu-debug.c amba_set_drvdata(adev, drvdata); drvdata 588 drivers/hwtracing/coresight/coresight-cpu-debug.c drvdata->base = base; drvdata 591 drivers/hwtracing/coresight/coresight-cpu-debug.c per_cpu(debug_drvdata, drvdata->cpu) = drvdata; drvdata 592 drivers/hwtracing/coresight/coresight-cpu-debug.c ret = smp_call_function_single(drvdata->cpu, debug_init_arch_data, drvdata 593 drivers/hwtracing/coresight/coresight-cpu-debug.c drvdata, 1); drvdata 597 drivers/hwtracing/coresight/coresight-cpu-debug.c dev_err(dev, "CPU%d debug arch init failed\n", drvdata->cpu); drvdata 601 drivers/hwtracing/coresight/coresight-cpu-debug.c if (!drvdata->edpcsr_present) { drvdata 603 drivers/hwtracing/coresight/coresight-cpu-debug.c drvdata->cpu); drvdata 620 drivers/hwtracing/coresight/coresight-cpu-debug.c dev_info(dev, "Coresight debug-CPU%d initialized\n", drvdata->cpu); drvdata 626 drivers/hwtracing/coresight/coresight-cpu-debug.c per_cpu(debug_drvdata, drvdata->cpu) = NULL; drvdata 633 drivers/hwtracing/coresight/coresight-cpu-debug.c struct debug_drvdata *drvdata = amba_get_drvdata(adev); drvdata 635 drivers/hwtracing/coresight/coresight-cpu-debug.c per_cpu(debug_drvdata, drvdata->cpu) = NULL; drvdata 100 drivers/hwtracing/coresight/coresight-etb10.c static inline unsigned int etb_get_buffer_depth(struct etb_drvdata *drvdata) drvdata 102 drivers/hwtracing/coresight/coresight-etb10.c return readl_relaxed(drvdata->base + ETB_RAM_DEPTH_REG); drvdata 105 drivers/hwtracing/coresight/coresight-etb10.c static void __etb_enable_hw(struct etb_drvdata *drvdata) drvdata 110 drivers/hwtracing/coresight/coresight-etb10.c CS_UNLOCK(drvdata->base); drvdata 112 drivers/hwtracing/coresight/coresight-etb10.c depth = drvdata->buffer_depth; drvdata 114 drivers/hwtracing/coresight/coresight-etb10.c writel_relaxed(0x0, drvdata->base + ETB_RAM_WRITE_POINTER); drvdata 117 drivers/hwtracing/coresight/coresight-etb10.c writel_relaxed(0x0, drvdata->base + ETB_RWD_REG); drvdata 120 drivers/hwtracing/coresight/coresight-etb10.c writel_relaxed(0x0, drvdata->base + ETB_RAM_WRITE_POINTER); drvdata 122 drivers/hwtracing/coresight/coresight-etb10.c writel_relaxed(0x0, drvdata->base + ETB_RAM_READ_POINTER); drvdata 124 drivers/hwtracing/coresight/coresight-etb10.c writel_relaxed(drvdata->trigger_cntr, drvdata->base + ETB_TRG); drvdata 126 drivers/hwtracing/coresight/coresight-etb10.c drvdata->base + ETB_FFCR); drvdata 128 drivers/hwtracing/coresight/coresight-etb10.c writel_relaxed(ETB_CTL_CAPT_EN, drvdata->base + ETB_CTL_REG); drvdata 130 drivers/hwtracing/coresight/coresight-etb10.c CS_LOCK(drvdata->base); drvdata 133 drivers/hwtracing/coresight/coresight-etb10.c static int etb_enable_hw(struct etb_drvdata *drvdata) drvdata 135 drivers/hwtracing/coresight/coresight-etb10.c int rc = coresight_claim_device(drvdata->base); drvdata 140 drivers/hwtracing/coresight/coresight-etb10.c __etb_enable_hw(drvdata); drvdata 148 drivers/hwtracing/coresight/coresight-etb10.c struct etb_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 150 drivers/hwtracing/coresight/coresight-etb10.c spin_lock_irqsave(&drvdata->spinlock, flags); drvdata 153 drivers/hwtracing/coresight/coresight-etb10.c if (drvdata->mode == CS_MODE_PERF) { drvdata 158 drivers/hwtracing/coresight/coresight-etb10.c if (drvdata->mode == CS_MODE_DISABLED) { drvdata 159 drivers/hwtracing/coresight/coresight-etb10.c ret = etb_enable_hw(drvdata); drvdata 163 drivers/hwtracing/coresight/coresight-etb10.c drvdata->mode = CS_MODE_SYSFS; drvdata 168 drivers/hwtracing/coresight/coresight-etb10.c spin_unlock_irqrestore(&drvdata->spinlock, flags); drvdata 177 drivers/hwtracing/coresight/coresight-etb10.c struct etb_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 180 drivers/hwtracing/coresight/coresight-etb10.c spin_lock_irqsave(&drvdata->spinlock, flags); drvdata 183 drivers/hwtracing/coresight/coresight-etb10.c if (drvdata->mode == CS_MODE_SYSFS) { drvdata 191 drivers/hwtracing/coresight/coresight-etb10.c if (drvdata->pid != -1 && drvdata->pid != pid) { drvdata 200 drivers/hwtracing/coresight/coresight-etb10.c if (drvdata->pid == pid) { drvdata 214 drivers/hwtracing/coresight/coresight-etb10.c ret = etb_enable_hw(drvdata); drvdata 217 drivers/hwtracing/coresight/coresight-etb10.c drvdata->pid = pid; drvdata 218 drivers/hwtracing/coresight/coresight-etb10.c drvdata->mode = CS_MODE_PERF; drvdata 223 drivers/hwtracing/coresight/coresight-etb10.c spin_unlock_irqrestore(&drvdata->spinlock, flags); drvdata 250 drivers/hwtracing/coresight/coresight-etb10.c static void __etb_disable_hw(struct etb_drvdata *drvdata) drvdata 253 drivers/hwtracing/coresight/coresight-etb10.c struct device *dev = &drvdata->csdev->dev; drvdata 255 drivers/hwtracing/coresight/coresight-etb10.c CS_UNLOCK(drvdata->base); drvdata 257 drivers/hwtracing/coresight/coresight-etb10.c ffcr = readl_relaxed(drvdata->base + ETB_FFCR); drvdata 260 drivers/hwtracing/coresight/coresight-etb10.c writel_relaxed(ffcr, drvdata->base + ETB_FFCR); drvdata 263 drivers/hwtracing/coresight/coresight-etb10.c writel_relaxed(ffcr, drvdata->base + ETB_FFCR); drvdata 265 drivers/hwtracing/coresight/coresight-etb10.c if (coresight_timeout(drvdata->base, ETB_FFCR, ETB_FFCR_BIT, 0)) { drvdata 271 drivers/hwtracing/coresight/coresight-etb10.c writel_relaxed(0x0, drvdata->base + ETB_CTL_REG); drvdata 273 drivers/hwtracing/coresight/coresight-etb10.c if (coresight_timeout(drvdata->base, ETB_FFSR, ETB_FFSR_BIT, 1)) { drvdata 278 drivers/hwtracing/coresight/coresight-etb10.c CS_LOCK(drvdata->base); drvdata 281 drivers/hwtracing/coresight/coresight-etb10.c static void etb_dump_hw(struct etb_drvdata *drvdata) drvdata 289 drivers/hwtracing/coresight/coresight-etb10.c struct device *dev = &drvdata->csdev->dev; drvdata 291 drivers/hwtracing/coresight/coresight-etb10.c CS_UNLOCK(drvdata->base); drvdata 293 drivers/hwtracing/coresight/coresight-etb10.c read_ptr = readl_relaxed(drvdata->base + ETB_RAM_READ_POINTER); drvdata 294 drivers/hwtracing/coresight/coresight-etb10.c write_ptr = readl_relaxed(drvdata->base + ETB_RAM_WRITE_POINTER); drvdata 307 drivers/hwtracing/coresight/coresight-etb10.c if ((readl_relaxed(drvdata->base + ETB_STATUS_REG) drvdata 309 drivers/hwtracing/coresight/coresight-etb10.c writel_relaxed(0x0, drvdata->base + ETB_RAM_READ_POINTER); drvdata 311 drivers/hwtracing/coresight/coresight-etb10.c writel_relaxed(write_ptr, drvdata->base + ETB_RAM_READ_POINTER); drvdata 315 drivers/hwtracing/coresight/coresight-etb10.c depth = drvdata->buffer_depth; drvdata 316 drivers/hwtracing/coresight/coresight-etb10.c buf_ptr = drvdata->buf; drvdata 318 drivers/hwtracing/coresight/coresight-etb10.c read_data = readl_relaxed(drvdata->base + drvdata 325 drivers/hwtracing/coresight/coresight-etb10.c coresight_insert_barrier_packet(drvdata->buf); drvdata 337 drivers/hwtracing/coresight/coresight-etb10.c writel_relaxed(read_ptr, drvdata->base + ETB_RAM_READ_POINTER); drvdata 339 drivers/hwtracing/coresight/coresight-etb10.c CS_LOCK(drvdata->base); drvdata 342 drivers/hwtracing/coresight/coresight-etb10.c static void etb_disable_hw(struct etb_drvdata *drvdata) drvdata 344 drivers/hwtracing/coresight/coresight-etb10.c __etb_disable_hw(drvdata); drvdata 345 drivers/hwtracing/coresight/coresight-etb10.c etb_dump_hw(drvdata); drvdata 346 drivers/hwtracing/coresight/coresight-etb10.c coresight_disclaim_device(drvdata->base); drvdata 351 drivers/hwtracing/coresight/coresight-etb10.c struct etb_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 354 drivers/hwtracing/coresight/coresight-etb10.c spin_lock_irqsave(&drvdata->spinlock, flags); drvdata 357 drivers/hwtracing/coresight/coresight-etb10.c spin_unlock_irqrestore(&drvdata->spinlock, flags); drvdata 362 drivers/hwtracing/coresight/coresight-etb10.c WARN_ON_ONCE(drvdata->mode == CS_MODE_DISABLED); drvdata 363 drivers/hwtracing/coresight/coresight-etb10.c etb_disable_hw(drvdata); drvdata 365 drivers/hwtracing/coresight/coresight-etb10.c drvdata->pid = -1; drvdata 366 drivers/hwtracing/coresight/coresight-etb10.c drvdata->mode = CS_MODE_DISABLED; drvdata 367 drivers/hwtracing/coresight/coresight-etb10.c spin_unlock_irqrestore(&drvdata->spinlock, flags); drvdata 436 drivers/hwtracing/coresight/coresight-etb10.c struct etb_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 441 drivers/hwtracing/coresight/coresight-etb10.c capacity = drvdata->buffer_depth * ETB_FRAME_SIZE_WORDS; drvdata 443 drivers/hwtracing/coresight/coresight-etb10.c spin_lock_irqsave(&drvdata->spinlock, flags); drvdata 449 drivers/hwtracing/coresight/coresight-etb10.c __etb_disable_hw(drvdata); drvdata 450 drivers/hwtracing/coresight/coresight-etb10.c CS_UNLOCK(drvdata->base); drvdata 453 drivers/hwtracing/coresight/coresight-etb10.c read_ptr = readl_relaxed(drvdata->base + ETB_RAM_READ_POINTER); drvdata 454 drivers/hwtracing/coresight/coresight-etb10.c write_ptr = readl_relaxed(drvdata->base + ETB_RAM_WRITE_POINTER); drvdata 476 drivers/hwtracing/coresight/coresight-etb10.c status = readl_relaxed(drvdata->base + ETB_STATUS_REG); drvdata 482 drivers/hwtracing/coresight/coresight-etb10.c to_read = CIRC_CNT(write_ptr, read_ptr, drvdata->buffer_depth); drvdata 505 drivers/hwtracing/coresight/coresight-etb10.c read_ptr = (write_ptr + drvdata->buffer_depth) - drvdata 508 drivers/hwtracing/coresight/coresight-etb10.c if (read_ptr > (drvdata->buffer_depth - 1)) drvdata 509 drivers/hwtracing/coresight/coresight-etb10.c read_ptr -= drvdata->buffer_depth; drvdata 524 drivers/hwtracing/coresight/coresight-etb10.c writel_relaxed(read_ptr, drvdata->base + ETB_RAM_READ_POINTER); drvdata 532 drivers/hwtracing/coresight/coresight-etb10.c read_data = readl_relaxed(drvdata->base + drvdata 552 drivers/hwtracing/coresight/coresight-etb10.c writel_relaxed(0x0, drvdata->base + ETB_RAM_READ_POINTER); drvdata 553 drivers/hwtracing/coresight/coresight-etb10.c writel_relaxed(0x0, drvdata->base + ETB_RAM_WRITE_POINTER); drvdata 564 drivers/hwtracing/coresight/coresight-etb10.c __etb_enable_hw(drvdata); drvdata 565 drivers/hwtracing/coresight/coresight-etb10.c CS_LOCK(drvdata->base); drvdata 567 drivers/hwtracing/coresight/coresight-etb10.c spin_unlock_irqrestore(&drvdata->spinlock, flags); drvdata 584 drivers/hwtracing/coresight/coresight-etb10.c static void etb_dump(struct etb_drvdata *drvdata) drvdata 588 drivers/hwtracing/coresight/coresight-etb10.c spin_lock_irqsave(&drvdata->spinlock, flags); drvdata 589 drivers/hwtracing/coresight/coresight-etb10.c if (drvdata->mode == CS_MODE_SYSFS) { drvdata 590 drivers/hwtracing/coresight/coresight-etb10.c __etb_disable_hw(drvdata); drvdata 591 drivers/hwtracing/coresight/coresight-etb10.c etb_dump_hw(drvdata); drvdata 592 drivers/hwtracing/coresight/coresight-etb10.c __etb_enable_hw(drvdata); drvdata 594 drivers/hwtracing/coresight/coresight-etb10.c spin_unlock_irqrestore(&drvdata->spinlock, flags); drvdata 596 drivers/hwtracing/coresight/coresight-etb10.c dev_dbg(&drvdata->csdev->dev, "ETB dumped\n"); drvdata 601 drivers/hwtracing/coresight/coresight-etb10.c struct etb_drvdata *drvdata = container_of(file->private_data, drvdata 604 drivers/hwtracing/coresight/coresight-etb10.c if (local_cmpxchg(&drvdata->reading, 0, 1)) drvdata 607 drivers/hwtracing/coresight/coresight-etb10.c dev_dbg(&drvdata->csdev->dev, "%s: successfully opened\n", __func__); drvdata 615 drivers/hwtracing/coresight/coresight-etb10.c struct etb_drvdata *drvdata = container_of(file->private_data, drvdata 617 drivers/hwtracing/coresight/coresight-etb10.c struct device *dev = &drvdata->csdev->dev; drvdata 619 drivers/hwtracing/coresight/coresight-etb10.c etb_dump(drvdata); drvdata 621 drivers/hwtracing/coresight/coresight-etb10.c depth = drvdata->buffer_depth; drvdata 625 drivers/hwtracing/coresight/coresight-etb10.c if (copy_to_user(data, drvdata->buf + *ppos, len)) { drvdata 640 drivers/hwtracing/coresight/coresight-etb10.c struct etb_drvdata *drvdata = container_of(file->private_data, drvdata 642 drivers/hwtracing/coresight/coresight-etb10.c local_set(&drvdata->reading, 0); drvdata 644 drivers/hwtracing/coresight/coresight-etb10.c dev_dbg(&drvdata->csdev->dev, "%s: released\n", __func__); drvdata 683 drivers/hwtracing/coresight/coresight-etb10.c struct etb_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 684 drivers/hwtracing/coresight/coresight-etb10.c unsigned long val = drvdata->trigger_cntr; drvdata 695 drivers/hwtracing/coresight/coresight-etb10.c struct etb_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 701 drivers/hwtracing/coresight/coresight-etb10.c drvdata->trigger_cntr = val; drvdata 732 drivers/hwtracing/coresight/coresight-etb10.c struct etb_drvdata *drvdata; drvdata 740 drivers/hwtracing/coresight/coresight-etb10.c drvdata = devm_kzalloc(dev, sizeof(*drvdata), GFP_KERNEL); drvdata 741 drivers/hwtracing/coresight/coresight-etb10.c if (!drvdata) drvdata 744 drivers/hwtracing/coresight/coresight-etb10.c drvdata->atclk = devm_clk_get(&adev->dev, "atclk"); /* optional */ drvdata 745 drivers/hwtracing/coresight/coresight-etb10.c if (!IS_ERR(drvdata->atclk)) { drvdata 746 drivers/hwtracing/coresight/coresight-etb10.c ret = clk_prepare_enable(drvdata->atclk); drvdata 750 drivers/hwtracing/coresight/coresight-etb10.c dev_set_drvdata(dev, drvdata); drvdata 757 drivers/hwtracing/coresight/coresight-etb10.c drvdata->base = base; drvdata 759 drivers/hwtracing/coresight/coresight-etb10.c spin_lock_init(&drvdata->spinlock); drvdata 761 drivers/hwtracing/coresight/coresight-etb10.c drvdata->buffer_depth = etb_get_buffer_depth(drvdata); drvdata 763 drivers/hwtracing/coresight/coresight-etb10.c if (drvdata->buffer_depth & 0x80000000) drvdata 766 drivers/hwtracing/coresight/coresight-etb10.c drvdata->buf = devm_kcalloc(dev, drvdata 767 drivers/hwtracing/coresight/coresight-etb10.c drvdata->buffer_depth, 4, GFP_KERNEL); drvdata 768 drivers/hwtracing/coresight/coresight-etb10.c if (!drvdata->buf) drvdata 772 drivers/hwtracing/coresight/coresight-etb10.c drvdata->pid = -1; drvdata 785 drivers/hwtracing/coresight/coresight-etb10.c drvdata->csdev = coresight_register(&desc); drvdata 786 drivers/hwtracing/coresight/coresight-etb10.c if (IS_ERR(drvdata->csdev)) drvdata 787 drivers/hwtracing/coresight/coresight-etb10.c return PTR_ERR(drvdata->csdev); drvdata 789 drivers/hwtracing/coresight/coresight-etb10.c drvdata->miscdev.name = desc.name; drvdata 790 drivers/hwtracing/coresight/coresight-etb10.c drvdata->miscdev.minor = MISC_DYNAMIC_MINOR; drvdata 791 drivers/hwtracing/coresight/coresight-etb10.c drvdata->miscdev.fops = &etb_fops; drvdata 792 drivers/hwtracing/coresight/coresight-etb10.c ret = misc_register(&drvdata->miscdev); drvdata 800 drivers/hwtracing/coresight/coresight-etb10.c coresight_unregister(drvdata->csdev); drvdata 807 drivers/hwtracing/coresight/coresight-etb10.c struct etb_drvdata *drvdata = dev_get_drvdata(dev); drvdata 809 drivers/hwtracing/coresight/coresight-etb10.c if (drvdata && !IS_ERR(drvdata->atclk)) drvdata 810 drivers/hwtracing/coresight/coresight-etb10.c clk_disable_unprepare(drvdata->atclk); drvdata 817 drivers/hwtracing/coresight/coresight-etb10.c struct etb_drvdata *drvdata = dev_get_drvdata(dev); drvdata 819 drivers/hwtracing/coresight/coresight-etb10.c if (drvdata && !IS_ERR(drvdata->atclk)) drvdata 820 drivers/hwtracing/coresight/coresight-etb10.c clk_prepare_enable(drvdata->atclk); drvdata 256 drivers/hwtracing/coresight/coresight-etm.h static inline void etm_writel(struct etm_drvdata *drvdata, drvdata 259 drivers/hwtracing/coresight/coresight-etm.h if (drvdata->use_cp14) { drvdata 261 drivers/hwtracing/coresight/coresight-etm.h dev_err(&drvdata->csdev->dev, drvdata 265 drivers/hwtracing/coresight/coresight-etm.h writel_relaxed(val, drvdata->base + off); drvdata 269 drivers/hwtracing/coresight/coresight-etm.h static inline unsigned int etm_readl(struct etm_drvdata *drvdata, u32 off) drvdata 273 drivers/hwtracing/coresight/coresight-etm.h if (drvdata->use_cp14) { drvdata 275 drivers/hwtracing/coresight/coresight-etm.h dev_err(&drvdata->csdev->dev, drvdata 279 drivers/hwtracing/coresight/coresight-etm.h val = readl_relaxed(drvdata->base + off); drvdata 286 drivers/hwtracing/coresight/coresight-etm.h int etm_get_trace_id(struct etm_drvdata *drvdata); drvdata 289 drivers/hwtracing/coresight/coresight-etm.h struct etm_config *get_etm_config(struct etm_drvdata *drvdata); drvdata 17 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 19 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c val = drvdata->nr_addr_cmp; drvdata 27 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 29 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c val = drvdata->nr_cntr; drvdata 38 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 40 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c val = drvdata->nr_ctxid_cmp; drvdata 49 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 52 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_lock_irqsave(&drvdata->spinlock, flags); drvdata 53 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c CS_UNLOCK(drvdata->base); drvdata 55 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c val = etm_readl(drvdata, ETMSR); drvdata 57 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c CS_LOCK(drvdata->base); drvdata 58 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_unlock_irqrestore(&drvdata->spinlock, flags); drvdata 71 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 72 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 79 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 83 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c for (i = 0; i < drvdata->nr_addr_cmp; i++) { drvdata 88 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 99 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 100 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 112 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 113 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 119 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 133 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c if (!(drvdata->etmccr & ETMCCR_FIFOFULL)) { drvdata 143 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c if (!(drvdata->etmccer & ETMCCER_TIMESTAMP)) { drvdata 170 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 175 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 184 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 185 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 197 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 198 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 214 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 215 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 227 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 228 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 244 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 245 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 257 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 258 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 274 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 275 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 287 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 288 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 294 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c if (val >= drvdata->nr_addr_cmp) drvdata 301 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 303 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 314 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 315 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 317 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 321 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 326 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 338 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 339 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 345 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 349 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 355 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 366 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 367 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 369 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 372 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 379 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 385 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 396 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 397 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 405 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 408 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 415 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 424 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 435 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 436 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 438 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 442 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 447 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 459 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 460 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 466 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 470 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 478 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 489 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 490 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 492 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 496 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 501 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 513 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 514 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 520 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 524 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 532 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 542 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 543 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 545 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 547 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 558 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 559 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 565 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 567 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 577 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 578 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 590 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 591 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 597 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c if (val >= drvdata->nr_cntr) drvdata 603 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 605 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 615 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 616 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 618 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 620 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 631 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 632 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 638 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 640 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 650 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 651 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 653 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 655 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 666 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 667 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 673 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 675 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 685 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 686 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 688 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 690 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 701 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 702 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 708 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 710 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 721 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 722 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 724 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c if (!local_read(&drvdata->mode)) { drvdata 725 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 726 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c for (i = 0; i < drvdata->nr_cntr; i++) drvdata 729 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 733 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c for (i = 0; i < drvdata->nr_cntr; i++) { drvdata 734 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c val = etm_readl(drvdata, ETMCNTVRn(i)); drvdata 747 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 748 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 754 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 756 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 766 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 767 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 779 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 780 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 795 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 796 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 808 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 809 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 824 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 825 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 837 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 838 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 853 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 854 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 866 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 867 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 882 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 883 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 895 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 896 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 911 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 912 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 924 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 925 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 940 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 941 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 943 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c if (!local_read(&drvdata->mode)) { drvdata 949 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_lock_irqsave(&drvdata->spinlock, flags); drvdata 951 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c CS_UNLOCK(drvdata->base); drvdata 952 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c val = (etm_readl(drvdata, ETMSQR) & ETM_SQR_MASK); drvdata 953 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c CS_LOCK(drvdata->base); drvdata 955 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_unlock_irqrestore(&drvdata->spinlock, flags); drvdata 967 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 968 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 987 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 988 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 1000 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1001 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 1007 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c if (val >= drvdata->nr_ctxid_cmp) drvdata 1014 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 1016 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1026 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1027 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 1036 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 1038 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1049 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1050 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 1068 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 1070 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1080 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1081 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 1100 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1101 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 1123 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1124 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 1136 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1137 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 1152 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1153 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 1165 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1166 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_config *config = &drvdata->config; drvdata 1181 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1183 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c val = drvdata->cpu; drvdata 1193 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1195 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c val = etm_get_trace_id(drvdata); drvdata 1206 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1212 drivers/hwtracing/coresight/coresight-etm3x-sysfs.c drvdata->traceid = val & ETM_TRACEID_MASK; drvdata 54 drivers/hwtracing/coresight/coresight-etm3x.c static void etm_os_unlock(struct etm_drvdata *drvdata) drvdata 57 drivers/hwtracing/coresight/coresight-etm3x.c etm_writel(drvdata, 0x0, ETMOSLAR); drvdata 58 drivers/hwtracing/coresight/coresight-etm3x.c drvdata->os_unlock = true; drvdata 62 drivers/hwtracing/coresight/coresight-etm3x.c static void etm_set_pwrdwn(struct etm_drvdata *drvdata) drvdata 69 drivers/hwtracing/coresight/coresight-etm3x.c etmcr = etm_readl(drvdata, ETMCR); drvdata 71 drivers/hwtracing/coresight/coresight-etm3x.c etm_writel(drvdata, etmcr, ETMCR); drvdata 74 drivers/hwtracing/coresight/coresight-etm3x.c static void etm_clr_pwrdwn(struct etm_drvdata *drvdata) drvdata 78 drivers/hwtracing/coresight/coresight-etm3x.c etmcr = etm_readl(drvdata, ETMCR); drvdata 80 drivers/hwtracing/coresight/coresight-etm3x.c etm_writel(drvdata, etmcr, ETMCR); drvdata 86 drivers/hwtracing/coresight/coresight-etm3x.c static void etm_set_pwrup(struct etm_drvdata *drvdata) drvdata 90 drivers/hwtracing/coresight/coresight-etm3x.c etmpdcr = readl_relaxed(drvdata->base + ETMPDCR); drvdata 92 drivers/hwtracing/coresight/coresight-etm3x.c writel_relaxed(etmpdcr, drvdata->base + ETMPDCR); drvdata 98 drivers/hwtracing/coresight/coresight-etm3x.c static void etm_clr_pwrup(struct etm_drvdata *drvdata) drvdata 105 drivers/hwtracing/coresight/coresight-etm3x.c etmpdcr = readl_relaxed(drvdata->base + ETMPDCR); drvdata 107 drivers/hwtracing/coresight/coresight-etm3x.c writel_relaxed(etmpdcr, drvdata->base + ETMPDCR); drvdata 124 drivers/hwtracing/coresight/coresight-etm3x.c static int coresight_timeout_etm(struct etm_drvdata *drvdata, u32 offset, drvdata 131 drivers/hwtracing/coresight/coresight-etm3x.c val = etm_readl(drvdata, offset); drvdata 155 drivers/hwtracing/coresight/coresight-etm3x.c static void etm_set_prog(struct etm_drvdata *drvdata) drvdata 159 drivers/hwtracing/coresight/coresight-etm3x.c etmcr = etm_readl(drvdata, ETMCR); drvdata 161 drivers/hwtracing/coresight/coresight-etm3x.c etm_writel(drvdata, etmcr, ETMCR); drvdata 167 drivers/hwtracing/coresight/coresight-etm3x.c if (coresight_timeout_etm(drvdata, ETMSR, ETMSR_PROG_BIT, 1)) { drvdata 168 drivers/hwtracing/coresight/coresight-etm3x.c dev_err(&drvdata->csdev->dev, drvdata 174 drivers/hwtracing/coresight/coresight-etm3x.c static void etm_clr_prog(struct etm_drvdata *drvdata) drvdata 178 drivers/hwtracing/coresight/coresight-etm3x.c etmcr = etm_readl(drvdata, ETMCR); drvdata 180 drivers/hwtracing/coresight/coresight-etm3x.c etm_writel(drvdata, etmcr, ETMCR); drvdata 186 drivers/hwtracing/coresight/coresight-etm3x.c if (coresight_timeout_etm(drvdata, ETMSR, ETMSR_PROG_BIT, 0)) { drvdata 187 drivers/hwtracing/coresight/coresight-etm3x.c dev_err(&drvdata->csdev->dev, drvdata 308 drivers/hwtracing/coresight/coresight-etm3x.c static int etm_parse_event_config(struct etm_drvdata *drvdata, drvdata 311 drivers/hwtracing/coresight/coresight-etm3x.c struct etm_config *config = &drvdata->config; drvdata 352 drivers/hwtracing/coresight/coresight-etm3x.c !(drvdata->etmccer & ETMCCER_RETSTACK)) drvdata 358 drivers/hwtracing/coresight/coresight-etm3x.c static int etm_enable_hw(struct etm_drvdata *drvdata) drvdata 362 drivers/hwtracing/coresight/coresight-etm3x.c struct etm_config *config = &drvdata->config; drvdata 364 drivers/hwtracing/coresight/coresight-etm3x.c CS_UNLOCK(drvdata->base); drvdata 366 drivers/hwtracing/coresight/coresight-etm3x.c rc = coresight_claim_device_unlocked(drvdata->base); drvdata 371 drivers/hwtracing/coresight/coresight-etm3x.c etm_clr_pwrdwn(drvdata); drvdata 373 drivers/hwtracing/coresight/coresight-etm3x.c etm_set_pwrup(drvdata); drvdata 375 drivers/hwtracing/coresight/coresight-etm3x.c etm_os_unlock(drvdata); drvdata 377 drivers/hwtracing/coresight/coresight-etm3x.c etm_set_prog(drvdata); drvdata 379 drivers/hwtracing/coresight/coresight-etm3x.c etmcr = etm_readl(drvdata, ETMCR); drvdata 382 drivers/hwtracing/coresight/coresight-etm3x.c etmcr |= drvdata->port_size; drvdata 384 drivers/hwtracing/coresight/coresight-etm3x.c etm_writel(drvdata, config->ctrl | etmcr, ETMCR); drvdata 385 drivers/hwtracing/coresight/coresight-etm3x.c etm_writel(drvdata, config->trigger_event, ETMTRIGGER); drvdata 386 drivers/hwtracing/coresight/coresight-etm3x.c etm_writel(drvdata, config->startstop_ctrl, ETMTSSCR); drvdata 387 drivers/hwtracing/coresight/coresight-etm3x.c etm_writel(drvdata, config->enable_event, ETMTEEVR); drvdata 388 drivers/hwtracing/coresight/coresight-etm3x.c etm_writel(drvdata, config->enable_ctrl1, ETMTECR1); drvdata 389 drivers/hwtracing/coresight/coresight-etm3x.c etm_writel(drvdata, config->fifofull_level, ETMFFLR); drvdata 390 drivers/hwtracing/coresight/coresight-etm3x.c for (i = 0; i < drvdata->nr_addr_cmp; i++) { drvdata 391 drivers/hwtracing/coresight/coresight-etm3x.c etm_writel(drvdata, config->addr_val[i], ETMACVRn(i)); drvdata 392 drivers/hwtracing/coresight/coresight-etm3x.c etm_writel(drvdata, config->addr_acctype[i], ETMACTRn(i)); drvdata 394 drivers/hwtracing/coresight/coresight-etm3x.c for (i = 0; i < drvdata->nr_cntr; i++) { drvdata 395 drivers/hwtracing/coresight/coresight-etm3x.c etm_writel(drvdata, config->cntr_rld_val[i], ETMCNTRLDVRn(i)); drvdata 396 drivers/hwtracing/coresight/coresight-etm3x.c etm_writel(drvdata, config->cntr_event[i], ETMCNTENRn(i)); drvdata 397 drivers/hwtracing/coresight/coresight-etm3x.c etm_writel(drvdata, config->cntr_rld_event[i], drvdata 399 drivers/hwtracing/coresight/coresight-etm3x.c etm_writel(drvdata, config->cntr_val[i], ETMCNTVRn(i)); drvdata 401 drivers/hwtracing/coresight/coresight-etm3x.c etm_writel(drvdata, config->seq_12_event, ETMSQ12EVR); drvdata 402 drivers/hwtracing/coresight/coresight-etm3x.c etm_writel(drvdata, config->seq_21_event, ETMSQ21EVR); drvdata 403 drivers/hwtracing/coresight/coresight-etm3x.c etm_writel(drvdata, config->seq_23_event, ETMSQ23EVR); drvdata 404 drivers/hwtracing/coresight/coresight-etm3x.c etm_writel(drvdata, config->seq_31_event, ETMSQ31EVR); drvdata 405 drivers/hwtracing/coresight/coresight-etm3x.c etm_writel(drvdata, config->seq_32_event, ETMSQ32EVR); drvdata 406 drivers/hwtracing/coresight/coresight-etm3x.c etm_writel(drvdata, config->seq_13_event, ETMSQ13EVR); drvdata 407 drivers/hwtracing/coresight/coresight-etm3x.c etm_writel(drvdata, config->seq_curr_state, ETMSQR); drvdata 408 drivers/hwtracing/coresight/coresight-etm3x.c for (i = 0; i < drvdata->nr_ext_out; i++) drvdata 409 drivers/hwtracing/coresight/coresight-etm3x.c etm_writel(drvdata, ETM_DEFAULT_EVENT_VAL, ETMEXTOUTEVRn(i)); drvdata 410 drivers/hwtracing/coresight/coresight-etm3x.c for (i = 0; i < drvdata->nr_ctxid_cmp; i++) drvdata 411 drivers/hwtracing/coresight/coresight-etm3x.c etm_writel(drvdata, config->ctxid_pid[i], ETMCIDCVRn(i)); drvdata 412 drivers/hwtracing/coresight/coresight-etm3x.c etm_writel(drvdata, config->ctxid_mask, ETMCIDCMR); drvdata 413 drivers/hwtracing/coresight/coresight-etm3x.c etm_writel(drvdata, config->sync_freq, ETMSYNCFR); drvdata 415 drivers/hwtracing/coresight/coresight-etm3x.c etm_writel(drvdata, 0x0, ETMEXTINSELR); drvdata 416 drivers/hwtracing/coresight/coresight-etm3x.c etm_writel(drvdata, config->timestamp_event, ETMTSEVR); drvdata 418 drivers/hwtracing/coresight/coresight-etm3x.c etm_writel(drvdata, 0x0, ETMAUXCR); drvdata 419 drivers/hwtracing/coresight/coresight-etm3x.c etm_writel(drvdata, drvdata->traceid, ETMTRACEIDR); drvdata 421 drivers/hwtracing/coresight/coresight-etm3x.c etm_writel(drvdata, 0x0, ETMVMIDCVR); drvdata 423 drivers/hwtracing/coresight/coresight-etm3x.c etm_clr_prog(drvdata); drvdata 426 drivers/hwtracing/coresight/coresight-etm3x.c CS_LOCK(drvdata->base); drvdata 428 drivers/hwtracing/coresight/coresight-etm3x.c dev_dbg(&drvdata->csdev->dev, "cpu: %d enable smp call done: %d\n", drvdata 429 drivers/hwtracing/coresight/coresight-etm3x.c drvdata->cpu, rc); drvdata 434 drivers/hwtracing/coresight/coresight-etm3x.c struct etm_drvdata *drvdata; drvdata 444 drivers/hwtracing/coresight/coresight-etm3x.c arg->rc = etm_enable_hw(arg->drvdata); drvdata 449 drivers/hwtracing/coresight/coresight-etm3x.c struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 451 drivers/hwtracing/coresight/coresight-etm3x.c return drvdata->cpu; drvdata 454 drivers/hwtracing/coresight/coresight-etm3x.c int etm_get_trace_id(struct etm_drvdata *drvdata) drvdata 460 drivers/hwtracing/coresight/coresight-etm3x.c if (!drvdata) drvdata 463 drivers/hwtracing/coresight/coresight-etm3x.c etm_dev = drvdata->csdev->dev.parent; drvdata 464 drivers/hwtracing/coresight/coresight-etm3x.c if (!local_read(&drvdata->mode)) drvdata 465 drivers/hwtracing/coresight/coresight-etm3x.c return drvdata->traceid; drvdata 469 drivers/hwtracing/coresight/coresight-etm3x.c spin_lock_irqsave(&drvdata->spinlock, flags); drvdata 471 drivers/hwtracing/coresight/coresight-etm3x.c CS_UNLOCK(drvdata->base); drvdata 472 drivers/hwtracing/coresight/coresight-etm3x.c trace_id = (etm_readl(drvdata, ETMTRACEIDR) & ETM_TRACEID_MASK); drvdata 473 drivers/hwtracing/coresight/coresight-etm3x.c CS_LOCK(drvdata->base); drvdata 475 drivers/hwtracing/coresight/coresight-etm3x.c spin_unlock_irqrestore(&drvdata->spinlock, flags); drvdata 485 drivers/hwtracing/coresight/coresight-etm3x.c struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 487 drivers/hwtracing/coresight/coresight-etm3x.c return etm_get_trace_id(drvdata); drvdata 493 drivers/hwtracing/coresight/coresight-etm3x.c struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 495 drivers/hwtracing/coresight/coresight-etm3x.c if (WARN_ON_ONCE(drvdata->cpu != smp_processor_id())) drvdata 499 drivers/hwtracing/coresight/coresight-etm3x.c etm_parse_event_config(drvdata, event); drvdata 501 drivers/hwtracing/coresight/coresight-etm3x.c return etm_enable_hw(drvdata); drvdata 506 drivers/hwtracing/coresight/coresight-etm3x.c struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 510 drivers/hwtracing/coresight/coresight-etm3x.c spin_lock(&drvdata->spinlock); drvdata 516 drivers/hwtracing/coresight/coresight-etm3x.c if (cpu_online(drvdata->cpu)) { drvdata 517 drivers/hwtracing/coresight/coresight-etm3x.c arg.drvdata = drvdata; drvdata 518 drivers/hwtracing/coresight/coresight-etm3x.c ret = smp_call_function_single(drvdata->cpu, drvdata 523 drivers/hwtracing/coresight/coresight-etm3x.c drvdata->sticky_enable = true; drvdata 528 drivers/hwtracing/coresight/coresight-etm3x.c spin_unlock(&drvdata->spinlock); drvdata 540 drivers/hwtracing/coresight/coresight-etm3x.c struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 542 drivers/hwtracing/coresight/coresight-etm3x.c val = local_cmpxchg(&drvdata->mode, CS_MODE_DISABLED, mode); drvdata 561 drivers/hwtracing/coresight/coresight-etm3x.c local_set(&drvdata->mode, CS_MODE_DISABLED); drvdata 569 drivers/hwtracing/coresight/coresight-etm3x.c struct etm_drvdata *drvdata = info; drvdata 570 drivers/hwtracing/coresight/coresight-etm3x.c struct etm_config *config = &drvdata->config; drvdata 572 drivers/hwtracing/coresight/coresight-etm3x.c CS_UNLOCK(drvdata->base); drvdata 573 drivers/hwtracing/coresight/coresight-etm3x.c etm_set_prog(drvdata); drvdata 576 drivers/hwtracing/coresight/coresight-etm3x.c config->seq_curr_state = (etm_readl(drvdata, ETMSQR) & ETM_SQR_MASK); drvdata 578 drivers/hwtracing/coresight/coresight-etm3x.c for (i = 0; i < drvdata->nr_cntr; i++) drvdata 579 drivers/hwtracing/coresight/coresight-etm3x.c config->cntr_val[i] = etm_readl(drvdata, ETMCNTVRn(i)); drvdata 581 drivers/hwtracing/coresight/coresight-etm3x.c etm_set_pwrdwn(drvdata); drvdata 582 drivers/hwtracing/coresight/coresight-etm3x.c coresight_disclaim_device_unlocked(drvdata->base); drvdata 584 drivers/hwtracing/coresight/coresight-etm3x.c CS_LOCK(drvdata->base); drvdata 586 drivers/hwtracing/coresight/coresight-etm3x.c dev_dbg(&drvdata->csdev->dev, drvdata 587 drivers/hwtracing/coresight/coresight-etm3x.c "cpu: %d disable smp call done\n", drvdata->cpu); drvdata 592 drivers/hwtracing/coresight/coresight-etm3x.c struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 594 drivers/hwtracing/coresight/coresight-etm3x.c if (WARN_ON_ONCE(drvdata->cpu != smp_processor_id())) drvdata 597 drivers/hwtracing/coresight/coresight-etm3x.c CS_UNLOCK(drvdata->base); drvdata 600 drivers/hwtracing/coresight/coresight-etm3x.c etm_set_prog(drvdata); drvdata 606 drivers/hwtracing/coresight/coresight-etm3x.c etm_set_pwrdwn(drvdata); drvdata 607 drivers/hwtracing/coresight/coresight-etm3x.c coresight_disclaim_device_unlocked(drvdata->base); drvdata 609 drivers/hwtracing/coresight/coresight-etm3x.c CS_LOCK(drvdata->base); drvdata 614 drivers/hwtracing/coresight/coresight-etm3x.c struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 623 drivers/hwtracing/coresight/coresight-etm3x.c spin_lock(&drvdata->spinlock); drvdata 629 drivers/hwtracing/coresight/coresight-etm3x.c smp_call_function_single(drvdata->cpu, etm_disable_hw, drvdata, 1); drvdata 631 drivers/hwtracing/coresight/coresight-etm3x.c spin_unlock(&drvdata->spinlock); drvdata 641 drivers/hwtracing/coresight/coresight-etm3x.c struct etm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 648 drivers/hwtracing/coresight/coresight-etm3x.c mode = local_read(&drvdata->mode); drvdata 665 drivers/hwtracing/coresight/coresight-etm3x.c local_set(&drvdata->mode, CS_MODE_DISABLED); drvdata 739 drivers/hwtracing/coresight/coresight-etm3x.c struct etm_drvdata *drvdata = info; drvdata 742 drivers/hwtracing/coresight/coresight-etm3x.c etm_os_unlock(drvdata); drvdata 744 drivers/hwtracing/coresight/coresight-etm3x.c CS_UNLOCK(drvdata->base); drvdata 747 drivers/hwtracing/coresight/coresight-etm3x.c (void)etm_readl(drvdata, ETMPDSR); drvdata 749 drivers/hwtracing/coresight/coresight-etm3x.c etm_set_pwrup(drvdata); drvdata 754 drivers/hwtracing/coresight/coresight-etm3x.c etm_clr_pwrdwn(drvdata); drvdata 759 drivers/hwtracing/coresight/coresight-etm3x.c etm_set_prog(drvdata); drvdata 762 drivers/hwtracing/coresight/coresight-etm3x.c etmidr = etm_readl(drvdata, ETMIDR); drvdata 763 drivers/hwtracing/coresight/coresight-etm3x.c drvdata->arch = BMVAL(etmidr, 4, 11); drvdata 764 drivers/hwtracing/coresight/coresight-etm3x.c drvdata->port_size = etm_readl(drvdata, ETMCR) & PORT_SIZE_MASK; drvdata 766 drivers/hwtracing/coresight/coresight-etm3x.c drvdata->etmccer = etm_readl(drvdata, ETMCCER); drvdata 767 drivers/hwtracing/coresight/coresight-etm3x.c etmccr = etm_readl(drvdata, ETMCCR); drvdata 768 drivers/hwtracing/coresight/coresight-etm3x.c drvdata->etmccr = etmccr; drvdata 769 drivers/hwtracing/coresight/coresight-etm3x.c drvdata->nr_addr_cmp = BMVAL(etmccr, 0, 3) * 2; drvdata 770 drivers/hwtracing/coresight/coresight-etm3x.c drvdata->nr_cntr = BMVAL(etmccr, 13, 15); drvdata 771 drivers/hwtracing/coresight/coresight-etm3x.c drvdata->nr_ext_inp = BMVAL(etmccr, 17, 19); drvdata 772 drivers/hwtracing/coresight/coresight-etm3x.c drvdata->nr_ext_out = BMVAL(etmccr, 20, 22); drvdata 773 drivers/hwtracing/coresight/coresight-etm3x.c drvdata->nr_ctxid_cmp = BMVAL(etmccr, 24, 25); drvdata 775 drivers/hwtracing/coresight/coresight-etm3x.c etm_set_pwrdwn(drvdata); drvdata 776 drivers/hwtracing/coresight/coresight-etm3x.c etm_clr_pwrup(drvdata); drvdata 777 drivers/hwtracing/coresight/coresight-etm3x.c CS_LOCK(drvdata->base); drvdata 780 drivers/hwtracing/coresight/coresight-etm3x.c static void etm_init_trace_id(struct etm_drvdata *drvdata) drvdata 782 drivers/hwtracing/coresight/coresight-etm3x.c drvdata->traceid = coresight_get_trace_id(drvdata->cpu); drvdata 791 drivers/hwtracing/coresight/coresight-etm3x.c struct etm_drvdata *drvdata; drvdata 795 drivers/hwtracing/coresight/coresight-etm3x.c drvdata = devm_kzalloc(dev, sizeof(*drvdata), GFP_KERNEL); drvdata 796 drivers/hwtracing/coresight/coresight-etm3x.c if (!drvdata) drvdata 799 drivers/hwtracing/coresight/coresight-etm3x.c drvdata->use_cp14 = fwnode_property_read_bool(dev->fwnode, "arm,cp14"); drvdata 800 drivers/hwtracing/coresight/coresight-etm3x.c dev_set_drvdata(dev, drvdata); drvdata 807 drivers/hwtracing/coresight/coresight-etm3x.c drvdata->base = base; drvdata 809 drivers/hwtracing/coresight/coresight-etm3x.c spin_lock_init(&drvdata->spinlock); drvdata 811 drivers/hwtracing/coresight/coresight-etm3x.c drvdata->atclk = devm_clk_get(&adev->dev, "atclk"); /* optional */ drvdata 812 drivers/hwtracing/coresight/coresight-etm3x.c if (!IS_ERR(drvdata->atclk)) { drvdata 813 drivers/hwtracing/coresight/coresight-etm3x.c ret = clk_prepare_enable(drvdata->atclk); drvdata 818 drivers/hwtracing/coresight/coresight-etm3x.c drvdata->cpu = coresight_get_cpu(dev); drvdata 819 drivers/hwtracing/coresight/coresight-etm3x.c if (drvdata->cpu < 0) drvdata 820 drivers/hwtracing/coresight/coresight-etm3x.c return drvdata->cpu; drvdata 822 drivers/hwtracing/coresight/coresight-etm3x.c desc.name = devm_kasprintf(dev, GFP_KERNEL, "etm%d", drvdata->cpu); drvdata 827 drivers/hwtracing/coresight/coresight-etm3x.c etmdrvdata[drvdata->cpu] = drvdata; drvdata 829 drivers/hwtracing/coresight/coresight-etm3x.c if (smp_call_function_single(drvdata->cpu, drvdata 830 drivers/hwtracing/coresight/coresight-etm3x.c etm_init_arch_data, drvdata, 1)) drvdata 846 drivers/hwtracing/coresight/coresight-etm3x.c if (etm_arch_supported(drvdata->arch) == false) { drvdata 851 drivers/hwtracing/coresight/coresight-etm3x.c etm_init_trace_id(drvdata); drvdata 852 drivers/hwtracing/coresight/coresight-etm3x.c etm_set_default(&drvdata->config); drvdata 867 drivers/hwtracing/coresight/coresight-etm3x.c drvdata->csdev = coresight_register(&desc); drvdata 868 drivers/hwtracing/coresight/coresight-etm3x.c if (IS_ERR(drvdata->csdev)) { drvdata 869 drivers/hwtracing/coresight/coresight-etm3x.c ret = PTR_ERR(drvdata->csdev); drvdata 873 drivers/hwtracing/coresight/coresight-etm3x.c ret = etm_perf_symlink(drvdata->csdev, true); drvdata 875 drivers/hwtracing/coresight/coresight-etm3x.c coresight_unregister(drvdata->csdev); drvdata 880 drivers/hwtracing/coresight/coresight-etm3x.c dev_info(&drvdata->csdev->dev, drvdata 883 drivers/hwtracing/coresight/coresight-etm3x.c coresight_enable(drvdata->csdev); drvdata 884 drivers/hwtracing/coresight/coresight-etm3x.c drvdata->boot_enable = true; drvdata 901 drivers/hwtracing/coresight/coresight-etm3x.c struct etm_drvdata *drvdata = dev_get_drvdata(dev); drvdata 903 drivers/hwtracing/coresight/coresight-etm3x.c if (drvdata && !IS_ERR(drvdata->atclk)) drvdata 904 drivers/hwtracing/coresight/coresight-etm3x.c clk_disable_unprepare(drvdata->atclk); drvdata 911 drivers/hwtracing/coresight/coresight-etm3x.c struct etm_drvdata *drvdata = dev_get_drvdata(dev); drvdata 913 drivers/hwtracing/coresight/coresight-etm3x.c if (drvdata && !IS_ERR(drvdata->atclk)) drvdata 914 drivers/hwtracing/coresight/coresight-etm3x.c clk_prepare_enable(drvdata->atclk); drvdata 13 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c static int etm4_set_mode_exclude(struct etmv4_drvdata *drvdata, bool exclude) drvdata 16 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 61 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 63 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c val = drvdata->nr_pe_cmp; drvdata 73 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 75 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c val = drvdata->nr_addr_cmp; drvdata 85 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 87 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c val = drvdata->nr_cntr; drvdata 97 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 99 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c val = drvdata->nr_ext_inp; drvdata 109 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 111 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c val = drvdata->numcidc; drvdata 121 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 123 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c val = drvdata->numvmidc; drvdata 133 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 135 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c val = drvdata->nrseqstate; drvdata 145 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 147 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c val = drvdata->nr_resource; drvdata 157 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 159 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c val = drvdata->nr_ss_cmp; drvdata 170 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 171 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 176 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 200 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if (drvdata->syncpr == false) drvdata 209 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if (drvdata->nr_addr_cmp == true) { drvdata 222 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c for (i = 0; i < drvdata->nrseqstate-1; i++) drvdata 231 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c for (i = 0; i < drvdata->nr_cntr; i++) { drvdata 238 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c for (i = 0; i < drvdata->nr_resource; i++) drvdata 241 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c for (i = 0; i < drvdata->nr_ss_cmp; i++) { drvdata 247 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c for (i = 0; i < drvdata->nr_addr_cmp * 2; i++) { drvdata 254 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c for (i = 0; i < drvdata->numcidc; i++) drvdata 261 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c for (i = 0; i < drvdata->numvmidc; i++) drvdata 266 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c drvdata->trcid = drvdata->cpu + 1; drvdata 268 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 279 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 280 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 291 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 292 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 297 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 299 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c etm4_set_mode_exclude(drvdata, drvdata 302 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if (drvdata->instrp0 == true) { drvdata 320 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if ((config->mode & ETM_MODE_BB) && (drvdata->trcbb == true)) drvdata 327 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c (drvdata->trccci == true)) drvdata 333 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if ((config->mode & ETMv4_MODE_CTXID) && (drvdata->ctxid_size)) drvdata 338 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if ((config->mode & ETM_MODE_VMID) && (drvdata->vmid_size)) drvdata 345 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if (drvdata->trccond == true) { drvdata 351 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if ((config->mode & ETMv4_MODE_TIMESTAMP) && (drvdata->ts_size)) drvdata 358 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c (drvdata->retstack == true)) drvdata 368 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if ((mode & BIT(0)) && (drvdata->q_support & BIT(0))) drvdata 374 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if ((mode & BIT(1)) && (drvdata->q_support & BIT(1))) drvdata 379 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c (drvdata->atbtrig == true)) drvdata 386 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c (drvdata->lpoverride == true)) drvdata 405 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c (drvdata->nooverflow == true)) drvdata 424 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c (drvdata->trc_error == true)) drvdata 432 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 443 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 444 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 455 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 456 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 461 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 462 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if (val > drvdata->nr_pe) { drvdata 463 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 468 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 478 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 479 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 490 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 491 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 496 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 497 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c switch (drvdata->nr_event) { drvdata 517 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 527 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 528 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 539 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 540 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 545 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 548 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c switch (drvdata->nr_event) { drvdata 568 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 578 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 579 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 590 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 591 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 595 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if (!drvdata->ts_size) drvdata 608 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 609 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 620 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 621 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 625 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if (drvdata->syncpr == true) drvdata 638 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 639 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 650 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 651 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 658 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if (val < drvdata->ccitmin) drvdata 671 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 672 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 683 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 684 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 688 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if (drvdata->trcbb == false) drvdata 690 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if (!drvdata->nr_addr_cmp) drvdata 711 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 712 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 723 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 724 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 729 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 733 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 743 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 744 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 755 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 756 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 761 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 765 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c val &= drvdata->s_ex_level; drvdata 767 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 777 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 778 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 790 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 791 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 796 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 800 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c val &= drvdata->ns_ex_level; drvdata 802 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 812 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 813 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 824 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 825 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 829 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if (val >= drvdata->nr_addr_cmp * 2) drvdata 836 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 838 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 849 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 850 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 852 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 860 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 870 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 871 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 878 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 884 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 895 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 896 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 899 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 902 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 906 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 916 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 917 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 922 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 926 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 932 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 943 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 944 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 946 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 949 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 956 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 962 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 972 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 973 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 981 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 984 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 992 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1004 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c etm4_set_mode_exclude(drvdata, drvdata 1007 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1018 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1019 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1021 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 1026 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1031 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1041 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1042 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1047 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 1049 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if (!drvdata->nr_addr_cmp) { drvdata 1050 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1055 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1064 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1075 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1076 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1078 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 1083 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1088 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1098 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1099 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1104 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 1106 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if (!drvdata->nr_addr_cmp) { drvdata 1107 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1112 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1121 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1132 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1133 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1135 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 1142 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1152 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1153 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1160 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 1167 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if (drvdata->numcidc) { drvdata 1173 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if (drvdata->numvmidc) { drvdata 1182 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if (drvdata->numcidc) drvdata 1184 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if (drvdata->numvmidc) drvdata 1187 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1198 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1199 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1201 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 1205 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1215 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1216 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1220 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if ((drvdata->numcidc <= 1) && (drvdata->numvmidc <= 1)) drvdata 1222 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if (val >= (drvdata->numcidc >= drvdata->numvmidc ? drvdata 1223 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c drvdata->numcidc : drvdata->numvmidc)) drvdata 1226 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 1231 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1241 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1242 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1253 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1254 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1258 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if (val >= drvdata->nrseqstate - 1) drvdata 1265 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 1267 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1277 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1278 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1289 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1290 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1294 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if (val >= drvdata->nrseqstate) drvdata 1308 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1309 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1311 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 1314 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1324 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1325 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1330 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 1334 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1344 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1345 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1356 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1357 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1361 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if (!(drvdata->nrseqstate)) drvdata 1374 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1375 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1386 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1387 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1391 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if (val >= drvdata->nr_cntr) drvdata 1398 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 1400 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1411 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1412 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1414 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 1417 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1427 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1428 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1435 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 1438 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1449 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1450 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1452 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 1455 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1465 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1466 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1473 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 1476 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1487 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1488 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1490 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 1493 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1503 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1504 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1509 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 1512 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1522 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1523 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1534 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1535 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1540 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if ((val == 0) || (val >= drvdata->nr_resource)) drvdata 1547 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 1549 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1560 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1561 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1563 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 1566 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1576 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1577 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1582 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 1589 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1599 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1600 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1611 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1612 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1616 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if (val >= drvdata->numcidc) drvdata 1623 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 1625 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1636 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1637 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1646 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 1649 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1659 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1660 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1679 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if (!drvdata->ctxid_size || !drvdata->numcidc) drvdata 1684 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 1687 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1697 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1698 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1707 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 1710 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1720 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1721 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1735 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if (!drvdata->ctxid_size || !drvdata->numcidc) drvdata 1740 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 1745 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c switch (drvdata->numcidc) { drvdata 1792 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c for (i = 0; i < drvdata->numcidc; i++) { drvdata 1812 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1822 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1823 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1834 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1835 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1839 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if (val >= drvdata->numvmidc) drvdata 1846 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 1848 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1858 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1859 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1870 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1871 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1877 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if (!drvdata->vmid_size || !drvdata->numvmidc) drvdata 1882 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 1884 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1893 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1894 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1896 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 1899 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 1909 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 1910 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_config *config = &drvdata->config; drvdata 1916 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c if (!drvdata->vmid_size || !drvdata->numvmidc) drvdata 1921 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_lock(&drvdata->spinlock); drvdata 1927 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c switch (drvdata->numvmidc) { drvdata 1975 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c for (i = 0; i < drvdata->numvmidc; i++) { drvdata 1994 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c spin_unlock(&drvdata->spinlock); drvdata 2003 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 2005 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c val = drvdata->cpu; drvdata 2075 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c struct etmv4_drvdata *drvdata = dev_get_drvdata(dev); drvdata 2078 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c reg.addr = drvdata->base + offset; drvdata 2083 drivers/hwtracing/coresight/coresight-etm4x-sysfs.c smp_call_function_single(drvdata->cpu, do_smp_cross_read, ®, 1); drvdata 44 drivers/hwtracing/coresight/coresight-etm4x.c static int etm4_set_event_filters(struct etmv4_drvdata *drvdata, drvdata 49 drivers/hwtracing/coresight/coresight-etm4x.c static void etm4_os_unlock(struct etmv4_drvdata *drvdata) drvdata 52 drivers/hwtracing/coresight/coresight-etm4x.c writel_relaxed(0x0, drvdata->base + TRCOSLAR); drvdata 53 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->os_unlock = true; drvdata 71 drivers/hwtracing/coresight/coresight-etm4x.c struct etmv4_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 73 drivers/hwtracing/coresight/coresight-etm4x.c return drvdata->cpu; drvdata 78 drivers/hwtracing/coresight/coresight-etm4x.c struct etmv4_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 80 drivers/hwtracing/coresight/coresight-etm4x.c return drvdata->trcid; drvdata 84 drivers/hwtracing/coresight/coresight-etm4x.c struct etmv4_drvdata *drvdata; drvdata 88 drivers/hwtracing/coresight/coresight-etm4x.c static int etm4_enable_hw(struct etmv4_drvdata *drvdata) drvdata 91 drivers/hwtracing/coresight/coresight-etm4x.c struct etmv4_config *config = &drvdata->config; drvdata 92 drivers/hwtracing/coresight/coresight-etm4x.c struct device *etm_dev = &drvdata->csdev->dev; drvdata 94 drivers/hwtracing/coresight/coresight-etm4x.c CS_UNLOCK(drvdata->base); drvdata 96 drivers/hwtracing/coresight/coresight-etm4x.c etm4_os_unlock(drvdata); drvdata 98 drivers/hwtracing/coresight/coresight-etm4x.c rc = coresight_claim_device_unlocked(drvdata->base); drvdata 103 drivers/hwtracing/coresight/coresight-etm4x.c writel_relaxed(0, drvdata->base + TRCPRGCTLR); drvdata 106 drivers/hwtracing/coresight/coresight-etm4x.c if (coresight_timeout(drvdata->base, TRCSTATR, TRCSTATR_IDLE_BIT, 1)) drvdata 110 drivers/hwtracing/coresight/coresight-etm4x.c writel_relaxed(config->pe_sel, drvdata->base + TRCPROCSELR); drvdata 111 drivers/hwtracing/coresight/coresight-etm4x.c writel_relaxed(config->cfg, drvdata->base + TRCCONFIGR); drvdata 113 drivers/hwtracing/coresight/coresight-etm4x.c writel_relaxed(0x0, drvdata->base + TRCAUXCTLR); drvdata 114 drivers/hwtracing/coresight/coresight-etm4x.c writel_relaxed(config->eventctrl0, drvdata->base + TRCEVENTCTL0R); drvdata 115 drivers/hwtracing/coresight/coresight-etm4x.c writel_relaxed(config->eventctrl1, drvdata->base + TRCEVENTCTL1R); drvdata 116 drivers/hwtracing/coresight/coresight-etm4x.c writel_relaxed(config->stall_ctrl, drvdata->base + TRCSTALLCTLR); drvdata 117 drivers/hwtracing/coresight/coresight-etm4x.c writel_relaxed(config->ts_ctrl, drvdata->base + TRCTSCTLR); drvdata 118 drivers/hwtracing/coresight/coresight-etm4x.c writel_relaxed(config->syncfreq, drvdata->base + TRCSYNCPR); drvdata 119 drivers/hwtracing/coresight/coresight-etm4x.c writel_relaxed(config->ccctlr, drvdata->base + TRCCCCTLR); drvdata 120 drivers/hwtracing/coresight/coresight-etm4x.c writel_relaxed(config->bb_ctrl, drvdata->base + TRCBBCTLR); drvdata 121 drivers/hwtracing/coresight/coresight-etm4x.c writel_relaxed(drvdata->trcid, drvdata->base + TRCTRACEIDR); drvdata 122 drivers/hwtracing/coresight/coresight-etm4x.c writel_relaxed(config->vinst_ctrl, drvdata->base + TRCVICTLR); drvdata 123 drivers/hwtracing/coresight/coresight-etm4x.c writel_relaxed(config->viiectlr, drvdata->base + TRCVIIECTLR); drvdata 125 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->base + TRCVISSCTLR); drvdata 127 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->base + TRCVIPCSSCTLR); drvdata 128 drivers/hwtracing/coresight/coresight-etm4x.c for (i = 0; i < drvdata->nrseqstate - 1; i++) drvdata 130 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->base + TRCSEQEVRn(i)); drvdata 131 drivers/hwtracing/coresight/coresight-etm4x.c writel_relaxed(config->seq_rst, drvdata->base + TRCSEQRSTEVR); drvdata 132 drivers/hwtracing/coresight/coresight-etm4x.c writel_relaxed(config->seq_state, drvdata->base + TRCSEQSTR); drvdata 133 drivers/hwtracing/coresight/coresight-etm4x.c writel_relaxed(config->ext_inp, drvdata->base + TRCEXTINSELR); drvdata 134 drivers/hwtracing/coresight/coresight-etm4x.c for (i = 0; i < drvdata->nr_cntr; i++) { drvdata 136 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->base + TRCCNTRLDVRn(i)); drvdata 138 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->base + TRCCNTCTLRn(i)); drvdata 140 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->base + TRCCNTVRn(i)); drvdata 147 drivers/hwtracing/coresight/coresight-etm4x.c for (i = 2; i < drvdata->nr_resource * 2; i++) drvdata 149 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->base + TRCRSCTLRn(i)); drvdata 151 drivers/hwtracing/coresight/coresight-etm4x.c for (i = 0; i < drvdata->nr_ss_cmp; i++) { drvdata 153 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->base + TRCSSCCRn(i)); drvdata 155 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->base + TRCSSCSRn(i)); drvdata 157 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->base + TRCSSPCICRn(i)); drvdata 159 drivers/hwtracing/coresight/coresight-etm4x.c for (i = 0; i < drvdata->nr_addr_cmp; i++) { drvdata 161 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->base + TRCACVRn(i)); drvdata 163 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->base + TRCACATRn(i)); drvdata 165 drivers/hwtracing/coresight/coresight-etm4x.c for (i = 0; i < drvdata->numcidc; i++) drvdata 167 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->base + TRCCIDCVRn(i)); drvdata 168 drivers/hwtracing/coresight/coresight-etm4x.c writel_relaxed(config->ctxid_mask0, drvdata->base + TRCCIDCCTLR0); drvdata 169 drivers/hwtracing/coresight/coresight-etm4x.c writel_relaxed(config->ctxid_mask1, drvdata->base + TRCCIDCCTLR1); drvdata 171 drivers/hwtracing/coresight/coresight-etm4x.c for (i = 0; i < drvdata->numvmidc; i++) drvdata 173 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->base + TRCVMIDCVRn(i)); drvdata 174 drivers/hwtracing/coresight/coresight-etm4x.c writel_relaxed(config->vmid_mask0, drvdata->base + TRCVMIDCCTLR0); drvdata 175 drivers/hwtracing/coresight/coresight-etm4x.c writel_relaxed(config->vmid_mask1, drvdata->base + TRCVMIDCCTLR1); drvdata 181 drivers/hwtracing/coresight/coresight-etm4x.c writel_relaxed(readl_relaxed(drvdata->base + TRCPDCR) | TRCPDCR_PU, drvdata 182 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->base + TRCPDCR); drvdata 185 drivers/hwtracing/coresight/coresight-etm4x.c writel_relaxed(1, drvdata->base + TRCPRGCTLR); drvdata 188 drivers/hwtracing/coresight/coresight-etm4x.c if (coresight_timeout(drvdata->base, TRCSTATR, TRCSTATR_IDLE_BIT, 0)) drvdata 200 drivers/hwtracing/coresight/coresight-etm4x.c CS_LOCK(drvdata->base); drvdata 203 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->cpu, rc); drvdata 213 drivers/hwtracing/coresight/coresight-etm4x.c arg->rc = etm4_enable_hw(arg->drvdata); drvdata 229 drivers/hwtracing/coresight/coresight-etm4x.c static int etm4_config_timestamp_event(struct etmv4_drvdata *drvdata) drvdata 234 drivers/hwtracing/coresight/coresight-etm4x.c struct etmv4_config *config = &drvdata->config; drvdata 237 drivers/hwtracing/coresight/coresight-etm4x.c if (!drvdata->nr_cntr) drvdata 241 drivers/hwtracing/coresight/coresight-etm4x.c for (ctridx = 0; ctridx < drvdata->nr_cntr; ctridx++) drvdata 246 drivers/hwtracing/coresight/coresight-etm4x.c if (ctridx == drvdata->nr_cntr) { drvdata 258 drivers/hwtracing/coresight/coresight-etm4x.c for (rselector = 2; rselector < drvdata->nr_resource * 2; rselector++) drvdata 262 drivers/hwtracing/coresight/coresight-etm4x.c if (rselector == drvdata->nr_resource * 2) { drvdata 301 drivers/hwtracing/coresight/coresight-etm4x.c static int etm4_parse_event_config(struct etmv4_drvdata *drvdata, drvdata 305 drivers/hwtracing/coresight/coresight-etm4x.c struct etmv4_config *config = &drvdata->config; drvdata 326 drivers/hwtracing/coresight/coresight-etm4x.c ret = etm4_set_event_filters(drvdata, event); drvdata 342 drivers/hwtracing/coresight/coresight-etm4x.c ret = etm4_config_timestamp_event(drvdata); drvdata 360 drivers/hwtracing/coresight/coresight-etm4x.c if ((attr->config & BIT(ETM_OPT_RETSTK)) && drvdata->retstack) drvdata 372 drivers/hwtracing/coresight/coresight-etm4x.c struct etmv4_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 374 drivers/hwtracing/coresight/coresight-etm4x.c if (WARN_ON_ONCE(drvdata->cpu != smp_processor_id())) { drvdata 380 drivers/hwtracing/coresight/coresight-etm4x.c ret = etm4_parse_event_config(drvdata, event); drvdata 384 drivers/hwtracing/coresight/coresight-etm4x.c ret = etm4_enable_hw(drvdata); drvdata 392 drivers/hwtracing/coresight/coresight-etm4x.c struct etmv4_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 396 drivers/hwtracing/coresight/coresight-etm4x.c spin_lock(&drvdata->spinlock); drvdata 402 drivers/hwtracing/coresight/coresight-etm4x.c arg.drvdata = drvdata; drvdata 403 drivers/hwtracing/coresight/coresight-etm4x.c ret = smp_call_function_single(drvdata->cpu, drvdata 408 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->sticky_enable = true; drvdata 409 drivers/hwtracing/coresight/coresight-etm4x.c spin_unlock(&drvdata->spinlock); drvdata 421 drivers/hwtracing/coresight/coresight-etm4x.c struct etmv4_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 423 drivers/hwtracing/coresight/coresight-etm4x.c val = local_cmpxchg(&drvdata->mode, CS_MODE_DISABLED, mode); drvdata 442 drivers/hwtracing/coresight/coresight-etm4x.c local_set(&drvdata->mode, CS_MODE_DISABLED); drvdata 450 drivers/hwtracing/coresight/coresight-etm4x.c struct etmv4_drvdata *drvdata = info; drvdata 452 drivers/hwtracing/coresight/coresight-etm4x.c CS_UNLOCK(drvdata->base); drvdata 455 drivers/hwtracing/coresight/coresight-etm4x.c control = readl_relaxed(drvdata->base + TRCPDCR); drvdata 457 drivers/hwtracing/coresight/coresight-etm4x.c writel_relaxed(control, drvdata->base + TRCPDCR); drvdata 459 drivers/hwtracing/coresight/coresight-etm4x.c control = readl_relaxed(drvdata->base + TRCPRGCTLR); drvdata 471 drivers/hwtracing/coresight/coresight-etm4x.c writel_relaxed(control, drvdata->base + TRCPRGCTLR); drvdata 473 drivers/hwtracing/coresight/coresight-etm4x.c coresight_disclaim_device_unlocked(drvdata->base); drvdata 475 drivers/hwtracing/coresight/coresight-etm4x.c CS_LOCK(drvdata->base); drvdata 477 drivers/hwtracing/coresight/coresight-etm4x.c dev_dbg(&drvdata->csdev->dev, drvdata 478 drivers/hwtracing/coresight/coresight-etm4x.c "cpu: %d disable smp call done\n", drvdata->cpu); drvdata 486 drivers/hwtracing/coresight/coresight-etm4x.c struct etmv4_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 488 drivers/hwtracing/coresight/coresight-etm4x.c if (WARN_ON_ONCE(drvdata->cpu != smp_processor_id())) drvdata 491 drivers/hwtracing/coresight/coresight-etm4x.c etm4_disable_hw(drvdata); drvdata 499 drivers/hwtracing/coresight/coresight-etm4x.c control = readl_relaxed(drvdata->base + TRCVICTLR); drvdata 508 drivers/hwtracing/coresight/coresight-etm4x.c struct etmv4_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 517 drivers/hwtracing/coresight/coresight-etm4x.c spin_lock(&drvdata->spinlock); drvdata 523 drivers/hwtracing/coresight/coresight-etm4x.c smp_call_function_single(drvdata->cpu, etm4_disable_hw, drvdata, 1); drvdata 525 drivers/hwtracing/coresight/coresight-etm4x.c spin_unlock(&drvdata->spinlock); drvdata 535 drivers/hwtracing/coresight/coresight-etm4x.c struct etmv4_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 542 drivers/hwtracing/coresight/coresight-etm4x.c mode = local_read(&drvdata->mode); drvdata 556 drivers/hwtracing/coresight/coresight-etm4x.c local_set(&drvdata->mode, CS_MODE_DISABLED); drvdata 578 drivers/hwtracing/coresight/coresight-etm4x.c struct etmv4_drvdata *drvdata = info; drvdata 581 drivers/hwtracing/coresight/coresight-etm4x.c etm4_os_unlock(drvdata); drvdata 583 drivers/hwtracing/coresight/coresight-etm4x.c CS_UNLOCK(drvdata->base); drvdata 586 drivers/hwtracing/coresight/coresight-etm4x.c etmidr0 = readl_relaxed(drvdata->base + TRCIDR0); drvdata 590 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->instrp0 = true; drvdata 592 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->instrp0 = false; drvdata 596 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->trcbb = true; drvdata 598 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->trcbb = false; drvdata 602 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->trccond = true; drvdata 604 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->trccond = false; drvdata 608 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->trccci = true; drvdata 610 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->trccci = false; drvdata 614 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->retstack = true; drvdata 616 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->retstack = false; drvdata 619 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->nr_event = BMVAL(etmidr0, 10, 11); drvdata 621 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->q_support = BMVAL(etmidr0, 15, 16); drvdata 623 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->ts_size = BMVAL(etmidr0, 24, 28); drvdata 626 drivers/hwtracing/coresight/coresight-etm4x.c etmidr1 = readl_relaxed(drvdata->base + TRCIDR1); drvdata 631 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->arch = BMVAL(etmidr1, 4, 11); drvdata 634 drivers/hwtracing/coresight/coresight-etm4x.c etmidr2 = readl_relaxed(drvdata->base + TRCIDR2); drvdata 636 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->ctxid_size = BMVAL(etmidr2, 5, 9); drvdata 638 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->vmid_size = BMVAL(etmidr2, 10, 14); drvdata 640 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->ccsize = BMVAL(etmidr2, 25, 28); drvdata 642 drivers/hwtracing/coresight/coresight-etm4x.c etmidr3 = readl_relaxed(drvdata->base + TRCIDR3); drvdata 644 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->ccitmin = BMVAL(etmidr3, 0, 11); drvdata 646 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->s_ex_level = BMVAL(etmidr3, 16, 19); drvdata 648 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->ns_ex_level = BMVAL(etmidr3, 20, 23); drvdata 655 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->trc_error = true; drvdata 657 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->trc_error = false; drvdata 661 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->syncpr = true; drvdata 663 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->syncpr = false; drvdata 667 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->stallctl = true; drvdata 669 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->stallctl = false; drvdata 673 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->sysstall = true; drvdata 675 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->sysstall = false; drvdata 678 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->nr_pe = BMVAL(etmidr3, 28, 30); drvdata 682 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->nooverflow = true; drvdata 684 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->nooverflow = false; drvdata 687 drivers/hwtracing/coresight/coresight-etm4x.c etmidr4 = readl_relaxed(drvdata->base + TRCIDR4); drvdata 689 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->nr_addr_cmp = BMVAL(etmidr4, 0, 3); drvdata 691 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->nr_pe_cmp = BMVAL(etmidr4, 12, 15); drvdata 698 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->nr_resource = BMVAL(etmidr4, 16, 19) + 1; drvdata 703 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->nr_ss_cmp = BMVAL(etmidr4, 20, 23); drvdata 705 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->numcidc = BMVAL(etmidr4, 24, 27); drvdata 707 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->numvmidc = BMVAL(etmidr4, 28, 31); drvdata 709 drivers/hwtracing/coresight/coresight-etm4x.c etmidr5 = readl_relaxed(drvdata->base + TRCIDR5); drvdata 711 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->nr_ext_inp = BMVAL(etmidr5, 0, 8); drvdata 713 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->trcid_size = BMVAL(etmidr5, 16, 21); drvdata 716 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->atbtrig = true; drvdata 718 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->atbtrig = false; drvdata 724 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->lpoverride = true; drvdata 726 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->lpoverride = false; drvdata 728 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->nrseqstate = BMVAL(etmidr5, 25, 27); drvdata 730 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->nr_cntr = BMVAL(etmidr5, 28, 30); drvdata 731 drivers/hwtracing/coresight/coresight-etm4x.c CS_LOCK(drvdata->base); drvdata 891 drivers/hwtracing/coresight/coresight-etm4x.c static int etm4_get_next_comparator(struct etmv4_drvdata *drvdata, u32 type) drvdata 894 drivers/hwtracing/coresight/coresight-etm4x.c struct etmv4_config *config = &drvdata->config; drvdata 900 drivers/hwtracing/coresight/coresight-etm4x.c nr_comparator = drvdata->nr_addr_cmp * 2; drvdata 930 drivers/hwtracing/coresight/coresight-etm4x.c static int etm4_set_event_filters(struct etmv4_drvdata *drvdata, drvdata 935 drivers/hwtracing/coresight/coresight-etm4x.c struct etmv4_config *config = &drvdata->config; drvdata 956 drivers/hwtracing/coresight/coresight-etm4x.c comparator = etm4_get_next_comparator(drvdata, type); drvdata 1083 drivers/hwtracing/coresight/coresight-etm4x.c static void etm4_init_trace_id(struct etmv4_drvdata *drvdata) drvdata 1085 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->trcid = coresight_get_trace_id(drvdata->cpu); drvdata 1094 drivers/hwtracing/coresight/coresight-etm4x.c struct etmv4_drvdata *drvdata; drvdata 1098 drivers/hwtracing/coresight/coresight-etm4x.c drvdata = devm_kzalloc(dev, sizeof(*drvdata), GFP_KERNEL); drvdata 1099 drivers/hwtracing/coresight/coresight-etm4x.c if (!drvdata) drvdata 1102 drivers/hwtracing/coresight/coresight-etm4x.c dev_set_drvdata(dev, drvdata); drvdata 1109 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->base = base; drvdata 1111 drivers/hwtracing/coresight/coresight-etm4x.c spin_lock_init(&drvdata->spinlock); drvdata 1113 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->cpu = coresight_get_cpu(dev); drvdata 1114 drivers/hwtracing/coresight/coresight-etm4x.c if (drvdata->cpu < 0) drvdata 1115 drivers/hwtracing/coresight/coresight-etm4x.c return drvdata->cpu; drvdata 1117 drivers/hwtracing/coresight/coresight-etm4x.c desc.name = devm_kasprintf(dev, GFP_KERNEL, "etm%d", drvdata->cpu); drvdata 1122 drivers/hwtracing/coresight/coresight-etm4x.c etmdrvdata[drvdata->cpu] = drvdata; drvdata 1124 drivers/hwtracing/coresight/coresight-etm4x.c if (smp_call_function_single(drvdata->cpu, drvdata 1125 drivers/hwtracing/coresight/coresight-etm4x.c etm4_init_arch_data, drvdata, 1)) drvdata 1142 drivers/hwtracing/coresight/coresight-etm4x.c if (etm4_arch_supported(drvdata->arch) == false) { drvdata 1147 drivers/hwtracing/coresight/coresight-etm4x.c etm4_init_trace_id(drvdata); drvdata 1148 drivers/hwtracing/coresight/coresight-etm4x.c etm4_set_default(&drvdata->config); drvdata 1163 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->csdev = coresight_register(&desc); drvdata 1164 drivers/hwtracing/coresight/coresight-etm4x.c if (IS_ERR(drvdata->csdev)) { drvdata 1165 drivers/hwtracing/coresight/coresight-etm4x.c ret = PTR_ERR(drvdata->csdev); drvdata 1169 drivers/hwtracing/coresight/coresight-etm4x.c ret = etm_perf_symlink(drvdata->csdev, true); drvdata 1171 drivers/hwtracing/coresight/coresight-etm4x.c coresight_unregister(drvdata->csdev); drvdata 1176 drivers/hwtracing/coresight/coresight-etm4x.c dev_info(&drvdata->csdev->dev, "CPU%d: ETM v%d.%d initialized\n", drvdata 1177 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->cpu, drvdata->arch >> 4, drvdata->arch & 0xf); drvdata 1180 drivers/hwtracing/coresight/coresight-etm4x.c coresight_enable(drvdata->csdev); drvdata 1181 drivers/hwtracing/coresight/coresight-etm4x.c drvdata->boot_enable = true; drvdata 51 drivers/hwtracing/coresight/coresight-funnel.c static int dynamic_funnel_enable_hw(struct funnel_drvdata *drvdata, int port) drvdata 56 drivers/hwtracing/coresight/coresight-funnel.c CS_UNLOCK(drvdata->base); drvdata 58 drivers/hwtracing/coresight/coresight-funnel.c functl = readl_relaxed(drvdata->base + FUNNEL_FUNCTL); drvdata 61 drivers/hwtracing/coresight/coresight-funnel.c rc = coresight_claim_device_unlocked(drvdata->base); drvdata 69 drivers/hwtracing/coresight/coresight-funnel.c writel_relaxed(functl, drvdata->base + FUNNEL_FUNCTL); drvdata 70 drivers/hwtracing/coresight/coresight-funnel.c writel_relaxed(drvdata->priority, drvdata->base + FUNNEL_PRICTL); drvdata 72 drivers/hwtracing/coresight/coresight-funnel.c CS_LOCK(drvdata->base); drvdata 80 drivers/hwtracing/coresight/coresight-funnel.c struct funnel_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 84 drivers/hwtracing/coresight/coresight-funnel.c spin_lock_irqsave(&drvdata->spinlock, flags); drvdata 86 drivers/hwtracing/coresight/coresight-funnel.c if (drvdata->base) drvdata 87 drivers/hwtracing/coresight/coresight-funnel.c rc = dynamic_funnel_enable_hw(drvdata, inport); drvdata 93 drivers/hwtracing/coresight/coresight-funnel.c spin_unlock_irqrestore(&drvdata->spinlock, flags); drvdata 100 drivers/hwtracing/coresight/coresight-funnel.c static void dynamic_funnel_disable_hw(struct funnel_drvdata *drvdata, drvdata 105 drivers/hwtracing/coresight/coresight-funnel.c CS_UNLOCK(drvdata->base); drvdata 107 drivers/hwtracing/coresight/coresight-funnel.c functl = readl_relaxed(drvdata->base + FUNNEL_FUNCTL); drvdata 109 drivers/hwtracing/coresight/coresight-funnel.c writel_relaxed(functl, drvdata->base + FUNNEL_FUNCTL); drvdata 113 drivers/hwtracing/coresight/coresight-funnel.c coresight_disclaim_device_unlocked(drvdata->base); drvdata 115 drivers/hwtracing/coresight/coresight-funnel.c CS_LOCK(drvdata->base); drvdata 121 drivers/hwtracing/coresight/coresight-funnel.c struct funnel_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 125 drivers/hwtracing/coresight/coresight-funnel.c spin_lock_irqsave(&drvdata->spinlock, flags); drvdata 127 drivers/hwtracing/coresight/coresight-funnel.c if (drvdata->base) drvdata 128 drivers/hwtracing/coresight/coresight-funnel.c dynamic_funnel_disable_hw(drvdata, inport); drvdata 131 drivers/hwtracing/coresight/coresight-funnel.c spin_unlock_irqrestore(&drvdata->spinlock, flags); drvdata 149 drivers/hwtracing/coresight/coresight-funnel.c struct funnel_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 150 drivers/hwtracing/coresight/coresight-funnel.c unsigned long val = drvdata->priority; drvdata 161 drivers/hwtracing/coresight/coresight-funnel.c struct funnel_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 167 drivers/hwtracing/coresight/coresight-funnel.c drvdata->priority = val; drvdata 172 drivers/hwtracing/coresight/coresight-funnel.c static u32 get_funnel_ctrl_hw(struct funnel_drvdata *drvdata) drvdata 176 drivers/hwtracing/coresight/coresight-funnel.c CS_UNLOCK(drvdata->base); drvdata 177 drivers/hwtracing/coresight/coresight-funnel.c functl = readl_relaxed(drvdata->base + FUNNEL_FUNCTL); drvdata 178 drivers/hwtracing/coresight/coresight-funnel.c CS_LOCK(drvdata->base); drvdata 187 drivers/hwtracing/coresight/coresight-funnel.c struct funnel_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 191 drivers/hwtracing/coresight/coresight-funnel.c val = get_funnel_ctrl_hw(drvdata); drvdata 211 drivers/hwtracing/coresight/coresight-funnel.c struct funnel_drvdata *drvdata; drvdata 222 drivers/hwtracing/coresight/coresight-funnel.c drvdata = devm_kzalloc(dev, sizeof(*drvdata), GFP_KERNEL); drvdata 223 drivers/hwtracing/coresight/coresight-funnel.c if (!drvdata) drvdata 226 drivers/hwtracing/coresight/coresight-funnel.c drvdata->atclk = devm_clk_get(dev, "atclk"); /* optional */ drvdata 227 drivers/hwtracing/coresight/coresight-funnel.c if (!IS_ERR(drvdata->atclk)) { drvdata 228 drivers/hwtracing/coresight/coresight-funnel.c ret = clk_prepare_enable(drvdata->atclk); drvdata 243 drivers/hwtracing/coresight/coresight-funnel.c drvdata->base = base; drvdata 247 drivers/hwtracing/coresight/coresight-funnel.c dev_set_drvdata(dev, drvdata); drvdata 261 drivers/hwtracing/coresight/coresight-funnel.c drvdata->csdev = coresight_register(&desc); drvdata 262 drivers/hwtracing/coresight/coresight-funnel.c if (IS_ERR(drvdata->csdev)) { drvdata 263 drivers/hwtracing/coresight/coresight-funnel.c ret = PTR_ERR(drvdata->csdev); drvdata 271 drivers/hwtracing/coresight/coresight-funnel.c if (ret && !IS_ERR_OR_NULL(drvdata->atclk)) drvdata 272 drivers/hwtracing/coresight/coresight-funnel.c clk_disable_unprepare(drvdata->atclk); drvdata 279 drivers/hwtracing/coresight/coresight-funnel.c struct funnel_drvdata *drvdata = dev_get_drvdata(dev); drvdata 281 drivers/hwtracing/coresight/coresight-funnel.c if (drvdata && !IS_ERR(drvdata->atclk)) drvdata 282 drivers/hwtracing/coresight/coresight-funnel.c clk_disable_unprepare(drvdata->atclk); drvdata 289 drivers/hwtracing/coresight/coresight-funnel.c struct funnel_drvdata *drvdata = dev_get_drvdata(dev); drvdata 291 drivers/hwtracing/coresight/coresight-funnel.c if (drvdata && !IS_ERR(drvdata->atclk)) drvdata 292 drivers/hwtracing/coresight/coresight-funnel.c clk_prepare_enable(drvdata->atclk); drvdata 47 drivers/hwtracing/coresight/coresight-priv.h type *drvdata = dev_get_drvdata(_dev->parent); \ drvdata 54 drivers/hwtracing/coresight/coresight-priv.h val = coresight_read_reg_pair(drvdata->base, \ drvdata 43 drivers/hwtracing/coresight/coresight-replicator.c static void dynamic_replicator_reset(struct replicator_drvdata *drvdata) drvdata 45 drivers/hwtracing/coresight/coresight-replicator.c CS_UNLOCK(drvdata->base); drvdata 47 drivers/hwtracing/coresight/coresight-replicator.c if (!coresight_claim_device_unlocked(drvdata->base)) { drvdata 48 drivers/hwtracing/coresight/coresight-replicator.c writel_relaxed(0xff, drvdata->base + REPLICATOR_IDFILTER0); drvdata 49 drivers/hwtracing/coresight/coresight-replicator.c writel_relaxed(0xff, drvdata->base + REPLICATOR_IDFILTER1); drvdata 50 drivers/hwtracing/coresight/coresight-replicator.c coresight_disclaim_device_unlocked(drvdata->base); drvdata 53 drivers/hwtracing/coresight/coresight-replicator.c CS_LOCK(drvdata->base); drvdata 59 drivers/hwtracing/coresight/coresight-replicator.c static inline void replicator_reset(struct replicator_drvdata *drvdata) drvdata 61 drivers/hwtracing/coresight/coresight-replicator.c if (drvdata->base) drvdata 62 drivers/hwtracing/coresight/coresight-replicator.c dynamic_replicator_reset(drvdata); drvdata 65 drivers/hwtracing/coresight/coresight-replicator.c static int dynamic_replicator_enable(struct replicator_drvdata *drvdata, drvdata 83 drivers/hwtracing/coresight/coresight-replicator.c CS_UNLOCK(drvdata->base); drvdata 85 drivers/hwtracing/coresight/coresight-replicator.c if ((readl_relaxed(drvdata->base + REPLICATOR_IDFILTER0) == 0xff) && drvdata 86 drivers/hwtracing/coresight/coresight-replicator.c (readl_relaxed(drvdata->base + REPLICATOR_IDFILTER1) == 0xff)) drvdata 87 drivers/hwtracing/coresight/coresight-replicator.c rc = coresight_claim_device_unlocked(drvdata->base); drvdata 91 drivers/hwtracing/coresight/coresight-replicator.c writel_relaxed(0x00, drvdata->base + reg); drvdata 92 drivers/hwtracing/coresight/coresight-replicator.c CS_LOCK(drvdata->base); drvdata 101 drivers/hwtracing/coresight/coresight-replicator.c struct replicator_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 105 drivers/hwtracing/coresight/coresight-replicator.c spin_lock_irqsave(&drvdata->spinlock, flags); drvdata 107 drivers/hwtracing/coresight/coresight-replicator.c if (drvdata->base) drvdata 108 drivers/hwtracing/coresight/coresight-replicator.c rc = dynamic_replicator_enable(drvdata, inport, drvdata 115 drivers/hwtracing/coresight/coresight-replicator.c spin_unlock_irqrestore(&drvdata->spinlock, flags); drvdata 122 drivers/hwtracing/coresight/coresight-replicator.c static void dynamic_replicator_disable(struct replicator_drvdata *drvdata, drvdata 139 drivers/hwtracing/coresight/coresight-replicator.c CS_UNLOCK(drvdata->base); drvdata 142 drivers/hwtracing/coresight/coresight-replicator.c writel_relaxed(0xff, drvdata->base + reg); drvdata 144 drivers/hwtracing/coresight/coresight-replicator.c if ((readl_relaxed(drvdata->base + REPLICATOR_IDFILTER0) == 0xff) && drvdata 145 drivers/hwtracing/coresight/coresight-replicator.c (readl_relaxed(drvdata->base + REPLICATOR_IDFILTER1) == 0xff)) drvdata 146 drivers/hwtracing/coresight/coresight-replicator.c coresight_disclaim_device_unlocked(drvdata->base); drvdata 147 drivers/hwtracing/coresight/coresight-replicator.c CS_LOCK(drvdata->base); drvdata 153 drivers/hwtracing/coresight/coresight-replicator.c struct replicator_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 157 drivers/hwtracing/coresight/coresight-replicator.c spin_lock_irqsave(&drvdata->spinlock, flags); drvdata 159 drivers/hwtracing/coresight/coresight-replicator.c if (drvdata->base) drvdata 160 drivers/hwtracing/coresight/coresight-replicator.c dynamic_replicator_disable(drvdata, inport, outport); drvdata 163 drivers/hwtracing/coresight/coresight-replicator.c spin_unlock_irqrestore(&drvdata->spinlock, flags); drvdata 204 drivers/hwtracing/coresight/coresight-replicator.c struct replicator_drvdata *drvdata; drvdata 217 drivers/hwtracing/coresight/coresight-replicator.c drvdata = devm_kzalloc(dev, sizeof(*drvdata), GFP_KERNEL); drvdata 218 drivers/hwtracing/coresight/coresight-replicator.c if (!drvdata) drvdata 221 drivers/hwtracing/coresight/coresight-replicator.c drvdata->atclk = devm_clk_get(dev, "atclk"); /* optional */ drvdata 222 drivers/hwtracing/coresight/coresight-replicator.c if (!IS_ERR(drvdata->atclk)) { drvdata 223 drivers/hwtracing/coresight/coresight-replicator.c ret = clk_prepare_enable(drvdata->atclk); drvdata 238 drivers/hwtracing/coresight/coresight-replicator.c drvdata->base = base; drvdata 242 drivers/hwtracing/coresight/coresight-replicator.c dev_set_drvdata(dev, drvdata); drvdata 257 drivers/hwtracing/coresight/coresight-replicator.c drvdata->csdev = coresight_register(&desc); drvdata 258 drivers/hwtracing/coresight/coresight-replicator.c if (IS_ERR(drvdata->csdev)) { drvdata 259 drivers/hwtracing/coresight/coresight-replicator.c ret = PTR_ERR(drvdata->csdev); drvdata 263 drivers/hwtracing/coresight/coresight-replicator.c replicator_reset(drvdata); drvdata 267 drivers/hwtracing/coresight/coresight-replicator.c if (ret && !IS_ERR_OR_NULL(drvdata->atclk)) drvdata 268 drivers/hwtracing/coresight/coresight-replicator.c clk_disable_unprepare(drvdata->atclk); drvdata 294 drivers/hwtracing/coresight/coresight-replicator.c struct replicator_drvdata *drvdata = dev_get_drvdata(dev); drvdata 296 drivers/hwtracing/coresight/coresight-replicator.c if (drvdata && !IS_ERR(drvdata->atclk)) drvdata 297 drivers/hwtracing/coresight/coresight-replicator.c clk_disable_unprepare(drvdata->atclk); drvdata 304 drivers/hwtracing/coresight/coresight-replicator.c struct replicator_drvdata *drvdata = dev_get_drvdata(dev); drvdata 306 drivers/hwtracing/coresight/coresight-replicator.c if (drvdata && !IS_ERR(drvdata->atclk)) drvdata 307 drivers/hwtracing/coresight/coresight-replicator.c clk_prepare_enable(drvdata->atclk); drvdata 85 drivers/hwtracing/coresight/coresight-stm.c #define stm_channel_addr(drvdata, ch) (drvdata->chs.base + \ drvdata 149 drivers/hwtracing/coresight/coresight-stm.c static void stm_hwevent_enable_hw(struct stm_drvdata *drvdata) drvdata 151 drivers/hwtracing/coresight/coresight-stm.c CS_UNLOCK(drvdata->base); drvdata 153 drivers/hwtracing/coresight/coresight-stm.c writel_relaxed(drvdata->stmhebsr, drvdata->base + STMHEBSR); drvdata 154 drivers/hwtracing/coresight/coresight-stm.c writel_relaxed(drvdata->stmheter, drvdata->base + STMHETER); drvdata 155 drivers/hwtracing/coresight/coresight-stm.c writel_relaxed(drvdata->stmheer, drvdata->base + STMHEER); drvdata 158 drivers/hwtracing/coresight/coresight-stm.c drvdata->base + STMHEMCR); drvdata 160 drivers/hwtracing/coresight/coresight-stm.c CS_LOCK(drvdata->base); drvdata 163 drivers/hwtracing/coresight/coresight-stm.c static void stm_port_enable_hw(struct stm_drvdata *drvdata) drvdata 165 drivers/hwtracing/coresight/coresight-stm.c CS_UNLOCK(drvdata->base); drvdata 168 drivers/hwtracing/coresight/coresight-stm.c drvdata->base + STMSPTRIGCSR); drvdata 169 drivers/hwtracing/coresight/coresight-stm.c writel_relaxed(drvdata->stmspscr, drvdata->base + STMSPSCR); drvdata 170 drivers/hwtracing/coresight/coresight-stm.c writel_relaxed(drvdata->stmsper, drvdata->base + STMSPER); drvdata 172 drivers/hwtracing/coresight/coresight-stm.c CS_LOCK(drvdata->base); drvdata 175 drivers/hwtracing/coresight/coresight-stm.c static void stm_enable_hw(struct stm_drvdata *drvdata) drvdata 177 drivers/hwtracing/coresight/coresight-stm.c if (drvdata->stmheer) drvdata 178 drivers/hwtracing/coresight/coresight-stm.c stm_hwevent_enable_hw(drvdata); drvdata 180 drivers/hwtracing/coresight/coresight-stm.c stm_port_enable_hw(drvdata); drvdata 182 drivers/hwtracing/coresight/coresight-stm.c CS_UNLOCK(drvdata->base); drvdata 185 drivers/hwtracing/coresight/coresight-stm.c writel_relaxed(0xFFF, drvdata->base + STMSYNCR); drvdata 186 drivers/hwtracing/coresight/coresight-stm.c writel_relaxed((drvdata->traceid << 16 | /* trace id */ drvdata 189 drivers/hwtracing/coresight/coresight-stm.c drvdata->base + STMTCSR); drvdata 191 drivers/hwtracing/coresight/coresight-stm.c CS_LOCK(drvdata->base); drvdata 198 drivers/hwtracing/coresight/coresight-stm.c struct stm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 203 drivers/hwtracing/coresight/coresight-stm.c val = local_cmpxchg(&drvdata->mode, CS_MODE_DISABLED, mode); drvdata 211 drivers/hwtracing/coresight/coresight-stm.c spin_lock(&drvdata->spinlock); drvdata 212 drivers/hwtracing/coresight/coresight-stm.c stm_enable_hw(drvdata); drvdata 213 drivers/hwtracing/coresight/coresight-stm.c spin_unlock(&drvdata->spinlock); drvdata 219 drivers/hwtracing/coresight/coresight-stm.c static void stm_hwevent_disable_hw(struct stm_drvdata *drvdata) drvdata 221 drivers/hwtracing/coresight/coresight-stm.c CS_UNLOCK(drvdata->base); drvdata 223 drivers/hwtracing/coresight/coresight-stm.c writel_relaxed(0x0, drvdata->base + STMHEMCR); drvdata 224 drivers/hwtracing/coresight/coresight-stm.c writel_relaxed(0x0, drvdata->base + STMHEER); drvdata 225 drivers/hwtracing/coresight/coresight-stm.c writel_relaxed(0x0, drvdata->base + STMHETER); drvdata 227 drivers/hwtracing/coresight/coresight-stm.c CS_LOCK(drvdata->base); drvdata 230 drivers/hwtracing/coresight/coresight-stm.c static void stm_port_disable_hw(struct stm_drvdata *drvdata) drvdata 232 drivers/hwtracing/coresight/coresight-stm.c CS_UNLOCK(drvdata->base); drvdata 234 drivers/hwtracing/coresight/coresight-stm.c writel_relaxed(0x0, drvdata->base + STMSPER); drvdata 235 drivers/hwtracing/coresight/coresight-stm.c writel_relaxed(0x0, drvdata->base + STMSPTRIGCSR); drvdata 237 drivers/hwtracing/coresight/coresight-stm.c CS_LOCK(drvdata->base); drvdata 240 drivers/hwtracing/coresight/coresight-stm.c static void stm_disable_hw(struct stm_drvdata *drvdata) drvdata 244 drivers/hwtracing/coresight/coresight-stm.c CS_UNLOCK(drvdata->base); drvdata 246 drivers/hwtracing/coresight/coresight-stm.c val = readl_relaxed(drvdata->base + STMTCSR); drvdata 248 drivers/hwtracing/coresight/coresight-stm.c writel_relaxed(val, drvdata->base + STMTCSR); drvdata 250 drivers/hwtracing/coresight/coresight-stm.c CS_LOCK(drvdata->base); drvdata 252 drivers/hwtracing/coresight/coresight-stm.c stm_port_disable_hw(drvdata); drvdata 253 drivers/hwtracing/coresight/coresight-stm.c if (drvdata->stmheer) drvdata 254 drivers/hwtracing/coresight/coresight-stm.c stm_hwevent_disable_hw(drvdata); drvdata 260 drivers/hwtracing/coresight/coresight-stm.c struct stm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 267 drivers/hwtracing/coresight/coresight-stm.c if (local_read(&drvdata->mode) == CS_MODE_SYSFS) { drvdata 268 drivers/hwtracing/coresight/coresight-stm.c spin_lock(&drvdata->spinlock); drvdata 269 drivers/hwtracing/coresight/coresight-stm.c stm_disable_hw(drvdata); drvdata 270 drivers/hwtracing/coresight/coresight-stm.c spin_unlock(&drvdata->spinlock); drvdata 273 drivers/hwtracing/coresight/coresight-stm.c coresight_timeout(drvdata->base, STMTCSR, STMTCSR_BUSY_BIT, 0); drvdata 277 drivers/hwtracing/coresight/coresight-stm.c local_set(&drvdata->mode, CS_MODE_DISABLED); drvdata 284 drivers/hwtracing/coresight/coresight-stm.c struct stm_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 286 drivers/hwtracing/coresight/coresight-stm.c return drvdata->traceid; drvdata 338 drivers/hwtracing/coresight/coresight-stm.c struct stm_drvdata *drvdata = container_of(stm_data, drvdata 340 drivers/hwtracing/coresight/coresight-stm.c if (!drvdata || !drvdata->csdev) drvdata 343 drivers/hwtracing/coresight/coresight-stm.c return coresight_enable(drvdata->csdev); drvdata 349 drivers/hwtracing/coresight/coresight-stm.c struct stm_drvdata *drvdata = container_of(stm_data, drvdata 351 drivers/hwtracing/coresight/coresight-stm.c if (!drvdata || !drvdata->csdev) drvdata 354 drivers/hwtracing/coresight/coresight-stm.c coresight_disable(drvdata->csdev); drvdata 361 drivers/hwtracing/coresight/coresight-stm.c struct stm_drvdata *drvdata = container_of(stm_data, drvdata 365 drivers/hwtracing/coresight/coresight-stm.c addr = drvdata->chs.phys + channel * BYTES_PER_CHANNEL; drvdata 380 drivers/hwtracing/coresight/coresight-stm.c struct stm_drvdata *drvdata = container_of(stm_data, drvdata 382 drivers/hwtracing/coresight/coresight-stm.c if (!(drvdata && local_read(&drvdata->mode))) drvdata 385 drivers/hwtracing/coresight/coresight-stm.c if (channel >= drvdata->numsp) drvdata 390 drivers/hwtracing/coresight/coresight-stm.c set_bit(channel, drvdata->chs.guaranteed); drvdata 394 drivers/hwtracing/coresight/coresight-stm.c clear_bit(channel, drvdata->chs.guaranteed); drvdata 413 drivers/hwtracing/coresight/coresight-stm.c struct stm_drvdata *drvdata = container_of(stm_data, drvdata 416 drivers/hwtracing/coresight/coresight-stm.c if (!(drvdata && local_read(&drvdata->mode))) drvdata 419 drivers/hwtracing/coresight/coresight-stm.c if (channel >= drvdata->numsp) drvdata 422 drivers/hwtracing/coresight/coresight-stm.c ch_addr = stm_channel_addr(drvdata, channel); drvdata 425 drivers/hwtracing/coresight/coresight-stm.c flags |= test_bit(channel, drvdata->chs.guaranteed) ? drvdata 428 drivers/hwtracing/coresight/coresight-stm.c if (size > drvdata->write_bytes) drvdata 429 drivers/hwtracing/coresight/coresight-stm.c size = drvdata->write_bytes; drvdata 442 drivers/hwtracing/coresight/coresight-stm.c stm_send(ch_addr, payload, 1, drvdata->write_bytes); drvdata 449 drivers/hwtracing/coresight/coresight-stm.c drvdata->write_bytes); drvdata 462 drivers/hwtracing/coresight/coresight-stm.c struct stm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 463 drivers/hwtracing/coresight/coresight-stm.c unsigned long val = drvdata->stmheer; drvdata 472 drivers/hwtracing/coresight/coresight-stm.c struct stm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 480 drivers/hwtracing/coresight/coresight-stm.c drvdata->stmheer = val; drvdata 482 drivers/hwtracing/coresight/coresight-stm.c drvdata->stmheter = val; drvdata 491 drivers/hwtracing/coresight/coresight-stm.c struct stm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 492 drivers/hwtracing/coresight/coresight-stm.c unsigned long val = drvdata->stmhebsr; drvdata 501 drivers/hwtracing/coresight/coresight-stm.c struct stm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 509 drivers/hwtracing/coresight/coresight-stm.c drvdata->stmhebsr = val; drvdata 518 drivers/hwtracing/coresight/coresight-stm.c struct stm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 521 drivers/hwtracing/coresight/coresight-stm.c if (!local_read(&drvdata->mode)) { drvdata 522 drivers/hwtracing/coresight/coresight-stm.c val = drvdata->stmspscr; drvdata 524 drivers/hwtracing/coresight/coresight-stm.c spin_lock(&drvdata->spinlock); drvdata 525 drivers/hwtracing/coresight/coresight-stm.c val = readl_relaxed(drvdata->base + STMSPSCR); drvdata 526 drivers/hwtracing/coresight/coresight-stm.c spin_unlock(&drvdata->spinlock); drvdata 536 drivers/hwtracing/coresight/coresight-stm.c struct stm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 544 drivers/hwtracing/coresight/coresight-stm.c spin_lock(&drvdata->spinlock); drvdata 545 drivers/hwtracing/coresight/coresight-stm.c drvdata->stmspscr = val; drvdata 547 drivers/hwtracing/coresight/coresight-stm.c if (local_read(&drvdata->mode)) { drvdata 548 drivers/hwtracing/coresight/coresight-stm.c CS_UNLOCK(drvdata->base); drvdata 550 drivers/hwtracing/coresight/coresight-stm.c stmsper = readl_relaxed(drvdata->base + STMSPER); drvdata 551 drivers/hwtracing/coresight/coresight-stm.c writel_relaxed(0x0, drvdata->base + STMSPER); drvdata 552 drivers/hwtracing/coresight/coresight-stm.c writel_relaxed(drvdata->stmspscr, drvdata->base + STMSPSCR); drvdata 553 drivers/hwtracing/coresight/coresight-stm.c writel_relaxed(stmsper, drvdata->base + STMSPER); drvdata 554 drivers/hwtracing/coresight/coresight-stm.c CS_LOCK(drvdata->base); drvdata 556 drivers/hwtracing/coresight/coresight-stm.c spin_unlock(&drvdata->spinlock); drvdata 565 drivers/hwtracing/coresight/coresight-stm.c struct stm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 568 drivers/hwtracing/coresight/coresight-stm.c if (!local_read(&drvdata->mode)) { drvdata 569 drivers/hwtracing/coresight/coresight-stm.c val = drvdata->stmsper; drvdata 571 drivers/hwtracing/coresight/coresight-stm.c spin_lock(&drvdata->spinlock); drvdata 572 drivers/hwtracing/coresight/coresight-stm.c val = readl_relaxed(drvdata->base + STMSPER); drvdata 573 drivers/hwtracing/coresight/coresight-stm.c spin_unlock(&drvdata->spinlock); drvdata 583 drivers/hwtracing/coresight/coresight-stm.c struct stm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 591 drivers/hwtracing/coresight/coresight-stm.c spin_lock(&drvdata->spinlock); drvdata 592 drivers/hwtracing/coresight/coresight-stm.c drvdata->stmsper = val; drvdata 594 drivers/hwtracing/coresight/coresight-stm.c if (local_read(&drvdata->mode)) { drvdata 595 drivers/hwtracing/coresight/coresight-stm.c CS_UNLOCK(drvdata->base); drvdata 596 drivers/hwtracing/coresight/coresight-stm.c writel_relaxed(drvdata->stmsper, drvdata->base + STMSPER); drvdata 597 drivers/hwtracing/coresight/coresight-stm.c CS_LOCK(drvdata->base); drvdata 599 drivers/hwtracing/coresight/coresight-stm.c spin_unlock(&drvdata->spinlock); drvdata 609 drivers/hwtracing/coresight/coresight-stm.c struct stm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 611 drivers/hwtracing/coresight/coresight-stm.c val = drvdata->traceid; drvdata 621 drivers/hwtracing/coresight/coresight-stm.c struct stm_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 628 drivers/hwtracing/coresight/coresight-stm.c drvdata->traceid = val & 0x7f; drvdata 777 drivers/hwtracing/coresight/coresight-stm.c static u32 stm_fundamental_data_size(struct stm_drvdata *drvdata) drvdata 784 drivers/hwtracing/coresight/coresight-stm.c stmspfeat2r = readl_relaxed(drvdata->base + STMSPFEAT2R); drvdata 794 drivers/hwtracing/coresight/coresight-stm.c static u32 stm_num_stimulus_port(struct stm_drvdata *drvdata) drvdata 798 drivers/hwtracing/coresight/coresight-stm.c numsp = readl_relaxed(drvdata->base + CORESIGHT_DEVID); drvdata 809 drivers/hwtracing/coresight/coresight-stm.c static void stm_init_default_data(struct stm_drvdata *drvdata) drvdata 812 drivers/hwtracing/coresight/coresight-stm.c drvdata->stmspscr = 0x0; drvdata 818 drivers/hwtracing/coresight/coresight-stm.c drvdata->stmsper = ~0x0; drvdata 826 drivers/hwtracing/coresight/coresight-stm.c drvdata->traceid = 0x1; drvdata 829 drivers/hwtracing/coresight/coresight-stm.c bitmap_clear(drvdata->chs.guaranteed, 0, drvdata->numsp); drvdata 832 drivers/hwtracing/coresight/coresight-stm.c static void stm_init_generic_data(struct stm_drvdata *drvdata, drvdata 835 drivers/hwtracing/coresight/coresight-stm.c drvdata->stm.name = name; drvdata 841 drivers/hwtracing/coresight/coresight-stm.c drvdata->stm.sw_start = 1; drvdata 842 drivers/hwtracing/coresight/coresight-stm.c drvdata->stm.sw_end = 1; drvdata 843 drivers/hwtracing/coresight/coresight-stm.c drvdata->stm.hw_override = true; drvdata 844 drivers/hwtracing/coresight/coresight-stm.c drvdata->stm.sw_nchannels = drvdata->numsp; drvdata 845 drivers/hwtracing/coresight/coresight-stm.c drvdata->stm.sw_mmiosz = BYTES_PER_CHANNEL; drvdata 846 drivers/hwtracing/coresight/coresight-stm.c drvdata->stm.packet = stm_generic_packet; drvdata 847 drivers/hwtracing/coresight/coresight-stm.c drvdata->stm.mmio_addr = stm_mmio_addr; drvdata 848 drivers/hwtracing/coresight/coresight-stm.c drvdata->stm.link = stm_generic_link; drvdata 849 drivers/hwtracing/coresight/coresight-stm.c drvdata->stm.unlink = stm_generic_unlink; drvdata 850 drivers/hwtracing/coresight/coresight-stm.c drvdata->stm.set_options = stm_generic_set_options; drvdata 860 drivers/hwtracing/coresight/coresight-stm.c struct stm_drvdata *drvdata; drvdata 870 drivers/hwtracing/coresight/coresight-stm.c drvdata = devm_kzalloc(dev, sizeof(*drvdata), GFP_KERNEL); drvdata 871 drivers/hwtracing/coresight/coresight-stm.c if (!drvdata) drvdata 874 drivers/hwtracing/coresight/coresight-stm.c drvdata->atclk = devm_clk_get(&adev->dev, "atclk"); /* optional */ drvdata 875 drivers/hwtracing/coresight/coresight-stm.c if (!IS_ERR(drvdata->atclk)) { drvdata 876 drivers/hwtracing/coresight/coresight-stm.c ret = clk_prepare_enable(drvdata->atclk); drvdata 880 drivers/hwtracing/coresight/coresight-stm.c dev_set_drvdata(dev, drvdata); drvdata 885 drivers/hwtracing/coresight/coresight-stm.c drvdata->base = base; drvdata 890 drivers/hwtracing/coresight/coresight-stm.c drvdata->chs.phys = ch_res.start; drvdata 895 drivers/hwtracing/coresight/coresight-stm.c drvdata->chs.base = base; drvdata 897 drivers/hwtracing/coresight/coresight-stm.c drvdata->write_bytes = stm_fundamental_data_size(drvdata); drvdata 900 drivers/hwtracing/coresight/coresight-stm.c drvdata->numsp = boot_nr_channel; drvdata 902 drivers/hwtracing/coresight/coresight-stm.c drvdata->numsp = stm_num_stimulus_port(drvdata); drvdata 904 drivers/hwtracing/coresight/coresight-stm.c bitmap_size = BITS_TO_LONGS(drvdata->numsp) * sizeof(long); drvdata 909 drivers/hwtracing/coresight/coresight-stm.c drvdata->chs.guaranteed = guaranteed; drvdata 911 drivers/hwtracing/coresight/coresight-stm.c spin_lock_init(&drvdata->spinlock); drvdata 913 drivers/hwtracing/coresight/coresight-stm.c stm_init_default_data(drvdata); drvdata 914 drivers/hwtracing/coresight/coresight-stm.c stm_init_generic_data(drvdata, desc.name); drvdata 916 drivers/hwtracing/coresight/coresight-stm.c if (stm_register_device(dev, &drvdata->stm, THIS_MODULE)) { drvdata 936 drivers/hwtracing/coresight/coresight-stm.c drvdata->csdev = coresight_register(&desc); drvdata 937 drivers/hwtracing/coresight/coresight-stm.c if (IS_ERR(drvdata->csdev)) { drvdata 938 drivers/hwtracing/coresight/coresight-stm.c ret = PTR_ERR(drvdata->csdev); drvdata 944 drivers/hwtracing/coresight/coresight-stm.c dev_info(&drvdata->csdev->dev, "%s initialized\n", drvdata 949 drivers/hwtracing/coresight/coresight-stm.c stm_unregister_device(&drvdata->stm); drvdata 956 drivers/hwtracing/coresight/coresight-stm.c struct stm_drvdata *drvdata = dev_get_drvdata(dev); drvdata 958 drivers/hwtracing/coresight/coresight-stm.c if (drvdata && !IS_ERR(drvdata->atclk)) drvdata 959 drivers/hwtracing/coresight/coresight-stm.c clk_disable_unprepare(drvdata->atclk); drvdata 966 drivers/hwtracing/coresight/coresight-stm.c struct stm_drvdata *drvdata = dev_get_drvdata(dev); drvdata 968 drivers/hwtracing/coresight/coresight-stm.c if (drvdata && !IS_ERR(drvdata->atclk)) drvdata 969 drivers/hwtracing/coresight/coresight-stm.c clk_prepare_enable(drvdata->atclk); drvdata 19 drivers/hwtracing/coresight/coresight-tmc-etf.c static void __tmc_etb_enable_hw(struct tmc_drvdata *drvdata) drvdata 21 drivers/hwtracing/coresight/coresight-tmc-etf.c CS_UNLOCK(drvdata->base); drvdata 24 drivers/hwtracing/coresight/coresight-tmc-etf.c tmc_wait_for_tmcready(drvdata); drvdata 26 drivers/hwtracing/coresight/coresight-tmc-etf.c writel_relaxed(TMC_MODE_CIRCULAR_BUFFER, drvdata->base + TMC_MODE); drvdata 30 drivers/hwtracing/coresight/coresight-tmc-etf.c drvdata->base + TMC_FFCR); drvdata 32 drivers/hwtracing/coresight/coresight-tmc-etf.c writel_relaxed(drvdata->trigger_cntr, drvdata->base + TMC_TRG); drvdata 33 drivers/hwtracing/coresight/coresight-tmc-etf.c tmc_enable_hw(drvdata); drvdata 35 drivers/hwtracing/coresight/coresight-tmc-etf.c CS_LOCK(drvdata->base); drvdata 38 drivers/hwtracing/coresight/coresight-tmc-etf.c static int tmc_etb_enable_hw(struct tmc_drvdata *drvdata) drvdata 40 drivers/hwtracing/coresight/coresight-tmc-etf.c int rc = coresight_claim_device(drvdata->base); drvdata 45 drivers/hwtracing/coresight/coresight-tmc-etf.c __tmc_etb_enable_hw(drvdata); drvdata 49 drivers/hwtracing/coresight/coresight-tmc-etf.c static void tmc_etb_dump_hw(struct tmc_drvdata *drvdata) drvdata 55 drivers/hwtracing/coresight/coresight-tmc-etf.c lost = readl_relaxed(drvdata->base + TMC_STS) & TMC_STS_FULL; drvdata 56 drivers/hwtracing/coresight/coresight-tmc-etf.c bufp = drvdata->buf; drvdata 57 drivers/hwtracing/coresight/coresight-tmc-etf.c drvdata->len = 0; drvdata 59 drivers/hwtracing/coresight/coresight-tmc-etf.c read_data = readl_relaxed(drvdata->base + TMC_RRD); drvdata 64 drivers/hwtracing/coresight/coresight-tmc-etf.c drvdata->len += 4; drvdata 68 drivers/hwtracing/coresight/coresight-tmc-etf.c coresight_insert_barrier_packet(drvdata->buf); drvdata 72 drivers/hwtracing/coresight/coresight-tmc-etf.c static void __tmc_etb_disable_hw(struct tmc_drvdata *drvdata) drvdata 74 drivers/hwtracing/coresight/coresight-tmc-etf.c CS_UNLOCK(drvdata->base); drvdata 76 drivers/hwtracing/coresight/coresight-tmc-etf.c tmc_flush_and_stop(drvdata); drvdata 81 drivers/hwtracing/coresight/coresight-tmc-etf.c if (drvdata->mode == CS_MODE_SYSFS) drvdata 82 drivers/hwtracing/coresight/coresight-tmc-etf.c tmc_etb_dump_hw(drvdata); drvdata 83 drivers/hwtracing/coresight/coresight-tmc-etf.c tmc_disable_hw(drvdata); drvdata 85 drivers/hwtracing/coresight/coresight-tmc-etf.c CS_LOCK(drvdata->base); drvdata 88 drivers/hwtracing/coresight/coresight-tmc-etf.c static void tmc_etb_disable_hw(struct tmc_drvdata *drvdata) drvdata 90 drivers/hwtracing/coresight/coresight-tmc-etf.c __tmc_etb_disable_hw(drvdata); drvdata 91 drivers/hwtracing/coresight/coresight-tmc-etf.c coresight_disclaim_device(drvdata->base); drvdata 94 drivers/hwtracing/coresight/coresight-tmc-etf.c static void __tmc_etf_enable_hw(struct tmc_drvdata *drvdata) drvdata 96 drivers/hwtracing/coresight/coresight-tmc-etf.c CS_UNLOCK(drvdata->base); drvdata 99 drivers/hwtracing/coresight/coresight-tmc-etf.c tmc_wait_for_tmcready(drvdata); drvdata 101 drivers/hwtracing/coresight/coresight-tmc-etf.c writel_relaxed(TMC_MODE_HARDWARE_FIFO, drvdata->base + TMC_MODE); drvdata 103 drivers/hwtracing/coresight/coresight-tmc-etf.c drvdata->base + TMC_FFCR); drvdata 104 drivers/hwtracing/coresight/coresight-tmc-etf.c writel_relaxed(0x0, drvdata->base + TMC_BUFWM); drvdata 105 drivers/hwtracing/coresight/coresight-tmc-etf.c tmc_enable_hw(drvdata); drvdata 107 drivers/hwtracing/coresight/coresight-tmc-etf.c CS_LOCK(drvdata->base); drvdata 110 drivers/hwtracing/coresight/coresight-tmc-etf.c static int tmc_etf_enable_hw(struct tmc_drvdata *drvdata) drvdata 112 drivers/hwtracing/coresight/coresight-tmc-etf.c int rc = coresight_claim_device(drvdata->base); drvdata 117 drivers/hwtracing/coresight/coresight-tmc-etf.c __tmc_etf_enable_hw(drvdata); drvdata 121 drivers/hwtracing/coresight/coresight-tmc-etf.c static void tmc_etf_disable_hw(struct tmc_drvdata *drvdata) drvdata 123 drivers/hwtracing/coresight/coresight-tmc-etf.c CS_UNLOCK(drvdata->base); drvdata 125 drivers/hwtracing/coresight/coresight-tmc-etf.c tmc_flush_and_stop(drvdata); drvdata 126 drivers/hwtracing/coresight/coresight-tmc-etf.c tmc_disable_hw(drvdata); drvdata 127 drivers/hwtracing/coresight/coresight-tmc-etf.c coresight_disclaim_device_unlocked(drvdata->base); drvdata 128 drivers/hwtracing/coresight/coresight-tmc-etf.c CS_LOCK(drvdata->base); drvdata 136 drivers/hwtracing/coresight/coresight-tmc-etf.c ssize_t tmc_etb_get_sysfs_trace(struct tmc_drvdata *drvdata, drvdata 142 drivers/hwtracing/coresight/coresight-tmc-etf.c if (pos + actual > drvdata->len) drvdata 143 drivers/hwtracing/coresight/coresight-tmc-etf.c actual = drvdata->len - pos; drvdata 145 drivers/hwtracing/coresight/coresight-tmc-etf.c *bufpp = drvdata->buf + pos; drvdata 155 drivers/hwtracing/coresight/coresight-tmc-etf.c struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 161 drivers/hwtracing/coresight/coresight-tmc-etf.c spin_lock_irqsave(&drvdata->spinlock, flags); drvdata 162 drivers/hwtracing/coresight/coresight-tmc-etf.c if (!drvdata->buf) { drvdata 163 drivers/hwtracing/coresight/coresight-tmc-etf.c spin_unlock_irqrestore(&drvdata->spinlock, flags); drvdata 166 drivers/hwtracing/coresight/coresight-tmc-etf.c buf = kzalloc(drvdata->size, GFP_KERNEL); drvdata 171 drivers/hwtracing/coresight/coresight-tmc-etf.c spin_lock_irqsave(&drvdata->spinlock, flags); drvdata 174 drivers/hwtracing/coresight/coresight-tmc-etf.c if (drvdata->reading) { drvdata 184 drivers/hwtracing/coresight/coresight-tmc-etf.c if (drvdata->mode == CS_MODE_SYSFS) { drvdata 198 drivers/hwtracing/coresight/coresight-tmc-etf.c if (drvdata->buf) { drvdata 199 drivers/hwtracing/coresight/coresight-tmc-etf.c memset(drvdata->buf, 0, drvdata->size); drvdata 202 drivers/hwtracing/coresight/coresight-tmc-etf.c drvdata->buf = buf; drvdata 205 drivers/hwtracing/coresight/coresight-tmc-etf.c ret = tmc_etb_enable_hw(drvdata); drvdata 207 drivers/hwtracing/coresight/coresight-tmc-etf.c drvdata->mode = CS_MODE_SYSFS; drvdata 214 drivers/hwtracing/coresight/coresight-tmc-etf.c spin_unlock_irqrestore(&drvdata->spinlock, flags); drvdata 228 drivers/hwtracing/coresight/coresight-tmc-etf.c struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 231 drivers/hwtracing/coresight/coresight-tmc-etf.c spin_lock_irqsave(&drvdata->spinlock, flags); drvdata 234 drivers/hwtracing/coresight/coresight-tmc-etf.c if (drvdata->reading) drvdata 240 drivers/hwtracing/coresight/coresight-tmc-etf.c if (drvdata->mode == CS_MODE_SYSFS) { drvdata 248 drivers/hwtracing/coresight/coresight-tmc-etf.c if (drvdata->pid != -1 && drvdata->pid != pid) { drvdata 261 drivers/hwtracing/coresight/coresight-tmc-etf.c if (drvdata->pid == pid) { drvdata 266 drivers/hwtracing/coresight/coresight-tmc-etf.c ret = tmc_etb_enable_hw(drvdata); drvdata 269 drivers/hwtracing/coresight/coresight-tmc-etf.c drvdata->pid = pid; drvdata 270 drivers/hwtracing/coresight/coresight-tmc-etf.c drvdata->mode = CS_MODE_PERF; drvdata 274 drivers/hwtracing/coresight/coresight-tmc-etf.c spin_unlock_irqrestore(&drvdata->spinlock, flags); drvdata 307 drivers/hwtracing/coresight/coresight-tmc-etf.c struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 309 drivers/hwtracing/coresight/coresight-tmc-etf.c spin_lock_irqsave(&drvdata->spinlock, flags); drvdata 311 drivers/hwtracing/coresight/coresight-tmc-etf.c if (drvdata->reading) { drvdata 312 drivers/hwtracing/coresight/coresight-tmc-etf.c spin_unlock_irqrestore(&drvdata->spinlock, flags); drvdata 317 drivers/hwtracing/coresight/coresight-tmc-etf.c spin_unlock_irqrestore(&drvdata->spinlock, flags); drvdata 322 drivers/hwtracing/coresight/coresight-tmc-etf.c WARN_ON_ONCE(drvdata->mode == CS_MODE_DISABLED); drvdata 323 drivers/hwtracing/coresight/coresight-tmc-etf.c tmc_etb_disable_hw(drvdata); drvdata 325 drivers/hwtracing/coresight/coresight-tmc-etf.c drvdata->pid = -1; drvdata 326 drivers/hwtracing/coresight/coresight-tmc-etf.c drvdata->mode = CS_MODE_DISABLED; drvdata 328 drivers/hwtracing/coresight/coresight-tmc-etf.c spin_unlock_irqrestore(&drvdata->spinlock, flags); drvdata 339 drivers/hwtracing/coresight/coresight-tmc-etf.c struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 342 drivers/hwtracing/coresight/coresight-tmc-etf.c spin_lock_irqsave(&drvdata->spinlock, flags); drvdata 343 drivers/hwtracing/coresight/coresight-tmc-etf.c if (drvdata->reading) { drvdata 344 drivers/hwtracing/coresight/coresight-tmc-etf.c spin_unlock_irqrestore(&drvdata->spinlock, flags); drvdata 349 drivers/hwtracing/coresight/coresight-tmc-etf.c ret = tmc_etf_enable_hw(drvdata); drvdata 351 drivers/hwtracing/coresight/coresight-tmc-etf.c drvdata->mode = CS_MODE_SYSFS; drvdata 357 drivers/hwtracing/coresight/coresight-tmc-etf.c spin_unlock_irqrestore(&drvdata->spinlock, flags); drvdata 368 drivers/hwtracing/coresight/coresight-tmc-etf.c struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 371 drivers/hwtracing/coresight/coresight-tmc-etf.c spin_lock_irqsave(&drvdata->spinlock, flags); drvdata 372 drivers/hwtracing/coresight/coresight-tmc-etf.c if (drvdata->reading) { drvdata 373 drivers/hwtracing/coresight/coresight-tmc-etf.c spin_unlock_irqrestore(&drvdata->spinlock, flags); drvdata 378 drivers/hwtracing/coresight/coresight-tmc-etf.c tmc_etf_disable_hw(drvdata); drvdata 379 drivers/hwtracing/coresight/coresight-tmc-etf.c drvdata->mode = CS_MODE_DISABLED; drvdata 382 drivers/hwtracing/coresight/coresight-tmc-etf.c spin_unlock_irqrestore(&drvdata->spinlock, flags); drvdata 452 drivers/hwtracing/coresight/coresight-tmc-etf.c struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 458 drivers/hwtracing/coresight/coresight-tmc-etf.c if (WARN_ON_ONCE(drvdata->mode != CS_MODE_PERF)) drvdata 461 drivers/hwtracing/coresight/coresight-tmc-etf.c spin_lock_irqsave(&drvdata->spinlock, flags); drvdata 467 drivers/hwtracing/coresight/coresight-tmc-etf.c CS_UNLOCK(drvdata->base); drvdata 469 drivers/hwtracing/coresight/coresight-tmc-etf.c tmc_flush_and_stop(drvdata); drvdata 471 drivers/hwtracing/coresight/coresight-tmc-etf.c read_ptr = tmc_read_rrp(drvdata); drvdata 472 drivers/hwtracing/coresight/coresight-tmc-etf.c write_ptr = tmc_read_rwp(drvdata); drvdata 478 drivers/hwtracing/coresight/coresight-tmc-etf.c status = readl_relaxed(drvdata->base + TMC_STS); drvdata 481 drivers/hwtracing/coresight/coresight-tmc-etf.c to_read = drvdata->size; drvdata 483 drivers/hwtracing/coresight/coresight-tmc-etf.c to_read = CIRC_CNT(write_ptr, read_ptr, drvdata->size); drvdata 494 drivers/hwtracing/coresight/coresight-tmc-etf.c u32 mask = tmc_get_memwidth_mask(drvdata); drvdata 502 drivers/hwtracing/coresight/coresight-tmc-etf.c read_ptr = (write_ptr + drvdata->size) - to_read; drvdata 504 drivers/hwtracing/coresight/coresight-tmc-etf.c if (read_ptr > (drvdata->size - 1)) drvdata 505 drivers/hwtracing/coresight/coresight-tmc-etf.c read_ptr -= drvdata->size; drvdata 507 drivers/hwtracing/coresight/coresight-tmc-etf.c tmc_write_rrp(drvdata, read_ptr); drvdata 527 drivers/hwtracing/coresight/coresight-tmc-etf.c *buf_ptr = readl_relaxed(drvdata->base + TMC_RRD); drvdata 552 drivers/hwtracing/coresight/coresight-tmc-etf.c CS_LOCK(drvdata->base); drvdata 554 drivers/hwtracing/coresight/coresight-tmc-etf.c spin_unlock_irqrestore(&drvdata->spinlock, flags); drvdata 581 drivers/hwtracing/coresight/coresight-tmc-etf.c int tmc_read_prepare_etb(struct tmc_drvdata *drvdata) drvdata 588 drivers/hwtracing/coresight/coresight-tmc-etf.c if (WARN_ON_ONCE(drvdata->config_type != TMC_CONFIG_TYPE_ETB && drvdata 589 drivers/hwtracing/coresight/coresight-tmc-etf.c drvdata->config_type != TMC_CONFIG_TYPE_ETF)) drvdata 592 drivers/hwtracing/coresight/coresight-tmc-etf.c spin_lock_irqsave(&drvdata->spinlock, flags); drvdata 594 drivers/hwtracing/coresight/coresight-tmc-etf.c if (drvdata->reading) { drvdata 600 drivers/hwtracing/coresight/coresight-tmc-etf.c mode = readl_relaxed(drvdata->base + TMC_MODE); drvdata 607 drivers/hwtracing/coresight/coresight-tmc-etf.c if (drvdata->mode == CS_MODE_PERF) { drvdata 613 drivers/hwtracing/coresight/coresight-tmc-etf.c if (drvdata->buf == NULL) { drvdata 619 drivers/hwtracing/coresight/coresight-tmc-etf.c if (drvdata->mode == CS_MODE_SYSFS) drvdata 620 drivers/hwtracing/coresight/coresight-tmc-etf.c __tmc_etb_disable_hw(drvdata); drvdata 622 drivers/hwtracing/coresight/coresight-tmc-etf.c drvdata->reading = true; drvdata 624 drivers/hwtracing/coresight/coresight-tmc-etf.c spin_unlock_irqrestore(&drvdata->spinlock, flags); drvdata 629 drivers/hwtracing/coresight/coresight-tmc-etf.c int tmc_read_unprepare_etb(struct tmc_drvdata *drvdata) drvdata 636 drivers/hwtracing/coresight/coresight-tmc-etf.c if (WARN_ON_ONCE(drvdata->config_type != TMC_CONFIG_TYPE_ETB && drvdata 637 drivers/hwtracing/coresight/coresight-tmc-etf.c drvdata->config_type != TMC_CONFIG_TYPE_ETF)) drvdata 640 drivers/hwtracing/coresight/coresight-tmc-etf.c spin_lock_irqsave(&drvdata->spinlock, flags); drvdata 643 drivers/hwtracing/coresight/coresight-tmc-etf.c mode = readl_relaxed(drvdata->base + TMC_MODE); drvdata 645 drivers/hwtracing/coresight/coresight-tmc-etf.c spin_unlock_irqrestore(&drvdata->spinlock, flags); drvdata 650 drivers/hwtracing/coresight/coresight-tmc-etf.c if (drvdata->mode == CS_MODE_SYSFS) { drvdata 659 drivers/hwtracing/coresight/coresight-tmc-etf.c memset(drvdata->buf, 0, drvdata->size); drvdata 660 drivers/hwtracing/coresight/coresight-tmc-etf.c __tmc_etb_enable_hw(drvdata); drvdata 666 drivers/hwtracing/coresight/coresight-tmc-etf.c buf = drvdata->buf; drvdata 667 drivers/hwtracing/coresight/coresight-tmc-etf.c drvdata->buf = NULL; drvdata 670 drivers/hwtracing/coresight/coresight-tmc-etf.c drvdata->reading = false; drvdata 671 drivers/hwtracing/coresight/coresight-tmc-etf.c spin_unlock_irqrestore(&drvdata->spinlock, flags); drvdata 40 drivers/hwtracing/coresight/coresight-tmc-etr.c struct tmc_drvdata *drvdata; drvdata 590 drivers/hwtracing/coresight/coresight-tmc-etr.c static int tmc_etr_alloc_flat_buf(struct tmc_drvdata *drvdata, drvdata 595 drivers/hwtracing/coresight/coresight-tmc-etr.c struct device *real_dev = drvdata->csdev->dev.parent; drvdata 613 drivers/hwtracing/coresight/coresight-tmc-etr.c flat_buf->dev = &drvdata->csdev->dev; drvdata 670 drivers/hwtracing/coresight/coresight-tmc-etr.c static int tmc_etr_alloc_sg_buf(struct tmc_drvdata *drvdata, drvdata 675 drivers/hwtracing/coresight/coresight-tmc-etr.c struct device *dev = &drvdata->csdev->dev; drvdata 753 drivers/hwtracing/coresight/coresight-tmc-etr.c tmc_etr_get_catu_device(struct tmc_drvdata *drvdata) drvdata 756 drivers/hwtracing/coresight/coresight-tmc-etr.c struct coresight_device *tmp, *etr = drvdata->csdev; drvdata 770 drivers/hwtracing/coresight/coresight-tmc-etr.c static inline int tmc_etr_enable_catu(struct tmc_drvdata *drvdata, drvdata 773 drivers/hwtracing/coresight/coresight-tmc-etr.c struct coresight_device *catu = tmc_etr_get_catu_device(drvdata); drvdata 780 drivers/hwtracing/coresight/coresight-tmc-etr.c static inline void tmc_etr_disable_catu(struct tmc_drvdata *drvdata) drvdata 782 drivers/hwtracing/coresight/coresight-tmc-etr.c struct coresight_device *catu = tmc_etr_get_catu_device(drvdata); drvdata 785 drivers/hwtracing/coresight/coresight-tmc-etr.c helper_ops(catu)->disable(catu, drvdata->etr_buf); drvdata 796 drivers/hwtracing/coresight/coresight-tmc-etr.c struct tmc_drvdata *drvdata, drvdata 807 drivers/hwtracing/coresight/coresight-tmc-etr.c rc = etr_buf_ops[mode]->alloc(drvdata, etr_buf, drvdata 825 drivers/hwtracing/coresight/coresight-tmc-etr.c static struct etr_buf *tmc_alloc_etr_buf(struct tmc_drvdata *drvdata, drvdata 833 drivers/hwtracing/coresight/coresight-tmc-etr.c struct device *dev = &drvdata->csdev->dev; drvdata 835 drivers/hwtracing/coresight/coresight-tmc-etr.c has_etr_sg = tmc_etr_has_cap(drvdata, TMC_ETR_SG); drvdata 837 drivers/hwtracing/coresight/coresight-tmc-etr.c has_catu = !!tmc_etr_get_catu_device(drvdata); drvdata 861 drivers/hwtracing/coresight/coresight-tmc-etr.c rc = tmc_etr_mode_alloc_buf(ETR_MODE_FLAT, drvdata, drvdata 864 drivers/hwtracing/coresight/coresight-tmc-etr.c rc = tmc_etr_mode_alloc_buf(ETR_MODE_ETR_SG, drvdata, drvdata 867 drivers/hwtracing/coresight/coresight-tmc-etr.c rc = tmc_etr_mode_alloc_buf(ETR_MODE_CATU, drvdata, drvdata 922 drivers/hwtracing/coresight/coresight-tmc-etr.c static void tmc_sync_etr_buf(struct tmc_drvdata *drvdata) drvdata 924 drivers/hwtracing/coresight/coresight-tmc-etr.c struct etr_buf *etr_buf = drvdata->etr_buf; drvdata 928 drivers/hwtracing/coresight/coresight-tmc-etr.c rrp = tmc_read_rrp(drvdata); drvdata 929 drivers/hwtracing/coresight/coresight-tmc-etr.c rwp = tmc_read_rwp(drvdata); drvdata 930 drivers/hwtracing/coresight/coresight-tmc-etr.c status = readl_relaxed(drvdata->base + TMC_STS); drvdata 937 drivers/hwtracing/coresight/coresight-tmc-etr.c dev_dbg(&drvdata->csdev->dev, drvdata 951 drivers/hwtracing/coresight/coresight-tmc-etr.c static void __tmc_etr_enable_hw(struct tmc_drvdata *drvdata) drvdata 954 drivers/hwtracing/coresight/coresight-tmc-etr.c struct etr_buf *etr_buf = drvdata->etr_buf; drvdata 956 drivers/hwtracing/coresight/coresight-tmc-etr.c CS_UNLOCK(drvdata->base); drvdata 959 drivers/hwtracing/coresight/coresight-tmc-etr.c tmc_wait_for_tmcready(drvdata); drvdata 961 drivers/hwtracing/coresight/coresight-tmc-etr.c writel_relaxed(etr_buf->size / 4, drvdata->base + TMC_RSZ); drvdata 962 drivers/hwtracing/coresight/coresight-tmc-etr.c writel_relaxed(TMC_MODE_CIRCULAR_BUFFER, drvdata->base + TMC_MODE); drvdata 964 drivers/hwtracing/coresight/coresight-tmc-etr.c axictl = readl_relaxed(drvdata->base + TMC_AXICTL); drvdata 969 drivers/hwtracing/coresight/coresight-tmc-etr.c if (tmc_etr_has_cap(drvdata, TMC_ETR_AXI_ARCACHE)) { drvdata 977 drivers/hwtracing/coresight/coresight-tmc-etr.c writel_relaxed(axictl, drvdata->base + TMC_AXICTL); drvdata 978 drivers/hwtracing/coresight/coresight-tmc-etr.c tmc_write_dba(drvdata, etr_buf->hwaddr); drvdata 984 drivers/hwtracing/coresight/coresight-tmc-etr.c if (tmc_etr_has_cap(drvdata, TMC_ETR_SAVE_RESTORE)) { drvdata 985 drivers/hwtracing/coresight/coresight-tmc-etr.c tmc_write_rrp(drvdata, etr_buf->hwaddr); drvdata 986 drivers/hwtracing/coresight/coresight-tmc-etr.c tmc_write_rwp(drvdata, etr_buf->hwaddr); drvdata 987 drivers/hwtracing/coresight/coresight-tmc-etr.c sts = readl_relaxed(drvdata->base + TMC_STS) & ~TMC_STS_FULL; drvdata 988 drivers/hwtracing/coresight/coresight-tmc-etr.c writel_relaxed(sts, drvdata->base + TMC_STS); drvdata 994 drivers/hwtracing/coresight/coresight-tmc-etr.c drvdata->base + TMC_FFCR); drvdata 995 drivers/hwtracing/coresight/coresight-tmc-etr.c writel_relaxed(drvdata->trigger_cntr, drvdata->base + TMC_TRG); drvdata 996 drivers/hwtracing/coresight/coresight-tmc-etr.c tmc_enable_hw(drvdata); drvdata 998 drivers/hwtracing/coresight/coresight-tmc-etr.c CS_LOCK(drvdata->base); drvdata 1001 drivers/hwtracing/coresight/coresight-tmc-etr.c static int tmc_etr_enable_hw(struct tmc_drvdata *drvdata, drvdata 1011 drivers/hwtracing/coresight/coresight-tmc-etr.c WARN_ON(!tmc_etr_has_cap(drvdata, TMC_ETR_SG))) drvdata 1014 drivers/hwtracing/coresight/coresight-tmc-etr.c if (WARN_ON(drvdata->etr_buf)) drvdata 1021 drivers/hwtracing/coresight/coresight-tmc-etr.c rc = tmc_etr_enable_catu(drvdata, etr_buf); drvdata 1024 drivers/hwtracing/coresight/coresight-tmc-etr.c rc = coresight_claim_device(drvdata->base); drvdata 1026 drivers/hwtracing/coresight/coresight-tmc-etr.c drvdata->etr_buf = etr_buf; drvdata 1027 drivers/hwtracing/coresight/coresight-tmc-etr.c __tmc_etr_enable_hw(drvdata); drvdata 1043 drivers/hwtracing/coresight/coresight-tmc-etr.c ssize_t tmc_etr_get_sysfs_trace(struct tmc_drvdata *drvdata, drvdata 1048 drivers/hwtracing/coresight/coresight-tmc-etr.c struct etr_buf *etr_buf = drvdata->sysfs_buf; drvdata 1063 drivers/hwtracing/coresight/coresight-tmc-etr.c tmc_etr_setup_sysfs_buf(struct tmc_drvdata *drvdata) drvdata 1065 drivers/hwtracing/coresight/coresight-tmc-etr.c return tmc_alloc_etr_buf(drvdata, drvdata->size, drvdata 1076 drivers/hwtracing/coresight/coresight-tmc-etr.c static void tmc_etr_sync_sysfs_buf(struct tmc_drvdata *drvdata) drvdata 1078 drivers/hwtracing/coresight/coresight-tmc-etr.c struct etr_buf *etr_buf = drvdata->etr_buf; drvdata 1080 drivers/hwtracing/coresight/coresight-tmc-etr.c if (WARN_ON(drvdata->sysfs_buf != etr_buf)) { drvdata 1081 drivers/hwtracing/coresight/coresight-tmc-etr.c tmc_etr_free_sysfs_buf(drvdata->sysfs_buf); drvdata 1082 drivers/hwtracing/coresight/coresight-tmc-etr.c drvdata->sysfs_buf = NULL; drvdata 1084 drivers/hwtracing/coresight/coresight-tmc-etr.c tmc_sync_etr_buf(drvdata); drvdata 1095 drivers/hwtracing/coresight/coresight-tmc-etr.c static void __tmc_etr_disable_hw(struct tmc_drvdata *drvdata) drvdata 1097 drivers/hwtracing/coresight/coresight-tmc-etr.c CS_UNLOCK(drvdata->base); drvdata 1099 drivers/hwtracing/coresight/coresight-tmc-etr.c tmc_flush_and_stop(drvdata); drvdata 1104 drivers/hwtracing/coresight/coresight-tmc-etr.c if (drvdata->mode == CS_MODE_SYSFS) drvdata 1105 drivers/hwtracing/coresight/coresight-tmc-etr.c tmc_etr_sync_sysfs_buf(drvdata); drvdata 1107 drivers/hwtracing/coresight/coresight-tmc-etr.c tmc_disable_hw(drvdata); drvdata 1109 drivers/hwtracing/coresight/coresight-tmc-etr.c CS_LOCK(drvdata->base); drvdata 1113 drivers/hwtracing/coresight/coresight-tmc-etr.c static void tmc_etr_disable_hw(struct tmc_drvdata *drvdata) drvdata 1115 drivers/hwtracing/coresight/coresight-tmc-etr.c __tmc_etr_disable_hw(drvdata); drvdata 1117 drivers/hwtracing/coresight/coresight-tmc-etr.c tmc_etr_disable_catu(drvdata); drvdata 1118 drivers/hwtracing/coresight/coresight-tmc-etr.c coresight_disclaim_device(drvdata->base); drvdata 1120 drivers/hwtracing/coresight/coresight-tmc-etr.c drvdata->etr_buf = NULL; drvdata 1127 drivers/hwtracing/coresight/coresight-tmc-etr.c struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 1138 drivers/hwtracing/coresight/coresight-tmc-etr.c spin_lock_irqsave(&drvdata->spinlock, flags); drvdata 1139 drivers/hwtracing/coresight/coresight-tmc-etr.c sysfs_buf = READ_ONCE(drvdata->sysfs_buf); drvdata 1140 drivers/hwtracing/coresight/coresight-tmc-etr.c if (!sysfs_buf || (sysfs_buf->size != drvdata->size)) { drvdata 1141 drivers/hwtracing/coresight/coresight-tmc-etr.c spin_unlock_irqrestore(&drvdata->spinlock, flags); drvdata 1144 drivers/hwtracing/coresight/coresight-tmc-etr.c free_buf = new_buf = tmc_etr_setup_sysfs_buf(drvdata); drvdata 1149 drivers/hwtracing/coresight/coresight-tmc-etr.c spin_lock_irqsave(&drvdata->spinlock, flags); drvdata 1152 drivers/hwtracing/coresight/coresight-tmc-etr.c if (drvdata->reading || drvdata->mode == CS_MODE_PERF) { drvdata 1162 drivers/hwtracing/coresight/coresight-tmc-etr.c if (drvdata->mode == CS_MODE_SYSFS) { drvdata 1171 drivers/hwtracing/coresight/coresight-tmc-etr.c sysfs_buf = READ_ONCE(drvdata->sysfs_buf); drvdata 1174 drivers/hwtracing/coresight/coresight-tmc-etr.c drvdata->sysfs_buf = new_buf; drvdata 1177 drivers/hwtracing/coresight/coresight-tmc-etr.c ret = tmc_etr_enable_hw(drvdata, drvdata->sysfs_buf); drvdata 1179 drivers/hwtracing/coresight/coresight-tmc-etr.c drvdata->mode = CS_MODE_SYSFS; drvdata 1183 drivers/hwtracing/coresight/coresight-tmc-etr.c spin_unlock_irqrestore(&drvdata->spinlock, flags); drvdata 1203 drivers/hwtracing/coresight/coresight-tmc-etr.c alloc_etr_buf(struct tmc_drvdata *drvdata, struct perf_event *event, drvdata 1215 drivers/hwtracing/coresight/coresight-tmc-etr.c if ((nr_pages << PAGE_SHIFT) > drvdata->size) { drvdata 1216 drivers/hwtracing/coresight/coresight-tmc-etr.c etr_buf = tmc_alloc_etr_buf(drvdata, (nr_pages << PAGE_SHIFT), drvdata 1226 drivers/hwtracing/coresight/coresight-tmc-etr.c size = drvdata->size; drvdata 1228 drivers/hwtracing/coresight/coresight-tmc-etr.c etr_buf = tmc_alloc_etr_buf(drvdata, size, 0, node, NULL); drvdata 1241 drivers/hwtracing/coresight/coresight-tmc-etr.c get_perf_etr_buf_cpu_wide(struct tmc_drvdata *drvdata, drvdata 1268 drivers/hwtracing/coresight/coresight-tmc-etr.c mutex_lock(&drvdata->idr_mutex); drvdata 1269 drivers/hwtracing/coresight/coresight-tmc-etr.c etr_buf = idr_find(&drvdata->idr, pid); drvdata 1272 drivers/hwtracing/coresight/coresight-tmc-etr.c mutex_unlock(&drvdata->idr_mutex); drvdata 1277 drivers/hwtracing/coresight/coresight-tmc-etr.c mutex_unlock(&drvdata->idr_mutex); drvdata 1279 drivers/hwtracing/coresight/coresight-tmc-etr.c etr_buf = alloc_etr_buf(drvdata, event, nr_pages, pages, snapshot); drvdata 1284 drivers/hwtracing/coresight/coresight-tmc-etr.c mutex_lock(&drvdata->idr_mutex); drvdata 1285 drivers/hwtracing/coresight/coresight-tmc-etr.c ret = idr_alloc(&drvdata->idr, etr_buf, pid, pid + 1, GFP_KERNEL); drvdata 1286 drivers/hwtracing/coresight/coresight-tmc-etr.c mutex_unlock(&drvdata->idr_mutex); drvdata 1305 drivers/hwtracing/coresight/coresight-tmc-etr.c get_perf_etr_buf_per_thread(struct tmc_drvdata *drvdata, drvdata 1313 drivers/hwtracing/coresight/coresight-tmc-etr.c return alloc_etr_buf(drvdata, event, nr_pages, pages, snapshot); drvdata 1317 drivers/hwtracing/coresight/coresight-tmc-etr.c get_perf_etr_buf(struct tmc_drvdata *drvdata, struct perf_event *event, drvdata 1321 drivers/hwtracing/coresight/coresight-tmc-etr.c return get_perf_etr_buf_per_thread(drvdata, event, nr_pages, drvdata 1324 drivers/hwtracing/coresight/coresight-tmc-etr.c return get_perf_etr_buf_cpu_wide(drvdata, event, nr_pages, drvdata 1329 drivers/hwtracing/coresight/coresight-tmc-etr.c tmc_etr_setup_perf_buf(struct tmc_drvdata *drvdata, struct perf_event *event, drvdata 1342 drivers/hwtracing/coresight/coresight-tmc-etr.c etr_buf = get_perf_etr_buf(drvdata, event, nr_pages, pages, snapshot); drvdata 1354 drivers/hwtracing/coresight/coresight-tmc-etr.c etr_perf->drvdata = drvdata; drvdata 1366 drivers/hwtracing/coresight/coresight-tmc-etr.c struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 1368 drivers/hwtracing/coresight/coresight-tmc-etr.c etr_perf = tmc_etr_setup_perf_buf(drvdata, event, drvdata 1386 drivers/hwtracing/coresight/coresight-tmc-etr.c struct tmc_drvdata *drvdata = etr_perf->drvdata; drvdata 1392 drivers/hwtracing/coresight/coresight-tmc-etr.c mutex_lock(&drvdata->idr_mutex); drvdata 1395 drivers/hwtracing/coresight/coresight-tmc-etr.c mutex_unlock(&drvdata->idr_mutex); drvdata 1400 drivers/hwtracing/coresight/coresight-tmc-etr.c buf = idr_remove(&drvdata->idr, etr_perf->pid); drvdata 1401 drivers/hwtracing/coresight/coresight-tmc-etr.c mutex_unlock(&drvdata->idr_mutex); drvdata 1482 drivers/hwtracing/coresight/coresight-tmc-etr.c struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 1486 drivers/hwtracing/coresight/coresight-tmc-etr.c spin_lock_irqsave(&drvdata->spinlock, flags); drvdata 1490 drivers/hwtracing/coresight/coresight-tmc-etr.c spin_unlock_irqrestore(&drvdata->spinlock, flags); drvdata 1494 drivers/hwtracing/coresight/coresight-tmc-etr.c if (WARN_ON(drvdata->perf_buf != etr_buf)) { drvdata 1496 drivers/hwtracing/coresight/coresight-tmc-etr.c spin_unlock_irqrestore(&drvdata->spinlock, flags); drvdata 1500 drivers/hwtracing/coresight/coresight-tmc-etr.c CS_UNLOCK(drvdata->base); drvdata 1502 drivers/hwtracing/coresight/coresight-tmc-etr.c tmc_flush_and_stop(drvdata); drvdata 1503 drivers/hwtracing/coresight/coresight-tmc-etr.c tmc_sync_etr_buf(drvdata); drvdata 1505 drivers/hwtracing/coresight/coresight-tmc-etr.c CS_LOCK(drvdata->base); drvdata 1506 drivers/hwtracing/coresight/coresight-tmc-etr.c spin_unlock_irqrestore(&drvdata->spinlock, flags); drvdata 1520 drivers/hwtracing/coresight/coresight-tmc-etr.c u32 mask = tmc_get_memwidth_mask(drvdata); drvdata 1564 drivers/hwtracing/coresight/coresight-tmc-etr.c struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 1568 drivers/hwtracing/coresight/coresight-tmc-etr.c spin_lock_irqsave(&drvdata->spinlock, flags); drvdata 1570 drivers/hwtracing/coresight/coresight-tmc-etr.c if (drvdata->mode == CS_MODE_SYSFS) { drvdata 1584 drivers/hwtracing/coresight/coresight-tmc-etr.c if (drvdata->pid != -1 && drvdata->pid != pid) { drvdata 1595 drivers/hwtracing/coresight/coresight-tmc-etr.c if (drvdata->pid == pid) { drvdata 1600 drivers/hwtracing/coresight/coresight-tmc-etr.c rc = tmc_etr_enable_hw(drvdata, etr_perf->etr_buf); drvdata 1603 drivers/hwtracing/coresight/coresight-tmc-etr.c drvdata->pid = pid; drvdata 1604 drivers/hwtracing/coresight/coresight-tmc-etr.c drvdata->mode = CS_MODE_PERF; drvdata 1605 drivers/hwtracing/coresight/coresight-tmc-etr.c drvdata->perf_buf = etr_perf->etr_buf; drvdata 1610 drivers/hwtracing/coresight/coresight-tmc-etr.c spin_unlock_irqrestore(&drvdata->spinlock, flags); drvdata 1631 drivers/hwtracing/coresight/coresight-tmc-etr.c struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 1633 drivers/hwtracing/coresight/coresight-tmc-etr.c spin_lock_irqsave(&drvdata->spinlock, flags); drvdata 1635 drivers/hwtracing/coresight/coresight-tmc-etr.c if (drvdata->reading) { drvdata 1636 drivers/hwtracing/coresight/coresight-tmc-etr.c spin_unlock_irqrestore(&drvdata->spinlock, flags); drvdata 1641 drivers/hwtracing/coresight/coresight-tmc-etr.c spin_unlock_irqrestore(&drvdata->spinlock, flags); drvdata 1646 drivers/hwtracing/coresight/coresight-tmc-etr.c WARN_ON_ONCE(drvdata->mode == CS_MODE_DISABLED); drvdata 1647 drivers/hwtracing/coresight/coresight-tmc-etr.c tmc_etr_disable_hw(drvdata); drvdata 1649 drivers/hwtracing/coresight/coresight-tmc-etr.c drvdata->pid = -1; drvdata 1650 drivers/hwtracing/coresight/coresight-tmc-etr.c drvdata->mode = CS_MODE_DISABLED; drvdata 1652 drivers/hwtracing/coresight/coresight-tmc-etr.c drvdata->perf_buf = NULL; drvdata 1654 drivers/hwtracing/coresight/coresight-tmc-etr.c spin_unlock_irqrestore(&drvdata->spinlock, flags); drvdata 1672 drivers/hwtracing/coresight/coresight-tmc-etr.c int tmc_read_prepare_etr(struct tmc_drvdata *drvdata) drvdata 1678 drivers/hwtracing/coresight/coresight-tmc-etr.c if (WARN_ON_ONCE(drvdata->config_type != TMC_CONFIG_TYPE_ETR)) drvdata 1681 drivers/hwtracing/coresight/coresight-tmc-etr.c spin_lock_irqsave(&drvdata->spinlock, flags); drvdata 1682 drivers/hwtracing/coresight/coresight-tmc-etr.c if (drvdata->reading) { drvdata 1692 drivers/hwtracing/coresight/coresight-tmc-etr.c if (!drvdata->sysfs_buf) { drvdata 1698 drivers/hwtracing/coresight/coresight-tmc-etr.c if (drvdata->mode == CS_MODE_SYSFS) drvdata 1699 drivers/hwtracing/coresight/coresight-tmc-etr.c __tmc_etr_disable_hw(drvdata); drvdata 1701 drivers/hwtracing/coresight/coresight-tmc-etr.c drvdata->reading = true; drvdata 1703 drivers/hwtracing/coresight/coresight-tmc-etr.c spin_unlock_irqrestore(&drvdata->spinlock, flags); drvdata 1708 drivers/hwtracing/coresight/coresight-tmc-etr.c int tmc_read_unprepare_etr(struct tmc_drvdata *drvdata) drvdata 1714 drivers/hwtracing/coresight/coresight-tmc-etr.c if (WARN_ON_ONCE(drvdata->config_type != TMC_CONFIG_TYPE_ETR)) drvdata 1717 drivers/hwtracing/coresight/coresight-tmc-etr.c spin_lock_irqsave(&drvdata->spinlock, flags); drvdata 1720 drivers/hwtracing/coresight/coresight-tmc-etr.c if (drvdata->mode == CS_MODE_SYSFS) { drvdata 1726 drivers/hwtracing/coresight/coresight-tmc-etr.c __tmc_etr_enable_hw(drvdata); drvdata 1732 drivers/hwtracing/coresight/coresight-tmc-etr.c sysfs_buf = drvdata->sysfs_buf; drvdata 1733 drivers/hwtracing/coresight/coresight-tmc-etr.c drvdata->sysfs_buf = NULL; drvdata 1736 drivers/hwtracing/coresight/coresight-tmc-etr.c drvdata->reading = false; drvdata 1737 drivers/hwtracing/coresight/coresight-tmc-etr.c spin_unlock_irqrestore(&drvdata->spinlock, flags); drvdata 34 drivers/hwtracing/coresight/coresight-tmc.c void tmc_wait_for_tmcready(struct tmc_drvdata *drvdata) drvdata 37 drivers/hwtracing/coresight/coresight-tmc.c if (coresight_timeout(drvdata->base, drvdata 39 drivers/hwtracing/coresight/coresight-tmc.c dev_err(&drvdata->csdev->dev, drvdata 44 drivers/hwtracing/coresight/coresight-tmc.c void tmc_flush_and_stop(struct tmc_drvdata *drvdata) drvdata 48 drivers/hwtracing/coresight/coresight-tmc.c ffcr = readl_relaxed(drvdata->base + TMC_FFCR); drvdata 50 drivers/hwtracing/coresight/coresight-tmc.c writel_relaxed(ffcr, drvdata->base + TMC_FFCR); drvdata 52 drivers/hwtracing/coresight/coresight-tmc.c writel_relaxed(ffcr, drvdata->base + TMC_FFCR); drvdata 54 drivers/hwtracing/coresight/coresight-tmc.c if (coresight_timeout(drvdata->base, drvdata 56 drivers/hwtracing/coresight/coresight-tmc.c dev_err(&drvdata->csdev->dev, drvdata 60 drivers/hwtracing/coresight/coresight-tmc.c tmc_wait_for_tmcready(drvdata); drvdata 63 drivers/hwtracing/coresight/coresight-tmc.c void tmc_enable_hw(struct tmc_drvdata *drvdata) drvdata 65 drivers/hwtracing/coresight/coresight-tmc.c writel_relaxed(TMC_CTL_CAPT_EN, drvdata->base + TMC_CTL); drvdata 68 drivers/hwtracing/coresight/coresight-tmc.c void tmc_disable_hw(struct tmc_drvdata *drvdata) drvdata 70 drivers/hwtracing/coresight/coresight-tmc.c writel_relaxed(0x0, drvdata->base + TMC_CTL); drvdata 73 drivers/hwtracing/coresight/coresight-tmc.c u32 tmc_get_memwidth_mask(struct tmc_drvdata *drvdata) drvdata 85 drivers/hwtracing/coresight/coresight-tmc.c switch (drvdata->memwidth) { drvdata 101 drivers/hwtracing/coresight/coresight-tmc.c static int tmc_read_prepare(struct tmc_drvdata *drvdata) drvdata 105 drivers/hwtracing/coresight/coresight-tmc.c switch (drvdata->config_type) { drvdata 108 drivers/hwtracing/coresight/coresight-tmc.c ret = tmc_read_prepare_etb(drvdata); drvdata 111 drivers/hwtracing/coresight/coresight-tmc.c ret = tmc_read_prepare_etr(drvdata); drvdata 118 drivers/hwtracing/coresight/coresight-tmc.c dev_dbg(&drvdata->csdev->dev, "TMC read start\n"); drvdata 123 drivers/hwtracing/coresight/coresight-tmc.c static int tmc_read_unprepare(struct tmc_drvdata *drvdata) drvdata 127 drivers/hwtracing/coresight/coresight-tmc.c switch (drvdata->config_type) { drvdata 130 drivers/hwtracing/coresight/coresight-tmc.c ret = tmc_read_unprepare_etb(drvdata); drvdata 133 drivers/hwtracing/coresight/coresight-tmc.c ret = tmc_read_unprepare_etr(drvdata); drvdata 140 drivers/hwtracing/coresight/coresight-tmc.c dev_dbg(&drvdata->csdev->dev, "TMC read end\n"); drvdata 148 drivers/hwtracing/coresight/coresight-tmc.c struct tmc_drvdata *drvdata = container_of(file->private_data, drvdata 151 drivers/hwtracing/coresight/coresight-tmc.c ret = tmc_read_prepare(drvdata); drvdata 157 drivers/hwtracing/coresight/coresight-tmc.c dev_dbg(&drvdata->csdev->dev, "%s: successfully opened\n", __func__); drvdata 161 drivers/hwtracing/coresight/coresight-tmc.c static inline ssize_t tmc_get_sysfs_trace(struct tmc_drvdata *drvdata, drvdata 164 drivers/hwtracing/coresight/coresight-tmc.c switch (drvdata->config_type) { drvdata 167 drivers/hwtracing/coresight/coresight-tmc.c return tmc_etb_get_sysfs_trace(drvdata, pos, len, bufpp); drvdata 169 drivers/hwtracing/coresight/coresight-tmc.c return tmc_etr_get_sysfs_trace(drvdata, pos, len, bufpp); drvdata 180 drivers/hwtracing/coresight/coresight-tmc.c struct tmc_drvdata *drvdata = container_of(file->private_data, drvdata 182 drivers/hwtracing/coresight/coresight-tmc.c actual = tmc_get_sysfs_trace(drvdata, *ppos, len, &bufp); drvdata 187 drivers/hwtracing/coresight/coresight-tmc.c dev_dbg(&drvdata->csdev->dev, drvdata 193 drivers/hwtracing/coresight/coresight-tmc.c dev_dbg(&drvdata->csdev->dev, "%zu bytes copied\n", actual); drvdata 201 drivers/hwtracing/coresight/coresight-tmc.c struct tmc_drvdata *drvdata = container_of(file->private_data, drvdata 204 drivers/hwtracing/coresight/coresight-tmc.c ret = tmc_read_unprepare(drvdata); drvdata 208 drivers/hwtracing/coresight/coresight-tmc.c dev_dbg(&drvdata->csdev->dev, "%s: released\n", __func__); drvdata 294 drivers/hwtracing/coresight/coresight-tmc.c struct tmc_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 295 drivers/hwtracing/coresight/coresight-tmc.c unsigned long val = drvdata->trigger_cntr; drvdata 306 drivers/hwtracing/coresight/coresight-tmc.c struct tmc_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 312 drivers/hwtracing/coresight/coresight-tmc.c drvdata->trigger_cntr = val; drvdata 320 drivers/hwtracing/coresight/coresight-tmc.c struct tmc_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 322 drivers/hwtracing/coresight/coresight-tmc.c return sprintf(buf, "%#x\n", drvdata->size); drvdata 331 drivers/hwtracing/coresight/coresight-tmc.c struct tmc_drvdata *drvdata = dev_get_drvdata(dev->parent); drvdata 334 drivers/hwtracing/coresight/coresight-tmc.c if (drvdata->config_type != TMC_CONFIG_TYPE_ETR) drvdata 343 drivers/hwtracing/coresight/coresight-tmc.c drvdata->size = val; drvdata 375 drivers/hwtracing/coresight/coresight-tmc.c static inline bool tmc_etr_has_non_secure_access(struct tmc_drvdata *drvdata) drvdata 377 drivers/hwtracing/coresight/coresight-tmc.c u32 auth = readl_relaxed(drvdata->base + TMC_AUTHSTATUS); drvdata 387 drivers/hwtracing/coresight/coresight-tmc.c struct tmc_drvdata *drvdata = dev_get_drvdata(parent); drvdata 389 drivers/hwtracing/coresight/coresight-tmc.c if (!tmc_etr_has_non_secure_access(drvdata)) drvdata 393 drivers/hwtracing/coresight/coresight-tmc.c tmc_etr_init_caps(drvdata, (u32)(unsigned long)dev_caps); drvdata 396 drivers/hwtracing/coresight/coresight-tmc.c tmc_etr_set_cap(drvdata, TMC_ETR_SG); drvdata 441 drivers/hwtracing/coresight/coresight-tmc.c struct tmc_drvdata *drvdata; drvdata 447 drivers/hwtracing/coresight/coresight-tmc.c drvdata = devm_kzalloc(dev, sizeof(*drvdata), GFP_KERNEL); drvdata 448 drivers/hwtracing/coresight/coresight-tmc.c if (!drvdata) drvdata 451 drivers/hwtracing/coresight/coresight-tmc.c dev_set_drvdata(dev, drvdata); drvdata 460 drivers/hwtracing/coresight/coresight-tmc.c drvdata->base = base; drvdata 462 drivers/hwtracing/coresight/coresight-tmc.c spin_lock_init(&drvdata->spinlock); drvdata 464 drivers/hwtracing/coresight/coresight-tmc.c devid = readl_relaxed(drvdata->base + CORESIGHT_DEVID); drvdata 465 drivers/hwtracing/coresight/coresight-tmc.c drvdata->config_type = BMVAL(devid, 6, 7); drvdata 466 drivers/hwtracing/coresight/coresight-tmc.c drvdata->memwidth = tmc_get_memwidth(devid); drvdata 468 drivers/hwtracing/coresight/coresight-tmc.c drvdata->pid = -1; drvdata 470 drivers/hwtracing/coresight/coresight-tmc.c if (drvdata->config_type == TMC_CONFIG_TYPE_ETR) drvdata 471 drivers/hwtracing/coresight/coresight-tmc.c drvdata->size = tmc_etr_get_default_buffer_size(dev); drvdata 473 drivers/hwtracing/coresight/coresight-tmc.c drvdata->size = readl_relaxed(drvdata->base + TMC_RSZ) * 4; drvdata 478 drivers/hwtracing/coresight/coresight-tmc.c switch (drvdata->config_type) { drvdata 493 drivers/hwtracing/coresight/coresight-tmc.c idr_init(&drvdata->idr); drvdata 494 drivers/hwtracing/coresight/coresight-tmc.c mutex_init(&drvdata->idr_mutex); drvdata 523 drivers/hwtracing/coresight/coresight-tmc.c drvdata->csdev = coresight_register(&desc); drvdata 524 drivers/hwtracing/coresight/coresight-tmc.c if (IS_ERR(drvdata->csdev)) { drvdata 525 drivers/hwtracing/coresight/coresight-tmc.c ret = PTR_ERR(drvdata->csdev); drvdata 529 drivers/hwtracing/coresight/coresight-tmc.c drvdata->miscdev.name = desc.name; drvdata 530 drivers/hwtracing/coresight/coresight-tmc.c drvdata->miscdev.minor = MISC_DYNAMIC_MINOR; drvdata 531 drivers/hwtracing/coresight/coresight-tmc.c drvdata->miscdev.fops = &tmc_fops; drvdata 532 drivers/hwtracing/coresight/coresight-tmc.c ret = misc_register(&drvdata->miscdev); drvdata 534 drivers/hwtracing/coresight/coresight-tmc.c coresight_unregister(drvdata->csdev); drvdata 213 drivers/hwtracing/coresight/coresight-tmc.h int (*alloc)(struct tmc_drvdata *drvdata, struct etr_buf *etr_buf, drvdata 254 drivers/hwtracing/coresight/coresight-tmc.h void tmc_wait_for_tmcready(struct tmc_drvdata *drvdata); drvdata 255 drivers/hwtracing/coresight/coresight-tmc.h void tmc_flush_and_stop(struct tmc_drvdata *drvdata); drvdata 256 drivers/hwtracing/coresight/coresight-tmc.h void tmc_enable_hw(struct tmc_drvdata *drvdata); drvdata 257 drivers/hwtracing/coresight/coresight-tmc.h void tmc_disable_hw(struct tmc_drvdata *drvdata); drvdata 258 drivers/hwtracing/coresight/coresight-tmc.h u32 tmc_get_memwidth_mask(struct tmc_drvdata *drvdata); drvdata 261 drivers/hwtracing/coresight/coresight-tmc.h int tmc_read_prepare_etb(struct tmc_drvdata *drvdata); drvdata 262 drivers/hwtracing/coresight/coresight-tmc.h int tmc_read_unprepare_etb(struct tmc_drvdata *drvdata); drvdata 266 drivers/hwtracing/coresight/coresight-tmc.h ssize_t tmc_etb_get_sysfs_trace(struct tmc_drvdata *drvdata, drvdata 269 drivers/hwtracing/coresight/coresight-tmc.h int tmc_read_prepare_etr(struct tmc_drvdata *drvdata); drvdata 270 drivers/hwtracing/coresight/coresight-tmc.h int tmc_read_unprepare_etr(struct tmc_drvdata *drvdata); drvdata 272 drivers/hwtracing/coresight/coresight-tmc.h ssize_t tmc_etr_get_sysfs_trace(struct tmc_drvdata *drvdata, drvdata 278 drivers/hwtracing/coresight/coresight-tmc.h tmc_read_##name(struct tmc_drvdata *drvdata) \ drvdata 280 drivers/hwtracing/coresight/coresight-tmc.h return coresight_read_reg_pair(drvdata->base, lo_off, hi_off); \ drvdata 283 drivers/hwtracing/coresight/coresight-tmc.h tmc_write_##name(struct tmc_drvdata *drvdata, u64 val) \ drvdata 285 drivers/hwtracing/coresight/coresight-tmc.h coresight_write_reg_pair(drvdata->base, val, lo_off, hi_off); \ drvdata 293 drivers/hwtracing/coresight/coresight-tmc.h static inline void tmc_etr_init_caps(struct tmc_drvdata *drvdata, u32 dev_caps) drvdata 295 drivers/hwtracing/coresight/coresight-tmc.h WARN_ON(drvdata->etr_caps); drvdata 296 drivers/hwtracing/coresight/coresight-tmc.h drvdata->etr_caps = dev_caps; drvdata 299 drivers/hwtracing/coresight/coresight-tmc.h static inline void tmc_etr_set_cap(struct tmc_drvdata *drvdata, u32 cap) drvdata 301 drivers/hwtracing/coresight/coresight-tmc.h drvdata->etr_caps |= cap; drvdata 304 drivers/hwtracing/coresight/coresight-tmc.h static inline bool tmc_etr_has_cap(struct tmc_drvdata *drvdata, u32 cap) drvdata 306 drivers/hwtracing/coresight/coresight-tmc.h return !!(drvdata->etr_caps & cap); drvdata 326 drivers/hwtracing/coresight/coresight-tmc.h struct coresight_device *tmc_etr_get_catu_device(struct tmc_drvdata *drvdata); drvdata 63 drivers/hwtracing/coresight/coresight-tpiu.c static void tpiu_enable_hw(struct tpiu_drvdata *drvdata) drvdata 65 drivers/hwtracing/coresight/coresight-tpiu.c CS_UNLOCK(drvdata->base); drvdata 69 drivers/hwtracing/coresight/coresight-tpiu.c CS_LOCK(drvdata->base); drvdata 74 drivers/hwtracing/coresight/coresight-tpiu.c struct tpiu_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 76 drivers/hwtracing/coresight/coresight-tpiu.c tpiu_enable_hw(drvdata); drvdata 82 drivers/hwtracing/coresight/coresight-tpiu.c static void tpiu_disable_hw(struct tpiu_drvdata *drvdata) drvdata 84 drivers/hwtracing/coresight/coresight-tpiu.c CS_UNLOCK(drvdata->base); drvdata 87 drivers/hwtracing/coresight/coresight-tpiu.c writel_relaxed(FFCR_STOP_FI, drvdata->base + TPIU_FFCR); drvdata 89 drivers/hwtracing/coresight/coresight-tpiu.c writel_relaxed(FFCR_STOP_FI | FFCR_FON_MAN, drvdata->base + TPIU_FFCR); drvdata 91 drivers/hwtracing/coresight/coresight-tpiu.c coresight_timeout(drvdata->base, TPIU_FFCR, FFCR_FON_MAN_BIT, 0); drvdata 93 drivers/hwtracing/coresight/coresight-tpiu.c coresight_timeout(drvdata->base, TPIU_FFSR, FFSR_FT_STOPPED_BIT, 1); drvdata 95 drivers/hwtracing/coresight/coresight-tpiu.c CS_LOCK(drvdata->base); drvdata 100 drivers/hwtracing/coresight/coresight-tpiu.c struct tpiu_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); drvdata 105 drivers/hwtracing/coresight/coresight-tpiu.c tpiu_disable_hw(drvdata); drvdata 126 drivers/hwtracing/coresight/coresight-tpiu.c struct tpiu_drvdata *drvdata; drvdata 134 drivers/hwtracing/coresight/coresight-tpiu.c drvdata = devm_kzalloc(dev, sizeof(*drvdata), GFP_KERNEL); drvdata 135 drivers/hwtracing/coresight/coresight-tpiu.c if (!drvdata) drvdata 138 drivers/hwtracing/coresight/coresight-tpiu.c drvdata->atclk = devm_clk_get(&adev->dev, "atclk"); /* optional */ drvdata 139 drivers/hwtracing/coresight/coresight-tpiu.c if (!IS_ERR(drvdata->atclk)) { drvdata 140 drivers/hwtracing/coresight/coresight-tpiu.c ret = clk_prepare_enable(drvdata->atclk); drvdata 144 drivers/hwtracing/coresight/coresight-tpiu.c dev_set_drvdata(dev, drvdata); drvdata 151 drivers/hwtracing/coresight/coresight-tpiu.c drvdata->base = base; drvdata 154 drivers/hwtracing/coresight/coresight-tpiu.c tpiu_disable_hw(drvdata); drvdata 166 drivers/hwtracing/coresight/coresight-tpiu.c drvdata->csdev = coresight_register(&desc); drvdata 168 drivers/hwtracing/coresight/coresight-tpiu.c if (!IS_ERR(drvdata->csdev)) { drvdata 173 drivers/hwtracing/coresight/coresight-tpiu.c return PTR_ERR(drvdata->csdev); drvdata 179 drivers/hwtracing/coresight/coresight-tpiu.c struct tpiu_drvdata *drvdata = dev_get_drvdata(dev); drvdata 181 drivers/hwtracing/coresight/coresight-tpiu.c if (drvdata && !IS_ERR(drvdata->atclk)) drvdata 182 drivers/hwtracing/coresight/coresight-tpiu.c clk_disable_unprepare(drvdata->atclk); drvdata 189 drivers/hwtracing/coresight/coresight-tpiu.c struct tpiu_drvdata *drvdata = dev_get_drvdata(dev); drvdata 191 drivers/hwtracing/coresight/coresight-tpiu.c if (drvdata && !IS_ERR(drvdata->atclk)) drvdata 192 drivers/hwtracing/coresight/coresight-tpiu.c clk_prepare_enable(drvdata->atclk); drvdata 612 drivers/hwtracing/intel_th/core.c thdev->drvdata = th->drvdata; drvdata 847 drivers/hwtracing/intel_th/core.c intel_th_alloc(struct device *dev, struct intel_th_drvdata *drvdata, drvdata 871 drivers/hwtracing/intel_th/core.c th->drvdata = drvdata; drvdata 59 drivers/hwtracing/intel_th/intel_th.h #define INTEL_TH_CAP(_th, _cap) ((_th)->drvdata ? (_th)->drvdata->_cap : 0) drvdata 75 drivers/hwtracing/intel_th/intel_th.h struct intel_th_drvdata *drvdata; drvdata 225 drivers/hwtracing/intel_th/intel_th.h intel_th_alloc(struct device *dev, struct intel_th_drvdata *drvdata, drvdata 273 drivers/hwtracing/intel_th/intel_th.h struct intel_th_drvdata *drvdata; drvdata 74 drivers/hwtracing/intel_th/pci.c struct intel_th_drvdata *drvdata = (void *)id->driver_data; drvdata 102 drivers/hwtracing/intel_th/pci.c th = intel_th_alloc(&pdev->dev, drvdata, resource, r); drvdata 176 drivers/input/rmi4/rmi_bus.c struct rmi_driver_data *drvdata = dev_get_drvdata(&fn->rmi_dev->dev); drvdata 182 drivers/input/rmi4/rmi_bus.c fn->irq[i] = irq_create_mapping(drvdata->irqdomain, drvdata 169 drivers/input/rmi4/rmi_driver.c struct rmi_driver_data *drvdata = dev_get_drvdata(&rmi_dev->dev); drvdata 173 drivers/input/rmi4/rmi_driver.c if (!drvdata->enabled) drvdata 184 drivers/input/rmi4/rmi_driver.c kfifo_put(&drvdata->attn_fifo, attn_data); drvdata 191 drivers/input/rmi4/rmi_driver.c struct rmi_driver_data *drvdata = dev_get_drvdata(&rmi_dev->dev); drvdata 195 drivers/input/rmi4/rmi_driver.c count = kfifo_get(&drvdata->attn_fifo, &attn_data); drvdata 197 drivers/input/rmi4/rmi_driver.c *(drvdata->irq_status) = attn_data.irq_status; drvdata 198 drivers/input/rmi4/rmi_driver.c drvdata->attn_data = attn_data; drvdata 208 drivers/input/rmi4/rmi_driver.c drvdata->attn_data.data = NULL; drvdata 211 drivers/input/rmi4/rmi_driver.c if (!kfifo_is_empty(&drvdata->attn_fifo)) drvdata 248 drivers/input/rmi4/rmi_f03.c struct rmi_driver_data *drvdata = dev_get_drvdata(&rmi_dev->dev); drvdata 259 drivers/input/rmi4/rmi_f03.c if (drvdata->attn_data.data) { drvdata 261 drivers/input/rmi4/rmi_f03.c if (drvdata->attn_data.size < ob_len) { drvdata 266 drivers/input/rmi4/rmi_f03.c memcpy(obs, drvdata->attn_data.data, ob_len); drvdata 268 drivers/input/rmi4/rmi_f03.c drvdata->attn_data.data += ob_len; drvdata 269 drivers/input/rmi4/rmi_f03.c drvdata->attn_data.size -= ob_len; drvdata 1047 drivers/input/rmi4/rmi_f11.c struct rmi_driver_data *drvdata = dev_get_drvdata(&rmi_dev->dev); drvdata 1054 drivers/input/rmi4/rmi_f11.c mask_size = BITS_TO_LONGS(drvdata->irq_count) * sizeof(unsigned long); drvdata 1267 drivers/input/rmi4/rmi_f11.c struct rmi_driver_data *drvdata = dev_get_drvdata(&rmi_dev->dev); drvdata 1273 drivers/input/rmi4/rmi_f11.c if (drvdata->attn_data.data) { drvdata 1278 drivers/input/rmi4/rmi_f11.c if (f11->sensor.attn_size > drvdata->attn_data.size) drvdata 1279 drivers/input/rmi4/rmi_f11.c valid_bytes = drvdata->attn_data.size; drvdata 1282 drivers/input/rmi4/rmi_f11.c memcpy(f11->sensor.data_pkt, drvdata->attn_data.data, drvdata 1284 drivers/input/rmi4/rmi_f11.c drvdata->attn_data.data += valid_bytes; drvdata 1285 drivers/input/rmi4/rmi_f11.c drvdata->attn_data.size -= valid_bytes; drvdata 203 drivers/input/rmi4/rmi_f12.c struct rmi_driver_data *drvdata = dev_get_drvdata(&rmi_dev->dev); drvdata 208 drivers/input/rmi4/rmi_f12.c if (drvdata->attn_data.data) { drvdata 209 drivers/input/rmi4/rmi_f12.c if (sensor->attn_size > drvdata->attn_data.size) drvdata 210 drivers/input/rmi4/rmi_f12.c valid_bytes = drvdata->attn_data.size; drvdata 213 drivers/input/rmi4/rmi_f12.c memcpy(sensor->data_pkt, drvdata->attn_data.data, drvdata 215 drivers/input/rmi4/rmi_f12.c drvdata->attn_data.data += valid_bytes; drvdata 216 drivers/input/rmi4/rmi_f12.c drvdata->attn_data.size -= valid_bytes; drvdata 328 drivers/input/rmi4/rmi_f12.c struct rmi_driver_data *drvdata = dev_get_drvdata(&rmi_dev->dev); drvdata 334 drivers/input/rmi4/rmi_f12.c mask_size = BITS_TO_LONGS(drvdata->irq_count) * sizeof(unsigned long); drvdata 439 drivers/input/rmi4/rmi_f12.c if (item && !drvdata->attn_data.data) drvdata 453 drivers/input/rmi4/rmi_f12.c if (item && !drvdata->attn_data.data) drvdata 457 drivers/input/rmi4/rmi_f12.c if (item && !drvdata->attn_data.data) drvdata 461 drivers/input/rmi4/rmi_f12.c if (item && !drvdata->attn_data.data) drvdata 473 drivers/input/rmi4/rmi_f12.c if (item && !drvdata->attn_data.data) { drvdata 480 drivers/input/rmi4/rmi_f12.c if (item && !drvdata->attn_data.data) drvdata 484 drivers/input/rmi4/rmi_f12.c if (item && !drvdata->attn_data.data) drvdata 488 drivers/input/rmi4/rmi_f12.c if (item && !drvdata->attn_data.data) { drvdata 497 drivers/input/rmi4/rmi_f12.c if (item && !drvdata->attn_data.data) drvdata 501 drivers/input/rmi4/rmi_f12.c if (item && !drvdata->attn_data.data) drvdata 505 drivers/input/rmi4/rmi_f12.c if (item && !drvdata->attn_data.data) drvdata 509 drivers/input/rmi4/rmi_f12.c if (item && !drvdata->attn_data.data) drvdata 513 drivers/input/rmi4/rmi_f12.c if (item && !drvdata->attn_data.data) drvdata 517 drivers/input/rmi4/rmi_f12.c if (item && !drvdata->attn_data.data) { drvdata 126 drivers/input/rmi4/rmi_f30.c struct rmi_driver_data *drvdata = dev_get_drvdata(&fn->rmi_dev->dev); drvdata 131 drivers/input/rmi4/rmi_f30.c if (drvdata->attn_data.data) { drvdata 132 drivers/input/rmi4/rmi_f30.c if (drvdata->attn_data.size < f30->register_count) { drvdata 137 drivers/input/rmi4/rmi_f30.c memcpy(f30->data_regs, drvdata->attn_data.data, drvdata 139 drivers/input/rmi4/rmi_f30.c drvdata->attn_data.data += f30->register_count; drvdata 140 drivers/input/rmi4/rmi_f30.c drvdata->attn_data.size -= f30->register_count; drvdata 66 drivers/input/serio/ps2-gpio.c struct ps2_gpio_data *drvdata = serio->port_data; drvdata 68 drivers/input/serio/ps2-gpio.c enable_irq(drvdata->irq); drvdata 74 drivers/input/serio/ps2-gpio.c struct ps2_gpio_data *drvdata = serio->port_data; drvdata 76 drivers/input/serio/ps2-gpio.c flush_delayed_work(&drvdata->tx_work); drvdata 77 drivers/input/serio/ps2-gpio.c disable_irq(drvdata->irq); drvdata 82 drivers/input/serio/ps2-gpio.c struct ps2_gpio_data *drvdata = serio->port_data; drvdata 84 drivers/input/serio/ps2-gpio.c disable_irq_nosync(drvdata->irq); drvdata 85 drivers/input/serio/ps2-gpio.c gpiod_direction_output(drvdata->gpio_clk, 0); drvdata 87 drivers/input/serio/ps2-gpio.c drvdata->mode = PS2_MODE_TX; drvdata 88 drivers/input/serio/ps2-gpio.c drvdata->tx_byte = val; drvdata 90 drivers/input/serio/ps2-gpio.c schedule_delayed_work(&drvdata->tx_work, usecs_to_jiffies(200)); drvdata 97 drivers/input/serio/ps2-gpio.c struct ps2_gpio_data *drvdata = serio->port_data; drvdata 101 drivers/input/serio/ps2-gpio.c mutex_lock(&drvdata->tx_mutex); drvdata 103 drivers/input/serio/ps2-gpio.c if (!wait_for_completion_timeout(&drvdata->tx_done, drvdata 106 drivers/input/serio/ps2-gpio.c mutex_unlock(&drvdata->tx_mutex); drvdata 117 drivers/input/serio/ps2-gpio.c struct ps2_gpio_data *drvdata = container_of(dwork, drvdata 121 drivers/input/serio/ps2-gpio.c enable_irq(drvdata->irq); drvdata 122 drivers/input/serio/ps2-gpio.c gpiod_direction_output(drvdata->gpio_data, 0); drvdata 123 drivers/input/serio/ps2-gpio.c gpiod_direction_input(drvdata->gpio_clk); drvdata 126 drivers/input/serio/ps2-gpio.c static irqreturn_t ps2_gpio_irq_rx(struct ps2_gpio_data *drvdata) drvdata 133 drivers/input/serio/ps2-gpio.c byte = drvdata->rx_byte; drvdata 134 drivers/input/serio/ps2-gpio.c cnt = drvdata->rx_cnt; drvdata 140 drivers/input/serio/ps2-gpio.c dev_err(drvdata->dev, drvdata 146 drivers/input/serio/ps2-gpio.c data = gpiod_get_value(drvdata->gpio_data); drvdata 148 drivers/input/serio/ps2-gpio.c dev_err(drvdata->dev, "RX: failed to get data gpio val: %d\n", drvdata 157 drivers/input/serio/ps2-gpio.c dev_err(drvdata->dev, "RX: start bit should be low\n"); drvdata 177 drivers/input/serio/ps2-gpio.c dev_warn(drvdata->dev, "RX: parity error\n"); drvdata 178 drivers/input/serio/ps2-gpio.c if (!drvdata->write_enable) drvdata 185 drivers/input/serio/ps2-gpio.c if (!drvdata->write_enable) { drvdata 198 drivers/input/serio/ps2-gpio.c serio_interrupt(drvdata->serio, byte, rxflags); drvdata 199 drivers/input/serio/ps2-gpio.c dev_dbg(drvdata->dev, "RX: sending byte 0x%x\n", byte); drvdata 204 drivers/input/serio/ps2-gpio.c dev_err(drvdata->dev, "RX: stop bit should be high\n"); drvdata 211 drivers/input/serio/ps2-gpio.c dev_err(drvdata->dev, "RX: got out of sync with the device\n"); drvdata 221 drivers/input/serio/ps2-gpio.c __ps2_gpio_write(drvdata->serio, PS2_CMD_RESEND); drvdata 223 drivers/input/serio/ps2-gpio.c drvdata->rx_cnt = cnt; drvdata 224 drivers/input/serio/ps2-gpio.c drvdata->rx_byte = byte; drvdata 228 drivers/input/serio/ps2-gpio.c static irqreturn_t ps2_gpio_irq_tx(struct ps2_gpio_data *drvdata) drvdata 234 drivers/input/serio/ps2-gpio.c cnt = drvdata->tx_cnt; drvdata 235 drivers/input/serio/ps2-gpio.c byte = drvdata->tx_byte; drvdata 241 drivers/input/serio/ps2-gpio.c dev_err(drvdata->dev, drvdata 250 drivers/input/serio/ps2-gpio.c dev_err(drvdata->dev, drvdata 262 drivers/input/serio/ps2-gpio.c gpiod_set_value(drvdata->gpio_data, data); drvdata 267 drivers/input/serio/ps2-gpio.c gpiod_set_value(drvdata->gpio_data, data); drvdata 271 drivers/input/serio/ps2-gpio.c gpiod_direction_input(drvdata->gpio_data); drvdata 279 drivers/input/serio/ps2-gpio.c gpiod_direction_input(drvdata->gpio_data); drvdata 280 drivers/input/serio/ps2-gpio.c data = gpiod_get_value(drvdata->gpio_data); drvdata 282 drivers/input/serio/ps2-gpio.c dev_warn(drvdata->dev, "TX: received NACK, retry\n"); drvdata 286 drivers/input/serio/ps2-gpio.c drvdata->mode = PS2_MODE_RX; drvdata 287 drivers/input/serio/ps2-gpio.c complete(&drvdata->tx_done); drvdata 296 drivers/input/serio/ps2-gpio.c gpiod_direction_input(drvdata->gpio_data); drvdata 297 drivers/input/serio/ps2-gpio.c dev_err(drvdata->dev, "TX: got out of sync with the device\n"); drvdata 307 drivers/input/serio/ps2-gpio.c gpiod_direction_input(drvdata->gpio_data); drvdata 308 drivers/input/serio/ps2-gpio.c __ps2_gpio_write(drvdata->serio, drvdata->tx_byte); drvdata 310 drivers/input/serio/ps2-gpio.c drvdata->tx_cnt = cnt; drvdata 316 drivers/input/serio/ps2-gpio.c struct ps2_gpio_data *drvdata = dev_id; drvdata 318 drivers/input/serio/ps2-gpio.c return drvdata->mode ? ps2_gpio_irq_tx(drvdata) : drvdata 319 drivers/input/serio/ps2-gpio.c ps2_gpio_irq_rx(drvdata); drvdata 323 drivers/input/serio/ps2-gpio.c struct ps2_gpio_data *drvdata) drvdata 325 drivers/input/serio/ps2-gpio.c drvdata->gpio_data = devm_gpiod_get(dev, "data", GPIOD_IN); drvdata 326 drivers/input/serio/ps2-gpio.c if (IS_ERR(drvdata->gpio_data)) { drvdata 328 drivers/input/serio/ps2-gpio.c PTR_ERR(drvdata->gpio_data)); drvdata 329 drivers/input/serio/ps2-gpio.c return PTR_ERR(drvdata->gpio_data); drvdata 332 drivers/input/serio/ps2-gpio.c drvdata->gpio_clk = devm_gpiod_get(dev, "clk", GPIOD_IN); drvdata 333 drivers/input/serio/ps2-gpio.c if (IS_ERR(drvdata->gpio_clk)) { drvdata 335 drivers/input/serio/ps2-gpio.c PTR_ERR(drvdata->gpio_clk)); drvdata 336 drivers/input/serio/ps2-gpio.c return PTR_ERR(drvdata->gpio_clk); drvdata 339 drivers/input/serio/ps2-gpio.c drvdata->write_enable = device_property_read_bool(dev, drvdata 347 drivers/input/serio/ps2-gpio.c struct ps2_gpio_data *drvdata; drvdata 352 drivers/input/serio/ps2-gpio.c drvdata = devm_kzalloc(dev, sizeof(struct ps2_gpio_data), GFP_KERNEL); drvdata 354 drivers/input/serio/ps2-gpio.c if (!drvdata || !serio) { drvdata 359 drivers/input/serio/ps2-gpio.c error = ps2_gpio_get_props(dev, drvdata); drvdata 363 drivers/input/serio/ps2-gpio.c if (gpiod_cansleep(drvdata->gpio_data) || drvdata 364 drivers/input/serio/ps2-gpio.c gpiod_cansleep(drvdata->gpio_clk)) { drvdata 370 drivers/input/serio/ps2-gpio.c drvdata->irq = platform_get_irq(pdev, 0); drvdata 371 drivers/input/serio/ps2-gpio.c if (drvdata->irq < 0) { drvdata 372 drivers/input/serio/ps2-gpio.c error = drvdata->irq; drvdata 376 drivers/input/serio/ps2-gpio.c error = devm_request_irq(dev, drvdata->irq, ps2_gpio_irq, drvdata 377 drivers/input/serio/ps2-gpio.c IRQF_NO_THREAD, DRIVER_NAME, drvdata); drvdata 380 drivers/input/serio/ps2-gpio.c drvdata->irq, error); drvdata 385 drivers/input/serio/ps2-gpio.c disable_irq(drvdata->irq); drvdata 393 drivers/input/serio/ps2-gpio.c serio->write = drvdata->write_enable ? ps2_gpio_write : NULL; drvdata 394 drivers/input/serio/ps2-gpio.c serio->port_data = drvdata; drvdata 399 drivers/input/serio/ps2-gpio.c drvdata->serio = serio; drvdata 400 drivers/input/serio/ps2-gpio.c drvdata->dev = dev; drvdata 401 drivers/input/serio/ps2-gpio.c drvdata->mode = PS2_MODE_RX; drvdata 406 drivers/input/serio/ps2-gpio.c drvdata->tx_cnt = 1; drvdata 408 drivers/input/serio/ps2-gpio.c INIT_DELAYED_WORK(&drvdata->tx_work, ps2_gpio_tx_work_fn); drvdata 409 drivers/input/serio/ps2-gpio.c init_completion(&drvdata->tx_done); drvdata 410 drivers/input/serio/ps2-gpio.c mutex_init(&drvdata->tx_mutex); drvdata 413 drivers/input/serio/ps2-gpio.c platform_set_drvdata(pdev, drvdata); drvdata 424 drivers/input/serio/ps2-gpio.c struct ps2_gpio_data *drvdata = platform_get_drvdata(pdev); drvdata 426 drivers/input/serio/ps2-gpio.c serio_unregister_port(drvdata->serio); drvdata 97 drivers/input/serio/sun4i-ps2.c struct sun4i_ps2data *drvdata = dev_id; drvdata 104 drivers/input/serio/sun4i-ps2.c spin_lock(&drvdata->lock); drvdata 107 drivers/input/serio/sun4i-ps2.c intr_status = readl(drvdata->reg_base + PS2_REG_LSTS); drvdata 108 drivers/input/serio/sun4i-ps2.c fifo_status = readl(drvdata->reg_base + PS2_REG_FSTS); drvdata 118 drivers/input/serio/sun4i-ps2.c writel(rval, drvdata->reg_base + PS2_REG_LSTS); drvdata 125 drivers/input/serio/sun4i-ps2.c writel(rval, drvdata->reg_base + PS2_REG_FSTS); drvdata 130 drivers/input/serio/sun4i-ps2.c byte = readl(drvdata->reg_base + PS2_REG_DATA) & 0xff; drvdata 131 drivers/input/serio/sun4i-ps2.c serio_interrupt(drvdata->serio, byte, rxflags); drvdata 134 drivers/input/serio/sun4i-ps2.c writel(intr_status, drvdata->reg_base + PS2_REG_LSTS); drvdata 135 drivers/input/serio/sun4i-ps2.c writel(fifo_status, drvdata->reg_base + PS2_REG_FSTS); drvdata 137 drivers/input/serio/sun4i-ps2.c spin_unlock(&drvdata->lock); drvdata 144 drivers/input/serio/sun4i-ps2.c struct sun4i_ps2data *drvdata = serio->port_data; drvdata 154 drivers/input/serio/sun4i-ps2.c writel(rval, drvdata->reg_base + PS2_REG_LCTL); drvdata 161 drivers/input/serio/sun4i-ps2.c writel(rval, drvdata->reg_base + PS2_REG_FCTL); drvdata 163 drivers/input/serio/sun4i-ps2.c src_clk = clk_get_rate(drvdata->clk); drvdata 168 drivers/input/serio/sun4i-ps2.c writel(rval, drvdata->reg_base + PS2_REG_CLKDR); drvdata 174 drivers/input/serio/sun4i-ps2.c spin_lock_irqsave(&drvdata->lock, flags); drvdata 175 drivers/input/serio/sun4i-ps2.c writel(rval, drvdata->reg_base + PS2_REG_GCTL); drvdata 176 drivers/input/serio/sun4i-ps2.c spin_unlock_irqrestore(&drvdata->lock, flags); drvdata 183 drivers/input/serio/sun4i-ps2.c struct sun4i_ps2data *drvdata = serio->port_data; drvdata 187 drivers/input/serio/sun4i-ps2.c rval = readl(drvdata->reg_base + PS2_REG_GCTL); drvdata 188 drivers/input/serio/sun4i-ps2.c writel(rval & ~(PS2_GCTL_INTEN), drvdata->reg_base + PS2_REG_GCTL); drvdata 190 drivers/input/serio/sun4i-ps2.c synchronize_irq(drvdata->irq); drvdata 196 drivers/input/serio/sun4i-ps2.c struct sun4i_ps2data *drvdata = serio->port_data; drvdata 199 drivers/input/serio/sun4i-ps2.c if (readl(drvdata->reg_base + PS2_REG_FSTS) & PS2_FSTS_TXRDY) { drvdata 200 drivers/input/serio/sun4i-ps2.c writel(val, drvdata->reg_base + PS2_REG_DATA); drvdata 211 drivers/input/serio/sun4i-ps2.c struct sun4i_ps2data *drvdata; drvdata 217 drivers/input/serio/sun4i-ps2.c drvdata = kzalloc(sizeof(struct sun4i_ps2data), GFP_KERNEL); drvdata 219 drivers/input/serio/sun4i-ps2.c if (!drvdata || !serio) { drvdata 224 drivers/input/serio/sun4i-ps2.c spin_lock_init(&drvdata->lock); drvdata 234 drivers/input/serio/sun4i-ps2.c drvdata->reg_base = ioremap(res->start, resource_size(res)); drvdata 235 drivers/input/serio/sun4i-ps2.c if (!drvdata->reg_base) { drvdata 241 drivers/input/serio/sun4i-ps2.c drvdata->clk = clk_get(dev, NULL); drvdata 242 drivers/input/serio/sun4i-ps2.c if (IS_ERR(drvdata->clk)) { drvdata 243 drivers/input/serio/sun4i-ps2.c error = PTR_ERR(drvdata->clk); drvdata 248 drivers/input/serio/sun4i-ps2.c error = clk_prepare_enable(drvdata->clk); drvdata 258 drivers/input/serio/sun4i-ps2.c serio->port_data = drvdata; drvdata 264 drivers/input/serio/sun4i-ps2.c writel(0, drvdata->reg_base + PS2_REG_GCTL); drvdata 274 drivers/input/serio/sun4i-ps2.c drvdata->irq = irq; drvdata 275 drivers/input/serio/sun4i-ps2.c drvdata->serio = serio; drvdata 276 drivers/input/serio/sun4i-ps2.c drvdata->dev = dev; drvdata 278 drivers/input/serio/sun4i-ps2.c error = request_irq(drvdata->irq, sun4i_ps2_interrupt, 0, drvdata 279 drivers/input/serio/sun4i-ps2.c DRIVER_NAME, drvdata); drvdata 281 drivers/input/serio/sun4i-ps2.c dev_err(drvdata->dev, "failed to allocate interrupt %d: %d\n", drvdata 282 drivers/input/serio/sun4i-ps2.c drvdata->irq, error); drvdata 287 drivers/input/serio/sun4i-ps2.c platform_set_drvdata(pdev, drvdata); drvdata 292 drivers/input/serio/sun4i-ps2.c clk_disable_unprepare(drvdata->clk); drvdata 294 drivers/input/serio/sun4i-ps2.c clk_put(drvdata->clk); drvdata 296 drivers/input/serio/sun4i-ps2.c iounmap(drvdata->reg_base); drvdata 299 drivers/input/serio/sun4i-ps2.c kfree(drvdata); drvdata 305 drivers/input/serio/sun4i-ps2.c struct sun4i_ps2data *drvdata = platform_get_drvdata(pdev); drvdata 307 drivers/input/serio/sun4i-ps2.c serio_unregister_port(drvdata->serio); drvdata 309 drivers/input/serio/sun4i-ps2.c free_irq(drvdata->irq, drvdata); drvdata 311 drivers/input/serio/sun4i-ps2.c clk_disable_unprepare(drvdata->clk); drvdata 312 drivers/input/serio/sun4i-ps2.c clk_put(drvdata->clk); drvdata 314 drivers/input/serio/sun4i-ps2.c iounmap(drvdata->reg_base); drvdata 316 drivers/input/serio/sun4i-ps2.c kfree(drvdata); drvdata 86 drivers/input/serio/xilinx_ps2.c static int xps2_recv(struct xps2data *drvdata, u8 *byte) drvdata 92 drivers/input/serio/xilinx_ps2.c sr = in_be32(drvdata->base_address + XPS2_STATUS_OFFSET); drvdata 94 drivers/input/serio/xilinx_ps2.c *byte = in_be32(drvdata->base_address + XPS2_RX_DATA_OFFSET); drvdata 106 drivers/input/serio/xilinx_ps2.c struct xps2data *drvdata = dev_id; drvdata 112 drivers/input/serio/xilinx_ps2.c intr_sr = in_be32(drvdata->base_address + XPS2_IPISR_OFFSET); drvdata 113 drivers/input/serio/xilinx_ps2.c out_be32(drvdata->base_address + XPS2_IPISR_OFFSET, intr_sr); drvdata 117 drivers/input/serio/xilinx_ps2.c dev_warn(drvdata->dev, "receive overrun error\n"); drvdata 120 drivers/input/serio/xilinx_ps2.c drvdata->flags |= SERIO_PARITY; drvdata 123 drivers/input/serio/xilinx_ps2.c drvdata->flags |= SERIO_TIMEOUT; drvdata 126 drivers/input/serio/xilinx_ps2.c status = xps2_recv(drvdata, &c); drvdata 130 drivers/input/serio/xilinx_ps2.c dev_err(drvdata->dev, drvdata 133 drivers/input/serio/xilinx_ps2.c serio_interrupt(drvdata->serio, c, drvdata->flags); drvdata 134 drivers/input/serio/xilinx_ps2.c drvdata->flags = 0; drvdata 157 drivers/input/serio/xilinx_ps2.c struct xps2data *drvdata = pserio->port_data; drvdata 162 drivers/input/serio/xilinx_ps2.c spin_lock_irqsave(&drvdata->lock, flags); drvdata 165 drivers/input/serio/xilinx_ps2.c sr = in_be32(drvdata->base_address + XPS2_STATUS_OFFSET); drvdata 167 drivers/input/serio/xilinx_ps2.c out_be32(drvdata->base_address + XPS2_TX_DATA_OFFSET, c); drvdata 171 drivers/input/serio/xilinx_ps2.c spin_unlock_irqrestore(&drvdata->lock, flags); drvdata 184 drivers/input/serio/xilinx_ps2.c struct xps2data *drvdata = pserio->port_data; drvdata 188 drivers/input/serio/xilinx_ps2.c error = request_irq(drvdata->irq, &xps2_interrupt, 0, drvdata 189 drivers/input/serio/xilinx_ps2.c DRIVER_NAME, drvdata); drvdata 191 drivers/input/serio/xilinx_ps2.c dev_err(drvdata->dev, drvdata 192 drivers/input/serio/xilinx_ps2.c "Couldn't allocate interrupt %d\n", drvdata->irq); drvdata 197 drivers/input/serio/xilinx_ps2.c out_be32(drvdata->base_address + XPS2_GIER_OFFSET, XPS2_GIER_GIE_MASK); drvdata 198 drivers/input/serio/xilinx_ps2.c out_be32(drvdata->base_address + XPS2_IPIER_OFFSET, XPS2_IPIXR_RX_ALL); drvdata 199 drivers/input/serio/xilinx_ps2.c (void)xps2_recv(drvdata, &c); drvdata 212 drivers/input/serio/xilinx_ps2.c struct xps2data *drvdata = pserio->port_data; drvdata 215 drivers/input/serio/xilinx_ps2.c out_be32(drvdata->base_address + XPS2_GIER_OFFSET, 0x00); drvdata 216 drivers/input/serio/xilinx_ps2.c out_be32(drvdata->base_address + XPS2_IPIER_OFFSET, 0x00); drvdata 217 drivers/input/serio/xilinx_ps2.c free_irq(drvdata->irq, drvdata); drvdata 233 drivers/input/serio/xilinx_ps2.c struct xps2data *drvdata; drvdata 256 drivers/input/serio/xilinx_ps2.c drvdata = kzalloc(sizeof(struct xps2data), GFP_KERNEL); drvdata 258 drivers/input/serio/xilinx_ps2.c if (!drvdata || !serio) { drvdata 263 drivers/input/serio/xilinx_ps2.c spin_lock_init(&drvdata->lock); drvdata 264 drivers/input/serio/xilinx_ps2.c drvdata->irq = irq; drvdata 265 drivers/input/serio/xilinx_ps2.c drvdata->serio = serio; drvdata 266 drivers/input/serio/xilinx_ps2.c drvdata->dev = dev; drvdata 278 drivers/input/serio/xilinx_ps2.c drvdata->base_address = ioremap(phys_addr, remap_size); drvdata 279 drivers/input/serio/xilinx_ps2.c if (drvdata->base_address == NULL) { drvdata 287 drivers/input/serio/xilinx_ps2.c out_be32(drvdata->base_address + XPS2_IPIER_OFFSET, 0); drvdata 293 drivers/input/serio/xilinx_ps2.c out_be32(drvdata->base_address + XPS2_SRST_OFFSET, XPS2_SRST_RESET); drvdata 296 drivers/input/serio/xilinx_ps2.c (unsigned long long)phys_addr, drvdata->base_address, drvdata 297 drivers/input/serio/xilinx_ps2.c drvdata->irq); drvdata 303 drivers/input/serio/xilinx_ps2.c serio->port_data = drvdata; drvdata 312 drivers/input/serio/xilinx_ps2.c platform_set_drvdata(ofdev, drvdata); drvdata 319 drivers/input/serio/xilinx_ps2.c kfree(drvdata); drvdata 334 drivers/input/serio/xilinx_ps2.c struct xps2data *drvdata = platform_get_drvdata(of_dev); drvdata 337 drivers/input/serio/xilinx_ps2.c serio_unregister_port(drvdata->serio); drvdata 338 drivers/input/serio/xilinx_ps2.c iounmap(drvdata->base_address); drvdata 342 drivers/input/serio/xilinx_ps2.c dev_err(drvdata->dev, "invalid address\n"); drvdata 346 drivers/input/serio/xilinx_ps2.c kfree(drvdata); drvdata 2462 drivers/iommu/iommu.c iommu_sva_bind_device(struct device *dev, struct mm_struct *mm, void *drvdata) drvdata 2487 drivers/iommu/iommu.c handle = ops->sva_bind(dev, mm, drvdata); drvdata 189 drivers/leds/leds-lm3530.c static int lm3530_led_enable(struct lm3530_data *drvdata) drvdata 193 drivers/leds/leds-lm3530.c if (drvdata->enable) drvdata 196 drivers/leds/leds-lm3530.c ret = regulator_enable(drvdata->regulator); drvdata 198 drivers/leds/leds-lm3530.c dev_err(drvdata->led_dev.dev, "Failed to enable vin:%d\n", ret); drvdata 202 drivers/leds/leds-lm3530.c drvdata->enable = true; drvdata 206 drivers/leds/leds-lm3530.c static void lm3530_led_disable(struct lm3530_data *drvdata) drvdata 210 drivers/leds/leds-lm3530.c if (!drvdata->enable) drvdata 213 drivers/leds/leds-lm3530.c ret = regulator_disable(drvdata->regulator); drvdata 215 drivers/leds/leds-lm3530.c dev_err(drvdata->led_dev.dev, "Failed to disable vin:%d\n", drvdata 220 drivers/leds/leds-lm3530.c drvdata->enable = false; drvdata 223 drivers/leds/leds-lm3530.c static int lm3530_init_registers(struct lm3530_data *drvdata) drvdata 231 drivers/leds/leds-lm3530.c struct lm3530_platform_data *pdata = drvdata->pdata; drvdata 232 drivers/leds/leds-lm3530.c struct i2c_client *client = drvdata->client; drvdata 241 drivers/leds/leds-lm3530.c switch (drvdata->mode) { drvdata 258 drivers/leds/leds-lm3530.c if (drvdata->brightness) drvdata 259 drivers/leds/leds-lm3530.c brightness = drvdata->brightness; drvdata 261 drivers/leds/leds-lm3530.c brightness = drvdata->brightness = pdata->brt_val; drvdata 263 drivers/leds/leds-lm3530.c if (brightness > drvdata->led_dev.max_brightness) drvdata 264 drivers/leds/leds-lm3530.c brightness = drvdata->led_dev.max_brightness; drvdata 281 drivers/leds/leds-lm3530.c ret = lm3530_led_enable(drvdata); drvdata 288 drivers/leds/leds-lm3530.c drvdata->mode == LM3530_BL_MODE_PWM) { drvdata 291 drivers/leds/leds-lm3530.c drvdata->led_dev.max_brightness); drvdata 308 drivers/leds/leds-lm3530.c struct lm3530_data *drvdata = drvdata 310 drivers/leds/leds-lm3530.c struct lm3530_platform_data *pdata = drvdata->pdata; drvdata 314 drivers/leds/leds-lm3530.c switch (drvdata->mode) { drvdata 317 drivers/leds/leds-lm3530.c if (!drvdata->enable) { drvdata 318 drivers/leds/leds-lm3530.c err = lm3530_init_registers(drvdata); drvdata 320 drivers/leds/leds-lm3530.c dev_err(&drvdata->client->dev, drvdata 327 drivers/leds/leds-lm3530.c err = i2c_smbus_write_byte_data(drvdata->client, drvdata 330 drivers/leds/leds-lm3530.c dev_err(&drvdata->client->dev, drvdata 333 drivers/leds/leds-lm3530.c drvdata->brightness = brt_val; drvdata 336 drivers/leds/leds-lm3530.c lm3530_led_disable(drvdata); drvdata 353 drivers/leds/leds-lm3530.c struct lm3530_data *drvdata; drvdata 356 drivers/leds/leds-lm3530.c drvdata = container_of(led_cdev, struct lm3530_data, led_dev); drvdata 358 drivers/leds/leds-lm3530.c if (drvdata->mode == mode_map[i].mode_val) drvdata 372 drivers/leds/leds-lm3530.c struct lm3530_data *drvdata; drvdata 377 drivers/leds/leds-lm3530.c drvdata = container_of(led_cdev, struct lm3530_data, led_dev); drvdata 378 drivers/leds/leds-lm3530.c pwm = &drvdata->pdata->pwm_data; drvdata 386 drivers/leds/leds-lm3530.c drvdata->mode = mode; drvdata 392 drivers/leds/leds-lm3530.c err = lm3530_init_registers(drvdata); drvdata 398 drivers/leds/leds-lm3530.c return sizeof(drvdata->mode); drvdata 412 drivers/leds/leds-lm3530.c struct lm3530_data *drvdata; drvdata 431 drivers/leds/leds-lm3530.c drvdata = devm_kzalloc(&client->dev, sizeof(struct lm3530_data), drvdata 433 drivers/leds/leds-lm3530.c if (drvdata == NULL) drvdata 436 drivers/leds/leds-lm3530.c drvdata->mode = pdata->mode; drvdata 437 drivers/leds/leds-lm3530.c drvdata->client = client; drvdata 438 drivers/leds/leds-lm3530.c drvdata->pdata = pdata; drvdata 439 drivers/leds/leds-lm3530.c drvdata->brightness = LED_OFF; drvdata 440 drivers/leds/leds-lm3530.c drvdata->enable = false; drvdata 441 drivers/leds/leds-lm3530.c drvdata->led_dev.name = LM3530_LED_DEV; drvdata 442 drivers/leds/leds-lm3530.c drvdata->led_dev.brightness_set = lm3530_brightness_set; drvdata 443 drivers/leds/leds-lm3530.c drvdata->led_dev.max_brightness = MAX_BRIGHTNESS; drvdata 444 drivers/leds/leds-lm3530.c drvdata->led_dev.groups = lm3530_groups; drvdata 446 drivers/leds/leds-lm3530.c i2c_set_clientdata(client, drvdata); drvdata 448 drivers/leds/leds-lm3530.c drvdata->regulator = devm_regulator_get(&client->dev, "vin"); drvdata 449 drivers/leds/leds-lm3530.c if (IS_ERR(drvdata->regulator)) { drvdata 451 drivers/leds/leds-lm3530.c err = PTR_ERR(drvdata->regulator); drvdata 452 drivers/leds/leds-lm3530.c drvdata->regulator = NULL; drvdata 456 drivers/leds/leds-lm3530.c if (drvdata->pdata->brt_val) { drvdata 457 drivers/leds/leds-lm3530.c err = lm3530_init_registers(drvdata); drvdata 464 drivers/leds/leds-lm3530.c err = led_classdev_register(&client->dev, &drvdata->led_dev); drvdata 475 drivers/leds/leds-lm3530.c struct lm3530_data *drvdata = i2c_get_clientdata(client); drvdata 477 drivers/leds/leds-lm3530.c lm3530_led_disable(drvdata); drvdata 478 drivers/leds/leds-lm3530.c led_classdev_unregister(&drvdata->led_dev); drvdata 387 drivers/leds/leds-lm3532.c struct lm3532_data *drvdata = led->priv; drvdata 398 drivers/leds/leds-lm3532.c if (drvdata->enable_gpio) drvdata 399 drivers/leds/leds-lm3532.c gpiod_direction_output(drvdata->enable_gpio, 1); drvdata 406 drivers/leds/leds-lm3532.c ret = regmap_read(drvdata->regmap, brightness_config_reg, drvdata 413 drivers/leds/leds-lm3532.c ret = regmap_write(drvdata->regmap, brightness_config_reg, drvdata 423 drivers/leds/leds-lm3532.c ret = regmap_write(drvdata->regmap, fs_current_reg, drvdata 435 drivers/leds/leds-lm3532.c ret = regmap_update_bits(drvdata->regmap, LM3532_REG_OUTPUT_CFG, drvdata 440 drivers/leds/leds-lm3532.c runtime_ramp_val = drvdata->runtime_ramp_up | drvdata 441 drivers/leds/leds-lm3532.c (drvdata->runtime_ramp_down << LM3532_RAMP_DOWN_SHIFT); drvdata 443 drivers/leds/leds-lm3532.c return regmap_write(drvdata->regmap, LM3532_REG_RT_RAMP, drvdata 680 drivers/leds/leds-lm3532.c struct lm3532_data *drvdata; drvdata 690 drivers/leds/leds-lm3532.c drvdata = devm_kzalloc(&client->dev, struct_size(drvdata, leds, count), drvdata 692 drivers/leds/leds-lm3532.c if (drvdata == NULL) drvdata 695 drivers/leds/leds-lm3532.c drvdata->client = client; drvdata 696 drivers/leds/leds-lm3532.c drvdata->dev = &client->dev; drvdata 698 drivers/leds/leds-lm3532.c drvdata->regmap = devm_regmap_init_i2c(client, &lm3532_regmap_config); drvdata 699 drivers/leds/leds-lm3532.c if (IS_ERR(drvdata->regmap)) { drvdata 700 drivers/leds/leds-lm3532.c ret = PTR_ERR(drvdata->regmap); drvdata 706 drivers/leds/leds-lm3532.c mutex_init(&drvdata->lock); drvdata 707 drivers/leds/leds-lm3532.c i2c_set_clientdata(client, drvdata); drvdata 709 drivers/leds/leds-lm3532.c ret = lm3532_parse_node(drvdata); drvdata 720 drivers/leds/leds-lm3532.c struct lm3532_data *drvdata = i2c_get_clientdata(client); drvdata 722 drivers/leds/leds-lm3532.c mutex_destroy(&drvdata->lock); drvdata 724 drivers/leds/leds-lm3532.c if (drvdata->enable_gpio) drvdata 725 drivers/leds/leds-lm3532.c gpiod_direction_output(drvdata->enable_gpio, 0); drvdata 213 drivers/leds/leds-wm831x-status.c struct wm831x_status *drvdata; drvdata 224 drivers/leds/leds-wm831x-status.c drvdata = devm_kzalloc(&pdev->dev, sizeof(struct wm831x_status), drvdata 226 drivers/leds/leds-wm831x-status.c if (!drvdata) drvdata 229 drivers/leds/leds-wm831x-status.c drvdata->wm831x = wm831x; drvdata 230 drivers/leds/leds-wm831x-status.c drvdata->reg = res->start; drvdata 243 drivers/leds/leds-wm831x-status.c mutex_init(&drvdata->mutex); drvdata 244 drivers/leds/leds-wm831x-status.c spin_lock_init(&drvdata->value_lock); drvdata 248 drivers/leds/leds-wm831x-status.c drvdata->reg_val = wm831x_reg_read(wm831x, drvdata->reg); drvdata 250 drivers/leds/leds-wm831x-status.c if (drvdata->reg_val & WM831X_LED_MODE_MASK) drvdata 251 drivers/leds/leds-wm831x-status.c drvdata->brightness = LED_FULL; drvdata 253 drivers/leds/leds-wm831x-status.c drvdata->brightness = LED_OFF; drvdata 259 drivers/leds/leds-wm831x-status.c drvdata->src = drvdata->reg_val; drvdata 260 drivers/leds/leds-wm831x-status.c drvdata->src &= WM831X_LED_SRC_MASK; drvdata 261 drivers/leds/leds-wm831x-status.c drvdata->src >>= WM831X_LED_SRC_SHIFT; drvdata 263 drivers/leds/leds-wm831x-status.c drvdata->src = pdata.default_src - 1; drvdata 266 drivers/leds/leds-wm831x-status.c drvdata->cdev.name = pdata.name; drvdata 267 drivers/leds/leds-wm831x-status.c drvdata->cdev.default_trigger = pdata.default_trigger; drvdata 268 drivers/leds/leds-wm831x-status.c drvdata->cdev.brightness_set_blocking = wm831x_status_brightness_set; drvdata 269 drivers/leds/leds-wm831x-status.c drvdata->cdev.blink_set = wm831x_status_blink_set; drvdata 270 drivers/leds/leds-wm831x-status.c drvdata->cdev.groups = wm831x_status_groups; drvdata 272 drivers/leds/leds-wm831x-status.c ret = devm_led_classdev_register(wm831x->dev, &drvdata->cdev); drvdata 275 drivers/media/i2c/video-i2c.c static umode_t amg88xx_is_visible(const void *drvdata, drvdata 149 drivers/media/pci/mantis/hopper_cards.c struct mantis_pci_drvdata *drvdata; drvdata 160 drivers/media/pci/mantis/hopper_cards.c drvdata = (void *)pci_id->driver_data; drvdata 164 drivers/media/pci/mantis/hopper_cards.c config = drvdata->hwconfig; drvdata 167 drivers/media/pci/mantis/hopper_cards.c mantis->rc_map_name = drvdata->rc_map_name; drvdata 158 drivers/media/pci/mantis/mantis_cards.c struct mantis_pci_drvdata *drvdata; drvdata 167 drivers/media/pci/mantis/mantis_cards.c drvdata = (void *)pci_id->driver_data; drvdata 171 drivers/media/pci/mantis/mantis_cards.c config = drvdata->hwconfig; drvdata 174 drivers/media/pci/mantis/mantis_cards.c mantis->rc_map_name = drvdata->rc_map_name; drvdata 255 drivers/media/platform/exynos4-is/fimc-is-param.c switch (is->sensor->drvdata->id) { drvdata 45 drivers/media/platform/exynos4-is/fimc-is-sensor.h const struct sensor_drv_data *drvdata; drvdata 172 drivers/media/platform/exynos4-is/fimc-is.c sensor->drvdata = fimc_is_sensor_get_drvdata(node); drvdata 173 drivers/media/platform/exynos4-is/fimc-is.c if (!sensor->drvdata) { drvdata 642 drivers/media/platform/exynos4-is/fimc-is.c mcuctl_write(sensor->drvdata->id, is, MCUCTL_REG_ISSR(2)); drvdata 649 drivers/media/platform/exynos4-is/fimc-is.c sensor->drvdata->open_timeout); drvdata 668 drivers/media/platform/exynos4-is/media-dev.c void *drvdata; drvdata 676 drivers/media/platform/exynos4-is/media-dev.c drvdata = dev_get_drvdata(dev); drvdata 678 drivers/media/platform/exynos4-is/media-dev.c if (drvdata) { drvdata 681 drivers/media/platform/exynos4-is/media-dev.c ret = register_fimc_entity(fmd, drvdata); drvdata 684 drivers/media/platform/exynos4-is/media-dev.c ret = register_fimc_lite_entity(fmd, drvdata); drvdata 687 drivers/media/platform/exynos4-is/media-dev.c ret = register_csis_entity(fmd, pdev, drvdata); drvdata 690 drivers/media/platform/exynos4-is/media-dev.c ret = register_fimc_is_entity(fmd, drvdata); drvdata 401 drivers/media/platform/s3c-camif/camif-core.c struct s3c_camif_drvdata *drvdata; drvdata 421 drivers/media/platform/s3c-camif/camif-core.c drvdata = (void *)platform_get_device_id(pdev)->driver_data; drvdata 422 drivers/media/platform/s3c-camif/camif-core.c camif->variant = drvdata->variant; drvdata 433 drivers/mmc/host/sdhci_am654.c const struct sdhci_am654_driver_data *drvdata; drvdata 445 drivers/mmc/host/sdhci_am654.c drvdata = match->data; drvdata 446 drivers/mmc/host/sdhci_am654.c host = sdhci_pltfm_init(pdev, drvdata->pdata, sizeof(*sdhci_am654)); drvdata 452 drivers/mmc/host/sdhci_am654.c sdhci_am654->flags = drvdata->flags; drvdata 85 drivers/mtd/nand/raw/txx9ndfmc.c struct txx9ndfmc_drvdata *drvdata = platform_get_drvdata(dev); drvdata 88 drivers/mtd/nand/raw/txx9ndfmc.c return drvdata->base + (reg << plat->shift); drvdata 223 drivers/mtd/nand/raw/txx9ndfmc.c struct txx9ndfmc_drvdata *drvdata = platform_get_drvdata(dev); drvdata 243 drivers/mtd/nand/raw/txx9ndfmc.c txx9ndfmc_write(dev, (drvdata->hold << 4) | drvdata->spw, TXX9_NDFSPR); drvdata 276 drivers/mtd/nand/raw/txx9ndfmc.c struct txx9ndfmc_drvdata *drvdata; drvdata 280 drivers/mtd/nand/raw/txx9ndfmc.c drvdata = devm_kzalloc(&dev->dev, sizeof(*drvdata), GFP_KERNEL); drvdata 281 drivers/mtd/nand/raw/txx9ndfmc.c if (!drvdata) drvdata 284 drivers/mtd/nand/raw/txx9ndfmc.c drvdata->base = devm_ioremap_resource(&dev->dev, res); drvdata 285 drivers/mtd/nand/raw/txx9ndfmc.c if (IS_ERR(drvdata->base)) drvdata 286 drivers/mtd/nand/raw/txx9ndfmc.c return PTR_ERR(drvdata->base); drvdata 297 drivers/mtd/nand/raw/txx9ndfmc.c drvdata->hold = hold; drvdata 299 drivers/mtd/nand/raw/txx9ndfmc.c drvdata->spw = spw; drvdata 303 drivers/mtd/nand/raw/txx9ndfmc.c nand_controller_init(&drvdata->controller); drvdata 304 drivers/mtd/nand/raw/txx9ndfmc.c drvdata->controller.ops = &txx9ndfmc_controller_ops; drvdata 306 drivers/mtd/nand/raw/txx9ndfmc.c platform_set_drvdata(dev, drvdata); drvdata 335 drivers/mtd/nand/raw/txx9ndfmc.c chip->controller = &drvdata->controller; drvdata 365 drivers/mtd/nand/raw/txx9ndfmc.c drvdata->mtds[i] = mtd; drvdata 373 drivers/mtd/nand/raw/txx9ndfmc.c struct txx9ndfmc_drvdata *drvdata = platform_get_drvdata(dev); drvdata 376 drivers/mtd/nand/raw/txx9ndfmc.c if (!drvdata) drvdata 379 drivers/mtd/nand/raw/txx9ndfmc.c struct mtd_info *mtd = drvdata->mtds[i]; drvdata 260 drivers/net/can/c_can/c_can_platform.c const struct c_can_driver_data *drvdata; drvdata 265 drivers/net/can/c_can/c_can_platform.c drvdata = match->data; drvdata 267 drivers/net/can/c_can/c_can_platform.c drvdata = (struct c_can_driver_data *) drvdata 302 drivers/net/can/c_can/c_can_platform.c switch (drvdata->id) { drvdata 359 drivers/net/can/c_can/c_can_platform.c if (id >= drvdata->raminit_num) { drvdata 365 drivers/net/can/c_can/c_can_platform.c raminit->bits = drvdata->raminit_bits[id]; drvdata 366 drivers/net/can/c_can/c_can_platform.c raminit->needs_pulse = drvdata->raminit_pulse; drvdata 383 drivers/net/can/c_can/c_can_platform.c priv->type = drvdata->id; drvdata 2342 drivers/net/ethernet/ibm/emac/core.c void *drvdata; drvdata 2384 drivers/net/ethernet/ibm/emac/core.c if (deps[i].drvdata == NULL) drvdata 2385 drivers/net/ethernet/ibm/emac/core.c deps[i].drvdata = platform_get_drvdata(deps[i].ofdev); drvdata 2386 drivers/net/ethernet/ibm/emac/core.c if (deps[i].drvdata != NULL) drvdata 159 drivers/net/ethernet/xilinx/xilinx_emaclite.c static void xemaclite_enable_interrupts(struct net_local *drvdata) drvdata 164 drivers/net/ethernet/xilinx/xilinx_emaclite.c reg_data = xemaclite_readl(drvdata->base_addr + XEL_TSR_OFFSET); drvdata 166 drivers/net/ethernet/xilinx/xilinx_emaclite.c drvdata->base_addr + XEL_TSR_OFFSET); drvdata 169 drivers/net/ethernet/xilinx/xilinx_emaclite.c xemaclite_writel(XEL_RSR_RECV_IE_MASK, drvdata->base_addr + XEL_RSR_OFFSET); drvdata 172 drivers/net/ethernet/xilinx/xilinx_emaclite.c xemaclite_writel(XEL_GIER_GIE_MASK, drvdata->base_addr + XEL_GIER_OFFSET); drvdata 182 drivers/net/ethernet/xilinx/xilinx_emaclite.c static void xemaclite_disable_interrupts(struct net_local *drvdata) drvdata 187 drivers/net/ethernet/xilinx/xilinx_emaclite.c xemaclite_writel(XEL_GIER_GIE_MASK, drvdata->base_addr + XEL_GIER_OFFSET); drvdata 190 drivers/net/ethernet/xilinx/xilinx_emaclite.c reg_data = xemaclite_readl(drvdata->base_addr + XEL_TSR_OFFSET); drvdata 192 drivers/net/ethernet/xilinx/xilinx_emaclite.c drvdata->base_addr + XEL_TSR_OFFSET); drvdata 195 drivers/net/ethernet/xilinx/xilinx_emaclite.c reg_data = xemaclite_readl(drvdata->base_addr + XEL_RSR_OFFSET); drvdata 197 drivers/net/ethernet/xilinx/xilinx_emaclite.c drvdata->base_addr + XEL_RSR_OFFSET); drvdata 315 drivers/net/ethernet/xilinx/xilinx_emaclite.c static int xemaclite_send_data(struct net_local *drvdata, u8 *data, drvdata 322 drivers/net/ethernet/xilinx/xilinx_emaclite.c addr = drvdata->base_addr + drvdata->next_tx_buf_to_use; drvdata 334 drivers/net/ethernet/xilinx/xilinx_emaclite.c if (drvdata->tx_ping_pong != 0) drvdata 335 drivers/net/ethernet/xilinx/xilinx_emaclite.c drvdata->next_tx_buf_to_use ^= XEL_BUFFER_OFFSET; drvdata 336 drivers/net/ethernet/xilinx/xilinx_emaclite.c } else if (drvdata->tx_ping_pong != 0) { drvdata 380 drivers/net/ethernet/xilinx/xilinx_emaclite.c static u16 xemaclite_recv_data(struct net_local *drvdata, u8 *data, int maxlen) drvdata 387 drivers/net/ethernet/xilinx/xilinx_emaclite.c addr = (drvdata->base_addr + drvdata->next_rx_buf_to_use); drvdata 393 drivers/net/ethernet/xilinx/xilinx_emaclite.c if (drvdata->rx_ping_pong != 0) drvdata 394 drivers/net/ethernet/xilinx/xilinx_emaclite.c drvdata->next_rx_buf_to_use ^= XEL_BUFFER_OFFSET; drvdata 401 drivers/net/ethernet/xilinx/xilinx_emaclite.c if (drvdata->rx_ping_pong != 0) drvdata 471 drivers/net/ethernet/xilinx/xilinx_emaclite.c static void xemaclite_update_address(struct net_local *drvdata, drvdata 478 drivers/net/ethernet/xilinx/xilinx_emaclite.c addr = drvdata->base_addr + drvdata->next_tx_buf_to_use; drvdata 104 drivers/nvmem/imx-iim.c const struct imx_iim_drvdata *drvdata = NULL; drvdata 118 drivers/nvmem/imx-iim.c drvdata = of_id->data; drvdata 130 drivers/nvmem/imx-iim.c cfg.size = drvdata->nregs; drvdata 195 drivers/nvmem/meson-mx-efuse.c const struct meson_mx_efuse_platform_data *drvdata; drvdata 199 drivers/nvmem/meson-mx-efuse.c drvdata = of_device_get_match_data(&pdev->dev); drvdata 200 drivers/nvmem/meson-mx-efuse.c if (!drvdata) drvdata 212 drivers/nvmem/meson-mx-efuse.c efuse->config.name = devm_kstrdup(&pdev->dev, drvdata->name, drvdata 217 drivers/nvmem/meson-mx-efuse.c efuse->config.stride = drvdata->word_size; drvdata 218 drivers/nvmem/meson-mx-efuse.c efuse->config.word_size = drvdata->word_size; drvdata 90 drivers/pci/controller/dwc/pci-imx6.c const struct imx6_pcie_drvdata *drvdata; drvdata 285 drivers/pci/controller/dwc/pci-imx6.c if (!(imx6_pcie->drvdata->flags & IMX6_PCIE_FLAG_IMX6_PHY)) drvdata 381 drivers/pci/controller/dwc/pci-imx6.c switch (imx6_pcie->drvdata->variant) { drvdata 420 drivers/pci/controller/dwc/pci-imx6.c WARN_ON(imx6_pcie->drvdata->variant != IMX8MQ); drvdata 431 drivers/pci/controller/dwc/pci-imx6.c switch (imx6_pcie->drvdata->variant) { drvdata 547 drivers/pci/controller/dwc/pci-imx6.c switch (imx6_pcie->drvdata->variant) { drvdata 610 drivers/pci/controller/dwc/pci-imx6.c if (imx6_pcie->drvdata->variant == IMX8MQ && drvdata 626 drivers/pci/controller/dwc/pci-imx6.c switch (imx6_pcie->drvdata->variant) { drvdata 681 drivers/pci/controller/dwc/pci-imx6.c if (!(imx6_pcie->drvdata->flags & IMX6_PCIE_FLAG_IMX6_PHY)) drvdata 745 drivers/pci/controller/dwc/pci-imx6.c switch (imx6_pcie->drvdata->variant) { drvdata 799 drivers/pci/controller/dwc/pci-imx6.c if (imx6_pcie->drvdata->flags & drvdata 897 drivers/pci/controller/dwc/pci-imx6.c switch (imx6_pcie->drvdata->variant) { drvdata 923 drivers/pci/controller/dwc/pci-imx6.c switch (imx6_pcie->drvdata->variant) { drvdata 953 drivers/pci/controller/dwc/pci-imx6.c switch (imx6_pcie->drvdata->variant) { drvdata 974 drivers/pci/controller/dwc/pci-imx6.c if (!(imx6_pcie->drvdata->flags & IMX6_PCIE_FLAG_SUPPORTS_SUSPEND)) drvdata 990 drivers/pci/controller/dwc/pci-imx6.c if (!(imx6_pcie->drvdata->flags & IMX6_PCIE_FLAG_SUPPORTS_SUSPEND)) drvdata 1034 drivers/pci/controller/dwc/pci-imx6.c imx6_pcie->drvdata = of_device_get_match_data(dev); drvdata 1095 drivers/pci/controller/dwc/pci-imx6.c switch (imx6_pcie->drvdata->variant) { drvdata 1211 drivers/pci/controller/dwc/pci-imx6.c static const struct imx6_pcie_drvdata drvdata[] = { drvdata 1239 drivers/pci/controller/dwc/pci-imx6.c { .compatible = "fsl,imx6q-pcie", .data = &drvdata[IMX6Q], }, drvdata 1240 drivers/pci/controller/dwc/pci-imx6.c { .compatible = "fsl,imx6sx-pcie", .data = &drvdata[IMX6SX], }, drvdata 1241 drivers/pci/controller/dwc/pci-imx6.c { .compatible = "fsl,imx6qp-pcie", .data = &drvdata[IMX6QP], }, drvdata 1242 drivers/pci/controller/dwc/pci-imx6.c { .compatible = "fsl,imx7d-pcie", .data = &drvdata[IMX7D], }, drvdata 1243 drivers/pci/controller/dwc/pci-imx6.c { .compatible = "fsl,imx8mq-pcie", .data = &drvdata[IMX8MQ], } , drvdata 1280 drivers/pci/controller/dwc/pci-imx6.c if (imx6_pcie->drvdata->dbi_length) { drvdata 1281 drivers/pci/controller/dwc/pci-imx6.c dev->cfg_size = imx6_pcie->drvdata->dbi_length; drvdata 50 drivers/pci/controller/dwc/pci-layerscape.c const struct ls_pcie_drvdata *drvdata; drvdata 116 drivers/pci/controller/dwc/pci-layerscape.c state = (ioread32(pcie->lut + pcie->drvdata->lut_dbg) >> drvdata 117 drivers/pci/controller/dwc/pci-layerscape.c pcie->drvdata->ltssm_shift) & drvdata 282 drivers/pci/controller/dwc/pci-layerscape.c pp->ops = pcie->drvdata->ops; drvdata 309 drivers/pci/controller/dwc/pci-layerscape.c pcie->drvdata = of_device_get_match_data(dev); drvdata 312 drivers/pci/controller/dwc/pci-layerscape.c pci->ops = pcie->drvdata->dw_pcie_ops; drvdata 321 drivers/pci/controller/dwc/pci-layerscape.c pcie->lut = pci->dbi_base + pcie->drvdata->lut_offset; drvdata 28 drivers/phy/samsung/phy-exynos-dp-video.c const struct exynos_dp_video_phy_drvdata *drvdata; drvdata 36 drivers/phy/samsung/phy-exynos-dp-video.c return regmap_update_bits(state->regs, state->drvdata->phy_ctrl_offset, drvdata 45 drivers/phy/samsung/phy-exynos-dp-video.c return regmap_update_bits(state->regs, state->drvdata->phy_ctrl_offset, drvdata 93 drivers/phy/samsung/phy-exynos-dp-video.c state->drvdata = of_device_get_match_data(dev); drvdata 156 drivers/pinctrl/pinctrl-rockchip.c struct rockchip_pinctrl *drvdata; drvdata 684 drivers/pinctrl/pinctrl-rockchip.c struct rockchip_pinctrl *info = bank->drvdata; drvdata 1115 drivers/pinctrl/pinctrl-rockchip.c struct rockchip_pinctrl *info = bank->drvdata; drvdata 1139 drivers/pinctrl/pinctrl-rockchip.c struct rockchip_pinctrl *info = bank->drvdata; drvdata 1191 drivers/pinctrl/pinctrl-rockchip.c struct rockchip_pinctrl *info = bank->drvdata; drvdata 1228 drivers/pinctrl/pinctrl-rockchip.c struct rockchip_pinctrl *info = bank->drvdata; drvdata 1308 drivers/pinctrl/pinctrl-rockchip.c struct rockchip_pinctrl *info = bank->drvdata; drvdata 1338 drivers/pinctrl/pinctrl-rockchip.c struct rockchip_pinctrl *info = bank->drvdata; drvdata 1369 drivers/pinctrl/pinctrl-rockchip.c struct rockchip_pinctrl *info = bank->drvdata; drvdata 1399 drivers/pinctrl/pinctrl-rockchip.c struct rockchip_pinctrl *info = bank->drvdata; drvdata 1428 drivers/pinctrl/pinctrl-rockchip.c struct rockchip_pinctrl *info = bank->drvdata; drvdata 1459 drivers/pinctrl/pinctrl-rockchip.c struct rockchip_pinctrl *info = bank->drvdata; drvdata 1486 drivers/pinctrl/pinctrl-rockchip.c struct rockchip_pinctrl *info = bank->drvdata; drvdata 1502 drivers/pinctrl/pinctrl-rockchip.c struct rockchip_pinctrl *info = bank->drvdata; drvdata 1522 drivers/pinctrl/pinctrl-rockchip.c struct rockchip_pinctrl *info = bank->drvdata; drvdata 1557 drivers/pinctrl/pinctrl-rockchip.c struct rockchip_pinctrl *info = bank->drvdata; drvdata 1591 drivers/pinctrl/pinctrl-rockchip.c struct rockchip_pinctrl *info = bank->drvdata; drvdata 1621 drivers/pinctrl/pinctrl-rockchip.c struct rockchip_pinctrl *info = bank->drvdata; drvdata 1638 drivers/pinctrl/pinctrl-rockchip.c struct rockchip_pinctrl *info = bank->drvdata; drvdata 1656 drivers/pinctrl/pinctrl-rockchip.c struct rockchip_pinctrl *info = bank->drvdata; drvdata 1687 drivers/pinctrl/pinctrl-rockchip.c struct rockchip_pinctrl *info = bank->drvdata; drvdata 1719 drivers/pinctrl/pinctrl-rockchip.c struct rockchip_pinctrl *info = bank->drvdata; drvdata 1749 drivers/pinctrl/pinctrl-rockchip.c struct rockchip_pinctrl *info = bank->drvdata; drvdata 1777 drivers/pinctrl/pinctrl-rockchip.c struct rockchip_pinctrl *info = bank->drvdata; drvdata 1854 drivers/pinctrl/pinctrl-rockchip.c struct rockchip_pinctrl *info = bank->drvdata; drvdata 1962 drivers/pinctrl/pinctrl-rockchip.c struct rockchip_pinctrl *info = bank->drvdata; drvdata 2005 drivers/pinctrl/pinctrl-rockchip.c struct rockchip_pinctrl *info = bank->drvdata; drvdata 2076 drivers/pinctrl/pinctrl-rockchip.c struct rockchip_pinctrl *info = bank->drvdata; drvdata 2090 drivers/pinctrl/pinctrl-rockchip.c struct rockchip_pinctrl *info = bank->drvdata; drvdata 2112 drivers/pinctrl/pinctrl-rockchip.c struct rockchip_pinctrl *info = bank->drvdata; drvdata 2207 drivers/pinctrl/pinctrl-rockchip.c dev_err(bank->drvdata->dev, drvdata 2841 drivers/pinctrl/pinctrl-rockchip.c dev_dbg(bank->drvdata->dev, "got irq for bank %s\n", bank->name); drvdata 2855 drivers/pinctrl/pinctrl-rockchip.c dev_err(bank->drvdata->dev, "unmapped irq %d\n", irq); drvdata 2859 drivers/pinctrl/pinctrl-rockchip.c dev_dbg(bank->drvdata->dev, "handling irq %d\n", irq); drvdata 3263 drivers/pinctrl/pinctrl-rockchip.c bank->drvdata = d; drvdata 43 drivers/pinctrl/samsung/pinctrl-exynos-arm.c static void s5pv210_retention_disable(struct samsung_pinctrl_drv_data *drvdata) drvdata 45 drivers/pinctrl/samsung/pinctrl-exynos-arm.c void __iomem *clk_base = (void __iomem *)drvdata->retention_ctrl->priv; drvdata 55 drivers/pinctrl/samsung/pinctrl-exynos-arm.c s5pv210_retention_init(struct samsung_pinctrl_drv_data *drvdata, drvdata 62 drivers/pinctrl/samsung/pinctrl-exynos-arm.c ctrl = devm_kzalloc(drvdata->dev, sizeof(*ctrl), GFP_KERNEL); drvdata 578 drivers/pinctrl/samsung/pinctrl-exynos.c exynos_pinctrl_set_eint_wakeup_mask(struct samsung_pinctrl_drv_data *drvdata, drvdata 583 drivers/pinctrl/samsung/pinctrl-exynos.c if (!drvdata->retention_ctrl || !drvdata->retention_ctrl->priv) { drvdata 584 drivers/pinctrl/samsung/pinctrl-exynos.c dev_warn(drvdata->dev, drvdata 589 drivers/pinctrl/samsung/pinctrl-exynos.c pmu_regs = drvdata->retention_ctrl->priv; drvdata 590 drivers/pinctrl/samsung/pinctrl-exynos.c dev_info(drvdata->dev, drvdata 599 drivers/pinctrl/samsung/pinctrl-exynos.c struct samsung_pinctrl_drv_data *drvdata, drvdata 617 drivers/pinctrl/samsung/pinctrl-exynos.c void exynos_pinctrl_suspend(struct samsung_pinctrl_drv_data *drvdata) drvdata 619 drivers/pinctrl/samsung/pinctrl-exynos.c struct samsung_pin_bank *bank = drvdata->pin_banks; drvdata 623 drivers/pinctrl/samsung/pinctrl-exynos.c for (i = 0; i < drvdata->nr_banks; ++i, ++bank) { drvdata 625 drivers/pinctrl/samsung/pinctrl-exynos.c exynos_pinctrl_suspend_bank(drvdata, bank); drvdata 629 drivers/pinctrl/samsung/pinctrl-exynos.c exynos_pinctrl_set_eint_wakeup_mask(drvdata, drvdata 632 drivers/pinctrl/samsung/pinctrl-exynos.c dev_warn(drvdata->dev, drvdata 641 drivers/pinctrl/samsung/pinctrl-exynos.c struct samsung_pinctrl_drv_data *drvdata, drvdata 665 drivers/pinctrl/samsung/pinctrl-exynos.c void exynos_pinctrl_resume(struct samsung_pinctrl_drv_data *drvdata) drvdata 667 drivers/pinctrl/samsung/pinctrl-exynos.c struct samsung_pin_bank *bank = drvdata->pin_banks; drvdata 670 drivers/pinctrl/samsung/pinctrl-exynos.c for (i = 0; i < drvdata->nr_banks; ++i, ++bank) drvdata 672 drivers/pinctrl/samsung/pinctrl-exynos.c exynos_pinctrl_resume_bank(drvdata, bank); drvdata 675 drivers/pinctrl/samsung/pinctrl-exynos.c static void exynos_retention_enable(struct samsung_pinctrl_drv_data *drvdata) drvdata 677 drivers/pinctrl/samsung/pinctrl-exynos.c if (drvdata->retention_ctrl->refcnt) drvdata 678 drivers/pinctrl/samsung/pinctrl-exynos.c atomic_inc(drvdata->retention_ctrl->refcnt); drvdata 681 drivers/pinctrl/samsung/pinctrl-exynos.c static void exynos_retention_disable(struct samsung_pinctrl_drv_data *drvdata) drvdata 683 drivers/pinctrl/samsung/pinctrl-exynos.c struct samsung_retention_ctrl *ctrl = drvdata->retention_ctrl; drvdata 695 drivers/pinctrl/samsung/pinctrl-exynos.c exynos_retention_init(struct samsung_pinctrl_drv_data *drvdata, drvdata 702 drivers/pinctrl/samsung/pinctrl-exynos.c ctrl = devm_kzalloc(drvdata->dev, sizeof(*ctrl), GFP_KERNEL); drvdata 135 drivers/pinctrl/samsung/pinctrl-exynos.h void exynos_pinctrl_suspend(struct samsung_pinctrl_drv_data *drvdata); drvdata 136 drivers/pinctrl/samsung/pinctrl-exynos.h void exynos_pinctrl_resume(struct samsung_pinctrl_drv_data *drvdata); drvdata 138 drivers/pinctrl/samsung/pinctrl-exynos.h exynos_retention_init(struct samsung_pinctrl_drv_data *drvdata, drvdata 89 drivers/pinctrl/samsung/pinctrl-s3c24xx.c struct samsung_pinctrl_drv_data *drvdata; drvdata 166 drivers/pinctrl/samsung/pinctrl-s3c24xx.c struct samsung_pinctrl_drv_data *d = bank->drvdata; drvdata 257 drivers/pinctrl/samsung/pinctrl-s3c24xx.c struct samsung_pinctrl_drv_data *d = bank->drvdata; drvdata 266 drivers/pinctrl/samsung/pinctrl-s3c24xx.c struct samsung_pinctrl_drv_data *d = bank->drvdata; drvdata 277 drivers/pinctrl/samsung/pinctrl-s3c24xx.c struct samsung_pinctrl_drv_data *d = bank->drvdata; drvdata 317 drivers/pinctrl/samsung/pinctrl-s3c24xx.c struct samsung_pinctrl_drv_data *d = bank->drvdata; drvdata 326 drivers/pinctrl/samsung/pinctrl-s3c24xx.c struct samsung_pinctrl_drv_data *d = bank->drvdata; drvdata 338 drivers/pinctrl/samsung/pinctrl-s3c24xx.c struct samsung_pinctrl_drv_data *d = bank->drvdata; drvdata 360 drivers/pinctrl/samsung/pinctrl-s3c24xx.c struct samsung_pinctrl_drv_data *d = data->drvdata; drvdata 498 drivers/pinctrl/samsung/pinctrl-s3c24xx.c eint_data->drvdata = d; drvdata 202 drivers/pinctrl/samsung/pinctrl-s3c64xx.c struct samsung_pinctrl_drv_data *drvdata; drvdata 223 drivers/pinctrl/samsung/pinctrl-s3c64xx.c struct samsung_pinctrl_drv_data *drvdata; drvdata 306 drivers/pinctrl/samsung/pinctrl-s3c64xx.c struct samsung_pinctrl_drv_data *d = bank->drvdata; drvdata 332 drivers/pinctrl/samsung/pinctrl-s3c64xx.c struct samsung_pinctrl_drv_data *d = bank->drvdata; drvdata 342 drivers/pinctrl/samsung/pinctrl-s3c64xx.c struct samsung_pinctrl_drv_data *d = bank->drvdata; drvdata 409 drivers/pinctrl/samsung/pinctrl-s3c64xx.c struct samsung_pinctrl_drv_data *drvdata = data->drvdata; drvdata 419 drivers/pinctrl/samsung/pinctrl-s3c64xx.c svc = readl(drvdata->virt_base + SERVICE_REG); drvdata 490 drivers/pinctrl/samsung/pinctrl-s3c64xx.c data->drvdata = d; drvdata 514 drivers/pinctrl/samsung/pinctrl-s3c64xx.c struct samsung_pinctrl_drv_data *d = ddata->bank->drvdata; drvdata 539 drivers/pinctrl/samsung/pinctrl-s3c64xx.c struct samsung_pinctrl_drv_data *d = ddata->bank->drvdata; drvdata 550 drivers/pinctrl/samsung/pinctrl-s3c64xx.c struct samsung_pinctrl_drv_data *d = bank->drvdata; drvdata 598 drivers/pinctrl/samsung/pinctrl-s3c64xx.c struct samsung_pinctrl_drv_data *drvdata = data->drvdata; drvdata 603 drivers/pinctrl/samsung/pinctrl-s3c64xx.c pend = readl(drvdata->virt_base + EINT0PEND_REG); drvdata 604 drivers/pinctrl/samsung/pinctrl-s3c64xx.c mask = readl(drvdata->virt_base + EINT0MASK_REG); drvdata 711 drivers/pinctrl/samsung/pinctrl-s3c64xx.c data->drvdata = d; drvdata 173 drivers/pinctrl/samsung/pinctrl-samsung.c static int samsung_dt_subnode_to_map(struct samsung_pinctrl_drv_data *drvdata, drvdata 253 drivers/pinctrl/samsung/pinctrl-samsung.c struct samsung_pinctrl_drv_data *drvdata; drvdata 258 drivers/pinctrl/samsung/pinctrl-samsung.c drvdata = pinctrl_dev_get_drvdata(pctldev); drvdata 265 drivers/pinctrl/samsung/pinctrl-samsung.c return samsung_dt_subnode_to_map(drvdata, pctldev->dev, drvdata 271 drivers/pinctrl/samsung/pinctrl-samsung.c ret = samsung_dt_subnode_to_map(drvdata, pctldev->dev, np, map, drvdata 324 drivers/pinctrl/samsung/pinctrl-samsung.c struct samsung_pinctrl_drv_data *drvdata; drvdata 326 drivers/pinctrl/samsung/pinctrl-samsung.c drvdata = pinctrl_dev_get_drvdata(pctldev); drvdata 327 drivers/pinctrl/samsung/pinctrl-samsung.c return drvdata->nr_functions; drvdata 334 drivers/pinctrl/samsung/pinctrl-samsung.c struct samsung_pinctrl_drv_data *drvdata; drvdata 336 drivers/pinctrl/samsung/pinctrl-samsung.c drvdata = pinctrl_dev_get_drvdata(pctldev); drvdata 337 drivers/pinctrl/samsung/pinctrl-samsung.c return drvdata->pmx_functions[selector].name; drvdata 345 drivers/pinctrl/samsung/pinctrl-samsung.c struct samsung_pinctrl_drv_data *drvdata; drvdata 347 drivers/pinctrl/samsung/pinctrl-samsung.c drvdata = pinctrl_dev_get_drvdata(pctldev); drvdata 348 drivers/pinctrl/samsung/pinctrl-samsung.c *groups = drvdata->pmx_functions[selector].groups; drvdata 349 drivers/pinctrl/samsung/pinctrl-samsung.c *num_groups = drvdata->pmx_functions[selector].num_groups; drvdata 357 drivers/pinctrl/samsung/pinctrl-samsung.c static void pin_to_reg_bank(struct samsung_pinctrl_drv_data *drvdata, drvdata 363 drivers/pinctrl/samsung/pinctrl-samsung.c b = drvdata->pin_banks; drvdata 379 drivers/pinctrl/samsung/pinctrl-samsung.c struct samsung_pinctrl_drv_data *drvdata; drvdata 388 drivers/pinctrl/samsung/pinctrl-samsung.c drvdata = pinctrl_dev_get_drvdata(pctldev); drvdata 389 drivers/pinctrl/samsung/pinctrl-samsung.c func = &drvdata->pmx_functions[selector]; drvdata 390 drivers/pinctrl/samsung/pinctrl-samsung.c grp = &drvdata->pin_groups[group]; drvdata 392 drivers/pinctrl/samsung/pinctrl-samsung.c pin_to_reg_bank(drvdata, grp->pins[0] - drvdata->pin_base, drvdata 434 drivers/pinctrl/samsung/pinctrl-samsung.c struct samsung_pinctrl_drv_data *drvdata; drvdata 443 drivers/pinctrl/samsung/pinctrl-samsung.c drvdata = pinctrl_dev_get_drvdata(pctldev); drvdata 444 drivers/pinctrl/samsung/pinctrl-samsung.c pin_to_reg_bank(drvdata, pin - drvdata->pin_base, ®_base, drvdata 503 drivers/pinctrl/samsung/pinctrl-samsung.c struct samsung_pinctrl_drv_data *drvdata; drvdata 507 drivers/pinctrl/samsung/pinctrl-samsung.c drvdata = pinctrl_dev_get_drvdata(pctldev); drvdata 508 drivers/pinctrl/samsung/pinctrl-samsung.c pins = drvdata->pin_groups[group].pins; drvdata 510 drivers/pinctrl/samsung/pinctrl-samsung.c for (cnt = 0; cnt < drvdata->pin_groups[group].num_pins; cnt++) drvdata 520 drivers/pinctrl/samsung/pinctrl-samsung.c struct samsung_pinctrl_drv_data *drvdata; drvdata 523 drivers/pinctrl/samsung/pinctrl-samsung.c drvdata = pinctrl_dev_get_drvdata(pctldev); drvdata 524 drivers/pinctrl/samsung/pinctrl-samsung.c pins = drvdata->pin_groups[group].pins; drvdata 670 drivers/pinctrl/samsung/pinctrl-samsung.c struct samsung_pinctrl_drv_data *drvdata, drvdata 673 drivers/pinctrl/samsung/pinctrl-samsung.c struct pinctrl_desc *ctrldesc = &drvdata->pctl; drvdata 696 drivers/pinctrl/samsung/pinctrl-samsung.c struct samsung_pinctrl_drv_data *drvdata, drvdata 740 drivers/pinctrl/samsung/pinctrl-samsung.c struct samsung_pinctrl_drv_data *drvdata, drvdata 787 drivers/pinctrl/samsung/pinctrl-samsung.c ret = samsung_pinctrl_create_function(dev, drvdata, drvdata 801 drivers/pinctrl/samsung/pinctrl-samsung.c ret = samsung_pinctrl_create_function(dev, drvdata, drvdata 826 drivers/pinctrl/samsung/pinctrl-samsung.c struct samsung_pinctrl_drv_data *drvdata) drvdata 833 drivers/pinctrl/samsung/pinctrl-samsung.c groups = samsung_pinctrl_create_groups(dev, drvdata, &grp_cnt); drvdata 839 drivers/pinctrl/samsung/pinctrl-samsung.c functions = samsung_pinctrl_create_functions(dev, drvdata, &func_cnt); drvdata 845 drivers/pinctrl/samsung/pinctrl-samsung.c drvdata->pin_groups = groups; drvdata 846 drivers/pinctrl/samsung/pinctrl-samsung.c drvdata->nr_groups = grp_cnt; drvdata 847 drivers/pinctrl/samsung/pinctrl-samsung.c drvdata->pmx_functions = functions; drvdata 848 drivers/pinctrl/samsung/pinctrl-samsung.c drvdata->nr_functions = func_cnt; drvdata 855 drivers/pinctrl/samsung/pinctrl-samsung.c struct samsung_pinctrl_drv_data *drvdata) drvdata 857 drivers/pinctrl/samsung/pinctrl-samsung.c struct pinctrl_desc *ctrldesc = &drvdata->pctl; drvdata 870 drivers/pinctrl/samsung/pinctrl-samsung.c drvdata->nr_pins, sizeof(*pindesc), drvdata 875 drivers/pinctrl/samsung/pinctrl-samsung.c ctrldesc->npins = drvdata->nr_pins; drvdata 879 drivers/pinctrl/samsung/pinctrl-samsung.c pdesc->number = pin + drvdata->pin_base; drvdata 887 drivers/pinctrl/samsung/pinctrl-samsung.c drvdata->nr_pins), drvdata 893 drivers/pinctrl/samsung/pinctrl-samsung.c for (bank = 0; bank < drvdata->nr_banks; bank++) { drvdata 894 drivers/pinctrl/samsung/pinctrl-samsung.c pin_bank = &drvdata->pin_banks[bank]; drvdata 903 drivers/pinctrl/samsung/pinctrl-samsung.c ret = samsung_pinctrl_parse_dt(pdev, drvdata); drvdata 907 drivers/pinctrl/samsung/pinctrl-samsung.c drvdata->pctl_dev = devm_pinctrl_register(&pdev->dev, ctrldesc, drvdata 908 drivers/pinctrl/samsung/pinctrl-samsung.c drvdata); drvdata 909 drivers/pinctrl/samsung/pinctrl-samsung.c if (IS_ERR(drvdata->pctl_dev)) { drvdata 911 drivers/pinctrl/samsung/pinctrl-samsung.c return PTR_ERR(drvdata->pctl_dev); drvdata 914 drivers/pinctrl/samsung/pinctrl-samsung.c for (bank = 0; bank < drvdata->nr_banks; ++bank) { drvdata 915 drivers/pinctrl/samsung/pinctrl-samsung.c pin_bank = &drvdata->pin_banks[bank]; drvdata 918 drivers/pinctrl/samsung/pinctrl-samsung.c pin_bank->grange.pin_base = drvdata->pin_base drvdata 923 drivers/pinctrl/samsung/pinctrl-samsung.c pinctrl_add_gpio_range(drvdata->pctl_dev, &pin_bank->grange); drvdata 931 drivers/pinctrl/samsung/pinctrl-samsung.c struct samsung_pinctrl_drv_data *drvdata) drvdata 933 drivers/pinctrl/samsung/pinctrl-samsung.c struct samsung_pin_bank *bank = drvdata->pin_banks; drvdata 936 drivers/pinctrl/samsung/pinctrl-samsung.c for (i = 0; i < drvdata->nr_banks; ++i, ++bank) drvdata 937 drivers/pinctrl/samsung/pinctrl-samsung.c pinctrl_remove_gpio_range(drvdata->pctl_dev, &bank->grange); drvdata 955 drivers/pinctrl/samsung/pinctrl-samsung.c struct samsung_pinctrl_drv_data *drvdata) drvdata 957 drivers/pinctrl/samsung/pinctrl-samsung.c struct samsung_pin_bank *bank = drvdata->pin_banks; drvdata 962 drivers/pinctrl/samsung/pinctrl-samsung.c for (i = 0; i < drvdata->nr_banks; ++i, ++bank) { drvdata 1061 drivers/pinctrl/samsung/pinctrl-samsung.c bank->drvdata = d; drvdata 1095 drivers/pinctrl/samsung/pinctrl-samsung.c struct samsung_pinctrl_drv_data *drvdata; drvdata 1101 drivers/pinctrl/samsung/pinctrl-samsung.c drvdata = devm_kzalloc(dev, sizeof(*drvdata), GFP_KERNEL); drvdata 1102 drivers/pinctrl/samsung/pinctrl-samsung.c if (!drvdata) drvdata 1105 drivers/pinctrl/samsung/pinctrl-samsung.c ctrl = samsung_pinctrl_get_soc_data(drvdata, pdev); drvdata 1110 drivers/pinctrl/samsung/pinctrl-samsung.c drvdata->dev = dev; drvdata 1114 drivers/pinctrl/samsung/pinctrl-samsung.c drvdata->irq = res->start; drvdata 1117 drivers/pinctrl/samsung/pinctrl-samsung.c drvdata->retention_ctrl = ctrl->retention_data->init(drvdata, drvdata 1119 drivers/pinctrl/samsung/pinctrl-samsung.c if (IS_ERR(drvdata->retention_ctrl)) drvdata 1120 drivers/pinctrl/samsung/pinctrl-samsung.c return PTR_ERR(drvdata->retention_ctrl); drvdata 1123 drivers/pinctrl/samsung/pinctrl-samsung.c ret = samsung_pinctrl_register(pdev, drvdata); drvdata 1127 drivers/pinctrl/samsung/pinctrl-samsung.c ret = samsung_gpiolib_register(pdev, drvdata); drvdata 1129 drivers/pinctrl/samsung/pinctrl-samsung.c samsung_pinctrl_unregister(pdev, drvdata); drvdata 1134 drivers/pinctrl/samsung/pinctrl-samsung.c ctrl->eint_gpio_init(drvdata); drvdata 1136 drivers/pinctrl/samsung/pinctrl-samsung.c ctrl->eint_wkup_init(drvdata); drvdata 1138 drivers/pinctrl/samsung/pinctrl-samsung.c platform_set_drvdata(pdev, drvdata); drvdata 1150 drivers/pinctrl/samsung/pinctrl-samsung.c struct samsung_pinctrl_drv_data *drvdata = dev_get_drvdata(dev); drvdata 1153 drivers/pinctrl/samsung/pinctrl-samsung.c for (i = 0; i < drvdata->nr_banks; i++) { drvdata 1154 drivers/pinctrl/samsung/pinctrl-samsung.c struct samsung_pin_bank *bank = &drvdata->pin_banks[i]; drvdata 1182 drivers/pinctrl/samsung/pinctrl-samsung.c if (drvdata->suspend) drvdata 1183 drivers/pinctrl/samsung/pinctrl-samsung.c drvdata->suspend(drvdata); drvdata 1184 drivers/pinctrl/samsung/pinctrl-samsung.c if (drvdata->retention_ctrl && drvdata->retention_ctrl->enable) drvdata 1185 drivers/pinctrl/samsung/pinctrl-samsung.c drvdata->retention_ctrl->enable(drvdata); drvdata 1200 drivers/pinctrl/samsung/pinctrl-samsung.c struct samsung_pinctrl_drv_data *drvdata = dev_get_drvdata(dev); drvdata 1203 drivers/pinctrl/samsung/pinctrl-samsung.c if (drvdata->resume) drvdata 1204 drivers/pinctrl/samsung/pinctrl-samsung.c drvdata->resume(drvdata); drvdata 1206 drivers/pinctrl/samsung/pinctrl-samsung.c for (i = 0; i < drvdata->nr_banks; i++) { drvdata 1207 drivers/pinctrl/samsung/pinctrl-samsung.c struct samsung_pin_bank *bank = &drvdata->pin_banks[i]; drvdata 1237 drivers/pinctrl/samsung/pinctrl-samsung.c if (drvdata->retention_ctrl && drvdata->retention_ctrl->disable) drvdata 1238 drivers/pinctrl/samsung/pinctrl-samsung.c drvdata->retention_ctrl->disable(drvdata); drvdata 169 drivers/pinctrl/samsung/pinctrl-samsung.h struct samsung_pinctrl_drv_data *drvdata; drvdata 146 drivers/regulator/fixed.c struct fixed_voltage_data *drvdata; drvdata 152 drivers/regulator/fixed.c drvdata = devm_kzalloc(&pdev->dev, sizeof(struct fixed_voltage_data), drvdata 154 drivers/regulator/fixed.c if (!drvdata) drvdata 159 drivers/regulator/fixed.c &drvdata->desc); drvdata 169 drivers/regulator/fixed.c drvdata->desc.name = devm_kstrdup(&pdev->dev, drvdata 172 drivers/regulator/fixed.c if (drvdata->desc.name == NULL) { drvdata 176 drivers/regulator/fixed.c drvdata->desc.type = REGULATOR_VOLTAGE; drvdata 177 drivers/regulator/fixed.c drvdata->desc.owner = THIS_MODULE; drvdata 180 drivers/regulator/fixed.c drvdata->desc.ops = &fixed_voltage_clkenabled_ops; drvdata 182 drivers/regulator/fixed.c drvdata->enable_clock = devm_clk_get(dev, NULL); drvdata 183 drivers/regulator/fixed.c if (IS_ERR(drvdata->enable_clock)) { drvdata 188 drivers/regulator/fixed.c drvdata->desc.ops = &fixed_voltage_ops; drvdata 191 drivers/regulator/fixed.c drvdata->desc.enable_time = config->startup_delay; drvdata 194 drivers/regulator/fixed.c drvdata->desc.supply_name = devm_kstrdup(&pdev->dev, drvdata 197 drivers/regulator/fixed.c if (!drvdata->desc.supply_name) { drvdata 205 drivers/regulator/fixed.c drvdata->desc.n_voltages = 1; drvdata 207 drivers/regulator/fixed.c drvdata->desc.fixed_uV = config->microvolts; drvdata 241 drivers/regulator/fixed.c cfg.driver_data = drvdata; drvdata 244 drivers/regulator/fixed.c drvdata->dev = devm_regulator_register(&pdev->dev, &drvdata->desc, drvdata 246 drivers/regulator/fixed.c if (IS_ERR(drvdata->dev)) { drvdata 247 drivers/regulator/fixed.c ret = PTR_ERR(drvdata->dev); drvdata 252 drivers/regulator/fixed.c platform_set_drvdata(pdev, drvdata); drvdata 254 drivers/regulator/fixed.c dev_dbg(&pdev->dev, "%s supplying %duV\n", drvdata->desc.name, drvdata 255 drivers/regulator/fixed.c drvdata->desc.fixed_uV); drvdata 229 drivers/regulator/gpio-regulator.c struct gpio_regulator_data *drvdata; drvdata 235 drivers/regulator/gpio-regulator.c drvdata = devm_kzalloc(dev, sizeof(struct gpio_regulator_data), drvdata 237 drivers/regulator/gpio-regulator.c if (drvdata == NULL) drvdata 242 drivers/regulator/gpio-regulator.c &drvdata->desc); drvdata 247 drivers/regulator/gpio-regulator.c drvdata->desc.name = devm_kstrdup(dev, config->supply_name, GFP_KERNEL); drvdata 248 drivers/regulator/gpio-regulator.c if (drvdata->desc.name == NULL) { drvdata 253 drivers/regulator/gpio-regulator.c drvdata->gpiods = devm_kzalloc(dev, sizeof(struct gpio_desc *), drvdata 255 drivers/regulator/gpio-regulator.c if (!drvdata->gpiods) drvdata 258 drivers/regulator/gpio-regulator.c drvdata->gpiods[i] = devm_gpiod_get_index(dev, drvdata 262 drivers/regulator/gpio-regulator.c if (IS_ERR(drvdata->gpiods[i])) drvdata 263 drivers/regulator/gpio-regulator.c return PTR_ERR(drvdata->gpiods[i]); drvdata 265 drivers/regulator/gpio-regulator.c gpiod_set_consumer_name(drvdata->gpiods[i], drvdata->desc.name); drvdata 267 drivers/regulator/gpio-regulator.c drvdata->nr_gpios = config->ngpios; drvdata 269 drivers/regulator/gpio-regulator.c drvdata->states = devm_kmemdup(dev, drvdata 274 drivers/regulator/gpio-regulator.c if (drvdata->states == NULL) { drvdata 278 drivers/regulator/gpio-regulator.c drvdata->nr_states = config->nr_states; drvdata 280 drivers/regulator/gpio-regulator.c drvdata->desc.owner = THIS_MODULE; drvdata 281 drivers/regulator/gpio-regulator.c drvdata->desc.enable_time = config->startup_delay; drvdata 286 drivers/regulator/gpio-regulator.c drvdata->desc.type = REGULATOR_VOLTAGE; drvdata 287 drivers/regulator/gpio-regulator.c drvdata->desc.ops = &gpio_regulator_voltage_ops; drvdata 288 drivers/regulator/gpio-regulator.c drvdata->desc.n_voltages = config->nr_states; drvdata 291 drivers/regulator/gpio-regulator.c drvdata->desc.type = REGULATOR_CURRENT; drvdata 292 drivers/regulator/gpio-regulator.c drvdata->desc.ops = &gpio_regulator_current_ops; drvdata 301 drivers/regulator/gpio-regulator.c for (ptr = 0; ptr < drvdata->nr_gpios; ptr++) { drvdata 305 drivers/regulator/gpio-regulator.c drvdata->state = state; drvdata 309 drivers/regulator/gpio-regulator.c cfg.driver_data = drvdata; drvdata 325 drivers/regulator/gpio-regulator.c rdev = devm_regulator_register(dev, &drvdata->desc, &cfg); drvdata 332 drivers/regulator/gpio-regulator.c platform_set_drvdata(pdev, drvdata); drvdata 160 drivers/regulator/pbias-regulator.c struct pbias_regulator_data *drvdata; drvdata 176 drivers/regulator/pbias-regulator.c drvdata = devm_kcalloc(&pdev->dev, drvdata 179 drivers/regulator/pbias-regulator.c if (!drvdata) drvdata 212 drivers/regulator/pbias-regulator.c drvdata[data_idx].syscon = syscon; drvdata 213 drivers/regulator/pbias-regulator.c drvdata[data_idx].info = info; drvdata 214 drivers/regulator/pbias-regulator.c drvdata[data_idx].desc.name = info->name; drvdata 215 drivers/regulator/pbias-regulator.c drvdata[data_idx].desc.owner = THIS_MODULE; drvdata 216 drivers/regulator/pbias-regulator.c drvdata[data_idx].desc.type = REGULATOR_VOLTAGE; drvdata 217 drivers/regulator/pbias-regulator.c drvdata[data_idx].desc.ops = &pbias_regulator_voltage_ops; drvdata 218 drivers/regulator/pbias-regulator.c drvdata[data_idx].desc.volt_table = info->pbias_volt_table; drvdata 219 drivers/regulator/pbias-regulator.c drvdata[data_idx].desc.n_voltages = info->n_voltages; drvdata 220 drivers/regulator/pbias-regulator.c drvdata[data_idx].desc.enable_time = info->enable_time; drvdata 221 drivers/regulator/pbias-regulator.c drvdata[data_idx].desc.vsel_reg = offset; drvdata 222 drivers/regulator/pbias-regulator.c drvdata[data_idx].desc.vsel_mask = info->vmode; drvdata 223 drivers/regulator/pbias-regulator.c drvdata[data_idx].desc.enable_reg = offset; drvdata 224 drivers/regulator/pbias-regulator.c drvdata[data_idx].desc.enable_mask = info->enable_mask; drvdata 225 drivers/regulator/pbias-regulator.c drvdata[data_idx].desc.enable_val = info->enable; drvdata 226 drivers/regulator/pbias-regulator.c drvdata[data_idx].desc.disable_val = info->disable_val; drvdata 229 drivers/regulator/pbias-regulator.c cfg.driver_data = &drvdata[data_idx]; drvdata 232 drivers/regulator/pbias-regulator.c drvdata[data_idx].dev = devm_regulator_register(&pdev->dev, drvdata 233 drivers/regulator/pbias-regulator.c &drvdata[data_idx].desc, &cfg); drvdata 234 drivers/regulator/pbias-regulator.c if (IS_ERR(drvdata[data_idx].dev)) { drvdata 235 drivers/regulator/pbias-regulator.c ret = PTR_ERR(drvdata[data_idx].dev); drvdata 243 drivers/regulator/pbias-regulator.c platform_set_drvdata(pdev, drvdata); drvdata 56 drivers/regulator/pwm-regulator.c struct pwm_regulator_data *drvdata = rdev_get_drvdata(rdev); drvdata 61 drivers/regulator/pwm-regulator.c pwm_get_state(drvdata->pwm, &pwm_state); drvdata 65 drivers/regulator/pwm-regulator.c if (dutycycle == drvdata->duty_cycle_table[i].dutycycle) { drvdata 66 drivers/regulator/pwm-regulator.c drvdata->state = i; drvdata 74 drivers/regulator/pwm-regulator.c struct pwm_regulator_data *drvdata = rdev_get_drvdata(rdev); drvdata 76 drivers/regulator/pwm-regulator.c if (drvdata->state < 0) drvdata 79 drivers/regulator/pwm-regulator.c return drvdata->state; drvdata 85 drivers/regulator/pwm-regulator.c struct pwm_regulator_data *drvdata = rdev_get_drvdata(rdev); drvdata 89 drivers/regulator/pwm-regulator.c pwm_init_state(drvdata->pwm, &pstate); drvdata 91 drivers/regulator/pwm-regulator.c drvdata->duty_cycle_table[selector].dutycycle, 100); drvdata 93 drivers/regulator/pwm-regulator.c ret = pwm_apply_state(drvdata->pwm, &pstate); drvdata 99 drivers/regulator/pwm-regulator.c drvdata->state = selector; drvdata 107 drivers/regulator/pwm-regulator.c struct pwm_regulator_data *drvdata = rdev_get_drvdata(rdev); drvdata 112 drivers/regulator/pwm-regulator.c return drvdata->duty_cycle_table[selector].uV; drvdata 117 drivers/regulator/pwm-regulator.c struct pwm_regulator_data *drvdata = rdev_get_drvdata(dev); drvdata 119 drivers/regulator/pwm-regulator.c gpiod_set_value_cansleep(drvdata->enb_gpio, 1); drvdata 121 drivers/regulator/pwm-regulator.c return pwm_enable(drvdata->pwm); drvdata 126 drivers/regulator/pwm-regulator.c struct pwm_regulator_data *drvdata = rdev_get_drvdata(dev); drvdata 128 drivers/regulator/pwm-regulator.c pwm_disable(drvdata->pwm); drvdata 130 drivers/regulator/pwm-regulator.c gpiod_set_value_cansleep(drvdata->enb_gpio, 0); drvdata 137 drivers/regulator/pwm-regulator.c struct pwm_regulator_data *drvdata = rdev_get_drvdata(dev); drvdata 139 drivers/regulator/pwm-regulator.c if (drvdata->enb_gpio && !gpiod_get_value_cansleep(drvdata->enb_gpio)) drvdata 142 drivers/regulator/pwm-regulator.c return pwm_is_enabled(drvdata->pwm); drvdata 147 drivers/regulator/pwm-regulator.c struct pwm_regulator_data *drvdata = rdev_get_drvdata(rdev); drvdata 148 drivers/regulator/pwm-regulator.c unsigned int min_uV_duty = drvdata->continuous.min_uV_dutycycle; drvdata 149 drivers/regulator/pwm-regulator.c unsigned int max_uV_duty = drvdata->continuous.max_uV_dutycycle; drvdata 150 drivers/regulator/pwm-regulator.c unsigned int duty_unit = drvdata->continuous.dutycycle_unit; drvdata 158 drivers/regulator/pwm-regulator.c pwm_get_state(drvdata->pwm, &pstate); drvdata 184 drivers/regulator/pwm-regulator.c struct pwm_regulator_data *drvdata = rdev_get_drvdata(rdev); drvdata 185 drivers/regulator/pwm-regulator.c unsigned int min_uV_duty = drvdata->continuous.min_uV_dutycycle; drvdata 186 drivers/regulator/pwm-regulator.c unsigned int max_uV_duty = drvdata->continuous.max_uV_dutycycle; drvdata 187 drivers/regulator/pwm-regulator.c unsigned int duty_unit = drvdata->continuous.dutycycle_unit; drvdata 196 drivers/regulator/pwm-regulator.c pwm_init_state(drvdata->pwm, &pstate); drvdata 219 drivers/regulator/pwm-regulator.c ret = pwm_apply_state(drvdata->pwm, &pstate); drvdata 254 drivers/regulator/pwm-regulator.c struct pwm_regulator_data *drvdata) drvdata 282 drivers/regulator/pwm-regulator.c drvdata->state = -EINVAL; drvdata 283 drivers/regulator/pwm-regulator.c drvdata->duty_cycle_table = duty_cycle_table; drvdata 284 drivers/regulator/pwm-regulator.c drvdata->desc.ops = &pwm_regulator_voltage_table_ops; drvdata 285 drivers/regulator/pwm-regulator.c drvdata->desc.n_voltages = length / sizeof(*duty_cycle_table); drvdata 291 drivers/regulator/pwm-regulator.c struct pwm_regulator_data *drvdata) drvdata 296 drivers/regulator/pwm-regulator.c drvdata->desc.ops = &pwm_regulator_voltage_continuous_ops; drvdata 297 drivers/regulator/pwm-regulator.c drvdata->desc.continuous_voltage_range = true; drvdata 309 drivers/regulator/pwm-regulator.c drvdata->continuous.dutycycle_unit = dutycycle_unit; drvdata 310 drivers/regulator/pwm-regulator.c drvdata->continuous.min_uV_dutycycle = dutycycle_range[0]; drvdata 311 drivers/regulator/pwm-regulator.c drvdata->continuous.max_uV_dutycycle = dutycycle_range[1]; drvdata 319 drivers/regulator/pwm-regulator.c struct pwm_regulator_data *drvdata; drvdata 331 drivers/regulator/pwm-regulator.c drvdata = devm_kzalloc(&pdev->dev, sizeof(*drvdata), GFP_KERNEL); drvdata 332 drivers/regulator/pwm-regulator.c if (!drvdata) drvdata 335 drivers/regulator/pwm-regulator.c memcpy(&drvdata->desc, &pwm_regulator_desc, sizeof(drvdata->desc)); drvdata 338 drivers/regulator/pwm-regulator.c ret = pwm_regulator_init_table(pdev, drvdata); drvdata 340 drivers/regulator/pwm-regulator.c ret = pwm_regulator_init_continuous(pdev, drvdata); drvdata 345 drivers/regulator/pwm-regulator.c &drvdata->desc); drvdata 351 drivers/regulator/pwm-regulator.c config.driver_data = drvdata; drvdata 354 drivers/regulator/pwm-regulator.c drvdata->pwm = devm_pwm_get(&pdev->dev, NULL); drvdata 355 drivers/regulator/pwm-regulator.c if (IS_ERR(drvdata->pwm)) { drvdata 356 drivers/regulator/pwm-regulator.c ret = PTR_ERR(drvdata->pwm); drvdata 365 drivers/regulator/pwm-regulator.c drvdata->enb_gpio = devm_gpiod_get_optional(&pdev->dev, "enable", drvdata 367 drivers/regulator/pwm-regulator.c if (IS_ERR(drvdata->enb_gpio)) { drvdata 368 drivers/regulator/pwm-regulator.c ret = PTR_ERR(drvdata->enb_gpio); drvdata 373 drivers/regulator/pwm-regulator.c ret = pwm_adjust_config(drvdata->pwm); drvdata 378 drivers/regulator/pwm-regulator.c &drvdata->desc, &config); drvdata 382 drivers/regulator/pwm-regulator.c drvdata->desc.name, ret); drvdata 106 drivers/regulator/userspace-consumer.c struct userspace_consumer_data *drvdata; drvdata 113 drivers/regulator/userspace-consumer.c drvdata = devm_kzalloc(&pdev->dev, drvdata 116 drivers/regulator/userspace-consumer.c if (drvdata == NULL) drvdata 119 drivers/regulator/userspace-consumer.c drvdata->name = pdata->name; drvdata 120 drivers/regulator/userspace-consumer.c drvdata->num_supplies = pdata->num_supplies; drvdata 121 drivers/regulator/userspace-consumer.c drvdata->supplies = pdata->supplies; drvdata 123 drivers/regulator/userspace-consumer.c mutex_init(&drvdata->lock); drvdata 125 drivers/regulator/userspace-consumer.c ret = devm_regulator_bulk_get(&pdev->dev, drvdata->num_supplies, drvdata 126 drivers/regulator/userspace-consumer.c drvdata->supplies); drvdata 137 drivers/regulator/userspace-consumer.c ret = regulator_bulk_enable(drvdata->num_supplies, drvdata 138 drivers/regulator/userspace-consumer.c drvdata->supplies); drvdata 146 drivers/regulator/userspace-consumer.c drvdata->enabled = pdata->init_on; drvdata 147 drivers/regulator/userspace-consumer.c platform_set_drvdata(pdev, drvdata); drvdata 287 drivers/regulator/virtual.c struct virtual_consumer_data *drvdata; drvdata 290 drivers/regulator/virtual.c drvdata = devm_kzalloc(&pdev->dev, sizeof(struct virtual_consumer_data), drvdata 292 drivers/regulator/virtual.c if (drvdata == NULL) drvdata 295 drivers/regulator/virtual.c mutex_init(&drvdata->lock); drvdata 297 drivers/regulator/virtual.c drvdata->regulator = devm_regulator_get(&pdev->dev, reg_id); drvdata 298 drivers/regulator/virtual.c if (IS_ERR(drvdata->regulator)) { drvdata 299 drivers/regulator/virtual.c ret = PTR_ERR(drvdata->regulator); drvdata 313 drivers/regulator/virtual.c drvdata->mode = regulator_get_mode(drvdata->regulator); drvdata 315 drivers/regulator/virtual.c platform_set_drvdata(pdev, drvdata); drvdata 322 drivers/regulator/virtual.c struct virtual_consumer_data *drvdata = platform_get_drvdata(pdev); drvdata 326 drivers/regulator/virtual.c if (drvdata->enabled) drvdata 327 drivers/regulator/virtual.c regulator_disable(drvdata->regulator); drvdata 226 drivers/rpmsg/qcom_smd.c void *drvdata; drvdata 424 drivers/staging/kpc2000/kpc2000_spi.c struct kpc_core_device_platdata *drvdata; drvdata 431 drivers/staging/kpc2000/kpc2000_spi.c drvdata = pldev->dev.platform_data; drvdata 432 drivers/staging/kpc2000/kpc2000_spi.c if (!drvdata) { drvdata 484 drivers/staging/kpc2000/kpc2000_spi.c switch ((drvdata->card_id & 0xFFFF0000) >> 16) { drvdata 81 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c struct vchiq_drvdata *drvdata = platform_get_drvdata(pdev); drvdata 82 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c struct rpi_firmware *fw = drvdata->fw; drvdata 100 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c g_cache_line_size = drvdata->cache_line_size; drvdata 3196 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c struct vchiq_drvdata *drvdata; drvdata 3201 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c drvdata = (struct vchiq_drvdata *)of_id->data; drvdata 3202 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c if (!drvdata) drvdata 3212 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c drvdata->fw = rpi_firmware_get(fw_node); drvdata 3214 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c if (!drvdata->fw) drvdata 3217 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c platform_set_drvdata(pdev, drvdata); drvdata 820 drivers/thermal/armada_thermal.c struct armada_drvdata *drvdata; drvdata 834 drivers/thermal/armada_thermal.c drvdata = devm_kzalloc(&pdev->dev, sizeof(*drvdata), GFP_KERNEL); drvdata 835 drivers/thermal/armada_thermal.c if (!drvdata) drvdata 876 drivers/thermal/armada_thermal.c drvdata->type = LEGACY; drvdata 877 drivers/thermal/armada_thermal.c drvdata->data.tz = tz; drvdata 878 drivers/thermal/armada_thermal.c platform_set_drvdata(pdev, drvdata); drvdata 889 drivers/thermal/armada_thermal.c drvdata->type = SYSCON; drvdata 890 drivers/thermal/armada_thermal.c drvdata->data.priv = priv; drvdata 891 drivers/thermal/armada_thermal.c platform_set_drvdata(pdev, drvdata); drvdata 952 drivers/thermal/armada_thermal.c struct armada_drvdata *drvdata = platform_get_drvdata(pdev); drvdata 954 drivers/thermal/armada_thermal.c if (drvdata->type == LEGACY) drvdata 955 drivers/thermal/armada_thermal.c thermal_zone_device_unregister(drvdata->data.tz); drvdata 3106 drivers/tty/tty_io.c void *drvdata, drvdata 3136 drivers/tty/tty_io.c dev_set_drvdata(dev, drvdata); drvdata 131 drivers/tty/tty_port.c struct device *device, void *drvdata, drvdata 135 drivers/tty/tty_port.c return tty_register_device_attr(driver, index, device, drvdata, drvdata 154 drivers/tty/tty_port.c struct device *device, void *drvdata, drvdata 167 drivers/tty/tty_port.c return tty_register_device_attr(driver, index, device, drvdata, drvdata 139 drivers/usb/typec/mux.c sw->dev.driver_data = desc->drvdata; drvdata 328 drivers/usb/typec/mux.c mux->dev.driver_data = desc->drvdata; drvdata 135 drivers/usb/typec/mux/pi3usb30532.c sw_desc.drvdata = pi; drvdata 146 drivers/usb/typec/mux/pi3usb30532.c mux_desc.drvdata = pi; drvdata 167 drivers/video/fbdev/xilinxfb.c static void xilinx_fb_out32(struct xilinxfb_drvdata *drvdata, u32 offset, drvdata 170 drivers/video/fbdev/xilinxfb.c if (drvdata->flags & BUS_ACCESS_FLAG) { drvdata 171 drivers/video/fbdev/xilinxfb.c if (drvdata->flags & LITTLE_ENDIAN_ACCESS) drvdata 172 drivers/video/fbdev/xilinxfb.c iowrite32(val, drvdata->regs + (offset << 2)); drvdata 174 drivers/video/fbdev/xilinxfb.c iowrite32be(val, drvdata->regs + (offset << 2)); drvdata 178 drivers/video/fbdev/xilinxfb.c dcr_write(drvdata->dcr_host, offset, val); drvdata 182 drivers/video/fbdev/xilinxfb.c static u32 xilinx_fb_in32(struct xilinxfb_drvdata *drvdata, u32 offset) drvdata 184 drivers/video/fbdev/xilinxfb.c if (drvdata->flags & BUS_ACCESS_FLAG) { drvdata 185 drivers/video/fbdev/xilinxfb.c if (drvdata->flags & LITTLE_ENDIAN_ACCESS) drvdata 186 drivers/video/fbdev/xilinxfb.c return ioread32(drvdata->regs + (offset << 2)); drvdata 188 drivers/video/fbdev/xilinxfb.c return ioread32be(drvdata->regs + (offset << 2)); drvdata 192 drivers/video/fbdev/xilinxfb.c return dcr_read(drvdata->dcr_host, offset); drvdata 230 drivers/video/fbdev/xilinxfb.c struct xilinxfb_drvdata *drvdata = to_xilinxfb_drvdata(fbi); drvdata 235 drivers/video/fbdev/xilinxfb.c xilinx_fb_out32(drvdata, REG_CTRL, drvdata->reg_ctrl_default); drvdata 243 drivers/video/fbdev/xilinxfb.c xilinx_fb_out32(drvdata, REG_CTRL, 0); drvdata 264 drivers/video/fbdev/xilinxfb.c struct xilinxfb_drvdata *drvdata, drvdata 271 drivers/video/fbdev/xilinxfb.c if (drvdata->flags & BUS_ACCESS_FLAG) { drvdata 275 drivers/video/fbdev/xilinxfb.c drvdata->regs = devm_ioremap_resource(&pdev->dev, res); drvdata 276 drivers/video/fbdev/xilinxfb.c if (IS_ERR(drvdata->regs)) drvdata 277 drivers/video/fbdev/xilinxfb.c return PTR_ERR(drvdata->regs); drvdata 279 drivers/video/fbdev/xilinxfb.c drvdata->regs_phys = res->start; drvdata 284 drivers/video/fbdev/xilinxfb.c drvdata->fb_phys = pdata->fb_phys; drvdata 285 drivers/video/fbdev/xilinxfb.c drvdata->fb_virt = ioremap(pdata->fb_phys, fbsize); drvdata 287 drivers/video/fbdev/xilinxfb.c drvdata->fb_alloced = 1; drvdata 288 drivers/video/fbdev/xilinxfb.c drvdata->fb_virt = dma_alloc_coherent(dev, PAGE_ALIGN(fbsize), drvdata 289 drivers/video/fbdev/xilinxfb.c &drvdata->fb_phys, drvdata 293 drivers/video/fbdev/xilinxfb.c if (!drvdata->fb_virt) { drvdata 299 drivers/video/fbdev/xilinxfb.c memset_io((void __iomem *)drvdata->fb_virt, 0, fbsize); drvdata 302 drivers/video/fbdev/xilinxfb.c xilinx_fb_out32(drvdata, REG_FB_ADDR, drvdata->fb_phys); drvdata 303 drivers/video/fbdev/xilinxfb.c rc = xilinx_fb_in32(drvdata, REG_FB_ADDR); drvdata 305 drivers/video/fbdev/xilinxfb.c if (rc != drvdata->fb_phys) { drvdata 306 drivers/video/fbdev/xilinxfb.c drvdata->flags |= LITTLE_ENDIAN_ACCESS; drvdata 307 drivers/video/fbdev/xilinxfb.c xilinx_fb_out32(drvdata, REG_FB_ADDR, drvdata->fb_phys); drvdata 311 drivers/video/fbdev/xilinxfb.c drvdata->reg_ctrl_default = REG_CTRL_ENABLE; drvdata 313 drivers/video/fbdev/xilinxfb.c drvdata->reg_ctrl_default |= REG_CTRL_ROTATE; drvdata 314 drivers/video/fbdev/xilinxfb.c xilinx_fb_out32(drvdata, REG_CTRL, drvdata->reg_ctrl_default); drvdata 317 drivers/video/fbdev/xilinxfb.c drvdata->info.device = dev; drvdata 318 drivers/video/fbdev/xilinxfb.c drvdata->info.screen_base = (void __iomem *)drvdata->fb_virt; drvdata 319 drivers/video/fbdev/xilinxfb.c drvdata->info.fbops = &xilinxfb_ops; drvdata 320 drivers/video/fbdev/xilinxfb.c drvdata->info.fix = xilinx_fb_fix; drvdata 321 drivers/video/fbdev/xilinxfb.c drvdata->info.fix.smem_start = drvdata->fb_phys; drvdata 322 drivers/video/fbdev/xilinxfb.c drvdata->info.fix.smem_len = fbsize; drvdata 323 drivers/video/fbdev/xilinxfb.c drvdata->info.fix.line_length = pdata->xvirt * BYTES_PER_PIXEL; drvdata 325 drivers/video/fbdev/xilinxfb.c drvdata->info.pseudo_palette = drvdata->pseudo_palette; drvdata 326 drivers/video/fbdev/xilinxfb.c drvdata->info.flags = FBINFO_DEFAULT; drvdata 327 drivers/video/fbdev/xilinxfb.c drvdata->info.var = xilinx_fb_var; drvdata 328 drivers/video/fbdev/xilinxfb.c drvdata->info.var.height = pdata->screen_height_mm; drvdata 329 drivers/video/fbdev/xilinxfb.c drvdata->info.var.width = pdata->screen_width_mm; drvdata 330 drivers/video/fbdev/xilinxfb.c drvdata->info.var.xres = pdata->xres; drvdata 331 drivers/video/fbdev/xilinxfb.c drvdata->info.var.yres = pdata->yres; drvdata 332 drivers/video/fbdev/xilinxfb.c drvdata->info.var.xres_virtual = pdata->xvirt; drvdata 333 drivers/video/fbdev/xilinxfb.c drvdata->info.var.yres_virtual = pdata->yvirt; drvdata 336 drivers/video/fbdev/xilinxfb.c rc = fb_alloc_cmap(&drvdata->info.cmap, PALETTE_ENTRIES_NO, 0); drvdata 344 drivers/video/fbdev/xilinxfb.c rc = register_framebuffer(&drvdata->info); drvdata 350 drivers/video/fbdev/xilinxfb.c if (drvdata->flags & BUS_ACCESS_FLAG) { drvdata 353 drivers/video/fbdev/xilinxfb.c &drvdata->regs_phys, drvdata->regs); drvdata 357 drivers/video/fbdev/xilinxfb.c (unsigned long long)drvdata->fb_phys, drvdata->fb_virt, fbsize); drvdata 362 drivers/video/fbdev/xilinxfb.c fb_dealloc_cmap(&drvdata->info.cmap); drvdata 365 drivers/video/fbdev/xilinxfb.c if (drvdata->fb_alloced) drvdata 366 drivers/video/fbdev/xilinxfb.c dma_free_coherent(dev, PAGE_ALIGN(fbsize), drvdata->fb_virt, drvdata 367 drivers/video/fbdev/xilinxfb.c drvdata->fb_phys); drvdata 369 drivers/video/fbdev/xilinxfb.c iounmap(drvdata->fb_virt); drvdata 372 drivers/video/fbdev/xilinxfb.c xilinx_fb_out32(drvdata, REG_CTRL, 0); drvdata 379 drivers/video/fbdev/xilinxfb.c struct xilinxfb_drvdata *drvdata = dev_get_drvdata(dev); drvdata 382 drivers/video/fbdev/xilinxfb.c xilinx_fb_blank(VESA_POWERDOWN, &drvdata->info); drvdata 385 drivers/video/fbdev/xilinxfb.c unregister_framebuffer(&drvdata->info); drvdata 387 drivers/video/fbdev/xilinxfb.c fb_dealloc_cmap(&drvdata->info.cmap); drvdata 389 drivers/video/fbdev/xilinxfb.c if (drvdata->fb_alloced) drvdata 390 drivers/video/fbdev/xilinxfb.c dma_free_coherent(dev, PAGE_ALIGN(drvdata->info.fix.smem_len), drvdata 391 drivers/video/fbdev/xilinxfb.c drvdata->fb_virt, drvdata->fb_phys); drvdata 393 drivers/video/fbdev/xilinxfb.c iounmap(drvdata->fb_virt); drvdata 396 drivers/video/fbdev/xilinxfb.c xilinx_fb_out32(drvdata, REG_CTRL, 0); drvdata 400 drivers/video/fbdev/xilinxfb.c if (!(drvdata->flags & BUS_ACCESS_FLAG)) drvdata 401 drivers/video/fbdev/xilinxfb.c dcr_unmap(drvdata->dcr_host, drvdata->dcr_len); drvdata 417 drivers/video/fbdev/xilinxfb.c struct xilinxfb_drvdata *drvdata; drvdata 423 drivers/video/fbdev/xilinxfb.c drvdata = devm_kzalloc(&pdev->dev, sizeof(*drvdata), GFP_KERNEL); drvdata 424 drivers/video/fbdev/xilinxfb.c if (!drvdata) drvdata 439 drivers/video/fbdev/xilinxfb.c drvdata->flags |= BUS_ACCESS_FLAG; drvdata 445 drivers/video/fbdev/xilinxfb.c drvdata->dcr_len = dcr_resource_len(pdev->dev.of_node, 0); drvdata 446 drivers/video/fbdev/xilinxfb.c drvdata->dcr_host = dcr_map(pdev->dev.of_node, start, drvdata->dcr_len); drvdata 447 drivers/video/fbdev/xilinxfb.c if (!DCR_MAP_OK(drvdata->dcr_host)) { drvdata 475 drivers/video/fbdev/xilinxfb.c dev_set_drvdata(&pdev->dev, drvdata); drvdata 476 drivers/video/fbdev/xilinxfb.c return xilinxfb_assign(pdev, drvdata, &pdata); drvdata 58 drivers/watchdog/jz4740_wdt.c struct jz4740_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev); drvdata 60 drivers/watchdog/jz4740_wdt.c writew(0x0, drvdata->base + TCU_REG_WDT_TCNT); drvdata 67 drivers/watchdog/jz4740_wdt.c struct jz4740_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev); drvdata 73 drivers/watchdog/jz4740_wdt.c rtc_clk_rate = clk_get_rate(drvdata->rtc_clk); drvdata 87 drivers/watchdog/jz4740_wdt.c tcer = readb(drvdata->base + TCU_REG_WDT_TCER); drvdata 88 drivers/watchdog/jz4740_wdt.c writeb(0x0, drvdata->base + TCU_REG_WDT_TCER); drvdata 89 drivers/watchdog/jz4740_wdt.c writew(clock_div, drvdata->base + TCU_REG_WDT_TCSR); drvdata 91 drivers/watchdog/jz4740_wdt.c writew((u16)timeout_value, drvdata->base + TCU_REG_WDT_TDR); drvdata 92 drivers/watchdog/jz4740_wdt.c writew(0x0, drvdata->base + TCU_REG_WDT_TCNT); drvdata 93 drivers/watchdog/jz4740_wdt.c writew(clock_div | JZ_WDT_CLOCK_RTC, drvdata->base + TCU_REG_WDT_TCSR); drvdata 96 drivers/watchdog/jz4740_wdt.c writeb(TCU_WDT_TCER_TCEN, drvdata->base + TCU_REG_WDT_TCER); drvdata 104 drivers/watchdog/jz4740_wdt.c struct jz4740_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev); drvdata 107 drivers/watchdog/jz4740_wdt.c tcer = readb(drvdata->base + TCU_REG_WDT_TCER); drvdata 114 drivers/watchdog/jz4740_wdt.c writeb(TCU_WDT_TCER_TCEN, drvdata->base + TCU_REG_WDT_TCER); drvdata 121 drivers/watchdog/jz4740_wdt.c struct jz4740_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev); drvdata 123 drivers/watchdog/jz4740_wdt.c writeb(0x0, drvdata->base + TCU_REG_WDT_TCER); drvdata 163 drivers/watchdog/jz4740_wdt.c struct jz4740_wdt_drvdata *drvdata; drvdata 166 drivers/watchdog/jz4740_wdt.c drvdata = devm_kzalloc(dev, sizeof(struct jz4740_wdt_drvdata), drvdata 168 drivers/watchdog/jz4740_wdt.c if (!drvdata) drvdata 174 drivers/watchdog/jz4740_wdt.c jz4740_wdt = &drvdata->wdt; drvdata 182 drivers/watchdog/jz4740_wdt.c watchdog_set_drvdata(jz4740_wdt, drvdata); drvdata 184 drivers/watchdog/jz4740_wdt.c drvdata->base = devm_platform_ioremap_resource(pdev, 0); drvdata 185 drivers/watchdog/jz4740_wdt.c if (IS_ERR(drvdata->base)) drvdata 186 drivers/watchdog/jz4740_wdt.c return PTR_ERR(drvdata->base); drvdata 188 drivers/watchdog/jz4740_wdt.c drvdata->rtc_clk = devm_clk_get(dev, "rtc"); drvdata 189 drivers/watchdog/jz4740_wdt.c if (IS_ERR(drvdata->rtc_clk)) { drvdata 191 drivers/watchdog/jz4740_wdt.c return PTR_ERR(drvdata->rtc_clk); drvdata 194 drivers/watchdog/jz4740_wdt.c return devm_watchdog_register_device(dev, &drvdata->wdt); drvdata 29 drivers/watchdog/loongson1_wdt.c struct ls1x_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev); drvdata 31 drivers/watchdog/loongson1_wdt.c writel(0x1, drvdata->base + WDT_SET); drvdata 39 drivers/watchdog/loongson1_wdt.c struct ls1x_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev); drvdata 45 drivers/watchdog/loongson1_wdt.c counts = drvdata->clk_rate * min(timeout, max_hw_heartbeat); drvdata 46 drivers/watchdog/loongson1_wdt.c writel(counts, drvdata->base + WDT_TIMER); drvdata 53 drivers/watchdog/loongson1_wdt.c struct ls1x_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev); drvdata 55 drivers/watchdog/loongson1_wdt.c writel(0x1, drvdata->base + WDT_EN); drvdata 62 drivers/watchdog/loongson1_wdt.c struct ls1x_wdt_drvdata *drvdata = watchdog_get_drvdata(wdt_dev); drvdata 64 drivers/watchdog/loongson1_wdt.c writel(0x0, drvdata->base + WDT_EN); drvdata 90 drivers/watchdog/loongson1_wdt.c struct ls1x_wdt_drvdata *drvdata; drvdata 95 drivers/watchdog/loongson1_wdt.c drvdata = devm_kzalloc(dev, sizeof(*drvdata), GFP_KERNEL); drvdata 96 drivers/watchdog/loongson1_wdt.c if (!drvdata) drvdata 99 drivers/watchdog/loongson1_wdt.c drvdata->base = devm_platform_ioremap_resource(pdev, 0); drvdata 100 drivers/watchdog/loongson1_wdt.c if (IS_ERR(drvdata->base)) drvdata 101 drivers/watchdog/loongson1_wdt.c return PTR_ERR(drvdata->base); drvdata 103 drivers/watchdog/loongson1_wdt.c drvdata->clk = devm_clk_get(dev, pdev->name); drvdata 104 drivers/watchdog/loongson1_wdt.c if (IS_ERR(drvdata->clk)) drvdata 105 drivers/watchdog/loongson1_wdt.c return PTR_ERR(drvdata->clk); drvdata 107 drivers/watchdog/loongson1_wdt.c err = clk_prepare_enable(drvdata->clk); drvdata 113 drivers/watchdog/loongson1_wdt.c drvdata->clk); drvdata 117 drivers/watchdog/loongson1_wdt.c clk_rate = clk_get_rate(drvdata->clk); drvdata 120 drivers/watchdog/loongson1_wdt.c drvdata->clk_rate = clk_rate; drvdata 122 drivers/watchdog/loongson1_wdt.c ls1x_wdt = &drvdata->wdt; drvdata 132 drivers/watchdog/loongson1_wdt.c watchdog_set_drvdata(ls1x_wdt, drvdata); drvdata 134 drivers/watchdog/loongson1_wdt.c err = devm_watchdog_register_device(dev, &drvdata->wdt); drvdata 138 drivers/watchdog/loongson1_wdt.c platform_set_drvdata(pdev, drvdata); drvdata 287 include/linux/bcma/bcma.h void *drvdata; drvdata 293 include/linux/bcma/bcma.h return core->drvdata; drvdata 295 include/linux/bcma/bcma.h static inline void bcma_set_drvdata(struct bcma_device *core, void *drvdata) drvdata 297 include/linux/bcma/bcma.h core->drvdata = drvdata; drvdata 69 include/linux/cpu.h struct device *cpu_device_create(struct device *parent, void *drvdata, drvdata 1573 include/linux/device.h dev_t devt, void *drvdata, drvdata 1577 include/linux/device.h dev_t devt, void *drvdata, drvdata 1581 include/linux/device.h struct device *parent, dev_t devt, void *drvdata, drvdata 355 include/linux/hwmon.h umode_t (*is_visible)(const void *drvdata, enum hwmon_sensor_types type, drvdata 399 include/linux/hwmon.h void *drvdata, drvdata 403 include/linux/hwmon.h void *drvdata, drvdata 407 include/linux/hwmon.h const char *name, void *drvdata, drvdata 412 include/linux/hwmon.h const char *name, void *drvdata, drvdata 302 include/linux/iommu.h void *drvdata); drvdata 604 include/linux/iommu.h void *drvdata); drvdata 988 include/linux/iommu.h iommu_sva_bind_device(struct device *dev, struct mm_struct *mm, void *drvdata) drvdata 282 include/linux/ssb/ssb.h void *drvdata; /* Per-device data */ drvdata 299 include/linux/ssb/ssb.h dev->drvdata = data; drvdata 304 include/linux/ssb/ssb.h return dev->drvdata; drvdata 485 include/linux/tty.h void *drvdata, drvdata 584 include/linux/tty.h struct device *device, void *drvdata, drvdata 591 include/linux/tty.h struct device *device, void *drvdata, drvdata 19 include/linux/usb/typec_mux.h void *drvdata; drvdata 37 include/linux/usb/typec_mux.h void *drvdata; drvdata 1089 include/sound/soc.h void *drvdata; drvdata 1216 include/sound/soc.h card->drvdata = data; drvdata 1221 include/sound/soc.h return card->drvdata; drvdata 181 sound/soc/atmel/sam9x5_wm8731.c struct sam9x5_drvdata *priv = card->drvdata; drvdata 1088 sound/soc/codecs/ab8500-codec.c struct ab8500_codec_drvdata *drvdata = dev_get_drvdata(component->dev); drvdata 1104 sound/soc/codecs/ab8500-codec.c drvdata->anc_fir_values[par]); drvdata 1112 sound/soc/codecs/ab8500-codec.c drvdata->anc_iir_values[par]); drvdata 1127 sound/soc/codecs/ab8500-codec.c struct ab8500_codec_drvdata *drvdata = dev_get_drvdata(component->dev); drvdata 1129 sound/soc/codecs/ab8500-codec.c mutex_lock(&drvdata->ctrl_lock); drvdata 1130 sound/soc/codecs/ab8500-codec.c ucontrol->value.enumerated.item[0] = drvdata->sid_status; drvdata 1131 sound/soc/codecs/ab8500-codec.c mutex_unlock(&drvdata->ctrl_lock); drvdata 1141 sound/soc/codecs/ab8500-codec.c struct ab8500_codec_drvdata *drvdata = dev_get_drvdata(component->dev); drvdata 1154 sound/soc/codecs/ab8500-codec.c mutex_lock(&drvdata->ctrl_lock); drvdata 1171 sound/soc/codecs/ab8500-codec.c val = snd_soc_component_read32(component, drvdata->sid_fir_values[param]); drvdata 1182 sound/soc/codecs/ab8500-codec.c drvdata->sid_status = SID_FIR_CONFIGURED; drvdata 1185 sound/soc/codecs/ab8500-codec.c mutex_unlock(&drvdata->ctrl_lock); drvdata 1196 sound/soc/codecs/ab8500-codec.c struct ab8500_codec_drvdata *drvdata = dev_get_drvdata(component->dev); drvdata 1198 sound/soc/codecs/ab8500-codec.c mutex_lock(&drvdata->ctrl_lock); drvdata 1199 sound/soc/codecs/ab8500-codec.c ucontrol->value.enumerated.item[0] = drvdata->anc_status; drvdata 1200 sound/soc/codecs/ab8500-codec.c mutex_unlock(&drvdata->ctrl_lock); drvdata 1210 sound/soc/codecs/ab8500-codec.c struct ab8500_codec_drvdata *drvdata = dev_get_drvdata(component->dev); drvdata 1218 sound/soc/codecs/ab8500-codec.c mutex_lock(&drvdata->ctrl_lock); drvdata 1247 sound/soc/codecs/ab8500-codec.c if (drvdata->anc_status == ANC_IIR_CONFIGURED) drvdata 1248 sound/soc/codecs/ab8500-codec.c drvdata->anc_status = ANC_FIR_IIR_CONFIGURED; drvdata 1249 sound/soc/codecs/ab8500-codec.c else if (drvdata->anc_status != ANC_FIR_IIR_CONFIGURED) drvdata 1250 sound/soc/codecs/ab8500-codec.c drvdata->anc_status = ANC_FIR_CONFIGURED; drvdata 1253 sound/soc/codecs/ab8500-codec.c if (drvdata->anc_status == ANC_FIR_CONFIGURED) drvdata 1254 sound/soc/codecs/ab8500-codec.c drvdata->anc_status = ANC_FIR_IIR_CONFIGURED; drvdata 1255 sound/soc/codecs/ab8500-codec.c else if (drvdata->anc_status != ANC_FIR_IIR_CONFIGURED) drvdata 1256 sound/soc/codecs/ab8500-codec.c drvdata->anc_status = ANC_IIR_CONFIGURED; drvdata 1263 sound/soc/codecs/ab8500-codec.c mutex_unlock(&drvdata->ctrl_lock); drvdata 1292 sound/soc/codecs/ab8500-codec.c struct ab8500_codec_drvdata *drvdata = snd_soc_component_get_drvdata(component); drvdata 1297 sound/soc/codecs/ab8500-codec.c mutex_lock(&drvdata->ctrl_lock); drvdata 1300 sound/soc/codecs/ab8500-codec.c mutex_unlock(&drvdata->ctrl_lock); drvdata 1309 sound/soc/codecs/ab8500-codec.c struct ab8500_codec_drvdata *drvdata = snd_soc_component_get_drvdata(component); drvdata 1314 sound/soc/codecs/ab8500-codec.c mutex_lock(&drvdata->ctrl_lock); drvdata 1317 sound/soc/codecs/ab8500-codec.c mutex_unlock(&drvdata->ctrl_lock); drvdata 2464 sound/soc/codecs/ab8500-codec.c struct ab8500_codec_drvdata *drvdata = dev_get_drvdata(dev); drvdata 2509 sound/soc/codecs/ab8500-codec.c drvdata->anc_fir_values = (long *)fc->value; drvdata 2512 sound/soc/codecs/ab8500-codec.c drvdata->anc_iir_values = (long *)fc->value; drvdata 2515 sound/soc/codecs/ab8500-codec.c drvdata->sid_fir_values = (long *)fc->value; drvdata 2519 sound/soc/codecs/ab8500-codec.c mutex_init(&drvdata->ctrl_lock); drvdata 2541 sound/soc/codecs/ab8500-codec.c struct ab8500_codec_drvdata *drvdata; drvdata 2546 sound/soc/codecs/ab8500-codec.c drvdata = devm_kzalloc(&pdev->dev, sizeof(struct ab8500_codec_drvdata), drvdata 2548 sound/soc/codecs/ab8500-codec.c if (!drvdata) drvdata 2550 sound/soc/codecs/ab8500-codec.c drvdata->sid_status = SID_UNCONFIGURED; drvdata 2551 sound/soc/codecs/ab8500-codec.c drvdata->anc_status = ANC_UNCONFIGURED; drvdata 2552 sound/soc/codecs/ab8500-codec.c dev_set_drvdata(&pdev->dev, drvdata); drvdata 2554 sound/soc/codecs/ab8500-codec.c drvdata->regmap = devm_regmap_init(&pdev->dev, NULL, &pdev->dev, drvdata 2556 sound/soc/codecs/ab8500-codec.c if (IS_ERR(drvdata->regmap)) { drvdata 2557 sound/soc/codecs/ab8500-codec.c status = PTR_ERR(drvdata->regmap); drvdata 668 sound/soc/codecs/ak4458.c const struct ak4458_drvdata *drvdata; drvdata 682 sound/soc/codecs/ak4458.c drvdata = of_device_get_match_data(&i2c->dev); drvdata 694 sound/soc/codecs/ak4458.c ret = devm_snd_soc_register_component(ak4458->dev, drvdata->comp_drv, drvdata 695 sound/soc/codecs/ak4458.c drvdata->dai_drv, 1); drvdata 144 sound/soc/codecs/ak4642.c const struct ak4642_drvdata *drvdata; drvdata 378 sound/soc/codecs/ak4642.c if (extended_freq && !priv->drvdata->extended_frequencies) drvdata 638 sound/soc/codecs/ak4642.c const struct ak4642_drvdata *drvdata = NULL; drvdata 652 sound/soc/codecs/ak4642.c drvdata = of_id->data; drvdata 654 sound/soc/codecs/ak4642.c drvdata = (const struct ak4642_drvdata *)id->driver_data; drvdata 657 sound/soc/codecs/ak4642.c if (!drvdata) { drvdata 666 sound/soc/codecs/ak4642.c priv->drvdata = drvdata; drvdata 671 sound/soc/codecs/ak4642.c regmap = devm_regmap_init_i2c(i2c, drvdata->regmap_config); drvdata 42 sound/soc/codecs/cs42xx8.c const struct cs42xx8_driver_data *drvdata; drvdata 470 sound/soc/codecs/cs42xx8.c switch (cs42xx8->drvdata->num_adcs) { drvdata 543 sound/soc/codecs/cs42xx8.c cs42xx8->drvdata = of_id->data; drvdata 545 sound/soc/codecs/cs42xx8.c if (!cs42xx8->drvdata) { drvdata 604 sound/soc/codecs/cs42xx8.c cs42xx8_dai.name = cs42xx8->drvdata->name; drvdata 607 sound/soc/codecs/cs42xx8.c cs42xx8_dai.capture.channels_max = cs42xx8->drvdata->num_adcs * 2; drvdata 87 sound/soc/codecs/sti-sas.c struct sti_sas_data *drvdata = context; drvdata 91 sound/soc/codecs/sti-sas.c status = regmap_read(drvdata->dac.regmap, reg, &val); drvdata 101 sound/soc/codecs/sti-sas.c struct sti_sas_data *drvdata = context; drvdata 104 sound/soc/codecs/sti-sas.c status = regmap_write(drvdata->dac.regmap, reg, value); drvdata 264 sound/soc/codecs/sti-sas.c struct sti_sas_data *drvdata = dev_get_drvdata(component->dev); drvdata 274 sound/soc/codecs/sti-sas.c drvdata->spdif.mclk = freq; drvdata 278 sound/soc/codecs/sti-sas.c drvdata->dac.mclk = freq; drvdata 289 sound/soc/codecs/sti-sas.c struct sti_sas_data *drvdata = dev_get_drvdata(component->dev); drvdata 294 sound/soc/codecs/sti-sas.c if ((drvdata->spdif.mclk / runtime->rate) != 128) { drvdata 300 sound/soc/codecs/sti-sas.c if ((drvdata->dac.mclk / runtime->rate) != 256) { drvdata 380 sound/soc/codecs/sti-sas.c struct sti_sas_data *drvdata = dev_get_drvdata(component->dev); drvdata 382 sound/soc/codecs/sti-sas.c return sti_sas_init_sas_registers(component, drvdata); drvdata 390 sound/soc/codecs/sti-sas.c struct sti_sas_data *drvdata = dev_get_drvdata(component->dev); drvdata 393 sound/soc/codecs/sti-sas.c ret = sti_sas_init_sas_registers(component, drvdata); drvdata 418 sound/soc/codecs/sti-sas.c struct sti_sas_data *drvdata; drvdata 422 sound/soc/codecs/sti-sas.c drvdata = devm_kzalloc(&pdev->dev, sizeof(struct sti_sas_data), drvdata 424 sound/soc/codecs/sti-sas.c if (!drvdata) drvdata 434 sound/soc/codecs/sti-sas.c drvdata->dev_data = (struct sti_sas_dev_data *)of_id->data; drvdata 437 sound/soc/codecs/sti-sas.c drvdata->dev = &pdev->dev; drvdata 440 sound/soc/codecs/sti-sas.c drvdata->dac.virt_regmap = devm_regmap_init(&pdev->dev, NULL, drvdata, drvdata 441 sound/soc/codecs/sti-sas.c drvdata->dev_data->regmap); drvdata 442 sound/soc/codecs/sti-sas.c if (IS_ERR(drvdata->dac.virt_regmap)) { drvdata 444 sound/soc/codecs/sti-sas.c return PTR_ERR(drvdata->dac.virt_regmap); drvdata 448 sound/soc/codecs/sti-sas.c drvdata->dac.regmap = drvdata 450 sound/soc/codecs/sti-sas.c if (IS_ERR(drvdata->dac.regmap)) { drvdata 452 sound/soc/codecs/sti-sas.c return PTR_ERR(drvdata->dac.regmap); drvdata 454 sound/soc/codecs/sti-sas.c drvdata->spdif.regmap = drvdata->dac.regmap; drvdata 456 sound/soc/codecs/sti-sas.c sti_sas_dai[STI_SAS_DAI_ANALOG_OUT].ops = drvdata->dev_data->dac_ops; drvdata 459 sound/soc/codecs/sti-sas.c sti_sas_driver.dapm_widgets = drvdata->dev_data->dapm_widgets; drvdata 460 sound/soc/codecs/sti-sas.c sti_sas_driver.num_dapm_widgets = drvdata->dev_data->num_dapm_widgets; drvdata 462 sound/soc/codecs/sti-sas.c sti_sas_driver.dapm_routes = drvdata->dev_data->dapm_routes; drvdata 463 sound/soc/codecs/sti-sas.c sti_sas_driver.num_dapm_routes = drvdata->dev_data->num_dapm_routes; drvdata 466 sound/soc/codecs/sti-sas.c dev_set_drvdata(&pdev->dev, drvdata); drvdata 250 sound/soc/codecs/wm8580.c const struct wm8580_driver_data *drvdata; drvdata 856 sound/soc/codecs/wm8580.c SNDRV_PCM_HW_PARAM_CHANNELS, 1, wm8580->drvdata->num_dacs * 2); drvdata 912 sound/soc/codecs/wm8580.c switch (wm8580->drvdata->num_dacs) { drvdata 1028 sound/soc/codecs/wm8580.c wm8580->drvdata = of_id->data; drvdata 1030 sound/soc/codecs/wm8580.c if (!wm8580->drvdata) { drvdata 127 sound/soc/qcom/lpass-apq8016.c static int apq8016_lpass_alloc_dma_channel(struct lpass_data *drvdata, drvdata 130 sound/soc/qcom/lpass-apq8016.c struct lpass_variant *v = drvdata->variant; drvdata 134 sound/soc/qcom/lpass-apq8016.c chan = find_first_zero_bit(&drvdata->dma_ch_bit_map, drvdata 140 sound/soc/qcom/lpass-apq8016.c chan = find_next_zero_bit(&drvdata->dma_ch_bit_map, drvdata 149 sound/soc/qcom/lpass-apq8016.c set_bit(chan, &drvdata->dma_ch_bit_map); drvdata 154 sound/soc/qcom/lpass-apq8016.c static int apq8016_lpass_free_dma_channel(struct lpass_data *drvdata, int chan) drvdata 156 sound/soc/qcom/lpass-apq8016.c clear_bit(chan, &drvdata->dma_ch_bit_map); drvdata 163 sound/soc/qcom/lpass-apq8016.c struct lpass_data *drvdata = platform_get_drvdata(pdev); drvdata 167 sound/soc/qcom/lpass-apq8016.c drvdata->pcnoc_mport_clk = devm_clk_get(dev, "pcnoc-mport-clk"); drvdata 168 sound/soc/qcom/lpass-apq8016.c if (IS_ERR(drvdata->pcnoc_mport_clk)) { drvdata 170 sound/soc/qcom/lpass-apq8016.c PTR_ERR(drvdata->pcnoc_mport_clk)); drvdata 171 sound/soc/qcom/lpass-apq8016.c return PTR_ERR(drvdata->pcnoc_mport_clk); drvdata 174 sound/soc/qcom/lpass-apq8016.c ret = clk_prepare_enable(drvdata->pcnoc_mport_clk); drvdata 181 sound/soc/qcom/lpass-apq8016.c drvdata->pcnoc_sway_clk = devm_clk_get(dev, "pcnoc-sway-clk"); drvdata 182 sound/soc/qcom/lpass-apq8016.c if (IS_ERR(drvdata->pcnoc_sway_clk)) { drvdata 184 sound/soc/qcom/lpass-apq8016.c PTR_ERR(drvdata->pcnoc_sway_clk)); drvdata 185 sound/soc/qcom/lpass-apq8016.c return PTR_ERR(drvdata->pcnoc_sway_clk); drvdata 188 sound/soc/qcom/lpass-apq8016.c ret = clk_prepare_enable(drvdata->pcnoc_sway_clk); drvdata 199 sound/soc/qcom/lpass-apq8016.c struct lpass_data *drvdata = platform_get_drvdata(pdev); drvdata 201 sound/soc/qcom/lpass-apq8016.c clk_disable_unprepare(drvdata->pcnoc_mport_clk); drvdata 202 sound/soc/qcom/lpass-apq8016.c clk_disable_unprepare(drvdata->pcnoc_sway_clk); drvdata 25 sound/soc/qcom/lpass-cpu.c struct lpass_data *drvdata = snd_soc_dai_get_drvdata(dai); drvdata 28 sound/soc/qcom/lpass-cpu.c ret = clk_set_rate(drvdata->mi2s_osr_clk[dai->driver->id], freq); drvdata 39 sound/soc/qcom/lpass-cpu.c struct lpass_data *drvdata = snd_soc_dai_get_drvdata(dai); drvdata 42 sound/soc/qcom/lpass-cpu.c ret = clk_prepare_enable(drvdata->mi2s_osr_clk[dai->driver->id]); drvdata 48 sound/soc/qcom/lpass-cpu.c ret = clk_prepare_enable(drvdata->mi2s_bit_clk[dai->driver->id]); drvdata 51 sound/soc/qcom/lpass-cpu.c clk_disable_unprepare(drvdata->mi2s_osr_clk[dai->driver->id]); drvdata 61 sound/soc/qcom/lpass-cpu.c struct lpass_data *drvdata = snd_soc_dai_get_drvdata(dai); drvdata 63 sound/soc/qcom/lpass-cpu.c clk_disable_unprepare(drvdata->mi2s_bit_clk[dai->driver->id]); drvdata 65 sound/soc/qcom/lpass-cpu.c clk_disable_unprepare(drvdata->mi2s_osr_clk[dai->driver->id]); drvdata 71 sound/soc/qcom/lpass-cpu.c struct lpass_data *drvdata = snd_soc_dai_get_drvdata(dai); drvdata 158 sound/soc/qcom/lpass-cpu.c ret = regmap_write(drvdata->lpaif_map, drvdata 159 sound/soc/qcom/lpass-cpu.c LPAIF_I2SCTL_REG(drvdata->variant, dai->driver->id), drvdata 166 sound/soc/qcom/lpass-cpu.c ret = clk_set_rate(drvdata->mi2s_bit_clk[dai->driver->id], drvdata 180 sound/soc/qcom/lpass-cpu.c struct lpass_data *drvdata = snd_soc_dai_get_drvdata(dai); drvdata 183 sound/soc/qcom/lpass-cpu.c ret = regmap_write(drvdata->lpaif_map, drvdata 184 sound/soc/qcom/lpass-cpu.c LPAIF_I2SCTL_REG(drvdata->variant, dai->driver->id), drvdata 195 sound/soc/qcom/lpass-cpu.c struct lpass_data *drvdata = snd_soc_dai_get_drvdata(dai); drvdata 207 sound/soc/qcom/lpass-cpu.c ret = regmap_update_bits(drvdata->lpaif_map, drvdata 208 sound/soc/qcom/lpass-cpu.c LPAIF_I2SCTL_REG(drvdata->variant, dai->driver->id), drvdata 219 sound/soc/qcom/lpass-cpu.c struct lpass_data *drvdata = snd_soc_dai_get_drvdata(dai); drvdata 235 sound/soc/qcom/lpass-cpu.c ret = regmap_update_bits(drvdata->lpaif_map, drvdata 236 sound/soc/qcom/lpass-cpu.c LPAIF_I2SCTL_REG(drvdata->variant, drvdata 254 sound/soc/qcom/lpass-cpu.c ret = regmap_update_bits(drvdata->lpaif_map, drvdata 255 sound/soc/qcom/lpass-cpu.c LPAIF_I2SCTL_REG(drvdata->variant, drvdata 280 sound/soc/qcom/lpass-cpu.c struct lpass_data *drvdata = snd_soc_dai_get_drvdata(dai); drvdata 284 sound/soc/qcom/lpass-cpu.c ret = regmap_write(drvdata->lpaif_map, drvdata 285 sound/soc/qcom/lpass-cpu.c LPAIF_I2SCTL_REG(drvdata->variant, dai->driver->id), 0); drvdata 299 sound/soc/qcom/lpass-cpu.c struct lpass_data *drvdata = dev_get_drvdata(dev); drvdata 300 sound/soc/qcom/lpass-cpu.c struct lpass_variant *v = drvdata->variant; drvdata 341 sound/soc/qcom/lpass-cpu.c struct lpass_data *drvdata = dev_get_drvdata(dev); drvdata 342 sound/soc/qcom/lpass-cpu.c struct lpass_variant *v = drvdata->variant; drvdata 387 sound/soc/qcom/lpass-cpu.c struct lpass_data *drvdata = dev_get_drvdata(dev); drvdata 388 sound/soc/qcom/lpass-cpu.c struct lpass_variant *v = drvdata->variant; drvdata 418 sound/soc/qcom/lpass-cpu.c struct lpass_data *drvdata; drvdata 432 sound/soc/qcom/lpass-cpu.c drvdata = devm_kzalloc(&pdev->dev, sizeof(struct lpass_data), drvdata 434 sound/soc/qcom/lpass-cpu.c if (!drvdata) drvdata 436 sound/soc/qcom/lpass-cpu.c platform_set_drvdata(pdev, drvdata); drvdata 442 sound/soc/qcom/lpass-cpu.c drvdata->variant = (struct lpass_variant *)match->data; drvdata 443 sound/soc/qcom/lpass-cpu.c variant = drvdata->variant; drvdata 447 sound/soc/qcom/lpass-cpu.c drvdata->lpaif = devm_ioremap_resource(&pdev->dev, res); drvdata 448 sound/soc/qcom/lpass-cpu.c if (IS_ERR((void const __force *)drvdata->lpaif)) { drvdata 450 sound/soc/qcom/lpass-cpu.c PTR_ERR((void const __force *)drvdata->lpaif)); drvdata 451 sound/soc/qcom/lpass-cpu.c return PTR_ERR((void const __force *)drvdata->lpaif); drvdata 458 sound/soc/qcom/lpass-cpu.c drvdata->lpaif_map = devm_regmap_init_mmio(&pdev->dev, drvdata->lpaif, drvdata 460 sound/soc/qcom/lpass-cpu.c if (IS_ERR(drvdata->lpaif_map)) { drvdata 462 sound/soc/qcom/lpass-cpu.c PTR_ERR(drvdata->lpaif_map)); drvdata 463 sound/soc/qcom/lpass-cpu.c return PTR_ERR(drvdata->lpaif_map); drvdata 471 sound/soc/qcom/lpass-cpu.c drvdata->mi2s_osr_clk[dai_id] = devm_clk_get(&pdev->dev, drvdata 473 sound/soc/qcom/lpass-cpu.c if (IS_ERR(drvdata->mi2s_osr_clk[dai_id])) { drvdata 478 sound/soc/qcom/lpass-cpu.c PTR_ERR(drvdata->mi2s_osr_clk[dai_id])); drvdata 480 sound/soc/qcom/lpass-cpu.c drvdata->mi2s_osr_clk[dai_id] = NULL; drvdata 483 sound/soc/qcom/lpass-cpu.c drvdata->mi2s_bit_clk[dai_id] = devm_clk_get(&pdev->dev, drvdata 485 sound/soc/qcom/lpass-cpu.c if (IS_ERR(drvdata->mi2s_bit_clk[dai_id])) { drvdata 489 sound/soc/qcom/lpass-cpu.c PTR_ERR(drvdata->mi2s_bit_clk[dai_id])); drvdata 490 sound/soc/qcom/lpass-cpu.c return PTR_ERR(drvdata->mi2s_bit_clk[dai_id]); drvdata 494 sound/soc/qcom/lpass-cpu.c drvdata->ahbix_clk = devm_clk_get(&pdev->dev, "ahbix-clk"); drvdata 495 sound/soc/qcom/lpass-cpu.c if (IS_ERR(drvdata->ahbix_clk)) { drvdata 497 sound/soc/qcom/lpass-cpu.c PTR_ERR(drvdata->ahbix_clk)); drvdata 498 sound/soc/qcom/lpass-cpu.c return PTR_ERR(drvdata->ahbix_clk); drvdata 501 sound/soc/qcom/lpass-cpu.c ret = clk_set_rate(drvdata->ahbix_clk, LPASS_AHBIX_CLOCK_FREQUENCY); drvdata 508 sound/soc/qcom/lpass-cpu.c clk_get_rate(drvdata->ahbix_clk)); drvdata 510 sound/soc/qcom/lpass-cpu.c ret = clk_prepare_enable(drvdata->ahbix_clk); drvdata 535 sound/soc/qcom/lpass-cpu.c clk_disable_unprepare(drvdata->ahbix_clk); drvdata 542 sound/soc/qcom/lpass-cpu.c struct lpass_data *drvdata = platform_get_drvdata(pdev); drvdata 544 sound/soc/qcom/lpass-cpu.c if (drvdata->variant->exit) drvdata 545 sound/soc/qcom/lpass-cpu.c drvdata->variant->exit(pdev); drvdata 547 sound/soc/qcom/lpass-cpu.c clk_disable_unprepare(drvdata->ahbix_clk); drvdata 58 sound/soc/qcom/lpass-ipq806x.c static int ipq806x_lpass_alloc_dma_channel(struct lpass_data *drvdata, int dir) drvdata 66 sound/soc/qcom/lpass-ipq806x.c static int ipq806x_lpass_free_dma_channel(struct lpass_data *drvdata, int chan) drvdata 59 sound/soc/qcom/lpass-platform.c struct lpass_data *drvdata = snd_soc_component_get_drvdata(component); drvdata 60 sound/soc/qcom/lpass-platform.c struct lpass_variant *v = drvdata->variant; drvdata 72 sound/soc/qcom/lpass-platform.c dma_ch = v->alloc_dma_channel(drvdata, dir); drvdata 79 sound/soc/qcom/lpass-platform.c drvdata->substream[dma_ch] = substream; drvdata 81 sound/soc/qcom/lpass-platform.c ret = regmap_write(drvdata->lpaif_map, drvdata 113 sound/soc/qcom/lpass-platform.c struct lpass_data *drvdata = snd_soc_component_get_drvdata(component); drvdata 114 sound/soc/qcom/lpass-platform.c struct lpass_variant *v = drvdata->variant; drvdata 118 sound/soc/qcom/lpass-platform.c drvdata->substream[data->dma_ch] = NULL; drvdata 120 sound/soc/qcom/lpass-platform.c v->free_dma_channel(drvdata, data->dma_ch); drvdata 130 sound/soc/qcom/lpass-platform.c struct lpass_data *drvdata = snd_soc_component_get_drvdata(component); drvdata 133 sound/soc/qcom/lpass-platform.c struct lpass_variant *v = drvdata->variant; drvdata 208 sound/soc/qcom/lpass-platform.c ret = regmap_write(drvdata->lpaif_map, drvdata 223 sound/soc/qcom/lpass-platform.c struct lpass_data *drvdata = snd_soc_component_get_drvdata(component); drvdata 226 sound/soc/qcom/lpass-platform.c struct lpass_variant *v = drvdata->variant; drvdata 231 sound/soc/qcom/lpass-platform.c ret = regmap_write(drvdata->lpaif_map, reg, 0); drvdata 244 sound/soc/qcom/lpass-platform.c struct lpass_data *drvdata = snd_soc_component_get_drvdata(component); drvdata 247 sound/soc/qcom/lpass-platform.c struct lpass_variant *v = drvdata->variant; drvdata 252 sound/soc/qcom/lpass-platform.c ret = regmap_write(drvdata->lpaif_map, drvdata 261 sound/soc/qcom/lpass-platform.c ret = regmap_write(drvdata->lpaif_map, drvdata 270 sound/soc/qcom/lpass-platform.c ret = regmap_write(drvdata->lpaif_map, drvdata 279 sound/soc/qcom/lpass-platform.c ret = regmap_update_bits(drvdata->lpaif_map, drvdata 296 sound/soc/qcom/lpass-platform.c struct lpass_data *drvdata = snd_soc_component_get_drvdata(component); drvdata 299 sound/soc/qcom/lpass-platform.c struct lpass_variant *v = drvdata->variant; drvdata 309 sound/soc/qcom/lpass-platform.c ret = regmap_write(drvdata->lpaif_map, drvdata 318 sound/soc/qcom/lpass-platform.c ret = regmap_update_bits(drvdata->lpaif_map, drvdata 328 sound/soc/qcom/lpass-platform.c ret = regmap_update_bits(drvdata->lpaif_map, drvdata 341 sound/soc/qcom/lpass-platform.c ret = regmap_update_bits(drvdata->lpaif_map, drvdata 351 sound/soc/qcom/lpass-platform.c ret = regmap_update_bits(drvdata->lpaif_map, drvdata 370 sound/soc/qcom/lpass-platform.c struct lpass_data *drvdata = snd_soc_component_get_drvdata(component); drvdata 373 sound/soc/qcom/lpass-platform.c struct lpass_variant *v = drvdata->variant; drvdata 379 sound/soc/qcom/lpass-platform.c ret = regmap_read(drvdata->lpaif_map, drvdata 387 sound/soc/qcom/lpass-platform.c ret = regmap_read(drvdata->lpaif_map, drvdata 422 sound/soc/qcom/lpass-platform.c struct lpass_data *drvdata, drvdata 426 sound/soc/qcom/lpass-platform.c struct lpass_variant *v = drvdata->variant; drvdata 431 sound/soc/qcom/lpass-platform.c rv = regmap_write(drvdata->lpaif_map, drvdata 444 sound/soc/qcom/lpass-platform.c rv = regmap_write(drvdata->lpaif_map, drvdata 458 sound/soc/qcom/lpass-platform.c rv = regmap_write(drvdata->lpaif_map, drvdata 476 sound/soc/qcom/lpass-platform.c struct lpass_data *drvdata = data; drvdata 477 sound/soc/qcom/lpass-platform.c struct lpass_variant *v = drvdata->variant; drvdata 481 sound/soc/qcom/lpass-platform.c rv = regmap_read(drvdata->lpaif_map, drvdata 490 sound/soc/qcom/lpass-platform.c if (irqs & LPAIF_IRQ_ALL(chan) && drvdata->substream[chan]) { drvdata 492 sound/soc/qcom/lpass-platform.c drvdata->substream[chan], drvdata 493 sound/soc/qcom/lpass-platform.c drvdata, chan, irqs); drvdata 562 sound/soc/qcom/lpass-platform.c struct lpass_data *drvdata = platform_get_drvdata(pdev); drvdata 563 sound/soc/qcom/lpass-platform.c struct lpass_variant *v = drvdata->variant; drvdata 566 sound/soc/qcom/lpass-platform.c drvdata->lpaif_irq = platform_get_irq_byname(pdev, "lpass-irq-lpaif"); drvdata 567 sound/soc/qcom/lpass-platform.c if (drvdata->lpaif_irq < 0) drvdata 571 sound/soc/qcom/lpass-platform.c ret = regmap_write(drvdata->lpaif_map, drvdata 578 sound/soc/qcom/lpass-platform.c ret = devm_request_irq(&pdev->dev, drvdata->lpaif_irq, drvdata 580 sound/soc/qcom/lpass-platform.c "lpass-irq-lpaif", drvdata); drvdata 59 sound/soc/samsung/bells.c struct bells_drvdata *bells = card->drvdata; drvdata 105 sound/soc/samsung/bells.c struct bells_drvdata *bells = card->drvdata; drvdata 144 sound/soc/samsung/bells.c struct bells_drvdata *bells = card->drvdata; drvdata 421 sound/soc/samsung/bells.c .drvdata = &wm2200_drvdata, drvdata 441 sound/soc/samsung/bells.c .drvdata = &wm5102_drvdata, drvdata 461 sound/soc/samsung/bells.c .drvdata = &wm5110_drvdata, drvdata 33 sound/soc/ti/davinci-evm.c struct snd_soc_card_drvdata_davinci *drvdata = drvdata 36 sound/soc/ti/davinci-evm.c if (drvdata->mclk) drvdata 37 sound/soc/ti/davinci-evm.c return clk_prepare_enable(drvdata->mclk); drvdata 46 sound/soc/ti/davinci-evm.c struct snd_soc_card_drvdata_davinci *drvdata = drvdata 49 sound/soc/ti/davinci-evm.c if (drvdata->mclk) drvdata 50 sound/soc/ti/davinci-evm.c clk_disable_unprepare(drvdata->mclk); drvdata 281 sound/soc/ti/davinci-evm.c .drvdata = &dm6446_snd_soc_card_drvdata, drvdata 295 sound/soc/ti/davinci-evm.c .drvdata = &dm355_snd_soc_card_drvdata, drvdata 308 sound/soc/ti/davinci-evm.c .drvdata = &dm365_snd_soc_card_drvdata, drvdata 321 sound/soc/ti/davinci-evm.c .drvdata = &dm6467_snd_soc_card_drvdata, drvdata 333 sound/soc/ti/davinci-evm.c .drvdata = &da830_snd_soc_card_drvdata, drvdata 345 sound/soc/ti/davinci-evm.c .drvdata = &da850_snd_soc_card_drvdata, drvdata 389 sound/soc/ti/davinci-evm.c struct snd_soc_card_drvdata_davinci *drvdata = NULL; drvdata 426 sound/soc/ti/davinci-evm.c drvdata = devm_kzalloc(&pdev->dev, sizeof(*drvdata), GFP_KERNEL); drvdata 427 sound/soc/ti/davinci-evm.c if (!drvdata) drvdata 430 sound/soc/ti/davinci-evm.c drvdata->mclk = mclk; drvdata 432 sound/soc/ti/davinci-evm.c ret = of_property_read_u32(np, "ti,codec-clock-rate", &drvdata->sysclk); drvdata 435 sound/soc/ti/davinci-evm.c if (!drvdata->mclk) { drvdata 440 sound/soc/ti/davinci-evm.c drvdata->sysclk = clk_get_rate(drvdata->mclk); drvdata 441 sound/soc/ti/davinci-evm.c } else if (drvdata->mclk) { drvdata 442 sound/soc/ti/davinci-evm.c unsigned int requestd_rate = drvdata->sysclk; drvdata 443 sound/soc/ti/davinci-evm.c clk_set_rate(drvdata->mclk, drvdata->sysclk); drvdata 444 sound/soc/ti/davinci-evm.c drvdata->sysclk = clk_get_rate(drvdata->mclk); drvdata 445 sound/soc/ti/davinci-evm.c if (drvdata->sysclk != requestd_rate) drvdata 448 sound/soc/ti/davinci-evm.c requestd_rate, drvdata->sysclk); drvdata 451 sound/soc/ti/davinci-evm.c snd_soc_card_set_drvdata(&evm_soc_card, drvdata); drvdata 39 sound/soc/txx9/txx9aclc-ac97.c static int txx9aclc_regready(struct txx9aclc_plat_drvdata *drvdata) drvdata 41 sound/soc/txx9/txx9aclc-ac97.c return __raw_readl(drvdata->base + ACINTSTS) & ACINT_REGACCRDY; drvdata 48 sound/soc/txx9/txx9aclc-ac97.c struct txx9aclc_plat_drvdata *drvdata = txx9aclc_drvdata; drvdata 49 sound/soc/txx9/txx9aclc-ac97.c void __iomem *base = drvdata->base; drvdata 81 sound/soc/txx9/txx9aclc-ac97.c struct txx9aclc_plat_drvdata *drvdata = txx9aclc_drvdata; drvdata 82 sound/soc/txx9/txx9aclc-ac97.c void __iomem *base = drvdata->base; drvdata 97 sound/soc/txx9/txx9aclc-ac97.c struct txx9aclc_plat_drvdata *drvdata = txx9aclc_drvdata; drvdata 98 sound/soc/txx9/txx9aclc-ac97.c void __iomem *base = drvdata->base; drvdata 126 sound/soc/txx9/txx9aclc-ac97.c struct txx9aclc_plat_drvdata *drvdata = dev_id; drvdata 127 sound/soc/txx9/txx9aclc-ac97.c void __iomem *base = drvdata->base; drvdata 142 sound/soc/txx9/txx9aclc-ac97.c struct txx9aclc_plat_drvdata *drvdata = snd_soc_dai_get_drvdata(dai); drvdata 145 sound/soc/txx9/txx9aclc-ac97.c __raw_writel(ACCTL_ENLINK, drvdata->base + ACCTLDIS); drvdata 174 sound/soc/txx9/txx9aclc-ac97.c struct txx9aclc_plat_drvdata *drvdata; drvdata 183 sound/soc/txx9/txx9aclc-ac97.c drvdata = devm_kzalloc(&pdev->dev, sizeof(*drvdata), GFP_KERNEL); drvdata 184 sound/soc/txx9/txx9aclc-ac97.c if (!drvdata) drvdata 188 sound/soc/txx9/txx9aclc-ac97.c drvdata->base = devm_ioremap_resource(&pdev->dev, r); drvdata 189 sound/soc/txx9/txx9aclc-ac97.c if (IS_ERR(drvdata->base)) drvdata 190 sound/soc/txx9/txx9aclc-ac97.c return PTR_ERR(drvdata->base); drvdata 192 sound/soc/txx9/txx9aclc-ac97.c platform_set_drvdata(pdev, drvdata); drvdata 193 sound/soc/txx9/txx9aclc-ac97.c drvdata->physbase = r->start; drvdata 194 sound/soc/txx9/txx9aclc-ac97.c if (sizeof(drvdata->physbase) > sizeof(r->start) && drvdata 197 sound/soc/txx9/txx9aclc-ac97.c drvdata->physbase |= 0xf00000000ull; drvdata 199 sound/soc/txx9/txx9aclc-ac97.c 0, dev_name(&pdev->dev), drvdata); drvdata 160 sound/soc/txx9/txx9aclc.c struct txx9aclc_plat_drvdata *drvdata = txx9aclc_drvdata; drvdata 161 sound/soc/txx9/txx9aclc.c void __iomem *base = drvdata->base; drvdata 209 sound/soc/txx9/txx9aclc.c struct txx9aclc_plat_drvdata *drvdata = txx9aclc_drvdata; drvdata 210 sound/soc/txx9/txx9aclc.c void __iomem *base = drvdata->base; drvdata 346 sound/soc/txx9/txx9aclc.c struct txx9aclc_plat_drvdata *drvdata = txx9aclc_drvdata; drvdata 354 sound/soc/txx9/txx9aclc.c ds->tx_reg = drvdata->physbase + ACAUDODAT; drvdata 358 sound/soc/txx9/txx9aclc.c ds->rx_reg = drvdata->physbase + ACAUDIDAT; drvdata 386 sound/soc/txx9/txx9aclc.c struct txx9aclc_plat_drvdata *drvdata = txx9aclc_drvdata; drvdata 387 sound/soc/txx9/txx9aclc.c void __iomem *base = drvdata->base; drvdata 85 sound/soc/ux500/mop500_ab8500.c struct mop500_ab8500_drvdata *drvdata) drvdata 90 sound/soc/ux500/mop500_ab8500.c if (IS_ERR(drvdata->clk_ptr_intclk)) { drvdata 96 sound/soc/ux500/mop500_ab8500.c switch (drvdata->mclk_sel) { drvdata 98 sound/soc/ux500/mop500_ab8500.c clk_ptr = drvdata->clk_ptr_sysclk; drvdata 101 sound/soc/ux500/mop500_ab8500.c clk_ptr = drvdata->clk_ptr_ulpclk; drvdata 109 sound/soc/ux500/mop500_ab8500.c get_mclk_str(drvdata->mclk_sel)); drvdata 113 sound/soc/ux500/mop500_ab8500.c status = clk_set_parent(drvdata->clk_ptr_intclk, clk_ptr); drvdata 117 sound/soc/ux500/mop500_ab8500.c __func__, get_mclk_str(drvdata->mclk_sel), status); drvdata 121 sound/soc/ux500/mop500_ab8500.c __func__, get_mclk_str(drvdata->mclk_sel)); drvdata 134 sound/soc/ux500/mop500_ab8500.c struct mop500_ab8500_drvdata *drvdata = drvdata 137 sound/soc/ux500/mop500_ab8500.c ucontrol->value.enumerated.item[0] = drvdata->mclk_sel; drvdata 146 sound/soc/ux500/mop500_ab8500.c struct mop500_ab8500_drvdata *drvdata = drvdata 152 sound/soc/ux500/mop500_ab8500.c if (drvdata->mclk_sel == val) drvdata 155 sound/soc/ux500/mop500_ab8500.c drvdata->mclk_sel = val; drvdata 364 sound/soc/ux500/mop500_ab8500.c struct mop500_ab8500_drvdata *drvdata; drvdata 370 sound/soc/ux500/mop500_ab8500.c drvdata = devm_kzalloc(dev, sizeof(struct mop500_ab8500_drvdata), drvdata 373 sound/soc/ux500/mop500_ab8500.c if (!drvdata) drvdata 376 sound/soc/ux500/mop500_ab8500.c snd_soc_card_set_drvdata(rtd->card, drvdata); drvdata 380 sound/soc/ux500/mop500_ab8500.c drvdata->clk_ptr_sysclk = clk_get(dev, "sysclk"); drvdata 381 sound/soc/ux500/mop500_ab8500.c if (IS_ERR(drvdata->clk_ptr_sysclk)) drvdata 384 sound/soc/ux500/mop500_ab8500.c drvdata->clk_ptr_ulpclk = clk_get(dev, "ulpclk"); drvdata 385 sound/soc/ux500/mop500_ab8500.c if (IS_ERR(drvdata->clk_ptr_ulpclk)) drvdata 388 sound/soc/ux500/mop500_ab8500.c drvdata->clk_ptr_intclk = clk_get(dev, "intclk"); drvdata 389 sound/soc/ux500/mop500_ab8500.c if (IS_ERR(drvdata->clk_ptr_intclk)) drvdata 394 sound/soc/ux500/mop500_ab8500.c drvdata->mclk_sel = MCLK_ULPCLK; drvdata 395 sound/soc/ux500/mop500_ab8500.c ret = mop500_ab8500_set_mclk(dev, drvdata); drvdata 400 sound/soc/ux500/mop500_ab8500.c drvdata->mclk_sel = MCLK_ULPCLK; drvdata 434 sound/soc/ux500/mop500_ab8500.c struct mop500_ab8500_drvdata *drvdata = snd_soc_card_get_drvdata(card); drvdata 436 sound/soc/ux500/mop500_ab8500.c if (drvdata->clk_ptr_sysclk != NULL) drvdata 437 sound/soc/ux500/mop500_ab8500.c clk_put(drvdata->clk_ptr_sysclk); drvdata 438 sound/soc/ux500/mop500_ab8500.c if (drvdata->clk_ptr_ulpclk != NULL) drvdata 439 sound/soc/ux500/mop500_ab8500.c clk_put(drvdata->clk_ptr_ulpclk); drvdata 440 sound/soc/ux500/mop500_ab8500.c if (drvdata->clk_ptr_intclk != NULL) drvdata 441 sound/soc/ux500/mop500_ab8500.c clk_put(drvdata->clk_ptr_intclk); drvdata 443 sound/soc/ux500/mop500_ab8500.c snd_soc_card_set_drvdata(card, drvdata); drvdata 33 sound/soc/ux500/ux500_msp_dai.c struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(dai->dev); drvdata 37 sound/soc/ux500/ux500_msp_dai.c if (drvdata->slots > 1) { drvdata 44 sound/soc/ux500/ux500_msp_dai.c multi->tx_channel_0_enable = drvdata->tx_mask; drvdata 49 sound/soc/ux500/ux500_msp_dai.c multi->rx_channel_0_enable = drvdata->rx_mask; drvdata 56 sound/soc/ux500/ux500_msp_dai.c __func__, drvdata->slots, multi->tx_channel_0_enable, drvdata 66 sound/soc/ux500/ux500_msp_dai.c struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(dai->dev); drvdata 68 sound/soc/ux500/ux500_msp_dai.c switch (drvdata->slots) { drvdata 113 sound/soc/ux500/ux500_msp_dai.c __func__, drvdata->slots); drvdata 130 sound/soc/ux500/ux500_msp_dai.c struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(dai->dev); drvdata 136 sound/soc/ux500/ux500_msp_dai.c switch (drvdata->slots) { drvdata 155 sound/soc/ux500/ux500_msp_dai.c __func__, drvdata->slots); drvdata 305 sound/soc/ux500/ux500_msp_dai.c struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(dai->dev); drvdata 308 sound/soc/ux500/ux500_msp_dai.c unsigned int fmt = drvdata->fmt; drvdata 313 sound/soc/ux500/ux500_msp_dai.c msp_config->f_inputclk = drvdata->master_clk; drvdata 387 sound/soc/ux500/ux500_msp_dai.c struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(dai->dev); drvdata 393 sound/soc/ux500/ux500_msp_dai.c ret = regulator_enable(drvdata->reg_vape); drvdata 395 sound/soc/ux500/ux500_msp_dai.c dev_err(drvdata->msp->dev, drvdata 402 sound/soc/ux500/ux500_msp_dai.c ret = clk_prepare_enable(drvdata->pclk); drvdata 404 sound/soc/ux500/ux500_msp_dai.c dev_err(drvdata->msp->dev, drvdata 409 sound/soc/ux500/ux500_msp_dai.c ret = clk_prepare_enable(drvdata->clk); drvdata 411 sound/soc/ux500/ux500_msp_dai.c dev_err(drvdata->msp->dev, drvdata 418 sound/soc/ux500/ux500_msp_dai.c clk_disable_unprepare(drvdata->pclk); drvdata 420 sound/soc/ux500/ux500_msp_dai.c regulator_disable(drvdata->reg_vape); drvdata 428 sound/soc/ux500/ux500_msp_dai.c struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(dai->dev); drvdata 434 sound/soc/ux500/ux500_msp_dai.c if (drvdata->vape_opp_constraint == 1) { drvdata 437 sound/soc/ux500/ux500_msp_dai.c drvdata->vape_opp_constraint = 0; drvdata 440 sound/soc/ux500/ux500_msp_dai.c if (ux500_msp_i2s_close(drvdata->msp, drvdata 448 sound/soc/ux500/ux500_msp_dai.c clk_disable_unprepare(drvdata->clk); drvdata 449 sound/soc/ux500/ux500_msp_dai.c clk_disable_unprepare(drvdata->pclk); drvdata 452 sound/soc/ux500/ux500_msp_dai.c ret = regulator_disable(drvdata->reg_vape); drvdata 463 sound/soc/ux500/ux500_msp_dai.c struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(dai->dev); drvdata 472 sound/soc/ux500/ux500_msp_dai.c ret = ux500_msp_i2s_open(drvdata->msp, &msp_config); drvdata 480 sound/soc/ux500/ux500_msp_dai.c if ((drvdata->fmt & SND_SOC_DAIFMT_MASTER_MASK) && drvdata 481 sound/soc/ux500/ux500_msp_dai.c (drvdata->msp->f_bitclk > 19200000)) { drvdata 487 sound/soc/ux500/ux500_msp_dai.c drvdata->vape_opp_constraint = 1; drvdata 491 sound/soc/ux500/ux500_msp_dai.c drvdata->vape_opp_constraint = 0; drvdata 503 sound/soc/ux500/ux500_msp_dai.c struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(dai->dev); drvdata 508 sound/soc/ux500/ux500_msp_dai.c switch (drvdata->fmt & SND_SOC_DAIFMT_FORMAT_MASK) { drvdata 518 sound/soc/ux500/ux500_msp_dai.c drvdata->tx_mask : drvdata 519 sound/soc/ux500/ux500_msp_dai.c drvdata->rx_mask; drvdata 532 sound/soc/ux500/ux500_msp_dai.c __func__, drvdata->fmt); drvdata 542 sound/soc/ux500/ux500_msp_dai.c struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(dai->dev); drvdata 559 sound/soc/ux500/ux500_msp_dai.c __func__, drvdata->fmt); drvdata 572 sound/soc/ux500/ux500_msp_dai.c __func__, drvdata->fmt); drvdata 576 sound/soc/ux500/ux500_msp_dai.c drvdata->fmt = fmt; drvdata 585 sound/soc/ux500/ux500_msp_dai.c struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(dai->dev); drvdata 606 sound/soc/ux500/ux500_msp_dai.c drvdata->slots = slots; drvdata 613 sound/soc/ux500/ux500_msp_dai.c drvdata->slot_width = slot_width; drvdata 615 sound/soc/ux500/ux500_msp_dai.c drvdata->tx_mask = tx_mask & cap; drvdata 616 sound/soc/ux500/ux500_msp_dai.c drvdata->rx_mask = rx_mask & cap; drvdata 624 sound/soc/ux500/ux500_msp_dai.c struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(dai->dev); drvdata 631 sound/soc/ux500/ux500_msp_dai.c drvdata->master_clk = freq; drvdata 647 sound/soc/ux500/ux500_msp_dai.c struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(dai->dev); drvdata 651 sound/soc/ux500/ux500_msp_dai.c (int)drvdata->msp->id, cmd); drvdata 653 sound/soc/ux500/ux500_msp_dai.c ret = ux500_msp_i2s_trigger(drvdata->msp, cmd, substream->stream); drvdata 660 sound/soc/ux500/ux500_msp_dai.c struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(dai->dev); drvdata 676 sound/soc/ux500/ux500_msp_dai.c playback_dma_data->addr = drvdata->msp->playback_dma_data.tx_rx_addr; drvdata 677 sound/soc/ux500/ux500_msp_dai.c capture_dma_data->addr = drvdata->msp->capture_dma_data.tx_rx_addr; drvdata 689 sound/soc/ux500/ux500_msp_dai.c struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(dai->dev); drvdata 698 sound/soc/ux500/ux500_msp_dai.c drvdata->msp->playback_dma_data.data_size = drvdata->slot_width; drvdata 699 sound/soc/ux500/ux500_msp_dai.c drvdata->msp->capture_dma_data.data_size = drvdata->slot_width; drvdata 702 sound/soc/ux500/ux500_msp_dai.c &drvdata->msp->playback_dma_data, drvdata 703 sound/soc/ux500/ux500_msp_dai.c &drvdata->msp->capture_dma_data); drvdata 742 sound/soc/ux500/ux500_msp_dai.c struct ux500_msp_i2s_drvdata *drvdata; drvdata 752 sound/soc/ux500/ux500_msp_dai.c drvdata = devm_kzalloc(&pdev->dev, drvdata 755 sound/soc/ux500/ux500_msp_dai.c if (!drvdata) drvdata 758 sound/soc/ux500/ux500_msp_dai.c drvdata->fmt = 0; drvdata 759 sound/soc/ux500/ux500_msp_dai.c drvdata->slots = 1; drvdata 760 sound/soc/ux500/ux500_msp_dai.c drvdata->tx_mask = 0x01; drvdata 761 sound/soc/ux500/ux500_msp_dai.c drvdata->rx_mask = 0x01; drvdata 762 sound/soc/ux500/ux500_msp_dai.c drvdata->slot_width = 16; drvdata 763 sound/soc/ux500/ux500_msp_dai.c drvdata->master_clk = MSP_INPUT_FREQ_APB; drvdata 765 sound/soc/ux500/ux500_msp_dai.c drvdata->reg_vape = devm_regulator_get(&pdev->dev, "v-ape"); drvdata 766 sound/soc/ux500/ux500_msp_dai.c if (IS_ERR(drvdata->reg_vape)) { drvdata 767 sound/soc/ux500/ux500_msp_dai.c ret = (int)PTR_ERR(drvdata->reg_vape); drvdata 775 sound/soc/ux500/ux500_msp_dai.c drvdata->pclk = devm_clk_get(&pdev->dev, "apb_pclk"); drvdata 776 sound/soc/ux500/ux500_msp_dai.c if (IS_ERR(drvdata->pclk)) { drvdata 777 sound/soc/ux500/ux500_msp_dai.c ret = (int)PTR_ERR(drvdata->pclk); drvdata 784 sound/soc/ux500/ux500_msp_dai.c drvdata->clk = devm_clk_get(&pdev->dev, NULL); drvdata 785 sound/soc/ux500/ux500_msp_dai.c if (IS_ERR(drvdata->clk)) { drvdata 786 sound/soc/ux500/ux500_msp_dai.c ret = (int)PTR_ERR(drvdata->clk); drvdata 793 sound/soc/ux500/ux500_msp_dai.c ret = ux500_msp_i2s_init_msp(pdev, &drvdata->msp, drvdata 795 sound/soc/ux500/ux500_msp_dai.c if (!drvdata->msp) { drvdata 801 sound/soc/ux500/ux500_msp_dai.c dev_set_drvdata(&pdev->dev, drvdata); drvdata 807 sound/soc/ux500/ux500_msp_dai.c __func__, drvdata->msp->id); drvdata 828 sound/soc/ux500/ux500_msp_dai.c struct ux500_msp_i2s_drvdata *drvdata = dev_get_drvdata(&pdev->dev); drvdata 836 sound/soc/ux500/ux500_msp_dai.c ux500_msp_i2s_cleanup_msp(pdev, drvdata->msp);