Home
last modified time | relevance | path

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

123

/openbmc/linux/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()
113 memcpy(dl_port->attrs.switch_id.id, &ppid.id[0], ppid.id_len); in mlx5_esw_offloads_sf_devlink_port_attrs_set()
114 dl_port->attrs.switch_id.id_len = ppid.id_len; in mlx5_esw_offloads_sf_devlink_port_attrs_set()
/openbmc/linux/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()
/openbmc/linux/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.h507 u8 id_len; member
552 .id_len = !(_jedec_id) ? 0 : (3 + ((_ext_id) ? 2 : 0))
556 .id_len = 6
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()
H A Dxilinx.c30 .id_len = 3, \
H A Dspansion.c232 if (memcmp(buf, nor->info->id, nor->info->id_len)) in cypress_nor_octal_dtr_en()
276 if (memcmp(buf, nor->info->id, nor->info->id_len)) in cypress_nor_octal_dtr_dis()
/openbmc/linux/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()
H A Dscan.c217 u8 id_len, ext_id_len, i, loop_len, id; in cfg80211_is_element_inherited() local
237 id_len = non_inherit_elem->data[1]; in cfg80211_is_element_inherited()
238 if (non_inherit_elem->datalen < 3 + id_len) in cfg80211_is_element_inherited()
241 ext_id_len = non_inherit_elem->data[2 + id_len]; in cfg80211_is_element_inherited()
242 if (non_inherit_elem->datalen < 3 + id_len + ext_id_len) in cfg80211_is_element_inherited()
249 list = &non_inherit_elem->data[3 + id_len]; in cfg80211_is_element_inherited()
252 if (!id_len) in cfg80211_is_element_inherited()
254 loop_len = id_len; in cfg80211_is_element_inherited()
/openbmc/qemu/tests/qemu-iotests/
H A D26159 id_len=$(peek_file_be "$1" $(($2 + 12)) 2)
63 full_len=$((40 + extra_len + id_len + name_len))
77 id_len=$(peek_file_be "$1" $((offset + 12)) 2)
83 name_ofs=$((id_ofs + id_len))
86 echo " ID: $(peek_file_raw "$1" $id_ofs $id_len)"
/openbmc/linux/drivers/scsi/
H A Dscsi_lib.c3157 * @id_len: length of the buffer
3167 int scsi_vpd_lun_id(struct scsi_device *sdev, char *id, size_t id_len) in scsi_vpd_lun_id() argument
3183 if (id_len < 21) { in scsi_vpd_lun_id()
3188 memset(id, 0, id_len); in scsi_vpd_lun_id()
3204 if (cur_id_size + 4 > id_len) in scsi_vpd_lun_id()
3205 cur_id_size = id_len - 4; in scsi_vpd_lun_id()
3207 id_size = snprintf(id, id_len, "t10.%*pE", 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()
3227 id_size = snprintf(id, id_len, in scsi_vpd_lun_id()
[all...]
/openbmc/linux/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()
H A Dnfp_devlink.c352 attrs.switch_id.id_len = serial_len; in nfp_devlink_port_register()
/openbmc/u-boot/drivers/mtd/spi/
H A Dsf_internal.h29 u8 id_len; member
H A Dspi-nor-ids.c32 .id_len = (!(_jedec_id) ? 0 : (3 + ((_ext_id) ? 2 : 0))), \
48 .id_len = 6, \
H A Dspi-nor-tiny.c371 if (info->id_len) { in spi_nor_read_id()
372 if (!memcmp(info->id, id, info->id_len)) in spi_nor_read_id()
/openbmc/linux/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()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/libubox/libubox/
H A D0001-blobmsg-fix-array-out-of-bounds-GCC-10-warning.patch32 attr->id_len |= be32_to_cpu(BLOB_ATTR_EXTENDED);
/openbmc/linux/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()
/openbmc/linux/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()
/openbmc/linux/drivers/net/ethernet/marvell/prestera/
H 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()
/openbmc/qemu/hw/block/
H A Dm25p80.c63 uint8_t id_len; member
93 .id_len = (!(_jedec_id) ? 0 : (3 + ((_ext_id) ? 2 : 0))),\
110 .id_len = 6,\
127 .id_len = (!(_jedec_id) ? 0 : (3 + ((_ext_id) ? 2 : 0))),\
1373 for (i = 0; i < s->pi->id_len; i++) { in decode_new_cmd()
/openbmc/linux/drivers/net/netdevsim/
H 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()
/openbmc/linux/net/devlink/
H A Dport.c1282 if (attrs->switch_id.id_len) { in __devlink_port_attrs_set()
1284 if (WARN_ON(attrs->switch_id.id_len > MAX_PHYS_ITEM_ID_LEN)) in __devlink_port_attrs_set()
1285 attrs->switch_id.id_len = MAX_PHYS_ITEM_ID_LEN; in __devlink_port_attrs_set()
/openbmc/linux/drivers/of/
H A Dbase.c2002 u32 id_len = be32_to_cpup(map + 3); in of_map_id() local
2011 if (masked_id < id_base || masked_id >= id_base + id_len) in of_map_id()
2033 id_len, id, masked_id - id_base + out_base); in of_map_id()

123