Lines Matching refs:epidx
209 int epidx; in fjes_hw_setup() local
243 for (epidx = 0; epidx < hw->max_epid; epidx++) { in fjes_hw_setup()
244 if (epidx != hw->my_epid) { in fjes_hw_setup()
245 buf_pair = &hw->ep_shm_info[epidx]; in fjes_hw_setup()
280 int epidx; in fjes_hw_cleanup() local
293 for (epidx = 0; epidx < hw->max_epid ; epidx++) { in fjes_hw_cleanup()
294 if (epidx == hw->my_epid) in fjes_hw_cleanup()
296 fjes_hw_free_epbuf(&hw->ep_shm_info[epidx].tx); in fjes_hw_cleanup()
297 fjes_hw_free_epbuf(&hw->ep_shm_info[epidx].rx); in fjes_hw_cleanup()
764 int epidx; in fjes_hw_raise_epstop() local
766 for (epidx = 0; epidx < hw->max_epid; epidx++) { in fjes_hw_raise_epstop()
767 if (epidx == hw->my_epid) in fjes_hw_raise_epstop()
770 status = fjes_hw_get_partner_ep_status(hw, epidx); in fjes_hw_raise_epstop()
773 fjes_hw_raise_interrupt(hw, epidx, in fjes_hw_raise_epstop()
775 hw->ep_shm_info[epidx].ep_stats.send_intr_unshare += 1; in fjes_hw_raise_epstop()
781 set_bit(epidx, &hw->hw_info.buffer_unshare_reserve_bit); in fjes_hw_raise_epstop()
782 set_bit(epidx, &hw->txrx_stop_req_bit); in fjes_hw_raise_epstop()
785 hw->ep_shm_info[epidx].tx.info->v1i.rx_status |= in fjes_hw_raise_epstop()
796 int epidx; in fjes_hw_wait_epstop() local
800 for (epidx = 0; epidx < hw->max_epid; epidx++) { in fjes_hw_wait_epstop()
801 if (epidx == hw->my_epid) in fjes_hw_wait_epstop()
804 epidx); in fjes_hw_wait_epstop()
805 info = hw->ep_shm_info[epidx].rx.info; in fjes_hw_wait_epstop()
809 test_bit(epidx, in fjes_hw_wait_epstop()
811 clear_bit(epidx, in fjes_hw_wait_epstop()
820 for (epidx = 0; epidx < hw->max_epid; epidx++) { in fjes_hw_wait_epstop()
821 if (epidx == hw->my_epid) in fjes_hw_wait_epstop()
823 if (test_bit(epidx, &hw->hw_info.buffer_unshare_reserve_bit)) in fjes_hw_wait_epstop()
824 clear_bit(epidx, in fjes_hw_wait_epstop()
975 int epidx; in fjes_hw_update_zone_task() local
998 for (epidx = 0; epidx < hw->max_epid; epidx++) { in fjes_hw_update_zone_task()
999 if (epidx == hw->my_epid) { in fjes_hw_update_zone_task()
1000 hw->ep_shm_info[epidx].es_status = in fjes_hw_update_zone_task()
1001 info[epidx].es_status; in fjes_hw_update_zone_task()
1002 hw->ep_shm_info[epidx].zone = in fjes_hw_update_zone_task()
1003 info[epidx].zone; in fjes_hw_update_zone_task()
1007 pstatus = fjes_hw_get_partner_ep_status(hw, epidx); in fjes_hw_update_zone_task()
1011 if ((info[epidx].zone != in fjes_hw_update_zone_task()
1013 (info[epidx].es_status == in fjes_hw_update_zone_task()
1015 (info[epidx].zone == in fjes_hw_update_zone_task()
1017 set_bit(epidx, &share_bit); in fjes_hw_update_zone_task()
1019 set_bit(epidx, &unshare_bit); in fjes_hw_update_zone_task()
1024 if ((info[epidx].zone == in fjes_hw_update_zone_task()
1026 (info[epidx].es_status != in fjes_hw_update_zone_task()
1028 (info[epidx].zone != in fjes_hw_update_zone_task()
1030 set_bit(epidx, in fjes_hw_update_zone_task()
1032 set_bit(epidx, in fjes_hw_update_zone_task()
1038 if ((info[epidx].zone == in fjes_hw_update_zone_task()
1040 (info[epidx].es_status != in fjes_hw_update_zone_task()
1042 (info[epidx].zone != in fjes_hw_update_zone_task()
1044 set_bit(epidx, &irq_bit); in fjes_hw_update_zone_task()
1048 hw->ep_shm_info[epidx].es_status = in fjes_hw_update_zone_task()
1049 info[epidx].es_status; in fjes_hw_update_zone_task()
1050 hw->ep_shm_info[epidx].zone = info[epidx].zone; in fjes_hw_update_zone_task()
1057 for (epidx = 0; epidx < hw->max_epid; epidx++) { in fjes_hw_update_zone_task()
1058 if (epidx == hw->my_epid) in fjes_hw_update_zone_task()
1061 if (test_bit(epidx, &share_bit)) { in fjes_hw_update_zone_task()
1063 fjes_hw_setup_epbuf(&hw->ep_shm_info[epidx].tx, in fjes_hw_update_zone_task()
1070 hw, epidx, &hw->ep_shm_info[epidx]); in fjes_hw_update_zone_task()
1087 hw->ep_shm_info[epidx].ep_stats in fjes_hw_update_zone_task()
1091 if (test_bit(epidx, &unshare_bit)) { in fjes_hw_update_zone_task()
1094 ret = fjes_hw_unregister_buff_addr(hw, epidx); in fjes_hw_update_zone_task()
1112 hw->ep_shm_info[epidx].ep_stats in fjes_hw_update_zone_task()
1118 &hw->ep_shm_info[epidx].tx, in fjes_hw_update_zone_task()
1125 if (test_bit(epidx, &irq_bit)) { in fjes_hw_update_zone_task()
1126 fjes_hw_raise_interrupt(hw, epidx, in fjes_hw_update_zone_task()
1129 hw->ep_shm_info[epidx].ep_stats.send_intr_unshare += 1; in fjes_hw_update_zone_task()
1131 set_bit(epidx, &hw->txrx_stop_req_bit); in fjes_hw_update_zone_task()
1133 hw->ep_shm_info[epidx].tx. in fjes_hw_update_zone_task()
1137 set_bit(epidx, &hw->hw_info.buffer_unshare_reserve_bit); in fjes_hw_update_zone_task()