/openbmc/linux/drivers/spi/ |
H A D | spi-sprd.c | 412 write_size += ss->write_bufs(ss, len); in sprd_spi_txrx_bufs() 418 if (ss->hw_mode & SPI_3WIRE || ss->hw_mode & SPI_TX_DUAL) in sprd_spi_txrx_bufs() 432 write_size += ss->write_bufs(ss, len); in sprd_spi_txrx_bufs() 441 read_size += ss->read_bufs(ss, len); in sprd_spi_txrx_bufs() 595 if (ss->hw_mode & SPI_3WIRE || ss->hw_mode & SPI_TX_DUAL) in sprd_spi_dma_txrx_bufs() 607 write_size = ss->write_bufs(ss, trans_len); in sprd_spi_dma_txrx_bufs() 624 ss->dma.rx_len = t->len > ss->dma.fragmens_len ? in sprd_spi_dma_txrx_bufs() 660 ss->hw_speed_hz = (ss->src_clk >> 1) / (clk_div + 1); in sprd_spi_set_speed() 829 if (ss->dma.rx_len < ss->len) { in sprd_spi_handle_irq() 830 ss->rx_buf += ss->dma.rx_len; in sprd_spi_handle_irq() [all …]
|
H A D | spi-sh.c | 84 if (ss->width == 8) in spi_sh_write() 262 clear_fifo(ss); in spi_sh_receive() 304 clear_fifo(ss); in spi_sh_transfer_one_message() 311 clear_fifo(ss); in spi_sh_transfer_one_message() 323 clear_fifo(ss); in spi_sh_transfer_one_message() 338 clear_fifo(ss); in spi_sh_setup() 372 if (ss->cr1) { in spi_sh_irq() 373 spi_sh_clear_bit(ss, ss->cr1, SPI_SH_CR4); in spi_sh_irq() 385 free_irq(ss->irq, ss); in spi_sh_remove() 417 ss->width = 8; in spi_sh_probe() [all …]
|
/openbmc/u-boot/drivers/spi/ |
H A D | sh_spi.c | 85 struct sh_spi *ss; in spi_setup_slave() local 91 if (!ss) in spi_setup_slave() 102 sh_spi_set_cs(ss, cs); in spi_setup_slave() 104 clear_fifo(ss); in spi_setup_slave() 107 sh_spi_write(sh_spi_read(&ss->regs->cr2) | 0x07, &ss->regs->cr2); in spi_setup_slave() 110 return &ss->slave; in spi_setup_slave() 172 write_fifo_empty_wait(ss); in sh_spi_send() 192 if (recvbuf_wait(ss)) in sh_spi_receive() 213 &ss->regs->cr1); in spi_xfer() 226 &ss->regs->cr1); in spi_xfer() [all …]
|
H A D | sh_qspi.c | 83 writeb(0x00, &ss->regs->sslp); in sh_qspi_init() 157 sh_qspi_cs_deactivate(ss); in sh_qspi_xfer_common() 169 sh_qspi_cs_activate(ss); in sh_qspi_xfer_common() 220 sh_qspi_cs_deactivate(ss); in sh_qspi_xfer_common() 240 sh_qspi_cs_activate(ss); in spi_cs_activate() 247 sh_qspi_cs_deactivate(ss); in spi_cs_deactivate() 253 struct sh_qspi_slave *ss; in spi_setup_slave() local 259 if (!ss) { in spi_setup_slave() 267 sh_qspi_init(ss); in spi_setup_slave() 269 return &ss->slave; in spi_setup_slave() [all …]
|
H A D | soft_spi_legacy.c | 42 struct soft_spi_slave *ss; in spi_setup_slave() local 48 if (!ss) in spi_setup_slave() 51 ss->mode = mode; in spi_setup_slave() 55 return &ss->slave; in spi_setup_slave() 60 struct soft_spi_slave *ss = to_soft_spi(slave); in spi_free_slave() local 62 free(ss); in spi_free_slave() 70 struct soft_spi_slave *ss = to_soft_spi(slave); in spi_claim_bus() local 76 if (ss->mode & SPI_CPOL) in spi_claim_bus() 107 struct soft_spi_slave *ss = to_soft_spi(slave); in spi_xfer() local 112 int cpol = ss->mode & SPI_CPOL; in spi_xfer() [all …]
|
/openbmc/linux/drivers/crypto/allwinner/sun8i-ss/ |
H A D | sun8i-ss-core.c | 121 dev_dbg(ss->dev, in sun8i_ss_run_task() 555 if (!ss->flows) in allocate_flows() 561 ss->flows[i].biv = devm_kmalloc(ss->dev, AES_BLOCK_SIZE, in allocate_flows() 569 ss->flows[i].iv[j] = devm_kmalloc(ss->dev, AES_BLOCK_SIZE, in allocate_flows() 578 ss->flows[i].pad = devm_kmalloc(ss->dev, MAX_PAD_SIZE, in allocate_flows() 593 ss->flows[i].engine = crypto_engine_alloc_init(ss->dev, true); in allocate_flows() 685 ss_algs[i].ss = ss; in sun8i_ss_register_algs() 786 ss->ssclks[i] = devm_clk_get(ss->dev, ss->variant->ss_clks[i].name); in sun8i_ss_get_clks() 803 err = clk_set_rate(ss->ssclks[i], ss->variant->ss_clks[i].freq); in sun8i_ss_get_clks() 824 ss = devm_kzalloc(&pdev->dev, sizeof(*ss), GFP_KERNEL); in sun8i_ss_probe() [all …]
|
H A D | sun8i-ss-prng.c | 64 struct sun8i_ss_dev *ss; in sun8i_ss_prng_generate() local 73 ss = algt->ss; in sun8i_ss_prng_generate() 95 flow = sun8i_ss_get_engine_number(ss); in sun8i_ss_prng_generate() 109 if (dma_mapping_error(ss->dev, dma_iv)) { in sun8i_ss_prng_generate() 110 dev_err(ss->dev, "Cannot DMA MAP IV\n"); in sun8i_ss_prng_generate() 127 mutex_lock(&ss->mlock); in sun8i_ss_prng_generate() 135 ss->flows[flow].status = 0; in sun8i_ss_prng_generate() 139 writel(v, ss->base + SS_CTL_REG); in sun8i_ss_prng_generate() 143 if (ss->flows[flow].status == 0) { in sun8i_ss_prng_generate() 159 mutex_unlock(&ss->mlock); in sun8i_ss_prng_generate() [all …]
|
H A D | sun8i-ss-cipher.c | 124 struct sun8i_ss_dev *ss = op->ss; in sun8i_ss_setup_ivs() local 151 if (dma_mapping_error(ss->dev, a)) { in sun8i_ss_setup_ivs() 187 struct sun8i_ss_dev *ss = op->ss; in sun8i_ss_cipher() local 359 e = sun8i_ss_get_engine_number(op->ss); in sun8i_ss_skdecrypt() 360 engine = op->ss->flows[e].engine; in sun8i_ss_skdecrypt() 380 e = sun8i_ss_get_engine_number(op->ss); in sun8i_ss_skencrypt() 381 engine = op->ss->flows[e].engine; in sun8i_ss_skencrypt() 399 op->ss = algt->ss; in sun8i_ss_cipher_init() 434 pm_runtime_put_sync(op->ss->dev); in sun8i_ss_cipher_exit() 441 struct sun8i_ss_dev *ss = op->ss; in sun8i_ss_aes_setkey() local [all …]
|
H A D | sun8i-ss-hash.c | 120 op->ss = algt->ss; in sun8i_ss_hash_init_tfm() 307 ss->flows[flow].stat_req++; in sun8i_ss_run_hash_task() 322 mutex_lock(&ss->mlock); in sun8i_ss_run_hash_task() 329 dev_dbg(ss->dev, in sun8i_ss_run_hash_task() 341 ss->flows[flow].status = 0; in sun8i_ss_run_hash_task() 345 mutex_unlock(&ss->mlock); in sun8i_ss_run_hash_task() 412 struct sun8i_ss_dev *ss; in sun8i_ss_hash_digest() local 420 ss = algt->ss; in sun8i_ss_hash_digest() 424 engine = ss->flows[e].engine; in sun8i_ss_hash_digest() 498 struct sun8i_ss_dev *ss; in sun8i_ss_hash_run() local [all …]
|
H A D | Makefile | 1 obj-$(CONFIG_CRYPTO_DEV_SUN8I_SS) += sun8i-ss.o 2 sun8i-ss-y += sun8i-ss-core.o sun8i-ss-cipher.o 3 sun8i-ss-$(CONFIG_CRYPTO_DEV_SUN8I_SS_PRNG) += sun8i-ss-prng.o 4 sun8i-ss-$(CONFIG_CRYPTO_DEV_SUN8I_SS_HASH) += sun8i-ss-hash.o
|
/openbmc/linux/drivers/gpu/drm/imx/dcss/ |
H A D | dcss-ss.c | 75 if (!ss->in_use) in dcss_ss_write() 78 dcss_ctxld_write(ss->ctxld, ss->ctx_id, val, in dcss_ss_write() 84 struct dcss_ss *ss; in dcss_ss_init() local 86 ss = kzalloc(sizeof(*ss), GFP_KERNEL); in dcss_ss_init() 87 if (!ss) in dcss_ss_init() 90 dcss->ss = ss; in dcss_ss_init() 91 ss->dev = dcss->dev; in dcss_ss_init() 97 kfree(ss); in dcss_ss_init() 112 if (ss->base_reg) in dcss_ss_exit() 115 kfree(ss); in dcss_ss_exit() [all …]
|
/openbmc/linux/tools/testing/selftests/x86/ |
H A D | mov_ss_trap.c | 147 asm volatile ("mov %%ss, %[ss]" : [ss] "=m" (ss)); in main() 148 printf("\tSS = 0x%hx, &SS = 0x%p\n", ss, &ss); in main() 161 asm volatile ("mov %[ss], %%ss; int3" :: [ss] "m" (ss)); in main() 174 asm volatile ("mov %[ss], %%ss; int $4" :: [ss] "m" (ss)); in main() 181 : [tmp] "+r" (nr) : [ss] "m" (ss)); in main() 196 asm volatile ("mov %[ss], %%ss; cli" :: [ss] "m" (ss)); in main() 203 : [tmp] "=r" (nr) : [ss] "m" (ss)); in main() 213 asm volatile ("mov %[ss], %%ss; int $1" :: [ss] "m" (ss)); in main() 233 : "+a" (nr) : [ss] "m" (ss) in main() 262 : [ss] "m" (ss) : "flags", "rcx" in main() [all …]
|
/openbmc/linux/drivers/usb/gadget/function/ |
H A D | f_sourcesink.c | 421 (ss->isoc_mult + 1) * (ss->isoc_maxburst + 1); in sourcesink_bind() 430 (ss->isoc_mult + 1) * (ss->isoc_maxburst + 1); in sourcesink_bind() 440 f->name, ss->in_ep->name, ss->out_ep->name, in sourcesink_bind() 441 ss->iso_in_ep ? ss->iso_in_ep->name : "<none>", in sourcesink_bind() 527 if (!ss) in source_sink_complete() 592 size = ss->isoc_maxpacket * (ss->isoc_mult + 1); in source_sink_start_ep() 599 ep = is_in ? ss->iso_in_ep : ss->iso_out_ep; in source_sink_start_ep() 602 ep = is_in ? ss->in_ep : ss->out_ep; in source_sink_start_ep() 639 disable_endpoints(cdev, ss->in_ep, ss->out_ep, ss->iso_in_ep, in disable_source_sink() 840 ss = kzalloc(sizeof(*ss), GFP_KERNEL); in source_sink_alloc_func() [all …]
|
/openbmc/linux/drivers/crypto/allwinner/sun4i-ss/ |
H A D | sun4i-ss-core.c | 242 if (!ss_algs[i].ss) in sun4i_ss_debugfs_show() 355 ss = devm_kzalloc(&pdev->dev, sizeof(*ss), GFP_KERNEL); in sun4i_ss_probe() 356 if (!ss) in sun4i_ss_probe() 366 if (!ss->variant) { in sun4i_ss_probe() 388 if (IS_ERR(ss->reset)) in sun4i_ss_probe() 390 if (!ss->reset) in sun4i_ss_probe() 428 ss->dev = &pdev->dev; in sun4i_ss_probe() 458 ss_algs[i].ss = ss; in sun4i_ss_probe() 488 ss->dbgfs_stats = debugfs_create_file("stats", 0444, ss->dbgfs_dir, ss, in sun4i_ss_probe() 508 sun4i_ss_pm_exit(ss); in sun4i_ss_probe() [all …]
|
H A D | sun4i-ss-prng.c | 11 memcpy(algt->ss->seed, seed, slen); in sun4i_ss_prng_seed() 26 struct sun4i_ss_ctx *ss; in sun4i_ss_prng_generate() local 30 ss = algt->ss; in sun4i_ss_prng_generate() 32 err = pm_runtime_resume_and_get(ss->dev); in sun4i_ss_prng_generate() 41 spin_lock_bh(&ss->slock); in sun4i_ss_prng_generate() 43 writel(mode, ss->base + SS_CTL); in sun4i_ss_prng_generate() 48 writel(ss->seed[i], ss->base + SS_KEY0 + i * 4); in sun4i_ss_prng_generate() 59 ss->seed[i] = v; in sun4i_ss_prng_generate() 63 writel(0, ss->base + SS_CTL); in sun4i_ss_prng_generate() 64 spin_unlock_bh(&ss->slock); in sun4i_ss_prng_generate() [all …]
|
/openbmc/linux/drivers/net/ethernet/myricom/myri10ge/ |
H A D | myri10ge.c | 1002 ss = &mgp->ss[i]; in myri10ge_reset() 1013 ss = &mgp->ss[i]; in myri10ge_reset() 1034 ss = &mgp->ss[i]; in myri10ge_reset() 1048 ss = &mgp->ss[i]; in myri10ge_reset() 1416 dev_queue = netdev_get_tx_queue(ss->dev, ss - ss->mgp->ss); in myri10ge_tx_done() 1593 if (ss == mgp->ss) in myri10ge_intr() 1821 ss = &mgp->ss[0]; in myri10ge_get_ethtool_stats() 3438 ss = mgp->ss; in myri10ge_watchdog() 3488 ss = &mgp->ss[i]; in myri10ge_watchdog_timer() 3538 ss = &mgp->ss[i]; in myri10ge_free_slices() [all …]
|
/openbmc/linux/sound/soc/meson/ |
H A D | axg-fifo.c | 99 struct snd_pcm_substream *ss) in axg_fifo_pcm_pointer() argument 112 struct snd_pcm_substream *ss, in axg_fifo_pcm_hw_params() argument 157 struct snd_pcm_substream *ss, in g12a_fifo_pcm_hw_params() argument 176 struct snd_pcm_substream *ss) in axg_fifo_pcm_hw_free() argument 202 struct snd_pcm_substream *ss = dev_id; in axg_fifo_pcm_irq_block() local 222 struct snd_pcm_substream *ss = dev_id; in axg_fifo_pcm_irq_block_thread() local 224 snd_pcm_period_elapsed(ss); in axg_fifo_pcm_irq_block_thread() 230 struct snd_pcm_substream *ss) in axg_fifo_pcm_open() argument 290 free_irq(fifo->irq, ss); in axg_fifo_pcm_open() 296 struct snd_pcm_substream *ss) in axg_fifo_pcm_close() argument [all …]
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | sctp_hello.c | 13 if (ss->ss_family == AF_INET) { in set_addr() 14 struct sockaddr_in *a = (struct sockaddr_in *)ss; in set_addr() 31 struct sockaddr_storage ss; in do_client() local 40 bzero((void *)&ss, sizeof(ss)); in do_client() 49 set_addr(&ss, argv[5], argv[6], &len); in do_client() 50 ret = bind(csk, (struct sockaddr *)&ss, len); in do_client() 57 set_addr(&ss, argv[3], argv[4], &len); in do_client() 58 ret = connect(csk, (struct sockaddr *)&ss, len); in do_client() 76 struct sockaddr_storage ss; in main() local 109 set_addr(&ss, argv[3], argv[4], &len); in main() [all …]
|
/openbmc/linux/drivers/media/pci/solo6x10/ |
H A D | solo6x10-g723.c | 80 struct snd_pcm_substream *ss; in solo_g723_isr() local 83 for (ss = pstr->substream; ss != NULL; ss = ss->next) { in solo_g723_isr() 84 if (snd_pcm_substream_chip(ss) == NULL) in solo_g723_isr() 88 if (snd_pcm_substream_chip(ss) == solo_dev) in solo_g723_isr() 92 solo_pcm = snd_pcm_substream_chip(ss); in solo_g723_isr() 96 snd_pcm_period_elapsed(ss); in solo_g723_isr() 136 ss->runtime->hw = snd_solo_pcm_hw; in snd_solo_pcm_open() 138 snd_pcm_substream_chip(ss) = solo_pcm; in snd_solo_pcm_open() 221 (ss->number * G723_PERIOD_BYTES), in snd_solo_pcm_copy() 294 struct snd_pcm_substream *ss; in solo_snd_pcm_init() local [all …]
|
/openbmc/openbmc/poky/meta/recipes-support/lzo/lzo/ |
H A D | 0001-Use-memcpy-instead-of-reinventing-it.patch | 45 +#define LZO_MEMOPS_COPY1(dd,ss) memcpy(dd, ss, 1) 46 +#define LZO_MEMOPS_COPY2(dd,ss) memcpy(dd, ss, 2) 47 +#define LZO_MEMOPS_COPY4(dd,ss) memcpy(dd, ss, 4) 48 +#define LZO_MEMOPS_COPY8(dd,ss) memcpy(dd, ss, 8) 49 +#define LZO_MEMOPS_COPYN(dd,ss,nn) memcpy(dd, ss, nn) 51 __lzo_static_forceinline lzo_uint16_t lzo_memops_get_le16(const lzo_voidp ss) 70 +#define LZO_MEMOPS_COPY1(dd,ss) memcpy(dd, ss, 1) 71 +#define LZO_MEMOPS_COPY2(dd,ss) memcpy(dd, ss, 2) 72 +#define LZO_MEMOPS_COPY4(dd,ss) memcpy(dd, ss, 4) 73 +#define LZO_MEMOPS_COPY8(dd,ss) memcpy(dd, ss, 8) [all …]
|
/openbmc/u-boot/common/ |
H A D | usb_storage.c | 982 i = ss->transport(srb, ss); in usb_inquiry() 1007 ss->transport(srb, ss); in usb_request_sense() 1057 if (ss->transport(srb, ss) == USB_STOR_TRANSPORT_GOOD) in usb_read_capacity() 1078 return ss->transport(srb, ss); in usb_read_10() 1095 return ss->transport(srb, ss); in usb_write_10() 1376 ss->ep_in, ss->ep_out, ss->ep_int); in usb_storage_probe() 1380 !ss->ep_in || !ss->ep_out || in usb_storage_probe() 1381 (ss->protocol == US_PR_CBI && ss->ep_int == 0)) { in usb_storage_probe() 1399 ss->irqinterval = (ss->irqinterval > 0) ? ss->irqinterval : 255; in usb_storage_probe() 1400 ss->irqpipe = usb_rcvintpipe(ss->pusb_dev, ss->ep_int); in usb_storage_probe() [all …]
|
/openbmc/phosphor-logging/test/ |
H A D | remote_logging_test_config.cpp | 13 parseConfig(std::istream& ss); 77 std::stringstream ss(str); in TEST_F() local 78 auto ret = phosphor::rsyslog_config::internal::parseConfig(ss); in TEST_F() 88 std::stringstream ss(str); in TEST_F() local 97 std::stringstream ss(str); in TEST_F() local 106 std::stringstream ss(str); in TEST_F() local 115 std::stringstream ss(str); in TEST_F() local 124 std::stringstream ss(str); in TEST_F() local 133 std::stringstream ss(str); in TEST_F() local 142 std::stringstream ss(str); in TEST_F() local [all …]
|
/openbmc/linux/drivers/gpu/drm/i915/gt/ |
H A D | intel_sseu.c | 75 for (ss = 0; ss < sseu->max_subslices; ss++) in compute_eu_total() 103 for (ss = 0; ss < sseu->max_subslices; ss++) { in intel_sseu_copy_eumask_to_user() 137 for (ss = 0; ss < sseu->max_subslices; ss++) { in intel_sseu_copy_ssmask_to_user() 154 int ss; in gen11_compute_sseu_info() local 159 for (ss = 0; ss < sseu->max_subslices; ss++) in gen11_compute_sseu_info() 170 int ss; in xehp_compute_sseu_info() local 179 for (ss = 0; ss < sseu->max_subslices; ss++) in xehp_compute_sseu_info() 419 for (ss = 0; ss < sseu->max_subslices; ss++) { in gen9_sseu_info_init() 530 for (ss = 0; ss < sseu->max_subslices; ss++) { in bdw_sseu_info_init() 627 for (ss = 0; ss < sseu->max_subslices; ss++) { in hsw_sseu_info_init() [all …]
|
/openbmc/qemu/hw/s390x/ |
H A D | s390-skeys.c | 34 S390SKeysState *ss; in s390_get_skeys_device() local 37 assert(ss); in s390_get_skeys_device() 38 return ss; in s390_get_skeys_device() 86 if (!skeyclass->skeys_are_enabled(ss)) { in hmp_info_skeys() 132 if (!skeyclass->skeys_are_enabled(ss)) { in qmp_dump_skeys() 302 S390SKeysState *ss = S390_SKEYS(opaque); in s390_storage_keys_save() local 310 if (!skeyclass->skeys_are_enabled(ss)) { in s390_storage_keys_save() 370 S390SKeysState *ss = S390_SKEYS(opaque); in s390_storage_keys_load() local 379 skeyclass->enable_skeys(ss); in s390_storage_keys_load() 443 S390SKeysState *ss = S390_SKEYS(dev); in s390_skeys_realize() local [all …]
|
/openbmc/phosphor-power/phosphor-regulators/src/actions/ |
H A D | compare_vpd_action.cpp | 50 std::ostringstream ss; in toString() local 51 ss << "compare_vpd: { "; in toString() 52 ss << "fru: " << fru << ", "; in toString() 53 ss << "keyword: " << keyword << ", "; in toString() 54 ss << "value: [ "; in toString() 55 ss << std::hex << std::uppercase; in toString() 58 ss << ((i > 0) ? ", " : "") << "0x" << static_cast<uint16_t>(value[i]); in toString() 60 ss << " ] }"; in toString() 61 return ss.str(); in toString()
|