Lines Matching defs:sock
371 static void set_bridge_state(int sock)
374 indirect_write(sock, I365_GBLCTL,0x00);
375 indirect_write(sock, I365_GENCTL,0x00);
377 indirect_setbit(sock, I365_INTCTL,0x08);
386 static int i82092aa_init(struct pcmcia_socket *sock)
397 i82092aa_set_io_map(sock, &io);
401 i82092aa_set_mem_map(sock, &mem);
410 unsigned int sock = container_of(socket, struct socket_info, socket)->number;
415 status = indirect_read(sock,I365_STATUS); /* Interface Status Register */
424 if (indirect_read(sock, I365_INTCTL) & I365_PC_IOCARD) {
453 unsigned int sock = container_of(socket, struct socket_info, socket)->number;
460 set_bridge_state(sock);
470 indirect_write(sock,I365_INTCTL,reg); /* IGENC, Interrupt and General Control Register */
489 printk("setting voltage to Vcc to 5V on socket %i\n",sock);
501 printk("not setting Vpp on socket %i\n",sock);
504 printk("setting Vpp to 5.0 for socket %i\n",sock);
517 if (reg != indirect_read(sock,I365_POWER)) /* only write if changed */
518 indirect_write(sock,I365_POWER,reg);
541 indirect_write(sock,I365_CSCINT,reg);
542 (void)indirect_read(sock,I365_CSC);
550 unsigned int sock = container_of(socket, struct socket_info, socket)->number;
568 if (indirect_read(sock, I365_ADDRWIN) & I365_ENA_IO(map))
569 indirect_resetbit(sock, I365_ADDRWIN, I365_ENA_IO(map));
574 indirect_write16(sock,I365_IO(map)+I365_W_START,io->start);
575 indirect_write16(sock,I365_IO(map)+I365_W_STOP,io->stop);
577 ioctl = indirect_read(sock,I365_IOCTL) & ~I365_IOCTL_MASK(map);
582 indirect_write(sock,I365_IOCTL,ioctl);
586 indirect_setbit(sock,I365_ADDRWIN,I365_ENA_IO(map));
595 unsigned int sock = sock_info->number;
616 sock,
624 if (indirect_read(sock, I365_ADDRWIN) & I365_ENA_MEM(map))
625 indirect_resetbit(sock, I365_ADDRWIN, I365_ENA_MEM(map));
628 /* printk("set_mem_map: Setting map %i range to %x - %x on socket %i, speed is %i, active = %i \n",map, region.start,region.end,sock,mem->speed,mem->flags & MAP_ACTIVE); */
637 indirect_write16(sock,base+I365_W_START,i);
656 indirect_write16(sock,base+I365_W_STOP,i);
664 /* printk("requesting attribute memory for socket %i\n",sock);*/
667 /* printk("requesting normal memory for socket %i\n",sock);*/
669 indirect_write16(sock,base+I365_W_OFF,i);
673 indirect_setbit(sock, I365_ADDRWIN, I365_ENA_MEM(map));