/freebsd/sys/dev/qlnx/qlnxe/ |
H A D | ecore_mcp.c | 2 * Copyright (c) 2017-2018 Cavium, Inc. 57 ecore_wr(_p_hwfn, _p_ptt, (_p_hwfn->mcp_info->_ptr + _offset), \ 61 ecore_rd(_p_hwfn, _p_ptt, (_p_hwfn->mcp_info->_ptr + _offset)) 89 if (!p_hwfn->mcp_info || !p_hwfn->mcp_info->public_base) in ecore_mcp_is_init() 97 u32 addr = SECTION_OFFSIZE_ADDR(p_hwfn->mcp_info->public_base, in ecore_mcp_cmd_port_init() 101 p_hwfn->mcp_info->port_addr = SECTION_ADDR(mfw_mb_offsize, in ecore_mcp_cmd_port_init() 104 "port_addr = 0x%x, port_id 0x%02x\n", in ecore_mcp_cmd_port_init() 105 p_hwfn->mcp_info->port_addr, MFW_PORT(p_hwfn)); in ecore_mcp_cmd_port_init() 111 u32 length = MFW_DRV_MSG_MAX_DWORDS(p_hwfn->mcp_info->mfw_mb_length); in ecore_mcp_read_mb() 116 if (CHIP_REV_IS_TEDIBEAR(p_hwfn->p_dev)) in ecore_mcp_read_mb() [all …]
|
H A D | ecore_iwarp.c | 2 * Copyright (c) 2018-2019 Cavium, Inc. 106 struct ecore_rdma_device *dev = p_hwfn->p_rdma_info->dev; in ecore_iwarp_init_devinfo() 108 dev->max_inline = IWARP_REQ_MAX_INLINE_DATA_SIZE; in ecore_iwarp_init_devinfo() 109 dev->max_qp = OSAL_MIN_T(u64, in ecore_iwarp_init_devinfo() 111 p_hwfn->p_rdma_info->num_qps) - in ecore_iwarp_init_devinfo() 114 dev->max_cq = dev->max_qp; in ecore_iwarp_init_devinfo() 116 dev->max_qp_resp_rd_atomic_resc = ECORE_IWARP_IRD_DEFAULT; in ecore_iwarp_init_devinfo() 117 dev->max_qp_req_rd_atomic_resc = ECORE_IWARP_ORD_DEFAULT; in ecore_iwarp_init_devinfo() 123 p_hwfn->rdma_prs_search_reg = PRS_REG_SEARCH_TCP; in ecore_iwarp_init_hw() 124 ecore_wr(p_hwfn, p_ptt, p_hwfn->rdma_prs_search_reg, 1); in ecore_iwarp_init_hw() [all …]
|
H A D | ecore_l2.c | 2 * Copyright (c) 2017-2018 Cavium, Inc. 79 p_l2_info = OSAL_VZALLOC(p_hwfn->p_dev, sizeof(*p_l2_info)); in ecore_l2_alloc() 82 p_hwfn->p_l2_info = p_l2_info; in ecore_l2_alloc() 84 if (IS_PF(p_hwfn->p_dev)) { in ecore_l2_alloc() 85 p_l2_info->queues = RESC_NUM(p_hwfn, ECORE_L2_QUEUE); in ecore_l2_alloc() 92 p_l2_info->queues = (u32)OSAL_MAX_T(u8, rx, tx); in ecore_l2_alloc() 95 pp_qids = OSAL_VZALLOC(p_hwfn->p_dev, in ecore_l2_alloc() 97 p_l2_info->queues); in ecore_l2_alloc() 100 p_l2_info->pp_qid_usage = pp_qids; in ecore_l2_alloc() 102 for (i = 0; i < p_l2_info->queues; i++) { in ecore_l2_alloc() [all …]
|
H A D | ecore_vf.c | 2 * Copyright (c) 2018-2019 Cavium, Inc. 53 struct ecore_vf_iov *p_iov = p_hwfn->vf_iov_info; in ecore_vf_pf_prep() 61 OSAL_MUTEX_ACQUIRE(&(p_iov->mutex)); in ecore_vf_pf_prep() 67 p_iov->offset = (u8 *)p_iov->vf2pf_request; in ecore_vf_pf_prep() 69 /* Clear mailbox - both request and reply */ in ecore_vf_pf_prep() 70 OSAL_MEMSET(p_iov->vf2pf_request, 0, in ecore_vf_pf_prep() 72 OSAL_MEMSET(p_iov->pf2vf_reply, 0, in ecore_vf_pf_prep() 76 p_tlv = ecore_add_tlv(&p_iov->offset, type, length); in ecore_vf_pf_prep() 79 ((struct vfpf_first_tlv *)p_tlv)->reply_address = in ecore_vf_pf_prep() 80 (u64)p_iov->pf2vf_reply_phys; in ecore_vf_pf_prep() [all …]
|
H A D | ecore_dev.c | 2 * Copyright (c) 2017-2018 Cavium, Inc. 73 /* TODO - there's a bug in DCBx re-configuration flows in MF, as the QM 76 * Eventually, this needs to move into a MFW-covered HW-lock as arbitration 85 p_dev->ilt_page_size = ilt_page_size; in ecore_set_ilt_page_size() 111 action, db_entry, db_entry->db_addr, db_entry->db_data, in ecore_db_recovery_dp_entry() 112 db_entry->db_width == DB_REC_WIDTH_32B ? "32b" : "64b", in ecore_db_recovery_dp_entry() 113 db_entry->db_space == DB_REC_USER ? "user" : "kernel", in ecore_db_recovery_dp_entry() 114 db_entry->hwfn_idx); in ecore_db_recovery_dp_entry() 122 if (db_addr < p_dev->doorbells || (u8 *)db_addr > in ecore_db_rec_sanity() 123 (u8 *)p_dev->doorbells + p_dev->db_size) { in ecore_db_rec_sanity() [all …]
|
H A D | ecore_sp_commands.c | 2 * Copyright (c) 2017-2018 Cavium, Inc. 59 u32 opaque_cid = p_data->opaque_fid << 16 | p_data->cid; in ecore_sp_init_request() 61 enum _ecore_status_t rc; in ecore_sp_init_request() local 67 rc = ecore_spq_get_entry(p_hwfn, pp_ent); in ecore_sp_init_request() 68 if (rc != ECORE_SUCCESS) in ecore_sp_init_request() 69 return rc; in ecore_sp_init_request() 73 p_ent->elem.hdr.cid = OSAL_CPU_TO_LE32(opaque_cid); in ecore_sp_init_request() 74 p_ent->elem.hdr.cmd_id = cmd; in ecore_sp_init_request() 75 p_ent->elem.hdr.protocol_id = protocol; in ecore_sp_init_request() 76 p_ent->priority = ECORE_SPQ_PRIORITY_NORMAL; in ecore_sp_init_request() [all …]
|
H A D | ecore_dcbx.c | 2 * Copyright (c) 2017-2018 Cavium, Inc. 57 ((u32)(prio_tc_tbl >> ((7 - prio) * 4)) & 0x7) 160 if (!p_hwfn->p_dcbx_info->iwarp_port) in ecore_dcbx_iwarp_tlv() 169 return !!(port && (proto_id == p_hwfn->p_dcbx_info->iwarp_port)); in ecore_dcbx_iwarp_tlv() 180 p_data->dcbx_enabled); in ecore_dcbx_dp_protocol() 187 ecore_dcbx_app_update[i].name, p_data->arr[id].update, in ecore_dcbx_dp_protocol() 188 p_data->arr[id].enable, p_data->arr[id].priority, in ecore_dcbx_dp_protocol() 189 p_data->arr[id].tc, p_hwfn->hw_info.num_active_tc, in ecore_dcbx_dp_protocol() 190 p_data->arr[id].dscp_enable, in ecore_dcbx_dp_protocol() 191 p_data->arr[id].dscp_val); in ecore_dcbx_dp_protocol() [all …]
|
/freebsd/sys/dev/axgbe/ |
H A D | xgbe-sysctl.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 37 #include "xgbe-common.h" 173 #define FIELD_SIZEOF(t, f) (sizeof(((t*)0)->f)) 244 return(-EINVAL); in exit_bad_op() 250 int rc; in get_ubuf() local 252 printf("%s: len:0x%li idx:0x%li\n", __func__, req->newlen, in get_ubuf() 253 req->newidx); in get_ubuf() 254 if (req->newlen >= SYSCTL_BUF_LEN) in get_ubuf() 255 return (-EINVAL); in get_ubuf() [all …]
|
/freebsd/usr.sbin/bhyve/ |
H A D | rfb.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 91 /* Client-to-server msg types */ 186 #define RFB_ENCODING_RESIZE -223 187 #define RFB_ENCODING_EXT_KEYEVENT -258 211 uint16_t x; member 240 uint16_t x; member 251 uint16_t x; member 272 sinfo.width = htons(gc_image->width); in rfb_send_server_init_msg() 273 sinfo.height = htons(gc_image->height); in rfb_send_server_init_msg() [all …]
|
/freebsd/sys/dev/cxgbe/ |
H A D | t4_vf.c | 1 /*- 57 * XXX: Add a TUNABLE and possible per-device sysctl for this? 61 uint16_t intr_type; /* MSI, or MSI-X */ 71 {0x4800, "Chelsio T440-dbg VF"}, 72 {0x4801, "Chelsio T420-CR VF"}, 73 {0x4802, "Chelsio T422-CR VF"}, 74 {0x4803, "Chelsio T440-CR VF"}, 75 {0x4804, "Chelsio T420-BCH VF"}, 76 {0x4805, "Chelsio T440-BCH VF"}, 77 {0x4806, "Chelsio T440-CH VF"}, [all …]
|
H A D | t4_main.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 272 * Each tunable is set to a default value here if it's known at compile-time. 273 * Otherwise it is set to -n as an indication to tweak_tunables() that it should 290 int t4_ntxq = -NTXQ; 296 int t4_nrxq = -NRXQ; 302 static int t4_ntxq_vi = -NTXQ_VI; 307 static int t4_nrxq_vi = -NRXQ_VI; 313 0, "Reserve TX queue 0 of each VI for non-flowid packets"); 317 static int t4_nofldtxq = -NOFLDTXQ; [all …]
|
/freebsd/sys/dev/qlnx/qlnxr/ |
H A D | qlnxr_verbs.c | 2 * Copyright (c) 2018-2019 Cavium, Inc. 41 (type_ptr)->field.hi = cpu_to_le32(upper_32_bits(vaddr));\ 42 (type_ptr)->field.lo = cpu_to_le32(lower_32_bits(vaddr));\ 48 (sge)->length = cpu_to_le32(vlength); \ 49 (sge)->flags = cpu_to_le32(vflags); \ 55 (hdr)->num_sges = num_sge; \ 61 (sge)->length = cpu_to_le32(vlength); \ 62 (sge)->l_key = cpu_to_le32(vlkey); \ 108 ha = dev->ha; in qlnxr_iw_query_gid() 112 memset(sgid->raw, 0, sizeof(sgid->raw)); in qlnxr_iw_query_gid() [all …]
|
/freebsd/sys/dev/jedec_dimm/ |
H A D | jedec_dimm.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 7 * Copyright (c) 2018-2023 Panasas 32 * This driver is a super-set of the now-deleted jedec_ts(4), and most of the 82 * http://www.analog.com/media/en/technical-documentation/data-sheets/ADT7408.pdf 88 * http://www.atmel.com/images/atmel-8868-dts-at30tse004a-datasheet.pdf 99 * https://www.idt.com/document/dst/tse2004gb2b0-datasheet 106 * Document 19-3837; Rev 0; 10/05 has 0x3e00 while 107 * 19-3837; Rev 3; 10/11 has 0x5400. 125 * http://www.nxp.com/docs/en/data-sheet/SE97B.pdf [all …]
|
/freebsd/sys/dev/bnxt/bnxt_re/ |
H A D | main.c | 2 * Copyright (c) 2015-2024, Broadcom. All rights reserved. The term 35 #include <linux/dma-mapping.h> 53 #include "bnxt_re-abi.h" 57 "Broadcom NetXtreme-C/E RoCE Driver " ROCE_DRV_MODULE_NAME \ 63 MODULE_DESCRIPTION("Broadcom NetXtreme-C/E RoCE Driver"); 83 …(enable_fc, "Enable default PFC, CC,ETS during driver load. 1 - fc enable, 0 - fc disable - Defaul… 87 MODULE_PARM_DESC(min_tx_depth, "Minimum TX depth - Default is 1"); 92 MODULE_PARM_DESC(max_msix_vec, "Max MSI-x vectors per PF (2 - 64) - Default is 64"); 96 MODULE_PARM_DESC(cmdq_shadow_qd, "Perf Stat Debug: Shadow QD Range (1-64) - Default is 64"); 121 int rc; in bnxt_re_register_netdevice_notifier() local [all …]
|
H A D | qplib_fp.c | 2 * Copyright (c) 2015-2024, Broadcom. All rights reserved. The term 53 qp->sq.condition = false; in bnxt_re_legacy_cancel_phantom_processing() 54 qp->sq.legacy_send_phantom = false; in bnxt_re_legacy_cancel_phantom_processing() 55 qp->sq.single = false; in bnxt_re_legacy_cancel_phantom_processing() 62 scq = qp->scq; in __bnxt_qplib_add_flush_qp() 63 rcq = qp->rcq; in __bnxt_qplib_add_flush_qp() 65 if (!qp->sq.flushed) { in __bnxt_qplib_add_flush_qp() 66 dev_dbg(&scq->hwq.pdev->dev, in __bnxt_qplib_add_flush_qp() 70 list_add_tail(&qp->sq_flush, &scq->sqf_head); in __bnxt_qplib_add_flush_qp() 71 qp->sq.flushed = true; in __bnxt_qplib_add_flush_qp() [all …]
|
H A D | ib_verbs.c | 2 * Copyright (c) 2015-2024, Broadcom. All rights reserved. The term 42 *nmap = umem->nmap; in get_ib_umem_sgl() 43 return umem->sg_head.sgl; in get_ib_umem_sgl() 54 int rc = -1; in bnxt_re_resolve_dmac_task() local 60 rdev = dmac_work->rdev; in bnxt_re_resolve_dmac_task() 61 ah_attr = dmac_work->ah_attr; in bnxt_re_resolve_dmac_task() 62 rc = ib_resolve_eth_dmac(&rdev->ibdev, ah_attr); in bnxt_re_resolve_dmac_task() 63 if (rc) in bnxt_re_resolve_dmac_task() 64 dev_err(rdev_to_dev(dmac_work->rdev), in bnxt_re_resolve_dmac_task() 65 "Failed to resolve dest mac rc = %d\n", rc); in bnxt_re_resolve_dmac_task() [all …]
|
H A D | qplib_rcfw.c | 2 * Copyright (c) 2015-2024, Broadcom. All rights reserved. The term 33 #include <linux/dma-mapping.h> 54 cmdq = &rcfw->cmdq; in __check_cmdq_stall() 56 if (*cur_prod == cmdq->hwq.prod && in __check_cmdq_stall() 57 *cur_cons == cmdq->hwq.cons) in __check_cmdq_stall() 59 return -ETIMEDOUT; in __check_cmdq_stall() 61 *cur_prod = cmdq->hwq.prod; in __check_cmdq_stall() 62 *cur_cons = cmdq->hwq.cons; in __check_cmdq_stall() 82 return -ETIMEDOUT; in bnxt_qplib_map_rc() 87 * bnxt_re_is_fw_stalled - Check firmware health [all …]
|
/freebsd/sys/ofed/drivers/infiniband/ulp/sdp/ |
H A D | sdp_zcopy.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause OR GPL-2.0 16 * - Redistributions of source code must retain the above 20 * - Redistributions in binary form must reproduce the above 60 WARN_ON(ssk->tx_sa); in sdp_post_srcavail() 63 BUG_ON(!tx_sa->fmr || !tx_sa->fmr->fmr->lkey); in sdp_post_srcavail() 64 BUG_ON(!tx_sa->umem); in sdp_post_srcavail() 65 BUG_ON(!tx_sa->umem->chunk_list.next); in sdp_post_srcavail() 67 chunk = list_entry(tx_sa->umem->chunk_list.next, struct ib_umem_chunk, list); in sdp_post_srcavail() 68 BUG_ON(!chunk->nmap); in sdp_post_srcavail() [all …]
|
/freebsd/tools/test/stress2/misc/ |
H A D | pthread7.sh | 37 mycc -o pthread7 -Wall -Wextra -O2 -g pthread7.c -lpthread || exit 1 38 rm -f pthread7.c 46 rm -f /tmp/pthread7 50 * Threaded producer-consumer test. 75 #define LOCK(x) plock(&x.mtx) 76 #define UNLOCK(x) punlock(&x.mtx) 77 #define SIGNAL(x) psig(&x.wait) 78 #define WAIT(x) pwait(&x.wait, &x.mtx) 118 int rc; 120 if ((rc = pthread_mutex_lock(l)) != 0) [all …]
|
H A D | pthread2.sh | 29 # Threaded producer-consumer test. 37 mycc -o pthread2 -Wall -Wextra -O2 -g pthread2.c -lpthread || exit 1 38 rm -f pthread2.c /tmp/pthread2.core 40 log=/tmp/pthread2.`date '+%Y%m%d-%H%M'` 42 [ $i -eq 1 ] && echo "# `uname -v`" 43 time sh -c ' 50 rm -f /tmp/pthread2 52 if [ -n "$bench" ]; then 53 pair=`ls /tmp/pthread2* | egrep "pthread2\.[0-9]{8}-" | sort | 54 tail -2 | tr '\n' ' '` [all …]
|
H A D | pthread3.sh | 36 mycc -o pthread3 -Wall -Wextra -O2 -g -gdwarf-2 pthread3.c -lpthread || exit 1 37 rm -f pthread3.c 47 [ $e -ne 0 ] && s=$e 50 rm -f /tmp/pthread3 55 * Threaded producer-consumer test. 81 #define LOCK(x) plock(&x.mtx) 82 #define UNLOCK(x) punlock(&x.mtx) 83 #define SIGNAL(x) psig(&x.wait) 84 #define WAIT(x) pwait(&x.wait, &x.mtx) 121 int rc; [all …]
|
H A D | suj30.sh | 35 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1 42 mycc -o suj30 -Wall -Wextra -O2 suj30.c -lpthread 43 rm -f suj30.c 45 mount | grep "on $mntpoint " | grep -q md$mdstart && umount $mntpoint 46 mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart 48 mdconfig -a -t swap -s 4g -u $mdstart 49 newfs -j md$mdstart > /dev/null 54 /tmp/suj30 $mntpoint/test-$i 100000 & 58 while mount | grep -q $mntpoint; do 61 mdconfig -d -u $mdstart [all …]
|
H A D | pthread4.sh | 37 mycc -o pthread4 -Wall -Wextra -O2 -g -gdwarf-2 pthread4.c -lpthread || exit 1 38 rm -f pthread4.c /tmp/pthread4.core 40 log=/tmp/pthread4.`date '+%Y%m%d-%H%M'` 42 [ $i -eq 1 ] && echo "# `uname -v`" 43 time sh -c ' 50 rm -f /tmp/pthread4 52 if [ -n "$bench" ]; then 53 pair=`ls /tmp/pthread4* | egrep "pthread4\.[0-9]{8}-" | sort | 54 tail -2 | tr '\n' ' '` 55 ministat -w 72 $pair [all …]
|
H A D | pthread6.sh | 37 mycc -o pthread6 -Wall -Wextra -O2 -g -gdwarf-2 pthread6.c -lpthread || exit 1 38 rm -f pthread6.c /tmp/pthread6.core 40 daemon sh -c "(cd $here/../testcases/swap; ./swap -t 2m -i 20 -k)" 41 sleep `jot -r 1 1 9` 46 while pgrep -q swap; do 51 rm -f /tmp/pthread6 /tmp/pthread6.core 55 * Threaded producer-consumer test. 81 #define LOCK(x) plock(&x.mtx) 82 #define UNLOCK(x) punlock(&x.mtx) 83 #define SIGNAL(x) psig(&x.wait) [all …]
|
/freebsd/sys/dev/ntb/ntb_hw/ |
H A D | ntb_hw_amd.c | 1 /*- 46 * The Non-Transparent Bridge (NTB) is a device that allows you to connect 47 * two or more systems using a PCI-e links, providing remote memory access. 89 .desc = "AMD Non-Transparent Bridge"}, 99 .desc = "AMD Non-Transparent Bridge"}, 109 .desc = "Hygon Non-Transparent Bridge"}, 115 PCI_DESCR("AMD Non-Transparent Bridge") }, 118 PCI_DESCR("AMD Non-Transparent Bridge") }, 121 PCI_DESCR("Hygon Non-Transparent Bridge") } 126 &g_amd_ntb_hw_debug_level, 0, "amd_ntb_hw log level -- higher is verbose"); [all …]
|