Home
last modified time | relevance | path

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

123

/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/esw/
Ddevlink_port.c13 ppid->id_len = sizeof(parent_id); in mlx5_esw_get_port_parent_id()
47 memcpy(attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_dl_port_alloc()
48 attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_dl_port_alloc()
51 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_dl_port_alloc()
52 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_dl_port_alloc()
55 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_dl_port_alloc()
56 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_dl_port_alloc()
154 memcpy(dl_port->attrs.switch_id.id, &ppid.id[0], ppid.id_len); in mlx5_esw_devlink_sf_port_register()
155 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_devlink_sf_port_register()
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/en/
Ddevlink.c13 ppid->id_len = sizeof(parent_id); in mlx5e_devlink_get_port_parent_id()
30 memcpy(attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5e_devlink_port_register()
31 attrs.switch_id.id_len = ppid.id_len; in mlx5e_devlink_port_register()
/Linux-v5.15/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.15/drivers/mtd/spi-nor/
Dcore.h322 u8 id_len; member
401 .id_len = (!(_jedec_id) ? 0 : (3 + ((_ext_id) ? 2 : 0))), \
416 .id_len = 6, \
435 .id_len = 3, \
Dmicron-st.c75 SPI_MEM_OP_DATA_IN(round_up(nor->info->id_len, 2), in spi_nor_micron_octal_dtr_enable()
85 if (memcmp(buf, nor->info->id, nor->info->id_len)) in spi_nor_micron_octal_dtr_enable()
Dspansion.c93 SPI_MEM_OP_DATA_IN(round_up(nor->info->id_len, 2), in spi_nor_cypress_octal_dtr_enable()
103 if (memcmp(buf, nor->info->id, nor->info->id_len)) in spi_nor_cypress_octal_dtr_enable()
Dsysfs.c39 return sysfs_emit(buf, "%*phN\n", nor->info->id_len, nor->info->id); in jedec_id_show()
Dcore.c1858 if (parts[i].id_len && in spi_nor_search_part_by_id()
1859 !memcmp(parts[i].id, id, parts[i].id_len)) in spi_nor_search_part_by_id()
3031 info->id_len, info->id); in spi_nor_debugfs_init()
3051 if (name && info->id_len) { in spi_nor_get_flash_info()
/Linux-v5.15/crypto/
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()
/Linux-v5.15/include/crypto/
Dsm2.h22 const unsigned char *id, size_t id_len,
/Linux-v5.15/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()
Dnfp_devlink.c373 attrs.switch_id.id_len = serial_len; in nfp_devlink_port_register()
/Linux-v5.15/drivers/target/
Dtarget_core_spc.c225 u16 len = 0, id_len; in spc_emulate_evpd_83() local
263 id_len = 8; /* For Vendor field */ in spc_emulate_evpd_83()
273 id_len += sprintf(&buf[off+12], "%s:%s", prod, in spc_emulate_evpd_83()
284 id_len++; in spc_emulate_evpd_83()
286 buf[off+3] = id_len; in spc_emulate_evpd_83()
288 len += (id_len + 4); in spc_emulate_evpd_83()
289 off += (id_len + 4); in spc_emulate_evpd_83()
/Linux-v5.15/drivers/scsi/
Dscsi_lib.c3052 int scsi_vpd_lun_id(struct scsi_device *sdev, char *id, size_t id_len) in scsi_vpd_lun_id() argument
3068 if (id_len < 21) { in scsi_vpd_lun_id()
3073 memset(id, 0, id_len); in scsi_vpd_lun_id()
3089 if (cur_id_size + 4 > id_len) in scsi_vpd_lun_id()
3090 cur_id_size = id_len - 4; in scsi_vpd_lun_id()
3092 id_size = snprintf(id, id_len, "t10.%*pE", in scsi_vpd_lun_id()
3102 id_size = snprintf(id, id_len, in scsi_vpd_lun_id()
3107 id_size = snprintf(id, id_len, in scsi_vpd_lun_id()
3112 id_size = snprintf(id, id_len, in scsi_vpd_lun_id()
3127 id_size = snprintf(id, id_len, in scsi_vpd_lun_id()
[all …]
/Linux-v5.15/drivers/net/ethernet/microchip/sparx5/
Dsparx5_netdev.c176 ppid->id_len = sizeof(sparx5->base_mac); in sparx5_get_port_parent_id()
177 memcpy(&ppid->id, &sparx5->base_mac, ppid->id_len); in sparx5_get_port_parent_id()
/Linux-v5.15/fs/nfs/
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()
/Linux-v5.15/drivers/net/ethernet/marvell/prestera/
Dprestera_devlink.c453 attrs.switch_id.id_len = sizeof(sw->id); in prestera_devlink_port_register()
454 memcpy(attrs.switch_id.id, &sw->id, attrs.switch_id.id_len); in prestera_devlink_port_register()
/Linux-v5.15/drivers/net/netdevsim/
Ddev.c1300 memcpy(attrs.switch_id.id, nsim_dev->switch_id.id, nsim_dev->switch_id.id_len); in __nsim_dev_port_add()
1301 attrs.switch_id.id_len = nsim_dev->switch_id.id_len; in __nsim_dev_port_add()
1457 nsim_dev->switch_id.id_len = sizeof(nsim_dev->switch_id.id); in nsim_dev_probe()
1458 get_random_bytes(nsim_dev->switch_id.id, nsim_dev->switch_id.id_len); in nsim_dev_probe()
/Linux-v5.15/net/wireless/
Dscan.c224 u8 id_len, ext_id_len, i, loop_len, id; in cfg80211_is_element_inherited() local
240 id_len = non_inherit_elem->data[1]; in cfg80211_is_element_inherited()
241 if (non_inherit_elem->datalen < 3 + id_len) in cfg80211_is_element_inherited()
244 ext_id_len = non_inherit_elem->data[2 + id_len]; in cfg80211_is_element_inherited()
245 if (non_inherit_elem->datalen < 3 + id_len + ext_id_len) in cfg80211_is_element_inherited()
252 list = &non_inherit_elem->data[3 + id_len]; in cfg80211_is_element_inherited()
255 if (!id_len) in cfg80211_is_element_inherited()
257 loop_len = id_len; in cfg80211_is_element_inherited()
/Linux-v5.15/drivers/net/ethernet/mscc/
Docelot_net.c164 int id_len = sizeof(ocelot->base_mac); in ocelot_port_devlink_init() local
169 memcpy(attrs.switch_id.id, &ocelot->base_mac, id_len); in ocelot_port_devlink_init()
170 attrs.switch_id.id_len = id_len; in ocelot_port_devlink_init()
/Linux-v5.15/drivers/net/wireless/quantenna/qtnfmac/
Dcore.c193 ppid->id_len = sizeof(bus->hw_id); in qtnf_netdev_port_parent_id()
194 memcpy(&ppid->id, bus->hw_id, ppid->id_len); in qtnf_netdev_port_parent_id()
/Linux-v5.15/drivers/of/
Dbase.c2273 u32 id_len = be32_to_cpup(map + 3); in of_map_id() local
2282 if (masked_id < id_base || masked_id >= id_base + id_len) in of_map_id()
2304 id_len, id, masked_id - id_base + out_base); in of_map_id()
/Linux-v5.15/net/ipv4/
Dipmr.c887 memcpy(v->dev_parent_id.id, ppid.id, ppid.id_len); in vif_add()
888 v->dev_parent_id.id_len = ppid.id_len; in vif_add()
890 v->dev_parent_id.id_len = 0; in vif_add()
1798 if (!out_vif->dev_parent_id.id_len || !in_vif->dev_parent_id.id_len) in ipmr_forward_offloaded()
/Linux-v5.15/drivers/net/ethernet/sfc/
Def100_nic.c629 ppid->id_len = ETH_ALEN; in efx_ef100_get_phys_port_id()
630 memcpy(ppid->id, nic_data->port_id, ppid->id_len); in efx_ef100_get_phys_port_id()
/Linux-v5.15/drivers/net/ethernet/cavium/liquidio/
Dlio_vf_rep.c455 ppid->id_len = ETH_ALEN; in lio_vf_get_port_parent_id()

123