| /linux/drivers/usb/gadget/function/ |
| H A D | f_sourcesink.c | 321 struct f_sourcesink *ss = func_to_ss(f); in sourcesink_bind() local 332 if (ss->bulk_maxburst > 15) in sourcesink_bind() 333 ss->bulk_maxburst = 15; in sourcesink_bind() 335 ss_source_comp_desc.bMaxBurst = ss->bulk_maxburst; in sourcesink_bind() 336 ss_sink_comp_desc.bMaxBurst = ss->bulk_maxburst; in sourcesink_bind() 339 ss->in_ep = usb_ep_autoconfig(cdev->gadget, &fs_source_desc); in sourcesink_bind() 340 if (!ss->in_ep) { in sourcesink_bind() 347 ss->out_ep = usb_ep_autoconfig(cdev->gadget, &fs_sink_desc); in sourcesink_bind() 348 if (!ss->out_ep) in sourcesink_bind() 352 if (ss->isoc_interval < 1) in sourcesink_bind() [all …]
|
| /linux/drivers/gpu/drm/imx/dcss/ |
| H A 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 = devm_kzalloc(dcss->dev, 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/drivers/net/ethernet/myricom/myri10ge/ |
| H A D | myri10ge.c | 198 struct myri10ge_slice_state *ss; member 927 struct myri10ge_slice_state *ss; in myri10ge_reset() local 955 bytes = mgp->max_intr_slots * sizeof(*mgp->ss[0].rx_done.entry); in myri10ge_reset() 1012 ss = &mgp->ss[i]; in myri10ge_reset() 1013 cmd.data0 = MYRI10GE_LOWPART_TO_U32(ss->rx_done.bus); in myri10ge_reset() 1014 cmd.data1 = MYRI10GE_HIGHPART_TO_U32(ss->rx_done.bus); in myri10ge_reset() 1023 ss = &mgp->ss[i]; in myri10ge_reset() 1024 ss->irq_claim = in myri10ge_reset() 1044 ss = &mgp->ss[i]; in myri10ge_reset() 1046 ss->dca_tag = (__iomem __be32 *) in myri10ge_reset() [all …]
|
| /linux/drivers/crypto/allwinner/sun8i-ss/ |
| 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() 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 …]
|
| H A D | sun8i-ss-hash.c | 41 dev_err(tfmctx->ss->dev, "shash digest error ret=%d\n", ret); in sun8i_ss_hashkey() 103 op->ss = algt->ss; in sun8i_ss_hash_init_tfm() 109 dev_err(algt->ss->dev, "Fallback driver could no be loaded\n"); in sun8i_ss_hash_init_tfm() 123 err = pm_runtime_get_sync(op->ss->dev); in sun8i_ss_hash_init_tfm() 128 pm_runtime_put_noidle(op->ss->dev); in sun8i_ss_hash_init_tfm() 141 pm_runtime_put_sync_suspend(tfmctx->ss->dev); in sun8i_ss_hash_exit_tfm() 286 static int sun8i_ss_run_hash_task(struct sun8i_ss_dev *ss, in sun8i_ss_run_hash_task() argument 295 ss->flows[flow].stat_req++; in sun8i_ss_run_hash_task() 310 mutex_lock(&ss->mlock); in sun8i_ss_run_hash_task() 313 writel(rctx->t_dst[i - 1].addr, ss->base + SS_KEY_ADR_REG); in sun8i_ss_run_hash_task() [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
|
| /linux/sound/soc/meson/ |
| H A D | axg-fifo.c | 47 static struct snd_soc_dai *axg_fifo_dai(struct snd_pcm_substream *ss) in axg_fifo_dai() argument 49 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(ss); in axg_fifo_dai() 54 static struct axg_fifo *axg_fifo_data(struct snd_pcm_substream *ss) in axg_fifo_data() argument 56 struct snd_soc_dai *dai = axg_fifo_dai(ss); in axg_fifo_data() 61 static struct device *axg_fifo_dev(struct snd_pcm_substream *ss) in axg_fifo_dev() argument 63 struct snd_soc_dai *dai = axg_fifo_dai(ss); in axg_fifo_dev() 75 struct snd_pcm_substream *ss, int cmd) in axg_fifo_pcm_trigger() argument 77 struct axg_fifo *fifo = axg_fifo_data(ss); in axg_fifo_pcm_trigger() 99 struct snd_pcm_substream *ss) in axg_fifo_pcm_pointer() argument 101 struct axg_fifo *fifo = axg_fifo_data(ss); in axg_fifo_pcm_pointer() [all …]
|
| H A D | axg-fifo.h | 76 struct snd_pcm_substream *ss); 78 struct snd_pcm_substream *ss); 80 struct snd_pcm_substream *ss, 83 struct snd_pcm_substream *ss, 86 struct snd_pcm_substream *ss); 88 struct snd_pcm_substream *ss); 90 struct snd_pcm_substream *ss, int cmd);
|
| /linux/tools/testing/selftests/net/ |
| H A 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 39 bzero((void *)&ss, sizeof(ss)); in do_client() 40 ss.ss_family = !strcmp(argv[2], "-4") ? AF_INET : AF_INET6; in do_client() 41 csk = socket(ss.ss_family, SOCK_STREAM, IPPROTO_SCTP); in do_client() 48 set_addr(&ss, argv[5], argv[6], &len); in do_client() 49 ret = bind(csk, (struct sockaddr *)&ss, len); in do_client() [all …]
|
| /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() 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/drivers/crypto/allwinner/sun4i-ss/ |
| 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() 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 …]
|
| H A D | sun4i-ss-cipher.c | 19 struct sun4i_ss_ctx *ss = op->ss; in sun4i_ss_opti_poll() local 45 dev_err_ratelimited(ss->dev, "ERROR: Some SGs are NULL\n"); in sun4i_ss_opti_poll() 60 spin_lock_irqsave(&ss->slock, flags); in sun4i_ss_opti_poll() 63 writesl(ss->base + SS_KEY0 + i * 4, &op->key[i], 1); in sun4i_ss_opti_poll() 68 writesl(ss->base + SS_IV0 + i * 4, &v, 1); in sun4i_ss_opti_poll() 71 writel(mode, ss->base + SS_CTL); in sun4i_ss_opti_poll() 86 dev_err_ratelimited(ss->dev, "ERROR: sg_miter return null\n"); in sun4i_ss_opti_poll() 94 writesl(ss->base + SS_RXFIFO, mi.addr + oi, todo); in sun4i_ss_opti_poll() 104 spaces = readl(ss->base + SS_FCSR); in sun4i_ss_opti_poll() 114 dev_err_ratelimited(ss->dev, "ERROR: sg_miter return null\n"); in sun4i_ss_opti_poll() [all …]
|
| H A D | sun4i-ss-hash.c | 28 op->ss = algt->ss; in sun4i_hash_crainit() 30 err = pm_runtime_resume_and_get(op->ss->dev); in sun4i_hash_crainit() 43 pm_runtime_put(op->ss->dev); in sun4i_hash_craexit() 196 struct sun4i_ss_ctx *ss = tfmctx->ss; in sun4i_hash() local 204 dev_dbg(ss->dev, "%s %s bc=%llu len=%u mode=%x wl=%u h0=%0x", in sun4i_hash() 214 dev_err(ss->dev, "Cannot process too large request\n"); in sun4i_hash() 226 spin_lock_bh(&ss->slock); in sun4i_hash() 235 writel(op->hash[i], ss->base + SS_IV0 + i * 4); in sun4i_hash() 238 writel(op->mode | SS_ENABLED | ivmode, ss->base + SS_CTL); in sun4i_hash() 248 dev_err(ss->dev, "ERROR: Bound error %u %u\n", in sun4i_hash() [all …]
|
| H A 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/drivers/media/pci/tw686x/ |
| H A 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/include/rdma/ |
| H A 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/kernel/cgroup/ |
| H A D | cgroup.c | 282 struct cgroup_subsys *ss); 524 struct cgroup_subsys *ss) in cgroup_css() argument 526 if (CGROUP_HAS_SUBSYS_CONFIG && ss) in cgroup_css() 527 return rcu_dereference_check(cgrp->subsys[ss->id], in cgroup_css() 544 struct cgroup_subsys *ss) in cgroup_e_css_by_mask() argument 548 if (!ss) in cgroup_e_css_by_mask() 555 while (!(cgroup_ss_mask(cgrp) & (1 << ss->id))) { in cgroup_e_css_by_mask() 561 return cgroup_css(cgrp, ss); in cgroup_e_css_by_mask() 578 struct cgroup_subsys *ss) in cgroup_e_css() argument 586 css = cgroup_css(cgrp, ss); in cgroup_e_css() [all …]
|
| H A D | rstat.c | 25 return css_is_self(css) || css->ss->css_rstat_flush != NULL; in css_uses_rstat() 40 static spinlock_t *ss_rstat_lock(struct cgroup_subsys *ss) in ss_rstat_lock() argument 42 if (ss) in ss_rstat_lock() 43 return &ss->rstat_ss_lock; in ss_rstat_lock() 48 static inline struct llist_head *ss_lhead_cpu(struct cgroup_subsys *ss, int cpu) in ss_lhead_cpu() argument 50 if (ss) in ss_lhead_cpu() 51 return per_cpu_ptr(ss->lhead, cpu); in ss_lhead_cpu() 124 lhead = ss_lhead_cpu(css->ss, cpu); in css_rstat_updated() 157 static void css_process_update_tree(struct cgroup_subsys *ss, int cpu) in css_process_update_tree() argument 159 struct llist_head *lhead = ss_lhead_cpu(ss, cpu); in css_process_update_tree() [all …]
|
| H A D | debug.c | 44 struct cgroup_subsys *ss; in current_css_set_read() local 62 for_each_subsys(ss, i) { in current_css_set_read() 63 css = cset->subsys[ss->id]; in current_css_set_read() 66 seq_printf(seq, "%2d: %-4s\t- %p[%d]\n", ss->id, ss->name, in current_css_set_read() 203 struct cgroup_subsys *ss; in cgroup_subsys_states_read() local 212 for_each_subsys(ss, i) { in cgroup_subsys_states_read() 213 css = rcu_dereference_check(cgrp->subsys[ss->id], true); in cgroup_subsys_states_read() 223 seq_printf(seq, "%2d: %-4s\t- %p[%d] %d%s\n", ss->id, ss->name, in cgroup_subsys_states_read() 235 struct cgroup_subsys *ss; in cgroup_masks_read_one() local 240 for_each_subsys(ss, ssid) { in cgroup_masks_read_one() [all …]
|
| /linux/net/netfilter/ |
| H A 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 …]
|
| /linux/security/selinux/ |
| H A D | Makefile | 19 ss/ebitmap.o ss/hashtab.o ss/symtab.o ss/sidtab.o ss/avtab.o \ 20 ss/policydb.o ss/services.o ss/conditional.o ss/mls.o ss/context.o
|
| /linux/kernel/bpf/ |
| H A D | stream.c | 251 struct bpf_stream_stage ss; 260 bpf_stream_stage(ss, prog, stream_id, ({ in bpf_prog_stream_init() 261 bpf_stream_dump_stack(ss); in bpf_prog_stream_init() 296 void bpf_stream_stage_init(struct bpf_stream_stage *ss) in bpf_stream_stage_printk() 298 init_llist_head(&ss->log); in bpf_stream_stage_printk() 299 ss->len = 0; in bpf_stream_stage_printk() 302 void bpf_stream_stage_free(struct bpf_stream_stage *ss) in bpf_stream_stage_printk() 306 node = llist_del_all(&ss->log); in bpf_stream_stage_printk() 310 int bpf_stream_stage_printk(struct bpf_stream_stage *ss, const char *fmt, ...) 322 ss in bpf_stream_stage_commit() 278 bpf_stream_stage_init(struct bpf_stream_stage * ss) bpf_stream_stage_init() argument 284 bpf_stream_stage_free(struct bpf_stream_stage * ss) bpf_stream_stage_free() argument 292 bpf_stream_stage_printk(struct bpf_stream_stage * ss,const char * fmt,...) bpf_stream_stage_printk() argument 311 bpf_stream_stage_commit(struct bpf_stream_stage * ss,struct bpf_prog * prog,enum bpf_stream_id stream_id) bpf_stream_stage_commit() argument 340 struct bpf_stream_stage *ss; global() member 367 bpf_stream_stage_dump_stack(struct bpf_stream_stage * ss) bpf_stream_stage_dump_stack() argument [all...] |
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | socket_helpers.h | 151 static inline struct sockaddr *sockaddr(struct sockaddr_storage *ss) in sockaddr() argument 153 return (struct sockaddr *)ss; in sockaddr() 156 static inline void init_addr_loopback4(struct sockaddr_storage *ss, in init_addr_loopback4() argument 159 struct sockaddr_in *addr4 = memset(ss, 0, sizeof(*ss)); in init_addr_loopback4() 167 static inline void init_addr_loopback6(struct sockaddr_storage *ss, in init_addr_loopback6() argument 170 struct sockaddr_in6 *addr6 = memset(ss, 0, sizeof(*ss)); in init_addr_loopback6() 178 static inline void init_addr_loopback_unix(struct sockaddr_storage *ss, in init_addr_loopback_unix() argument 181 struct sockaddr_un *addr = memset(ss, 0, sizeof(*ss)); in init_addr_loopback_unix() 187 static inline void init_addr_loopback_vsock(struct sockaddr_storage *ss, in init_addr_loopback_vsock() argument 190 struct sockaddr_vm *addr = memset(ss, 0, sizeof(*ss)); in init_addr_loopback_vsock() [all …]
|
| /linux/sound/parisc/ |
| H A D | harmony.c | 284 snd_harmony_playback_trigger(struct snd_pcm_substream *ss, int cmd) in snd_harmony_playback_trigger() argument 286 struct snd_harmony *h = snd_pcm_substream_chip(ss); in snd_harmony_playback_trigger() 318 snd_harmony_capture_trigger(struct snd_pcm_substream *ss, int cmd) in snd_harmony_capture_trigger() argument 320 struct snd_harmony *h = snd_pcm_substream_chip(ss); in snd_harmony_capture_trigger() 382 snd_harmony_playback_prepare(struct snd_pcm_substream *ss) in snd_harmony_playback_prepare() argument 384 struct snd_harmony *h = snd_pcm_substream_chip(ss); in snd_harmony_playback_prepare() 385 struct snd_pcm_runtime *rt = ss->runtime; in snd_harmony_playback_prepare() 390 h->pbuf.size = snd_pcm_lib_buffer_bytes(ss); in snd_harmony_playback_prepare() 391 h->pbuf.count = snd_pcm_lib_period_bytes(ss); in snd_harmony_playback_prepare() 412 snd_harmony_capture_prepare(struct snd_pcm_substream *ss) in snd_harmony_capture_prepare() argument [all …]
|
| /linux/arch/hexagon/kernel/ |
| H A D | process.c | 59 struct hexagon_switch_stack *ss; in copy_thread() local 74 ss = (struct hexagon_switch_stack *) ((unsigned long) childregs - in copy_thread() 75 sizeof(*ss)); in copy_thread() 76 ss->lr = (unsigned long)ret_from_fork; in copy_thread() 77 p->thread.switch_sp = ss; in copy_thread() 81 ss->r24 = (unsigned long)args->fn; in copy_thread() 82 ss->r25 = (unsigned long)args->fn_arg; in copy_thread() 87 ss->r2524 = 0; in copy_thread()
|