• Home
  • Raw
  • Download

Lines Matching refs:epidx

208 	int epidx;  in fjes_hw_setup()  local
246 for (epidx = 0; epidx < hw->max_epid; epidx++) { in fjes_hw_setup()
247 if (epidx != hw->my_epid) { in fjes_hw_setup()
248 buf_pair = &hw->ep_shm_info[epidx]; in fjes_hw_setup()
281 for (epidx = 0; epidx < hw->max_epid ; epidx++) { in fjes_hw_setup()
282 if (epidx == hw->my_epid) in fjes_hw_setup()
284 fjes_hw_free_epbuf(&hw->ep_shm_info[epidx].tx); in fjes_hw_setup()
285 fjes_hw_free_epbuf(&hw->ep_shm_info[epidx].rx); in fjes_hw_setup()
302 int epidx; in fjes_hw_cleanup() local
315 for (epidx = 0; epidx < hw->max_epid ; epidx++) { in fjes_hw_cleanup()
316 if (epidx == hw->my_epid) in fjes_hw_cleanup()
318 fjes_hw_free_epbuf(&hw->ep_shm_info[epidx].tx); in fjes_hw_cleanup()
319 fjes_hw_free_epbuf(&hw->ep_shm_info[epidx].rx); in fjes_hw_cleanup()
786 int epidx; in fjes_hw_raise_epstop() local
788 for (epidx = 0; epidx < hw->max_epid; epidx++) { in fjes_hw_raise_epstop()
789 if (epidx == hw->my_epid) in fjes_hw_raise_epstop()
792 status = fjes_hw_get_partner_ep_status(hw, epidx); in fjes_hw_raise_epstop()
795 fjes_hw_raise_interrupt(hw, epidx, in fjes_hw_raise_epstop()
797 hw->ep_shm_info[epidx].ep_stats.send_intr_unshare += 1; in fjes_hw_raise_epstop()
803 set_bit(epidx, &hw->hw_info.buffer_unshare_reserve_bit); in fjes_hw_raise_epstop()
804 set_bit(epidx, &hw->txrx_stop_req_bit); in fjes_hw_raise_epstop()
807 hw->ep_shm_info[epidx].tx.info->v1i.rx_status |= in fjes_hw_raise_epstop()
818 int epidx; in fjes_hw_wait_epstop() local
822 for (epidx = 0; epidx < hw->max_epid; epidx++) { in fjes_hw_wait_epstop()
823 if (epidx == hw->my_epid) in fjes_hw_wait_epstop()
826 epidx); in fjes_hw_wait_epstop()
827 info = hw->ep_shm_info[epidx].rx.info; in fjes_hw_wait_epstop()
831 test_bit(epidx, in fjes_hw_wait_epstop()
833 clear_bit(epidx, in fjes_hw_wait_epstop()
842 for (epidx = 0; epidx < hw->max_epid; epidx++) { in fjes_hw_wait_epstop()
843 if (epidx == hw->my_epid) in fjes_hw_wait_epstop()
845 if (test_bit(epidx, &hw->hw_info.buffer_unshare_reserve_bit)) in fjes_hw_wait_epstop()
846 clear_bit(epidx, in fjes_hw_wait_epstop()
997 int epidx; in fjes_hw_update_zone_task() local
1020 for (epidx = 0; epidx < hw->max_epid; epidx++) { in fjes_hw_update_zone_task()
1021 if (epidx == hw->my_epid) { in fjes_hw_update_zone_task()
1022 hw->ep_shm_info[epidx].es_status = in fjes_hw_update_zone_task()
1023 info[epidx].es_status; in fjes_hw_update_zone_task()
1024 hw->ep_shm_info[epidx].zone = in fjes_hw_update_zone_task()
1025 info[epidx].zone; in fjes_hw_update_zone_task()
1029 pstatus = fjes_hw_get_partner_ep_status(hw, epidx); in fjes_hw_update_zone_task()
1033 if ((info[epidx].zone != in fjes_hw_update_zone_task()
1035 (info[epidx].es_status == in fjes_hw_update_zone_task()
1037 (info[epidx].zone == in fjes_hw_update_zone_task()
1039 set_bit(epidx, &share_bit); in fjes_hw_update_zone_task()
1041 set_bit(epidx, &unshare_bit); in fjes_hw_update_zone_task()
1046 if ((info[epidx].zone == in fjes_hw_update_zone_task()
1048 (info[epidx].es_status != in fjes_hw_update_zone_task()
1050 (info[epidx].zone != in fjes_hw_update_zone_task()
1052 set_bit(epidx, in fjes_hw_update_zone_task()
1054 set_bit(epidx, in fjes_hw_update_zone_task()
1060 if ((info[epidx].zone == in fjes_hw_update_zone_task()
1062 (info[epidx].es_status != in fjes_hw_update_zone_task()
1064 (info[epidx].zone != in fjes_hw_update_zone_task()
1066 set_bit(epidx, &irq_bit); in fjes_hw_update_zone_task()
1070 hw->ep_shm_info[epidx].es_status = in fjes_hw_update_zone_task()
1071 info[epidx].es_status; in fjes_hw_update_zone_task()
1072 hw->ep_shm_info[epidx].zone = info[epidx].zone; in fjes_hw_update_zone_task()
1079 for (epidx = 0; epidx < hw->max_epid; epidx++) { in fjes_hw_update_zone_task()
1080 if (epidx == hw->my_epid) in fjes_hw_update_zone_task()
1083 if (test_bit(epidx, &share_bit)) { in fjes_hw_update_zone_task()
1085 fjes_hw_setup_epbuf(&hw->ep_shm_info[epidx].tx, in fjes_hw_update_zone_task()
1092 hw, epidx, &hw->ep_shm_info[epidx]); in fjes_hw_update_zone_task()
1109 hw->ep_shm_info[epidx].ep_stats in fjes_hw_update_zone_task()
1113 if (test_bit(epidx, &unshare_bit)) { in fjes_hw_update_zone_task()
1116 ret = fjes_hw_unregister_buff_addr(hw, epidx); in fjes_hw_update_zone_task()
1134 hw->ep_shm_info[epidx].ep_stats in fjes_hw_update_zone_task()
1140 &hw->ep_shm_info[epidx].tx, in fjes_hw_update_zone_task()
1147 if (test_bit(epidx, &irq_bit)) { in fjes_hw_update_zone_task()
1148 fjes_hw_raise_interrupt(hw, epidx, in fjes_hw_update_zone_task()
1151 hw->ep_shm_info[epidx].ep_stats.send_intr_unshare += 1; in fjes_hw_update_zone_task()
1153 set_bit(epidx, &hw->txrx_stop_req_bit); in fjes_hw_update_zone_task()
1155 hw->ep_shm_info[epidx].tx. in fjes_hw_update_zone_task()
1159 set_bit(epidx, &hw->hw_info.buffer_unshare_reserve_bit); in fjes_hw_update_zone_task()