Home
last modified time | relevance | path

Searched refs:id_len (Results 1 – 23 of 23) sorted by relevance

/linux-4.1.27/net/switchdev/
Dswitchdev.c288 if (prev_psid.id_len != psid.id_len) in netdev_switch_get_dev_by_nhs()
290 if (memcmp(prev_psid.id, psid.id, psid.id_len)) in netdev_switch_get_dev_by_nhs()
/linux-4.1.27/drivers/target/
Dtarget_core_spc.c192 u16 len = 0, id_len; in spc_emulate_evpd_83() local
246 id_len = 8; /* For Vendor field */ in spc_emulate_evpd_83()
256 id_len += sprintf(&buf[off+12], "%s:%s", prod, in spc_emulate_evpd_83()
264 id_len++; in spc_emulate_evpd_83()
266 buf[off+3] = id_len; in spc_emulate_evpd_83()
268 len += (id_len + 4); in spc_emulate_evpd_83()
269 off += (id_len + 4); in spc_emulate_evpd_83()
/linux-4.1.27/drivers/mtd/spi-nor/
Dspi-nor.c38 u8 id_len; member
480 .id_len = (!(_jedec_id) ? 0 : (3 + ((_ext_id) ? 2 : 0))), \
497 .id_len = 6, \
707 if (info->id_len) { in spi_nor_read_id()
708 if (!memcmp(info->id, id, info->id_len)) in spi_nor_read_id()
1020 if (name && info->id_len) { in spi_nor_scan()
/linux-4.1.27/net/ipv4/netfilter/
Dnf_nat_snmp_basic.c585 unsigned int id_len; member
601 unsigned int id_len; member
819 (*obj)->id_len = idlen; in snmp_object_decode()
937 if (!asn1_oid_decode(ctx, end, &trap->id, &trap->id_len)) in snmp_trap_decode()
1149 for (i = 0; i < obj->id_len; i++) { in snmp_parse_mangle()
/linux-4.1.27/fs/nfs/
Dnfs4idmap.c343 int id_len; in nfs_idmap_lookup_name() local
346 id_len = snprintf(id_str, sizeof(id_str), "%u", id); in nfs_idmap_lookup_name()
347 ret = nfs_idmap_get_key(id_str, id_len, type, buf, buflen, idmap); in nfs_idmap_lookup_name()
Dnfs4proc.c6859 args.id_len = nfs4_init_uniform_client_string(clp, args.id, in _nfs4_proc_exchange_id()
6863 args.id_len, args.id); in _nfs4_proc_exchange_id()
Dnfs4xdr.c1750 encode_string(xdr, args->id_len, args->id); in encode_exchange_id()
/linux-4.1.27/security/apparmor/
Dapparmorfs.c419 int len, id_len; in __aa_fs_profile_mkdir() local
421 id_len = snprintf(NULL, 0, ".%ld", profile->ns->uniq_id); in __aa_fs_profile_mkdir()
423 profile->dirname = kmalloc(len + id_len + 1, GFP_KERNEL); in __aa_fs_profile_mkdir()
/linux-4.1.27/drivers/mtd/nand/
Dnand_base.c3411 int extid, id_len; in nand_decode_ext_id() local
3417 id_len = nand_id_len(id_data, 8); in nand_decode_ext_id()
3428 if (id_len == 6 && id_data[0] == NAND_MFR_SAMSUNG && in nand_decode_ext_id()
3463 } else if (id_len == 6 && id_data[0] == NAND_MFR_HYNIX && in nand_decode_ext_id()
3526 if (id_len >= 6 && id_data[0] == NAND_MFR_TOSHIBA && in nand_decode_ext_id()
3608 return type->id_len; in is_full_id_nand()
3614 if (!strncmp(type->id, id_data, type->id_len)) { in find_full_id_nand()
/linux-4.1.27/net/dsa/
Dslave.c391 psid->id_len = sizeof(ds->index); in dsa_slave_parent_id_get()
392 memcpy(&psid->id, &ds->index, psid->id_len); in dsa_slave_parent_id_get()
/linux-4.1.27/include/linux/mtd/
Dnand.h814 uint16_t id_len; member
/linux-4.1.27/net/core/
Dnet-sysfs.c421 ret = sprintf(buf, "%*phN\n", ppid.id_len, ppid.id); in phys_port_id_show()
465 ret = sprintf(buf, "%*phN\n", ppid.id_len, ppid.id); in phys_switch_id_show()
Drtnetlink.c980 if (nla_put(skb, IFLA_PHYS_PORT_ID, ppid.id_len, ppid.id)) in rtnl_phys_port_id_fill()
1016 if (nla_put(skb, IFLA_PHYS_SWITCH_ID, psid.id_len, psid.id)) in rtnl_phys_switch_id_fill()
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/
Dt4_hw.c1389 unsigned int vpdr_len, kw_offset, id_len; in get_vpd_params() local
1417 id_len = pci_vpd_lrdt_size(vpd); in get_vpd_params()
1418 if (id_len > ID_LEN) in get_vpd_params()
1419 id_len = ID_LEN; in get_vpd_params()
1462 memcpy(p->id, vpd + PCI_VPD_LRDT_TAG_SIZE, id_len); in get_vpd_params()
/linux-4.1.27/include/linux/
Dnfs_xdr.h1149 unsigned int id_len; member
Dnetdevice.h766 unsigned char id_len; member
/linux-4.1.27/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_main.c470 ppid->id_len = sizeof(ahw->phys_port_id); in qlcnic_get_phys_port_id()
471 memcpy(ppid->id, ahw->phys_port_id, ppid->id_len); in qlcnic_get_phys_port_id()
/linux-4.1.27/drivers/net/ethernet/rocker/
Drocker.c4234 psid->id_len = sizeof(rocker->hw.id); in rocker_port_swdev_parent_id_get()
4235 memcpy(&psid->id, &rocker->hw.id, psid->id_len); in rocker_port_swdev_parent_id_get()
/linux-4.1.27/drivers/scsi/csiostor/
Dcsio_hw.c245 u8 id_len[2]; member
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
Den_netdev.c2303 ppid->id_len = sizeof(phys_port_id); in mlx4_en_get_phys_port_id()
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb3/
Dt3_hw.c575 u8 id_len[2]; member
/linux-4.1.27/drivers/net/ethernet/intel/i40e/
Di40e_main.c7924 ppid->id_len = min_t(int, sizeof(hw->mac.port_addr), sizeof(ppid->id)); in i40e_get_phys_port_id()
7925 memcpy(ppid->id, hw->mac.port_addr, ppid->id_len); in i40e_get_phys_port_id()
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_main.c12564 ppid->id_len = sizeof(bp->phys_port_id); in bnx2x_get_phys_port_id()
12565 memcpy(ppid->id, bp->phys_port_id, ppid->id_len); in bnx2x_get_phys_port_id()