/openbmc/qemu/hw/char/ |
H A D | renesas_sci.c | 74 RSCIState *sci = RSCI(opaque); in can_receive() local 75 if (sci->rx_next > qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL)) { in can_receive() 78 return FIELD_EX8(sci->scr, SCR, RE); in can_receive() 84 RSCIState *sci = RSCI(opaque); in receive() local 85 sci->rx_next = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) + sci->trtime; in receive() 86 if (FIELD_EX8(sci->ssr, SSR, RDRF) || size > 1) { in receive() 87 sci->ssr = FIELD_DP8(sci->ssr, SSR, ORER, 1); in receive() 88 if (FIELD_EX8(sci->scr, SCR, RIE)) { in receive() 89 qemu_set_irq(sci->irq[ERI], 1); in receive() 92 sci->rdr = buf[0]; in receive() [all …]
|
/openbmc/linux/fs/nilfs2/ |
H A D | segment.c | 90 static inline void nilfs_sc_cstage_inc(struct nilfs_sc_info *sci) in nilfs_sc_cstage_inc() argument 92 sci->sc_stage.scnt++; in nilfs_sc_cstage_inc() 93 trace_nilfs2_collection_stage_transition(sci); in nilfs_sc_cstage_inc() 96 static inline void nilfs_sc_cstage_set(struct nilfs_sc_info *sci, int next_scnt) in nilfs_sc_cstage_set() argument 98 sci->sc_stage.scnt = next_scnt; in nilfs_sc_cstage_set() 99 trace_nilfs2_collection_stage_transition(sci); in nilfs_sc_cstage_set() 102 static inline int nilfs_sc_cstage_get(struct nilfs_sc_info *sci) in nilfs_sc_cstage_get() argument 104 return sci->sc_stage.scnt; in nilfs_sc_cstage_get() 271 struct nilfs_sc_info *sci = nilfs->ns_writer; in nilfs_transaction_commit() local 274 nilfs_segctor_start_timer(sci); in nilfs_transaction_commit() [all …]
|
/openbmc/linux/drivers/net/netdevsim/ |
H A D | macsec.c | 6 static inline u64 sci_to_cpu(sci_t sci) in sci_to_cpu() argument 8 return be64_to_cpu((__force __be64)sci); in sci_to_cpu() 11 static int nsim_macsec_find_secy(struct netdevsim *ns, sci_t sci) in nsim_macsec_find_secy() argument 16 if (ns->macsec.nsim_secy[i].sci == sci) in nsim_macsec_find_secy() 23 static int nsim_macsec_find_rxsc(struct nsim_secy *ns_secy, sci_t sci) in nsim_macsec_find_rxsc() argument 28 if (ns_secy->nsim_rxsc[i].sci == sci) in nsim_macsec_find_rxsc() 55 __func__, sci_to_cpu(ctx->secy->sci), idx); in nsim_macsec_add_secy() 58 ns->macsec.nsim_secy[idx].sci = ctx->secy->sci; in nsim_macsec_add_secy() 69 idx = nsim_macsec_find_secy(ns, ctx->secy->sci); in nsim_macsec_upd_secy() 72 __func__, sci_to_cpu(ctx->secy->sci)); in nsim_macsec_upd_secy() [all …]
|
/openbmc/u-boot/drivers/clk/ |
H A D | clk-ti-sci.c | 22 const struct ti_sci_handle *sci; member 35 data->sci = ti_sci_get_handle(dev); in ti_sci_clk_probe() 36 if (IS_ERR(data->sci)) in ti_sci_clk_probe() 37 return PTR_ERR(data->sci); in ti_sci_clk_probe() 77 const struct ti_sci_handle *sci = data->sci; in ti_sci_clk_get_rate() local 78 const struct ti_sci_clk_ops *cops = &sci->ops.clk_ops; in ti_sci_clk_get_rate() 84 ret = cops->get_freq(sci, clk->id, clk->data, ¤t_freq); in ti_sci_clk_get_rate() 98 const struct ti_sci_handle *sci = data->sci; in ti_sci_clk_set_rate() local 99 const struct ti_sci_clk_ops *cops = &sci->ops.clk_ops; in ti_sci_clk_set_rate() 105 ret = cops->set_freq(sci, clk->id, clk->data, rate, rate, rate); in ti_sci_clk_set_rate() [all …]
|
/openbmc/u-boot/drivers/power/domain/ |
H A D | ti-sci-power-domain.c | 22 const struct ti_sci_handle *sci; member 35 data->sci = ti_sci_get_handle(dev); in ti_sci_power_domain_probe() 36 if (IS_ERR(data->sci)) in ti_sci_power_domain_probe() 37 return PTR_ERR(data->sci); in ti_sci_power_domain_probe() 57 const struct ti_sci_handle *sci = data->sci; in ti_sci_power_domain_on() local 58 const struct ti_sci_dev_ops *dops = &sci->ops.dev_ops; in ti_sci_power_domain_on() 63 ret = dops->get_device(sci, pd->id); in ti_sci_power_domain_on() 74 const struct ti_sci_handle *sci = data->sci; in ti_sci_power_domain_off() local 75 const struct ti_sci_dev_ops *dops = &sci->ops.dev_ops; in ti_sci_power_domain_off() 80 ret = dops->put_device(sci, pd->id); in ti_sci_power_domain_off()
|
/openbmc/u-boot/drivers/reset/ |
H A D | reset-ti-sci.c | 22 const struct ti_sci_handle *sci; member 35 data->sci = ti_sci_get_handle(dev); in ti_sci_reset_probe() 36 if (IS_ERR(data->sci)) in ti_sci_reset_probe() 37 return PTR_ERR(data->sci); in ti_sci_reset_probe() 92 const struct ti_sci_handle *sci = data->sci; in ti_sci_reset_set() local 93 const struct ti_sci_dev_ops *dops = &sci->ops.dev_ops; in ti_sci_reset_set() 97 ret = dops->get_device_resets(sci, rst->id, &reset_state); in ti_sci_reset_set() 109 ret = dops->set_device_resets(sci, rst->id, reset_state); in ti_sci_reset_set() 168 const struct ti_sci_handle *sci = data->sci; in ti_sci_reset_status() local 169 const struct ti_sci_dev_ops *dops = &sci->ops.dev_ops; in ti_sci_reset_status() [all …]
|
/openbmc/u-boot/drivers/sysreset/ |
H A D | sysreset-ti-sci.c | 20 const struct ti_sci_handle *sci; member 33 data->sci = ti_sci_get_handle(dev); in ti_sci_sysreset_probe() 34 if (IS_ERR(data->sci)) in ti_sci_sysreset_probe() 35 return PTR_ERR(data->sci); in ti_sci_sysreset_probe() 43 const struct ti_sci_handle *sci = data->sci; in ti_sci_sysreset_request() local 44 const struct ti_sci_core_ops *cops = &sci->ops.core_ops; in ti_sci_sysreset_request() 49 ret = cops->reboot_device(sci); in ti_sci_sysreset_request()
|
/openbmc/linux/drivers/reset/ |
H A D | reset-ti-sci.c | 39 const struct ti_sci_handle *sci; member 66 const struct ti_sci_handle *sci = data->sci; in ti_sci_reset_set() local 67 const struct ti_sci_dev_ops *dev_ops = &sci->ops.dev_ops; in ti_sci_reset_set() 78 ret = dev_ops->get_device_resets(sci, control->dev_id, &reset_state); in ti_sci_reset_set() 87 ret = dev_ops->set_device_resets(sci, control->dev_id, reset_state); in ti_sci_reset_set() 147 const struct ti_sci_handle *sci = data->sci; in ti_sci_reset_status() local 148 const struct ti_sci_dev_ops *dev_ops = &sci->ops.dev_ops; in ti_sci_reset_status() 157 ret = dev_ops->get_device_resets(sci, control->dev_id, &reset_state); in ti_sci_reset_status() 221 data->sci = devm_ti_sci_get_handle(&pdev->dev); in ti_sci_reset_probe() 222 if (IS_ERR(data->sci)) in ti_sci_reset_probe() [all …]
|
/openbmc/u-boot/drivers/remoteproc/ |
H A D | k3_rproc.c | 38 const struct ti_sci_handle *sci; member 55 const struct ti_sci_proc_ops *pops = &rproc->sci->ops.proc_ops; in k3_rproc_load() 61 ret = pops->proc_request(rproc->sci, rproc->proc_id); in k3_rproc_load() 67 ret = pops->set_proc_boot_cfg(rproc->sci, rproc->proc_id, addr, 0, 0); in k3_rproc_load() 87 const struct ti_sci_proc_ops *pops = &rproc->sci->ops.proc_ops; in k3_rproc_start() 113 ret = pops->proc_handover(rproc->sci, rproc->proc_id, in k3_rproc_start() 120 ret = pops->proc_release(rproc->sci, rproc->proc_id); in k3_rproc_start() 186 rproc->sci = ti_sci_get_by_phandle(dev, "ti,sci"); in k3_rproc_of_to_priv() 187 if (IS_ERR(rproc->sci)) { in k3_rproc_of_to_priv() 189 return PTR_ERR(rproc->sci); in k3_rproc_of_to_priv()
|
/openbmc/u-boot/doc/device-tree-bindings/remoteproc/ |
H A D | k3-rproc.txt | 18 doc/device-tree-bindings/power/ti,sci-pm-domain.txt 22 doc/device-tree-bindings/reset/ti,sci-reset.txt 23 - ti,sci: Phandle to TI-SCI compatible System controller node. 24 - ti,sci-proc-id: Processor id as identified by TISCI 31 doc/device-tree-bindings/clock/ti,sci-clk.txt 35 - ti,sci-host-id: Host ID to which the processor control is transferred to 47 ti,sci = <&dmsc>; 48 ti,sci-proc-id = <32>; 49 ti,sci-host-id = <10>;
|
/openbmc/linux/drivers/remoteproc/ |
H A D | ti_sci_proc.h | 24 const struct ti_sci_handle *sci; member 35 ret = tsp->ops->request(tsp->sci, tsp->proc_id); in ti_sci_proc_request() 46 ret = tsp->ops->release(tsp->sci, tsp->proc_id); in ti_sci_proc_release() 57 ret = tsp->ops->handover(tsp->sci, tsp->proc_id, tsp->host_id); in ti_sci_proc_handover() 70 ret = tsp->ops->set_config(tsp->sci, tsp->proc_id, boot_vector, in ti_sci_proc_set_config() 83 ret = tsp->ops->set_control(tsp->sci, tsp->proc_id, ctrl_set, ctrl_clr); in ti_sci_proc_set_control() 96 ret = tsp->ops->get_status(tsp->sci, tsp->proc_id, boot_vector, in ti_sci_proc_get_status()
|
/openbmc/linux/arch/arm64/boot/dts/ti/ |
H A D | k3-am65-wakeup.dtsi | 10 compatible = "ti,am654-sci"; 22 compatible = "ti,sci-pm-domain"; 27 compatible = "ti,k2g-sci-clk"; 32 compatible = "ti,sci-reset"; 73 compatible = "ti,sci-intr"; 79 ti,sci = <&dmsc>; 80 ti,sci-dev-id = <156>;
|
H A D | k3-j7200-mcu-wakeup.dtsi | 10 compatible = "ti,k2g-sci"; 22 compatible = "ti,sci-pm-domain"; 27 compatible = "ti,k2g-sci-clk"; 32 compatible = "ti,sci-reset"; 275 compatible = "ti,sci-intr"; 281 ti,sci = <&dmsc>; 282 ti,sci-dev-id = <137>; 327 ti,sci-dev-id = <232>; 339 ti,sci-rm-range-gp-rings = <0x1>; /* GP ring range */ 340 ti,sci = <&dmsc>; [all …]
|
H A D | k3-j784s4-main.dtsi | 55 compatible = "ti,sci-intr"; 61 ti,sci = <&sms>; 62 ti,sci-dev-id = <10>; 678 ti,sci-dev-id = <280>; 683 compatible = "ti,sci-intr"; 689 ti,sci = <&sms>; 690 ti,sci-dev-id = <283>; 697 compatible = "ti,sci-inta"; 703 ti,sci = <&sms>; 704 ti,sci-dev-id = <321>; [all …]
|
H A D | k3-j784s4-mcu-wakeup.dtsi | 11 compatible = "ti,k2g-sci"; 24 compatible = "ti,sci-pm-domain"; 30 compatible = "ti,k2g-sci-clk"; 36 compatible = "ti,sci-reset"; 107 compatible = "ti,sci-intr"; 113 ti,sci = <&sms>; 114 ti,sci-dev-id = <177>; 456 ti,sci-dev-id = <323>; 470 ti,sci-rm-range-gp-rings = <0x1>; 471 ti,sci = <&sms>; [all …]
|
H A D | k3-j721e-mcu-wakeup.dtsi | 10 compatible = "ti,k2g-sci"; 22 compatible = "ti,sci-pm-domain"; 27 compatible = "ti,k2g-sci-clk"; 32 compatible = "ti,sci-reset"; 259 compatible = "ti,sci-intr"; 265 ti,sci = <&dmsc>; 266 ti,sci-dev-id = <137>; 450 ti,sci-dev-id = <232>; 461 ti,sci-rm-range-gp-rings = <0x1>; /* GP ring range */ 462 ti,sci = <&dmsc>; [all …]
|
H A D | k3-am65-mcu.dtsi | 195 ti,sci-dev-id = <119>; 207 ti,sci-rm-range-gp-rings = <0x1>; /* GP ring range */ 208 ti,sci = <&dmsc>; 209 ti,sci-dev-id = <195>; 222 ti,sci = <&dmsc>; 223 ti,sci-dev-id = <194>; 226 ti,sci-rm-range-tchan = <0xf>, /* TX_HCHAN */ 228 ti,sci-rm-range-rchan = <0xb>, /* RX_HCHAN */ 230 ti,sci-rm-range-rflow = <0x0>; /* GP RFLOW */ 406 ti,sci = <&dmsc>; [all …]
|
H A D | k3-am62a-main.dtsi | 71 ti,sci-dev-id = <25>; 85 compatible = "ti,sci-inta"; 91 ti,sci = <&dmsc>; 92 ti,sci-dev-id = <28>; 107 ti,sci = <&dmsc>; 108 ti,sci-dev-id = <26>; 109 ti,sci-rm-range-bchan = <0x20>; /* BLOCK_COPY_CHAN */ 110 ti,sci-rm-range-rchan = <0x21>; /* SPLIT_TR_RX_CHAN */ 111 ti,sci-rm-range-tchan = <0x22>; /* SPLIT_TR_TX_CHAN */ 123 ti,sci = <&dmsc>; [all …]
|
/openbmc/linux/drivers/irqchip/ |
H A D | irq-ti-sci-intr.c | 30 const struct ti_sci_handle *sci; member 118 intr->sci->ops.rm_irq_ops.free_irq(intr->sci, in ti_sci_intr_irq_domain_free() 170 err = intr->sci->ops.rm_irq_ops.set_irq(intr->sci, in ti_sci_intr_alloc_parent_irq() 257 intr->sci = devm_ti_sci_get_by_phandle(dev, "ti,sci"); in ti_sci_intr_irq_domain_probe() 258 if (IS_ERR(intr->sci)) in ti_sci_intr_irq_domain_probe() 259 return dev_err_probe(dev, PTR_ERR(intr->sci), in ti_sci_intr_irq_domain_probe() 269 intr->out_irqs = devm_ti_sci_get_resource(intr->sci, dev, in ti_sci_intr_irq_domain_probe()
|
/openbmc/linux/include/trace/events/ |
H A D | nilfs2.h | 27 TP_PROTO(struct nilfs_sc_info *sci), 29 TP_ARGS(sci), 32 __field(void *, sci) 37 __entry->sci = sci; 38 __entry->stage = sci->sc_stage.scnt; 42 __entry->sci,
|
/openbmc/qemu/hw/rx/ |
H A D | rx62n.c | 199 SysBusDevice *sci; in register_sci() local 203 &s->sci[unit], TYPE_RENESAS_SCI); in register_sci() 204 sci = SYS_BUS_DEVICE(&s->sci[unit]); in register_sci() 205 qdev_prop_set_chr(DEVICE(sci), "chardev", serial_hd(unit)); in register_sci() 206 qdev_prop_set_uint64(DEVICE(sci), "input-freq", s->pclk_freq_hz); in register_sci() 207 sysbus_realize(sci, &error_abort); in register_sci() 211 sysbus_connect_irq(sci, i, in register_sci() 214 sysbus_mmio_map(sci, 0, RX62N_SCI_BASE + unit * 0x08); in register_sci()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | macsec.c | 64 sci_t sci; member 81 sci_t sci; member 134 __be64 sci; member 267 MLX5_SET64(macsec_offload_obj, obj, sci, (__force u64)attrs->ssci); in mlx5e_macsec_create_object() 272 MLX5_SET64(macsec_offload_obj, obj, sci, (__force u64)(attrs->sci)); in mlx5e_macsec_create_object() 350 rule_attrs.sci = sa->sci; in mlx5e_macsec_init_sa_fs() 375 obj_attrs.sci = cpu_to_be64((__force u64)sa->sci); in mlx5e_macsec_init_sa() 408 mlx5e_macsec_get_rx_sc_from_sc_list(const struct list_head *list, sci_t sci) in mlx5e_macsec_get_rx_sc_from_sc_list() argument 413 if (iter->sci == sci) in mlx5e_macsec_get_rx_sc_from_sc_list() 540 tx_sa->sci = secy->sci; in mlx5e_macsec_add_txsa() [all …]
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | k3-am65-wakeup.dtsi | 10 compatible = "ti,k2g-sci"; 22 compatible = "ti,sci-pm-domain"; 27 compatible = "ti,k2g-sci-clk"; 32 compatible = "ti,sci-reset";
|
/openbmc/linux/drivers/spi/ |
H A D | spi-s3c64xx.c | 1077 struct s3c64xx_spi_info *sci = sdd->cntrlr_info; in s3c64xx_spi_hwinit() local 1083 if (sci->no_cs) in s3c64xx_spi_hwinit() 1092 writel(sci->src_clk_nr << S3C64XX_SPI_CLKSEL_SRCSHFT, in s3c64xx_spi_hwinit() 1119 struct s3c64xx_spi_info *sci; in s3c64xx_spi_parse_dt() local 1122 sci = devm_kzalloc(dev, sizeof(*sci), GFP_KERNEL); in s3c64xx_spi_parse_dt() 1123 if (!sci) in s3c64xx_spi_parse_dt() 1128 sci->src_clk_nr = 0; in s3c64xx_spi_parse_dt() 1130 sci->src_clk_nr = temp; in s3c64xx_spi_parse_dt() 1135 sci->num_cs = 1; in s3c64xx_spi_parse_dt() 1137 sci->num_cs = temp; in s3c64xx_spi_parse_dt() [all …]
|
/openbmc/linux/drivers/clk/keystone/ |
H A D | sci-clk.c | 32 const struct ti_sci_handle *sci; member 78 return clk->provider->ops->get_clock(clk->provider->sci, clk->dev_id, in sci_clk_prepare() 95 ret = clk->provider->ops->put_clock(clk->provider->sci, clk->dev_id, in sci_clk_unprepare() 116 ret = clk->provider->ops->is_on(clk->provider->sci, clk->dev_id, in sci_clk_is_prepared() 144 ret = clk->provider->ops->get_freq(clk->provider->sci, clk->dev_id, in sci_clk_recalc_rate() 178 ret = clk->provider->ops->get_best_match_freq(clk->provider->sci, in sci_clk_determine_rate() 214 return clk->provider->ops->set_freq(clk->provider->sci, clk->dev_id, in sci_clk_set_rate() 231 ret = clk->provider->ops->get_parent(clk->provider->sci, clk->dev_id, in sci_clk_get_parent() 258 return clk->provider->ops->set_parent(clk->provider->sci, clk->dev_id, in sci_clk_set_parent() 435 ret = provider->ops->get_num_parents(provider->sci, dev_id, in ti_sci_scan_clocks_from_fw() [all …]
|