Home
last modified time | relevance | path

Searched refs:attr (Results 1 – 25 of 242) sorted by relevance

12345678910

/f-stack/dpdk/drivers/net/tap/
H A Dtap_bpf_api.c120 bzero(&attr, sizeof(attr)); in bpf_load()
121 attr.prog_type = type; in bpf_load()
126 attr.log_level = 0; in bpf_load()
127 attr.kern_version = 0; in bpf_load()
129 return sys_bpf(BPF_PROG_LOAD, &attr, sizeof(attr)); in bpf_load()
153 bzero(&attr, sizeof(attr)); in tap_flow_bpf_rss_map_create()
159 return sys_bpf(BPF_MAP_CREATE, &attr, sizeof(attr)); in tap_flow_bpf_rss_map_create()
181 bzero(&attr, sizeof(attr)); in tap_flow_bpf_update_rss_elem()
184 attr.map_fd = fd; in tap_flow_bpf_update_rss_elem()
187 attr.flags = BPF_ANY; in tap_flow_bpf_update_rss_elem()
[all …]
H A Dtap_netlink.c146 tap_nl_attr_next(const struct nlattr *attr) in tap_nl_attr_next() argument
149 + NLMSG_ALIGN(attr->nla_len)); in tap_nl_attr_next()
157 if (attr->nla_len < sizeof(struct nlattr)) in tap_nl_attr_ok()
159 if ((int)attr->nla_len > len) in tap_nl_attr_ok()
169 const struct nlattr *attr; in tap_nl_dump_ext_ack() local
180 for (attr = tap_nl_attr_first(nh, hlen); in tap_nl_dump_ext_ack()
181 tap_nl_attr_ok(attr, tail - (const char *)attr); in tap_nl_dump_ext_ack()
182 attr = tap_nl_attr_next(attr)) { in tap_nl_dump_ext_ack()
183 uint16_t type = attr->nla_type & NLA_TYPE_MASK; in tap_nl_dump_ext_ack()
186 const char *msg = (const char *)attr in tap_nl_dump_ext_ack()
[all …]
/f-stack/dpdk/drivers/net/fm10k/base/
H A Dfm10k_tlv.c41 u32 *attr; in fm10k_tlv_attr_put_null_string() local
100 attr++; in fm10k_tlv_attr_get_null_string()
122 u32 *attr; in fm10k_tlv_attr_put_mac_vlan() local
212 u32 *attr; in fm10k_tlv_attr_put_value() local
264 *(u64 *)value = ((u64)attr[2] << 32) | attr[1]; in fm10k_tlv_attr_get_value()
290 u32 *attr; in fm10k_tlv_attr_put_le_struct() local
341 attr++; in fm10k_tlv_attr_get_le_struct()
362 u32 *attr; in fm10k_tlv_attr_nest_start() local
443 attr++; in fm10k_tlv_attr_validate()
528 attr++; in fm10k_tlv_attr_parse()
[all …]
H A Dfm10k_tlv.h85 const struct fm10k_tlv_attr *attr; member
90 #define FM10K_MSG_HANDLER(id, attr, func) { id, attr, func } argument
114 #define fm10k_tlv_attr_get_u8(attr, ptr) \ argument
115 fm10k_tlv_attr_get_value(attr, ptr, sizeof(u8))
116 #define fm10k_tlv_attr_get_u16(attr, ptr) \ argument
118 #define fm10k_tlv_attr_get_u32(attr, ptr) \ argument
120 #define fm10k_tlv_attr_get_u64(attr, ptr) \ argument
122 #define fm10k_tlv_attr_get_s8(attr, ptr) \ argument
124 #define fm10k_tlv_attr_get_s16(attr, ptr) \ argument
126 #define fm10k_tlv_attr_get_s32(attr, ptr) \ argument
[all …]
/f-stack/freebsd/contrib/openzfs/include/sys/
H A Dxvattr.h193 #define XVA_INDEX(attr) ((uint32_t)(((attr) >> XVA_SHFT) & XVA_MASK)) argument
194 #define XVA_ATTRBIT(attr) ((uint32_t)((attr) & XVA_MASK)) argument
235 #define XVA_SET_REQ(xvap, attr) \ argument
238 (xvap)->xva_reqattrmap[XVA_INDEX(attr)] |= XVA_ATTRBIT(attr)
243 #define XVA_CLR_REQ(xvap, attr) \ argument
246 (xvap)->xva_reqattrmap[XVA_INDEX(attr)] &= ~XVA_ATTRBIT(attr)
252 #define XVA_SET_RTN(xvap, attr) \ argument
255 (XVA_RTNATTRMAP(xvap))[XVA_INDEX(attr)] |= XVA_ATTRBIT(attr)
261 #define XVA_ISSET_REQ(xvap, attr) \ argument
265 ((xvap)->xva_reqattrmap[XVA_INDEX(attr)] & XVA_ATTRBIT(attr)) : 0)
[all …]
H A Dsa_impl.h72 #define ATTR_ENCODE(x, attr, length, bswap) \ argument
76 BF64_SET(x, 0, 16, attr); \
245 #define SA_REGISTERED_LEN(sa, attr) sa->sa_attr_table[attr].sa_length argument
247 #define SA_ATTR_LEN(sa, idx, attr, hdr) ((SA_REGISTERED_LEN(sa, attr) == 0) ?\ argument
248 hdr->sa_lengths[TOC_LEN_IDX(idx->sa_idx_tab[attr])] : \
249 SA_REGISTERED_LEN(sa, attr))
257 #define SA_ATTR_INFO(sa, idx, hdr, attr, bulk, type, hdl) \ argument
259 bulk.sa_size = SA_ATTR_LEN(sa, idx, attr, hdr); \
262 (void *)((uintptr_t)TOC_OFF(idx->sa_idx_tab[attr]) + \
/f-stack/dpdk/drivers/common/mlx5/
H A Dmlx5_devx_cmds.c210 int klm_num = attr->klm_num; in mlx5_devx_cmd_mkey_create()
723 if (attr->qos.sup) { in mlx5_devx_cmd_query_hca_attr()
738 attr->qos.srtcm_sup = in mlx5_devx_cmd_query_hca_attr()
748 attr->qos.wqe_rate_pp = in mlx5_devx_cmd_query_hca_attr()
751 if (attr->vdpa.valid) in mlx5_devx_cmd_query_hca_attr()
839 if (attr->eth_virt) { in mlx5_devx_cmd_query_hca_attr()
842 attr->eth_virt = 0; in mlx5_devx_cmd_query_hca_attr()
1696 switch (attr->type) { in mlx5_devx_cmd_modify_virtq()
1798 if (attr->uar_index) { in mlx5_devx_cmd_create_qp()
1803 if (attr->sq_size) { in mlx5_devx_cmd_create_qp()
[all …]
/f-stack/freebsd/sys/
H A Darb.h314 attr void \
359 attr void \
438 attr struct type * \
524 attr struct type * \
567 attr const struct type * \
585 attr struct type * \
612 attr struct type * \
642 attr struct type * \
672 attr struct type * \
693 attr struct type * \
[all …]
H A Dtree.h421 RB_PROTOTYPE_REINSERT(name, type, attr);
464 attr void \
516 attr void \
596 attr struct type * \
639 attr struct type * \
673 attr struct type * \
692 attr struct type * \
714 attr struct type * \
737 attr struct type * \
759 attr struct type * \
[all …]
/f-stack/dpdk/drivers/net/hinic/base/
H A Dhinic_pmd_hwif.c164 struct hinic_func_attr *attr = &hwif->attr; in set_ppf() local
182 if (attr->ppf_idx == attr->func_global_idx) in set_ppf()
183 attr->func_type = TYPE_PPF; in set_ppf()
360 return hwif->attr.func_type; in hinic_func_type()
367 return hwif->attr.ppf_idx; in hinic_ppf_idx()
378 return hwif->attr.num_dma_attr; in hinic_dma_attr_entry_num()
456 hwif->attr.port_to_port_idx, hwif->attr.pci_intf_idx, in hinic_parse_hwif_attr()
457 hwif->attr.vf_in_pf, hwif->attr.ppf_idx, in hinic_parse_hwif_attr()
458 hwif->attr.global_vf_id_of_pf, hwif->attr.func_type); in hinic_parse_hwif_attr()
460 hwif->attr.num_aeqs, hwif->attr.num_ceqs, in hinic_parse_hwif_attr()
[all …]
H A Dhinic_pmd_hwif.h10 #define HINIC_HWIF_NUM_AEQS(hwif) ((hwif)->attr.num_aeqs)
11 #define HINIC_HWIF_NUM_CEQS(hwif) ((hwif)->attr.num_ceqs)
12 #define HINIC_HWIF_NUM_IRQS(hwif) ((hwif)->attr.num_irqs)
13 #define HINIC_HWIF_GLOBAL_IDX(hwif) ((hwif)->attr.func_global_idx)
14 #define HINIC_HWIF_GLOBAL_VF_OFFSET(hwif) ((hwif)->attr.global_vf_id_of_pf)
15 #define HINIC_HWIF_PPF_IDX(hwif) ((hwif)->attr.ppf_idx)
16 #define HINIC_PCI_INTF_IDX(hwif) ((hwif)->attr.pci_intf_idx)
18 #define HINIC_FUNC_TYPE(dev) ((dev)->hwif->attr.func_type)
78 struct hinic_func_attr attr; member
/f-stack/dpdk/drivers/vdpa/mlx5/
H A Dmlx5_vdpa_virtq.c174 attr.hw_available_index, attr.hw_used_index); in mlx5_vdpa_virtq_query()
176 attr.hw_available_index, in mlx5_vdpa_virtq_query()
177 attr.hw_used_index); in mlx5_vdpa_virtq_query()
286 attr.umems[i].offset = 0; in mlx5_vdpa_virtq_setup()
296 attr.desc_addr = gpa; in mlx5_vdpa_virtq_setup()
303 attr.used_addr = gpa; in mlx5_vdpa_virtq_setup()
310 attr.available_addr = gpa; in mlx5_vdpa_virtq_setup()
325 attr.q_size = vq.size; in mlx5_vdpa_virtq_setup()
326 attr.mkey = priv->gpa_mkey_index; in mlx5_vdpa_virtq_setup()
328 attr.queue_index = index; in mlx5_vdpa_virtq_setup()
[all …]
H A Dmlx5_vdpa_event.c160 attr.q_umem_valid = 1; in mlx5_vdpa_cq_create()
161 attr.db_umem_valid = 1; in mlx5_vdpa_cq_create()
162 attr.use_first_only = 1; in mlx5_vdpa_cq_create()
163 attr.overrun_ignore = 0; in mlx5_vdpa_cq_create()
166 attr.q_umem_offset = 0; in mlx5_vdpa_cq_create()
169 attr.eqn = priv->eqn; in mlx5_vdpa_cq_create()
170 attr.log_cq_size = log_desc_n; in mlx5_vdpa_cq_create()
661 attr.pd = priv->pdn; in mlx5_vdpa_event_qp_create()
682 attr.cqn = eqp->cq.cq->id; in mlx5_vdpa_event_qp_create()
687 attr.dbr_umem_valid = 1; in mlx5_vdpa_event_qp_create()
[all …]
/f-stack/dpdk/app/test-flow-perf/
H A Dflow_gen.c20 fill_attributes(struct rte_flow_attr *attr, in fill_attributes() argument
28 attr->ingress = 1; in fill_attributes()
30 attr->egress = 1; in fill_attributes()
32 attr->transfer = 1; in fill_attributes()
34 attr->group = group; in fill_attributes()
50 struct rte_flow_attr attr; in generate_flow() local
57 memset(&attr, 0, sizeof(struct rte_flow_attr)); in generate_flow()
59 fill_attributes(&attr, flow_attrs, group); in generate_flow()
67 flow = rte_flow_create(port_id, &attr, items, actions, error); in generate_flow()
/f-stack/freebsd/arm/include/
H A Dpte-v6.h242 #define PTE1(pa, ap, attr) (PTE1_PA(pa) | (ap) | (attr) | PTE1_AP_COMMON) argument
244 #define PTE1_KERN(pa, ap, attr) PTE1(pa, (ap) | PTE1_A | PTE1_G, attr) argument
245 #define PTE1_KERN_NG(pa, ap, attr) PTE1(pa, (ap) | PTE1_A | PTE1_NG, attr) argument
277 #define PTE2_ATTR2IDX(attr) \ argument
278 ((((attr) & (L2_C | L2_B)) >> L2_CB_SHIFT) | \
279 (((attr) & L2_TEX0) >> (L2_TEX_SHIFT - L2_CB_SHIFT)))
292 #define PTE2(pa, ap, attr) (PTE2_PA(pa) | (ap) | (attr) | PTE2_AP_COMMON) argument
294 #define PTE2_KERN(pa, ap, attr) PTE2(pa, (ap) | PTE2_A | PTE2_G, attr) argument
295 #define PTE2_KERN_NG(pa, ap, attr) PTE2(pa, (ap) | PTE2_A | PTE2_NG, attr) argument
/f-stack/dpdk/drivers/crypto/dpaa2_sec/mc/
H A Ddpseci.c289 struct dpseci_attr *attr) in dpseci_get_attributes() argument
307 attr->id = le32_to_cpu(rsp_params->id); in dpseci_get_attributes()
372 struct dpseci_rx_queue_attr *attr) in dpseci_get_rx_queue() argument
397 attr->dest_cfg.dest_type = in dpseci_get_rx_queue()
400 attr->order_preservation_en = in dpseci_get_rx_queue()
422 struct dpseci_tx_queue_attr *attr) in dpseci_get_tx_queue() argument
444 attr->priority = rsp_params->priority; in dpseci_get_tx_queue()
461 struct dpseci_sec_attr *attr) in dpseci_get_sec_attr() argument
480 attr->major_rev = rsp_params->major_rev; in dpseci_get_sec_attr()
482 attr->era = rsp_params->era; in dpseci_get_sec_attr()
[all …]
/f-stack/dpdk/drivers/net/e1000/
H A Digb_flow.c122 if (!attr) { in cons_parse_ntuple_filter()
372 if (!attr->ingress) { in cons_parse_ntuple_filter()
381 if (attr->egress) { in cons_parse_ntuple_filter()
516 if (!attr) { in cons_parse_ethertype_filter()
635 if (attr->egress) { in cons_parse_ethertype_filter()
659 if (attr->group) { in cons_parse_ethertype_filter()
786 if (!attr) { in cons_parse_syn_filter()
942 if (attr->egress) { in cons_parse_syn_filter()
1072 if (!attr) { in cons_parse_flex_filter()
1239 if (attr->egress) { in cons_parse_flex_filter()
[all …]
/f-stack/tools/compat/include/sys/
H A Dtree.h390 RB_PROTOTYPE_FIND(name, type, attr); \
394 RB_PROTOTYPE_MINMAX(name, type, attr);
433 attr void \
478 attr void \
557 attr struct type * \
626 attr struct type * \
658 attr struct type * \
677 attr struct type * \
699 attr struct type * \
722 attr struct type * \
[all …]
/f-stack/dpdk/drivers/net/bnxt/tf_ulp/
H A Dbnxt_ulp_flow.c44 if (!attr) { in bnxt_ulp_flow_validate_args()
53 if (attr->egress && attr->ingress) { in bnxt_ulp_flow_validate_args()
57 attr, in bnxt_ulp_flow_validate_args()
66 const struct rte_flow_attr *attr) in bnxt_ulp_set_dir_attributes() argument
69 if (attr->egress) in bnxt_ulp_set_dir_attributes()
71 if (attr->ingress) in bnxt_ulp_set_dir_attributes()
73 if (attr->transfer) in bnxt_ulp_set_dir_attributes()
101 const struct rte_flow_attr *attr, in bnxt_ulp_flow_create() argument
114 if (bnxt_ulp_flow_validate_args(attr, in bnxt_ulp_flow_create()
177 params.priority = attr->priority; in bnxt_ulp_flow_create()
[all …]
/f-stack/app/redis-5.0.5/deps/jemalloc/test/src/
H A Dmtx.c19 pthread_mutexattr_t attr; in mtx_init()
21 if (pthread_mutexattr_init(&attr) != 0) { in mtx_init()
24 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_DEFAULT); in mtx_init()
25 if (pthread_mutex_init(&mtx->lock, &attr) != 0) { in mtx_init()
26 pthread_mutexattr_destroy(&attr); in mtx_init()
29 pthread_mutexattr_destroy(&attr); in mtx_init()
/f-stack/dpdk/drivers/net/mlx5/
H A Dmlx5_flow_meter.c35 void *attr = fm->mfts->fmp; in mlx5_flow_meter_action_create() local
40 memset(attr, 0, fm->mfts->fmp_size); in mlx5_flow_meter_action_create()
43 MLX5_SET(flow_meter_parameters, attr, in mlx5_flow_meter_action_create()
529 uint32_t *attr; in mlx5_flow_meter_action_modify() local
541 attr = in; in mlx5_flow_meter_action_modify()
571 attr = fm->mfts->fmp; in mlx5_flow_meter_action_modify()
628 const struct rte_flow_attr attr = { in mlx5_flow_meter_create() local
1185 attr->egress == fm->egress) in mlx5_flow_meter_attach()
1190 fm->ingress = attr->ingress; in mlx5_flow_meter_attach()
1191 fm->egress = attr->egress; in mlx5_flow_meter_attach()
[all …]
H A Dmlx5_flow_age.c77 attr.q_umem_valid = 1; in mlx5_aso_cq_create()
78 attr.db_umem_valid = 1; in mlx5_aso_cq_create()
79 attr.use_first_only = 0; in mlx5_aso_cq_create()
80 attr.overrun_ignore = 0; in mlx5_aso_cq_create()
83 attr.q_umem_offset = 0; in mlx5_aso_cq_create()
84 attr.db_umem_id = attr.q_umem_id; in mlx5_aso_cq_create()
86 attr.eqn = eqn; in mlx5_aso_cq_create()
294 attr.tis_lst_sz = 0; in mlx5_aso_sq_create()
295 attr.tis_num = 0; in mlx5_aso_sq_create()
296 attr.user_index = 0xFFFF; in mlx5_aso_sq_create()
[all …]
/f-stack/dpdk/app/test/
H A Dtest_flow_classify.c298 attr.ingress = 1; in test_valid_parameters()
299 attr.priority = 1; in test_valid_parameters()
347 attr.ingress = 1; in test_invalid_patterns()
348 attr.priority = 1; in test_invalid_patterns()
426 attr.ingress = 1; in test_invalid_actions()
427 attr.priority = 1; in test_invalid_actions()
638 attr.ingress = 1; in test_query_udp()
639 attr.priority = 1; in test_query_udp()
705 attr.ingress = 1; in test_query_tcp()
706 attr.priority = 1; in test_query_tcp()
[all …]
/f-stack/dpdk/drivers/regex/mlx5/
H A Dmlx5_regex_control.c91 struct mlx5_devx_cq_attr attr = { in regex_ctrl_create_cq() local
130 attr.db_umem_offset = cq->dbr_offset; in regex_ctrl_create_cq()
131 attr.db_umem_id = cq->dbr_umem; in regex_ctrl_create_cq()
133 attr.log_cq_size = cq->log_nb_desc; in regex_ctrl_create_cq()
134 attr.uar_page_id = priv->uar->page_id; in regex_ctrl_create_cq()
135 attr.log_page_size = rte_log2_u32(pgsize); in regex_ctrl_create_cq()
231 attr.state = MLX5_SQC_STATE_RST; in regex_ctrl_create_sq()
232 attr.tis_lst_sz = 0; in regex_ctrl_create_sq()
233 attr.tis_num = 0; in regex_ctrl_create_sq()
234 attr.user_index = q_ind; in regex_ctrl_create_sq()
[all …]
/f-stack/dpdk/drivers/event/dpaa2/
H A Ddpaa2_eventdev_selftest.c223 struct event_attr *attr; in update_event_and_validation_attr() local
227 attr->flow_id = flow_id; in update_event_and_validation_attr()
228 attr->event_type = event_type; in update_event_and_validation_attr()
230 attr->sched_type = sched_type; in update_event_and_validation_attr()
231 attr->queue = queue; in update_event_and_validation_attr()
232 attr->port = port; in update_event_and_validation_attr()
233 attr->seq = seq; in update_event_and_validation_attr()
317 struct event_attr *attr; in validate_event() local
322 attr->flow_id, ev->flow_id); in validate_event()
334 attr->queue, ev->queue_id); in validate_event()
[all …]

12345678910