Lines Matching refs:epidx
314 int epidx; in fjes_close() local
324 for (epidx = 0; epidx < hw->max_epid; epidx++) { in fjes_close()
325 if (epidx == hw->my_epid) in fjes_close()
328 if (fjes_hw_get_partner_ep_status(hw, epidx) == in fjes_close()
330 adapter->hw.ep_shm_info[epidx] in fjes_close()
361 int epidx; in fjes_setup_resources() local
367 for (epidx = 0; epidx < hw->max_epid; epidx++) { in fjes_setup_resources()
368 hw->ep_shm_info[epidx].es_status = in fjes_setup_resources()
369 hw->hw_info.res_buf->info.info[epidx].es_status; in fjes_setup_resources()
370 hw->ep_shm_info[epidx].zone = in fjes_setup_resources()
371 hw->hw_info.res_buf->info.info[epidx].zone; in fjes_setup_resources()
384 for (epidx = 0; epidx < (hw->max_epid); epidx++) { in fjes_setup_resources()
385 if ((epidx != hw->my_epid) && in fjes_setup_resources()
386 (hw->ep_shm_info[epidx].es_status == in fjes_setup_resources()
388 fjes_hw_raise_interrupt(hw, epidx, in fjes_setup_resources()
390 hw->ep_shm_info[epidx].ep_stats in fjes_setup_resources()
397 for (epidx = 0; epidx < (hw->max_epid); epidx++) { in fjes_setup_resources()
398 if (epidx == hw->my_epid) in fjes_setup_resources()
401 buf_pair = &hw->ep_shm_info[epidx]; in fjes_setup_resources()
408 if (fjes_hw_epid_is_same_zone(hw, epidx)) { in fjes_setup_resources()
411 fjes_hw_register_buff_addr(hw, epidx, buf_pair); in fjes_setup_resources()
424 hw->ep_shm_info[epidx].ep_stats in fjes_setup_resources()
441 int epidx; in fjes_free_resources() local
443 for (epidx = 0; epidx < hw->max_epid; epidx++) { in fjes_free_resources()
444 if (epidx == hw->my_epid) in fjes_free_resources()
448 result = fjes_hw_unregister_buff_addr(hw, epidx); in fjes_free_resources()
451 hw->ep_shm_info[epidx].ep_stats.com_unregist_buf_exec += 1; in fjes_free_resources()
456 buf_pair = &hw->ep_shm_info[epidx]; in fjes_free_resources()
463 clear_bit(epidx, &hw->txrx_stop_req_bit); in fjes_free_resources()
820 int idx, epidx; in fjes_change_mtu() local
838 for (epidx = 0; epidx < hw->max_epid; epidx++) { in fjes_change_mtu()
839 if (epidx == hw->my_epid) in fjes_change_mtu()
841 hw->ep_shm_info[epidx].tx.info->v1i.rx_status &= in fjes_change_mtu()
859 for (epidx = 0; epidx < hw->max_epid; epidx++) { in fjes_change_mtu()
860 if (epidx == hw->my_epid) in fjes_change_mtu()
864 fjes_hw_setup_epbuf(&hw->ep_shm_info[epidx].tx, in fjes_change_mtu()
868 hw->ep_shm_info[epidx].tx.info->v1i.rx_status |= in fjes_change_mtu()
1117 int epidx; in fjes_poll() local
1122 for (epidx = 0; epidx < hw->max_epid; epidx++) { in fjes_poll()
1123 if (epidx == hw->my_epid) in fjes_poll()
1126 if (fjes_hw_get_partner_ep_status(hw, epidx) == in fjes_poll()
1128 adapter->hw.ep_shm_info[epidx] in fjes_poll()
1189 for (epidx = 0; epidx < hw->max_epid; epidx++) { in fjes_poll()
1190 if (epidx == hw->my_epid) in fjes_poll()
1192 if (fjes_hw_get_partner_ep_status(hw, epidx) == in fjes_poll()
1194 adapter->hw.ep_shm_info[epidx].tx in fjes_poll()
1392 int max_epid, my_epid, epidx; in fjes_watch_unshare_task() local
1408 for (epidx = 0; epidx < max_epid; epidx++) { in fjes_watch_unshare_task()
1409 if (epidx == my_epid) in fjes_watch_unshare_task()
1413 epidx); in fjes_watch_unshare_task()
1415 stop_req = test_bit(epidx, &hw->txrx_stop_req_bit); in fjes_watch_unshare_task()
1417 stop_req_done = hw->ep_shm_info[epidx].rx.info->v1i.rx_status & in fjes_watch_unshare_task()
1420 unshare_watch = test_bit(epidx, &unshare_watch_bitmask); in fjes_watch_unshare_task()
1422 unshare_reserve = test_bit(epidx, in fjes_watch_unshare_task()
1431 ret = fjes_hw_unregister_buff_addr(hw, epidx); in fjes_watch_unshare_task()
1447 hw->ep_shm_info[epidx].ep_stats in fjes_watch_unshare_task()
1451 fjes_hw_setup_epbuf(&hw->ep_shm_info[epidx].tx, in fjes_watch_unshare_task()
1455 clear_bit(epidx, &hw->txrx_stop_req_bit); in fjes_watch_unshare_task()
1456 clear_bit(epidx, &unshare_watch_bitmask); in fjes_watch_unshare_task()
1457 clear_bit(epidx, in fjes_watch_unshare_task()
1466 for (epidx = 0; epidx < max_epid; epidx++) { in fjes_watch_unshare_task()
1467 if (epidx == my_epid) in fjes_watch_unshare_task()
1470 if (test_bit(epidx, in fjes_watch_unshare_task()
1474 ret = fjes_hw_unregister_buff_addr(hw, epidx); in fjes_watch_unshare_task()
1491 hw->ep_shm_info[epidx].ep_stats in fjes_watch_unshare_task()
1496 &hw->ep_shm_info[epidx].tx, in fjes_watch_unshare_task()
1501 clear_bit(epidx, &hw->txrx_stop_req_bit); in fjes_watch_unshare_task()
1502 clear_bit(epidx, &unshare_watch_bitmask); in fjes_watch_unshare_task()
1503 clear_bit(epidx, &hw->hw_info.buffer_unshare_reserve_bit); in fjes_watch_unshare_task()
1506 if (test_bit(epidx, &unshare_watch_bitmask)) { in fjes_watch_unshare_task()
1508 hw->ep_shm_info[epidx].tx.info->v1i.rx_status &= in fjes_watch_unshare_task()