/openbmc/linux/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 …]
|
/openbmc/qemu/contrib/ivshmem-client/ |
H A D | ivshmem-client.c | 15 #include "ivshmem-client.h" 18 #define IVSHMEM_CLIENT_DEBUG(client, fmt, ...) do { \ argument 19 if ((client)->verbose) { \ 26 ivshmem_client_read_one_msg(IvshmemClient *client, int64_t *index, int *fd) in ivshmem_client_read_one_msg() argument 46 ret = recvmsg(client->sock_fd, &msg, 0); in ivshmem_client_read_one_msg() 48 IVSHMEM_CLIENT_DEBUG(client, "cannot read message: %s\n", in ivshmem_client_read_one_msg() 53 IVSHMEM_CLIENT_DEBUG(client, "lost connection to server\n"); in ivshmem_client_read_one_msg() 75 * client is freed */ 77 ivshmem_client_free_peer(IvshmemClient *client, IvshmemClientPeer *peer) in ivshmem_client_free_peer() argument 81 QTAILQ_REMOVE(&client->peer_list, peer, next); in ivshmem_client_free_peer() [all …]
|
/openbmc/linux/drivers/firewire/ |
H A D | core-cdev.c | 48 struct client { struct 73 static inline void client_get(struct client *client) in client_get() argument 75 kref_get(&client->kref); in client_get() 80 struct client *client = container_of(kref, struct client, kref); in client_release() local 82 fw_device_put(client->device); in client_release() 83 kfree(client); in client_release() 86 static void client_put(struct client *client) in client_put() argument 88 kref_put(&client->kref, client_release); in client_put() 92 typedef void (*client_resource_release_fn_t)(struct client *, 103 struct client *client; member [all …]
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_client.c | 35 static int drm_client_open(struct drm_client_dev *client) in drm_client_open() argument 37 struct drm_device *dev = client->dev; in drm_client_open() 48 client->file = file; in drm_client_open() 53 static void drm_client_close(struct drm_client_dev *client) in drm_client_close() argument 55 struct drm_device *dev = client->dev; in drm_client_close() 58 list_del(&client->file->lhead); in drm_client_close() 61 drm_file_free(client->file); in drm_client_close() 65 * drm_client_init - Initialise a DRM client 67 * @client: DRM client 68 * @name: Client name [all …]
|
/openbmc/qemu/block/ |
H A D | nfs.c | 76 NFSClient *client; member 191 static void nfs_set_events(NFSClient *client) in nfs_set_events() argument 193 int ev = nfs_which_events(client->context); in nfs_set_events() 194 if (ev != client->events) { in nfs_set_events() 195 aio_set_fd_handler(client->aio_context, nfs_get_fd(client->context), in nfs_set_events() 198 NULL, NULL, client); in nfs_set_events() 201 client->events = ev; in nfs_set_events() 206 NFSClient *client = arg; in nfs_process_read() local 208 qemu_mutex_lock(&client->mutex); in nfs_process_read() 209 nfs_service(client->context, POLLIN); in nfs_process_read() [all …]
|
/openbmc/linux/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 …]
|
/openbmc/linux/sound/core/seq/ |
H A D | seq_ump_client.c | 35 /* sequencer client, per UMP EP (rawmidi) */ 38 int seq_client; /* sequencer client id */ 42 void *ump_info[SNDRV_UMP_MAX_BLOCKS + 1]; /* shadow of seq client ump_info */ 63 struct seq_ump_client *client = ump->seq_client; in seq_ump_input_receive() local 66 if (!client->opened[STR_IN]) in seq_ump_input_receive() 73 ev.dest.client = SNDRV_SEQ_ADDRESS_SUBSCRIBERS; in seq_ump_input_receive() 76 snd_seq_kernel_client_dispatch(client->seq_client, in seq_ump_input_receive() 85 struct seq_ump_client *client = private_data; in seq_ump_process_event() local 91 substream = client->out_rfile.output; in seq_ump_process_event() 106 static int seq_ump_client_open(struct seq_ump_client *client, int dir) in seq_ump_client_open() argument [all …]
|
H A D | seq_clientmgr.c | 3 * ALSA sequencer Client Manager 30 /* Client Manager 37 * There are four ranges of client numbers (last two shared): 39 * 16..127: statically allocated client numbers for cards 0..27 40 * 128..191: dynamically allocated client numbers for cards 28..31 41 * 128..191: dynamically allocated client numbers for applications 48 /* dynamically allocated client numbers (both kernel drivers and user space) */ 59 * client table 68 static int bounce_error_event(struct snd_seq_client *client, 71 static int snd_seq_deliver_single_event(struct snd_seq_client *client, [all …]
|
/openbmc/qemu/nbd/ |
H A D | server.c | 40 * recommends no larger than 32 mb, so that the client won't consider 83 NBDClient *client; member 126 void (*close_fn)(NBDClient *client, bool negotiated); 150 uint32_t check_align; /* If non-zero, check for aligned client requests */ 160 static void nbd_client_receive_next_request(NBDClient *client); 164 Server Client 169 Server Client 178 Server Client 201 nbd_negotiate_send_rep_len(NBDClient *client, uint32_t type, in nbd_negotiate_send_rep_len() argument 206 trace_nbd_negotiate_send_rep_len(client->opt, nbd_opt_lookup(client->opt), in nbd_negotiate_send_rep_len() [all …]
|
/openbmc/linux/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 …]
|
/openbmc/linux/tools/testing/selftests/tpm2/ |
H A D | tpm2_tests.py | 15 self.client = tpm2.Client() 16 self.root_key = self.client.create_root_key() 19 self.client.flush_context(self.root_key) 20 self.client.close() 26 blob = self.client.seal(self.root_key, data, auth, None) 27 result = self.client.unseal(self.root_key, blob, auth, None) 31 pcr_banks = self.client.get_cap_pcrs() 41 handle = self.client.start_auth_session(tpm2.TPM2_SE_TRIAL) 48 self.client.policy_pcr(handle, pcrs, bank_alg=bank_alg) 49 self.client.policy_password(handle) [all …]
|
/openbmc/linux/drivers/virt/acrn/ |
H A D | ioreq.c | 29 static inline bool has_pending_request(struct acrn_ioreq_client *client) in has_pending_request() argument 31 return !bitmap_empty(client->ioreqs_map, ACRN_IO_REQUEST_MAX); in has_pending_request() 34 static inline bool is_destroying(struct acrn_ioreq_client *client) in is_destroying() argument 36 return test_bit(ACRN_IOREQ_CLIENT_DESTROYING, &client->flags); in is_destroying() 73 static int acrn_ioreq_complete_request(struct acrn_ioreq_client *client, in acrn_ioreq_complete_request() argument 79 if (vcpu >= client->vm->vcpu_num) in acrn_ioreq_complete_request() 82 clear_bit(vcpu, client->ioreqs_map); in acrn_ioreq_complete_request() 84 acrn_req = (struct acrn_io_request *)client->vm->ioreq_buf; in acrn_ioreq_complete_request() 88 ret = ioreq_complete_request(client->vm, vcpu, acrn_req); in acrn_ioreq_complete_request() 107 * acrn_ioreq_range_add() - Add an iorange monitored by an ioreq client [all …]
|
/openbmc/linux/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 …]
|
/openbmc/linux/drivers/media/i2c/ |
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 …]
|
/openbmc/linux/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 …]
|
/openbmc/linux/drivers/platform/surface/ |
H A D | surface_aggregator_cdev.c | 45 struct rw_semaphore client_lock; /* Guards client list. */ 52 struct ssam_cdev_client *client; member 96 struct ssam_cdev_client *client = cdev_nf->client; in ssam_cdev_notifier() local 107 mutex_lock(&client->write_lock); in ssam_cdev_notifier() 110 if (kfifo_avail(&client->buffer) < n) { in ssam_cdev_notifier() 111 dev_warn(client->cdev->dev, in ssam_cdev_notifier() 114 mutex_unlock(&client->write_lock); in ssam_cdev_notifier() 119 kfifo_in(&client->buffer, (const u8 *)&event, struct_size(&event, data, 0)); in ssam_cdev_notifier() 120 kfifo_in(&client->buffer, &in->data[0], in->length); in ssam_cdev_notifier() 122 mutex_unlock(&client->write_lock); in ssam_cdev_notifier() [all …]
|
/openbmc/linux/drivers/input/keyboard/ |
H A D | qt2160.c | 55 struct i2c_client *client; member 64 static int qt2160_read(struct i2c_client *client, u8 reg); 65 static int qt2160_write(struct i2c_client *client, u8 reg, u8 data); 74 struct i2c_client *client = qt2160->client; in qt2160_led_set() local 78 drive = qt2160_read(client, QT2160_CMD_DRIVE_X); in qt2160_led_set() 79 pwmen = qt2160_read(client, QT2160_CMD_PWMEN_X); in qt2160_led_set() 88 qt2160_write(client, QT2160_CMD_DRIVE_X, drive); in qt2160_led_set() 89 qt2160_write(client, QT2160_CMD_PWMEN_X, pwmen); in qt2160_led_set() 96 qt2160_write(client, QT2160_CMD_PWM_DUTY, value); in qt2160_led_set() 106 static int qt2160_read_block(struct i2c_client *client, in qt2160_read_block() argument [all …]
|
H A D | max7359_keypad.c | 61 struct i2c_client *client; member 64 static int max7359_write_reg(struct i2c_client *client, u8 reg, u8 val) in max7359_write_reg() argument 66 int ret = i2c_smbus_write_byte_data(client, reg, val); in max7359_write_reg() 69 dev_err(&client->dev, "%s: reg 0x%x, val 0x%x, err %d\n", in max7359_write_reg() 74 static int max7359_read_reg(struct i2c_client *client, int reg) in max7359_read_reg() argument 76 int ret = i2c_smbus_read_byte_data(client, reg); in max7359_read_reg() 79 dev_err(&client->dev, "%s: reg 0x%x, err %d\n", in max7359_read_reg() 91 val = max7359_read_reg(keypad->client, MAX7359_REG_KEYFIFO); in max7359_interrupt() 98 dev_dbg(&keypad->client->dev, in max7359_interrupt() 113 static inline void max7359_fall_deepsleep(struct i2c_client *client) in max7359_fall_deepsleep() argument [all …]
|
/openbmc/linux/drivers/gpu/host1x/ |
H A D | bus.c | 28 struct host1x_client *client; member 112 struct host1x_client *client) in host1x_subdev_register() argument 118 * and associate it with a client. At the same time, associate the in host1x_subdev_register() 119 * client with its parent device. in host1x_subdev_register() 123 list_move_tail(&client->list, &device->clients); in host1x_subdev_register() 125 client->host = &device->dev; in host1x_subdev_register() 126 subdev->client = client; in host1x_subdev_register() 142 struct host1x_client *client = subdev->client; in __host1x_subdev_unregister() local 160 subdev->client = NULL; in __host1x_subdev_unregister() 161 client->host = NULL; in __host1x_subdev_unregister() [all …]
|
/openbmc/linux/drivers/rtc/ |
H A D | rtc-nct3018y.c | 45 struct i2c_client *client; member 52 static int nct3018y_set_alarm_mode(struct i2c_client *client, bool on) in nct3018y_set_alarm_mode() argument 56 dev_dbg(&client->dev, "%s:on:%d\n", __func__, on); in nct3018y_set_alarm_mode() 58 flags = i2c_smbus_read_byte_data(client, NCT3018Y_REG_CTRL); in nct3018y_set_alarm_mode() 60 dev_dbg(&client->dev, in nct3018y_set_alarm_mode() 71 err = i2c_smbus_write_byte_data(client, NCT3018Y_REG_CTRL, flags); in nct3018y_set_alarm_mode() 73 dev_dbg(&client->dev, "Unable to write NCT3018Y_REG_CTRL\n"); in nct3018y_set_alarm_mode() 77 flags = i2c_smbus_read_byte_data(client, NCT3018Y_REG_ST); in nct3018y_set_alarm_mode() 79 dev_dbg(&client->dev, in nct3018y_set_alarm_mode() 85 err = i2c_smbus_write_byte_data(client, NCT3018Y_REG_ST, flags); in nct3018y_set_alarm_mode() [all …]
|
/openbmc/openbmc/poky/bitbake/lib/hashserv/ |
H A D | tests.py | 74 def cleanup_client(client): argument 75 client.close() 77 client = create_client(server_address, username=username, password=password) 78 self.addCleanup(cleanup_client, client) 80 return client 101 self.client = self.start_client(self.server_address) 103 def assertClientGetHash(self, client, taskhash, unihash): argument 104 result = client.get_unihash(self.METHOD, taskhash) 108 with self.auth_client(user) as client: 109 info = client.get_user() [all …]
|
/openbmc/obmc-console/ |
H A D | socket-handler.c | 40 struct client { struct 54 struct client **clients; argument 68 static void client_close(struct client *client) in client_close() argument 70 struct socket_handler *sh = client->sh; in client_close() 73 close(client->fd); in client_close() 74 if (client->poller) { in client_close() 75 console_poller_unregister(sh->console, client->poller); in client_close() 78 if (client->rbc) { in client_close() 79 ringbuffer_consumer_unregister(client->rbc); in client_close() 83 if (sh->clients[idx] == client) { in client_close() [all …]
|
/openbmc/linux/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 …]
|
/openbmc/linux/Documentation/filesystems/nfs/ |
H A D | client-identifier.rst | 4 NFSv4 client identifier 7 This document explains how the NFSv4 protocol identifies client 10 on each client. These can be set by administrators, scripts 14 There are risks if a client's NFSv4 identifier and its principal 25 Simply put, an NFSv4 server creates a lease for each NFSv4 client. 26 The server collects each client's file open and lock state under 27 the lease for that client. 29 The client is responsible for periodically renewing its leases. 31 guarantees the file locks the client has created remain in place. 33 If a client stops renewing its lease (for example, if it crashes), [all …]
|