/Linux-v5.4/drivers/spi/ |
D | spi-sprd.c | 169 int (*read_bufs)(struct sprd_spi *ss, u32 len); 170 int (*write_bufs)(struct sprd_spi *ss, u32 len); 173 static u32 sprd_spi_transfer_max_timeout(struct sprd_spi *ss, in sprd_spi_transfer_max_timeout() argument 181 u32 bit_time_us = DIV_ROUND_UP(USEC_PER_SEC, ss->hw_speed_hz); in sprd_spi_transfer_max_timeout() 187 u32 interval_cycle = SPRD_SPI_FIFO_SIZE * ss->word_delay; in sprd_spi_transfer_max_timeout() 189 ss->src_clk); in sprd_spi_transfer_max_timeout() 194 static int sprd_spi_wait_for_tx_end(struct sprd_spi *ss, struct spi_transfer *t) in sprd_spi_wait_for_tx_end() argument 199 us = sprd_spi_transfer_max_timeout(ss, t); in sprd_spi_wait_for_tx_end() 200 ret = readl_relaxed_poll_timeout(ss->base + SPRD_SPI_INT_RAW_STS, val, in sprd_spi_wait_for_tx_end() 203 dev_err(ss->dev, "SPI error, spi send timeout!\n"); in sprd_spi_wait_for_tx_end() [all …]
|
D | spi-sh.c | 84 static void spi_sh_write(struct spi_sh_data *ss, unsigned long data, in spi_sh_write() argument 87 if (ss->width == 8) in spi_sh_write() 88 iowrite8(data, ss->addr + (offset >> 2)); in spi_sh_write() 89 else if (ss->width == 32) in spi_sh_write() 90 iowrite32(data, ss->addr + offset); in spi_sh_write() 93 static unsigned long spi_sh_read(struct spi_sh_data *ss, unsigned long offset) in spi_sh_read() argument 95 if (ss->width == 8) in spi_sh_read() 96 return ioread8(ss->addr + (offset >> 2)); in spi_sh_read() 97 else if (ss->width == 32) in spi_sh_read() 98 return ioread32(ss->addr + offset); in spi_sh_read() [all …]
|
/Linux-v5.4/tools/testing/selftests/x86/ |
D | mov_ss_trap.c | 47 unsigned short ss; variable 67 dr0 = (unsigned long)&ss; in enable_watchpoint() 148 asm volatile ("mov %%ss, %[ss]" : [ss] "=m" (ss)); in main() 149 printf("\tSS = 0x%hx, &SS = 0x%p\n", ss, &ss); in main() 159 asm volatile ("mov %[ss], %[tmp]" : [tmp] "=r" (nr) : [ss] "m" (ss)); in main() 162 asm volatile ("mov %[ss], %%ss; int3" :: [ss] "m" (ss)); in main() 165 asm volatile ("mov %[ss], %%ss; .byte 0xcd, 0x3" :: [ss] "m" (ss)); in main() 168 asm volatile ("mov %[ss], %%ss; .byte 0x2e, 0x2e; int3" :: [ss] "m" (ss)); in main() 171 asm volatile ("mov %[ss], %%ss; .fill 14,1,0x2e; int3" :: [ss] "m" (ss)); in main() 175 asm volatile ("mov %[ss], %%ss; int $4" :: [ss] "m" (ss)); in main() [all …]
|
/Linux-v5.4/drivers/net/ethernet/mediatek/ |
D | mtk_sgmii.c | 16 int mtk_sgmii_init(struct mtk_sgmii *ss, struct device_node *r, u32 ana_rgc3) in mtk_sgmii_init() argument 21 ss->ana_rgc3 = ana_rgc3; in mtk_sgmii_init() 28 ss->regmap[i] = syscon_node_to_regmap(np); in mtk_sgmii_init() 29 if (IS_ERR(ss->regmap[i])) in mtk_sgmii_init() 30 return PTR_ERR(ss->regmap[i]); in mtk_sgmii_init() 36 int mtk_sgmii_setup_mode_an(struct mtk_sgmii *ss, int id) in mtk_sgmii_setup_mode_an() argument 40 if (!ss->regmap[id]) in mtk_sgmii_setup_mode_an() 44 regmap_write(ss->regmap[id], SGMSYS_PCS_LINK_TIMER, in mtk_sgmii_setup_mode_an() 47 regmap_read(ss->regmap[id], SGMSYS_SGMII_MODE, &val); in mtk_sgmii_setup_mode_an() 49 regmap_write(ss->regmap[id], SGMSYS_SGMII_MODE, val); in mtk_sgmii_setup_mode_an() [all …]
|
/Linux-v5.4/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-v5.4/drivers/crypto/sunxi-ss/ |
D | sun4i-ss-core.c | 233 struct sun4i_ss_ctx *ss; in sun4i_ss_probe() local 238 ss = devm_kzalloc(&pdev->dev, sizeof(*ss), GFP_KERNEL); in sun4i_ss_probe() 239 if (!ss) in sun4i_ss_probe() 242 ss->base = devm_platform_ioremap_resource(pdev, 0); in sun4i_ss_probe() 243 if (IS_ERR(ss->base)) { in sun4i_ss_probe() 245 return PTR_ERR(ss->base); in sun4i_ss_probe() 248 ss->ssclk = devm_clk_get(&pdev->dev, "mod"); in sun4i_ss_probe() 249 if (IS_ERR(ss->ssclk)) { in sun4i_ss_probe() 250 err = PTR_ERR(ss->ssclk); in sun4i_ss_probe() 256 ss->busclk = devm_clk_get(&pdev->dev, "ahb"); in sun4i_ss_probe() [all …]
|
D | sun4i-ss-prng.c | 10 memcpy(algt->ss->seed, seed, slen); in sun4i_ss_prng_seed() 25 struct sun4i_ss_ctx *ss; in sun4i_ss_prng_generate() local 29 ss = algt->ss; in sun4i_ss_prng_generate() 31 spin_lock_bh(&ss->slock); in sun4i_ss_prng_generate() 33 writel(mode, ss->base + SS_CTL); in sun4i_ss_prng_generate() 38 writel(ss->seed[i], ss->base + SS_KEY0 + i * 4); in sun4i_ss_prng_generate() 42 readsl(ss->base + SS_TXFIFO, data, len / 4); in sun4i_ss_prng_generate() 48 v = readl(ss->base + SS_KEY0 + i * 4); in sun4i_ss_prng_generate() 49 ss->seed[i] = v; in sun4i_ss_prng_generate() 53 writel(0, ss->base + SS_CTL); 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
|
D | sun4i-ss-cipher.c | 19 struct sun4i_ss_ctx *ss = op->ss; in sun4i_ss_opti_poll() local 41 dev_err_ratelimited(ss->dev, "ERROR: Some SGs are NULL\n"); in sun4i_ss_opti_poll() 45 spin_lock_irqsave(&ss->slock, flags); in sun4i_ss_opti_poll() 48 writel(*(op->key + i / 4), ss->base + SS_KEY0 + i); in sun4i_ss_opti_poll() 53 writel(v, ss->base + SS_IV0 + i * 4); in sun4i_ss_opti_poll() 56 writel(mode, ss->base + SS_CTL); in sun4i_ss_opti_poll() 65 dev_err_ratelimited(ss->dev, "ERROR: sg_miter return null\n"); in sun4i_ss_opti_poll() 78 writesl(ss->base + SS_RXFIFO, mi.addr + oi, todo); in sun4i_ss_opti_poll() 86 spaces = readl(ss->base + SS_FCSR); in sun4i_ss_opti_poll() 93 readsl(ss->base + SS_TXFIFO, mo.addr + oo, todo); in sun4i_ss_opti_poll() [all …]
|
D | sun4i-ss-hash.c | 26 op->ss = algt->ss; in sun4i_hash_crainit() 182 struct sun4i_ss_ctx *ss = tfmctx->ss; in sun4i_hash() local 188 dev_dbg(ss->dev, "%s %s bc=%llu len=%u mode=%x wl=%u h0=%0x", in sun4i_hash() 198 dev_err(ss->dev, "Cannot process too large request\n"); in sun4i_hash() 210 spin_lock_bh(&ss->slock); in sun4i_hash() 219 writel(op->hash[i], ss->base + SS_IV0 + i * 4); in sun4i_hash() 222 writel(op->mode | SS_ENABLED | ivmode, ss->base + SS_CTL); in sun4i_hash() 232 dev_err(ss->dev, "ERROR: Bound error %u %u\n", in sun4i_hash() 253 dev_dbg(ss->dev, "We can DMA\n"); in sun4i_hash() 288 writesl(ss->base + SS_RXFIFO, op->buf, in sun4i_hash() [all …]
|
/Linux-v5.4/drivers/net/ethernet/myricom/myri10ge/ |
D | myri10ge.c | 197 struct myri10ge_slice_state *ss; member 915 struct myri10ge_slice_state *ss; in myri10ge_reset() local 943 bytes = mgp->max_intr_slots * sizeof(*mgp->ss[0].rx_done.entry); in myri10ge_reset() 1000 ss = &mgp->ss[i]; in myri10ge_reset() 1001 cmd.data0 = MYRI10GE_LOWPART_TO_U32(ss->rx_done.bus); in myri10ge_reset() 1002 cmd.data1 = MYRI10GE_HIGHPART_TO_U32(ss->rx_done.bus); in myri10ge_reset() 1011 ss = &mgp->ss[i]; in myri10ge_reset() 1012 ss->irq_claim = in myri10ge_reset() 1032 ss = &mgp->ss[i]; in myri10ge_reset() 1034 ss->dca_tag = (__iomem __be32 *) in myri10ge_reset() [all …]
|
/Linux-v5.4/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() 73 static int axg_fifo_pcm_trigger(struct snd_pcm_substream *ss, int cmd) in axg_fifo_pcm_trigger() argument 75 struct axg_fifo *fifo = axg_fifo_data(ss); in axg_fifo_pcm_trigger() 95 static snd_pcm_uframes_t axg_fifo_pcm_pointer(struct snd_pcm_substream *ss) in axg_fifo_pcm_pointer() argument 97 struct axg_fifo *fifo = axg_fifo_data(ss); in axg_fifo_pcm_pointer() [all …]
|
/Linux-v5.4/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() 100 static int snd_solo_hw_params(struct snd_pcm_substream *ss, in snd_solo_hw_params() argument 103 return snd_pcm_lib_malloc_pages(ss, params_buffer_bytes(hw_params)); in snd_solo_hw_params() 106 static int snd_solo_hw_free(struct snd_pcm_substream *ss) in snd_solo_hw_free() argument 108 return snd_pcm_lib_free_pages(ss); in snd_solo_hw_free() [all …]
|
/Linux-v5.4/security/selinux/ss/ |
D | status.c | 47 mutex_lock(&state->ss->status_lock); in selinux_kernel_status_page() 48 if (!state->ss->status_page) { in selinux_kernel_status_page() 49 state->ss->status_page = alloc_page(GFP_KERNEL|__GFP_ZERO); in selinux_kernel_status_page() 51 if (state->ss->status_page) { in selinux_kernel_status_page() 52 status = page_address(state->ss->status_page); in selinux_kernel_status_page() 68 result = state->ss->status_page; in selinux_kernel_status_page() 69 mutex_unlock(&state->ss->status_lock); in selinux_kernel_status_page() 84 mutex_lock(&state->ss->status_lock); in selinux_status_update_setenforce() 85 if (state->ss->status_page) { in selinux_status_update_setenforce() 86 status = page_address(state->ss->status_page); in selinux_status_update_setenforce() [all …]
|
D | services.c | 81 void selinux_ss_init(struct selinux_ss **ss) in selinux_ss_init() argument 85 *ss = &selinux_ss; in selinux_ss_init() 246 struct policydb *p = &state->ss->policydb; in security_mls_enabled() 724 struct policydb *p = &state->ss->policydb; in security_validtrans_handle_fail() 766 read_lock(&state->ss->policy_rwlock); in security_compute_validatetrans() 768 policydb = &state->ss->policydb; in security_compute_validatetrans() 769 sidtab = state->ss->sidtab; in security_compute_validatetrans() 772 tclass = unmap_class(&state->ss->map, orig_tclass); in security_compute_validatetrans() 824 read_unlock(&state->ss->policy_rwlock); in security_compute_validatetrans() 866 read_lock(&state->ss->policy_rwlock); in security_bounded_transition() [all …]
|
/Linux-v5.4/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() 81 static int tw686x_pcm_hw_params(struct snd_pcm_substream *ss, in tw686x_pcm_hw_params() argument 84 return snd_pcm_lib_malloc_pages(ss, params_buffer_bytes(hw_params)); in tw686x_pcm_hw_params() 87 static int tw686x_pcm_hw_free(struct snd_pcm_substream *ss) in tw686x_pcm_hw_free() argument 89 return snd_pcm_lib_free_pages(ss); in tw686x_pcm_hw_free() 115 static int tw686x_pcm_open(struct snd_pcm_substream *ss) in tw686x_pcm_open() argument 117 struct tw686x_dev *dev = snd_pcm_substream_chip(ss); in tw686x_pcm_open() 118 struct tw686x_audio_channel *ac = &dev->audio_channels[ss->number]; in tw686x_pcm_open() 119 struct snd_pcm_runtime *rt = ss->runtime; in tw686x_pcm_open() [all …]
|
/Linux-v5.4/net/netfilter/ |
D | nfnetlink.c | 122 nfnetlink_find_client(u16 type, const struct nfnetlink_subsystem *ss) in nfnetlink_find_client() argument 126 if (cb_id >= ss->cb_count) in nfnetlink_find_client() 129 return &ss->cb[cb_id]; in nfnetlink_find_client() 164 const struct nfnetlink_subsystem *ss; in nfnetlink_rcv_msg() local 174 ss = nfnetlink_get_subsys(type); in nfnetlink_rcv_msg() 175 if (!ss) { in nfnetlink_rcv_msg() 180 ss = nfnetlink_get_subsys(type); in nfnetlink_rcv_msg() 181 if (!ss) in nfnetlink_rcv_msg() 189 nc = nfnetlink_find_client(type, ss); in nfnetlink_rcv_msg() 204 if (ss->cb[cb_id].attr_count > NFNL_MAX_ATTR_COUNT) { in nfnetlink_rcv_msg() [all …]
|
/Linux-v5.4/kernel/cgroup/ |
D | cgroup.c | 222 struct cgroup_subsys *ss); 467 struct cgroup_subsys *ss) in cgroup_css() argument 469 if (ss) in cgroup_css() 470 return rcu_dereference_check(cgrp->subsys[ss->id], in cgroup_css() 485 struct cgroup_subsys *ss) in cgroup_tryget_css() argument 490 css = cgroup_css(cgrp, ss); in cgroup_tryget_css() 509 struct cgroup_subsys *ss) in cgroup_e_css_by_mask() argument 513 if (!ss) in cgroup_e_css_by_mask() 520 while (!(cgroup_ss_mask(cgrp) & (1 << ss->id))) { in cgroup_e_css_by_mask() 526 return cgroup_css(cgrp, ss); in cgroup_e_css_by_mask() [all …]
|
/Linux-v5.4/include/rdma/ |
D | rdmavt_mr.h | 135 static inline void rvt_put_ss(struct rvt_sge_state *ss) in rvt_put_ss() argument 137 while (ss->num_sge) { in rvt_put_ss() 138 rvt_put_mr(ss->sge.mr); in rvt_put_ss() 139 if (--ss->num_sge) in rvt_put_ss() 140 ss->sge = *ss->sg_list++; in rvt_put_ss() 156 static inline void rvt_update_sge(struct rvt_sge_state *ss, u32 length, in rvt_update_sge() argument 159 struct rvt_sge *sge = &ss->sge; in rvt_update_sge() 167 if (--ss->num_sge) in rvt_update_sge() 168 *sge = *ss->sg_list++; in rvt_update_sge() 180 static inline void rvt_skip_sge(struct rvt_sge_state *ss, u32 length, in rvt_skip_sge() argument [all …]
|
/Linux-v5.4/security/selinux/ |
D | Makefile | 10 ss/ebitmap.o ss/hashtab.o ss/symtab.o ss/sidtab.o ss/avtab.o \ 11 ss/policydb.o ss/services.o ss/conditional.o ss/mls.o ss/status.o
|
/Linux-v5.4/sound/soc/sh/ |
D | siu_pcm.c | 284 static int siu_pcm_hw_params(struct snd_pcm_substream *ss, in siu_pcm_hw_params() argument 288 struct device *dev = ss->pcm->card->dev; in siu_pcm_hw_params() 293 ret = snd_pcm_lib_malloc_pages(ss, params_buffer_bytes(hw_params)); in siu_pcm_hw_params() 300 static int siu_pcm_hw_free(struct snd_pcm_substream *ss) in siu_pcm_hw_free() argument 303 struct siu_port *port_info = siu_port_info(ss); in siu_pcm_hw_free() 304 struct device *dev = ss->pcm->card->dev; in siu_pcm_hw_free() 307 if (ss->stream == SNDRV_PCM_STREAM_PLAYBACK) in siu_pcm_hw_free() 314 return snd_pcm_lib_free_pages(ss); in siu_pcm_hw_free() 327 static int siu_pcm_open(struct snd_pcm_substream *ss) in siu_pcm_open() argument 330 struct snd_soc_pcm_runtime *rtd = ss->private_data; in siu_pcm_open() [all …]
|
/Linux-v5.4/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() 171 struct qib_sdma_state *ss = &ppd->sdma_state; in sdma_hw_start_up() local [all …]
|
/Linux-v5.4/drivers/gpu/drm/i915/ |
D | intel_device_info.c | 155 int s, ss; in intel_device_info_dump_topology() local 167 for (ss = 0; ss < sseu->max_subslices; ss++) { in intel_device_info_dump_topology() 168 u16 enabled_eus = sseu_get_eus(sseu, s, ss); in intel_device_info_dump_topology() 171 ss, hweight16(enabled_eus), enabled_eus); in intel_device_info_dump_topology() 212 int ss; in gen11_sseu_info_init() local 216 for (ss = 0; ss < sseu->max_subslices; ss++) { in gen11_sseu_info_init() 217 if (sseu->subslice_mask[s] & BIT(ss)) in gen11_sseu_info_init() 218 sseu_set_eus(sseu, s, ss, eu_en); in gen11_sseu_info_init() 235 int s, ss; in gen10_sseu_info_init() local 259 for (ss = 0; ss < sseu->max_subslices; ss++) in gen10_sseu_info_init() [all …]
|
/Linux-v5.4/sound/parisc/ |
D | harmony.c | 293 snd_harmony_playback_trigger(struct snd_pcm_substream *ss, int cmd) in snd_harmony_playback_trigger() argument 295 struct snd_harmony *h = snd_pcm_substream_chip(ss); in snd_harmony_playback_trigger() 329 snd_harmony_capture_trigger(struct snd_pcm_substream *ss, int cmd) in snd_harmony_capture_trigger() argument 331 struct snd_harmony *h = snd_pcm_substream_chip(ss); in snd_harmony_capture_trigger() 395 snd_harmony_playback_prepare(struct snd_pcm_substream *ss) in snd_harmony_playback_prepare() argument 397 struct snd_harmony *h = snd_pcm_substream_chip(ss); in snd_harmony_playback_prepare() 398 struct snd_pcm_runtime *rt = ss->runtime; in snd_harmony_playback_prepare() 403 h->pbuf.size = snd_pcm_lib_buffer_bytes(ss); in snd_harmony_playback_prepare() 404 h->pbuf.count = snd_pcm_lib_period_bytes(ss); in snd_harmony_playback_prepare() 425 snd_harmony_capture_prepare(struct snd_pcm_substream *ss) in snd_harmony_capture_prepare() argument [all …]
|
/Linux-v5.4/arch/hexagon/kernel/ |
D | process.c | 57 struct hexagon_switch_stack *ss; in copy_thread() local 72 ss = (struct hexagon_switch_stack *) ((unsigned long) childregs - in copy_thread() 73 sizeof(*ss)); in copy_thread() 74 ss->lr = (unsigned long)ret_from_fork; in copy_thread() 75 p->thread.switch_sp = ss; in copy_thread() 79 ss->r24 = usp; in copy_thread() 80 ss->r25 = arg; in copy_thread() 85 ss->r2524 = 0; in copy_thread()
|