Home
last modified time | relevance | path

Searched refs:pattr (Results 1 – 13 of 13) sorted by relevance

/linux-6.6.21/arch/powerpc/platforms/pseries/
Dpapr_platform_attributes.c144 struct papr_attr *pattr = container_of(kobj_attr, struct papr_attr, in desc_show() local
149 ret = papr_get_attr(pattr->id, &esi); in desc_show()
163 struct papr_attr *pattr = container_of(kobj_attr, struct papr_attr, in val_show() local
168 ret = papr_get_attr(pattr->id, &esi); in val_show()
183 struct papr_attr *pattr = container_of(kobj_attr, struct papr_attr, in val_desc_show() local
188 ret = papr_get_attr(pattr->id, &esi); in val_desc_show()
/linux-6.6.21/net/sched/
Dact_pedit.c167 struct nlattr *pattr; in tcf_pedit_init() local
183 pattr = tb[TCA_PEDIT_PARMS]; in tcf_pedit_init()
184 if (!pattr) in tcf_pedit_init()
185 pattr = tb[TCA_PEDIT_PARMS_EX]; in tcf_pedit_init()
186 if (!pattr) { in tcf_pedit_init()
191 parm = nla_data(pattr); in tcf_pedit_init()
220 if (nla_len(pattr) < sizeof(*parm) + ksize) { in tcf_pedit_init()
221 …NL_SET_ERR_MSG_ATTR(extack, pattr, "Length of TCA_PEDIT_PARMS or TCA_PEDIT_PARMS_EX pedit attribut… in tcf_pedit_init()
/linux-6.6.21/drivers/infiniband/hw/mthca/
Dmthca_mad.c207 struct ib_port_attr pattr; in mthca_process_mad() local
248 !ib_query_port(ibdev, port_num, &pattr)) in mthca_process_mad()
249 prev_lid = ib_lid_cpu16(pattr.lid); in mthca_process_mad()
/linux-6.6.21/net/smc/
Dsmc_ib.c193 return smcibdev->pattr[ibport - 1].state == IB_PORT_ACTIVE; in smc_ib_port_active()
277 for (i = 0; i < smcibdev->pattr[ibport - 1].gid_tbl_len; i++) { in smc_ib_determine_gid()
309 for (i = 0; !rc && i < smcibdev->pattr[ibport - 1].gid_tbl_len; i++) { in smc_ib_check_link_gid()
357 memset(&smcibdev->pattr[ibport - 1], 0, in smc_ib_remember_port_attr()
358 sizeof(smcibdev->pattr[ibport - 1])); in smc_ib_remember_port_attr()
360 &smcibdev->pattr[ibport - 1]); in smc_ib_remember_port_attr()
Dsmc_ib.h38 struct ib_port_attr pattr[SMC_MAX_PORTS]; /* ib dev. port attrs */ member
Dsmc_core.c762 lnk->path_mtu = lnk->smcibdev->pattr[lnk->ibport - 1].active_mtu; in smcr_link_init()
/linux-6.6.21/tools/testing/selftests/mount_setattr/
Dmount_setattr_test.c907 pthread_attr_t pattr; in TEST_F() local
921 pthread_attr_init(&pattr); in TEST_F()
923 ASSERT_EQ(pthread_create(&threads[i], &pattr, mount_setattr_thread, NULL), 0); in TEST_F()
933 pthread_attr_destroy(&pattr); in TEST_F()
/linux-6.6.21/net/netfilter/
Dnf_conntrack_proto_tcp.c1402 struct nlattr *pattr = cda[CTA_PROTOINFO_TCP]; in nlattr_to_tcp() local
1408 if (!pattr) in nlattr_to_tcp()
1411 err = nla_parse_nested_deprecated(tb, CTA_PROTOINFO_TCP_MAX, pattr, in nlattr_to_tcp()
/linux-6.6.21/drivers/scsi/bfa/
Dbfad_bsg.c77 struct bfa_port_attr_s pattr; in bfad_iocmd_ioc_get_info() local
81 bfa_fcport_get_attr(&bfad->bfa, &pattr); in bfad_iocmd_ioc_get_info()
82 iocmd->nwwn = pattr.nwwn; in bfad_iocmd_ioc_get_info()
83 iocmd->pwwn = pattr.pwwn; in bfad_iocmd_ioc_get_info()
88 iocmd->factorynwwn = pattr.factorynwwn; in bfad_iocmd_ioc_get_info()
89 iocmd->factorypwwn = pattr.factorypwwn; in bfad_iocmd_ioc_get_info()
/linux-6.6.21/drivers/block/mtip32xx/
Dmtip32xx.c1319 struct smart_attr *pattr; in mtip_get_smart_attr() local
1344 pattr = (struct smart_attr *)(port->smart_buf + 2); in mtip_get_smart_attr()
1345 for (i = 0; i < 29; i++, pattr++) in mtip_get_smart_attr()
1346 if (pattr->attr_id == id) { in mtip_get_smart_attr()
1347 memcpy(attrib, pattr, sizeof(struct smart_attr)); in mtip_get_smart_attr()
/linux-6.6.21/drivers/net/ethernet/rocker/
Drocker_main.c2297 const struct rocker_tlv *pattr; in rocker_cmd_get_port_stats_ethtool_proc() local
2318 pattr = stats_attrs[rocker_port_stats[i].type]; in rocker_cmd_get_port_stats_ethtool_proc()
2319 if (!pattr) in rocker_cmd_get_port_stats_ethtool_proc()
2322 data[i] = rocker_tlv_get_u64(pattr); in rocker_cmd_get_port_stats_ethtool_proc()
/linux-6.6.21/net/core/
Dfib_rules.c239 static int nla_get_port_range(struct nlattr *pattr, in nla_get_port_range() argument
242 const struct fib_rule_port_range *pr = nla_data(pattr); in nla_get_port_range()
/linux-6.6.21/drivers/infiniband/hw/mlx4/
Dmad.c828 struct ib_port_attr pattr; in ib_process_mad() local
863 !ib_query_port(ibdev, port_num, &pattr)) in ib_process_mad()
864 prev_lid = ib_lid_cpu16(pattr.lid); in ib_process_mad()