Home
last modified time | relevance | path

Searched refs:ssp (Results 1 – 25 of 87) sorted by relevance

1234

/linux-6.6.21/kernel/rcu/
Dsrcutiny.c27 static int init_srcu_struct_fields(struct srcu_struct *ssp) in init_srcu_struct_fields() argument
29 ssp->srcu_lock_nesting[0] = 0; in init_srcu_struct_fields()
30 ssp->srcu_lock_nesting[1] = 0; in init_srcu_struct_fields()
31 init_swait_queue_head(&ssp->srcu_wq); in init_srcu_struct_fields()
32 ssp->srcu_cb_head = NULL; in init_srcu_struct_fields()
33 ssp->srcu_cb_tail = &ssp->srcu_cb_head; in init_srcu_struct_fields()
34 ssp->srcu_gp_running = false; in init_srcu_struct_fields()
35 ssp->srcu_gp_waiting = false; in init_srcu_struct_fields()
36 ssp->srcu_idx = 0; in init_srcu_struct_fields()
37 ssp->srcu_idx_max = 0; in init_srcu_struct_fields()
[all …]
Dsrcutree.c76 static void srcu_reschedule(struct srcu_struct *ssp, unsigned long delay);
122 static void init_srcu_struct_data(struct srcu_struct *ssp) in init_srcu_struct_data() argument
134 sdp = per_cpu_ptr(ssp->sda, cpu); in init_srcu_struct_data()
138 sdp->srcu_gp_seq_needed = ssp->srcu_sup->srcu_gp_seq; in init_srcu_struct_data()
139 sdp->srcu_gp_seq_needed_exp = ssp->srcu_sup->srcu_gp_seq; in init_srcu_struct_data()
144 sdp->ssp = ssp; in init_srcu_struct_data()
164 static bool init_srcu_struct_nodes(struct srcu_struct *ssp, gfp_t gfp_flags) in init_srcu_struct_nodes() argument
176 ssp->srcu_sup->node = kcalloc(rcu_num_nodes, sizeof(*ssp->srcu_sup->node), gfp_flags); in init_srcu_struct_nodes()
177 if (!ssp->srcu_sup->node) in init_srcu_struct_nodes()
181 ssp->srcu_sup->level[0] = &ssp->srcu_sup->node[0]; in init_srcu_struct_nodes()
[all …]
/linux-6.6.21/include/linux/
Dsrcu.h28 int __init_srcu_struct(struct srcu_struct *ssp, const char *name,
31 #define init_srcu_struct(ssp) \ argument
35 __init_srcu_struct((ssp), #ssp, &__srcu_key); \
41 int init_srcu_struct(struct srcu_struct *ssp);
54 void call_srcu(struct srcu_struct *ssp, struct rcu_head *head,
56 void cleanup_srcu_struct(struct srcu_struct *ssp);
57 int __srcu_read_lock(struct srcu_struct *ssp) __acquires(ssp);
58 void __srcu_read_unlock(struct srcu_struct *ssp, int idx) __releases(ssp);
59 void synchronize_srcu(struct srcu_struct *ssp);
60 unsigned long get_state_synchronize_srcu(struct srcu_struct *ssp);
[all …]
Dsrcutiny.h55 void synchronize_srcu(struct srcu_struct *ssp);
63 static inline int __srcu_read_lock(struct srcu_struct *ssp) in __srcu_read_lock() argument
67 idx = ((READ_ONCE(ssp->srcu_idx) + 1) & 0x2) >> 1; in __srcu_read_lock()
68 WRITE_ONCE(ssp->srcu_lock_nesting[idx], READ_ONCE(ssp->srcu_lock_nesting[idx]) + 1); in __srcu_read_lock()
72 static inline void synchronize_srcu_expedited(struct srcu_struct *ssp) in synchronize_srcu_expedited() argument
74 synchronize_srcu(ssp); in synchronize_srcu_expedited()
77 static inline void srcu_barrier(struct srcu_struct *ssp) in srcu_barrier() argument
79 synchronize_srcu(ssp); in srcu_barrier()
83 static inline void srcu_torture_stats_print(struct srcu_struct *ssp, in srcu_torture_stats_print() argument
88 idx = ((data_race(READ_ONCE(ssp->srcu_idx)) + 1) & 0x2) >> 1; in srcu_torture_stats_print()
[all …]
Dpxa2xx_ssp.h275 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-6.6.21/drivers/tty/serial/
Dsifive.c225 static void __ssp_writel(u32 v, u16 offs, struct sifive_serial_port *ssp) in __ssp_writel() argument
227 __ssp_early_writel(v, offs, &ssp->port); in __ssp_writel()
242 static u32 __ssp_readl(struct sifive_serial_port *ssp, u16 offs) in __ssp_readl() argument
244 return __ssp_early_readl(&ssp->port, offs); in __ssp_readl()
258 static int sifive_serial_is_txfifo_full(struct sifive_serial_port *ssp) in sifive_serial_is_txfifo_full() argument
260 return __ssp_readl(ssp, SIFIVE_SERIAL_TXDATA_OFFS) & in sifive_serial_is_txfifo_full()
275 static void __ssp_transmit_char(struct sifive_serial_port *ssp, int ch) in __ssp_transmit_char() argument
277 __ssp_writel(ch, SIFIVE_SERIAL_TXDATA_OFFS, ssp); in __ssp_transmit_char()
289 static void __ssp_transmit_chars(struct sifive_serial_port *ssp) in __ssp_transmit_chars() argument
293 uart_port_tx_limited(&ssp->port, ch, SIFIVE_TX_FIFO_DEPTH, in __ssp_transmit_chars()
[all …]
/linux-6.6.21/sound/soc/pxa/
Dpxa-ssp.c39 struct ssp_device *ssp; member
53 static void dump_registers(struct ssp_device *ssp) in dump_registers() argument
55 dev_dbg(ssp->dev, "SSCR0 0x%08x SSCR1 0x%08x SSTO 0x%08x\n", in dump_registers()
56 pxa_ssp_read_reg(ssp, SSCR0), pxa_ssp_read_reg(ssp, SSCR1), in dump_registers()
57 pxa_ssp_read_reg(ssp, SSTO)); in dump_registers()
59 dev_dbg(ssp->dev, "SSPSP 0x%08x SSSR 0x%08x SSACD 0x%08x\n", in dump_registers()
60 pxa_ssp_read_reg(ssp, SSPSP), pxa_ssp_read_reg(ssp, SSSR), in dump_registers()
61 pxa_ssp_read_reg(ssp, SSACD)); in dump_registers()
64 static void pxa_ssp_set_dma_params(struct ssp_device *ssp, int width4, in pxa_ssp_set_dma_params() argument
70 dma->addr = ssp->phys_base + SSDR; in pxa_ssp_set_dma_params()
[all …]
/linux-6.6.21/drivers/soc/pxa/
Dssp.c40 struct ssp_device *ssp = NULL; in pxa_ssp_request() local
44 list_for_each_entry(ssp, &ssp_list, node) { in pxa_ssp_request()
45 if (ssp->port_id == port && ssp->use_count == 0) { in pxa_ssp_request()
46 ssp->use_count++; in pxa_ssp_request()
47 ssp->label = label; in pxa_ssp_request()
54 if (&ssp->node == &ssp_list) in pxa_ssp_request()
57 return ssp; in pxa_ssp_request()
64 struct ssp_device *ssp = NULL; in pxa_ssp_request_of() local
68 list_for_each_entry(ssp, &ssp_list, node) { in pxa_ssp_request_of()
69 if (ssp->of_node == of_node && ssp->use_count == 0) { in pxa_ssp_request_of()
[all …]
/linux-6.6.21/drivers/mmc/host/
Dmxs-mmc.c48 struct mxs_ssp ssp; member
64 struct mxs_ssp *ssp = &host->ssp; in mxs_mmc_get_cd() local
75 !(readl(ssp->base + HW_SSP_STATUS(ssp)) & in mxs_mmc_get_cd()
86 struct mxs_ssp *ssp = &host->ssp; in mxs_mmc_reset() local
90 ret = stmp_reset_block(ssp->base); in mxs_mmc_reset()
108 ssp->base + HW_SSP_TIMING(ssp)); in mxs_mmc_reset()
115 writel(ctrl0, ssp->base + HW_SSP_CTRL0); in mxs_mmc_reset()
116 writel(ctrl1, ssp->base + HW_SSP_CTRL1(ssp)); in mxs_mmc_reset()
128 struct mxs_ssp *ssp = &host->ssp; in mxs_mmc_request_done() local
132 cmd->resp[3] = readl(ssp->base + HW_SSP_SDRESP0(ssp)); in mxs_mmc_request_done()
[all …]
/linux-6.6.21/drivers/spi/
Dspi-mxs.c58 struct mxs_ssp ssp; member
67 struct mxs_ssp *ssp = &spi->ssp; in mxs_spi_setup_transfer() local
76 mxs_ssp_set_clk_rate(ssp, hz); in mxs_spi_setup_transfer()
90 ssp->base + HW_SSP_CTRL0 + STMP_OFFSET_REG_SET); in mxs_spi_setup_transfer()
96 ssp->base + HW_SSP_CTRL1(ssp)); in mxs_spi_setup_transfer()
98 writel(0x0, ssp->base + HW_SSP_CMD0); in mxs_spi_setup_transfer()
99 writel(0x0, ssp->base + HW_SSP_CMD1); in mxs_spi_setup_transfer()
127 struct mxs_ssp *ssp = &spi->ssp; in mxs_ssp_wait() local
131 reg = readl_relaxed(ssp->base + offset); in mxs_ssp_wait()
154 struct mxs_ssp *ssp = dev_id; in mxs_ssp_irq_handler() local
[all …]
Dspi-pxa2xx-pci.c61 static int pxa2xx_spi_pci_clk_register(struct pci_dev *dev, struct ssp_device *ssp, in pxa2xx_spi_pci_clk_register() argument
66 snprintf(buf, sizeof(buf), "pxa2xx-spi.%d", ssp->port_id); in pxa2xx_spi_pci_clk_register()
67 ssp->clk = clk_register_fixed_rate(&dev->dev, buf, NULL, 0, rate); in pxa2xx_spi_pci_clk_register()
68 if (IS_ERR(ssp->clk)) in pxa2xx_spi_pci_clk_register()
69 return PTR_ERR(ssp->clk); in pxa2xx_spi_pci_clk_register()
71 return devm_add_action_or_reset(&dev->dev, pxa2xx_spi_pci_clk_unregister, ssp->clk); in pxa2xx_spi_pci_clk_register()
92 struct ssp_device *ssp = &c->ssp; in lpss_spi_setup() local
99 ssp->type = LPSS_BYT_SSP; in lpss_spi_setup()
100 ssp->port_id = 0; in lpss_spi_setup()
105 ssp->type = LPSS_BSW_SSP; in lpss_spi_setup()
[all …]
Dspi-pxa2xx.c337 drv_data->lpss_base = drv_data->ssp->mmio_base + config->offset; in lpss_ssp_setup()
486 pxa_ssp_disable(drv_data->ssp); in pxa2xx_spi_off()
625 dev_err(drv_data->ssp->dev, "%s\n", msg); in int_error_stop()
721 dev_err(drv_data->ssp->dev, "bad message state in interrupt handler\n"); in handle_bad_msg()
737 if (pm_runtime_suspended(drv_data->ssp->dev)) in ssp_int()
899 const struct ssp_device *ssp = drv_data->ssp; in ssp_get_clk_div() local
907 if (ssp->type == PXA25x_SSP || ssp->type == CE4100_SSP) in ssp_get_clk_div()
1079 pxa_ssp_disable(drv_data->ssp); in pxa2xx_spi_transfer_one()
1091 pxa_ssp_enable(drv_data->ssp); in pxa2xx_spi_transfer_one()
1335 struct ssp_device *ssp; in pxa2xx_spi_init_pdata() local
[all …]
Dspi-pxa2xx-dma.c48 pxa_ssp_disable(drv_data->ssp); in pxa2xx_spi_dma_transfer_complete()
90 cfg.dst_addr = drv_data->ssp->phys_base + SSDR; in pxa2xx_spi_dma_prepare_one()
97 cfg.src_addr = drv_data->ssp->phys_base + SSDR; in pxa2xx_spi_dma_prepare_one()
107 dev_warn(drv_data->ssp->dev, "DMA slave config failed\n"); in pxa2xx_spi_dma_prepare_one()
121 dev_err(drv_data->ssp->dev, "FIFO overrun\n"); in pxa2xx_spi_dma_transfer()
141 dev_err(drv_data->ssp->dev, "failed to get DMA TX descriptor\n"); in pxa2xx_spi_dma_prepare()
148 dev_err(drv_data->ssp->dev, "failed to get DMA RX descriptor\n"); in pxa2xx_spi_dma_prepare()
186 struct device *dev = drv_data->ssp->dev; in pxa2xx_spi_dma_setup()
/linux-6.6.21/Documentation/devicetree/bindings/serial/
Dmrvl,pxa-ssp.txt6 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 {
22 compatible = "mrvl,pxa3xx-ssp";
24 ssp-id = <1>;
26 clock-names = "pxa27x-ssp.0";
[all …]
/linux-6.6.21/drivers/input/mouse/
Dnavpoint.c32 struct ssp_device *ssp; member
120 struct ssp_device *ssp = navpoint->ssp; in navpoint_irq() local
124 status = pxa_ssp_read_reg(ssp, SSSR); in navpoint_irq()
128 pxa_ssp_write_reg(ssp, SSSR, (status & sssr)); in navpoint_irq()
135 data = pxa_ssp_read_reg(ssp, SSDR); in navpoint_irq()
143 status = pxa_ssp_read_reg(ssp, SSSR); in navpoint_irq()
152 struct ssp_device *ssp = navpoint->ssp; in navpoint_up() local
155 clk_prepare_enable(ssp->clk); in navpoint_up()
157 pxa_ssp_write_reg(ssp, SSCR1, sscr1); in navpoint_up()
158 pxa_ssp_write_reg(ssp, SSSR, sssr); in navpoint_up()
[all …]
/linux-6.6.21/arch/x86/kernel/
Dshstk.c50 static int create_rstor_token(unsigned long ssp, unsigned long *token_addr) in create_rstor_token() argument
55 if (!IS_ALIGNED(ssp, 8)) in create_rstor_token()
58 addr = ssp - SS_FRAME_SIZE; in create_rstor_token()
64 ssp |= BIT(0); in create_rstor_token()
66 if (write_user_shstk_64((u64 __user *)addr, (u64)ssp)) in create_rstor_token()
238 unsigned long long ssp; in get_user_shstk_addr() local
242 rdmsrl(MSR_IA32_PL3_SSP, ssp); in get_user_shstk_addr()
246 return ssp; in get_user_shstk_addr()
280 static int shstk_push_sigframe(unsigned long *ssp) in shstk_push_sigframe() argument
282 unsigned long target_ssp = *ssp; in shstk_push_sigframe()
[all …]
Dvm86_32.c496 unsigned char __user *ssp, unsigned short sp) in do_int() argument
513 pushw(ssp, sp, get_vflags(regs), cannot_handle); in do_int()
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
564 ssp = (unsigned char __user *) (regs->pt.ss << 4); in handle_vm86_fault()
591 pushl(ssp, sp, get_vflags(regs), simulate_sigsegv); in handle_vm86_fault()
594 pushw(ssp, sp, get_vflags(regs), simulate_sigsegv); in handle_vm86_fault()
605 newflags = popl(ssp, sp, simulate_sigsegv); in handle_vm86_fault()
608 newflags = popw(ssp, sp, simulate_sigsegv); in handle_vm86_fault()
[all …]
/linux-6.6.21/drivers/clk/mxs/
Dclk-ssp.c21 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-6.6.21/Documentation/devicetree/bindings/pinctrl/
Dmarvell,dove-pinctrl.txt30 mpp10 10 gpio, pmu, ssp(sclk), pmu*
36 ssp(extclk), pmu*
37 mpp14 14 gpio, pmu, uart2(txd), sdio1(buspwr), ssp(rxd), pmu*
38 mpp15 15 gpio, pmu, uart2(rxd), sdio1(ledctrl), ssp(sfrm), 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
[all …]
/linux-6.6.21/arch/arm/mach-sa1100/
Dssp.c158 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-6.6.21/Documentation/devicetree/bindings/sound/
Dmrvl,pxa-ssp.txt5 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-6.6.21/sound/soc/intel/catpt/
Dregisters.h35 #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-6.6.21/drivers/scsi/isci/
Dremote_node_context.c129 rnc->ssp.remote_node_index = rni; in sci_remote_node_context_construct_buffer()
130 rnc->ssp.remote_node_port_width = idev->device_port_width; in sci_remote_node_context_construct_buffer()
131 rnc->ssp.logical_port_index = idev->owning_port->physical_port_index; in sci_remote_node_context_construct_buffer()
135 rnc->ssp.remote_sas_address_hi = upper_32_bits(sas_addr); in sci_remote_node_context_construct_buffer()
136 rnc->ssp.remote_sas_address_lo = lower_32_bits(sas_addr); 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()
140 rnc->ssp.is_valid = 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()
[all …]
/linux-6.6.21/tools/testing/selftests/x86/
Dtest_shadow_stack.c134 unsigned long ssp; in try_shstk() local
139 ssp = get_ssp(); in try_shstk()
140 printf("[INFO]\tchanging ssp from %lx to %lx\n", ssp, new_ssp); in try_shstk()
147 ssp -= 8; in try_shstk()
148 asm volatile("rstorssp (%0)\n":: "r" (ssp)); in try_shstk()
692 unsigned long saved_ssp, ssp = 0; in test_ptrace() local
698 iov.iov_base = &ssp; in test_ptrace()
699 iov.iov_len = sizeof(ssp); in test_ptrace()
703 ssp = get_ssp(); in test_ptrace()
727 if (!ssp) { in test_ptrace()
[all …]
/linux-6.6.21/security/smack/
Dsmack_lsm.c1545 struct socket_smack *ssp; in smack_inode_getsecurity() local
1574 ssp = sock->sk->sk_security; in smack_inode_getsecurity()
1577 isp = ssp->smk_in; in smack_inode_getsecurity()
1579 isp = ssp->smk_out; in smack_inode_getsecurity()
1952 struct socket_smack *ssp; in smack_file_receive() local
1962 ssp = sock->sk->sk_security; in smack_file_receive()
1970 rc = smk_access(tsp->smk_task, ssp->smk_out, MAY_WRITE, &ad); in smack_file_receive()
1974 rc = smk_access(ssp->smk_in, tsp->smk_task, MAY_WRITE, &ad); in smack_file_receive()
2382 struct socket_smack *ssp; in smack_sk_alloc_security() local
2384 ssp = kzalloc(sizeof(struct socket_smack), gfp_flags); in smack_sk_alloc_security()
[all …]

1234