/device/soc/esp/esp32/components/bt/host/bluedroid/stack/l2cap/ |
D | l2cap_client.c | 51 static void fragment_packet(l2cap_client_t *client, buffer_t *packet); 52 static void dispatch_fragments(l2cap_client_t *client); 124 void l2cap_client_free(l2cap_client_t *client) in l2cap_client_free() argument 126 if (!client) { in l2cap_client_free() 130 list_remove(l2cap_clients, client); in l2cap_client_free() 131 l2cap_client_disconnect(client); in l2cap_client_free() 132 list_free(client->outbound_fragments); in l2cap_client_free() 133 osi_free(client); in l2cap_client_free() 136 bool l2cap_client_connect(l2cap_client_t *client, const bt_bdaddr_t *remote_bdaddr, uint16_t psm) in l2cap_client_connect() argument 138 assert(client != NULL); in l2cap_client_connect() [all …]
|
/device/soc/winnermicro/wm800/board/src/bt/blehost/nimble/host/mesh/src/ |
D | proxy.c | 198 static int filter_set(struct bt_mesh_proxy_client *client, in filter_set() argument 213 memset(client->filter, 0, sizeof(client->filter)); in filter_set() 214 client->filter_type = WHITELIST; in filter_set() 218 memset(client->filter, 0, sizeof(client->filter)); in filter_set() 219 client->filter_type = BLACKLIST; in filter_set() 230 static void filter_add(struct bt_mesh_proxy_client *client, u16_t addr) in filter_add() argument 239 for (i = 0; i < ARRAY_SIZE(client->filter); i++) { in filter_add() 240 if (client->filter[i] == addr) { in filter_add() 245 for (i = 0; i < ARRAY_SIZE(client->filter); i++) { in filter_add() 246 if (client->filter[i] == BT_MESH_ADDR_UNASSIGNED) { in filter_add() [all …]
|
/device/board/isoftstone/yangfan/kernel/src/driv/media/i2c/ |
D | gc8034.c | 167 struct i2c_client *client; member 899 static int gc8034_write_reg(struct i2c_client *client, u8 reg, u8 val) in gc8034_write_reg() argument 908 msg.addr = client->addr; in gc8034_write_reg() 909 msg.flags = client->flags; in gc8034_write_reg() 913 ret = i2c_transfer(client->adapter, &msg, 1); in gc8034_write_reg() 917 dev_err(&client->dev, in gc8034_write_reg() 923 static int gc8034_write_array(struct i2c_client *client, in gc8034_write_array() argument 930 ret = gc8034_write_reg(client, regs[i].addr, regs[i].val); in gc8034_write_array() 936 static int gc8034_read_reg(struct i2c_client *client, u8 reg, u8 *val) in gc8034_read_reg() argument 944 msg[0].addr = client->addr; in gc8034_read_reg() [all …]
|
/device/soc/rockchip/common/sdk_linux/drivers/i2c/ |
D | i2c-core-base.c | 81 …struct i2c_device_id *i2c_match_id(const struct i2c_device_id *id, const struct i2c_client *client) in i2c_match_id() argument 83 if (!(id && client)) { in i2c_match_id() 88 if (strcmp(client->name, id->name) == 0) { in i2c_match_id() 99 struct i2c_client *client = i2c_verify_client(dev); in i2c_device_match() local 102 if (i2c_of_match_device(drv->of_match_table, client)) { in i2c_device_match() 111 if (i2c_match_id(driver->id_table, client)) { in i2c_device_match() 119 struct i2c_client *client = to_i2c_client(dev); in i2c_device_uevent() local 132 return add_uevent_var(env, "MODALIAS=%s%s", I2C_MODULE_PREFIX, client->name); in i2c_device_uevent() 447 static int i2c_smbus_host_notify_to_irq(const struct i2c_client *client) in i2c_smbus_host_notify_to_irq() argument 449 struct i2c_adapter *adap = client->adapter; in i2c_smbus_host_notify_to_irq() [all …]
|
/device/soc/rockchip/rk3588/kernel/drivers/media/i2c/ |
D | dw9763.c | 79 static int dw9763_read_reg(struct i2c_client *client, in dw9763_read_reg() argument 92 msgs[0].addr = client->addr; in dw9763_read_reg() 98 msgs[1].addr = client->addr; in dw9763_read_reg() 103 ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); in dw9763_read_reg() 112 static int dw9763_write_reg(struct i2c_client *client, in dw9763_write_reg() argument 133 if (i2c_master_send(client, buf, len + 1) != len + 1) in dw9763_write_reg() 142 struct i2c_client *client = v4l2_get_subdevdata(&dev_vcm->sd); in dw9763_get_pos() local 147 ret = dw9763_read_reg(client, DW9763_DATAM_REG, &val, 2); in dw9763_get_pos() 161 dev_dbg(&client->dev, "%s: get position %d\n", __func__, *cur_pos); in dw9763_get_pos() 165 dev_err(&client->dev, in dw9763_get_pos() [all …]
|
D | ov13855.c | 115 struct i2c_client *client; member 1080 static int ov13855_write_reg(struct i2c_client *client, u16 reg, in ov13855_write_reg() argument 1088 dev_dbg(&client->dev, "write reg(0x%x val:0x%x)!\n", reg, val); in ov13855_write_reg() 1104 if (i2c_master_send(client, buf, len + 2) != len + 2) in ov13855_write_reg() 1110 static int ov13855_write_array(struct i2c_client *client, in ov13855_write_array() argument 1117 ret = ov13855_write_reg(client, regs[i].addr, in ov13855_write_array() 1125 static int ov13855_read_reg(struct i2c_client *client, u16 reg, in ov13855_read_reg() argument 1139 msgs[0].addr = client->addr; in ov13855_read_reg() 1145 msgs[1].addr = client->addr; in ov13855_read_reg() 1150 ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); in ov13855_read_reg() [all …]
|
/device/soc/amlogic/a311d/soc/amlogic/codecs/ |
D | es7243.c | 72 static int es7243_i2c_write(struct i2c_client *client, u8 reg, u8 value) in es7243_i2c_write() argument 79 if (i2c_master_send(client, data, 2L) == 2L) { in es7243_i2c_write() 86 static int es7243_i2c_read(struct i2c_client *client, u8 reg) in es7243_i2c_read() argument 93 xfer[0].addr = client->addr; in es7243_i2c_read() 98 xfer[1].addr = client->addr; in es7243_i2c_read() 103 ret = i2c_transfer(client->adapter, xfer, 2L); in es7243_i2c_read() 105 dev_err(&client->dev, "i2c_transfer() returned %d\n", ret); in es7243_i2c_read() 112 int es7243_init_mode(struct i2c_client *client) in es7243_init_mode() argument 118 err = es7243_i2c_write(client, init_mode[i].reg_index, init_mode[i].reg_value); in es7243_init_mode() 120 dev_err(&client->dev, "i2c write 0x%0x failed\n", init_mode[i].reg_index); in es7243_init_mode() [all …]
|
/device/soc/rockchip/common/sdk_linux/include/linux/ |
D | i2c.h | 39 typedef int (*i2c_slave_cb_t)(struct i2c_client *client, enum i2c_slave_event event, u8 *val); 60 int i2c_transfer_buffer_flags(const struct i2c_client *client, char *buf, int count, u16 flags); 70 static inline int i2c_master_recv(const struct i2c_client *client, char *buf, int count) in i2c_master_recv() argument 72 return i2c_transfer_buffer_flags(client, buf, count, I2C_M_RD); in i2c_master_recv() 84 static inline int i2c_master_recv_dmasafe(const struct i2c_client *client, char *buf, int count) in i2c_master_recv_dmasafe() argument 86 return i2c_transfer_buffer_flags(client, buf, count, I2C_M_RD | I2C_M_DMA_SAFE); in i2c_master_recv_dmasafe() 97 static inline int i2c_master_send(const struct i2c_client *client, const char *buf, int count) in i2c_master_send() argument 99 return i2c_transfer_buffer_flags(client, (char *)buf, count, 0); in i2c_master_send() 111 static inline int i2c_master_send_dmasafe(const struct i2c_client *client, const char *buf, int cou… in i2c_master_send_dmasafe() argument 113 return i2c_transfer_buffer_flags(client, (char *)buf, count, I2C_M_DMA_SAFE); in i2c_master_send_dmasafe() [all …]
|
/device/board/isoftstone/yangfan/common/mqtt/mqttclient/src/arduino/ |
D | IPStack.h | 30 IPStack(Client& client) : client(&client) in IPStack() argument 37 return client->connect(hostname, port); in connect() 42 return client->connect(hostname, port); in connect() 52 while (client->available() < len && total < timeout) in read() 57 if (client->available() >= len) in read() 58 rc = client->readBytes((char*)buffer, len); in read() 64 client->setTimeout(timeout); in write() 65 return client->write((uint8_t*)buffer, len); in write() 70 client->stop(); in disconnect() 76 Client* client;
|
/device/board/isoftstone/yangfan/kernel/src/driv/input/touchscreen/gt9xx/ |
D | gt9xx_update.c | 116 extern void gtp_reset_guitar(struct i2c_client *client, s32 ms); 117 extern s32 gtp_send_cfg(struct i2c_client *client); 123 static u8 gup_burn_fw_gwake_section(struct i2c_client *client, u8 *fw_section, u16 start_addr, u32 … 149 s32 gup_i2c_read(struct i2c_client *client, u8 *buf, s32 len) in gup_i2c_read() argument 158 msgs[0].addr = client->addr; in gup_i2c_read() 166 msgs[1].addr = client->addr; in gup_i2c_read() 175 ret = i2c_transfer(client->adapter, msgs, 2); in gup_i2c_read() 195 s32 gup_i2c_write(struct i2c_client *client,u8 *buf,s32 len) in gup_i2c_write() argument 204 msg.addr = client->addr; in gup_i2c_write() 213 ret = i2c_transfer(client->adapter, &msg, 1); in gup_i2c_write() [all …]
|
D | gt9xx.c | 86 static s8 gtp_i2c_test(struct i2c_client *client); 87 void gtp_reset_guitar(struct i2c_client *client, s32 ms); 88 s32 gtp_send_cfg(struct i2c_client *client); 114 static s32 gtp_init_ext_watchdog(struct i2c_client *client); 120 extern s32 i2c_read_bytes(struct i2c_client *client, u16 addr, u8 *buf, s32 len); 121 extern s32 i2c_write_bytes(struct i2c_client *client, u16 addr, u8 *buf, s32 len); 126 void gtp_recovery_reset(struct i2c_client *client); 127 static s32 gtp_esd_recovery(struct i2c_client *client); 128 s32 gtp_fw_startup(struct i2c_client *client); 160 s32 gtp_i2c_read(struct i2c_client *client, u8 *buf, s32 len) in gtp_i2c_read() argument [all …]
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/input/ctp/wacom_pen/ |
D | wacom_i2c.c | 54 struct i2c_client *client; member 95 static int wacom_query_device(struct i2c_client *client, in wacom_query_device() argument 105 .addr = client->addr, in wacom_query_device() 111 .addr = client->addr, in wacom_query_device() 117 .addr = client->addr, in wacom_query_device() 124 ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); in wacom_query_device() 137 dev_dbg(&client->dev, in wacom_query_device() 196 error = i2c_master_recv(wac_i2c->client, in wacom_i2c_irq() 260 struct i2c_client *client = wac_i2c->client; in wacom_i2c_open() local 262 enable_irq(client->irq); in wacom_i2c_open() [all …]
|
/device/soc/esp/esp32/components/bt/host/bluedroid/stack/include/stack/ |
D | l2cap_client.h | 31 void (*connected)(l2cap_client_t *client, void *context); 32 void (*disconnected)(l2cap_client_t *client, void *context); 33 void (*read_ready)(l2cap_client_t *client, buffer_t *packet, void *context); 34 void (*write_ready)(l2cap_client_t *client, void *context); 51 void l2cap_client_free(l2cap_client_t *client); 61 bool l2cap_client_connect(l2cap_client_t *client, const bt_bdaddr_t *remote_bdaddr, uint16_t psm); 65 void l2cap_client_disconnect(l2cap_client_t *client); 69 bool l2cap_client_is_connected(const l2cap_client_t *client); 76 bool l2cap_client_write(l2cap_client_t *client, buffer_t *packet);
|
/device/board/isoftstone/yangfan/common/mqtt/mqttclient/test/ |
D | test1.cpp | 300 void test1_sendAndReceive(MQTT::Client<IPStack, Countdown, 1000>& client, int qos, const char* test… in test1_sendAndReceive() argument 320 rc = client.publish(test_topic, pubmsg); in test1_sendAndReceive() 327 client.yield(100); in test1_sendAndReceive() 339 client.yield(1000); in test1_sendAndReceive() 356 MQTT::Client<IPStack, Countdown, 1000> client = MQTT::Client<IPStack, Countdown, 1000>(ipstack); in test1() local 379 rc = client.connect(data); in test1() 384 rc = client.subscribe(test_topic, subsqos, messageArrived); in test1() 387 test1_sendAndReceive(client, 0, test_topic); in test1() 388 test1_sendAndReceive(client, 1, test_topic); in test1() 389 test1_sendAndReceive(client, 2, test_topic); in test1() [all …]
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/vin/vin-cci/ |
D | cci_helper.c | 274 struct i2c_client *client = v4l2_get_subdevdata(sd); in cci_lock() 276 i2c_mark_adapter_suspended(client->adapter); in cci_lock() 286 struct i2c_client *client = v4l2_get_subdevdata(sd); in cci_unlock() 288 i2c_mark_adapter_resumed(client->adapter); in cci_unlock() 337 int cci_dev_probe_helper(struct v4l2_subdev *sd, struct i2c_client *client, in cci_dev_probe_helper() argument 341 if (client) { in cci_dev_probe_helper() 342 v4l2_i2c_subdev_init(sd, client, sensor_ops); in cci_dev_probe_helper() 361 struct v4l2_subdev *cci_dev_remove_helper(struct i2c_client *client, in cci_dev_remove_helper() argument 366 if (client) in cci_dev_remove_helper() 367 sd = i2c_get_clientdata(client); in cci_dev_remove_helper() [all …]
|
/device/soc/bestechnic/bes2600/liteos_m/components/drivers/touch/ |
D | touch_fts.c | 48 static int fts_i2c_read(struct i2c_client *client, uint8_t *writebuf, int writelen, uint8_t *readbu… in fts_i2c_read() argument 53 if (client == NULL) { in fts_i2c_read() 62 .addr = client->addr, in fts_i2c_read() 68 .addr = client->addr, in fts_i2c_read() 75 ret = I2cTransfer(client->handle, msgs, 2); in fts_i2c_read() 84 .addr = client->addr, in fts_i2c_read() 91 ret = I2cTransfer(client->handle, msgs, 1); in fts_i2c_read() 103 static int fts_i2c_write(struct i2c_client *client, uint8_t *writebuf, int writelen) in fts_i2c_write() argument 108 if (client == NULL) { in fts_i2c_write() 116 .addr = client->addr, in fts_i2c_write() [all …]
|
/device/board/bearpi/bearpi_hm_nano/third_party/paho_mqtt/MQTTClient-C/src/ |
D | MQTTClient.h | 127 DLLExport void MQTTClientInit(MQTTClient* client, Network* network, unsigned int command_timeout_ms, 135 DLLExport int MQTTConnectWithResults(MQTTClient* client, MQTTPacket_connectData* options, 143 DLLExport int MQTTConnect(MQTTClient* client, MQTTPacket_connectData* options); 151 DLLExport int MQTTPublish(MQTTClient* client, const char*, MQTTMessage*); 167 DLLExport int MQTTSubscribe(MQTTClient* client, const char* topicFilter, enum QoS, messageHandler); 176 DLLExport int MQTTSubscribeWithResults(MQTTClient* client, const char* topicFilter, enum QoS, messa… 184 DLLExport int MQTTUnsubscribe(MQTTClient* client, const char* topicFilter); 190 DLLExport int MQTTDisconnect(MQTTClient* client); 197 DLLExport int MQTTYield(MQTTClient* client, int time); 203 DLLExport int MQTTIsConnected(MQTTClient* client); [all …]
|
/device/board/isoftstone/yangfan/common/mqtt/mqttclient/samples/linux/ |
D | hello.cpp | 31 MQTT::Client<IPStack, Countdown> client = MQTT::Client<IPStack, Countdown>(ipstack); in main() local 44 rc = client.connect(data); in main() 49 rc = client.subscribe(topic, MQTT::QOS2, messageArrived); in main() 63 rc = client.publish(topic, message); in main() 67 client.yield(100); in main() 74 rc = client.publish(topic, message); in main() 78 client.yield(100); in main() 84 rc = client.publish(topic, message); in main() 88 client.yield(100); in main() 90 rc = client.unsubscribe(topic); in main() [all …]
|
/device/board/isoftstone/yangfan/common/mqtt/mqttclient_c/src/ |
D | MQTTClient.h | 140 DLLExport void MQTTClientInit(MQTTClient* client, Network* network, unsigned int command_timeout_ms, 148 DLLExport int MQTTConnectWithResults(MQTTClient* client, MQTTPacket_connectData* options, 156 DLLExport int MQTTConnect(MQTTClient* client, MQTTPacket_connectData* options); 164 DLLExport int MQTTPublish(MQTTClient* client, const char*, MQTTMessage*); 181 DLLExport int MQTTSubscribe(MQTTClient* client, const char* topicFilter, enum QoS, messageHandler); 190 DLLExport int MQTTSubscribeWithResults(MQTTClient* client, const char* topicFilter, enum QoS, messa… 197 DLLExport int MQTTUnsubscribe(MQTTClient* client, const char* topicFilter); 204 DLLExport int MQTTDisconnect(MQTTClient* client); 211 DLLExport int MQTTYield(MQTTClient* client, int time); 217 DLLExport int MQTTIsConnected(MQTTClient* client); [all …]
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/input/ctp/gslx680new/ |
D | gslX680.c | 172 struct i2c_client *client; member 257 int ctp_i2c_write_bytes(struct i2c_client *client, uint8_t *data, uint16_t len) in ctp_i2c_write_bytes() argument 263 msg.addr = client->addr; in ctp_i2c_write_bytes() 267 ret = i2c_transfer(client->adapter, &msg, 1); in ctp_i2c_write_bytes() 272 bool ctp_i2c_test(struct i2c_client *client) in ctp_i2c_test() argument 278 ret = ctp_i2c_write_bytes(client, test_data, 1); in ctp_i2c_test() 287 static int ctp_detect(struct i2c_client *client, struct i2c_board_info *info) in ctp_detect() argument 289 struct i2c_adapter *adapter = client->adapter; in ctp_detect() 296 pr_info("%s: addr= %x\n", __func__, client->addr); in ctp_detect() 297 if (ctp_i2c_test(client) != 0) { in ctp_detect() [all …]
|
/device/board/isoftstone/yangfan/kernel/src/incl/linux/current/ |
D | sensor-dev.h | 162 int (*active)(struct i2c_client *client, int enable, int rate); 163 int (*init)(struct i2c_client *client); 164 int (*report)(struct i2c_client *client); 165 int (*suspend)(struct i2c_client *client); 166 int (*resume)(struct i2c_client *client); 173 struct i2c_client *client; member 248 extern int sensor_register_device(struct i2c_client *client, 254 extern int sensor_unregister_device(struct i2c_client *client, 258 extern void sensor_shutdown(struct i2c_client *client); 342 extern int sensor_rx_data(struct i2c_client *client, char *rxData, int length); [all …]
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/vin/modules/sensor/nvp6324/ |
D | jaguar1_i2c.c | 24 struct i2c_client *client = jaguar1_client; in __I2CWriteByte8() local 26 client->addr = chip_addr>>1; in __I2CWriteByte8() 31 ret = i2c_master_send(client, buf, 2); in __I2CWriteByte8() 37 struct i2c_client *client = jaguar1_client; in __I2CReadByte8() local 39 client->addr = chip_addr>>1; in __I2CReadByte8() 41 return i2c_smbus_read_byte_data(client, reg_addr); in __I2CReadByte8()
|
/device/soc/rockchip/rk3568/hardware/omx_il/osal/ |
D | Rockchip_OSAL_ion.h | 119 void ion_client_destroy(struct ion_client *client); 133 struct ion_handle *ion_alloc(struct ion_client *client, size_t len, 143 void ion_free(struct ion_client *client, struct ion_handle *handle); 161 int ion_phys(struct ion_client *client, struct ion_handle *handle, 172 void *ion_map_kernel(struct ion_client *client, struct ion_handle *handle); 179 void ion_unmap_kernel(struct ion_client *client, struct ion_handle *handle); 188 struct scatterlist *ion_map_dma(struct ion_client *client, 196 void ion_unmap_dma(struct ion_client *client, struct ion_handle *handle); 212 struct ion_buffer *ion_share(struct ion_client *client, 224 struct ion_handle *ion_import(struct ion_client *client, [all …]
|
/device/qemu/riscv32_virt/liteos_m/board/hardware/adapter/ |
D | hdf_syscall_adapter.c | 35 if (adapter->client.device == NULL || adapter->client.device->service == NULL || in HdfSyscallAdapterDispatch() 36 adapter->client.device->service->Dispatch == NULL) { in HdfSyscallAdapterDispatch() 40 return adapter->client.device->service->Dispatch(&adapter->client, cmdId, data, reply); in HdfSyscallAdapterDispatch() 70 adapter->client.device = deviceObject; in HdfSyscallAdapterInstance() 73 if (deviceObject->service->Open(&adapter->client) != HDF_SUCCESS) { in HdfSyscallAdapterInstance() 123 if (adapter->client.device != NULL && adapter->client.device->service != NULL && in HdfIoServiceAdapterRecycle() 124 adapter->client.device->service->Release != NULL) { in HdfIoServiceAdapterRecycle() 125 adapter->client.device->service->Release(&adapter->client); in HdfIoServiceAdapterRecycle()
|
/device/board/isoftstone/yangfan/common/mqtt/mqttclient_c/samples/freertos/ |
D | MQTTEcho.c | 28 MQTTClient client; in prvMQTTEchoTask() local 37 MQTTClientInit(&client, &network, 30000, sendbuf, sizeof(sendbuf), readbuf, sizeof(readbuf)); in prvMQTTEchoTask() 44 if ((rc = MQTTStartTask(&client)) != pdPASS) in prvMQTTEchoTask() 51 if ((rc = MQTTConnect(&client, &connectData)) != 0) in prvMQTTEchoTask() 56 if ((rc = MQTTSubscribe(&client, "FreeRTOS/sample/#", 2, messageArrived)) != 0) in prvMQTTEchoTask() 70 if ((rc = MQTTPublish(&client, "FreeRTOS/sample/a", &message)) != 0) in prvMQTTEchoTask() 73 if ((rc = MQTTYield(&client, 1000)) != 0) in prvMQTTEchoTask()
|