/drivers/spi/ |
D | spi-sh.c | 93 static void spi_sh_write(struct spi_sh_data *ss, unsigned long data, in spi_sh_write() argument 96 if (ss->width == 8) in spi_sh_write() 97 iowrite8(data, ss->addr + (offset >> 2)); in spi_sh_write() 98 else if (ss->width == 32) in spi_sh_write() 99 iowrite32(data, ss->addr + offset); in spi_sh_write() 102 static unsigned long spi_sh_read(struct spi_sh_data *ss, unsigned long offset) in spi_sh_read() argument 104 if (ss->width == 8) in spi_sh_read() 105 return ioread8(ss->addr + (offset >> 2)); in spi_sh_read() 106 else if (ss->width == 32) in spi_sh_read() 107 return ioread32(ss->addr + offset); in spi_sh_read() [all …]
|
/drivers/usb/gadget/function/ |
D | f_sourcesink.c | 301 struct f_sourcesink *ss = ep->driver_data; in ss_alloc_ep_req() local 303 return alloc_ep_req(ep, len, ss->buflen); in ss_alloc_ep_req() 331 struct f_sourcesink *ss = func_to_ss(f); in sourcesink_bind() local 343 ss->in_ep = usb_ep_autoconfig(cdev->gadget, &fs_source_desc); in sourcesink_bind() 344 if (!ss->in_ep) { in sourcesink_bind() 351 ss->out_ep = usb_ep_autoconfig(cdev->gadget, &fs_sink_desc); in sourcesink_bind() 352 if (!ss->out_ep) in sourcesink_bind() 356 if (ss->isoc_interval < 1) in sourcesink_bind() 357 ss->isoc_interval = 1; in sourcesink_bind() 358 if (ss->isoc_interval > 16) in sourcesink_bind() [all …]
|
/drivers/net/ethernet/myricom/myri10ge/ |
D | myri10ge.c | 213 struct myri10ge_slice_state *ss; member 929 static inline void myri10ge_ss_init_lock(struct myri10ge_slice_state *ss) in myri10ge_ss_init_lock() argument 931 spin_lock_init(&ss->lock); in myri10ge_ss_init_lock() 932 ss->state = SLICE_STATE_IDLE; in myri10ge_ss_init_lock() 935 static inline bool myri10ge_ss_lock_napi(struct myri10ge_slice_state *ss) in myri10ge_ss_lock_napi() argument 938 spin_lock(&ss->lock); in myri10ge_ss_lock_napi() 939 if ((ss->state & SLICE_LOCKED)) { in myri10ge_ss_lock_napi() 940 WARN_ON((ss->state & SLICE_STATE_NAPI)); in myri10ge_ss_lock_napi() 941 ss->state |= SLICE_STATE_NAPI_YIELD; in myri10ge_ss_lock_napi() 943 ss->lock_napi_yield++; in myri10ge_ss_lock_napi() [all …]
|
/drivers/crypto/sunxi-ss/ |
D | sun4i-ss-core.c | 227 struct sun4i_ss_ctx *ss; in sun4i_ss_probe() local 232 ss = devm_kzalloc(&pdev->dev, sizeof(*ss), GFP_KERNEL); in sun4i_ss_probe() 233 if (!ss) in sun4i_ss_probe() 237 ss->base = devm_ioremap_resource(&pdev->dev, res); in sun4i_ss_probe() 238 if (IS_ERR(ss->base)) { in sun4i_ss_probe() 240 return PTR_ERR(ss->base); in sun4i_ss_probe() 243 ss->ssclk = devm_clk_get(&pdev->dev, "mod"); in sun4i_ss_probe() 244 if (IS_ERR(ss->ssclk)) { in sun4i_ss_probe() 245 err = PTR_ERR(ss->ssclk); in sun4i_ss_probe() 251 ss->busclk = devm_clk_get(&pdev->dev, "ahb"); in sun4i_ss_probe() [all …]
|
D | sun4i-ss-cipher.c | 23 struct sun4i_ss_ctx *ss = op->ss; in sun4i_ss_opti_poll() local 44 dev_err_ratelimited(ss->dev, "ERROR: Empty IV\n"); in sun4i_ss_opti_poll() 49 dev_err_ratelimited(ss->dev, "ERROR: Some SGs are NULL\n"); in sun4i_ss_opti_poll() 53 spin_lock_irqsave(&ss->slock, flags); in sun4i_ss_opti_poll() 56 writel(*(op->key + i / 4), ss->base + SS_KEY0 + i); in sun4i_ss_opti_poll() 61 writel(v, ss->base + SS_IV0 + i * 4); in sun4i_ss_opti_poll() 64 writel(mode, ss->base + SS_CTL); in sun4i_ss_opti_poll() 73 dev_err_ratelimited(ss->dev, "ERROR: sg_miter return null\n"); in sun4i_ss_opti_poll() 86 writesl(ss->base + SS_RXFIFO, mi.addr + oi, todo); in sun4i_ss_opti_poll() 94 spaces = readl(ss->base + SS_FCSR); in sun4i_ss_opti_poll() [all …]
|
D | sun4i-ss-hash.c | 35 struct sun4i_ss_ctx *ss; in sun4i_hash_init() local 40 ss = algt->ss; in sun4i_hash_init() 41 op->ss = algt->ss; in sun4i_hash_init() 170 struct sun4i_ss_ctx *ss = op->ss; in sun4i_hash_update() local 184 dev_dbg(ss->dev, "%s %s bc=%llu len=%u mode=%x wl=%u h0=%0x", in sun4i_hash_update() 194 dev_err(ss->dev, "Cannot process too large request\n"); in sun4i_hash_update() 209 dev_err(ss->dev, "ERROR: Bound error %u %u\n", in sun4i_hash_update() 214 spin_lock_bh(&ss->slock); in sun4i_hash_update() 223 writel(op->hash[i], ss->base + SS_IV0 + i * 4); in sun4i_hash_update() 226 writel(op->mode | SS_ENABLED | ivmode, ss->base + SS_CTL); in sun4i_hash_update() [all …]
|
D | Makefile | 1 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
|
/drivers/media/pci/solo6x10/ |
D | solo6x10-g723.c | 89 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/infiniband/hw/qib/ |
D | qib_sdma.c | 92 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 …]
|
D | qib_verbs.c | 169 void qib_copy_sge(struct qib_sge_state *ss, void *data, u32 length, int release) in qib_copy_sge() argument 171 struct qib_sge *sge = &ss->sge; in qib_copy_sge() 188 if (--ss->num_sge) in qib_copy_sge() 189 *sge = *ss->sg_list++; in qib_copy_sge() 211 void qib_skip_sge(struct qib_sge_state *ss, u32 length, int release) in qib_skip_sge() argument 213 struct qib_sge *sge = &ss->sge; in qib_skip_sge() 229 if (--ss->num_sge) in qib_skip_sge() 230 *sge = *ss->sg_list++; in qib_skip_sge() 251 static u32 qib_count_sge(struct qib_sge_state *ss, u32 length) in qib_count_sge() argument 253 struct qib_sge *sg_list = ss->sg_list; in qib_count_sge() [all …]
|
/drivers/gpu/drm/amd/amdgpu/ |
D | atombios_crtc.c | 244 struct amdgpu_atom_ss *ss) in amdgpu_atombios_crtc_program_ss() argument 256 if (ss->percentage == 0) in amdgpu_atombios_crtc_program_ss() 258 if (ss->type & ATOM_EXTERNAL_SS_MASK) in amdgpu_atombios_crtc_program_ss() 278 args.v3.ucSpreadSpectrumType = ss->type & ATOM_SS_CENTRE_SPREAD_MODE_MASK; in amdgpu_atombios_crtc_program_ss() 292 args.v3.usSpreadSpectrumAmount = cpu_to_le16(ss->amount); in amdgpu_atombios_crtc_program_ss() 293 args.v3.usSpreadSpectrumStep = cpu_to_le16(ss->step); in amdgpu_atombios_crtc_program_ss() 339 if (amdgpu_crtc->ss.refdiv) { in amdgpu_atombios_crtc_adjust_pll() 341 amdgpu_crtc->pll_reference_div = amdgpu_crtc->ss.refdiv; in amdgpu_atombios_crtc_adjust_pll() 393 if (amdgpu_crtc->ss_enabled && amdgpu_crtc->ss.percentage) in amdgpu_atombios_crtc_adjust_pll() 406 if (amdgpu_crtc->ss_enabled && amdgpu_crtc->ss.percentage) in amdgpu_atombios_crtc_adjust_pll() [all …]
|
D | amdgpu_atombios.c | 704 struct amdgpu_atom_ss *ss, in amdgpu_atombios_get_igp_ss_overrides() argument 789 ss->percentage = percentage; in amdgpu_atombios_get_igp_ss_overrides() 791 ss->rate = rate; in amdgpu_atombios_get_igp_ss_overrides() 808 struct amdgpu_atom_ss *ss, in amdgpu_atombios_get_asic_ss_info() argument 828 memset(ss, 0, sizeof(struct amdgpu_atom_ss)); in amdgpu_atombios_get_asic_ss_info() 844 ss->percentage = in amdgpu_atombios_get_asic_ss_info() 846 ss->type = ss_assign->v1.ucSpreadSpectrumMode; in amdgpu_atombios_get_asic_ss_info() 847 ss->rate = le16_to_cpu(ss_assign->v1.usSpreadRateInKhz); in amdgpu_atombios_get_asic_ss_info() 848 ss->percentage_divider = 100; in amdgpu_atombios_get_asic_ss_info() 862 ss->percentage = in amdgpu_atombios_get_asic_ss_info() [all …]
|
/drivers/ide/ |
D | sc1200.c | 239 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/radeon/ |
D | atombios_crtc.c | 444 struct radeon_atom_ss *ss) in atombios_crtc_program_ss() argument 456 if (ss->percentage == 0) in atombios_crtc_program_ss() 458 if (ss->type & ATOM_EXTERNAL_SS_MASK) in atombios_crtc_program_ss() 479 args.v3.ucSpreadSpectrumType = ss->type & ATOM_SS_CENTRE_SPREAD_MODE_MASK; in atombios_crtc_program_ss() 493 args.v3.usSpreadSpectrumAmount = cpu_to_le16(ss->amount); in atombios_crtc_program_ss() 494 args.v3.usSpreadSpectrumStep = cpu_to_le16(ss->step); in atombios_crtc_program_ss() 497 args.v2.usSpreadSpectrumPercentage = cpu_to_le16(ss->percentage); in atombios_crtc_program_ss() 498 args.v2.ucSpreadSpectrumType = ss->type & ATOM_SS_CENTRE_SPREAD_MODE_MASK; in atombios_crtc_program_ss() 512 args.v2.usSpreadSpectrumAmount = cpu_to_le16(ss->amount); in atombios_crtc_program_ss() 513 args.v2.usSpreadSpectrumStep = cpu_to_le16(ss->step); in atombios_crtc_program_ss() [all …]
|
D | rv740_dpm.c | 160 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()
|
/drivers/staging/rdma/hfi1/ |
D | sdma.c | 263 static void sdma_get(struct sdma_state *ss) in sdma_get() argument 265 kref_get(&ss->kref); in sdma_get() 270 struct sdma_state *ss = in sdma_complete() local 273 complete(&ss->comp); in sdma_complete() 276 static void sdma_put(struct sdma_state *ss) in sdma_put() argument 278 kref_put(&ss->kref, sdma_complete); in sdma_put() 281 static void sdma_finalput(struct sdma_state *ss) in sdma_finalput() argument 283 sdma_put(ss); in sdma_finalput() 284 wait_for_completion(&ss->comp); in sdma_finalput() 670 struct sdma_state *ss = &sde->state; in sdma_sw_tear_down() local [all …]
|
D | verbs.c | 277 struct hfi1_sge_state *ss, in hfi1_copy_sge() argument 281 struct hfi1_sge *sge = &ss->sge; in hfi1_copy_sge() 298 if (--ss->num_sge) in hfi1_copy_sge() 299 *sge = *ss->sg_list++; in hfi1_copy_sge() 321 void hfi1_skip_sge(struct hfi1_sge_state *ss, u32 length, int release) in hfi1_skip_sge() argument 323 struct hfi1_sge *sge = &ss->sge; in hfi1_skip_sge() 339 if (--ss->num_sge) in hfi1_skip_sge() 340 *sge = *ss->sg_list++; in hfi1_skip_sge() 715 void update_sge(struct hfi1_sge_state *ss, u32 length) in update_sge() argument 717 struct hfi1_sge *sge = &ss->sge; in update_sge() [all …]
|
D | verbs.h | 931 u32 hdrwords, struct hfi1_sge_state *ss, u32 len); 933 void hfi1_copy_sge(struct hfi1_sge_state *ss, void *data, u32 length, 936 void hfi1_skip_sge(struct hfi1_sge_state *ss, u32 length, int release); 1050 static inline void hfi1_put_ss(struct hfi1_sge_state *ss) in hfi1_put_ss() argument 1052 while (ss->num_sge) { in hfi1_put_ss() 1053 hfi1_put_mr(ss->sge.mr); in hfi1_put_ss() 1054 if (--ss->num_sge) in hfi1_put_ss() 1055 ss->sge = *ss->sg_list++; in hfi1_put_ss() 1105 u32 hdrwords, struct hfi1_sge_state *ss, u32 len, 1109 u32 hdrwords, struct hfi1_sge_state *ss, u32 len,
|
/drivers/staging/rdma/ipath/ |
D | ipath_verbs.c | 171 void ipath_copy_sge(struct ipath_sge_state *ss, void *data, u32 length) in ipath_copy_sge() argument 173 struct ipath_sge *sge = &ss->sge; in ipath_copy_sge() 188 if (--ss->num_sge) in ipath_copy_sge() 189 *sge = *ss->sg_list++; in ipath_copy_sge() 211 void ipath_skip_sge(struct ipath_sge_state *ss, u32 length) in ipath_skip_sge() argument 213 struct ipath_sge *sge = &ss->sge; in ipath_skip_sge() 227 if (--ss->num_sge) in ipath_skip_sge() 228 *sge = *ss->sg_list++; in ipath_skip_sge() 249 static u32 ipath_count_sge(struct ipath_sge_state *ss, u32 length) in ipath_count_sge() argument 251 struct ipath_sge *sg_list = ss->sg_list; in ipath_count_sge() [all …]
|
D | ipath_keys.c | 199 int ipath_rkey_ok(struct ipath_qp *qp, struct ipath_sge_state *ss, in ipath_rkey_ok() argument 204 struct ipath_sge *sge = &ss->sge; in ipath_rkey_ok() 226 ss->sg_list = NULL; in ipath_rkey_ok() 227 ss->num_sge = 1; in ipath_rkey_ok() 263 ss->sg_list = NULL; in ipath_rkey_ok() 264 ss->num_sge = 1; in ipath_rkey_ok()
|
/drivers/lguest/ |
D | interrupts_and_traps.c | 71 u32 eflags, ss, irq_enable; in push_guest_interrupt_stack() local 79 if ((cpu->regs->ss&0x3) != GUEST_PL) { in push_guest_interrupt_stack() 85 ss = cpu->ss1; in push_guest_interrupt_stack() 94 push_guest_stack(cpu, &gstack, cpu->regs->ss); in push_guest_interrupt_stack() 99 ss = cpu->regs->ss; in push_guest_interrupt_stack() 129 cpu->regs->ss = ss; in push_guest_interrupt_stack() 144 if ((cpu->regs->ss&0x3) != GUEST_PL) in guest_run_interrupt() 145 cpu->regs->ss = cpu->esp1; in guest_run_interrupt()
|
/drivers/usb/storage/ |
D | onetouch.c | 49 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/ |
D | leo.c | 211 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/ |
D | eeprom.c | 362 int16_t ss; in ath9k_hw_get_gain_boundaries_pdadcs() local 501 ss = (int16_t)(0 - (minPwrT4[i] / 2)); in ath9k_hw_get_gain_boundaries_pdadcs() 503 ss = 0; in ath9k_hw_get_gain_boundaries_pdadcs() 505 ss = (int16_t)((pPdGainBoundaries[i - 1] - in ath9k_hw_get_gain_boundaries_pdadcs() 512 while ((ss < 0) && (k < (AR5416_NUM_PDADC_VALUES - 1))) { in ath9k_hw_get_gain_boundaries_pdadcs() 513 tmpVal = (int16_t)(vpdTableI[i][0] + ss * vpdStep); in ath9k_hw_get_gain_boundaries_pdadcs() 515 ss++; in ath9k_hw_get_gain_boundaries_pdadcs() 524 while ((ss < maxIndex) && (k < (AR5416_NUM_PDADC_VALUES - 1))) { in ath9k_hw_get_gain_boundaries_pdadcs() 525 pPDADCValues[k++] = vpdTableI[i][ss++]; in ath9k_hw_get_gain_boundaries_pdadcs() 533 while ((ss <= tgtIndex) && in ath9k_hw_get_gain_boundaries_pdadcs() [all …]
|
/drivers/gpu/drm/i915/ |
D | i915_dma.c | 599 int s, ss; in gen9_sseu_info_init() local 629 for (ss = 0; ss < ss_max; ss++) { in gen9_sseu_info_init() 632 if (ss_disable & (0x1 << ss)) in gen9_sseu_info_init() 636 eu_per_ss = eu_max - hweight8((eu_disable >> (ss*8)) & in gen9_sseu_info_init() 645 info->subslice_7eu[s] |= 1 << ss; in gen9_sseu_info_init() 679 int s, ss; in broadwell_sseu_info_init() local 714 for (ss = 0; ss < ss_max; ss++) { in broadwell_sseu_info_init() 717 if (ss_disable & (0x1 << ss)) in broadwell_sseu_info_init() 721 n_disabled = hweight8(eu_disable[s] >> (ss * eu_max)); in broadwell_sseu_info_init() 727 info->subslice_7eu[s] |= 1 << ss; in broadwell_sseu_info_init()
|