Home
last modified time | relevance | path

Searched refs:sw_head (Results 1 – 8 of 8) sorted by relevance

/drivers/crypto/cavium/zip/
Dzip_device.c59 return ((zip_dev->iq[queue].sw_head - zip_dev->iq[queue].sw_tail) * in zip_cmd_queue_consumed()
109 zip_dbg("sw_head : %lx", zip_dev->iq[queue].sw_head); in zip_load_instr()
117 memcpy((u8 *)zip_dev->iq[queue].sw_head, (u8 *)instr, in zip_load_instr()
119 zip_dev->iq[queue].sw_head += 16; /* 16 64_bit words = 128B */ in zip_load_instr()
122 ncb_ptr = zip_dev->iq[queue].sw_head; in zip_load_instr()
125 ncb_ptr, zip_dev->iq[queue].sw_head - 16); in zip_load_instr()
128 zip_dev->iq[queue].sw_head = zip_dev->iq[queue].sw_tail; in zip_load_instr()
134 ncp.s.addr = __pa(zip_dev->iq[queue].sw_head); in zip_load_instr()
137 *ncb_ptr, __pa(zip_dev->iq[queue].sw_head)); in zip_load_instr()
144 memcpy((u8 *)zip_dev->iq[queue].sw_head, (u8 *)instr, in zip_load_instr()
[all …]
Dzip_mem.c59 zip->iq[q].sw_head = (u64 *)__get_free_pages((GFP_KERNEL | GFP_DMA), in zip_cmd_qbuf_alloc()
62 if (!zip->iq[q].sw_head) in zip_cmd_qbuf_alloc()
65 memset(zip->iq[q].sw_head, 0, ZIP_CMD_QBUF_SIZE); in zip_cmd_qbuf_alloc()
67 zip_dbg("cmd_qbuf_alloc[%d] Success : %p\n", q, zip->iq[q].sw_head); in zip_cmd_qbuf_alloc()
Dzip_main.c185 zip->iq[q].sw_tail = zip->iq[q].sw_head; in zip_init_hw()
186 zip->iq[q].hw_tail = zip->iq[q].sw_head; in zip_init_hw()
190 que_sbuf_addr.s.ptr = (__pa(zip->iq[q].sw_head) >> in zip_init_hw()
203 zip->iq[q].sw_head, zip->iq[q].sw_tail, in zip_init_hw()
Dzip_main.h86 u64 *sw_head; member
/drivers/net/ethernet/aquantia/atlantic/
Daq_ring.c233 self->sw_head = 0; in aq_ring_init()
291 budget && self->sw_head != self->hw_head; budget--) { in aq_ring_tx_clean()
292 struct aq_ring_buff_s *buff = &self->buff_ring[self->sw_head]; in aq_ring_tx_clean()
298 (!aq_ring_dx_in_range(self->sw_head, in aq_ring_tx_clean()
333 self->sw_head = aq_ring_next_dx(self, self->sw_head); in aq_ring_tx_clean()
534 for (; (self->sw_head != self->hw_head) && budget; in __aq_ring_rx_clean()
535 self->sw_head = aq_ring_next_dx(self, self->sw_head), in __aq_ring_rx_clean()
537 struct aq_ring_buff_s *buff = &self->buff_ring[self->sw_head]; in __aq_ring_rx_clean()
563 aq_ring_dx_in_range(self->sw_head, in __aq_ring_rx_clean()
710 for (; (rx_ring->sw_head != rx_ring->hw_head) && budget; in __aq_ring_xdp_clean()
[all …]
Daq_ring.h141 unsigned int sw_head; member
181 return (((self->sw_tail >= self->sw_head)) ? in aq_ring_avail_dx()
182 (self->size - 1) - self->sw_tail + self->sw_head : in aq_ring_avail_dx()
183 self->sw_head - self->sw_tail - 1); in aq_ring_avail_dx()
Daq_vec.c54 if (ring[AQ_VEC_TX_ID].sw_head != in aq_vec_poll()
65 if (ring[AQ_VEC_RX_ID].sw_head != in aq_vec_poll()
Daq_ptp.c670 if (aq_ptp->ptp_tx.sw_head != aq_ptp->ptp_tx.hw_head) { in aq_ptp_poll()
682 if (aq_ptp->hwts_rx.sw_head != aq_ptp->hwts_rx.hw_head) { in aq_ptp_poll()
699 if (aq_ptp->ptp_rx.sw_head != aq_ptp->ptp_rx.hw_head) { in aq_ptp_poll()