/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/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/vfio/ |
D | vfio.c | 109 struct iommu_group *group; in vfio_iommu_group_get() local 112 group = iommu_group_get(dev); in vfio_iommu_group_get() 121 if (group || !noiommu || iommu_present(dev->bus)) in vfio_iommu_group_get() 122 return group; in vfio_iommu_group_get() 124 group = iommu_group_alloc(); in vfio_iommu_group_get() 125 if (IS_ERR(group)) in vfio_iommu_group_get() 128 iommu_group_set_name(group, "vfio-noiommu"); in vfio_iommu_group_get() 129 iommu_group_set_iommudata(group, &noiommu, NULL); in vfio_iommu_group_get() 130 ret = iommu_group_add_device(group, dev); in vfio_iommu_group_get() 132 iommu_group_put(group); in vfio_iommu_group_get() [all …]
|
/drivers/iommu/ |
D | iommu.c | 59 ssize_t (*show)(struct iommu_group *group, char *buf); 60 ssize_t (*store)(struct iommu_group *group, 84 static int iommu_alloc_default_domain(struct iommu_group *group, 91 struct iommu_group *group); 93 struct iommu_group *group); 94 static int iommu_create_device_direct_mappings(struct iommu_group *group, 203 struct iommu_group *group; in __iommu_probe_device() local 235 group = iommu_group_get_for_dev(dev); in __iommu_probe_device() 236 if (IS_ERR(group)) { in __iommu_probe_device() 237 ret = PTR_ERR(group); in __iommu_probe_device() [all …]
|
D | tegra-smmu.c | 25 struct iommu_group *group; member 345 const struct tegra_smmu_swgroup *group = NULL; in tegra_smmu_find_swgroup() local 350 group = &smmu->soc->swgroups[i]; in tegra_smmu_find_swgroup() 355 return group; in tegra_smmu_find_swgroup() 361 const struct tegra_smmu_swgroup *group; in tegra_smmu_enable() local 365 group = tegra_smmu_find_swgroup(smmu, swgroup); in tegra_smmu_enable() 366 if (group) { in tegra_smmu_enable() 367 value = smmu_readl(smmu, group->reg); in tegra_smmu_enable() 371 smmu_writel(smmu, value, group->reg); in tegra_smmu_enable() 394 const struct tegra_smmu_swgroup *group; in tegra_smmu_disable() 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/pinctrl/aspeed/ |
D | pinmux-aspeed.h | 514 #define SIG_DESC_LIST_SYM(sig, group) sig_descs_ ## sig ## _ ## group argument 515 #define SIG_DESC_LIST_DECL(sig, group, ...) \ argument 516 static const struct aspeed_sig_desc SIG_DESC_LIST_SYM(sig, group)[] = \ 519 #define SIG_EXPR_SYM(sig, group) sig_expr_ ## sig ## _ ## group argument 520 #define SIG_EXPR_DECL_(sig, group, func) \ argument 521 static const struct aspeed_sig_expr SIG_EXPR_SYM(sig, group) = \ 525 .ndescs = ARRAY_SIZE(SIG_DESC_LIST_SYM(sig, group)), \ 526 .descs = &(SIG_DESC_LIST_SYM(sig, group))[0], \ 546 #define SIG_EXPR_DECL(sig, group, func, ...) \ argument 547 SIG_DESC_LIST_DECL(sig, group, __VA_ARGS__); \ [all …]
|
/drivers/pinctrl/sirf/ |
D | pinctrl-prima2.c | 136 .group = 3, 142 .group = 2, 160 .group = 3, 166 .group = 2, 169 .group = 0, 187 .group = 3, 193 .group = 2, 196 .group = 0, 216 .group = 3, 222 .group = 2, [all …]
|
D | pinctrl-atlas6.c | 132 .group = 1, 135 .group = 2, 156 .group = 2, 162 .group = 1, 165 .group = 0, 183 .group = 2, 189 .group = 1, 192 .group = 0, 212 .group = 2, 218 .group = 1, [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/soundwire/ |
D | generic_bandwidth_allocation.c | 208 static int sdw_add_element_group_count(struct sdw_group *group, in sdw_add_element_group_count() argument 211 int num = group->count; in sdw_add_element_group_count() 215 if (rate == group->rates[i]) in sdw_add_element_group_count() 221 if (group->count >= group->max_size) { in sdw_add_element_group_count() 224 group->max_size += 1; in sdw_add_element_group_count() 225 rates = krealloc(group->rates, in sdw_add_element_group_count() 226 (sizeof(int) * group->max_size), in sdw_add_element_group_count() 230 group->rates = rates; in sdw_add_element_group_count() 233 group->rates[group->count++] = rate; in sdw_add_element_group_count() 240 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/dma/idxd/ |
D | device.c | 313 wq->group = NULL; in idxd_wq_disable_cleanup() 498 static void idxd_group_config_write(struct idxd_group *group) in idxd_group_config_write() argument 500 struct idxd_device *idxd = group->idxd; in idxd_group_config_write() 505 dev_dbg(dev, "Writing group %d cfg registers\n", group->id); in idxd_group_config_write() 510 group->id * 64 + i * sizeof(u64); in idxd_group_config_write() 511 iowrite64(group->grpcfg.wqs[i], in idxd_group_config_write() 514 group->id, i, grpcfg_offset, in idxd_group_config_write() 519 grpcfg_offset = idxd->grpcfg_offset + group->id * 64 + 32; in idxd_group_config_write() 520 iowrite64(group->grpcfg.engines, idxd->reg_base + grpcfg_offset); in idxd_group_config_write() 521 dev_dbg(dev, "GRPCFG engs[%d: %#x]: %#llx\n", group->id, in idxd_group_config_write() [all …]
|
D | sysfs.c | 166 if (!wq->group) { in idxd_config_bus_probe() 397 if (engine->group) in engine_group_id_show() 398 return sprintf(buf, "%d\n", engine->group->id); in engine_group_id_show() 425 if (engine->group) { in engine_group_id_store() 426 engine->group->num_engines--; in engine_group_id_store() 427 engine->group = NULL; in engine_group_id_store() 432 prevg = engine->group; in engine_group_id_store() 436 engine->group = &idxd->groups[id]; in engine_group_id_store() 437 engine->group->num_engines++; in engine_group_id_store() 479 struct idxd_group *group = in group_tokens_reserved_show() local [all …]
|
/drivers/pci/endpoint/ |
D | pci-ep-cfs.c | 23 struct config_group group; member 29 struct config_group group; member 36 return container_of(to_config_group(item), struct pci_epf_group, group); in to_pci_epf_group() 41 return container_of(to_config_group(item), struct pci_epc_group, group); in to_pci_epc_group() 141 struct config_group *group; in pci_ep_cfs_add_epc_group() local 150 group = &epc_group->group; in pci_ep_cfs_add_epc_group() 152 config_group_init_type_name(group, name, &pci_epc_type); in pci_ep_cfs_add_epc_group() 153 ret = configfs_register_group(controllers_group, group); in pci_ep_cfs_add_epc_group() 167 return group; in pci_ep_cfs_add_epc_group() 170 configfs_unregister_group(group); in pci_ep_cfs_add_epc_group() [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/counter/ |
D | counter.c | 224 struct counter_device_attr_group *group; member 245 struct list_head *const attr_list = &parm->group->attr_list; in counter_attribute_create() 276 parm->group->num_attr++; in counter_attribute_create() 328 struct counter_device_attr_group *const group, in counter_name_attribute_create() argument 346 parm.group = group; in counter_name_attribute_create() 404 struct counter_device_attr_group *const group, in counter_signal_ext_register() argument 428 parm.group = group; in counter_signal_ext_register() 444 counter_device_attr_list_free(&group->attr_list); in counter_signal_ext_register() 449 struct counter_device_attr_group *const group, in counter_signal_attributes_create() argument 464 parm.group = group; in counter_signal_attributes_create() [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/pwm/ |
D | pwm-atmel-tcb.c | 79 unsigned group = pwm->hwpwm / 2; in atmel_tcb_pwm_request() local 88 ret = clk_prepare_enable(tc->clk[group]); in atmel_tcb_pwm_request() 101 cmr = __raw_readl(regs + ATMEL_TC_REG(group, CMR)); in atmel_tcb_pwm_request() 109 __raw_readl(regs + ATMEL_TC_REG(group, RA)); in atmel_tcb_pwm_request() 112 __raw_readl(regs + ATMEL_TC_REG(group, RB)); in atmel_tcb_pwm_request() 115 tcbpwm->period = __raw_readl(regs + ATMEL_TC_REG(group, RC)); in atmel_tcb_pwm_request() 122 __raw_writel(cmr, regs + ATMEL_TC_REG(group, CMR)); in atmel_tcb_pwm_request() 147 unsigned group = pwm->hwpwm / 2; in atmel_tcb_pwm_disable() local 164 cmr = __raw_readl(regs + ATMEL_TC_REG(group, CMR)); in atmel_tcb_pwm_disable() 181 __raw_writel(cmr, regs + ATMEL_TC_REG(group, CMR)); in atmel_tcb_pwm_disable() [all …]
|
/drivers/staging/rtl8188eu/hal/ |
D | rtl8188e_hal_init.c | 278 u32 rfPath, eeAddr = EEPROM_TX_PWR_INX_88E, group, TxCount = 0; in Hal_ReadPowerValueFromPROM_8188E() local 285 for (group = 0; group < MAX_CHNL_GROUP_24G; group++) { in Hal_ReadPowerValueFromPROM_8188E() 286 pwrInfo24G->IndexCCK_Base[rfPath][group] = EEPROM_DEFAULT_24G_INDEX; in Hal_ReadPowerValueFromPROM_8188E() 287 pwrInfo24G->IndexBW40_Base[rfPath][group] = EEPROM_DEFAULT_24G_INDEX; in Hal_ReadPowerValueFromPROM_8188E() 306 for (group = 0; group < MAX_CHNL_GROUP_24G; group++) { in Hal_ReadPowerValueFromPROM_8188E() 307 pwrInfo24G->IndexCCK_Base[rfPath][group] = PROMContent[eeAddr++]; in Hal_ReadPowerValueFromPROM_8188E() 308 if (pwrInfo24G->IndexCCK_Base[rfPath][group] == 0xFF) in Hal_ReadPowerValueFromPROM_8188E() 309 pwrInfo24G->IndexCCK_Base[rfPath][group] = EEPROM_DEFAULT_24G_INDEX; in Hal_ReadPowerValueFromPROM_8188E() 311 for (group = 0; group < MAX_CHNL_GROUP_24G - 1; group++) { in Hal_ReadPowerValueFromPROM_8188E() 312 pwrInfo24G->IndexBW40_Base[rfPath][group] = PROMContent[eeAddr++]; in Hal_ReadPowerValueFromPROM_8188E() [all …]
|
/drivers/hwtracing/stm/ |
D | policy.c | 25 struct config_group group; member 30 struct config_group group; member 62 return policy_node->group.cg_item.ci_name ? : "<none>"; in stp_policy_node_name() 68 container_of(to_config_group(item), struct stp_policy, group) : in to_stp_policy() 77 group) : in to_stp_policy_node() 228 stp_policy_node_make(struct config_group *group, const char *name) in stp_policy_node_make() argument 235 if (group->cg_item.ci_type == &stp_policy_type) { in stp_policy_node_make() 236 policy = container_of(group, struct stp_policy, group); in stp_policy_node_make() 238 parent_node = container_of(group, struct stp_policy_node, in stp_policy_node_make() 239 group); in stp_policy_node_make() [all …]
|