Lines Matching refs:list

140  * @tx_buf_list - list of pending transmit frame buffers
141 * @rx_buf_list - list of received frame buffers
142 * @tx_free_buf_list - list unused transmit frame buffers
143 * @rx_free_buf_list - list unused received frame buffers
160 * HDLC buffer list manipulation functions
162 static void n_hdlc_buf_list_init(struct n_hdlc_buf_list *list);
163 static void n_hdlc_buf_put(struct n_hdlc_buf_list *list,
165 static struct n_hdlc_buf *n_hdlc_buf_get(struct n_hdlc_buf_list *list);
378 * n_hdlc_send_frames - send frames on pending send buffer list
382 * Send frames on pending send buffer list until the driver does not accept a
384 * list and by the tty wakeup callback.
407 /* buffer from list of pending transmit buffers */
542 /* no buffers in free list, attempt to allocate another rx buffer */
559 /* add HDLC buffer to list of received frames */
861 /* allocate free rx buffer list */
870 /* allocate free tx buffer list */
888 * n_hdlc_buf_list_init - initialize specified HDLC buffer list
889 * @list - pointer to buffer list
891 static void n_hdlc_buf_list_init(struct n_hdlc_buf_list *list)
893 memset(list, 0, sizeof(*list));
894 spin_lock_init(&list->spinlock);
898 * n_hdlc_buf_put - add specified HDLC buffer to tail of specified list
899 * @list - pointer to buffer list
902 static void n_hdlc_buf_put(struct n_hdlc_buf_list *list,
906 spin_lock_irqsave(&list->spinlock,flags);
909 if (list->tail)
910 list->tail->link = buf;
912 list->head = buf;
913 list->tail = buf;
914 (list->count)++;
916 spin_unlock_irqrestore(&list->spinlock,flags);
921 * n_hdlc_buf_get - remove and return an HDLC buffer from list
922 * @list - pointer to HDLC buffer list
925 * list.
928 static struct n_hdlc_buf* n_hdlc_buf_get(struct n_hdlc_buf_list *list)
932 spin_lock_irqsave(&list->spinlock,flags);
934 buf = list->head;
936 list->head = buf->link;
937 (list->count)--;
939 if (!list->head)
940 list->tail = NULL;
942 spin_unlock_irqrestore(&list->spinlock,flags);