/linux/kernel/rcu/ |
H A D | srcutiny.c | 33 ssp->srcu_cb_tail = &ssp->srcu_cb_head; in init_srcu_struct_fields() 36 ssp->srcu_idx = 0; in init_srcu_struct_fields() 49 debug_check_no_locks_freed((void *)ssp, sizeof(*ssp)); in __init_srcu_struct() 82 WARN_ON(ssp->srcu_lock_nesting[0] || ssp->srcu_lock_nesting[1]); in cleanup_srcu_struct() 87 WARN_ON(&ssp->srcu_cb_head != ssp->srcu_cb_tail); in cleanup_srcu_struct() 88 WARN_ON(ssp->srcu_idx != ssp->srcu_idx_max); in cleanup_srcu_struct() 124 if (ssp->srcu_gp_running || ULONG_CMP_GE(ssp->srcu_idx, READ_ONCE(ssp->srcu_idx_max))) { in srcu_drive_gp() 134 ssp->srcu_cb_tail = &ssp->srcu_cb_head; in srcu_drive_gp() 137 WRITE_ONCE(ssp->srcu_idx, ssp->srcu_idx + 1); in srcu_drive_gp() 143 WRITE_ONCE(ssp->srcu_idx, ssp->srcu_idx + 1); in srcu_drive_gp() [all …]
|
H A D | srcutree.c | 144 sdp->ssp = ssp; in init_srcu_struct_data() 181 ssp->srcu_sup->level[0] = &ssp->srcu_sup->node[0]; in init_srcu_struct_nodes() 240 ssp->srcu_sup = kzalloc(sizeof(*ssp->srcu_sup), GFP_KERNEL); in init_srcu_struct_fields() 258 if (!ssp->sda) in init_srcu_struct_fields() 268 ssp->srcu_sup->srcu_ssp = ssp; in init_srcu_struct_fields() 275 ssp->sda = NULL; in init_srcu_struct_fields() 291 debug_check_no_locks_freed((void *)ssp, sizeof(*ssp)); in __init_srcu_struct() 371 struct srcu_struct *ssp = sdp->ssp; in spin_lock_irqsave_sdp_contention() local 1561 ssp = sdp->ssp; in srcu_barrier_cb() 1616 srcu_barrier_one_cpu(ssp, per_cpu_ptr(ssp->sda, cpu)); in srcu_barrier() [all …]
|
/linux/include/linux/ |
H A D | srcu.h | 35 __init_srcu_struct((ssp), #ssp, &__srcu_key); \ 57 int __srcu_read_lock(struct srcu_struct *ssp) __acquires(ssp); 58 void __srcu_read_unlock(struct srcu_struct *ssp, int idx) __releases(ssp); 65 int __srcu_read_lock_nmisafe(struct srcu_struct *ssp) __acquires(ssp); 182 #define srcu_dereference(p, ssp) srcu_dereference_check((p), (ssp), 0) argument 209 static inline int srcu_read_lock(struct srcu_struct *ssp) __acquires(ssp) in srcu_read_lock() argument 238 srcu_read_lock_notrace(struct srcu_struct *ssp) __acquires(ssp) in srcu_read_lock_notrace() argument 268 static inline int srcu_down_read(struct srcu_struct *ssp) __acquires(ssp) in srcu_down_read() argument 283 __releases(ssp) in srcu_read_unlock() 299 __releases(ssp) in srcu_read_unlock_nmisafe() [all …]
|
H A D | srcutiny.h | 55 void synchronize_srcu(struct srcu_struct *ssp); 63 static inline int __srcu_read_lock(struct srcu_struct *ssp) in __srcu_read_lock() argument 68 idx = ((READ_ONCE(ssp->srcu_idx) + 1) & 0x2) >> 1; in __srcu_read_lock() 69 WRITE_ONCE(ssp->srcu_lock_nesting[idx], READ_ONCE(ssp->srcu_lock_nesting[idx]) + 1); in __srcu_read_lock() 76 synchronize_srcu(ssp); in synchronize_srcu_expedited() 79 static inline void srcu_barrier(struct srcu_struct *ssp) in srcu_barrier() argument 81 synchronize_srcu(ssp); in srcu_barrier() 93 data_race(READ_ONCE(ssp->srcu_lock_nesting[!idx])), in srcu_torture_stats_print() 94 data_race(READ_ONCE(ssp->srcu_lock_nesting[idx])), in srcu_torture_stats_print() 95 data_race(READ_ONCE(ssp->srcu_idx)), in srcu_torture_stats_print() [all …]
|
H A D | pxa2xx_ssp.h | 275 static inline void pxa_ssp_enable(struct ssp_device *ssp) in pxa_ssp_enable() argument 279 sscr0 = pxa_ssp_read_reg(ssp, SSCR0) | SSCR0_SSE; in pxa_ssp_enable() 280 pxa_ssp_write_reg(ssp, SSCR0, sscr0); in pxa_ssp_enable() 283 static inline void pxa_ssp_disable(struct ssp_device *ssp) in pxa_ssp_disable() argument 287 sscr0 = pxa_ssp_read_reg(ssp, SSCR0) & ~SSCR0_SSE; in pxa_ssp_disable() 288 pxa_ssp_write_reg(ssp, SSCR0, sscr0); in pxa_ssp_disable() 306 static inline void pxa_ssp_free(struct ssp_device *ssp) {} in pxa_ssp_free() argument
|
/linux/drivers/tty/serial/ |
H A D | sifive.c | 312 __ssp_writel(ssp->ier, SIFIVE_SERIAL_IE_OFFS, ssp); in __ssp_enable_txwm() 328 __ssp_writel(ssp->ier, SIFIVE_SERIAL_IE_OFFS, ssp); in __ssp_enable_rxwm() 344 __ssp_writel(ssp->ier, SIFIVE_SERIAL_IE_OFFS, ssp); in __ssp_disable_txwm() 360 __ssp_writel(ssp->ier, SIFIVE_SERIAL_IE_OFFS, ssp); in __ssp_disable_rxwm() 792 if (!ssp) in sifive_serial_console_write() 823 if (!ssp) in sifive_serial_console_setup() 854 sifive_serial_console_ports[ssp->port.line] = ssp; in __ssp_add_console_port() 941 if (!ssp) in sifive_serial_probe() 965 ssp->port.uartclk = clk_get_rate(ssp->clk); in sifive_serial_probe() 1000 free_irq(ssp->port.irq, ssp); in sifive_serial_probe() [all …]
|
/linux/sound/soc/pxa/ |
H A D | pxa-ssp.c | 77 struct ssp_device *ssp = priv->ssp; in pxa_ssp_startup() local 103 struct ssp_device *ssp = priv->ssp; in pxa_ssp_shutdown() local 121 struct ssp_device *ssp = priv->ssp; in pxa_ssp_suspend() local 139 struct ssp_device *ssp = priv->ssp; in pxa_ssp_resume() local 188 struct ssp_device *ssp = priv->ssp; in pxa_ssp_set_dai_sysclk() local 256 struct ssp_device *ssp = priv->ssp; in pxa_ssp_set_pll() local 322 struct ssp_device *ssp = priv->ssp; in pxa_ssp_set_dai_tdm_slot() local 357 struct ssp_device *ssp = priv->ssp; in pxa_ssp_set_dai_tristate() local 417 struct ssp_device *ssp = priv->ssp; in pxa_ssp_configure_dai_fmt() local 536 struct ssp_device *ssp = priv->ssp; in pxa_ssp_hw_params() local [all …]
|
/linux/drivers/soc/pxa/ |
H A D | ssp.c | 45 if (ssp->port_id == port && ssp->use_count == 0) { in pxa_ssp_request() 46 ssp->use_count++; in pxa_ssp_request() 57 return ssp; in pxa_ssp_request() 69 if (ssp->of_node == of_node && ssp->use_count == 0) { in pxa_ssp_request_of() 70 ssp->use_count++; in pxa_ssp_request_of() 81 return ssp; in pxa_ssp_request_of() 89 ssp->use_count--; in pxa_ssp_free() 90 ssp->label = NULL; in pxa_ssp_free() 118 if (ssp == NULL) in pxa_ssp_probe() 121 ssp->dev = dev; in pxa_ssp_probe() [all …]
|
/linux/drivers/mmc/host/ |
H A D | mxs-mmc.c | 64 struct mxs_ssp *ssp = &host->ssp; in mxs_mmc_get_cd() local 86 struct mxs_ssp *ssp = &host->ssp; in mxs_mmc_reset() local 128 struct mxs_ssp *ssp = &host->ssp; in mxs_mmc_request_done() local 180 struct mxs_ssp *ssp = &host->ssp; in mxs_mmc_irq_handler() local 216 struct mxs_ssp *ssp = &host->ssp; in mxs_mmc_prep_dma() local 250 struct mxs_ssp *ssp = &host->ssp; in mxs_mmc_bc() local 284 struct mxs_ssp *ssp = &host->ssp; in mxs_mmc_ac() local 357 struct mxs_ssp *ssp = &host->ssp; in mxs_mmc_adtc() local 512 struct mxs_ssp *ssp = &host->ssp; in mxs_mmc_enable_sdio_irq() local 577 ssp = &host->ssp; in mxs_mmc_probe() [all …]
|
/linux/drivers/spi/ |
H A D | spi-mxs.c | 68 struct mxs_ssp *ssp = &spi->ssp; in mxs_spi_setup_transfer() local 97 ssp->base + HW_SSP_CTRL1(ssp)); in mxs_spi_setup_transfer() 128 struct mxs_ssp *ssp = &spi->ssp; in mxs_ssp_wait() local 168 struct mxs_ssp *ssp = &spi->ssp; in mxs_spi_txrx_dma() local 303 struct mxs_ssp *ssp = &spi->ssp; in mxs_spi_txrx_pio() local 365 struct mxs_ssp *ssp = &spi->ssp; in mxs_spi_transfer_one() local 399 ssp->base + HW_SSP_CTRL1(ssp) + in mxs_spi_transfer_one() 445 struct mxs_ssp *ssp = &spi->ssp; in mxs_spi_runtime_suspend() local 466 struct mxs_ssp *ssp = &spi->ssp; in mxs_spi_runtime_resume() local 580 ssp = &spi->ssp; in mxs_spi_probe() [all …]
|
H A D | spi-pxa2xx-pci.c | 98 struct ssp_device *ssp = &c->ssp; in lpss_spi_setup() local 106 ssp->port_id = 0; in lpss_spi_setup() 112 ssp->port_id = 0; in lpss_spi_setup() 118 ssp->port_id = 1; in lpss_spi_setup() 124 ssp->port_id = 2; in lpss_spi_setup() 131 ssp->port_id = 0; in lpss_spi_setup() 138 ssp->port_id = 1; in lpss_spi_setup() 179 struct ssp_device *ssp = &c->ssp; in ce4100_spi_setup() local 194 struct ssp_device *ssp = &c->ssp; in mrfld_spi_setup() local 251 struct ssp_device *ssp = &c->ssp; in qrk_spi_setup() local [all …]
|
H A D | spi-pxa2xx.c | 909 const struct ssp_device *ssp = drv_data->ssp; in ssp_get_clk_div() local 917 if (ssp->type == PXA25x_SSP || ssp->type == CE4100_SSP) in ssp_get_clk_div() 1296 ssp->dev = dev; in pxa2xx_spi_init_ssp() 1335 if (ssp) { in pxa2xx_spi_init_pdata() 1365 if (ssp) in pxa2xx_spi_init_pdata() 1424 if (!ssp) in pxa2xx_spi_probe() 1425 ssp = &platform_info->ssp; in pxa2xx_spi_probe() 1442 drv_data->ssp = ssp; in pxa2xx_spi_probe() 1630 struct ssp_device *ssp = drv_data->ssp; in pxa2xx_spi_remove() local 1657 struct ssp_device *ssp = drv_data->ssp; in pxa2xx_spi_suspend() local [all …]
|
H A D | spi-pxa2xx-dma.c | 53 pxa_ssp_disable(drv_data->ssp); in pxa2xx_spi_dma_transfer_complete() 93 cfg.dst_addr = drv_data->ssp->phys_base + SSDR; in pxa2xx_spi_dma_prepare_one() 100 cfg.src_addr = drv_data->ssp->phys_base + SSDR; in pxa2xx_spi_dma_prepare_one() 110 dev_warn(drv_data->ssp->dev, "DMA slave config failed\n"); in pxa2xx_spi_dma_prepare_one() 124 dev_err(drv_data->ssp->dev, "FIFO overrun\n"); in pxa2xx_spi_dma_transfer() 144 dev_err(drv_data->ssp->dev, "failed to get DMA TX descriptor\n"); in pxa2xx_spi_dma_prepare() 151 dev_err(drv_data->ssp->dev, "failed to get DMA RX descriptor\n"); in pxa2xx_spi_dma_prepare() 189 struct device *dev = drv_data->ssp->dev; in pxa2xx_spi_dma_setup()
|
H A D | spi-pxa2xx.h | 35 struct ssp_device ssp; member 44 struct ssp_device *ssp; member 80 return pxa_ssp_read_reg(drv_data->ssp, reg); in pxa2xx_spi_read() 85 pxa_ssp_write_reg(drv_data->ssp, reg, val); in pxa2xx_spi_write()
|
/linux/Documentation/devicetree/bindings/serial/ |
H A D | mrvl,pxa-ssp.txt | 6 mrvl,pxa25x-ssp 8 mrvl,pxa27x-ssp 9 mrvl,pxa3xx-ssp 10 mvrl,pxa168-ssp 11 mrvl,pxa910-ssp 12 mrvl,ce4100-ssp 21 ssp0: ssp@41000000 { 24 ssp-id = <1>; 35 ssp-id = <2>; 46 ssp-id = <3>; [all …]
|
/linux/arch/x86/kernel/ |
H A D | shstk.c | 55 if (!IS_ALIGNED(ssp, 8)) in create_rstor_token() 64 ssp |= BIT(0); in create_rstor_token() 246 return ssp; in get_user_shstk_addr() 288 *ssp -= SS_FRAME_SIZE; in shstk_push_sigframe() 311 need_to_check_vma = PAGE_ALIGN(*ssp) == *ssp; in shstk_pop_sigframe() 338 *ssp = token_addr; in shstk_pop_sigframe() 350 unsigned long ssp; in setup_signal_shadow_stack() local 361 if (unlikely(!ssp)) in setup_signal_shadow_stack() 369 ssp -= SS_FRAME_SIZE; in setup_signal_shadow_stack() 383 unsigned long ssp; in restore_signal_shadow_stack() local [all …]
|
H A D | vm86_32.c | 514 pushw(ssp, sp, regs->pt.cs, cannot_handle); in do_int() 515 pushw(ssp, sp, IP(regs), cannot_handle); in do_int() 552 unsigned char __user *ssp; in handle_vm86_fault() local 605 newflags = popl(ssp, sp, simulate_sigsegv); in handle_vm86_fault() 608 newflags = popw(ssp, sp, simulate_sigsegv); in handle_vm86_fault() 631 do_int(regs, intno, ssp, sp); in handle_vm86_fault() 642 newip = popl(ssp, sp, simulate_sigsegv); in handle_vm86_fault() 643 newcs = popl(ssp, sp, simulate_sigsegv); in handle_vm86_fault() 644 newflags = popl(ssp, sp, simulate_sigsegv); in handle_vm86_fault() 647 newip = popw(ssp, sp, simulate_sigsegv); in handle_vm86_fault() [all …]
|
/linux/drivers/clk/mxs/ |
H A D | clk-ssp.c | 21 void mxs_ssp_set_clk_rate(struct mxs_ssp *ssp, unsigned int rate) in mxs_ssp_set_clk_rate() argument 27 ssp_clk = clk_get_rate(ssp->clk); in mxs_ssp_set_clk_rate() 37 dev_err(ssp->dev, in mxs_ssp_set_clk_rate() 44 val = readl(ssp->base + HW_SSP_TIMING(ssp)); in mxs_ssp_set_clk_rate() 48 writel(val, ssp->base + HW_SSP_TIMING(ssp)); in mxs_ssp_set_clk_rate() 50 ssp->clk_rate = ssp_sck; in mxs_ssp_set_clk_rate() 52 dev_dbg(ssp->dev, in mxs_ssp_set_clk_rate()
|
/linux/Documentation/devicetree/bindings/pinctrl/ |
H A D | marvell,dove-pinctrl.txt | 30 mpp10 10 gpio, pmu, ssp(sclk), pmu* 36 ssp(extclk), pmu* 37 mpp14 14 gpio, pmu, uart2(txd), sdio1(buspwr), ssp(rxd), pmu* 47 uart1(cts), ssp(sfrm) 49 lcd-spi(mosi), uart1(cts), ssp(txd) 51 lcd-spi(sck), ssp(sclk) 55 mpp_audio1 52-57 gpio, i2s1/spdifo, i2s1, spdifo, twsi, ssp/spdifo, ssp, 56 ssp/twsi 85 - ssp/spdifo : ssp on pins 52-55, spdifo on pin 57, no gpios 86 - ssp : ssp on pins 52-55, gpio on pins 56,57 [all …]
|
/linux/arch/arm/mach-sa1100/ |
H A D | ssp.c | 158 void ssp_save_state(struct ssp_state *ssp) in ssp_save_state() argument 160 ssp->cr0 = Ser4SSCR0; in ssp_save_state() 161 ssp->cr1 = Ser4SSCR1; in ssp_save_state() 172 void ssp_restore_state(struct ssp_state *ssp) in ssp_restore_state() argument 176 Ser4SSCR0 = ssp->cr0 & ~SSCR0_SSE; in ssp_restore_state() 177 Ser4SSCR1 = ssp->cr1; in ssp_restore_state() 178 Ser4SSCR0 = ssp->cr0; in ssp_restore_state()
|
/linux/Documentation/devicetree/bindings/sound/ |
H A D | mrvl,pxa-ssp.txt | 5 compatible Must be "mrvl,pxa-ssp-dai" 6 port A phandle reference to a PXA ssp upstream device 20 ssp1: ssp@41000000 { 21 compatible = "mrvl,pxa3xx-ssp"; 24 clock-names = "pxa27x-ssp.0"; 30 compatible = "mrvl,pxa-ssp-dai";
|
/linux/sound/soc/intel/catpt/ |
H A D | registers.h | 35 #define CATPT_CS_SFCR(ssp) BIT(27 + (ssp)) argument 39 #define CATPT_CS_SDPM(ssp) BIT(11 + (ssp)) argument 44 #define CATPT_CS_SBCS(ssp) BIT(2 + (ssp)) argument 144 #define catpt_ssp_addr(cdev, ssp) \ argument 145 ((cdev)->lpe_ba + (cdev)->spec->host_ssp_offset[ssp]) 151 #define catpt_writel_ssp(cdev, ssp, reg, val) \ argument 152 writel(val, catpt_ssp_addr(cdev, ssp) + (reg))
|
/linux/drivers/scsi/isci/ |
H A D | remote_node_context.c | 129 rnc->ssp.remote_node_index = rni; in sci_remote_node_context_construct_buffer() 138 rnc->ssp.nexus_loss_timer_enable = true; in sci_remote_node_context_construct_buffer() 139 rnc->ssp.check_bit = false; in sci_remote_node_context_construct_buffer() 141 rnc->ssp.is_remote_node_context = true; in sci_remote_node_context_construct_buffer() 142 rnc->ssp.function_number = 0; in sci_remote_node_context_construct_buffer() 144 rnc->ssp.arbitration_wait_time = 0; in sci_remote_node_context_construct_buffer() 147 rnc->ssp.connection_occupancy_timeout = in sci_remote_node_context_construct_buffer() 162 rnc->ssp.oaf_features = 0; in sci_remote_node_context_construct_buffer() 163 rnc->ssp.oaf_source_zone_group = 0; in sci_remote_node_context_construct_buffer() 241 rnc_buffer->ssp.is_valid = true; in sci_remote_node_context_validate_context_buffer() [all …]
|
/linux/tools/testing/selftests/x86/ |
H A D | test_shadow_stack.c | 134 unsigned long ssp; in try_shstk() local 139 ssp = get_ssp(); in try_shstk() 147 ssp -= 8; in try_shstk() 751 iov.iov_base = &ssp; in test_ptrace() 752 iov.iov_len = sizeof(ssp); in test_ptrace() 756 ssp = get_ssp(); in test_ptrace() 780 if (!ssp) { in test_ptrace() 785 saved_ssp = ssp; in test_ptrace() 799 ssp += 1; in test_ptrace() 805 ssp = 0xFFFFFFFFFFFF0000; in test_ptrace() [all …]
|
/linux/security/smack/ |
H A D | smack_lsm.c | 1587 isp = ssp->smk_in; in smack_inode_getsecurity() 2390 if (ssp == NULL) in smack_sk_alloc_security() 2400 ssp->smk_in = skp; in smack_sk_alloc_security() 2401 ssp->smk_out = skp; in smack_sk_alloc_security() 2640 skp = ssp->smk_out; in smk_ipv4_check() 2796 skp = ssp->smk_out; in smk_ipv6_port_check() 2893 ssp->smk_in = skp; in smack_inode_setsecurity() 2895 ssp->smk_out = skp; in smack_inode_setsecurity() 4016 if (ssp != NULL && ssp->smk_in == &smack_known_star) in smack_from_secattr() 4346 ssp->smk_in = skp; in smack_sock_graft() [all …]
|