Home
last modified time | relevance | path

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

12

/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.c179 u8 id_len, ext_id_len, i, loop_len, id; in cfg80211_is_element_inherited() local
199 id_len = non_inherit_elem->data[1]; in cfg80211_is_element_inherited()
200 if (non_inherit_elem->datalen < 3 + id_len) in cfg80211_is_element_inherited()
203 ext_id_len = non_inherit_elem->data[2 + id_len]; in cfg80211_is_element_inherited()
204 if (non_inherit_elem->datalen < 3 + id_len + ext_id_len) in cfg80211_is_element_inherited()
211 list = &non_inherit_elem->data[3 + id_len]; in cfg80211_is_element_inherited()
214 if (!id_len) in cfg80211_is_element_inherited()
216 loop_len = id_len; in cfg80211_is_element_inherited()
/linux/drivers/mtd/spi-nor/
H A Dsysfs.c39 u8 id_len = nor->info->id ? 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()
/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.c357 attrs.switch_id.id_len = serial_len; in nfp_devlink_port_register()
/linux/drivers/scsi/
H A Dscsi_lib.c3339 int scsi_vpd_lun_id(struct scsi_device *sdev, char *id, size_t id_len) in scsi_vpd_lun_id() argument
3355 if (id_len < 21) { in scsi_vpd_lun_id()
3360 memset(id, 0, id_len); in scsi_vpd_lun_id()
3376 if (cur_id_size + 4 > id_len) in scsi_vpd_lun_id()
3377 cur_id_size = id_len - 4; in scsi_vpd_lun_id()
3379 id_size = snprintf(id, id_len, "t10.%*pE", in scsi_vpd_lun_id()
3389 id_size = snprintf(id, id_len, in scsi_vpd_lun_id()
3394 id_size = snprintf(id, id_len, in scsi_vpd_lun_id()
3399 id_size = snprintf(id, id_len, in scsi_vpd_lun_id()
3414 id_size = snprintf(id, id_len, in scsi_vpd_lun_id()
[all …]
/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()
/linux/fs/nfs/
H A Dnfs4idmap.c351 int id_len; in nfs_idmap_lookup_name() local
354 id_len = nfs_map_numeric_to_string(id, id_str, sizeof(id_str)); in nfs_idmap_lookup_name()
355 ret = nfs_idmap_get_key(id_str, id_len, type, buf, buflen, idmap); in nfs_idmap_lookup_name()
/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()
/linux/drivers/net/ethernet/sfc/
H A Def100_rep.c90 ppid->id_len = sizeof(nic_data->port_id); in efx_ef100_rep_get_port_parent_id()
H A Def100_nic.c671 ppid->id_len = ETH_ALEN; in efx_ef100_get_phys_port_id()
672 memcpy(ppid->id, nic_data->port_id, ppid->id_len); in efx_ef100_get_phys_port_id()
H A Def10.c3762 ppid->id_len = ETH_ALEN; in efx_ef10_get_phys_port_id()
3763 memcpy(ppid->id, nic_data->port_id, ppid->id_len); in efx_ef10_get_phys_port_id()
/linux/drivers/net/ethernet/intel/ixgbe/devlink/
H A Ddevlink.c524 ppid->id_len = sizeof(id); in ixgbe_devlink_set_switch_id()
/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_main.c453 ppid->id_len = sizeof(lan966x->base_mac); in lan966x_port_get_parent_id()
454 memcpy(&ppid->id, &lan966x->base_mac, ppid->id_len); in lan966x_port_get_parent_id()
/linux/drivers/net/ethernet/intel/ice/devlink/
H A Dport.c312 ppid->id_len = sizeof(id); in ice_devlink_set_switch_id()
/linux/security/apparmor/
H A Dapparmorfs.c1720 int len, id_len; in __aafs_profile_mkdir() local
1722 id_len = snprintf(NULL, 0, ".%ld", profile->ns->uniq_id); in __aafs_profile_mkdir()
1724 profile->dirname = kmalloc(len + id_len + 1, GFP_KERNEL); in __aafs_profile_mkdir()
/linux/drivers/net/ethernet/adi/
H A Dadin1110.c1027 ppid->id_len = strnlen(priv->mii_bus_name, MAX_PHYS_ITEM_ID_LEN); in adin1110_port_get_port_parent_id()
1028 memcpy(ppid->id, priv->mii_bus_name, ppid->id_len); in adin1110_port_get_port_parent_id()
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Drep.c229 ppid->id_len = sizeof(id); in rvu_rep_devlink_set_switch_id()
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_devlink.c1298 attrs.switch_id.id_len = sizeof(bp->dsn); in bnxt_dl_register()
/linux/drivers/net/ethernet/emulex/benet/
H A Dbe_main.c5126 int i, id_len = CNTL_SERIAL_NUM_WORDS * CNTL_SERIAL_NUM_WORD_SZ + 1; in be_get_phys_port_id() local
5130 if (MAX_PHYS_ITEM_ID_LEN < id_len) in be_get_phys_port_id()
5139 ppid->id_len = id_len; in be_get_phys_port_id()
/linux/drivers/net/ethernet/rocker/
H A Drocker_main.c2015 ppid->id_len = sizeof(rocker->hw.id); in rocker_port_get_port_parent_id()
2016 memcpy(&ppid->id, &rocker->hw.id, ppid->id_len); in rocker_port_get_port_parent_id()
/linux/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_main.c465 ppid->id_len = sizeof(ahw->phys_port_id); in qlcnic_get_phys_port_id()
466 memcpy(ppid->id, ahw->phys_port_id, ppid->id_len); in qlcnic_get_phys_port_id()
/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dt4_hw.c2746 unsigned int id_len, pn_len, sn_len, na_len; in t4_get_raw_vpd_params() local
2767 ret = pci_vpd_find_id_string(vpd, VPD_LEN, &id_len); in t4_get_raw_vpd_params()
2796 memcpy(p->id, vpd + id, min_t(unsigned int, id_len, ID_LEN)); in t4_get_raw_vpd_params()
/linux/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-switch.c754 ppid->id_len = 1; in dpaa2_switch_port_parent_id()
/linux/net/core/
H A Drtnetlink.c1430 if (nla_put(skb, IFLA_PHYS_PORT_ID, ppid.id_len, ppid.id)) in rtnl_phys_port_id_fill()
1466 if (nla_put(skb, IFLA_PHYS_SWITCH_ID, ppid.id_len, ppid.id)) in rtnl_phys_switch_id_fill()

12