Home
last modified time | relevance | path

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

12

/Linux-v5.4/fs/nfsd/
Dblocklayout.c227 size_t bufflen = 252, maxlen = 65532, len, id_len; in nfsd4_scsi_identify_device() local
279 for (d = buf + 4; d < buf + len; d += id_len + 4) { in nfsd4_scsi_identify_device()
280 id_len = d[3]; in nfsd4_scsi_identify_device()
292 if (id_len != 8 && id_len != 12 && id_len != 16) in nfsd4_scsi_identify_device()
298 b->scsi.designator_len = id_len; in nfsd4_scsi_identify_device()
299 memcpy(b->scsi.designator, d + 4, id_len); in nfsd4_scsi_identify_device()
306 if (id_len == 16) in nfsd4_scsi_identify_device()
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/
Dnfp_port.c43 ppid->id_len = nfp_cpp_serial(port->app->cpp, &serial); in nfp_port_get_port_parent_id()
44 memcpy(&ppid->id, serial, ppid->id_len); in nfp_port_get_port_parent_id()
/Linux-v5.4/drivers/target/
Dtarget_core_spc.c178 u16 len = 0, id_len; in spc_emulate_evpd_83() local
232 id_len = 8; /* For Vendor field */ in spc_emulate_evpd_83()
242 id_len += sprintf(&buf[off+12], "%s:%s", prod, in spc_emulate_evpd_83()
253 id_len++; in spc_emulate_evpd_83()
255 buf[off+3] = id_len; in spc_emulate_evpd_83()
257 len += (id_len + 4); in spc_emulate_evpd_83()
258 off += (id_len + 4); in spc_emulate_evpd_83()
/Linux-v5.4/drivers/scsi/
Dscsi_lib.c2935 int scsi_vpd_lun_id(struct scsi_device *sdev, char *id, size_t id_len) in scsi_vpd_lun_id() argument
2965 if (id_len < 21) { in scsi_vpd_lun_id()
2970 memset(id, 0, id_len); in scsi_vpd_lun_id()
2986 if (cur_id_size + 4 > id_len) in scsi_vpd_lun_id()
2987 cur_id_size = id_len - 4; in scsi_vpd_lun_id()
2990 id_size = snprintf(id, id_len, "t10.%*pE", in scsi_vpd_lun_id()
3006 id_size = snprintf(id, id_len, in scsi_vpd_lun_id()
3011 id_size = snprintf(id, id_len, in scsi_vpd_lun_id()
3016 id_size = snprintf(id, id_len, in scsi_vpd_lun_id()
3034 id_size = snprintf(id, id_len, in scsi_vpd_lun_id()
[all …]
/Linux-v5.4/fs/nfs/
Dnfs4idmap.c353 int id_len; in nfs_idmap_lookup_name() local
356 id_len = nfs_map_numeric_to_string(id, id_str, sizeof(id_str)); in nfs_idmap_lookup_name()
357 ret = nfs_idmap_get_key(id_str, id_len, type, buf, buflen, idmap); in nfs_idmap_lookup_name()
/Linux-v5.4/drivers/net/netdevsim/
Ddev.c672 nsim_dev->switch_id.id_len = sizeof(nsim_dev->switch_id.id); in nsim_dev_create()
673 get_random_bytes(nsim_dev->switch_id.id, nsim_dev->switch_id.id_len); in nsim_dev_create()
765 nsim_dev->switch_id.id_len); in __nsim_dev_port_add()
/Linux-v5.4/net/wireless/
Dscan.c185 u8 id_len, ext_id_len, i, loop_len, id; in cfg80211_is_element_inherited() local
201 id_len = non_inherit_elem->data[1]; in cfg80211_is_element_inherited()
202 if (non_inherit_elem->datalen < 3 + id_len) in cfg80211_is_element_inherited()
205 ext_id_len = non_inherit_elem->data[2 + id_len]; in cfg80211_is_element_inherited()
206 if (non_inherit_elem->datalen < 3 + id_len + ext_id_len) in cfg80211_is_element_inherited()
213 list = &non_inherit_elem->data[3 + id_len]; in cfg80211_is_element_inherited()
216 if (!id_len) in cfg80211_is_element_inherited()
218 loop_len = id_len; in cfg80211_is_element_inherited()
/Linux-v5.4/drivers/mtd/spi-nor/
Dspi-nor.c188 u8 id_len; member
2043 .id_len = (!(_jedec_id) ? 0 : (3 + ((_ext_id) ? 2 : 0))), \
2058 .id_len = 6, \
2077 .id_len = 3, \
2533 if (info->id_len) { in spi_nor_read_id()
2534 if (!memcmp(info->id, id, info->id_len)) in spi_nor_read_id()
4784 info->id_len, info->id); in spi_nor_debugfs_init()
4804 if (name && info->id_len) { in spi_nor_get_flash_info()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
Den_rep.c404 ppid->id_len = sizeof(parent_id); in mlx5e_rep_get_port_parent_id()
1827 &ppid.id[0], ppid.id_len); in register_devlink_port()
1831 &ppid.id[0], ppid.id_len, in register_devlink_port()
1837 &ppid.id[0], ppid.id_len, in register_devlink_port()
/Linux-v5.4/net/ipv4/
Dipmr.c916 memcpy(v->dev_parent_id.id, ppid.id, ppid.id_len); in vif_add()
917 v->dev_parent_id.id_len = ppid.id_len; in vif_add()
919 v->dev_parent_id.id_len = 0; in vif_add()
1823 if (!out_vif->dev_parent_id.id_len || !in_vif->dev_parent_id.id_len) in ipmr_forward_offloaded()
/Linux-v5.4/drivers/net/ethernet/cavium/liquidio/
Dlio_vf_rep.c455 ppid->id_len = ETH_ALEN; in lio_vf_get_port_parent_id()
/Linux-v5.4/security/apparmor/
Dapparmorfs.c1601 int len, id_len; in __aafs_profile_mkdir() local
1603 id_len = snprintf(NULL, 0, ".%ld", profile->ns->uniq_id); in __aafs_profile_mkdir()
1605 profile->dirname = kmalloc(len + id_len + 1, GFP_KERNEL); in __aafs_profile_mkdir()
/Linux-v5.4/include/linux/mtd/
Drawnand.h1256 uint16_t id_len; member
/Linux-v5.4/net/core/
Dnet-sysfs.c459 ret = sprintf(buf, "%*phN\n", ppid.id_len, ppid.id); in phys_port_id_show()
503 ret = sprintf(buf, "%*phN\n", ppid.id_len, ppid.id); in phys_switch_id_show()
Drtnetlink.c1123 if (nla_put(skb, IFLA_PHYS_PORT_ID, ppid.id_len, ppid.id)) in rtnl_phys_port_id_fill()
1159 if (nla_put(skb, IFLA_PHYS_SWITCH_ID, ppid.id_len, ppid.id)) in rtnl_phys_switch_id_fill()
/Linux-v5.4/include/linux/
Dnetdevice.h822 unsigned char id_len; member
828 return a->id_len == b->id_len && in netdev_phys_item_id_same()
829 memcmp(a->id, b->id, a->id_len) == 0; in netdev_phys_item_id_same()
/Linux-v5.4/net/dsa/
Dslave.c445 ppid->id_len = sizeof(dst->index); in dsa_slave_get_port_parent_id()
446 memcpy(&ppid->id, &dst->index, ppid->id_len); in dsa_slave_get_port_parent_id()
/Linux-v5.4/drivers/net/ethernet/mscc/
Docelot.c978 ppid->id_len = sizeof(ocelot->base_mac); in ocelot_get_port_parent_id()
979 memcpy(&ppid->id, &ocelot->base_mac, ppid->id_len); in ocelot_get_port_parent_id()
/Linux-v5.4/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()
Dcxgb4_main.c2846 ppid->id_len = sizeof(phy_port_id); in cxgb4_mgmt_get_phys_port_id()
2847 memcpy(ppid->id, &phy_port_id, ppid->id_len); in cxgb4_mgmt_get_phys_port_id()
/Linux-v5.4/drivers/net/ethernet/rocker/
Drocker_main.c2043 ppid->id_len = sizeof(rocker->hw.id); in rocker_port_get_port_parent_id()
2044 memcpy(&ppid->id, &rocker->hw.id, ppid->id_len); in rocker_port_get_port_parent_id()
/Linux-v5.4/drivers/net/ethernet/emulex/benet/
Dbe_main.c5263 int i, id_len = CNTL_SERIAL_NUM_WORDS * CNTL_SERIAL_NUM_WORD_SZ + 1; in be_get_phys_port_id() local
5267 if (MAX_PHYS_ITEM_ID_LEN < id_len) in be_get_phys_port_id()
5276 ppid->id_len = id_len; in be_get_phys_port_id()
/Linux-v5.4/drivers/staging/fsl-dpaa2/ethsw/
Dethsw.c533 ppid->id_len = 1; in swdev_get_port_parent_id()
/Linux-v5.4/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_main.c468 ppid->id_len = sizeof(ahw->phys_port_id); in qlcnic_get_phys_port_id()
469 memcpy(ppid->id, ahw->phys_port_id, ppid->id_len); in qlcnic_get_phys_port_id()
/Linux-v5.4/drivers/mtd/nand/raw/
Dnand_base.c4540 return type->id_len; in is_full_id_nand()
4552 if (!strncmp(type->id, id_data, type->id_len)) { in find_full_id_nand()

12