fifo.c (9902aa4728fe9128ea45f1a772e2238d64d8cdc5) | fifo.c (31faf878bd8c7e2c078a3b75f65efe64f23b0f18) |
---|---|
1/* 2 * Renesas USB driver 3 * 4 * Copyright (C) 2011 Renesas Solutions Corp. 5 * Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> 6 * 7 * This program is distributed in the hope that it will be useful, 8 * but WITHOUT ANY WARRANTY; without even the implied warranty of --- 86 unchanged lines hidden (view full) --- 95 96static void __usbhsf_pkt_del(struct usbhs_pkt *pkt) 97{ 98 list_del_init(&pkt->node); 99} 100 101static struct usbhs_pkt *__usbhsf_pkt_get(struct usbhs_pipe *pipe) 102{ | 1/* 2 * Renesas USB driver 3 * 4 * Copyright (C) 2011 Renesas Solutions Corp. 5 * Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> 6 * 7 * This program is distributed in the hope that it will be useful, 8 * but WITHOUT ANY WARRANTY; without even the implied warranty of --- 86 unchanged lines hidden (view full) --- 95 96static void __usbhsf_pkt_del(struct usbhs_pkt *pkt) 97{ 98 list_del_init(&pkt->node); 99} 100 101static struct usbhs_pkt *__usbhsf_pkt_get(struct usbhs_pipe *pipe) 102{ |
103 if (list_empty(&pipe->list)) 104 return NULL; 105 106 return list_first_entry(&pipe->list, struct usbhs_pkt, node); | 103 return list_first_entry_or_null(&pipe->list, struct usbhs_pkt, node); |
107} 108 109static void usbhsf_fifo_clear(struct usbhs_pipe *pipe, 110 struct usbhs_fifo *fifo); 111static void usbhsf_fifo_unselect(struct usbhs_pipe *pipe, 112 struct usbhs_fifo *fifo); 113static struct dma_chan *usbhsf_dma_chan_get(struct usbhs_fifo *fifo, 114 struct usbhs_pkt *pkt); --- 1346 unchanged lines hidden --- | 104} 105 106static void usbhsf_fifo_clear(struct usbhs_pipe *pipe, 107 struct usbhs_fifo *fifo); 108static void usbhsf_fifo_unselect(struct usbhs_pipe *pipe, 109 struct usbhs_fifo *fifo); 110static struct dma_chan *usbhsf_dma_chan_get(struct usbhs_fifo *fifo, 111 struct usbhs_pkt *pkt); --- 1346 unchanged lines hidden --- |