/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
A D | devlink_port.c | 13 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/drivers/net/ethernet/mellanox/mlx5/core/en/ |
A D | devlink.c | 13 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/drivers/mtd/spi-nor/ |
A D | core.h | 322 u8 id_len; member 401 .id_len = (!(_jedec_id) ? 0 : (3 + ((_ext_id) ? 2 : 0))), \ 416 .id_len = 6, \ 435 .id_len = 3, \
|
A D | micron-st.c | 75 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()
|
A D | spansion.c | 93 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()
|
A D | sysfs.c | 39 return sysfs_emit(buf, "%*phN\n", nor->info->id_len, nor->info->id); in jedec_id_show()
|
A D | core.c | 1858 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/crypto/ |
A D | sm2.c | 262 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/drivers/scsi/ |
A D | scsi_lib.c | 3121 if (id_len < 21) { in scsi_vpd_lun_id() 3126 memset(id, 0, id_len); in scsi_vpd_lun_id() 3142 if (cur_id_size + 4 > id_len) in scsi_vpd_lun_id() 3143 cur_id_size = id_len - 4; in scsi_vpd_lun_id() 3155 id_size = snprintf(id, id_len, in scsi_vpd_lun_id() 3160 id_size = snprintf(id, id_len, in scsi_vpd_lun_id() 3165 id_size = snprintf(id, id_len, in scsi_vpd_lun_id() 3180 id_size = snprintf(id, id_len, in scsi_vpd_lun_id() 3198 if (d[3] > id_len) { in scsi_vpd_lun_id() 3206 if (cur_id_size >= id_len) in scsi_vpd_lun_id() [all …]
|
/linux/drivers/target/ |
A D | target_core_spc.c | 225 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/drivers/net/ethernet/netronome/nfp/ |
A 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()
|
A D | nfp_devlink.c | 373 attrs.switch_id.id_len = serial_len; in nfp_devlink_port_register()
|
/linux/include/crypto/ |
A D | sm2.h | 22 const unsigned char *id, size_t id_len,
|
/linux/drivers/net/ethernet/microchip/sparx5/ |
A D | sparx5_netdev.c | 176 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/fs/nfs/ |
A D | nfs4idmap.c | 354 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/drivers/net/ethernet/marvell/prestera/ |
A D | prestera_devlink.c | 429 attrs.switch_id.id_len = sizeof(sw->id); in prestera_devlink_port_register() 430 memcpy(attrs.switch_id.id, &sw->id, attrs.switch_id.id_len); in prestera_devlink_port_register()
|
/linux/drivers/net/netdevsim/ |
A D | dev.c | 1380 memcpy(attrs.switch_id.id, nsim_dev->switch_id.id, nsim_dev->switch_id.id_len); in __nsim_dev_port_add() 1381 attrs.switch_id.id_len = nsim_dev->switch_id.id_len; in __nsim_dev_port_add() 1537 nsim_dev->switch_id.id_len = sizeof(nsim_dev->switch_id.id); in nsim_drv_probe() 1538 get_random_bytes(nsim_dev->switch_id.id, nsim_dev->switch_id.id_len); in nsim_drv_probe()
|
/linux/net/wireless/ |
A D | scan.c | 224 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/drivers/net/ethernet/mscc/ |
A D | ocelot_net.c | 164 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/drivers/net/wireless/quantenna/qtnfmac/ |
A D | core.c | 193 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/drivers/of/ |
A D | base.c | 2295 u32 id_len = be32_to_cpup(map + 3); in of_map_id() local 2304 if (masked_id < id_base || masked_id >= id_base + id_len) in of_map_id() 2326 id_len, id, masked_id - id_base + out_base); in of_map_id()
|
/linux/net/ipv4/ |
A D | ipmr.c | 887 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/drivers/net/ethernet/sfc/ |
A D | ef100_nic.c | 632 ppid->id_len = ETH_ALEN; in efx_ef100_get_phys_port_id() 633 memcpy(ppid->id, nic_data->port_id, ppid->id_len); in efx_ef100_get_phys_port_id()
|
/linux/drivers/net/ethernet/cavium/liquidio/ |
A D | lio_vf_rep.c | 455 ppid->id_len = ETH_ALEN; in lio_vf_get_port_parent_id()
|
/linux/security/apparmor/ |
A D | apparmorfs.c | 1687 int len, id_len; in __aafs_profile_mkdir() local 1689 id_len = snprintf(NULL, 0, ".%ld", profile->ns->uniq_id); in __aafs_profile_mkdir() 1691 profile->dirname = kmalloc(len + id_len + 1, GFP_KERNEL); in __aafs_profile_mkdir()
|