Home
last modified time | relevance | path

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

1234

/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Ddevlink_port.c13 ppid->id_len = sizeof(parent_id); in mlx5_esw_get_port_parent_id()
48 memcpy(attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_dl_port_alloc()
49 attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_dl_port_alloc()
52 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_dl_port_alloc()
53 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_dl_port_alloc()
56 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_dl_port_alloc()
57 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_dl_port_alloc()
/OK3568_Linux_fs/kernel/fs/nfsd/
H A 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()
/OK3568_Linux_fs/kernel/drivers/mtd/spi-nor/
H A Dcore.h263 u8 id_len; member
328 .id_len = (!(_jedec_id) ? 0 : (3 + ((_ext_id) ? 2 : 0))), \
343 .id_len = 6, \
362 .id_len = 3, \
/OK3568_Linux_fs/kernel/drivers/net/ethernet/marvell/prestera/
H A Dprestera_devlink.c78 attrs.switch_id.id_len = sizeof(sw->id); in prestera_devlink_port_register()
79 memcpy(attrs.switch_id.id, &sw->id, attrs.switch_id.id_len); in prestera_devlink_port_register()
/OK3568_Linux_fs/kernel/crypto/
H A Dsm2.c262 const unsigned char *id, size_t id_len, in sm2_compute_z_digest() argument
271 if (id_len > (USHRT_MAX / 8) || !ec->Q) in sm2_compute_z_digest()
274 bits_len = (uint16_t)(id_len * 8); in sm2_compute_z_digest()
283 crypto_sm3_update(desc, id, id_len); in sm2_compute_z_digest()
/OK3568_Linux_fs/kernel/drivers/scsi/
H A Dscsi_lib.c3039 int scsi_vpd_lun_id(struct scsi_device *sdev, char *id, size_t id_len) in scsi_vpd_lun_id() argument
3055 if (id_len < 21) { in scsi_vpd_lun_id()
3060 memset(id, 0, id_len); in scsi_vpd_lun_id()
3075 if (cur_id_size + 4 > id_len) in scsi_vpd_lun_id()
3076 cur_id_size = id_len - 4; in scsi_vpd_lun_id()
3078 id_size = snprintf(id, id_len, "t10.%*pE", in scsi_vpd_lun_id()
3088 id_size = snprintf(id, id_len, in scsi_vpd_lun_id()
3093 id_size = snprintf(id, id_len, in scsi_vpd_lun_id()
3098 id_size = snprintf(id, id_len, in scsi_vpd_lun_id()
3113 id_size = snprintf(id, id_len, in scsi_vpd_lun_id()
[all …]
/OK3568_Linux_fs/kernel/drivers/target/
H A 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()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/netronome/nfp/
H A 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()
H A Dnfp_devlink.c373 attrs.switch_id.id_len = serial_len; in nfp_devlink_port_register()
/OK3568_Linux_fs/kernel/include/crypto/
H A Dsm2.h22 const unsigned char *id, size_t id_len,
/OK3568_Linux_fs/u-boot/drivers/mtd/spi/
H A Dspi_flash_ids.c25 .id_len = (!(_jedec_id) ? 0 : (3 + ((_ext_id) ? 2 : 0))), \
40 .id_len = 6, \
H A Dsf_internal.h30 u8 id_len; member
H A Dspi-nor-tiny.c371 if (info->id_len) { in spi_nor_read_id()
372 if (!memcmp(info->id, id, info->id_len)) in spi_nor_read_id()
H A Dspi-nor-ids.c32 .id_len = (!(_jedec_id) ? 0 : (3 + ((_ext_id) ? 2 : 0))), \
48 .id_len = 6, \
H A Dspi_flash.c1083 if (info->id_len) { in spi_flash_read_id()
1084 if (!memcmp(info->id, id, info->id_len)) in spi_flash_read_id()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/ssv6xxx/smac/
H A Dinit.c789 u32 *ptr, id_len, regval, temp[0x8]; in ssv6xxx_init_mac() local
791 u32 *ptr, id_len, regval; in ssv6xxx_init_mac() local
866 SMAC_REG_READ(sh, ADR_TRX_ID_THRESHOLD, &id_len); in ssv6xxx_init_mac()
867 id_len = (id_len&0xffff0000 ) | in ssv6xxx_init_mac()
870 SMAC_REG_WRITE(sh, ADR_TRX_ID_THRESHOLD, id_len); in ssv6xxx_init_mac()
871 SMAC_REG_READ(sh, ADR_ID_LEN_THREADSHOLD1, &id_len); in ssv6xxx_init_mac()
872 id_len = (id_len&0x0f )| in ssv6xxx_init_mac()
875 SMAC_REG_WRITE(sh, ADR_ID_LEN_THREADSHOLD1, id_len); in ssv6xxx_init_mac()
/OK3568_Linux_fs/kernel/drivers/net/netdevsim/
H A Ddev.c925 memcpy(attrs.switch_id.id, nsim_dev->switch_id.id, nsim_dev->switch_id.id_len); in __nsim_dev_port_add()
926 attrs.switch_id.id_len = nsim_dev->switch_id.id_len; in __nsim_dev_port_add()
1065 nsim_dev->switch_id.id_len = sizeof(nsim_dev->switch_id.id); in nsim_dev_probe()
1066 get_random_bytes(nsim_dev->switch_id.id, nsim_dev->switch_id.id_len); in nsim_dev_probe()
/OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-devtools/libubox/libubox/
H A D0001-blobmsg-fix-array-out-of-bounds-GCC-10-warning.patch32 attr->id_len |= be32_to_cpu(BLOB_ATTR_EXTENDED);
/OK3568_Linux_fs/kernel/fs/nfs/
H A Dnfs4idmap.c354 int id_len; in nfs_idmap_lookup_name() local
357 id_len = nfs_map_numeric_to_string(id, id_str, sizeof(id_str)); in nfs_idmap_lookup_name()
358 ret = nfs_idmap_get_key(id_str, id_len, type, buf, buflen, idmap); in nfs_idmap_lookup_name()
/OK3568_Linux_fs/kernel/net/wireless/
H A Dscan.c218 u8 id_len, ext_id_len, i, loop_len, id; in cfg80211_is_element_inherited() local
234 id_len = non_inherit_elem->data[1]; in cfg80211_is_element_inherited()
235 if (non_inherit_elem->datalen < 3 + id_len) in cfg80211_is_element_inherited()
238 ext_id_len = non_inherit_elem->data[2 + id_len]; in cfg80211_is_element_inherited()
239 if (non_inherit_elem->datalen < 3 + id_len + ext_id_len) in cfg80211_is_element_inherited()
246 list = &non_inherit_elem->data[3 + id_len]; in cfg80211_is_element_inherited()
249 if (!id_len) in cfg80211_is_element_inherited()
251 loop_len = id_len; in cfg80211_is_element_inherited()
/OK3568_Linux_fs/kernel/drivers/of/
H A Dbase.c2271 u32 id_len = be32_to_cpup(map + 3); in of_map_id() local
2280 if (masked_id < id_base || masked_id >= id_base + id_len) in of_map_id()
2302 id_len, id, masked_id - id_base + out_base); in of_map_id()
/OK3568_Linux_fs/kernel/net/ipv4/
H A Dipmr.c889 memcpy(v->dev_parent_id.id, ppid.id, ppid.id_len); in vif_add()
890 v->dev_parent_id.id_len = ppid.id_len; in vif_add()
892 v->dev_parent_id.id_len = 0; in vif_add()
1800 if (!out_vif->dev_parent_id.id_len || !in_vif->dev_parent_id.id_len) in ipmr_forward_offloaded()
/OK3568_Linux_fs/kernel/drivers/net/wireless/quantenna/qtnfmac/
H A Dcore.c208 ppid->id_len = sizeof(bus->hw_id); in qtnf_netdev_port_parent_id()
209 memcpy(&ppid->id, bus->hw_id, ppid->id_len); in qtnf_netdev_port_parent_id()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mscc/
H A Docelot_net.c613 ppid->id_len = sizeof(ocelot->base_mac); in ocelot_get_port_parent_id()
614 memcpy(&ppid->id, &ocelot->base_mac, ppid->id_len); in ocelot_get_port_parent_id()
/OK3568_Linux_fs/u-boot/drivers/mtd/nand/raw/
H A Dnand_base.c4165 int extid, id_len; in nand_decode_ext_id() local
4171 id_len = nand_id_len(id_data, 8); in nand_decode_ext_id()
4182 if (id_len == 6 && id_data[0] == NAND_MFR_SAMSUNG && in nand_decode_ext_id()
4217 } else if (id_len == 6 && id_data[0] == NAND_MFR_HYNIX && in nand_decode_ext_id()
4280 if (id_len >= 6 && id_data[0] == NAND_MFR_TOSHIBA && in nand_decode_ext_id()
4362 return type->id_len; in is_full_id_nand()
4368 if (!strncmp((char *)type->id, (char *)id_data, type->id_len)) { in find_full_id_nand()

1234