Home
last modified time | relevance | path

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

123

/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/esw/
A 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-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/en/
A Ddevlink.c38 ppid->id_len = sizeof(parent_id); in mlx5e_devlink_get_port_parent_id()
55 memcpy(attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5e_devlink_port_register()
56 attrs.switch_id.id_len = ppid.id_len; in mlx5e_devlink_port_register()
/linux-6.3-rc2/drivers/mtd/spi-nor/
A Dsysfs.c38 const u8 *id = nor->info->id_len ? nor->info->id : nor->id; in jedec_id_show()
39 u8 id_len = 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()
81 if (attr == &dev_attr_jedec_id.attr && !nor->info->id_len && !nor->id) in spi_nor_sysfs_is_visible()
A Dcore.h494 u8 id_len; member
537 .id_len = !(_jedec_id) ? 0 : (3 + ((_ext_id) ? 2 : 0))
541 .id_len = 6
A Dmicron-st.c81 if (memcmp(buf, nor->info->id, nor->info->id_len)) in micron_st_nor_octal_dtr_en()
117 if (memcmp(buf, nor->info->id, nor->info->id_len)) in micron_st_nor_octal_dtr_dis()
A Dxilinx.c30 .id_len = 3, \
A Dspansion.c89 if (memcmp(buf, nor->info->id, nor->info->id_len)) in cypress_nor_octal_dtr_en()
122 if (memcmp(buf, nor->info->id, nor->info->id_len)) in cypress_nor_octal_dtr_dis()
/linux-6.3-rc2/net/wireless/
A Dmesh.c121 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()
A Dscan.c215 u8 id_len, ext_id_len, i, loop_len, id; in cfg80211_is_element_inherited() local
231 id_len = non_inherit_elem->data[1]; in cfg80211_is_element_inherited()
232 if (non_inherit_elem->datalen < 3 + id_len) in cfg80211_is_element_inherited()
235 ext_id_len = non_inherit_elem->data[2 + id_len]; in cfg80211_is_element_inherited()
236 if (non_inherit_elem->datalen < 3 + id_len + ext_id_len) in cfg80211_is_element_inherited()
243 list = &non_inherit_elem->data[3 + id_len]; in cfg80211_is_element_inherited()
246 if (!id_len) in cfg80211_is_element_inherited()
248 loop_len = id_len; in cfg80211_is_element_inherited()
/linux-6.3-rc2/crypto/
A 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 sm3_update(&sctx, id, id_len); in sm2_compute_z_digest()
/linux-6.3-rc2/include/crypto/
A Dsm2.h22 const unsigned char *id, size_t id_len,
/linux-6.3-rc2/drivers/net/ethernet/netronome/nfp/
A 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()
A Dnfp_devlink.c349 attrs.switch_id.id_len = serial_len; in nfp_devlink_port_register()
/linux-6.3-rc2/drivers/scsi/
A Dscsi_lib.c3168 if (id_len < 21) { in scsi_vpd_lun_id()
3173 memset(id, 0, id_len); in scsi_vpd_lun_id()
3189 if (cur_id_size + 4 > id_len) in scsi_vpd_lun_id()
3190 cur_id_size = id_len - 4; in scsi_vpd_lun_id()
3202 id_size = snprintf(id, id_len, in scsi_vpd_lun_id()
3207 id_size = snprintf(id, id_len, in scsi_vpd_lun_id()
3212 id_size = snprintf(id, id_len, in scsi_vpd_lun_id()
3227 id_size = snprintf(id, id_len, in scsi_vpd_lun_id()
3245 if (d[3] > id_len) { in scsi_vpd_lun_id()
3253 if (cur_id_size >= id_len) in scsi_vpd_lun_id()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/microchip/sparx5/
A Dsparx5_netdev.c207 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.3-rc2/drivers/target/
A Dtarget_core_spc.c231 u16 len = 0, id_len; in spc_emulate_evpd_83() local
269 id_len = 8; /* For Vendor field */ in spc_emulate_evpd_83()
276 id_len += sprintf(&buf[off+12], "%s:%s", prod, in spc_emulate_evpd_83()
286 id_len++; in spc_emulate_evpd_83()
288 buf[off+3] = id_len; in spc_emulate_evpd_83()
290 len += (id_len + 4); in spc_emulate_evpd_83()
291 off += (id_len + 4); in spc_emulate_evpd_83()
/linux-6.3-rc2/fs/nfs/
A 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-6.3-rc2/drivers/net/ethernet/marvell/prestera/
A Dprestera_devlink.c424 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.3-rc2/drivers/net/netdevsim/
A Ddev.c1381 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.3-rc2/drivers/net/wireless/quantenna/qtnfmac/
A 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-6.3-rc2/drivers/net/ethernet/mscc/
A Docelot_net.c175 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.3-rc2/drivers/of/
A Dbase.c2163 u32 id_len = be32_to_cpup(map + 3); in of_map_id() local
2172 if (masked_id < id_base || masked_id >= id_base + id_len) in of_map_id()
2194 id_len, id, masked_id - id_base + out_base); in of_map_id()
/linux-6.3-rc2/net/dsa/
A Ddevlink.c316 attrs.switch_id.id_len = len; in dsa_port_devlink_setup()
/linux-6.3-rc2/net/ipv4/
A Dipmr.c889 memcpy(v->dev_parent_id.id, ppid.id, ppid.id_len); in vif_add()
890 v->dev_parent_id.id_len = ppid.id_len; in vif_add()
892 v->dev_parent_id.id_len = 0; in vif_add()
1809 if (!out_vif->dev_parent_id.id_len || !in_vif->dev_parent_id.id_len) in ipmr_forward_offloaded()
/linux-6.3-rc2/drivers/net/ethernet/sfc/
A Def100_rep.c90 ppid->id_len = sizeof(nic_data->port_id); in efx_ef100_rep_get_port_parent_id()

Completed in 73 milliseconds

123