Lines Matching refs:socket
112 struct yenta_socket *socket = container_of(sock, struct yenta_socket, socket); in topic97_zoom_video() local
115 reg_zv = config_readb(socket, TOPIC97_ZOOM_VIDEO_CONTROL); in topic97_zoom_video()
118 config_writeb(socket, TOPIC97_ZOOM_VIDEO_CONTROL, reg_zv); in topic97_zoom_video()
120 reg = config_readb(socket, TOPIC97_AUDIO_VIDEO_SWITCH); in topic97_zoom_video()
122 config_writeb(socket, TOPIC97_AUDIO_VIDEO_SWITCH, reg); in topic97_zoom_video()
125 config_writeb(socket, TOPIC97_ZOOM_VIDEO_CONTROL, reg_zv); in topic97_zoom_video()
127 reg = config_readb(socket, TOPIC97_AUDIO_VIDEO_SWITCH); in topic97_zoom_video()
129 config_writeb(socket, TOPIC97_AUDIO_VIDEO_SWITCH, reg); in topic97_zoom_video()
133 static int topic97_override(struct yenta_socket *socket) in topic97_override() argument
136 socket->socket.zoom_video = topic97_zoom_video; in topic97_override()
141 static int topic95_override(struct yenta_socket *socket) in topic95_override() argument
147 fctrl = exca_readb(socket, TOPIC_EXCA_IF_CONTROL); in topic95_override()
148 exca_writeb(socket, TOPIC_EXCA_IF_CONTROL, fctrl | TOPIC_EXCA_IFC_33V_ENA); in topic95_override()
151 socket->flags |= YENTA_16BIT_POWER_EXCA | YENTA_16BIT_POWER_DF; in topic95_override()
157 if (pci_read_config_word(socket->dev, TOPIC_PCI_CFG_PPBCN, &ppbcn) == 0 in topic95_override()
158 && socket->dev->revision <= 7 in topic95_override()
161 pci_write_config_word(socket->dev, TOPIC_PCI_CFG_PPBCN, ppbcn); in topic95_override()
162 dev_info(&socket->dev->dev, "Disabled ToPIC95 Cardbus write buffers.\n"); in topic95_override()