Lines Matching full:ivec
208 struct rtase_private *tp = ring->ivec->tp; in rtase_tx_clear_range()
264 const struct rtase_private *tp = ring->ivec->tp; in tx_handler()
341 ring->ivec = &tp->int_vector[idx]; in rtase_tx_desc_init()
345 ring->ivec = &tp->int_vector[0]; in rtase_tx_desc_init()
369 struct rtase_int_vector *ivec = ring->ivec; in rtase_alloc_rx_data_buf() local
370 const struct rtase_private *tp = ivec->tp; in rtase_alloc_rx_data_buf()
476 struct rtase_int_vector *ivec = ring->ivec; in rtase_rx_skb() local
478 napi_gro_receive(&ivec->napi, skb); in rtase_rx_skb()
485 struct rtase_private *tp = ring->ivec->tp; in rx_handler()
599 ring->ivec = &tp->int_vector[idx]; in rtase_rx_desc_init()
801 const struct rtase_int_vector *ivec = &tp->int_vector[0]; in rtase_irq_dis_and_clear() local
806 rtase_w32(tp, ivec->imr_addr, 0); in rtase_irq_dis_and_clear()
807 val1 = rtase_r32(tp, ivec->isr_addr); in rtase_irq_dis_and_clear()
808 rtase_w32(tp, ivec->isr_addr, val1); in rtase_irq_dis_and_clear()
811 ivec = &tp->int_vector[i]; in rtase_irq_dis_and_clear()
812 rtase_w16(tp, ivec->imr_addr, 0); in rtase_irq_dis_and_clear()
813 val2 = rtase_r16(tp, ivec->isr_addr); in rtase_irq_dis_and_clear()
814 rtase_w16(tp, ivec->isr_addr, val2); in rtase_irq_dis_and_clear()
999 const struct rtase_int_vector *ivec = &tp->int_vector[0]; in rtase_enable_hw_interrupt() local
1002 rtase_w32(tp, ivec->imr_addr, ivec->imr); in rtase_enable_hw_interrupt()
1005 ivec = &tp->int_vector[i]; in rtase_enable_hw_interrupt()
1006 rtase_w16(tp, ivec->imr_addr, ivec->imr); in rtase_enable_hw_interrupt()
1023 struct rtase_int_vector *ivec; in rtase_interrupt() local
1026 ivec = dev_instance; in rtase_interrupt()
1027 tp = ivec->tp; in rtase_interrupt()
1028 status = rtase_r32(tp, ivec->isr_addr); in rtase_interrupt()
1030 rtase_w32(tp, ivec->imr_addr, 0x0); in rtase_interrupt()
1031 rtase_w32(tp, ivec->isr_addr, status & ~RTASE_FOVW); in rtase_interrupt()
1033 if (napi_schedule_prep(&ivec->napi)) in rtase_interrupt()
1034 __napi_schedule(&ivec->napi); in rtase_interrupt()
1045 struct rtase_int_vector *ivec; in rtase_q_interrupt() local
1048 ivec = dev_instance; in rtase_q_interrupt()
1049 tp = ivec->tp; in rtase_q_interrupt()
1050 status = rtase_r16(tp, ivec->isr_addr); in rtase_q_interrupt()
1052 rtase_w16(tp, ivec->imr_addr, 0x0); in rtase_q_interrupt()
1053 rtase_w16(tp, ivec->isr_addr, status); in rtase_q_interrupt()
1055 if (napi_schedule_prep(&ivec->napi)) in rtase_q_interrupt()
1056 __napi_schedule(&ivec->napi); in rtase_q_interrupt()
1063 const struct rtase_int_vector *ivec; in rtase_poll() local
1068 ivec = container_of(napi, struct rtase_int_vector, napi); in rtase_poll()
1069 tp = ivec->tp; in rtase_poll()
1071 list_for_each_entry(ring, &ivec->ring_list, ring_entry) in rtase_poll()
1078 if (!ivec->index) in rtase_poll()
1079 rtase_w32(tp, ivec->imr_addr, ivec->imr); in rtase_poll()
1081 rtase_w16(tp, ivec->imr_addr, ivec->imr); in rtase_poll()
1091 struct rtase_int_vector *ivec; in rtase_open() local
1095 ivec = &tp->int_vector[0]; in rtase_open()
1109 ret = request_irq(ivec->irq, rtase_interrupt, 0, in rtase_open()
1110 dev->name, ivec); in rtase_open()
1116 ivec = &tp->int_vector[i]; in rtase_open()
1117 snprintf(ivec->name, sizeof(ivec->name), "%s_int%i", in rtase_open()
1119 ret = request_irq(ivec->irq, rtase_q_interrupt, 0, in rtase_open()
1120 ivec->name, ivec); in rtase_open()
1126 ivec); in rtase_open()
1134 ivec = &tp->int_vector[i]; in rtase_open()
1135 napi_enable(&ivec->napi); in rtase_open()
1156 struct rtase_int_vector *ivec; in rtase_down() local
1161 ivec = &tp->int_vector[i]; in rtase_down()
1162 napi_disable(&ivec->napi); in rtase_down()
1163 list_for_each_entry_safe(ring, tmp, &ivec->ring_list, in rtase_down()
1243 const struct rtase_private *tp = ring->ivec->tp; in rtase_xmit_frags()
1483 struct rtase_int_vector *ivec; in rtase_wait_for_quiescence() local
1487 ivec = &tp->int_vector[i]; in rtase_wait_for_quiescence()
1488 synchronize_irq(ivec->irq); in rtase_wait_for_quiescence()
1490 napi_disable(&ivec->napi); in rtase_wait_for_quiescence()
1496 ivec = &tp->int_vector[i]; in rtase_wait_for_quiescence()
1497 napi_enable(&ivec->napi); in rtase_wait_for_quiescence()
2097 struct rtase_int_vector *ivec; in rtase_init_one() local
2196 ivec = &tp->int_vector[i]; in rtase_init_one()
2197 netif_napi_del(&ivec->napi); in rtase_init_one()
2210 struct rtase_int_vector *ivec; in rtase_remove_one() local
2216 ivec = &tp->int_vector[i]; in rtase_remove_one()
2217 netif_napi_del(&ivec->napi); in rtase_remove_one()