Home
last modified time | relevance | path

Searched refs:id_len (Results 1 - 25 of 107) sorted by relevance

12345

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Ddevlink_port.c13 ppid->id_len = sizeof(parent_id); in mlx5_esw_get_port_parent_id()
48 memcpy(attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_dl_port_alloc()
49 attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_dl_port_alloc()
52 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_dl_port_alloc()
53 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_dl_port_alloc()
56 memcpy(dl_port->attrs.switch_id.id, ppid.id, ppid.id_len); in mlx5_esw_dl_port_alloc()
57 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_dl_port_alloc()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Ddevlink_port.c13 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()
[all...]
/kernel/linux/linux-6.6/drivers/mtd/spi-nor/
H 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()
H A Dcore.h445 * @id_len: the number of bytes of ID.
507 u8 id_len; member
552 .id_len = !(_jedec_id) ? 0 : (3 + ((_ext_id) ? 2 : 0))
556 .id_len = 6
H A Dxilinx.c30 .id_len = 3, \
H 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()
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en/
H 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()
/kernel/linux/common_modules/code_sign/
H A Dcode_sign_ext.c99 const char *id_str, uint32_t id_len) in code_sign_set_ownerid()
107 if (!id_str || id_len == 0) in code_sign_set_ownerid()
110 cs_info->ownerid = full_name_hash(cs_salt, id_str, id_len); in code_sign_set_ownerid()
98 code_sign_set_ownerid(struct cs_info *cs_info, uint32_t id_type, const char *id_str, uint32_t id_len) code_sign_set_ownerid() argument
H A Dcode_sign_ext.h50 const char *id_str, uint32_t id_len);
/kernel/linux/linux-5.10/fs/nfsd/
H A Dblocklayout.c227 size_t bufflen = 252, maxlen = 65532, len, id_len; in nfsd4_scsi_identify_device() local
279 for (d = buf + 4; d < buf + len; d += id_len + 4) { in nfsd4_scsi_identify_device()
280 id_len = d[3]; in nfsd4_scsi_identify_device()
292 if (id_len != 8 && id_len != 12 && id_len != 16) in nfsd4_scsi_identify_device()
298 b->scsi.designator_len = id_len; in nfsd4_scsi_identify_device()
299 memcpy(b->scsi.designator, d + 4, id_len); in nfsd4_scsi_identify_device()
306 if (id_len == 16) in nfsd4_scsi_identify_device()
/kernel/linux/linux-6.6/net/wireless/
H 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()
/kernel/linux/linux-5.10/drivers/mtd/spi-nor/
H A Dcore.h263 u8 id_len; member
328 .id_len = (!(_jedec_id) ? 0 : (3 + ((_ext_id) ? 2 : 0))), \
343 .id_len = 6, \
362 .id_len = 3, \
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/prestera/
H A Dprestera_devlink.c78 attrs.switch_id.id_len = sizeof(sw->id); in prestera_devlink_port_register()
79 memcpy(attrs.switch_id.id, &sw->id, attrs.switch_id.id_len); in prestera_devlink_port_register()
/kernel/linux/linux-5.10/include/crypto/
H A Dsm2.h22 const unsigned char *id, size_t id_len,
/kernel/linux/linux-6.6/drivers/net/ethernet/netronome/nfp/
H 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()
/kernel/linux/linux-5.10/drivers/scsi/
H A Dscsi_lib.c3062 * @id_len: length of the buffer
3072 int scsi_vpd_lun_id(struct scsi_device *sdev, char *id, size_t id_len) in scsi_vpd_lun_id() argument
3088 if (id_len < 21) { in scsi_vpd_lun_id()
3093 memset(id, 0, id_len); in scsi_vpd_lun_id()
3108 if (cur_id_size + 4 > id_len) in scsi_vpd_lun_id()
3109 cur_id_size = id_len - 4; in scsi_vpd_lun_id()
3111 id_size = snprintf(id, id_len, "t10.%*pE", in scsi_vpd_lun_id()
3121 id_size = snprintf(id, id_len, in scsi_vpd_lun_id()
3126 id_size = snprintf(id, id_len, in scsi_vpd_lun_id()
3131 id_size = snprintf(id, id_len, in scsi_vpd_lun_id()
[all...]
/kernel/linux/linux-6.6/drivers/scsi/
H A Dscsi_lib.c3152 * @id_len: length of the buffer
3162 int scsi_vpd_lun_id(struct scsi_device *sdev, char *id, size_t id_len) in scsi_vpd_lun_id() argument
3178 if (id_len < 21) { in scsi_vpd_lun_id()
3183 memset(id, 0, id_len); in scsi_vpd_lun_id()
3199 if (cur_id_size + 4 > id_len) in scsi_vpd_lun_id()
3200 cur_id_size = id_len - 4; in scsi_vpd_lun_id()
3202 id_size = snprintf(id, id_len, "t10.%*pE", in scsi_vpd_lun_id()
3212 id_size = snprintf(id, id_len, in scsi_vpd_lun_id()
3217 id_size = snprintf(id, id_len, in scsi_vpd_lun_id()
3222 id_size = snprintf(id, id_len, in scsi_vpd_lun_id()
[all...]
/kernel/linux/linux-5.10/crypto/
H A Dsm2.c262 const unsigned char *id, size_t id_len, in sm2_compute_z_digest()
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()
261 sm2_compute_z_digest(struct crypto_akcipher *tfm, const unsigned char *id, size_t id_len, unsigned char dgst[SM3_DIGEST_SIZE]) sm2_compute_z_digest() argument
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/
H 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()
/kernel/linux/linux-5.10/drivers/target/
H A Dtarget_core_spc.c178 u16 len = 0, id_len; in spc_emulate_evpd_83() local
232 id_len = 8; /* For Vendor field */ in spc_emulate_evpd_83()
242 id_len += sprintf(&buf[off+12], "%s:%s", prod, in spc_emulate_evpd_83()
253 id_len++; in spc_emulate_evpd_83()
255 buf[off+3] = id_len; in spc_emulate_evpd_83()
257 len += (id_len + 4); in spc_emulate_evpd_83()
258 off += (id_len + 4); in spc_emulate_evpd_83()
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/sparx5/
H 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()
/kernel/linux/linux-5.10/fs/nfs/
H 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()
/kernel/linux/linux-6.6/fs/nfs/
H 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()
/kernel/linux/linux-5.10/drivers/net/netdevsim/
H A Ddev.c922 memcpy(attrs.switch_id.id, nsim_dev->switch_id.id, nsim_dev->switch_id.id_len); in __nsim_dev_port_add()
923 attrs.switch_id.id_len = nsim_dev->switch_id.id_len; in __nsim_dev_port_add()
1062 nsim_dev->switch_id.id_len = sizeof(nsim_dev->switch_id.id); in nsim_dev_probe()
1063 get_random_bytes(nsim_dev->switch_id.id, nsim_dev->switch_id.id_len); in nsim_dev_probe()
/kernel/linux/linux-6.6/drivers/target/
H A Dtarget_core_spc.c230 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()

Completed in 24 milliseconds

12345