Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/target/
Dtarget_core_spc.c184 u16 len = 0, id_len; in spc_emulate_evpd_83() local
238 id_len = 8; /* For Vendor field */ in spc_emulate_evpd_83()
248 id_len += sprintf(&buf[off+12], "%s:%s", prod, in spc_emulate_evpd_83()
256 id_len++; in spc_emulate_evpd_83()
258 buf[off+3] = id_len; in spc_emulate_evpd_83()
260 len += (id_len + 4); in spc_emulate_evpd_83()
261 off += (id_len + 4); in spc_emulate_evpd_83()
/linux-4.4.14/drivers/mtd/spi-nor/
Dspi-nor.c51 u8 id_len; member
624 .id_len = (!(_jedec_id) ? 0 : (3 + ((_ext_id) ? 2 : 0))), \
639 .id_len = 6, \
865 if (info->id_len) { in spi_nor_read_id()
866 if (!memcmp(info->id, id, info->id_len)) in spi_nor_read_id()
1130 if (name && info->id_len) { in spi_nor_scan()
/linux-4.4.14/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.4.14/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()
/linux-4.4.14/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.4.14/drivers/net/ethernet/sfc/
Def10_sriov.c742 ppid->id_len = ETH_ALEN; in efx_ef10_sriov_get_phys_port_id()
743 memcpy(ppid->id, nic_data->port_id, ppid->id_len); in efx_ef10_sriov_get_phys_port_id()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_switchdev.c63 attr->u.ppid.id_len = sizeof(mlxsw_sp->base_mac); in mlxsw_sp_port_attr_get()
65 attr->u.ppid.id_len); in mlxsw_sp_port_attr_get()
Dswitchx2.c870 attr->u.ppid.id_len = sizeof(mlxsw_sx->hw_id); in mlxsw_sx_port_attr_get()
871 memcpy(&attr->u.ppid.id, &mlxsw_sx->hw_id, attr->u.ppid.id_len); in mlxsw_sx_port_attr_get()
/linux-4.4.14/drivers/mtd/nand/
Dnand_base.c3553 int extid, id_len; in nand_decode_ext_id() local
3559 id_len = nand_id_len(id_data, 8); in nand_decode_ext_id()
3570 if (id_len == 6 && id_data[0] == NAND_MFR_SAMSUNG && in nand_decode_ext_id()
3605 } else if (id_len == 6 && id_data[0] == NAND_MFR_HYNIX && in nand_decode_ext_id()
3668 if (id_len >= 6 && id_data[0] == NAND_MFR_TOSHIBA && in nand_decode_ext_id()
3750 return type->id_len; in is_full_id_nand()
3756 if (!strncmp(type->id, id_data, type->id_len)) { in find_full_id_nand()
/linux-4.4.14/net/dsa/
Dslave.c570 attr->u.ppid.id_len = sizeof(ds->index); in dsa_slave_port_attr_get()
571 memcpy(&attr->u.ppid.id, &ds->index, attr->u.ppid.id_len); in dsa_slave_port_attr_get()
/linux-4.4.14/include/linux/mtd/
Dnand.h813 uint16_t id_len; member
/linux-4.4.14/include/linux/
Dnetdevice.h768 unsigned char id_len; member
774 return a->id_len == b->id_len && in netdev_phys_item_id_same()
775 memcmp(a->id, b->id, a->id_len) == 0; in netdev_phys_item_id_same()
/linux-4.4.14/net/core/
Dnet-sysfs.c433 ret = sprintf(buf, "%*phN\n", ppid.id_len, ppid.id); in phys_port_id_show()
480 ret = sprintf(buf, "%*phN\n", attr.u.ppid.id_len, in phys_switch_id_show()
Drtnetlink.c1003 if (nla_put(skb, IFLA_PHYS_PORT_ID, ppid.id_len, ppid.id)) in rtnl_phys_port_id_fill()
1042 if (nla_put(skb, IFLA_PHYS_SWITCH_ID, attr.u.ppid.id_len, in rtnl_phys_switch_id_fill()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/
Dt4_hw.c2585 unsigned int vpdr_len, kw_offset, id_len; in t4_get_raw_vpd_params() local
2616 id_len = pci_vpd_lrdt_size(vpd); in t4_get_raw_vpd_params()
2617 if (id_len > ID_LEN) in t4_get_raw_vpd_params()
2618 id_len = ID_LEN; in t4_get_raw_vpd_params()
2662 memcpy(p->id, vpd + PCI_VPD_LRDT_TAG_SIZE, id_len); in t4_get_raw_vpd_params()
/linux-4.4.14/drivers/net/ethernet/emulex/benet/
Dbe_main.c5301 int i, id_len = CNTL_SERIAL_NUM_WORDS * CNTL_SERIAL_NUM_WORD_SZ + 1; in be_get_phys_port_id() local
5305 if (MAX_PHYS_ITEM_ID_LEN < id_len) in be_get_phys_port_id()
5314 ppid->id_len = id_len; in be_get_phys_port_id()
/linux-4.4.14/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_main.c471 ppid->id_len = sizeof(ahw->phys_port_id); in qlcnic_get_phys_port_id()
472 memcpy(ppid->id, ahw->phys_port_id, ppid->id_len); in qlcnic_get_phys_port_id()
/linux-4.4.14/drivers/net/ethernet/rocker/
Drocker.c4336 attr->u.ppid.id_len = sizeof(rocker->hw.id); in rocker_port_attr_get()
4337 memcpy(&attr->u.ppid.id, &rocker->hw.id, attr->u.ppid.id_len); in rocker_port_attr_get()
/linux-4.4.14/drivers/scsi/csiostor/
Dcsio_hw.c245 u8 id_len[2]; member
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
Den_netdev.c2354 ppid->id_len = sizeof(phys_port_id); in mlx4_en_get_phys_port_id()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb3/
Dt3_hw.c575 u8 id_len[2]; member
/linux-4.4.14/drivers/net/ethernet/intel/i40e/
Di40e_main.c8384 ppid->id_len = min_t(int, sizeof(hw->mac.port_addr), sizeof(ppid->id)); in i40e_get_phys_port_id()
8385 memcpy(ppid->id, hw->mac.port_addr, ppid->id_len); in i40e_get_phys_port_id()
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_main.c12802 ppid->id_len = sizeof(bp->phys_port_id); in bnx2x_get_phys_port_id()
12803 memcpy(ppid->id, bp->phys_port_id, ppid->id_len); in bnx2x_get_phys_port_id()