| /Linux-v5.4/fs/nfsd/ |
| D | blocklayout.c | 227 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/ |
| D | nfp_port.c | 43 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/ |
| D | target_core_spc.c | 178 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/ |
| D | scsi_lib.c | 2935 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/ |
| D | nfs4idmap.c | 353 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/ |
| D | dev.c | 672 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/ |
| D | scan.c | 185 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/ |
| D | spi-nor.c | 188 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/ |
| D | en_rep.c | 404 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/ |
| D | ipmr.c | 916 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/ |
| D | lio_vf_rep.c | 455 ppid->id_len = ETH_ALEN; in lio_vf_get_port_parent_id()
|
| /Linux-v5.4/security/apparmor/ |
| D | apparmorfs.c | 1601 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/ |
| D | rawnand.h | 1256 uint16_t id_len; member
|
| /Linux-v5.4/net/core/ |
| D | net-sysfs.c | 459 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()
|
| D | rtnetlink.c | 1123 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/ |
| D | netdevice.h | 822 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/ |
| D | slave.c | 445 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/ |
| D | ocelot.c | 978 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/ |
| D | t4_hw.c | 2755 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()
|
| D | cxgb4_main.c | 2846 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/ |
| D | rocker_main.c | 2043 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/ |
| D | be_main.c | 5263 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/ |
| D | ethsw.c | 533 ppid->id_len = 1; in swdev_get_port_parent_id()
|
| /Linux-v5.4/drivers/net/ethernet/qlogic/qlcnic/ |
| D | qlcnic_main.c | 468 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/ |
| D | nand_base.c | 4540 return type->id_len; in is_full_id_nand() 4552 if (!strncmp(type->id, id_data, type->id_len)) { in find_full_id_nand()
|