/linux-5.19.10/drivers/infiniband/hw/qib/ |
D | qib_sdma.c | 101 static void clear_sdma_activelist(struct qib_pportdata *ppd) in clear_sdma_activelist() argument 105 list_for_each_entry_safe(txp, txp_next, &ppd->sdma_activelist, list) { in clear_sdma_activelist() 112 unmap_desc(ppd, idx); in clear_sdma_activelist() 113 if (++idx == ppd->sdma_descq_cnt) in clear_sdma_activelist() 124 struct qib_pportdata *ppd = from_tasklet(ppd, t, in sdma_sw_clean_up_task() local 128 spin_lock_irqsave(&ppd->sdma_lock, flags); in sdma_sw_clean_up_task() 140 qib_sdma_make_progress(ppd); in sdma_sw_clean_up_task() 142 clear_sdma_activelist(ppd); in sdma_sw_clean_up_task() 148 ppd->sdma_descq_removed = ppd->sdma_descq_added; in sdma_sw_clean_up_task() 155 ppd->sdma_descq_tail = 0; in sdma_sw_clean_up_task() [all …]
|
D | qib_intr.c | 72 static void signal_ib_event(struct qib_pportdata *ppd, enum ib_event_type ev) in signal_ib_event() argument 75 struct qib_devdata *dd = ppd->dd; in signal_ib_event() 78 event.element.port_num = ppd->port; in signal_ib_event() 83 void qib_handle_e_ibstatuschanged(struct qib_pportdata *ppd, u64 ibcs) in qib_handle_e_ibstatuschanged() argument 85 struct qib_devdata *dd = ppd->dd; in qib_handle_e_ibstatuschanged() 104 (!ppd->lflags || (ppd->lflags & QIBL_LINKDOWN)) && in qib_handle_e_ibstatuschanged() 107 if (dd->f_ib_updown(ppd, 1, ibcs)) in qib_handle_e_ibstatuschanged() 109 } else if (ppd->lflags & (QIBL_LINKINIT | QIBL_LINKARMED | in qib_handle_e_ibstatuschanged() 113 dd->f_ib_updown(ppd, 0, ibcs)) in qib_handle_e_ibstatuschanged() 115 qib_set_uevent_bits(ppd, _QIB_EVENT_LINKDOWN_BIT); in qib_handle_e_ibstatuschanged() [all …]
|
D | qib_iba7322.c | 63 static void sendctrl_7322_mod(struct qib_pportdata *ppd, u32 op); 74 static void qib_set_ib_7322_lstate(struct qib_pportdata *ppd, u16 linkcmd, 626 struct qib_pportdata *ppd; member 848 static inline u64 qib_read_kreg_port(const struct qib_pportdata *ppd, in qib_read_kreg_port() argument 851 if (!ppd->cpspec->kpregbase || !(ppd->dd->flags & QIB_PRESENT)) in qib_read_kreg_port() 853 return readq(&ppd->cpspec->kpregbase[regno]); in qib_read_kreg_port() 856 static inline void qib_write_kreg_port(const struct qib_pportdata *ppd, in qib_write_kreg_port() argument 859 if (ppd->cpspec && ppd->dd && ppd->cpspec->kpregbase && in qib_write_kreg_port() 860 (ppd->dd->flags & QIB_PRESENT)) in qib_write_kreg_port() 861 writeq(value, &ppd->cpspec->kpregbase[regno]); in qib_write_kreg_port() [all …]
|
D | qib_driver.c | 97 struct qib_pportdata *ppd; in qib_count_active_units() local 106 ppd = dd->pport + pidx; in qib_count_active_units() 107 if (ppd->lid && (ppd->lflags & (QIBL_LINKINIT | in qib_count_active_units() 129 struct qib_pportdata *ppd; in qib_count_units() local 137 ppd = dd->pport + pidx; in qib_count_units() 138 if (ppd->lid && (ppd->lflags & (QIBL_LINKINIT | in qib_count_units() 165 int qib_wait_linkstate(struct qib_pportdata *ppd, u32 state, int msecs) in qib_wait_linkstate() argument 170 spin_lock_irqsave(&ppd->lflags_lock, flags); in qib_wait_linkstate() 171 if (ppd->state_wanted) { in qib_wait_linkstate() 172 spin_unlock_irqrestore(&ppd->lflags_lock, flags); in qib_wait_linkstate() [all …]
|
D | qib_iba7220.c | 52 static void sendctrl_7220_mod(struct qib_pportdata *ppd, u32 op); 751 static void qib_disarm_7220_senderrbufs(struct qib_pportdata *ppd) in qib_disarm_7220_senderrbufs() argument 754 struct qib_devdata *dd = ppd->dd; in qib_disarm_7220_senderrbufs() 779 static void qib_7220_sdma_sendctrl(struct qib_pportdata *ppd, unsigned op) in qib_7220_sdma_sendctrl() argument 781 struct qib_devdata *dd = ppd->dd; in qib_7220_sdma_sendctrl() 811 static void qib_decode_7220_sdma_errs(struct qib_pportdata *ppd, in qib_decode_7220_sdma_errs() argument 857 static void qib_7220_sdma_hw_clean_up(struct qib_pportdata *ppd) in qib_7220_sdma_hw_clean_up() argument 860 sendctrl_7220_mod(ppd, QIB_SENDCTRL_DISARM_ALL | QIB_SENDCTRL_FLUSH | in qib_7220_sdma_hw_clean_up() 862 ppd->dd->upd_pio_shadow = 1; /* update our idea of what's busy */ in qib_7220_sdma_hw_clean_up() 865 static void qib_sdma_7220_setlengen(struct qib_pportdata *ppd) in qib_sdma_7220_setlengen() argument [all …]
|
D | qib_qsfp.c | 47 static int qsfp_read(struct qib_pportdata *ppd, int addr, void *bp, int len) in qsfp_read() argument 49 struct qib_devdata *dd = ppd->dd; in qsfp_read() 73 if (ppd->hw_pidx) { in qsfp_read() 89 qib_dev_porterr(dd, ppd->port, in qsfp_read() 139 qib_dev_porterr(dd, ppd->port, "QSFP failed even retrying\n"); in qsfp_read() 141 qib_dev_porterr(dd, ppd->port, "QSFP retries: %d\n", pass); in qsfp_read() 157 static int qib_qsfp_write(struct qib_pportdata *ppd, int addr, void *bp, in qib_qsfp_write() argument 160 struct qib_devdata *dd = ppd->dd; in qib_qsfp_write() 183 if (ppd->hw_pidx) { in qib_qsfp_write() 198 qib_dev_porterr(dd, ppd->port, in qib_qsfp_write() [all …]
|
D | qib_mad.c | 326 struct qib_pportdata *ppd = dd->pport + pidx; in subn_get_guidinfo() local 327 struct qib_ibport *ibp = &ppd->ibport_data; in subn_get_guidinfo() 328 __be64 g = ppd->guid; in subn_get_guidinfo() 346 static void set_link_width_enabled(struct qib_pportdata *ppd, u32 w) in set_link_width_enabled() argument 348 (void) ppd->dd->f_set_ib_cfg(ppd, QIB_IB_CFG_LWID_ENB, w); in set_link_width_enabled() 351 static void set_link_speed_enabled(struct qib_pportdata *ppd, u32 s) in set_link_speed_enabled() argument 353 (void) ppd->dd->f_set_ib_cfg(ppd, QIB_IB_CFG_SPD_ENB, s); in set_link_speed_enabled() 356 static int get_overrunthreshold(struct qib_pportdata *ppd) in get_overrunthreshold() argument 358 return ppd->dd->f_get_ib_cfg(ppd, QIB_IB_CFG_OVERRUN_THRESH); in get_overrunthreshold() 368 static int set_overrunthreshold(struct qib_pportdata *ppd, unsigned n) in set_overrunthreshold() argument [all …]
|
D | qib_init.c | 140 struct qib_pportdata *ppd; in qib_create_ctxts() local 146 ppd = dd->pport + (i % dd->num_pports); in qib_create_ctxts() 148 rcd = qib_create_ctxtdata(ppd, i, dd->assigned_node_id); in qib_create_ctxts() 165 struct qib_ctxtdata *qib_create_ctxtdata(struct qib_pportdata *ppd, u32 ctxt, in qib_create_ctxtdata() argument 168 struct qib_devdata *dd = ppd->dd; in qib_create_ctxtdata() 175 rcd->ppd = ppd; in qib_create_ctxtdata() 220 int qib_init_pportdata(struct qib_pportdata *ppd, struct qib_devdata *dd, in qib_init_pportdata() argument 225 ppd->dd = dd; in qib_init_pportdata() 226 ppd->hw_pidx = hw_pidx; in qib_init_pportdata() 227 ppd->port = port; /* IB port number, not index */ in qib_init_pportdata() [all …]
|
D | qib_tx.c | 107 dd->f_sendctrl(rcd->ppd, QIB_SENDCTRL_DISARM_BUF(i)); in qib_disarm_piobufs_ifneeded() 116 struct qib_pportdata *ppd; in is_sdma_buf() local 120 ppd = dd->pport + pidx; in is_sdma_buf() 121 if (i >= ppd->sdma_state.first_sendbuf && in is_sdma_buf() 122 i < ppd->sdma_state.last_sendbuf) in is_sdma_buf() 123 return ppd; in is_sdma_buf() 174 struct qib_pportdata *ppd, *pppd[QIB_MAX_IB_PORTS]; in qib_disarm_piobufs_set() local 188 ppd = is_sdma_buf(dd, i); in qib_disarm_piobufs_set() 189 if (ppd) { in qib_disarm_piobufs_set() 190 pppd[ppd->port] = ppd; in qib_disarm_piobufs_set() [all …]
|
D | qib_verbs.c | 225 struct qib_ibport *ibp = &rcd->ppd->ibport_data; in qib_qp_rcv() 273 struct qib_pportdata *ppd = rcd->ppd; in qib_ib_rcv() local 274 struct qib_ibport *ibp = &ppd->ibport_data; in qib_ib_rcv() 276 struct qib_devdata *dd = ppd->dd; in qib_ib_rcv() 292 lid &= ~((1 << ppd->lmc) - 1); in qib_ib_rcv() 293 if (unlikely(lid != ppd->lid)) in qib_ib_rcv() 667 void qib_verbs_sdma_desc_avail(struct qib_pportdata *ppd, unsigned avail) in qib_verbs_sdma_desc_avail() argument 676 dev = &ppd->dd->verbs_dev; in qib_verbs_sdma_desc_avail() 682 if (qp->port_num != ppd->port) in qib_verbs_sdma_desc_avail() 778 struct qib_pportdata *ppd = ppd_from_ibp(ibp); in qib_verbs_send_dma() local [all …]
|
D | qib_user_sdma.c | 803 struct qib_pportdata *ppd, in qib_user_sdma_queue_pkts() argument 905 ppd->ibmaxlen) { in qib_user_sdma_queue_pkts() 1060 static int qib_user_sdma_queue_clean(struct qib_pportdata *ppd, in qib_user_sdma_queue_clean() argument 1063 struct qib_devdata *dd = ppd->dd; in qib_user_sdma_queue_clean() 1082 s64 descd = ppd->sdma_descq_removed - pkt->added; in qib_user_sdma_queue_clean() 1125 static int qib_user_sdma_hwqueue_clean(struct qib_pportdata *ppd) in qib_user_sdma_hwqueue_clean() argument 1130 spin_lock_irqsave(&ppd->sdma_lock, flags); in qib_user_sdma_hwqueue_clean() 1131 ret = qib_sdma_make_progress(ppd); in qib_user_sdma_hwqueue_clean() 1132 spin_unlock_irqrestore(&ppd->sdma_lock, flags); in qib_user_sdma_hwqueue_clean() 1138 void qib_user_sdma_queue_drain(struct qib_pportdata *ppd, in qib_user_sdma_queue_drain() argument [all …]
|
D | qib_iba6120.c | 49 static void sendctrl_6120_mod(struct qib_pportdata *ppd, u32 op); 268 struct qib_pportdata *ppd; member 962 static void qib_disarm_6120_senderrbufs(struct qib_pportdata *ppd) in qib_disarm_6120_senderrbufs() argument 965 struct qib_devdata *dd = ppd->dd; in qib_disarm_6120_senderrbufs() 1002 struct qib_pportdata *ppd = dd->pport; in handle_6120_errors() local 1019 qib_disarm_6120_senderrbufs(ppd); in handle_6120_errors() 1021 !(ppd->lflags & QIBL_LINKACTIVE)) { in handle_6120_errors() 1032 !(ppd->lflags & QIBL_LINKACTIVE)) { in handle_6120_errors() 1082 qib_handle_e_ibstatuschanged(ppd, ibcs); in handle_6120_errors() 1095 qib_dev_porterr(dd, ppd->port, "%s error\n", msg); in handle_6120_errors() [all …]
|
D | qib_sysfs.c | 56 struct qib_pportdata *ppd = &dd->pport[port_num - 1]; in hrtbt_enable_show() local 58 return sysfs_emit(buf, "%d\n", dd->f_get_ib_cfg(ppd, QIB_IB_CFG_HRTBT)); in hrtbt_enable_show() 66 struct qib_pportdata *ppd = &dd->pport[port_num - 1]; in hrtbt_enable_store() local 83 ret = dd->f_set_ib_cfg(ppd, QIB_IB_CFG_HRTBT, val); in hrtbt_enable_store() 93 struct qib_pportdata *ppd = &dd->pport[port_num - 1]; in loopback_store() local 96 r = dd->f_set_ib_loopback(ppd, buf); in loopback_store() 109 struct qib_pportdata *ppd = &dd->pport[port_num - 1]; in led_override_store() local 119 qib_set_led_override(ppd, val); in led_override_store() 128 struct qib_pportdata *ppd = &dd->pport[port_num - 1]; in status_show() local 130 if (!ppd->statusp) in status_show() [all …]
|
/linux-5.19.10/drivers/infiniband/hw/hfi1/ |
D | platform.c | 61 struct hfi1_pportdata *ppd = dd->pport; in save_platform_config_fields() local 69 ppd->port_type = temp_dest >> in save_platform_config_fields() 76 ppd->local_atten = temp_dest >> in save_platform_config_fields() 83 ppd->remote_atten = temp_dest >> in save_platform_config_fields() 90 ppd->default_atten = temp_dest >> in save_platform_config_fields() 97 ppd->tx_preset_eq = (temp_scratch & TX_EQ_SMASK) >> TX_EQ_SHIFT; in save_platform_config_fields() 98 ppd->tx_preset_noeq = (temp_scratch & TX_NO_EQ_SMASK) >> TX_NO_EQ_SHIFT; in save_platform_config_fields() 99 ppd->rx_preset = (temp_scratch & RX_SMASK) >> RX_SHIFT; in save_platform_config_fields() 101 ppd->max_power_class = (temp_scratch & QSFP_MAX_POWER_SMASK) >> in save_platform_config_fields() 104 ppd->config_from_scratch = true; in save_platform_config_fields() [all …]
|
D | intr.c | 16 static void set_mgmt_allowed(struct hfi1_pportdata *ppd) in set_mgmt_allowed() argument 19 struct hfi1_devdata *dd = ppd->dd; in set_mgmt_allowed() 21 if (ppd->neighbor_type == NEIGHBOR_TYPE_HFI) { in set_mgmt_allowed() 22 ppd->mgmt_allowed = 1; in set_mgmt_allowed() 25 ppd->mgmt_allowed = (frame >> MGMT_ALLOWED_SHIFT) in set_mgmt_allowed() 37 static void add_full_mgmt_pkey(struct hfi1_pportdata *ppd) in add_full_mgmt_pkey() argument 39 struct hfi1_devdata *dd = ppd->dd; in add_full_mgmt_pkey() 42 if (!((ppd->pkeys[2] == 0) || (ppd->pkeys[2] == FULL_MGMT_P_KEY))) in add_full_mgmt_pkey() 44 __func__, ppd->pkeys[2], FULL_MGMT_P_KEY); in add_full_mgmt_pkey() 45 ppd->pkeys[2] = FULL_MGMT_P_KEY; in add_full_mgmt_pkey() [all …]
|
D | qsfp.c | 274 static int __i2c_write(struct hfi1_pportdata *ppd, u32 target, int i2c_addr, in __i2c_write() argument 277 struct hfi1_devdata *dd = ppd->dd; in __i2c_write() 293 int i2c_write(struct hfi1_pportdata *ppd, u32 target, int i2c_addr, int offset, in i2c_write() argument 298 if (!check_chip_resource(ppd->dd, i2c_target(target), __func__)) in i2c_write() 301 ret = __i2c_write(ppd, target, i2c_addr, offset, bp, len); in i2c_write() 313 static int __i2c_read(struct hfi1_pportdata *ppd, u32 target, int i2c_addr, in __i2c_read() argument 316 struct hfi1_devdata *dd = ppd->dd; in __i2c_read() 332 int i2c_read(struct hfi1_pportdata *ppd, u32 target, int i2c_addr, int offset, in i2c_read() argument 337 if (!check_chip_resource(ppd->dd, i2c_target(target), __func__)) in i2c_read() 340 ret = __i2c_read(ppd, target, i2c_addr, offset, bp, len); in i2c_read() [all …]
|
D | init.c | 86 struct hfi1_pportdata *ppd) in hfi1_create_kctxt() argument 94 ret = hfi1_create_ctxtdata(ppd, dd->node, &rcd); in hfi1_create_kctxt() 304 int hfi1_create_ctxtdata(struct hfi1_pportdata *ppd, int numa, in hfi1_create_ctxtdata() argument 307 struct hfi1_devdata *dd = ppd->dd; in hfi1_create_ctxtdata() 331 rcd->ppd = ppd; in hfi1_create_ctxtdata() 483 void set_link_ipg(struct hfi1_pportdata *ppd) in set_link_ipg() argument 485 struct hfi1_devdata *dd = ppd->dd; in set_link_ipg() 498 cc_state = get_cc_state(ppd); in set_link_ipg() 509 u16 ccti = ppd->cca_timer[i].ccti; in set_link_ipg() 523 current_egress_rate = active_egress_rate(ppd); in set_link_ipg() [all …]
|
D | mad.c | 61 struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); in hfi1_lookup_pkey_value() local 63 if (pkey_idx < ARRAY_SIZE(ppd->pkeys)) in hfi1_lookup_pkey_value() 64 return ppd->pkeys[pkey_idx]; in hfi1_lookup_pkey_value() 256 struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); in hfi1_create_qp0_ah() local 257 struct hfi1_devdata *dd = dd_from_ppd(ppd); in hfi1_create_qp0_ah() 258 u32 port_num = ppd->port; in hfi1_create_qp0_ah() 635 static void set_link_width_enabled(struct hfi1_pportdata *ppd, u32 w) in set_link_width_enabled() argument 637 (void)hfi1_set_ib_cfg(ppd, HFI1_IB_CFG_LWID_ENB, w); in set_link_width_enabled() 640 static void set_link_width_downgrade_enabled(struct hfi1_pportdata *ppd, u32 w) in set_link_width_downgrade_enabled() argument 642 (void)hfi1_set_ib_cfg(ppd, HFI1_IB_CFG_LWID_DG_ENB, w); in set_link_width_downgrade_enabled() [all …]
|
D | chip.c | 1034 static void set_partition_keys(struct hfi1_pportdata *ppd); 1036 static const char *link_state_reason_name(struct hfi1_pportdata *ppd, 1043 static void update_statusp(struct hfi1_pportdata *ppd, u32 state); 1044 static int wait_phys_link_offline_substates(struct hfi1_pportdata *ppd, 1046 static int wait_logical_linkstate(struct hfi1_pportdata *ppd, u32 state, 1048 static void log_state_transition(struct hfi1_pportdata *ppd, u32 state); 1049 static void log_physical_state(struct hfi1_pportdata *ppd, u32 state); 1050 static int wait_physical_linkstate(struct hfi1_pportdata *ppd, u32 state, 1052 static int wait_phys_link_out_of_offline(struct hfi1_pportdata *ppd, 1061 static void clear_full_mgmt_pkey(struct hfi1_pportdata *ppd); [all …]
|
D | ud.c | 34 struct hfi1_pportdata *ppd; in ud_loopback() local 67 ppd = ppd_from_ibp(ibp); in ud_loopback() 75 slid = ppd->lid | (rdma_ah_get_path_bits(ah_attr) & in ud_loopback() 76 ((1 << ppd->lmc) - 1)); in ud_loopback() 77 if (unlikely(ingress_pkey_check(ppd, pkey, sc5, in ud_loopback() 168 cpu_to_be64(ppd->guids[HFI1_PORT_GUID_INDEX]); in ud_loopback() 207 wc.slid = (ppd->lid | (rdma_ah_get_path_bits(ah_attr) & in ud_loopback() 208 ((1 << ppd->lmc) - 1))) & U16_MAX; in ud_loopback() 213 wc.dlid_path_bits = rdma_ah_get_dlid(ah_attr) & ((1 << ppd->lmc) - 1); in ud_loopback() 271 struct hfi1_pportdata *ppd; in hfi1_make_ud_req_9B() local [all …]
|
D | driver.c | 132 struct hfi1_pportdata *ppd; in hfi1_count_active_units() local 141 ppd = dd->pport + pidx; in hfi1_count_active_units() 142 if (ppd->lid && ppd->linkup) { in hfi1_count_active_units() 207 static void rcv_hdrerr(struct hfi1_ctxtdata *rcd, struct hfi1_pportdata *ppd, in rcv_hdrerr() argument 214 struct hfi1_devdata *dd = ppd->dd; in rcv_hdrerr() 353 process_becn(ppd, sl, rlid, lqpn, rqpn, svc_type); in rcv_hdrerr() 405 struct hfi1_pportdata *ppd = ppd_from_ibp(ibp); in hfi1_process_ecn_slowpath() local 430 ppd->lid; in hfi1_process_ecn_slowpath() 487 process_becn(ppd, sl, rlid, lqpn, rqpn, svc_type); in hfi1_process_ecn_slowpath() 567 if (rcd->ppd->cc_prescan) \ [all …]
|
D | debugfs.c | 477 struct hfi1_pportdata *ppd; in portcntrs_debugfs_read() local 480 ppd = private2ppd(file); in portcntrs_debugfs_read() 481 avail = hfi1_read_portcntrs(ppd, NULL, &counters); in portcntrs_debugfs_read() 503 struct hfi1_pportdata *ppd; in asic_flags_read() local 512 ppd = private2ppd(file); in asic_flags_read() 513 dd = ppd->dd; in asic_flags_read() 552 struct hfi1_pportdata *ppd; in asic_flags_write() local 560 ppd = private2ppd(file); in asic_flags_write() 561 dd = ppd->dd; in asic_flags_write() 598 struct hfi1_pportdata *ppd = private2ppd(file); in dc8051_memory_read() local [all …]
|
D | qsfp.h | 171 struct hfi1_pportdata *ppd; member 183 int refresh_qsfp_cache(struct hfi1_pportdata *ppd, 186 int qsfp_mod_present(struct hfi1_pportdata *ppd); 190 int i2c_write(struct hfi1_pportdata *ppd, u32 target, int i2c_addr, 192 int i2c_read(struct hfi1_pportdata *ppd, u32 target, int i2c_addr, 194 int qsfp_write(struct hfi1_pportdata *ppd, u32 target, int addr, void *bp, 196 int qsfp_read(struct hfi1_pportdata *ppd, u32 target, int addr, void *bp, 198 int one_qsfp_write(struct hfi1_pportdata *ppd, u32 target, int addr, void *bp, 200 int one_qsfp_read(struct hfi1_pportdata *ppd, u32 target, int addr, void *bp,
|
/linux-5.19.10/arch/x86/mm/ |
D | mem_encrypt_identity.c | 102 static void __init sme_clear_pgd(struct sme_populate_pgd_data *ppd) in sme_clear_pgd() argument 107 pgd_start = ppd->vaddr & PGDIR_MASK; in sme_clear_pgd() 108 pgd_end = ppd->vaddr_end & PGDIR_MASK; in sme_clear_pgd() 112 pgd_p = ppd->pgd + pgd_index(ppd->vaddr); in sme_clear_pgd() 117 static pud_t __init *sme_prepare_pgd(struct sme_populate_pgd_data *ppd) in sme_prepare_pgd() argument 124 pgd = ppd->pgd + pgd_index(ppd->vaddr); in sme_prepare_pgd() 126 p4d = ppd->pgtable_area; in sme_prepare_pgd() 128 ppd->pgtable_area += sizeof(*p4d) * PTRS_PER_P4D; in sme_prepare_pgd() 132 p4d = p4d_offset(pgd, ppd->vaddr); in sme_prepare_pgd() 134 pud = ppd->pgtable_area; in sme_prepare_pgd() [all …]
|
/linux-5.19.10/tools/testing/selftests/net/ |
D | psock_tpacket.c | 224 union frame_map ppd; in walk_v1_v2_rx() local 241 ppd.raw = ring->rd[frame_num].iov_base; in walk_v1_v2_rx() 245 test_payload((uint8_t *) ppd.raw + ppd.v1->tp_h.tp_mac, in walk_v1_v2_rx() 246 ppd.v1->tp_h.tp_snaplen); in walk_v1_v2_rx() 247 total_bytes += ppd.v1->tp_h.tp_snaplen; in walk_v1_v2_rx() 251 test_payload((uint8_t *) ppd.raw + ppd.v2->tp_h.tp_mac, in walk_v1_v2_rx() 252 ppd.v2->tp_h.tp_snaplen); in walk_v1_v2_rx() 253 total_bytes += ppd.v2->tp_h.tp_snaplen; in walk_v1_v2_rx() 260 __v1_v2_rx_user_ready(ppd.raw, ring->version); in walk_v1_v2_rx() 374 union frame_map ppd; in walk_tx() local [all …]
|