Lines Matching full:socket

124 #define rl_misc(socket)		((socket)->private[0])  argument
125 #define rl_ctl(socket) ((socket)->private[1]) argument
126 #define rl_io(socket) ((socket)->private[2]) argument
127 #define rl_mem(socket) ((socket)->private[3]) argument
128 #define rl_config(socket) ((socket)->private[4]) argument
133 struct yenta_socket *socket = container_of(sock, struct yenta_socket, socket); in ricoh_zoom_video() local
135 reg = config_readb(socket, RL5C4XX_MISC_CONTROL); in ricoh_zoom_video()
142 config_writeb(socket, RL5C4XX_MISC_CONTROL, reg); in ricoh_zoom_video()
145 static void ricoh_set_zv(struct yenta_socket *socket) in ricoh_set_zv() argument
147 if(socket->dev->vendor == PCI_VENDOR_ID_RICOH) in ricoh_set_zv()
149 switch(socket->dev->device) in ricoh_set_zv()
153 socket->socket.zoom_video = ricoh_zoom_video; in ricoh_set_zv()
159 static void ricoh_save_state(struct yenta_socket *socket) in ricoh_save_state() argument
161 rl_misc(socket) = config_readw(socket, RL5C4XX_MISC); in ricoh_save_state()
162 rl_ctl(socket) = config_readw(socket, RL5C4XX_16BIT_CTL); in ricoh_save_state()
163 rl_io(socket) = config_readw(socket, RL5C4XX_16BIT_IO_0); in ricoh_save_state()
164 rl_mem(socket) = config_readw(socket, RL5C4XX_16BIT_MEM_0); in ricoh_save_state()
165 rl_config(socket) = config_readw(socket, RL5C4XX_CONFIG); in ricoh_save_state()
168 static void ricoh_restore_state(struct yenta_socket *socket) in ricoh_restore_state() argument
170 config_writew(socket, RL5C4XX_MISC, rl_misc(socket)); in ricoh_restore_state()
171 config_writew(socket, RL5C4XX_16BIT_CTL, rl_ctl(socket)); in ricoh_restore_state()
172 config_writew(socket, RL5C4XX_16BIT_IO_0, rl_io(socket)); in ricoh_restore_state()
173 config_writew(socket, RL5C4XX_16BIT_MEM_0, rl_mem(socket)); in ricoh_restore_state()
174 config_writew(socket, RL5C4XX_CONFIG, rl_config(socket)); in ricoh_restore_state()
181 static int ricoh_override(struct yenta_socket *socket) in ricoh_override() argument
185 config = config_readw(socket, RL5C4XX_CONFIG); in ricoh_override()
190 if(socket->dev->device < PCI_DEVICE_ID_RICOH_RL5C475) { in ricoh_override()
196 config_writew(socket, RL5C4XX_16BIT_CTL, ctl); in ricoh_override()
197 config_writew(socket, RL5C4XX_CONFIG, config); in ricoh_override()
199 ricoh_set_zv(socket); in ricoh_override()