| /OK3568_Linux_fs/kernel/drivers/media/i2c/cx25840/ |
| H A D | cx25840-core.c | 74 static void cx23888_std_setup(struct i2c_client *client); 76 int cx25840_write(struct i2c_client *client, u16 addr, u8 value) in cx25840_write() argument 83 return i2c_master_send(client, buffer, 3); in cx25840_write() 86 int cx25840_write4(struct i2c_client *client, u16 addr, u32 value) in cx25840_write4() argument 96 return i2c_master_send(client, buffer, 6); in cx25840_write4() 99 u8 cx25840_read(struct i2c_client *client, u16 addr) in cx25840_read() argument 107 msgs[0].addr = client->addr; in cx25840_read() 113 msgs[1].addr = client->addr; in cx25840_read() 118 if (i2c_transfer(client->adapter, msgs, 2) < 2) in cx25840_read() 124 u32 cx25840_read4(struct i2c_client *client, u16 addr) in cx25840_read4() argument [all …]
|
| H A D | cx25840-audio.c | 31 static int cx25840_set_audclk_freq(struct i2c_client *client, u32 freq) in cx25840_set_audclk_freq() argument 33 struct cx25840_state *state = to_state(i2c_get_clientdata(client)); in cx25840_set_audclk_freq() 42 cx25840_write4(client, 0x108, 0x1006040f); in cx25840_set_audclk_freq() 57 cx25840_write4(client, 0x110, 0x01bb39ee); in cx25840_set_audclk_freq() 63 cx25840_write(client, 0x127, 0x50); in cx25840_set_audclk_freq() 70 cx25840_write4(client, 0x900, 0x0801f77f); in cx25840_set_audclk_freq() 71 cx25840_write4(client, 0x904, 0x0801f77f); in cx25840_set_audclk_freq() 72 cx25840_write4(client, 0x90c, 0x0801f77f); in cx25840_set_audclk_freq() 80 cx25840_write4(client, 0x108, 0x1009040f); in cx25840_set_audclk_freq() 94 cx25840_write4(client, 0x110, 0x00ec6bd6); in cx25840_set_audclk_freq() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/i2c/techpoint/ |
| H A D | techpoint_tp9950.c | 98 struct i2c_client *client = techpoint->client; in tp9950_initialize() local 99 struct device *dev = &client->dev; in tp9950_initialize() 112 int tp9950_get_channel_input_status(struct i2c_client *client, u8 ch) in tp9950_get_channel_input_status() argument 116 techpoint_write_reg(client, PAGE_REG, ch); in tp9950_get_channel_input_status() 117 techpoint_read_reg(client, INPUT_STATUS_REG, &val); in tp9950_get_channel_input_status() 118 dev_dbg(&client->dev, "input_status ch %d : %x\n", ch, val); in tp9950_get_channel_input_status() 123 int tp9950_get_all_input_status(struct i2c_client *client, u8 *detect_status) in tp9950_get_all_input_status() argument 128 techpoint_write_reg(client, PAGE_REG, i); in tp9950_get_all_input_status() 129 techpoint_read_reg(client, INPUT_STATUS_REG, &val); in tp9950_get_all_input_status() 130 detect_status[i] = tp9950_get_channel_input_status(client, i); in tp9950_get_all_input_status() [all …]
|
| H A D | techpoint_tp2855.c | 191 struct i2c_client *client = techpoint->client; in tp2855_initialize() local 192 struct device *dev = &client->dev; in tp2855_initialize() 207 struct i2c_client *client = techpoint->client; in tp2855_get_channel_input_status() local 211 techpoint_write_reg(client, PAGE_REG, ch); in tp2855_get_channel_input_status() 212 techpoint_read_reg(client, INPUT_STATUS_REG, &val); in tp2855_get_channel_input_status() 214 dev_dbg(&client->dev, "input_status ch %d : %x\n", ch, val); in tp2855_get_channel_input_status() 221 struct i2c_client *client = techpoint->client; in tp2855_get_all_input_status() local 225 techpoint_write_reg(client, PAGE_REG, i); in tp2855_get_all_input_status() 226 techpoint_read_reg(client, INPUT_STATUS_REG, &val); in tp2855_get_all_input_status() 233 int tp2855_set_channel_reso(struct i2c_client *client, int ch, in tp2855_set_channel_reso() argument [all …]
|
| /OK3568_Linux_fs/external/xserver/dix/ |
| H A D | dispatch.h | 39 int ProcAllocColor(ClientPtr /* client */ ); 40 int ProcAllocColorCells(ClientPtr /* client */ ); 41 int ProcAllocColorPlanes(ClientPtr /* client */ ); 42 int ProcAllocNamedColor(ClientPtr /* client */ ); 43 int ProcBell(ClientPtr /* client */ ); 44 int ProcChangeAccessControl(ClientPtr /* client */ ); 45 int ProcChangeCloseDownMode(ClientPtr /* client */ ); 46 int ProcChangeGC(ClientPtr /* client */ ); 47 int ProcChangeHosts(ClientPtr /* client */ ); 48 int ProcChangeKeyboardControl(ClientPtr /* client */ ); [all …]
|
| H A D | dispatch.c | 131 #include "client.h" 162 static int nextFreeClientID; /* always MIN free client ID */ 260 /* Client has requests queued or data on the network */ 262 mark_client_ready(ClientPtr client) in mark_client_ready() argument 264 if (xorg_list_is_empty(&client->ready)) in mark_client_ready() 265 xorg_list_append(&client->ready, &ready_clients); in mark_client_ready() 269 * Client has requests queued or data on the network, but awaits a 272 void mark_client_saved_ready(ClientPtr client) in mark_client_saved_ready() argument 274 if (xorg_list_is_empty(&client->ready)) in mark_client_saved_ready() 275 xorg_list_append(&client->ready, &saved_ready_clients); in mark_client_saved_ready() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/staging/android/trace/ |
| H A D | ion.h | 19 static inline void trace_ion_buffer_alloc(const char* client, void* buf, in trace_ion_buffer_alloc() argument 22 pr_ion_trace(2, "client=%s,buffer=%p:%d\n", client, buf, size); in trace_ion_buffer_alloc() 25 static inline void trace_ion_buffer_free(const char* client, void* buf, in trace_ion_buffer_free() argument 28 pr_ion_trace(2, "client=%s,buffer=%p:%d\n", client, buf, size); in trace_ion_buffer_free() 31 static inline void trace_ion_buffer_import(const char* client, void* buf, in trace_ion_buffer_import() argument 34 pr_ion_trace(2, "client=%s,buffer=%p:%d\n", client, buf, size); in trace_ion_buffer_import() 37 static inline void trace_ion_buffer_destroy(const char* client, void* buf, in trace_ion_buffer_destroy() argument 40 pr_ion_trace(2, "client=%s,buffer=%p:%d\n", client, buf, size); in trace_ion_buffer_destroy() 43 static inline void trace_ion_kernel_unmap(const char* client, void* buf, in trace_ion_kernel_unmap() argument 46 pr_ion_trace(2, "client=%s,buffer=%p:%d\n", client, buf, size); in trace_ion_kernel_unmap() [all …]
|
| /OK3568_Linux_fs/external/xserver/glx/ |
| H A D | vnd_dispatch_stubs.c | 11 static int dispatch_Render(ClientPtr client) in dispatch_Render() argument 17 contextTag = GlxCheckSwap(client, stuff->contextTag); in dispatch_Render() 18 vendor = glxServer.getContextTag(client, contextTag); in dispatch_Render() 21 ret = glxServer.forwardRequest(vendor, client); in dispatch_Render() 24 client->errorValue = contextTag; in dispatch_Render() 28 static int dispatch_RenderLarge(ClientPtr client) in dispatch_RenderLarge() argument 34 contextTag = GlxCheckSwap(client, stuff->contextTag); in dispatch_RenderLarge() 35 vendor = glxServer.getContextTag(client, contextTag); in dispatch_RenderLarge() 38 ret = glxServer.forwardRequest(vendor, client); in dispatch_RenderLarge() 41 client->errorValue = contextTag; in dispatch_RenderLarge() [all …]
|
| /OK3568_Linux_fs/external/xserver/Xext/ |
| H A D | panoramiXh.h | 6 extern int PanoramiXCreateWindow(ClientPtr client); 7 extern int PanoramiXChangeWindowAttributes(ClientPtr client); 8 extern int PanoramiXDestroyWindow(ClientPtr client); 9 extern int PanoramiXDestroySubwindows(ClientPtr client); 10 extern int PanoramiXChangeSaveSet(ClientPtr client); 11 extern int PanoramiXReparentWindow(ClientPtr client); 12 extern int PanoramiXMapWindow(ClientPtr client); 13 extern int PanoramiXMapSubwindows(ClientPtr client); 14 extern int PanoramiXUnmapWindow(ClientPtr client); 15 extern int PanoramiXUnmapSubwindows(ClientPtr client); [all …]
|
| H A D | xselinux_ext.c | 64 ProcSELinuxQueryVersion(ClientPtr client) in ProcSELinuxQueryVersion() argument 68 .sequenceNumber = client->sequence, in ProcSELinuxQueryVersion() 73 if (client->swapped) { in ProcSELinuxQueryVersion() 79 WriteToClient(client, sizeof(rep), &rep); in ProcSELinuxQueryVersion() 84 SELinuxSendContextReply(ClientPtr client, security_id_t sid) in SELinuxSendContextReply() argument 98 .sequenceNumber = client->sequence, in SELinuxSendContextReply() 103 if (client->swapped) { in SELinuxSendContextReply() 109 WriteToClient(client, sizeof(SELinuxGetContextReply), &rep); in SELinuxSendContextReply() 110 WriteToClient(client, len, ctx); in SELinuxSendContextReply() 116 ProcSELinuxSetCreateContext(ClientPtr client, unsigned offset) in ProcSELinuxSetCreateContext() argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/firewire/ |
| H A D | core-cdev.c | 46 struct client { struct 71 static inline void client_get(struct client *client) in client_get() argument 73 kref_get(&client->kref); in client_get() 78 struct client *client = container_of(kref, struct client, kref); in client_release() local 80 fw_device_put(client->device); in client_release() 81 kfree(client); in client_release() 84 static void client_put(struct client *client) in client_put() argument 86 kref_put(&client->kref, client_release); in client_put() 90 typedef void (*client_resource_release_fn_t)(struct client *, 101 struct client *client; member [all …]
|
| /OK3568_Linux_fs/kernel/sound/core/seq/ |
| H A D | seq_clientmgr.c | 3 * ALSA sequencer Client Manager 28 /* Client Manager 35 * There are four ranges of client numbers (last two shared): 37 * 16..127: statically allocated client numbers for cards 0..27 38 * 128..191: dynamically allocated client numbers for cards 28..31 39 * 128..191: dynamically allocated client numbers for applications 46 /* dynamically allocated client numbers (both kernel drivers and user space) */ 57 * client table 66 static int bounce_error_event(struct snd_seq_client *client, 69 static int snd_seq_deliver_single_event(struct snd_seq_client *client, [all …]
|
| /OK3568_Linux_fs/external/xserver/xfixes/ |
| H A D | xfixesint.h | 76 ProcXFixesChangeSaveSet(ClientPtr client); 79 SProcXFixesChangeSaveSet(ClientPtr client); 83 ProcXFixesSelectSelectionInput(ClientPtr client); 86 SProcXFixesSelectSelectionInput(ClientPtr client); 100 ProcXFixesSelectCursorInput(ClientPtr client); 103 SProcXFixesSelectCursorInput(ClientPtr client); 111 ProcXFixesGetCursorImage(ClientPtr client); 114 SProcXFixesGetCursorImage(ClientPtr client); 119 ProcXFixesSetCursorName(ClientPtr client); 122 SProcXFixesSetCursorName(ClientPtr client); [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/ |
| H A D | drm_client.c | 34 static int drm_client_open(struct drm_client_dev *client) in drm_client_open() argument 36 struct drm_device *dev = client->dev; in drm_client_open() 47 client->file = file; in drm_client_open() 52 static void drm_client_close(struct drm_client_dev *client) in drm_client_close() argument 54 struct drm_device *dev = client->dev; in drm_client_close() 57 list_del(&client->file->lhead); in drm_client_close() 60 drm_file_free(client->file); in drm_client_close() 64 * drm_client_init - Initialise a DRM client 66 * @client: DRM client 67 * @name: Client name [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/iavf/ |
| H A D | iavf_client.c | 18 struct iavf_client *client, 22 struct iavf_client *client, 31 * iavf_client_get_params - retrieve relevant client parameters 33 * @params: client param struct 51 * iavf_notify_client_message - call the client message receive callback 52 * @vsi: the VSI associated with this client 56 * If there is a client to this VSI, call the client 66 if (!cinst || !cinst->client || !cinst->client->ops || in iavf_notify_client_message() 67 !cinst->client->ops->virtchnl_receive) { in iavf_notify_client_message() 69 "Cannot locate client instance virtchnl_receive function\n"); in iavf_notify_client_message() [all …]
|
| /OK3568_Linux_fs/external/xserver/os/ |
| H A D | client.c | 37 * used for client identification, when a client connects to the 38 * server. The information is freed when the client disconnects. The 58 #include "client.h" 77 * Try to determine a PID for a client from its connection 78 * information. This should be called only once when new client has 81 * @param[in] client Connection linked to some process. 83 * @return PID of the client. Error (-1) if PID can't be determined 84 * for the client. 89 DetermineClientPid(struct _Client * client) in DetermineClientPid() argument 94 if (client == NullClient) in DetermineClientPid() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/i2c/ |
| H A D | nvp6188.c | 142 struct i2c_client *client; member 185 struct i2c_client *client = to_i2c_client(dev); in show_hotplug_status() local 186 struct v4l2_subdev *sd = i2c_get_clientdata(client); in show_hotplug_status() 196 struct i2c_client *client = to_i2c_client(dev); in nvp6188_debug_func() local 197 struct v4l2_subdev *sd = i2c_get_clientdata(client); in nvp6188_debug_func() 860 static int nvp6188_write_reg(struct i2c_client *client, u8 reg, u8 val) in nvp6188_write_reg() argument 869 msg.addr = client->addr; in nvp6188_write_reg() 870 msg.flags = client->flags; in nvp6188_write_reg() 874 ret = i2c_transfer(client->adapter, &msg, 1); in nvp6188_write_reg() 880 dev_err(&client->dev, in nvp6188_write_reg() [all …]
|
| H A D | mt9t112.c | 60 #define mt9t112_reg_write(ret, client, a, b) \ argument 61 ECHECKER(ret, __mt9t112_reg_write(client, a, b)) 62 #define mt9t112_mcu_write(ret, client, a, b) \ argument 63 ECHECKER(ret, __mt9t112_mcu_write(client, a, b)) 65 #define mt9t112_reg_mask_set(ret, client, a, b, c) \ argument 66 ECHECKER(ret, __mt9t112_reg_mask_set(client, a, b, c)) 67 #define mt9t112_mcu_mask_set(ret, client, a, b, c) \ argument 68 ECHECKER(ret, __mt9t112_mcu_mask_set(client, a, b, c)) 70 #define mt9t112_reg_read(ret, client, a) \ argument 71 ECHECKER(ret, __mt9t112_reg_read(client, a)) [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/i40e/ |
| H A D | i40e_client.c | 17 struct i40e_client *client, 21 struct i40e_client *client, 25 struct i40e_client *client, 29 struct i40e_client *client, 43 * @params: client param struct 75 * i40e_notify_client_of_vf_msg - call the client vf message callback 81 * If there is a client to this VSI, call the client 89 if (!cdev || !cdev->client) in i40e_notify_client_of_vf_msg() 91 if (!cdev->client->ops || !cdev->client->ops->virtchnl_receive) { in i40e_notify_client_of_vf_msg() 93 "Cannot locate client instance virtual channel receive routine\n"); in i40e_notify_client_of_vf_msg() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/common/siano/ |
| H A D | smsdvb-main.c | 64 static void sms_board_dvb3_event(struct smsdvb_client_t *client, in sms_board_dvb3_event() argument 67 struct smscore_device_t *coredev = client->coredev; in sms_board_dvb3_event() 82 if (client->event_fe_state != DVB3_EVENT_FE_LOCK) { in sms_board_dvb3_event() 83 client->event_fe_state = DVB3_EVENT_FE_LOCK; in sms_board_dvb3_event() 89 if (client->event_fe_state != DVB3_EVENT_FE_UNLOCK) { in sms_board_dvb3_event() 90 client->event_fe_state = DVB3_EVENT_FE_UNLOCK; in sms_board_dvb3_event() 96 if (client->event_unc_state != DVB3_EVENT_UNC_OK) { in sms_board_dvb3_event() 97 client->event_unc_state = DVB3_EVENT_UNC_OK; in sms_board_dvb3_event() 103 if (client->event_unc_state != DVB3_EVENT_UNC_ERR) { in sms_board_dvb3_event() 104 client->event_unc_state = DVB3_EVENT_UNC_ERR; in sms_board_dvb3_event() [all …]
|
| /OK3568_Linux_fs/external/xserver/hw/xfree86/dri2/ |
| H A D | dri2ext.c | 58 validDrawable(ClientPtr client, XID drawable, Mask access_mode, in validDrawable() argument 61 *status = dixLookupDrawable(pDrawable, drawable, client, in validDrawable() 65 client->errorValue = drawable; in validDrawable() 73 ProcDRI2QueryVersion(ClientPtr client) in ProcDRI2QueryVersion() argument 78 .sequenceNumber = client->sequence, in ProcDRI2QueryVersion() 84 if (client->swapped) in ProcDRI2QueryVersion() 89 if (client->swapped) { in ProcDRI2QueryVersion() 96 WriteToClient(client, sizeof(xDRI2QueryVersionReply), &rep); in ProcDRI2QueryVersion() 102 ProcDRI2Connect(ClientPtr client) in ProcDRI2Connect() argument 107 .sequenceNumber = client->sequence, in ProcDRI2Connect() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/misc/ |
| H A D | isl29003.c | 50 struct i2c_client *client; member 64 static int __isl29003_read_reg(struct i2c_client *client, in __isl29003_read_reg() argument 67 struct isl29003_data *data = i2c_get_clientdata(client); in __isl29003_read_reg() 72 static int __isl29003_write_reg(struct i2c_client *client, in __isl29003_write_reg() argument 75 struct isl29003_data *data = i2c_get_clientdata(client); in __isl29003_write_reg() 88 ret = i2c_smbus_write_byte_data(client, reg, tmp); in __isl29003_write_reg() 101 static int isl29003_get_range(struct i2c_client *client) in isl29003_get_range() argument 103 return __isl29003_read_reg(client, ISL29003_REG_CONTROL, in isl29003_get_range() 107 static int isl29003_set_range(struct i2c_client *client, int range) in isl29003_set_range() argument 109 return __isl29003_write_reg(client, ISL29003_REG_CONTROL, in isl29003_set_range() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/input/mouse/ |
| H A D | elan_i2c_i2c.c | 74 static int elan_i2c_read_block(struct i2c_client *client, in elan_i2c_read_block() argument 82 .addr = client->addr, in elan_i2c_read_block() 83 .flags = client->flags & I2C_M_TEN, in elan_i2c_read_block() 88 .addr = client->addr, in elan_i2c_read_block() 89 .flags = (client->flags & I2C_M_TEN) | I2C_M_RD, in elan_i2c_read_block() 96 ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); in elan_i2c_read_block() 100 static int elan_i2c_read_cmd(struct i2c_client *client, u16 reg, u8 *val) in elan_i2c_read_cmd() argument 104 retval = elan_i2c_read_block(client, reg, val, ETP_I2C_INF_LENGTH); in elan_i2c_read_cmd() 106 dev_err(&client->dev, "reading cmd (0x%04x) fail.\n", reg); in elan_i2c_read_cmd() 113 static int elan_i2c_write_cmd(struct i2c_client *client, u16 reg, u16 cmd) in elan_i2c_write_cmd() argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvkm/core/ |
| H A D | client.c | 24 #include <core/client.h> 41 struct nvkm_client *client; in nvkm_uclient_new() local 47 NULL, oclass->client->ntfy, &client); in nvkm_uclient_new() 53 client->object.client = oclass->client; in nvkm_uclient_new() 54 client->object.handle = oclass->handle; in nvkm_uclient_new() 55 client->object.route = oclass->route; in nvkm_uclient_new() 56 client->object.token = oclass->token; in nvkm_uclient_new() 57 client->object.object = oclass->object; in nvkm_uclient_new() 58 client->debug = oclass->client->debug; in nvkm_uclient_new() 59 *pobject = &client->object; in nvkm_uclient_new() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/vga/ |
| H A D | vga_switcheroo.c | 74 * register as a client so that vga_switcheroo can take care of the correct 77 * client (on the discrete GPU). The code is mostly prepared to support 81 * active client in vga_switcheroo parlance. The GPU not in use is the 82 * inactive client. When the inactive client's DRM driver is loaded, 86 * a client may alternatively request that the DDC lines are temporarily 93 * struct vga_switcheroo_client - registered client 94 * @pdev: client pci device 98 * @ops: client callbacks 99 * @id: client identifier. Determining the id requires the handler, 102 * @active: whether the outputs are currently switched to this client [all …]
|