Home
last modified time | relevance | path

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

123

/linux/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/drivers/net/ethernet/mellanox/mlx5/core/en/
A Ddevlink.c13 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 Dcore.h322 u8 id_len; member
401 .id_len = (!(_jedec_id) ? 0 : (3 + ((_ext_id) ? 2 : 0))), \
416 .id_len = 6, \
435 .id_len = 3, \
A Dmicron-st.c75 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 Dspansion.c93 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 Dsysfs.c39 return sysfs_emit(buf, "%*phN\n", nor->info->id_len, nor->info->id); in jedec_id_show()
A Dcore.c1858 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 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 crypto_sm3_update(desc, id, id_len); in sm2_compute_z_digest()
/linux/drivers/scsi/
A Dscsi_lib.c3121 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 Dtarget_core_spc.c225 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 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.c373 attrs.switch_id.id_len = serial_len; in nfp_devlink_port_register()
/linux/include/crypto/
A Dsm2.h22 const unsigned char *id, size_t id_len,
/linux/drivers/net/ethernet/microchip/sparx5/
A Dsparx5_netdev.c176 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 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/drivers/net/ethernet/marvell/prestera/
A Dprestera_devlink.c429 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 Ddev.c1380 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 Dscan.c224 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 Docelot_net.c164 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 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/drivers/of/
A Dbase.c2295 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 Dipmr.c887 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 Def100_nic.c632 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 Dlio_vf_rep.c455 ppid->id_len = ETH_ALEN; in lio_vf_get_port_parent_id()
/linux/security/apparmor/
A Dapparmorfs.c1687 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()

Completed in 82 milliseconds

123