Home
last modified time | relevance | path

Searched refs:ss (Results 1 – 25 of 95) sorted by relevance

1234

/drivers/spi/
Dspi-sh.c92 static void spi_sh_write(struct spi_sh_data *ss, unsigned long data, in spi_sh_write() argument
95 if (ss->width == 8) in spi_sh_write()
96 iowrite8(data, ss->addr + (offset >> 2)); in spi_sh_write()
97 else if (ss->width == 32) in spi_sh_write()
98 iowrite32(data, ss->addr + offset); in spi_sh_write()
101 static unsigned long spi_sh_read(struct spi_sh_data *ss, unsigned long offset) in spi_sh_read() argument
103 if (ss->width == 8) in spi_sh_read()
104 return ioread8(ss->addr + (offset >> 2)); in spi_sh_read()
105 else if (ss->width == 32) in spi_sh_read()
106 return ioread32(ss->addr + offset); in spi_sh_read()
[all …]
/drivers/usb/gadget/function/
Df_sourcesink.c324 struct f_sourcesink *ss = func_to_ss(f); in sourcesink_bind() local
336 ss->in_ep = usb_ep_autoconfig(cdev->gadget, &fs_source_desc); in sourcesink_bind()
337 if (!ss->in_ep) { in sourcesink_bind()
344 ss->out_ep = usb_ep_autoconfig(cdev->gadget, &fs_sink_desc); in sourcesink_bind()
345 if (!ss->out_ep) in sourcesink_bind()
349 if (ss->isoc_interval < 1) in sourcesink_bind()
350 ss->isoc_interval = 1; in sourcesink_bind()
351 if (ss->isoc_interval > 16) in sourcesink_bind()
352 ss->isoc_interval = 16; in sourcesink_bind()
353 if (ss->isoc_mult > 2) in sourcesink_bind()
[all …]
/drivers/net/ethernet/myricom/myri10ge/
Dmyri10ge.c198 struct myri10ge_slice_state *ss; member
916 struct myri10ge_slice_state *ss; in myri10ge_reset() local
944 bytes = mgp->max_intr_slots * sizeof(*mgp->ss[0].rx_done.entry); in myri10ge_reset()
1001 ss = &mgp->ss[i]; in myri10ge_reset()
1002 cmd.data0 = MYRI10GE_LOWPART_TO_U32(ss->rx_done.bus); in myri10ge_reset()
1003 cmd.data1 = MYRI10GE_HIGHPART_TO_U32(ss->rx_done.bus); in myri10ge_reset()
1012 ss = &mgp->ss[i]; in myri10ge_reset()
1013 ss->irq_claim = in myri10ge_reset()
1033 ss = &mgp->ss[i]; in myri10ge_reset()
1035 ss->dca_tag = (__iomem __be32 *) in myri10ge_reset()
[all …]
/drivers/crypto/sunxi-ss/
Dsun4i-ss-core.c243 struct sun4i_ss_ctx *ss; in sun4i_ss_probe() local
248 ss = devm_kzalloc(&pdev->dev, sizeof(*ss), GFP_KERNEL); in sun4i_ss_probe()
249 if (!ss) in sun4i_ss_probe()
253 ss->base = devm_ioremap_resource(&pdev->dev, res); in sun4i_ss_probe()
254 if (IS_ERR(ss->base)) { in sun4i_ss_probe()
256 return PTR_ERR(ss->base); in sun4i_ss_probe()
259 ss->ssclk = devm_clk_get(&pdev->dev, "mod"); in sun4i_ss_probe()
260 if (IS_ERR(ss->ssclk)) { in sun4i_ss_probe()
261 err = PTR_ERR(ss->ssclk); in sun4i_ss_probe()
267 ss->busclk = devm_clk_get(&pdev->dev, "ahb"); in sun4i_ss_probe()
[all …]
Dsun4i-ss-cipher.c23 struct sun4i_ss_ctx *ss = op->ss; in sun4i_ss_opti_poll() local
45 dev_err_ratelimited(ss->dev, "ERROR: Empty IV\n"); in sun4i_ss_opti_poll()
50 dev_err_ratelimited(ss->dev, "ERROR: Some SGs are NULL\n"); in sun4i_ss_opti_poll()
54 spin_lock_irqsave(&ss->slock, flags); in sun4i_ss_opti_poll()
57 writel(*(op->key + i / 4), ss->base + SS_KEY0 + i); in sun4i_ss_opti_poll()
62 writel(v, ss->base + SS_IV0 + i * 4); in sun4i_ss_opti_poll()
65 writel(mode, ss->base + SS_CTL); in sun4i_ss_opti_poll()
74 dev_err_ratelimited(ss->dev, "ERROR: sg_miter return null\n"); in sun4i_ss_opti_poll()
88 writesl(ss->base + SS_RXFIFO, mi.addr + oi, todo); in sun4i_ss_opti_poll()
96 spaces = readl(ss->base + SS_FCSR); in sun4i_ss_opti_poll()
[all …]
Dsun4i-ss-prng.c10 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 …]
Dsun4i-ss-hash.c30 op->ss = algt->ss; in sun4i_hash_crainit()
186 struct sun4i_ss_ctx *ss = tfmctx->ss; in sun4i_hash() local
193 dev_dbg(ss->dev, "%s %s bc=%llu len=%u mode=%x wl=%u h0=%0x", in sun4i_hash()
203 dev_err(ss->dev, "Cannot process too large request\n"); in sun4i_hash()
215 spin_lock_bh(&ss->slock); in sun4i_hash()
224 writel(op->hash[i], ss->base + SS_IV0 + i * 4); in sun4i_hash()
227 writel(op->mode | SS_ENABLED | ivmode, ss->base + SS_CTL); in sun4i_hash()
237 dev_err(ss->dev, "ERROR: Bound error %u %u\n", in sun4i_hash()
258 dev_dbg(ss->dev, "We can DMA\n"); in sun4i_hash()
293 writesl(ss->base + SS_RXFIFO, op->buf, in sun4i_hash()
[all …]
DMakefile1 obj-$(CONFIG_CRYPTO_DEV_SUN4I_SS) += sun4i-ss.o
2 sun4i-ss-y += sun4i-ss-core.o sun4i-ss-hash.o sun4i-ss-cipher.o
3 sun4i-ss-$(CONFIG_CRYPTO_DEV_SUN4I_SS_PRNG) += sun4i-ss-prng.o
/drivers/media/pci/solo6x10/
Dsolo6x10-g723.c89 struct snd_pcm_substream *ss; in solo_g723_isr() local
92 for (ss = pstr->substream; ss != NULL; ss = ss->next) { in solo_g723_isr()
93 if (snd_pcm_substream_chip(ss) == NULL) in solo_g723_isr()
97 if (snd_pcm_substream_chip(ss) == solo_dev) in solo_g723_isr()
101 solo_pcm = snd_pcm_substream_chip(ss); in solo_g723_isr()
105 snd_pcm_period_elapsed(ss); in solo_g723_isr()
109 static int snd_solo_hw_params(struct snd_pcm_substream *ss, in snd_solo_hw_params() argument
112 return snd_pcm_lib_malloc_pages(ss, params_buffer_bytes(hw_params)); in snd_solo_hw_params()
115 static int snd_solo_hw_free(struct snd_pcm_substream *ss) in snd_solo_hw_free() argument
117 return snd_pcm_lib_free_pages(ss); in snd_solo_hw_free()
[all …]
/drivers/media/pci/tw686x/
Dtw686x-audio.c51 if (!ac->ss || !ac->curr_bufs[0] || !ac->curr_bufs[1]) { in tw686x_audio_irq()
80 snd_pcm_period_elapsed(ac->ss); in tw686x_audio_irq()
84 static int tw686x_pcm_hw_params(struct snd_pcm_substream *ss, in tw686x_pcm_hw_params() argument
87 return snd_pcm_lib_malloc_pages(ss, params_buffer_bytes(hw_params)); in tw686x_pcm_hw_params()
90 static int tw686x_pcm_hw_free(struct snd_pcm_substream *ss) in tw686x_pcm_hw_free() argument
92 return snd_pcm_lib_free_pages(ss); in tw686x_pcm_hw_free()
118 static int tw686x_pcm_open(struct snd_pcm_substream *ss) in tw686x_pcm_open() argument
120 struct tw686x_dev *dev = snd_pcm_substream_chip(ss); in tw686x_pcm_open()
121 struct tw686x_audio_channel *ac = &dev->audio_channels[ss->number]; in tw686x_pcm_open()
122 struct snd_pcm_runtime *rt = ss->runtime; in tw686x_pcm_open()
[all …]
/drivers/infiniband/hw/qib/
Dqib_sdma.c92 static void sdma_get(struct qib_sdma_state *ss) in sdma_get() argument
94 kref_get(&ss->kref); in sdma_get()
99 struct qib_sdma_state *ss = in sdma_complete() local
102 complete(&ss->comp); in sdma_complete()
105 static void sdma_put(struct qib_sdma_state *ss) in sdma_put() argument
107 kref_put(&ss->kref, sdma_complete); in sdma_put()
110 static void sdma_finalput(struct qib_sdma_state *ss) in sdma_finalput() argument
112 sdma_put(ss); in sdma_finalput()
113 wait_for_completion(&ss->comp); in sdma_finalput()
195 struct qib_sdma_state *ss = &ppd->sdma_state; in sdma_hw_start_up() local
[all …]
Dqib_verbs.c140 void qib_copy_sge(struct rvt_sge_state *ss, void *data, u32 length, int release) in qib_copy_sge() argument
142 struct rvt_sge *sge = &ss->sge; in qib_copy_sge()
149 rvt_update_sge(ss, len, release); in qib_copy_sge()
160 static u32 qib_count_sge(struct rvt_sge_state *ss, u32 length) in qib_count_sge() argument
162 struct rvt_sge *sg_list = ss->sg_list; in qib_count_sge()
163 struct rvt_sge sge = ss->sge; in qib_count_sge()
164 u8 num_sge = ss->num_sge; in qib_count_sge()
206 static void qib_copy_from_sge(void *data, struct rvt_sge_state *ss, u32 length) in qib_copy_from_sge() argument
208 struct rvt_sge *sge = &ss->sge; in qib_copy_from_sge()
223 if (--ss->num_sge) in qib_copy_from_sge()
[all …]
Dqib_ruc.c50 struct rvt_sge_state *ss; in qib_init_sge() local
54 ss = &qp->r_sge; in qib_init_sge()
55 ss->sg_list = qp->r_sg_list; in qib_init_sge()
61 ret = rvt_lkey_ok(rkt, pd, j ? &ss->sg_list[j - 1] : &ss->sge, in qib_init_sge()
69 ss->num_sge = j; in qib_init_sge()
70 ss->total_len = qp->r_len; in qib_init_sge()
76 struct rvt_sge *sge = --j ? &ss->sg_list[j - 1] : &ss->sge; in qib_init_sge()
80 ss->num_sge = 0; in qib_init_sge()
/drivers/gpu/drm/i915/
Dintel_device_info.c130 int s, ss; in gen9_sseu_info_init() local
155 for (ss = 0; ss < ss_max; ss++) { in gen9_sseu_info_init()
158 if (!(sseu->subslice_mask & BIT(ss))) in gen9_sseu_info_init()
162 eu_per_ss = eu_max - hweight8((eu_disable >> (ss*8)) & in gen9_sseu_info_init()
171 sseu->subslice_7eu[s] |= BIT(ss); in gen9_sseu_info_init()
202 #define IS_SS_DISABLED(ss) (!(sseu->subslice_mask & BIT(ss))) in gen9_sseu_info_init() argument
232 int s, ss; in broadwell_sseu_info_init() local
262 for (ss = 0; ss < ss_max; ss++) { in broadwell_sseu_info_init()
265 if (!(sseu->subslice_mask & BIT(ss))) in broadwell_sseu_info_init()
269 n_disabled = hweight8(eu_disable[s] >> (ss * eu_max)); in broadwell_sseu_info_init()
[all …]
/drivers/ide/
Dsc1200.c239 struct sc1200_saved_state *ss = host->host_priv; in sc1200_suspend() local
247 pci_read_config_dword(dev, 0x40 + r * 4, &ss->regs[r]); in sc1200_suspend()
258 struct sc1200_saved_state *ss = host->host_priv; in sc1200_resume() local
271 pci_write_config_dword(dev, 0x40 + r * 4, ss->regs[r]); in sc1200_resume()
308 struct sc1200_saved_state *ss = NULL; in sc1200_init_one() local
312 ss = kmalloc(sizeof(*ss), GFP_KERNEL); in sc1200_init_one()
313 if (ss == NULL) in sc1200_init_one()
316 rc = ide_pci_init_one(dev, &sc1200_chipset, ss); in sc1200_init_one()
318 kfree(ss); in sc1200_init_one()
/drivers/gpu/drm/amd/amdgpu/
Datombios_crtc.c245 struct amdgpu_atom_ss *ss) in amdgpu_atombios_crtc_program_ss() argument
257 if (ss->percentage == 0) in amdgpu_atombios_crtc_program_ss()
259 if (ss->type & ATOM_EXTERNAL_SS_MASK) in amdgpu_atombios_crtc_program_ss()
279 args.v3.ucSpreadSpectrumType = ss->type & ATOM_SS_CENTRE_SPREAD_MODE_MASK; in amdgpu_atombios_crtc_program_ss()
293 args.v3.usSpreadSpectrumAmount = cpu_to_le16(ss->amount); in amdgpu_atombios_crtc_program_ss()
294 args.v3.usSpreadSpectrumStep = cpu_to_le16(ss->step); in amdgpu_atombios_crtc_program_ss()
340 if (amdgpu_crtc->ss.refdiv) { in amdgpu_atombios_crtc_adjust_pll()
342 amdgpu_crtc->pll_reference_div = amdgpu_crtc->ss.refdiv; in amdgpu_atombios_crtc_adjust_pll()
394 if (amdgpu_crtc->ss_enabled && amdgpu_crtc->ss.percentage) in amdgpu_atombios_crtc_adjust_pll()
407 if (amdgpu_crtc->ss_enabled && amdgpu_crtc->ss.percentage) in amdgpu_atombios_crtc_adjust_pll()
[all …]
Damdgpu_atombios.c775 struct amdgpu_atom_ss *ss, in amdgpu_atombios_get_igp_ss_overrides() argument
860 ss->percentage = percentage; in amdgpu_atombios_get_igp_ss_overrides()
862 ss->rate = rate; in amdgpu_atombios_get_igp_ss_overrides()
879 struct amdgpu_atom_ss *ss, in amdgpu_atombios_get_asic_ss_info() argument
899 memset(ss, 0, sizeof(struct amdgpu_atom_ss)); in amdgpu_atombios_get_asic_ss_info()
915 ss->percentage = in amdgpu_atombios_get_asic_ss_info()
917 ss->type = ss_assign->v1.ucSpreadSpectrumMode; in amdgpu_atombios_get_asic_ss_info()
918 ss->rate = le16_to_cpu(ss_assign->v1.usSpreadRateInKhz); in amdgpu_atombios_get_asic_ss_info()
919 ss->percentage_divider = 100; in amdgpu_atombios_get_asic_ss_info()
933 ss->percentage = in amdgpu_atombios_get_asic_ss_info()
[all …]
/drivers/gpu/drm/radeon/
Datombios_crtc.c445 struct radeon_atom_ss *ss) in atombios_crtc_program_ss() argument
457 if (ss->percentage == 0) in atombios_crtc_program_ss()
459 if (ss->type & ATOM_EXTERNAL_SS_MASK) in atombios_crtc_program_ss()
480 args.v3.ucSpreadSpectrumType = ss->type & ATOM_SS_CENTRE_SPREAD_MODE_MASK; in atombios_crtc_program_ss()
494 args.v3.usSpreadSpectrumAmount = cpu_to_le16(ss->amount); in atombios_crtc_program_ss()
495 args.v3.usSpreadSpectrumStep = cpu_to_le16(ss->step); in atombios_crtc_program_ss()
498 args.v2.usSpreadSpectrumPercentage = cpu_to_le16(ss->percentage); in atombios_crtc_program_ss()
499 args.v2.ucSpreadSpectrumType = ss->type & ATOM_SS_CENTRE_SPREAD_MODE_MASK; in atombios_crtc_program_ss()
513 args.v2.usSpreadSpectrumAmount = cpu_to_le16(ss->amount); in atombios_crtc_program_ss()
514 args.v2.usSpreadSpectrumStep = cpu_to_le16(ss->step); in atombios_crtc_program_ss()
[all …]
Drv740_dpm.c160 struct radeon_atom_ss ss; in rv740_populate_sclk_value() local
163 if (radeon_atombios_get_asic_ss_info(rdev, &ss, in rv740_populate_sclk_value()
165 u32 clk_s = reference_clock * 5 / (reference_divider * ss.rate); in rv740_populate_sclk_value()
166 u32 clk_v = 4 * ss.percentage * fbdiv / (clk_s * 10000); in rv740_populate_sclk_value()
247 struct radeon_atom_ss ss; in rv740_populate_mclk_value() local
250 if (radeon_atombios_get_asic_ss_info(rdev, &ss, in rv740_populate_mclk_value()
254 u32 clk_s = reference_clock * 5 / (decoded_ref * ss.rate); in rv740_populate_mclk_value()
255 u32 clk_v = 0x40000 * ss.percentage * in rv740_populate_mclk_value()
Drv730_dpm.c92 struct radeon_atom_ss ss; in rv730_populate_sclk_value() local
95 if (radeon_atombios_get_asic_ss_info(rdev, &ss, in rv730_populate_sclk_value()
97 u32 clk_s = reference_clock * 5 / (reference_divider * ss.rate); in rv730_populate_sclk_value()
98 u32 clk_v = ss.percentage * fbdiv / (clk_s * 10000); in rv730_populate_sclk_value()
167 struct radeon_atom_ss ss; in rv730_populate_mclk_value() local
170 if (radeon_atombios_get_asic_ss_info(rdev, &ss, in rv730_populate_mclk_value()
173 u32 clk_s = reference_clock * 5 / (reference_divider * ss.rate); in rv730_populate_mclk_value()
174 u32 clk_v = ss.percentage * dividers.fb_div / (clk_s * 10000); in rv730_populate_mclk_value()
/drivers/infiniband/hw/hfi1/
Dsdma.c261 static void sdma_get(struct sdma_state *ss) in sdma_get() argument
263 kref_get(&ss->kref); in sdma_get()
268 struct sdma_state *ss = in sdma_complete() local
271 complete(&ss->comp); in sdma_complete()
274 static void sdma_put(struct sdma_state *ss) in sdma_put() argument
276 kref_put(&ss->kref, sdma_complete); in sdma_put()
279 static void sdma_finalput(struct sdma_state *ss) in sdma_finalput() argument
281 sdma_put(ss); in sdma_finalput()
282 wait_for_completion(&ss->comp); in sdma_finalput()
642 struct sdma_state *ss = &sde->state; in sdma_sw_tear_down() local
[all …]
Dverbs.c446 struct rvt_sge_state *ss, in hfi1_copy_sge() argument
451 struct rvt_sge *sge = &ss->sge; in hfi1_copy_sge()
497 rvt_update_sge(ss, len, release); in hfi1_copy_sge()
766 struct rvt_sge_state *ss = tx->ss; in build_verbs_ulp_payload() local
767 struct rvt_sge *sg_list = ss->sg_list; in build_verbs_ulp_payload()
768 struct rvt_sge sge = ss->sge; in build_verbs_ulp_payload()
769 u8 num_sge = ss->num_sge; in build_verbs_ulp_payload()
774 len = ss->sge.length; in build_verbs_ulp_payload()
777 if (len > ss->sge.sge_length) in build_verbs_ulp_payload()
778 len = ss->sge.sge_length; in build_verbs_ulp_payload()
[all …]
/drivers/usb/storage/
Donetouch.c49 static int onetouch_connect_input(struct us_data *ss);
179 static int onetouch_connect_input(struct us_data *ss) in onetouch_connect_input() argument
181 struct usb_device *udev = ss->pusb_dev; in onetouch_connect_input()
189 interface = ss->pusb_intf->cur_altsetting; in onetouch_connect_input()
256 ss->extra_destructor = onetouch_release_input; in onetouch_connect_input()
257 ss->extra = onetouch; in onetouch_connect_input()
259 ss->suspend_resume_hook = usb_onetouch_pm_hook; in onetouch_connect_input()
/drivers/video/fbdev/
Dleo.c211 struct leo_ld_ss0 __iomem *ss = par->ld_ss0; in leo_switch_from_graph() local
221 sbus_writel(0xffffffff, &ss->wid); in leo_switch_from_graph()
222 sbus_writel(0xffff, &ss->wmask); in leo_switch_from_graph()
223 sbus_writel(0, &ss->vclipmin); in leo_switch_from_graph()
224 sbus_writel(par->extent, &ss->vclipmax); in leo_switch_from_graph()
225 sbus_writel(0, &ss->fg); in leo_switch_from_graph()
226 sbus_writel(0xff000000, &ss->planemask); in leo_switch_from_graph()
227 sbus_writel(0x310850, &ss->rop); in leo_switch_from_graph()
228 sbus_writel(0, &ss->widclip); in leo_switch_from_graph()
239 sbus_writel(1, &ss->wid); in leo_switch_from_graph()
[all …]
/drivers/net/wireless/ath/ath9k/
Deeprom.c463 int16_t ss; in ath9k_hw_get_gain_boundaries_pdadcs() local
602 ss = (int16_t)(0 - (minPwrT4[i] / 2)); in ath9k_hw_get_gain_boundaries_pdadcs()
604 ss = 0; in ath9k_hw_get_gain_boundaries_pdadcs()
606 ss = (int16_t)((pPdGainBoundaries[i - 1] - in ath9k_hw_get_gain_boundaries_pdadcs()
613 while ((ss < 0) && (k < (AR5416_NUM_PDADC_VALUES - 1))) { in ath9k_hw_get_gain_boundaries_pdadcs()
614 tmpVal = (int16_t)(vpdTableI[i][0] + ss * vpdStep); in ath9k_hw_get_gain_boundaries_pdadcs()
616 ss++; in ath9k_hw_get_gain_boundaries_pdadcs()
625 while ((ss < maxIndex) && (k < (AR5416_NUM_PDADC_VALUES - 1))) { in ath9k_hw_get_gain_boundaries_pdadcs()
626 pPDADCValues[k++] = vpdTableI[i][ss++]; in ath9k_hw_get_gain_boundaries_pdadcs()
634 while ((ss <= tgtIndex) && in ath9k_hw_get_gain_boundaries_pdadcs()
[all …]

1234