device_data 219 drivers/char/ipmi/ipmi_dmi.c dmi_decode_ipmi((const struct dmi_header *) dev->device_data); device_data 21 drivers/crypto/ux500/cryp/cryp.c void cryp_wait_until_done(struct cryp_device_data *device_data) device_data 23 drivers/crypto/ux500/cryp/cryp.c while (cryp_is_logic_busy(device_data)) device_data 31 drivers/crypto/ux500/cryp/cryp.c int cryp_check(struct cryp_device_data *device_data) device_data 35 drivers/crypto/ux500/cryp/cryp.c if (NULL == device_data) device_data 38 drivers/crypto/ux500/cryp/cryp.c peripheralid2 = readl_relaxed(&device_data->base->periphId2); device_data 45 drivers/crypto/ux500/cryp/cryp.c readl_relaxed(&device_data->base->periphId0)) device_data 47 drivers/crypto/ux500/cryp/cryp.c readl_relaxed(&device_data->base->periphId1)) device_data 49 drivers/crypto/ux500/cryp/cryp.c readl_relaxed(&device_data->base->periphId3)) device_data 51 drivers/crypto/ux500/cryp/cryp.c readl_relaxed(&device_data->base->pcellId0)) device_data 53 drivers/crypto/ux500/cryp/cryp.c readl_relaxed(&device_data->base->pcellId1)) device_data 55 drivers/crypto/ux500/cryp/cryp.c readl_relaxed(&device_data->base->pcellId2)) device_data 57 drivers/crypto/ux500/cryp/cryp.c readl_relaxed(&device_data->base->pcellId3))) { device_data 69 drivers/crypto/ux500/cryp/cryp.c void cryp_activity(struct cryp_device_data *device_data, device_data 72 drivers/crypto/ux500/cryp/cryp.c CRYP_PUT_BITS(&device_data->base->cr, device_data 82 drivers/crypto/ux500/cryp/cryp.c void cryp_flush_inoutfifo(struct cryp_device_data *device_data) device_data 90 drivers/crypto/ux500/cryp/cryp.c cryp_activity(device_data, CRYP_CRYPEN_DISABLE); device_data 91 drivers/crypto/ux500/cryp/cryp.c cryp_wait_until_done(device_data); device_data 93 drivers/crypto/ux500/cryp/cryp.c CRYP_SET_BITS(&device_data->base->cr, CRYP_CR_FFLUSH_MASK); device_data 99 drivers/crypto/ux500/cryp/cryp.c while (readl_relaxed(&device_data->base->sr) != device_data 110 drivers/crypto/ux500/cryp/cryp.c int cryp_set_configuration(struct cryp_device_data *device_data, device_data 116 drivers/crypto/ux500/cryp/cryp.c if (NULL == device_data || NULL == cryp_config) device_data 147 drivers/crypto/ux500/cryp/cryp.c writel_relaxed(cr_for_kse, &device_data->base->cr); device_data 148 drivers/crypto/ux500/cryp/cryp.c cryp_wait_until_done(device_data); device_data 164 drivers/crypto/ux500/cryp/cryp.c int cryp_configure_protection(struct cryp_device_data *device_data, device_data 170 drivers/crypto/ux500/cryp/cryp.c CRYP_WRITE_BIT(&device_data->base->cr, device_data 173 drivers/crypto/ux500/cryp/cryp.c CRYP_PUT_BITS(&device_data->base->cr, device_data 185 drivers/crypto/ux500/cryp/cryp.c int cryp_is_logic_busy(struct cryp_device_data *device_data) device_data 187 drivers/crypto/ux500/cryp/cryp.c return CRYP_TEST_BITS(&device_data->base->sr, device_data 196 drivers/crypto/ux500/cryp/cryp.c void cryp_configure_for_dma(struct cryp_device_data *device_data, device_data 199 drivers/crypto/ux500/cryp/cryp.c CRYP_SET_BITS(&device_data->base->dmacr, device_data 209 drivers/crypto/ux500/cryp/cryp.c int cryp_configure_key_values(struct cryp_device_data *device_data, device_data 213 drivers/crypto/ux500/cryp/cryp.c while (cryp_is_logic_busy(device_data)) device_data 219 drivers/crypto/ux500/cryp/cryp.c &device_data->base->key_1_l); device_data 221 drivers/crypto/ux500/cryp/cryp.c &device_data->base->key_1_r); device_data 225 drivers/crypto/ux500/cryp/cryp.c &device_data->base->key_2_l); device_data 227 drivers/crypto/ux500/cryp/cryp.c &device_data->base->key_2_r); device_data 231 drivers/crypto/ux500/cryp/cryp.c &device_data->base->key_3_l); device_data 233 drivers/crypto/ux500/cryp/cryp.c &device_data->base->key_3_r); device_data 237 drivers/crypto/ux500/cryp/cryp.c &device_data->base->key_4_l); device_data 239 drivers/crypto/ux500/cryp/cryp.c &device_data->base->key_4_r); device_data 254 drivers/crypto/ux500/cryp/cryp.c int cryp_configure_init_vector(struct cryp_device_data *device_data, device_data 260 drivers/crypto/ux500/cryp/cryp.c while (cryp_is_logic_busy(device_data)) device_data 266 drivers/crypto/ux500/cryp/cryp.c &device_data->base->init_vect_0_l); device_data 268 drivers/crypto/ux500/cryp/cryp.c &device_data->base->init_vect_0_r); device_data 272 drivers/crypto/ux500/cryp/cryp.c &device_data->base->init_vect_1_l); device_data 274 drivers/crypto/ux500/cryp/cryp.c &device_data->base->init_vect_1_r); device_data 289 drivers/crypto/ux500/cryp/cryp.c void cryp_save_device_context(struct cryp_device_data *device_data, device_data 294 drivers/crypto/ux500/cryp/cryp.c struct cryp_register __iomem *src_reg = device_data->base; device_data 296 drivers/crypto/ux500/cryp/cryp.c (struct cryp_config *)device_data->current_ctx; device_data 302 drivers/crypto/ux500/cryp/cryp.c cryp_activity(device_data, CRYP_CRYPEN_DISABLE); device_data 303 drivers/crypto/ux500/cryp/cryp.c cryp_wait_until_done(device_data); device_data 306 drivers/crypto/ux500/cryp/cryp.c cryp_configure_for_dma(device_data, CRYP_DMA_DISABLE_BOTH); device_data 352 drivers/crypto/ux500/cryp/cryp.c void cryp_restore_device_context(struct cryp_device_data *device_data, device_data 355 drivers/crypto/ux500/cryp/cryp.c struct cryp_register __iomem *reg = device_data->base; device_data 357 drivers/crypto/ux500/cryp/cryp.c (struct cryp_config *)device_data->current_ctx; device_data 253 drivers/crypto/ux500/cryp/cryp.h void cryp_wait_until_done(struct cryp_device_data *device_data); device_data 257 drivers/crypto/ux500/cryp/cryp.h int cryp_check(struct cryp_device_data *device_data); device_data 259 drivers/crypto/ux500/cryp/cryp.h void cryp_activity(struct cryp_device_data *device_data, device_data 262 drivers/crypto/ux500/cryp/cryp.h void cryp_flush_inoutfifo(struct cryp_device_data *device_data); device_data 264 drivers/crypto/ux500/cryp/cryp.h int cryp_set_configuration(struct cryp_device_data *device_data, device_data 268 drivers/crypto/ux500/cryp/cryp.h void cryp_configure_for_dma(struct cryp_device_data *device_data, device_data 271 drivers/crypto/ux500/cryp/cryp.h int cryp_configure_key_values(struct cryp_device_data *device_data, device_data 275 drivers/crypto/ux500/cryp/cryp.h int cryp_configure_init_vector(struct cryp_device_data *device_data, device_data 281 drivers/crypto/ux500/cryp/cryp.h int cryp_configure_protection(struct cryp_device_data *device_data, device_data 285 drivers/crypto/ux500/cryp/cryp.h void cryp_save_device_context(struct cryp_device_data *device_data, device_data 289 drivers/crypto/ux500/cryp/cryp.h void cryp_restore_device_context(struct cryp_device_data *device_data, device_data 293 drivers/crypto/ux500/cryp/cryp.h int cryp_is_logic_busy(struct cryp_device_data *device_data); device_data 295 drivers/crypto/ux500/cryp/cryp.h int cryp_get_status(struct cryp_device_data *device_data); device_data 303 drivers/crypto/ux500/cryp/cryp.h int cryp_write_indata(struct cryp_device_data *device_data, u32 write_data); device_data 311 drivers/crypto/ux500/cryp/cryp.h int cryp_read_outdata(struct cryp_device_data *device_data, u32 *read_data); device_data 195 drivers/crypto/ux500/cryp/cryp_core.c struct cryp_device_data *device_data; device_data 203 drivers/crypto/ux500/cryp/cryp_core.c device_data = (struct cryp_device_data *)param; device_data 205 drivers/crypto/ux500/cryp/cryp_core.c ctx = device_data->current_ctx; device_data 213 drivers/crypto/ux500/cryp/cryp_core.c cryp_pending_irq_src(device_data, CRYP_IRQ_SRC_OUTPUT_FIFO) ? device_data 216 drivers/crypto/ux500/cryp/cryp_core.c if (cryp_pending_irq_src(device_data, device_data 221 drivers/crypto/ux500/cryp/cryp_core.c readsl(&device_data->base->dout, ctx->outdata, count); device_data 226 drivers/crypto/ux500/cryp/cryp_core.c cryp_disable_irq_src(device_data, device_data 230 drivers/crypto/ux500/cryp/cryp_core.c } else if (cryp_pending_irq_src(device_data, device_data 235 drivers/crypto/ux500/cryp/cryp_core.c writesl(&device_data->base->din, ctx->indata, count); device_data 241 drivers/crypto/ux500/cryp/cryp_core.c cryp_disable_irq_src(device_data, device_data 245 drivers/crypto/ux500/cryp/cryp_core.c CRYP_PUT_BITS(&device_data->base->cr, device_data 250 drivers/crypto/ux500/cryp/cryp_core.c cryp_wait_until_done(device_data); device_data 266 drivers/crypto/ux500/cryp/cryp_core.c static int cfg_iv(struct cryp_device_data *device_data, u32 left, u32 right, device_data 271 drivers/crypto/ux500/cryp/cryp_core.c dev_dbg(device_data->dev, "[%s]", __func__); device_data 276 drivers/crypto/ux500/cryp/cryp_core.c return cryp_configure_init_vector(device_data, device_data 281 drivers/crypto/ux500/cryp/cryp_core.c static int cfg_ivs(struct cryp_device_data *device_data, struct cryp_ctx *ctx) device_data 288 drivers/crypto/ux500/cryp/cryp_core.c dev_dbg(device_data->dev, "[%s]", __func__); device_data 296 drivers/crypto/ux500/cryp/cryp_core.c dev_err(device_data->dev, "[%s] Incorrect blocksize %d", device_data 305 drivers/crypto/ux500/cryp/cryp_core.c status = cfg_iv(device_data, iv[i*2], iv[i*2+1], device_data 313 drivers/crypto/ux500/cryp/cryp_core.c static int set_key(struct cryp_device_data *device_data, device_data 321 drivers/crypto/ux500/cryp/cryp_core.c dev_dbg(device_data->dev, "[%s]", __func__); device_data 326 drivers/crypto/ux500/cryp/cryp_core.c cryp_error = cryp_configure_key_values(device_data, device_data 330 drivers/crypto/ux500/cryp/cryp_core.c dev_err(device_data->dev, "[%s]: " device_data 370 drivers/crypto/ux500/cryp/cryp_core.c struct cryp_device_data *device_data) device_data 376 drivers/crypto/ux500/cryp/cryp_core.c writel_relaxed(CRYP_IMSC_DEFAULT, &device_data->base->imsc); device_data 380 drivers/crypto/ux500/cryp/cryp_core.c writel_relaxed(CRYP_DMACR_DEFAULT, &device_data->base->dmacr); device_data 388 drivers/crypto/ux500/cryp/cryp_core.c cryp_flush_inoutfifo(device_data); device_data 399 drivers/crypto/ux500/cryp/cryp_core.c if (cfg_ivs(device_data, ctx) != 0) device_data 403 drivers/crypto/ux500/cryp/cryp_core.c cryp_set_configuration(device_data, &ctx->config, device_data 408 drivers/crypto/ux500/cryp/cryp_core.c cryp_flush_inoutfifo(device_data); device_data 409 drivers/crypto/ux500/cryp/cryp_core.c cryp_restore_device_context(device_data, &ctx->dev_ctx); device_data 418 drivers/crypto/ux500/cryp/cryp_core.c &device_data->base->cr); device_data 424 drivers/crypto/ux500/cryp/cryp_core.c struct cryp_device_data **device_data) device_data 470 drivers/crypto/ux500/cryp/cryp_core.c *device_data = local_device_data; device_data 475 drivers/crypto/ux500/cryp/cryp_core.c static void cryp_dma_setup_channel(struct cryp_device_data *device_data, device_data 480 drivers/crypto/ux500/cryp/cryp_core.c .dst_addr = device_data->phybase + CRYP_DMA_TX_FIFO, device_data 486 drivers/crypto/ux500/cryp/cryp_core.c .src_addr = device_data->phybase + CRYP_DMA_RX_FIFO, device_data 491 drivers/crypto/ux500/cryp/cryp_core.c dma_cap_zero(device_data->dma.mask); device_data 492 drivers/crypto/ux500/cryp/cryp_core.c dma_cap_set(DMA_SLAVE, device_data->dma.mask); device_data 494 drivers/crypto/ux500/cryp/cryp_core.c device_data->dma.cfg_mem2cryp = mem_to_engine; device_data 495 drivers/crypto/ux500/cryp/cryp_core.c device_data->dma.chan_mem2cryp = device_data 496 drivers/crypto/ux500/cryp/cryp_core.c dma_request_channel(device_data->dma.mask, device_data 498 drivers/crypto/ux500/cryp/cryp_core.c device_data->dma.cfg_mem2cryp); device_data 500 drivers/crypto/ux500/cryp/cryp_core.c device_data->dma.cfg_cryp2mem = engine_to_mem; device_data 501 drivers/crypto/ux500/cryp/cryp_core.c device_data->dma.chan_cryp2mem = device_data 502 drivers/crypto/ux500/cryp/cryp_core.c dma_request_channel(device_data->dma.mask, device_data 504 drivers/crypto/ux500/cryp/cryp_core.c device_data->dma.cfg_cryp2mem); device_data 506 drivers/crypto/ux500/cryp/cryp_core.c dmaengine_slave_config(device_data->dma.chan_mem2cryp, &mem2cryp); device_data 507 drivers/crypto/ux500/cryp/cryp_core.c dmaengine_slave_config(device_data->dma.chan_cryp2mem, &cryp2mem); device_data 509 drivers/crypto/ux500/cryp/cryp_core.c init_completion(&device_data->dma.cryp_dma_complete); device_data 654 drivers/crypto/ux500/cryp/cryp_core.c struct cryp_device_data *device_data) device_data 662 drivers/crypto/ux500/cryp/cryp_core.c writesl(&device_data->base->din, indata, len); device_data 665 drivers/crypto/ux500/cryp/cryp_core.c cryp_wait_until_done(device_data); device_data 667 drivers/crypto/ux500/cryp/cryp_core.c readsl(&device_data->base->dout, outdata, len); device_data 669 drivers/crypto/ux500/cryp/cryp_core.c cryp_wait_until_done(device_data); device_data 674 drivers/crypto/ux500/cryp/cryp_core.c struct cryp_device_data *device_data, device_data 681 drivers/crypto/ux500/cryp/cryp_core.c spin_lock(&device_data->power_state_spinlock); device_data 682 drivers/crypto/ux500/cryp/cryp_core.c if (!device_data->power_state) device_data 685 drivers/crypto/ux500/cryp/cryp_core.c spin_lock(&device_data->ctx_lock); device_data 686 drivers/crypto/ux500/cryp/cryp_core.c if (save_device_context && device_data->current_ctx) { device_data 687 drivers/crypto/ux500/cryp/cryp_core.c cryp_save_device_context(device_data, device_data 688 drivers/crypto/ux500/cryp/cryp_core.c &device_data->current_ctx->dev_ctx, device_data 690 drivers/crypto/ux500/cryp/cryp_core.c device_data->restore_dev_ctx = true; device_data 692 drivers/crypto/ux500/cryp/cryp_core.c spin_unlock(&device_data->ctx_lock); device_data 694 drivers/crypto/ux500/cryp/cryp_core.c clk_disable(device_data->clk); device_data 695 drivers/crypto/ux500/cryp/cryp_core.c ret = regulator_disable(device_data->pwr_regulator); device_data 701 drivers/crypto/ux500/cryp/cryp_core.c device_data->power_state = false; device_data 704 drivers/crypto/ux500/cryp/cryp_core.c spin_unlock(&device_data->power_state_spinlock); device_data 711 drivers/crypto/ux500/cryp/cryp_core.c struct cryp_device_data *device_data, device_data 718 drivers/crypto/ux500/cryp/cryp_core.c spin_lock(&device_data->power_state_spinlock); device_data 719 drivers/crypto/ux500/cryp/cryp_core.c if (!device_data->power_state) { device_data 720 drivers/crypto/ux500/cryp/cryp_core.c ret = regulator_enable(device_data->pwr_regulator); device_data 727 drivers/crypto/ux500/cryp/cryp_core.c ret = clk_enable(device_data->clk); device_data 731 drivers/crypto/ux500/cryp/cryp_core.c regulator_disable(device_data->pwr_regulator); device_data 734 drivers/crypto/ux500/cryp/cryp_core.c device_data->power_state = true; device_data 737 drivers/crypto/ux500/cryp/cryp_core.c if (device_data->restore_dev_ctx) { device_data 738 drivers/crypto/ux500/cryp/cryp_core.c spin_lock(&device_data->ctx_lock); device_data 739 drivers/crypto/ux500/cryp/cryp_core.c if (restore_device_context && device_data->current_ctx) { device_data 740 drivers/crypto/ux500/cryp/cryp_core.c device_data->restore_dev_ctx = false; device_data 741 drivers/crypto/ux500/cryp/cryp_core.c cryp_restore_device_context(device_data, device_data 742 drivers/crypto/ux500/cryp/cryp_core.c &device_data->current_ctx->dev_ctx); device_data 744 drivers/crypto/ux500/cryp/cryp_core.c spin_unlock(&device_data->ctx_lock); device_data 747 drivers/crypto/ux500/cryp/cryp_core.c spin_unlock(&device_data->power_state_spinlock); device_data 753 drivers/crypto/ux500/cryp/cryp_core.c struct cryp_device_data *device_data) device_data 772 drivers/crypto/ux500/cryp/cryp_core.c ret = cryp_setup_context(ctx, device_data); device_data 778 drivers/crypto/ux500/cryp/cryp_core.c cryp_enable_irq_src(device_data, CRYP_IRQ_SRC_INPUT_FIFO | device_data 798 drivers/crypto/ux500/cryp/cryp_core.c cryp_polling_mode(ctx, device_data); device_data 806 drivers/crypto/ux500/cryp/cryp_core.c cryp_save_device_context(device_data, &ctx->dev_ctx, cryp_mode); device_data 835 drivers/crypto/ux500/cryp/cryp_core.c struct cryp_device_data *device_data; device_data 846 drivers/crypto/ux500/cryp/cryp_core.c ret = cryp_get_device_data(ctx, &device_data); device_data 850 drivers/crypto/ux500/cryp/cryp_core.c ret = cryp_setup_context(ctx, device_data); device_data 859 drivers/crypto/ux500/cryp/cryp_core.c cryp_configure_for_dma(device_data, CRYP_DMA_ENABLE_BOTH_DIRECTIONS); device_data 867 drivers/crypto/ux500/cryp/cryp_core.c cryp_save_device_context(device_data, &ctx->dev_ctx, cryp_mode); device_data 871 drivers/crypto/ux500/cryp/cryp_core.c spin_lock(&device_data->ctx_lock); device_data 872 drivers/crypto/ux500/cryp/cryp_core.c device_data->current_ctx = NULL; device_data 874 drivers/crypto/ux500/cryp/cryp_core.c spin_unlock(&device_data->ctx_lock); device_data 893 drivers/crypto/ux500/cryp/cryp_core.c struct cryp_device_data *device_data; device_data 901 drivers/crypto/ux500/cryp/cryp_core.c ret = cryp_get_device_data(ctx, &device_data); device_data 924 drivers/crypto/ux500/cryp/cryp_core.c ret = hw_crypt_noxts(ctx, device_data); device_data 937 drivers/crypto/ux500/cryp/cryp_core.c spin_lock(&device_data->ctx_lock); device_data 938 drivers/crypto/ux500/cryp/cryp_core.c device_data->current_ctx = NULL; device_data 940 drivers/crypto/ux500/cryp/cryp_core.c spin_unlock(&device_data->ctx_lock); device_data 1329 drivers/crypto/ux500/cryp/cryp_core.c struct cryp_device_data *device_data; device_data 1336 drivers/crypto/ux500/cryp/cryp_core.c device_data = devm_kzalloc(dev, sizeof(*device_data), GFP_ATOMIC); device_data 1337 drivers/crypto/ux500/cryp/cryp_core.c if (!device_data) { device_data 1342 drivers/crypto/ux500/cryp/cryp_core.c device_data->dev = dev; device_data 1343 drivers/crypto/ux500/cryp/cryp_core.c device_data->current_ctx = NULL; device_data 1359 drivers/crypto/ux500/cryp/cryp_core.c device_data->phybase = res->start; device_data 1360 drivers/crypto/ux500/cryp/cryp_core.c device_data->base = devm_ioremap_resource(dev, res); device_data 1361 drivers/crypto/ux500/cryp/cryp_core.c if (IS_ERR(device_data->base)) { device_data 1363 drivers/crypto/ux500/cryp/cryp_core.c ret = PTR_ERR(device_data->base); device_data 1367 drivers/crypto/ux500/cryp/cryp_core.c spin_lock_init(&device_data->ctx_lock); device_data 1368 drivers/crypto/ux500/cryp/cryp_core.c spin_lock_init(&device_data->power_state_spinlock); device_data 1371 drivers/crypto/ux500/cryp/cryp_core.c device_data->pwr_regulator = regulator_get(&pdev->dev, "v-ape"); device_data 1372 drivers/crypto/ux500/cryp/cryp_core.c if (IS_ERR(device_data->pwr_regulator)) { device_data 1374 drivers/crypto/ux500/cryp/cryp_core.c ret = PTR_ERR(device_data->pwr_regulator); device_data 1375 drivers/crypto/ux500/cryp/cryp_core.c device_data->pwr_regulator = NULL; device_data 1380 drivers/crypto/ux500/cryp/cryp_core.c device_data->clk = devm_clk_get(&pdev->dev, NULL); device_data 1381 drivers/crypto/ux500/cryp/cryp_core.c if (IS_ERR(device_data->clk)) { device_data 1383 drivers/crypto/ux500/cryp/cryp_core.c ret = PTR_ERR(device_data->clk); device_data 1387 drivers/crypto/ux500/cryp/cryp_core.c ret = clk_prepare(device_data->clk); device_data 1394 drivers/crypto/ux500/cryp/cryp_core.c ret = cryp_enable_power(device_data->dev, device_data, false); device_data 1400 drivers/crypto/ux500/cryp/cryp_core.c if (cryp_check(device_data)) { device_data 1406 drivers/crypto/ux500/cryp/cryp_core.c if (cryp_configure_protection(device_data, &prot)) { device_data 1422 drivers/crypto/ux500/cryp/cryp_core.c cryp_interrupt_handler, 0, "cryp1", device_data); device_data 1429 drivers/crypto/ux500/cryp/cryp_core.c cryp_dma_setup_channel(device_data, dev); device_data 1431 drivers/crypto/ux500/cryp/cryp_core.c platform_set_drvdata(pdev, device_data); device_data 1434 drivers/crypto/ux500/cryp/cryp_core.c klist_add_tail(&device_data->list_node, &driver_data.device_list); device_data 1453 drivers/crypto/ux500/cryp/cryp_core.c cryp_disable_power(device_data->dev, device_data, false); device_data 1456 drivers/crypto/ux500/cryp/cryp_core.c clk_unprepare(device_data->clk); device_data 1459 drivers/crypto/ux500/cryp/cryp_core.c regulator_put(device_data->pwr_regulator); device_data 1467 drivers/crypto/ux500/cryp/cryp_core.c struct cryp_device_data *device_data; device_data 1470 drivers/crypto/ux500/cryp/cryp_core.c device_data = platform_get_drvdata(pdev); device_data 1471 drivers/crypto/ux500/cryp/cryp_core.c if (!device_data) { device_data 1482 drivers/crypto/ux500/cryp/cryp_core.c spin_lock(&device_data->ctx_lock); device_data 1484 drivers/crypto/ux500/cryp/cryp_core.c if (device_data->current_ctx) { device_data 1486 drivers/crypto/ux500/cryp/cryp_core.c spin_unlock(&device_data->ctx_lock); device_data 1492 drivers/crypto/ux500/cryp/cryp_core.c spin_unlock(&device_data->ctx_lock); device_data 1495 drivers/crypto/ux500/cryp/cryp_core.c if (klist_node_attached(&device_data->list_node)) device_data 1496 drivers/crypto/ux500/cryp/cryp_core.c klist_remove(&device_data->list_node); device_data 1502 drivers/crypto/ux500/cryp/cryp_core.c if (cryp_disable_power(&pdev->dev, device_data, false)) device_data 1506 drivers/crypto/ux500/cryp/cryp_core.c clk_unprepare(device_data->clk); device_data 1507 drivers/crypto/ux500/cryp/cryp_core.c regulator_put(device_data->pwr_regulator); device_data 1514 drivers/crypto/ux500/cryp/cryp_core.c struct cryp_device_data *device_data; device_data 1518 drivers/crypto/ux500/cryp/cryp_core.c device_data = platform_get_drvdata(pdev); device_data 1519 drivers/crypto/ux500/cryp/cryp_core.c if (!device_data) { device_data 1526 drivers/crypto/ux500/cryp/cryp_core.c spin_lock(&device_data->ctx_lock); device_data 1528 drivers/crypto/ux500/cryp/cryp_core.c if (!device_data->current_ctx) { device_data 1537 drivers/crypto/ux500/cryp/cryp_core.c device_data->current_ctx++; device_data 1539 drivers/crypto/ux500/cryp/cryp_core.c spin_unlock(&device_data->ctx_lock); device_data 1542 drivers/crypto/ux500/cryp/cryp_core.c if (klist_node_attached(&device_data->list_node)) device_data 1543 drivers/crypto/ux500/cryp/cryp_core.c klist_remove(&device_data->list_node); device_data 1549 drivers/crypto/ux500/cryp/cryp_core.c if (cryp_disable_power(&pdev->dev, device_data, false)) device_data 1560 drivers/crypto/ux500/cryp/cryp_core.c struct cryp_device_data *device_data; device_data 1567 drivers/crypto/ux500/cryp/cryp_core.c device_data = platform_get_drvdata(pdev); device_data 1568 drivers/crypto/ux500/cryp/cryp_core.c if (!device_data) { device_data 1579 drivers/crypto/ux500/cryp/cryp_core.c spin_lock(&device_data->ctx_lock); device_data 1580 drivers/crypto/ux500/cryp/cryp_core.c if (!device_data->current_ctx) device_data 1581 drivers/crypto/ux500/cryp/cryp_core.c device_data->current_ctx++; device_data 1582 drivers/crypto/ux500/cryp/cryp_core.c spin_unlock(&device_data->ctx_lock); device_data 1584 drivers/crypto/ux500/cryp/cryp_core.c if (device_data->current_ctx == ++temp_ctx) { device_data 1588 drivers/crypto/ux500/cryp/cryp_core.c ret = cryp_disable_power(dev, device_data, false); device_data 1591 drivers/crypto/ux500/cryp/cryp_core.c ret = cryp_disable_power(dev, device_data, true); device_data 1603 drivers/crypto/ux500/cryp/cryp_core.c struct cryp_device_data *device_data; device_data 1609 drivers/crypto/ux500/cryp/cryp_core.c device_data = platform_get_drvdata(pdev); device_data 1610 drivers/crypto/ux500/cryp/cryp_core.c if (!device_data) { device_data 1615 drivers/crypto/ux500/cryp/cryp_core.c spin_lock(&device_data->ctx_lock); device_data 1616 drivers/crypto/ux500/cryp/cryp_core.c if (device_data->current_ctx == ++temp_ctx) device_data 1617 drivers/crypto/ux500/cryp/cryp_core.c device_data->current_ctx = NULL; device_data 1618 drivers/crypto/ux500/cryp/cryp_core.c spin_unlock(&device_data->ctx_lock); device_data 1621 drivers/crypto/ux500/cryp/cryp_core.c if (!device_data->current_ctx) device_data 1624 drivers/crypto/ux500/cryp/cryp_core.c ret = cryp_enable_power(dev, device_data, true); device_data 20 drivers/crypto/ux500/cryp/cryp_irq.c void cryp_enable_irq_src(struct cryp_device_data *device_data, u32 irq_src) device_data 24 drivers/crypto/ux500/cryp/cryp_irq.c dev_dbg(device_data->dev, "[%s]", __func__); device_data 26 drivers/crypto/ux500/cryp/cryp_irq.c i = readl_relaxed(&device_data->base->imsc); device_data 28 drivers/crypto/ux500/cryp/cryp_irq.c writel_relaxed(i, &device_data->base->imsc); device_data 31 drivers/crypto/ux500/cryp/cryp_irq.c void cryp_disable_irq_src(struct cryp_device_data *device_data, u32 irq_src) device_data 35 drivers/crypto/ux500/cryp/cryp_irq.c dev_dbg(device_data->dev, "[%s]", __func__); device_data 37 drivers/crypto/ux500/cryp/cryp_irq.c i = readl_relaxed(&device_data->base->imsc); device_data 39 drivers/crypto/ux500/cryp/cryp_irq.c writel_relaxed(i, &device_data->base->imsc); device_data 42 drivers/crypto/ux500/cryp/cryp_irq.c bool cryp_pending_irq_src(struct cryp_device_data *device_data, u32 irq_src) device_data 44 drivers/crypto/ux500/cryp/cryp_irq.c return (readl_relaxed(&device_data->base->mis) & irq_src) > 0; device_data 25 drivers/crypto/ux500/cryp/cryp_irq.h void cryp_enable_irq_src(struct cryp_device_data *device_data, u32 irq_src); device_data 27 drivers/crypto/ux500/cryp/cryp_irq.h void cryp_disable_irq_src(struct cryp_device_data *device_data, u32 irq_src); device_data 29 drivers/crypto/ux500/cryp/cryp_irq.h bool cryp_pending_irq_src(struct cryp_device_data *device_data, u32 irq_src); device_data 108 drivers/crypto/ux500/hash/hash_alg.h #define HASH_SET_DIN(val, len) writesl(&device_data->base->din, (val), (len)) device_data 112 drivers/crypto/ux500/hash/hash_alg.h &device_data->base->cr, \ device_data 118 drivers/crypto/ux500/hash/hash_alg.h &device_data->base->cr, \ device_data 123 drivers/crypto/ux500/hash/hash_alg.h &device_data->base->str, \ device_data 128 drivers/crypto/ux500/hash/hash_alg.h &device_data->base->str, \ device_data 380 drivers/crypto/ux500/hash/hash_alg.h int hash_check_hw(struct hash_device_data *device_data); device_data 382 drivers/crypto/ux500/hash/hash_alg.h int hash_setconfiguration(struct hash_device_data *device_data, device_data 385 drivers/crypto/ux500/hash/hash_alg.h void hash_begin(struct hash_device_data *device_data, struct hash_ctx *ctx); device_data 387 drivers/crypto/ux500/hash/hash_alg.h void hash_get_digest(struct hash_device_data *device_data, device_data 392 drivers/crypto/ux500/hash/hash_alg.h int hash_save_state(struct hash_device_data *device_data, device_data 395 drivers/crypto/ux500/hash/hash_alg.h int hash_resume_state(struct hash_device_data *device_data, device_data 84 drivers/crypto/ux500/hash/hash_core.c static void hash_messagepad(struct hash_device_data *device_data, device_data 92 drivers/crypto/ux500/hash/hash_core.c static void release_hash_device(struct hash_device_data *device_data) device_data 94 drivers/crypto/ux500/hash/hash_core.c spin_lock(&device_data->ctx_lock); device_data 95 drivers/crypto/ux500/hash/hash_core.c device_data->current_ctx->device = NULL; device_data 96 drivers/crypto/ux500/hash/hash_core.c device_data->current_ctx = NULL; device_data 97 drivers/crypto/ux500/hash/hash_core.c spin_unlock(&device_data->ctx_lock); device_data 106 drivers/crypto/ux500/hash/hash_core.c static void hash_dma_setup_channel(struct hash_device_data *device_data, device_data 112 drivers/crypto/ux500/hash/hash_core.c .dst_addr = device_data->phybase + HASH_DMA_FIFO, device_data 117 drivers/crypto/ux500/hash/hash_core.c dma_cap_zero(device_data->dma.mask); device_data 118 drivers/crypto/ux500/hash/hash_core.c dma_cap_set(DMA_SLAVE, device_data->dma.mask); device_data 120 drivers/crypto/ux500/hash/hash_core.c device_data->dma.cfg_mem2hash = platform_data->mem_to_engine; device_data 121 drivers/crypto/ux500/hash/hash_core.c device_data->dma.chan_mem2hash = device_data 122 drivers/crypto/ux500/hash/hash_core.c dma_request_channel(device_data->dma.mask, device_data 124 drivers/crypto/ux500/hash/hash_core.c device_data->dma.cfg_mem2hash); device_data 126 drivers/crypto/ux500/hash/hash_core.c dmaengine_slave_config(device_data->dma.chan_mem2hash, &conf); device_data 128 drivers/crypto/ux500/hash/hash_core.c init_completion(&device_data->dma.complete); device_data 217 drivers/crypto/ux500/hash/hash_core.c struct hash_device_data *device_data, device_data 221 drivers/crypto/ux500/hash/hash_core.c struct hash_ctx *ctx = device_data->current_ctx; device_data 241 drivers/crypto/ux500/hash/hash_core.c dev_err(device_data->dev, "%s: Incorrect algorithm!\n", device_data 259 drivers/crypto/ux500/hash/hash_core.c dev_err(device_data->dev, "%s: Incorrect algorithm!\n", device_data 265 drivers/crypto/ux500/hash/hash_core.c dev_dbg(device_data->dev, device_data 283 drivers/crypto/ux500/hash/hash_core.c static int hash_disable_power(struct hash_device_data *device_data, device_data 287 drivers/crypto/ux500/hash/hash_core.c struct device *dev = device_data->dev; device_data 289 drivers/crypto/ux500/hash/hash_core.c spin_lock(&device_data->power_state_lock); device_data 290 drivers/crypto/ux500/hash/hash_core.c if (!device_data->power_state) device_data 294 drivers/crypto/ux500/hash/hash_core.c hash_save_state(device_data, device_data 295 drivers/crypto/ux500/hash/hash_core.c &device_data->state); device_data 296 drivers/crypto/ux500/hash/hash_core.c device_data->restore_dev_state = true; device_data 299 drivers/crypto/ux500/hash/hash_core.c clk_disable(device_data->clk); device_data 300 drivers/crypto/ux500/hash/hash_core.c ret = regulator_disable(device_data->regulator); device_data 304 drivers/crypto/ux500/hash/hash_core.c device_data->power_state = false; device_data 307 drivers/crypto/ux500/hash/hash_core.c spin_unlock(&device_data->power_state_lock); device_data 320 drivers/crypto/ux500/hash/hash_core.c static int hash_enable_power(struct hash_device_data *device_data, device_data 324 drivers/crypto/ux500/hash/hash_core.c struct device *dev = device_data->dev; device_data 326 drivers/crypto/ux500/hash/hash_core.c spin_lock(&device_data->power_state_lock); device_data 327 drivers/crypto/ux500/hash/hash_core.c if (!device_data->power_state) { device_data 328 drivers/crypto/ux500/hash/hash_core.c ret = regulator_enable(device_data->regulator); device_data 334 drivers/crypto/ux500/hash/hash_core.c ret = clk_enable(device_data->clk); device_data 338 drivers/crypto/ux500/hash/hash_core.c device_data->regulator); device_data 341 drivers/crypto/ux500/hash/hash_core.c device_data->power_state = true; device_data 344 drivers/crypto/ux500/hash/hash_core.c if (device_data->restore_dev_state) { device_data 346 drivers/crypto/ux500/hash/hash_core.c device_data->restore_dev_state = false; device_data 347 drivers/crypto/ux500/hash/hash_core.c hash_resume_state(device_data, &device_data->state); device_data 351 drivers/crypto/ux500/hash/hash_core.c spin_unlock(&device_data->power_state_lock); device_data 366 drivers/crypto/ux500/hash/hash_core.c struct hash_device_data **device_data) device_data 410 drivers/crypto/ux500/hash/hash_core.c *device_data = local_device_data; device_data 426 drivers/crypto/ux500/hash/hash_core.c static void hash_hw_write_key(struct hash_device_data *device_data, device_data 432 drivers/crypto/ux500/hash/hash_core.c HASH_CLEAR_BITS(&device_data->base->str, HASH_STR_NBLW_MASK); device_data 453 drivers/crypto/ux500/hash/hash_core.c while (readl(&device_data->base->str) & HASH_STR_DCAL_MASK) device_data 458 drivers/crypto/ux500/hash/hash_core.c while (readl(&device_data->base->str) & HASH_STR_DCAL_MASK) device_data 470 drivers/crypto/ux500/hash/hash_core.c static int init_hash_hw(struct hash_device_data *device_data, device_data 475 drivers/crypto/ux500/hash/hash_core.c ret = hash_setconfiguration(device_data, &ctx->config); device_data 477 drivers/crypto/ux500/hash/hash_core.c dev_err(device_data->dev, "%s: hash_setconfiguration() failed!\n", device_data 482 drivers/crypto/ux500/hash/hash_core.c hash_begin(device_data, ctx); device_data 485 drivers/crypto/ux500/hash/hash_core.c hash_hw_write_key(device_data, ctx->key, ctx->keylen); device_data 589 drivers/crypto/ux500/hash/hash_core.c static void hash_processblock(struct hash_device_data *device_data, device_data 596 drivers/crypto/ux500/hash/hash_core.c HASH_CLEAR_BITS(&device_data->base->str, HASH_STR_NBLW_MASK); device_data 614 drivers/crypto/ux500/hash/hash_core.c static void hash_messagepad(struct hash_device_data *device_data, device_data 623 drivers/crypto/ux500/hash/hash_core.c HASH_CLEAR_BITS(&device_data->base->str, HASH_STR_NBLW_MASK); device_data 635 drivers/crypto/ux500/hash/hash_core.c while (readl(&device_data->base->str) & HASH_STR_DCAL_MASK) device_data 640 drivers/crypto/ux500/hash/hash_core.c dev_dbg(device_data->dev, "%s: DIN=0x%08x NBLW=%lu\n", device_data 641 drivers/crypto/ux500/hash/hash_core.c __func__, readl_relaxed(&device_data->base->din), device_data 642 drivers/crypto/ux500/hash/hash_core.c readl_relaxed(&device_data->base->str) & HASH_STR_NBLW_MASK); device_data 644 drivers/crypto/ux500/hash/hash_core.c dev_dbg(device_data->dev, "%s: after dcal -> DIN=0x%08x NBLW=%lu\n", device_data 645 drivers/crypto/ux500/hash/hash_core.c __func__, readl_relaxed(&device_data->base->din), device_data 646 drivers/crypto/ux500/hash/hash_core.c readl_relaxed(&device_data->base->str) & HASH_STR_NBLW_MASK); device_data 648 drivers/crypto/ux500/hash/hash_core.c while (readl(&device_data->base->str) & HASH_STR_DCAL_MASK) device_data 675 drivers/crypto/ux500/hash/hash_core.c int hash_setconfiguration(struct hash_device_data *device_data, device_data 695 drivers/crypto/ux500/hash/hash_core.c HASH_SET_BITS(&device_data->base->cr, HASH_CR_ALGO_MASK); device_data 699 drivers/crypto/ux500/hash/hash_core.c HASH_CLEAR_BITS(&device_data->base->cr, HASH_CR_ALGO_MASK); device_data 703 drivers/crypto/ux500/hash/hash_core.c dev_err(device_data->dev, "%s: Incorrect algorithm\n", device_data 713 drivers/crypto/ux500/hash/hash_core.c HASH_CLEAR_BITS(&device_data->base->cr, device_data 716 drivers/crypto/ux500/hash/hash_core.c HASH_SET_BITS(&device_data->base->cr, HASH_CR_MODE_MASK); device_data 717 drivers/crypto/ux500/hash/hash_core.c if (device_data->current_ctx->keylen > HASH_BLOCK_SIZE) { device_data 719 drivers/crypto/ux500/hash/hash_core.c dev_dbg(device_data->dev, "%s: LKEY set\n", __func__); device_data 720 drivers/crypto/ux500/hash/hash_core.c HASH_SET_BITS(&device_data->base->cr, device_data 723 drivers/crypto/ux500/hash/hash_core.c dev_dbg(device_data->dev, "%s: LKEY cleared\n", device_data 725 drivers/crypto/ux500/hash/hash_core.c HASH_CLEAR_BITS(&device_data->base->cr, device_data 730 drivers/crypto/ux500/hash/hash_core.c dev_err(device_data->dev, "%s: HASH_INVALID_PARAMETER!\n", device_data 742 drivers/crypto/ux500/hash/hash_core.c void hash_begin(struct hash_device_data *device_data, struct hash_ctx *ctx) device_data 747 drivers/crypto/ux500/hash/hash_core.c while (readl(&device_data->base->str) & HASH_STR_DCAL_MASK) device_data 760 drivers/crypto/ux500/hash/hash_core.c HASH_CLEAR_BITS(&device_data->base->str, HASH_STR_NBLW_MASK); device_data 763 drivers/crypto/ux500/hash/hash_core.c static int hash_process_data(struct hash_device_data *device_data, device_data 781 drivers/crypto/ux500/hash/hash_core.c ret = hash_resume_state(device_data, device_data 782 drivers/crypto/ux500/hash/hash_core.c &device_data->state); device_data 784 drivers/crypto/ux500/hash/hash_core.c device_data->state.buffer, device_data 787 drivers/crypto/ux500/hash/hash_core.c dev_err(device_data->dev, device_data 793 drivers/crypto/ux500/hash/hash_core.c ret = init_hash_hw(device_data, ctx); device_data 795 drivers/crypto/ux500/hash/hash_core.c dev_err(device_data->dev, device_data 811 drivers/crypto/ux500/hash/hash_core.c hash_processblock(device_data, device_data 821 drivers/crypto/ux500/hash/hash_core.c hash_processblock(device_data, device_data 831 drivers/crypto/ux500/hash/hash_core.c ret = hash_save_state(device_data, device_data 832 drivers/crypto/ux500/hash/hash_core.c &device_data->state); device_data 834 drivers/crypto/ux500/hash/hash_core.c memmove(device_data->state.buffer, device_data 838 drivers/crypto/ux500/hash/hash_core.c dev_err(device_data->dev, "%s: hash_save_state() failed!\n", device_data 859 drivers/crypto/ux500/hash/hash_core.c struct hash_device_data *device_data; device_data 863 drivers/crypto/ux500/hash/hash_core.c ret = hash_get_device_data(ctx, &device_data); device_data 867 drivers/crypto/ux500/hash/hash_core.c dev_dbg(device_data->dev, "%s: (ctx=0x%lx)!\n", __func__, device_data 871 drivers/crypto/ux500/hash/hash_core.c ret = hash_resume_state(device_data, &device_data->state); device_data 874 drivers/crypto/ux500/hash/hash_core.c dev_err(device_data->dev, "%s: hash_resume_state() failed!\n", device_data 881 drivers/crypto/ux500/hash/hash_core.c ret = hash_setconfiguration(device_data, &ctx->config); device_data 883 drivers/crypto/ux500/hash/hash_core.c dev_err(device_data->dev, device_data 891 drivers/crypto/ux500/hash/hash_core.c HASH_CLEAR_BITS(&device_data->base->cr, device_data 894 drivers/crypto/ux500/hash/hash_core.c HASH_SET_BITS(&device_data->base->cr, device_data 896 drivers/crypto/ux500/hash/hash_core.c HASH_SET_BITS(&device_data->base->cr, device_data 903 drivers/crypto/ux500/hash/hash_core.c hash_hw_write_key(device_data, ctx->key, ctx->keylen); device_data 913 drivers/crypto/ux500/hash/hash_core.c dev_err(device_data->dev, "%s: ctx->device->dma.nents = 0\n", device_data 921 drivers/crypto/ux500/hash/hash_core.c dev_err(device_data->dev, "%s: hash_dma_write() failed!\n", device_data 930 drivers/crypto/ux500/hash/hash_core.c while (readl(&device_data->base->str) & HASH_STR_DCAL_MASK) device_data 937 drivers/crypto/ux500/hash/hash_core.c dev_dbg(device_data->dev, "%s: keylen: %d\n", device_data 939 drivers/crypto/ux500/hash/hash_core.c hash_hw_write_key(device_data, key, keylen); device_data 942 drivers/crypto/ux500/hash/hash_core.c hash_get_digest(device_data, digest, ctx->config.algorithm); device_data 946 drivers/crypto/ux500/hash/hash_core.c release_hash_device(device_data); device_data 966 drivers/crypto/ux500/hash/hash_core.c struct hash_device_data *device_data; device_data 969 drivers/crypto/ux500/hash/hash_core.c ret = hash_get_device_data(ctx, &device_data); device_data 973 drivers/crypto/ux500/hash/hash_core.c dev_dbg(device_data->dev, "%s: (ctx=0x%lx)!\n", __func__, device_data 977 drivers/crypto/ux500/hash/hash_core.c ret = hash_resume_state(device_data, &device_data->state); device_data 980 drivers/crypto/ux500/hash/hash_core.c dev_err(device_data->dev, device_data 992 drivers/crypto/ux500/hash/hash_core.c ret = get_empty_message_digest(device_data, &zero_hash[0], device_data 999 drivers/crypto/ux500/hash/hash_core.c dev_dbg(device_data->dev, device_data 1003 drivers/crypto/ux500/hash/hash_core.c dev_err(device_data->dev, device_data 1012 drivers/crypto/ux500/hash/hash_core.c dev_err(device_data->dev, "%s: Empty message with keylength > 0, NOT supported\n", device_data 1018 drivers/crypto/ux500/hash/hash_core.c ret = init_hash_hw(device_data, ctx); device_data 1020 drivers/crypto/ux500/hash/hash_core.c dev_err(device_data->dev, device_data 1027 drivers/crypto/ux500/hash/hash_core.c hash_messagepad(device_data, req_ctx->state.buffer, device_data 1031 drivers/crypto/ux500/hash/hash_core.c while (readl(&device_data->base->str) & HASH_STR_DCAL_MASK) device_data 1039 drivers/crypto/ux500/hash/hash_core.c dev_dbg(device_data->dev, "%s: keylen: %d\n", device_data 1041 drivers/crypto/ux500/hash/hash_core.c hash_hw_write_key(device_data, key, keylen); device_data 1044 drivers/crypto/ux500/hash/hash_core.c hash_get_digest(device_data, digest, ctx->config.algorithm); device_data 1048 drivers/crypto/ux500/hash/hash_core.c release_hash_device(device_data); device_data 1069 drivers/crypto/ux500/hash/hash_core.c struct hash_device_data *device_data; device_data 1092 drivers/crypto/ux500/hash/hash_core.c ret = hash_get_device_data(ctx, &device_data); device_data 1099 drivers/crypto/ux500/hash/hash_core.c ret = hash_process_data(device_data, ctx, req_ctx, msg_length, device_data 1103 drivers/crypto/ux500/hash/hash_core.c dev_err(device_data->dev, "%s: hash_internal_hw_update() failed!\n", device_data 1112 drivers/crypto/ux500/hash/hash_core.c dev_dbg(device_data->dev, "%s: indata length=%d, bin=%d\n", device_data 1116 drivers/crypto/ux500/hash/hash_core.c release_hash_device(device_data); device_data 1126 drivers/crypto/ux500/hash/hash_core.c int hash_resume_state(struct hash_device_data *device_data, device_data 1134 drivers/crypto/ux500/hash/hash_core.c dev_err(device_data->dev, "%s: HASH_INVALID_PARAMETER!\n", device_data 1142 drivers/crypto/ux500/hash/hash_core.c dev_err(device_data->dev, "%s: HASH_INVALID_PARAMETER!\n", device_data 1155 drivers/crypto/ux500/hash/hash_core.c writel_relaxed(temp_cr & HASH_CR_RESUME_MASK, &device_data->base->cr); device_data 1157 drivers/crypto/ux500/hash/hash_core.c if (readl(&device_data->base->cr) & HASH_CR_MODE_MASK) device_data 1167 drivers/crypto/ux500/hash/hash_core.c &device_data->base->csrx[count]); device_data 1170 drivers/crypto/ux500/hash/hash_core.c writel_relaxed(device_state->csfull, &device_data->base->csfull); device_data 1171 drivers/crypto/ux500/hash/hash_core.c writel_relaxed(device_state->csdatain, &device_data->base->csdatain); device_data 1173 drivers/crypto/ux500/hash/hash_core.c writel_relaxed(device_state->str_reg, &device_data->base->str); device_data 1174 drivers/crypto/ux500/hash/hash_core.c writel_relaxed(temp_cr, &device_data->base->cr); device_data 1184 drivers/crypto/ux500/hash/hash_core.c int hash_save_state(struct hash_device_data *device_data, device_data 1192 drivers/crypto/ux500/hash/hash_core.c dev_err(device_data->dev, "%s: HASH_INVALID_PARAMETER!\n", device_data 1201 drivers/crypto/ux500/hash/hash_core.c while (readl(&device_data->base->str) & HASH_STR_DCAL_MASK) device_data 1204 drivers/crypto/ux500/hash/hash_core.c temp_cr = readl_relaxed(&device_data->base->cr); device_data 1206 drivers/crypto/ux500/hash/hash_core.c device_state->str_reg = readl_relaxed(&device_data->base->str); device_data 1208 drivers/crypto/ux500/hash/hash_core.c device_state->din_reg = readl_relaxed(&device_data->base->din); device_data 1210 drivers/crypto/ux500/hash/hash_core.c if (readl(&device_data->base->cr) & HASH_CR_MODE_MASK) device_data 1220 drivers/crypto/ux500/hash/hash_core.c readl_relaxed(&device_data->base->csrx[count]); device_data 1223 drivers/crypto/ux500/hash/hash_core.c device_state->csfull = readl_relaxed(&device_data->base->csfull); device_data 1224 drivers/crypto/ux500/hash/hash_core.c device_state->csdatain = readl_relaxed(&device_data->base->csdatain); device_data 1236 drivers/crypto/ux500/hash/hash_core.c int hash_check_hw(struct hash_device_data *device_data) device_data 1239 drivers/crypto/ux500/hash/hash_core.c if (HASH_P_ID0 == readl_relaxed(&device_data->base->periphid0) && device_data 1240 drivers/crypto/ux500/hash/hash_core.c HASH_P_ID1 == readl_relaxed(&device_data->base->periphid1) && device_data 1241 drivers/crypto/ux500/hash/hash_core.c HASH_P_ID2 == readl_relaxed(&device_data->base->periphid2) && device_data 1242 drivers/crypto/ux500/hash/hash_core.c HASH_P_ID3 == readl_relaxed(&device_data->base->periphid3) && device_data 1243 drivers/crypto/ux500/hash/hash_core.c HASH_CELL_ID0 == readl_relaxed(&device_data->base->cellid0) && device_data 1244 drivers/crypto/ux500/hash/hash_core.c HASH_CELL_ID1 == readl_relaxed(&device_data->base->cellid1) && device_data 1245 drivers/crypto/ux500/hash/hash_core.c HASH_CELL_ID2 == readl_relaxed(&device_data->base->cellid2) && device_data 1246 drivers/crypto/ux500/hash/hash_core.c HASH_CELL_ID3 == readl_relaxed(&device_data->base->cellid3)) { device_data 1250 drivers/crypto/ux500/hash/hash_core.c dev_err(device_data->dev, "%s: HASH_UNSUPPORTED_HW!\n", __func__); device_data 1260 drivers/crypto/ux500/hash/hash_core.c void hash_get_digest(struct hash_device_data *device_data, device_data 1267 drivers/crypto/ux500/hash/hash_core.c dev_err(device_data->dev, "%s: Incorrect algorithm %d\n", device_data 1277 drivers/crypto/ux500/hash/hash_core.c dev_dbg(device_data->dev, "%s: digest array:(0x%lx)\n", device_data 1282 drivers/crypto/ux500/hash/hash_core.c temp_hx_val = readl_relaxed(&device_data->base->hx[count]); device_data 1614 drivers/crypto/ux500/hash/hash_core.c static int ahash_algs_register_all(struct hash_device_data *device_data) device_data 1624 drivers/crypto/ux500/hash/hash_core.c dev_err(device_data->dev, "%s: alg registration failed\n", device_data 1639 drivers/crypto/ux500/hash/hash_core.c static void ahash_algs_unregister_all(struct hash_device_data *device_data) device_data 1655 drivers/crypto/ux500/hash/hash_core.c struct hash_device_data *device_data; device_data 1658 drivers/crypto/ux500/hash/hash_core.c device_data = devm_kzalloc(dev, sizeof(*device_data), GFP_ATOMIC); device_data 1659 drivers/crypto/ux500/hash/hash_core.c if (!device_data) { device_data 1664 drivers/crypto/ux500/hash/hash_core.c device_data->dev = dev; device_data 1665 drivers/crypto/ux500/hash/hash_core.c device_data->current_ctx = NULL; device_data 1674 drivers/crypto/ux500/hash/hash_core.c device_data->phybase = res->start; device_data 1675 drivers/crypto/ux500/hash/hash_core.c device_data->base = devm_ioremap_resource(dev, res); device_data 1676 drivers/crypto/ux500/hash/hash_core.c if (IS_ERR(device_data->base)) { device_data 1678 drivers/crypto/ux500/hash/hash_core.c ret = PTR_ERR(device_data->base); device_data 1681 drivers/crypto/ux500/hash/hash_core.c spin_lock_init(&device_data->ctx_lock); device_data 1682 drivers/crypto/ux500/hash/hash_core.c spin_lock_init(&device_data->power_state_lock); device_data 1685 drivers/crypto/ux500/hash/hash_core.c device_data->regulator = regulator_get(dev, "v-ape"); device_data 1686 drivers/crypto/ux500/hash/hash_core.c if (IS_ERR(device_data->regulator)) { device_data 1688 drivers/crypto/ux500/hash/hash_core.c ret = PTR_ERR(device_data->regulator); device_data 1689 drivers/crypto/ux500/hash/hash_core.c device_data->regulator = NULL; device_data 1694 drivers/crypto/ux500/hash/hash_core.c device_data->clk = devm_clk_get(dev, NULL); device_data 1695 drivers/crypto/ux500/hash/hash_core.c if (IS_ERR(device_data->clk)) { device_data 1697 drivers/crypto/ux500/hash/hash_core.c ret = PTR_ERR(device_data->clk); device_data 1701 drivers/crypto/ux500/hash/hash_core.c ret = clk_prepare(device_data->clk); device_data 1708 drivers/crypto/ux500/hash/hash_core.c ret = hash_enable_power(device_data, false); device_data 1714 drivers/crypto/ux500/hash/hash_core.c ret = hash_check_hw(device_data); device_data 1721 drivers/crypto/ux500/hash/hash_core.c hash_dma_setup_channel(device_data, dev); device_data 1723 drivers/crypto/ux500/hash/hash_core.c platform_set_drvdata(pdev, device_data); device_data 1726 drivers/crypto/ux500/hash/hash_core.c klist_add_tail(&device_data->list_node, &driver_data.device_list); device_data 1730 drivers/crypto/ux500/hash/hash_core.c ret = ahash_algs_register_all(device_data); device_data 1741 drivers/crypto/ux500/hash/hash_core.c hash_disable_power(device_data, false); device_data 1744 drivers/crypto/ux500/hash/hash_core.c clk_unprepare(device_data->clk); device_data 1747 drivers/crypto/ux500/hash/hash_core.c regulator_put(device_data->regulator); device_data 1759 drivers/crypto/ux500/hash/hash_core.c struct hash_device_data *device_data; device_data 1762 drivers/crypto/ux500/hash/hash_core.c device_data = platform_get_drvdata(pdev); device_data 1763 drivers/crypto/ux500/hash/hash_core.c if (!device_data) { device_data 1773 drivers/crypto/ux500/hash/hash_core.c spin_lock(&device_data->ctx_lock); device_data 1775 drivers/crypto/ux500/hash/hash_core.c if (device_data->current_ctx) { device_data 1777 drivers/crypto/ux500/hash/hash_core.c spin_unlock(&device_data->ctx_lock); device_data 1783 drivers/crypto/ux500/hash/hash_core.c spin_unlock(&device_data->ctx_lock); device_data 1786 drivers/crypto/ux500/hash/hash_core.c if (klist_node_attached(&device_data->list_node)) device_data 1787 drivers/crypto/ux500/hash/hash_core.c klist_remove(&device_data->list_node); device_data 1791 drivers/crypto/ux500/hash/hash_core.c ahash_algs_unregister_all(device_data); device_data 1793 drivers/crypto/ux500/hash/hash_core.c if (hash_disable_power(device_data, false)) device_data 1797 drivers/crypto/ux500/hash/hash_core.c clk_unprepare(device_data->clk); device_data 1798 drivers/crypto/ux500/hash/hash_core.c regulator_put(device_data->regulator); device_data 1809 drivers/crypto/ux500/hash/hash_core.c struct hash_device_data *device_data; device_data 1811 drivers/crypto/ux500/hash/hash_core.c device_data = platform_get_drvdata(pdev); device_data 1812 drivers/crypto/ux500/hash/hash_core.c if (!device_data) { device_data 1819 drivers/crypto/ux500/hash/hash_core.c spin_lock(&device_data->ctx_lock); device_data 1821 drivers/crypto/ux500/hash/hash_core.c if (!device_data->current_ctx) { device_data 1830 drivers/crypto/ux500/hash/hash_core.c device_data->current_ctx++; device_data 1832 drivers/crypto/ux500/hash/hash_core.c spin_unlock(&device_data->ctx_lock); device_data 1835 drivers/crypto/ux500/hash/hash_core.c if (klist_node_attached(&device_data->list_node)) device_data 1836 drivers/crypto/ux500/hash/hash_core.c klist_remove(&device_data->list_node); device_data 1840 drivers/crypto/ux500/hash/hash_core.c ahash_algs_unregister_all(device_data); device_data 1842 drivers/crypto/ux500/hash/hash_core.c if (hash_disable_power(device_data, false)) device_data 1855 drivers/crypto/ux500/hash/hash_core.c struct hash_device_data *device_data; device_data 1858 drivers/crypto/ux500/hash/hash_core.c device_data = dev_get_drvdata(dev); device_data 1859 drivers/crypto/ux500/hash/hash_core.c if (!device_data) { device_data 1864 drivers/crypto/ux500/hash/hash_core.c spin_lock(&device_data->ctx_lock); device_data 1865 drivers/crypto/ux500/hash/hash_core.c if (!device_data->current_ctx) device_data 1866 drivers/crypto/ux500/hash/hash_core.c device_data->current_ctx++; device_data 1867 drivers/crypto/ux500/hash/hash_core.c spin_unlock(&device_data->ctx_lock); device_data 1869 drivers/crypto/ux500/hash/hash_core.c if (device_data->current_ctx == ++temp_ctx) { device_data 1873 drivers/crypto/ux500/hash/hash_core.c ret = hash_disable_power(device_data, false); device_data 1876 drivers/crypto/ux500/hash/hash_core.c ret = hash_disable_power(device_data, true); device_data 1892 drivers/crypto/ux500/hash/hash_core.c struct hash_device_data *device_data; device_data 1895 drivers/crypto/ux500/hash/hash_core.c device_data = dev_get_drvdata(dev); device_data 1896 drivers/crypto/ux500/hash/hash_core.c if (!device_data) { device_data 1901 drivers/crypto/ux500/hash/hash_core.c spin_lock(&device_data->ctx_lock); device_data 1902 drivers/crypto/ux500/hash/hash_core.c if (device_data->current_ctx == ++temp_ctx) device_data 1903 drivers/crypto/ux500/hash/hash_core.c device_data->current_ctx = NULL; device_data 1904 drivers/crypto/ux500/hash/hash_core.c spin_unlock(&device_data->ctx_lock); device_data 1906 drivers/crypto/ux500/hash/hash_core.c if (!device_data->current_ctx) device_data 1909 drivers/crypto/ux500/hash/hash_core.c ret = hash_enable_power(device_data, true); device_data 255 drivers/firmware/dmi_scan.c dev->device_data = NULL; device_data 295 drivers/firmware/dmi_scan.c dev->device_data = NULL; device_data 318 drivers/firmware/dmi_scan.c dev->device_data = data; device_data 345 drivers/firmware/dmi_scan.c dev->dev.device_data = dev; device_data 448 drivers/gpu/drm/qxl/qxl_dev.h uint8_t device_data[QXL_CURSOR_DEVICE_DATA_SIZE]; device_data 323 drivers/input/misc/soc_button_array.c const struct soc_device_data *device_data; device_data 330 drivers/input/misc/soc_button_array.c device_data = acpi_device_get_match_data(dev); device_data 331 drivers/input/misc/soc_button_array.c if (device_data && device_data->check) { device_data 332 drivers/input/misc/soc_button_array.c error = device_data->check(dev); device_data 337 drivers/input/misc/soc_button_array.c if (device_data && device_data->button_info) { device_data 338 drivers/input/misc/soc_button_array.c button_info = device_data->button_info; device_data 374 drivers/input/misc/soc_button_array.c if (!device_data || !device_data->button_info) device_data 236 drivers/input/touchscreen/bu21013_ts.c static irqreturn_t bu21013_gpio_irq(int irq, void *device_data) device_data 238 drivers/input/touchscreen/bu21013_ts.c struct bu21013_ts *ts = device_data; device_data 208 drivers/media/usb/go7007/snd-go7007.c struct go7007 *go = device->device_data; device_data 89 drivers/net/can/m_can/m_can.h void *device_data; device_data 19 drivers/net/can/m_can/m_can_platform.c struct m_can_plat_priv *priv = cdev->device_data; device_data 26 drivers/net/can/m_can/m_can_platform.c struct m_can_plat_priv *priv = cdev->device_data; device_data 33 drivers/net/can/m_can/m_can_platform.c struct m_can_plat_priv *priv = cdev->device_data; device_data 42 drivers/net/can/m_can/m_can_platform.c struct m_can_plat_priv *priv = cdev->device_data; device_data 73 drivers/net/can/m_can/m_can_platform.c mcan_class->device_data = priv; device_data 257 drivers/net/can/m_can/tcan4x5x.c struct tcan4x5x_priv *priv = cdev->device_data; device_data 267 drivers/net/can/m_can/tcan4x5x.c struct tcan4x5x_priv *priv = cdev->device_data; device_data 277 drivers/net/can/m_can/tcan4x5x.c struct tcan4x5x_priv *priv = cdev->device_data; device_data 285 drivers/net/can/m_can/tcan4x5x.c struct tcan4x5x_priv *priv = cdev->device_data; device_data 304 drivers/net/can/m_can/tcan4x5x.c struct tcan4x5x_priv *priv = cdev->device_data; device_data 338 drivers/net/can/m_can/tcan4x5x.c struct tcan4x5x_priv *tcan4x5x = cdev->device_data; device_data 365 drivers/net/can/m_can/tcan4x5x.c struct tcan4x5x_priv *tcan4x5x = cdev->device_data; device_data 428 drivers/net/can/m_can/tcan4x5x.c mcan_class->device_data = priv; device_data 59 drivers/pci/pci-label.c donboard = dmi->device_data; device_data 687 drivers/platform/chrome/chromeos_laptop.c dev_data = dmi_dev->device_data; device_data 220 drivers/scsi/lpfc/lpfc_mem.c struct lpfc_device_data *device_data; device_data 267 drivers/scsi/lpfc/lpfc_mem.c device_data = list_first_entry(&phba->luns, device_data 270 drivers/scsi/lpfc/lpfc_mem.c list_del(&device_data->listentry); device_data 271 drivers/scsi/lpfc/lpfc_mem.c mempool_free(device_data, phba->device_data_mem_pool); device_data 5506 drivers/scsi/lpfc/lpfc_scsi.c struct lpfc_device_data *device_data; device_data 5522 drivers/scsi/lpfc/lpfc_scsi.c device_data = __lpfc_get_device_data(phba, device_data 5527 drivers/scsi/lpfc/lpfc_scsi.c if (!device_data) { device_data 5529 drivers/scsi/lpfc/lpfc_scsi.c device_data = lpfc_create_device_data(phba, device_data 5535 drivers/scsi/lpfc/lpfc_scsi.c if (!device_data) device_data 5538 drivers/scsi/lpfc/lpfc_scsi.c list_add_tail(&device_data->listentry, &phba->luns); device_data 5540 drivers/scsi/lpfc/lpfc_scsi.c device_data->rport_data = rport->dd_data; device_data 5541 drivers/scsi/lpfc/lpfc_scsi.c device_data->available = true; device_data 5543 drivers/scsi/lpfc/lpfc_scsi.c sdev->hostdata = device_data; device_data 5640 drivers/scsi/lpfc/lpfc_scsi.c struct lpfc_device_data *device_data = sdev->hostdata; device_data 5643 drivers/scsi/lpfc/lpfc_scsi.c if ((phba->cfg_fof) && (device_data)) { device_data 5645 drivers/scsi/lpfc/lpfc_scsi.c device_data->available = false; device_data 5646 drivers/scsi/lpfc/lpfc_scsi.c if (!device_data->oas_enabled) device_data 5647 drivers/scsi/lpfc/lpfc_scsi.c lpfc_delete_device_data(phba, device_data); device_data 24 drivers/vfio/mdev/vfio_mdev.c static int vfio_mdev_open(void *device_data) device_data 26 drivers/vfio/mdev/vfio_mdev.c struct mdev_device *mdev = device_data; device_data 43 drivers/vfio/mdev/vfio_mdev.c static void vfio_mdev_release(void *device_data) device_data 45 drivers/vfio/mdev/vfio_mdev.c struct mdev_device *mdev = device_data; device_data 54 drivers/vfio/mdev/vfio_mdev.c static long vfio_mdev_unlocked_ioctl(void *device_data, device_data 57 drivers/vfio/mdev/vfio_mdev.c struct mdev_device *mdev = device_data; device_data 66 drivers/vfio/mdev/vfio_mdev.c static ssize_t vfio_mdev_read(void *device_data, char __user *buf, device_data 69 drivers/vfio/mdev/vfio_mdev.c struct mdev_device *mdev = device_data; device_data 78 drivers/vfio/mdev/vfio_mdev.c static ssize_t vfio_mdev_write(void *device_data, const char __user *buf, device_data 81 drivers/vfio/mdev/vfio_mdev.c struct mdev_device *mdev = device_data; device_data 90 drivers/vfio/mdev/vfio_mdev.c static int vfio_mdev_mmap(void *device_data, struct vm_area_struct *vma) device_data 92 drivers/vfio/mdev/vfio_mdev.c struct mdev_device *mdev = device_data; device_data 466 drivers/vfio/pci/vfio_pci.c static void vfio_pci_release(void *device_data) device_data 468 drivers/vfio/pci/vfio_pci.c struct vfio_pci_device *vdev = device_data; device_data 482 drivers/vfio/pci/vfio_pci.c static int vfio_pci_open(void *device_data) device_data 484 drivers/vfio/pci/vfio_pci.c struct vfio_pci_device *vdev = device_data; device_data 691 drivers/vfio/pci/vfio_pci.c static long vfio_pci_ioctl(void *device_data, device_data 694 drivers/vfio/pci/vfio_pci.c struct vfio_pci_device *vdev = device_data; device_data 1145 drivers/vfio/pci/vfio_pci.c static ssize_t vfio_pci_rw(void *device_data, char __user *buf, device_data 1149 drivers/vfio/pci/vfio_pci.c struct vfio_pci_device *vdev = device_data; device_data 1177 drivers/vfio/pci/vfio_pci.c static ssize_t vfio_pci_read(void *device_data, char __user *buf, device_data 1183 drivers/vfio/pci/vfio_pci.c return vfio_pci_rw(device_data, buf, count, ppos, false); device_data 1186 drivers/vfio/pci/vfio_pci.c static ssize_t vfio_pci_write(void *device_data, const char __user *buf, device_data 1192 drivers/vfio/pci/vfio_pci.c return vfio_pci_rw(device_data, (char __user *)buf, count, ppos, true); device_data 1195 drivers/vfio/pci/vfio_pci.c static int vfio_pci_mmap(void *device_data, struct vm_area_struct *vma) device_data 1197 drivers/vfio/pci/vfio_pci.c struct vfio_pci_device *vdev = device_data; device_data 1257 drivers/vfio/pci/vfio_pci.c static void vfio_pci_request(void *device_data, unsigned int count) device_data 1259 drivers/vfio/pci/vfio_pci.c struct vfio_pci_device *vdev = device_data; device_data 221 drivers/vfio/platform/vfio_platform_common.c static void vfio_platform_release(void *device_data) device_data 223 drivers/vfio/platform/vfio_platform_common.c struct vfio_platform_device *vdev = device_data; device_data 247 drivers/vfio/platform/vfio_platform_common.c static int vfio_platform_open(void *device_data) device_data 249 drivers/vfio/platform/vfio_platform_common.c struct vfio_platform_device *vdev = device_data; device_data 297 drivers/vfio/platform/vfio_platform_common.c static long vfio_platform_ioctl(void *device_data, device_data 300 drivers/vfio/platform/vfio_platform_common.c struct vfio_platform_device *vdev = device_data; device_data 459 drivers/vfio/platform/vfio_platform_common.c static ssize_t vfio_platform_read(void *device_data, char __user *buf, device_data 462 drivers/vfio/platform/vfio_platform_common.c struct vfio_platform_device *vdev = device_data; device_data 535 drivers/vfio/platform/vfio_platform_common.c static ssize_t vfio_platform_write(void *device_data, const char __user *buf, device_data 538 drivers/vfio/platform/vfio_platform_common.c struct vfio_platform_device *vdev = device_data; device_data 577 drivers/vfio/platform/vfio_platform_common.c static int vfio_platform_mmap(void *device_data, struct vm_area_struct *vma) device_data 579 drivers/vfio/platform/vfio_platform_common.c struct vfio_platform_device *vdev = device_data; device_data 98 drivers/vfio/vfio.c void *device_data; device_data 538 drivers/vfio/vfio.c void *device_data) device_data 550 drivers/vfio/vfio.c device->device_data = device_data; device_data 801 drivers/vfio/vfio.c const struct vfio_device_ops *ops, void *device_data) device_data 835 drivers/vfio/vfio.c device = vfio_group_create_device(group, dev, ops, device_data); device_data 898 drivers/vfio/vfio.c return device->device_data; device_data 910 drivers/vfio/vfio.c void *device_data = device->device_data; device_data 957 drivers/vfio/vfio.c device->ops->request(device_data, i++); device_data 997 drivers/vfio/vfio.c return device_data; device_data 1447 drivers/vfio/vfio.c ret = device->ops->open(device->device_data); device_data 1459 drivers/vfio/vfio.c device->ops->release(device->device_data); device_data 1469 drivers/vfio/vfio.c device->ops->release(device->device_data); device_data 1637 drivers/vfio/vfio.c device->ops->release(device->device_data); device_data 1654 drivers/vfio/vfio.c return device->ops->ioctl(device->device_data, cmd, arg); device_data 1665 drivers/vfio/vfio.c return device->ops->read(device->device_data, buf, count, ppos); device_data 1677 drivers/vfio/vfio.c return device->ops->write(device->device_data, buf, count, ppos); device_data 1687 drivers/vfio/vfio.c return device->ops->mmap(device->device_data, vma); device_data 86 include/linux/dmi.h void *device_data; /* Type specific data */ device_data 32 include/linux/vfio.h int (*open)(void *device_data); device_data 33 include/linux/vfio.h void (*release)(void *device_data); device_data 34 include/linux/vfio.h ssize_t (*read)(void *device_data, char __user *buf, device_data 36 include/linux/vfio.h ssize_t (*write)(void *device_data, const char __user *buf, device_data 38 include/linux/vfio.h long (*ioctl)(void *device_data, unsigned int cmd, device_data 40 include/linux/vfio.h int (*mmap)(void *device_data, struct vm_area_struct *vma); device_data 41 include/linux/vfio.h void (*request)(void *device_data, unsigned int count); device_data 49 include/linux/vfio.h void *device_data); device_data 71 include/sound/core.h void *device_data; /* device structure */ device_data 258 include/sound/core.h void *device_data, struct snd_device_ops *ops); device_data 259 include/sound/core.h int snd_device_register(struct snd_card *card, void *device_data); device_data 261 include/sound/core.h void snd_device_disconnect(struct snd_card *card, void *device_data); device_data 263 include/sound/core.h void snd_device_free(struct snd_card *card, void *device_data); device_data 119 sound/aoa/aoa.h void * device_data, struct snd_device_ops * ops); device_data 62 sound/aoa/core/alsa.c void * device_data, struct snd_device_ops * ops) device_data 69 sound/aoa/core/alsa.c err = snd_device_new(card, type, device_data, ops); device_data 74 sound/aoa/core/alsa.c err = snd_device_register(card, device_data); device_data 80 sound/aoa/core/alsa.c snd_device_free(card, device_data); device_data 991 sound/core/compress_offload.c if (snd_BUG_ON(!device || !device->device_data)) device_data 993 sound/core/compress_offload.c compr = device->device_data; device_data 1013 sound/core/compress_offload.c compr = device->device_data; device_data 1086 sound/core/compress_offload.c compr = device->device_data; device_data 1810 sound/core/control.c struct snd_card *card = device->device_data; device_data 1821 sound/core/control.c struct snd_card *card = device->device_data; device_data 1839 sound/core/control.c struct snd_card *card = device->device_data; device_data 30 sound/core/device.c void *device_data, struct snd_device_ops *ops) device_data 35 sound/core/device.c if (snd_BUG_ON(!card || !device_data || !ops)) device_data 44 sound/core/device.c dev->device_data = device_data; device_data 82 sound/core/device.c static struct snd_device *look_for_dev(struct snd_card *card, void *device_data) device_data 87 sound/core/device.c if (dev->device_data == device_data) device_data 106 sound/core/device.c void snd_device_disconnect(struct snd_card *card, void *device_data) device_data 110 sound/core/device.c if (snd_BUG_ON(!card || !device_data)) device_data 112 sound/core/device.c dev = look_for_dev(card, device_data); device_data 117 sound/core/device.c device_data, __builtin_return_address(0)); device_data 130 sound/core/device.c void snd_device_free(struct snd_card *card, void *device_data) device_data 134 sound/core/device.c if (snd_BUG_ON(!card || !device_data)) device_data 136 sound/core/device.c dev = look_for_dev(card, device_data); device_data 141 sound/core/device.c device_data, __builtin_return_address(0)); device_data 171 sound/core/device.c int snd_device_register(struct snd_card *card, void *device_data) device_data 175 sound/core/device.c if (snd_BUG_ON(!card || !device_data)) device_data 177 sound/core/device.c dev = look_for_dev(card, device_data); device_data 398 sound/core/hwdep.c struct snd_hwdep *hwdep = device->device_data; device_data 409 sound/core/hwdep.c struct snd_hwdep *hwdep = device->device_data; device_data 451 sound/core/hwdep.c struct snd_hwdep *hwdep = device->device_data; device_data 35 sound/core/jack.c struct snd_jack *jack = device->device_data; device_data 53 sound/core/jack.c struct snd_jack *jack = device->device_data; device_data 75 sound/core/jack.c struct snd_jack *jack = device->device_data; device_data 875 sound/core/pcm.c struct snd_pcm *pcm = device->device_data; device_data 1046 sound/core/pcm.c if (snd_BUG_ON(!device || !device->device_data)) device_data 1048 sound/core/pcm.c pcm = device->device_data; device_data 1088 sound/core/pcm.c struct snd_pcm *pcm = device->device_data; device_data 1659 sound/core/rawmidi.c struct snd_rawmidi *rmidi = device->device_data; device_data 1678 sound/core/rawmidi.c struct snd_rawmidi *rmidi = device->device_data; device_data 1766 sound/core/rawmidi.c struct snd_rawmidi *rmidi = device->device_data; device_data 147 sound/core/seq_device.c struct snd_seq_device *dev = device->device_data; device_data 156 sound/core/seq_device.c struct snd_seq_device *dev = device->device_data; device_data 169 sound/core/seq_device.c struct snd_seq_device *dev = device->device_data; device_data 985 sound/core/timer.c struct snd_timer *timer = device->device_data; device_data 991 sound/core/timer.c struct snd_timer *timer = dev->device_data; device_data 1031 sound/core/timer.c struct snd_timer *timer = device->device_data; device_data 1101 sound/core/timer.c dev.device_data = timer; device_data 1091 sound/drivers/ml403-ac97cr.c struct snd_ml403_ac97cr *ml403_ac97cr = snddev->device_data; device_data 327 sound/drivers/opl3/opl3_lib.c struct snd_opl3 *opl3 = device->device_data; device_data 174 sound/drivers/opl4/opl4_lib.c struct snd_opl4 *opl4 = device->device_data; device_data 767 sound/drivers/serial-u16550.c struct snd_uart16550 *uart = device->device_data; device_data 61 sound/i2c/i2c.c struct snd_i2c_bus *bus = device->device_data; device_data 51 sound/i2c/other/ak4113.c struct ak4113 *chip = device->device_data; device_data 61 sound/i2c/other/ak4114.c struct ak4114 *chip = device->device_data; device_data 56 sound/i2c/other/ak4117.c struct ak4117 *chip = device->device_data; device_data 570 sound/isa/ad1816a/ad1816a_lib.c struct snd_ad1816a *chip = device->device_data; device_data 612 sound/isa/es1688/es1688_lib.c struct snd_es1688 *chip = device->device_data; device_data 122 sound/isa/gus/gus_main.c struct snd_gus_card *gus = device->device_data; device_data 1064 sound/isa/sb/emu8000.c struct snd_emu8000 *hw = device->device_data; device_data 192 sound/isa/sb/sb_common.c struct snd_sb *chip = device->device_data; device_data 1698 sound/isa/wss/wss_lib.c struct snd_wss *chip = device->device_data; device_data 752 sound/mips/hal2.c struct snd_hal2 *hal2 = device->device_data; device_data 804 sound/mips/sgio2audio.c struct snd_sgio2audio *chip = device->device_data; device_data 885 sound/parisc/harmony.c struct snd_harmony *h = dev->device_data; device_data 998 sound/pci/ac97/ac97_codec.c struct snd_ac97_bus *bus = device->device_data; device_data 1020 sound/pci/ac97/ac97_codec.c struct snd_ac97 *ac97 = device->device_data; device_data 1937 sound/pci/ac97/ac97_codec.c struct snd_ac97 *ac97 = device->device_data; device_data 1957 sound/pci/ac97/ac97_codec.c struct snd_ac97 *ac97 = device->device_data; device_data 846 sound/pci/ad1889.c struct snd_ad1889 *chip = device->device_data; device_data 334 sound/pci/ak4531_codec.c struct snd_ak4531 *ak4531 = device->device_data; device_data 2062 sound/pci/ali5451/ali5451.c struct snd_ali *codec = device->device_data; device_data 180 sound/pci/als300.c struct snd_als300 *chip = device->device_data; device_data 1558 sound/pci/atiixp.c struct atiixp *chip = device->device_data; device_data 1186 sound/pci/atiixp_modem.c struct atiixp_modem *chip = device->device_data; device_data 124 sound/pci/au88x0/au88x0.c vortex_t *vortex = device->device_data; device_data 210 sound/pci/aw2/aw2-alsa.c struct aw2 *chip = device->device_data; device_data 2296 sound/pci/azt3328.c struct snd_azf3328 *chip = device->device_data; device_data 688 sound/pci/bt87x.c struct snd_bt87x *chip = device->device_data; device_data 1257 sound/pci/ca0106/ca0106_main.c struct snd_ca0106 *chip = device->device_data; device_data 2937 sound/pci/cmipci.c struct cmipci *cm = device->device_data; device_data 1313 sound/pci/cs4281.c struct cs4281 *chip = device->device_data; device_data 2966 sound/pci/cs46xx/cs46xx_lib.c struct snd_cs46xx *chip = device->device_data; device_data 78 sound/pci/cs5530.c struct snd_cs5530 *chip = device->device_data; device_data 254 sound/pci/cs5535audio/cs5535audio.c struct cs5535audio *cs5535au = device->device_data; device_data 1252 sound/pci/ctxfi/ctatc.c struct ct_atc *atc = dev->device_data; device_data 1880 sound/pci/echoaudio/echoaudio.c struct echoaudio *chip = device->device_data; device_data 1282 sound/pci/emu10k1/emu10k1_main.c struct snd_emu10k1 *emu = device->device_data; device_data 769 sound/pci/emu10k1/emu10k1x.c struct emu10k1x *chip = device->device_data; device_data 1929 sound/pci/ens1370.c struct ensoniq *ensoniq = device->device_data; device_data 1564 sound/pci/es1938.c struct es1938 *chip = device->device_data; device_data 2631 sound/pci/es1968.c struct es1968 *chip = device->device_data; device_data 1192 sound/pci/fm801.c struct fm801 *chip = device->device_data; device_data 153 sound/pci/hda/hda_beep.c struct hda_beep *beep = device->device_data; device_data 164 sound/pci/hda/hda_beep.c struct hda_beep *beep = device->device_data; device_data 176 sound/pci/hda/hda_beep.c struct hda_beep *beep = device->device_data; device_data 812 sound/pci/hda/hda_codec.c snd_hda_codec_register(device->device_data); device_data 818 sound/pci/hda/hda_codec.c struct hda_codec *codec = device->device_data; device_data 1395 sound/pci/hda/hda_intel.c struct azx *chip = device->device_data; device_data 1406 sound/pci/hda/hda_intel.c azx_free(device->device_data); device_data 208 sound/pci/hda/hda_tegra.c struct azx *chip = device->device_data; device_data 219 sound/pci/hda/hda_tegra.c struct azx *chip = device->device_data; device_data 2492 sound/pci/ice1712/ice1712.c struct snd_ice1712 *ice = device->device_data; device_data 2509 sound/pci/ice1712/ice1724.c struct snd_ice1712 *ice = device->device_data; device_data 2857 sound/pci/intel8x0.c struct intel8x0 *chip = device->device_data; device_data 1078 sound/pci/intel8x0m.c struct intel8x0m *chip = device->device_data; device_data 2141 sound/pci/korg1212/korg1212.c struct snd_korg1212 *korg1212 = device->device_data; device_data 552 sound/pci/lola/lola.c lola_free(device->device_data); device_data 558 sound/pci/lx6464es/lx6464es.c return snd_lx6464es_free(device->device_data); device_data 2518 sound/pci/maestro3.c struct snd_m3 *chip = device->device_data; device_data 1027 sound/pci/mixart/mixart.c struct snd_mixart *chip = device->device_data; device_data 1464 sound/pci/nm256/nm256.c struct nm256 *chip = device->device_data; device_data 1188 sound/pci/pcxhr/pcxhr.c struct snd_pcxhr *chip = device->device_data; device_data 1821 sound/pci/riptide/riptide.c struct snd_riptide *chip = device->device_data; device_data 1064 sound/pci/sis7019.c struct sis7019 *sis = dev->device_data; device_data 1228 sound/pci/sonicvibes.c struct sonicvibes *sonic = device->device_data; device_data 3318 sound/pci/trident/trident_main.c struct snd_trident *trident = device->device_data; device_data 2342 sound/pci/via82xx.c struct via82xx *chip = device->device_data; device_data 1074 sound/pci/via82xx_modem.c struct via82xx_modem *chip = device->device_data; device_data 119 sound/pci/vx222/vx222.c struct vx_core *chip = device->device_data; device_data 2248 sound/pci/ymfpci/ymfpci_main.c struct snd_ymfpci *chip = device->device_data; device_data 73 sound/pcmcia/pdaudiocf/pdaudiocf.c struct snd_pdacf *chip = device->device_data; device_data 62 sound/pcmcia/vx/vxpocket.c struct vx_core *chip = device->device_data; device_data 883 sound/ppc/pmac.c struct snd_pmac *chip = device->device_data; device_data 296 sound/sh/sh_dac_audio.c struct snd_sh_dac *chip = device->device_data; device_data 928 sound/sparc/amd7930.c struct snd_amd7930 *amd = device->device_data; device_data 1784 sound/sparc/cs4231.c struct snd_cs4231 *cp = device->device_data; device_data 1950 sound/sparc/cs4231.c struct snd_cs4231 *cp = device->device_data; device_data 871 sound/spi/at73c213.c struct snd_at73c213 *chip = device->device_data; device_data 2819 sound/usb/mixer.c struct usb_mixer_interface *mixer = device->device_data;