Lines Matching refs:lep

125 add_ep_to_listenlist(struct c4iw_listen_ep *lep);
126 static int rem_ep_from_listenlist(struct c4iw_listen_ep *lep);
221 struct list_head lep_list; /* per port lep list */
222 uint32_t refcnt; /* number of lep's listening */
258 * Because of two port adapter, the number of lep's are two(lep1 & lep2) for
261 * Here 'lep1' is always marked as Master lep, because solisten() is always
262 * called through first lep.
266 add_ep_to_listenlist(struct c4iw_listen_ep *lep)
270 struct sockaddr_storage *laddr = &lep->com.local_addr;
291 list_add_tail(&lep->listen_ep_list, &port_info->lep_list);
297 rem_ep_from_listenlist(struct c4iw_listen_ep *lep)
301 struct sockaddr_storage *laddr = &lep->com.local_addr;
310 /* get the port_info structure based on the lep's port address */
315 /* remove the current lep from the listen list */
316 list_del(&lep->listen_ep_list);
332 * Find the lep that belongs to the ifnet on which the SYN frame was received.
338 struct c4iw_listen_ep *lep = NULL;
376 /* STEP 3: Traverse through list of lep's that are bound to the current
377 * TCP port address and find the lep that belongs to the ifnet on which
380 list_for_each_entry(lep, &port_info->lep_list, listen_ep_list) {
381 adap = lep->com.dev->rdev.adap;
391 return found_lep ? lep : (NULL);
969 * created 'ep' can be attached to the real 'lep'.
1162 struct c4iw_listen_ep *lep = (struct c4iw_listen_ep *)ep;
1166 process_newconn(lep, new_so);
2702 struct c4iw_listen_ep *lep = NULL;
2708 lep = alloc_ep(sizeof(*lep), GFP_KERNEL);
2709 lep->com.cm_id = cm_id;
2710 ref_cm_id(&lep->com);
2711 lep->com.dev = dev;
2712 lep->backlog = backlog;
2713 lep->com.local_addr = cm_id->local_addr;
2714 lep->com.thread = curthread;
2715 cm_id->provider_data = lep;
2716 lep->com.state = LISTEN;
2729 if (c4iw_any_addr((struct sockaddr *)&lep->com.local_addr)) {
2730 port_info = add_ep_to_listenlist(lep);
2732 * alredy created by 'Master lep'
2736 * port, copy Master lep's socket pointer to other lep's
2742 lep->com.so = head_lep->com.so;
2746 rc = c4iw_sock_create(&cm_id->local_addr, &lep->com.so);
2753 rc = -solisten(lep->com.so, backlog, curthread);
2756 __func__, lep->com.so, rc);
2759 init_iwarp_socket(lep->com.so, &lep->com);
2764 sock_release(lep->com.so);
2767 rem_ep_from_listenlist(lep);
2768 deref_cm_id(&lep->com);
2769 c4iw_put_ep(&lep->com);
2776 struct c4iw_listen_ep *lep = to_listen_ep(cm_id);
2778 mutex_lock(&lep->com.mutex);
2780 states[lep->com.state]);
2782 lep->com.state = DEAD;
2783 if (c4iw_any_addr((struct sockaddr *)&lep->com.local_addr)) {
2785 if (!rem_ep_from_listenlist(lep))
2786 close_socket(lep->com.so);
2788 close_socket(lep->com.so);
2789 deref_cm_id(&lep->com);
2790 mutex_unlock(&lep->com.mutex);
2791 c4iw_put_ep(&lep->com);