/drivers/infiniband/hw/mlx4/ |
D | mcg.c | 50 #define mcg_warn_group(group, format, arg...) \ argument 52 (group)->name, group->demux->port, ## arg) 54 #define mcg_debug_group(group, format, arg...) \ argument 56 (group)->name, (group)->demux->port, ## arg) 58 #define mcg_error_group(group, format, arg...) \ argument 59 pr_err(" %16s: " format, (group)->name, ## arg) 136 struct mcast_group *group; member 144 mcg_warn_group(group, "did not expect to reach zero\n"); \ 166 struct mcast_group *group; in mcast_find() local 170 group = rb_entry(node, struct mcast_group, node); in mcast_find() [all …]
|
/drivers/vfio/ |
D | vfio.c | 182 struct iommu_group *group; in vfio_iommu_group_get() local 185 group = iommu_group_get(dev); in vfio_iommu_group_get() 194 if (group || !noiommu || iommu_present(dev->bus)) in vfio_iommu_group_get() 195 return group; in vfio_iommu_group_get() 197 group = iommu_group_alloc(); in vfio_iommu_group_get() 198 if (IS_ERR(group)) in vfio_iommu_group_get() 201 iommu_group_set_name(group, "vfio-noiommu"); in vfio_iommu_group_get() 202 iommu_group_set_iommudata(group, &noiommu, NULL); in vfio_iommu_group_get() 203 ret = iommu_group_add_device(group, dev); in vfio_iommu_group_get() 205 iommu_group_put(group); in vfio_iommu_group_get() [all …]
|
/drivers/infiniband/core/ |
D | multicast.c | 117 struct mcast_group *group; member 133 struct mcast_group *group; in mcast_find() local 137 group = rb_entry(node, struct mcast_group, node); in mcast_find() 138 ret = memcmp(mgid->raw, group->rec.mgid.raw, sizeof *mgid); in mcast_find() 140 return group; in mcast_find() 151 struct mcast_group *group, in mcast_insert() argument 163 ret = memcmp(group->rec.mgid.raw, cur_group->rec.mgid.raw, in mcast_insert() 164 sizeof group->rec.mgid); in mcast_insert() 174 rb_link_node(&group->node, parent, link); in mcast_insert() 175 rb_insert_color(&group->node, &port->table); in mcast_insert() [all …]
|
D | cma_configfs.c | 48 struct config_group group; member 60 struct config_group *group; in to_dev_port_group() local 65 group = container_of(item, struct config_group, cg_item); in to_dev_port_group() 66 return container_of(group, struct cma_dev_port_group, group); in to_dev_port_group() 78 struct cma_dev_port_group *group = to_dev_port_group(item); in cma_configfs_params_get() local 81 if (!group) in cma_configfs_params_get() 85 group->cma_dev_group->name); in cma_configfs_params_get() 90 *pgroup = group; in cma_configfs_params_get() 104 struct cma_dev_port_group *group; in default_roce_mode_show() local 108 ret = cma_configfs_params_get(item, &cma_dev, &group); in default_roce_mode_show() [all …]
|
/drivers/iommu/ |
D | iommu.c | 60 ssize_t (*show)(struct iommu_group *group, char *buf); 61 ssize_t (*store)(struct iommu_group *group, 76 static int iommu_alloc_default_domain(struct iommu_group *group, 83 struct iommu_group *group); 85 struct iommu_group *group); 86 static int iommu_create_device_direct_mappings(struct iommu_group *group, 89 static ssize_t iommu_group_store_type(struct iommu_group *group, 225 struct iommu_group *group; in __iommu_probe_device() local 256 group = iommu_group_get_for_dev(dev); in __iommu_probe_device() 257 if (IS_ERR(group)) { in __iommu_probe_device() [all …]
|
D | io-pgfault.c | 130 struct iopf_group *group; in iopf_handle_group() local 134 group = container_of(work, struct iopf_group, work); in iopf_handle_group() 136 list_for_each_entry_safe(iopf, next, &group->faults, list) { in iopf_handle_group() 149 iopf_complete_group(group->dev, &group->last_fault, status); in iopf_handle_group() 150 kfree(group); in iopf_handle_group() 189 struct iopf_group *group; in iommu_queue_iopf() local 223 group = kzalloc(sizeof(*group), GFP_KERNEL); in iommu_queue_iopf() 224 if (!group) { in iommu_queue_iopf() 234 group->dev = dev; in iommu_queue_iopf() 235 group->last_fault.fault = *fault; in iommu_queue_iopf() [all …]
|
D | tegra-smmu.c | 26 struct iommu_group *group; member 339 const struct tegra_smmu_swgroup *group = NULL; in tegra_smmu_find_swgroup() local 344 group = &smmu->soc->swgroups[i]; in tegra_smmu_find_swgroup() 349 return group; in tegra_smmu_find_swgroup() 355 const struct tegra_smmu_swgroup *group; in tegra_smmu_enable() local 359 group = tegra_smmu_find_swgroup(smmu, swgroup); in tegra_smmu_enable() 360 if (group) { in tegra_smmu_enable() 361 value = smmu_readl(smmu, group->reg); in tegra_smmu_enable() 365 smmu_writel(smmu, value, group->reg); in tegra_smmu_enable() 388 const struct tegra_smmu_swgroup *group; in tegra_smmu_disable() local [all …]
|
D | fsl_pamu_domain.c | 338 struct iommu_group *group; in get_device_iommu_group() local 340 group = iommu_group_get(dev); in get_device_iommu_group() 341 if (!group) in get_device_iommu_group() 342 group = iommu_group_alloc(); in get_device_iommu_group() 344 return group; in get_device_iommu_group() 362 struct iommu_group *group; in get_shared_pci_device_group() local 373 group = iommu_group_get(&tmp->dev); in get_shared_pci_device_group() 374 if (group) in get_shared_pci_device_group() 375 return group; in get_shared_pci_device_group() 388 struct iommu_group *group = NULL; in get_pci_device_group() local [all …]
|
/drivers/gpio/ |
D | gpio-lpc32xx.c | 168 static inline u32 gpreg_read(struct lpc32xx_gpio_chip *group, unsigned long offset) in gpreg_read() argument 170 return __raw_readl(group->reg_base + offset); in gpreg_read() 173 static inline void gpreg_write(struct lpc32xx_gpio_chip *group, u32 val, unsigned long offset) in gpreg_write() argument 175 __raw_writel(val, group->reg_base + offset); in gpreg_write() 178 static void __set_gpio_dir_p012(struct lpc32xx_gpio_chip *group, in __set_gpio_dir_p012() argument 182 gpreg_write(group, GPIO012_PIN_TO_BIT(pin), in __set_gpio_dir_p012() 183 group->gpio_grp->dir_clr); in __set_gpio_dir_p012() 185 gpreg_write(group, GPIO012_PIN_TO_BIT(pin), in __set_gpio_dir_p012() 186 group->gpio_grp->dir_set); in __set_gpio_dir_p012() 189 static void __set_gpio_dir_p3(struct lpc32xx_gpio_chip *group, in __set_gpio_dir_p3() argument [all …]
|
/drivers/clk/renesas/ |
D | clk-mstp.c | 58 struct mstp_clock_group *group; member 63 static inline u32 cpg_mstp_read(struct mstp_clock_group *group, in cpg_mstp_read() argument 66 return group->width_8bit ? readb(reg) : readl(reg); in cpg_mstp_read() 69 static inline void cpg_mstp_write(struct mstp_clock_group *group, u32 val, in cpg_mstp_write() argument 72 group->width_8bit ? writeb(val, reg) : writel(val, reg); in cpg_mstp_write() 78 struct mstp_clock_group *group = clock->group; in cpg_mstp_clock_endisable() local 84 spin_lock_irqsave(&group->lock, flags); in cpg_mstp_clock_endisable() 86 value = cpg_mstp_read(group, group->smstpcr); in cpg_mstp_clock_endisable() 91 cpg_mstp_write(group, value, group->smstpcr); in cpg_mstp_clock_endisable() 93 if (!group->mstpsr) { in cpg_mstp_clock_endisable() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
D | qos.c | 44 static int esw_qos_group_config(struct mlx5_eswitch *esw, struct mlx5_esw_rate_group *group, in esw_qos_group_config() argument 52 group->tsar_ix, in esw_qos_group_config() 57 trace_mlx5_esw_group_qos_config(dev, group, group->tsar_ix, bw_share, max_rate); in esw_qos_group_config() 90 struct mlx5_esw_rate_group *group, in esw_qos_calculate_min_rate_divider() argument 99 struct mlx5_esw_rate_group *group; in esw_qos_calculate_min_rate_divider() local 101 list_for_each_entry(group, &esw->qos.groups, list) { in esw_qos_calculate_min_rate_divider() 102 if (group->min_rate < max_guarantee) in esw_qos_calculate_min_rate_divider() 104 max_guarantee = group->min_rate; in esw_qos_calculate_min_rate_divider() 109 evport->qos.group != group || evport->qos.min_rate < max_guarantee) in esw_qos_calculate_min_rate_divider() 121 if (!group_level && !max_guarantee && group && group->bw_share) in esw_qos_calculate_min_rate_divider() [all …]
|
/drivers/pinctrl/aspeed/ |
D | pinmux-aspeed.h | 513 #define SIG_DESC_LIST_SYM(sig, group) sig_descs_ ## sig ## _ ## group argument 514 #define SIG_DESC_LIST_DECL(sig, group, ...) \ argument 515 static const struct aspeed_sig_desc SIG_DESC_LIST_SYM(sig, group)[] = \ 518 #define SIG_EXPR_SYM(sig, group) sig_expr_ ## sig ## _ ## group argument 519 #define SIG_EXPR_DECL_(sig, group, func) \ argument 520 static const struct aspeed_sig_expr SIG_EXPR_SYM(sig, group) = \ 524 .ndescs = ARRAY_SIZE(SIG_DESC_LIST_SYM(sig, group)), \ 525 .descs = &(SIG_DESC_LIST_SYM(sig, group))[0], \ 545 #define SIG_EXPR_DECL(sig, group, func, ...) \ argument 546 SIG_DESC_LIST_DECL(sig, group, __VA_ARGS__); \ [all …]
|
/drivers/net/ethernet/netronome/nfp/flower/ |
D | lag_conf.c | 108 struct nfp_fl_lag_group *group; in nfp_fl_lag_group_create() local 122 group = kmalloc(sizeof(*group), GFP_KERNEL); in nfp_fl_lag_group_create() 123 if (!group) { in nfp_fl_lag_group_create() 128 group->group_id = id; in nfp_fl_lag_group_create() 129 group->master_ndev = master; in nfp_fl_lag_group_create() 130 group->dirty = true; in nfp_fl_lag_group_create() 131 group->offloaded = false; in nfp_fl_lag_group_create() 132 group->to_remove = false; in nfp_fl_lag_group_create() 133 group->to_destroy = false; in nfp_fl_lag_group_create() 134 group->slave_cnt = 0; in nfp_fl_lag_group_create() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/esw/diag/ |
D | qos_tracepoint.h | 37 __field(void *, group) 44 __entry->group = vport->qos.group; 48 __entry->bw_share, __entry->max_rate, __entry->group 64 const struct mlx5_esw_rate_group *group, 66 TP_ARGS(dev, group, tsar_ix), 68 __field(const void *, group) 72 __entry->group = group; 76 __get_str(devname), __entry->group, __entry->tsar_ix 82 const struct mlx5_esw_rate_group *group, 84 TP_ARGS(dev, group, tsar_ix) [all …]
|
/drivers/dma/idxd/ |
D | device.c | 410 wq->group = NULL; in idxd_wq_device_reset_cleanup() 688 engine->group = NULL; in idxd_engines_clear_state() 694 struct idxd_group *group; in idxd_groups_clear_state() local 699 group = idxd->groups[i]; in idxd_groups_clear_state() 700 memset(&group->grpcfg, 0, sizeof(group->grpcfg)); in idxd_groups_clear_state() 701 group->num_engines = 0; in idxd_groups_clear_state() 702 group->num_wqs = 0; in idxd_groups_clear_state() 703 group->use_rdbuf_limit = false; in idxd_groups_clear_state() 704 group->rdbufs_allowed = 0; in idxd_groups_clear_state() 705 group->rdbufs_reserved = 0; in idxd_groups_clear_state() [all …]
|
D | sysfs.c | 25 if (engine->group) in engine_group_id_show() 26 return sysfs_emit(buf, "%d\n", engine->group->id); in engine_group_id_show() 52 if (engine->group) { in engine_group_id_store() 53 engine->group->num_engines--; in engine_group_id_store() 54 engine->group = NULL; in engine_group_id_store() 59 prevg = engine->group; in engine_group_id_store() 63 engine->group = idxd->groups[id]; in engine_group_id_store() 64 engine->group->num_engines++; in engine_group_id_store() 119 struct idxd_group *group = confdev_to_group(dev); in group_tokens_reserved_show() local 121 return sysfs_emit(buf, "%u\n", group->rdbufs_reserved); in group_tokens_reserved_show() [all …]
|
/drivers/soundwire/ |
D | generic_bandwidth_allocation.c | 207 static int sdw_add_element_group_count(struct sdw_group *group, in sdw_add_element_group_count() argument 210 int num = group->count; in sdw_add_element_group_count() 214 if (rate == group->rates[i]) in sdw_add_element_group_count() 220 if (group->count >= group->max_size) { in sdw_add_element_group_count() 223 group->max_size += 1; in sdw_add_element_group_count() 224 rates = krealloc(group->rates, in sdw_add_element_group_count() 225 (sizeof(int) * group->max_size), in sdw_add_element_group_count() 229 group->rates = rates; in sdw_add_element_group_count() 232 group->rates[group->count++] = rate; in sdw_add_element_group_count() 239 struct sdw_group *group) in sdw_get_group_count() argument [all …]
|
/drivers/media/platform/rcar-vin/ |
D | rcar-core.c | 52 static int rvin_group_entity_to_csi_id(struct rvin_group *group, in rvin_group_entity_to_csi_id() argument 61 if (group->csi[i].subdev == sd) in rvin_group_entity_to_csi_id() 115 struct rvin_group *group = container_of(link->graph_obj.mdev, in rvin_group_link_notify() local 139 media_device_for_each_entity(entity, &group->mdev) in rvin_group_link_notify() 143 mutex_lock(&group->lock); in rvin_group_link_notify() 150 if (WARN_ON(!group->vin[master_id])) { in rvin_group_link_notify() 157 if (!group->vin[i]) in rvin_group_link_notify() 162 &group->vin[i]->vdev.entity.pads[0]); in rvin_group_link_notify() 166 csi_id = rvin_group_entity_to_csi_id(group, csi_pad->entity); in rvin_group_link_notify() 169 mask &= rvin_group_get_mask(group->vin[i], csi_id, channel); in rvin_group_link_notify() [all …]
|
/drivers/pci/endpoint/ |
D | pci-ep-cfs.c | 23 struct config_group group; member 32 struct config_group group; member 39 return container_of(to_config_group(item), struct pci_epf_group, group); in to_pci_epf_group() 44 return container_of(to_config_group(item), struct pci_epc_group, group); in to_pci_epc_group() 103 configfs_register_group(&epf_group->group, secondary_epc_group); in pci_ep_cfs_add_secondary_group() 163 configfs_register_group(&epf_group->group, primary_epc_group); in pci_ep_cfs_add_primary_group() 265 struct config_group *group; in pci_ep_cfs_add_epc_group() local 274 group = &epc_group->group; in pci_ep_cfs_add_epc_group() 276 config_group_init_type_name(group, name, &pci_epc_type); in pci_ep_cfs_add_epc_group() 277 ret = configfs_register_group(controllers_group, group); in pci_ep_cfs_add_epc_group() [all …]
|
/drivers/base/ |
D | memory.c | 186 zone = zone_for_pfn_range(mem->online_type, mem->nid, mem->group, in memory_block_online() 203 nr_pages - nr_vmemmap_pages, zone, mem->group); in memory_block_online() 215 adjust_present_page_count(pfn_to_page(start_pfn), mem->group, in memory_block_online() 233 adjust_present_page_count(pfn_to_page(start_pfn), mem->group, in memory_block_offline() 237 nr_pages - nr_vmemmap_pages, mem->group); in memory_block_offline() 242 mem->group, nr_vmemmap_pages); in memory_block_offline() 384 struct memory_group *group, in print_allowed_zone() argument 390 zone = zone_for_pfn_range(online_type, nid, group, start_pfn, nr_pages); in print_allowed_zone() 403 struct memory_group *group = mem->group; in valid_zones_show() local 425 default_zone = zone_for_pfn_range(MMOP_ONLINE, nid, group, in valid_zones_show() [all …]
|
/drivers/s390/block/ |
D | dasd_alias.c | 89 struct alias_pav_group, group); in _find_group() 97 list_for_each_entry(pos, &lcu->grouplist, group) { in _find_group() 318 struct alias_pav_group *group; in _add_device_to_lcu() local 332 group = _find_group(lcu, &uid); in _add_device_to_lcu() 333 if (!group) { in _add_device_to_lcu() 334 group = kzalloc(sizeof(*group), GFP_ATOMIC); in _add_device_to_lcu() 335 if (!group) in _add_device_to_lcu() 337 memcpy(group->uid.vendor, uid.vendor, sizeof(uid.vendor)); in _add_device_to_lcu() 338 memcpy(group->uid.serial, uid.serial, sizeof(uid.serial)); in _add_device_to_lcu() 339 group->uid.ssid = uid.ssid; in _add_device_to_lcu() [all …]
|
/drivers/usb/gadget/function/ |
D | uvc_configfs.c | 53 int (*create_children)(struct config_group *group); 58 struct config_group *group = to_config_group(item); in uvcg_config_item_release() local 60 kfree(group); in uvcg_config_item_release() 70 static int uvcg_config_create_children(struct config_group *group, in uvcg_config_create_children() argument 77 return type->create_children(group); in uvcg_config_create_children() 80 ret = uvcg_config_create_group(group, *child); in uvcg_config_create_children() 91 struct config_group *group; in uvcg_config_create_group() local 93 group = kzalloc(sizeof(*group), GFP_KERNEL); in uvcg_config_create_group() 94 if (!group) in uvcg_config_create_group() 97 config_group_init_type_name(group, type->name, &type->type); in uvcg_config_create_group() [all …]
|
/drivers/pinctrl/freescale/ |
D | pinctrl-mxs.c | 36 unsigned group) in mxs_get_group_name() argument 40 return d->soc->groups[group].name; in mxs_get_group_name() 43 static int mxs_get_group_pins(struct pinctrl_dev *pctldev, unsigned group, in mxs_get_group_pins() argument 48 *pins = d->soc->groups[group].pins; in mxs_get_group_pins() 49 *num_pins = d->soc->groups[group].npins; in mxs_get_group_pins() 65 char *group = NULL; in mxs_dt_node_to_map() local 101 group = kzalloc(length, GFP_KERNEL); in mxs_dt_node_to_map() 102 if (!group) { in mxs_dt_node_to_map() 106 snprintf(group, length, "%s.%d", np->name, reg); in mxs_dt_node_to_map() 107 new_map[i].data.mux.group = group; in mxs_dt_node_to_map() [all …]
|
/drivers/pinctrl/meson/ |
D | pinctrl-meson8-pmx.c | 35 struct meson_pmx_group *group; in meson8_pmx_disable_other_groups() local 40 group = &pc->data->groups[i]; in meson8_pmx_disable_other_groups() 41 pmx_data = (struct meson8_pmx_data *)group->data; in meson8_pmx_disable_other_groups() 45 for (j = 0; j < group->num_pins; j++) { in meson8_pmx_disable_other_groups() 46 if (group->pins[j] == pin) { in meson8_pmx_disable_other_groups() 61 struct meson_pmx_group *group = &pc->data->groups[group_num]; in meson8_pmx_set_mux() local 63 (struct meson8_pmx_data *)group->data; in meson8_pmx_set_mux() 67 group->name); in meson8_pmx_set_mux() 73 for (i = 0; i < group->num_pins; i++) in meson8_pmx_set_mux() 74 meson8_pmx_disable_other_groups(pc, group->pins[i], group_num); in meson8_pmx_set_mux()
|
/drivers/ps3/ |
D | ps3-lpm.c | 660 static u64 pm_signal_group_to_ps3_lv1_signal_group(u64 group) in pm_signal_group_to_ps3_lv1_signal_group() argument 669 if (group < 1000) { in pm_signal_group_to_ps3_lv1_signal_group() 670 if (group < 100) { in pm_signal_group_to_ps3_lv1_signal_group() 671 if (20 <= group && group < 30) { in pm_signal_group_to_ps3_lv1_signal_group() 673 subgroup = group - 20; in pm_signal_group_to_ps3_lv1_signal_group() 674 } else if (30 <= group && group < 40) { in pm_signal_group_to_ps3_lv1_signal_group() 676 subgroup = group - 30; in pm_signal_group_to_ps3_lv1_signal_group() 677 } else if (40 <= group && group < 50) { in pm_signal_group_to_ps3_lv1_signal_group() 679 subgroup = group - 40; in pm_signal_group_to_ps3_lv1_signal_group() 680 } else if (50 <= group && group < 60) { in pm_signal_group_to_ps3_lv1_signal_group() [all …]
|