/openbmc/u-boot/drivers/mtd/spi/ |
H A D | sf_probe.c | 95 static int spi_flash_std_read(struct udevice *dev, u32 offset, size_t len, in spi_flash_std_read() 105 static int spi_flash_std_write(struct udevice *dev, u32 offset, size_t len, in spi_flash_std_write() 115 static int spi_flash_std_erase(struct udevice *dev, u32 offset, size_t len) in spi_flash_std_erase() 133 static int spi_flash_std_get_sw_write_prot(struct udevice *dev) in spi_flash_std_get_sw_write_prot() 140 static int spi_flash_std_ctrl_wlock(struct udevice *dev, u32 offset, size_t len) in spi_flash_std_ctrl_wlock() 147 static int spi_flash_std_ctrl_wunlock(struct udevice *dev, u32 offset, size_t len) in spi_flash_std_ctrl_wunlock() 154 static int spi_flash_std_probe(struct udevice *dev) in spi_flash_std_probe() 167 static int spi_flash_std_remove(struct udevice *dev) in spi_flash_std_remove()
|
/openbmc/u-boot/fs/yaffs2/ |
H A D | yaffs_verify.c | 20 int yaffs_skip_verification(struct yaffs_dev *dev) in yaffs_skip_verification() 26 static int yaffs_skip_full_verification(struct yaffs_dev *dev) in yaffs_skip_full_verification() 31 static int yaffs_skip_nand_verification(struct yaffs_dev *dev) in yaffs_skip_nand_verification() 49 void yaffs_verify_blk(struct yaffs_dev *dev, struct yaffs_block_info *bi, int n) in yaffs_verify_blk() 93 void yaffs_verify_collected_blk(struct yaffs_dev *dev, in yaffs_verify_collected_blk() 108 void yaffs_verify_blocks(struct yaffs_dev *dev) in yaffs_verify_blocks() 229 struct yaffs_dev *dev; in yaffs_verify_file() local 306 struct yaffs_dev *dev; in yaffs_verify_obj() local 401 void yaffs_verify_objects(struct yaffs_dev *dev) in yaffs_verify_objects() 499 void yaffs_verify_free_chunks(struct yaffs_dev *dev) in yaffs_verify_free_chunks()
|
/openbmc/qemu/contrib/vhost-user-gpu/ |
H A D | vugbm.c | 39 mem_device_destroy(struct vugbm_device *dev) in mem_device_destroy() 125 udmabuf_device_destroy(struct vugbm_device *dev) in udmabuf_device_destroy() 135 struct gbm_device *dev = buf->dev->dev; in alloc_bo() local 186 device_destroy(struct vugbm_device *dev) in device_destroy() 193 vugbm_device_destroy(struct vugbm_device *dev) in vugbm_device_destroy() 203 vugbm_device_init(struct vugbm_device *dev, int fd) in vugbm_device_init() 252 struct vugbm_device *dev = buf->dev; in vugbm_buffer_map() local 260 struct vugbm_device *dev = buf->dev; in vugbm_buffer_unmap() local 293 vugbm_buffer_create(struct vugbm_buffer *buffer, struct vugbm_device *dev, in vugbm_buffer_create() 321 struct vugbm_device *dev = buffer->dev; in vugbm_buffer_destroy() local
|
/openbmc/u-boot/drivers/ata/ |
H A D | fsl_sata.c | 77 int init_sata(int dev) in init_sata() 258 int reset_sata(int dev) in reset_sata() 482 static void fsl_sata_identify(int dev, u16 *id) in fsl_sata_identify() 497 static void fsl_sata_xfer_mode(int dev, u16 *id) in fsl_sata_xfer_mode() 507 static void fsl_sata_set_features(int dev) in fsl_sata_set_features() 536 static u32 fsl_sata_rw_cmd(int dev, u32 start, u32 blkcnt, u8 *buffer, int is_write) in fsl_sata_rw_cmd() 561 static void fsl_sata_flush_cache(int dev) in fsl_sata_flush_cache() 575 static u32 fsl_sata_rw_cmd_ext(int dev, u32 start, u32 blkcnt, u8 *buffer, int is_write) in fsl_sata_rw_cmd_ext() 605 static u32 fsl_sata_rw_ncq_cmd(int dev, u32 start, u32 blkcnt, u8 *buffer, in fsl_sata_rw_ncq_cmd() 649 static void fsl_sata_flush_cache_ext(int dev) in fsl_sata_flush_cache_ext() [all …]
|
/openbmc/u-boot/drivers/gpio/ |
H A D | bcm6345_gpio.c | 21 static int bcm6345_gpio_get_value(struct udevice *dev, unsigned offset) in bcm6345_gpio_get_value() 28 static int bcm6345_gpio_set_value(struct udevice *dev, unsigned offset, in bcm6345_gpio_set_value() 52 static int bcm6345_gpio_direction_input(struct udevice *dev, unsigned offset) in bcm6345_gpio_direction_input() 59 static int bcm6345_gpio_direction_output(struct udevice *dev, unsigned offset, in bcm6345_gpio_direction_output() 69 static int bcm6345_gpio_get_function(struct udevice *dev, unsigned offset) in bcm6345_gpio_get_function() 87 static int bcm6345_gpio_probe(struct udevice *dev) in bcm6345_gpio_probe()
|
H A D | dwapb_gpio.c | 44 static int dwapb_gpio_direction_input(struct udevice *dev, unsigned pin) in dwapb_gpio_direction_input() 52 static int dwapb_gpio_direction_output(struct udevice *dev, unsigned pin, in dwapb_gpio_direction_output() 67 static int dwapb_gpio_get_value(struct udevice *dev, unsigned pin) in dwapb_gpio_get_value() 74 static int dwapb_gpio_set_value(struct udevice *dev, unsigned pin, int val) in dwapb_gpio_set_value() 86 static int dwapb_gpio_get_function(struct udevice *dev, unsigned offset) in dwapb_gpio_get_function() 107 static int gpio_dwapb_reset(struct udevice *dev) in gpio_dwapb_reset() 134 static int gpio_dwapb_probe(struct udevice *dev) in gpio_dwapb_probe() 150 static int gpio_dwapb_bind(struct udevice *dev) in gpio_dwapb_bind() 203 static int gpio_dwapb_remove(struct udevice *dev) in gpio_dwapb_remove()
|
H A D | hi6220_gpio.c | 13 static int hi6220_gpio_direction_input(struct udevice *dev, unsigned int gpio) in hi6220_gpio_direction_input() 25 static int hi6220_gpio_set_value(struct udevice *dev, unsigned gpio, in hi6220_gpio_set_value() 34 static int hi6220_gpio_direction_output(struct udevice *dev, unsigned gpio, in hi6220_gpio_direction_output() 49 static int hi6220_gpio_get_value(struct udevice *dev, unsigned gpio) in hi6220_gpio_get_value() 65 static int hi6220_gpio_probe(struct udevice *dev) in hi6220_gpio_probe()
|
/openbmc/u-boot/drivers/net/ |
H A D | ep93xx_eth.c | 41 static void dump_dev(struct eth_device *dev) in dump_dev() 68 static void dump_rx_status_queue(struct eth_device *dev) in dump_rx_status_queue() 86 static void dump_rx_descriptor_queue(struct eth_device *dev) in dump_rx_descriptor_queue() 104 static void dump_tx_descriptor_queue(struct eth_device *dev) in dump_tx_descriptor_queue() 122 static void dump_tx_status_queue(struct eth_device *dev) in dump_tx_status_queue() 147 static void ep93xx_mac_reset(struct eth_device *dev) in ep93xx_mac_reset() 165 static int ep93xx_eth_open(struct eth_device *dev, bd_t *bd) in ep93xx_eth_open() 283 static void ep93xx_eth_close(struct eth_device *dev) in ep93xx_eth_close() 299 static int ep93xx_eth_rcv_packet(struct eth_device *dev) in ep93xx_eth_rcv_packet() 368 static int ep93xx_eth_send_packet(struct eth_device *dev, in ep93xx_eth_send_packet() [all …]
|
H A D | sandbox-raw.c | 20 static int sb_eth_raw_start(struct udevice *dev) in sb_eth_raw_start() 38 static int sb_eth_raw_send(struct udevice *dev, void *packet, int length) in sb_eth_raw_send() 64 static int sb_eth_raw_recv(struct udevice *dev, int flags, uchar **packetp) in sb_eth_raw_recv() 124 static void sb_eth_raw_stop(struct udevice *dev) in sb_eth_raw_stop() 133 static int sb_eth_raw_read_rom_hwaddr(struct udevice *dev) in sb_eth_raw_read_rom_hwaddr() 150 static int sb_eth_raw_ofdata_to_platdata(struct udevice *dev) in sb_eth_raw_ofdata_to_platdata()
|
/openbmc/u-boot/drivers/rtc/ |
H A D | rx8010sj.c | 93 static int rx8010sj_rtc_read8(DEV_TYPE *dev, unsigned int reg) in rx8010sj_rtc_read8() 107 static int rx8010sj_rtc_write8(DEV_TYPE *dev, unsigned int reg, int val) in rx8010sj_rtc_write8() 147 void rx8010sj_rtc_init(DEV_TYPE *dev) in rx8010sj_rtc_init() 205 static int rx8010sj_rtc_get(DEV_TYPE *dev, struct rtc_time *tmp) in rx8010sj_rtc_get() 249 static int rx8010sj_rtc_set(DEV_TYPE *dev, const struct rtc_time *tm) in rx8010sj_rtc_set() 304 static int rx8010sj_rtc_reset(DEV_TYPE *dev) in rx8010sj_rtc_reset() 314 struct ludevice dev = { in rtc_get() local 323 struct ludevice dev = { in rtc_set() local 332 struct ludevice dev = { in rtc_reset() local 341 struct ludevice dev = { in rtc_init() local [all …]
|
/openbmc/u-boot/drivers/virtio/ |
H A D | virtio_net.c | 51 static int virtio_net_start(struct udevice *dev) in virtio_net_start() 77 static int virtio_net_send(struct udevice *dev, void *packet, int length) in virtio_net_send() 109 static int virtio_net_recv(struct udevice *dev, int flags, uchar **packetp) in virtio_net_recv() 123 static int virtio_net_free_pkt(struct udevice *dev, uchar *packet, int length) in virtio_net_free_pkt() 136 static void virtio_net_stop(struct udevice *dev) in virtio_net_stop() 145 static int virtio_net_write_hwaddr(struct udevice *dev) in virtio_net_write_hwaddr() 167 static int virtio_net_read_rom_hwaddr(struct udevice *dev) in virtio_net_read_rom_hwaddr() 183 static int virtio_net_bind(struct udevice *dev) in virtio_net_bind() 194 static int virtio_net_probe(struct udevice *dev) in virtio_net_probe()
|
/openbmc/u-boot/arch/arm/mach-stm32mp/ |
H A D | pwr_regulator.c | 32 static int stm32mp_pwr_write(struct udevice *dev, uint reg, in stm32mp_pwr_write() 44 static int stm32mp_pwr_read(struct udevice *dev, uint reg, uint8_t *buff, in stm32mp_pwr_read() 55 static int stm32mp_pwr_ofdata_to_platdata(struct udevice *dev) in stm32mp_pwr_ofdata_to_platdata() 77 static int stm32mp_pwr_bind(struct udevice *dev) in stm32mp_pwr_bind() 133 static int stm32mp_pwr_regulator_probe(struct udevice *dev) in stm32mp_pwr_regulator_probe() 171 static int stm32mp_pwr_regulator_set_value(struct udevice *dev, int uV) in stm32mp_pwr_regulator_set_value() 187 static int stm32mp_pwr_regulator_get_value(struct udevice *dev) in stm32mp_pwr_regulator_get_value() 203 static int stm32mp_pwr_regulator_get_enable(struct udevice *dev) in stm32mp_pwr_regulator_get_enable() 218 static int stm32mp_pwr_regulator_set_enable(struct udevice *dev, bool enable) in stm32mp_pwr_regulator_set_enable()
|
/openbmc/u-boot/drivers/power/pmic/ |
H A D | sandbox.c | 22 static int sandbox_pmic_reg_count(struct udevice *dev) in sandbox_pmic_reg_count() 27 static int sandbox_pmic_write(struct udevice *dev, uint reg, in sandbox_pmic_write() 38 static int sandbox_pmic_read(struct udevice *dev, uint reg, in sandbox_pmic_read() 49 static int sandbox_pmic_bind(struct udevice *dev) in sandbox_pmic_bind()
|
/openbmc/u-boot/drivers/nvme/ |
H A D | nvme.c | 34 struct nvme_dev *dev; member 50 static int nvme_wait_ready(struct nvme_dev *dev, bool enabled) in nvme_wait_ready() 68 static int nvme_setup_prps(struct nvme_dev *dev, u64 *prp2, in nvme_setup_prps() 212 static int nvme_submit_admin_cmd(struct nvme_dev *dev, struct nvme_command *cmd, in nvme_submit_admin_cmd() 219 static struct nvme_queue *nvme_alloc_queue(struct nvme_dev *dev, in nvme_alloc_queue() 257 static int nvme_delete_queue(struct nvme_dev *dev, u8 opcode, u16 id) in nvme_delete_queue() 268 static int nvme_delete_sq(struct nvme_dev *dev, u16 sqid) in nvme_delete_sq() 273 static int nvme_delete_cq(struct nvme_dev *dev, u16 cqid) in nvme_delete_cq() 278 static int nvme_enable_ctrl(struct nvme_dev *dev) in nvme_enable_ctrl() 287 static int nvme_disable_ctrl(struct nvme_dev *dev) in nvme_disable_ctrl() [all …]
|
/openbmc/qemu/hw/virtio/ |
H A D | vhost-user.c | 243 struct vhost_dev *dev; member 275 static int vhost_user_read_header(struct vhost_dev *dev, VhostUserMsg *msg) in vhost_user_read_header() 303 static int vhost_user_read(struct vhost_dev *dev, VhostUserMsg *msg) in vhost_user_read() 338 static int process_message_reply(struct vhost_dev *dev, in process_message_reply() 382 static int vhost_user_write(struct vhost_dev *dev, VhostUserMsg *msg, in vhost_user_write() 423 int vhost_user_gpu_set_socket(struct vhost_dev *dev, int fd) in vhost_user_gpu_set_socket() 433 static int vhost_user_set_log_base(struct vhost_dev *dev, uint64_t base, in vhost_user_set_log_base() 506 struct vhost_dev *dev, in vhost_user_fill_set_mem_table_msg() 569 static void scrub_shadow_regions(struct vhost_dev *dev, in scrub_shadow_regions() 659 static int send_remove_regions(struct vhost_dev *dev, in send_remove_regions() [all …]
|
/openbmc/u-boot/drivers/misc/ |
H A D | atsha204a-i2c.c | 148 static int atsha204a_send(struct udevice *dev, const u8 *buf, u8 len) in atsha204a_send() 161 static int atsha204a_recv(struct udevice *dev, u8 *buf, u8 len) in atsha204a_recv() 174 static int atsha204a_recv_resp(struct udevice *dev, in atsha204a_recv_resp() 206 int atsha204a_wakeup(struct udevice *dev) in atsha204a_wakeup() 245 int atsha204a_idle(struct udevice *dev) in atsha204a_idle() 256 int atsha204a_sleep(struct udevice *dev) in atsha204a_sleep() 267 static int atsha204a_transaction(struct udevice *dev, struct atsha204a_req *req, in atsha204a_transaction() 310 int atsha204a_read(struct udevice *dev, enum atsha204a_zone zone, bool read32, in atsha204a_read() 355 int atsha204a_get_random(struct udevice *dev, u8 *buffer, size_t max) in atsha204a_get_random() 382 static int atsha204a_ofdata_to_platdata(struct udevice *dev) in atsha204a_ofdata_to_platdata()
|
H A D | misc-uclass.c | 17 int misc_read(struct udevice *dev, int offset, void *buf, int size) in misc_read() 27 int misc_write(struct udevice *dev, int offset, void *buf, int size) in misc_write() 37 int misc_ioctl(struct udevice *dev, unsigned long request, void *buf) in misc_ioctl() 47 int misc_call(struct udevice *dev, int msgid, void *tx_msg, int tx_size, in misc_call() 58 int misc_set_enabled(struct udevice *dev, bool val) in misc_set_enabled()
|
/openbmc/qemu/hw/misc/ |
H A D | imx6_ccm.c | 245 static uint64_t imx6_analog_get_pll2_clk(IMX6CCMState *dev) in imx6_analog_get_pll2_clk() 260 static uint64_t imx6_analog_get_pll2_pfd0_clk(IMX6CCMState *dev) in imx6_analog_get_pll2_pfd0_clk() 272 static uint64_t imx6_analog_get_pll2_pfd2_clk(IMX6CCMState *dev) in imx6_analog_get_pll2_pfd2_clk() 284 static uint64_t imx6_analog_get_periph_clk(IMX6CCMState *dev) in imx6_analog_get_periph_clk() 311 static uint64_t imx6_ccm_get_ahb_clk(IMX6CCMState *dev) in imx6_ccm_get_ahb_clk() 323 static uint64_t imx6_ccm_get_ipg_clk(IMX6CCMState *dev) in imx6_ccm_get_ipg_clk() 335 static uint64_t imx6_ccm_get_per_clk(IMX6CCMState *dev) in imx6_ccm_get_per_clk() 347 static uint32_t imx6_ccm_get_clock_frequency(IMXCCMState *dev, IMXClk clock) in imx6_ccm_get_clock_frequency() 381 static void imx6_ccm_reset(DeviceState *dev) in imx6_ccm_reset() 719 DeviceState *dev = DEVICE(obj); in imx6_ccm_init() local
|
H A D | imx31_ccm.c | 107 static uint32_t imx31_ccm_get_pll_ref_clk(IMXCCMState *dev) in imx31_ccm_get_pll_ref_clk() 128 static uint32_t imx31_ccm_get_mpll_clk(IMXCCMState *dev) in imx31_ccm_get_mpll_clk() 141 static uint32_t imx31_ccm_get_mcu_main_clk(IMXCCMState *dev) in imx31_ccm_get_mcu_main_clk() 158 static uint32_t imx31_ccm_get_hclk_clk(IMXCCMState *dev) in imx31_ccm_get_hclk_clk() 171 static uint32_t imx31_ccm_get_ipg_clk(IMXCCMState *dev) in imx31_ccm_get_ipg_clk() 184 static uint32_t imx31_ccm_get_clock_frequency(IMXCCMState *dev, IMXClk clock) in imx31_ccm_get_clock_frequency() 209 static void imx31_ccm_reset(DeviceState *dev) in imx31_ccm_reset() 313 DeviceState *dev = DEVICE(obj); in imx31_ccm_init() local
|
/openbmc/qemu/hw/net/ |
H A D | spapr_llan.c | 114 SpaprVioVlan *dev = qemu_get_nic_opaque(nc); in spapr_vlan_can_receive() local 126 static void spapr_vlan_record_dropped_rx_frame(SpaprVioVlan *dev) in spapr_vlan_record_dropped_rx_frame() 137 static vlan_bd_t spapr_vlan_get_rx_bd_from_pool(SpaprVioVlan *dev, in spapr_vlan_get_rx_bd_from_pool() 171 static vlan_bd_t spapr_vlan_get_rx_bd_from_page(SpaprVioVlan *dev, in spapr_vlan_get_rx_bd_from_page() 206 SpaprVioVlan *dev = qemu_get_nic_opaque(nc); in spapr_vlan_receive() local 283 SpaprVioVlan *dev = opaque; in spapr_vlan_flush_rx_queue() local 301 SpaprVioVlan *dev = VIO_SPAPR_VLAN_DEVICE(sdev); in spapr_vlan_reset() local 321 SpaprVioVlan *dev = VIO_SPAPR_VLAN_DEVICE(sdev); in spapr_vlan_realize() local 338 SpaprVioVlan *dev = VIO_SPAPR_VLAN_DEVICE(obj); in spapr_vlan_instance_init() local 355 SpaprVioVlan *dev = VIO_SPAPR_VLAN_DEVICE(obj); in spapr_vlan_instance_finalize() local [all …]
|
/openbmc/u-boot/drivers/sound/ |
H A D | ivybridge_sound.c | 21 static int bd82x6x_azalia_probe(struct udevice *dev) in bd82x6x_azalia_probe() 104 static int bd82x6x_azalia_setup(struct udevice *dev) in bd82x6x_azalia_setup() 109 int bd82x6x_azalia_start_beep(struct udevice *dev, int frequency_hz) in bd82x6x_azalia_start_beep() 114 int bd82x6x_azalia_stop_beep(struct udevice *dev) in bd82x6x_azalia_stop_beep()
|
/openbmc/u-boot/drivers/mailbox/ |
H A D | sandbox-mbox-test.c | 15 int sandbox_mbox_test_get(struct udevice *dev) in sandbox_mbox_test_get() 22 int sandbox_mbox_test_send(struct udevice *dev, uint32_t msg) in sandbox_mbox_test_send() 29 int sandbox_mbox_test_recv(struct udevice *dev, uint32_t *msg) in sandbox_mbox_test_recv() 36 int sandbox_mbox_test_free(struct udevice *dev) in sandbox_mbox_test_free()
|
/openbmc/u-boot/lib/ |
H A D | tpm-v1.c | 35 u32 tpm1_startup(struct udevice *dev, enum tpm_startup_type mode) in tpm1_startup() 51 u32 tpm1_resume(struct udevice *dev) in tpm1_resume() 56 u32 tpm1_self_test_full(struct udevice *dev) in tpm1_self_test_full() 64 u32 tpm1_continue_self_test(struct udevice *dev) in tpm1_continue_self_test() 72 u32 tpm1_clear_and_reenable(struct udevice *dev) in tpm1_clear_and_reenable() 98 u32 tpm1_nv_define_space(struct udevice *dev, u32 index, u32 perm, u32 size) in tpm1_nv_define_space() 141 u32 tpm1_nv_set_locked(struct udevice *dev) in tpm1_nv_set_locked() 146 u32 tpm1_nv_read_value(struct udevice *dev, u32 index, void *data, u32 count) in tpm1_nv_read_value() 180 u32 tpm1_nv_write_value(struct udevice *dev, u32 index, const void *data, in tpm1_nv_write_value() 211 u32 tpm1_extend(struct udevice *dev, u32 index, const void *in_digest, in tpm1_extend() [all …]
|
/openbmc/u-boot/drivers/led/ |
H A D | led_gpio.c | 18 static int gpio_led_set_state(struct udevice *dev, enum led_state_t state) in gpio_led_set_state() 42 static enum led_state_t gpio_led_get_state(struct udevice *dev) in gpio_led_get_state() 56 static int led_gpio_probe(struct udevice *dev) in led_gpio_probe() 73 static int led_gpio_remove(struct udevice *dev) in led_gpio_remove() 91 struct udevice *dev; in led_gpio_bind() local
|
/openbmc/u-boot/drivers/core/ |
H A D | device-remove.c | 20 int device_chld_unbind(struct udevice *dev, struct driver *drv) in device_chld_unbind() 39 int device_chld_remove(struct udevice *dev, struct driver *drv, in device_chld_remove() 59 int device_unbind(struct udevice *dev) in device_unbind() 118 void device_free(struct udevice *dev) in device_free() 155 int device_remove(struct udevice *dev, uint flags) in device_remove()
|