Home
last modified time | relevance | path

Searched refs:sidx (Results 1 – 20 of 20) sorted by relevance

/freebsd/sys/dev/ntb/test/
H A Dntb_tool.c242 int sidx; member
1161 unsigned int sidx = arg2; in sysctl_spad_handle() local
1187 unsigned int sidx = arg2; in sysctl_peer_spad_handle() local
1212 int sidx, pidx; in tool_init_spads() local
1219 for (sidx = 0; sidx < tc->inspad_cnt; sidx++) { in tool_init_spads()
1220 tc->inspads[sidx].sidx = sidx; in tool_init_spads()
1222 tc->inspads[sidx].tc = tc; in tool_init_spads()
1232 for (sidx = 0; sidx < tc->peers[pidx].outspad_cnt; sidx++) { in tool_init_spads()
1233 tc->peers[pidx].outspads[sidx].sidx = sidx; in tool_init_spads()
1350 for (sidx = 0; sidx < tc->inspad_cnt; sidx++) { in tool_setup_sysctl()
[all …]
/freebsd/contrib/ntp/libntp/
H A Dwork_thread.c197 size_t sidx; in ensure_workitems_empty_slot() local
203 for (sidx = c->workitems_alloc; sidx < new_alloc; ++sidx) in ensure_workitems_empty_slot()
204 c->workitems[sidx] = NULL; in ensure_workitems_empty_slot()
233 size_t sidx; in ensure_workresp_empty_slot() local
239 for (sidx = c->responses_alloc; sidx < new_alloc; ++sidx) in ensure_workresp_empty_slot()
240 c->responses[sidx] = NULL; in ensure_workresp_empty_slot()
/freebsd/usr.bin/netstat/
H A Dnhgrp.c156 for (uint32_t sidx = 0; sidx < nhg_dp->nhgc_count; sidx++) { in print_nhgroup_entry_sysctl() local
157 if (ext_dp[sidx].nh_idx == ext_cp[i].nh_idx) in print_nhgroup_entry_sysctl()
/freebsd/sys/dev/cxgbe/
H A Dt4_sge.c2159 available = eq->sidx - 1; in drain_wrq_wr_list()
2185 if (available < eq->sidx / 4 && in drain_wrq_wr_list()
2933 available = eq->sidx - 1; in start_wrq_wr()
3000 if (available < eq->sidx / 4 && in commit_wrq_wr()
3147 reclaim_tx_descs(txq, eq->sidx); in eth_tx()
3154 avail = eq->sidx - 1; in eth_tx()
3268 IDXINCR(eq->pidx, n, eq->sidx); in eth_tx()
3315 IDXINCR(eq->pidx, n, eq->sidx); in eth_tx()
4946 IDXINCR(fl->dbidx, n, fl->sidx); in ring_fl_db()
6160 IDXINCR(eq->dbidx, n, eq->sidx); in ring_eq_db()
[all …]
H A Dt4_netmap.c231 nm_txq->sidx = na->num_tx_desc; in alloc_nm_txq()
456 MPASS(nm_txq->sidx == na->num_tx_desc); in alloc_nm_txq_hwq()
907 #define NMIDXDIFF(q, idx) IDXDIFF((q)->pidx, (q)->idx, (q)->sidx)
1018 MPASS(nm_txq->pidx <= nm_txq->sidx); in cxgbe_nm_tx()
1019 if (__predict_false(nm_txq->pidx == nm_txq->sidx)) { in cxgbe_nm_tx()
1040 if (NMIDXDIFF(nm_txq, equiqidx) >= nm_txq->sidx / 2) { in cxgbe_nm_tx()
1065 return (nm_txq->sidx - nm_txq->pidx); in contiguous_ndesc_available()
1067 return (nm_txq->sidx - nm_txq->pidx - 1); in contiguous_ndesc_available()
1073 struct sge_qstat *spg = (void *)&nm_txq->desc[nm_txq->sidx]; in reclaim_nm_tx_desc()
1096 MPASS(nm_txq->cidx <= nm_txq->sidx); in reclaim_nm_tx_desc()
[all …]
H A Dadapter.h433 uint16_t sidx; /* index of the entry with the status page */ member
481 uint16_t sidx; /* index of the entry with the status page */ member
538 (IDXDIFF(fl->dbidx * 8, fl->cidx, fl->sidx * 8) <= fl->lowat)
540 (IDXDIFF(fl->dbidx * 8, fl->cidx, fl->sidx * 8) >= 2 * fl->lowat)
554 uint16_t sidx; /* index of status page */ member
814 uint16_t sidx; member
1298 return (eq->sidx / 4); in tx_resume_threshold()
H A Dt4_main.c6949 struct sge_qstat *spg = (void *)&eq->desc[eq->sidx]; in quiesce_txq()
6987 IDXINCR(eq->cidx, txsd->desc_used, eq->sidx); in quiesce_txq()
/freebsd/sys/netpfil/pf/
H A Dpf.c619 nk->port[pd->sidx], 0); in pf_packet_rework_nat()
620 ih->icmp_id = nk->port[pd->sidx]; in pf_packet_rework_nat()
1500 sk->port[pd->sidx] = sport; in pf_state_key_setup()
4553 &nk->addr[pd->sidx], in pf_test_rule()
4577 &nk->addr[pd->sidx], in pf_test_rule()
4615 &nk->addr[pd->sidx], 0); in pf_test_rule()
6535 nk->port[pd->sidx], 0); in pf_test_state_icmp()
6537 nk->port[pd->sidx]; in pf_test_state_icmp()
6550 &nk->addr[pd->sidx], 0); in pf_test_state_icmp()
6782 nk->port[pd2.sidx], NULL, in pf_test_state_icmp()
[all …]
H A Dpf_nl.c1264 int sidx, didx; in pf_handle_natlook() local
1278 sidx = (attrs.direction == PF_IN) ? 1 : 0; in pf_handle_natlook()
1283 PF_ACPY(&key.addr[sidx], &attrs.src, attrs.af); in pf_handle_natlook()
1284 key.port[sidx] = attrs.sport; in pf_handle_natlook()
1306 sk = state->key[sidx]; in pf_handle_natlook()
1308 nlattr_add_in6_addr(nw, PF_NL_SRC_ADDR, &sk->addr[sidx].v6); in pf_handle_natlook()
1310 nlattr_add_u16(nw, PF_NL_SRC_PORT, sk->port[sidx]); in pf_handle_natlook()
H A Dpf_ioctl.c3882 int sidx, didx; in pfioctl() local
3885 sidx = (direction == PF_IN) ? 1 : 0; in pfioctl()
3899 PF_ACPY(&key.addr[sidx], &pnl->saddr, pnl->af); in pfioctl()
3900 key.port[sidx] = pnl->sport; in pfioctl()
3912 sk = state->key[sidx]; in pfioctl()
3913 PF_ACPY(&pnl->rsaddr, &sk->addr[sidx], sk->af); in pfioctl()
3914 pnl->rsport = sk->port[sidx]; in pfioctl()
/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_idr.c523 int idx, sidx; in idr_get_new_above_locked() local
569 sidx = idr_pos(starting_id, layer); in idr_get_new_above_locked()
571 idx = find_next_bit(&il->bitmap, IDR_SIZE, sidx); in idr_get_new_above_locked()
572 if (idx == IDR_SIZE && sidx == 0) in idr_get_new_above_locked()
587 if (idx > sidx) in idr_get_new_above_locked()
/freebsd/sys/dev/cxgbe/crypto/
H A Dt6_kern_tls.c1089 MPASS((uintptr_t)(*to) < (uintptr_t)&eq->desc[eq->sidx]); in copy_to_txd()
1092 (uintptr_t)&eq->desc[eq->sidx])) { in copy_to_txd()
1095 if ((uintptr_t)(*to) == (uintptr_t)&eq->desc[eq->sidx]) in copy_to_txd()
1098 int portion = (uintptr_t)&eq->desc[eq->sidx] - (uintptr_t)(*to); in copy_to_txd()
1345 using_scratch = (eq->sidx - pidx < SGE_MAX_WR_LEN / EQ_ESIZE); in ktls_write_tls_wr()
1596 IDXINCR(pidx, ndesc, eq->sidx); in ktls_write_tls_wr()
1606 using_scratch = (eq->sidx - pidx < in ktls_write_tls_wr()
1978 IDXINCR(pidx, ndesc, eq->sidx); in t6_ktls_write_wr()
2012 IDXINCR(pidx, ndesc, eq->sidx); in t6_ktls_write_wr()
2042 IDXINCR(pidx, ndesc, eq->sidx); in t6_ktls_write_wr()
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dbtree.c558 bt_transfer_core(zfs_btree_t *tree, zfs_btree_core_t *source, uint32_t sidx, in bt_transfer_core() argument
566 bcpy(source->btc_elems + sidx * size, dest->btc_elems + didx * size, in bt_transfer_core()
570 bcpy(source->btc_children + sidx + (shape == BSS_TRAPEZOID ? 0 : 1), in bt_transfer_core()
576 bt_transfer_leaf(zfs_btree_t *tree, zfs_btree_leaf_t *source, uint32_t sidx, in bt_transfer_leaf() argument
583 bcpy(source->btl_elems + (source->btl_hdr.bth_first + sidx) * size, in bt_transfer_leaf()
/freebsd/usr.sbin/bsnmpd/modules/snmp_pf/
H A Dpf_snmp.c1369 pfa_table_addrs(u_int sidx, struct pfr_table *pt) in pfa_table_addrs() argument
1424 e->index = sidx + i; in pfa_table_addrs()
/freebsd/contrib/bc/src/
H A Dnum.c1221 ssize_t sidx = (ssize_t) (i - blen + 1); in bc_num_m_simp() local
1225 j = (size_t) BC_MAX(0, sidx); in bc_num_m_simp()
/freebsd/sys/net/
H A Dpfvar.h1583 u_int8_t sidx; /* key index for source */ member
/freebsd/sys/contrib/dev/athk/ath12k/
H A Dwmi.h4116 a_sle32 sidx; member
H A Dwmi.c6714 ev->freq_offset, ev->sidx); in ath12k_wmi_pdev_dfs_radar_detected_event()
/freebsd/sys/contrib/dev/athk/ath11k/
H A Dwmi.h4834 s32 sidx; member
H A Dwmi.c8687 ev->freq_offset, ev->sidx); in ath11k_wmi_pdev_dfs_radar_detected_event()