| /linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
| H A D | devlink_port.c | 10 mlx5_query_nic_sw_system_image_guid(dev, ppid->id, &ppid->id_len); in mlx5_esw_get_port_parent_id() 38 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set() 39 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set() 45 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set() 46 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set() 57 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set() 58 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set() 124 memcpy(dl_port->attrs.switch_id.id, &ppid.id[0], ppid.id_len); in mlx5_esw_offloads_sf_devlink_port_attrs_set() 125 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_offloads_sf_devlink_port_attrs_set()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A D | mapping.c | 29 u8 id_len; member 225 mapping_create_for_id(u8 *id, u8 id_len, u8 type, size_t data_size, u32 max_id, in mapping_create_for_id() argument 232 if (ctx->type == type && ctx->id_len == id_len && in mapping_create_for_id() 233 !memcmp(id, ctx->id, id_len)) { in mapping_create_for_id() 244 memcpy(ctx->id, id, id_len); in mapping_create_for_id() 245 ctx->id_len = id_len; in mapping_create_for_id()
|
| H A D | tc_ct.c | 2293 u8 id_len; in mlx5_tc_ct_init() local 2305 mlx5_query_nic_sw_system_image_guid(dev, mapping_id, &id_len); in mlx5_tc_ct_init() 2307 ct_priv->zone_mapping = mapping_create_for_id(mapping_id, id_len, in mlx5_tc_ct_init() 2315 ct_priv->labels_mapping = mapping_create_for_id(mapping_id, id_len, in mlx5_tc_ct_init()
|
| /linux/net/wireless/ |
| H A D | mesh.c | 121 if (wdev->u.mesh.id_len) in __cfg80211_join_mesh() 217 wdev->u.mesh.id_len = setup->mesh_id_len; in __cfg80211_join_mesh() 253 if (wdev->u.mesh.id_len) in cfg80211_set_mesh_channel() 274 if (!wdev->u.mesh.id_len) in cfg80211_leave_mesh() 280 wdev->u.mesh.id_len = 0; in cfg80211_leave_mesh()
|
| H A D | scan.c | 179 u8 id_len, ext_id_len, i, loop_len, id; in cfg80211_is_element_inherited() local 199 id_len = non_inherit_elem->data[1]; in cfg80211_is_element_inherited() 200 if (non_inherit_elem->datalen < 3 + id_len) in cfg80211_is_element_inherited() 203 ext_id_len = non_inherit_elem->data[2 + id_len]; in cfg80211_is_element_inherited() 204 if (non_inherit_elem->datalen < 3 + id_len + ext_id_len) in cfg80211_is_element_inherited() 211 list = &non_inherit_elem->data[3 + id_len]; in cfg80211_is_element_inherited() 214 if (!id_len) in cfg80211_is_element_inherited() 216 loop_len = id_len; in cfg80211_is_element_inherited()
|
| /linux/drivers/mtd/spi-nor/ |
| H A D | sysfs.c | 39 u8 id_len = nor->info->id ? nor->info->id->len : SPI_NOR_MAX_ID_LEN; in jedec_id_show() local 41 return sysfs_emit(buf, "%*phN\n", id_len, id); in jedec_id_show()
|
| /linux/drivers/net/ethernet/netronome/nfp/ |
| H 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()
|
| H A D | nfp_devlink.c | 357 attrs.switch_id.id_len = serial_len; in nfp_devlink_port_register()
|
| /linux/drivers/scsi/ |
| H A D | scsi_lib.c | 3348 int scsi_vpd_lun_id(struct scsi_device *sdev, char *id, size_t id_len) in scsi_vpd_lun_id() argument 3364 if (id_len < 21) { in scsi_vpd_lun_id() 3369 memset(id, 0, id_len); in scsi_vpd_lun_id() 3385 if (cur_id_size + 4 > id_len) in scsi_vpd_lun_id() 3386 cur_id_size = id_len - 4; in scsi_vpd_lun_id() 3388 id_size = snprintf(id, id_len, "t10.%*pE", in scsi_vpd_lun_id() 3398 id_size = snprintf(id, id_len, in scsi_vpd_lun_id() 3403 id_size = snprintf(id, id_len, in scsi_vpd_lun_id() 3408 id_size = snprintf(id, id_len, in scsi_vpd_lun_id() 3423 id_size = snprintf(id, id_len, in scsi_vpd_lun_id() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
| H A D | int_port.c | 311 u8 id_len; in mlx5e_tc_int_port_init() local 320 mlx5_query_nic_sw_system_image_guid(priv->mdev, mapping_id, &id_len); in mlx5e_tc_int_port_init() 322 int_port_priv->metadata_mapping = mapping_create_for_id(mapping_id, id_len, in mlx5e_tc_int_port_init()
|
| /linux/fs/nfs/ |
| H A D | nfs4idmap.c | 351 int id_len; in nfs_idmap_lookup_name() local 354 id_len = nfs_map_numeric_to_string(id, id_str, sizeof(id_str)); in nfs_idmap_lookup_name() 355 ret = nfs_idmap_get_key(id_str, id_len, type, buf, buflen, idmap); in nfs_idmap_lookup_name()
|
| /linux/drivers/net/ethernet/marvell/prestera/ |
| H A D | prestera_devlink.c | 426 attrs.switch_id.id_len = sizeof(sw->id); in prestera_devlink_port_register() 427 memcpy(attrs.switch_id.id, &sw->id, attrs.switch_id.id_len); in prestera_devlink_port_register()
|
| /linux/drivers/net/netdevsim/ |
| H A D | dev.c | 1481 memcpy(attrs.switch_id.id, nsim_dev->switch_id.id, nsim_dev->switch_id.id_len); in __nsim_dev_port_add() 1482 attrs.switch_id.id_len = nsim_dev->switch_id.id_len; in __nsim_dev_port_add() 1640 nsim_dev->switch_id.id_len = sizeof(nsim_dev->switch_id.id); in nsim_drv_probe() 1641 get_random_bytes(nsim_dev->switch_id.id, nsim_dev->switch_id.id_len); in nsim_drv_probe()
|
| /linux/drivers/net/wireless/quantenna/qtnfmac/ |
| H 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/ |
| H A D | base.c | 2160 u32 id_len = be32_to_cpup(map + 3); in of_map_id() local 2169 if (masked_id < id_base || masked_id >= id_base + id_len) in of_map_id() 2191 id_len, id, masked_id - id_base + out_base); in of_map_id()
|
| /linux/drivers/net/ethernet/mscc/ |
| H A D | ocelot_net.c | 175 int id_len = sizeof(ocelot->base_mac); in ocelot_port_devlink_init() local 180 memcpy(attrs.switch_id.id, &ocelot->base_mac, id_len); in ocelot_port_devlink_init() 181 attrs.switch_id.id_len = id_len; in ocelot_port_devlink_init()
|
| /linux/drivers/net/ethernet/sfc/ |
| H A D | ef100_rep.c | 90 ppid->id_len = sizeof(nic_data->port_id); in efx_ef100_rep_get_port_parent_id()
|
| H A D | ef100_nic.c | 671 ppid->id_len = ETH_ALEN; in efx_ef100_get_phys_port_id() 672 memcpy(ppid->id, nic_data->port_id, ppid->id_len); in efx_ef100_get_phys_port_id()
|
| /linux/drivers/net/ethernet/intel/ixgbe/devlink/ |
| H A D | devlink.c | 524 ppid->id_len = sizeof(id); in ixgbe_devlink_set_switch_id()
|
| /linux/drivers/net/ethernet/microchip/lan966x/ |
| H A D | lan966x_main.c | 453 ppid->id_len = sizeof(lan966x->base_mac); in lan966x_port_get_parent_id() 454 memcpy(&ppid->id, &lan966x->base_mac, ppid->id_len); in lan966x_port_get_parent_id()
|
| /linux/drivers/net/ethernet/intel/ice/devlink/ |
| H A D | port.c | 312 ppid->id_len = sizeof(id); in ice_devlink_set_switch_id()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | en_tc.c | 5243 u8 id_len; in mlx5e_tc_nic_init() local 5259 mlx5_query_nic_sw_system_image_guid(dev, mapping_id, &id_len); in mlx5e_tc_nic_init() 5261 chains_mapping = mapping_create_for_id(mapping_id, id_len, in mlx5e_tc_nic_init() 5404 u8 id_len; in mlx5e_tc_esw_init() local 5422 mlx5_query_nic_sw_system_image_guid(esw->dev, mapping_id, &id_len); in mlx5e_tc_esw_init() 5424 mapping = mapping_create_for_id(mapping_id, id_len, MAPPING_TYPE_TUNNEL, in mlx5e_tc_esw_init() 5437 mapping = mapping_create_for_id(mapping_id, id_len, in mlx5e_tc_esw_init() 5461 memcpy(&attr.key.buf, &ppid.id, ppid.id_len); in mlx5e_tc_esw_init()
|
| /linux/security/apparmor/ |
| H A D | apparmorfs.c | 1733 int len, id_len; in __aafs_profile_mkdir() local 1735 id_len = snprintf(NULL, 0, ".%ld", profile->ns->uniq_id); in __aafs_profile_mkdir() 1737 profile->dirname = kmalloc(len + id_len + 1, GFP_KERNEL); in __aafs_profile_mkdir()
|
| /linux/drivers/net/ethernet/adi/ |
| H A D | adin1110.c | 1027 ppid->id_len = strnlen(priv->mii_bus_name, MAX_PHYS_ITEM_ID_LEN); in adin1110_port_get_port_parent_id() 1028 memcpy(ppid->id, priv->mii_bus_name, ppid->id_len); in adin1110_port_get_port_parent_id()
|
| /linux/include/linux/ |
| H A D | netdevice.h | 859 unsigned char id_len; member 865 return a->id_len == b->id_len && in netdev_phys_item_id_same() 866 memcmp(a->id, b->id, a->id_len) == 0; in netdev_phys_item_id_same()
|