/openbmc/linux/drivers/crypto/ |
H A D | omap-des.c | 316 ctx->dd = dd; in omap_des_find_dev() 319 dd = ctx->dd; in omap_des_find_dev() 447 dd->pdata->trigger(dd, dd->total); in omap_des_crypt_dma() 461 err = dma_map_sg(dd->dev, dd->in_sg, dd->in_sg_len, in omap_des_crypt_dma_start() 468 err = dma_map_sg(dd->dev, dd->out_sg, dd->out_sg_len, in omap_des_crypt_dma_start() 480 dma_unmap_sg(dd->dev, dd->out_sg, dd->out_sg_len, in omap_des_crypt_dma_start() 553 dd->in_sg_len = sg_nents_for_len(dd->in_sg, dd->total); in omap_des_prepare_req() 557 dd->out_sg_len = sg_nents_for_len(dd->out_sg, dd->total); in omap_des_prepare_req() 567 ctx->dd = dd; in omap_des_prepare_req() 595 dma_sync_sg_for_device(dd->dev, dd->out_sg, dd->out_sg_len, in omap_des_done_task() [all …]
|
H A D | omap-aes.c | 144 omap_aes_write_n(dd, AES_REG_IV(dd, 0), (void *)dd->req->iv, 4); in omap_aes_write_ctrl() 214 rctx->dd = dd; in omap_aes_find_dev() 355 dd->pdata->trigger(dd, dd->total); in omap_aes_crypt_dma() 367 err = dma_map_sg(dd->dev, dd->in_sg, dd->in_sg_len, in omap_aes_crypt_dma_start() 375 err = dma_map_sg(dd->dev, dd->out_sg, dd->out_sg_len, in omap_aes_crypt_dma_start() 384 err = omap_aes_crypt_dma(dd, dd->in_sg, dd->out_sg, dd->in_sg_len, in omap_aes_crypt_dma_start() 389 dma_unmap_sg(dd->dev, dd->out_sg, dd->out_sg_len, in omap_aes_crypt_dma_start() 460 dd->in_sg_len = sg_nents_for_len(dd->in_sg, dd->total); in omap_aes_prepare_req() 464 dd->out_sg_len = sg_nents_for_len(dd->out_sg, dd->total); in omap_aes_prepare_req() 472 rctx->dd = dd; in omap_aes_prepare_req() [all …]
|
H A D | atmel-tdes.c | 312 dd->buf_out, dd->buflen, dd->dma_size, 1); in atmel_tdes_crypt_pdc_stop() 331 if (!dd->buf_in || !dd->buf_out) { in atmel_tdes_buff_init() 337 dd->dma_addr_in = dma_map_single(dd->dev, dd->buf_in, in atmel_tdes_buff_init() 345 dd->dma_addr_out = dma_map_single(dd->dev, dd->buf_out, in atmel_tdes_buff_init() 356 dma_unmap_single(dd->dev, dd->dma_addr_in, dd->buflen, in atmel_tdes_buff_init() 367 dma_unmap_single(dd->dev, dd->dma_addr_out, dd->buflen, in atmel_tdes_buff_cleanup() 369 dma_unmap_single(dd->dev, dd->dma_addr_in, dd->buflen, in atmel_tdes_buff_cleanup() 534 dd->buf_in, dd->buflen, dd->total, 0); in atmel_tdes_crypt_start() 663 dd->buf_out, dd->buflen, dd->dma_size, 1); in atmel_tdes_crypt_dma_stop() 1058 dd->in_sg = sg_next(dd->in_sg); in atmel_tdes_done_task() [all …]
|
H A D | atmel-aes.c | 751 dd->src.sg_len = dma_map_sg(dd->dev, dd->src.sg, dd->src.nents, in atmel_aes_map() 757 dd->src.sg_len = dma_map_sg(dd->dev, dd->src.sg, dd->src.nents, in atmel_aes_map() 762 dd->dst.sg_len = dma_map_sg(dd->dev, dd->dst.sg, dd->dst.nents, in atmel_aes_map() 777 dma_unmap_sg(dd->dev, dd->src.sg, dd->src.nents, in atmel_aes_unmap() 783 dma_unmap_sg(dd->dev, dd->dst.sg, dd->dst.nents, in atmel_aes_unmap() 923 (void)dd->resume(dd); in atmel_aes_dma_callback() 1271 ctx->base.dd = dd; in atmel_aes_init_tfm() 1287 ctx->base.dd = dd; in atmel_aes_ctr_init_tfm() 1778 ctx->base.dd = dd; in atmel_aes_gcm_init() 1921 ctx->base.dd = dd; in atmel_aes_xts_init_tfm() [all …]
|
H A D | omap-aes-gcm.c | 55 nsg = !!(dd->assoc_len && dd->total); in omap_aes_gcm_done_task() 57 dma_sync_sg_for_device(dd->dev, dd->out_sg, dd->out_sg_len, in omap_aes_gcm_done_task() 59 dma_unmap_sg(dd->dev, dd->in_sg, dd->in_sg_len, DMA_TO_DEVICE); in omap_aes_gcm_done_task() 60 dma_unmap_sg(dd->dev, dd->out_sg, dd->out_sg_len, DMA_FROM_DEVICE); in omap_aes_gcm_done_task() 63 omap_crypto_cleanup(dd->out_sg, dd->orig_out, in omap_aes_gcm_done_task() 64 dd->aead_req->assoclen, dd->total, in omap_aes_gcm_done_task() 70 dd->total + dd->aead_req->assoclen, in omap_aes_gcm_done_task() 148 dd->in_sg = dd->in_sgl; in omap_aes_gcm_copy_buffers() 194 dd->total + dd->aead_req->assoclen, in omap_aes_gcm_dma_out_callback() 200 val = omap_aes_read(dd, AES_REG_TAG_N(dd, i)); in omap_aes_gcm_dma_out_callback() [all …]
|
/openbmc/linux/drivers/infiniband/hw/qib/ |
H A D | qib_twsi.c | 74 dd->f_gpio_mod(dd, 0, 0, 0); in i2c_wait_for_writes() 98 dd->f_gpio_mod(dd, 0, bit ? 0 : mask, mask); in scl_out() 110 if (mask & dd->f_gpio_mod(dd, 0, 0, 0)) in scl_out() 128 dd->f_gpio_mod(dd, 0, bit ? 0 : mask, mask); in sda_out() 142 dd->f_gpio_mod(dd, 0, 0, mask); in sda_in() 143 read_val = dd->f_gpio_mod(dd, 0, 0, 0); in sda_in() 189 stop_cmd(dd); in rd_byte() 255 stop_seq(dd); in stop_cmd() 280 dd->f_gpio_mod(dd, 0, 0, mask); in qib_twsi_reset() 305 pins = dd->f_gpio_mod(dd, 0, 0, 0); in qib_twsi_reset() [all …]
|
H A D | qib_iba6120.c | 962 struct qib_devdata *dd = ppd->dd; in qib_disarm_6120_senderrbufs() local 1191 struct qib_devdata *dd = ppd->dd; in qib_set_ib_6120_lstate() local 1227 struct qib_devdata *dd = ppd->dd; in qib_6120_bringup_serdes() local 1367 struct qib_devdata *dd = ppd->dd; in qib_6120_quiet_serdes() local 1436 struct qib_devdata *dd = ppd->dd; in qib_6120_setup_setextled() local 1731 if (dd->majrev != 4 || !dd->minrev || dd->minrev > 2) in pe_boardname() 1734 dd->majrev, dd->minrev); in pe_boardname() 1740 dd->majrev, dd->minrev, in pe_boardname() 3099 dd->last_pio = dd->piobcnt4k + dd->piobcnt2k - 1; in get_6120_chip_params() 3112 dd->align4k = ALIGN(dd->piosize4k, dd->palign); in get_6120_chip_params() [all …]
|
H A D | qib_init.c | 106 if (dd->cfgctxts > dd->ctxtcnt) in qib_set_ctxtcnt() 107 dd->cfgctxts = dd->ctxtcnt; in qib_set_ctxtcnt() 109 dd->cfgctxts = dd->ctxtcnt; in qib_set_ctxtcnt() 113 dd->cfgctxts = dd->ctxtcnt; in qib_set_ctxtcnt() 114 dd->freectxts = (dd->first_user_ctxt > dd->cfgctxts) ? 0 : in qib_set_ctxtcnt() 134 dd->rcd = kcalloc(dd->ctxtcnt, sizeof(*dd->rcd), GFP_KERNEL); in qib_create_ctxts() 176 rcd->dd = dd; in qib_create_ctxtdata() 225 ppd->dd = dd; in qib_init_pportdata() 569 dd->f_initvl15_bufs(dd); in init_piobuf_state() 996 dd->f_set_armlaunch(dd, 0); in qib_verify_pioperf() [all …]
|
H A D | qib_tx.c | 71 dd->f_sendctrl(dd->pport, QIB_SENDCTRL_DISARM_BUF(i)); in qib_disarm_piobufs() 82 struct qib_devdata *dd = rcd->dd; in qib_disarm_piobufs_ifneeded() local 308 if (dd->last_pio >= first && dd->last_pio <= last) in qib_getsendbuf_range() 341 else if (i < dd->piobcnt2k + dd->piobcnt4k || !dd->piovl15base) in qib_getsendbuf_range() 343 (i - dd->piobcnt2k) * dd->align4k); in qib_getsendbuf_range() 346 (i - (dd->piobcnt2k + dd->piobcnt4k)) * in qib_getsendbuf_range() 435 if (dd->min_kernel_pio > 0 && dd->last_pio < dd->min_kernel_pio - 1) in qib_chg_pioavailkernel() 436 dd->last_pio = dd->min_kernel_pio - 1; in qib_chg_pioavailkernel() 439 dd->f_txchk_change(dd, ostart, len, avail, rcd); in qib_chg_pioavailkernel() 453 struct qib_devdata *dd = ppd->dd; in qib_cancel_sends() local [all …]
|
H A D | qib_pcie.c | 163 if (dd->piobase) in qib_pcie_ddcleanup() 228 qib_cache_msi_info(dd, dd->pcidev->msi_cap); in qib_pcie_params() 257 qib_dev_err(dd, in qib_pcie_params() 267 snprintf(dd->lbus_info, sizeof(dd->lbus_info), in qib_pcie_params() 268 "PCIe,%uMHz,x%u\n", dd->lbus_speed, dd->lbus_width); in qib_pcie_params() 282 pci_free_irq(dd->pcidev, 0, dd); in qib_free_irq() 301 if (!dd->msi_lo) in qib_reinit_intr() 306 qib_dev_err(dd, in qib_reinit_intr() 537 if (dd) { in qib_pci_error_detected() 561 if (dd && dd->pport) { in qib_pci_mmio_enabled() [all …]
|
H A D | qib_iba7220.c | 754 struct qib_devdata *dd = ppd->dd; in qib_disarm_7220_senderrbufs() local 781 struct qib_devdata *dd = ppd->dd; in qib_7220_sdma_sendctrl() local 900 struct qib_devdata *dd = ppd->dd; in sdma_7220_errors() local 1489 struct qib_devdata *dd = ppd->dd; in qib_set_ib_7220_lstate() local 2048 if (dd->majrev != 5 || !dd->minrev || dd->minrev > 2) in qib_7220_boardname() 2051 dd->majrev, dd->minrev); in qib_7220_boardname() 2057 dd->majrev, dd->minrev, in qib_7220_boardname() 3522 dd = ppd->dd; in autoneg_7220_work() 3824 dd->align4k = ALIGN(dd->piosize4k, dd->palign); in get_7220_chip_params() 3968 dd->cspec->dd = dd; in qib_init_7220_variables() [all …]
|
H A D | qib_sd7220.c | 126 struct qib_devdata *dd = ppd->dd; in qib_ibsd_ucode_loaded() local 346 qib_dev_err(dd, in qib_sd_trimdone_monitor() 354 qib_dev_err(dd, in qib_sd_trimdone_monitor() 368 qib_dev_err(dd, in qib_sd_trimdone_monitor() 375 qib_dev_err(dd, in qib_sd_trimdone_monitor() 381 qib_dev_err(dd, in qib_sd_trimdone_monitor() 1147 qib_dev_err(dd, in ibsd_mod_allchnls() 1160 qib_dev_err(dd, in ibsd_mod_allchnls() 1176 qib_dev_err(dd, in ibsd_mod_allchnls() 1366 dd->f_xgxs_reset(dd->pport); in toggle_7220_rclkrls() [all …]
|
H A D | qib_iba7322.c | 2791 dd = rcd->dd; in qib_irq_notifier_release() 2795 dd = ppd->dd; in qib_irq_notifier_release() 3586 dd->majrev, dd->minrev, in qib_7322_boardname() 3886 dd->n_krcv_queues = dd->first_user_ctxt / dd->num_pports; in qib_7322_config_ctxts() 3902 dd->ctxtcnt = dd->num_pports; in qib_7322_config_ctxts() 5761 dd->align4k = ALIGN(dd->piosize4k, dd->palign); in get_7322_chip_params() 6041 if (IS_QME(dd) || IS_QMH(dd)) in set_no_qsfp_atten() 6354 ppd[0].dd = dd; in qib_init_7322_variables() 6355 ppd[1].dd = dd; in qib_init_7322_variables() 6642 dd->cspec->lastbuf_for_pio = dd->piobcnt2k + dd->piobcnt4k - in qib_init_7322_variables() [all …]
|
H A D | qib_diag.c | 92 dc->dd = dd; in get_client() 104 struct qib_devdata *dd = dc->dd; in return_client() local 190 qib_cdev_cleanup(&dd->diag_cdev, &dd->diag_device); in qib_diag_remove() 259 u32 ulim = (dd->cfgctxts * dd->ureg_align) + dd->uregbase; in qib_remap_ioaddr32() 283 u32 tot2k = dd->piobcnt2k * ALIGN(dd->piosize2k, dd->palign); in qib_remap_ioaddr32() 290 tot4k = dd->piobcnt4k * dd->align4k; in qib_remap_ioaddr32() 297 if (!dd->userbase || dd->piovl15base) in qib_remap_ioaddr32() 519 if (dd == NULL || !(dd->flags & QIB_PRESENT) || in qib_diag_open() 569 if (!dd || !(dd->flags & QIB_PRESENT) || !dd->kregbase) { in qib_diagpkt_write() 763 struct qib_devdata *dd = dc->dd; in qib_diag_read() local [all …]
|
/openbmc/linux/drivers/infiniband/hw/hfi1/ |
H A D | pcie.c | 119 dd_dev_info(dd, "UC base1: %p for %x\n", dd->kregbase1, RCV_ARRAY); in hfi1_pcie_ddinit() 122 dd->revision = readq(dd->kregbase1 + CCE_REVISION); in hfi1_pcie_ddinit() 139 dd_dev_info(dd, "UC base2: %p for %x\n", dd->kregbase2, in hfi1_pcie_ddinit() 189 if (dd->piobase) in hfi1_pcie_ddcleanup() 228 snprintf(dd->lbus_info, sizeof(dd->lbus_info), in update_lbus_info() 229 "PCIe,%uMHz,x%u", dd->lbus_speed, dd->lbus_width); in update_lbus_info() 257 dd_dev_info(dd, in pcie_speeds() 276 dd_dev_info(dd, "%s\n", dd->lbus_info); in pcie_speeds() 525 if (dd) { in pci_error_detected() 550 if (dd && dd->pport) { in pci_mmio_enabled() [all …]
|
H A D | firmware.c | 355 dd_dev_err(dd, in invalid_header() 393 dd_dev_err(dd, in payload_check() 510 dd_dev_err(dd, in obtain_one_firmware() 1019 dd_dev_err(dd, in load_8051_firmware() 1093 if (!is_ax(dd)) in turn_off_spicos() 1108 sbus_request(dd, fabric_serdes_broadcast[dd->hfi1_id], in turn_off_spicos() 1136 dd_dev_err(dd, in fabric_serdes_reset() 1142 if (is_ax(dd)) { in fabric_serdes_reset() 1379 dd_dev_err(dd, in acquire_hw_mutex() 1415 dd_dev_err(dd, in fail_mutex_acquire_message() [all …]
|
H A D | init.c | 137 dd->rcd = kcalloc_node(dd->num_rcv_contexts, sizeof(*dd->rcd), in hfi1_create_kctxts() 143 ret = hfi1_create_kctxt(dd, dd->pport); in hfi1_create_kctxts() 307 struct hfi1_devdata *dd = ppd->dd; in hfi1_create_ctxtdata() local 332 rcd->dd = dd; in hfi1_create_ctxtdata() 485 struct hfi1_devdata *dd = ppd->dd; in set_link_ipg() local 596 ppd->dd = dd; in hfi1_init_pportdata() 1146 dd->asic_data->dds[dd->hfi1_id] = NULL; in release_asic_data() 1196 sdma_clean(dd, dd->num_sdma); in hfi1_free_devdata() 1220 if (!dd) in hfi1_alloc_devdata() 1223 dd->pport = (struct hfi1_pportdata *)(dd + 1); in hfi1_alloc_devdata() [all …]
|
H A D | msix.c | 30 total = 1 + dd->num_sdma + dd->n_krcv_queues + dd->num_netdev_contexts; in msix_initialize() 44 pci_free_irq_vectors(dd->pcidev); in msix_initialize() 86 dd->msix_info.max_requested); in msix_request_irq() 100 dd_dev_err(dd, in msix_request_irq() 159 rcd->dd->unit, rcd->ctxt); in msix_request_rcd_irq() 175 rcd->dd->unit, rcd->ctxt); in msix_netdev_request_rcd_irq() 213 nr = msix_request_irq(dd, dd, general_interrupt, NULL, IRQ_GENERAL, in msix_request_general_irq() 220 msix_free_irq(dd, (u8)nr); in msix_request_general_irq() 264 enable_sdma_srcs(sde->dd, i); in msix_request_irqs() 298 hfi1_put_irq_affinity(dd, me); in msix_free_irq() [all …]
|
H A D | chip.c | 101 #define emulator_rev(dd) ((dd)->irev >> 8) argument 1637 return read_write_cpu(dd, &dd->z_int_counter, dd->int_counter, vl, in access_sw_cpu_intr() 1646 return read_write_cpu(dd, &dd->z_rcv_limit, dd->rcv_limit, vl, in access_sw_cpu_rcv_limit() 6338 struct hfi1_devdata *dd = ppd->dd; in handle_8051_request() local 6661 struct hfi1_devdata *dd = ppd->dd; in handle_sma_message() local 9399 ret = write_vc_local_fabric(dd, dd->vau, 1, dd->vcu, dd->vl15_init, in set_local_link_attributes() 9426 ret = write_local_device_id(dd, dd->pcidev->device, dd->minrev); in set_local_link_attributes() 9668 dd = ppd->dd; in qsfp_event() 12520 dd->unit, cur_tx, cur_rx, dd->last_tx, dd->last_rx); in do_update_synth_timer() 12581 dd->unit, dd->last_tx, dd->last_rx); in do_update_synth_timer() [all …]
|
H A D | aspm.c | 92 !dd->aspm_supported) in aspm_enable() 95 aspm_hw_enable_l1(dd); in aspm_enable() 104 aspm_hw_disable_l1(dd); in aspm_disable() 113 aspm_disable(dd); in aspm_disable_inc() 124 aspm_enable(dd); in aspm_enable_dec() 202 aspm_disable(dd); in aspm_disable_all() 213 aspm_enable(dd); in aspm_enable_all() 245 dd->aspm_supported = aspm_hw_l1_supported(dd); in aspm_init() 260 aspm_enable_all(dd); in aspm_init() 265 aspm_disable_all(dd); in aspm_exit() [all …]
|
H A D | pio.c | 246 dd, in init_sc_pools_and_sizes() 254 dd, in init_sc_pools_and_sizes() 263 dd, in init_sc_pools_and_sizes() 623 struct hfi1_devdata *dd = sc->dd; in set_pio_integrity() local 697 sc->dd = dd; in sc_alloc() 847 dd = sc->dd; in sc_free() 971 struct hfi1_devdata *dd = sc->dd; in sc_wait_for_packet_egress() local 1033 struct hfi1_devdata *dd = sc->dd; in sc_restart() local 1252 dd = sc->dd; in sc_enable() 1571 struct hfi1_devdata *dd = sc->dd; in sc_piobufavail() local [all …]
|
H A D | netdev_rx.c | 24 struct hfi1_devdata *dd = rx->dd; in hfi1_netdev_setup_ctxt() local 67 ret = hfi1_create_ctxtdata(dd->pport, dd->node, &uctxt); in hfi1_netdev_allocate_ctxt() 125 struct hfi1_devdata *dd = rx->dd; in hfi1_netdev_allot_ctxt() local 190 struct hfi1_devdata *dd = rx->dd; in hfi1_netdev_rxq_init() local 247 struct hfi1_devdata *dd = rx->dd; in hfi1_netdev_rxq_deinit() local 362 rx->dd = dd; in hfi1_alloc_rx() 368 dd->netdev_rx = rx; in hfi1_alloc_rx() 395 if (!dd->netdev_rx) in hfi1_netdev_enable_queues() 398 rx = dd->netdev_rx; in hfi1_netdev_enable_queues() 411 if (!dd->netdev_rx) in hfi1_netdev_disable_queues() [all …]
|
/openbmc/linux/drivers/clk/ti/ |
H A D | dpll3xxx.c | 310 if (dd->ssc_modfreq && dd->ssc_deltam) { in omap3_noncore_dpll_ssc_program() 410 if (dd->last_rounded_rate >= dd->dcc_rate) in omap3_noncore_dpll_program() 416 v &= ~(dd->mult_mask | dd->div1_mask); in omap3_noncore_dpll_program() 455 if (dd->m4xen_mask || dd->lpmode_mask) { in omap3_noncore_dpll_program() 530 if (!dd) in omap3_noncore_dpll_enable() 595 if (!dd) in omap3_noncore_dpll_determine_rate() 889 dd->last_rounded_m = (v & dd->mult_mask) >> in omap3_core_dpll_save_context() 891 dd->last_rounded_n = ((v & dd->div1_mask) >> in omap3_core_dpll_save_context() 918 v &= ~(dd->mult_mask | dd->div1_mask); in omap3_core_dpll_restore_context() 950 dd->last_rounded_m = (v & dd->mult_mask) >> in omap3_noncore_dpll_save_context() [all …]
|
/openbmc/linux/drivers/md/ |
H A D | dm-dust.c | 97 if (!dd->quiet_mode) in dust_remove_block() 233 r = dust_map_read(dd, bio->bi_iter.bi_sector, dd->fail_read_on_bb); in dust_map() 364 if (dd == NULL) { in dust_ctr() 371 kfree(dd); in dust_ctr() 376 dd->blksz = blksz; in dust_ctr() 377 dd->start = tmp; in dust_ctr() 400 ti->private = dd; in dust_ctr() 409 __dust_clear_badblocks(&dd->badblocklist, dd->badblock_count); in dust_dtr() 411 kfree(dd); in dust_dtr() 528 (unsigned long long)dd->start, dd->blksz); in dust_status() [all …]
|
/openbmc/linux/drivers/block/mtip32xx/ |
H A D | mtip32xx.c | 2736 dd->work[i].port = dd->port; in mtip_hw_init() 2752 dd->port->dd = dd; in mtip_hw_init() 2839 free_irq(dd->pdev->irq, dd); in mtip_hw_init() 2856 if (dd->sr || !dd->port) in mtip_standby_drive() 2894 free_irq(dd->pdev->irq, dd); in mtip_hw_exit() 3424 dd->tags.driver_data = dd; in mtip_block_initialize() 3434 dd->disk = blk_mq_alloc_disk(&dd->tags, dd); in mtip_block_initialize() 3441 dd->queue = dd->disk->queue; in mtip_block_initialize() 3455 dd->disk->major = dd->major; in mtip_block_initialize() 3459 dd->disk->private_data = dd; in mtip_block_initialize() [all …]
|