Home
last modified time | relevance | path

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

12

/Linux-v4.19/fs/nfsd/
Dblocklayout.c228 size_t bufflen = 252, maxlen = 65532, len, id_len; in nfsd4_scsi_identify_device() local
280 for (d = buf + 4; d < buf + len; d += id_len + 4) { in nfsd4_scsi_identify_device()
281 id_len = d[3]; in nfsd4_scsi_identify_device()
293 if (id_len != 8 && id_len != 12 && id_len != 16) in nfsd4_scsi_identify_device()
299 b->scsi.designator_len = id_len; in nfsd4_scsi_identify_device()
300 memcpy(b->scsi.designator, d + 4, id_len); in nfsd4_scsi_identify_device()
307 if (id_len == 16) in nfsd4_scsi_identify_device()
/Linux-v4.19/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-v4.19/drivers/net/ethernet/netronome/nfp/
Dnfp_port.c77 attr->u.ppid.id_len = nfp_cpp_serial(port->app->cpp, &serial); in nfp_port_attr_get()
78 memcpy(&attr->u.ppid.id, serial, attr->u.ppid.id_len); in nfp_port_attr_get()
/Linux-v4.19/drivers/scsi/
Dscsi_lib.c3432 int scsi_vpd_lun_id(struct scsi_device *sdev, char *id, size_t id_len) in scsi_vpd_lun_id() argument
3462 if (id_len < 21) { in scsi_vpd_lun_id()
3467 memset(id, 0, id_len); in scsi_vpd_lun_id()
3483 if (cur_id_size + 4 > id_len) in scsi_vpd_lun_id()
3484 cur_id_size = id_len - 4; in scsi_vpd_lun_id()
3487 id_size = snprintf(id, id_len, "t10.%*pE", in scsi_vpd_lun_id()
3503 id_size = snprintf(id, id_len, in scsi_vpd_lun_id()
3508 id_size = snprintf(id, id_len, in scsi_vpd_lun_id()
3513 id_size = snprintf(id, id_len, in scsi_vpd_lun_id()
3531 id_size = snprintf(id, id_len, in scsi_vpd_lun_id()
[all …]
/Linux-v4.19/fs/nfs/
Dnfs4idmap.c343 int id_len; in nfs_idmap_lookup_name() local
346 id_len = nfs_map_numeric_to_string(id, id_str, sizeof(id_str)); 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-v4.19/drivers/mtd/spi-nor/
Dspi-nor.c53 u8 id_len; member
922 .id_len = (!(_jedec_id) ? 0 : (3 + ((_ext_id) ? 2 : 0))), \
937 .id_len = 6, \
956 .id_len = 3, \
1283 if (info->id_len) { in spi_nor_read_id()
1284 if (!memcmp(info->id, id, info->id_len)) in spi_nor_read_id()
2832 if (name && info->id_len) { in spi_nor_scan()
/Linux-v4.19/drivers/net/netdevsim/
Dnetdev.c158 attr->u.ppid.id_len = sizeof(ns->sdev->switch_id); in nsim_port_attr_get()
160 attr->u.ppid.id_len); in nsim_port_attr_get()
/Linux-v4.19/net/ipv4/
Dipmr.c922 memcpy(v->dev_parent_id.id, attr.u.ppid.id, attr.u.ppid.id_len); in vif_add()
923 v->dev_parent_id.id_len = attr.u.ppid.id_len; in vif_add()
925 v->dev_parent_id.id_len = 0; in vif_add()
1807 if (!out_vif->dev_parent_id.id_len || !in_vif->dev_parent_id.id_len) in ipmr_forward_offloaded()
/Linux-v4.19/drivers/net/ethernet/cavium/liquidio/
Dlio_vf_rep.c468 attr->u.ppid.id_len = ETH_ALEN; in lio_vf_rep_attr_get()
/Linux-v4.19/security/apparmor/
Dapparmorfs.c1595 int len, id_len; in __aafs_profile_mkdir() local
1597 id_len = snprintf(NULL, 0, ".%ld", profile->ns->uniq_id); in __aafs_profile_mkdir()
1599 profile->dirname = kmalloc(len + id_len + 1, GFP_KERNEL); in __aafs_profile_mkdir()
/Linux-v4.19/include/linux/
Dnetdevice.h790 unsigned char id_len; member
796 return a->id_len == b->id_len && in netdev_phys_item_id_same()
797 memcmp(a->id, b->id, a->id_len) == 0; in netdev_phys_item_id_same()
/Linux-v4.19/drivers/net/ethernet/mellanox/mlxsw/
Dswitchx2.c912 attr->u.ppid.id_len = sizeof(mlxsw_sx->hw_id); in mlxsw_sx_port_attr_get()
913 memcpy(&attr->u.ppid.id, &mlxsw_sx->hw_id, attr->u.ppid.id_len); in mlxsw_sx_port_attr_get()
Dspectrum_switchdev.c466 attr->u.ppid.id_len = sizeof(mlxsw_sp->base_mac); in mlxsw_sp_port_attr_get()
468 attr->u.ppid.id_len); in mlxsw_sp_port_attr_get()
/Linux-v4.19/net/dsa/
Dslave.c374 attr->u.ppid.id_len = sizeof(dst->index); in dsa_slave_port_attr_get()
375 memcpy(&attr->u.ppid.id, &dst->index, attr->u.ppid.id_len); in dsa_slave_port_attr_get()
/Linux-v4.19/net/core/
Dnet-sysfs.c464 ret = sprintf(buf, "%*phN\n", ppid.id_len, ppid.id); in phys_port_id_show()
512 ret = sprintf(buf, "%*phN\n", attr.u.ppid.id_len, in phys_switch_id_show()
Drtnetlink.c1117 if (nla_put(skb, IFLA_PHYS_PORT_ID, ppid.id_len, ppid.id)) in rtnl_phys_port_id_fill()
1157 if (nla_put(skb, IFLA_PHYS_SWITCH_ID, attr.u.ppid.id_len, in rtnl_phys_switch_id_fill()
/Linux-v4.19/drivers/net/ethernet/mscc/
Docelot.c1015 attr->u.ppid.id_len = sizeof(ocelot->base_mac); in ocelot_port_attr_get()
1017 attr->u.ppid.id_len); in ocelot_port_attr_get()
/Linux-v4.19/include/linux/mtd/
Drawnand.h1513 uint16_t id_len; member
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/
Den_rep.c205 attr->u.ppid.id_len = ETH_ALEN; in mlx5e_attr_get()
/Linux-v4.19/drivers/staging/fsl-dpaa2/ethsw/
Dethsw.c638 attr->u.ppid.id_len = 1; in swdev_port_attr_get()
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb4/
Dt4_hw.c2755 unsigned int vpdr_len, kw_offset, id_len; in t4_get_raw_vpd_params() local
2786 id_len = pci_vpd_lrdt_size(vpd); in t4_get_raw_vpd_params()
2787 if (id_len > ID_LEN) in t4_get_raw_vpd_params()
2788 id_len = ID_LEN; in t4_get_raw_vpd_params()
2832 memcpy(p->id, vpd + PCI_VPD_LRDT_TAG_SIZE, id_len); in t4_get_raw_vpd_params()
/Linux-v4.19/drivers/net/ethernet/rocker/
Drocker_main.c2056 attr->u.ppid.id_len = sizeof(rocker->hw.id); in rocker_port_attr_get()
2057 memcpy(&attr->u.ppid.id, &rocker->hw.id, attr->u.ppid.id_len); in rocker_port_attr_get()
/Linux-v4.19/drivers/net/ethernet/emulex/benet/
Dbe_main.c5258 int i, id_len = CNTL_SERIAL_NUM_WORDS * CNTL_SERIAL_NUM_WORD_SZ + 1; in be_get_phys_port_id() local
5262 if (MAX_PHYS_ITEM_ID_LEN < id_len) in be_get_phys_port_id()
5271 ppid->id_len = id_len; in be_get_phys_port_id()
/Linux-v4.19/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_main.c467 ppid->id_len = sizeof(ahw->phys_port_id); in qlcnic_get_phys_port_id()
468 memcpy(ppid->id, ahw->phys_port_id, ppid->id_len); in qlcnic_get_phys_port_id()
/Linux-v4.19/drivers/mtd/nand/raw/
Dnand_base.c5547 return type->id_len; in is_full_id_nand()
5556 if (!strncmp(type->id, id_data, type->id_len)) { in find_full_id_nand()

12