Home
last modified time | relevance | path

Searched refs:dev_addr (Results 1 – 25 of 109) sorted by relevance

12345

/device/soc/hpmicro/sdk/hpm_sdk/components/usb/host/
Dhpm_usb_host.c58 static void usb_host_list_remove_qhd_by_addr(hcd_link_t *list_head, uint8_t dev_addr) in usb_host_list_remove_qhd_by_addr() argument
69 if (qhd->dev_addr == dev_addr) { in usb_host_list_remove_qhd_by_addr()
96 static hcd_qhd_t *usb_host_qhd_control(usb_host_handle_t *handle, uint8_t dev_addr) in usb_host_qhd_control() argument
98 return &handle->hcd_data->control[dev_addr].qhd; in usb_host_qhd_control()
117 static hcd_qhd_t *usb_host_qhd_get_from_addr(usb_host_handle_t *handle, uint8_t dev_addr, uint8_t e… in usb_host_qhd_get_from_addr() argument
122 if ((qhd_pool[i].dev_addr == dev_addr) && in usb_host_qhd_get_from_addr()
131 static bool usb_host_qhd_init(usb_host_handle_t *handle, hcd_qhd_t *p_qhd, uint8_t dev_addr, usb_de… in usb_host_qhd_init() argument
137 if (dev_addr != 0) { in usb_host_qhd_init()
141 p_qhd->dev_addr = dev_addr; in usb_host_qhd_init()
146 …p_qhd->head_list_flag = (dev_addr == USB_DEFAULT_ADDR) ? 1 : 0; /* addr0's endpoint is the … in usb_host_qhd_init()
[all …]
Dhpm_usb_host.h143 volatile uint32_t dev_addr : 7 ; /* device address */ member
270 hcd_qtd_t *usb_host_qtd_control(usb_host_handle_t *handle, uint8_t dev_addr);
280 void usb_host_device_close(usb_host_handle_t *handle, uint8_t dev_addr);
281 bool usb_host_edpt_xfer(usb_host_handle_t *handle, uint8_t dev_addr, uint8_t ep_addr, uint8_t *buff…
282 bool usb_host_setup_send(usb_host_handle_t *handle, uint8_t dev_addr, const uint8_t *setup_packet);
283 bool usb_host_edpt_open(usb_host_handle_t *handle, uint8_t dev_addr, usb_desc_endpoint_t const *ep_…
284 bool usb_host_pipe_queue_xfer(usb_host_handle_t *handle, uint8_t dev_addr, uint8_t ep_addr, uint8_t…
285 bool usb_host_pipe_xfer(usb_host_handle_t *handle, uint8_t dev_addr, uint8_t ep_addr, uint8_t buffe…
286 bool usb_host_edpt_busy(usb_host_handle_t *handle, uint8_t dev_addr, uint8_t ep_addr);
287 bool usb_host_edpt_stalled(usb_host_handle_t *handle, uint8_t dev_addr, uint8_t ep_addr);
[all …]
/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/middleware/driver/i2c/
Di2c_driver.c53 uint16_t dev_addr; member
315 static bk_err_t i2c_master_set_write_dev_addr(i2c_id_t id, uint16_t dev_addr) in i2c_master_set_write_dev_addr() argument
320 i2c_hal_write_byte(&s_i2c[id].hal, dev_addr << 1 & (~0x01)); in i2c_master_set_write_dev_addr()
336 static bk_err_t i2c_master_set_read_dev_addr(i2c_id_t id, uint16_t dev_addr) in i2c_master_set_read_dev_addr() argument
338 i2c_hal_write_byte(&s_i2c[id].hal, dev_addr << 1 | 0x01); in i2c_master_set_read_dev_addr()
570 bk_err_t bk_i2c_master_write(i2c_id_t id, uint32_t dev_addr, const uint8_t *data, uint32_t size, ui… in bk_i2c_master_write() argument
581 s_i2c[id].dev_addr = dev_addr; in bk_i2c_master_write()
587 i2c_master_set_write_dev_addr(id, dev_addr); in bk_i2c_master_write()
596 bk_err_t bk_i2c_master_read(i2c_id_t id, uint32_t dev_addr, uint8_t *data, uint32_t size, uint32_t … in bk_i2c_master_read() argument
607 s_i2c[id].dev_addr = dev_addr; in bk_i2c_master_read()
[all …]
/device/soc/asrmicro/asr582x/liteos_m/sdk/drivers/driver/inc/
Dduet_i2c.h140 uint16_t dev_addr; member
157 int32_t duet_i2c_master_send(duet_i2c_dev_t *i2c, uint16_t dev_addr, const uint8_t *data, uint16_t …
159 int32_t duet_i2c_master_recv(duet_i2c_dev_t *i2c, uint16_t dev_addr, uint8_t *data, uint16_t size, …
163 int32_t duet_i2c_mem_write(duet_i2c_dev_t *i2c, uint16_t dev_addr, uint16_t mem_addr,
167 int32_t duet_i2c_mem_read(duet_i2c_dev_t *i2c, uint16_t dev_addr, uint16_t mem_addr,
/device/soc/hisilicon/hi3751v350/sdk_linux/source/msp/drv/i2c/std_i2c/
Ddrv_i2c_intf.c43 hi_u32 dev_addr; member
142 p_data->dev_addr = (hi_u32)osal_strtoul(argv[2], NULL, 16); // 命令的第2个参数 字符串转成16进制的正整数 in i2c_proc_wr_read_get_dev_msg()
148 hi_dbg_print_h32(p_data->dev_addr); in i2c_proc_wr_read_get_dev_msg()
175 ret = hi_drv_i2c_read(i2c_dev_msg.i2c_no, (hi_u8)(i2c_dev_msg.dev_addr), \ in i2c_proc_wr_read()
206 … ret = g_pst_gpio_i2c_ext_funcs->pfn_gpio_i2c_read_ext(i2c_dev_msg.i2c_no, i2c_dev_msg.dev_addr, \ in i2c_proc_wr_read()
242 p_data->dev_addr = (hi_u32)osal_strtoul(argv[2], NULL, 16); // 命令的第2个参数 字符串转成16进制的正整数 in i2c_proc_wr_write_get_dev_msg()
269 hi_dbg_print_h32(p_data->dev_addr); in i2c_proc_wr_write_get_dev_msg()
293 ret = hi_drv_i2c_write(i2c_dev_msg.i2c_no, (hi_u8)(i2c_dev_msg.dev_addr), \ in i2c_proc_wr_write()
317 … ret = g_pst_gpio_i2c_ext_funcs->pfn_gpio_i2c_write_ext(i2c_dev_msg.i2c_no, i2c_dev_msg.dev_addr, \ in i2c_proc_wr_write()
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/emac/
Dsun4i-emac.c512 writel(ndev->dev_addr[0] << 16 | ndev->dev_addr[1] << 8 | ndev-> in emac_powerup()
513 dev_addr[2], db->membase + EMAC_MAC_A1_REG); in emac_powerup()
514 writel(ndev->dev_addr[3] << 16 | ndev->dev_addr[4] << 8 | ndev-> in emac_powerup()
515 dev_addr[5], db->membase + EMAC_MAC_A0_REG); in emac_powerup()
530 memcpy(dev->dev_addr, addr->sa_data, ETH_ALEN); in emac_set_mac_address()
532 writel(dev->dev_addr[0] << 16 | dev->dev_addr[1] << 8 | dev-> in emac_set_mac_address()
533 dev_addr[2], db->membase + EMAC_MAC_A1_REG); in emac_set_mac_address()
534 writel(dev->dev_addr[3] << 16 | dev->dev_addr[4] << 8 | dev-> in emac_set_mac_address()
535 dev_addr[5], db->membase + EMAC_MAC_A0_REG); in emac_set_mac_address()
1111 ether_addr_copy(ndev->dev_addr, mac_addr); in emac_probe()
[all …]
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/vin/modules/sensor/nvp6158/
Dvideo_eq.h35 unsigned char dev_addr; member
44 unsigned char dev_addr; member
67 unsigned char dev_addr; member
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/linux/
Dmali_memory_secure.c122 dma_addr_t dev_addr; in mali_mem_secure_cpu_map() local
124 dev_addr = sg_dma_address(sg); in mali_mem_secure_cpu_map()
126 phys = dma_to_phys(&mali_platform_device->dev, dev_addr); in mali_mem_secure_cpu_map()
128 phys = page_to_phys(pfn_to_page(dma_to_pfn(&mali_platform_device->dev, dev_addr))); in mali_mem_secure_cpu_map()
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/linux/
Dmali_memory_secure.c120 dma_addr_t dev_addr; in mali_mem_secure_cpu_map() local
122 dev_addr = sg_dma_address(sg); in mali_mem_secure_cpu_map()
124 phys = dma_to_phys(&mali_platform_device->dev, dev_addr); in mali_mem_secure_cpu_map()
126 phys = page_to_phys(pfn_to_page(dma_to_pfn(&mali_platform_device->dev, dev_addr))); in mali_mem_secure_cpu_map()
/device/soc/asrmicro/asr582x/liteos_m/sdk/drivers/driver/src/
Dduet_i2c.c203 I2Cx->SAR = i2c->config.dev_addr; // set unit address as slave in duet_i2c_init()
221 I2Cx->SAR = i2c->config.dev_addr; // set unit address as slave in duet_i2c_init()
257 int32_t duet_i2c_master_send(duet_i2c_dev_t *i2c, uint16_t dev_addr, const uint8_t *data, uint16_t … in duet_i2c_master_send() argument
292 I2Cx->WFIFO = (((uint8_t)(dev_addr & 0x00FF)) << 1) | I2C_WRITE | I2C_SEND_START | I2C_TB; in duet_i2c_master_send()
355 int32_t duet_i2c_master_recv(duet_i2c_dev_t *i2c, uint16_t dev_addr, uint8_t *data, uint16_t size, … in duet_i2c_master_recv() argument
390 I2Cx->WFIFO = (dev_addr << 1) | I2C_READ | I2C_SEND_START | I2C_TB; in duet_i2c_master_recv()
498 int32_t duet_i2c_mem_write(duet_i2c_dev_t *i2c, uint16_t dev_addr, uint16_t mem_addr, \ in duet_i2c_mem_write() argument
538 i2c_write_byte(I2Cx, ((uint8_t)dev_addr << 1) | I2C_WRITE | I2C_SEND_START | I2C_TB); in duet_i2c_mem_write()
610 int32_t duet_i2c_mem_read(duet_i2c_dev_t *i2c, uint16_t dev_addr, uint16_t mem_addr, in duet_i2c_mem_read() argument
647 i2c_write_byte(I2Cx, ((uint8_t)dev_addr << 1) | I2C_WRITE | I2C_SEND_START | I2C_TB); in duet_i2c_mem_read()
[all …]
/device/soc/hisilicon/hi3751v350/sdk_linux/source/msp/drv/include/
Dhi_drv_gpioi2c.h57 typedef hi_s32 (*fn_gpio_i2c_write)(hi_u32 i2c_num, hi_u8 dev_addr, hi_u8 reg_address, hi_u8 data);
60 typedef hi_s32 (*fn_gpio_i2c_read)(hi_u32 i2c_num, hi_u8 dev_addr, hi_u8 reg_address, hi_u8 *p_data…
63 typedef hi_s32 (*fn_gpio_i2c_sccb_read)(hi_u32 i2c_num, hi_u8 dev_addr, hi_u8 reg_address, hi_u8 *p…
/device/soc/winnermicro/wm800/board/platform/drivers/i2c/
Dwm_i2c.c35 uint8_t dev_addr; member
78 I2C->TX_RX = (i2c_transfer.dev_addr | 0x01); in i2c_I2C_IRQHandler()
248 i2c_transfer.dev_addr = devaddr; in wm_i2c_start_write_it()
275 i2c_transfer.dev_addr = devaddr; in wm_i2c_start_read_it()
/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/include/driver/
Di2c.h105 bk_err_t bk_i2c_master_write(i2c_id_t id, uint32_t dev_addr, const uint8_t *data, uint32_t size, ui…
124 bk_err_t bk_i2c_master_read(i2c_id_t id, uint32_t dev_addr, uint8_t *data, uint32_t size, uint32_t …
Di2c_types.h40 uint32_t dev_addr; /**< I2C slave device address */ member
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/vin/modules/sensor/
Dgc02m1_mipi.c667 unsigned char dev_addr, in sensor_read_block_otp_a16_d8() argument
682 msg[0].addr = dev_addr >> 1; in sensor_read_block_otp_a16_d8()
687 msg[1].addr = dev_addr >> 1; in sensor_read_block_otp_a16_d8()
696 unsigned char dev_addr, in sensor_write_block_otp_a16_d8() argument
710 msg.addr = dev_addr >> 1; in sensor_write_block_otp_a16_d8()
725 unsigned char dev_addr,
743 msg.addr = dev_addr >> 1;
756 dev_addr += len;
/device/soc/amlogic/a311d/soc/amlogic/mmc/
Demmc_partitions.c88 static int mmc_transfer(struct mmc_card *card, unsigned int dev_addr, unsigned int blocks, void *bu…
90 int mmc_read_internal(struct mmc_card *card, unsigned int dev_addr, unsigned int blocks, void *buf) in mmc_read_internal() argument
92 return mmc_transfer(card, dev_addr, blocks, buf, 0); in mmc_read_internal()
95 int mmc_write_internal(struct mmc_card *card, unsigned int dev_addr, unsigned int blocks, void *buf) in mmc_write_internal() argument
97 return mmc_transfer(card, dev_addr, blocks, buf, 1); in mmc_write_internal()
494 … unsigned int dev_addr, unsigned int blocks, unsigned int blksz, int write) in mmc_prepare_mrq() argument
504 mrq->cmd->arg = dev_addr; in mmc_prepare_mrq()
537 static int mmc_transfer(struct mmc_card *card, unsigned int dev_addr, unsigned int blocks, void *bu… in mmc_transfer() argument
563 if ((dev_addr + blocks) >= mmc_capacity(card)) { in mmc_transfer()
576 mmc_prepare_mrq(card, &mrq, &sg, 1, dev_addr, blocks, 1 << card->csd.read_blkbits, write); in mmc_transfer()
[all …]
/device/soc/hisilicon/hi3751v350/sdk_linux/source/msp/drv/i2c/gpio_i2c/
Ddrv_gpio_i2c.c385 hi_s32 hi_drv_gpioi2c_read(hi_u32 i2c_num, hi_u8 dev_addr, hi_u8 reg_address, hi_u8 *p_data) in hi_drv_gpioi2c_read() argument
401 i2c_send_byte(i2c_num, (unsigned char)(dev_addr)); in hi_drv_gpioi2c_read()
421 i2c_send_byte(i2c_num, (unsigned char)(dev_addr) | 1); in hi_drv_gpioi2c_read()
436 i2c_num, dev_addr, reg_address, *p_data); in hi_drv_gpioi2c_read()
569 hi_s32 hi_drv_gpioi2c_write(hi_u32 i2c_num, hi_u8 dev_addr, hi_u8 reg_address, hi_u8 u8Data) in hi_drv_gpioi2c_write() argument
584 i2c_num, dev_addr, reg_address, u8Data); in hi_drv_gpioi2c_write()
588 i2c_send_byte(i2c_num, (unsigned char)(dev_addr)); in hi_drv_gpioi2c_write()
726 hi_s32 hi_drv_gpioi2c_sccb_read(hi_u32 i2c_num, hi_u8 dev_addr, hi_u8 reg_address, hi_u8 *p_data) in hi_drv_gpioi2c_sccb_read() argument
742 i2c_send_byte(i2c_num, (unsigned char)(dev_addr)); in hi_drv_gpioi2c_sccb_read()
754 i2c_send_byte(i2c_num, (unsigned char)(dev_addr) | 1); in hi_drv_gpioi2c_sccb_read()
/device/soc/rockchip/rk3588/kernel/drivers/mmc/host/
Drk_sdmmc_ops.c59 unsigned sg_len, unsigned dev_addr, unsigned blocks, unsigned blksz, int write) in rk_emmc_prepare_mrq() argument
71 mrq->cmd->arg = dev_addr; in rk_emmc_prepare_mrq()
/device/soc/rockchip/common/vendor/drivers/mmc/host/
Drk_sdmmc_ops.c56 …mc_prepare_mrq(struct mmc_request *mrq, struct scatterlist *sg, unsigned sg_len, unsigned dev_addr, in rk_emmc_prepare_mrq() argument
67 mrq->cmd->arg = dev_addr; in rk_emmc_prepare_mrq()
/device/soc/hpmicro/sdk/hpm_sdk/drivers/inc/
Dhpm_usb_drv.h337 static inline void usb_dcd_set_address(USB_Type *ptr, uint8_t dev_addr) in usb_dcd_set_address() argument
339 ptr->DEVICEADDR = USB_DEVICEADDR_USBADR_SET(dev_addr) | USB_DEVICEADDR_USBADRA_MASK; in usb_dcd_set_address()
/device/soc/hisilicon/hi3516dv300/sdk_linux/include/
Dhi_i2c.h47 unsigned char dev_addr; member
/device/soc/hisilicon/hi3516dv300/sdk_liteos/include/
Dhi_i2c.h47 unsigned char dev_addr; member
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/cbb/include/
Dhi_i2c.h47 unsigned char dev_addr; member
/device/board/unionman/unionpi_tiger/kernel/drivers/isp/drivers/v4l2_dev/src/platform/
Dsystem_dma.c85 void __iomem *dev_addr; member
212 iounmap( system_dma_device->mem_addrs[idx][i][j].dev_addr ); in system_dma_destroy()
491 …system_dma_device->mem_addrs[fw_ctx_id][buff_loc][i].dev_addr = ioremap( device_addr_pair[i].addre… in system_dma_sg_device_setup()
577 dst_mem = mem_addr->dev_addr; in memcopy_func()
581 src_mem = mem_addr->dev_addr; in memcopy_func()
/device/board/kaihong/khdvk_3566b/wifi/bcmdhd_hdf/hdf/
Dnet_bdh_adpater.c109 us_addr[tmp] = netdev->dev_addr[tmp]; in wal_get_dev_addr()
306 memcpy_s(netDev->macAddr, MAC_ADDR_SIZE, netdev->dev_addr, netdev->addr_len); in hdf_bdh6_netdev_open()
454 memcpy_s(netdev->dev_addr, netdev->addr_len, addr, netdev->addr_len); in hdf_p2p_netdev_setmacaddr()
455 memcpy_s(netDev->macAddr, MAC_ADDR_SIZE, netdev->dev_addr, netdev->addr_len); in hdf_p2p_netdev_setmacaddr()

12345