/drivers/misc/ |
D | sram.c | 89 static int sram_add_pool(struct sram_dev *sram, struct sram_reserve *block, in sram_add_pool() argument 94 part->pool = devm_gen_pool_create(sram->dev, ilog2(SRAM_GRANULARITY), in sram_add_pool() 102 dev_err(sram->dev, "failed to register subpool: %d\n", ret); in sram_add_pool() 109 static int sram_add_export(struct sram_dev *sram, struct sram_reserve *block, in sram_add_export() argument 113 part->battr.attr.name = devm_kasprintf(sram->dev, GFP_KERNEL, in sram_add_export() 124 return device_create_bin_file(sram->dev, &part->battr); in sram_add_export() 127 static int sram_add_partition(struct sram_dev *sram, struct sram_reserve *block, in sram_add_partition() argument 131 struct sram_partition *part = &sram->partition[sram->partitions]; in sram_add_partition() 134 part->base = sram->virt_base + block->start; in sram_add_partition() 137 ret = sram_add_pool(sram, block, start, part); in sram_add_partition() [all …]
|
D | Makefile | 53 obj-$(CONFIG_SRAM) += sram.o
|
/drivers/net/wireless/ath/ath9k/ |
D | ar9003_aic.c | 391 aic_sram[i].sram.vga_dir_sign = in ar9003_aic_cal_post_process() 393 aic_sram[i].sram.vga_quad_sign= in ar9003_aic_cal_post_process() 403 aic_sram[i].sram.com_att_6db = in ar9003_aic_cal_post_process() 406 aic_sram[i].sram.valid = 1; in ar9003_aic_cal_post_process() 408 aic_sram[i].sram.rot_dir_att_db = in ar9003_aic_cal_post_process() 412 aic_sram[i].sram.rot_quad_att_db = in ar9003_aic_cal_post_process() 419 aic->aic_sram[i] = (SM(aic_sram[i].sram.vga_dir_sign, in ar9003_aic_cal_post_process() 421 SM(aic_sram[i].sram.vga_quad_sign, in ar9003_aic_cal_post_process() 423 SM(aic_sram[i].sram.com_att_6db, in ar9003_aic_cal_post_process() 425 SM(aic_sram[i].sram.valid, in ar9003_aic_cal_post_process() [all …]
|
D | ar9003_aic.h | 53 struct ath_aic_sram_info sram; member
|
/drivers/crypto/ |
D | mv_cesa.c | 88 void __iomem *sram; member 253 copy_src_to_buf(p, cpg->sram + SRAM_DATA_IN_START + p->crypt_len, in setup_data_in() 275 memcpy(cpg->sram + SRAM_DATA_IV, req->info, 16); in mv_process_current_q() 280 memcpy(cpg->sram + SRAM_DATA_KEY_P, ctx->aes_dec_key, in mv_process_current_q() 284 memcpy(cpg->sram + SRAM_DATA_KEY_P, ctx->aes_enc_key, in mv_process_current_q() 305 memcpy(cpg->sram + SRAM_CONFIG, &op, in mv_process_current_q() 324 memcpy(req->info, cpg->sram + SRAM_DATA_IV_BUF, 16); in mv_crypto_algo_completion() 343 memcpy(cpg->sram + SRAM_HMAC_IV_IN, in mv_process_hash_current() 386 memcpy(cpg->sram + SRAM_CONFIG, &op, sizeof(struct sec_accel_config)); in mv_process_hash_current() 451 memcpy(req->result, cpg->sram + SRAM_DIGEST_BUF, in mv_hash_algo_completion() [all …]
|
/drivers/usb/host/ |
D | ohci-tmio.c | 192 struct resource *sram = platform_get_resource(dev, IORESOURCE_MEM, 2); in ohci_hcd_tmio_drv_probe() local 202 if (!cell || !regs || !config || !sram) in ohci_hcd_tmio_drv_probe() 233 if (!dma_declare_coherent_memory(&dev->dev, sram->start, in ohci_hcd_tmio_drv_probe() 234 sram->start, in ohci_hcd_tmio_drv_probe() 235 resource_size(sram), in ohci_hcd_tmio_drv_probe()
|
/drivers/crypto/marvell/ |
D | cesa.c | 327 engine->sram = gen_pool_dma_alloc(engine->pool, in mv_cesa_get_sram() 330 if (engine->sram) in mv_cesa_get_sram() 349 engine->sram = devm_ioremap_resource(cesa->dev, res); in mv_cesa_get_sram() 350 if (IS_ERR(engine->sram)) in mv_cesa_get_sram() 351 return PTR_ERR(engine->sram); in mv_cesa_get_sram() 367 gen_pool_free(engine->pool, (unsigned long)engine->sram, in mv_cesa_put_sram()
|
D | cipher.c | 93 engine->sram + CESA_SA_DATA_SRAM_OFFSET, in mv_cesa_ablkcipher_std_step() 101 memcpy_toio(engine->sram, &sreq->op, sizeof(sreq->op)); in mv_cesa_ablkcipher_std_step() 104 memcpy_toio(engine->sram, &sreq->op, sizeof(sreq->op.desc)); in mv_cesa_ablkcipher_std_step() 121 engine->sram + CESA_SA_DATA_SRAM_OFFSET, in mv_cesa_ablkcipher_std_process() 149 engine->sram + CESA_SA_CRYPT_IV_SRAM_OFFSET, in mv_cesa_ablkcipher_process() 185 memcpy_toio(engine->sram, &sreq->op, sizeof(sreq->op)); in mv_cesa_ablkcipher_std_prepare()
|
D | hash.c | 212 memcpy_toio(engine->sram + CESA_SA_DATA_SRAM_OFFSET, in mv_cesa_ahash_std_step() 225 engine->sram + in mv_cesa_ahash_std_step() 255 engine->sram + in mv_cesa_ahash_std_step() 260 engine->sram + len + in mv_cesa_ahash_std_step() 275 memcpy_toio(engine->sram, op, sizeof(*op)); in mv_cesa_ahash_std_step() 315 memcpy_toio(engine->sram, &creq->op_tmpl, sizeof(creq->op_tmpl)); in mv_cesa_ahash_std_prepare()
|
D | cesa.h | 438 void __iomem *sram; member
|
/drivers/net/ethernet/myricom/myri10ge/ |
D | myri10ge.c | 221 u8 __iomem *sram; member 399 char __iomem *cmd_addr = mgp->sram + MXGEFW_ETH_CMD; in myri10ge_send_cmd() 548 submit = mgp->sram + MXGEFW_BOOT_DUMMY_RDMA; in myri10ge_dummy_rdma() 629 myri10ge_pio_copy(mgp->sram + MYRI10GE_FW_OFFSET + i, in myri10ge_load_hotplug_firmware() 633 readb(mgp->sram); in myri10ge_load_hotplug_firmware() 641 memcpy_fromio(fw_readback, mgp->sram + MYRI10GE_FW_OFFSET, fw->size); in myri10ge_load_hotplug_firmware() 668 hdr_offset = swab32(readl(mgp->sram + MCP_HEADER_PTR_OFFSET)); in myri10ge_adopt_running_firmware() 682 memcpy_fromio(hdr, mgp->sram + hdr_offset, bytes); in myri10ge_adopt_running_firmware() 794 submit = mgp->sram + MXGEFW_BOOT_HANDOFF; in myri10ge_load_firmware() 1115 (__iomem __be32 *) (mgp->sram + cmd.data0 + 8 * i); in myri10ge_reset() [all …]
|
/drivers/net/wireless/ |
D | ray_cs.c | 397 local->sram = ioremap(link->resource[2]->start, in ray_config() 428 dev_dbg(&link->dev, "ray_config sram=%p\n", local->sram); in ray_config() 456 return dev->sram + CCS_BASE; in ccs_base() 468 return dev->sram + CCS_BASE; in rcs_base() 489 memcpy_fromio(&local->startup_res, local->sram + ECF_TO_HOST_BASE, in ray_init() 549 memcpy_toio(local->sram + HOST_TO_ECF_BASE, &local->sparm.b4, in dl_startup_params() 552 memcpy_toio(local->sram + HOST_TO_ECF_BASE, &local->sparm.b5, in dl_startup_params() 664 (unsigned int)readb(local->sram + in verify_dl_startup() 752 iounmap(local->sram); in ray_release() 914 ptx = local->sram + addr; in ray_hw_xmit() [all …]
|
D | ray_cs.h | 29 void __iomem *sram; /* pointer to beginning of shared RAM */ member
|
D | mwl8k.c | 188 void __iomem *sram; member 2555 iowrite32(priv->rxq[0].rxd_dma, priv->sram + off); in mwl8k_cmd_get_hw_spec_ap() 2558 iowrite32(priv->rxq[0].rxd_dma, priv->sram + off); in mwl8k_cmd_get_hw_spec_ap() 5845 priv->sram + priv->txq_offset[i]); in mwl8k_init_txqs() 6218 priv->sram = pci_iomap(pdev, 0, 0x10000); in mwl8k_probe() 6219 if (priv->sram == NULL) { in mwl8k_probe() 6276 if (priv->sram != NULL) in mwl8k_probe() 6277 pci_iounmap(pdev, priv->sram); in mwl8k_probe() 6331 pci_iounmap(pdev, priv->sram); in mwl8k_remove()
|
/drivers/media/common/b2c2/ |
D | Makefile | 2 b2c2-flexcop-objs += flexcop-sram.o flexcop-eeprom.o flexcop-misc.o
|
/drivers/dma/bestcomm/ |
D | Makefile | 5 bestcomm-core-objs := bestcomm.o sram.o
|
/drivers/net/ethernet/marvell/ |
D | mvpp2.c | 888 union mvpp2_prs_sram_entry sram; member 1036 mvpp2_write(priv, MVPP2_PRS_SRAM_DATA_REG(i), pe->sram.word[i]); in mvpp2_prs_hw_write() 1063 pe->sram.word[i] = mvpp2_read(priv, MVPP2_PRS_SRAM_DATA_REG(i)); in mvpp2_prs_hw_read() 1202 pe->sram.byte[MVPP2_BIT_TO_BYTE(bit_num)] |= (val << (bit_num % 8)); in mvpp2_prs_sram_bits_set() 1209 pe->sram.byte[MVPP2_BIT_TO_BYTE(bit_num)] &= ~(val << (bit_num % 8)); in mvpp2_prs_sram_bits_clear() 1236 return pe->sram.word[MVPP2_PRS_SRAM_RI_WORD]; in mvpp2_prs_sram_ri_get() 1268 bits = (pe->sram.byte[ai_off] >> ai_shift) | in mvpp2_prs_sram_ai_get() 1269 (pe->sram.byte[ai_en_off] << (8 - ai_shift)); in mvpp2_prs_sram_ai_get() 1302 pe->sram.byte[MVPP2_BIT_TO_BYTE(MVPP2_PRS_SRAM_SHIFT_OFFS)] = in mvpp2_prs_sram_shift_set() 1333 pe->sram.byte[MVPP2_BIT_TO_BYTE(MVPP2_PRS_SRAM_UDF_OFFS + in mvpp2_prs_sram_offset_set() [all …]
|
/drivers/media/platform/sti/c8sectpfe/ |
D | c8sectpfe-core.c | 693 fei->sram = devm_ioremap_resource(dev, res); in c8sectpfe_probe() 694 if (IS_ERR(fei->sram)) in c8sectpfe_probe() 695 return PTR_ERR(fei->sram); in c8sectpfe_probe() 732 memset_io(fei->sram, 0x0, fei->sram_size); in c8sectpfe_probe()
|
D | c8sectpfe-core.h | 95 void __iomem *sram; member
|
/drivers/net/wireless/iwlwifi/dvm/ |
D | debugfs.c | 107 int sram; in iwl_dbgfs_sram_read() local 142 sram = priv->dbgfs_sram_offset & ~0x3; in iwl_dbgfs_sram_read() 145 val = iwl_trans_read_mem32(priv->trans, sram); in iwl_dbgfs_sram_read() 151 "%08X: ", sram + offset); in iwl_dbgfs_sram_read() 162 sram += 4; in iwl_dbgfs_sram_read() 164 val = iwl_trans_read_mem32(priv->trans, sram); in iwl_dbgfs_sram_read() 668 DEBUGFS_READ_WRITE_FILE_OPS(sram); 2373 DEBUGFS_ADD_FILE(sram, dir_data, S_IWUSR | S_IRUSR); in iwl_dbgfs_register()
|
/drivers/media/dvb-frontends/ |
D | dib7000m.c | 151 sram = 0x0005; /* by default SRAM output is disabled */ in dib7000m_set_output_mode() local 173 sram |= 0x0c00; in dib7000m_set_output_mode() 194 ret |= dib7000m_write_word(state, 1805, sram); in dib7000m_set_output_mode()
|
/drivers/media/pci/bt8xx/ |
D | bttvp.h | 101 int sram; member
|
D | bttv-driver.c | 304 .sram = 0, 338 .sram = 1, 365 .sram = 0, /* like PAL, correct? */ 391 .sram = -1, 417 .sram = -1, 443 .sram = -1, 469 .sram = -1, 499 .sram = -1, 881 int table_idx = bttv_tvnorms[btv->tvnorm].sram; in bt848A_set_timing()
|
/drivers/net/ethernet/amd/ |
D | pcnet32.c | 1548 int fdx, mii, fset, dxsuflo, sram; in pcnet32_probe1() local 1585 fdx = mii = fset = dxsuflo = sram = 0; in pcnet32_probe1() 1618 sram = 1; in pcnet32_probe1() 1642 sram = 1; in pcnet32_probe1() 1677 if (sram) { in pcnet32_probe1()
|
/drivers/mtd/nand/ |
D | atmel_nand.c | 1970 void *sram = host->nfc->sram_bank0 + nfc_get_sram_off(host); in nfc_sram_write_page() local 1981 memcpy(sram, buf, len); in nfc_sram_write_page() 1983 memcpy(sram, buf, len); in nfc_sram_write_page() 1988 memcpy(sram + len, chip->oob_poi, mtd->oobsize); in nfc_sram_write_page()
|