Home
last modified time | relevance | path

Searched refs:sd (Results 1 - 25 of 96) sorted by relevance

1234

/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/
H A Dbcmsdh_sdmmc.c93 static int sdioh_sdmmc_get_cisaddr(sdioh_info_t *sd, uint32 regaddr);
141 int sdioh_sdmmc_card_regread(sdioh_info_t *sd, int func, uint32 regaddr, int regsize, uint32 *data);
145 void sdioh_sdmmc_card_enable_func_f3(sdioh_info_t *sd, struct sdio_func *func) in sdioh_sdmmc_card_enable_func_f3() argument
147 sd->func[3] = func; in sdioh_sdmmc_card_enable_func_f3()
148 sd_info(("%s sd->func[3] %p\n", __FUNCTION__, sd->func[3])); in sdioh_sdmmc_card_enable_func_f3()
152 void sdmmc_set_clock_rate(sdioh_info_t *sd, uint hz);
153 uint sdmmc_get_clock_rate(sdioh_info_t *sd);
154 void sdmmc_set_clock_divisor(sdioh_info_t *sd, uint sd_div);
157 sdioh_sdmmc_card_enablefuncs(sdioh_info_t *sd) in sdioh_sdmmc_card_enablefuncs() argument
198 sdioh_info_t *sd = NULL; sdioh_attach() local
276 sdioh_detach(osl_t *osh, sdioh_info_t *sd) sdioh_detach() argument
307 sdioh_enable_func_intr(sdioh_info_t *sd) sdioh_enable_func_intr() argument
342 sdioh_disable_func_intr(sdioh_info_t *sd) sdioh_disable_func_intr() argument
380 sdioh_interrupt_register(sdioh_info_t *sd, sdioh_cb_fn_t fn, void *argh) sdioh_interrupt_register() argument
412 sdioh_interrupt_deregister(sdioh_info_t *sd) sdioh_interrupt_deregister() argument
443 sdioh_interrupt_query(sdioh_info_t *sd, bool *onoff) sdioh_interrupt_query() argument
452 sdioh_interrupt_pending(sdioh_info_t *sd) sdioh_interrupt_pending() argument
459 sdioh_query_iofnum(sdioh_info_t *sd) sdioh_query_iofnum() argument
723 sdioh_enable_hw_oob_intr(sdioh_info_t *sd, bool enable) sdioh_enable_hw_oob_intr() argument
743 sdioh_cfg_read(sdioh_info_t *sd, uint fnc_num, uint32 addr, uint8 *data) sdioh_cfg_read() argument
752 sdioh_cfg_write(sdioh_info_t *sd, uint fnc_num, uint32 addr, uint8 *data) sdioh_cfg_write() argument
761 sdioh_sdmmc_get_cisaddr(sdioh_info_t *sd, uint32 regaddr) sdioh_sdmmc_get_cisaddr() argument
782 sdioh_cis_read(sdioh_info_t *sd, uint func, uint8 *cisd, uint32 length) sdioh_cis_read() argument
814 sdioh_cisaddr_read(sdioh_info_t *sd, uint func, uint8 *cisd, uint32 offset) sdioh_cisaddr_read() argument
838 sdioh_request_byte(sdioh_info_t *sd, uint rw, uint func, uint regaddr, uint8 *byte) sdioh_request_byte() argument
1019 sdioh_set_mode(sdioh_info_t *sd, uint mode) sdioh_set_mode() argument
1031 sdioh_get_spend_time(sdioh_info_t *sd) sdioh_get_spend_time() argument
1038 sdioh_request_word(sdioh_info_t *sd, uint cmd_type, uint rw, uint func, uint addr, uint32 *word, uint nbytes) sdioh_request_word() argument
1122 sdioh_request_packet_chain(sdioh_info_t *sd, uint fix_inc, uint write, uint func, uint addr, void *pkt) sdioh_request_packet_chain() argument
1340 sdioh_buffer_tofrom_bus(sdioh_info_t *sd, uint fix_inc, uint write, uint func, uint addr, uint8 *buf, uint len) sdioh_buffer_tofrom_bus() argument
1405 sdioh_request_buffer(sdioh_info_t *sd, uint pio_dma, uint fix_inc, uint write, uint func, uint addr, uint reg_width, uint buf_len, uint8 *buffer, void *pkt) sdioh_request_buffer() argument
1472 sdioh_abort(sdioh_info_t *sd, uint func) sdioh_abort() argument
1498 sdioh_sdmmc_devintr_off(sdioh_info_t *sd) sdioh_sdmmc_devintr_off() argument
1506 sdioh_sdmmc_devintr_on(sdioh_info_t *sd) sdioh_sdmmc_devintr_on() argument
1514 sdioh_sdmmc_card_regread(sdioh_info_t *sd, int func, uint32 regaddr, int regsize, uint32 *data) sdioh_sdmmc_card_regread() argument
1543 sdioh_info_t *sd; IRQHandler() local
1575 sdioh_sdmmc_card_regwrite(sdioh_info_t *sd, int func, uint32 regaddr, int regsize, uint32 data) sdioh_sdmmc_card_regwrite() argument
1600 sdioh_start(sdioh_info_t *sd, int stage) sdioh_start() argument
1692 sdioh_stop(sdioh_info_t *sd) sdioh_stop() argument
1721 sdioh_waitlockfree(sdioh_info_t *sd) sdioh_waitlockfree() argument
1727 sdioh_gpioouten(sdioh_info_t *sd, uint32 gpio) sdioh_gpioouten() argument
1733 sdioh_gpioout(sdioh_info_t *sd, uint32 gpio, bool enab) sdioh_gpioout() argument
1739 sdioh_gpioin(sdioh_info_t *sd, uint32 gpio) sdioh_gpioin() argument
1745 sdioh_gpio_init(sdioh_info_t *sd) sdioh_gpio_init() argument
1751 sdmmc_get_clock_rate(sdioh_info_t *sd) sdmmc_get_clock_rate() argument
1763 sdmmc_set_clock_rate(sdioh_info_t *sd, uint hz) sdmmc_set_clock_rate() argument
1791 sdmmc_set_clock_divisor(sdioh_info_t *sd, uint sd_div) sdmmc_set_clock_divisor() argument
[all...]
H A Dbcmspibrcm.c53 extern void spi_sendrecv(sdioh_info_t *sd, uint8 *msg_out, uint8 *msg_in, int msglen);
110 static bool bcmspi_test_card(sdioh_info_t *sd);
111 static bool bcmspi_host_device_init_adapt(sdioh_info_t *sd);
112 static int bcmspi_set_highspeed_mode(sdioh_info_t *sd, bool hsmode);
113 static int bcmspi_cmd_issue(sdioh_info_t *sd, bool use_dma, uint32 cmd_arg,
115 static int bcmspi_card_regread(sdioh_info_t *sd, int func, uint32 regaddr,
117 static int bcmspi_card_regwrite(sdioh_info_t *sd, int func, uint32 regaddr,
119 static int bcmspi_card_bytewrite(sdioh_info_t *sd, int func, uint32 regaddr,
121 static int bcmspi_driver_init(sdioh_info_t *sd);
122 static int bcmspi_card_buf(sdioh_info_t *sd, in
135 sdioh_info_t *sd; sdioh_attach() local
208 sdioh_detach(osl_t *osh, sdioh_info_t *sd) sdioh_detach() argument
228 sdioh_interrupt_register(sdioh_info_t *sd, sdioh_cb_fn_t fn, void *argh) sdioh_interrupt_register() argument
240 sdioh_interrupt_deregister(sdioh_info_t *sd) sdioh_interrupt_deregister() argument
252 sdioh_interrupt_query(sdioh_info_t *sd, bool *onoff) sdioh_interrupt_query() argument
263 sdioh_interrupt_pending(sdioh_info_t *sd) sdioh_interrupt_pending() argument
271 sdioh_get_dstatus(sdioh_info_t *sd) sdioh_get_dstatus() argument
277 sdioh_chipinfo(sdioh_info_t *sd, uint32 chip, uint32 chiprev) sdioh_chipinfo() argument
284 sdioh_dwordmode(sdioh_info_t *sd, bool set) sdioh_dwordmode() argument
313 sdioh_query_iofnum(sdioh_info_t *sd) sdioh_query_iofnum() argument
587 sdioh_cfg_read(sdioh_info_t *sd, uint fnc_num, uint32 addr, uint8 *data) sdioh_cfg_read() argument
596 sdioh_cfg_write(sdioh_info_t *sd, uint fnc_num, uint32 addr, uint8 *data) sdioh_cfg_write() argument
615 sdioh_cis_read(sdioh_info_t *sd, uint func, uint8 *cisd, uint32 length) sdioh_cis_read() argument
668 sdioh_request_byte(sdioh_info_t *sd, uint rw, uint func, uint regaddr, uint8 *byte) sdioh_request_byte() argument
711 sdioh_request_word(sdioh_info_t *sd, uint cmd_type, uint rw, uint func, uint addr, uint32 *word, uint nbytes) sdioh_request_word() argument
728 sdioh_request_buffer(sdioh_info_t *sd, uint pio_dma, uint fix_inc, uint rw, uint func, uint addr, uint reg_width, uint buflen_u, uint8 *buffer, void *pkt) sdioh_request_buffer() argument
769 bcmspi_card_byterewrite(sdioh_info_t *sd, int func, uint32 regaddr, uint8 byte) bcmspi_card_byterewrite() argument
839 bcmspi_prog_resp_delay(sdioh_info_t *sd, int func, uint8 resp_delay) bcmspi_prog_resp_delay() argument
866 bcmspi_resync_f1(sdioh_info_t *sd) bcmspi_resync_f1() argument
905 bcmspi_update_stats(sdioh_info_t *sd, uint32 cmd_arg) bcmspi_update_stats() argument
976 sdioh_abort(sdioh_info_t *sd, uint func) sdioh_abort() argument
982 sdioh_start(sdioh_info_t *sd, int stage) sdioh_start() argument
988 sdioh_stop(sdioh_info_t *sd) sdioh_stop() argument
994 sdioh_waitlockfree(sdioh_info_t *sd) sdioh_waitlockfree() argument
1003 bcmspi_host_init(sdioh_info_t *sd) bcmspi_host_init() argument
1017 get_client_blocksize(sdioh_info_t *sd) get_client_blocksize() argument
1047 bcmspi_client_init(sdioh_info_t *sd) bcmspi_client_init() argument
1159 bcmspi_set_highspeed_mode(sdioh_info_t *sd, bool hsmode) bcmspi_set_highspeed_mode() argument
1228 bcmspi_host_device_init_adapt(sdioh_info_t *sd) bcmspi_host_device_init_adapt() argument
1345 bcmspi_test_card(sdioh_info_t *sd) bcmspi_test_card() argument
1393 bcmspi_driver_init(sdioh_info_t *sd) bcmspi_driver_init() argument
1409 bcmspi_card_regread(sdioh_info_t *sd, int func, uint32 regaddr, int regsize, uint32 *data) bcmspi_card_regread() argument
1440 bcmspi_card_regread_fixedaddr(sdioh_info_t *sd, int func, uint32 regaddr, int regsize, uint32 *data) bcmspi_card_regread_fixedaddr() argument
1474 bcmspi_card_regwrite(sdioh_info_t *sd, int func, uint32 regaddr, int regsize, uint32 data) bcmspi_card_regwrite() argument
1504 bcmspi_card_bytewrite(sdioh_info_t *sd, int func, uint32 regaddr, uint8 *byte) bcmspi_card_bytewrite() argument
1532 bcmspi_cmd_getdstatus(sdioh_info_t *sd, uint32 *dstatus_buffer) bcmspi_cmd_getdstatus() argument
1539 bcmspi_cmd_issue(sdioh_info_t *sd, bool use_dma, uint32 cmd_arg, uint32 *data, uint32 datalen) bcmspi_cmd_issue() argument
1669 bcmspi_card_buf(sdioh_info_t *sd, int rw, int func, bool fifo, uint32 addr, int nbytes, uint32 *data) bcmspi_card_buf() argument
1779 sdioh_gpioouten(sdioh_info_t *sd, uint32 gpio) sdioh_gpioouten() argument
1785 sdioh_gpioout(sdioh_info_t *sd, uint32 gpio, bool enab) sdioh_gpioout() argument
1791 sdioh_gpioin(sdioh_info_t *sd, uint32 gpio) sdioh_gpioin() argument
1797 sdioh_gpio_init(sdioh_info_t *sd) sdioh_gpio_init() argument
[all...]
H A Dbcmsdspi_linux.c59 sdioh_info_t *sd; member
81 sdioh_info_t *sd; in sdspi_isr() local
85 sd = (sdioh_info_t *)dev_id; in sdspi_isr()
86 sd->local_intrcount++; in sdspi_isr()
88 if (!sd->card_init_done) { in sdspi_isr()
92 ours = spi_check_client_intr(sd, NULL); in sdspi_isr()
95 if (ours && sd->got_hcint) { in sdspi_isr()
96 sdos = (struct sdos_info *)sd->sdos_info; in sdspi_isr()
179 spi_register_irq(sdioh_info_t *sd, uint irq) in spi_register_irq() argument
183 if (request_irq(irq, sdspi_isr, IRQF_SHARED, "bcmsdspi", sd) < in spi_register_irq()
193 spi_free_irq(uint irq, sdioh_info_t *sd) spi_free_irq() argument
216 spi_osinit(sdioh_info_t *sd) spi_osinit() argument
234 spi_osfree(sdioh_info_t *sd) spi_osfree() argument
245 sdioh_interrupt_set(sdioh_info_t *sd, bool enable) sdioh_interrupt_set() argument
285 spi_lock(sdioh_info_t *sd) spi_lock() argument
312 spi_unlock(sdioh_info_t *sd) spi_unlock() argument
335 spi_waitbits(sdioh_info_t *sd, bool yield) spi_waitbits() argument
388 spi_sendrecv(sdioh_info_t *sd, uint8 *msg_out, uint8 *msg_in, int msglen) spi_sendrecv() argument
[all...]
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/include/
H A Dbcmsdstd.h42 #define sd_sync_dma(sd, read, nbytes)
43 #define sd_init_dma(sd)
44 #define sd_ack_intr(sd)
45 #define sd_wakeup(sd);
47 extern int sdstd_osinit(sdioh_info_t *sd);
48 extern void sdstd_osfree(sdioh_info_t *sd);
85 #define sdstd_os_yield(sd) do {} while (0)
195 #define USE_DMA(sd) ((bool)((sd->sd_dma_mode > 0) ? TRUE : FALSE))
222 extern bool check_client_intr(sdioh_info_t *sd);
[all...]
H A Dbcmspi.h33 extern void spi_devintr_off(sdioh_info_t *sd);
34 extern void spi_devintr_on(sdioh_info_t *sd);
35 extern bool spi_start_clock(sdioh_info_t *sd, uint16 new_sd_divisor);
36 extern bool spi_controller_highspeed_mode(sdioh_info_t *sd, bool hsmode);
37 extern bool spi_check_client_intr(sdioh_info_t *sd, int *is_dev_intr);
38 extern bool spi_hw_attach(sdioh_info_t *sd);
39 extern bool spi_hw_detach(sdioh_info_t *sd);
40 extern void spi_sendrecv(sdioh_info_t *sd, uint8 *msg_out, uint8 *msg_in, int msglen);
41 extern void spi_spinbits(sdioh_info_t *sd);
42 extern void spi_waitbits(sdioh_info_t *sd, boo
[all...]
H A Dbcmsdh_sdmmc.h42 #define sd_sync_dma(sd, read, nbytes)
43 #define sd_init_dma(sd)
44 #define sd_ack_intr(sd)
45 #define sd_wakeup(sd);
102 extern bool check_client_intr(sdioh_info_t *sd);
105 extern void sdioh_sdmmc_devintr_on(sdioh_info_t *sd);
106 extern void sdioh_sdmmc_devintr_off(sdioh_info_t *sd);
117 extern int sdioh_sdmmc_register_irq(sdioh_info_t *sd, uint irq);
118 extern void sdioh_sdmmc_free_irq(uint irq, sdioh_info_t *sd);
121 extern SDIOH_API_RC sdioh_detach(osl_t *osh, sdioh_info_t *sd);
125 sdioh_info_t *sd; global() member
[all...]
/device/soc/rockchip/common/sdk_linux/drivers/media/v4l2-core/
H A Dv4l2-async.c54 static bool match_i2c(struct v4l2_async_notifier *notifier, struct v4l2_subdev *sd, struct v4l2_async_subdev *asd) in match_i2c() argument
57 struct i2c_client *client = i2c_verify_client(sd->dev); in match_i2c()
65 static bool match_devname(struct v4l2_async_notifier *notifier, struct v4l2_subdev *sd, struct v4l2_async_subdev *asd) in match_devname() argument
67 return !strcmp(asd->match.device_name, dev_name(sd->dev)); in match_devname()
70 static bool match_fwnode(struct v4l2_async_notifier *notifier, struct v4l2_subdev *sd, struct v4l2_async_subdev *asd) in match_fwnode() argument
83 if (sd->fwnode == asd->match.fwnode) { in match_fwnode()
88 * Otherwise, check if the sd fwnode and the asd fwnode refer to an in match_fwnode()
95 sd_fwnode_is_ep = fwnode_graph_is_endpoint(sd->fwnode); in match_fwnode()
102 * The sd and asd fwnodes are of different types. Get the device fwnode in match_fwnode()
106 dev_fwnode = fwnode_graph_get_port_parent(sd in match_fwnode()
139 match_custom(struct v4l2_async_notifier *notifier, struct v4l2_subdev *sd, struct v4l2_async_subdev *asd) match_custom() argument
153 v4l2_async_find_match(struct v4l2_async_notifier *notifier, struct v4l2_subdev *sd) v4l2_async_find_match() argument
212 v4l2_async_find_subdev_notifier(struct v4l2_subdev *sd) v4l2_async_find_subdev_notifier() argument
236 struct v4l2_subdev *sd; v4l2_async_notifier_can_complete() local
285 v4l2_async_match_notify(struct v4l2_async_notifier *notifier, struct v4l2_device *v4l2_dev, struct v4l2_subdev *sd, struct v4l2_async_subdev *asd) v4l2_async_match_notify() argument
332 struct v4l2_subdev *sd; v4l2_async_notifier_try_all_subdevs() local
366 v4l2_async_cleanup(struct v4l2_subdev *sd) v4l2_async_cleanup() argument
380 struct v4l2_subdev *sd, *tmp; v4l2_async_notifier_unbind_all_subdevs() local
404 struct v4l2_subdev *sd; v4l2_async_notifier_has_async_subdev_ext() local
557 struct v4l2_subdev *sd, *tmp; v4l2_async_notifier_clr_unready_dev_ext() local
610 v4l2_async_subdev_notifier_register(struct v4l2_subdev *sd, struct v4l2_async_notifier *notifier) v4l2_async_subdev_notifier_register() argument
802 v4l2_async_register_subdev(struct v4l2_subdev *sd) v4l2_async_register_subdev() argument
877 v4l2_async_unregister_subdev(struct v4l2_subdev *sd) v4l2_async_unregister_subdev() argument
[all...]
/device/soc/rockchip/common/vendor/drivers/phy/
H A Dphy-rockchip-csi2-dphy.c36 return container_of(subdev, struct csi2_dphy, sd); in to_csi2_dphy()
39 static struct v4l2_subdev *get_remote_sensor(struct v4l2_subdev *sd) in get_remote_sensor() argument
44 local = &sd->entity.pads[CSI2_DPHY_RX_PAD_SINK]; in get_remote_sensor()
47 v4l2_warn(sd, "No link between dphy and sensor\n"); in get_remote_sensor()
55 static struct csi2_sensor *sd_to_sensor(struct csi2_dphy *dphy, struct v4l2_subdev *sd) in sd_to_sensor() argument
60 if (dphy->sensors[i].sd == sd) { in sd_to_sensor()
68 static int csi2_dphy_get_sensor_data_rate(struct v4l2_subdev *sd) in csi2_dphy_get_sensor_data_rate() argument
70 struct csi2_dphy *dphy = to_csi2_dphy(sd); in csi2_dphy_get_sensor_data_rate()
71 struct v4l2_subdev *sensor_sd = get_remote_sensor(sd); in csi2_dphy_get_sensor_data_rate()
101 csi2_dphy_update_sensor_mbus(struct v4l2_subdev *sd) csi2_dphy_update_sensor_mbus() argument
135 csi2_dphy_s_stream_start(struct v4l2_subdev *sd) csi2_dphy_s_stream_start() argument
161 csi2_dphy_s_stream_stop(struct v4l2_subdev *sd) csi2_dphy_s_stream_stop() argument
181 csi2_dphy_s_stream(struct v4l2_subdev *sd, int on) csi2_dphy_s_stream() argument
199 csi2_dphy_g_frame_interval(struct v4l2_subdev *sd, struct v4l2_subdev_frame_interval *fi) csi2_dphy_g_frame_interval() argument
210 csi2_dphy_g_mbus_config(struct v4l2_subdev *sd, unsigned int pad_id, struct v4l2_mbus_config *config) csi2_dphy_g_mbus_config() argument
226 csi2_dphy_s_power(struct v4l2_subdev *sd, int on) csi2_dphy_s_power() argument
240 struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(me); csi2_dphy_runtime_suspend() local
254 struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(me); csi2_dphy_runtime_resume() local
271 csi2_dphy_get_set_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_format *fmt) csi2_dphy_get_set_fmt() argument
292 csi2_dphy_get_selection(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_selection *sel) csi2_dphy_get_selection() argument
323 rockchip_csi2_dphy_notifier_bound(struct v4l2_async_notifier *notifier, struct v4l2_subdev *sd, struct v4l2_async_subdev *asd) rockchip_csi2_dphy_notifier_bound() argument
365 rockchip_csi2_dphy_notifier_unbind(struct v4l2_async_notifier *notifier, struct v4l2_subdev *sd, struct v4l2_async_subdev *asd) rockchip_csi2_dphy_notifier_unbind() argument
553 struct v4l2_subdev *sd; rockchip_csi2_dphy_probe() local
609 struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(me); rockchip_csi2_dphy_remove() local
[all...]
H A Dphy-rockchip-mipi-rx.c518 struct v4l2_subdev *sd; member
535 struct v4l2_subdev sd; member
543 int (*stream_on)(struct mipidphy_priv *priv, struct v4l2_subdev *sd);
544 int (*stream_off)(struct mipidphy_priv *priv, struct v4l2_subdev *sd);
549 return container_of(subdev, struct mipidphy_priv, sd); in to_dphy_priv()
661 static struct v4l2_subdev *get_remote_sensor(struct v4l2_subdev *sd) in get_remote_sensor() argument
666 local = &sd->entity.pads[MIPI_DPHY_RX_PAD_SINK]; in get_remote_sensor()
669 v4l2_warn(sd, "No link between dphy and sensor\n"); in get_remote_sensor()
677 static struct mipidphy_sensor *sd_to_sensor(struct mipidphy_priv *priv, struct v4l2_subdev *sd) in sd_to_sensor() argument
682 if (priv->sensors[i].sd in sd_to_sensor()
690 mipidphy_get_sensor_data_rate(struct v4l2_subdev *sd) mipidphy_get_sensor_data_rate() argument
723 mipidphy_update_sensor_mbus(struct v4l2_subdev *sd) mipidphy_update_sensor_mbus() argument
757 rk1126_mipidphy_dphy_sel(struct v4l2_subdev *sd) rk1126_mipidphy_dphy_sel() argument
791 mipidphy_s_stream_start(struct v4l2_subdev *sd) mipidphy_s_stream_start() argument
817 mipidphy_s_stream_stop(struct v4l2_subdev *sd) mipidphy_s_stream_stop() argument
833 mipidphy_s_stream(struct v4l2_subdev *sd, int on) mipidphy_s_stream() argument
849 mipidphy_g_frame_interval(struct v4l2_subdev *sd, struct v4l2_subdev_frame_interval *fi) mipidphy_g_frame_interval() argument
860 mipidphy_g_mbus_config(struct v4l2_subdev *sd, unsigned int pad_id, struct v4l2_mbus_config *config) mipidphy_g_mbus_config() argument
876 mipidphy_s_power(struct v4l2_subdev *sd, int on) mipidphy_s_power() argument
890 struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(me); mipidphy_runtime_suspend() local
907 struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(me); mipidphy_runtime_resume() local
930 mipidphy_get_set_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_format *fmt) mipidphy_get_set_fmt() argument
951 mipidphy_get_selection(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_selection *sel) mipidphy_get_selection() argument
1081 mipidphy_rx_stream_on(struct mipidphy_priv *priv, struct v4l2_subdev *sd) mipidphy_rx_stream_on() argument
1171 mipidphy_txrx_stream_on(struct mipidphy_priv *priv, struct v4l2_subdev *sd) mipidphy_txrx_stream_on() argument
1288 csi_mipidphy_stream_on(struct mipidphy_priv *priv, struct v4l2_subdev *sd) csi_mipidphy_stream_on() argument
1398 csi_mipidphy_stream_off(struct mipidphy_priv *priv, struct v4l2_subdev *sd) csi_mipidphy_stream_off() argument
1503 rockchip_mipidphy_notifier_bound(struct v4l2_async_notifier *notifier, struct v4l2_subdev *sd, struct v4l2_async_subdev *asd) rockchip_mipidphy_notifier_bound() argument
1544 rockchip_mipidphy_notifier_unbind(struct v4l2_async_notifier *notifier, struct v4l2_subdev *sd, struct v4l2_async_subdev *asd) rockchip_mipidphy_notifier_unbind() argument
1637 struct v4l2_subdev *sd; rockchip_mipidphy_probe() local
1726 struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(me); rockchip_mipidphy_remove() local
[all...]
H A Dphy-rockchip-csi2-dphy-common.h47 struct v4l2_subdev *sd; member
64 struct v4l2_subdev sd; member
85 int (*stream_on)(struct csi2_dphy *dphy, struct v4l2_subdev *sd);
86 int (*stream_off)(struct csi2_dphy *dphy, struct v4l2_subdev *sd);
102 struct v4l2_subdev sd; member
110 int (*stream_on)(struct csi2_dphy *dphy, struct v4l2_subdev *sd);
111 int (*stream_off)(struct csi2_dphy *dphy, struct v4l2_subdev *sd);
/device/soc/rockchip/rk3588/kernel/drivers/phy/rockchip/
H A Dphy-rockchip-csi2-dphy.c36 return container_of(subdev, struct csi2_dphy, sd); in to_csi2_dphy()
39 static struct v4l2_subdev *get_remote_sensor(struct v4l2_subdev *sd) in get_remote_sensor() argument
44 local = &sd->entity.pads[CSI2_DPHY_RX_PAD_SINK]; in get_remote_sensor()
47 v4l2_warn(sd, "No link between dphy and sensor\n"); in get_remote_sensor()
56 struct v4l2_subdev *sd) in sd_to_sensor()
61 if (dphy->sensors[i].sd == sd) in sd_to_sensor()
67 static int csi2_dphy_get_sensor_data_rate(struct v4l2_subdev *sd) in csi2_dphy_get_sensor_data_rate() argument
69 struct csi2_dphy *dphy = to_csi2_dphy(sd); in csi2_dphy_get_sensor_data_rate()
70 struct v4l2_subdev *sensor_sd = get_remote_sensor(sd); in csi2_dphy_get_sensor_data_rate()
55 sd_to_sensor(struct csi2_dphy *dphy, struct v4l2_subdev *sd) sd_to_sensor() argument
99 csi2_dphy_update_sensor_mbus(struct v4l2_subdev *sd) csi2_dphy_update_sensor_mbus() argument
132 csi2_dphy_s_stream_start(struct v4l2_subdev *sd) csi2_dphy_s_stream_start() argument
155 csi2_dphy_s_stream_stop(struct v4l2_subdev *sd) csi2_dphy_s_stream_stop() argument
174 csi2_dphy_s_stream(struct v4l2_subdev *sd, int on) csi2_dphy_s_stream() argument
192 csi2_dphy_g_frame_interval(struct v4l2_subdev *sd, struct v4l2_subdev_frame_interval *fi) csi2_dphy_g_frame_interval() argument
203 csi2_dphy_g_mbus_config(struct v4l2_subdev *sd, unsigned int pad_id, struct v4l2_mbus_config *config) csi2_dphy_g_mbus_config() argument
220 csi2_dphy_s_power(struct v4l2_subdev *sd, int on) csi2_dphy_s_power() argument
233 struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(me); csi2_dphy_runtime_suspend() local
246 struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(me); csi2_dphy_runtime_resume() local
263 csi2_dphy_get_set_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_format *fmt) csi2_dphy_get_set_fmt() argument
283 csi2_dphy_get_selection(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_selection *sel) csi2_dphy_get_selection() argument
316 rockchip_csi2_dphy_notifier_bound(struct v4l2_async_notifier *notifier, struct v4l2_subdev *sd, struct v4l2_async_subdev *asd) rockchip_csi2_dphy_notifier_bound() argument
367 rockchip_csi2_dphy_notifier_unbind(struct v4l2_async_notifier *notifier, struct v4l2_subdev *sd, struct v4l2_async_subdev *asd) rockchip_csi2_dphy_notifier_unbind() argument
575 struct v4l2_subdev *sd; rockchip_csi2_dphy_probe() local
630 struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(me); rockchip_csi2_dphy_remove() local
[all...]
H A Dphy-rockchip-mipi-rx.c540 struct v4l2_subdev *sd; member
557 struct v4l2_subdev sd; member
565 int (*stream_on)(struct mipidphy_priv *priv, struct v4l2_subdev *sd);
566 int (*stream_off)(struct mipidphy_priv *priv, struct v4l2_subdev *sd);
571 return container_of(subdev, struct mipidphy_priv, sd); in to_dphy_priv()
686 static struct v4l2_subdev *get_remote_sensor(struct v4l2_subdev *sd) in get_remote_sensor() argument
691 local = &sd->entity.pads[MIPI_DPHY_RX_PAD_SINK]; in get_remote_sensor()
694 v4l2_warn(sd, "No link between dphy and sensor\n"); in get_remote_sensor()
703 struct v4l2_subdev *sd) in sd_to_sensor()
708 if (priv->sensors[i].sd in sd_to_sensor()
702 sd_to_sensor(struct mipidphy_priv *priv, struct v4l2_subdev *sd) sd_to_sensor() argument
714 mipidphy_get_sensor_data_rate(struct v4l2_subdev *sd) mipidphy_get_sensor_data_rate() argument
745 mipidphy_update_sensor_mbus(struct v4l2_subdev *sd) mipidphy_update_sensor_mbus() argument
778 rk1126_mipidphy_dphy_sel(struct v4l2_subdev *sd) rk1126_mipidphy_dphy_sel() argument
808 mipidphy_s_stream_start(struct v4l2_subdev *sd) mipidphy_s_stream_start() argument
831 mipidphy_s_stream_stop(struct v4l2_subdev *sd) mipidphy_s_stream_stop() argument
845 mipidphy_s_stream(struct v4l2_subdev *sd, int on) mipidphy_s_stream() argument
860 mipidphy_g_frame_interval(struct v4l2_subdev *sd, struct v4l2_subdev_frame_interval *fi) mipidphy_g_frame_interval() argument
871 mipidphy_g_mbus_config(struct v4l2_subdev *sd, unsigned int pad_id, struct v4l2_mbus_config *config) mipidphy_g_mbus_config() argument
887 mipidphy_s_power(struct v4l2_subdev *sd, int on) mipidphy_s_power() argument
900 struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(me); mipidphy_runtime_suspend() local
915 struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(me); mipidphy_runtime_resume() local
936 mipidphy_get_set_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_format *fmt) mipidphy_get_set_fmt() argument
956 mipidphy_get_selection(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_selection *sel) mipidphy_get_selection() argument
1108 mipidphy_rx_stream_on(struct mipidphy_priv *priv, struct v4l2_subdev *sd) mipidphy_rx_stream_on() argument
1199 mipidphy_txrx_stream_on(struct mipidphy_priv *priv, struct v4l2_subdev *sd) mipidphy_txrx_stream_on() argument
1318 csi_mipidphy_stream_on(struct mipidphy_priv *priv, struct v4l2_subdev *sd) csi_mipidphy_stream_on() argument
1422 csi_mipidphy_stream_off(struct mipidphy_priv *priv, struct v4l2_subdev *sd) csi_mipidphy_stream_off() argument
1536 rockchip_mipidphy_notifier_bound(struct v4l2_async_notifier *notifier, struct v4l2_subdev *sd, struct v4l2_async_subdev *asd) rockchip_mipidphy_notifier_bound() argument
1585 rockchip_mipidphy_notifier_unbind(struct v4l2_async_notifier *notifier, struct v4l2_subdev *sd, struct v4l2_async_subdev *asd) rockchip_mipidphy_notifier_unbind() argument
1688 struct v4l2_subdev *sd; rockchip_mipidphy_probe() local
1772 struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(me); rockchip_mipidphy_remove() local
[all...]
/device/soc/rockchip/common/sdk_linux/kernel/sched/
H A Dtopology.c42 static int sched_domain_debug_one(struct sched_domain *sd, int cpu, int level, struct cpumask *groupmask) in sched_domain_debug_one() argument
44 struct sched_group *group = sd->groups; in sched_domain_debug_one()
45 unsigned long flags = sd->flags; in sched_domain_debug_one()
51 printk(KERN_CONT "span=%*pbl level=%s\n", cpumask_pr_args(sched_domain_span(sd)), sd->name); in sched_domain_debug_one()
53 if (!cpumask_test_cpu(cpu, sched_domain_span(sd))) { in sched_domain_debug_one()
65 if ((meta_flags & SDF_SHARED_CHILD) && sd->child && !(sd->child->flags & flag)) { in sched_domain_debug_one()
69 if ((meta_flags & SDF_SHARED_PARENT) && sd->parent && !(sd in sched_domain_debug_one()
130 sched_domain_debug(struct sched_domain *sd, int cpu) sched_domain_debug() argument
175 sd_degenerate(struct sched_domain *sd) sd_degenerate() argument
194 sd_parent_degenerate(struct sched_domain *sd, struct sched_domain *parent) sd_parent_degenerate() argument
627 destroy_sched_domain(struct sched_domain *sd) destroy_sched_domain() argument
644 struct sched_domain *sd = container_of(rcu, struct sched_domain, rcu); destroy_sched_domains_rcu() local
653 destroy_sched_domains(struct sched_domain *sd) destroy_sched_domains() argument
681 struct sched_domain *sd; update_top_cache_domain() local
692 rcu_assign_pointer(per_cpu(sd_llc, cpu), sd); update_top_cache_domain() local
698 rcu_assign_pointer(per_cpu(sd_numa, cpu), sd); update_top_cache_domain() local
701 rcu_assign_pointer(per_cpu(sd_asym_packing, cpu), sd); update_top_cache_domain() local
704 rcu_assign_pointer(per_cpu(sd_asym_cpucapacity, cpu), sd); update_top_cache_domain() local
711 cpu_attach_domain(struct sched_domain *sd, struct root_domain *rd, int cpu) cpu_attach_domain() argument
768 struct sched_domain *__percpu *sd; global() member
897 build_balance_mask(struct sched_domain *sd, struct sched_group *sg, struct cpumask *mask) build_balance_mask() argument
935 build_group_from_child_sched_domain(struct sched_domain *sd, int cpu) build_group_from_child_sched_domain() argument
956 init_overlap_sched_group(struct sched_domain *sd, struct sched_group *sg) init_overlap_sched_group() argument
984 find_descended_sibling(struct sched_domain *sd, struct sched_domain *sibling) find_descended_sibling() argument
1006 build_overlap_sched_groups(struct sched_domain *sd, int cpu) build_overlap_sched_groups() argument
1177 struct sched_domain *sd = *per_cpu_ptr(sdd->sd, cpu); get_group() local
1221 build_sched_groups(struct sched_domain *sd, int cpu) build_sched_groups() argument
1270 init_sched_groups_capacity(int cpu, struct sched_domain *sd) init_sched_groups_capacity() argument
1332 set_domain_attribute(struct sched_domain *sd, struct sched_domain_attr *attr) set_domain_attribute() argument
1397 claim_allocations(int cpu, struct sched_domain *sd) claim_allocations() argument
1451 struct sched_domain *sd = *per_cpu_ptr(sdd->sd, cpu); sd_init() local
1900 struct sched_domain *sd; __sdt_alloc() local
1953 struct sched_domain *sd; __sdt_free() local
1988 struct sched_domain *sd = sd_init(tl, cpu_map, child, dflags, cpu); build_sched_domain() local
2115 struct sched_domain *sd; build_sched_domains() local
[all...]
/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/cif/
H A Dmipi-csi2.c47 return container_of(sdev, struct csi2_dev, sd); in sd_to_dev()
50 static struct csi2_sensor *sd_to_sensor(struct csi2_dev *csi2, struct v4l2_subdev *sd) in sd_to_sensor() argument
55 if (csi2->sensors[i].sd == sd) { in sd_to_sensor()
63 static struct v4l2_subdev *get_remote_sensor(struct v4l2_subdev *sd) in get_remote_sensor() argument
68 local = &sd->entity.pads[RK_CSI2_PAD_SINK]; in get_remote_sensor()
71 v4l2_warn(sd, "No link between dphy and sensor\n"); in get_remote_sensor()
85 ret = v4l2_subdev_call(sensor->sd, pad, get_mbus_config, 0, &mbus); in csi2_update_sensor_info()
87 v4l2_err(&csi2->sd, "update sensor info failed!\n"); in csi2_update_sensor_info()
106 v4l2_warn(&csi2->sd, "lan in csi2_update_sensor_info()
239 csi2_s_stream(struct v4l2_subdev *sd, int enable) csi2_s_stream() argument
281 struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); csi2_link_setup() local
317 csi2_media_init(struct v4l2_subdev *sd) csi2_media_init() argument
345 csi2_get_set_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_format *fmt) csi2_get_set_fmt() argument
373 csi2_get_selection(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_selection *sel) csi2_get_selection() argument
431 csi2_set_selection(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_selection *sel) csi2_set_selection() argument
446 csi2_g_mbus_config(struct v4l2_subdev *sd, unsigned int pad_id, struct v4l2_mbus_config *mbus) csi2_g_mbus_config() argument
494 rkcif_csi2_subscribe_event(struct v4l2_subdev *sd, struct v4l2_fh *fh, struct v4l2_event_subscription *sub) rkcif_csi2_subscribe_event() argument
503 rkcif_csi2_s_power(struct v4l2_subdev *sd, int on) rkcif_csi2_s_power() argument
534 struct v4l2_subdev *sd = dev_get_drvdata(dev); csi2_parse_endpoint() local
548 csi2_notifier_bound(struct v4l2_async_notifier *notifier, struct v4l2_subdev *sd, struct v4l2_async_subdev *asd) csi2_notifier_bound() argument
593 csi2_notifier_unbind(struct v4l2_async_notifier *notifier, struct v4l2_subdev *sd, struct v4l2_async_subdev *asd) csi2_notifier_unbind() argument
870 struct v4l2_subdev *sd = platform_get_drvdata(pdev); csi2_remove() local
[all...]
H A Dsubdev-itf.c28 return container_of(subdev, struct sditf_priv, sd); in to_sditf_priv()
37 if (!cif_dev->terminal_sensor.sd) { in sditf_get_hdr_mode()
41 if (cif_dev->terminal_sensor.sd) { in sditf_get_hdr_mode()
42 ret = v4l2_subdev_call(cif_dev->terminal_sensor.sd, core, ioctl, RKMODULE_GET_HDR_CFG, &hdr_cfg); in sditf_get_hdr_mode()
53 static int sditf_g_frame_interval(struct v4l2_subdev *sd, struct v4l2_subdev_frame_interval *fi) in sditf_g_frame_interval() argument
55 struct sditf_priv *priv = to_sditf_priv(sd); in sditf_g_frame_interval()
59 if (!cif_dev->terminal_sensor.sd) { in sditf_g_frame_interval()
63 if (cif_dev->terminal_sensor.sd) { in sditf_g_frame_interval()
64 sensor_sd = cif_dev->terminal_sensor.sd; in sditf_g_frame_interval()
71 static int sditf_g_mbus_config(struct v4l2_subdev *sd, unsigne argument
89 sditf_get_set_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_format *fmt) sditf_get_set_fmt() argument
169 sditf_get_selection(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_selection *sel) sditf_get_selection() argument
195 sditf_ioctl(struct v4l2_subdev *sd, unsigned int cmd, void *arg) sditf_ioctl() argument
235 sditf_compat_ioctl32(struct v4l2_subdev *sd, unsigned int cmd, unsigned long arg) sditf_compat_ioctl32() argument
436 sditf_s_stream(struct v4l2_subdev *sd, int on) sditf_s_stream() argument
458 sditf_s_power(struct v4l2_subdev *sd, int on) sditf_s_power() argument
559 struct v4l2_subdev *sd; rkcif_subdev_probe() local
590 struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(me); rkcif_subdev_remove() local
[all...]
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/cif/
H A Dmipi-csi2.c41 return container_of(sdev, struct csi2_dev, sd); in sd_to_dev()
45 struct v4l2_subdev *sd) in sd_to_sensor()
50 if (csi2->sensors[i].sd == sd) in sd_to_sensor()
56 static struct v4l2_subdev *get_remote_sensor(struct v4l2_subdev *sd) in get_remote_sensor() argument
61 local = &sd->entity.pads[RK_CSI2_PAD_SINK]; in get_remote_sensor()
64 v4l2_warn(sd, "No link between dphy and sensor\n"); in get_remote_sensor()
78 ret = v4l2_subdev_call(sensor->sd, pad, get_mbus_config, 0, &mbus); in csi2_update_sensor_info()
80 v4l2_err(&csi2->sd, "update sensor info failed!\n"); in csi2_update_sensor_info()
99 v4l2_warn(&csi2->sd, "lan in csi2_update_sensor_info()
44 sd_to_sensor(struct csi2_dev *csi2, struct v4l2_subdev *sd) sd_to_sensor() argument
234 csi2_s_stream(struct v4l2_subdev *sd, int enable) csi2_s_stream() argument
275 struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); csi2_link_setup() local
311 csi2_media_init(struct v4l2_subdev *sd) csi2_media_init() argument
342 csi2_get_set_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_format *fmt) csi2_get_set_fmt() argument
371 csi2_get_selection(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_selection *sel) csi2_get_selection() argument
431 csi2_set_selection(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_selection *sel) csi2_set_selection() argument
447 csi2_g_mbus_config(struct v4l2_subdev *sd, unsigned int pad_id, struct v4l2_mbus_config *mbus) csi2_g_mbus_config() argument
495 rkcif_csi2_subscribe_event(struct v4l2_subdev *sd, struct v4l2_fh *fh, struct v4l2_event_subscription *sub) rkcif_csi2_subscribe_event() argument
504 rkcif_csi2_s_power(struct v4l2_subdev *sd, int on) rkcif_csi2_s_power() argument
537 struct v4l2_subdev *sd = dev_get_drvdata(dev); csi2_parse_endpoint() local
552 csi2_notifier_bound(struct v4l2_async_notifier *notifier, struct v4l2_subdev *sd, struct v4l2_async_subdev *asd) csi2_notifier_bound() argument
608 csi2_notifier_unbind(struct v4l2_async_notifier *notifier, struct v4l2_subdev *sd, struct v4l2_async_subdev *asd) csi2_notifier_unbind() argument
909 struct v4l2_subdev *sd = platform_get_drvdata(pdev); csi2_remove() local
[all...]
H A Dsubdev-itf.c28 return container_of(subdev, struct sditf_priv, sd); in to_sditf_priv()
37 if (!cif_dev->terminal_sensor.sd) in sditf_get_hdr_mode()
40 if (cif_dev->terminal_sensor.sd) { in sditf_get_hdr_mode()
41 ret = v4l2_subdev_call(cif_dev->terminal_sensor.sd, in sditf_get_hdr_mode()
54 static int sditf_g_frame_interval(struct v4l2_subdev *sd, in sditf_g_frame_interval() argument
57 struct sditf_priv *priv = to_sditf_priv(sd); in sditf_g_frame_interval()
61 if (!cif_dev->terminal_sensor.sd) in sditf_g_frame_interval()
64 if (cif_dev->terminal_sensor.sd) { in sditf_g_frame_interval()
65 sensor_sd = cif_dev->terminal_sensor.sd; in sditf_g_frame_interval()
72 static int sditf_g_mbus_config(struct v4l2_subdev *sd, unsigne argument
90 sditf_get_set_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_format *fmt) sditf_get_set_fmt() argument
175 sditf_get_selection(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_selection *sel) sditf_get_selection() argument
203 sditf_ioctl(struct v4l2_subdev *sd, unsigned int cmd, void *arg) sditf_ioctl() argument
242 sditf_compat_ioctl32(struct v4l2_subdev *sd, unsigned int cmd, unsigned long arg) sditf_compat_ioctl32() argument
439 sditf_s_stream(struct v4l2_subdev *sd, int on) sditf_s_stream() argument
462 sditf_s_power(struct v4l2_subdev *sd, int on) sditf_s_power() argument
562 struct v4l2_subdev *sd; rkcif_subdev_probe() local
591 struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(me); rkcif_subdev_remove() local
[all...]
/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/ispp/
H A Dispp.c62 struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); in rkispp_subdev_link_setup() local
72 if (!sd) { in rkispp_subdev_link_setup()
75 ispp_sdev = v4l2_get_subdevdata(sd); in rkispp_subdev_link_setup()
109 static int rkispp_sd_get_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_format *fmt) in rkispp_sd_get_fmt() argument
111 struct rkispp_subdev *ispp_sdev = v4l2_get_subdevdata(sd); in rkispp_sd_get_fmt()
129 mf = v4l2_subdev_get_try_format(sd, cfg, fmt->pad); in rkispp_sd_get_fmt()
153 static int rkispp_sd_set_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_format *fmt) in rkispp_sd_set_fmt() argument
155 struct rkispp_subdev *ispp_sdev = v4l2_get_subdevdata(sd); in rkispp_sd_set_fmt()
172 mf = v4l2_subdev_get_try_format(sd, cfg, fmt->pad); in rkispp_sd_set_fmt()
185 static int rkispp_sd_get_selection(struct v4l2_subdev *sd, struc argument
226 rkispp_sd_set_selection(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_selection *sel) rkispp_sd_set_selection() argument
267 rkispp_sd_s_stream(struct v4l2_subdev *sd, int on) rkispp_sd_s_stream() argument
308 rkispp_sd_s_rx_buffer(struct v4l2_subdev *sd, void *buf, unsigned int *size) rkispp_sd_s_rx_buffer() argument
334 rkispp_sd_s_power(struct v4l2_subdev *sd, int on) rkispp_sd_s_power() argument
390 rkispp_ioctl(struct v4l2_subdev *sd, unsigned int cmd, void *arg) rkispp_ioctl() argument
440 rkispp_compat_ioctl32(struct v4l2_subdev *sd, unsigned int cmd, unsigned long arg) rkispp_compat_ioctl32() argument
493 rkispp_subscribe_event(struct v4l2_subdev *sd, struct v4l2_fh *fh, struct v4l2_event_subscription *sub) rkispp_subscribe_event() argument
539 struct v4l2_subdev *sd; rkispp_register_subdev() local
583 struct v4l2_subdev *sd = &dev->ispp_sdev.sd; rkispp_unregister_subdev() local
[all...]
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/ispp/
H A Dispp.c64 struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); in rkispp_subdev_link_setup() local
74 if (!sd) in rkispp_subdev_link_setup()
76 ispp_sdev = v4l2_get_subdevdata(sd); in rkispp_subdev_link_setup()
111 static int rkispp_sd_get_fmt(struct v4l2_subdev *sd, in rkispp_sd_get_fmt() argument
115 struct rkispp_subdev *ispp_sdev = v4l2_get_subdevdata(sd); in rkispp_sd_get_fmt()
131 mf = v4l2_subdev_get_try_format(sd, cfg, fmt->pad); in rkispp_sd_get_fmt()
155 static int rkispp_sd_set_fmt(struct v4l2_subdev *sd, in rkispp_sd_set_fmt() argument
159 struct rkispp_subdev *ispp_sdev = v4l2_get_subdevdata(sd); in rkispp_sd_set_fmt()
173 mf = v4l2_subdev_get_try_format(sd, cfg, fmt->pad); in rkispp_sd_set_fmt()
186 static int rkispp_sd_get_selection(struct v4l2_subdev *sd, in rkispp_sd_get_selection() argument
226 rkispp_sd_set_selection(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_selection *sel) rkispp_sd_set_selection() argument
267 rkispp_sd_s_stream(struct v4l2_subdev *sd, int on) rkispp_sd_s_stream() argument
304 rkispp_sd_s_rx_buffer(struct v4l2_subdev *sd, void *buf, unsigned int *size) rkispp_sd_s_rx_buffer() argument
330 rkispp_sd_s_power(struct v4l2_subdev *sd, int on) rkispp_sd_s_power() argument
397 rkispp_ioctl(struct v4l2_subdev *sd, unsigned int cmd, void *arg) rkispp_ioctl() argument
446 rkispp_compat_ioctl32(struct v4l2_subdev *sd, unsigned int cmd, unsigned long arg) rkispp_compat_ioctl32() argument
494 rkispp_subscribe_event(struct v4l2_subdev *sd, struct v4l2_fh *fh, struct v4l2_event_subscription *sub) rkispp_subscribe_event() argument
543 struct v4l2_subdev *sd; rkispp_register_subdev() local
586 struct v4l2_subdev *sd = &dev->ispp_sdev.sd; rkispp_unregister_subdev() local
[all...]
/device/soc/rockchip/rk3588/kernel/include/trace/hooks/
H A Dv4l2core.h31 TP_PROTO(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *pad,
33 TP_ARGS(sd, pad, sel, ret));
37 TP_PROTO(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *pad,
39 TP_ARGS(sd, pad, format, ret));
43 TP_PROTO(struct v4l2_subdev *sd, struct v4l2_subdev_frame_interval *fi,
45 TP_ARGS(sd, fi, ret));
48 TP_PROTO(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *pad,
50 TP_ARGS(sd, pad, sel, ret), 1);
53 TP_PROTO(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *pad,
55 TP_ARGS(sd, pa
[all...]
/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/isp/
H A Dbridge.c85 struct v4l2_subdev *sd = v4l2_get_subdev_hostdata(&dev->sd); in init_buf() local
123 ret = v4l2_subdev_call(sd, video, s_rx_buffer, &buf->dbufs, NULL); in init_buf()
180 v4l2_err(&dev->sd, "%s fail:%d\n", __func__, ret); in init_buf()
198 v4l2_err(&dev->sd, "invalid: link:%d or isp input:0x%x\n", dev->linked, dev->ispdev->isp_inp); in config_mode()
202 v4l2_dbg(1, rkisp_debug, &dev->sd, "work mode:0x%x buf num:%d\n", dev->work_mode, dev->buf_num); in config_mode()
230 static int bridge_start_stream(struct v4l2_subdev *sd) in bridge_start_stream() argument
232 struct rkisp_bridge_device *dev = v4l2_get_subdevdata(sd); in bridge_start_stream()
240 v4l2_err(sd, "no support raw from isp to ispp\n"); in bridge_start_stream()
249 v4l2_err(sd, "updat in bridge_start_stream()
296 bridge_stop_stream(struct v4l2_subdev *sd) bridge_stop_stream() argument
308 bridge_get_set_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_format *fmt) bridge_get_set_fmt() argument
323 bridge_set_selection(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_selection *sel) bridge_set_selection() argument
349 bridge_get_selection(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_selection *sel) bridge_get_selection() argument
375 bridge_s_rx_buffer(struct v4l2_subdev *sd, void *buf, unsigned int *size) bridge_s_rx_buffer() argument
393 bridge_s_stream(struct v4l2_subdev *sd, int on) bridge_s_stream() argument
417 bridge_s_power(struct v4l2_subdev *sd, int on) bridge_s_power() argument
432 bridge_ioctl(struct v4l2_subdev *sd, unsigned int cmd, void *arg) bridge_ioctl() argument
553 struct v4l2_subdev *sd; rkisp_register_bridge_subdev() local
599 struct v4l2_subdev *sd = &dev->br_dev.sd; rkisp_unregister_bridge_subdev() local
608 rkisp_get_bridge_sd(struct platform_device *dev, struct v4l2_subdev **sd) rkisp_get_bridge_sd() argument
[all...]
H A Dcsi.c21 struct media_entity *entity = &dev->isp_sdev.sd.entity; in get_remote_mipi_sensor()
50 static struct v4l2_subdev *get_remote_subdev(struct v4l2_subdev *sd) in get_remote_subdev() argument
55 local = &sd->entity.pads[CSI_SINK]; in get_remote_subdev()
72 struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); in rkisp_csi_link_setup() local
78 if (!sd) { in rkisp_csi_link_setup()
82 csi = v4l2_get_subdevdata(sd); in rkisp_csi_link_setup()
106 v4l2_err(sd, "pad%d is already linked\n", local->index); in rkisp_csi_link_setup()
110 static int rkisp_csi_g_mbus_config(struct v4l2_subdev *sd, unsigned int pad_id, struct v4l2_mbus_config *config) in rkisp_csi_g_mbus_config() argument
114 if (!sd) { in rkisp_csi_g_mbus_config()
117 remote_sd = get_remote_subdev(sd); in rkisp_csi_g_mbus_config()
121 rkisp_csi_get_set_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_format *fmt) rkisp_csi_get_set_fmt() argument
137 rkisp_csi_s_stream(struct v4l2_subdev *sd, int on) rkisp_csi_s_stream() argument
157 rkisp_csi_s_power(struct v4l2_subdev *sd, int on) rkisp_csi_s_power() argument
551 struct v4l2_subdev *sd; rkisp_register_csi_subdev() local
600 struct v4l2_subdev *sd = &dev->csi_dev.sd; rkisp_unregister_csi_subdev() local
[all...]
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/isp/
H A Dbridge.c87 struct v4l2_subdev *sd = v4l2_get_subdev_hostdata(&dev->sd); in init_buf() local
125 ret = v4l2_subdev_call(sd, video, s_rx_buffer, &buf->dbufs, NULL); in init_buf()
186 v4l2_err(&dev->sd, "%s fail:%d\n", __func__, ret); in init_buf()
204 v4l2_err(&dev->sd, in config_mode()
211 v4l2_dbg(1, rkisp_debug, &dev->sd, in config_mode()
240 static int bridge_start_stream(struct v4l2_subdev *sd) in bridge_start_stream() argument
242 struct rkisp_bridge_device *dev = v4l2_get_subdevdata(sd); in bridge_start_stream()
249 v4l2_err(sd, "no support raw from isp to ispp\n"); in bridge_start_stream()
260 v4l2_err(sd, "updat in bridge_start_stream()
303 bridge_stop_stream(struct v4l2_subdev *sd) bridge_stop_stream() argument
315 bridge_get_set_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_format *fmt) bridge_get_set_fmt() argument
331 bridge_set_selection(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_selection *sel) bridge_set_selection() argument
358 bridge_get_selection(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_selection *sel) bridge_get_selection() argument
384 bridge_s_rx_buffer(struct v4l2_subdev *sd, void *buf, unsigned int *size) bridge_s_rx_buffer() argument
403 bridge_s_stream(struct v4l2_subdev *sd, int on) bridge_s_stream() argument
427 bridge_s_power(struct v4l2_subdev *sd, int on) bridge_s_power() argument
442 bridge_ioctl(struct v4l2_subdev *sd, unsigned int cmd, void *arg) bridge_ioctl() argument
563 struct v4l2_subdev *sd; rkisp_register_bridge_subdev() local
610 struct v4l2_subdev *sd = &dev->br_dev.sd; rkisp_unregister_bridge_subdev() local
619 rkisp_get_bridge_sd(struct platform_device *dev, struct v4l2_subdev **sd) rkisp_get_bridge_sd() argument
[all...]
H A Dcsi.c22 struct media_entity *entity = &dev->isp_sdev.sd.entity; in get_remote_mipi_sensor()
49 static struct v4l2_subdev *get_remote_subdev(struct v4l2_subdev *sd) in get_remote_subdev() argument
54 local = &sd->entity.pads[CSI_SINK]; in get_remote_subdev()
71 struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity); in rkisp_csi_link_setup() local
77 if (!sd) in rkisp_csi_link_setup()
80 csi = v4l2_get_subdevdata(sd); in rkisp_csi_link_setup()
102 v4l2_err(sd, "pad%d is already linked\n", local->index); in rkisp_csi_link_setup()
106 static int rkisp_csi_g_mbus_config(struct v4l2_subdev *sd, in rkisp_csi_g_mbus_config() argument
112 if (!sd) in rkisp_csi_g_mbus_config()
114 remote_sd = get_remote_subdev(sd); in rkisp_csi_g_mbus_config()
118 rkisp_csi_get_set_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *cfg, struct v4l2_subdev_format *fmt) rkisp_csi_get_set_fmt() argument
133 rkisp_csi_s_stream(struct v4l2_subdev *sd, int on) rkisp_csi_s_stream() argument
151 rkisp_csi_s_power(struct v4l2_subdev *sd, int on) rkisp_csi_s_power() argument
582 struct v4l2_subdev *sd; rkisp_register_csi_subdev() local
633 struct v4l2_subdev *sd = &dev->csi_dev.sd; rkisp_unregister_csi_subdev() local
[all...]
/device/soc/rockchip/rk3588/kernel/drivers/media/i2c/
H A Ddw9763.c47 struct v4l2_subdev sd; member
76 return container_of(subdev, struct dw9763_device, sd); in sd_to_dw9763_vcm()
142 struct i2c_client *client = v4l2_get_subdevdata(&dev_vcm->sd); in dw9763_get_pos()
175 struct i2c_client *client = v4l2_get_subdevdata(&dev_vcm->sd); in dw9763_set_pos()
213 struct i2c_client *client = v4l2_get_subdevdata(&dev_vcm->sd); in dw9763_set_ctrl()
265 struct i2c_client *client = v4l2_get_subdevdata(&dev->sd); in dw9763t_init()
314 static int dw9763_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) in dw9763_open() argument
317 struct dw9763_device *dev_vcm = sd_to_dw9763_vcm(sd); in dw9763_open()
319 rval = pm_runtime_get_sync(sd->dev); in dw9763_open()
321 pm_runtime_put_noidle(sd in dw9763_open()
333 dw9763_close(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) dw9763_close() argument
345 dw9763_ioctl(struct v4l2_subdev *sd, unsigned int cmd, void *arg) dw9763_ioctl() argument
376 dw9763_compat_ioctl32(struct v4l2_subdev *sd, unsigned int cmd, unsigned long arg) dw9763_compat_ioctl32() argument
461 struct v4l2_subdev *sd; dw9763_probe() local
628 struct v4l2_subdev *sd = i2c_get_clientdata(client); dw9763_remove() local
[all...]

Completed in 22 milliseconds

1234