Searched refs:epbh (Results 1 - 1 of 1) sorted by relevance
/linux-4.4.14/drivers/net/fjes/ |
H A D | fjes_hw.c | 127 static int fjes_hw_alloc_epbuf(struct epbuf_handler *epbh) fjes_hw_alloc_epbuf() argument 135 epbh->buffer = mem; fjes_hw_alloc_epbuf() 136 epbh->size = EP_BUFFER_SIZE; fjes_hw_alloc_epbuf() 138 epbh->info = (union ep_buffer_info *)mem; fjes_hw_alloc_epbuf() 139 epbh->ring = (u8 *)(mem + sizeof(union ep_buffer_info)); fjes_hw_alloc_epbuf() 144 static void fjes_hw_free_epbuf(struct epbuf_handler *epbh) fjes_hw_free_epbuf() argument 146 vfree(epbh->buffer); fjes_hw_free_epbuf() 147 epbh->buffer = NULL; fjes_hw_free_epbuf() 148 epbh->size = 0; fjes_hw_free_epbuf() 150 epbh->info = NULL; fjes_hw_free_epbuf() 151 epbh->ring = NULL; fjes_hw_free_epbuf() 154 void fjes_hw_setup_epbuf(struct epbuf_handler *epbh, u8 *mac_addr, u32 mtu) fjes_hw_setup_epbuf() argument 156 union ep_buffer_info *info = epbh->info; fjes_hw_setup_epbuf() 174 info->v1i.buffer_size = epbh->size - info->v1i.info_size; fjes_hw_setup_epbuf() 802 bool fjes_hw_check_epbuf_version(struct epbuf_handler *epbh, u32 version) fjes_hw_check_epbuf_version() argument 804 union ep_buffer_info *info = epbh->info; fjes_hw_check_epbuf_version() 809 bool fjes_hw_check_mtu(struct epbuf_handler *epbh, u32 mtu) fjes_hw_check_mtu() argument 811 union ep_buffer_info *info = epbh->info; fjes_hw_check_mtu() 816 bool fjes_hw_check_vlan_id(struct epbuf_handler *epbh, u16 vlan_id) fjes_hw_check_vlan_id() argument 818 union ep_buffer_info *info = epbh->info; fjes_hw_check_vlan_id() 835 bool fjes_hw_set_vlan_id(struct epbuf_handler *epbh, u16 vlan_id) fjes_hw_set_vlan_id() argument 837 union ep_buffer_info *info = epbh->info; fjes_hw_set_vlan_id() 849 void fjes_hw_del_vlan_id(struct epbuf_handler *epbh, u16 vlan_id) fjes_hw_del_vlan_id() argument 851 union ep_buffer_info *info = epbh->info; fjes_hw_del_vlan_id() 862 bool fjes_hw_epbuf_rx_is_empty(struct epbuf_handler *epbh) fjes_hw_epbuf_rx_is_empty() argument 864 union ep_buffer_info *info = epbh->info; fjes_hw_epbuf_rx_is_empty() 873 void *fjes_hw_epbuf_rx_curpkt_get_addr(struct epbuf_handler *epbh, fjes_hw_epbuf_rx_curpkt_get_addr() argument 876 union ep_buffer_info *info = epbh->info; fjes_hw_epbuf_rx_curpkt_get_addr() 880 ring_frame = (struct esmem_frame *)&(epbh->ring[EP_RING_INDEX fjes_hw_epbuf_rx_curpkt_get_addr() 892 void fjes_hw_epbuf_rx_curpkt_drop(struct epbuf_handler *epbh) fjes_hw_epbuf_rx_curpkt_drop() argument 894 union ep_buffer_info *info = epbh->info; fjes_hw_epbuf_rx_curpkt_drop() 896 if (fjes_hw_epbuf_rx_is_empty(epbh)) fjes_hw_epbuf_rx_curpkt_drop() 899 EP_RING_INDEX_INC(epbh->info->v1i.head, info->v1i.count_max); fjes_hw_epbuf_rx_curpkt_drop() 902 int fjes_hw_epbuf_tx_pkt_send(struct epbuf_handler *epbh, fjes_hw_epbuf_tx_pkt_send() argument 905 union ep_buffer_info *info = epbh->info; fjes_hw_epbuf_tx_pkt_send() 911 ring_frame = (struct esmem_frame *)&(epbh->ring[EP_RING_INDEX fjes_hw_epbuf_tx_pkt_send() 919 EP_RING_INDEX_INC(epbh->info->v1i.tail, info->v1i.count_max); fjes_hw_epbuf_tx_pkt_send()
|
Completed in 73 milliseconds