/drivers/media/platform/qcom/camss/ |
D | camss-csid.c | 87 static int csid_set_clock_rates(struct csid_device *csid) in csid_set_clock_rates() argument 89 struct device *dev = csid->camss->dev; in csid_set_clock_rates() 95 fmt = csid_get_fmt_entry(csid->formats, csid->nformats, in csid_set_clock_rates() 96 csid->fmt[MSM_CSIPHY_PAD_SINK].code); in csid_set_clock_rates() 97 link_freq = camss_get_link_freq(&csid->subdev.entity, fmt->bpp, in csid_set_clock_rates() 98 csid->phy.lane_cnt); in csid_set_clock_rates() 102 for (i = 0; i < csid->nclocks; i++) { in csid_set_clock_rates() 103 struct camss_clock *clock = &csid->clock[i]; in csid_set_clock_rates() 158 struct csid_device *csid = v4l2_get_subdevdata(sd); in csid_set_power() local 159 struct camss *camss = csid->camss; in csid_set_power() [all …]
|
D | camss-csid-gen2.c | 24 #define IS_LITE (csid->id >= 2 ? 1 : 0) 337 static void __csid_configure_stream(struct csid_device *csid, u8 enable, u8 vc) in __csid_configure_stream() argument 339 struct csid_testgen_config *tg = &csid->testgen; in __csid_configure_stream() 342 u8 lane_cnt = csid->phy.lane_cnt; in __csid_configure_stream() 344 struct v4l2_mbus_framefmt *input_format = &csid->fmt[MSM_CSID_PAD_FIRST_SRC + vc]; in __csid_configure_stream() 345 const struct csid_format *format = csid_get_fmt_entry(csid->formats, csid->nformats, in __csid_configure_stream() 352 phy_sel = csid->phy.csiphy_id; in __csid_configure_stream() 374 writel_relaxed(val, csid->base + CSID_TPG_VC_CFG0); in __csid_configure_stream() 378 writel_relaxed(val, csid->base + CSID_TPG_VC_CFG1); in __csid_configure_stream() 380 writel_relaxed(0x12345678, csid->base + CSID_TPG_LFSR_SEED); in __csid_configure_stream() [all …]
|
D | camss-csid-4-1.c | 170 static void csid_configure_stream(struct csid_device *csid, u8 enable) in csid_configure_stream() argument 172 struct csid_testgen_config *tg = &csid->testgen; in csid_configure_stream() 186 input_format = &csid->fmt[MSM_CSID_PAD_SRC]; in csid_configure_stream() 187 format = csid_get_fmt_entry(csid->formats, csid->nformats, in csid_configure_stream() 196 writel_relaxed(val, csid->base + CAMSS_CSID_TG_VC_CFG); in csid_configure_stream() 201 writel_relaxed(val, csid->base + CAMSS_CSID_TG_DT_n_CGG_0(0)); in csid_configure_stream() 205 writel_relaxed(val, csid->base + CAMSS_CSID_TG_DT_n_CGG_1(0)); in csid_configure_stream() 209 writel_relaxed(val, csid->base + CAMSS_CSID_TG_DT_n_CGG_2(0)); in csid_configure_stream() 211 struct csid_phy_config *phy = &csid->phy; in csid_configure_stream() 213 input_format = &csid->fmt[MSM_CSID_PAD_SINK]; in csid_configure_stream() [all …]
|
D | camss-csid-4-7.c | 197 static void csid_configure_stream(struct csid_device *csid, u8 enable) in csid_configure_stream() argument 199 struct csid_testgen_config *tg = &csid->testgen; in csid_configure_stream() 200 u32 sink_code = csid->fmt[MSM_CSID_PAD_SINK].code; in csid_configure_stream() 201 u32 src_code = csid->fmt[MSM_CSID_PAD_SRC].code; in csid_configure_stream() 215 input_format = &csid->fmt[MSM_CSID_PAD_SRC]; in csid_configure_stream() 216 format = csid_get_fmt_entry(csid->formats, csid->nformats, in csid_configure_stream() 225 writel_relaxed(val, csid->base + CAMSS_CSID_TG_VC_CFG); in csid_configure_stream() 230 writel_relaxed(val, csid->base + CAMSS_CSID_TG_DT_n_CGG_0(0)); in csid_configure_stream() 234 writel_relaxed(val, csid->base + CAMSS_CSID_TG_DT_n_CGG_1(0)); in csid_configure_stream() 238 writel_relaxed(val, csid->base + CAMSS_CSID_TG_DT_n_CGG_2(0)); in csid_configure_stream() [all …]
|
D | camss-csid.h | 100 void (*configure_stream)(struct csid_device *csid, u8 enable); 107 int (*configure_testgen_pattern)(struct csid_device *csid, s32 val); 113 u32 (*hw_version)(struct csid_device *csid); 130 int (*reset)(struct csid_device *csid); 142 u32 (*src_pad_code)(struct csid_device *csid, u32 sink_code, 149 void (*subdev_init)(struct csid_device *csid); 202 int msm_csid_subdev_init(struct camss *camss, struct csid_device *csid, 205 int msm_csid_register_entity(struct csid_device *csid, 208 void msm_csid_unregister_entity(struct csid_device *csid);
|
D | Makefile | 6 camss-csid.o \ 7 camss-csid-4-1.o \ 8 camss-csid-4-7.o \ 9 camss-csid-gen2.o \
|
D | camss.c | 1184 ret = msm_csid_subdev_init(camss, &camss->csid[i], in camss_init_subdevices() 1227 ret = msm_csid_register_entity(&camss->csid[i], in camss_register_entities() 1261 &camss->csid[j].subdev.entity, in camss_register_entities() 1268 camss->csid[j].subdev.entity.name, in camss_register_entities() 1279 &camss->csid[i].subdev.entity, in camss_register_entities() 1287 camss->csid[i].subdev.entity.name, in camss_register_entities() 1319 struct v4l2_subdev *csid = &camss->csid[i].subdev; in camss_register_entities() local 1322 ret = media_create_pad_link(&csid->entity, in camss_register_entities() 1330 csid->entity.name, in camss_register_entities() 1352 msm_csid_unregister_entity(&camss->csid[i]); in camss_register_entities() [all …]
|
D | camss-ispif.c | 423 enum ispif_intf intf, u8 csid, in ispif_select_clk_mux() argument 433 val |= (csid << (vfe * 8)); in ispif_select_clk_mux() 441 val |= (csid << (vfe * 12)); in ispif_select_clk_mux() 449 val |= (csid << (4 + (vfe * 8))); in ispif_select_clk_mux() 457 val |= (csid << (4 + (vfe * 12))); in ispif_select_clk_mux() 465 val |= (csid << (8 + (vfe * 12))); in ispif_select_clk_mux() 573 u8 csid, u8 vfe, u8 enable) in ispif_select_csid() argument 582 val |= csid; in ispif_select_csid() 587 val |= (csid << 4); in ispif_select_csid() 592 val |= (csid << 8); in ispif_select_csid() [all …]
|
D | camss-csiphy.c | 694 struct csid_device *csid; in csiphy_link_setup() local 703 csid = v4l2_get_subdevdata(sd); in csiphy_link_setup() 705 csiphy->cfg.csid_id = csid->id; in csiphy_link_setup()
|
D | camss.h | 97 struct csid_device *csid; member
|
/drivers/spi/ |
D | spi-cavium.h | 271 uint64_t csid:2; member 285 uint64_t csid:2; 311 uint64_t csid:1; member 325 uint64_t csid:1;
|
D | spi-cavium.c | 81 mpi_tx.s.csid = spi_get_chipselect(spi, 0); in octeon_spi_do_transfer() 106 mpi_tx.s.csid = spi_get_chipselect(spi, 0); in octeon_spi_do_transfer()
|
/drivers/net/ |
D | macsec.c | 3012 u64 csid; in nla_put_secy() local 3019 csid = secy->xpn ? MACSEC_CIPHER_ID_GCM_AES_XPN_128 : MACSEC_DEFAULT_CIPHER_ID; in nla_put_secy() 3022 csid = secy->xpn ? MACSEC_CIPHER_ID_GCM_AES_XPN_256 : MACSEC_CIPHER_ID_GCM_AES_256; in nla_put_secy() 3031 csid, MACSEC_SECY_ATTR_PAD) || in nla_put_secy() 4181 u64 csid = MACSEC_DEFAULT_CIPHER_ID; in macsec_validate_attr() local 4190 csid = nla_get_u64(data[IFLA_MACSEC_CIPHER_SUITE]); in macsec_validate_attr() 4207 switch (csid) { in macsec_validate_attr() 4295 u64 csid; in macsec_fill_info() local 4303 csid = secy->xpn ? MACSEC_CIPHER_ID_GCM_AES_XPN_128 : MACSEC_DEFAULT_CIPHER_ID; in macsec_fill_info() 4306 csid = secy->xpn ? MACSEC_CIPHER_ID_GCM_AES_XPN_256 : MACSEC_CIPHER_ID_GCM_AES_256; in macsec_fill_info() [all …]
|