Home
last modified time | relevance | path

Searched refs:sock (Results 1 – 25 of 89) sorted by relevance

1234

/drivers/pcmcia/
Ddb1xxx_ss.c69 static int db1300_card_inserted(struct db1x_pcmcia_sock *sock) in db1300_card_inserted() argument
75 static int db1200_card_inserted(struct db1x_pcmcia_sock *sock) in db1200_card_inserted() argument
80 return sigstat & 1 << (8 + 2 * sock->nr); in db1200_card_inserted()
84 static int db1000_card_inserted(struct db1x_pcmcia_sock *sock) in db1000_card_inserted() argument
86 return !gpio_get_value(irq_to_gpio(sock->insert_irq)); in db1000_card_inserted()
89 static int db1x_card_inserted(struct db1x_pcmcia_sock *sock) in db1x_card_inserted() argument
91 switch (sock->board_type) { in db1x_card_inserted()
93 return db1200_card_inserted(sock); in db1x_card_inserted()
95 return db1300_card_inserted(sock); in db1x_card_inserted()
97 return db1000_card_inserted(sock); in db1x_card_inserted()
[all …]
Dxxs1500_ss.c69 struct xxs1500_pcmcia_sock *sock = data; in cdirq() local
71 pcmcia_parse_events(&sock->socket, SS_DETECT); in cdirq()
79 struct xxs1500_pcmcia_sock *sock = to_xxs_socket(skt); in xxs1500_pcmcia_configure() local
95 changed = state->flags ^ sock->old_flags; in xxs1500_pcmcia_configure()
108 sock->old_flags = state->flags; in xxs1500_pcmcia_configure()
177 struct xxs1500_pcmcia_sock *sock = to_xxs_socket(skt); in au1x00_pcmcia_set_io_map() local
179 map->start = (u32)sock->virt_io; in au1x00_pcmcia_set_io_map()
188 struct xxs1500_pcmcia_sock *sock = to_xxs_socket(skt); in au1x00_pcmcia_set_mem_map() local
191 map->static_start = sock->phys_attr + map->card_start; in au1x00_pcmcia_set_mem_map()
193 map->static_start = sock->phys_mem + map->card_start; in au1x00_pcmcia_set_mem_map()
[all …]
Dsa11xx_base.h69 #define MECR_SET(mecr, sock, shift, mask, bs) \ argument
71 ((sock)==0?MECR_SOCKET_0_SHIFT:MECR_SOCKET_1_SHIFT)))|\
72 (((bs)<<(shift))<<((sock)==0?MECR_SOCKET_0_SHIFT:MECR_SOCKET_1_SHIFT)))
74 #define MECR_GET(mecr, sock, shift, mask) \ argument
75 ((((mecr)>>(((sock)==0)?MECR_SOCKET_0_SHIFT:MECR_SOCKET_1_SHIFT))>>\
78 #define MECR_BSIO_SET(mecr, sock, bs) \ argument
79 MECR_SET((mecr), (sock), MECR_BSIO_SHIFT, MECR_BS_MASK, (bs))
81 #define MECR_BSIO_GET(mecr, sock) \ argument
82 MECR_GET((mecr), (sock), MECR_BSIO_SHIFT, MECR_BS_MASK)
84 #define MECR_BSA_SET(mecr, sock, bs) \ argument
[all …]
Di82365.c217 static u_char i365_get(u_short sock, u_short reg) in i365_get() argument
222 unsigned int port = socket[sock].ioaddr; in i365_get()
224 reg = I365_REG(socket[sock].psock, reg); in i365_get()
231 static void i365_set(u_short sock, u_short reg, u_char data) in i365_set() argument
236 unsigned int port = socket[sock].ioaddr; in i365_set()
237 u_char val = I365_REG(socket[sock].psock, reg); in i365_set()
243 static void i365_bset(u_short sock, u_short reg, u_char mask) in i365_bset() argument
245 u_char d = i365_get(sock, reg); in i365_bset()
247 i365_set(sock, reg, d); in i365_bset()
250 static void i365_bclr(u_short sock, u_short reg, u_char mask) in i365_bclr() argument
[all …]
Dm32r_pcc.c84 void pcc_iorw(int sock, unsigned long port, void *buf, size_t size, size_t nmemb, int wr, int flag) in pcc_iorw() argument
92 pcc_socket_t *t = &socket[sock]; in pcc_iorw()
124 pcc_set(sock, PCCR, 0); in pcc_iorw()
130 pcc_set(sock, PCMOD, PCMOD_AS_IO | cbsz | need_ex); in pcc_iorw()
131 pcc_set(sock, PCADR, addr & 0x1ff00000); in pcc_iorw()
136 pcc_set(sock, PCCR, 1); in pcc_iorw()
214 if ((addr = pcc_get(sock, PCIRC)) & PCIRC_BWERR) { in pcc_iorw()
217 pcc_set(sock, PCIRC, addr); in pcc_iorw()
233 void pcc_ioread(int sock, unsigned long port, void *buf, size_t size, size_t nmemb, int flag) { in pcc_ioread() argument
234 pcc_iorw(sock, port, buf, size, nmemb, 0, flag); in pcc_ioread()
[all …]
Dm32r_cfc.c104 void pcc_ioread_byte(int sock, unsigned long port, void *buf, size_t size, in pcc_ioread_byte() argument
113 sock, port, buf, size, nmemb, flag); in pcc_ioread_byte()
129 void pcc_ioread_word(int sock, unsigned long port, void *buf, size_t size, in pcc_ioread_word() argument
138 sock, port, buf, size, nmemb, flag); in pcc_ioread_word()
160 void pcc_iowrite_byte(int sock, unsigned long port, void *buf, size_t size, in pcc_iowrite_byte() argument
169 sock, port, buf, size, nmemb, flag); in pcc_iowrite_byte()
185 void pcc_iowrite_word(int sock, unsigned long port, void *buf, size_t size, in pcc_iowrite_word() argument
194 sock, port, buf, size, nmemb, flag); in pcc_iowrite_word()
247 static unsigned int pcc_get(u_short sock, unsigned int reg) in pcc_get() argument
255 static void pcc_set(u_short sock, unsigned int reg, unsigned int data) in pcc_set() argument
[all …]
Di82092.c380 static void set_bridge_state(int sock) in set_bridge_state() argument
383 indirect_write(sock, I365_GBLCTL,0x00); in set_bridge_state()
384 indirect_write(sock, I365_GENCTL,0x00); in set_bridge_state()
386 indirect_setbit(sock, I365_INTCTL,0x08); in set_bridge_state()
395 static int i82092aa_init(struct pcmcia_socket *sock) in i82092aa_init() argument
406 i82092aa_set_io_map(sock, &io); in i82092aa_init()
410 i82092aa_set_mem_map(sock, &mem); in i82092aa_init()
419 unsigned int sock = container_of(socket, struct socket_info, socket)->number; in i82092aa_get_status() local
424 status = indirect_read(sock,I365_STATUS); /* Interface Status Register */ in i82092aa_get_status()
433 if (indirect_read(sock, I365_INTCTL) & I365_PC_IOCARD) { in i82092aa_get_status()
[all …]
Dbcm63xx_pcmcia.c52 static int bcm63xx_pcmcia_sock_init(struct pcmcia_socket *sock) in bcm63xx_pcmcia_sock_init() argument
63 static int bcm63xx_pcmcia_suspend(struct pcmcia_socket *sock) in bcm63xx_pcmcia_suspend() argument
75 static int bcm63xx_pcmcia_set_socket(struct pcmcia_socket *sock, in bcm63xx_pcmcia_set_socket() argument
82 skt = sock->driver_data; in bcm63xx_pcmcia_set_socket()
249 static int bcm63xx_pcmcia_get_status(struct pcmcia_socket *sock, in bcm63xx_pcmcia_get_status() argument
254 skt = sock->driver_data; in bcm63xx_pcmcia_get_status()
290 static int bcm63xx_pcmcia_set_io_map(struct pcmcia_socket *sock, in bcm63xx_pcmcia_set_io_map() argument
298 static int bcm63xx_pcmcia_set_mem_map(struct pcmcia_socket *sock, in bcm63xx_pcmcia_set_mem_map() argument
304 skt = sock->driver_data; in bcm63xx_pcmcia_set_mem_map()
329 struct pcmcia_socket *sock; in bcm63xx_drv_pcmcia_probe() local
[all …]
Dtcic.h102 #define TCIC_PWR_VCC(sock) (0x01<<(sock)) argument
104 #define TCIC_PWR_VPP(sock) (0x08<<(sock)) argument
185 #define TCIC_SCF1(sock) ((sock)<<3) argument
186 #define TCIC_SCF2(sock) (((sock)<<3)+2) argument
217 #define TCIC_MWIN(sock,map) (0x100+(((map)+((sock)<<2))<<3)) argument
245 #define TCIC_IWIN(sock,map) (0x200+(((map)+((sock)<<1))<<2)) argument
Dvrc4171_card.c235 static int pccard_init(struct pcmcia_socket *sock) in pccard_init() argument
240 sock->features |= SS_CAP_PCCARD | SS_CAP_PAGE_REGS; in pccard_init()
241 sock->irq_mask = 0; in pccard_init()
242 sock->map_size = 0x1000; in pccard_init()
243 sock->pci_irq = vrc4171_irq; in pccard_init()
245 slot = sock->sock; in pccard_init()
254 static int pccard_get_status(struct pcmcia_socket *sock, u_int *value) in pccard_get_status() argument
260 if (sock == NULL || sock->sock >= CARD_MAX_SLOTS || value == NULL) in pccard_get_status()
263 slot = sock->sock; in pccard_get_status()
318 static int pccard_set_socket(struct pcmcia_socket *sock, socket_state_t *state) in pccard_set_socket() argument
[all …]
/drivers/memstick/host/
Dtifm_ms.c89 struct tifm_dev *sock = host->dev; in tifm_ms_read_data() local
102 while (!(TIFM_MS_STAT_EMP & readl(sock->addr + SOCK_MS_STATUS))) { in tifm_ms_read_data()
105 *(unsigned int *)(buf + off) = __raw_readl(sock->addr in tifm_ms_read_data()
112 && !(TIFM_MS_STAT_EMP & readl(sock->addr + SOCK_MS_STATUS))) { in tifm_ms_read_data()
113 host->io_word = readl(sock->addr + SOCK_MS_DATA); in tifm_ms_read_data()
129 struct tifm_dev *sock = host->dev; in tifm_ms_write_data() local
141 && !(TIFM_MS_STAT_FUL & readl(sock->addr + SOCK_MS_STATUS))) { in tifm_ms_write_data()
142 writel(TIFM_MS_SYS_FDIR | readl(sock->addr + SOCK_MS_SYSTEM), in tifm_ms_write_data()
143 sock->addr + SOCK_MS_SYSTEM); in tifm_ms_write_data()
144 writel(host->io_word, sock->addr + SOCK_MS_DATA); in tifm_ms_write_data()
[all …]
/drivers/mmc/host/
Dtifm_sd.c117 struct tifm_dev *sock = host->dev; in tifm_sd_read_fifo() local
128 val = readl(sock->addr + SOCK_MMCSD_DATA); in tifm_sd_read_fifo()
143 struct tifm_dev *sock = host->dev; in tifm_sd_write_fifo() local
150 writel(val, sock->addr + SOCK_MMCSD_DATA); in tifm_sd_write_fifo()
162 writel(val, sock->addr + SOCK_MMCSD_DATA); in tifm_sd_write_fifo()
265 struct tifm_dev *sock = host->dev; in tifm_sd_set_dma_data() local
318 dev_dbg(&sock->dev, "setting dma for %d blocks\n", dma_blk_cnt); in tifm_sd_set_dma_data()
319 writel(sg_dma_address(sg) + dma_off, sock->addr + SOCK_DMA_ADDRESS); in tifm_sd_set_dma_data()
322 sock->addr + SOCK_DMA_CONTROL); in tifm_sd_set_dma_data()
325 sock->addr + SOCK_DMA_CONTROL); in tifm_sd_set_dma_data()
[all …]
/drivers/misc/
Dtifm_core.c38 static int tifm_dev_match(struct tifm_dev *sock, struct tifm_device_id *id) in tifm_dev_match() argument
40 if (sock->type == id->type) in tifm_dev_match()
47 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev); in tifm_bus_match() local
54 if (tifm_dev_match(sock, ids)) in tifm_bus_match()
64 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev); in tifm_uevent() local
66 if (add_uevent_var(env, "TIFM_CARD_TYPE=%s", tifm_media_type_name(sock->type, 1))) in tifm_uevent()
74 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev); in tifm_device_probe() local
81 rc = drv->probe(sock); in tifm_device_probe()
89 static void tifm_dummy_event(struct tifm_dev *sock) in tifm_dummy_event() argument
96 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev); in tifm_device_remove() local
[all …]
Dtifm_7xx1.c26 struct tifm_dev *sock) in tifm_7xx1_dummy_eject() argument
30 static void tifm_7xx1_eject(struct tifm_adapter *fm, struct tifm_dev *sock) in tifm_7xx1_eject() argument
35 fm->socket_change_set |= 1 << sock->socket_id; in tifm_7xx1_eject()
43 struct tifm_dev *sock; in tifm_7xx1_isr() local
57 sock = fm->sockets[cnt]; in tifm_7xx1_isr()
58 if (sock) { in tifm_7xx1_isr()
60 sock->data_event(sock); in tifm_7xx1_isr()
62 sock->card_event(sock); in tifm_7xx1_isr()
143 struct tifm_dev *sock; in tifm_7xx1_switch_media() local
164 sock = fm->sockets[cnt]; in tifm_7xx1_switch_media()
[all …]
/drivers/staging/lustre/lustre/libcfs/linux/
Dlinux-tcpip.c50 struct socket *sock; in libcfs_sock_ioctl() local
54 rc = sock_create (PF_INET, SOCK_STREAM, 0, &sock); in libcfs_sock_ioctl()
60 sock_filp = sock_alloc_file(sock, 0, NULL); in libcfs_sock_ioctl()
62 sock_release(sock); in libcfs_sock_ioctl()
253 libcfs_sock_write (struct socket *sock, void *buffer, int nob, int timeout) in libcfs_sock_write() argument
279 rc = kernel_setsockopt(sock, SOL_SOCKET, SO_SNDTIMEO, in libcfs_sock_write()
290 rc = kernel_sendmsg(sock, &msg, &iov, 1, nob); in libcfs_sock_write()
316 libcfs_sock_read (struct socket *sock, void *buffer, int nob, int timeout) in libcfs_sock_read() argument
340 rc = kernel_setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO, in libcfs_sock_read()
349 rc = kernel_recvmsg(sock, &msg, &iov, 1, nob, 0); in libcfs_sock_read()
[all …]
/drivers/isdn/mISDN/
Dsocket.c55 mISDN_sock_link(struct mISDN_sock_list *l, struct sock *sk) in mISDN_sock_link()
62 static void mISDN_sock_unlink(struct mISDN_sock_list *l, struct sock *sk) in mISDN_sock_unlink()
104 mISDN_sock_cmsg(struct sock *sk, struct msghdr *msg, struct sk_buff *skb) in mISDN_sock_cmsg()
115 mISDN_sock_recvmsg(struct kiocb *iocb, struct socket *sock, in mISDN_sock_recvmsg() argument
119 struct sock *sk = sock->sk; in mISDN_sock_recvmsg()
176 mISDN_sock_sendmsg(struct kiocb *iocb, struct socket *sock, in mISDN_sock_sendmsg() argument
179 struct sock *sk = sock->sk; in mISDN_sock_sendmsg()
247 data_sock_release(struct socket *sock) in data_sock_release() argument
249 struct sock *sk = sock->sk; in data_sock_release()
252 printk(KERN_DEBUG "%s(%p) sk=%p\n", __func__, sock, sk); in data_sock_release()
[all …]
/drivers/net/ppp/
Dpptp.c95 struct pppox_sock *sock; in lookup_chan() local
99 sock = rcu_dereference(callid_sock[call_id]); in lookup_chan()
100 if (sock) { in lookup_chan()
101 opt = &sock->proto.pptp; in lookup_chan()
103 sock = NULL; in lookup_chan()
105 sock_hold(sk_pppox(sock)); in lookup_chan()
109 return sock; in lookup_chan()
114 struct pppox_sock *sock; in lookup_chan_dst() local
121 sock = rcu_dereference(callid_sock[i]); in lookup_chan_dst()
122 if (!sock) in lookup_chan_dst()
[all …]
Dpppopns.c70 static int pppopns_recv_core(struct sock *sk_raw, struct sk_buff *skb) in pppopns_recv_core()
72 struct sock *sk = (struct sock *)sk_raw->sk_user_data; in pppopns_recv_core()
172 static void pppopns_recv(struct sock *sk_raw) in pppopns_recv()
190 struct sock *sk_raw = skb->sk; in pppopns_xmit_core()
207 struct sock *sk_raw = (struct sock *)chan->private; in pppopns_xmit()
240 static int pppopns_connect(struct socket *sock, struct sockaddr *useraddr, in pppopns_connect() argument
243 struct sock *sk = sock->sk; in pppopns_connect()
249 struct sock *sk_tcp; in pppopns_connect()
250 struct sock *sk_raw; in pppopns_connect()
318 static int pppopns_release(struct socket *sock) in pppopns_release() argument
[all …]
Dpppolac.c71 static int pppolac_recv_core(struct sock *sk_udp, struct sk_buff *skb) in pppolac_recv_core()
73 struct sock *sk = (struct sock *)sk_udp->sk_user_data; in pppolac_recv_core()
191 static int pppolac_recv(struct sock *sk_udp, struct sk_buff *skb) in pppolac_recv()
207 struct sock *sk_udp = skb->sk; in pppolac_xmit_core()
224 struct sock *sk_udp = (struct sock *)chan->private; in pppolac_xmit()
261 static int pppolac_connect(struct socket *sock, struct sockaddr *useraddr, in pppolac_connect() argument
264 struct sock *sk = sock->sk; in pppolac_connect()
268 struct sock *sk_udp; in pppolac_connect()
338 static int pppolac_release(struct socket *sock) in pppolac_release() argument
340 struct sock *sk = sock->sk; in pppolac_release()
[all …]
/drivers/infiniband/hw/usnic/
Dusnic_transport.c50 struct socket *sock) in usnic_transport_sock_to_str() argument
58 err = usnic_transport_sock_get_addr(sock, &proto, &addr, &port); in usnic_transport_sock_to_str()
132 struct socket *sock; in usnic_transport_get_socket() local
137 sock = sockfd_lookup(sock_fd, &err); in usnic_transport_get_socket()
138 if (!sock) { in usnic_transport_get_socket()
144 usnic_transport_sock_to_str(buf, sizeof(buf), sock); in usnic_transport_get_socket()
147 return sock; in usnic_transport_get_socket()
150 void usnic_transport_put_socket(struct socket *sock) in usnic_transport_put_socket() argument
154 usnic_transport_sock_to_str(buf, sizeof(buf), sock); in usnic_transport_put_socket()
156 sockfd_put(sock); in usnic_transport_put_socket()
[all …]
/drivers/staging/gdm724x/
Dnetlink_k.c90 struct sock *netlink_init(int unit, in netlink_init()
93 struct sock *sock; in netlink_init() local
102 sock = netlink_kernel_create(&init_net, unit, &cfg); in netlink_init()
104 if (sock) in netlink_init()
107 return sock; in netlink_init()
110 void netlink_exit(struct sock *sock) in netlink_exit() argument
112 sock_release(sock->sk_socket); in netlink_exit()
115 int netlink_send(struct sock *sock, int group, u16 type, void *msg, int len) in netlink_send() argument
125 if (!netlink_has_listeners(sock, group+1)) in netlink_send()
139 ret = netlink_broadcast(sock, skb, 0, group+1, GFP_ATOMIC); in netlink_send()
[all …]
/drivers/staging/lustre/lnet/klnds/socklnd/
Dsocklnd_lib-linux.c80 struct socket *sock = conn->ksnc_sock; in ksocknal_lib_send_iov() local
114 rc = kernel_sendmsg(sock, &msg, (struct kvec *)scratchiov, niov, nob); in ksocknal_lib_send_iov()
122 struct socket *sock = conn->ksnc_sock; in ksocknal_lib_send_kiov() local
134 struct sock *sk = sock->sk; in ksocknal_lib_send_kiov()
179 rc = kernel_sendmsg(sock, &msg, (struct kvec *)scratchiov, niov, nob); in ksocknal_lib_send_kiov()
191 struct socket *sock = conn->ksnc_sock; in ksocknal_lib_eager_ack() local
198 kernel_setsockopt(sock, SOL_TCP, TCP_QUICKACK, in ksocknal_lib_eager_ack()
428 struct socket *sock = conn->ksnc_sock; in ksocknal_lib_get_conn_tunables() local
439 rc = libcfs_sock_getbuf(sock, txmem, rxmem); in ksocknal_lib_get_conn_tunables()
442 rc = kernel_getsockopt(sock, SOL_TCP, TCP_NODELAY, in ksocknal_lib_get_conn_tunables()
[all …]
/drivers/vhost/
Dnet.c231 static bool vhost_sock_zcopy(struct socket *sock) in vhost_sock_zcopy() argument
234 sock_flag(sock->sk, SOCK_ZEROCOPY); in vhost_sock_zcopy()
351 struct socket *sock; in handle_tx() local
356 sock = vq->private_data; in handle_tx()
357 if (!sock) in handle_tx()
434 err = sock->ops->sendmsg(NULL, sock, &msg, len); in handle_tx()
462 static int peek_head_len(struct sock *sk) in peek_head_len()
577 struct socket *sock; in handle_rx() local
580 sock = vq->private_data; in handle_rx()
581 if (!sock) in handle_rx()
[all …]
/drivers/staging/gdm72xx/
Dnetlink_k.c91 struct sock *netlink_init(int unit, void (*cb)(struct net_device *dev, u16 type, in netlink_init()
94 struct sock *sock; in netlink_init() local
103 sock = netlink_kernel_create(&init_net, unit, &cfg); in netlink_init()
105 if (sock) in netlink_init()
108 return sock; in netlink_init()
111 void netlink_exit(struct sock *sock) in netlink_exit() argument
113 netlink_kernel_release(sock); in netlink_exit()
116 int netlink_send(struct sock *sock, int group, u16 type, void *msg, int len) in netlink_send() argument
146 ret = netlink_broadcast(sock, skb, 0, group+1, GFP_ATOMIC); in netlink_send()
/drivers/scsi/
Discsi_tcp.c114 static inline int iscsi_sw_sk_state_check(struct sock *sk) in iscsi_sw_sk_state_check()
128 static void iscsi_sw_tcp_data_ready(struct sock *sk) in iscsi_sw_tcp_data_ready()
160 static void iscsi_sw_tcp_state_change(struct sock *sk) in iscsi_sw_tcp_state_change()
166 void (*old_state_change)(struct sock *); in iscsi_sw_tcp_state_change()
191 static void iscsi_sw_tcp_write_space(struct sock *sk) in iscsi_sw_tcp_write_space()
196 void (*old_write_space)(struct sock *); in iscsi_sw_tcp_write_space()
220 struct sock *sk = tcp_sw_conn->sock->sk; in iscsi_sw_tcp_conn_set_callbacks()
239 struct sock *sk = tcp_sw_conn->sock->sk; in iscsi_sw_tcp_conn_restore_callbacks()
268 struct socket *sk = tcp_sw_conn->sock; in iscsi_sw_tcp_xmit_segment()
587 struct socket *sock = tcp_sw_conn->sock; in iscsi_sw_tcp_release_conn() local
[all …]

1234