Searched refs:nic (Results 1 - 10 of 10) sorted by relevance

/freebsd-current/sys/dev/vnic/
H A Dnic_main.c78 #include "nic.h"
192 struct nicpf *nic; local
195 nic = device_get_softc(dev);
196 nic->dev = dev;
202 err = nicpf_alloc_res(nic);
208 nic->node = nic_get_node_id(nic->reg_base);
211 nic->flags &= ~NIC_TNS_ENABLED;
212 nic_set_lmac_vf_mapping(nic);
215 nic_init_hw(nic);
254 struct nicpf *nic; local
282 struct nicpf *nic; local
305 struct nicpf *nic; local
332 nicpf_alloc_res(struct nicpf *nic) argument
355 nicpf_free_res(struct nicpf *nic) argument
369 nic_reg_write(struct nicpf *nic, bus_space_handle_t offset, uint64_t val) argument
377 nic_reg_read(struct nicpf *nic, uint64_t offset) argument
387 nic_enable_mbx_intr(struct nicpf *nic) argument
396 nic_clear_mbx_intr(struct nicpf *nic, int vf, int mbx_reg) argument
415 nic_send_msg_to_vf(struct nicpf *nic, int vf, union nic_mbx *mbx) argument
440 nic_mbx_send_ready(struct nicpf *nic, int vf) argument
476 nic_mbx_send_ack(struct nicpf *nic, int vf) argument
490 nic_mbx_send_nack(struct nicpf *nic, int vf) argument
503 nic_rcv_queue_sw_sync(struct nicpf *nic) argument
524 nic_get_bgx_stats(struct nicpf *nic, struct bgx_stats_msg *bgx) argument
548 nic_update_hw_frs(struct nicpf *nic, int new_frs, int vf) argument
569 nic_set_tx_pkt_pad(struct nicpf *nic, int size) argument
591 nic_set_lmac_vf_mapping(struct nicpf *nic) argument
633 nic_init_hw(struct nicpf *nic) argument
689 nic_config_cpi(struct nicpf *nic, struct cpi_cfg_msg *cfg) argument
766 nic_send_rss_size(struct nicpf *nic, int vf) argument
783 nic_config_rss(struct nicpf *nic, struct rss_cfg_msg *cfg) argument
827 nic_tx_channel_cfg(struct nicpf *nic, uint8_t vnic, struct sq_cfg_msg *sq) argument
867 nic_config_loopback(struct nicpf *nic, struct set_loopback *lbk) argument
884 nic_handle_mbx_intr(struct nicpf *nic, int vf) argument
998 nic_mbx_intr_handler(struct nicpf *nic, int mbx) argument
1015 struct nicpf *nic = (struct nicpf *)arg; local
1023 struct nicpf *nic = (struct nicpf *)arg; local
1029 nic_enable_msix(struct nicpf *nic) argument
1060 nic_disable_msix(struct nicpf *nic) argument
1073 nic_free_all_interrupts(struct nicpf *nic) argument
1092 nic_register_interrupts(struct nicpf *nic) argument
1141 nic_unregister_interrupts(struct nicpf *nic) argument
1148 nic_sriov_init(device_t dev, struct nicpf *nic) argument
1198 struct nicpf *nic; local
[all...]
H A Dnicvf_main.c80 #include "nic.h"
88 #define NICVF_CORE_LOCK_INIT(nic) \
89 sx_init(&(nic)->core_sx, device_get_nameunit((nic)->dev))
91 #define NICVF_CORE_LOCK_DESTROY(nic) \
92 sx_destroy(&(nic)->core_sx)
94 #define NICVF_CORE_LOCK(nic) sx_xlock(&(nic)->core_sx)
95 #define NICVF_CORE_UNLOCK(nic) sx_xunlock(&(nic)
184 struct nicvf *nic; local
283 struct nicvf *nic; local
333 nicvf_setup_ifnet(struct nicvf *nic) argument
387 nicvf_setup_ifmedia(struct nicvf *nic) argument
419 struct nicvf *nic; local
567 nicvf_if_init_locked(struct nicvf *nic) argument
634 struct nicvf *nic = if_softc; local
644 struct nicvf *nic = if_getsoftc(ifp); local
700 struct nicvf *nic; local
722 struct nicvf *nic; local
756 struct nicvf *nic = if_getsoftc(ifp); local
806 nicvf_reg_write(struct nicvf *nic, bus_space_handle_t offset, uint64_t val) argument
813 nicvf_reg_read(struct nicvf *nic, uint64_t offset) argument
820 nicvf_queue_reg_write(struct nicvf *nic, bus_space_handle_t offset, uint64_t qidx, uint64_t val) argument
828 nicvf_queue_reg_read(struct nicvf *nic, bus_space_handle_t offset, uint64_t qidx) argument
837 nicvf_write_to_mbx(struct nicvf *nic, union nic_mbx *mbx) argument
846 nicvf_send_msg_to_pf(struct nicvf *nic, union nic_mbx *mbx) argument
884 nicvf_check_pf_ready(struct nicvf *nic) argument
899 nicvf_read_bgx_stats(struct nicvf *nic, struct bgx_stats_msg *bgx) argument
909 nicvf_handle_mbx_intr(struct nicvf *nic) argument
973 nicvf_update_hw_max_frs(struct nicvf *nic, int mtu) argument
985 nicvf_hw_set_mac_addr(struct nicvf *nic, uint8_t *hwaddr) argument
997 nicvf_config_cpi(struct nicvf *nic) argument
1010 nicvf_get_rss_size(struct nicvf *nic) argument
1020 nicvf_config_rss(struct nicvf *nic) argument
1050 nicvf_set_rss_key(struct nicvf *nic) argument
1066 nicvf_rss_init(struct nicvf *nic) argument
1104 nicvf_init_resources(struct nicvf *nic) argument
1131 struct nicvf *nic = (struct nicvf *)arg; local
1145 struct nicvf *nic; local
1167 struct nicvf *nic; local
1191 struct nicvf *nic = (struct nicvf *)arg; local
1202 nicvf_enable_msix(struct nicvf *nic) argument
1233 nicvf_disable_msix(struct nicvf *nic) argument
1244 nicvf_release_all_interrupts(struct nicvf *nic) argument
1278 nicvf_allocate_misc_interrupt(struct nicvf *nic) argument
1318 nicvf_enable_misc_interrupt(struct nicvf *nic) argument
1334 nicvf_release_net_interrupts(struct nicvf *nic) argument
1407 nicvf_allocate_net_interrupts(struct nicvf *nic) argument
1520 nicvf_stop_locked(struct nicvf *nic) argument
1560 nicvf_update_stats(struct nicvf *nic) argument
1608 struct nicvf *nic; local
[all...]
H A Dnicvf_queues.c84 #include "nic.h"
122 static int nicvf_poll_reg(struct nicvf *nic, int qidx, argument
133 reg_val = nicvf_queue_reg_read(nic, reg, qidx);
140 device_printf(nic->dev, "Poll on reg 0x%lx failed\n", reg);
157 nicvf_alloc_q_desc_mem(struct nicvf *nic, struct q_desc_mem *dmem, argument
164 bus_get_dma_tag(nic->dev), /* parent tag */
178 device_printf(nic->dev,
190 device_printf(nic->dev, "Failed to allocate DMA safe memory for"
204 device_printf(nic->dev,
228 nicvf_free_q_desc_mem(struct nicvf *nic, struc argument
257 nicvf_alloc_rcv_buffer(struct nicvf *nic, struct rbdr *rbdr, bus_dmamap_t dmap, int mflags, uint32_t buf_len, bus_addr_t *rbuf) argument
306 nicvf_rb_ptr_to_mbuf(struct nicvf *nic, bus_addr_t rb_ptr) argument
334 nicvf_init_rbdr(struct nicvf *nic, struct rbdr *rbdr, int ring_len, int buf_size, int qidx) argument
429 nicvf_free_rbdr(struct nicvf *nic, struct rbdr *rbdr) argument
527 struct nicvf *nic; local
636 nicvf_rcv_pkt_handler(struct nicvf *nic, struct cmp_queue *cq, struct cqe_rx_t *cqe_rx, int cqe_type) argument
694 nicvf_snd_pkt_handler(struct nicvf *nic, struct cmp_queue *cq, struct cqe_send_t *cqe_tx, int cqe_type) argument
728 nicvf_cq_intr_handler(struct nicvf *nic, uint8_t cq_idx) argument
844 struct nicvf *nic; local
881 struct nicvf *nic; local
905 nicvf_init_cmp_queue(struct nicvf *nic, struct cmp_queue *cq, int q_len, int qidx) argument
944 nicvf_free_cmp_queue(struct nicvf *nic, struct cmp_queue *cq) argument
985 struct nicvf *nic; local
1018 struct nicvf *nic; local
1043 nicvf_init_snd_queue(struct nicvf *nic, struct snd_queue *sq, int q_len, int qidx) argument
1142 nicvf_free_snd_queue(struct nicvf *nic, struct snd_queue *sq) argument
1203 nicvf_reclaim_snd_queue(struct nicvf *nic, struct queue_set *qs, int qidx) argument
1216 nicvf_reclaim_rcv_queue(struct nicvf *nic, struct queue_set *qs, int qidx) argument
1226 nicvf_reclaim_cmp_queue(struct nicvf *nic, struct queue_set *qs, int qidx) argument
1238 nicvf_reclaim_rbdr(struct nicvf *nic, struct rbdr *rbdr, int qidx) argument
1289 nicvf_rcv_queue_config(struct nicvf *nic, struct queue_set *qs, int qidx, bool enable) argument
1370 nicvf_cmp_queue_config(struct nicvf *nic, struct queue_set *qs, int qidx, boolean_t enable) argument
1407 nicvf_snd_queue_config(struct nicvf *nic, struct queue_set *qs, int qidx, boolean_t enable) argument
1454 nicvf_rbdr_config(struct nicvf *nic, struct queue_set *qs, int qidx, boolean_t enable) argument
1491 nicvf_qset_config(struct nicvf *nic, boolean_t enable) argument
1521 nicvf_free_resources(struct nicvf *nic) argument
1554 nicvf_alloc_resources(struct nicvf *nic) argument
1592 nicvf_set_qset_resources(struct nicvf *nic) argument
1618 nicvf_config_data_transfer(struct nicvf *nic, boolean_t enable) argument
1692 nicvf_sq_enable(struct nicvf *nic, struct snd_queue *sq, int qidx) argument
1704 nicvf_sq_disable(struct nicvf *nic, int qidx) argument
1714 nicvf_sq_free_used_descs(struct nicvf *nic, struct snd_queue *sq, int qidx) argument
1747 struct nicvf *nic; local
1978 nicvf_get_rcv_mbuf(struct nicvf *nic, struct cqe_rx_t *cqe_rx) argument
2047 nicvf_enable_intr(struct nicvf *nic, int int_type, int q_idx) argument
2086 nicvf_disable_intr(struct nicvf *nic, int int_type, int q_idx) argument
2123 nicvf_clear_intr(struct nicvf *nic, int int_type, int q_idx) argument
2160 nicvf_is_intr_enabled(struct nicvf *nic, int int_type, int q_idx) argument
2199 nicvf_update_rq_stats(struct nicvf *nic, int rq_idx) argument
2213 nicvf_update_sq_stats(struct nicvf *nic, int sq_idx) argument
2228 nicvf_check_cqe_rx_errs(struct nicvf *nic, struct cmp_queue *cq, struct cqe_rx_t *cqe_rx) argument
2319 nicvf_check_cqe_tx_errs(struct nicvf *nic, struct cmp_queue *cq, struct cqe_send_t *cqe_tx) argument
[all...]
H A Dnicvf_queues.h255 struct nicvf *nic; member in struct:rbdr
288 struct nicvf *nic; member in struct:cmp_queue
321 struct nicvf *nic; member in struct:snd_queue
/freebsd-current/sys/net/
H A Dieee_oui.h35 #define OUI_FREEBSD(nic) (OUI_FREEBSD_BASE | (nic))
/freebsd-current/contrib/netbsd-tests/lib/libc/gen/
H A Dt_nice.c97 int i, pri, pri2, nic; local
99 int i, pri, nic;
106 nic = nice(i);
107 ATF_REQUIRE(nic != -1);
114 if (nic != pri)
138 if (nic != pri)
/freebsd-current/sys/compat/linsysfs/
H A Dlinsysfs_net.c228 struct pfs_node *nic, *dir = arg; local
238 nic = pfs_find_node(dir, ifname);
239 if (nic == NULL) {
240 nic = pfs_create_dir(dir, ifname, NULL, linsysfs_if_visible,
242 pfs_create_file(nic, "address", &linsysfs_if_addr,
244 pfs_create_file(nic, "addr_len", &linsysfs_if_addrlen,
246 pfs_create_file(nic, "flags", &linsysfs_if_flags,
248 pfs_create_file(nic, "ifindex", &linsysfs_if_ifindex,
250 pfs_create_file(nic, "mtu", &linsysfs_if_mtu,
252 pfs_create_file(nic, "tx_queue_le
[all...]
/freebsd-current/share/examples/bhyve/
H A Dvmrun.sh125 nic=${DEFAULT_NIC}
210 nic=${OPTARG}
391 devargs="$devargs -s $nextslot:0,${nic},${tapname} "
/freebsd-current/sys/netpfil/ipfilter/netinet/
H A Dfil.c7319 void *nic; local
7329 nic = GETIFP(name, v);
7330 if (nic == NULL)
7331 nic = (void *)-1;
7332 return (nic);
/freebsd-current/sys/dev/cxgbe/
H A Dt4_main.c2165 COMPARE_CAPS(nic);
4571 if (hdr1->chip == hdr2->chip && SAME_INTF(nic) && SAME_INTF(vnic) &&
5041 LIMIT_CAPS(nic);
5106 COPY_CAPS(nic);

Completed in 287 milliseconds