/freebsd/sys/dev/ntb/test/ |
H A D | ntb_tool.c | 242 int sidx; member 1161 unsigned int sidx = arg2; in sysctl_spad_handle() local 1167 rc = ntb_spad_read(tc->dev, sidx, &bits); in sysctl_spad_handle() 1177 return ntb_spad_write(tc->dev, sidx, bits); in sysctl_spad_handle() 1187 unsigned int sidx = arg2; in sysctl_peer_spad_handle() local 1193 rc = ntb_peer_spad_read(tc->dev, sidx, &bits); in sysctl_peer_spad_handle() 1203 return ntb_peer_spad_write(tc->dev, sidx, bits); in sysctl_peer_spad_handle() 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() [all …]
|
/freebsd/contrib/ntp/libntp/ |
H A D | work_thread.c | 197 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] in ensure_workresp_empty_slot() [all...] |
/freebsd/sys/sys/ |
H A D | select.h | 92 unsigned long sidx = __fdset_idx_(p, idx); in __fdset_idx() local 96 if (psz / sizeof(__fd_mask) < (sidx + 1)) in __fdset_idx() 99 return (sidx); in __fdset_idx()
|
/freebsd/usr.bin/netstat/ |
H A D | nhgrp.c | 155 for (uint32_t sidx = 0; sidx < nhg_dp->nhgc_count; sidx++) { in print_nhgroup_entry_sysctl() local 156 if (ext_dp[sidx].nh_idx == ext_cp[i].nh_idx) in print_nhgroup_entry_sysctl()
|
/freebsd/sys/netpfil/pf/ |
H A D | pf.c | 607 if (PF_ANEQ(pd->src, &nk->addr[pd->sidx], pd->af)) in pf_packet_rework_nat() 609 &th->th_sum, &nk->addr[pd->sidx], in pf_packet_rework_nat() 610 nk->port[pd->sidx], 0, pd->af); in pf_packet_rework_nat() 621 if (PF_ANEQ(pd->src, &nk->addr[pd->sidx], pd->af)) in pf_packet_rework_nat() 623 &uh->uh_sum, &nk->addr[pd->sidx], in pf_packet_rework_nat() 624 nk->port[pd->sidx], 1, pd->af); in pf_packet_rework_nat() 636 if (PF_ANEQ(pd->src, &nk->addr[pd->sidx], pd->af)) { in pf_packet_rework_nat() 638 &checksum, &nk->addr[pd->sidx], in pf_packet_rework_nat() 639 nk->port[pd->sidx], 1, pd->af); in pf_packet_rework_nat() 652 if (nk->port[pd->sidx] != ih->icmp_id) { in pf_packet_rework_nat() [all …]
|
H A D | pf_nl.c | 1268 int sidx, didx; in pf_handle_natlook() local 1282 sidx = (attrs.direction == PF_IN) ? 1 : 0; in pf_handle_natlook() 1287 PF_ACPY(&key.addr[sidx], &attrs.src, attrs.af); in pf_handle_natlook() 1288 key.port[sidx] = attrs.sport; in pf_handle_natlook() 1310 sk = state->key[sidx]; in pf_handle_natlook() 1312 nlattr_add_in6_addr(nw, PF_NL_SRC_ADDR, &sk->addr[sidx].v6); in pf_handle_natlook() 1314 nlattr_add_u16(nw, PF_NL_SRC_PORT, sk->port[sidx]); in pf_handle_natlook()
|
H A D | pf_ioctl.c | 4073 int sidx, didx; in pfioctl() local 4076 sidx = (direction == PF_IN) ? 1 : 0; in pfioctl() 4090 PF_ACPY(&key.addr[sidx], &pnl->saddr, pnl->af); in pfioctl() 4091 key.port[sidx] = pnl->sport; in pfioctl() 4103 sk = state->key[sidx]; in pfioctl() 4104 PF_ACPY(&pnl->rsaddr, &sk->addr[sidx], sk->af); in pfioctl() 4105 pnl->rsport = sk->port[sidx]; in pfioctl()
|
/freebsd/sys/dev/cxgbe/ |
H A D | t4_sge.c | 1465 if (__predict_false(++iq->cidx == iq->sidx)) { in service_iq() 1560 if (__predict_false(cidx == fl->sidx)) in move_to_next_rxbuf() 1625 if (IDXDIFF(fl->hw_cidx, fl_hw_cidx, fl->sidx) > 4) { in service_iq_fl() 1675 if (__predict_false(++iq->cidx == iq->sidx)) { in service_iq_fl() 2167 available = eq->sidx - 1; in drain_wrq_wr_list() 2169 available = IDXDIFF(eq->cidx, eq->pidx, eq->sidx) - 1; in drain_wrq_wr_list() 2177 if (__predict_true(eq->sidx - eq->pidx > n)) { in drain_wrq_wr_list() 2182 int first_portion = (eq->sidx - eq->pidx) * EQ_ESIZE; in drain_wrq_wr_list() 2189 eq->pidx = n - (eq->sidx - eq->pidx); in drain_wrq_wr_list() 2193 if (available < eq->sidx / 4 && in drain_wrq_wr_list() [all …]
|
H A D | t4_netmap.c | 231 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() 1031 NMIDXDIFF(nm_txq, equiqidx) >= nm_txq->sidx / 2) { in cxgbe_nm_tx() 1064 return (nm_txq->sidx - nm_txq->pidx); in contiguous_ndesc_available() 1066 return (nm_txq->sidx - nm_txq->pidx - 1); in contiguous_ndesc_available() 1072 struct sge_qstat *spg = (void *)&nm_txq->desc[nm_txq->sidx]; in reclaim_nm_tx_desc() 1095 MPASS(nm_txq->cidx <= nm_txq->sidx); in reclaim_nm_tx_desc() [all …]
|
H A D | adapter.h | 433 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 1307 return (eq->sidx / 4); in tx_resume_threshold()
|
H A D | t4_main.c | 7046 struct sge_qstat *spg = (void *)&eq->desc[eq->sidx]; in quiesce_txq() 7084 IDXINCR(eq->cidx, txsd->desc_used, eq->sidx); in quiesce_txq()
|
/freebsd/sys/compat/linuxkpi/common/src/ |
H A D | linux_idr.c | 523 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 D | t6_kern_tls.c | 1089 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() [all...] |
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | btree.c | 558 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 D | pf_snmp.c | 1369 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 D | num.c | 1270 ssize_t sidx = (ssize_t) (i - blen + 1); in bc_num_m_simp() local 1274 j = (size_t) BC_MAX(0, sidx); in bc_num_m_simp()
|
/freebsd/sys/net/ |
H A D | pfvar.h | 1628 u_int8_t sidx; /* key index for source */ member
|
/freebsd/sys/contrib/dev/athk/ath12k/ |
H A D | wmi.h | 4116 a_sle32 sidx; member
|
H A D | wmi.c | 6714 ev->freq_offset, ev->sidx); in ath12k_wmi_pdev_dfs_radar_detected_event()
|
/freebsd/sys/contrib/dev/athk/ath11k/ |
H A D | wmi.h | 4834 s32 sidx; member
|
H A D | wmi.c | 8687 ev->freq_offset, ev->sidx); in ath11k_wmi_pdev_dfs_radar_detected_event()
|