sbin/ipfw/ipfw2.c
2871
ipfw_obj_tlv *tlv;
sbin/ipfw/ipfw2.c
2892
tlv = (ipfw_obj_tlv *)base;
sbin/ipfw/ipfw2.c
2893
if (tlv->type != ttype)
sbin/ipfw/ipfw2.c
2896
fptr(co, fo, farg, tlv + 1);
sbin/ipfw/ipfw2.c
2897
sz -= tlv->length;
sbin/ipfw/ipfw2.c
2898
base += tlv->length;
sys/dev/bhnd/nvram/bhnd_nvram_data.h
61
BHND_NVRAM_DATA_CLASS_DECL(tlv);
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
103
struct bhnd_nvram_tlv *tlv,
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
107
struct bhnd_nvram_tlv *tlv,
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
110
struct bhnd_nvram_tlv *tlv,
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
360
bhnd_nvram_tlv_init(struct bhnd_nvram_tlv *tlv, struct bhnd_nvram_io *src)
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
367
BHND_NV_ASSERT(tlv->data == NULL, ("tlv data already initialized"));
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
374
if ((tlv->data = bhnd_nvram_iobuf_copy_range(src, 0x0, size)) == NULL)
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
378
tlv->count = 0;
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
380
while ((env = bhnd_nvram_tlv_next_env(tlv, &next, NULL)) != NULL) {
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
406
tlv->count++;
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
416
struct bhnd_nvram_tlv *tlv;
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
420
tlv = (struct bhnd_nvram_tlv *)nv;
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
424
if ((error = bhnd_nvram_tlv_init(tlv, io))) {
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
435
struct bhnd_nvram_tlv *tlv = (struct bhnd_nvram_tlv *)nv;
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
436
if (tlv->data != NULL)
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
437
bhnd_nvram_io_free(tlv->data);
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
443
struct bhnd_nvram_tlv *tlv = (struct bhnd_nvram_tlv *)nv;
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
444
return (tlv->count);
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
462
struct bhnd_nvram_tlv *tlv;
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
466
tlv = (struct bhnd_nvram_tlv *)nv;
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
472
env = bhnd_nvram_tlv_next_env(tlv, &io_offset, cookiep);
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
475
io_offset = bhnd_nvram_tlv_to_offset(tlv, *cookiep);
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
476
env = bhnd_nvram_tlv_next_env(tlv, &io_offset, NULL);
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
481
env = bhnd_nvram_tlv_next_env(tlv, &io_offset, cookiep);
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
529
struct bhnd_nvram_tlv *tlv;
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
534
tlv = (struct bhnd_nvram_tlv *)nv;
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
537
if ((env = bhnd_nvram_tlv_get_env(tlv, cookiep)) == NULL)
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
555
struct bhnd_nvram_tlv *tlv;
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
558
tlv = (struct bhnd_nvram_tlv *)nv;
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
561
if ((env = bhnd_nvram_tlv_get_env(tlv, cookiep)) == NULL)
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
64
BHND_NVRAM_DATA_CLASS_DEFN(tlv, "WGT634U", BHND_NVRAM_DATA_CAP_DEVPATHS,
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
749
bhnd_nvram_tlv_next_env(struct bhnd_nvram_tlv *tlv, size_t *next,
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
761
error = bhnd_nvram_tlv_next_record(tlv->data, next, &offset,
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
774
c = bhnd_nvram_tlv_to_cookie(tlv, offset);
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
780
return (bhnd_nvram_tlv_get_env(tlv, c));
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
792
bhnd_nvram_tlv_get_env(struct bhnd_nvram_tlv *tlv, void *cookiep)
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
800
io_size = bhnd_nvram_io_getsize(tlv->data);
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
801
io_offset = bhnd_nvram_tlv_to_offset(tlv, cookiep);
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
808
error = bhnd_nvram_io_write_ptr(tlv->data, io_offset, &ptr,
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
841
bhnd_nvram_tlv_to_cookie(struct bhnd_nvram_tlv *tlv, size_t io_offset)
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
846
BHND_NV_ASSERT(io_offset < bhnd_nvram_io_getsize(tlv->data),
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
851
error = bhnd_nvram_io_read_ptr(tlv->data, 0x0, &ptr, io_offset, NULL);
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
861
bhnd_nvram_tlv_to_offset(struct bhnd_nvram_tlv *tlv, void *cookiep)
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
870
io_size = bhnd_nvram_io_getsize(tlv->data);
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
872
error = bhnd_nvram_io_read_ptr(tlv->data, 0x0, &ptr, io_size, NULL);
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
99
struct bhnd_nvram_tlv *tlv,
sys/dev/bnxt/bnxt_re/qplib_tlv.h
34
struct tlv tlv;
sys/dev/bnxt/bnxt_re/qplib_tlv.h
44
(rtlv)->tlv.cmd_discr = CMD_DISCR_TLV_ENCAP; \
sys/dev/bnxt/bnxt_re/qplib_tlv.h
45
(rtlv)->tlv.tlv_type = TLV_TYPE_ROCE_SP_COMMAND; \
sys/dev/bnxt/bnxt_re/qplib_tlv.h
46
(rtlv)->tlv.length = (content_bytes); \
sys/dev/bnxt/bnxt_re/qplib_tlv.h
47
(rtlv)->tlv.flags = TLV_FLAGS_REQUIRED; \
sys/dev/bnxt/bnxt_re/qplib_tlv.h
48
(rtlv)->tlv.flags |= (more) ? TLV_FLAGS_MORE : 0; \
sys/dev/bnxt/bnxt_re/qplib_tlv.h
54
(rtlv)->tlv.cmd_discr = CMD_DISCR_TLV_ENCAP; \
sys/dev/bnxt/bnxt_re/qplib_tlv.h
55
(rtlv)->tlv.tlv_type = (ext_type); \
sys/dev/bnxt/bnxt_re/qplib_tlv.h
56
(rtlv)->tlv.length = (content_bytes); \
sys/dev/bnxt/bnxt_re/qplib_tlv.h
57
(rtlv)->tlv.flags |= (more) ? TLV_FLAGS_MORE : 0; \
sys/dev/bnxt/bnxt_re/qplib_tlv.h
58
(rtlv)->tlv.flags |= (reqd) ? TLV_FLAGS_REQUIRED : 0; \
sys/dev/bnxt/bnxt_re/qplib_tlv.h
70
#define HAS_TLV_HEADER(msg) (((struct tlv *)(msg))->cmd_discr == CMD_DISCR_TLV_ENCAP)
sys/dev/bnxt/bnxt_re/qplib_tlv.h
71
#define GET_TLV_DATA(tlv) ((void *)&((uint8_t *)(tlv))[TLV_BYTES])
sys/dev/ice/ice_common.c
4082
struct ice_link_default_override_tlv tlv;
sys/dev/ice/ice_common.c
4084
if (ice_get_link_default_override(&tlv, pi))
sys/dev/ice/ice_common.c
4087
if (!(tlv.options & ICE_LINK_OVERRIDE_STRICT_MODE) &&
sys/dev/ice/ice_common.c
4088
(tlv.options & ICE_LINK_OVERRIDE_EN))
sys/dev/ice/ice_common.c
4089
cfg->link_fec_opt = tlv.fec_options;
sys/dev/ice/ice_common.c
6531
u16 i, tlv, tlv_len, tlv_start, buf, offset;
sys/dev/ice/ice_common.c
6535
status = ice_get_pfa_module_tlv(hw, &tlv, &tlv_len,
sys/dev/ice/ice_common.c
6543
tlv_start = tlv + pi->lport * ICE_SR_PFA_LINK_OVERRIDE_WORDS +
sys/dev/ice/ice_dcb.c
1356
ice_add_ieee_ets_tlv(struct ice_lldp_org_tlv *tlv, struct ice_dcbx_cfg *dcbcfg)
sys/dev/ice/ice_dcb.c
1359
u8 *buf = tlv->tlvinfo;
sys/dev/ice/ice_dcb.c
1366
tlv->typelen = HTONS(typelen);
sys/dev/ice/ice_dcb.c
1370
tlv->ouisubtype = HTONL(ouisubtype);
sys/dev/ice/ice_dcb.c
1397
ice_add_ieee_etsrec_tlv(struct ice_lldp_org_tlv *tlv,
sys/dev/ice/ice_dcb.c
1401
u8 *buf = tlv->tlvinfo;
sys/dev/ice/ice_dcb.c
1407
tlv->typelen = HTONS(typelen);
sys/dev/ice/ice_dcb.c
1411
tlv->ouisubtype = HTONL(ouisubtype);
sys/dev/ice/ice_dcb.c
1428
ice_add_ieee_pfc_tlv(struct ice_lldp_org_tlv *tlv, struct ice_dcbx_cfg *dcbcfg)
sys/dev/ice/ice_dcb.c
1430
u8 *buf = tlv->tlvinfo;
sys/dev/ice/ice_dcb.c
1436
tlv->typelen = HTONS(typelen);
sys/dev/ice/ice_dcb.c
1440
tlv->ouisubtype = HTONL(ouisubtype);
sys/dev/ice/ice_dcb.c
1466
ice_add_ieee_app_pri_tlv(struct ice_lldp_org_tlv *tlv,
sys/dev/ice/ice_dcb.c
1471
u8 *buf = tlv->tlvinfo;
sys/dev/ice/ice_dcb.c
1479
tlv->ouisubtype = HTONL(ouisubtype);
sys/dev/ice/ice_dcb.c
1504
len = sizeof(tlv->ouisubtype) + 1 + (i * 3);
sys/dev/ice/ice_dcb.c
1506
tlv->typelen = HTONS(typelen);
sys/dev/ice/ice_dcb.c
1515
ice_add_dscp_up_tlv(struct ice_lldp_org_tlv *tlv, struct ice_dcbx_cfg *dcbcfg)
sys/dev/ice/ice_dcb.c
1517
u8 *buf = tlv->tlvinfo;
sys/dev/ice/ice_dcb.c
1524
tlv->typelen = HTONS(typelen);
sys/dev/ice/ice_dcb.c
1528
tlv->ouisubtype = HTONL(ouisubtype);
sys/dev/ice/ice_dcb.c
1551
ice_add_dscp_enf_tlv(struct ice_lldp_org_tlv *tlv)
sys/dev/ice/ice_dcb.c
1553
u8 *buf = tlv->tlvinfo;
sys/dev/ice/ice_dcb.c
1559
tlv->typelen = HTONS(typelen);
sys/dev/ice/ice_dcb.c
1563
tlv->ouisubtype = HTONL(ouisubtype);
sys/dev/ice/ice_dcb.c
1575
ice_add_dscp_tc_bw_tlv(struct ice_lldp_org_tlv *tlv,
sys/dev/ice/ice_dcb.c
1579
u8 *buf = tlv->tlvinfo;
sys/dev/ice/ice_dcb.c
1587
tlv->typelen = HTONS(typelen);
sys/dev/ice/ice_dcb.c
1591
tlv->ouisubtype = HTONL(ouisubtype);
sys/dev/ice/ice_dcb.c
1624
ice_add_dscp_pfc_tlv(struct ice_lldp_org_tlv *tlv, struct ice_dcbx_cfg *dcbcfg)
sys/dev/ice/ice_dcb.c
1626
u8 *buf = tlv->tlvinfo;
sys/dev/ice/ice_dcb.c
1632
tlv->typelen = HTONS(typelen);
sys/dev/ice/ice_dcb.c
1636
tlv->ouisubtype = HTONL(ouisubtype);
sys/dev/ice/ice_dcb.c
1651
ice_add_dcb_tlv(struct ice_lldp_org_tlv *tlv, struct ice_dcbx_cfg *dcbcfg,
sys/dev/ice/ice_dcb.c
1657
ice_add_ieee_ets_tlv(tlv, dcbcfg);
sys/dev/ice/ice_dcb.c
1660
ice_add_ieee_etsrec_tlv(tlv, dcbcfg);
sys/dev/ice/ice_dcb.c
1663
ice_add_ieee_pfc_tlv(tlv, dcbcfg);
sys/dev/ice/ice_dcb.c
1666
ice_add_ieee_app_pri_tlv(tlv, dcbcfg);
sys/dev/ice/ice_dcb.c
1675
ice_add_dscp_up_tlv(tlv, dcbcfg);
sys/dev/ice/ice_dcb.c
1678
ice_add_dscp_enf_tlv(tlv);
sys/dev/ice/ice_dcb.c
1681
ice_add_dscp_tc_bw_tlv(tlv, dcbcfg);
sys/dev/ice/ice_dcb.c
1684
ice_add_dscp_pfc_tlv(tlv, dcbcfg);
sys/dev/ice/ice_dcb.c
1703
struct ice_lldp_org_tlv *tlv;
sys/dev/ice/ice_dcb.c
1706
tlv = (struct ice_lldp_org_tlv *)lldpmib;
sys/dev/ice/ice_dcb.c
1708
ice_add_dcb_tlv(tlv, dcbcfg, tlvid++);
sys/dev/ice/ice_dcb.c
1709
typelen = NTOHS(tlv->typelen);
sys/dev/ice/ice_dcb.c
1719
tlv = (struct ice_lldp_org_tlv *)
sys/dev/ice/ice_dcb.c
1720
((char *)tlv + sizeof(tlv->typelen) + len);
sys/dev/ice/ice_dcb.c
342
ice_parse_ieee_etscfg_tlv(struct ice_lldp_org_tlv *tlv,
sys/dev/ice/ice_dcb.c
346
u8 *buf = tlv->tlvinfo;
sys/dev/ice/ice_dcb.c
374
ice_parse_ieee_etsrec_tlv(struct ice_lldp_org_tlv *tlv,
sys/dev/ice/ice_dcb.c
377
u8 *buf = tlv->tlvinfo;
sys/dev/ice/ice_dcb.c
391
ice_parse_ieee_pfccfg_tlv(struct ice_lldp_org_tlv *tlv,
sys/dev/ice/ice_dcb.c
394
u8 *buf = tlv->tlvinfo;
sys/dev/ice/ice_dcb.c
418
ice_parse_ieee_app_tlv(struct ice_lldp_org_tlv *tlv,
sys/dev/ice/ice_dcb.c
427
typelen = NTOHS(tlv->typelen);
sys/dev/ice/ice_dcb.c
429
buf = tlv->tlvinfo;
sys/dev/ice/ice_dcb.c
434
len -= (sizeof(tlv->ouisubtype) + 1);
sys/dev/ice/ice_dcb.c
475
ice_parse_ieee_tlv(struct ice_lldp_org_tlv *tlv, struct ice_dcbx_cfg *dcbcfg)
sys/dev/ice/ice_dcb.c
480
ouisubtype = NTOHL(tlv->ouisubtype);
sys/dev/ice/ice_dcb.c
485
ice_parse_ieee_etscfg_tlv(tlv, dcbcfg);
sys/dev/ice/ice_dcb.c
488
ice_parse_ieee_etsrec_tlv(tlv, dcbcfg);
sys/dev/ice/ice_dcb.c
491
ice_parse_ieee_pfccfg_tlv(tlv, dcbcfg);
sys/dev/ice/ice_dcb.c
494
ice_parse_ieee_app_tlv(tlv, dcbcfg);
sys/dev/ice/ice_dcb.c
509
ice_parse_cee_pgcfg_tlv(struct ice_cee_feat_tlv *tlv,
sys/dev/ice/ice_dcb.c
513
u8 *buf = tlv->tlvinfo;
sys/dev/ice/ice_dcb.c
519
if (tlv->en_will_err & ICE_CEE_FEAT_TLV_WILLING_M)
sys/dev/ice/ice_dcb.c
568
ice_parse_cee_pfccfg_tlv(struct ice_cee_feat_tlv *tlv,
sys/dev/ice/ice_dcb.c
571
u8 *buf = tlv->tlvinfo;
sys/dev/ice/ice_dcb.c
573
if (tlv->en_will_err & ICE_CEE_FEAT_TLV_WILLING_M)
sys/dev/ice/ice_dcb.c
593
ice_parse_cee_app_tlv(struct ice_cee_feat_tlv *tlv, struct ice_dcbx_cfg *dcbcfg)
sys/dev/ice/ice_dcb.c
599
typelen = NTOHS(tlv->hdr.typelen);
sys/dev/ice/ice_dcb.c
611
app = (struct ice_cee_app_prio *)(tlv->tlvinfo + offset);
sys/dev/ice/ice_dcb.c
647
ice_parse_cee_tlv(struct ice_lldp_org_tlv *tlv, struct ice_dcbx_cfg *dcbcfg)
sys/dev/ice/ice_dcb.c
654
ouisubtype = NTOHL(tlv->ouisubtype);
sys/dev/ice/ice_dcb.c
661
typelen = NTOHS(tlv->typelen);
sys/dev/ice/ice_dcb.c
663
len = sizeof(tlv->typelen) + sizeof(ouisubtype) +
sys/dev/ice/ice_dcb.c
669
sub_tlv = (struct ice_cee_feat_tlv *)((char *)tlv + len);
sys/dev/ice/ice_dcb.c
707
ice_parse_org_tlv(struct ice_lldp_org_tlv *tlv, struct ice_dcbx_cfg *dcbcfg)
sys/dev/ice/ice_dcb.c
712
ouisubtype = NTOHL(tlv->ouisubtype);
sys/dev/ice/ice_dcb.c
716
ice_parse_ieee_tlv(tlv, dcbcfg);
sys/dev/ice/ice_dcb.c
719
ice_parse_cee_tlv(tlv, dcbcfg);
sys/dev/ice/ice_dcb.c
735
struct ice_lldp_org_tlv *tlv;
sys/dev/ice/ice_dcb.c
747
tlv = (struct ice_lldp_org_tlv *)lldpmib;
sys/dev/ice/ice_dcb.c
749
typelen = NTOHS(tlv->typelen);
sys/dev/ice/ice_dcb.c
760
ice_parse_org_tlv(tlv, dcbcfg);
sys/dev/ice/ice_dcb.c
767
tlv = (struct ice_lldp_org_tlv *)
sys/dev/ice/ice_dcb.c
768
((char *)tlv + sizeof(tlv->typelen) + len);
sys/dev/ice/ice_lib.c
150
struct ice_link_default_override_tlv *tlv);
sys/dev/ice/ice_lib.c
9827
ice_print_ldo_tlv(struct ice_softc *sc, struct ice_link_default_override_tlv *tlv)
sys/dev/ice/ice_lib.c
9831
device_printf(dev, "TLV: -options 0x%02x\n", tlv->options);
sys/dev/ice/ice_lib.c
9832
device_printf(dev, " -phy_config 0x%02x\n", tlv->phy_config);
sys/dev/ice/ice_lib.c
9833
device_printf(dev, " -fec_options 0x%02x\n", tlv->fec_options);
sys/dev/ice/ice_lib.c
9835
(unsigned long long)tlv->phy_type_high);
sys/dev/ice/ice_lib.c
9837
(unsigned long long)tlv->phy_type_low);
sys/dev/ice/ice_lib.c
9855
struct ice_link_default_override_tlv tlv = { 0 };
sys/dev/ice/ice_lib.c
9864
status = ice_get_link_default_override(&tlv, pi);
sys/dev/ice/ice_lib.c
9874
ice_print_ldo_tlv(sc, &tlv);
sys/dev/ice/ice_lib.c
9878
(!(tlv.options & ICE_LINK_OVERRIDE_STRICT_MODE)))
sys/dev/ice/ice_lib.c
9895
(tlv.options & ICE_LINK_OVERRIDE_EN))
sys/dev/ice/ice_lib.c
9901
sc->ldo_tlv = tlv;
sys/dev/iwm/if_iwm.c
570
const struct iwm_ucode_tlv *tlv;
sys/dev/iwm/if_iwm.c
624
while (len >= sizeof(*tlv)) {
sys/dev/iwm/if_iwm.c
625
len -= sizeof(*tlv);
sys/dev/iwm/if_iwm.c
626
tlv = (const void *)data;
sys/dev/iwm/if_iwm.c
628
tlv_len = le32toh(tlv->length);
sys/dev/iwm/if_iwm.c
629
tlv_type = le32toh(tlv->type);
sys/dev/iwm/if_iwm.c
630
tlv_data = tlv->data;
sys/dev/iwm/if_iwm.c
640
data += sizeof(*tlv) + roundup2(tlv_len, 4);
sys/dev/iwn/if_iwn.c
8343
const struct iwn_fw_tlv *tlv;
sys/dev/iwn/if_iwn.c
8376
while (ptr + sizeof (*tlv) <= end) {
sys/dev/iwn/if_iwn.c
8377
tlv = (const struct iwn_fw_tlv *)ptr;
sys/dev/iwn/if_iwn.c
8378
len = le32toh(tlv->len);
sys/dev/iwn/if_iwn.c
8380
ptr += sizeof (*tlv);
sys/dev/iwn/if_iwn.c
8388
if (tlv->alt != 0 && tlv->alt != htole16(alt))
sys/dev/iwn/if_iwn.c
8391
switch (le16toh(tlv->type)) {
sys/dev/iwn/if_iwn.c
8450
le16toh(tlv->type));
sys/dev/iwn/if_iwn.c
8454
"TLV type %d not handled\n", le16toh(tlv->type));
sys/dev/iwx/if_iwx.c
1327
struct iwx_ucode_tlv tlv;
sys/dev/iwx/if_iwx.c
1375
while (len >= sizeof(tlv)) {
sys/dev/iwx/if_iwx.c
1379
memcpy(&tlv, data, sizeof(tlv));
sys/dev/iwx/if_iwx.c
1380
tlv_len = le32toh(tlv.length);
sys/dev/iwx/if_iwx.c
1381
tlv_type = le32toh(tlv.type);
sys/dev/iwx/if_iwx.c
1383
len -= sizeof(tlv);
sys/dev/iwx/if_iwx.c
1384
data += sizeof(tlv);
sys/dev/iwx/if_iwx.c
3780
const struct iwx_ucode_tlv *tlv;
sys/dev/iwx/if_iwx.c
3788
while (len >= sizeof(*tlv)) {
sys/dev/iwx/if_iwx.c
3791
len -= sizeof(*tlv);
sys/dev/iwx/if_iwx.c
3792
tlv = (const void *)data;
sys/dev/iwx/if_iwx.c
3794
tlv_len = le32toh(tlv->length);
sys/dev/iwx/if_iwx.c
3795
tlv_type = le32toh(tlv->type);
sys/dev/iwx/if_iwx.c
3804
data += sizeof(*tlv);
sys/dev/iwx/if_iwx.c
3889
const struct iwx_ucode_tlv *tlv;
sys/dev/iwx/if_iwx.c
3891
while (len >= sizeof(*tlv)) {
sys/dev/iwx/if_iwx.c
3894
len -= sizeof(*tlv);
sys/dev/iwx/if_iwx.c
3895
tlv = (const void *)data;
sys/dev/iwx/if_iwx.c
3897
tlv_len = le32toh(tlv->length);
sys/dev/iwx/if_iwx.c
3898
tlv_type = le32toh(tlv->type);
sys/dev/iwx/if_iwx.c
3905
(const void *)(data + sizeof(*tlv));
sys/dev/iwx/if_iwx.c
3907
data += sizeof(*tlv) + roundup(tlv_len, 4);
sys/dev/iwx/if_iwx.c
3916
data += sizeof(*tlv) + roundup(tlv_len, 4);
sys/dev/ixl/i40e_dcb.c
1021
static void i40e_add_ieee_ets_tlv(struct i40e_lldp_org_tlv *tlv,
sys/dev/ixl/i40e_dcb.c
1027
u8 *buf = tlv->tlvinfo;
sys/dev/ixl/i40e_dcb.c
1032
tlv->typelength = I40E_HTONS(typelength);
sys/dev/ixl/i40e_dcb.c
1036
tlv->ouisubtype = I40E_HTONL(ouisubtype);
sys/dev/ixl/i40e_dcb.c
1096
static void i40e_add_ieee_etsrec_tlv(struct i40e_lldp_org_tlv *tlv,
sys/dev/ixl/i40e_dcb.c
1102
u8 *buf = tlv->tlvinfo;
sys/dev/ixl/i40e_dcb.c
1107
tlv->typelength = I40E_HTONS(typelength);
sys/dev/ixl/i40e_dcb.c
1111
tlv->ouisubtype = I40E_HTONL(ouisubtype);
sys/dev/ixl/i40e_dcb.c
1160
static void i40e_add_ieee_pfc_tlv(struct i40e_lldp_org_tlv *tlv,
sys/dev/ixl/i40e_dcb.c
1163
u8 *buf = tlv->tlvinfo;
sys/dev/ixl/i40e_dcb.c
1169
tlv->typelength = I40E_HTONS(typelength);
sys/dev/ixl/i40e_dcb.c
1173
tlv->ouisubtype = I40E_HTONL(ouisubtype);
sys/dev/ixl/i40e_dcb.c
1198
static void i40e_add_ieee_app_pri_tlv(struct i40e_lldp_org_tlv *tlv,
sys/dev/ixl/i40e_dcb.c
1203
u8 *buf = tlv->tlvinfo;
sys/dev/ixl/i40e_dcb.c
1211
tlv->ouisubtype = I40E_HTONL(ouisubtype);
sys/dev/ixl/i40e_dcb.c
1236
length = sizeof(tlv->ouisubtype) + 1 + (i*3);
sys/dev/ixl/i40e_dcb.c
1239
tlv->typelength = I40E_HTONS(typelength);
sys/dev/ixl/i40e_dcb.c
1248
static void i40e_add_dcb_tlv(struct i40e_lldp_org_tlv *tlv,
sys/dev/ixl/i40e_dcb.c
1254
i40e_add_ieee_ets_tlv(tlv, dcbcfg);
sys/dev/ixl/i40e_dcb.c
1257
i40e_add_ieee_etsrec_tlv(tlv, dcbcfg);
sys/dev/ixl/i40e_dcb.c
1260
i40e_add_ieee_pfc_tlv(tlv, dcbcfg);
sys/dev/ixl/i40e_dcb.c
1263
i40e_add_ieee_app_pri_tlv(tlv, dcbcfg);
sys/dev/ixl/i40e_dcb.c
1317
struct i40e_lldp_org_tlv *tlv;
sys/dev/ixl/i40e_dcb.c
1320
tlv = (struct i40e_lldp_org_tlv *)lldpmib;
sys/dev/ixl/i40e_dcb.c
1322
i40e_add_dcb_tlv(tlv, dcbcfg, tlvid++);
sys/dev/ixl/i40e_dcb.c
1323
typelength = I40E_NTOHS(tlv->typelength);
sys/dev/ixl/i40e_dcb.c
1334
tlv = (struct i40e_lldp_org_tlv *)((char *)tlv +
sys/dev/ixl/i40e_dcb.c
1335
sizeof(tlv->typelength) + length);
sys/dev/ixl/i40e_dcb.c
137
static void i40e_parse_ieee_etsrec_tlv(struct i40e_lldp_org_tlv *tlv,
sys/dev/ixl/i40e_dcb.c
140
u8 *buf = tlv->tlvinfo;
sys/dev/ixl/i40e_dcb.c
192
static void i40e_parse_ieee_pfccfg_tlv(struct i40e_lldp_org_tlv *tlv,
sys/dev/ixl/i40e_dcb.c
195
u8 *buf = tlv->tlvinfo;
sys/dev/ixl/i40e_dcb.c
219
static void i40e_parse_ieee_app_tlv(struct i40e_lldp_org_tlv *tlv,
sys/dev/ixl/i40e_dcb.c
228
typelength = I40E_NTOHS(tlv->typelength);
sys/dev/ixl/i40e_dcb.c
231
buf = tlv->tlvinfo;
sys/dev/ixl/i40e_dcb.c
234
length -= (sizeof(tlv->ouisubtype) + 1);
sys/dev/ixl/i40e_dcb.c
274
static void i40e_parse_ieee_tlv(struct i40e_lldp_org_tlv *tlv,
sys/dev/ixl/i40e_dcb.c
280
ouisubtype = I40E_NTOHL(tlv->ouisubtype);
sys/dev/ixl/i40e_dcb.c
285
i40e_parse_ieee_etscfg_tlv(tlv, dcbcfg);
sys/dev/ixl/i40e_dcb.c
288
i40e_parse_ieee_etsrec_tlv(tlv, dcbcfg);
sys/dev/ixl/i40e_dcb.c
291
i40e_parse_ieee_pfccfg_tlv(tlv, dcbcfg);
sys/dev/ixl/i40e_dcb.c
294
i40e_parse_ieee_app_tlv(tlv, dcbcfg);
sys/dev/ixl/i40e_dcb.c
308
static void i40e_parse_cee_pgcfg_tlv(struct i40e_cee_feat_tlv *tlv,
sys/dev/ixl/i40e_dcb.c
312
u8 *buf = tlv->tlvinfo;
sys/dev/ixl/i40e_dcb.c
319
if (tlv->en_will_err & I40E_CEE_FEAT_TLV_WILLING_MASK)
sys/dev/ixl/i40e_dcb.c
367
static void i40e_parse_cee_pfccfg_tlv(struct i40e_cee_feat_tlv *tlv,
sys/dev/ixl/i40e_dcb.c
370
u8 *buf = tlv->tlvinfo;
sys/dev/ixl/i40e_dcb.c
372
if (tlv->en_will_err & I40E_CEE_FEAT_TLV_WILLING_MASK)
sys/dev/ixl/i40e_dcb.c
391
static void i40e_parse_cee_app_tlv(struct i40e_cee_feat_tlv *tlv,
sys/dev/ixl/i40e_dcb.c
398
typelength = I40E_NTOHS(tlv->hdr.typelen);
sys/dev/ixl/i40e_dcb.c
411
app = (struct i40e_cee_app_prio *)(tlv->tlvinfo + offset);
sys/dev/ixl/i40e_dcb.c
446
static void i40e_parse_cee_tlv(struct i40e_lldp_org_tlv *tlv,
sys/dev/ixl/i40e_dcb.c
454
ouisubtype = I40E_NTOHL(tlv->ouisubtype);
sys/dev/ixl/i40e_dcb.c
461
typelength = I40E_NTOHS(tlv->typelength);
sys/dev/ixl/i40e_dcb.c
464
len = sizeof(tlv->typelength) + sizeof(ouisubtype) +
sys/dev/ixl/i40e_dcb.c
470
sub_tlv = (struct i40e_cee_feat_tlv *)((char *)tlv + len);
sys/dev/ixl/i40e_dcb.c
507
static void i40e_parse_org_tlv(struct i40e_lldp_org_tlv *tlv,
sys/dev/ixl/i40e_dcb.c
513
ouisubtype = I40E_NTOHL(tlv->ouisubtype);
sys/dev/ixl/i40e_dcb.c
518
i40e_parse_ieee_tlv(tlv, dcbcfg);
sys/dev/ixl/i40e_dcb.c
521
i40e_parse_cee_tlv(tlv, dcbcfg);
sys/dev/ixl/i40e_dcb.c
539
struct i40e_lldp_org_tlv *tlv;
sys/dev/ixl/i40e_dcb.c
550
tlv = (struct i40e_lldp_org_tlv *)lldpmib;
sys/dev/ixl/i40e_dcb.c
552
typelength = I40E_NTOHS(tlv->typelength);
sys/dev/ixl/i40e_dcb.c
565
i40e_parse_org_tlv(tlv, dcbcfg);
sys/dev/ixl/i40e_dcb.c
572
tlv = (struct i40e_lldp_org_tlv *)((char *)tlv +
sys/dev/ixl/i40e_dcb.c
573
sizeof(tlv->typelength) +
sys/dev/ixl/i40e_dcb.c
66
static void i40e_parse_ieee_etscfg_tlv(struct i40e_lldp_org_tlv *tlv,
sys/dev/ixl/i40e_dcb.c
70
u8 *buf = tlv->tlvinfo;
sys/dev/mlxfw/mlxfw_mfa2.c
126
const struct mlxfw_mfa2_tlv *tlv;
sys/dev/mlxfw/mlxfw_mfa2.c
130
mlxfw_mfa2_tlv_multi_foreach(mfa2_file, tlv, idx, multi) {
sys/dev/mlxfw/mlxfw_mfa2.c
131
if (!tlv) {
sys/dev/mlxfw/mlxfw_mfa2.c
147
const struct mlxfw_mfa2_tlv *tlv;
sys/dev/mlxfw/mlxfw_mfa2.c
164
tlv = mlxfw_mfa2_tlv_multi_child_find(mfa2_file, multi,
sys/dev/mlxfw/mlxfw_mfa2.c
166
if (!tlv) {
sys/dev/mlxfw/mlxfw_mfa2.c
171
psid = mlxfw_mfa2_tlv_psid_get(mfa2_file, tlv);
sys/dev/mlxfw/mlxfw_mfa2.c
178
psid->psid, be16_to_cpu(tlv->len), true);
sys/dev/mlxfw/mlxfw_mfa2.c
193
tlv = mlxfw_mfa2_tlv_multi_child_find(mfa2_file, multi,
sys/dev/mlxfw/mlxfw_mfa2.c
196
if (!tlv)
sys/dev/mlxfw/mlxfw_mfa2.c
199
cptr = mlxfw_mfa2_tlv_component_ptr_get(mfa2_file, tlv);
sys/dev/mlxfw/mlxfw_mfa2.c
219
const struct mlxfw_mfa2_tlv *tlv;
sys/dev/mlxfw/mlxfw_mfa2.c
233
tlv = mlxfw_mfa2_tlv_multi_child(mfa2_file, multi);
sys/dev/mlxfw/mlxfw_mfa2.c
234
if (!tlv) {
sys/dev/mlxfw/mlxfw_mfa2.c
239
cdesc = mlxfw_mfa2_tlv_component_descriptor_get(mfa2_file, tlv);
sys/dev/mlxfw/mlxfw_mfa2.c
255
const struct mlxfw_mfa2_tlv *tlv;
sys/dev/mlxfw/mlxfw_mfa2.c
261
mlxfw_mfa2_tlv_foreach(mfa2_file, tlv, idx, mfa2_file->first_dev,
sys/dev/mlxfw/mlxfw_mfa2.c
263
if (!tlv) {
sys/dev/mlxfw/mlxfw_mfa2.c
269
if (!mlxfw_mfa2_file_dev_validate(mfa2_file, tlv, idx))
sys/dev/mlxfw/mlxfw_mfa2.c
274
mlxfw_mfa2_tlv_foreach(mfa2_file, tlv, idx, mfa2_file->first_component,
sys/dev/mlxfw/mlxfw_mfa2.c
276
if (!tlv) {
sys/dev/mlxfw/mlxfw_mfa2.c
282
if (!mlxfw_mfa2_file_comp_validate(mfa2_file, tlv, idx))
sys/dev/mlxfw/mlxfw_mfa2.c
364
const struct mlxfw_mfa2_tlv *tlv;
sys/dev/mlxfw/mlxfw_mfa2.c
378
tlv = mlxfw_mfa2_tlv_multi_child_find(mfa2_file, dev_multi,
sys/dev/mlxfw/mlxfw_mfa2.c
380
if (!tlv)
sys/dev/mlxfw/mlxfw_mfa2.c
382
if (be16_to_cpu(tlv->len) != psid_size)
sys/dev/mlxfw/mlxfw_mfa2.c
385
tlv_psid = mlxfw_mfa2_tlv_psid_get(mfa2_file, tlv);
sys/dev/mlxfw/mlxfw_mfa2_tlv.h
56
const struct mlxfw_mfa2_tlv *tlv, u8 payload_type,
sys/dev/mlxfw/mlxfw_mfa2_tlv.h
61
tlv_top = (const u8 *) tlv + be16_to_cpu(tlv->len) - 1;
sys/dev/mlxfw/mlxfw_mfa2_tlv.h
62
if (!mlxfw_mfa2_valid_ptr(mfa2_file, (const u8 *) tlv) ||
sys/dev/mlxfw/mlxfw_mfa2_tlv.h
65
if (tlv->type != payload_type)
sys/dev/mlxfw/mlxfw_mfa2_tlv.h
67
if (varsize && (be16_to_cpu(tlv->len) < payload_size))
sys/dev/mlxfw/mlxfw_mfa2_tlv.h
69
if (!varsize && (be16_to_cpu(tlv->len) != payload_size))
sys/dev/mlxfw/mlxfw_mfa2_tlv.h
72
return tlv->data;
sys/dev/mlxfw/mlxfw_mfa2_tlv.h
78
const struct mlxfw_mfa2_tlv *tlv) \
sys/dev/mlxfw/mlxfw_mfa2_tlv.h
80
return mlxfw_mfa2_tlv_payload_get(mfa2_file, tlv, \
sys/dev/mlxfw/mlxfw_mfa2_tlv.h
88
const struct mlxfw_mfa2_tlv *tlv) \
sys/dev/mlxfw/mlxfw_mfa2_tlv.h
90
return mlxfw_mfa2_tlv_payload_get(mfa2_file, tlv, \
sys/dev/mlxfw/mlxfw_mfa2_tlv_multi.c
109
const struct mlxfw_mfa2_tlv *tlv;
sys/dev/mlxfw/mlxfw_mfa2_tlv_multi.c
113
mlxfw_mfa2_tlv_multi_foreach(mfa2_file, tlv, idx, multi) {
sys/dev/mlxfw/mlxfw_mfa2_tlv_multi.c
114
if (!tlv) {
sys/dev/mlxfw/mlxfw_mfa2_tlv_multi.c
119
if (tlv->type == type)
sys/dev/mlxfw/mlxfw_mfa2_tlv_multi.c
36
#define MLXFW_MFA2_TLV_TOTAL_SIZE(tlv) \
sys/dev/mlxfw/mlxfw_mfa2_tlv_multi.c
37
NLA_ALIGN(sizeof(*(tlv)) + be16_to_cpu((tlv)->len))
sys/dev/mlxfw/mlxfw_mfa2_tlv_multi.c
51
const struct mlxfw_mfa2_tlv *tlv)
sys/dev/mlxfw/mlxfw_mfa2_tlv_multi.c
57
tlv_len = MLXFW_MFA2_TLV_TOTAL_SIZE(tlv);
sys/dev/mlxfw/mlxfw_mfa2_tlv_multi.c
59
if (tlv->type == MLXFW_MFA2_TLV_MULTI_PART) {
sys/dev/mlxfw/mlxfw_mfa2_tlv_multi.c
60
multi = mlxfw_mfa2_tlv_multi_get(mfa2_file, tlv);
sys/dev/mlxfw/mlxfw_mfa2_tlv_multi.c
66
next = (const u8 *) tlv + tlv_len;
sys/dev/mlxfw/mlxfw_mfa2_tlv_multi.c
74
const struct mlxfw_mfa2_tlv *tlv;
sys/dev/mlxfw/mlxfw_mfa2_tlv_multi.c
77
mlxfw_mfa2_tlv_foreach(mfa2_file, tlv, idx, from_tlv, count)
sys/dev/mlxfw/mlxfw_mfa2_tlv_multi.c
78
if (!tlv)
sys/dev/mlxfw/mlxfw_mfa2_tlv_multi.c
80
return tlv;
sys/dev/mlxfw/mlxfw_mfa2_tlv_multi.c
88
const struct mlxfw_mfa2_tlv *tlv;
sys/dev/mlxfw/mlxfw_mfa2_tlv_multi.c
92
mlxfw_mfa2_tlv_multi_foreach(mfa2_file, tlv, idx, multi) {
sys/dev/mlxfw/mlxfw_mfa2_tlv_multi.c
93
if (!tlv) {
sys/dev/mlxfw/mlxfw_mfa2_tlv_multi.c
97
if (tlv->type == type)
sys/dev/mlxfw/mlxfw_mfa2_tlv_multi.c
99
return tlv;
sys/dev/mlxfw/mlxfw_mfa2_tlv_multi.h
45
const struct mlxfw_mfa2_tlv *tlv);
sys/dev/mlxfw/mlxfw_mfa2_tlv_multi.h
61
#define mlxfw_mfa2_tlv_foreach(mfa2_file, tlv, idx, from_tlv, count) \
sys/dev/mlxfw/mlxfw_mfa2_tlv_multi.h
62
for (idx = 0, tlv = from_tlv; idx < (count); \
sys/dev/mlxfw/mlxfw_mfa2_tlv_multi.h
63
idx++, tlv = mlxfw_mfa2_tlv_next(mfa2_file, tlv))
sys/dev/mlxfw/mlxfw_mfa2_tlv_multi.h
65
#define mlxfw_mfa2_tlv_multi_foreach(mfa2_file, tlv, idx, multi) \
sys/dev/mlxfw/mlxfw_mfa2_tlv_multi.h
66
mlxfw_mfa2_tlv_foreach(mfa2_file, tlv, idx, \
sys/dev/qlnx/qlnxe/ecore_mng_tlv.c
1244
struct ecore_drv_tlv_hdr tlv;
sys/dev/qlnx/qlnxe/ecore_mng_tlv.c
1258
OSAL_MEMSET(&tlv, 0, sizeof(tlv));
sys/dev/qlnx/qlnxe/ecore_mng_tlv.c
1260
offset += sizeof(tlv) + sizeof(u32) * tlv.tlv_length) {
sys/dev/qlnx/qlnxe/ecore_mng_tlv.c
1262
tlv.tlv_type = TLV_TYPE(p_tlv);
sys/dev/qlnx/qlnxe/ecore_mng_tlv.c
1263
tlv.tlv_length = TLV_LENGTH(p_tlv);
sys/dev/qlnx/qlnxe/ecore_mng_tlv.c
1264
tlv.tlv_flags = TLV_FLAGS(p_tlv);
sys/dev/qlnx/qlnxe/ecore_mng_tlv.c
1267
"Type %d length = %d flags = 0x%x\n", tlv.tlv_type,
sys/dev/qlnx/qlnxe/ecore_mng_tlv.c
1268
tlv.tlv_length, tlv.tlv_flags);
sys/dev/qlnx/qlnxe/ecore_mng_tlv.c
1271
len = ecore_mfw_get_gen_tlv_value(&tlv, &p_tlv_data->generic, &buffer);
sys/dev/qlnx/qlnxe/ecore_mng_tlv.c
1273
len = ecore_mfw_get_eth_tlv_value(&tlv, &p_tlv_data->eth, &buffer);
sys/dev/qlnx/qlnxe/ecore_mng_tlv.c
1275
len = ecore_mfw_get_fcoe_tlv_value(&tlv, &p_tlv_data->fcoe, &buffer);
sys/dev/qlnx/qlnxe/ecore_mng_tlv.c
1277
len = ecore_mfw_get_iscsi_tlv_value(&tlv, &p_tlv_data->iscsi, &buffer);
sys/dev/qlnx/qlnxe/ecore_mng_tlv.c
1280
OSAL_WARN(len > 4 * tlv.tlv_length,
sys/dev/qlnx/qlnxe/ecore_mng_tlv.c
1282
len, 4 * tlv.tlv_length);
sys/dev/qlnx/qlnxe/ecore_mng_tlv.c
1283
len = OSAL_MIN_T(int, len, 4 * tlv.tlv_length);
sys/dev/qlnx/qlnxe/ecore_mng_tlv.c
1284
tlv.tlv_flags |= ECORE_DRV_TLV_FLAGS_CHANGED;
sys/dev/qlnx/qlnxe/ecore_mng_tlv.c
1285
TLV_FLAGS(p_tlv) = tlv.tlv_flags;
sys/dev/qlnx/qlnxe/ecore_mng_tlv.c
1286
OSAL_MEMCPY(p_mfw_buf + offset + sizeof(tlv),
sys/dev/qlnx/qlnxe/ecore_mng_tlv.c
1303
struct ecore_drv_tlv_hdr tlv;
sys/dev/qlnx/qlnxe/ecore_mng_tlv.c
1339
offset += sizeof(tlv) + sizeof(u32) * tlv.tlv_length) {
sys/dev/qlnx/qlnxe/ecore_mng_tlv.c
1341
tlv.tlv_type = TLV_TYPE(p_temp);
sys/dev/qlnx/qlnxe/ecore_mng_tlv.c
1342
tlv.tlv_length = TLV_LENGTH(p_temp);
sys/dev/qlnx/qlnxe/ecore_mng_tlv.c
1343
if (ecore_mfw_get_tlv_group(tlv.tlv_type, &tlv_group))
sys/dev/qlnx/qlnxe/ecore_mng_tlv.c
1345
"Un recognized TLV %d\n", tlv.tlv_type);
sys/dev/qlnx/qlnxe/ecore_sriov.c
1304
u16 tlv)
sys/dev/qlnx/qlnxe/ecore_sriov.c
1313
if (ecore_iov_tlv_supported(tlv))
sys/dev/qlnx/qlnxe/ecore_sriov.c
1318
ecore_channel_tlvs_string[tlv]);
sys/dev/qlnx/qlnxe/ecore_sriov.c
1323
vf->abs_vf_id, tlv);
sys/dev/qlnx/qlnxe/ecore_sriov.c
1376
struct channel_tlv *tlv;
sys/dev/qlnx/qlnxe/ecore_sriov.c
1380
tlv = (struct channel_tlv *)((u8 *)tlvs_list + total_length);
sys/dev/qlnx/qlnxe/ecore_sriov.c
1383
if (ecore_iov_tlv_supported(tlv->type))
sys/dev/qlnx/qlnxe/ecore_sriov.c
1386
i, ecore_channel_tlvs_string[tlv->type],
sys/dev/qlnx/qlnxe/ecore_sriov.c
1387
tlv->length);
sys/dev/qlnx/qlnxe/ecore_sriov.c
1391
i, tlv->type, tlv->length);
sys/dev/qlnx/qlnxe/ecore_sriov.c
1393
if (tlv->type == CHANNEL_TLV_LIST_END)
sys/dev/qlnx/qlnxe/ecore_sriov.c
1397
if (!tlv->length) {
sys/dev/qlnx/qlnxe/ecore_sriov.c
1402
total_length += tlv->length;
sys/dev/qlnx/qlnxe/ecore_sriov.c
2949
u16 tlv = CHANNEL_TLV_VPORT_UPDATE_ACTIVATE;
sys/dev/qlnx/qlnxe/ecore_sriov.c
2953
tlv);
sys/dev/qlnx/qlnxe/ecore_sriov.c
2971
u16 tlv = CHANNEL_TLV_VPORT_UPDATE_VLAN_STRIP;
sys/dev/qlnx/qlnxe/ecore_sriov.c
2975
tlv);
sys/dev/qlnx/qlnxe/ecore_sriov.c
2996
u16 tlv = CHANNEL_TLV_VPORT_UPDATE_TX_SWITCH;
sys/dev/qlnx/qlnxe/ecore_sriov.c
3000
tlv);
sys/dev/qlnx/qlnxe/ecore_sriov.c
3023
u16 tlv = CHANNEL_TLV_VPORT_UPDATE_MCAST;
sys/dev/qlnx/qlnxe/ecore_sriov.c
3027
tlv);
sys/dev/qlnx/qlnxe/ecore_sriov.c
3044
u16 tlv = CHANNEL_TLV_VPORT_UPDATE_ACCEPT_PARAM;
sys/dev/qlnx/qlnxe/ecore_sriov.c
3048
tlv);
sys/dev/qlnx/qlnxe/ecore_sriov.c
3066
u16 tlv = CHANNEL_TLV_VPORT_UPDATE_ACCEPT_ANY_VLAN;
sys/dev/qlnx/qlnxe/ecore_sriov.c
3070
tlv);
sys/dev/qlnx/qlnxe/ecore_sriov.c
3089
u16 tlv = CHANNEL_TLV_VPORT_UPDATE_RSS;
sys/dev/qlnx/qlnxe/ecore_sriov.c
3096
tlv);
sys/dev/qlnx/qlnxe/ecore_sriov.c
3155
u16 tlv = CHANNEL_TLV_VPORT_UPDATE_SGE_TPA;
sys/dev/qlnx/qlnxe/ecore_sriov.c
3159
p_mbx->req_virt, tlv);
sys/dev/qlnx/qlnxe/ecore_vf.c
1194
u16 tlv)
sys/dev/qlnx/qlnxe/ecore_vf.c
1196
switch (tlv) {
sys/dev/qlnx/qlnxe/ecore_vf.c
1223
tlv, ecore_channel_tlvs_string[tlv]);
sys/dev/qlnx/qlnxe/ecore_vf.c
1234
u16 tlv;
sys/dev/qlnx/qlnxe/ecore_vf.c
1236
for (tlv = CHANNEL_TLV_VPORT_UPDATE_ACTIVATE;
sys/dev/qlnx/qlnxe/ecore_vf.c
1237
tlv < CHANNEL_TLV_VPORT_UPDATE_MAX;
sys/dev/qlnx/qlnxe/ecore_vf.c
1238
tlv++) {
sys/dev/qlnx/qlnxe/ecore_vf.c
1239
if (!ecore_vf_handle_vp_update_is_needed(p_hwfn, p_data, tlv))
sys/dev/qlnx/qlnxe/ecore_vf.c
1244
tlv);
sys/dev/qlnx/qlnxe/ecore_vf.c
1248
tlv, ecore_channel_tlvs_string[tlv],
sys/dev/qlnx/qlnxe/ecore_vf.c
1262
u16 size, tlv;
sys/dev/qlnx/qlnxe/ecore_vf.c
1313
tlv = CHANNEL_TLV_VPORT_UPDATE_TX_SWITCH;
sys/dev/qlnx/qlnxe/ecore_vf.c
1315
tlv, size);
sys/dev/qlnx/qlnxe/ecore_vf.c
1340
tlv = CHANNEL_TLV_VPORT_UPDATE_ACCEPT_PARAM;
sys/dev/qlnx/qlnxe/ecore_vf.c
1342
p_accept_tlv = ecore_add_tlv(&p_iov->offset, tlv, size);
sys/dev/qlnx/qlnxe/ecore_vf.c
1402
tlv = CHANNEL_TLV_VPORT_UPDATE_ACCEPT_ANY_VLAN;
sys/dev/qlnx/qlnxe/ecore_vf.c
1403
p_any_vlan_tlv = ecore_add_tlv(&p_iov->offset, tlv, size);
sys/net/ieee8023ad_lacp.c
2092
tlv_check(const void *p, size_t size, const struct tlvhdr *tlv,
sys/net/ieee8023ad_lacp.c
2096
if ((const char *)tlv - (const char *)p + sizeof(*tlv) > size) {
sys/net/ieee8023ad_lacp.c
2099
if ((check_type && tlv->tlv_type != tmpl->tmpl_type) ||
sys/net/ieee8023ad_lacp.c
2100
tlv->tlv_length != tmpl->tmpl_length) {
sys/net/ieee8023ad_lacp.c
2106
tlv = (const struct tlvhdr *)
sys/net/ieee8023ad_lacp.c
2107
((const char *)tlv + tlv->tlv_length);
sys/net/ieee8023ad_lacp.h
109
#define TLV_SET(tlv, type, length) \
sys/net/ieee8023ad_lacp.h
111
(tlv)->tlv_type = (type); \
sys/net/ieee8023ad_lacp.h
112
(tlv)->tlv_length = sizeof(*tlv) + (length); \
sys/netinet/sctp_asconf.c
106
uint8_t *tlv;
sys/netinet/sctp_asconf.c
138
tlv = (uint8_t *)(error + 1);
sys/netinet/sctp_asconf.c
139
memcpy(tlv, error_tlv, tlv_length);
sys/netinet/sctp_asconf.c
141
tlv[tlv_length + i] = 0;
sys/netpfil/ipfw/ip_fw_sockopt.c
389
ipfw_obj_tlv *tlv;
sys/netpfil/ipfw/ip_fw_sockopt.c
392
tlv = (ipfw_obj_tlv *)data;
sys/netpfil/ipfw/ip_fw_sockopt.c
393
tlv->type = IPFW_TLV_RULE_ENT;
sys/netpfil/ipfw/ip_fw_sockopt.c
394
tlv->length = len;
sys/netpfil/ipfw/ip_fw_sockopt.c
398
cntr = (struct ip_fw_bcounter *)(tlv + 1);
sys/netpfil/ipfw/ip_fw_sockopt.c
402
urule = (struct ip_fw_rule *)(tlv + 1);
usr.sbin/ctld/isns.cc
73
struct isns_tlv tlv;
usr.sbin/ctld/isns.cc
77
getspace(sizeof(tlv) + vlen);
usr.sbin/ctld/isns.cc
78
be32enc(&tlv.it_tag, tag);
usr.sbin/ctld/isns.cc
79
be32enc(&tlv.it_length, vlen);
usr.sbin/ctld/isns.cc
80
append(&tlv, sizeof(tlv));