Home
last modified time | relevance | path

Searched refs:sci (Results 1 – 25 of 38) sorted by relevance

12

/drivers/net/netdevsim/
Dmacsec.c6 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 …]
Dnetdevsim.h60 sci_t sci; member
65 sci_t sci; member
/drivers/reset/
Dreset-ti-sci.c39 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 …]
DMakefile36 obj-$(CONFIG_RESET_TI_SCI) += reset-ti-sci.o
/drivers/remoteproc/
Dti_sci_proc.h24 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()
Dti_k3_dsp_remoteproc.c649 const struct ti_sci_handle *sci) in k3_dsp_rproc_of_get_tsp() argument
665 tsp->sci = sci; in k3_dsp_rproc_of_get_tsp()
666 tsp->ops = &sci->ops.proc_ops; in k3_dsp_rproc_of_get_tsp()
/drivers/irqchip/
Dirq-ti-sci-intr.c30 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()
Dirq-ti-sci-inta.c101 const struct ti_sci_handle *sci; member
298 err = inta->sci->ops.rm_irq_ops.set_event_map(inta->sci, in ti_sci_inta_alloc_event()
396 inta->sci->ops.rm_irq_ops.free_event_map(inta->sci, in ti_sci_inta_free_irq()
671 inta->sci = devm_ti_sci_get_by_phandle(dev, "ti,sci"); in ti_sci_inta_irq_domain_probe()
672 if (IS_ERR(inta->sci)) in ti_sci_inta_irq_domain_probe()
673 return dev_err_probe(dev, PTR_ERR(inta->sci), in ti_sci_inta_irq_domain_probe()
682 inta->vint = devm_ti_sci_get_resource(inta->sci, dev, inta->ti_sci_id, in ti_sci_inta_irq_domain_probe()
689 inta->global_event = devm_ti_sci_get_resource(inta->sci, dev, inta->ti_sci_id, in ti_sci_inta_irq_domain_probe()
DMakefile104 obj-$(CONFIG_TI_SCI_INTR_IRQCHIP) += irq-ti-sci-intr.o
105 obj-$(CONFIG_TI_SCI_INTA_IRQCHIP) += irq-ti-sci-inta.o
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dmacsec.c64 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()
346 rule_attrs.sci = sa->sci; in mlx5e_macsec_init_sa_fs()
371 obj_attrs.sci = cpu_to_be64((__force u64)sa->sci); in mlx5e_macsec_init_sa()
404 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
409 if (iter->sci == sci) in mlx5e_macsec_get_rx_sc_from_sc_list()
536 tx_sa->sci = secy->sci; in mlx5e_macsec_add_txsa()
[all …]
/drivers/spi/
Dspi-s3c64xx.c1077 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 …]
/drivers/clk/keystone/
Dsci-clk.c32 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 …]
DMakefile3 obj-$(CONFIG_TI_SCI_CLK) += sci-clk.o
/drivers/net/
Dmacsec.c75 sci_t sci; member
251 sci_t sci; in make_sci() local
253 memcpy(&sci, addr, ETH_ALEN); in make_sci()
254 memcpy(((char *)&sci) + ETH_ALEN, &port, sizeof(port)); in make_sci()
256 return sci; in make_sci()
261 sci_t sci; in macsec_frame_sci() local
264 memcpy(&sci, hdr->secure_channel_id, in macsec_frame_sci()
267 sci = make_sci(hdr->eth.h_source, MACSEC_PORT_ES); in macsec_frame_sci()
269 return sci; in macsec_frame_sci()
299 memcpy(&h->secure_channel_id, &secy->sci, in macsec_fill_sectag()
[all …]
/drivers/infiniband/hw/hfi1/
Dpio.c434 struct send_context_info *sci = in init_send_contexts() local
436 sci->type = i; in init_send_contexts()
437 sci->base = base; in init_send_contexts()
438 sci->credits = scs->size; in init_send_contexts()
456 struct send_context_info *sci; in sc_hw_alloc() local
460 for (index = 0, sci = &dd->send_contexts[0]; in sc_hw_alloc()
461 index < dd->num_send_contexts; index++, sci++) { in sc_hw_alloc()
462 if (sci->type == type && sci->allocated == 0) { in sc_hw_alloc()
463 sci->allocated = 1; in sc_hw_alloc()
483 struct send_context_info *sci; in sc_hw_free() local
[all …]
Ddebugfs.c399 struct send_context_info *sci; in _pios_seq_show() local
405 sci = &dd->send_contexts[i]; in _pios_seq_show()
406 if (sci && sci->type != SC_USER && sci->allocated && sci->sc) in _pios_seq_show()
407 seqfile_dump_sci(s, i, sci); in _pios_seq_show()
Dpio.h291 struct send_context_info *sci);
/drivers/net/phy/mscc/
Dmscc_macsec.c387 if (bank == MACSEC_INGR && flow->match.sci && flow->rx_sa->sc->sci) { in vsc8584_macsec_flow()
388 u64 sci = (__force u64)flow->rx_sa->sc->sci; in vsc8584_macsec_flow() local
395 lower_32_bits(sci)); in vsc8584_macsec_flow()
397 upper_32_bits(sci)); in vsc8584_macsec_flow()
528 u64 sci; in vsc8584_macsec_transformation() local
586 sci = (__force u64)(bank == MACSEC_INGR ? flow->rx_sa->sc->sci : priv->secy->sci); in vsc8584_macsec_transformation()
588 lower_32_bits(sci)); in vsc8584_macsec_transformation()
590 upper_32_bits(sci)); in vsc8584_macsec_transformation()
702 flow->match.sci = 1; in __vsc8584_macsec_add_rxsa()
821 flow->rx_sa->sc->sci == ctx->rx_sc->sci) in vsc8584_macsec_del_rxsc()
/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dmacsec_fs.h21 sci_t sci; member
60 u32 mlx5_macsec_fs_get_fs_id_from_hashtable(struct mlx5_macsec_fs *macsec_fs, sci_t *sci);
Dmacsec_fs.c60 u8 sci[MACSEC_SCI_LEN]; /* optional */ member
99 sci_t sci; member
167 .key_len = sizeof_field(struct mlx5_fs_id, sci),
168 .key_offset = offsetof(struct mlx5_fs_id, sci),
624 memcpy(&sectag.sci, &secy->sci, in macsec_fs_tx_create_sectag_header()
625 sizeof(sectag.sci)); in macsec_fs_tx_create_sectag_header()
700 void *macdev, struct rhashtable *hash_table, sci_t sci, in macsec_fs_id_add() argument
747 fs_id_iter->sci = sci; in macsec_fs_id_add()
880 &macsec_fs->sci_hash, attrs->sci, true); in macsec_fs_tx_add_rule()
1687 __be32 *sci_p = (__be32 *)(&attrs->sci); in macsec_fs_rx_setup_fte()
[all …]
/drivers/net/ethernet/aquantia/atlantic/macsec/
Dmacsec_api.c362 packed_record[0] = rec->sci[0] & 0xFFFF; in set_ingress_preclass_record()
363 packed_record[1] = (rec->sci[0] >> 16) & 0xFFFF; in set_ingress_preclass_record()
365 packed_record[2] = rec->sci[1] & 0xFFFF; in set_ingress_preclass_record()
366 packed_record[3] = (rec->sci[1] >> 16) & 0xFFFF; in set_ingress_preclass_record()
476 rec->sci[0] = packed_record[0]; in get_ingress_preclass_record()
477 rec->sci[0] |= packed_record[1] << 16; in get_ingress_preclass_record()
479 rec->sci[1] = packed_record[2]; in get_ingress_preclass_record()
480 rec->sci[1] |= packed_record[3] << 16; in get_ingress_preclass_record()
1264 packed_record[3] |= (rec->sci[0] & 0xFF) << 8; in set_egress_class_record()
1265 packed_record[4] = (rec->sci[0] >> 8) & 0xFFFF; in set_egress_class_record()
[all …]
Dmacsec_struct.h63 u32 sci[2]; member
358 u32 sci[2]; member
/drivers/crypto/caam/
Dpdb.h310 u64 sci; member
323 u64 sci; member
/drivers/net/ethernet/marvell/octeontx2/af/
Dmcs.h105 u64 sci; member
191 void mcs_rx_sc_cam_write(struct mcs *mcs, u64 sci, u64 secy, int sc_id);
/drivers/tty/serial/
Dsh-sci.c1124 struct sci_port *sci = to_sci_port(port); in rx_fifo_trigger_show() local
1126 return sprintf(buf, "%d\n", sci->rx_trigger); in rx_fifo_trigger_show()
1134 struct sci_port *sci = to_sci_port(port); in rx_fifo_trigger_store() local
1142 sci->rx_trigger = scif_set_rtrg(port, r); in rx_fifo_trigger_store()
1156 struct sci_port *sci = to_sci_port(port); in rx_fifo_timeout_show() local
1160 v = sci->hscif_tot >> HSSCR_TOT_SHIFT; in rx_fifo_timeout_show()
1162 v = sci->rx_fifo_timeout; in rx_fifo_timeout_show()
1173 struct sci_port *sci = to_sci_port(port); in rx_fifo_timeout_store() local
1184 sci->hscif_tot = r << HSSCR_TOT_SHIFT; in rx_fifo_timeout_store()
1186 sci->rx_fifo_timeout = r; in rx_fifo_timeout_store()
[all …]

12