/openbmc/qemu/hw/char/ |
H A D | renesas_sci.c | 33 /* SCI register map */ 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() [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() 54 netdev_dbg(ctx->netdev, "%s: adding new secy with sci %08llx at index %d\n", in nsim_macsec_add_secy() 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() [all …]
|
/openbmc/u-boot/drivers/clk/ |
H A D | clk-ti-sci.c | 3 * Texas Instruments System Control Interface (TI SCI) clock driver 8 * Loosely based on Linux kernel sci-clk.c... 19 * @sci: TI SCI handle used for communication with system controller 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() 53 * On TI SCI-based devices, the clock provider id field is used as a in ti_sci_clk_of_xlate() 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() [all …]
|
/openbmc/u-boot/drivers/reset/ |
H A D | reset-ti-sci.c | 3 * Texas Instruments System Control Interface (TI SCI) reset driver 8 * Loosely based on Linux kernel reset-ti-sci.c... 19 * @sci: TI SCI handle used for communication with system controller 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() 53 * On TI SCI-based devices, the reset provider id field is used as a in ti_sci_reset_of_xlate() 80 * reset using the TI SCI protocol. The device's reset is asserted if the 83 * reset register is read using a TI SCI device operation, the new value is [all …]
|
/openbmc/u-boot/drivers/power/domain/ |
H A D | ti-sci-power-domain.c | 3 * Texas Instruments System Control Interface (TI SCI) power domain driver 19 * @sci: TI SCI handle used for communication with system controller 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 [all …]
|
/openbmc/linux/drivers/remoteproc/ |
H A D | ti_sci_proc.h | 3 * Texas Instruments TI-SCI Processor Controller Helper Functions 16 * @sci: cached TI-SCI protocol handle 17 * @ops: cached TI-SCI proc ops 24 const struct ti_sci_handle *sci; member 35 ret = tsp->ops->request(tsp->sci, tsp->proc_id); in ti_sci_proc_request() 37 dev_err(tsp->dev, "ti-sci processor request failed: %d\n", in ti_sci_proc_request() 46 ret = tsp->ops->release(tsp->sci, tsp->proc_id); in ti_sci_proc_release() 48 dev_err(tsp->dev, "ti-sci processor release failed: %d\n", in ti_sci_proc_release() 57 ret = tsp->ops->handover(tsp->sci, tsp->proc_id, tsp->host_id); in ti_sci_proc_handover() 59 dev_err(tsp->dev, "ti-sci processor handover of %d to %d failed: %d\n", in ti_sci_proc_handover() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/arm/keystone/ |
H A D | ti,sci.yaml | 4 $id: http://devicetree.org/schemas/arm/keystone/ti,sci.yaml# 7 title: TI-SCI controller 25 The TI-SCI node describes the Texas Instrument's System Controller entity node. 29 relationship between the TI-SCI parent node to the child node. 39 - const: ti,k2g-sci 42 - const: ti,am654-sci 47 made available from TI-SCI controller. 55 Specifies the mailboxes used to communicate with TI-SCI Controller 56 made available from TI-SCI controller. 76 $ref: /schemas/soc/ti/sci-pm-domain.yaml# [all …]
|
H A D | ti,k3-sci-common.yaml | 4 $id: http://devicetree.org/schemas/arm/keystone/ti,k3-sci-common.yaml# 7 title: Common K3 TI-SCI 16 through the TI-SCI protocol. 21 over the TI-SCI protocol. The following are some of the common properties 26 ti,sci: 29 Should be a phandle to the TI-SCI System Controller node 31 ti,sci-dev-id: 34 Should contain the TI-SCI device id corresponding to the device. Please 38 ti,sci-proc-ids: 42 - description: TI-SCI processor id for the remote processor device [all …]
|
/openbmc/linux/drivers/reset/ |
H A D | reset-ti-sci.c | 3 * Texas Instrument's System Control Interface (TI-SCI) reset driver 33 * @sci: TI SCI handle used for communication with system controller 39 const struct ti_sci_handle *sci; member 53 * reset using the TI SCI protocol. The device's reset is asserted if the 56 * reset register is read using a TI SCI device operation, the new value is 58 * using another TI SCI device operation. 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() [all …]
|
/openbmc/u-boot/drivers/sysreset/ |
H A D | sysreset-ti-sci.c | 3 * Texas Instruments System Control Interface (TI SCI) system reset driver 17 * @sci: TI SCI handle used for communication with system controller 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() 62 { .compatible = "ti,sci-sysreset", }, [all …]
|
/openbmc/linux/drivers/clk/keystone/ |
H A D | sci-clk.c | 3 * SCI Clock driver for keystone based devices 24 * struct sci_clk_provider - TI SCI clock provider representation 25 * @sci: Handle to the System Control Interface protocol handler 26 * @ops: Pointer to the SCI ops to be used by the clocks 32 const struct ti_sci_handle *sci; member 40 * struct sci_clk - TI SCI clock representation 66 * sci_clk_prepare - Prepare (enable) a TI SCI clock 69 * Prepares a clock to be actively used. Returns the SCI protocol status. 78 return clk->provider->ops->get_clock(clk->provider->sci, clk->dev_id, in sci_clk_prepare() 85 * sci_clk_unprepare - Un-prepares (disables) a TI SCI clock [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/serial/ |
H A D | renesas,sci.yaml | 4 $id: http://devicetree.org/schemas/serial/renesas,sci.yaml# 20 - renesas,r9a07g043-sci # RZ/G2UL 21 - renesas,r9a07g044-sci # RZ/G2{L,LC} 22 - renesas,r9a07g054-sci # RZ/V2L 23 - const: renesas,sci # generic SCI compatible UART 26 - const: renesas,sci # generic SCI compatible UART 71 - renesas,r9a07g043-sci 72 - renesas,r9a07g044-sci 73 - renesas,r9a07g054-sci 98 compatible = "renesas,r9a07g044-sci", "renesas,sci";
|
/openbmc/linux/Documentation/devicetree/bindings/dma/ti/ |
H A D | k3-pktdma.yaml | 28 - $ref: /schemas/arm/keystone/ti,k3-sci-common.yaml# 59 ti,sci-rm-range-tchan: 70 ti,sci-rm-range-tflow: 81 ti,sci-rm-range-rchan: 92 ti,sci-rm-range-rflow: 109 - ti,sci 110 - ti,sci-dev-id 111 - ti,sci-rm-range-tchan 112 - ti,sci-rm-range-tflow 113 - ti,sci-rm-range-rchan [all …]
|
H A D | k3-bcdma.yaml | 86 ti,sci-rm-range-bchan: 97 ti,sci-rm-range-tchan: 108 ti,sci-rm-range-rchan: 125 - ti,sci 126 - ti,sci-dev-id 127 - ti,sci-rm-range-rchan 131 - $ref: /schemas/arm/keystone/ti,k3-sci-common.yaml# 140 ti,sci-rm-range-bchan: false 141 ti,sci-rm-range-tchan: false 174 - ti,sci-rm-range-bchan [all …]
|
H A D | k3-udma.yaml | 47 - $ref: /schemas/arm/keystone/ti,k3-sci-common.yaml# 86 ti,sci-rm-range-tchan: 95 ti,sci-rm-range-rchan: 104 ti,sci-rm-range-rflow: 119 - ti,sci 120 - ti,sci-dev-id 122 - ti,sci-rm-range-tchan 123 - ti,sci-rm-range-rchan 124 - ti,sci-rm-range-rflow 155 ti,sci-dev-id = <118>; [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/soc/ti/ |
H A D | sci-pm-domain.yaml | 4 $id: http://devicetree.org/schemas/soc/ti/sci-pm-domain.yaml# 7 title: TI-SCI generic power domain 20 through a protocol called TI System Control Interface (TI-SCI protocol). 22 This PM domain node represents the global PM domain managed by the TI-SCI 23 controller. Since this relies on the TI SCI protocol to communicate with 24 the TI-SCI controller, it must be a child of the TI-SCI controller node. 28 const: ti,sci-pm-domain 33 The two cells represent values that the TI-SCI controller defines. 51 compatible = "ti,sci-pm-domain"; 57 compatible = "ti,sci-pm-domain";
|
H A D | k3-ringacc.yaml | 29 - $ref: /schemas/arm/keystone/ti,k3-sci-common.yaml# 60 ti,sci-rm-range-gp-rings: 62 description: TI-SCI RM subtype for GP ring range 70 - ti,sci-rm-range-gp-rings 71 - ti,sci 72 - ti,sci-dev-id 91 ti,sci-rm-range-gp-rings = <0x2>; /* GP ring range */ 92 ti,sci = <&dmsc>; 93 ti,sci-dev-id = <187>;
|
/openbmc/u-boot/drivers/serial/ |
H A D | serial_sh.h | 2 * Copy and modify from linux/drivers/serial/sh-sci.h 26 # define SCPCR 0xA4000116 /* 16 bit SCI and SCIF */ 27 # define SCPDR 0xA4000136 /* 8 bit SCI and SCIF */ 64 # define SCSPTR1 0xffe0001c /* 8 bit SCI */ 264 /* SCI_CTRL_FLAGS_MPIE 0x08 * 7707 SCI, 7708 SCI, 7709 SCI, 7750 SCI */ 265 /* SCI_CTRL_FLAGS_TEIE 0x04 * 7707 SCI, 7708 SCI, 7709 SCI, 7750 SCI */ 267 /* SCI_CTRL_FLAGS_CKE0 0x01 * 7707 SCI/SCIF, 7708 SCI, 7709 SCI/SCIF, 7750 SCI */ 269 /* SCxSR SCI */ 270 #define SCI_TDRE 0x80 /* 7707 SCI, 7708 SCI, 7709 SCI, 7750 SCI */ 271 #define SCI_RDRF 0x40 /* 7707 SCI, 7708 SCI, 7709 SCI, 7750 SCI */ [all …]
|
/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/Documentation/devicetree/bindings/clock/ |
H A D | ti,sci-clk.yaml | 4 $id: http://devicetree.org/schemas/clock/ti,sci-clk.yaml# 7 title: TI-SCI clock controller 17 through a protocol called TI System Control Interface (TI-SCI protocol). 19 This clock controller node uses the TI SCI protocol to perform various clock 21 node must be a child node of the associated TI-SCI system controller node. 28 const: ti,k2g-sci-clk 33 The two cells represent values that the TI-SCI controller defines. 47 compatible = "ti,k2g-sci-clk";
|
/openbmc/linux/Documentation/devicetree/bindings/reset/ |
H A D | ti,sci-reset.yaml | 4 $id: http://devicetree.org/schemas/reset/ti,sci-reset.yaml# 7 title: TI-SCI reset controller 17 through a protocol called TI System Control Interface (TI-SCI protocol). 19 This reset controller node uses the TI SCI protocol to perform the reset 21 node of the associated TI-SCI system controller node. 28 const: ti,sci-reset 33 The two cells represent values that the TI-SCI controller defines. 49 compatible = "ti,sci-reset";
|
/openbmc/linux/drivers/irqchip/ |
H A D | irq-ti-sci-intr.c | 23 * @sci: Pointer to TISCI handle 26 * @ti_sci_id: TI-SCI device identifier 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() 260 "ti,sci read fail\n"); in ti_sci_intr_irq_domain_probe() 262 ret = of_property_read_u32(dev_of_node(dev), "ti,sci-dev-id", in ti_sci_intr_irq_domain_probe() [all …]
|
/openbmc/u-boot/doc/device-tree-bindings/firmware/ |
H A D | ti,sci.txt | 1 Texas Instruments System Control Interface (TI-SCI) Message Protocol 16 TI-SCI controller Device Node: 19 The TI-SCI node describes the Texas Instrument's System Controller entity node. 23 relationship between the TI-SCI parent node to the child node. 27 - compatible: should be "ti,k2g-sci" 48 compatible = "ti,k2g-sci"; 56 TI-SCI Client Device Node: 59 Client nodes are maintained as children of the relevant TI-SCI device node. 64 compatible = "ti,k2g-sci";
|
/openbmc/u-boot/drivers/remoteproc/ |
H A D | k3_rproc.c | 29 * @sci: Pointer to TISCI handle 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() [all …]
|