Home
last modified time | relevance | path

Searched refs:pi (Results 1 – 25 of 373) sorted by relevance

12345678910>>...15

/freebsd/lib/libc/stdio/
H A Dxprintf.c160 __printf_out(struct __printf_io *io, const struct printf_info *pi, const void *ptr, int len) in __printf_out() argument
164 if ((!pi->left) && pi->width > len) in __printf_out()
165 ret += __printf_pad(io, pi->width - len, pi->pad == '0'); in __printf_out()
167 if (pi->left && pi->width > len) in __printf_out()
168 ret += __printf_pad(io, pi->width - len, pi->pad == '0'); in __printf_out()
176 __printf_arginfo_pct(const struct printf_info *pi __unused, size_t n __unused, int *argt __unused) in __printf_arginfo_pct()
183 __printf_render_pct(struct __printf_io *io, const struct printf_info *pi __unused, const void *cons… in __printf_render_pct()
192 __printf_arginfo_n(const struct printf_info *pi, size_t n, int *argt) in __printf_arginfo_n() argument
206 __printf_render_n(FILE *io __unused, const struct printf_info *pi, const void *const *arg) in __printf_render_n() argument
209 if (pi->is_char) in __printf_render_n()
[all …]
H A Dxprintf_int.c232 __printf_arginfo_int(const struct printf_info *pi, size_t n, int *argt) in __printf_arginfo_int() argument
236 if (pi->is_ptrdiff) in __printf_arginfo_int()
238 else if (pi->is_size) in __printf_arginfo_int()
240 else if (pi->is_long) in __printf_arginfo_int()
242 else if (pi->is_intmax) in __printf_arginfo_int()
244 else if (pi->is_quad) in __printf_arginfo_int()
246 else if (pi->is_long_double) in __printf_arginfo_int()
248 else if (pi->is_short) in __printf_arginfo_int()
250 else if (pi->is_char) in __printf_arginfo_int()
256 __printf_render_int(struct __printf_io *io, const struct printf_info *pi, const void *const *arg) in __printf_render_int() argument
[all …]
H A Dxprintf_str.c109 __printf_arginfo_str(const struct printf_info *pi, size_t n, int *argt) in __printf_arginfo_str() argument
113 if (pi->is_long || pi->spec == 'C') in __printf_arginfo_str()
121 __printf_render_str(struct __printf_io *io, const struct printf_info *pi, const void *const *arg) in __printf_render_str() argument
128 if (pi->is_long || pi->spec == 'S') { in __printf_render_str()
131 return (__printf_out(io, pi, "(null)", 6)); in __printf_render_str()
132 convbuf = __wcsconv(wcp, pi->prec); in __printf_render_str()
135 l = __printf_out(io, pi, convbuf, strlen(convbuf)); in __printf_render_str()
141 return (__printf_out(io, pi, "(null)", 6)); in __printf_render_str()
143 if (pi->prec >= 0 && pi->prec < l) in __printf_render_str()
144 l = pi->prec; in __printf_render_str()
[all …]
H A Dxprintf_float.c123 __printf_arginfo_float(const struct printf_info *pi, size_t n, int *argt) in __printf_arginfo_float() argument
127 if (pi->is_long_double) in __printf_arginfo_float()
148 __printf_render_float(struct __printf_io *io, const struct printf_info *pi, const void *const *arg) in __printf_render_float() argument
179 prec = pi->prec; in __printf_render_float()
181 sign = pi->showsign; in __printf_render_float()
187 if (pi->alt) in __printf_render_float()
192 switch(pi->spec) { in __printf_render_float()
195 if (pi->spec == 'a') { in __printf_render_float()
206 if (pi->is_long_double) { in __printf_render_float()
224 expchar = pi->spec; in __printf_render_float()
[all …]
H A Dxprintf_quote.c41 __printf_arginfo_quote(const struct printf_info *pi __unused, size_t n, int *argt) in __printf_arginfo_quote()
50 __printf_render_quote(struct __printf_io *io, const struct printf_info *pi __unused, const void *co… in __printf_render_quote()
58 return (__printf_out(io, pi, "\"(null)\"", 8)); in __printf_render_quote()
60 return (__printf_out(io, pi, "\"\"", 2)); in __printf_render_quote()
66 return (__printf_out(io, pi, str, strlen(str))); in __printf_render_quote()
68 ret = __printf_out(io, pi, "\"", 1); in __printf_render_quote()
89 ret += __printf_out(io, pi, t, p - t); in __printf_render_quote()
90 ret += __printf_out(io, pi, o, strlen(o)); in __printf_render_quote()
94 ret += __printf_out(io, pi, t, p - t); in __printf_render_quote()
95 ret += __printf_out(io, pi, "\"", 1); in __printf_render_quote()
H A Dxprintf_vis.c40 __printf_arginfo_vis(const struct printf_info *pi, size_t n, int *argt) in __printf_arginfo_vis() argument
49 __printf_render_vis(struct __printf_io *io, const struct printf_info *pi, const void *const *arg) in __printf_render_vis() argument
58 return (__printf_out(io, pi, "(null)", 6)); in __printf_render_vis()
59 if (pi->prec >= 0) in __printf_render_vis()
60 l = pi->prec; in __printf_render_vis()
66 if (pi->showsign) in __printf_render_vis()
68 else if (pi->pad == '0') in __printf_render_vis()
70 else if (pi->alt) in __printf_render_vis()
74 ret += __printf_out(io, pi, buf, ret); in __printf_render_vis()
/freebsd/usr.sbin/bhyve/
H A Dpci_emul.c158 static void pci_lintr_route(struct pci_devinst *pi);
159 static void pci_lintr_update(struct pci_devinst *pi);
166 CFGWRITE(struct pci_devinst *pi, int coff, uint32_t val, int bytes) in CFGWRITE() argument
170 pci_set_cfgdata8(pi, coff, val); in CFGWRITE()
172 pci_set_cfgdata16(pi, coff, val); in CFGWRITE()
174 pci_set_cfgdata32(pi, coff, val); in CFGWRITE()
178 CFGREAD(struct pci_devinst *pi, int coff, int bytes) in CFGREAD() argument
182 return (pci_get_cfgdata8(pi, coff)); in CFGREAD()
184 return (pci_get_cfgdata16(pi, coff)); in CFGREAD()
186 return (pci_get_cfgdata32(pi, coff)); in CFGREAD()
[all …]
H A Dpci_passthru.c149 struct pci_io pi; in pci_host_read_config() local
155 bzero(&pi, sizeof(pi)); in pci_host_read_config()
156 pi.pi_sel = *sel; in pci_host_read_config()
157 pi.pi_reg = reg; in pci_host_read_config()
158 pi.pi_width = width; in pci_host_read_config()
160 if (ioctl(pcifd, PCIOCREAD, &pi) < 0) in pci_host_read_config()
163 return (pi.pi_data); in pci_host_read_config()
170 struct pci_io pi; in pci_host_write_config() local
176 bzero(&pi, sizeof(pi)); in pci_host_write_config()
177 pi.pi_sel = *sel; in pci_host_write_config()
[all …]
H A Dpci_uart.c50 struct pci_devinst *pi = arg; in pci_uart_intr_assert() local
52 pci_lintr_assert(pi); in pci_uart_intr_assert()
58 struct pci_devinst *pi = arg; in pci_uart_intr_deassert() local
60 pci_lintr_deassert(pi); in pci_uart_intr_deassert()
64 pci_uart_write(struct pci_devinst *pi, int baridx, uint64_t offset, int size, in pci_uart_write() argument
70 uart_ns16550_write(pi->pi_arg, offset, value); in pci_uart_write()
74 pci_uart_read(struct pci_devinst *pi, int baridx, uint64_t offset, int size) in pci_uart_read() argument
81 val = uart_ns16550_read(pi->pi_arg, offset); in pci_uart_read()
95 pci_uart_init(struct pci_devinst *pi, nvlist_t *nvl) in pci_uart_init() argument
100 pci_emul_alloc_bar(pi, 0, PCIBAR_IO, UART_NS16550_IO_BAR_SIZE); in pci_uart_init()
[all …]
/freebsd/stand/common/
H A Dpnp.c32 struct pnpinfo *pi; in pnp_scan() local
70 STAILQ_FOREACH(pi, &pnp_devices, pi_link) { in pnp_scan()
71 pager_output(STAILQ_FIRST(&pi->pi_ident)->id_ident); /* first ident should be canonical */ in pnp_scan()
72 if (pi->pi_desc != NULL) { in pnp_scan()
74 pager_output(pi->pi_desc); in pnp_scan()
91 struct pnpinfo *pi; in pnp_discard() local
94 pi = STAILQ_FIRST(&pnp_devices); in pnp_discard()
96 pnp_freeinfo(pi); in pnp_discard()
104 pnp_addident(struct pnpinfo *pi, char *ident) in pnp_addident() argument
108 STAILQ_FOREACH(id, &pi->pi_ident, id_link) in pnp_addident()
[all …]
/freebsd/sys/dev/ice/
H A Dice_sched.c36 * @pi: port information structure
43 ice_sched_add_root_node(struct ice_port_info *pi, in ice_sched_add_root_node() argument
49 if (!pi) in ice_sched_add_root_node()
52 hw = pi->hw; in ice_sched_add_root_node()
66 pi->root = root; in ice_sched_add_root_node()
172 * @pi: port information structure
180 ice_sched_add_node(struct ice_port_info *pi, u8 layer, in ice_sched_add_node()
190 if (!pi) in ice_sched_add_node()
193 hw = pi->hw; in ice_sched_add_node()
196 parent = ice_sched_find_node_by_teid(pi in ice_sched_add_node()
178 ice_sched_add_node(struct ice_port_info * pi,u8 layer,struct ice_aqc_txsched_elem_data * info,struct ice_sched_node * prealloc_node) ice_sched_add_node() argument
301 ice_sched_get_first_node(struct ice_port_info * pi,struct ice_sched_node * parent,u8 layer) ice_sched_get_first_node() argument
314 ice_sched_get_tc_node(struct ice_port_info * pi,u8 tc) ice_sched_get_tc_node() argument
335 ice_free_sched_node(struct ice_port_info * pi,struct ice_sched_node * node) ice_free_sched_node() argument
802 ice_sched_clear_rl_prof(struct ice_port_info * pi) ice_sched_clear_rl_prof() argument
863 ice_sched_clear_tx_topo(struct ice_port_info * pi) ice_sched_clear_tx_topo() argument
881 ice_sched_clear_port(struct ice_port_info * pi) ice_sched_clear_port() argument
984 ice_sched_add_elems(struct ice_port_info * pi,struct ice_sched_node * tc_node,struct ice_sched_node * parent,u8 layer,u16 num_nodes,u16 * num_nodes_added,u32 * first_node_teid,struct ice_sched_node ** prealloc_nodes) ice_sched_add_elems() argument
1088 ice_sched_add_nodes_to_hw_layer(struct ice_port_info * pi,struct ice_sched_node * tc_node,struct ice_sched_node * parent,u8 layer,u16 num_nodes,u32 * first_node_teid,u16 * num_nodes_added) ice_sched_add_nodes_to_hw_layer() argument
1132 ice_sched_add_nodes_to_layer(struct ice_port_info * pi,struct ice_sched_node * tc_node,struct ice_sched_node * parent,u8 layer,u16 num_nodes,u32 * first_node_teid,u16 * num_nodes_added) ice_sched_add_nodes_to_layer() argument
1247 ice_rm_dflt_leaf_node(struct ice_port_info * pi) ice_rm_dflt_leaf_node() argument
1275 ice_sched_rm_dflt_nodes(struct ice_port_info * pi) ice_sched_rm_dflt_nodes() argument
1305 ice_sched_init_port(struct ice_port_info * pi) ice_sched_init_port() argument
1410 ice_sched_get_node(struct ice_port_info * pi,u32 teid) ice_sched_get_node() argument
1568 ice_sched_get_free_qgrp(struct ice_port_info * pi,struct ice_sched_node * vsi_node,struct ice_sched_node * qgrp_node,u8 owner) ice_sched_get_free_qgrp() argument
1613 ice_sched_get_free_qparent(struct ice_port_info * pi,u16 vsi_handle,u8 tc,u8 owner) ice_sched_get_free_qparent() argument
1664 ice_sched_get_vsi_node(struct ice_port_info * pi,struct ice_sched_node * tc_node,u16 vsi_handle) ice_sched_get_vsi_node() argument
1693 ice_sched_get_agg_node(struct ice_port_info * pi,struct ice_sched_node * tc_node,u32 agg_id) ice_sched_get_agg_node() argument
1782 ice_sched_add_vsi_child_nodes(struct ice_port_info * pi,u16 vsi_handle,struct ice_sched_node * tc_node,u16 * num_nodes,u8 owner) ice_sched_add_vsi_child_nodes() argument
1838 ice_sched_calc_vsi_support_nodes(struct ice_port_info * pi,struct ice_sched_node * tc_node,u16 * num_nodes) ice_sched_calc_vsi_support_nodes() argument
1887 ice_sched_add_vsi_support_nodes(struct ice_port_info * pi,u16 vsi_handle,struct ice_sched_node * tc_node,u16 * num_nodes) ice_sched_add_vsi_support_nodes() argument
1937 ice_sched_add_vsi_to_topo(struct ice_port_info * pi,u16 vsi_handle,u8 tc) ice_sched_add_vsi_to_topo() argument
1965 ice_sched_update_vsi_child_nodes(struct ice_port_info * pi,u16 vsi_handle,u8 tc,u16 new_numqs,u8 owner) ice_sched_update_vsi_child_nodes() argument
2040 ice_sched_cfg_vsi(struct ice_port_info * pi,u16 vsi_handle,u8 tc,u16 maxqs,u8 owner,bool enable) ice_sched_cfg_vsi() argument
2116 ice_sched_rm_agg_vsi_info(struct ice_port_info * pi,u16 vsi_handle) ice_sched_rm_agg_vsi_info() argument
2165 ice_sched_rm_vsi_cfg(struct ice_port_info * pi,u16 vsi_handle,u8 owner) ice_sched_rm_vsi_cfg() argument
2236 ice_rm_vsi_lan_cfg(struct ice_port_info * pi,u16 vsi_handle) ice_rm_vsi_lan_cfg() argument
2249 ice_rm_vsi_rdma_cfg(struct ice_port_info * pi,u16 vsi_handle) ice_rm_vsi_rdma_cfg() argument
2410 ice_sched_move_nodes(struct ice_port_info * pi,struct ice_sched_node * parent,u16 num_items,u32 * list) ice_sched_move_nodes() argument
2473 ice_sched_move_vsi_to_agg(struct ice_port_info * pi,u16 vsi_handle,u32 agg_id,u8 tc) ice_sched_move_vsi_to_agg() argument
2555 ice_move_all_vsi_to_dflt_agg(struct ice_port_info * pi,struct ice_sched_agg_info * agg_info,u8 tc,bool rm_vsi_info) ice_move_all_vsi_to_dflt_agg() argument
2594 ice_sched_is_agg_inuse(struct ice_port_info * pi,struct ice_sched_node * node) ice_sched_is_agg_inuse() argument
2619 ice_sched_rm_agg_cfg(struct ice_port_info * pi,u32 agg_id,u8 tc) ice_sched_rm_agg_cfg() argument
2667 ice_rm_agg_cfg_tc(struct ice_port_info * pi,struct ice_sched_agg_info * agg_info,u8 tc,bool rm_vsi_info) ice_rm_agg_cfg_tc() argument
2700 ice_save_agg_tc_bitmap(struct ice_port_info * pi,u32 agg_id,ice_bitmap_t * tc_bitmap) ice_save_agg_tc_bitmap() argument
2723 ice_sched_add_agg_cfg(struct ice_port_info * pi,u32 agg_id,u8 tc) ice_sched_add_agg_cfg() argument
2813 ice_sched_cfg_agg(struct ice_port_info * pi,u32 agg_id,enum ice_agg_type agg_type,ice_bitmap_t * tc_bitmap) ice_sched_cfg_agg() argument
2875 ice_cfg_agg(struct ice_port_info * pi,u32 agg_id,enum ice_agg_type agg_type,u8 tc_bitmap) ice_cfg_agg() argument
2948 ice_save_agg_vsi_tc_bitmap(struct ice_port_info * pi,u32 agg_id,u16 vsi_handle,ice_bitmap_t * tc_bitmap) ice_save_agg_vsi_tc_bitmap() argument
2978 ice_sched_assoc_vsi_to_agg(struct ice_port_info * pi,u32 agg_id,u16 vsi_handle,ice_bitmap_t * tc_bitmap) ice_sched_assoc_vsi_to_agg() argument
3155 ice_move_vsi_to_agg(struct ice_port_info * pi,u32 agg_id,u16 vsi_handle,u8 tc_bitmap) ice_move_vsi_to_agg() argument
3179 ice_rm_agg_cfg(struct ice_port_info * pi,u32 agg_id) ice_rm_agg_cfg() argument
3262 ice_sched_save_vsi_bw_alloc(struct ice_port_info * pi,u16 vsi_handle,u8 tc,enum ice_rl_type rl_type,u16 bw_alloc) ice_sched_save_vsi_bw_alloc() argument
3355 ice_sched_save_vsi_bw(struct ice_port_info * pi,u16 vsi_handle,u8 tc,enum ice_rl_type rl_type,u32 bw) ice_sched_save_vsi_bw() argument
3407 ice_sched_save_vsi_prio(struct ice_port_info * pi,u16 vsi_handle,u8 tc,u8 prio) ice_sched_save_vsi_prio() argument
3434 ice_sched_save_agg_bw_alloc(struct ice_port_info * pi,u32 agg_id,u8 tc,enum ice_rl_type rl_type,u16 bw_alloc) ice_sched_save_agg_bw_alloc() argument
3468 ice_sched_save_agg_bw(struct ice_port_info * pi,u32 agg_id,u8 tc,enum ice_rl_type rl_type,u32 bw) ice_sched_save_agg_bw() argument
3506 ice_cfg_vsi_bw_lmt_per_tc(struct ice_port_info * pi,u16 vsi_handle,u8 tc,enum ice_rl_type rl_type,u32 bw) ice_cfg_vsi_bw_lmt_per_tc() argument
3533 ice_cfg_vsi_bw_dflt_lmt_per_tc(struct ice_port_info * pi,u16 vsi_handle,u8 tc,enum ice_rl_type rl_type) ice_cfg_vsi_bw_dflt_lmt_per_tc() argument
3563 ice_cfg_agg_bw_lmt_per_tc(struct ice_port_info * pi,u32 agg_id,u8 tc,enum ice_rl_type rl_type,u32 bw) ice_cfg_agg_bw_lmt_per_tc() argument
3589 ice_cfg_agg_bw_dflt_lmt_per_tc(struct ice_port_info * pi,u32 agg_id,u8 tc,enum ice_rl_type rl_type) ice_cfg_agg_bw_dflt_lmt_per_tc() argument
3618 ice_cfg_vsi_bw_shared_lmt(struct ice_port_info * pi,u16 vsi_handle,u32 min_bw,u32 max_bw,u32 shared_bw) ice_cfg_vsi_bw_shared_lmt() argument
3634 ice_cfg_vsi_bw_no_shared_lmt(struct ice_port_info * pi,u16 vsi_handle) ice_cfg_vsi_bw_no_shared_lmt() argument
3654 ice_cfg_agg_bw_shared_lmt(struct ice_port_info * pi,u32 agg_id,u32 min_bw,u32 max_bw,u32 shared_bw) ice_cfg_agg_bw_shared_lmt() argument
3670 ice_cfg_agg_bw_no_shared_lmt(struct ice_port_info * pi,u32 agg_id) ice_cfg_agg_bw_no_shared_lmt() argument
3690 ice_cfg_agg_bw_shared_lmt_per_tc(struct ice_port_info * pi,u32 agg_id,u8 tc,u32 min_bw,u32 max_bw,u32 shared_bw) ice_cfg_agg_bw_shared_lmt_per_tc() argument
3707 ice_cfg_agg_bw_no_shared_lmt_per_tc(struct ice_port_info * pi,u32 agg_id,u8 tc) ice_cfg_agg_bw_no_shared_lmt_per_tc() argument
3726 ice_cfg_vsi_q_priority(struct ice_port_info * pi,u16 num_qs,u32 * q_ids,u8 * q_prio) ice_cfg_vsi_q_priority() argument
3766 ice_cfg_agg_vsi_priority_per_tc(struct ice_port_info * pi,u32 agg_id,u16 num_vsis,u16 * vsi_handle_arr,u8 * node_prio,u8 tc) ice_cfg_agg_vsi_priority_per_tc() argument
3853 ice_cfg_vsi_bw_alloc(struct ice_port_info * pi,u16 vsi_handle,u8 ena_tcmap,enum ice_rl_type rl_type,u8 * bw_alloc) ice_cfg_vsi_bw_alloc() argument
3905 ice_cfg_agg_bw_alloc(struct ice_port_info * pi,u32 agg_id,u8 ena_tcmap,enum ice_rl_type rl_type,u8 * bw_alloc) ice_cfg_agg_bw_alloc() argument
4229 ice_sched_get_rl_prof_layer(struct ice_port_info * pi,enum ice_rl_type rl_type,u8 layer_index) ice_sched_get_rl_prof_layer() argument
4339 ice_sched_set_node_bw_dflt(struct ice_port_info * pi,struct ice_sched_node * node,enum ice_rl_type rl_type,u8 layer_num) ice_sched_set_node_bw_dflt() argument
4395 ice_sched_set_node_bw(struct ice_port_info * pi,struct ice_sched_node * node,enum ice_rl_type rl_type,u32 bw,u8 layer_num) ice_sched_set_node_bw() argument
4439 ice_sched_set_node_priority(struct ice_port_info * pi,struct ice_sched_node * node,u16 priority) ice_sched_set_node_priority() argument
4464 ice_sched_set_node_weight(struct ice_port_info * pi,struct ice_sched_node * node,u16 weight) ice_sched_set_node_weight() argument
4496 ice_sched_set_node_bw_lmt(struct ice_port_info * pi,struct ice_sched_node * node,enum ice_rl_type rl_type,u32 bw) ice_sched_set_node_bw_lmt() argument
4529 ice_sched_set_node_bw_dflt_lmt(struct ice_port_info * pi,struct ice_sched_node * node,enum ice_rl_type rl_type) ice_sched_set_node_bw_dflt_lmt() argument
4603 ice_sched_set_q_bw_lmt(struct ice_port_info * pi,u16 vsi_handle,u8 tc,u16 q_handle,enum ice_rl_type rl_type,u32 bw) ice_sched_set_q_bw_lmt() argument
4666 ice_cfg_q_bw_lmt(struct ice_port_info * pi,u16 vsi_handle,u8 tc,u16 q_handle,enum ice_rl_type rl_type,u32 bw) ice_cfg_q_bw_lmt() argument
4684 ice_cfg_q_bw_dflt_lmt(struct ice_port_info * pi,u16 vsi_handle,u8 tc,u16 q_handle,enum ice_rl_type rl_type) ice_cfg_q_bw_dflt_lmt() argument
4702 ice_sched_save_tc_node_bw(struct ice_port_info * pi,u8 tc,enum ice_rl_type rl_type,u32 bw) ice_sched_save_tc_node_bw() argument
4733 ice_sched_set_tc_node_bw_lmt(struct ice_port_info * pi,u8 tc,enum ice_rl_type rl_type,u32 bw) ice_sched_set_tc_node_bw_lmt() argument
4768 ice_cfg_tc_node_bw_lmt(struct ice_port_info * pi,u8 tc,enum ice_rl_type rl_type,u32 bw) ice_cfg_tc_node_bw_lmt() argument
4783 ice_cfg_tc_node_bw_dflt_lmt(struct ice_port_info * pi,u8 tc,enum ice_rl_type rl_type) ice_cfg_tc_node_bw_dflt_lmt() argument
4799 ice_sched_save_tc_node_bw_alloc(struct ice_port_info * pi,u8 tc,enum ice_rl_type rl_type,u16 bw_alloc) ice_sched_save_tc_node_bw_alloc() argument
4831 ice_sched_set_tc_node_bw_alloc(struct ice_port_info * pi,u8 tc,enum ice_rl_type rl_type,u8 bw_alloc) ice_sched_set_tc_node_bw_alloc() argument
4865 ice_cfg_tc_node_bw_alloc(struct ice_port_info * pi,u8 tc,enum ice_rl_type rl_type,u8 bw_alloc) ice_cfg_tc_node_bw_alloc() argument
4881 ice_sched_set_agg_bw_dflt_lmt(struct ice_port_info * pi,u16 vsi_handle) ice_sched_set_agg_bw_dflt_lmt() argument
4932 ice_sched_get_node_by_id_type(struct ice_port_info * pi,u32 id,enum ice_agg_type agg_type,u8 tc) ice_sched_get_node_by_id_type() argument
4997 ice_sched_set_node_bw_lmt_per_tc(struct ice_port_info * pi,u32 id,enum ice_agg_type agg_type,u8 tc,enum ice_rl_type rl_type,u32 bw) ice_sched_set_node_bw_lmt_per_tc() argument
5036 ice_sched_validate_vsi_srl_node(struct ice_port_info * pi,u16 vsi_handle) ice_sched_validate_vsi_srl_node() argument
5091 ice_sched_set_save_vsi_srl_node_bw(struct ice_port_info * pi,u16 vsi_handle,u8 tc,struct ice_sched_node * srl_node,enum ice_rl_type rl_type,u32 bw) ice_sched_set_save_vsi_srl_node_bw() argument
5123 ice_sched_set_vsi_node_srl_per_tc(struct ice_port_info * pi,u16 vsi_handle,u8 tc,u32 min_bw,u32 max_bw,u32 shared_bw) ice_sched_set_vsi_node_srl_per_tc() argument
5177 ice_sched_set_vsi_bw_shared_lmt(struct ice_port_info * pi,u16 vsi_handle,u32 min_bw,u32 max_bw,u32 shared_bw) ice_sched_set_vsi_bw_shared_lmt() argument
5227 ice_sched_validate_agg_srl_node(struct ice_port_info * pi,u32 agg_id) ice_sched_validate_agg_srl_node() argument
5282 ice_sched_validate_agg_id(struct ice_port_info * pi,u32 agg_id) ice_sched_validate_agg_id() argument
5320 ice_sched_set_save_agg_srl_node_bw(struct ice_port_info * pi,u32 agg_id,u8 tc,struct ice_sched_node * srl_node,enum ice_rl_type rl_type,u32 bw) ice_sched_set_save_agg_srl_node_bw() argument
5352 ice_sched_set_agg_node_srl_per_tc(struct ice_port_info * pi,u32 agg_id,u8 tc,u32 min_bw,u32 max_bw,u32 shared_bw) ice_sched_set_agg_node_srl_per_tc() argument
5407 ice_sched_set_agg_bw_shared_lmt(struct ice_port_info * pi,u32 agg_id,u32 min_bw,u32 max_bw,u32 shared_bw) ice_sched_set_agg_bw_shared_lmt() argument
5459 ice_sched_set_agg_bw_shared_lmt_per_tc(struct ice_port_info * pi,u32 agg_id,u8 tc,u32 min_bw,u32 max_bw,u32 shared_bw) ice_sched_set_agg_bw_shared_lmt_per_tc() argument
5490 ice_sched_cfg_sibl_node_prio(struct ice_port_info * pi,struct ice_sched_node * node,u8 priority) ice_sched_cfg_sibl_node_prio() argument
5594 struct ice_port_info *pi = hw->port_info; ice_sched_replay_node_bw() local
5691 ice_sched_get_ena_tc_bitmap(struct ice_port_info * pi,ice_bitmap_t * tc_bitmap,ice_bitmap_t * ena_tc_bitmap) ice_sched_get_ena_tc_bitmap() argument
5713 struct ice_port_info *pi = hw->port_info; ice_sched_replay_agg() local
5759 struct ice_port_info *pi = hw->port_info; ice_sched_replay_agg_vsi_preinit() local
5781 ice_sched_replay_root_node_bw(struct ice_port_info * pi) ice_sched_replay_root_node_bw() argument
5801 ice_sched_replay_tc_node_bw(struct ice_port_info * pi) ice_sched_replay_tc_node_bw() argument
5838 struct ice_port_info *pi = hw->port_info; ice_sched_replay_vsi_bw() local
5878 struct ice_port_info *pi = hw->port_info; ice_sched_replay_vsi_agg() local
5926 struct ice_port_info *pi = hw->port_info; ice_replay_vsi_agg() local
5944 ice_sched_replay_q_bw(struct ice_port_info * pi,struct ice_q_ctx * q_ctx) ice_sched_replay_q_bw() argument
[all...]
H A Dice_sched.h135 ice_sched_set_node_bw_lmt(struct ice_port_info *pi, struct ice_sched_node *node,
139 ice_sched_set_node_bw(struct ice_port_info *pi, struct ice_sched_node *node,
143 ice_sched_add_elems(struct ice_port_info *pi, struct ice_sched_node *tc_node,
149 ice_sched_move_nodes(struct ice_port_info *pi, struct ice_sched_node *parent,
153 ice_sched_set_node_priority(struct ice_port_info *pi, struct ice_sched_node *node,
156 ice_sched_set_node_weight(struct ice_port_info *pi, struct ice_sched_node *node,
159 int ice_sched_init_port(struct ice_port_info *pi);
164 void ice_sched_clear_port(struct ice_port_info *pi);
169 struct ice_sched_node *ice_sched_get_node(struct ice_port_info *pi, u32 teid);
174 ice_sched_add_node(struct ice_port_info *pi, u
[all...]
H A Dice_common_txrx.h51 * @pi: packet information
63 ice_tso_detect_sparse(if_pkt_info_t pi) in ice_tso_detect_sparse() argument
66 bus_dma_segment_t *segs = pi->ipi_segs; in ice_tso_detect_sparse()
67 int nsegs = pi->ipi_nsegs; in ice_tso_detect_sparse()
71 hlen = pi->ipi_ehdrlen + pi->ipi_ip_hlen + pi->ipi_tcp_hlen; in ice_tso_detect_sparse()
72 tsolen = pi->ipi_len - hlen; in ice_tso_detect_sparse()
111 segsz = pi->ipi_tso_segsz; in ice_tso_detect_sparse()
138 * @pi
145 ice_tso_setup(struct ice_tx_queue * txq,if_pkt_info_t pi) ice_tso_setup() argument
192 ice_tx_setup_offload(struct ice_tx_queue * txq,if_pkt_info_t pi,u32 * cmd,u32 * off) ice_tx_setup_offload() argument
[all...]
/freebsd/lib/msun/tests/
H A Dinvtrig_test.c113 pi = 3.14159265358979323846264338327950280e+00L, variable
130 testall(acos, 0.0, pi / 2, FE_INEXACT); in ATF_TC_BODY()
133 testall(acos, -0.0, pi / 2, FE_INEXACT); in ATF_TC_BODY()
138 testall(atan, INFINITY, pi / 2, FE_INEXACT); in ATF_TC_BODY()
141 testall(atan, -INFINITY, -pi / 2, FE_INEXACT); in ATF_TC_BODY()
158 testall2(atan2, 0.0, -0.0, pi, FE_INEXACT); in ATF_TC_BODY()
159 testall2(atan2, -0.0, -0.0, -pi, FE_INEXACT); in ATF_TC_BODY()
165 testall2(atan2, INFINITY, INFINITY, pi / 4, FE_INEXACT); in ATF_TC_BODY()
166 testall2(atan2, -INFINITY, INFINITY, -pi / 4, FE_INEXACT); in ATF_TC_BODY()
173 test2(atan2f, 0.0, ldexpf(-z, e), (float)pi, FE_INEXACT); in ATF_TC_BODY()
[all …]
H A Dinvctrig_test.c118 pi = 3.14159265358979323846264338327950280L, variable
128 testall_tol(cacosh, zero, CMPLXL(0.0, pi / 2), 1); in ATF_TC_BODY()
129 testall_tol(cacosh, -zero, CMPLXL(0.0, -pi / 2), 1); in ATF_TC_BODY()
130 testall_tol(cacos, zero, CMPLXL(pi / 2, -0.0), 1); in ATF_TC_BODY()
131 testall_tol(cacos, -zero, CMPLXL(pi / 2, 0.0), 1); in ATF_TC_BODY()
191 testall_tol(catanh, z, CMPLXL(0.0, pi / 2), 1); in ATF_TC_BODY()
202 testall_odd_tol(catan, z, CMPLXL(pi / 2, 0.0), 1); in ATF_TC_BODY()
207 testall_even_tol(cacos, z, CMPLXL(pi / 2, NAN), 1); in ATF_TC_BODY()
236 testall_tol(cacosh, z, CMPLXL(INFINITY, pi / 4), 1); in ATF_TC_BODY()
238 testall_tol(cacos, z, CMPLXL(pi / 4, -INFINITY), 1); in ATF_TC_BODY()
[all …]
/freebsd/sys/dev/axgbe/
H A Dxgbe-txrx.c60 xgbe_print_pkt_info(struct xgbe_prv_data *pdata, if_pkt_info_t pi) in xgbe_print_pkt_info() argument
64 axgbe_printf(1, "pi len: %d qsidx: %d nsegs: %d ndescs: %d flags: %x pidx: %d\n", in xgbe_print_pkt_info()
65 pi->ipi_len, pi->ipi_qsidx, pi->ipi_nsegs, pi->ipi_ndescs, pi->ipi_flags, pi->ipi_pidx); in xgbe_print_pkt_info()
66 axgbe_printf(1, "pi new_pidx: %d csum_flags: %x mflags: %x vtag: %d\n", in xgbe_print_pkt_info()
67 pi in xgbe_print_pkt_info()
76 axgbe_ctx_desc_setup(struct xgbe_prv_data * pdata,struct xgbe_ring * ring,if_pkt_info_t pi) axgbe_ctx_desc_setup() argument
124 axgbe_calculate_tx_parms(struct xgbe_prv_data * pdata,if_pkt_info_t pi,struct xgbe_packet_data * packet) axgbe_calculate_tx_parms() argument
170 axgbe_isc_txd_encap(void * arg,if_pkt_info_t pi) axgbe_isc_txd_encap() argument
[all...]
/freebsd/sys/dev/iavf/
H A Diavf_txrx_iflib.c49 static int iavf_isc_txd_encap(void *arg, if_pkt_info_t pi);
130 iavf_tso_detect_sparse(bus_dma_segment_t *segs, int nsegs, if_pkt_info_t pi) in iavf_tso_detect_sparse() argument
136 segsz = pi->ipi_tso_segsz; in iavf_tso_detect_sparse()
139 hlen = pi->ipi_ehdrlen + pi->ipi_ip_hlen + pi->ipi_tcp_hlen; in iavf_tso_detect_sparse()
140 tsolen = pi->ipi_len - hlen; in iavf_tso_detect_sparse()
160 segsz = pi->ipi_tso_segsz; in iavf_tso_detect_sparse()
196 if_pkt_info_t pi, u32 *cmd, u32 *off) in iavf_tx_setup_offload() argument
198 switch (pi->ipi_etype) { in iavf_tx_setup_offload()
201 if (pi->ipi_csum_flags & IAVF_CSUM_IPV4) in iavf_tx_setup_offload()
216 *off |= (pi->ipi_ehdrlen >> 1) << IAVF_TX_DESC_LENGTH_MACLEN_SHIFT; in iavf_tx_setup_offload()
[all …]
/freebsd/crypto/openssl/crypto/x509/
H A Dv3_admis.c291 void ADMISSIONS_set0_professionInfos(ADMISSIONS *a, PROFESSION_INFOS *pi) in ADMISSIONS_set0_professionInfos() argument
294 a->professionInfos = pi; in ADMISSIONS_set0_professionInfos()
297 const ASN1_OCTET_STRING *PROFESSION_INFO_get0_addProfessionInfo(const PROFESSION_INFO *pi) in PROFESSION_INFO_get0_addProfessionInfo() argument
299 return pi->addProfessionInfo; in PROFESSION_INFO_get0_addProfessionInfo()
302 void PROFESSION_INFO_set0_addProfessionInfo(PROFESSION_INFO *pi, in PROFESSION_INFO_set0_addProfessionInfo() argument
305 ASN1_OCTET_STRING_free(pi->addProfessionInfo); in PROFESSION_INFO_set0_addProfessionInfo()
306 pi->addProfessionInfo = aos; in PROFESSION_INFO_set0_addProfessionInfo()
309 const NAMING_AUTHORITY *PROFESSION_INFO_get0_namingAuthority(const PROFESSION_INFO *pi) in PROFESSION_INFO_get0_namingAuthority() argument
311 return pi->namingAuthority; in PROFESSION_INFO_get0_namingAuthority()
314 void PROFESSION_INFO_set0_namingAuthority(PROFESSION_INFO *pi, in PROFESSION_INFO_set0_namingAuthority() argument
[all …]
/freebsd/sys/dev/e1000/
H A Digb_txrx.c85 igb_tso_setup(struct tx_ring *txr, if_pkt_info_t pi, uint32_t *cmd_type_len, in igb_tso_setup() argument
94 switch(pi->ipi_etype) { in igb_tso_setup()
105 __func__, ntohs(pi->ipi_etype)); in igb_tso_setup()
109 TXD = (struct e1000_adv_tx_context_desc *) &txr->tx_base[pi->ipi_pidx]; in igb_tso_setup()
112 paylen = pi->ipi_len - pi->ipi_ehdrlen - pi->ipi_ip_hlen - pi->ipi_tcp_hlen; in igb_tso_setup()
115 if (pi->ipi_mflags & M_VLANTAG) { in igb_tso_setup()
116 vlan_macip_lens |= (pi->ipi_vtag << E1000_ADVTXD_VLAN_SHIFT); in igb_tso_setup()
119 vlan_macip_lens |= pi->ipi_ehdrlen << E1000_ADVTXD_MACLEN_SHIFT; in igb_tso_setup()
120 vlan_macip_lens |= pi->ipi_ip_hlen; in igb_tso_setup()
129 mss_l4len_idx |= (pi->ipi_tso_segsz << E1000_ADVTXD_MSS_SHIFT); in igb_tso_setup()
[all …]
/freebsd/sys/dev/ixgbe/
H A Dix_txrx.c79 ixgbe_tx_ctx_setup(struct ixgbe_adv_tx_context_desc *TXD, if_pkt_info_t pi) in ixgbe_tx_ctx_setup() argument
88 vlan_macip_lens |= (htole16(pi->ipi_vtag) << IXGBE_ADVTXD_VLAN_SHIFT); in ixgbe_tx_ctx_setup()
97 if (pi->ipi_ehdrlen == 0) { in ixgbe_tx_ctx_setup()
99 ehdrlen += (pi->ipi_vtag != 0) ? ETHER_VLAN_ENCAP_LEN : 0; in ixgbe_tx_ctx_setup()
101 ehdrlen = pi->ipi_ehdrlen; in ixgbe_tx_ctx_setup()
104 pktlen = pi->ipi_len; in ixgbe_tx_ctx_setup()
106 if (pi->ipi_csum_flags & CSUM_TSO) { in ixgbe_tx_ctx_setup()
108 pktlen = pi->ipi_len - ehdrlen - pi->ipi_ip_hlen - pi->ipi_tcp_hlen; in ixgbe_tx_ctx_setup()
109 mss_l4len_idx |= (pi->ipi_tso_segsz << IXGBE_ADVTXD_MSS_SHIFT); in ixgbe_tx_ctx_setup()
110 mss_l4len_idx |= (pi->ipi_tcp_hlen << IXGBE_ADVTXD_L4LEN_SHIFT); in ixgbe_tx_ctx_setup()
[all …]
/freebsd/sys/dev/igc/
H A Digc_txrx.c122 igc_tso_setup(struct tx_ring *txr, if_pkt_info_t pi, uint32_t *cmd_type_len, in igc_tso_setup() argument
130 switch(pi->ipi_etype) { in igc_tso_setup()
141 __func__, ntohs(pi->ipi_etype)); in igc_tso_setup()
145 TXD = (struct igc_adv_tx_context_desc *) &txr->tx_base[pi->ipi_pidx]; in igc_tso_setup()
148 paylen = pi->ipi_len - pi->ipi_ehdrlen - pi->ipi_ip_hlen - pi->ipi_tcp_hlen; in igc_tso_setup()
151 if (pi->ipi_mflags & M_VLANTAG) { in igc_tso_setup()
152 vlan_macip_lens |= (pi->ipi_vtag << IGC_ADVTXD_VLAN_SHIFT); in igc_tso_setup()
155 vlan_macip_lens |= pi->ipi_ehdrlen << IGC_ADVTXD_MACLEN_SHIFT; in igc_tso_setup()
156 vlan_macip_lens |= pi->ipi_ip_hlen; in igc_tso_setup()
165 mss_l4len_idx |= (pi->ipi_tso_segsz << IGC_ADVTXD_MSS_SHIFT); in igc_tso_setup()
[all …]
/freebsd/usr.sbin/bhyve/riscv/
H A Dpci_irq.c45 pci_irq_assert(struct pci_devinst *pi) in pci_irq_assert() argument
47 vm_assert_irq(pi->pi_vmctx, pi->pi_lintr.irq.aplic_irq); in pci_irq_assert()
51 pci_irq_deassert(struct pci_devinst *pi) in pci_irq_deassert() argument
53 vm_deassert_irq(pi->pi_vmctx, pi->pi_lintr.irq.aplic_irq); in pci_irq_deassert()
57 pci_irq_route(struct pci_devinst *pi, struct pci_irq *irq) in pci_irq_route() argument
65 aplic_irqs[(pi->pi_slot + pi->pi_lintr.pin - 1) % 4]; in pci_irq_route()
/freebsd/tools/test/ppsapi/
H A Dppsapitest.c33 pps_info_t pi; in main() local
155 i = time_pps_fetch(ph, PPS_TSFMT_TSPEC, &pi, &to); in main()
158 olda = pi.assert_sequence; in main()
159 oldc = pi.clear_sequence; in main()
164 i = time_pps_fetch(ph, PPS_TSFMT_TSPEC, &pi, &to); in main()
167 if (oldc != pi.clear_sequence && Cflag) in main()
169 else if (olda != pi.assert_sequence && Aflag) in main()
176 if (fwrite(&pi, sizeof pi, 1, fdo) != 1) in main()
181 Chew(&pi.assert_timestamp, &pi.clear_timestamp, in main()
182 pi.assert_sequence, pi.clear_sequence); in main()
[all …]
/freebsd/sys/dev/ixl/
H A Dixl_txrx.c55 static int ixl_isc_txd_encap(void *arg, if_pkt_info_t pi);
156 ixl_tso_detect_sparse(bus_dma_segment_t *segs, int nsegs, if_pkt_info_t pi) in ixl_tso_detect_sparse() argument
162 segsz = pi->ipi_tso_segsz; in ixl_tso_detect_sparse()
165 hlen = pi->ipi_ehdrlen + pi->ipi_ip_hlen + pi->ipi_tcp_hlen; in ixl_tso_detect_sparse()
166 tsolen = pi->ipi_len - hlen; in ixl_tso_detect_sparse()
187 segsz = pi->ipi_tso_segsz; in ixl_tso_detect_sparse()
222 if_pkt_info_t pi, u32 *cmd, u32 *off) in ixl_tx_setup_offload() argument
224 switch (pi->ipi_etype) { in ixl_tx_setup_offload()
227 if (pi->ipi_csum_flags & IXL_CSUM_IPV4) in ixl_tx_setup_offload()
242 *off |= (pi->ipi_ehdrlen >> 1) << I40E_TX_DESC_LENGTH_MACLEN_SHIFT; in ixl_tx_setup_offload()
[all …]
/freebsd/sys/fs/pseudofs/
H A Dpseudofs.c69 pfs_alloc_node_flags(struct pfs_info *pi, const char *name, pfs_type_t type, int flags) in pfs_alloc_node_flags() argument
88 pn->pn_info = pi; in pfs_alloc_node_flags()
93 pfs_alloc_node(struct pfs_info *pi, const char *name, pfs_type_t type) in pfs_alloc_node() argument
95 return (pfs_alloc_node_flags(pi, name, type, 0)); in pfs_alloc_node()
362 pfs_mount(struct pfs_info *pi, struct mount *mp) in pfs_mount() argument
373 mp->mnt_data = pi; in pfs_mount()
377 vfs_mountedfrom(mp, pi->pi_name); in pfs_mount()
420 struct pfs_info *pi; in pfs_root() local
422 pi = (struct pfs_info *)mp->mnt_data; in pfs_root()
423 return (pfs_vncache_alloc(mp, vpp, pi->pi_root, NO_PID)); in pfs_root()
[all …]

12345678910>>...15