Lines Matching refs:epidx

176 	int epidx;  in fjes_setup_resources()  local
182 for (epidx = 0; epidx < hw->max_epid; epidx++) { in fjes_setup_resources()
183 hw->ep_shm_info[epidx].es_status = in fjes_setup_resources()
184 hw->hw_info.res_buf->info.info[epidx].es_status; in fjes_setup_resources()
185 hw->ep_shm_info[epidx].zone = in fjes_setup_resources()
186 hw->hw_info.res_buf->info.info[epidx].zone; in fjes_setup_resources()
199 for (epidx = 0; epidx < (hw->max_epid); epidx++) { in fjes_setup_resources()
200 if ((epidx != hw->my_epid) && in fjes_setup_resources()
201 (hw->ep_shm_info[epidx].es_status == in fjes_setup_resources()
203 fjes_hw_raise_interrupt(hw, epidx, in fjes_setup_resources()
205 hw->ep_shm_info[epidx].ep_stats in fjes_setup_resources()
212 for (epidx = 0; epidx < (hw->max_epid); epidx++) { in fjes_setup_resources()
213 if (epidx == hw->my_epid) in fjes_setup_resources()
216 buf_pair = &hw->ep_shm_info[epidx]; in fjes_setup_resources()
223 if (fjes_hw_epid_is_same_zone(hw, epidx)) { in fjes_setup_resources()
226 fjes_hw_register_buff_addr(hw, epidx, buf_pair); in fjes_setup_resources()
239 hw->ep_shm_info[epidx].ep_stats in fjes_setup_resources()
438 int epidx; in fjes_free_resources() local
440 for (epidx = 0; epidx < hw->max_epid; epidx++) { in fjes_free_resources()
441 if (epidx == hw->my_epid) in fjes_free_resources()
445 result = fjes_hw_unregister_buff_addr(hw, epidx); in fjes_free_resources()
448 hw->ep_shm_info[epidx].ep_stats.com_unregist_buf_exec += 1; in fjes_free_resources()
453 buf_pair = &hw->ep_shm_info[epidx]; in fjes_free_resources()
460 clear_bit(epidx, &hw->txrx_stop_req_bit); in fjes_free_resources()
532 int epidx; in fjes_close() local
542 for (epidx = 0; epidx < hw->max_epid; epidx++) { in fjes_close()
543 if (epidx == hw->my_epid) in fjes_close()
546 if (fjes_hw_get_partner_ep_status(hw, epidx) == in fjes_close()
548 adapter->hw.ep_shm_info[epidx] in fjes_close()
780 int idx, epidx; in fjes_change_mtu() local
798 for (epidx = 0; epidx < hw->max_epid; epidx++) { in fjes_change_mtu()
799 if (epidx == hw->my_epid) in fjes_change_mtu()
801 hw->ep_shm_info[epidx].tx.info->v1i.rx_status &= in fjes_change_mtu()
819 for (epidx = 0; epidx < hw->max_epid; epidx++) { in fjes_change_mtu()
820 if (epidx == hw->my_epid) in fjes_change_mtu()
824 fjes_hw_setup_epbuf(&hw->ep_shm_info[epidx].tx, in fjes_change_mtu()
828 hw->ep_shm_info[epidx].tx.info->v1i.rx_status |= in fjes_change_mtu()
966 int epidx; in fjes_poll() local
971 for (epidx = 0; epidx < hw->max_epid; epidx++) { in fjes_poll()
972 if (epidx == hw->my_epid) in fjes_poll()
975 if (fjes_hw_get_partner_ep_status(hw, epidx) == in fjes_poll()
977 adapter->hw.ep_shm_info[epidx] in fjes_poll()
1038 for (epidx = 0; epidx < hw->max_epid; epidx++) { in fjes_poll()
1039 if (epidx == hw->my_epid) in fjes_poll()
1041 if (fjes_hw_get_partner_ep_status(hw, epidx) == in fjes_poll()
1043 adapter->hw.ep_shm_info[epidx].tx in fjes_poll()
1191 int max_epid, my_epid, epidx; in fjes_watch_unshare_task() local
1207 for (epidx = 0; epidx < max_epid; epidx++) { in fjes_watch_unshare_task()
1208 if (epidx == my_epid) in fjes_watch_unshare_task()
1212 epidx); in fjes_watch_unshare_task()
1214 stop_req = test_bit(epidx, &hw->txrx_stop_req_bit); in fjes_watch_unshare_task()
1216 stop_req_done = hw->ep_shm_info[epidx].rx.info->v1i.rx_status & in fjes_watch_unshare_task()
1219 unshare_watch = test_bit(epidx, &unshare_watch_bitmask); in fjes_watch_unshare_task()
1221 unshare_reserve = test_bit(epidx, in fjes_watch_unshare_task()
1230 ret = fjes_hw_unregister_buff_addr(hw, epidx); in fjes_watch_unshare_task()
1246 hw->ep_shm_info[epidx].ep_stats in fjes_watch_unshare_task()
1250 fjes_hw_setup_epbuf(&hw->ep_shm_info[epidx].tx, in fjes_watch_unshare_task()
1254 clear_bit(epidx, &hw->txrx_stop_req_bit); in fjes_watch_unshare_task()
1255 clear_bit(epidx, &unshare_watch_bitmask); in fjes_watch_unshare_task()
1256 clear_bit(epidx, in fjes_watch_unshare_task()
1265 for (epidx = 0; epidx < max_epid; epidx++) { in fjes_watch_unshare_task()
1266 if (epidx == my_epid) in fjes_watch_unshare_task()
1269 if (test_bit(epidx, in fjes_watch_unshare_task()
1273 ret = fjes_hw_unregister_buff_addr(hw, epidx); in fjes_watch_unshare_task()
1290 hw->ep_shm_info[epidx].ep_stats in fjes_watch_unshare_task()
1295 &hw->ep_shm_info[epidx].tx, in fjes_watch_unshare_task()
1300 clear_bit(epidx, &hw->txrx_stop_req_bit); in fjes_watch_unshare_task()
1301 clear_bit(epidx, &unshare_watch_bitmask); in fjes_watch_unshare_task()
1302 clear_bit(epidx, &hw->hw_info.buffer_unshare_reserve_bit); in fjes_watch_unshare_task()
1305 if (test_bit(epidx, &unshare_watch_bitmask)) { in fjes_watch_unshare_task()
1307 hw->ep_shm_info[epidx].tx.info->v1i.rx_status &= in fjes_watch_unshare_task()