Lines Matching refs:swnode
421 static int gpio_sim_add_bank(struct fwnode_handle *swnode, struct device *dev) in gpio_sim_add_bank() argument
429 ret = fwnode_property_read_u32(swnode, "ngpios", &num_lines); in gpio_sim_add_bank()
436 ret = fwnode_property_read_string(swnode, "gpio-sim,label", &label); in gpio_sim_add_bank()
439 dev_name(dev), swnode); in gpio_sim_add_bank()
467 chip->irq_sim = devm_irq_domain_create_sim_full(dev, swnode, num_lines, in gpio_sim_add_bank()
487 gc->fwnode = swnode; in gpio_sim_add_bank()
506 chip->dev = device_find_child(dev, swnode, gpio_sim_dev_match_fwnode); in gpio_sim_add_bank()
523 struct fwnode_handle *swnode; in gpio_sim_probe() local
526 device_for_each_child_node(dev, swnode) { in gpio_sim_probe()
527 ret = gpio_sim_add_bank(swnode, dev); in gpio_sim_probe()
529 fwnode_handle_put(swnode); in gpio_sim_probe()
644 struct fwnode_handle *swnode; member
855 bank->swnode); in gpio_sim_add_hogs()
919 static void gpio_sim_remove_swnode_recursive(struct fwnode_handle *swnode) in gpio_sim_remove_swnode_recursive() argument
923 fwnode_for_each_child_node(swnode, child) in gpio_sim_remove_swnode_recursive()
926 fwnode_remove_software_node(swnode); in gpio_sim_remove_swnode_recursive()
949 struct fwnode_handle *swnode; in gpio_sim_device_activate() local
969 swnode = fwnode_create_software_node(NULL, NULL); in gpio_sim_device_activate()
970 if (IS_ERR(swnode)) in gpio_sim_device_activate()
971 return PTR_ERR(swnode); in gpio_sim_device_activate()
974 bank->swnode = gpio_sim_make_bank_swnode(bank, swnode); in gpio_sim_device_activate()
975 if (IS_ERR(bank->swnode)) { in gpio_sim_device_activate()
976 ret = PTR_ERR(bank->swnode); in gpio_sim_device_activate()
977 gpio_sim_remove_swnode_recursive(swnode); in gpio_sim_device_activate()
984 gpio_sim_remove_swnode_recursive(swnode); in gpio_sim_device_activate()
989 pdevinfo.fwnode = swnode; in gpio_sim_device_activate()
1000 gpio_sim_remove_swnode_recursive(swnode); in gpio_sim_device_activate()
1011 gpio_sim_remove_swnode_recursive(swnode); in gpio_sim_device_activate()
1022 struct fwnode_handle *swnode; in gpio_sim_device_deactivate() local
1026 swnode = dev_fwnode(&dev->pdev->dev); in gpio_sim_device_deactivate()
1029 gpio_sim_remove_swnode_recursive(swnode); in gpio_sim_device_deactivate()
1066 struct fwnode_handle *swnode; member
1078 if (device_match_fwnode(dev, ctx->swnode)) in gpio_sim_emit_chip_name()
1089 struct gpio_sim_chip_name_ctx ctx = { bank->swnode, page }; in gpio_sim_bank_config_chip_name_show()