| /dflybsd-src/sys/dev/misc/evdev/ |
| H A D | cdev.c | 63 #define debugf(client, fmt, args...) kprintf("evdev cdev: "fmt"\n", ##args) argument 65 #define debugf(client, fmt, args...) argument 103 struct evdev_client *client; in evdev_open() local 118 client = kmalloc(offsetof(struct evdev_client, ec_buffer) + in evdev_open() 123 client->ec_buffer_size = buffer_size; in evdev_open() 124 client->ec_buffer_head = 0; in evdev_open() 125 client->ec_buffer_tail = 0; in evdev_open() 126 client->ec_buffer_ready = 0; in evdev_open() 128 client->ec_evdev = evdev; in evdev_open() 129 lockinit(&client->ec_buffer_mtx, "evclient", 0, LK_CANRECURSE); in evdev_open() [all …]
|
| H A D | evdev_private.h | 182 #define EVDEV_CLIENT_LOCKQ(client) lockmgr(&(client)->ec_buffer_mtx, \ argument 184 #define EVDEV_CLIENT_UNLOCKQ(client) lockmgr(&(client)->ec_buffer_mtx, \ argument 186 #define EVDEV_CLIENT_LOCKQ_ASSERT(client) \ argument 187 KKASSERT(lockowned(&(client)->ec_buffer_mtx) != 0) 188 #define EVDEV_CLIENT_EMPTYQ(client) \ argument 189 ((client)->ec_buffer_head == (client)->ec_buffer_ready) 190 #define EVDEV_CLIENT_SIZEQ(client) \ argument 191 (((client)->ec_buffer_ready + (client)->ec_buffer_size - \ 192 (client)->ec_buffer_head) % (client)->ec_buffer_size)
|
| /dflybsd-src/sys/dev/video/vga/ |
| H A D | vga_switcheroo.c | 207 struct vga_switcheroo_client *client; in vga_switcheroo_enable() local 213 list_for_each_entry(client, &vgasr_priv->clients, list) { in vga_switcheroo_enable() 214 if (client->id != VGA_SWITCHEROO_UNKNOWN_ID) in vga_switcheroo_enable() 216 ret = vgasr_priv->handler->get_client_id(client->pdev); in vga_switcheroo_enable() 220 client->id = ret; in vga_switcheroo_enable() 305 struct vga_switcheroo_client *client; in register_client() local 307 client = kmalloc(sizeof(*client), M_VGA_SWITCHEROO_CLIENT, M_WAITOK | M_ZERO); in register_client() 308 if (!client) in register_client() 311 client->pwr_state = VGA_SWITCHEROO_ON; in register_client() 312 client->pdev = pdev; in register_client() [all …]
|
| /dflybsd-src/sys/dev/video/bktr/ |
| H A D | msp34xx.c | 148 kprintf("%s: ", bktr_name(client)); \ 162 static int msp3400c_reset(bktr_ptr_t client) in msp3400c_reset() argument 165 msp_dpl_reset(client, client->msp_addr); in msp3400c_reset() 171 msp3400c_read(bktr_ptr_t client, int dev, int addr) in msp3400c_read() argument 174 return(msp_dpl_read(client, client->msp_addr, dev, addr)); in msp3400c_read() 178 msp3400c_write(bktr_ptr_t client, int dev, int addr, int val) in msp3400c_write() argument 181 msp_dpl_write(client, client->msp_addr, dev, addr, val); in msp3400c_write() 308 msp3400c_set_scart(bktr_ptr_t client, int in, int out) in msp3400c_set_scart() argument 310 struct msp3400c *msp = client->msp3400c_info; in msp3400c_set_scart() 318 msp3400c_write(client,I2C_MSP3400C_DFP, 0x0013, msp->acb); in msp3400c_set_scart() [all …]
|
| /dflybsd-src/sbin/dhclient/ |
| H A D | dhclient.c | 88 struct client_state *client; variable 201 if (client->active && addr_eq(a, client->active->address)) in routehandler() 203 for (l = client->leases; l != NULL; l = l->next) in routehandler() 244 client->state = S_REBOOTING; in routehandler() 397 client = calloc(1, sizeof(*client)); in main() 398 if (client == NULL) in main() 491 client->state = S_REBOOTING; in main() 545 if (!client->active || client->active->is_bootp) { in state_reboot() 546 client->state = S_INIT; in state_reboot() 554 client->xid = arc4random(); in state_reboot() [all …]
|
| /dflybsd-src/sys/dev/drm/i915/ |
| H A D | i915_guc_submission.c | 84 static inline bool is_high_priority(struct i915_guc_client* client) in is_high_priority() argument 86 return client->priority <= GUC_CLIENT_PRIORITY_HIGH; in is_high_priority() 89 static int __reserve_doorbell(struct i915_guc_client *client) in __reserve_doorbell() argument 95 GEM_BUG_ON(client->doorbell_id != GUC_DOORBELL_INVALID); in __reserve_doorbell() 104 if (is_high_priority(client)) { in __reserve_doorbell() 109 id = find_next_zero_bit(client->guc->doorbell_bitmap, end, offset); in __reserve_doorbell() 113 __set_bit(id, client->guc->doorbell_bitmap); in __reserve_doorbell() 114 client->doorbell_id = id; in __reserve_doorbell() 116 client->stage_id, yesno(is_high_priority(client)), in __reserve_doorbell() 121 static void __unreserve_doorbell(struct i915_guc_client *client) in __unreserve_doorbell() argument [all …]
|
| /dflybsd-src/lib/libc/rpc/ |
| H A D | rpcb_clnt.c | 300 CLIENT *client; in getclnthandle() local 311 client = NULL; in getclnthandle() 319 client = clnt_tli_create(RPC_ANYFD, nconf, addr, in getclnthandle() 321 if (client != NULL) { in getclnthandle() 325 return (client); in getclnthandle() 362 client = local_rpcb(); in getclnthandle() 363 if (! client) { in getclnthandle() 373 CLNT_DESTROY(client); in getclnthandle() 379 return (client); in getclnthandle() 414 client = clnt_tli_create(RPC_ANYFD, nconf, &taddr, in getclnthandle() [all …]
|
| H A D | key_call.c | 264 CLIENT *client; /* Client handle */ member 276 if (kcp->client) in key_call_destroy() 277 clnt_destroy(kcp->client); in key_call_destroy() 321 kcp->client = NULL; in getkeyserv_handle() 325 if (kcp->client != NULL && kcp->pid != getpid()) { in getkeyserv_handle() 326 clnt_destroy(kcp->client); in getkeyserv_handle() 327 kcp->client = NULL; in getkeyserv_handle() 330 if (kcp->client != NULL) { in getkeyserv_handle() 334 auth_destroy(kcp->client->cl_auth); in getkeyserv_handle() 335 kcp->client->cl_auth = in getkeyserv_handle() [all …]
|
| H A D | clnt_simple.c | 66 CLIENT *client; /* Client handle */ member 83 if (rcp->client) in rpc_call_destroy() 84 CLNT_DESTROY(rcp->client); in rpc_call_destroy() 138 rcp->client = NULL; in rpc_call() 150 if (rcp->client) in rpc_call() 151 CLNT_DESTROY(rcp->client); in rpc_call() 155 rcp->client = clnt_create(host, prognum, versnum, nettype); in rpc_call() 157 if (rcp->client == NULL) { in rpc_call() 167 CLNT_CONTROL(rcp->client, in rpc_call() 169 if (CLNT_CONTROL(rcp->client, CLGET_FD, (char *)(void *)&fd)) in rpc_call() [all …]
|
| H A D | pmap_getmaps.c | 75 CLIENT *client; in pmap_getmaps() local 82 client = clnttcp_create(address, PMAPPROG, in pmap_getmaps() 84 if (client != NULL) { in pmap_getmaps() 85 if (CLNT_CALL(client, (rpcproc_t)PMAPPROC_DUMP, in pmap_getmaps() 89 clnt_perror(client, "pmap_getmaps rpc problem"); in pmap_getmaps() 91 CLNT_DESTROY(client); in pmap_getmaps()
|
| /dflybsd-src/contrib/lvm2/dist/daemons/clvmd/ |
| H A D | tcp-comms.c | 109 struct local_client *client; in tcp_remove_client() local 121 client = dm_hash_lookup_binary(sock_hash, csid, GULM_MAX_CSID_LEN); in tcp_remove_client() 122 if (client) in tcp_remove_client() 125 client->removeme = 1; in tcp_remove_client() 126 close(client->fd); in tcp_remove_client() 135 struct local_client *client; in alloc_client() local 142 client = malloc(sizeof(struct local_client)); in alloc_client() 143 if (!client) in alloc_client() 149 memset(client, 0, sizeof(struct local_client)); in alloc_client() 150 client->fd = fd; in alloc_client() [all …]
|
| H A D | clvmd.c | 89 struct local_client *client; member 123 static void send_local_reply(struct local_client *client, int status, 125 static void free_reply(struct local_client *client); 132 struct local_client *client, 143 static int check_all_clvmds_running(struct local_client *client); 148 static int add_to_lvmqueue(struct local_client *client, struct clvm_header *msg, 153 static void add_reply_to_list(struct local_client *client, int status, 563 struct local_client *sock_client = thisfd->bits.pipe.client; in local_pipe_callback() 584 if (thisfd->bits.pipe.client != NULL) in local_pipe_callback() 585 thisfd->bits.pipe.client->bits.localsock.pipe_client = in local_pipe_callback() [all …]
|
| H A D | clvmd-command.c | 88 int do_command(struct local_client *client, struct clvm_header *msg, int msglen, in do_command() argument 176 if (!client) in do_command() 194 static int lock_vg(struct local_client *client) in lock_vg() argument 198 (struct clvm_header *) client->bits.localsock.cmd; in lock_vg() 209 if (client->bits.localsock.private) { in lock_vg() 210 lock_hash = (struct dm_hash_table *)client->bits.localsock.private; in lock_vg() 216 client->bits.localsock.private = (void *)lock_hash; in lock_vg() 222 DEBUGLOG("doing PRE command LOCK_VG '%s' at %x (client=%p)\n", lockname, lock_cmd, client); in lock_vg() 256 int do_pre_command(struct local_client *client) in do_pre_command() argument 259 (struct clvm_header *) client->bits.localsock.cmd; in do_pre_command() [all …]
|
| /dflybsd-src/usr.bin/rpcinfo/ |
| H A D | rpcinfo.c | 366 CLIENT *client; local 391 client = clnt_com_create(&addr, prognum, vers, &fd, trans); 392 rpc_stat = CLNT_CALL(client, NULLPROC, (xdrproc_t) xdr_void, 396 if (pstatus(client, prognum, vers) < 0) 398 CLNT_DESTROY(client); 402 CLNT_CONTROL(client, CLSET_FD_NCLOSE, NULL); 404 clnt_geterr(client, &rpcerr); 412 CLNT_DESTROY(client); 414 client = clnt_com_create(&addr, prognum, MAX_VERS, &fd, trans); 415 rpc_stat = CLNT_CALL(client, NULLPROC, (xdrproc_t) xdr_void, [all …]
|
| /dflybsd-src/contrib/libarchive/libarchive/ |
| H A D | archive_read.c | 166 r = (self->archive->client.reader)(&self->archive->archive, in client_read_proxy() 179 if (self->archive->client.skipper != NULL) { in client_skip_proxy() 189 get = (self->archive->client.skipper) in client_skip_proxy() 198 } else if (self->archive->client.seeker != NULL in client_skip_proxy() 212 int64_t after = (self->archive->client.seeker) in client_skip_proxy() 229 if (self->archive->client.seeker == NULL) { in client_seek_proxy() 234 return (self->archive->client.seeker)(&self->archive->archive, in client_seek_proxy() 244 if (a->client.closer == NULL) in read_client_close_proxy() 246 for (i = 0; i < a->client.nodes; i++) in read_client_close_proxy() 248 r2 = (a->client.closer) in read_client_close_proxy() [all …]
|
| /dflybsd-src/contrib/tcp_wrappers/ |
| H A D | tli.c | 71 static struct sockaddr_storage client; local 74 static struct sockaddr_in client; 93 if (request->client->unit != 0) { 95 client = *(struct sockaddr_storage *) request->client->unit->addr.buf; 96 request->client->sin = (struct sockaddr *) &client; 98 client = *(struct sockaddr_in *) request->client->unit->addr.buf; 99 request->client->sin = &client; 127 if (request->client->unit != 0) 128 t_free((char *) request->client->unit, T_UNITDATA); 139 struct t_unitdata *client; local [all …]
|
| H A D | tcpdmatch.c | 66 char *client; local 135 if ((client = split_at(argv[optind + 1], '@')) != 0) { 138 client = argv[optind + 1]; 226 if (dot_quad_addr(client) != INADDR_NONE) { 227 request_set(&request, RQ_CLIENT_ADDR, client, 0); 236 if (getaddrinfo(client, NULL, &hints, &res) == 0) { 238 request_set(&request, RQ_CLIENT_ADDR, client, 0); 248 if (NOT_INADDR(client) && HOSTNAME_KNOWN(client) == 0) { 249 request_set(&request, RQ_CLIENT_NAME, client, 0); 262 if ((hp = find_inet_addr(client)) == 0) [all …]
|
| /dflybsd-src/crypto/openssh/ |
| H A D | gss-serv-krb5.c | 85 ssh_gssapi_krb5_userok(ssh_gssapi_client *client, char *name) in ssh_gssapi_krb5_userok() argument 94 if ((retval = krb5_parse_name(krb_context, client->exportedname.value, in ssh_gssapi_krb5_userok() 104 name, (char *)client->displayname.value); in ssh_gssapi_krb5_userok() 117 ssh_gssapi_krb5_storecreds(ssh_gssapi_client *client) argument 126 if (client->creds == NULL) { 158 client->exportedname.value, &princ))) { 177 client->creds, ccache))) { 183 client->store.filename = xstrdup(krb5_cc_get_name(krb_context, ccache)); 184 client->store.envvar = "KRB5CCNAME"; 185 len = strlen(client->store.filename) + 6; [all …]
|
| H A D | PROTOCOL.mux | 14 Most messages from the client to the server contain a "request id" 15 field. This field is returned in replies as "client request id" to 18 Many multiplexing (mux) client requests yield immediate responses from 27 Unix domain control socket. The passenger client then waits until it is 29 the client waits around while the mux server does all the driving. 32 example of passenger mode; the client passes the stdio file descriptors 36 this mode, the mux client/server connection socket will stop speaking 38 messages between the client and server. The client therefore must 42 supporting a proxy client may itself be forwarded or relayed to another 48 ControlMaster from a client ssh(1), the first action of each is send [all …]
|
| /dflybsd-src/contrib/wpa_supplicant/src/crypto/ |
| H A D | tls_internal.c | 34 struct tlsv1_client *client; member 105 conn->client = tlsv1_client_init(); in tls_connection_init() 106 if (conn->client == NULL) { in tls_connection_init() 110 tlsv1_client_set_cb(conn->client, global->event_cb, in tls_connection_init() 155 if (conn->client) in tls_connection_deinit() 156 tlsv1_client_deinit(conn->client); in tls_connection_deinit() 169 if (conn->client) in tls_connection_established() 170 return tlsv1_client_established(conn->client); in tls_connection_established() 191 if (conn->client) in tls_connection_shutdown() 192 return tlsv1_client_shutdown(conn->client); in tls_connection_shutdown() [all …]
|
| /dflybsd-src/contrib/wpa_supplicant/src/radius/ |
| H A D | radius_server.c | 76 struct radius_client *client; member 478 struct radius_client *client = data->clients; in radius_server_get_client() local 480 while (client) { in radius_server_get_client() 489 client->mask6.s6_addr[i]) != in radius_server_get_client() 490 (client->addr6.s6_addr[i] & in radius_server_get_client() 491 client->mask6.s6_addr[i])) { in radius_server_get_client() 501 if (!ipv6 && (client->addr.s_addr & client->mask.s_addr) == in radius_server_get_client() 502 (addr->s_addr & client->mask.s_addr)) { in radius_server_get_client() 506 client = client->next; in radius_server_get_client() 509 return client; in radius_server_get_client() [all …]
|
| /dflybsd-src/sys/dev/drm/ |
| H A D | drm_encoder_slave.c | 59 struct i2c_client *client; 65 client = i2c_new_device(adap, info); 66 if (!client) { 71 if (!client->dev.driver) { 76 module = client->dev.driver->owner; 82 encoder->bus_priv = client; 84 encoder_drv = to_drm_i2c_encoder_driver(to_i2c_driver(client->dev.driver)); 86 err = encoder_drv->encoder_init(client, dev, encoder); 97 i2c_unregister_device(client); 114 struct i2c_client *client = drm_i2c_encoder_get_client(drm_encoder); [all …]
|
| H A D | linux_i2c.c | 139 struct i2c_client *client; in i2c_new_device() local 141 client = kzalloc(sizeof(*client), GFP_KERNEL); in i2c_new_device() 142 if (client == NULL) in i2c_new_device() 145 client->adapter = adap; in i2c_new_device() 147 strlcpy(client->name, info->type, sizeof(client->name)); in i2c_new_device() 148 client->addr = info->addr; in i2c_new_device() 151 return client; in i2c_new_device()
|
| /dflybsd-src/games/hunt/ |
| H A D | README.protocol | 14 screen-drawing commands to the client. ie, the server does all the work. 27 client (hunt) or server (huntd) respectively. 39 of the client request datagrams. 53 A client requests the game play port P with the C_PLAYER message. 61 the client. 65 A client can request the game play port P with the C_MONITOR message. 95 it alive for long enough to send a text stream to the client. 104 The client is not to send any data to the server with this 110 the client and the server. 117 The initial setup protocol between the client and server is as follows. [all …]
|
| /dflybsd-src/usr.sbin/rpc.lockd/ |
| H A D | lockd_lock.c | 62 struct nlm4_holder client; /* lock holder */ member 126 return (&fl->client); in testlock() 165 newfl->client.exclusive = lckarg->exclusive; in getlock() 166 newfl->client.svid = lckarg->alock.svid; in getlock() 167 newfl->client.oh.n_bytes = malloc(lckarg->alock.oh.n_len); in getlock() 168 if (newfl->client.oh.n_bytes == NULL) { in getlock() 174 newfl->client.oh.n_len = lckarg->alock.oh.n_len; in getlock() 175 memcpy(newfl->client.oh.n_bytes, lckarg->alock.oh.n_bytes, in getlock() 177 newfl->client.l_offset = lckarg->alock.l_offset; in getlock() 178 newfl->client.l_len = lckarg->alock.l_len; in getlock() [all …]
|