Lines Matching refs:client

258 	client_t *client;  in cs_init()  local
274 client = &cs_socket_services_client; in cs_init()
275 bzero((caddr_t)client, sizeof (client_t)); in cs_init()
276 client->client_handle = CS_SS_CLIENT_HANDLE; in cs_init()
277 client->flags |= (INFO_SOCKET_SERVICES | CLIENT_CARD_INSERTED); in cs_init()
924 client_t *client; in cs_parse_tuple() local
929 &fn, &sp, &client)) != CS_SUCCESS) in cs_parse_tuple()
936 if (!(client->flags & CLIENT_CARD_INSERTED)) in cs_parse_tuple()
1064 client_t *client; in cs_get_firstnext_tuple() local
1069 &sp, &client)) != CS_SUCCESS) in cs_get_firstnext_tuple()
1076 if (!(client->flags & CLIENT_CARD_INSERTED)) in cs_get_firstnext_tuple()
1238 client_t *client; in cs_get_tuple_data() local
1246 &sp, &client)) != CS_SUCCESS) in cs_get_tuple_data()
1253 if (!(client->flags & CLIENT_CARD_INSERTED)) in cs_get_tuple_data()
1424 client_t *client; in cs_validate_cis() local
1429 &sp, &client)) != CS_SUCCESS) in cs_validate_cis()
1436 if (!(client->flags & CLIENT_CARD_INSERTED)) in cs_validate_cis()
1833 client_t *client, *cclp; in cs_add_client_to_socket() local
1857 client = sp->client_list; in cs_add_client_to_socket()
1858 while (client) { in cs_add_client_to_socket()
1860 (client->dip == cr->dip)) { in cs_add_client_to_socket()
1869 (int)client->client_handle); in cs_add_client_to_socket()
1872 client = client->next; in cs_add_client_to_socket()
1909 if (!(client = cs_find_client(*ch, &error))) { in cs_add_client_to_socket()
1923 client->dip = cr->dip; in cs_add_client_to_socket()
1925 client->driver_name = kmem_zalloc(strlen(cr->driver_name) + 1, in cs_add_client_to_socket()
1927 (void) strcpy(client->driver_name, cr->driver_name); in cs_add_client_to_socket()
1928 client->instance = ddi_get_instance(cr->dip); in cs_add_client_to_socket()
1933 client->flags = (cr->Attributes & INFO_CLIENT_TYPE_MASK); in cs_add_client_to_socket()
1934 client->event_callback_handler = cr->event_handler; in cs_add_client_to_socket()
1936 (caddr_t)&client->event_callback_args, in cs_add_client_to_socket()
1942 client->event_callback_args.client_handle = *ch; in cs_add_client_to_socket()
1948 client->io_alloc.Window1 = PCMCIA_MAX_WINDOWS; in cs_add_client_to_socket()
1949 client->io_alloc.Window2 = PCMCIA_MAX_WINDOWS; in cs_add_client_to_socket()
1964 client->global_mask = cr->EventMask; in cs_add_client_to_socket()
1971 client->flags |= CLIENT_CSI_CLIENT; in cs_add_client_to_socket()
1978 client->flags |= CLIENT_SUPER_CLIENT; in cs_add_client_to_socket()
1984 client->flags |= (cr->Attributes & INFO_CARD_FLAGS_MASK); in cs_add_client_to_socket()
2007 client->pending_events = CS_EVENT_REGISTRATION_COMPLETE; in cs_add_client_to_socket()
2021 if (client->flags & CLIENT_CSI_CLIENT) { in cs_add_client_to_socket()
2038 if (cs_card_for_client(client) && (cie != 0)) { in cs_add_client_to_socket()
2039 client->pending_events |= CS_EVENT_CARD_INSERTION; in cs_add_client_to_socket()
2040 client->flags |= CLIENT_CARD_INSERTED; in cs_add_client_to_socket()
2057 client_t *client; in cs_deregister_client() local
2079 if (!(client = cs_find_client(client_handle, &error))) { in cs_deregister_client()
2089 if (client->flags & (CLIENT_IO_ALLOCATED | in cs_deregister_client()
2100 if (client->flags & CLIENT_MTD_IN_PROGRESS) { in cs_deregister_client()
2112 if (client->flags & INFO_MTD_CLIENT) in cs_deregister_client()
2115 if (client->flags & CLIENT_SUPER_CLIENT) in cs_deregister_client()
2118 kmem_free(client->driver_name, strlen(client->driver_name) + 1); in cs_deregister_client()
2450 client_t *client; in cs_event() local
2530 client = sp->client_list; in cs_event()
2535 while (client) { in cs_event()
2536 clp = client; in cs_event()
2537 client = client->next; in cs_event()
2539 client = clp; in cs_event()
2542 while (client) { in cs_event()
2543 client->events |= ((sp->events & ~CS_EVENT_CARD_INSERTION) & in cs_event()
2544 (client->event_mask | client->global_mask)); in cs_event()
2545 if (client->flags & ct->type) { in cs_event()
2550 sn, client->driver_name, in cs_event()
2551 (int)client->events, in cs_event()
2552 (int)client->flags); in cs_event()
2561 if (client->events & CS_EVENT_PM_SUSPEND) { in cs_event()
2562 if (client->flags & CLIENT_CARD_INSERTED) { in cs_event()
2563 CLIENT_EVENT_CALLBACK(client, CS_EVENT_PM_SUSPEND, in cs_event()
2566 client->events &= ~CS_EVENT_PM_SUSPEND; in cs_event()
2569 if (client->events & CS_EVENT_CARD_REMOVAL) { in cs_event()
2570 if (client->flags & CLIENT_CARD_INSERTED) { in cs_event()
2571 client->flags &= ~(CLIENT_CARD_INSERTED | in cs_event()
2573 CLIENT_EVENT_CALLBACK(client, in cs_event()
2580 if ((client->event_mask | client->global_mask) & in cs_event()
2582 client->events |= CS_EVENT_CARD_REMOVAL_LOWP; in cs_event()
2585 client->events &= ~CS_EVENT_CARD_REMOVAL; in cs_event()
2590 client = client->prev; in cs_event()
2592 client = client->next; in cs_event()
2889 client_t *client; in cs_card_insertion() local
2902 client = sp->client_list; in cs_card_insertion()
2903 while (client) { in cs_card_insertion()
2904 client->events |= (CS_EVENT_CARD_INSERTION & in cs_card_insertion()
2905 (client->event_mask | client->global_mask)); in cs_card_insertion()
2906 client = client->next; in cs_card_insertion()
3242 client_t *client; in cs_event_thread() local
3370 client = sp->client_list; in cs_event_thread()
3372 while (client) { in cs_event_thread()
3382 if (client->flags & CLIENT_CARD_INSERTED) { in cs_event_thread()
3383 (void) cs_read_event_status(sp, client, in cs_event_thread()
3386 client->events = ((client->events | revent) & in cs_event_thread()
3387 (client->event_mask | in cs_event_thread()
3388 client->global_mask)); in cs_event_thread()
3390 client = client->next; in cs_event_thread()
3412 client = sp->client_list; in cs_event_thread()
3417 while (client) { in cs_event_thread()
3418 clp = client; in cs_event_thread()
3419 client = client->next; in cs_event_thread()
3421 client = clp; in cs_event_thread()
3424 while (client) { in cs_event_thread()
3425 if (client->flags & ct->type) { in cs_event_thread()
3429 while (client->events) { in cs_event_thread()
3431 switch (event = CS_BIT_GET(client->events, bit)) { in cs_event_thread()
3438 CLIENT_EVENT_CALLBACK(client, event, in cs_event_thread()
3452 if (cs_card_for_client(client)) { in cs_event_thread()
3456 send_insertion = client->flags; in cs_event_thread()
3457 client->flags |= in cs_event_thread()
3463 CLIENT_EVENT_CALLBACK(client, in cs_event_thread()
3474 client->flags &= ~CLIENT_SENT_INSERTION; in cs_event_thread()
3476 CLIENT_EVENT_CALLBACK(client, in cs_event_thread()
3488 if (client->flags & CLIENT_CARD_INSERTED) { in cs_event_thread()
3490 client->flags &= in cs_event_thread()
3494 CLIENT_EVENT_CALLBACK(client, event, in cs_event_thread()
3505 if (client->flags & CLIENT_CARD_INSERTED) { in cs_event_thread()
3510 (void) cs_read_event_status(sp, client, in cs_event_thread()
3514 client->event_callback_args.info = in cs_event_thread()
3518 client->event_callback_args.info = in cs_event_thread()
3524 CLIENT_EVENT_CALLBACK(client, event, in cs_event_thread()
3529 CLIENT_EVENT_CALLBACK(client, event, in cs_event_thread()
3535 if (client->flags & CLIENT_CARD_INSERTED) { in cs_event_thread()
3536 CLIENT_EVENT_CALLBACK(client, event, in cs_event_thread()
3542 CS_BIT_CLEAR(client->events, bit); in cs_event_thread()
3548 client = client->prev; in cs_event_thread()
3550 client = client->next; in cs_event_thread()
3586 cs_card_for_client(client_t *client) in cs_card_for_client() argument
3603 if ((client->flags & (CLIENT_SUPER_CLIENT | CLIENT_CSI_CLIENT)) && in cs_card_for_client()
3604 ((client->global_mask | client->event_mask) & in cs_card_for_client()
3614 if (ddi_getprop(DDI_DEV_T_ANY, client->dip, (DDI_PROP_CANSLEEP | in cs_card_for_client()
3621 (int)client->client_handle, in cs_card_for_client()
3622 client->driver_name, in cs_card_for_client()
3747 client_t *client; in cs_request_socket_mask() local
3769 if (!(client = cs_find_client(client_handle, &error))) { in cs_request_socket_mask()
3780 if (client->flags & REQ_SOCKET_MASK_DONE) { in cs_request_socket_mask()
3792 client->event_mask = se->EventMask; in cs_request_socket_mask()
3798 if (client->pending_events) { in cs_request_socket_mask()
3799 client->events |= client->pending_events; in cs_request_socket_mask()
3800 client->pending_events = 0; in cs_request_socket_mask()
3805 (int)client->client_handle, in cs_request_socket_mask()
3806 client->driver_name, in cs_request_socket_mask()
3807 (int)client->events); in cs_request_socket_mask()
3812 client->flags |= REQ_SOCKET_MASK_DONE; in cs_request_socket_mask()
3818 (void) cs_set_socket_event_mask(sp, cs_merge_event_masks(sp, client)); in cs_request_socket_mask()
3825 if (client->events) { in cs_request_socket_mask()
3832 (int)client->client_handle, in cs_request_socket_mask()
3833 client->driver_name, in cs_request_socket_mask()
3834 (int)client->events); in cs_request_socket_mask()
3856 client_t *client; in cs_release_socket_mask() local
3878 if (!(client = cs_find_client(client_handle, &error))) { in cs_release_socket_mask()
3889 if (!(client->flags & REQ_SOCKET_MASK_DONE)) { in cs_release_socket_mask()
3902 client->event_mask = 0; in cs_release_socket_mask()
3903 client->global_mask = 0; in cs_release_socket_mask()
3904 client->flags &= ~REQ_SOCKET_MASK_DONE; in cs_release_socket_mask()
3910 (void) cs_set_socket_event_mask(sp, cs_merge_event_masks(sp, client)); in cs_release_socket_mask()
3925 client_t *client; in cs_get_event_mask() local
3947 if (!(client = cs_find_client(client_handle, &error))) { in cs_get_event_mask()
3961 if (!(client->flags & CLIENT_CARD_INSERTED)) { in cs_get_event_mask()
3980 if (!(client->flags & REQ_SOCKET_MASK_DONE)) { in cs_get_event_mask()
3985 se->EventMask = client->event_mask; in cs_get_event_mask()
3987 se->EventMask = client->global_mask; in cs_get_event_mask()
4003 client_t *client; in cs_set_event_mask() local
4025 if (!(client = cs_find_client(client_handle, &error))) { in cs_set_event_mask()
4037 if (!(client->flags & CLIENT_CARD_INSERTED)) { in cs_set_event_mask()
4056 if (!(client->flags & REQ_SOCKET_MASK_DONE)) { in cs_set_event_mask()
4061 client->event_mask = se->EventMask; in cs_set_event_mask()
4063 client->global_mask = se->EventMask; in cs_set_event_mask()
4070 (void) cs_set_socket_event_mask(sp, cs_merge_event_masks(sp, client)); in cs_set_event_mask()
4112 cs_read_event_status(cs_socket_t *sp, client_t *client, event_t *revent, in cs_read_event_status() argument
4127 if (client->present & CONFIG_PINREPL_REG_PRESENT) { in cs_read_event_status()
4129 uint32_t newoffset = client->config_regs_offset; in cs_read_event_status()
4142 prrd = csx_Get8(cis_handle, client->config_regs.prr_p); in cs_read_event_status()
4143 prrd &= client->pin; in cs_read_event_status()
4150 client->pin); in cs_read_event_status()
4223 csx_Put8(cis_handle, client->config_regs.prr_p, in cs_read_event_status()
4234 if (client->pin) { in cs_read_event_status()
4288 if (!(client->present & CONFIG_PINREPL_REG_PRESENT) || in cs_read_event_status()
4289 ((client->present & CONFIG_PINREPL_REG_PRESENT) && in cs_read_event_status()
4290 !((client->pin & in cs_read_event_status()
4301 prrd, client->pin, gs->CardState); in cs_read_event_status()
4327 client_t *client; in cs_get_status() local
4352 if (!(client = cs_find_client(client_handle, &error))) { in cs_get_status()
4366 if ((error = cs_read_event_status(sp, client, NULL, &get_ss_status, in cs_get_status()
4384 if (!(client->flags & CLIENT_CARD_INSERTED)) in cs_get_status()
4492 cs_merge_event_masks(cs_socket_t *sp, client_t *client) in cs_merge_event_masks() argument
4502 event_mask = client->event_mask | client->global_mask | in cs_merge_event_masks()
4513 if (client->present & CONFIG_PINREPL_REG_PRESENT) { in cs_merge_event_masks()
4518 if ((client->pin & (PRR_WP_STATUS | PRR_WP_EVENT)) == in cs_merge_event_masks()
4523 if ((client->pin & (PRR_READY_STATUS | PRR_READY_EVENT)) == in cs_merge_event_masks()
4528 if ((client->pin & (PRR_BVD2_STATUS | PRR_BVD2_EVENT)) == in cs_merge_event_masks()
4533 if ((client->pin & (PRR_BVD1_STATUS | PRR_BVD1_EVENT)) == in cs_merge_event_masks()
4618 client_t *client; in cs_request_window() local
4664 if (!(client = cs_find_client(client_handle, &error))) { in cs_request_window()
4676 if (!(client->flags & CLIENT_CARD_INSERTED)) { in cs_request_window()
4753 client->memwin_count++; in cs_request_window()
4775 client_t *client; in cs_release_window() local
4806 if (!(client = cs_find_client(cw->client_handle, &error))) { in cs_release_window()
4821 if (!(--(client->memwin_count))) in cs_release_window()
4822 client->flags &= ~CLIENT_WIN_ALLOCATED; in cs_release_window()
4838 client_t *client; in cs_modify_window() local
4862 if (!(client = cs_find_client(cw->client_handle, &error))) { in cs_modify_window()
4874 if (!(client->flags & CLIENT_CARD_INSERTED)) { in cs_modify_window()
5025 client_t *client; in cs_map_mem_page() local
5061 if (!(client = cs_find_client(cw->client_handle, &error))) { in cs_map_mem_page()
5073 if (!(client->flags & CLIENT_CARD_INSERTED)) { in cs_map_mem_page()
5400 client_t *client; local
5455 if (!(client = cs_find_client(client_handle, &error))) {
5465 if (client->flags & REQ_CONFIGURATION_DONE) {
5474 if (client->flags & REQ_IO_DONE) {
5486 if (!(client->flags & CLIENT_CARD_INSERTED)) {
5639 client->io_alloc.Window1 = imw->number;
5640 client->io_alloc.Window2 = PCMCIA_MAX_WINDOWS;
5654 &client->io_alloc.Window1)) != CS_SUCCESS) {
5666 client->io_alloc.Window1,
5672 (void) cs_setup_io_win(socket_num, client->io_alloc.Window1,
5700 &client->io_alloc.Window2)) !=
5703 client->io_alloc.Window2,
5717 client->io_alloc.Window2,
5724 client->io_alloc.Window1,
5730 client->io_alloc.Window2,
5744 client->io_alloc.Window2 = PCMCIA_MAX_WINDOWS;
5754 client->io_alloc.BasePort1.base = ior->BasePort1.base;
5755 client->io_alloc.BasePort1.handle = ior->BasePort1.handle;
5756 client->io_alloc.NumPorts1 = ior->NumPorts1;
5757 client->io_alloc.Attributes1 = ior->Attributes1;
5758 client->io_alloc.BasePort2.base = ior->BasePort2.base;
5759 client->io_alloc.BasePort2.handle = ior->BasePort2.handle;
5760 client->io_alloc.NumPorts2 = ior->NumPorts2;
5761 client->io_alloc.Attributes2 = ior->Attributes2;
5762 client->io_alloc.IOAddrLines = ior->IOAddrLines;
5767 client->flags |= (REQ_IO_DONE | CLIENT_IO_ALLOCATED);
5792 client_t *client;
5821 if (!(client = cs_find_client(client_handle, &error))) {
5831 if (client->flags & REQ_CONFIGURATION_DONE) {
5840 if (!(client->flags & REQ_IO_DONE)) {
5854 if ((client->io_alloc.BasePort1 != ior->BasePort1) ||
5855 (client->io_alloc.NumPorts1 != ior->NumPorts1) ||
5856 (client->io_alloc.Attributes1 != ior->Attributes1) ||
5857 (client->io_alloc.BasePort2 != ior->BasePort2) ||
5858 (client->io_alloc.NumPorts2 != ior->NumPorts2) ||
5859 (client->io_alloc.Attributes2 != ior->Attributes2) ||
5860 (client->io_alloc.IOAddrLines != ior->IOAddrLines)) {
5909 (void) cs_setup_io_win(socket_num, client->io_alloc.Window1,
5914 if (client->io_alloc.Window2 != PCMCIA_MAX_WINDOWS)
5915 (void) cs_setup_io_win(socket_num, client->io_alloc.Window2,
5927 client->flags &= ~(REQ_IO_DONE | CLIENT_IO_ALLOCATED);
6143 client_t *client;
6175 if (!(client = cs_find_client(client_handle, &error))) {
6184 if (client->flags & REQ_CONFIGURATION_DONE) {
6192 if (client->flags & REQ_IRQ_DONE) {
6201 if (!(client->flags & CLIENT_CARD_INSERTED)) {
6234 client->irq_alloc.Attributes = irqr->Attributes;
6235 client->irq_alloc.irq = set_irq_handler.irq;
6236 client->irq_alloc.handler_id = set_irq_handler.handler_id;
6237 client->irq_alloc.irq_handler = (f_t *)set_irq_handler.handler;
6238 client->irq_alloc.irq_handler_arg1 = set_irq_handler.arg1;
6239 client->irq_alloc.irq_handler_arg2 = set_irq_handler.arg2;
6253 client->flags |= (REQ_IRQ_DONE | CLIENT_IRQ_ALLOCATED);
6277 client_t *client;
6304 if (!(client = cs_find_client(client_handle, &error))) {
6313 if (client->flags & REQ_CONFIGURATION_DONE) {
6321 if (!(client->flags & REQ_IRQ_DONE)) {
6333 clear_irq_handler.handler_id = client->irq_alloc.handler_id;
6334 clear_irq_handler.handler = (f_t *)client->irq_alloc.irq_handler;
6350 client->flags &= ~(REQ_IRQ_DONE | CLIENT_IRQ_ALLOCATED);
6386 client_t *client;
6440 if (!(client = cs_find_client(client_handle, &error))) {
6449 if (client->flags & REQ_CONFIGURATION_DONE) {
6458 if (!(client->flags & CLIENT_CARD_INSERTED)) {
6488 (int)client->irq_alloc.irq,
6494 set_socket.IREQRouting = client->irq_alloc.irq & ~IRQ_ENABLE;
6550 client->config_regs_offset = cr->ConfigBase;
6551 newoffset = client->config_regs_offset;
6569 crt = &client->config_regs;
6570 client->present = cr->Present;
6575 if (client->present & CONFIG_OPTION_REG_PRESENT)
6579 if (client->present & CONFIG_STATUS_REG_PRESENT)
6583 if (client->present & CONFIG_PINREPL_REG_PRESENT)
6587 if (client->present & CONFIG_COPY_REG_PRESENT)
6591 if (client->present & CONFIG_EXSTAT_REG_PRESENT)
6595 if (client->present & CONFIG_IOBASE0_REG_PRESENT)
6599 if (client->present & CONFIG_IOBASE1_REG_PRESENT)
6603 if (client->present & CONFIG_IOBASE2_REG_PRESENT)
6607 if (client->present & CONFIG_IOBASE3_REG_PRESENT)
6611 if (client->present & CONFIG_IOLIMIT_REG_PRESENT)
6620 client->pin = cr->Pin;
6627 client->pin, (int)client->config_regs_offset, newoffset,
6636 if ((client->present != 0) &&
6653 if (client->present & CONFIG_COPY_REG_PRESENT) {
6659 if (client->present & CONFIG_PINREPL_REG_PRESENT) {
6666 if (client->present & CONFIG_STATUS_REG_PRESENT) {
6672 if (client->present & CONFIG_EXSTAT_REG_PRESENT) {
6682 if (client->flags & REQ_IO_DONE) {
6683 if (client->present & CONFIG_IOBASE0_REG_PRESENT) {
6684 uint32_t base = client->io_alloc.BasePort1.base;
6685 uint32_t present = (client->present &
6698 if (client->present & CONFIG_IOLIMIT_REG_PRESENT) {
6699 uint32_t np = client->io_alloc.NumPorts1 +
6700 client->io_alloc.NumPorts2;
6736 set_socket.SCIntMask = cs_merge_event_masks(sp, client);
6747 if (client->present & CONFIG_OPTION_REG_PRESENT) {
6749 if (client->present & CONFIG_IOBASE0_REG_PRESENT)
6764 client->present, cis_handle, crt->cor_p);
6777 if (client->present & CONFIG_OPTION_REG_PRESENT) {
6794 client->flags |= REQ_CONFIGURATION_DONE;
6816 client_t *client;
6843 if (!(client = cs_find_client(client_handle, &error))) {
6852 if (!(client->flags & REQ_CONFIGURATION_DONE)) {
6873 crt = &client->config_regs;
6875 newoffset = client->config_regs_offset;
6893 client->flags &= ~REQ_CONFIGURATION_DONE;
6915 set_socket.SCIntMask = cs_merge_event_masks(sp, client);
6927 if (client->present & CONFIG_OPTION_REG_PRESENT)
6939 client->flags &= ~REQ_CONFIGURATION_DONE;
6966 client_t *client;
6990 if (!(client = cs_find_client(client_handle, &error))) {
6999 if (!(client->flags & REQ_CONFIGURATION_DONE)) {
7008 if (!(client->flags & CLIENT_CARD_INSERTED)) {
7028 sp->socket_num, (int)client->irq_alloc.irq,
7047 (client->present & CONFIG_OPTION_REG_PRESENT)) {
7048 config_regs_t *crt = &client->config_regs;
7050 uint32_t newoffset = client->config_regs_offset;
7139 client_t *client;
7169 if (!(client = cs_find_client(client_handle, &error))) {
7178 if (!(client->flags & CLIENT_CARD_INSERTED)) {
7187 if (!(client->flags & REQ_CONFIGURATION_DONE)) {
7197 newoffset = client->config_regs_offset + acr->Offset;
7217 (int)client->config_regs_offset,
7278 client_t *client;
7292 client = sp->client_list;
7293 while (client) {
7295 if (GET_CLIENT_FUNCTION(client->client_handle) == fn) {
7302 if (!(client->flags & CLIENT_CARD_INSERTED)) {
7314 client = client->next;
7620 client_t *client;
7643 if (!(client = cs_find_client(client_handle, &error))) {
7653 if (!(client->flags & CLIENT_CARD_INSERTED)) {
7662 ss_make_device_node.dip = client->dip;
7756 client_t *client;
7798 client = sp->client_list;
7799 while (client) {
7806 client->driver_name,
7807 (int)client->client_handle);
7811 if (client->driver_name != NULL) {
7812 if (!(strcmp(client->driver_name, cdi->driver_name))) {
7813 cdi->dip = client->dip;
7814 cdi->instance = client->instance;
7820 client->driver_name, client->instance,
7821 (int)client->client_handle);
7829 client = client->next;
8329 client_t *client;
8369 if (!(client = cs_find_client(client_handle, &ret))) {
8378 if (client->flags & CLIENT_CSI_CLIENT)
8387 *clp = client;
8649 client_t *client;
8665 if ((client = cs_find_client(client_handle, &ret)) == NULL) {
8675 if (!((client->event_mask | client->global_mask) &
8682 cinfo = &client->event_callback_args.client_info;
8687 client->events |= CS_EVENT_CLIENT_INFO;
8701 ci->Attributes |= (client->flags & (CS_CLIENT_INFO_CLIENT_MASK |
8703 (void) strcpy(ci->DriverName, client->driver_name);
8704 if (cs_card_for_client(client))
8738 client_t *client;
8748 if ((client = sp->client_list) != NULL)
8763 if ((client = sp->client_list) == NULL) {
8771 fnc->client_handle = client->client_handle;
8783 if ((client = cs_find_client(fnc->client_handle,
8788 if ((client = client->next) == NULL) {
8794 if ((client = sp->client_list) != NULL)
8811 if ((client = cs_find_client(fnc->client_handle,
8816 if ((client = client->next) == NULL) {
8824 fnc->client_handle = client->client_handle;