/linux-6.6.21/drivers/spi/ |
D | spi-sprd.c | 168 int (*read_bufs)(struct sprd_spi *ss, u32 len); 169 int (*write_bufs)(struct sprd_spi *ss, u32 len); 172 static u32 sprd_spi_transfer_max_timeout(struct sprd_spi *ss, in sprd_spi_transfer_max_timeout() argument 180 u32 bit_time_us = DIV_ROUND_UP(USEC_PER_SEC, ss->hw_speed_hz); in sprd_spi_transfer_max_timeout() 186 u32 interval_cycle = SPRD_SPI_FIFO_SIZE * ss->word_delay; in sprd_spi_transfer_max_timeout() 188 ss->src_clk); in sprd_spi_transfer_max_timeout() 193 static int sprd_spi_wait_for_tx_end(struct sprd_spi *ss, struct spi_transfer *t) in sprd_spi_wait_for_tx_end() argument 198 us = sprd_spi_transfer_max_timeout(ss, t); in sprd_spi_wait_for_tx_end() 199 ret = readl_relaxed_poll_timeout(ss->base + SPRD_SPI_INT_RAW_STS, val, in sprd_spi_wait_for_tx_end() 202 dev_err(ss->dev, "SPI error, spi send timeout!\n"); in sprd_spi_wait_for_tx_end() [all …]
|
D | spi-sh.c | 81 static void spi_sh_write(struct spi_sh_data *ss, unsigned long data, in spi_sh_write() argument 84 if (ss->width == 8) in spi_sh_write() 85 iowrite8(data, ss->addr + (offset >> 2)); in spi_sh_write() 86 else if (ss->width == 32) in spi_sh_write() 87 iowrite32(data, ss->addr + offset); in spi_sh_write() 90 static unsigned long spi_sh_read(struct spi_sh_data *ss, unsigned long offset) in spi_sh_read() argument 92 if (ss->width == 8) in spi_sh_read() 93 return ioread8(ss->addr + (offset >> 2)); in spi_sh_read() 94 else if (ss->width == 32) in spi_sh_read() 95 return ioread32(ss->addr + offset); in spi_sh_read() [all …]
|
/linux-6.6.21/drivers/crypto/allwinner/sun8i-ss/ |
D | sun8i-ss-core.c | 62 int sun8i_ss_get_engine_number(struct sun8i_ss_dev *ss) in sun8i_ss_get_engine_number() argument 64 return atomic_inc_return(&ss->flow) % MAXFLOW; in sun8i_ss_get_engine_number() 67 int sun8i_ss_run_task(struct sun8i_ss_dev *ss, struct sun8i_cipher_req_ctx *rctx, in sun8i_ss_run_task() argument 76 ss->flows[flow].stat_req++; in sun8i_ss_run_task() 107 mutex_lock(&ss->mlock); in sun8i_ss_run_task() 108 writel(rctx->p_key, ss->base + SS_KEY_ADR_REG); in sun8i_ss_run_task() 113 writel(rctx->p_iv[0], ss->base + SS_IV_ADR_REG); in sun8i_ss_run_task() 115 writel(rctx->t_dst[i - 1].addr + rctx->t_dst[i - 1].len * 4 - ivlen, ss->base + SS_IV_ADR_REG); in sun8i_ss_run_task() 117 writel(rctx->p_iv[i], ss->base + SS_IV_ADR_REG); in sun8i_ss_run_task() 121 dev_dbg(ss->dev, in sun8i_ss_run_task() [all …]
|
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() 76 dev_err(ss->dev, "The PRNG is not seeded\n"); in sun8i_ss_prng_generate() 95 flow = sun8i_ss_get_engine_number(ss); in sun8i_ss_prng_generate() 108 dma_iv = dma_map_single(ss->dev, ctx->seed, ctx->slen, DMA_TO_DEVICE); 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() 115 dma_dst = dma_map_single(ss->dev, d, todo, DMA_FROM_DEVICE); in sun8i_ss_prng_generate() 116 if (dma_mapping_error(ss->dev, dma_dst)) { in sun8i_ss_prng_generate() 117 dev_err(ss->dev, "Cannot DMA MAP DST\n"); in sun8i_ss_prng_generate() [all …]
|
D | sun8i-ss-cipher.c | 124 struct sun8i_ss_dev *ss = op->ss; in sun8i_ss_setup_ivs() local 130 struct sun8i_ss_flow *sf = &ss->flows[rctx->flow]; in sun8i_ss_setup_ivs() 150 a = dma_map_single(ss->dev, sf->iv[i], ivsize, DMA_TO_DEVICE); in sun8i_ss_setup_ivs() 151 if (dma_mapping_error(ss->dev, a)) { in sun8i_ss_setup_ivs() 153 dev_err(ss->dev, "Cannot DMA MAP IV\n"); in sun8i_ss_setup_ivs() 176 dma_unmap_single(ss->dev, rctx->p_iv[i], ivsize, DMA_TO_DEVICE); in sun8i_ss_setup_ivs() 187 struct sun8i_ss_dev *ss = op->ss; in sun8i_ss_cipher() local 191 struct sun8i_ss_flow *sf = &ss->flows[rctx->flow]; in sun8i_ss_cipher() 203 dev_dbg(ss->dev, "%s %s %u %x IV(%p %u) key=%u\n", __func__, in sun8i_ss_cipher() 213 rctx->op_mode = ss->variant->op_mode[algt->ss_blockmode]; in sun8i_ss_cipher() [all …]
|
D | sun8i-ss-hash.c | 51 dev_err(tfmctx->ss->dev, "shash init error ret=%d\n", ret); in sun8i_ss_hashkey() 56 dev_err(tfmctx->ss->dev, "shash finup error\n"); in sun8i_ss_hashkey() 120 op->ss = algt->ss; in sun8i_ss_hash_init_tfm() 126 dev_err(algt->ss->dev, "Fallback driver could no be loaded\n"); in sun8i_ss_hash_init_tfm() 140 err = pm_runtime_get_sync(op->ss->dev); in sun8i_ss_hash_init_tfm() 145 pm_runtime_put_noidle(op->ss->dev); in sun8i_ss_hash_init_tfm() 158 pm_runtime_put_sync_suspend(tfmctx->ss->dev); in sun8i_ss_hash_exit_tfm() 298 static int sun8i_ss_run_hash_task(struct sun8i_ss_dev *ss, in sun8i_ss_run_hash_task() argument 307 ss->flows[flow].stat_req++; in sun8i_ss_run_hash_task() 322 mutex_lock(&ss->mlock); in sun8i_ss_run_hash_task() [all …]
|
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
|
/linux-6.6.21/drivers/gpu/drm/imx/dcss/ |
D | dcss-ss.c | 73 static void dcss_ss_write(struct dcss_ss *ss, u32 val, u32 ofs) in dcss_ss_write() argument 75 if (!ss->in_use) in dcss_ss_write() 76 dcss_writel(val, ss->base_reg + ofs); in dcss_ss_write() 78 dcss_ctxld_write(ss->ctxld, ss->ctx_id, val, in dcss_ss_write() 79 ss->base_ofs + ofs); 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() [all …]
|
/linux-6.6.21/tools/testing/selftests/x86/ |
D | mov_ss_trap.c | 47 unsigned short ss; variable 66 dr0 = (unsigned long)&ss; in enable_watchpoint() 147 asm volatile ("mov %%ss, %[ss]" : [ss] "=m" (ss)); in main() 148 printf("\tSS = 0x%hx, &SS = 0x%p\n", ss, &ss); in main() 158 asm volatile ("mov %[ss], %[tmp]" : [tmp] "=r" (nr) : [ss] "m" (ss)); in main() 161 asm volatile ("mov %[ss], %%ss; int3" :: [ss] "m" (ss)); in main() 164 asm volatile ("mov %[ss], %%ss; .byte 0xcd, 0x3" :: [ss] "m" (ss)); in main() 167 asm volatile ("mov %[ss], %%ss; .byte 0x2e, 0x2e; int3" :: [ss] "m" (ss)); in main() 170 asm volatile ("mov %[ss], %%ss; .fill 14,1,0x2e; int3" :: [ss] "m" (ss)); in main() 174 asm volatile ("mov %[ss], %%ss; int $4" :: [ss] "m" (ss)); in main() [all …]
|
/linux-6.6.21/drivers/usb/gadget/function/ |
D | f_sourcesink.c | 320 struct f_sourcesink *ss = func_to_ss(f); in sourcesink_bind() local 332 ss->in_ep = usb_ep_autoconfig(cdev->gadget, &fs_source_desc); in sourcesink_bind() 333 if (!ss->in_ep) { in sourcesink_bind() 340 ss->out_ep = usb_ep_autoconfig(cdev->gadget, &fs_sink_desc); in sourcesink_bind() 341 if (!ss->out_ep) in sourcesink_bind() 345 if (ss->isoc_interval < 1) in sourcesink_bind() 346 ss->isoc_interval = 1; in sourcesink_bind() 347 if (ss->isoc_interval > 16) in sourcesink_bind() 348 ss->isoc_interval = 16; in sourcesink_bind() 349 if (ss->isoc_mult > 2) in sourcesink_bind() [all …]
|
/linux-6.6.21/drivers/crypto/allwinner/sun4i-ss/ |
D | sun4i-ss-core.c | 242 if (!ss_algs[i].ss) in sun4i_ss_debugfs_show() 276 struct sun4i_ss_ctx *ss = dev_get_drvdata(dev); in sun4i_ss_pm_suspend() local 278 reset_control_assert(ss->reset); in sun4i_ss_pm_suspend() 280 clk_disable_unprepare(ss->ssclk); in sun4i_ss_pm_suspend() 281 clk_disable_unprepare(ss->busclk); in sun4i_ss_pm_suspend() 287 struct sun4i_ss_ctx *ss = dev_get_drvdata(dev); in sun4i_ss_pm_resume() local 291 err = clk_prepare_enable(ss->busclk); in sun4i_ss_pm_resume() 293 dev_err(ss->dev, "Cannot prepare_enable busclk\n"); in sun4i_ss_pm_resume() 297 err = clk_prepare_enable(ss->ssclk); in sun4i_ss_pm_resume() 299 dev_err(ss->dev, "Cannot prepare_enable ssclk\n"); in sun4i_ss_pm_resume() [all …]
|
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() 52 readsl(ss->base + SS_TXFIFO, data, len / 4); in sun4i_ss_prng_generate() 58 v = readl(ss->base + SS_KEY0 + i * 4); in sun4i_ss_prng_generate() 59 ss->seed[i] = v; in sun4i_ss_prng_generate() [all …]
|
D | Makefile | 2 obj-$(CONFIG_CRYPTO_DEV_SUN4I_SS) += sun4i-ss.o 3 sun4i-ss-y += sun4i-ss-core.o sun4i-ss-hash.o sun4i-ss-cipher.o 4 sun4i-ss-$(CONFIG_CRYPTO_DEV_SUN4I_SS_PRNG) += sun4i-ss-prng.o
|
/linux-6.6.21/drivers/net/ethernet/myricom/myri10ge/ |
D | myri10ge.c | 198 struct myri10ge_slice_state *ss; member 917 struct myri10ge_slice_state *ss; in myri10ge_reset() local 945 bytes = mgp->max_intr_slots * sizeof(*mgp->ss[0].rx_done.entry); in myri10ge_reset() 1002 ss = &mgp->ss[i]; in myri10ge_reset() 1003 cmd.data0 = MYRI10GE_LOWPART_TO_U32(ss->rx_done.bus); in myri10ge_reset() 1004 cmd.data1 = MYRI10GE_HIGHPART_TO_U32(ss->rx_done.bus); in myri10ge_reset() 1013 ss = &mgp->ss[i]; in myri10ge_reset() 1014 ss->irq_claim = in myri10ge_reset() 1034 ss = &mgp->ss[i]; in myri10ge_reset() 1036 ss->dca_tag = (__iomem __be32 *) in myri10ge_reset() [all …]
|
/linux-6.6.21/sound/soc/meson/ |
D | axg-fifo.c | 46 static struct snd_soc_dai *axg_fifo_dai(struct snd_pcm_substream *ss) in axg_fifo_dai() argument 48 struct snd_soc_pcm_runtime *rtd = ss->private_data; in axg_fifo_dai() 53 static struct axg_fifo *axg_fifo_data(struct snd_pcm_substream *ss) in axg_fifo_data() argument 55 struct snd_soc_dai *dai = axg_fifo_dai(ss); in axg_fifo_data() 60 static struct device *axg_fifo_dev(struct snd_pcm_substream *ss) in axg_fifo_dev() argument 62 struct snd_soc_dai *dai = axg_fifo_dai(ss); in axg_fifo_dev() 74 struct snd_pcm_substream *ss, int cmd) in axg_fifo_pcm_trigger() argument 76 struct axg_fifo *fifo = axg_fifo_data(ss); in axg_fifo_pcm_trigger() 98 struct snd_pcm_substream *ss) in axg_fifo_pcm_pointer() argument 100 struct axg_fifo *fifo = axg_fifo_data(ss); in axg_fifo_pcm_pointer() [all …]
|
/linux-6.6.21/tools/testing/selftests/net/ |
D | sctp_hello.c | 11 static void set_addr(struct sockaddr_storage *ss, char *ip, char *port, int *len) in set_addr() argument 13 if (ss->ss_family == AF_INET) { in set_addr() 14 struct sockaddr_in *a = (struct sockaddr_in *)ss; in set_addr() 20 struct sockaddr_in6 *a = (struct sockaddr_in6 *)ss; in set_addr() 31 struct sockaddr_storage ss; in do_client() local 40 bzero((void *)&ss, sizeof(ss)); in do_client() 41 ss.ss_family = !strcmp(argv[2], "-4") ? AF_INET : AF_INET6; in do_client() 42 csk = socket(ss.ss_family, SOCK_STREAM, IPPROTO_SCTP); 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() [all …]
|
/linux-6.6.21/drivers/media/pci/solo6x10/ |
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() 118 static int snd_solo_pcm_open(struct snd_pcm_substream *ss) in snd_solo_pcm_open() argument 120 struct solo_dev *solo_dev = snd_pcm_substream_chip(ss); in snd_solo_pcm_open() 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() [all …]
|
/linux-6.6.21/drivers/gpu/drm/i915/gt/ |
D | intel_sseu.c | 72 int s, ss, total = 0; in compute_eu_total() local 75 for (ss = 0; ss < sseu->max_subslices; ss++) in compute_eu_total() 77 total += hweight16(sseu->eu_mask.xehp[ss]); in compute_eu_total() 79 total += hweight16(sseu->eu_mask.hsw[s][ss]); in compute_eu_total() 100 int s, ss, i; in intel_sseu_copy_eumask_to_user() local 103 for (ss = 0; ss < sseu->max_subslices; ss++) { in intel_sseu_copy_eumask_to_user() 106 ss * eu_stride; in intel_sseu_copy_eumask_to_user() 107 u16 mask = sseu_get_eus(sseu, s, ss); in intel_sseu_copy_eumask_to_user() 134 int s, ss, i; in intel_sseu_copy_ssmask_to_user() local 137 for (ss = 0; ss < sseu->max_subslices; ss++) { in intel_sseu_copy_ssmask_to_user() [all …]
|
D | intel_sseu_debugfs.c | 22 int ss; in cherryview_sseu_device_status() local 29 for (ss = 0; ss < ss_max; ss++) { in cherryview_sseu_device_status() 32 if (sig1[ss] & CHV_SS_PG_ENABLE) in cherryview_sseu_device_status() 37 sseu->subslice_mask.hsw[0] |= BIT(ss); in cherryview_sseu_device_status() 38 eu_cnt = ((sig1[ss] & CHV_EU08_PG_ENABLE) ? 0 : 2) + in cherryview_sseu_device_status() 39 ((sig1[ss] & CHV_EU19_PG_ENABLE) ? 0 : 2) + in cherryview_sseu_device_status() 40 ((sig1[ss] & CHV_EU210_PG_ENABLE) ? 0 : 2) + in cherryview_sseu_device_status() 41 ((sig2[ss] & CHV_EU311_PG_ENABLE) ? 0 : 2); in cherryview_sseu_device_status() 56 int s, ss; in gen11_sseu_device_status() local 90 for (ss = 0; ss < info->sseu.max_subslices; ss++) { in gen11_sseu_device_status() [all …]
|
/linux-6.6.21/drivers/media/pci/tw686x/ |
D | tw686x-audio.c | 48 if (!ac->ss || !ac->curr_bufs[0] || !ac->curr_bufs[1]) { in tw686x_audio_irq() 77 snd_pcm_period_elapsed(ac->ss); in tw686x_audio_irq() 104 static int tw686x_pcm_open(struct snd_pcm_substream *ss) in tw686x_pcm_open() argument 106 struct tw686x_dev *dev = snd_pcm_substream_chip(ss); in tw686x_pcm_open() 107 struct tw686x_audio_channel *ac = &dev->audio_channels[ss->number]; in tw686x_pcm_open() 108 struct snd_pcm_runtime *rt = ss->runtime; in tw686x_pcm_open() 111 ac->ss = ss; in tw686x_pcm_open() 121 static int tw686x_pcm_close(struct snd_pcm_substream *ss) in tw686x_pcm_close() argument 123 struct tw686x_dev *dev = snd_pcm_substream_chip(ss); in tw686x_pcm_close() 124 struct tw686x_audio_channel *ac = &dev->audio_channels[ss->number]; in tw686x_pcm_close() [all …]
|
/linux-6.6.21/kernel/cgroup/ |
D | cgroup.c | 245 struct cgroup_subsys *ss); 486 struct cgroup_subsys *ss) in cgroup_css() argument 488 if (CGROUP_HAS_SUBSYS_CONFIG && ss) in cgroup_css() 489 return rcu_dereference_check(cgrp->subsys[ss->id], in cgroup_css() 506 struct cgroup_subsys *ss) in cgroup_e_css_by_mask() argument 510 if (!ss) in cgroup_e_css_by_mask() 517 while (!(cgroup_ss_mask(cgrp) & (1 << ss->id))) { in cgroup_e_css_by_mask() 523 return cgroup_css(cgrp, ss); in cgroup_e_css_by_mask() 540 struct cgroup_subsys *ss) in cgroup_e_css() argument 548 css = cgroup_css(cgrp, ss); in cgroup_e_css() [all …]
|
/linux-6.6.21/include/rdma/ |
D | rdmavt_mr.h | 93 static inline void rvt_put_ss(struct rvt_sge_state *ss) in rvt_put_ss() argument 95 while (ss->num_sge) { in rvt_put_ss() 96 rvt_put_mr(ss->sge.mr); in rvt_put_ss() 97 if (--ss->num_sge) in rvt_put_ss() 98 ss->sge = *ss->sg_list++; in rvt_put_ss() 114 static inline void rvt_update_sge(struct rvt_sge_state *ss, u32 length, in rvt_update_sge() argument 117 struct rvt_sge *sge = &ss->sge; in rvt_update_sge() 125 if (--ss->num_sge) in rvt_update_sge() 126 *sge = *ss->sg_list++; in rvt_update_sge() 138 static inline void rvt_skip_sge(struct rvt_sge_state *ss, u32 length, in rvt_skip_sge() argument [all …]
|
/linux-6.6.21/security/selinux/ |
D | Makefile | 17 ss/ebitmap.o ss/hashtab.o ss/symtab.o ss/sidtab.o ss/avtab.o \ 18 ss/policydb.o ss/services.o ss/conditional.o ss/mls.o ss/context.o
|
/linux-6.6.21/drivers/infiniband/hw/qib/ |
D | qib_sdma.c | 68 static void sdma_get(struct qib_sdma_state *ss) in sdma_get() argument 70 kref_get(&ss->kref); in sdma_get() 75 struct qib_sdma_state *ss = in sdma_complete() local 78 complete(&ss->comp); in sdma_complete() 81 static void sdma_put(struct qib_sdma_state *ss) in sdma_put() argument 83 kref_put(&ss->kref, sdma_complete); in sdma_put() 86 static void sdma_finalput(struct qib_sdma_state *ss) in sdma_finalput() argument 88 sdma_put(ss); in sdma_finalput() 89 wait_for_completion(&ss->comp); in sdma_finalput() 172 struct qib_sdma_state *ss = &ppd->sdma_state; in sdma_hw_start_up() local [all …]
|
/linux-6.6.21/net/netfilter/ |
D | nfnetlink.c | 158 nfnetlink_find_client(u16 type, const struct nfnetlink_subsystem *ss) in nfnetlink_find_client() argument 162 if (cb_id >= ss->cb_count) in nfnetlink_find_client() 165 return &ss->cb[cb_id]; in nfnetlink_find_client() 221 const struct nfnetlink_subsystem *ss; in nfnetlink_rcv_msg() local 232 ss = nfnetlink_get_subsys(type); in nfnetlink_rcv_msg() 233 if (!ss) { in nfnetlink_rcv_msg() 238 ss = nfnetlink_get_subsys(type); in nfnetlink_rcv_msg() 239 if (!ss) in nfnetlink_rcv_msg() 247 nc = nfnetlink_find_client(type, ss); in nfnetlink_rcv_msg() 270 if (ss->cb[cb_id].attr_count > NFNL_MAX_ATTR_COUNT) { in nfnetlink_rcv_msg() [all …]
|