• Home
  • Raw
  • Download

Lines Matching refs:epidx

208 	int epidx;  in fjes_hw_setup()  local
242 for (epidx = 0; epidx < hw->max_epid; epidx++) { in fjes_hw_setup()
243 if (epidx != hw->my_epid) { in fjes_hw_setup()
244 buf_pair = &hw->ep_shm_info[epidx]; in fjes_hw_setup()
279 int epidx; in fjes_hw_cleanup() local
292 for (epidx = 0; epidx < hw->max_epid ; epidx++) { in fjes_hw_cleanup()
293 if (epidx == hw->my_epid) in fjes_hw_cleanup()
295 fjes_hw_free_epbuf(&hw->ep_shm_info[epidx].tx); in fjes_hw_cleanup()
296 fjes_hw_free_epbuf(&hw->ep_shm_info[epidx].rx); in fjes_hw_cleanup()
763 int epidx; in fjes_hw_raise_epstop() local
765 for (epidx = 0; epidx < hw->max_epid; epidx++) { in fjes_hw_raise_epstop()
766 if (epidx == hw->my_epid) in fjes_hw_raise_epstop()
769 status = fjes_hw_get_partner_ep_status(hw, epidx); in fjes_hw_raise_epstop()
772 fjes_hw_raise_interrupt(hw, epidx, in fjes_hw_raise_epstop()
774 hw->ep_shm_info[epidx].ep_stats.send_intr_unshare += 1; in fjes_hw_raise_epstop()
780 set_bit(epidx, &hw->hw_info.buffer_unshare_reserve_bit); in fjes_hw_raise_epstop()
781 set_bit(epidx, &hw->txrx_stop_req_bit); in fjes_hw_raise_epstop()
784 hw->ep_shm_info[epidx].tx.info->v1i.rx_status |= in fjes_hw_raise_epstop()
795 int epidx; in fjes_hw_wait_epstop() local
799 for (epidx = 0; epidx < hw->max_epid; epidx++) { in fjes_hw_wait_epstop()
800 if (epidx == hw->my_epid) in fjes_hw_wait_epstop()
803 epidx); in fjes_hw_wait_epstop()
804 info = hw->ep_shm_info[epidx].rx.info; in fjes_hw_wait_epstop()
808 test_bit(epidx, in fjes_hw_wait_epstop()
810 clear_bit(epidx, in fjes_hw_wait_epstop()
819 for (epidx = 0; epidx < hw->max_epid; epidx++) { in fjes_hw_wait_epstop()
820 if (epidx == hw->my_epid) in fjes_hw_wait_epstop()
822 if (test_bit(epidx, &hw->hw_info.buffer_unshare_reserve_bit)) in fjes_hw_wait_epstop()
823 clear_bit(epidx, in fjes_hw_wait_epstop()
974 int epidx; in fjes_hw_update_zone_task() local
997 for (epidx = 0; epidx < hw->max_epid; epidx++) { in fjes_hw_update_zone_task()
998 if (epidx == hw->my_epid) { in fjes_hw_update_zone_task()
999 hw->ep_shm_info[epidx].es_status = in fjes_hw_update_zone_task()
1000 info[epidx].es_status; in fjes_hw_update_zone_task()
1001 hw->ep_shm_info[epidx].zone = in fjes_hw_update_zone_task()
1002 info[epidx].zone; in fjes_hw_update_zone_task()
1006 pstatus = fjes_hw_get_partner_ep_status(hw, epidx); in fjes_hw_update_zone_task()
1010 if ((info[epidx].zone != in fjes_hw_update_zone_task()
1012 (info[epidx].es_status == in fjes_hw_update_zone_task()
1014 (info[epidx].zone == in fjes_hw_update_zone_task()
1016 set_bit(epidx, &share_bit); in fjes_hw_update_zone_task()
1018 set_bit(epidx, &unshare_bit); in fjes_hw_update_zone_task()
1023 if ((info[epidx].zone == in fjes_hw_update_zone_task()
1025 (info[epidx].es_status != in fjes_hw_update_zone_task()
1027 (info[epidx].zone != in fjes_hw_update_zone_task()
1029 set_bit(epidx, in fjes_hw_update_zone_task()
1031 set_bit(epidx, in fjes_hw_update_zone_task()
1037 if ((info[epidx].zone == in fjes_hw_update_zone_task()
1039 (info[epidx].es_status != in fjes_hw_update_zone_task()
1041 (info[epidx].zone != in fjes_hw_update_zone_task()
1043 set_bit(epidx, &irq_bit); in fjes_hw_update_zone_task()
1047 hw->ep_shm_info[epidx].es_status = in fjes_hw_update_zone_task()
1048 info[epidx].es_status; in fjes_hw_update_zone_task()
1049 hw->ep_shm_info[epidx].zone = info[epidx].zone; in fjes_hw_update_zone_task()
1056 for (epidx = 0; epidx < hw->max_epid; epidx++) { in fjes_hw_update_zone_task()
1057 if (epidx == hw->my_epid) in fjes_hw_update_zone_task()
1060 if (test_bit(epidx, &share_bit)) { in fjes_hw_update_zone_task()
1062 fjes_hw_setup_epbuf(&hw->ep_shm_info[epidx].tx, in fjes_hw_update_zone_task()
1069 hw, epidx, &hw->ep_shm_info[epidx]); in fjes_hw_update_zone_task()
1086 hw->ep_shm_info[epidx].ep_stats in fjes_hw_update_zone_task()
1090 if (test_bit(epidx, &unshare_bit)) { in fjes_hw_update_zone_task()
1093 ret = fjes_hw_unregister_buff_addr(hw, epidx); in fjes_hw_update_zone_task()
1111 hw->ep_shm_info[epidx].ep_stats in fjes_hw_update_zone_task()
1117 &hw->ep_shm_info[epidx].tx, in fjes_hw_update_zone_task()
1124 if (test_bit(epidx, &irq_bit)) { in fjes_hw_update_zone_task()
1125 fjes_hw_raise_interrupt(hw, epidx, in fjes_hw_update_zone_task()
1128 hw->ep_shm_info[epidx].ep_stats.send_intr_unshare += 1; in fjes_hw_update_zone_task()
1130 set_bit(epidx, &hw->txrx_stop_req_bit); in fjes_hw_update_zone_task()
1132 hw->ep_shm_info[epidx].tx. in fjes_hw_update_zone_task()
1136 set_bit(epidx, &hw->hw_info.buffer_unshare_reserve_bit); in fjes_hw_update_zone_task()