Lines Matching refs:client

260 	client_t *client;  in cs_init()  local
276 client = &cs_socket_services_client; in cs_init()
277 bzero((caddr_t)client, sizeof (client_t)); in cs_init()
278 client->client_handle = CS_SS_CLIENT_HANDLE; in cs_init()
279 client->flags |= (INFO_SOCKET_SERVICES | CLIENT_CARD_INSERTED); in cs_init()
926 client_t *client; in cs_parse_tuple() local
931 &fn, &sp, &client)) != CS_SUCCESS) in cs_parse_tuple()
938 if (!(client->flags & CLIENT_CARD_INSERTED)) in cs_parse_tuple()
1066 client_t *client; in cs_get_firstnext_tuple() local
1071 &sp, &client)) != CS_SUCCESS) in cs_get_firstnext_tuple()
1078 if (!(client->flags & CLIENT_CARD_INSERTED)) in cs_get_firstnext_tuple()
1240 client_t *client; in cs_get_tuple_data() local
1248 &sp, &client)) != CS_SUCCESS) in cs_get_tuple_data()
1255 if (!(client->flags & CLIENT_CARD_INSERTED)) in cs_get_tuple_data()
1426 client_t *client; in cs_validate_cis() local
1431 &sp, &client)) != CS_SUCCESS) in cs_validate_cis()
1438 if (!(client->flags & CLIENT_CARD_INSERTED)) in cs_validate_cis()
1835 client_t *client, *cclp; in cs_add_client_to_socket() local
1859 client = sp->client_list; in cs_add_client_to_socket()
1860 while (client) { in cs_add_client_to_socket()
1862 (client->dip == cr->dip)) { in cs_add_client_to_socket()
1871 (int)client->client_handle); in cs_add_client_to_socket()
1874 client = client->next; in cs_add_client_to_socket()
1911 if (!(client = cs_find_client(*ch, &error))) { in cs_add_client_to_socket()
1925 client->dip = cr->dip; in cs_add_client_to_socket()
1927 client->driver_name = (char *)kmem_zalloc(strlen(cr->driver_name) + 1, in cs_add_client_to_socket()
1929 (void) strcpy(client->driver_name, cr->driver_name); in cs_add_client_to_socket()
1930 client->instance = ddi_get_instance(cr->dip); in cs_add_client_to_socket()
1935 client->flags = (cr->Attributes & INFO_CLIENT_TYPE_MASK); in cs_add_client_to_socket()
1936 client->event_callback_handler = cr->event_handler; in cs_add_client_to_socket()
1938 (caddr_t)&client->event_callback_args, in cs_add_client_to_socket()
1944 client->event_callback_args.client_handle = *ch; in cs_add_client_to_socket()
1950 client->io_alloc.Window1 = PCMCIA_MAX_WINDOWS; in cs_add_client_to_socket()
1951 client->io_alloc.Window2 = PCMCIA_MAX_WINDOWS; in cs_add_client_to_socket()
1966 client->global_mask = cr->EventMask; in cs_add_client_to_socket()
1973 client->flags |= CLIENT_CSI_CLIENT; in cs_add_client_to_socket()
1980 client->flags |= CLIENT_SUPER_CLIENT; in cs_add_client_to_socket()
1986 client->flags |= (cr->Attributes & INFO_CARD_FLAGS_MASK); in cs_add_client_to_socket()
2009 client->pending_events = CS_EVENT_REGISTRATION_COMPLETE; in cs_add_client_to_socket()
2023 if (client->flags & CLIENT_CSI_CLIENT) { in cs_add_client_to_socket()
2040 if (cs_card_for_client(client) && (cie != 0)) { in cs_add_client_to_socket()
2041 client->pending_events |= CS_EVENT_CARD_INSERTION; in cs_add_client_to_socket()
2042 client->flags |= CLIENT_CARD_INSERTED; in cs_add_client_to_socket()
2059 client_t *client; in cs_deregister_client() local
2081 if (!(client = cs_find_client(client_handle, &error))) { in cs_deregister_client()
2091 if (client->flags & (CLIENT_IO_ALLOCATED | in cs_deregister_client()
2102 if (client->flags & CLIENT_MTD_IN_PROGRESS) { in cs_deregister_client()
2114 if (client->flags & INFO_MTD_CLIENT) in cs_deregister_client()
2117 if (client->flags & CLIENT_SUPER_CLIENT) in cs_deregister_client()
2120 kmem_free(client->driver_name, strlen(client->driver_name) + 1); in cs_deregister_client()
2452 client_t *client; in cs_event() local
2532 client = sp->client_list; in cs_event()
2537 while (client) { in cs_event()
2538 clp = client; in cs_event()
2539 client = client->next; in cs_event()
2541 client = clp; in cs_event()
2544 while (client) { in cs_event()
2545 client->events |= ((sp->events & ~CS_EVENT_CARD_INSERTION) & in cs_event()
2546 (client->event_mask | client->global_mask)); in cs_event()
2547 if (client->flags & ct->type) { in cs_event()
2552 sn, client->driver_name, in cs_event()
2553 (int)client->events, in cs_event()
2554 (int)client->flags); in cs_event()
2563 if (client->events & CS_EVENT_PM_SUSPEND) { in cs_event()
2564 if (client->flags & CLIENT_CARD_INSERTED) { in cs_event()
2565 CLIENT_EVENT_CALLBACK(client, CS_EVENT_PM_SUSPEND, in cs_event()
2568 client->events &= ~CS_EVENT_PM_SUSPEND; in cs_event()
2571 if (client->events & CS_EVENT_CARD_REMOVAL) { in cs_event()
2572 if (client->flags & CLIENT_CARD_INSERTED) { in cs_event()
2573 client->flags &= ~(CLIENT_CARD_INSERTED | in cs_event()
2575 CLIENT_EVENT_CALLBACK(client, in cs_event()
2582 if ((client->event_mask | client->global_mask) & in cs_event()
2584 client->events |= CS_EVENT_CARD_REMOVAL_LOWP; in cs_event()
2587 client->events &= ~CS_EVENT_CARD_REMOVAL; in cs_event()
2592 client = client->prev; in cs_event()
2594 client = client->next; in cs_event()
2891 client_t *client; in cs_card_insertion() local
2904 client = sp->client_list; in cs_card_insertion()
2905 while (client) { in cs_card_insertion()
2906 client->events |= (CS_EVENT_CARD_INSERTION & in cs_card_insertion()
2907 (client->event_mask | client->global_mask)); in cs_card_insertion()
2908 client = client->next; in cs_card_insertion()
3244 client_t *client; in cs_event_thread() local
3372 client = sp->client_list; in cs_event_thread()
3374 while (client) { in cs_event_thread()
3384 if (client->flags & CLIENT_CARD_INSERTED) { in cs_event_thread()
3385 (void) cs_read_event_status(sp, client, in cs_event_thread()
3388 client->events = ((client->events | revent) & in cs_event_thread()
3389 (client->event_mask | in cs_event_thread()
3390 client->global_mask)); in cs_event_thread()
3392 client = client->next; in cs_event_thread()
3414 client = sp->client_list; in cs_event_thread()
3419 while (client) { in cs_event_thread()
3420 clp = client; in cs_event_thread()
3421 client = client->next; in cs_event_thread()
3423 client = clp; in cs_event_thread()
3426 while (client) { in cs_event_thread()
3427 if (client->flags & ct->type) { in cs_event_thread()
3431 while (client->events) { in cs_event_thread()
3433 switch (event = CS_BIT_GET(client->events, bit)) { in cs_event_thread()
3440 CLIENT_EVENT_CALLBACK(client, event, in cs_event_thread()
3454 if (cs_card_for_client(client)) { in cs_event_thread()
3458 send_insertion = client->flags; in cs_event_thread()
3459 client->flags |= in cs_event_thread()
3465 CLIENT_EVENT_CALLBACK(client, in cs_event_thread()
3476 client->flags &= ~CLIENT_SENT_INSERTION; in cs_event_thread()
3478 CLIENT_EVENT_CALLBACK(client, in cs_event_thread()
3490 if (client->flags & CLIENT_CARD_INSERTED) { in cs_event_thread()
3492 client->flags &= in cs_event_thread()
3496 CLIENT_EVENT_CALLBACK(client, event, in cs_event_thread()
3507 if (client->flags & CLIENT_CARD_INSERTED) { in cs_event_thread()
3512 (void) cs_read_event_status(sp, client, in cs_event_thread()
3516 client->event_callback_args.info = in cs_event_thread()
3520 client->event_callback_args.info = in cs_event_thread()
3526 CLIENT_EVENT_CALLBACK(client, event, in cs_event_thread()
3531 CLIENT_EVENT_CALLBACK(client, event, in cs_event_thread()
3537 if (client->flags & CLIENT_CARD_INSERTED) { in cs_event_thread()
3538 CLIENT_EVENT_CALLBACK(client, event, in cs_event_thread()
3544 CS_BIT_CLEAR(client->events, bit); in cs_event_thread()
3550 client = client->prev; in cs_event_thread()
3552 client = client->next; in cs_event_thread()
3588 cs_card_for_client(client_t *client) in cs_card_for_client() argument
3605 if ((client->flags & (CLIENT_SUPER_CLIENT | CLIENT_CSI_CLIENT)) && in cs_card_for_client()
3606 ((client->global_mask | client->event_mask) & in cs_card_for_client()
3616 if (ddi_getprop(DDI_DEV_T_ANY, client->dip, (DDI_PROP_CANSLEEP | in cs_card_for_client()
3623 (int)client->client_handle, in cs_card_for_client()
3624 client->driver_name, in cs_card_for_client()
3749 client_t *client; in cs_request_socket_mask() local
3771 if (!(client = cs_find_client(client_handle, &error))) { in cs_request_socket_mask()
3782 if (client->flags & REQ_SOCKET_MASK_DONE) { in cs_request_socket_mask()
3794 client->event_mask = se->EventMask; in cs_request_socket_mask()
3800 if (client->pending_events) { in cs_request_socket_mask()
3801 client->events |= client->pending_events; in cs_request_socket_mask()
3802 client->pending_events = 0; in cs_request_socket_mask()
3807 (int)client->client_handle, in cs_request_socket_mask()
3808 client->driver_name, in cs_request_socket_mask()
3809 (int)client->events); in cs_request_socket_mask()
3814 client->flags |= REQ_SOCKET_MASK_DONE; in cs_request_socket_mask()
3820 (void) cs_set_socket_event_mask(sp, cs_merge_event_masks(sp, client)); in cs_request_socket_mask()
3827 if (client->events) { in cs_request_socket_mask()
3834 (int)client->client_handle, in cs_request_socket_mask()
3835 client->driver_name, in cs_request_socket_mask()
3836 (int)client->events); in cs_request_socket_mask()
3858 client_t *client; in cs_release_socket_mask() local
3880 if (!(client = cs_find_client(client_handle, &error))) { in cs_release_socket_mask()
3891 if (!(client->flags & REQ_SOCKET_MASK_DONE)) { in cs_release_socket_mask()
3904 client->event_mask = 0; in cs_release_socket_mask()
3905 client->global_mask = 0; in cs_release_socket_mask()
3906 client->flags &= ~REQ_SOCKET_MASK_DONE; in cs_release_socket_mask()
3912 (void) cs_set_socket_event_mask(sp, cs_merge_event_masks(sp, client)); in cs_release_socket_mask()
3927 client_t *client; in cs_get_event_mask() local
3949 if (!(client = cs_find_client(client_handle, &error))) { in cs_get_event_mask()
3963 if (!(client->flags & CLIENT_CARD_INSERTED)) { in cs_get_event_mask()
3982 if (!(client->flags & REQ_SOCKET_MASK_DONE)) { in cs_get_event_mask()
3987 se->EventMask = client->event_mask; in cs_get_event_mask()
3989 se->EventMask = client->global_mask; in cs_get_event_mask()
4005 client_t *client; in cs_set_event_mask() local
4027 if (!(client = cs_find_client(client_handle, &error))) { in cs_set_event_mask()
4039 if (!(client->flags & CLIENT_CARD_INSERTED)) { in cs_set_event_mask()
4058 if (!(client->flags & REQ_SOCKET_MASK_DONE)) { in cs_set_event_mask()
4063 client->event_mask = se->EventMask; in cs_set_event_mask()
4065 client->global_mask = se->EventMask; in cs_set_event_mask()
4072 (void) cs_set_socket_event_mask(sp, cs_merge_event_masks(sp, client)); in cs_set_event_mask()
4114 cs_read_event_status(cs_socket_t *sp, client_t *client, event_t *revent, in cs_read_event_status() argument
4129 if (client->present & CONFIG_PINREPL_REG_PRESENT) { in cs_read_event_status()
4131 uint32_t newoffset = client->config_regs_offset; in cs_read_event_status()
4144 prrd = csx_Get8(cis_handle, client->config_regs.prr_p); in cs_read_event_status()
4145 prrd &= client->pin; in cs_read_event_status()
4152 client->pin); in cs_read_event_status()
4225 csx_Put8(cis_handle, client->config_regs.prr_p, in cs_read_event_status()
4236 if (client->pin) { in cs_read_event_status()
4290 if (!(client->present & CONFIG_PINREPL_REG_PRESENT) || in cs_read_event_status()
4291 ((client->present & CONFIG_PINREPL_REG_PRESENT) && in cs_read_event_status()
4292 !((client->pin & in cs_read_event_status()
4303 prrd, client->pin, gs->CardState); in cs_read_event_status()
4329 client_t *client; in cs_get_status() local
4354 if (!(client = cs_find_client(client_handle, &error))) { in cs_get_status()
4368 if ((error = cs_read_event_status(sp, client, NULL, &get_ss_status, in cs_get_status()
4386 if (!(client->flags & CLIENT_CARD_INSERTED)) in cs_get_status()
4494 cs_merge_event_masks(cs_socket_t *sp, client_t *client) in cs_merge_event_masks() argument
4504 event_mask = client->event_mask | client->global_mask | in cs_merge_event_masks()
4515 if (client->present & CONFIG_PINREPL_REG_PRESENT) { in cs_merge_event_masks()
4520 if ((client->pin & (PRR_WP_STATUS | PRR_WP_EVENT)) == in cs_merge_event_masks()
4525 if ((client->pin & (PRR_READY_STATUS | PRR_READY_EVENT)) == in cs_merge_event_masks()
4530 if ((client->pin & (PRR_BVD2_STATUS | PRR_BVD2_EVENT)) == in cs_merge_event_masks()
4535 if ((client->pin & (PRR_BVD1_STATUS | PRR_BVD1_EVENT)) == in cs_merge_event_masks()
4620 client_t *client; in cs_request_window() local
4666 if (!(client = cs_find_client(client_handle, &error))) { in cs_request_window()
4678 if (!(client->flags & CLIENT_CARD_INSERTED)) { in cs_request_window()
4755 client->memwin_count++; in cs_request_window()
4777 client_t *client; in cs_release_window() local
4808 if (!(client = cs_find_client(cw->client_handle, &error))) { in cs_release_window()
4823 if (!(--(client->memwin_count))) in cs_release_window()
4824 client->flags &= ~CLIENT_WIN_ALLOCATED; in cs_release_window()
4840 client_t *client; in cs_modify_window() local
4864 if (!(client = cs_find_client(cw->client_handle, &error))) { in cs_modify_window()
4876 if (!(client->flags & CLIENT_CARD_INSERTED)) { in cs_modify_window()
5027 client_t *client; in cs_map_mem_page() local
5063 if (!(client = cs_find_client(cw->client_handle, &error))) { in cs_map_mem_page()
5075 if (!(client->flags & CLIENT_CARD_INSERTED)) { in cs_map_mem_page()
5402 client_t *client; local
5457 if (!(client = cs_find_client(client_handle, &error))) {
5467 if (client->flags & REQ_CONFIGURATION_DONE) {
5476 if (client->flags & REQ_IO_DONE) {
5488 if (!(client->flags & CLIENT_CARD_INSERTED)) {
5641 client->io_alloc.Window1 = imw->number;
5642 client->io_alloc.Window2 = PCMCIA_MAX_WINDOWS;
5656 &client->io_alloc.Window1)) != CS_SUCCESS) {
5668 client->io_alloc.Window1,
5674 (void) cs_setup_io_win(socket_num, client->io_alloc.Window1,
5702 &client->io_alloc.Window2)) !=
5705 client->io_alloc.Window2,
5719 client->io_alloc.Window2,
5726 client->io_alloc.Window1,
5732 client->io_alloc.Window2,
5746 client->io_alloc.Window2 = PCMCIA_MAX_WINDOWS;
5756 client->io_alloc.BasePort1.base = ior->BasePort1.base;
5757 client->io_alloc.BasePort1.handle = ior->BasePort1.handle;
5758 client->io_alloc.NumPorts1 = ior->NumPorts1;
5759 client->io_alloc.Attributes1 = ior->Attributes1;
5760 client->io_alloc.BasePort2.base = ior->BasePort2.base;
5761 client->io_alloc.BasePort2.handle = ior->BasePort2.handle;
5762 client->io_alloc.NumPorts2 = ior->NumPorts2;
5763 client->io_alloc.Attributes2 = ior->Attributes2;
5764 client->io_alloc.IOAddrLines = ior->IOAddrLines;
5769 client->flags |= (REQ_IO_DONE | CLIENT_IO_ALLOCATED);
5794 client_t *client;
5823 if (!(client = cs_find_client(client_handle, &error))) {
5833 if (client->flags & REQ_CONFIGURATION_DONE) {
5842 if (!(client->flags & REQ_IO_DONE)) {
5856 if ((client->io_alloc.BasePort1 != ior->BasePort1) ||
5857 (client->io_alloc.NumPorts1 != ior->NumPorts1) ||
5858 (client->io_alloc.Attributes1 != ior->Attributes1) ||
5859 (client->io_alloc.BasePort2 != ior->BasePort2) ||
5860 (client->io_alloc.NumPorts2 != ior->NumPorts2) ||
5861 (client->io_alloc.Attributes2 != ior->Attributes2) ||
5862 (client->io_alloc.IOAddrLines != ior->IOAddrLines)) {
5911 (void) cs_setup_io_win(socket_num, client->io_alloc.Window1,
5916 if (client->io_alloc.Window2 != PCMCIA_MAX_WINDOWS)
5917 (void) cs_setup_io_win(socket_num, client->io_alloc.Window2,
5929 client->flags &= ~(REQ_IO_DONE | CLIENT_IO_ALLOCATED);
6145 client_t *client;
6177 if (!(client = cs_find_client(client_handle, &error))) {
6186 if (client->flags & REQ_CONFIGURATION_DONE) {
6194 if (client->flags & REQ_IRQ_DONE) {
6203 if (!(client->flags & CLIENT_CARD_INSERTED)) {
6236 client->irq_alloc.Attributes = irqr->Attributes;
6237 client->irq_alloc.irq = set_irq_handler.irq;
6238 client->irq_alloc.handler_id = set_irq_handler.handler_id;
6239 client->irq_alloc.irq_handler = (f_t *)set_irq_handler.handler;
6240 client->irq_alloc.irq_handler_arg1 = set_irq_handler.arg1;
6241 client->irq_alloc.irq_handler_arg2 = set_irq_handler.arg2;
6255 client->flags |= (REQ_IRQ_DONE | CLIENT_IRQ_ALLOCATED);
6279 client_t *client;
6306 if (!(client = cs_find_client(client_handle, &error))) {
6315 if (client->flags & REQ_CONFIGURATION_DONE) {
6323 if (!(client->flags & REQ_IRQ_DONE)) {
6335 clear_irq_handler.handler_id = client->irq_alloc.handler_id;
6336 clear_irq_handler.handler = (f_t *)client->irq_alloc.irq_handler;
6352 client->flags &= ~(REQ_IRQ_DONE | CLIENT_IRQ_ALLOCATED);
6388 client_t *client;
6442 if (!(client = cs_find_client(client_handle, &error))) {
6451 if (client->flags & REQ_CONFIGURATION_DONE) {
6460 if (!(client->flags & CLIENT_CARD_INSERTED)) {
6490 (int)client->irq_alloc.irq,
6496 set_socket.IREQRouting = client->irq_alloc.irq & ~IRQ_ENABLE;
6552 client->config_regs_offset = cr->ConfigBase;
6553 newoffset = client->config_regs_offset;
6571 crt = &client->config_regs;
6572 client->present = cr->Present;
6577 if (client->present & CONFIG_OPTION_REG_PRESENT)
6581 if (client->present & CONFIG_STATUS_REG_PRESENT)
6585 if (client->present & CONFIG_PINREPL_REG_PRESENT)
6589 if (client->present & CONFIG_COPY_REG_PRESENT)
6593 if (client->present & CONFIG_EXSTAT_REG_PRESENT)
6597 if (client->present & CONFIG_IOBASE0_REG_PRESENT)
6601 if (client->present & CONFIG_IOBASE1_REG_PRESENT)
6605 if (client->present & CONFIG_IOBASE2_REG_PRESENT)
6609 if (client->present & CONFIG_IOBASE3_REG_PRESENT)
6613 if (client->present & CONFIG_IOLIMIT_REG_PRESENT)
6622 client->pin = cr->Pin;
6629 client->pin, (int)client->config_regs_offset, newoffset,
6638 if ((client->present != 0) &&
6655 if (client->present & CONFIG_COPY_REG_PRESENT) {
6661 if (client->present & CONFIG_PINREPL_REG_PRESENT) {
6668 if (client->present & CONFIG_STATUS_REG_PRESENT) {
6674 if (client->present & CONFIG_EXSTAT_REG_PRESENT) {
6684 if (client->flags & REQ_IO_DONE) {
6685 if (client->present & CONFIG_IOBASE0_REG_PRESENT) {
6686 uint32_t base = client->io_alloc.BasePort1.base;
6687 uint32_t present = (client->present &
6700 if (client->present & CONFIG_IOLIMIT_REG_PRESENT) {
6701 uint32_t np = client->io_alloc.NumPorts1 +
6702 client->io_alloc.NumPorts2;
6738 set_socket.SCIntMask = cs_merge_event_masks(sp, client);
6749 if (client->present & CONFIG_OPTION_REG_PRESENT) {
6751 if (client->present & CONFIG_IOBASE0_REG_PRESENT)
6766 client->present, cis_handle, crt->cor_p);
6779 if (client->present & CONFIG_OPTION_REG_PRESENT) {
6796 client->flags |= REQ_CONFIGURATION_DONE;
6818 client_t *client;
6845 if (!(client = cs_find_client(client_handle, &error))) {
6854 if (!(client->flags & REQ_CONFIGURATION_DONE)) {
6875 crt = &client->config_regs;
6877 newoffset = client->config_regs_offset;
6895 client->flags &= ~REQ_CONFIGURATION_DONE;
6917 set_socket.SCIntMask = cs_merge_event_masks(sp, client);
6929 if (client->present & CONFIG_OPTION_REG_PRESENT)
6941 client->flags &= ~REQ_CONFIGURATION_DONE;
6968 client_t *client;
6992 if (!(client = cs_find_client(client_handle, &error))) {
7001 if (!(client->flags & REQ_CONFIGURATION_DONE)) {
7010 if (!(client->flags & CLIENT_CARD_INSERTED)) {
7030 sp->socket_num, (int)client->irq_alloc.irq,
7049 (client->present & CONFIG_OPTION_REG_PRESENT)) {
7050 config_regs_t *crt = &client->config_regs;
7052 uint32_t newoffset = client->config_regs_offset;
7141 client_t *client;
7171 if (!(client = cs_find_client(client_handle, &error))) {
7180 if (!(client->flags & CLIENT_CARD_INSERTED)) {
7189 if (!(client->flags & REQ_CONFIGURATION_DONE)) {
7199 newoffset = client->config_regs_offset + acr->Offset;
7219 (int)client->config_regs_offset,
7280 client_t *client;
7294 client = sp->client_list;
7295 while (client) {
7297 if (GET_CLIENT_FUNCTION(client->client_handle) == fn) {
7304 if (!(client->flags & CLIENT_CARD_INSERTED)) {
7316 client = client->next;
7622 client_t *client;
7645 if (!(client = cs_find_client(client_handle, &error))) {
7655 if (!(client->flags & CLIENT_CARD_INSERTED)) {
7664 ss_make_device_node.dip = client->dip;
7758 client_t *client;
7800 client = sp->client_list;
7801 while (client) {
7808 client->driver_name,
7809 (int)client->client_handle);
7813 if (client->driver_name != NULL) {
7814 if (!(strcmp(client->driver_name, cdi->driver_name))) {
7815 cdi->dip = client->dip;
7816 cdi->instance = client->instance;
7822 client->driver_name, client->instance,
7823 (int)client->client_handle);
7831 client = client->next;
8331 client_t *client;
8371 if (!(client = cs_find_client(client_handle, &ret))) {
8380 if (client->flags & CLIENT_CSI_CLIENT)
8389 *clp = client;
8651 client_t *client;
8667 if ((client = cs_find_client(client_handle, &ret)) == NULL) {
8677 if (!((client->event_mask | client->global_mask) &
8684 cinfo = &client->event_callback_args.client_info;
8689 client->events |= CS_EVENT_CLIENT_INFO;
8703 ci->Attributes |= (client->flags & (CS_CLIENT_INFO_CLIENT_MASK |
8705 (void) strcpy(ci->DriverName, client->driver_name);
8706 if (cs_card_for_client(client))
8740 client_t *client;
8750 if ((client = sp->client_list) != NULL)
8765 if ((client = sp->client_list) == NULL) {
8773 fnc->client_handle = client->client_handle;
8785 if ((client = cs_find_client(fnc->client_handle,
8790 if ((client = client->next) == NULL) {
8796 if ((client = sp->client_list) != NULL)
8813 if ((client = cs_find_client(fnc->client_handle,
8818 if ((client = client->next) == NULL) {
8826 fnc->client_handle = client->client_handle;