/linux-master/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
H A D | devlink_port.c | 13 ppid->id_len = sizeof(parent_id); 41 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); 42 dl_port->attrs.switch_id.id_len = ppid.id_len; 45 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); 46 dl_port->attrs.switch_id.id_len = ppid.id_len; 50 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); 51 dl_port->attrs.switch_id.id_len = ppid.id_len; [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | devlink.c | 46 ppid->id_len = sizeof(parent_id); 63 memcpy(attrs.switch_id.id, ppid.id, ppid.id_len); 64 attrs.switch_id.id_len = ppid.id_len;
|
/linux-master/net/wireless/ |
H A D | mesh.c | 121 if (wdev->u.mesh.id_len) 214 wdev->u.mesh.id_len = setup->mesh_id_len; 250 if (wdev->u.mesh.id_len) 271 if (!wdev->u.mesh.id_len) 277 wdev->u.mesh.id_len = 0;
|
H A D | scan.c | 179 u8 id_len, ext_id_len, i, loop_len, id; local 199 id_len = non_inherit_elem->data[1]; 200 if (non_inherit_elem->datalen < 3 + id_len) 203 ext_id_len = non_inherit_elem->data[2 + id_len]; 204 if (non_inherit_elem->datalen < 3 + id_len + ext_id_len) 211 list = &non_inherit_elem->data[3 + id_len]; 214 if (!id_len) 216 loop_len = id_len;
|
/linux-master/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_port.c | 43 ppid->id_len = nfp_cpp_serial(port->app->cpp, &serial); 44 memcpy(&ppid->id, serial, ppid->id_len);
|
H A D | nfp_devlink.c | 356 attrs.switch_id.id_len = serial_len;
|
/linux-master/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; local 41 return sysfs_emit(buf, "%*phN\n", id_len, id);
|
/linux-master/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_devlink.c | 192 ppid->id_len = sizeof(id);
|
/linux-master/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_netdev.c | 207 ppid->id_len = sizeof(sparx5->base_mac); 208 memcpy(&ppid->id, &sparx5->base_mac, ppid->id_len);
|
/linux-master/drivers/scsi/ |
H A D | scsi_lib.c | 3250 * @id_len: length of the buffer 3260 int scsi_vpd_lun_id(struct scsi_device *sdev, char *id, size_t id_len) argument 3276 if (id_len < 21) { 3281 memset(id, 0, id_len); 3297 if (cur_id_size + 4 > id_len) 3298 cur_id_size = id_len - 4; 3300 id_size = snprintf(id, id_len, "t10.%*pE", 3310 id_size = snprintf(id, id_len, 3315 id_size = snprintf(id, id_len, 3320 id_size = snprintf(id, id_len, [all...] |
/linux-master/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_devlink.c | 424 attrs.switch_id.id_len = sizeof(sw->id); 425 memcpy(attrs.switch_id.id, &sw->id, attrs.switch_id.id_len);
|
/linux-master/drivers/target/ |
H A D | target_core_spc.c | 230 u16 len = 0, id_len; local 268 id_len = 8; /* For Vendor field */ 271 id_len += sprintf(&buf[off+12], "%s:%s", prod, 281 id_len++; 283 buf[off+3] = id_len; 285 len += (id_len + 4); 286 off += (id_len + 4);
|
/linux-master/fs/nfs/ |
H A D | nfs4idmap.c | 354 int id_len; local 357 id_len = nfs_map_numeric_to_string(id, id_str, sizeof(id_str)); 358 ret = nfs_idmap_get_key(id_str, id_len, type, buf, buflen, idmap);
|
/linux-master/drivers/net/netdevsim/ |
H A D | dev.c | 1378 memcpy(attrs.switch_id.id, nsim_dev->switch_id.id, nsim_dev->switch_id.id_len); 1379 attrs.switch_id.id_len = nsim_dev->switch_id.id_len; 1537 nsim_dev->switch_id.id_len = sizeof(nsim_dev->switch_id.id); 1538 get_random_bytes(nsim_dev->switch_id.id, nsim_dev->switch_id.id_len);
|
/linux-master/drivers/of/ |
H A D | base.c | 2049 u32 id_len = be32_to_cpup(map + 3); local 2058 if (masked_id < id_base || masked_id >= id_base + id_len) 2080 id_len, id, masked_id - id_base + out_base);
|
/linux-master/net/devlink/ |
H A D | port.c | 1290 if (attrs->switch_id.id_len) { 1292 if (WARN_ON(attrs->switch_id.id_len > MAX_PHYS_ITEM_ID_LEN)) 1293 attrs->switch_id.id_len = MAX_PHYS_ITEM_ID_LEN;
|
/linux-master/net/dsa/ |
H A D | devlink.c | 316 attrs.switch_id.id_len = len;
|
/linux-master/drivers/net/ethernet/sfc/ |
H A D | ef100_rep.c | 90 ppid->id_len = sizeof(nic_data->port_id);
|
H A D | ef100_nic.c | 671 ppid->id_len = ETH_ALEN; 672 memcpy(ppid->id, nic_data->port_id, ppid->id_len);
|
/linux-master/drivers/net/ethernet/mscc/ |
H A D | ocelot_net.c | 175 int id_len = sizeof(ocelot->base_mac); local 180 memcpy(attrs.switch_id.id, &ocelot->base_mac, id_len); 181 attrs.switch_id.id_len = id_len;
|
/linux-master/drivers/net/wireless/quantenna/qtnfmac/ |
H A D | core.c | 193 ppid->id_len = sizeof(bus->hw_id); 194 memcpy(&ppid->id, bus->hw_id, ppid->id_len);
|
/linux-master/drivers/net/ethernet/cavium/liquidio/ |
H A D | lio_vf_rep.c | 455 ppid->id_len = ETH_ALEN;
|
/linux-master/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_main.c | 447 ppid->id_len = sizeof(lan966x->base_mac); 448 memcpy(&ppid->id, &lan966x->base_mac, ppid->id_len);
|
/linux-master/net/ipv4/ |
H A D | ipmr.c | 889 memcpy(v->dev_parent_id.id, ppid.id, ppid.id_len); 890 v->dev_parent_id.id_len = ppid.id_len; 892 v->dev_parent_id.id_len = 0; 1824 if (!out_vif->dev_parent_id.id_len || !in_vif->dev_parent_id.id_len)
|
/linux-master/security/apparmor/ |
H A D | apparmorfs.c | 1703 int len, id_len; local 1705 id_len = snprintf(NULL, 0, ".%ld", profile->ns->uniq_id); 1707 profile->dirname = kmalloc(len + id_len + 1, GFP_KERNEL);
|