/drivers/pinctrl/mvebu/ |
D | pinctrl-mvebu.c | 42 unsigned gid; member 173 unsigned gid, unsigned long *config) in mvebu_pinconf_group_get() argument 176 struct mvebu_pinctrl_group *grp = &pctl->groups[gid]; in mvebu_pinconf_group_get() 185 unsigned gid, unsigned long *configs, in mvebu_pinconf_group_set() argument 189 struct mvebu_pinctrl_group *grp = &pctl->groups[gid]; in mvebu_pinconf_group_set() 205 struct seq_file *s, unsigned gid) in mvebu_pinconf_group_dbg_show() argument 208 struct mvebu_pinctrl_group *grp = &pctl->groups[gid]; in mvebu_pinconf_group_dbg_show() 213 if (mvebu_pinconf_group_get(pctldev, gid, &config)) in mvebu_pinconf_group_dbg_show() 295 unsigned gid) in mvebu_pinmux_set() argument 299 struct mvebu_pinctrl_group *grp = &pctl->groups[gid]; in mvebu_pinmux_set() [all …]
|
/drivers/infiniband/hw/mthca/ |
D | mthca_mcg.c | 42 u8 gid[16]; member 64 u8 *gid, struct mthca_mailbox *mgm_mailbox, in find_mgm() argument 77 memcpy(mgid, gid, 16); in find_mgm() 86 mthca_dbg(dev, "Hash for %pI6 is %04x\n", gid, *hash); in find_mgm() 98 if (!memcmp(mgm->gid, zero_gid, 16)) { in find_mgm() 106 if (!memcmp(mgm->gid, gid, 16)) in find_mgm() 120 int mthca_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) in mthca_multicast_attach() argument 138 err = find_mgm(dev, gid->raw, mailbox, &hash, &prev, &index); in mthca_multicast_attach() 143 if (!memcmp(mgm->gid, zero_gid, 16)) in mthca_multicast_attach() 144 memcpy(mgm->gid, gid->raw, 16); in mthca_multicast_attach() [all …]
|
/drivers/infiniband/core/ |
D | cache.c | 157 bool rdma_is_zero_gid(const union ib_gid *gid) in rdma_is_zero_gid() argument 159 return !memcmp(gid, &zgid, sizeof(*gid)); in rdma_is_zero_gid() 202 return device->port_data[port].cache.gid; in rdma_gid_table() 244 port_num, entry->attr.index, entry->attr.gid.raw); in free_gid_entry_locked() 328 entry->attr.gid.raw); in store_gid_entry() 391 ix, table->data_vec[ix]->attr.gid.raw); in del_gid() 444 if (rdma_is_zero_gid(&attr->gid)) in add_modify_gid() 466 static int find_gid(struct ib_gid_table *table, const union ib_gid *gid, in find_gid() argument 520 memcmp(gid, &data->attr.gid, sizeof(*gid))) in find_gid() 540 static void make_default_gid(struct net_device *dev, union ib_gid *gid) in make_default_gid() argument [all …]
|
D | roce_gid_mgmt.c | 54 union ib_gid gid; member 99 u32 port, union ib_gid *gid, in update_gid() argument 111 gid, gid_attr); in update_gid() 115 gid, gid_attr); in update_gid() 287 union ib_gid gid; in update_gid_ip() local 290 rdma_ip2gid(addr, &gid); in update_gid_ip() 294 update_gid(gid_op, ib_dev, port, &gid, &gid_attr); in update_gid_ip() 412 union ib_gid gid; in enum_netdev_ipv6_ips() local 414 rdma_ip2gid((struct sockaddr *)&sin6_iter->sin6, &gid); in enum_netdev_ipv6_ips() 415 update_gid(GID_ADD, ib_dev, port, &gid, &gid_attr); in enum_netdev_ipv6_ips() [all …]
|
/drivers/misc/sgi-gru/ |
D | gruprocfs.c | 161 long gid = *(long *)data; in cch_seq_show() local 163 struct gru_state *gru = GID_TO_GRU(gid); in cch_seq_show() 167 if (gid == 0) in cch_seq_show() 176 is_kernel_context(ts) ? 0 : ts->ts_gms->ms_asids[gid].mt_asid, in cch_seq_show() 189 long gid = *(long *)data, ctxfree, cbrfree, dsrfree; in gru_seq_show() local 190 struct gru_state *gru = GID_TO_GRU(gid); in gru_seq_show() 192 if (gid == 0) { in gru_seq_show() 213 static void *seq_start(struct seq_file *file, loff_t *gid) in seq_start() argument 215 if (*gid < gru_max_gids) in seq_start() 216 return gid; in seq_start() [all …]
|
D | grutables.h | 498 #define GID_TO_GRU(gid) \ argument 499 (gru_base[(gid) / GRU_CHIPLETS_PER_BLADE] ? \ 500 (&gru_base[(gid) / GRU_CHIPLETS_PER_BLADE]-> \ 501 bs_grus[(gid) % GRU_CHIPLETS_PER_BLADE]) : \ 505 #define for_each_gru_in_bitmap(gid, map) \ argument 506 for_each_set_bit((gid), (map), GRU_MAX_GRUS) 515 #define foreach_gid(gid) \ argument 516 for ((gid) = 0; (gid) < gru_max_gids; (gid)++)
|
D | grutlbpurge.c | 152 int grupagesize, pagesize, pageshift, gid, asid; in gru_flush_tlb_range() local 165 for_each_gru_in_bitmap(gid, gms->ms_asidmap) { in gru_flush_tlb_range() 167 gru = GID_TO_GRU(gid); in gru_flush_tlb_range() 168 asids = gms->ms_asids + gid; in gru_flush_tlb_range() 175 gid, asid, start, grupagesize, num, asids->mt_ctxbitmap); in gru_flush_tlb_range() 186 gid, asid, asids->mt_ctxbitmap, in gru_flush_tlb_range()
|
D | grukdump.c | 164 hdr.gid = gru->gs_gid; in gru_dump_context() 187 if (req.gid >= gru_max_gids) in gru_dump_chiplet_request() 189 req.gid = array_index_nospec(req.gid, gru_max_gids); in gru_dump_chiplet_request() 191 gru = GID_TO_GRU(req.gid); in gru_dump_chiplet_request()
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | mcg.c | 41 void *gid; in mlx5_core_attach_mcg() local 45 gid = MLX5_ADDR_OF(attach_to_mcg_in, in, multicast_gid); in mlx5_core_attach_mcg() 46 memcpy(gid, mgid, sizeof(*mgid)); in mlx5_core_attach_mcg() 54 void *gid; in mlx5_core_detach_mcg() local 58 gid = MLX5_ADDR_OF(detach_from_mcg_in, in, multicast_gid); in mlx5_core_detach_mcg() 59 memcpy(gid, mgid, sizeof(*mgid)); in mlx5_core_detach_mcg()
|
D | rdma.c | 110 static void mlx5_rdma_make_default_gid(struct mlx5_core_dev *dev, union ib_gid *gid) in mlx5_rdma_make_default_gid() argument 115 gid->global.subnet_prefix = cpu_to_be64(0xfe80000000000000LL); in mlx5_rdma_make_default_gid() 116 addrconf_addr_eui48(&gid->raw[8], hw_id); in mlx5_rdma_make_default_gid() 121 union ib_gid gid; in mlx5_rdma_add_roce_addr() local 124 mlx5_rdma_make_default_gid(dev, &gid); in mlx5_rdma_add_roce_addr() 127 0, gid.raw, mac, in mlx5_rdma_add_roce_addr()
|
/drivers/infiniband/hw/bnxt_re/ |
D | qplib_sp.c | 216 struct bnxt_qplib_gid *gid) in bnxt_qplib_get_sgid() argument 224 memcpy(gid, &sgid_tbl->tbl[index].gid, sizeof(*gid)); in bnxt_qplib_get_sgid() 229 struct bnxt_qplib_gid *gid, u16 vlan_id, bool update) in bnxt_qplib_del_sgid() argument 243 if (!memcmp(&sgid_tbl->tbl[index].gid, gid, sizeof(*gid)) && in bnxt_qplib_del_sgid() 273 memcpy(&sgid_tbl->tbl[index].gid, &bnxt_qplib_gid_zero, in bnxt_qplib_del_sgid() 288 struct bnxt_qplib_gid *gid, const u8 *smac, in bnxt_qplib_add_sgid() argument 304 if (!memcmp(&sgid_tbl->tbl[i], gid, sizeof(*gid)) && in bnxt_qplib_add_sgid() 331 req.gid[0] = cpu_to_be32(((u32 *)gid->data)[3]); in bnxt_qplib_add_sgid() 332 req.gid[1] = cpu_to_be32(((u32 *)gid->data)[2]); in bnxt_qplib_add_sgid() 333 req.gid[2] = cpu_to_be32(((u32 *)gid->data)[1]); in bnxt_qplib_add_sgid() [all …]
|
D | qplib_sp.h | 87 struct bnxt_qplib_gid gid; member 315 struct bnxt_qplib_gid *gid); 317 struct bnxt_qplib_gid *gid, u16 vlan_id, bool update); 319 struct bnxt_qplib_gid *gid, const u8 *mac, u16 vlan_id, 322 struct bnxt_qplib_gid *gid, u16 gid_idx,
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | mcg.c | 695 u8 *gid, enum mlx4_protocol prot, in find_entry() argument 712 memcpy(mgid, gid, 16); in find_entry() 720 mlx4_dbg(dev, "Hash for %pI6 is %04x\n", gid, hash); in find_entry() 738 if (!memcmp(mgm->gid, gid, 16) && in find_entry() 1104 int mlx4_qp_attach_common(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], in mlx4_qp_attach_common() 1116 u8 port = gid[5]; in mlx4_qp_attach_common() 1125 err = find_entry(dev, port, gid, prot, in mlx4_qp_attach_common() 1133 memcpy(mgm->gid, gid, 16); in mlx4_qp_attach_common() 1148 memcpy(mgm->gid, gid, 16); in mlx4_qp_attach_common() 1214 int mlx4_qp_detach_common(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16], in mlx4_qp_detach_common() [all …]
|
/drivers/infiniband/hw/mlx5/ |
D | macsec.c | 102 struct mlx5_roce_gids *gid; in handle_macsec_gids() local 108 list_for_each_entry(gid, &macsec_device->macsec_roce_gids, roce_gid_list_entry) { in handle_macsec_gids() 109 mlx5_macsec_add_roce_sa_rules(data->fs_id, (struct sockaddr *)&gid->addr, in handle_macsec_gids() 110 gid->gid_idx, &macsec_device->tx_rules_list, in handle_macsec_gids() 260 physical_gid = rdma_find_gid(attr->device, &attr->gid, in mlx5r_add_gid_macsec_operations() 276 rdma_gid2ip((struct sockaddr *)&addr, &attr->gid); in mlx5r_add_gid_macsec_operations() 291 physical_gid->index, &physical_gid->gid, physical_gid); in mlx5r_add_gid_macsec_operations() 349 &physical_gid->gid, physical_gid); in mlx5r_del_gid_macsec_operations()
|
D | cmd.c | 132 void *gid; in mlx5_cmd_attach_mcg() local 137 gid = MLX5_ADDR_OF(attach_to_mcg_in, in, multicast_gid); in mlx5_cmd_attach_mcg() 138 memcpy(gid, mgid, sizeof(*mgid)); in mlx5_cmd_attach_mcg() 146 void *gid; in mlx5_cmd_detach_mcg() local 151 gid = MLX5_ADDR_OF(detach_from_mcg_in, in, multicast_gid); in mlx5_cmd_detach_mcg() 152 memcpy(gid, mgid, sizeof(*mgid)); in mlx5_cmd_detach_mcg()
|
/drivers/hwmon/ |
D | ibmpowernv.c | 86 u32 gid; member 151 ret = sensor_group_enable(sgrp_data->gid, data); in store_enable() 363 u32 gid; in init_sensor_group_data() local 369 if (of_property_read_u32(sgrp, "sensor-group-id", &gid)) in init_sensor_group_data() 376 sgrp_data[count].gid = gid; in init_sensor_group_data() 400 u32 gid; in get_sensor_group() local 408 if (of_property_read_u32(sgrp, "sensor-group-id", &gid)) in get_sensor_group() 421 if (gid == sgrp_data[i].gid) { in get_sensor_group() 651 sgrp_data->gid, "enable", type, in create_device_attrs()
|
/drivers/perf/ |
D | cxl_pmu.c | 85 u16 gid; member 176 pmu_ev->gid = FIELD_GET(CXL_PMU_EVENT_CAP_GROUP_ID_MSK, eval); in cxl_pmu_parse_caps() 201 pmu_ev->gid = FIELD_GET(CXL_PMU_EVENT_CAP_GROUP_ID_MSK, eval); in cxl_pmu_parse_caps() 243 [cxl_pmu_gid_attr] = CXL_PMU_FORMAT_ATTR(gid, "config:32-47"), 438 int vid, int gid, int msk) in cxl_pmu_find_fixed_counter_ev_cap() argument 443 if (vid != pmu_ev->vid || gid != pmu_ev->gid) in cxl_pmu_find_fixed_counter_ev_cap() 455 int vid, int gid, int msk) in cxl_pmu_find_config_counter_ev_cap() argument 460 if (vid != pmu_ev->vid || gid != pmu_ev->gid) in cxl_pmu_find_config_counter_ev_cap() 481 int gid = FIELD_GET(CXL_PMU_ATTR_CONFIG_GID_MSK, pmu_attr->id); in cxl_pmu_event_is_visible() local 484 if (!IS_ERR(cxl_pmu_find_fixed_counter_ev_cap(info, vid, gid, msk))) in cxl_pmu_event_is_visible() [all …]
|
/drivers/base/ |
D | devtmpfs.c | 53 kgid_t gid; member 124 req.gid = GLOBAL_ROOT_GID; in devtmpfs_create_node() 125 req.name = device_get_devnode(dev, &req.mode, &req.uid, &req.gid, &tmp); in devtmpfs_create_node() 205 kgid_t gid, struct device *dev) in handle_create() argument 226 newattrs.ia_gid = gid; in handle_create() 380 static int handle(const char *name, umode_t mode, kuid_t uid, kgid_t gid, in handle() argument 384 return handle_create(name, mode, uid, gid, dev); in handle() 400 req->uid, req->gid, req->dev); in devtmpfs_work_loop()
|
/drivers/infiniband/hw/mlx4/ |
D | main.c | 177 memcpy(&gid_tbl[i], &gids[i].gid, sizeof(union ib_gid)); in mlx4_ib_update_gids_v1() 202 union ib_gid gid; in mlx4_ib_update_gids_v1_v2() member 216 memcpy(&gid_tbl[i].gid, &gids[i].gid, sizeof(union ib_gid)); in mlx4_ib_update_gids_v1_v2() 219 if (!ipv6_addr_v4mapped((struct in6_addr *)&gids[i].gid)) in mlx4_ib_update_gids_v1_v2() 250 memset(&entry->gid, 0, sizeof(entry->gid)); in free_gid_entry() 283 if (!memcmp(&port_gid_table->gids[i].gid, in mlx4_ib_add_gid() 284 &attr->gid, sizeof(attr->gid)) && in mlx4_ib_add_gid() 290 if (free < 0 && rdma_is_zero_gid(&port_gid_table->gids[i].gid)) in mlx4_ib_add_gid() 303 port_gid_table->gids[free].gid = attr->gid; in mlx4_ib_add_gid() 325 memcpy(&gids[i].gid, &port_gid_table->gids[i].gid, sizeof(union ib_gid)); in mlx4_ib_add_gid() [all …]
|
/drivers/infiniband/sw/rdmavt/ |
D | mcast.c | 238 int rvt_attach_mcast(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) in rvt_attach_mcast() argument 254 mcast = rvt_mcast_alloc(gid, lid); in rvt_attach_mcast() 301 int rvt_detach_mcast(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) in rvt_detach_mcast() argument 326 ret = memcmp(gid->raw, mcast->mcast_addr.mgid.raw, in rvt_detach_mcast() 327 sizeof(*gid)); in rvt_detach_mcast()
|
D | mcast.h | 12 int rvt_attach_mcast(struct ib_qp *ibqp, union ib_gid *gid, u16 lid); 13 int rvt_detach_mcast(struct ib_qp *ibqp, union ib_gid *gid, u16 lid);
|
/drivers/infiniband/ulp/ipoib/ |
D | ipoib_main.c | 94 const union ib_gid *gid, const struct sockaddr *addr, 401 const union ib_gid *gid, in ipoib_match_gid_pkey_addr() argument 412 (!gid || !memcmp(gid, &priv->local_gid, sizeof(*gid)))) { in ipoib_match_gid_pkey_addr() 432 matches += ipoib_match_gid_pkey_addr(child_priv, gid, in ipoib_match_gid_pkey_addr() 449 const union ib_gid *gid, in __ipoib_get_net_dev_by_params() argument 462 matches += ipoib_match_gid_pkey_addr(priv, gid, pkey_index, in __ipoib_get_net_dev_by_params() 473 const union ib_gid *gid, const struct sockaddr *addr, in ipoib_get_net_dev_by_params() argument 491 gid, NULL, &net_dev); in ipoib_get_net_dev_by_params() 505 gid, addr, &net_dev); in ipoib_get_net_dev_by_params() 557 struct ipoib_path *__path_find(struct net_device *dev, void *gid) in __path_find() argument [all …]
|
/drivers/infiniband/hw/qedr/ |
D | qedr_roce_cm.h | 42 static inline u32 qedr_get_ipv4_from_gid(const u8 *gid) in qedr_get_ipv4_from_gid() argument 44 return *(u32 *)(void *)&gid[12]; in qedr_get_ipv4_from_gid()
|
/drivers/infiniband/hw/usnic/ |
D | usnic_ib_verbs.c | 282 union ib_gid gid; in usnic_ib_query_device() local 294 &gid.raw[0]); in usnic_ib_query_device() 295 memcpy(&props->sys_image_guid, &gid.global.interface_id, in usnic_ib_query_device() 296 sizeof(gid.global.interface_id)); in usnic_ib_query_device() 424 union ib_gid *gid) in usnic_ib_query_gid() argument 434 memset(&(gid->raw[0]), 0, sizeof(gid->raw)); in usnic_ib_query_gid() 436 &gid->raw[0]); in usnic_ib_query_gid()
|
/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | gid.c | 118 u8 roce_version, u8 roce_l3_type, const u8 *gid, in mlx5_core_roce_gid_set() argument 133 if (gid) { in mlx5_core_roce_gid_set() 140 memcpy(addr_l3_addr, gid, gidsz); in mlx5_core_roce_gid_set()
|