/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
D | devlink_port.c | 13 ppid->id_len = sizeof(parent_id); in mlx5_esw_get_port_parent_id() 41 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set() 42 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() 50 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set() 51 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set() 115 memcpy(dl_port->attrs.switch_id.id, &ppid.id[0], ppid.id_len); in mlx5_esw_offloads_sf_devlink_port_attrs_set() 116 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_offloads_sf_devlink_port_attrs_set()
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | devlink.c | 46 ppid->id_len = sizeof(parent_id); in mlx5e_devlink_get_port_parent_id() 63 memcpy(attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5e_devlink_port_register() 64 attrs.switch_id.id_len = ppid.id_len; in mlx5e_devlink_port_register()
|
/linux-6.12.1/net/wireless/ |
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()
|
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-6.12.1/drivers/mtd/spi-nor/ |
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-6.12.1/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()
|
D | nfp_devlink.c | 357 attrs.switch_id.id_len = serial_len; in nfp_devlink_port_register()
|
/linux-6.12.1/drivers/scsi/ |
D | scsi_lib.c | 3253 int scsi_vpd_lun_id(struct scsi_device *sdev, char *id, size_t id_len) in scsi_vpd_lun_id() argument 3269 if (id_len < 21) { in scsi_vpd_lun_id() 3274 memset(id, 0, id_len); in scsi_vpd_lun_id() 3290 if (cur_id_size + 4 > id_len) in scsi_vpd_lun_id() 3291 cur_id_size = id_len - 4; in scsi_vpd_lun_id() 3293 id_size = snprintf(id, id_len, "t10.%*pE", in scsi_vpd_lun_id() 3303 id_size = snprintf(id, id_len, in scsi_vpd_lun_id() 3308 id_size = snprintf(id, id_len, in scsi_vpd_lun_id() 3313 id_size = snprintf(id, id_len, in scsi_vpd_lun_id() 3328 id_size = snprintf(id, id_len, in scsi_vpd_lun_id() [all …]
|
/linux-6.12.1/drivers/net/ethernet/microchip/sparx5/ |
D | sparx5_netdev.c | 207 ppid->id_len = sizeof(sparx5->base_mac); in sparx5_get_port_parent_id() 208 memcpy(&ppid->id, &sparx5->base_mac, ppid->id_len); in sparx5_get_port_parent_id()
|
/linux-6.12.1/drivers/target/ |
D | target_core_spc.c | 230 u16 len = 0, id_len; in spc_emulate_evpd_83() local 268 id_len = 8; /* For Vendor field */ in spc_emulate_evpd_83() 271 id_len += sprintf(&buf[off+12], "%s:%s", prod, in spc_emulate_evpd_83() 281 id_len++; in spc_emulate_evpd_83() 283 buf[off+3] = id_len; in spc_emulate_evpd_83() 285 len += (id_len + 4); in spc_emulate_evpd_83() 286 off += (id_len + 4); in spc_emulate_evpd_83()
|
/linux-6.12.1/fs/nfs/ |
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-6.12.1/drivers/net/ethernet/marvell/prestera/ |
D | prestera_devlink.c | 424 attrs.switch_id.id_len = sizeof(sw->id); in prestera_devlink_port_register() 425 memcpy(attrs.switch_id.id, &sw->id, attrs.switch_id.id_len); in prestera_devlink_port_register()
|
/linux-6.12.1/drivers/net/ethernet/intel/i40e/ |
D | i40e_devlink.c | 192 ppid->id_len = sizeof(id); in i40e_devlink_set_switch_id()
|
/linux-6.12.1/drivers/net/netdevsim/ |
D | dev.c | 1381 memcpy(attrs.switch_id.id, nsim_dev->switch_id.id, nsim_dev->switch_id.id_len); in __nsim_dev_port_add() 1382 attrs.switch_id.id_len = nsim_dev->switch_id.id_len; in __nsim_dev_port_add() 1540 nsim_dev->switch_id.id_len = sizeof(nsim_dev->switch_id.id); in nsim_drv_probe() 1541 get_random_bytes(nsim_dev->switch_id.id, nsim_dev->switch_id.id_len); in nsim_drv_probe()
|
/linux-6.12.1/drivers/net/ethernet/mscc/ |
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-6.12.1/drivers/net/wireless/quantenna/qtnfmac/ |
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-6.12.1/net/devlink/ |
D | port.c | 1343 if (attrs->switch_id.id_len) { in __devlink_port_attrs_set() 1345 if (WARN_ON(attrs->switch_id.id_len > MAX_PHYS_ITEM_ID_LEN)) in __devlink_port_attrs_set() 1346 attrs->switch_id.id_len = MAX_PHYS_ITEM_ID_LEN; in __devlink_port_attrs_set()
|
/linux-6.12.1/drivers/of/ |
D | base.c | 2031 u32 id_len = be32_to_cpup(map + 3); in of_map_id() local 2040 if (masked_id < id_base || masked_id >= id_base + id_len) in of_map_id() 2062 id_len, id, masked_id - id_base + out_base); in of_map_id()
|
/linux-6.12.1/net/ipv4/ |
D | ipmr.c | 890 memcpy(v->dev_parent_id.id, ppid.id, ppid.id_len); in vif_add() 891 v->dev_parent_id.id_len = ppid.id_len; in vif_add() 893 v->dev_parent_id.id_len = 0; in vif_add() 1825 if (!out_vif->dev_parent_id.id_len || !in_vif->dev_parent_id.id_len) in ipmr_forward_offloaded()
|
/linux-6.12.1/net/dsa/ |
D | devlink.c | 317 attrs.switch_id.id_len = len; in dsa_port_devlink_setup()
|
/linux-6.12.1/drivers/net/ethernet/sfc/ |
D | ef100_rep.c | 90 ppid->id_len = sizeof(nic_data->port_id); in efx_ef100_rep_get_port_parent_id()
|
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-6.12.1/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_main.c | 447 ppid->id_len = sizeof(lan966x->base_mac); in lan966x_port_get_parent_id() 448 memcpy(&ppid->id, &lan966x->base_mac, ppid->id_len); in lan966x_port_get_parent_id()
|
/linux-6.12.1/drivers/net/ethernet/intel/ice/devlink/ |
D | devlink_port.c | 310 ppid->id_len = sizeof(id); in ice_devlink_set_switch_id()
|
/linux-6.12.1/drivers/net/ethernet/cavium/liquidio/ |
D | lio_vf_rep.c | 454 ppid->id_len = ETH_ALEN; in lio_vf_get_port_parent_id()
|