Home
last modified time | relevance | path

Searched refs:client (Results 1 - 25 of 44) sorted by relevance

12

/device/soc/rockchip/common/sdk_linux/drivers/i2c/
H A Di2c-core-base.c81 const 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 in i2c_smbus_host_notify_to_irq()
467 struct i2c_client *client = i2c_verify_client(dev); i2c_device_probe() local
567 struct i2c_client *client = i2c_verify_client(dev); i2c_device_remove() local
596 struct i2c_client *client = i2c_verify_client(dev); i2c_device_shutdown() local
623 struct i2c_client *client = to_i2c_client(dev); modalias_show() local
677 i2c_encode_flags_to_addr(struct i2c_client *client) i2c_encode_flags_to_addr() argument
735 struct i2c_client *client = i2c_verify_client(dev); i2c_check_addr_busy_ext() local
819 i2c_dev_set_name(struct i2c_adapter *adap, struct i2c_client *client, struct i2c_board_info const *info, int status) i2c_dev_set_name() argument
888 struct i2c_client *client; i2c_new_client_device() local
964 i2c_unregister_device(struct i2c_client *client) i2c_unregister_device() argument
987 dummy_probe(struct i2c_client *client, const struct i2c_device_id *id) dummy_probe() argument
992 dummy_remove(struct i2c_client *client) dummy_remove() argument
1033 struct i2c_client *client; global() member
1056 struct i2c_client *client; devm_i2c_new_dummy_device() local
1097 i2c_new_ancillary_device(struct i2c_client *client, const char *name, u16 default_addr) i2c_new_ancillary_device() argument
1153 struct i2c_client *client; new_device_store() local
1218 struct i2c_client *client, *next; delete_device_store() local
1591 struct i2c_client *client, *_n; i2c_do_del_adapter() local
1607 struct i2c_client *client = i2c_verify_client(dev); unregister_client_ext() local
1616 struct i2c_client *client = i2c_verify_client(dev); unregister_dummy_ext() local
1638 struct i2c_client *client, *next; i2c_del_adapter() local
1850 struct i2c_client *client = i2c_verify_client(dev); i2c_check_addr_ext() local
1878 struct i2c_client *client = i2c_verify_client(dev); i2c_cmd() local
2191 i2c_transfer_buffer_flags(const struct i2c_client *client, char *buf, int count, u16 flags) i2c_transfer_buffer_flags() argument
2229 i2c_get_device_id(const struct i2c_client *client, struct i2c_device_identity *id) i2c_get_device_id() argument
2341 struct i2c_client *client; i2c_detect_address() local
[all...]
/device/soc/rockchip/rk3588/kernel/drivers/media/i2c/
H A Ddw9763.c79 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 in dw9763_get_pos()
175 struct i2c_client *client = v4l2_get_subdevdata(&dev_vcm->sd); dw9763_set_pos() local
213 struct i2c_client *client = v4l2_get_subdevdata(&dev_vcm->sd); dw9763_set_ctrl() local
265 struct i2c_client *client = v4l2_get_subdevdata(&dev->sd); dw9763t_init() local
349 struct i2c_client *client = v4l2_get_subdevdata(sd); dw9763_ioctl() local
382 struct i2c_client *client = v4l2_get_subdevdata(sd); dw9763_compat_ioctl32() local
449 dw9763_probe(struct i2c_client *client, const struct i2c_device_id *id) dw9763_probe() argument
626 dw9763_remove(struct i2c_client *client) dw9763_remove() argument
[all...]
H A Dov13855.c115 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 in ov13855_read_reg()
1446 struct i2c_client *client = ov13855->client; ov13855_s_stream() local
1483 struct i2c_client *client = ov13855->client; ov13855_s_power() local
1604 struct i2c_client *client = to_i2c_client(dev); ov13855_runtime_resume() local
1613 struct i2c_client *client = to_i2c_client(dev); ov13855_runtime_suspend() local
1740 struct i2c_client *client = ov13855->client; ov13855_set_ctrl() local
1878 ov13855_check_sensor_id(struct ov13855 *ov13855, struct i2c_client *client) ov13855_check_sensor_id() argument
1916 ov13855_probe(struct i2c_client *client, const struct i2c_device_id *id) ov13855_probe() argument
2053 ov13855_remove(struct i2c_client *client) ov13855_remove() argument
[all...]
/device/soc/rockchip/common/sdk_linux/include/linux/
H A Di2c.h39 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);
64 * @client: Handle to slave device
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()
78 * @client: Handle to slave device
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()
91 * @client: Handle to slave device
97 static inline int i2c_master_send(const struct i2c_client *client, cons argument
111 i2c_master_send_dmasafe(const struct i2c_client *client, const char *buf, int count) i2c_master_send_dmasafe() argument
144 i2c_smbus_read_word_swapped(const struct i2c_client *client, u8 command) i2c_smbus_read_word_swapped() argument
151 i2c_smbus_write_word_swapped(const struct i2c_client *client, u8 command, u16 value) i2c_smbus_write_word_swapped() argument
327 i2c_get_clientdata(const struct i2c_client *client) i2c_get_clientdata() argument
332 i2c_set_clientdata(struct i2c_client *client, void *data) i2c_set_clientdata() argument
352 i2c_slave_event(struct i2c_client *client, enum i2c_slave_event event, u8 *val) i2c_slave_event() argument
812 i2c_client_has_driver(struct i2c_client *client) i2c_client_has_driver() argument
922 i2c_of_match_device(const struct of_device_id *matches, struct i2c_client *client) i2c_of_match_device() argument
[all...]
/device/soc/rockchip/rk3568/hardware/omx_il/osal/
H A DRockchip_OSAL_ion.h104 * ion_client_create() - allocate a client and returns it
106 * @heap_mask: mask of heaps this client can allocate from
113 * ion_client_destroy() - free's a client and all it's handles
114 * @client: the client
116 * Free the provided client and all it's resources including
119 void ion_client_destroy(struct ion_client *client);
123 * @client: the client
133 struct ion_handle *ion_alloc(struct ion_client *client, size_
[all...]
/device/qemu/riscv32_virt/liteos_m/board/hardware/adapter/
H A Dhdf_syscall_adapter.c35 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 in HdfIoServiceAdapterRecycle()
[all...]
H A Dhdf_syscall_adapter.h29 struct HdfDeviceIoClient client; member
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/nouveau/
H A Dnouveau_drv.h43 #include <nvif/client.h>
87 NVDRM_CHAN = 0xcccc0000, /* |= client chid */
135 struct nouveau_cli client; member
230 struct nvif_mmu *mmu = &drm->client.mmu; in nouveau_drm_use_coherent_gpu_mapping()
250 #define NV_FATAL(drm, f, a...) NV_PRINTK(crit, &(drm)->client, f, ##a)
251 #define NV_ERROR(drm, f, a...) NV_PRINTK(err, &(drm)->client, f, ##a)
252 #define NV_WARN(drm, f, a...) NV_PRINTK(warn, &(drm)->client, f, ##a)
253 #define NV_INFO(drm, f, a...) NV_PRINTK(info, &(drm)->client, f, ##a)
258 NV_PRINTK(info, &(drm)->client, f, ##a); \
263 NV_PRINTK(info, &(drm)->client,
[all...]
H A Dnouveau_drm.c275 struct nvif_device *device = &drm->client.device; in nouveau_accel_ce_init()
307 struct nvif_device *device = &drm->client.device; in nouveau_accel_gr_init()
331 if (!drm->channel->nvsw.client && device->info.family < NV_DEVICE_INFO_V0_TESLA) { in nouveau_accel_gr_init()
385 struct nvif_device *device = &drm->client.device; in nouveau_accel_init()
447 if (drm->client.device.info.family >= NV_DEVICE_INFO_V0_VOLTA) { in nouveau_accel_init()
512 ret = nouveau_cli_init(drm, "DRM", &drm->client); in nouveau_drm_device_init()
519 nvxx_client(&drm->client.base)->debug = nvkm_dbgopt(nouveau_debug, "DRM"); in nouveau_drm_device_init()
528 if (drm->client.device.info.chipset == 0xc1) { in nouveau_drm_device_init()
529 nvif_mask(&drm->client.device.object, 0x00088080, 0x00000800, 0x00000000); in nouveau_drm_device_init()
585 nouveau_cli_fini(&drm->client); in nouveau_drm_device_init()
762 struct nvkm_client *client; nouveau_drm_device_remove() local
[all...]
/device/soc/rockchip/common/sdk_linux/drivers/regulator/
H A Dfan53555.c697 static int fan53555_regulator_probe(struct i2c_client *client, const struct i2c_device_id *id) in fan53555_regulator_probe() argument
699 struct device_node *np = client->dev.of_node; in fan53555_regulator_probe()
706 di = devm_kzalloc(&client->dev, sizeof(struct fan53555_device_info), GFP_KERNEL); in fan53555_regulator_probe()
713 pdata = dev_get_platdata(&client->dev); in fan53555_regulator_probe()
715 pdata = fan53555_parse_dt(&client->dev, np, &di->desc); in fan53555_regulator_probe()
719 dev_err(&client->dev, "Platform data not found!\n"); in fan53555_regulator_probe()
727 if (client->dev.of_node) { in fan53555_regulator_probe()
728 di->vendor = (unsigned long)of_device_get_match_data(&client->dev); in fan53555_regulator_probe()
733 dev_err(&client->dev, "Invalid slew_rate\n"); in fan53555_regulator_probe()
743 di->regmap = devm_regmap_init_i2c(client, in fan53555_regulator_probe()
786 fan53555_regulator_shutdown(struct i2c_client *client) fan53555_regulator_shutdown() argument
[all...]
/device/soc/rockchip/common/sdk_linux/drivers/mfd/
H A Drk808.c1150 static int rk808_probe(struct i2c_client *client, const struct i2c_device_id *id) in rk808_probe() argument
1152 struct device_node *np = client->dev.of_node; in rk808_probe()
1169 rk808 = devm_kzalloc(&client->dev, sizeof(*rk808), GFP_KERNEL); in rk808_probe()
1183 msb = i2c_smbus_read_byte_data(client, pmic_id_msb); in rk808_probe()
1185 dev_err(&client->dev, "failed to read the chip id at 0x%x\n", RK808_ID_MSB); in rk808_probe()
1189 lsb = i2c_smbus_read_byte_data(client, pmic_id_lsb); in rk808_probe()
1191 dev_err(&client->dev, "failed to read the chip id at 0x%x\n", RK808_ID_LSB); in rk808_probe()
1196 dev_info(&client->dev, "chip id: 0x%x\n", (unsigned int)rk808->variant); in rk808_probe()
1270 dev_err(&client->dev, "Unsupported RK8XX ID %lu\n", rk808->variant); in rk808_probe()
1274 rk808->i2c = client; in rk808_probe()
1382 rk808_remove(struct i2c_client *client) rk808_remove() argument
[all...]
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/paho.mqtt.c/include/mqtt/
H A DMQTTProtocolOut.h35 void MQTTProtocol_reconnect(const char* ip_address, Clients* client);
44 int MQTTProtocol_subscribe(Clients* client, List* topics, List* qoss, int msgID,
47 int MQTTProtocol_unsubscribe(Clients* client, List* topics, int msgID, MQTTProperties* props);
H A DMQTTPacketOut.h25 int MQTTPacket_send_connect(Clients* client, int MQTTVersion,
33 int msgid, int dup, Clients* client);
36 int MQTTPacket_send_unsubscribe(List* topics, MQTTProperties* props, int msgid, int dup, Clients* client);
H A DMQTTProtocolClient.h38 int MQTTProtocol_assignMsgId(Clients* client);
40 void Protocol_processPublication(Publish* publish, Clients* client);
51 void MQTTProtocol_freeClient(Clients* client);
H A DMQTTPersistence.h15 * Ian Craggs - async client updates
44 /** Stem of the key for an async client command */
46 /** Stem of the key for an MQTT V5 async client command */
48 /** Stem of the key for an async client message queue */
87 int MQTTPersistence_unpersistQueueEntry(Clients* client, MQTTPersistence_qEntry* qe);
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/csf/ipa_control/
H A Dmali_kbase_csf_ipa_control.h49 * by block and index. In addition to that, the client also specifies how
53 * The client may specify a scaling factor to multiply counter values before
82 * kbase_ipa_control_register - Register a client to the IPA Control component
85 * @perf_counters: Array of performance counters the client intends to read.
86 * For each counter the client specifies block, index,
91 * @client: Handle to an opaque structure set by IPA Control if
93 * a client's session and shall be provided in its future
96 * A client needs to subscribe to the IPA Control component by declaring which
100 * a session for the client that made the request. A unique handle is returned
101 * if registration is successful in order to identify the client'
[all...]
H A Dmali_kbase_csf_ipa_control.c516 size_t num_counters, void **client) in kbase_ipa_control_register()
527 WARN_ON(client == NULL) || in kbase_ipa_control_register()
658 /* Reports to this client for GPU time spent in protected mode in kbase_ipa_control_register()
690 *client = session; in kbase_ipa_control_register()
700 int kbase_ipa_control_unregister(struct kbase_device *kbdev, const void *client) in kbase_ipa_control_unregister() argument
709 if (WARN_ON(kbdev == NULL) || WARN_ON(client == NULL)) { in kbase_ipa_control_unregister()
717 session = (struct kbase_ipa_control_session *)client; in kbase_ipa_control_unregister()
782 int kbase_ipa_control_query(struct kbase_device *kbdev, const void *client, in kbase_ipa_control_query() argument
791 if (WARN_ON(kbdev == NULL) || WARN_ON(client == NULL) || in kbase_ipa_control_query()
798 session = (struct kbase_ipa_control_session *)client; in kbase_ipa_control_query()
513 kbase_ipa_control_register( struct kbase_device *kbdev, const struct kbase_ipa_control_perf_counter *perf_counters, size_t num_counters, void **client) kbase_ipa_control_register() argument
[all...]
/device/soc/rockchip/rk3588/kernel/drivers/power/supply/
H A Dcw2017_battery.c564 static int cw_bat_probe(struct i2c_client *client) in cw_bat_probe() argument
570 cw_bat = devm_kzalloc(&client->dev, sizeof(*cw_bat), GFP_KERNEL); in cw_bat_probe()
574 i2c_set_clientdata(client, cw_bat); in cw_bat_probe()
575 cw_bat->dev = &client->dev; in cw_bat_probe()
584 cw_bat->regmap = devm_regmap_init_i2c(client, &cw2017_regmap_config); in cw_bat_probe()
600 cw_bat->rk_bat = devm_power_supply_register(&client->dev, in cw_bat_probe()
624 struct i2c_client *client = to_i2c_client(dev); in cw_bat_suspend() local
625 struct cw_battery *cw_bat = i2c_get_clientdata(client); in cw_bat_suspend()
633 struct i2c_client *client = to_i2c_client(dev); in cw_bat_resume() local
634 struct cw_battery *cw_bat = i2c_get_clientdata(client); in cw_bat_resume()
643 cw_bat_remove(struct i2c_client *client) cw_bat_remove() argument
[all...]
H A Dbq25700_charger.c155 struct i2c_client *client; member
1931 static int bq25700_probe(struct i2c_client *client, in bq25700_probe() argument
1934 struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent); in bq25700_probe()
1935 struct device *dev = &client->dev; in bq25700_probe()
1945 charger = devm_kzalloc(&client->dev, sizeof(*charger), GFP_KERNEL); in bq25700_probe()
1949 charger->client = client; in bq25700_probe()
1956 charger->regmap = devm_regmap_init_i2c(client, in bq25700_probe()
1959 dev_err(&client->dev, "Failed to initialize regmap\n"); in bq25700_probe()
1976 charger->regmap = devm_regmap_init_i2c(client, in bq25700_probe()
2055 bq25700_shutdown(struct i2c_client *client) bq25700_shutdown() argument
[all...]
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/
H A Ddrm_ioctl.c170 * Get client information.
179 * Searches for the client with the specified index and copies its information
184 struct drm_client *client = data; in drm_getclient() local
197 if (client->idx == 0) { in drm_getclient()
198 client->auth = file_priv->authenticated; in drm_getclient()
199 client->pid = task_pid_vnr(current); in drm_getclient()
200 client->uid = overflowuid; in drm_getclient()
201 client->magic = 0; in drm_getclient()
202 client->iocs = 0; in drm_getclient()
552 /* AUTH is only for authenticated or render client */ in drm_ioctl_permit()
[all...]
/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/drv/mmz/
H A Ddrv_media_mem.c215 table = get_pages_from_buffer(common->client, mmb->handle, &size); in flush_outer()
624 struct ion_client *client = common->client; in real_page_buffer_alloc_and_map() local
630 mmb->handle = ion_alloc(client, size, align, heap_id_mask, flags); in real_page_buffer_alloc_and_map()
644 ret = ion_map_iommu(client, mmb->handle, format); in real_page_buffer_alloc_and_map()
660 ret = ion_phys(client, mmb->handle, &phys, &len); in real_page_buffer_alloc_and_map()
671 mmb->client = client; in real_page_buffer_alloc_and_map()
674 ion_free(client, mmb->handle); in real_page_buffer_alloc_and_map()
831 table = get_pages_from_buffer(common->client, handl in __dma_clear_buffer()
[all...]
H A Ddrv_media_mem.h138 struct ion_client *client; member
188 struct ion_client *client; member
/device/soc/hisilicon/common/platform/wifi/hi3881v100/
H A DMakefile29 $(LITEOSTOPDIR)/../../drivers/peripheral/wlan/client/include \
/device/soc/rockchip/common/vendor/drivers/media/i2c/
H A Dgc2093.c1268 struct i2c_client *client = to_i2c_client(dev); in gc2093_runtime_resume() local
1269 struct v4l2_subdev *sd = i2c_get_clientdata(client); in gc2093_runtime_resume()
1278 struct i2c_client *client = to_i2c_client(dev); in gc2093_runtime_suspend() local
1279 struct v4l2_subdev *sd = i2c_get_clientdata(client); in gc2093_runtime_suspend()
1289 static int gc2093_probe(struct i2c_client *client, const struct i2c_device_id *id) in gc2093_probe() argument
1291 struct device *dev = &client->dev; in gc2093_probe()
1307 gc2093->regmap = devm_regmap_init_i2c(client, &gc2093_regmap_config); in gc2093_probe()
1352 v4l2_i2c_subdev_init(sd, client, &gc2093_subdev_ops); in gc2093_probe()
1418 static int gc2093_remove(struct i2c_client *client) in gc2093_remove() argument
1420 struct v4l2_subdev *sd = i2c_get_clientdata(client); in gc2093_remove()
[all...]
/device/soc/rockchip/rk3588/kernel/include/linux/power/
H A Dcw2015_battery.h91 struct i2c_client *client; member

Completed in 25 milliseconds

12